Example #1
0
 def getWorldDropPosition(self):
     return CoreApp.pixelsToWorld((self.position[0] + DROP_OFFSET_X, self.position[1] + DROP_OFFSET_Y))
Example #2
0
 def getWorldVelocity(self):
     return CoreApp.pixelsToVelocity(self.velocity)
def draw(entityList):
   for entity in entityList:
        draw_image = pygame.transform.rotate(entity.image, math.degrees(entity.bodyList[0].angle))
        pos = CoreApp.worldToPixels(entity.bodyList[0].worldCenter)
        CoreApp.screen.blit(draw_image, (pos[0] - draw_image.get_width()/2 , pos[1] - draw_image.get_height()/2) )