From 9acc2876cd7c0c002819b55a4ec4116674cca31d Mon Sep 17 00:00:00 2001 From: kleph Date: Sat, 15 Aug 2009 02:37:10 +0200 Subject: [PATCH] cleanup a bit of commented obsolete code --- pyshoot.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pyshoot.py b/pyshoot.py index 17880a3..6e20cab 100755 --- a/pyshoot.py +++ b/pyshoot.py @@ -52,17 +52,12 @@ class Object(pygame.sprite.Sprite): index += 1 self.image = self.frames[0] -# def draw(self): -# # self.image.blit -# globals.screen.blit(self.image, self.rect) - def move(self, dx, dy): """ move the object by adding deltas passed """ self.speed = (dx, dy) globals.moving_objects.add(self) def update(self): - # self.rect = self.rect.move(self.dx, self.dy) self.rect.move_ip(self.speed) @@ -168,7 +163,6 @@ wait_keypress() nbframe = 0 # create_player -# player = Object(['player1_1.bmp'], (50, 50), (0, 0)) player = Player(['player1_1.bmp'], (50, 50), (0, 0)) # background @@ -200,9 +194,6 @@ while not globals.die: globals.bullets_list.update() rectlist.extend(globals.bullets_list.draw(globals.screen)) - #for o in globals.moving_objects: - # o.update() - # o.draw() pygame.display.update(rectlist) # pygame.display.flip()