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.