diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-02-12 11:05:29 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-02-12 11:05:29 +0100 |
| commit | 55c7b7dc3d7e9febd16564530add00a4eb8f8b82 (patch) | |
| tree | 980b4b9afbee411affd3b8e03ccc5d87998ca297 /src | |
| parent | 8c9d99e6e8cc05897e72da58bc9347830a267849 (diff) | |
| download | tdde30-55c7b7dc3d7e9febd16564530add00a4eb8f8b82.tar.gz | |
code analysis
Diffstat (limited to 'src')
| -rw-r--r-- | src/se/liu/gusso230/tetris/Board.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/se/liu/gusso230/tetris/Board.java b/src/se/liu/gusso230/tetris/Board.java index 1864e9f..9b423cf 100644 --- a/src/se/liu/gusso230/tetris/Board.java +++ b/src/se/liu/gusso230/tetris/Board.java @@ -6,7 +6,7 @@ import java.util.Random; public class Board { private enum GameState { - RUNNING, GAMEOVER, + RUNNING, GAME_OVER, } private GameState state = GameState.RUNNING; @@ -64,7 +64,7 @@ public class Board { fallingX = (width - falling.getBoundingBoxSize()) / 2; fallingY = -1; if (hasFallingCollision()) { - state = GameState.GAMEOVER; + state = GameState.GAME_OVER; } notifyListeners(); } |
