Mail Archives: djgpp/1997/05/16/20:48:00
I've tried pretty much all possible combinations of displaying bitmaps,
compiled sprites, and rle sprites! Not to mention all possible ways to
implement them. So don't nit-pick about the little stuff like the order or
the assumptions it makes.
this is my latest attempt...
Called like:
draw_item(GREEN);
void draw_item(int item)
{
COMPILED_SPRITE *b;
b = get_compiled_sprite((BITMAP *)data[item].dat, FALSE);
clear(screen);
draw_compiled_sprite(pre_screen,b,0,0);
}
Here's main.h:
/* Allegro data file object indexes, produced by grabber v2.2 */
/* Datafile: d:\game\source\main.dat */
/* Date: Fri May 16 12:40:00 1997 */
/* Do not hand edit! */
#define BLUE 0 /* BMP */
#define GREEN 1 /* CMP */
#define GREEN_PAL 2 /* PAL */
#define ANIM_1 3 /* FLIC */
#define INTRO_SND 4 /* SAMP */
#define THUNDER 5 /* SAMP */
- Raw text -