NSScreencast Episode #112 Giggletouch
タッチすると図形と赤ん坊の声が出るアプリの更新
- old app iOS 5
- Sprite Kit
- XCodeでSprite Kitゲームテンプレート
- 初心者の為のSprite Kit チュートリアル | Ray Wenderlich
- 座標の原点が左下(左上ではない)
- GTViewController
- SKView, SKScene
- [skView presentScene:scene];
- didReceiveMemoryWarning
- display frame rate
- skView.showsFPS = YES;
- skView.showsNodeCount = YES;
- SKView, SKScene
- GTMyScene
- touchesBegan
- spawnNodeAtLocation
- [sprite runAction:[SKAction colorizeWithColor:[self randomColor]
- spawnNodeAtLocation
- touchesMoved
- bunch of nodes, frame rate drops
- randomDuration
- (CGFloat)(arc4random() % 3 + 1);
- randomScale, randomShape, randomColor, randomAngle
- update:(CFTimeInterval)currentTime
- / Called before each frame is rendered /
- touchesBegan
- SKAction
- SKAction *wait = [SKAction waitForDuration:5];
- SKAction *fadeOut = [SKAction fadeAlphaTo:0 duration:1];
- [myLabel runAction:[SKAction sequence:@[wait, fadeOut]]];
- repeatActionForever
- SKAction *group = [SKAction group:@[rotate, scale]];
- [sprite runAction:[SKAction sequence:@[ group, fadeAction ]]];
- .xcassets
- Sketch
- 画像編集ツール
- ¥7,800