ios原生游戏开发
[SKAction waitForDuration:1.0]
[SKAction moveByX:-100.0 y:-50 duration:1.0]];
[hull runAction:[SKAction repeatActionForever:hover];
return hull;}
” ” ”
”
)
client
3. newSpaceship SKSpriteNode *light1= [self newLight];
light1.position = CGPointMake(-28.0 6.0);
[hull addChild:light1];
SKSpriteNode *light2= [self newLight];
Light2.position = CGPointMake(28.0 6.0);
[hull addChild:light2];
4. newLight
- (SKSpriteNode *)newLight