Understanding the Views in a Game

The game presented in this chapter is called Coin Sorter. It is a simple puzzle game in which the player sorts coins into rows and columns. The player has ten turns to make as many matching rows or columns as possible. The fun part of this game is just about as simple as an iOS game can get. The playable part of this game is comprised of just two classes, CoinsController and CoinsGame. As the names of these two classes suggest, CoinsController is responsible for rendering the game to the screen and interpreting player actions. CoinsGame is responsible for storing the state of the game and providing a few utility methods for manipulating that state. The details of how these two classes work is explored fully in ...

Get Beginning iOS 5 Games Development: Using the iOS 5 SDK for iPad, iPhone, and iPod Touch 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.