A physics-based motocross-platformer for the Playdate console. Made with the Nim programming language and the Chipmunk2D physics library for playdate. It relies on 2 libraries for that:
A public level editor is available. See the guide on the Wiki for installation and usage instructions.
This project should work on MacOS and Windows. See Playdate-Nim for installation instructions.
See Playdate-Nim for installation instructions.
This project needs Chipmunk as static library. This is provided for the windows simulator(64 bit), MacOs simulator(Apple silicon), and the playdate device. For other platforms, I appreciate a Pull Request.
I compiled the windows lib, by installing Msys2, and adding the C build tools for MinGW (make and cmake). Then, I could build libchipmunk.a
with
mkdir build
cd build
cmake --fresh -G "MinGW Makefiles" -D BUILD_STATIC=ON -D BUILD_SHARED=OFF -D BUILD_DEMOS=OFF -D INSTALL_STATIC=OFF -D CMAKE_BUILD_TYPE=Debug -D PLAYDATE=ON ../
cmake --build .
The resulting lib is placed in the lib folder.
./scripts/run_level_updater.sh
To build the Tiled extension every time you save changes to the typescript files:
cd editor/extensions
npm run watch
...or select the Node.js > Run Script: watch from the Run and Debug dropdown