Example #1
0
def main():
    librpg.init('Object Test')
    librpg.config.graphics_config.config(tile_size=32, object_height=32,
                                         object_width=32)

    world = MicroWorld(ObjectTestMap(), char_factory)
    world.initial_state(Position(0, 0), ['Andy'])
    world.gameloop()

    exit()
Example #2
0
def main():
    librpg.init('Item Persist Test')
    librpg.config.graphics_config.config(tile_size=32,
                                         object_height=32,
                                         object_width=32,
                                         scale=2,
                                         screen_width=480,
                                         screen_height=320)
    librpg.config.menu_config.config(theme=ClassicMenuTheme())

    world = MicroWorld(PersistTestMap(), char_factory, party_factory)
    if SAVE_FILE in os.listdir('.'):
        world.load_state(SAVE_FILE)
    else:
        world.initial_state(Position(4, 3),
                             chars=['Andy', 'Brenda', 'Charles', 'Dylan'],
                             party_capacity=3,
                             party=['Andy'])
    world.gameloop()
    exit()
Example #3
0
def main():
    librpg.init('Item Persist Test')
    librpg.config.graphics_config.config(tile_size=32,
                                         object_height=32,
                                         object_width=32,
                                         scale=2,
                                         screen_width=480,
                                         screen_height=320)
    librpg.config.menu_config.config(theme=ClassicMenuTheme())

    world = MicroWorld(PersistTestMap(), char_factory, party_factory)
    if SAVE_FILE in os.listdir('.'):
        world.load_state(SAVE_FILE)
    else:
        world.initial_state(Position(4, 3),
                            chars=['Andy', 'Brenda', 'Charles', 'Dylan'],
                            party_capacity=3,
                            party=['Andy'])
    world.gameloop()
    exit()