summary refs log tree commit diff stats
path: root/Classes/GameOverScene.m
diff options
context:
space:
mode:
authorStarla Insigna <starla4444@gmail.com>2011-08-17 21:10:55 -0400
committerStarla Insigna <starla4444@gmail.com>2011-08-17 21:10:55 -0400
commit93f26235d891b7558aaf8aa0353104cdec3609c9 (patch)
tree33936e2b5a34817daf444358f2dbb2c5c56f09f2 /Classes/GameOverScene.m
parentfee8d3506b4c2f6d5933a85181de9bb8e6f5fcc4 (diff)
downloadcartcollect-93f26235d891b7558aaf8aa0353104cdec3609c9.tar.gz
cartcollect-93f26235d891b7558aaf8aa0353104cdec3609c9.tar.bz2
cartcollect-93f26235d891b7558aaf8aa0353104cdec3609c9.zip
Fixed "Game Over" tutorial bubble related bugs
Previously, Tutorial Mode decided whether to display the "Game Over" bubble in the setLives method, which is called before the FallingObjectDelegate methods. This caused two bugs: A) showing a tutorial bubble pauses the scheduler and the didMissItem method would under certain circumstances attempt to schedule a delayed action, causing the game to stop processing the tick and jump to showing the tutorial bubble without removing the falling object. When the tutorial bubble got dismissed, tick would be restarted and the player would lose another life. B) didDestroyItem under certain circumstances would attempt to show a tutorial bubble and if the "Game Over" tutorial bubble had already been set, it would be overwritten with the new tutorial bubble, resulting in the "Game Over" tutorial bubble never being shown. Both of these bugs have been fixed by moving the "Game Over" bubble code out of setLives and into didDestroyItem.

Fixes #203, #205
Diffstat (limited to 'Classes/GameOverScene.m')
0 files changed, 0 insertions, 0 deletions