Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class car(pygame.sprite.Sprite):
- def __init__(self,location):
- pygame.sprite.Sprite.__init__(self)
- self.image = pygame.image.load('racecar.png').convert_alpha()
- self.rect = self.image.get_rect()
- self.rect.left,self.rect.top = location
- #objects
- car1 = car([370,430])
Advertisement
Add Comment
Please, Sign In to add comment