Exemplo n.º 1
0
    def get_path(self, *args):
        """
        Mock for assets.get_path.

        Simply set the `assets_root` argument to the test assets directory.

        """
        return assets.get_path( *args, assets_root=self.TEST_ASSETS_ROOT)
Exemplo n.º 2
0
def init():
    # Dummy console
    # FONT = assets.get_path('fonts', 'terminal.png')
    FONT = assets.get_path('fonts', 'terminal10x10_gs_tc.png')
    # glob.con = libtcod.console_new(CAM_WIDTH, CAM_HEIGHT)

    libtcod.console_set_custom_font(
        FONT, libtcod.FONT_TYPE_GREYSCALE | libtcod.FONT_LAYOUT_TCOD
    )
    libtcod.console_init_root(
        settings.SCREEN_W, settings.SCREEN_H, 'Barbarian Quest III', False
    )
    libtcod.sys_set_fps(settings.LIMIT_FPS)