Ignore:
Timestamp:
Nov 9, 2006, 11:54:49 AM (16 years ago)
Author:
Sam Hocevar
Message:
  • Update code to make use of libcaca 0.99.beta9.
  • Update TODO.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ttyvaders/trunk/src/ttyvaders.c

    r1057 r1312  
    110110    {
    111111        /* Draw the sky */
    112         cucul_set_color(cv, CUCUL_COLOR_LIGHTBLUE, CUCUL_COLOR_LIGHTCYAN);
     112        cucul_set_color_ansi(cv, CUCUL_LIGHTBLUE, CUCUL_LIGHTCYAN);
    113113        for(j = h - 24; j < h - 18 + ((40 - i) * (40 - i) / (40 * 40 / 10)) + (i & 1); j++)
    114114            cucul_putchar(cv, i, j, ' ');
     
    122122        cucul_putchar(cv, i, j++, 0x2593);
    123123        cucul_putchar(cv, i, j++, 0x2593);
    124         cucul_set_color(cv, CUCUL_COLOR_LIGHTBLUE, CUCUL_COLOR_LIGHTBLUE);
     124        cucul_set_color_ansi(cv, CUCUL_LIGHTBLUE, CUCUL_LIGHTBLUE);
    125125        for( ; j < h; j++)
    126126            cucul_putchar(cv, i, j, ' ');
     
    130130        /* Draw the ground */
    131131        j = h - ground[i];
    132         cucul_set_color(cv, CUCUL_COLOR_BLACK, CUCUL_COLOR_LIGHTBLUE);
     132        cucul_set_color_ansi(cv, CUCUL_BLACK, CUCUL_LIGHTBLUE);
    133133        if(i >= 4 && ground[i] == ground[i - 6]
    134134                  && ground[i] != ground[i - 7])
     
    137137            cucul_putstr(cv, i - 6, j - 1, "(/)-(/)");
    138138        }
    139         cucul_set_color(cv, CUCUL_COLOR_RED, CUCUL_COLOR_GREEN);
     139        cucul_set_color_ansi(cv, CUCUL_RED, CUCUL_GREEN);
    140140        if(ground[i + 1] > ground[i])
    141141            cucul_putchar(cv, i, j++, 0x2588); // UTF-8: 0x259f
     
    147147        else
    148148            cucul_putchar(cv, i, j++, 0x2584);
    149         cucul_set_color(cv, CUCUL_COLOR_RED, CUCUL_COLOR_BROWN);
     149        cucul_set_color_ansi(cv, CUCUL_RED, CUCUL_BROWN);
    150150        cucul_putchar(cv, i, j++, 0x2593);
    151151        cucul_putchar(cv, i, j++, 0x2592);
     
    161161    cucul_blit(cv, 68, h - 22, alien, NULL);
    162162    cucul_blit(cv, 52, h - 16, alien, NULL);
    163     cucul_set_color(cv, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE);
     163    cucul_set_color_ansi(cv, CUCUL_WHITE, CUCUL_BLUE);
    164164    cucul_printf(cv, 2, h - 2, " %i fps ", 1000000 / (1 + caca_get_display_time(dp)));
    165165}
Note: See TracChangeset for help on using the changeset viewer.