1
Fork 0

added player traits, because constants dont work :/

This commit is contained in:
Jake Howard 2015-05-06 09:52:00 +01:00
parent a20a1d361d
commit 788a58f014

View file

@ -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