1
Fork 0

added storage of type

This commit is contained in:
Jake Howard 2015-05-07 19:39:08 +01:00
parent b31fad219e
commit 9955f7aa5b

View file

@ -12,6 +12,7 @@ class Bullet(pygame.sprite.Sprite):
self.rect.x = parent.rect.x + parent.width/2 self.rect.x = parent.rect.x + parent.width/2
self.rect.y = parent.rect.y self.rect.y = parent.rect.y
self.speed = 5 self.speed = 5
self.type = "TARGET"
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