fifteen
This commit is contained in:
@@ -75,7 +75,7 @@ public class GameHandler implements KeyListener {
|
|||||||
ateApple = true;
|
ateApple = true;
|
||||||
score++;
|
score++;
|
||||||
SnakeGame.currentRefreshInterval = Math.max(50, DEFAULT_REFRESH_INTERVAL - score);
|
SnakeGame.currentRefreshInterval = Math.max(50, DEFAULT_REFRESH_INTERVAL - score);
|
||||||
if (score == 40) {
|
if (score == 15) {
|
||||||
game.stop();
|
game.stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ public class SnakeGame {
|
|||||||
|
|
||||||
public void stop() throws Exception {
|
public void stop() throws Exception {
|
||||||
int option = JOptionPane.showConfirmDialog(null,
|
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);
|
"OpenOSRS Snake", JOptionPane.YES_NO_OPTION);
|
||||||
if (option == JOptionPane.YES_OPTION) {
|
if (option == JOptionPane.YES_OPTION) {
|
||||||
running = false;
|
running = false;
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ public class RuneLite
|
|||||||
if (!ArrayUtils.contains(args, BYPASS_ARG))
|
if (!ArrayUtils.contains(args, BYPASS_ARG))
|
||||||
{
|
{
|
||||||
JOptionPane.showMessageDialog(null,
|
JOptionPane.showMessageDialog(null,
|
||||||
String.format("If you want to actually use the client despite the risks add\n%s\nto your launch arguments.\n\nOr score 40 and the client opens anyway.\nI'm not your dad.",
|
String.format("If you want to actually use the client despite the risks add\n%s\nto your launch arguments.\n\nOr score 15 and the client opens anyway.\nI'm not your dad.",
|
||||||
"unknown".equals(RuneLiteProperties.getLauncherVersion()) ? BYPASS_ARG : ("--clientargs=\"" + BYPASS_ARG + "\"")),
|
"unknown".equals(RuneLiteProperties.getLauncherVersion()) ? BYPASS_ARG : ("--clientargs=\"" + BYPASS_ARG + "\"")),
|
||||||
"OpenOSRS",
|
"OpenOSRS",
|
||||||
JOptionPane.INFORMATION_MESSAGE);
|
JOptionPane.INFORMATION_MESSAGE);
|
||||||
|
|||||||
Reference in New Issue
Block a user