jabela

Draw Car 1B

Dec 19th, 2015
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. class car(pygame.sprite.Sprite):
  2.     def __init__(self,location):
  3.         pygame.sprite.Sprite.__init__(self)
  4.         self.image = pygame.image.load('racecar.png').convert_alpha()
  5.         self.rect = self.image.get_rect()
  6.         self.rect.left,self.rect.top = location
  7.  
  8. #objects
  9. car1 = car([370,430])
Advertisement
Add Comment
Please, Sign In to add comment