Bastien Sevajol il y a 7 ans
Parent
révision
9b302dea6b
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      synergine2_cocos2d/gui.py

+ 2 - 1
synergine2_cocos2d/gui.py Voir le fichier

@@ -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):