examples/

directory
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 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.
Package audioassets embeds the recordings shared by the audio examples.
Package audioassets embeds the recordings shared by the audio examples.
balance command
Command balance demonstrates live per-source stereo balance.
Command balance demonstrates live per-source stereo balance.
mixing command
Command mixing demonstrates master/group volume and global pause policies.
Command mixing demonstrates master/group volume and global pause policies.
playback command
Command playback demonstrates eagerly cached OneShots and a persistent, streamed music source.
Command playback demonstrates eagerly cached OneShots and a persistent, streamed music source.
Command camera demonstrates camera rotation, zoom, and bounds.
Command camera demonstrates camera rotation, zoom, and bounds.
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 or the wheel zooms.
Command input demonstrates bindings-driven input: WASD, arrows, or a stick drive a tank, the mouse aims the turret, QE or the wheel 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 time-control demonstrates game-level time control: two bodies orbit a marker on simulation time, and the keyboard retimes that simulation.
Command time-control demonstrates game-level time control: two bodies orbit a marker on simulation time, and the keyboard retimes that simulation.
Command timer demonstrates the timer component as observable state.
Command timer demonstrates the timer component as observable state.
Command tween demonstrates fixed-time movement and frame-time tint changes.
Command tween demonstrates fixed-time movement and frame-time tint changes.
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