From e395dc39bbc29a6291a6625aa027f9a9687ddd43 Mon Sep 17 00:00:00 2001 From: kleph Date: Mon, 17 Aug 2009 01:17:19 +0200 Subject: [PATCH] cleanup. removeobject.move() method and attriutes dx, dy --- pyshoot.py | 6 ------ 1 file changed, 6 deletions(-) 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)