Ignore:
Timestamp:
Oct 18, 2008, 11:42:24 PM (11 years ago)
Author:
Sam Hocevar
Message:

Port ttyvaders to the unified libcaca 0.99.beta15 API.

File:
1 edited

Legend:

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

    r1460 r2990  
    3434    srand(time(NULL));
    3535
    36     g->cv = cucul_create_canvas(0, 0);
     36    g->cv = caca_create_canvas(0, 0);
    3737    if(!g->cv)
    3838        return 1;
     
    4545
    4646    /* Initialize our program */
    47     g->w = cucul_get_canvas_width(g->cv);
    48     g->h = cucul_get_canvas_height(g->cv);
     47    g->w = caca_get_canvas_width(g->cv);
     48    g->h = caca_get_canvas_height(g->cv);
    4949
    5050intro(g);
     
    5555    /* Clean up */
    5656    caca_free_display(g->dp);
    57     cucul_free_canvas(g->cv);
     57    caca_free_canvas(g->cv);
    5858
    5959    return 0;
     
    195195
    196196            /* XXX: to be removed */
    197             if(cucul_rand(0, 9) == 0)
     197            if(caca_rand(0, 9) == 0)
    198198            {
    199199                int list[3] = { ALIEN_FOO, ALIEN_BAR, ALIEN_BAZ };
    200200
    201                 add_alien(g, g->al, 0, rand() % g->h / 2, list[cucul_rand(0,2)]);
     201                add_alien(g, g->al, 0, rand() % g->h / 2, list[caca_rand(0,2)]);
    202202            }
    203203
     
    228228
    229229        /* Clear screen */
    230         cucul_clear_canvas(g->cv);
     230        caca_clear_canvas(g->cv);
    231231
    232232        /* Print starfield, tunnel, aliens, player and explosions */
Note: See TracChangeset for help on using the changeset viewer.