Fix initial block placement
This commit is contained in:
@@ -1138,6 +1138,7 @@ class Game:
|
|||||||
def move_piece_back_to_top(self):
|
def move_piece_back_to_top(self):
|
||||||
self.current_block_pos = Cell(
|
self.current_block_pos = Cell(
|
||||||
self.BOARD_SIZE.width // 2
|
self.BOARD_SIZE.width // 2
|
||||||
|
- self.current_block.x_adj
|
||||||
- math.ceil(self.current_block.bounding_box_width / 2),
|
- math.ceil(self.current_block.bounding_box_width / 2),
|
||||||
0 - self.current_block.y_adj,
|
0 - self.current_block.y_adj,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user