Foundations
Foundations is the step-by-step track that teaches the vgai model by building, the way Godot’s “Step by step” does. Work through it after Get Started and before the Capstones.
Lessons in this track
Section titled “Lessons in this track”- The Object3D is the entity — add objects, understand there’s no separate entity layer.
- Your first GameComponent —
init/update/dispose, attached to anObject3D. - Trigger callbacks —
onTriggerEnter/onTriggerExitwith sensor colliders. - Component schema & the registry — author fields with Zod; register a component.
- Scenes (
.vscn.json) — the scene format and the three-pass loader. - Prefabs (
.prefab.json) — reusable entity templates with per-instance overrides. - Phase ordering & the game loop — where code runs, and why order matters.
- The GameContext — reaching Three.js, Rapier, and the engine managers directly.
- Input basics — actions, input maps, keyboard/mouse/gamepad.
- Hot reload — edit a component live while the game runs.