Add mostplayed.
Don't ask for highscore if 0
This commit is contained in:
@@ -161,9 +161,16 @@ public class PlayState extends GameState {
|
||||
}
|
||||
|
||||
private void endGame() {
|
||||
gsm.setState(State.GAMEOVER_STATE);
|
||||
if(sh.getProgress()/1000 < 5000)
|
||||
{
|
||||
sql.addPlaydata(sh.getCurrentSong(), sh.getCurrentSongInstance(), sh.getProgress()/1000, enemies_missed, enemies_hit, buttons_pressed, joystick_moved);
|
||||
sh.getCurrentSongInstance().played();
|
||||
}
|
||||
|
||||
if(currentScore == 0)
|
||||
gsm.setState(State.MENU_STATE);
|
||||
else
|
||||
gsm.setState(State.GAMEOVER_STATE);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user