Cave Story (NX Engine) - omgmog/launcher-community-apps GitHub Wiki

Cave Story uses the NX Engine and runs at 320x240 (centered on the screen)

Install instructions based on these instructions

Install

# Install dependencies
sudo apt-get install libsdl-ttf2.0-dev build-essential

# Make sure we have the Games directory
mkdir -p /home/chip/Games
cd /home/chip/Games

# Grab NX Engine and game data
wget http://nxengine.sourceforge.net/dl/nx-src-1006.tar.bz2
wget https://github.com/libretro/nxengine-libretro/archive/master.zip

# Extract and move files to the right plaes
tar xf nx-src-1006.tar.bz2
unzip master.zip
mv ./nxengine-libretro-master/datafiles/Doukutsu.exe ./nx/
mv ./nxengine-libretro-master/datafiles/data ./nx/

# Clean up archives
rm nx-src-1006.tar.bz2
rm master.zip

# Enter the NX Engine directory
cd nx

Configuring game resolution

nano settings.cpp

Change setfile->resolution = 2; to setfile->resolution = 1;

Configuring input

nano input.cpp

Change the key config to the following:

mappings[SDLK_LEFT] = LEFTKEY;
mappings[SDLK_RIGHT] = RIGHTKEY;
mappings[SDLK_UP] = UPKEY;
mappings[SDLK_DOWN] = DOWNKEY;
mappings[SDLK_KP_MINUS] = JUMPKEY;
mappings[SDLK_0] = FIREKEY;
mappings[SDLK_9] = PREVWPNKEY;
mappings[SDLK_8] = NEXTWPNKEY;
mappings[SDLK_BACKSPACE] = INVENTORYKEY;
mappings[SDLK_EQUALS] = MAPSYSTEMKEY;

mappings[SDLK_ESCAPE] = ESCKEY;

mappings[SDLK_q] = F1KEY;
mappings[SDLK_w] = F2KEY;
mappings[SDLK_e] = F3KEY;
mappings[SDLK_r] = F4KEY;
mappings[SDLK_t] = F5KEY;
mappings[SDLK_y] = F6KEY;
mappings[SDLK_u] = F7KEY;
mappings[SDLK_i] = F8KEY;
mappings[SDLK_o] = F9KEY;
mappings[SDLK_p] = F10KEY;
mappings[SDLK_a] = F11KEY;
mappings[SDLK_s] = F12KEY;

mappings[SDLK_SPACE] = FREEZE_FRAME_KEY;
mappings[SDLK_c] = FRAME_ADVANCE_KEY;
mappings[SDLK_v] = DEBUG_FLY_KEY;

Now, build it

make

After this finishes, you should now have a ./nx available to run (full path is /home/chip/Games/nx/nx

⚠️ **GitHub.com Fallback** ⚠️