Chapter 13. Sample Game: Side-Scroller for iOS
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.
Overview
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 ...
Get Game Programming Algorithms and Techniques: A Platform-Agnostic Approach now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.