gamegrid, falling, Tetrominos, collision and deleting rows, GUI Menus and Score
This commit is contained in:
+6
-1
@@ -54,4 +54,9 @@ class Tetrominos:
|
||||
def move(self, dx, dy):
|
||||
"""Move the tetromino."""
|
||||
self.x += dx
|
||||
self.y += dy
|
||||
self.y += dy
|
||||
|
||||
def instant_drop(self, grid):
|
||||
"""Move the tetromino to the lowest possible position."""
|
||||
while not grid.check_collision(self.shape, self.x, self.y + 1):
|
||||
self.y += 1
|
||||
|
||||
Reference in New Issue
Block a user