def start_game(): SETTINGS['running'] = 2 graphics.prepare_map_views() while MENUS: menus.delete_active_menu()
def start_game(): SETTINGS['running'] = 2 graphics.prepare_map_views() while MENUS: menus.delete_active_menu() graphics.glitch_text(WORLD_INFO['title'])
life.initiate_life('night_terror') items.initiate_all_items() SETTINGS['running'] = 3 if '--menu' in sys.argv: SETTINGS['running'] = 1 elif '--quick' in sys.argv: for world in profiles.get_worlds(): worldgen.load_world(world) break if SETTINGS['controlling']: SETTINGS['running'] = 2 gfx.prepare_map_views() else: logging.debug('No active player found. Going back to menu.') SETTINGS['running'] = 1 if '--debug' in sys.argv: _debug_host = network.DebugHost() _debug_host.start() WORLD_INFO['debug'] = _debug_host if '--profile' in sys.argv: logging.info('Profiling. Exit when completed.') cProfile.run('loop()', 'profile.dat') sys.exit() try:
life.initiate_life("night_terror") items.initiate_all_items() SETTINGS["running"] = 3 if "--menu" in sys.argv: SETTINGS["running"] = 1 elif "--quick" in sys.argv: for world in profiles.get_worlds(): worldgen.load_world(world) break if SETTINGS["controlling"]: SETTINGS["running"] = 2 gfx.prepare_map_views() else: logging.debug("No active player found. Going back to menu.") SETTINGS["running"] = 1 if "--debug" in sys.argv: _debug_host = network.DebugHost() _debug_host.start() WORLD_INFO["debug"] = _debug_host if "--profile" in sys.argv: logging.info("Profiling. Exit when completed.") cProfile.run("loop()", "profile.dat") sys.exit() try: