1
Fork 0

Storing more variables in the player, because globals messed up!

This commit is contained in:
Jake Howard 2015-05-07 19:43:09 +01:00
parent dda6e8dd9d
commit a352c41651

View file

@ -13,6 +13,8 @@ class Shooter(pygame.sprite.Sprite):
self.window_rect = window.get_rect()
self.score = 0
self.OP = True
self.level = 0
self.lives = 3
def set_position(self,x,y):
self.rect.x, self.rect.y = x,y