Skip to content

Commit b07dec7

Browse files
committed
Fix a bug in WallGrid
allow any size of the grid, not just 9x9
1 parent 6b41ba6 commit b07dec7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ def __init__(self, grid, walls, bank, palette=None):
389389
self.move(self.x - 8, self.y - 8)
390390

391391
def update(self):
392-
for y in range(9):
393-
for x in range(9):
392+
for y in range(self.height):
393+
for x in range(self.width):
394394
t = 0
395395
bit = 1
396396
for dy in (-1, 0):

0 commit comments

Comments
 (0)