Game Development Reference
In-Depth Information
4. Now, firstly, we have created a private interface to declare private variables:
@interface AKMyScene ()
@property (nonatomic) SKSpriteNode *ant;
@end
5. Then, in the init method, we have printed a log to print the size of the screen:
NSLog(@"Size: %@", NSStringFromCGSize(size));
6. Now we will change the screen background color to white using the following
line of code:
self.backgroundColor = [SKColor colorWithRed:1.0
green:1.0 blue:1.0 alpha:1.0];
Search WWH ::




Custom Search