Sprite Kit编程指南(14)
时间:2025-04-06
时间:2025-04-06
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;
}
}
上一篇:电脑绘制卡通漫画