added player traits, because constants dont work :/
This commit is contained in:
parent
a20a1d361d
commit
788a58f014
1 changed files with 3 additions and 1 deletions
|
@ -9,8 +9,10 @@ class Shooter(pygame.sprite.Sprite):
|
||||||
self.image = pygame.Surface((width, height))
|
self.image = pygame.Surface((width, height))
|
||||||
self.image.fill(color)
|
self.image.fill(color)
|
||||||
self.rect = self.image.get_rect()
|
self.rect = self.image.get_rect()
|
||||||
self.speed = 4
|
self.speed = 3
|
||||||
self.window_rect = window.get_rect()
|
self.window_rect = window.get_rect()
|
||||||
|
self.score = 0
|
||||||
|
self.OP = True
|
||||||
|
|
||||||
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