Yet Another Game Engine
A 2D game engine for TypeScript, built on PixiJS and Rapier2D.
yage is a personal, opinionated 2D game engine that composes PixiJS (rendering) and Rapier (physics) with an ECS-inspired architecture, scene management, serialization, and debug tooling.
It's designed with AI-assisted development in mind — featuring deterministic tests, an inspector, and structured feedback loops that make it easy to build games with LLMs.
The fastest way to start a new game:
npm create yage@latest my-game
cd my-game
npm run devThis scaffolds a playable platformer with physics, input, animations, and
sound effects — a solid starting point to build on. Choose the minimal
template if you'd rather start from an empty scene.
Install packages individually if you prefer to wire things up yourself:
npm install @yagejs/core @yagejs/rendererAdd more as you need them:
npm install @yagejs/physics @yagejs/lighting @yagejs/input @yagejs/audio @yagejs/debugSee the installation guide for Vite configuration and bundler setup.
| Package | Description |
|---|---|
@yagejs/core |
ECS, scenes, game loop, animation, serialization |
@yagejs/renderer |
PixiJS rendering integration |
@yagejs/lighting |
Radial lights and light-level queries |
@yagejs/physics |
Rapier2D physics integration |
@yagejs/input |
Keyboard and pointer input |
@yagejs/audio |
Audio playback |
@yagejs/particles |
Particle effects |
@yagejs/tilemap |
Tilemap support |
@yagejs/pathfinding |
Grid A* pathfinding |
@yagejs/ui |
UI components |
@yagejs/ui-react |
React-based UI |
@yagejs/save |
Save/load system |
@yagejs/debug |
Debug overlay and inspector |
@yagejs/host-electron |
Electron shell and host adapter |
@yagejs/host-capacitor |
Capacitor mobile host adapter |
npm install
npx turbo run build
npx turbo run dev --filter=examplesMIT