www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/16/20:48:00

From: Plasmid125 AT aol DOT com
Date: Fri, 16 May 1997 20:45:42 -0400 (EDT)
Message-ID: <970516204542_-1867761650@emout08.mail.aol.com>
To: djgpp AT delorie DOT com
Subject: More info on the .DAT file and texture problem...

     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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019