Ignore:
Timestamp:
Nov 16, 2003, 1:33:35 AM (19 years ago)
Author:
Sam Hocevar
Message:
  • Renamed libee to libcaca. Far less collisions.
File:
1 edited

Legend:

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

    r170 r186  
    3131void intro(void)
    3232{
    33     struct ee_sprite *foo_sprite = ee_load_sprite("data/foofight.txt");
    34     struct ee_sprite *bar_sprite = ee_load_sprite("data/barfight.txt");
    35     struct ee_sprite *baz_sprite = ee_load_sprite("data/bazfight.txt");
     33    struct caca_sprite *foo_sprite = caca_load_sprite("data/foofight.txt");
     34    struct caca_sprite *bar_sprite = caca_load_sprite("data/barfight.txt");
     35    struct caca_sprite *baz_sprite = caca_load_sprite("data/bazfight.txt");
    3636
    3737    int frame = 0;
    3838
    39     while(ee_get_key() == 0)
     39    while(caca_get_key() == 0)
    4040    {
    4141        int i, xo, yo, x[5], y[5];
     
    4343        frame++;
    4444
    45         ee_clear();
     45        caca_clear();
    4646
    47         xo = ee_get_width() / 2;
    48         yo = ee_get_height() / 2;
     47        xo = caca_get_width() / 2;
     48        yo = caca_get_height() / 2;
    4949
    50         ee_set_color(EE_RED);
    51         ee_fill_ellipse(xo, yo, 16, 8, '#');
    52         ee_set_color(EE_GREEN);
    53         ee_draw_thin_ellipse(xo, yo, 16, 8);
     50        caca_set_color(EE_RED);
     51        caca_fill_ellipse(xo, yo, 16, 8, '#');
     52        caca_set_color(EE_GREEN);
     53        caca_draw_thin_ellipse(xo, yo, 16, 8);
    5454
    5555        for(i = 0; i < 4; i ++)
     
    6161        y[4] = y[0];
    6262
    63         ee_set_color(EE_BLACK);
    64         ee_fill_triangle(x[0], y[0], x[1], y[1], x[2], y[2], ' ');
    65         ee_fill_triangle(x[0], y[0], x[3], y[3], x[2], y[2], ' ');
    66         ee_draw_line(x[0], y[0], x[2], y[2], ' ');
    67         ee_set_color(EE_GREEN);
    68         ee_draw_thin_polyline(x, y, 4);
     63        caca_set_color(EE_BLACK);
     64        caca_fill_triangle(x[0], y[0], x[1], y[1], x[2], y[2], ' ');
     65        caca_fill_triangle(x[0], y[0], x[3], y[3], x[2], y[2], ' ');
     66        caca_draw_line(x[0], y[0], x[2], y[2], ' ');
     67        caca_set_color(EE_GREEN);
     68        caca_draw_thin_polyline(x, y, 4);
    6969
    70         ee_draw_sprite(xo, yo, foo_sprite, frame % 5);
     70        caca_draw_sprite(xo, yo, foo_sprite, frame % 5);
    7171
    72         ee_refresh();
     72        caca_refresh();
    7373
    7474        usleep(40000);
Note: See TracChangeset for help on using the changeset viewer.