← See all modules
Module 7Full course

A 3D game

A 3D flying game in the browser, with terrain, controls, rings, and a timer.

4 lessons · 90 min

The Céu do Rio start screen: a low-poly flight over Rio de Janeiro at golden hour, with Sugarloaf Mountain, buildings, and the beach.
The real project behind this module, live.Open the real project ↗

What you'll build

Mini Céu: a 3D flying game that runs in the browser, inspired by Céu do Rio, a real game. Terrain generated by a formula, a plane that banks into turns, a chase camera, rings around the mountain, and a timer. At the end, it is online with a link you can send to anyone.

  • Inspired by a real gameYou see how Céu do Rio was made and build your own version, step by step.
  • 3D in 20 linesThe first lesson already has a working 3D scene, and you understand every line.
  • Ready to showThe game ends up online, with a link, ready for your portfolio.

What you'll learn

  • Scene, camera, and light with three.js
  • Terrain from a formula, colors by height, and fog
  • The game loop and that thing called dt
  • Keys, banking turns, and a camera that chases the plane
  • Collision, ring detection, and scoring

The lessons

0 of 4 lessons complete
  1. 1The game specMeet Céu do Rio, the real game behind this module, see 3D working in 20 lines, and write the spec for your Mini Céu.🔒
  2. 2Building the 3D sceneTerrain generated by a formula, colors by height, fog, and the plane. Step 1 of Mini Céu.🔒
  3. 3Flight and controlsThe game loop, that thing called dt, keys, turning by banking, a chase camera, and ground collision.🔒
  4. 4Rings, timing, and the full gameRings around the mountain, pass detection, a timer, restarting, and publishing. Your Mini Céu, done.🔒