Chapter 5: Creating a 2D Adventure Game
In this chapter, we will start an entirely new project: a 2D adventure game where the player controls an alien character and explores and navigates a dangerous world, complete with a quest to collect a gem. Platform games have been hugely popular since their inception in the 1980s with the first platforming game Space Panic. Since then, the genre has grown drastically to include the likes of Super Mario, Mega Man, Crash Bandicoot, and Limbo.
This project will build on the ideas we introduced in previous chapters but will also introduce new techniques, such as complex collisions, 2D physics, singletons, and more. Learning these techniques will empower you to create your own 2D games. In this chapter alone, we will cover the following topics:
- Configuring the game view by adjusting the camera's vertical size to ensure our sprites are shown at the correct size
- Creating an environment including a 2D level with a background and...