board change
This commit is contained in:
parent
569d790144
commit
375eec002f
2
board.py
2
board.py
@ -18,7 +18,7 @@ class Board:
|
|||||||
for col in range(cols):
|
for col in range(cols):
|
||||||
cube_rect = pygame.Rect(row * size, col * size, size, size)
|
cube_rect = pygame.Rect(row * size, col * size, size, size)
|
||||||
|
|
||||||
if (row + col) % 2 == 0:
|
if (row) % 2 == 0:
|
||||||
win.blit(self.grass, cube_rect)
|
win.blit(self.grass, cube_rect)
|
||||||
else:
|
else:
|
||||||
win.blit(self.dirt, cube_rect)
|
win.blit(self.dirt, cube_rect)
|
||||||
|
Loading…
Reference in New Issue
Block a user