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/player.c

    r1460 r2990  
    1919#include "common.h"
    2020
    21 cucul_canvas_t *ship_sprite;
     21caca_canvas_t *ship_sprite;
    2222
    2323/* Init tunnel */
    2424player * create_player(game *g)
    2525{
    26     cucul_buffer_t *b;
     26    caca_buffer_t *b;
    2727
    2828    player *p = malloc(sizeof(player));
     
    3939    p->dead = 0;
    4040
    41     b = cucul_load_file("data/ship.caca");
    42     ship_sprite = cucul_import_canvas(b, "");
    43     cucul_free_buffer(b);
     41    b = caca_load_file("data/ship.caca");
     42    ship_sprite = caca_import_canvas(b, "");
     43    caca_free_buffer(b);
    4444
    4545    return p;
     
    5656        return;
    5757
    58     cucul_set_canvas_frame(ship_sprite, 0);
    59     cucul_blit(g->cv, p->x, p->y, ship_sprite, NULL);
     58    caca_set_canvas_frame(ship_sprite, 0);
     59    caca_blit(g->cv, p->x, p->y, ship_sprite, NULL);
    6060}
    6161
Note: See TracChangeset for help on using the changeset viewer.