Updating preview positioning
This commit is contained in:
parent
04614946b5
commit
4640ed723f
@ -171,8 +171,12 @@ class Game:
|
|||||||
|
|
||||||
|
|
||||||
def new_game(self):
|
def new_game(self):
|
||||||
self.board = Board((10, 10), (10, 20), 3, (20, 20))
|
border_width = 3
|
||||||
self.board_prev = Board((300, 300), (4, 4), 3, (20, 20))
|
block_dims = 20, 20
|
||||||
|
padding = 10
|
||||||
|
|
||||||
|
self.board = Board((padding, padding), (10, 20), border_width, block_dims)
|
||||||
|
self.board_prev = Board((self.board.grid_rect.right+padding, padding), (4, 4), border_width, block_dims)
|
||||||
self.tetrad = Tetrad.random()
|
self.tetrad = Tetrad.random()
|
||||||
self.tetrad_next = Tetrad.random()
|
self.tetrad_next = Tetrad.random()
|
||||||
self.counter = 0
|
self.counter = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user