Game Development Reference
In-Depth Information
mote end as well. Also, declare all the SKSpriteNodes and SKShapeNodes
to be used in the game.
TankInfo tankStatsForLocal;
@property (nonatomic, strong) SKSpriteNode*
redTankSprite;
@property (nonatomic, strong) SKSpriteNode*
blueTankSprite;
@property (nonatomic, strong) SKShapeNode*
blueFinishLine;
@property (nonatomic, strong) SKShapeNode*
redFinishLine;
@property (nonatomic, strong) SKSpriteNode*
localTankSprite;
@property (nonatomic, strong) SKSpriteNode*
remoteTankSprite;
4. Now, we shall add some nodes to the scene, hence the GameScene needs to be of
the correct size. Click on GameScene.sks and open the right panel from the
last icon on the right top bar of Xcode. From there, change the size of the GameS-
cene to 320 x 568 which is the size of the iPhone 4 inch.
Search WWH ::




Custom Search