cleanup a bit of commented obsolete code
This commit is contained in:
parent
272b60de5b
commit
9acc2876cd
1 changed files with 0 additions and 9 deletions
|
@ -52,17 +52,12 @@ class Object(pygame.sprite.Sprite):
|
||||||
index += 1
|
index += 1
|
||||||
self.image = self.frames[0]
|
self.image = self.frames[0]
|
||||||
|
|
||||||
# def draw(self):
|
|
||||||
# # self.image.blit
|
|
||||||
# globals.screen.blit(self.image, self.rect)
|
|
||||||
|
|
||||||
def move(self, dx, dy):
|
def move(self, dx, dy):
|
||||||
""" move the object by adding deltas passed """
|
""" move the object by adding deltas passed """
|
||||||
self.speed = (dx, dy)
|
self.speed = (dx, dy)
|
||||||
globals.moving_objects.add(self)
|
globals.moving_objects.add(self)
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
# self.rect = self.rect.move(self.dx, self.dy)
|
|
||||||
self.rect.move_ip(self.speed)
|
self.rect.move_ip(self.speed)
|
||||||
|
|
||||||
|
|
||||||
|
@ -168,7 +163,6 @@ wait_keypress()
|
||||||
nbframe = 0
|
nbframe = 0
|
||||||
|
|
||||||
# create_player
|
# create_player
|
||||||
# player = Object(['player1_1.bmp'], (50, 50), (0, 0))
|
|
||||||
player = Player(['player1_1.bmp'], (50, 50), (0, 0))
|
player = Player(['player1_1.bmp'], (50, 50), (0, 0))
|
||||||
|
|
||||||
# background
|
# background
|
||||||
|
@ -200,9 +194,6 @@ while not globals.die:
|
||||||
globals.bullets_list.update()
|
globals.bullets_list.update()
|
||||||
rectlist.extend(globals.bullets_list.draw(globals.screen))
|
rectlist.extend(globals.bullets_list.draw(globals.screen))
|
||||||
|
|
||||||
#for o in globals.moving_objects:
|
|
||||||
# o.update()
|
|
||||||
# o.draw()
|
|
||||||
pygame.display.update(rectlist)
|
pygame.display.update(rectlist)
|
||||||
|
|
||||||
# pygame.display.flip()
|
# pygame.display.flip()
|
||||||
|
|
Loading…
Reference in a new issue