Beispiel #1
0
def loadConfigs():
    global _configs
    _configs["game"] = loadConfig("game")
    _configs["player"] = loadConfig("player")
    _configs["zones"] = loadConfig("zones")

    setupGameConfigs()
    setupScreenConfigs()
Beispiel #2
0
def init():
    global config, background, logger, surface, debug_background
    config = loadConfig("ui")
    logger = outputLogger("  UI   ")
    logger.info("Initializing.")
    rect = pygame.Rect(0, game.resolution[1] - height,
                       game.resolution[0], 220)
    background = game.stage.subsurface(rect)
    debug_background = pygame.surface.Surface((960, 140))
    debug_background.fill(colors.BLACK)
    image = pygame.image.load(imagePath("ui_bg.jpg"))
    background.blit(image, (0, 0))
    loadTypography()
    loadModules()
Beispiel #3
0
def init():
    configs = loadConfig("aethers")
    for aether_name in configs["enabled_aethers"]:
        aethers[aether_name] = Aether(aether_name)