A small 3D-styled 2D platformer written in C99 with:
- Sokol for native and browser rendering/input.
../c-ecsfor gameplay entities and systems.- Kenney Platformer Kit 3D models converted to static C mesh data at build time.
Use the Nix shell for the full native and browser toolchain:
nix develop
make allNative only:
make native
./build/platformBrowser:
make web
cd dist && python3 -m http.server 8000Then open http://127.0.0.1:8000.
Tests:
make test # Unit tests for the deterministic gameplay core
make coverage # Enforces >=90% line and branch coverage for src/game_core.cDesktop uses keyboard (WASD/arrows + space to jump). Mobile uses touch: left half for movement, right half to jump.
3D models come from Kenney Platformer Kit, licensed CC0. The original asset license is included at assets/vendor/kenney-platformer-kit/License.txt.
