Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

How-to guides

Task-sized recipes. Each page solves one goal with real, verified APIs and a way to check it worked. These assume you’ve done the Your first game tutorial (for game tasks) or Extending the engine (for engine tasks) — they don’t re-teach the basics, they link to them.

Looking for the “why” behind a recipe? Follow the links into Concepts. Looking for the exact signature? See the API reference.

Building a game

I want to…Recipe
Spawn entities and move themSpawn and transform entities
Give surfaces materials and light a sceneMaterials and lighting
Load a mesh, texture, or soundLoad assets
Play positional 3D audioPlay 3D audio
Lay out a UIBuild a UI
Save and restore the worldSave and load scenes
Bind input to actionsMap input

Extending the engine

I want to…Recipe
Define and register an ECS componentAdd a component
Add a hot-path strategy to an agentAdd a lane
Add a new strategist subsystemAdd an agent
Add a .wgsl shader and a pipelineAdd a shader
Decode a new asset formatAdd an asset decoder
Project the World into a View for lanesAdd a flow
Pin or bound an agent’s adaptationControl GORNA adaptation

Operating and tuning

I want to…Recipe
Find and fix a problemTroubleshoot
Measure and tune performanceProfile performance
Investigate one frame or a GORNA decisionDebug a frame

New here? Start with a tutorial instead — how-to guides assume you already know the ropes.