ios原生游戏开发
- (void)createSceneContents
{ self.backgroundColor = [SKColor blackColor]; self.scaleMode = SKSceneScaleModeAspectFit; }
3. HelloScene.m SpaceshipScene.h
#import “SpaceshipScene.h”
4. touchesBegan:withEvent runAction
runAction:completion: [helloNode runAction:moveSequence completion:^ { SKScene * spaceshipScene = [[SpaceshipScene alloc] initWithSize:self.size];
SKTransition *doors= [SKTransition doorsOpenVerticalWithDuration:0.5];
[self.view presentScene:spaceshipScene transition:doors];
}];
、
“
SKSpriteNode