Skip to content

Commit

Permalink
Tweaked explosion animation timings, now saving on reset.
Browse files Browse the repository at this point in the history
  • Loading branch information
codehearted committed Jan 20, 2015
1 parent da09cd6 commit e4efe05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions XXO/XXO/GameBoard.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ -(void)resetBoard
{
for (boardSpace space = 0; space < 9; space++) {
[self setBoardSpace:space to:blank];
//((SKSpriteNode*)self.board[space]).position = [stdBoardPosition[space] CGPointValue];
[self.board[space] runAction:[SKAction moveTo:[stdBoardPosition[space] CGPointValue] duration:0.8]];
[((SKSpriteNode*)self.board[space]) runAction:[SKAction rotateToAngle:0 duration:1.1]];
[self.board[space] runAction:[SKAction moveTo:[stdBoardPosition[space] CGPointValue] duration:0.9]];
[((SKSpriteNode*)self.board[space]) runAction:[SKAction rotateToAngle:0 duration:1.2]];
}

}

-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
Expand Down
1 change: 1 addition & 0 deletions XXO/XXO/XXOGame.m
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ - (void)resetGame
if (self.delegate) {
[self.delegate gameDidReset];
}
[self saveGame];
}

- (void)saveGame
Expand Down

0 comments on commit e4efe05

Please sign in to comment.