Cloned Games

CSE2

DecompilationSporadicPlayableWindowsLinuxOSXWii3DS

Source code reconstructed from the original game's compiled binary, so the game can be understood, rebuilt and ported.

CSE2 screenshotLinks, repository & details

About

Cave Story is a game by Daisuke "Pixel" Amaya, whose original Windows executable dates to 2005. CSE2 is a decompilation of Cave Story; this "portable" branch ports the engine away from WinAPI and DirectX so it can run on other platforms, including Linux, macOS, Wii U, 3DS, and RISC OS, in addition to Windows. It builds with CMake and supports several swappable rendering and audio backends (OpenGL, SDL2, and hardware-specific backends for the Wii U and 3DS, among others), and can build either the official Japanese release or the unofficial Aeon Genesis English translation.

How it differs from the original

The decompilation was made unusually accurate because the original executable was compiled with no optimizations, leaving very decompiler-friendly assembly, and because a Linux port later shipped with extensive debugging symbols. The project also offers an optional -DFIX_BUGS build flag that fixes bugs present in the original game rather than preserving them.

Getting started

Build with CMake for the target platform (standard desktop builds for Windows/Linux/macOS; Wii U and 3DS builds require devkitPro toolchains and extra conversion steps to produce runnable .rpx/.3dsx files). The built executable and required data end up in the game_english or game_japanese folder depending on the language chosen at build time.

History

The decompilation was made possible because Cave Story's original Windows executable was compiled without optimizations, and because a 2007 Linux port by Simon Parzer and Peter Mackay — updated in 2011 — accidentally shipped with extensive debugging symbols (original function, variable, and struct names). The 2018 public release of Pixel's Organya music engine further helped document the audio code.

What you need to run it

No original game files required, according to the project's README.

Media

Licensing & legal

  • Because this is a decompilation, most of the code is proprietary and belongs to Daisuke "Pixel" Amaya; only the project's own modifications and custom code are separately licensed, under MIT.

FAQ

What is CSE2?
CSE2 is an open-source decompilation of Cave Story. Source code reconstructed from the original game's compiled binary, so the game can be understood, rebuilt and ported. The original game ran on Windows.
Do I need the original game files to run CSE2?
According to the project's README, no original game files are required.
How is CSE2 licensed?
Daisuke "Pixel" Amaya: proprietary (majority of the code in this project); project: MIT (modifications and custom code). The repository itself is the authoritative source.
Share:

More like CSE2

Active
doukutsu-rs screenshot
A from-scratch reimplementation of the Cave Story engine with quality-of-life improvements, requiring the original game's data files.
Platforms:WindowsLinuxOSX
Stars1,289
Updated2 months ago
LicenseMIT
Release2020
Halted
Cave Story Sega Megadrive Port screenshot
A rewrite and port of the freeware game Cave Story for the Sega Mega Drive/Genesis.
Stars673
Updated1 year ago
LicenseUnknown
Release2015
Sporadic
NXEngine-evo screenshot
An upgraded NXEngine fork for Cave Story with SDL2, widescreen up to Full HD, localization and initial mod support.
Platforms:WindowsLinuxOSX
Stars548
Updated8 months ago
LicenseGPL-3.0
Release2014
Halted
NXEngine screenshot
A fork of NXEngine, the open-source Cave Story engine rewrite, ported to low-powered handhelds and phones.
Platforms:WindowsLinux
Stars198
Updated4 years ago
LicenseGPL-3.0
Release2014