projects
/
python-bulletml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor optimizations.
[python-bulletml.git]
/
bulletml-runner
diff --git
a/bulletml-runner
b/bulletml-runner
index
fc49988
..
96b1efb
100755
(executable)
--- a/
bulletml-runner
+++ b/
bulletml-runner
@@
-29,7
+29,7
@@
def main(argv):
active = set([source])
source.vanished = True
print filename
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
frames = 0
total = 0
paused = False
@@
-98,15
+98,6
@@
def main(argv):
clock.tick(60)
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__":
print " Finished: %04d: %d bullets." % (frames, total)
if __name__ == "__main__":