Ejemplo n.º 1
0
def main():
    app = RPGApplication(settings)
    view = GameSceneView(app)
    controller = GameSceneController(view, app)
    app.create_world()
    app.push_mode(controller)
    app.run()
Ejemplo n.º 2
0
def main():
    app = RPGApplication(settings)
    app.load_components("combined.yaml")
    app.register_components()
    view = GameSceneView(app)
    controller = GameSceneController(view, app)
    app.create_world()
    app.load_maps()
    app.switch_map("Level1")
    app.push_mode(controller)    
    app.run()
Ejemplo n.º 3
0
def main():
    app = RPGApplication(settings)
    app.load_components("combined.yaml")
    app.load_behaviours("combined.yaml")
    app.register_components()
    app.register_behaviours()
    view = GameSceneView(app)
    controller = GameSceneController(view, app)
    app.create_world()
    app.load_maps()
    world = app.world
    world.import_agent_objects()
    world.load_and_create_entities()
    app.switch_map("Level1")
    app.push_mode(controller)
    app.run()
Ejemplo n.º 4
0
def main():
    app = RPGApplication(settings)
    app.load_components("combined.yaml")
    app.load_behaviours("combined.yaml")
    app.register_components()
    app.register_behaviours()
    view = GameSceneView(app)
    controller = GameSceneController(view, app, listener=Listener(app.engine))
    app.create_world()
    app.load_maps()
    world = app.world
    world.import_agent_objects()
    world.load_and_create_entities()
    app.switch_map("Level1")
    player = world.get_entity("PlayerCharacter")
    fifeagent.run(player, (0, 7))
    app.push_mode(controller)
    app.run()