Example #1
0
 def getScreenPosition(self, centered = False):
     if centered:
         pos = self.getCenterPosition()
     else:
         pos = self.getPos()
         if self.follow_camera:
             pos = list(map(operator.sub, pos, camera.getCameraXY()))
     return pos
Example #2
0
 def forceUpdateWithCamera(self):
     self.updateWithCamera(*camera.getCameraXY())
Example #3
0
 def getScreenPosition(self):
     if self.follow_camera:
         return self.getPos()
     else:
         return list(map(operator.sub, self.getPos(), camera.getCameraXY()))