Skip to content
briansunterPublic

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

Platform

A small 3D-styled 2D platformer written in C99 with:

  • Sokol for native and browser rendering/input.
  • ../c-ecs for gameplay entities and systems.
  • Kenney Platformer Kit 3D models converted to static C mesh data at build time.

Platform gameplay screenshot

Build

Use the Nix shell for the full native and browser toolchain:

nix develop
make all

Native only:

make native
./build/platform

Browser:

make web
cd dist && python3 -m http.server 8000

Then 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.c

Controls

Desktop uses keyboard (WASD/arrows + space to jump). Mobile uses touch: left half for movement, right half to jump.

Assets

3D models come from Kenney Platformer Kit, licensed CC0. The original asset license is included at assets/vendor/kenney-platformer-kit/License.txt.

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages