Sprite Kit编程指南(13)
时间:2025-04-06
时间:2025-04-06
ios原生游戏开发
iOS UIResponder OS X NSResponder
Sprite Kit - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
SKNode *helloNode = [self childNodeWithName:@“helloNode”];
If(helloNode != nil)
{
= nil;
SKAction *moveUp = [SKAction moveByX:0 y:100.0 duration:0.5];
SKAction *zoom = [SKAction scaleTo:2.0 duration:0.25];
SKAction *pause = [SKAction waitForDuration:0.5];
SKAction *fadeAway = SKAction fadeWithDuration:0.25];
SKAction *remove = [SKAction removeFromParent];
SKAction * moveSequence = [SKAction sequence:@[moveUp, zoom, pause, fadeAway, remo
[helloNode runAction moveSequence];
}
}
”
) ;
1
0
上一篇:电脑绘制卡通漫画