2
Making a 2D Infinite Runner Game
This chapter is different from the rest of the book and a dramatic diversion from what you may have seen in its first edition. Elsewhere in the text, I focus mainly on the code behind the games. This chapter offers up a step by step tutorial to using the framework to make a 2D infinite runner game. The goal of this chapter is to demonstrate two things: 1) How quickly you can turn around a game when you have a framework in place that takes care of a lot of the repetitive tasks. 2) The basics of how this books framework fits together to give you some background knowledge before we get down into nitty gritty of the framework code in Chapter 3.
This infinite runner (Figure 2.1) has a character that can move ...