Stefan4472 / GalaxyRun

A space-themed infinite runner for Android
GNU General Public License v3.0
0 stars 0 forks source link

EndGame Logic #87

Closed Stefan4472 closed 7 years ago

Stefan4472 commented 7 years ago

GameView has "spaceshipDead" flag. When spaceship is destroyed and has finished the animation, this is set to true. This slows down the scrollspeed to a halt. Once scrollspeed hits zero, onGameFinished() is fired and the game over dialog shows. Stats from the current game are saved and the player is given the option to play again or quit. Note: this will be disabled during debugging.