Skip to content

Latest commit

 

History

History
63 lines (39 loc) · 2.14 KB

README.md

File metadata and controls

63 lines (39 loc) · 2.14 KB

Wheelsprung (Playdate)

Screenshot

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:

Playdate-Nim

Chipmunk2D for Playdate

Level Editor

A public level editor is available. See the guide on the Wiki for installation and usage instructions.

Installation

NOTE: Although this repository is publicly available, the level files are not. You may be able to compile the project, but will have to provide your own level files to run the game.

This project should work on MacOS and Windows. See Playdate-Nim for installation instructions.

Troubleshooting

As noted above, the level files are not included. This may be a cause for crashes.

Make sure you can run the playdate-nim sample project

See Playdate-Nim for installation instructions.

Linux support

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.

Development

As noted above, the level files are not included. This may be a cause for crashes.

Level hash updater

./scripts/run_level_updater.sh

Tiled extension

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