Victorian Rush Hour – the game
Download the 4198_07_START_PROJECT.zip
file from this book's Support page (www.packtpub.com/support) and run the project in Xcode. You should be able to recognize all the work we did in the test version, and pinpoint the few extra elements. You will also see that nothing was added to the actual gameplay.
In Victorian Rush Hour, I wanted to make the terrain the main challenge in the game, but I also wanted to show you how easily you can add new elements to the buildings and interact with them.
You can later use the same logic to add enemies, obstacles, or pickups for the cyclist sprite. All you need to do really is extend the collision detection logic to check for the new items. You could, for instance, add umbrellas as pickups, and every time the _player
object floated, he would be minus one umbrella.
Next, I'll list the new elements added to the game.
New sprites
Quite a few sprites were added to our game:
There is a group of cyclists at the beginning of the game...