Blank the screen on each frame
authorStefano Rivera <stefano@rivera.za.net>
Sun, 11 May 2014 16:17:28 +0000 (18:17 +0200)
committerStefano Rivera <stefano@rivera.za.net>
Sun, 11 May 2014 16:17:28 +0000 (18:17 +0200)
naja/engine.py

index 1c6b70ac8a7917871edae10512acfc90e11b80d2..a8e01460c8b345336f874f0c5fc104b7bda26289 100644 (file)
@@ -13,6 +13,7 @@ class Engine(object):
     def run(self):
         clock = pygame.time.Clock()
         while True:
     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()
             for ev in pygame.event.get():
                 if ev.type == pgl.QUIT or QuitGameEvent.matches(ev):
                     self.quit_game()