feat: expand space

This commit is contained in:
Martin Prokoph
2025-06-29 09:46:00 +02:00
parent 4c0f8d1c02
commit 082ff42208
3 changed files with 12 additions and 9 deletions

View File

@@ -89,7 +89,7 @@ public class Tetromino {
}
public Color[] getLine(int line) {
Color[] l = new Color[7];
Color[] l = new Color[Tetris.getSpace().getMapWidth()];
for (int i = 0; i < l.length; i++) {
int relY = line - centerPos.getY();
if (relY >= collision.length || relY < 0) continue;