feat: add collision handling to rotation

This commit is contained in:
Martin Prokoph
2025-06-29 14:29:38 +02:00
parent d272af3745
commit b5f65bd2bb
3 changed files with 22 additions and 7 deletions

View File

@@ -50,7 +50,7 @@ public class Tetris {
@Override
public void run() {
if (space.getCurrentTetromino() != null) {
space.getCurrentTetromino().fall(1);
space.getCurrentTetromino().fall();
ui.getGamePanel().repaint();
}
}