projects
/
koperkapel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a butter knife to level 1.
[koperkapel.git]
/
koperkapel
/
scenes
/
base.py
diff --git
a/koperkapel/scenes/base.py
b/koperkapel/scenes/base.py
index 8bc803ae2ba0fbdc29db684f643be3a046300b17..24a8c615fa06c43f97fe893f302d5aab3197f26b 100644
(file)
--- a/
koperkapel/scenes/base.py
+++ b/
koperkapel/scenes/base.py
@@
-20,6
+20,7
@@
class Engine:
self._app = app
self._scene = scene
self._world = world
self._app = app
self._scene = scene
self._world = world
+ self._update_vehicle = False
def _apply_events(self, events):
if not events:
def _apply_events(self, events):
if not events:
@@
-28,8
+29,10
@@
class Engine:
ev.apply(self)
def change_scene(self, scene):
ev.apply(self)
def change_scene(self, scene):
+ print('here', self._scene)
self._apply_events(self._scene.exit(self._world.proxy()))
self._scene = scene
self._apply_events(self._scene.exit(self._world.proxy()))
self._scene = scene
+ print('there', self._scene)
self._apply_events(self._scene.enter(self._world.proxy()))
def change_world(self, *args, **kw):
self._apply_events(self._scene.enter(self._world.proxy()))
def change_world(self, *args, **kw):