Пигамей Положение изображения

Я недавно начал использовать pygame, чтобы увидеть, что я могу придумать, и столкнулся с проблемой, на которую я не могу найти ответ без этого pygame.sprite.Sprite и прямо, мой вопрос в том, как мне найти позицию изображение, поскольку мне нужно его положение, чтобы рассчитать угол поворота. Если это поможет, вот код, который я использую:

import sys, pygame, math, time;
from pygame.locals import *;
spaceship = ('spaceship.png')
mouse_c = ('crosshair.png')
backg = ('background.jpg')
fire_beam = ('beam.png')
pygame.init()
screen = pygame.display.set_mode((800, 600))
bk = pygame.image.load(backg).convert_alpha()
mousec = pygame.image.load(mouse_c).convert_alpha()
space_ship = pygame.image.load(spaceship).convert_alpha()
f_beam = pygame.image.load(fire_beam).convert_alpha()
clock = pygame.time.Clock()
pygame.mouse.set_visible(False)
space_ship_rect = space_ship.get_rect() #added
while True:
screen.blit(bk, (0, 0))
for event in pygame.event.get():
    if event.type == QUIT:
        pygame.quit()
        sys.exit()
    elif event.type == MOUSEBUTTONDOWN and event.button == 1:
        print("Left Button Pressed")
    elif event.type == MOUSEBUTTONDOWN and event.button == 3:
        print("Right Button Pressed")
    if event.type == MOUSEMOTION:
        x1, y1 = pygame.mouse.get_pos()
        x2, y2 = space_ship_rect.x, space_ship_rect.y #added
        dx, dy = x2 - x1, y2 - y1
        rads = math.atan2(dx, dy)
        degs = math.degrees(rads)
        print degs
        pygame.transform.rotate(space_ship, degs)
        pygame.display.update()
pos = pygame.mouse.get_pos()
screen.blit(mousec, (pos))
#screen.blit(space_ship, (375, 300)) #space_ship_rect did not work here.
pygame.display.update()

Ответы на вопрос(1)

Ваш ответ на вопрос