Minor optimizations.
[python-bulletml.git] / bulletml-runner
index fc49988..96b1efb 100755 (executable)
@@ -29,7 +29,7 @@ def main(argv):
         active = set([source])
         source.vanished = True
         print filename
-        print "  Loaded %d top-level actions." % len(source.actions)
+        print "  Loaded %d top-level actions." % len(source._actions)
         frames = 0
         total = 0
         paused = False
@@ -98,15 +98,6 @@ def main(argv):
 
             clock.tick(60)
 
-        for event in pygame.event.get():
-            if event.type == pygame.QUIT:
-                raise SystemExit
-            elif event.type == pygame.KEYDOWN:
-                if event.key == pygame.K_SPACE:
-                    paused ^= True
-                elif event.key == pygame.K_RIGHT:
-                    go = True
-
         print "  Finished: %04d: %d bullets." % (frames, total)
 
 if __name__ == "__main__":