YAGE v2 Examples

Click an example to launch it

Hello World

Simplest setup: a few colored shapes on screen. Proves the engine + renderer pipeline works.

core renderer

Camera

WASD player with smooth camera follow, deadzone, bounds, shake, and zoom controls.

core renderer

Physics Basics

Drop shapes that bounce in a box. Apply impulses and flip gravity. Shows rigid bodies, colliders, and restitution.

core renderer physics

Collisions & Sensors

Collect coins and dodge danger zones. Demonstrates sensors, trigger events, collision layers, and kinematic bodies.

core renderer physics

2D Platformer

Side-scrolling platformer with camera follow, moving platforms, collectibles, death pits, and physics-based player control.

core renderer physics

2D Shooter

Mega Man-style platformer-shooter with squash-stretch, hit flash, camera shake, knockback, and manual particle spawning.

core renderer physics

Particles

GPU-friendly particle emitters driven by mouse input. Hold click to emit, press Space to burst, switch presets with 1-4.

core renderer particles input

Audio

Channel-based audio with SFX pads, music toggle, per-channel volume control, and master mute. Wraps @pixi/sound.

core renderer audio input