logging.info(WINDOW_TITLE) gfx.log(WINDOW_TITLE) if os.path.exists('git-version.txt'): with open('git-version.txt', 'r') as ver: logging.info('Build %s' % ver.readline().strip()) logging.debug('Renderer: %s' % tcod.sys_get_renderer()) tiles.create_all_tiles() language.load_strings() missions.load_all_missions() alife.rawparse.create_function_map() locks.create_lock('camera_free', locked=True) gfx.init_libtcod() threads.init() #smp.init() SETTINGS['draw z-levels below'] = True SETTINGS['draw z-levels above'] = True life.initiate_life('human') life.initiate_life('dog') life.initiate_life('night_terror') items.initiate_all_items() SETTINGS['running'] = 3 if '--menu' in sys.argv:
get_input() handle_input() #Show list of maps if not passed directly if SETTINGS['running'] == 1: if menus.get_menu_by_name('Maps')>-1 or menus.get_menu_by_name('Buildings')>-1: map_selection() else: create_maps_menu('--test' in sys.argv) elif SETTINGS['running'] == 2: terraform() elif SETTINGS['running'] == 3: chunk_map() if __name__ == '__main__': create_all_tiles() items.initiate_all_items() gfx.init_libtcod(map_view_size=WINDOW_SIZE) gfx.prepare_terraform_views() gfx.log(WINDOW_TITLE) sys_set_fps(FPS_TERRAFORM) console_set_keyboard_repeat(200, 30) mapgen.create_buildings() main()
logging.warning("[Cython] Run 'python compile_cython_modules.py build_ext --inplace'") logging.info(WINDOW_TITLE) gfx.log(WINDOW_TITLE) if os.path.exists("git-version.txt"): with open("git-version.txt", "r") as ver: logging.info("Build %s" % ver.readline().strip()) logging.debug("Renderer: %s" % tcod.sys_get_renderer()) tiles.create_all_tiles() language.load_strings() alife.rawparse.create_function_map() gfx.init_libtcod() # smp.init() SETTINGS["draw z-levels below"] = True SETTINGS["draw z-levels above"] = True life.initiate_life("human") life.initiate_life("dog") life.initiate_life("night_terror") items.initiate_all_items() SETTINGS["running"] = 3 if "--menu" in sys.argv: SETTINGS["running"] = 1
#Show list of maps if not passed directly if SETTINGS['running'] == 1: if menus.get_menu_by_name('Maps') > -1 or menus.get_menu_by_name( 'Buildings') > -1: map_selection() else: create_maps_menu('--test' in sys.argv) elif SETTINGS['running'] == 2: terraform() elif SETTINGS['running'] == 3: chunk_map() if __name__ == '__main__': create_all_tiles() items.initiate_all_items() gfx.init_libtcod(map_view_size=WINDOW_SIZE) gfx.prepare_terraform_views() gfx.log(WINDOW_TITLE) sys_set_fps(FPS_TERRAFORM) console_set_keyboard_repeat(200, 30) mapgen.create_buildings() main()