Switching to next brick working. /JL

This commit is contained in:
2025-04-27 19:27:51 +02:00
parent 6cb3433259
commit ce48cb2936
2 changed files with 6 additions and 1 deletions

View File

@@ -47,8 +47,11 @@ class Brick:
return True if self.state == enums.BrickState.Current else False
def update(self):
if self.y + self.rows == globals.GRID_HEIGHT:
return False
self.y += 1
self.location = (self.x, self.y)
return True
def rotate_clockwise(self, shape):
return [list(row)[::-1] for row in zip(*shape)]