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 data storage
- Using
CharacterBody3D
and detecting collisions
When completed, the game will look like this:
Figure 6.1: Finished game screenshot...