Ejemplo n.º 1
0
def pre_setup_world():
	language.load_strings()
	create_all_tiles()
	WORLD_INFO['lights'] = []

	for key in ITEMS.keys():
		del ITEMS[key]
Ejemplo n.º 2
0
def pre_setup_world():
    language.load_strings()
    create_all_tiles()
    WORLD_INFO['lights'] = []

    for key in ITEMS.keys():
        del ITEMS[key]
Ejemplo n.º 3
0
        )
        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()
    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')
Ejemplo n.º 4
0
        CYTHON_ENABLED = False
        logging.warning("[Cython] ImportError with module: %s" % e)
        logging.warning("[Cython] Certain functions can run faster if compiled with Cython.")
        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