Skip to content
marco-leporePublic

About

Yet Another (Javascript) Game Engine

Resources

Stars

5 stars

Watchers

1 watching

Forks

Repository files navigation

yage

Yet Another Game Engine
A 2D game engine for TypeScript, built on PixiJS and Rapier2D.


What is yage?

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.

Quick Start

The fastest way to start a new game:

npm create yage@latest my-game
cd my-game
npm run dev

This 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.

Manual setup

Install packages individually if you prefer to wire things up yourself:

npm install @yagejs/core @yagejs/renderer

Add more as you need them:

npm install @yagejs/physics @yagejs/lighting @yagejs/input @yagejs/audio @yagejs/debug

See the installation guide for Vite configuration and bundler setup.

Packages

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

Development

npm install
npx turbo run build
npx turbo run dev --filter=examples

Links

License

MIT

About

Yet Another (Javascript) Game Engine

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages