feat: save highscores

This commit is contained in:
Martin Prokoph
2025-08-01 19:07:20 +02:00
parent 8037f9a323
commit 93c0ee5f95
4 changed files with 33 additions and 0 deletions

View File

@@ -65,6 +65,10 @@ public class Space {
return gameMap;
}
public int getScore() {
return score;
}
public void onLinesChanged(Tetromino tetromino, int... lines) {
int combo = 0;
Set<Integer> completedLines = new TreeSet<>();