Projects » Ninjarun

An endless runner I built back in 2013: the ninja auto-runs, you tap to jump — hold for a higher jump, release to cut it short — and one obstacle ends the run. It started life as an Android/webOS game.

This is a very old hobby project — made years before I finished university or wrote any code professionally, so go easy on it. :)

Originally written in C++ on SDL with fixed-function OpenGL ES 1.x. The version below is that original code recompiled to WebAssembly with Emscripten — the gameplay, physics, scenes, art and maps are byte-for-byte the same, only the platform glue was adapted. It uses the desktop 480×320 landscape orientation; the assets (sprite sheet, tiles, sky, font and the map files) are bundled into the WebAssembly virtual filesystem.

Click the game once to give it keyboard focus.

ActionInput
Jump (hold = higher)Click / tap / Space
Menu / continueClick / tap button

All posts tagged ninjarun