|
@@ -109,7 +109,8 @@ class GridManager(object):
|
109
|
109
|
return cell_x, cell_y
|
110
|
110
|
|
111
|
111
|
def get_pixel_position_of_grid_position(self, grid_position: typing.Tuple[int, int]) -> typing.Tuple[int, int]:
|
112
|
|
- return grid_position[0] * self.cell_width, grid_position[1] * self.cell_height
|
|
112
|
+ return grid_position[0] * self.cell_width + self.cell_width,\
|
|
113
|
+ grid_position[1] * self.cell_height + self.cell_height
|
113
|
114
|
|
114
|
115
|
|
115
|
116
|
class MinMaxRect(cocos.cocosnode.CocosNode):
|