Rotation is now working. /JL

This commit is contained in:
2025-04-25 17:12:10 +02:00
parent 5cbbf9bdcb
commit 3b76f02f92
5 changed files with 57 additions and 44 deletions

View File

@@ -1,16 +1,16 @@
def init():
global BRICKS
BRICKS = [
" X " + "\n" + "XXX" + "\n" + " X ",
" X" + "\n" + "XXX",
"X " + "\n" + "XXX",
"X",
"XXXX",
"XX" + "\n" + "XX",
" XX" + "\n" + "XX ",
"XX " + "\n" + " XX",
"X X" + "\n" + "XXX",
"XXX" + "\n" + " X "
[[0,1,0], [1,1,1], [0,1,0]],
[[0, 0, 1], [1, 1, 1]],
[[1, 0, 0], [1, 1, 1]],
[[1]],
[[1, 1, 1, 1]],
[[1, 1], [1, 1]],
[[0, 1, 1], [1, 1, 0]],
[[1, 1, 0], [0, 1, 1]],
[[1, 0, 1], [1, 1, 1]],
[[1, 1, 1], [0, 1, 0]]
]
global TILE_SIZE
TILE_SIZE = 48
@@ -18,5 +18,5 @@ def init():
GRID_WIDTH = 10
global GRID_HEIGHT
GRID_HEIGHT = 18
global grid
grid = None
global dropgrid
dropgrid = [[0 for _ in range(GRID_WIDTH)] for _ in range(GRID_HEIGHT)]