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

Legend:

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

    r164 r186  
    2727#include "common.h"
    2828
    29 struct ee_sprite *medium_sprite;
    30 struct ee_sprite *small_sprite;
     29struct caca_sprite *medium_sprite;
     30struct caca_sprite *small_sprite;
    3131
    3232void init_explosions(game *g, explosions *ex)
     
    3939    }
    4040
    41     medium_sprite = ee_load_sprite("data/xplmed.txt");
    42     small_sprite = ee_load_sprite("data/xplsmall.txt");
     41    medium_sprite = caca_load_sprite("data/xplmed.txt");
     42    small_sprite = caca_load_sprite("data/xplsmall.txt");
    4343}
    4444
     
    7777    {
    7878#if 0
    79         ee_set_color(GREEN);
    80         ee_goto(ex->x[i] + 3, ex->y[i]);
    81         switch(ee_rand(0,2))
     79        caca_set_color(GREEN);
     80        caca_goto(ex->x[i] + 3, ex->y[i]);
     81        switch(caca_rand(0,2))
    8282        {
    8383        case 0:
    84             ee_putchar('p');
    85             ee_putchar('i');
    86             ee_putchar('f');
     84            caca_putchar('p');
     85            caca_putchar('i');
     86            caca_putchar('f');
    8787            break;
    8888        case 1:
    89             ee_putchar('p');
    90             ee_putchar('a');
    91             ee_putchar('f');
     89            caca_putchar('p');
     90            caca_putchar('a');
     91            caca_putchar('f');
    9292            break;
    9393        case 2:
    94             ee_putchar('p');
    95             ee_putchar('o');
    96             ee_putchar('u');
    97             ee_putchar('f');
     94            caca_putchar('p');
     95            caca_putchar('o');
     96            caca_putchar('u');
     97            caca_putchar('f');
    9898            break;
    9999        }
    100         ee_putchar('!');
     100        caca_putchar('!');
    101101#endif
    102102
     
    104104        {
    105105            case EXPLOSION_MEDIUM:
    106                 ee_draw_sprite(ex->x[i], ex->y[i], medium_sprite,
     106                caca_draw_sprite(ex->x[i], ex->y[i], medium_sprite,
    107107                               10 - ex->n[i]);
    108108                break;
    109109            case EXPLOSION_SMALL:
    110                 ee_draw_sprite(ex->x[i], ex->y[i], small_sprite,
     110                caca_draw_sprite(ex->x[i], ex->y[i], small_sprite,
    111111                               6 - ex->n[i]);
    112112                break;
Note: See TracChangeset for help on using the changeset viewer.