ev.apply(self)
def change_scene(self, scene):
- self._apply_events(self._scene.exit(self._world))
+ self._apply_events(self._scene.exit(self._world.proxy()))
self._scene = scene
- self._apply_events(self._scene.enter(self._world))
+ self._apply_events(self._scene.enter(self._world.proxy()))
def change_world(self, *args, **kw):
self._world.apply_event(*args, **kw)
@apply_events
def update(self, dt):
- return self._scene.update(self._world, dt)
+ return self._scene.update(self._world.proxy(), dt)
def draw(self):
self._scene.draw(self._app.screen, self._viewport)