Ignore:
Timestamp:
Apr 28, 2009, 6:55:01 PM (11 years ago)
Author:
Sam Hocevar
Message:
  • Toying around with the old ttyvaders version.
Location:
ttyvaders/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ttyvaders/trunk

    • Property svn:ignore
      •  

        old new  
        1313*-stamp
        1414INSTALL
         15*.ncb
         16*.suo
         17*.vcproj.*.user
  • ttyvaders/trunk/src/player.c

    r2990 r3423  
    2424player * create_player(game *g)
    2525{
    26     caca_buffer_t *b;
    27 
    2826    player *p = malloc(sizeof(player));
    2927    if(p == NULL)
     
    3937    p->dead = 0;
    4038
    41     b = caca_load_file("data/ship.caca");
    42     ship_sprite = caca_import_canvas(b, "");
    43     caca_free_buffer(b);
     39    ship_sprite = caca_create_canvas(0, 0);
     40    caca_import_file(ship_sprite, "data/ship.txt", "utf8");
    4441
    4542    return p;
     
    5653        return;
    5754
    58     caca_set_canvas_frame(ship_sprite, 0);
     55    caca_set_frame(ship_sprite, 0);
    5956    caca_blit(g->cv, p->x, p->y, ship_sprite, NULL);
    6057}
Note: See TracChangeset for help on using the changeset viewer.