diff --git a/pyshoot.py b/pyshoot.py index e03f311..6d7c5cb 100755 --- a/pyshoot.py +++ b/pyshoot.py @@ -39,8 +39,6 @@ class Object(pygame.sprite.Sprite): self.image = None self.load() self.rect = self.image.get_rect().move(pos) - self.dx = 0 - self.dy = 0 def load(self): """ load sprite list """ @@ -52,10 +50,6 @@ class Object(pygame.sprite.Sprite): index += 1 self.image = self.frames[0] - def move(self, dx, dy): - """ move the object by adding deltas passed """ - self.speed = (dx, dy) - def update(self): self.rect.move_ip(self.speed)