6

Infinite Flyer

In this chapter, you’ll build a 3D infinite runner (or more accurately, infinite flyer) in the vein of Temple Run or Subway Surfers. The player’s goal is to fly as far as possible, passing through floating rings to collect points, while avoiding obstacles. By building this game, you’ll get a feel for how to make 3D objects interact and how to generate a 3D world automatically, rather than building it piece-by-piece as you did in earlier games such as Minigolf or Jungle Jump.

Here are some of the new things you’ll learn in this chapter:

  • Using transforms to rotate and move in 3D space
  • Load and unload “chunks” of your game world
  • How to randomly generate the game environment and game objects
  • Saving and loading files for persistent ...

Get Godot 4 Game Development Projects - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.