Game Development Reference
In-Depth Information
5. Now, open the Player.m file, and add the following code after @implement-
ation :
+ (Player*) playerObject {
// Create a new critter, and give it a name
Player* obj = [Player
spriteNodeWithColor:[SKColor whiteColor]
size:CGSizeMake(30, 30)];
obj.name = @"GamePlayer";
return obj;
}
- (void) update:(float)deltaTime {
Search WWH ::




Custom Search