Gameover toegevoegt

This commit is contained in:
Daniel
2015-06-08 14:50:38 +02:00
parent 236b74ba7c
commit 85107d85a9
4 changed files with 12 additions and 8 deletions
+2 -2
View File
@@ -114,7 +114,7 @@ public class PlayState extends GameState {
lifePoints -= 0.002 * factor;
if(lifePoints <= 0)
gsm.setState(State.MENU_STATE);
gsm.setState(State.GAMEOVER_STATE);
if(comboScore >= 100)
{
comboScore = 0;
@@ -177,7 +177,7 @@ public class PlayState extends GameState {
if(e.getButton().getButtonID() == 0)
{
gsm.setState(State.MENU_STATE);
gsm.setState(State.GAMEOVER_STATE);
}
}