Aulafy
Courses/Games, 3D and simulations with AI/First 3D Prototype in Godot

First 3D Prototype in Godot

Here the goal is a minimal vertical slice: move, look around, collect objects, open a door, and export a playable build. Small, complete, and verifiable.

  • Create a simple 3D scene with ground, light, camera, and player.
  • Use Fable 5 to generate explained scripts, not black boxes.
  • Prepare a testing checklist before exporting.
TerminalCode
Escenas sugeridas:

scenes/
  main.tscn
  player.tscn
  collectable.tscn
  door.tscn

scripts/
  player_controller.gd
  collectable.gd
  door.gd
  game_state.gd

Build Order

  • Empty scene with ground, light, and camera.
  • Player with `CharacterBody3D` and basic movement.
  • Three collectibles with a detection area.
  • Simple global state: counter and objective.
  • Door that opens when the counter reaches three.
  • Final message and export.
TerminalCode
Prompt para script:

Actúa como profesor de Godot 4.
Necesito un script GDScript para un jugador 3D con CharacterBody3D.
Debe incluir:
- movimiento WASD
- gravedad
- salto simple
- rotación de cámara con ratón
- comentarios breves en las partes difíciles

Restricciones:
- no uses plugins
- no inventes APIs
- explica en qué nodo va cada script
- añade checklist de errores típicos si no se mueve
TerminalCode
QA mínimo:
- el jugador no atraviesa el suelo
- la cámara no rota al revés
- los 3 objetos se recogen una sola vez
- la puerta no se abre antes de tiempo
- hay feedback visual o textual
- el proyecto arranca desde main.tscn
- exportación web probada en navegador

Official Sources

  • Godot: CharacterBody3D
  • Godot documentation
  • Godot: exporting for the web