Learning Java by Building Android  Games
上QQ阅读APP看书,第一时间看更新

Open-World Platformer

In this project Bob makes a second appearance. The game will be a time trial where the player must get from the start point to the exit in the fastest time possible. There will be deadly jumps, moving platforms to navigate, fire pits and collectible coins. Every coin the player fails to collect will add a time penalty.

In this project we learn about the concept of a moveable camera that tracks the part of the game-world that needs to be shown to the player at any given moment. We will also learn some new Java patterns and reinforce the vital knowledge from the previous chapter. Furthermore, we will see how we can design levels as text layouts and then load them in code as playable levels.

Open-World Platformer

There are three levels and the player will choose the level they want to play from a home-screen which will also show the fastest times for each level.

Open-World Platformer

Let's learn a little about how Java and Android work.