This commit is contained in:
ThatGamerBlue
2022-06-23 20:14:14 +01:00
parent 21c2ab36e9
commit c7eaf60f03
3 changed files with 3 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ public class GameHandler implements KeyListener {
ateApple = true;
score++;
SnakeGame.currentRefreshInterval = Math.max(50, DEFAULT_REFRESH_INTERVAL - score);
if (score == 40) {
if (score == 15) {
game.stop();
}
}

View File

@@ -32,7 +32,7 @@ public class SnakeGame {
public void stop() throws Exception {
int option = JOptionPane.showConfirmDialog(null,
"You scored 40! Press Yes to launch OpenOSRS, press No to keep playing snake.",
"You scored 15! Press Yes to launch OpenOSRS, press No to keep playing snake.",
"OpenOSRS Snake", JOptionPane.YES_NO_OPTION);
if (option == JOptionPane.YES_OPTION) {
running = false;