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
def forceUpdateWithCamera(self): self.updateWithCamera(*camera.getCameraXY())
def getScreenPosition(self): if self.follow_camera: return self.getPos() else: return list(map(operator.sub, self.getPos(), camera.getCameraXY()))