Skip to content

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.

  1. The Object3D is the entity β€” add objects, understand there’s no separate entity layer.
  2. Your first GameComponent β€” init / update / dispose, attached to an Object3D.
  3. Trigger callbacks β€” onTriggerEnter / onTriggerExit with sensor colliders.
  4. Component schema & the registry β€” author fields with Zod; register a component.
  5. Scenes (.vscn.json) β€” the scene format and the three-pass loader.
  6. Prefabs (.prefab.json) β€” reusable entity templates with per-instance overrides.
  7. Phase ordering & the game loop β€” where code runs, and why order matters.
  8. The GameContext β€” reaching Three.js, Rapier, and the engine managers directly.
  9. Input basics β€” actions, input maps, keyboard/mouse/gamepad.
  10. Hot reload β€” edit a component live while the game runs.