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

    r2990 r3423  
    2424void init_explosions(game *g, explosions *ex)
    2525{
    26     caca_buffer_t *b;
    2726    int i;
    2827
     
    3231    }
    3332
    34     b = caca_load_file("data/xplmed.caca");
    35     medium_sprite = caca_import_canvas(b, "");
    36     caca_free_buffer(b);
     33    medium_sprite = caca_create_canvas(0, 0);
     34    caca_import_file(medium_sprite, "data/xplmed.txt", "utf8");
    3735
    38     b = caca_load_file("data/xplsmall.caca");
    39     small_sprite = caca_import_canvas(b, "");
    40     caca_free_buffer(b);
     36    small_sprite = caca_create_canvas(0, 0);
     37    caca_import_file(small_sprite, "data/xplsmall.txt", "utf8");
    4138}
    4239
     
    7572    {
    7673#if 0
    77         caca_set_fg_color(g->cv, CACA_COLOR_GREEN);
     74        caca_set_fg_color(g->cv, CACA_GREEN);
    7875        caca_goto(g->cv, ex->x[i] + 3, ex->y[i]);
    7976        switch(caca_rand(0,2))
     
    10299        {
    103100            case EXPLOSION_MEDIUM:
    104                 caca_set_canvas_frame(medium_sprite, 10 - ex->n[i]);
     101                caca_set_frame(medium_sprite, 10 - ex->n[i]);
    105102                caca_blit(g->cv, ex->x[i], ex->y[i], medium_sprite, NULL);
    106103                break;
    107104            case EXPLOSION_SMALL:
    108                 caca_set_canvas_frame(small_sprite, 6 - ex->n[i]);
     105                caca_set_frame(small_sprite, 6 - ex->n[i]);
    109106                caca_blit(g->cv, ex->x[i], ex->y[i], small_sprite, NULL);
    110107                break;
Note: See TracChangeset for help on using the changeset viewer.