Example #1
0
def main():
    app = RPGApplication(settings)
    view = GameSceneView(app)
    controller = GameSceneController(view, app)
    app.create_world()
    app.push_mode(controller)
    app.run()
Example #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()
Example #3
0
def main():
    app = RPGApplication(settings)
    app.load_components("combined.yaml")
    app.load_behaviours("combined.yaml")
    app.load_actions("combined.yaml")
    app.register_components()
    app.register_behaviours()
    app.register_actions()
    view = GameSceneView(app)
    controller = Controller(view, app)
    controller.listener.is_outlined = True
    controller.outliner.outline_ignore.append("PlayerCharacter")
    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()
Example #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)
    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()