From 1a46e13708b0b177441df7c58a40d6c7811ecf3e Mon Sep 17 00:00:00 2001 From: kleph Date: Mon, 17 Aug 2009 00:47:59 +0200 Subject: [PATCH] add an ugly fix to force to draw the player all the time --- pyshoot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)