17 Platformers
Creating a platform-based game is quite a challenge, but by this stage in the book you should have acquired all the necessary skills. In this chapter we are going to look at the problems of controlling the behaviour of a sprite in a platform world. First we will look at an example in which we move the sprite whilst the background remains stationary and then we will look at using a multi-layered scrolling background. Platform games often use dynamically created sprites; we will look at creating sprites on the fly and removing them when they are no longer in use.
The Basics of Platform Games
Platform games involve two fundamental concepts. Firstly, user control of a sprite character that can usually perform several actions: walk, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access