Ignore:
Timestamp:
Nov 12, 2003, 2:48:58 AM (16 years ago)
Author:
Sam Hocevar
Message:
  • libee/graphics.c: + Renamed ee_color() to ee_set_color(), wrote ee_get_color().
  • libee/line.c: + Implemented draw_polyline() and draw_thin_polyline().
  • libee/sprite.c: + Removed the f member of struct ee_sprite. + Implemented ee_get_sprite_{width|height|dx|dy}(). + Restore the color fater ee_draw_sprite() is called.
  • libee/box.c: + Fixed a bug causing improper box clipping at the right and the bottom.
  • data/foo_fighter: + Fixed bugs in the sprite.
  • src/intro.c: + Test effects for the future game's intro.
  • test/spritedit.c: + Added stuff to the sprite editor. We can now navigate through frames.
File:
1 edited

Legend:

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

    r140 r154  
    2626
    2727#include "common.h"
    28 
    29 static void draw_small_explosion(int x, int y, int frame);
    30 static void draw_medium_explosion(int x, int y, int frame);
    3128
    3229struct ee_sprite *medium_sprite;
     
    8077    {
    8178#if 0
    82         ee_color(GREEN);
     79        ee_set_color(GREEN);
    8380        ee_goto(ex->x[i] + 3, ex->y[i]);
    8481        switch(ee_rand(0,2))
     
    107104        {
    108105            case EXPLOSION_MEDIUM:
    109                 draw_medium_explosion(ex->x[i], ex->y[i], ex->n[i]);
     106                ee_draw_sprite(ex->x[i], ex->y[i], medium_sprite,
     107                               10 - ex->n[i]);
    110108                break;
    111109            case EXPLOSION_SMALL:
    112                 draw_small_explosion(ex->x[i], ex->y[i], ex->n[i]);
     110                ee_draw_sprite(ex->x[i], ex->y[i], small_sprite,
     111                               6 - ex->n[i]);
    113112                break;
    114113            case EXPLOSION_NONE:
     
    142141}
    143142
    144 static void draw_small_explosion(int x, int y, int frame)
    145 {
    146     ee_set_sprite_frame(small_sprite, 6 - frame);
    147     ee_draw_sprite(x, y, small_sprite);
    148 }
    149 
    150 static void draw_medium_explosion(int x, int y, int frame)
    151 {
    152     ee_set_sprite_frame(medium_sprite, 10 - frame);
    153     ee_draw_sprite(x, y, medium_sprite);
    154 }
    155 
Note: See TracChangeset for help on using the changeset viewer.