Storing more variables in the player, because globals messed up!
This commit is contained in:
parent
dda6e8dd9d
commit
a352c41651
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,8 @@ class Shooter(pygame.sprite.Sprite):
|
||||||
self.window_rect = window.get_rect()
|
self.window_rect = window.get_rect()
|
||||||
self.score = 0
|
self.score = 0
|
||||||
self.OP = True
|
self.OP = True
|
||||||
|
self.level = 0
|
||||||
|
self.lives = 3
|
||||||
|
|
||||||
def set_position(self,x,y):
|
def set_position(self,x,y):
|
||||||
self.rect.x, self.rect.y = x,y
|
self.rect.x, self.rect.y = x,y
|
||||||
|
|
Reference in a new issue