From 7d477cf85abea0402d0a41fe81d912a57a107e27 Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Sun, 11 May 2014 18:17:28 +0200 Subject: [PATCH] Blank the screen on each frame --- naja/engine.py | 1 + 1 file changed, 1 insertion(+) 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() -- 2.34.1