Mercurial > fife-parpg
diff demos/shooter/run.py @ 465:4e58dab2fcdc
Added the high score dialog to ask for players name (with no validation yet)
Enabled modal execution.
Fixed a small bug where the scene tries to remove a projectile that it already removed from the scene.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Tue, 13 Apr 2010 20:23:13 +0000 |
parents | be035dff788a |
children | 3164715a0621 |
line wrap: on
line diff
--- a/demos/shooter/run.py Tue Apr 13 19:43:31 2010 +0000 +++ b/demos/shooter/run.py Tue Apr 13 20:23:13 2010 +0000 @@ -49,7 +49,7 @@ fife.Key.ESCAPE,]) self.quit = False - + def keyPressed(self, evt): keyval = evt.getKey().getValue() keystr = evt.getKey().getAsString().lower() @@ -68,6 +68,7 @@ def __init__(self): super(Shooter,self).__init__() pychan.init(self.engine, debug=False) + pychan.setupModalExecution(self.mainLoop,self.breakFromMainLoop) self.world = world.World(self, self.engine) self.listener = ApplicationListener(self.engine, self.world)