~/rocco $ ls guide/tutorial

Tutorial

  • 1. A window, a camera and a cubeStart the tutorial game. Open a window, point a camera and draw a cube with launch, init and view.
  • 2. The characterLoad Pip from a .glb file with a Load Command, keep its mesh id from the Manifest in loaded, and draw it on the ground.
  • 3. MovingMake Pip walk with W, A, S and D. Read the Input in step, move by speed times dt, and test the movement.
  • 4. Lights, a sun and its shadowLight the ground with an ambient light and a sun, and give Pip a shadow.
  • 5. PickupsPut five pickups on the ground. Give Pip and each pickup a Collider, ask for Pip's Contacts, and collect each pickup that Pip touches.
  • 6. The door and the winAdd a door that opens when every pickup is collected, a win when Pip walks through it, and Quit on Escape.
  • 7. A HUDShow the pickup count and a message over the game with a tree of Boxes and Text in Scene.ui, and finish the game.
  • 8. SoundPlay a blip when Pip takes a pickup with the Play Command, and add music, a hum and a creak with Speakers, the door's two in its Group.
  • 9. A gamepadWalk Pip with the left stick of a gamepad, at a speed that follows how far the stick is pushed, and quit with Start. Learn what a slot is and when to use Button.pressed_any.
  • 10. AnimationPlay the Idle and Walk Clips on Pip. Find the Clips in the Manifest, keep each Clip's time in the Model, and fade from one Clip to the other with the Pose of a Draw.