ios原生游戏开发
Sprite Kit
“Hello, World ”
Hello
!
1. SpaceshipScene SKScene
2. HelloScene @interface SpaceshipScene()
@property BOOL contentCreated;
@end
@implementation SpaceshipScene
- (void)didMoveToView:(SKView *)view
{
if(!self.contentCreated)
{
[self createSceneContents];
self.contentCreated = YES;
}
}