← Back to homepage

Project Templates

Complete game starters — Vite + nape-js + your renderer of choice. Open in StackBlitz to play instantly, or clone from GitHub.

Platformer

Side-scrolling action with run / variable jump / double jump, enemies, shooting, and destructible blocks. Built around CharacterController, the tilemap helper, fractureBody, and a fixed-timestep accumulator.

  • Run + variable-height jump + double jump
  • Coyote time + jump buffer
  • Greedy-meshed tilemap collision
  • Moving platforms (kinematic)
  • Stompable + spiky enemies (patrol AI)
  • Projectiles (pooled bullets)
  • Destructible blocks (fractureBody)
  • Spike hazards + 3-heart health
  • Coin pickups + goal flag
  • Smooth-follow camera + screen shake
  • Win / death / restart state machine
  • HUD overlay (health, coins, time)

The StackBlitz button opens the Canvas2D variant. The Three.js and PixiJS variants live side-by-side under src/render/ — clone the repo and swap the import in src/main.js to pick a renderer.