feat: improve texture & design

This commit is contained in:
Martin Prokoph
2025-06-28 21:51:45 +02:00
parent a906bc5381
commit 4c0f8d1c02
5 changed files with 32 additions and 10 deletions

View File

@@ -52,8 +52,10 @@ public class Tetris {
};
timer.scheduleAtFixedRate(gravityTask, 1, Settings.difficulty.getTimerPeriod());
}
public static void stopGame() {
gravityTask.cancel();
timer.purge();
if (ui.getMenuPanel() instanceof ScoreMenu) ((ScoreMenu) Tetris.ui.getMenuPanel()).gameOver();
ui.transferFocus();
}