Exemple #1
0
 def __init__(self, view, application, outliner=None, listener=None):
     listener = listener or EditorListener(application.engine, self)
     GameSceneController.__init__(self, view, application, outliner,
                                  listener)
 def __init__(self, view, application, outliner=None, listener=None):
     listener = listener or Listener(application.engine, self)
     GameSceneController.__init__(self, view, application, outliner, 
                                  listener)
     application.add_map_switch_callback(self.on_map_switched)
 def pump(self, dt):
     GameSceneController.pump(self, dt)
     player = self.application.world.get_or_create_entity("PlayerCharacter")
     if player.Agent.map and player.Agent.map != self.application.current_map.name:
         self.application.switch_map(player.Agent.map)