import pygame,sys class Car(pygame.sprite.Sprite): def __init__(self): super().__init__() self.original_image = pygame.image.load('Audi.png') self.image = self.original_image self.rect = self.image.get_rect(center = (640,360)) self.angle = 0 self.rotation_speed = 1.8 self.direction = 0 self.forward = pygame.math.Vector2(0,-1) self.active = False def set_rotation(self): def update(self): self.set_rotation pygame.init() screen = pygame.display.set_mpde((1280,720)) clock = pygame.time.Clock() bg_track = pygame.image.load('Track.png') while True: for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() sys.exit() pygame.display.update() clock.tick(120)