Switching to next brick working. /JL
This commit is contained in:
@@ -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)]
|
||||
|
Reference in New Issue
Block a user