Blank the screen on each frame
[naja.git] / naja / engine.py
index 1c6b70ac8a7917871edae10512acfc90e11b80d2..a8e01460c8b345336f874f0c5fc104b7bda26289 100644 (file)
@@ -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()