December 2013
Intermediate to advanced
352 pages
10h 6m
English
A side-scroller is a game where the action is viewed from the side. An endless scroller is a variation in which the game world continues to scroll until the player loses. An example of a very popular endless scroller is Jetpack Joyride.
In this chapter, we take a look at a sample implementation of a 2D space-based endless scroller called Ship Attack. The code for this game was written in Objective-C using the cocos2d framework, and is for iOS devices.
This chapter is intended to be read while reviewing the source code for the game, which is available on the book’s website at http://gamealgorithms.net/source-code/shipattack/. Because this game is for iOS, in order to run the code you need ...
Read now
Unlock full access