examples/

directory
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2026 License: Apache-2.0

Directories

Path Synopsis
Command animate demonstrates frame animation: a torch flickers through a grid-atlas clip at a fixed frame rate, driven entirely by engine wiring - the game only registers the atlas, the clip, and the entity; the renderer stays animation-blind.
Command animate demonstrates frame animation: a torch flickers through a grid-atlas clip at a fixed frame rate, driven entirely by engine wiring - the game only registers the atlas, the clip, and the entity; the renderer stays animation-blind.
Command audio demonstrates audio playback end to end: SPACE plays a sound effect (eager, decoded once and shared), a music track loops from the file (streamed, never fully in memory), the arrow keys sweep the master and music volumes, and ENTER toggles the global pause - the music holds while the effect plays through, because each play states its own pause behavior.
Command audio demonstrates audio playback end to end: SPACE plays a sound effect (eager, decoded once and shared), a music track loops from the file (streamed, never fully in memory), the arrow keys sweep the master and music volumes, and ENTER toggles the global pause - the music holds while the effect plays through, because each play states its own pause behavior.
Command collision demonstrates the collision stack: circle and rect colliders, layered masks, trigger pickups, a rotation-aware narrow phase, and the Contacts lifecycle read as component state - bar hits drain health and speed once per enter edge, pickups heal.
Command collision demonstrates the collision stack: circle and rect colliders, layered masks, trigger pickups, a rotation-aware narrow phase, and the Contacts lifecycle read as component state - bar hits drain health and speed once per enter edge, pickups heal.
Command input demonstrates bindings-driven input: WASD, arrows, or a stick drive a tank, the mouse aims the turret, QE zooms.
Command input demonstrates bindings-driven input: WASD, arrows, or a stick drive a tank, the mouse aims the turret, QE zooms.
Command primitive demonstrates the shape drawables as a spectrum: one row per shape kind - rect, circle/ellipse, line - and one column per variant - filled, outlined, spinning, stretched by the transform's scale, half-faded.
Command primitive demonstrates the shape drawables as a spectrum: one row per shape kind - rect, circle/ellipse, line - and one column per variant - filled, outlined, spinning, stretched by the transform's scale, half-faded.
Command text demonstrates text rendering: a static label, a per-tick counter whose string updates like a score display, and tinted and scaled text.
Command text demonstrates text rendering: a static label, a per-tick counter whose string updates like a score display, and tinted and scaled text.
Command timer demonstrates the timer component as observable state.
Command timer demonstrates the timer component as observable state.
Command wander demonstrates the engine renderer: an atlas sprite wanders to random screen points at fixed ticks, the engine renders it interpolated between ticks, and a user DrawFunc draws an overlay above the engine-rendered world.
Command wander demonstrates the engine renderer: an atlas sprite wanders to random screen points at fixed ticks, the engine renders it interpolated between ticks, and a user DrawFunc draws an overlay above the engine-rendered world.
Command your-first-game is the companion program to the getting started tutorial: a tank that drives with the keyboard and aims its turret at the mouse, from a camera that follows it.
Command your-first-game is the companion program to the getting started tutorial: a tank that drives with the keyboard and aims its turret at the mouse, from a camera that follows it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL