From: Stefano Rivera Date: Sun, 11 May 2014 16:17:28 +0000 (+0200) Subject: Blank the screen on each frame X-Git-Tag: 0.1~413^2~4 X-Git-Url: https://git.ctpug.org.za/?p=naja.git;a=commitdiff_plain;h=7d477cf85abea0402d0a41fe81d912a57a107e27 Blank the screen on each frame --- diff --git a/naja/engine.py b/naja/engine.py index 1c6b70a..a8e0146 100644 --- a/naja/engine.py +++ b/naja/engine.py @@ -13,6 +13,7 @@ class Engine(object): def run(self): clock = pygame.time.Clock() while True: + self._surface.fill((0, 0, 0)) for ev in pygame.event.get(): if ev.type == pgl.QUIT or QuitGameEvent.matches(ev): self.quit_game()