def to_pygame(self, blitable): """Converts object coordinates into pygame coordinates, given lower left coordinates of an object and the object's height.""" # Get top left corner, and convert to pygame coordinates rect = Rect(blitable.image.get_rect()) rect.offset(blitable.position) new_position = self.to_pygame_coords(rect.bottom_left) new_position = new_position + Vector(0, -blitable.image.get_height()) return new_position