diff --git a/pyshoot.py b/pyshoot.py index 70da068..698c26d 100755 --- a/pyshoot.py +++ b/pyshoot.py @@ -234,13 +234,16 @@ pygame.display.flip() globals.moving_objects.add(player) while not globals.die: - # erase moving objects + # erase previously moved objects globals.moving_objects.clear(globals.screen, globals.background) globals.bullets_list.clear(globals.screen, globals.background) # update game logic globals.moving_objects.update() globals.bullets_list.update() + + # add player (if it's not already in the group). ugly, but ok for now. + globals.moving_objects.add(player) # drawing rectlist = globals.moving_objects.draw(globals.screen)