Game Development Reference
In-Depth Information
The start project
Go ahead and download the file
4198_04_START_PROJECT.zip
from this topic's sup-
port page (
www.packtpub.com/support
). When you uncompress the file, you will find the
basic project already set up and ready for you to work on.
The steps involved in creating this project are similar to the ones I showed you in our pre-
vious game. The command line I used was:
cocos new SkyDefense -p com.rengelbert.SkyDefense -l cpp -d
/Users/rengelbert/Desktop/SkyDefense
In Xcode you must set the
Devices
field in
Deployment Info
to
Universal
, and the
Device
Family
field is set to
Universal
. And in
RootViewController.mm
, the supported in-
terface orientation is set to
Landscape
.
The game we are going to build requires only one class,
GameLayer.cpp
, and you will
find that the interface for this class already contains all the information it needs.
Also, some of the more trivial or old-news logic is already in place in the implementation
file as well. But I'll go over this as we work on the game.