feat: check for collisions with other tetrominos

This commit is contained in:
Martin Prokoph
2025-06-28 19:32:26 +02:00
parent 41af446f94
commit 7aa1b0e73c
6 changed files with 39 additions and 17 deletions

View File

@@ -15,16 +15,6 @@ public class Space {
gameMap = new Color[12][7];
nextShape = getNextShape();
score = 0;
Tetromino mino = new Tetromino(TetrominoShape.T);
mino.move(-2);
mino.fall(10);
onLinesChanged(mino, 9, 10, 11);
Tetromino mina = new Tetromino(TetrominoShape.LINE);
mina.move(1);
mina.rotate();
mina.fall(11);
onLinesChanged(mina, 9, 10, 11);
}
public void spawnTetromino() {