Game Development Reference
In-Depth Information
How to do it
The steps to add all the assets required to be added to the game are as follows:
1. Drag and add the resources provided with the with the code bundle for this chapter,
which are:
BlueTank.png
,
RedTank.png
, and
Background.png
to the
project, After adding the files, the project navigator will look like this:
2. Now, here, we will be using GameKit, which is a great framework to create social
games. This framework provides various features such ass peer-to-peer connection,
game center, and in-game voice chat. Import GameKit and declare some enums,
structures, properties, and constants to be used in the coming code as shown:
◦ Import
GameKit
to use CGPoint for storing data structures: