Catalog
Components, systems, scenes, and utilities. Install one with npx gamecn add <name>.
- Component
Platformer Player
A configurable Phaser platformer player controller with coyote time, jump buffering, variable jump height, and acceleration-based ground movement.
phaser - System
Topdown Camera
A configurable Phaser camera-follow setup with smoothing, deadzone, world bounds, and zoom — typical of top-down RPGs and adventure games.
phaser - System
Audio Manager
Web Audio-based SFX and music manager with named buses, volume control, and pluggable buffer loading. Engine-agnostic.
phaserthree - System
Dialogue System
Branching JSON-driven dialogue runner with choices and variables. Engine-agnostic — bring your own UI renderer.
phaserthree - Utility
Input Manager
Engine-agnostic input action mapper. Map logical actions ('jump', 'left') to keyboard bindings and query state without coupling gameplay code to the DOM keyboard API.
phaserthree - Component
Mobile Joystick
On-screen virtual joystick for touch input. Renders to a DOM element; exposes a 2D vector for gameplay. Engine-agnostic.
phaserthree - Utility
Save Load
Type-safe localStorage-backed save system with versioning and migrations. Engine-agnostic.
phaserthree - System
Bloom Postprocessing
EffectComposer-based bloom pass for Three.js. Adds glow to bright pixels — perfect for neon, lasers, and cinematic looks.
three - Component
Gltf Character Controller
Loads a GLTF/GLB model, exposes named animations, and drives WASD movement with smooth turning. Three.js component for vanilla scenes.
three - Scene
Orbit Scene
A starter Three.js scene with a perspective camera, orbit controls, ambient + directional light, ground grid, and a render loop. Drop your geometry into `scene` and go.
three