Refactoring to use numpy. /JL
This commit is contained in:
@@ -75,7 +75,7 @@ class Brick:
|
||||
if new_x <= 0 or new_x >= globals.GRID_WIDTH or new_y >= globals.GRID_HEIGHT:
|
||||
print(f"Collision X:{new_x}, Y:{new_y}")
|
||||
return True
|
||||
if new_y >= 0 and globals.dropgrid[new_y][new_x]:
|
||||
if new_y >= 0 and globals.grid[new_y][new_x]:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user