delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/12/18:31:56

From: uhfgood AT aol DOT com (Uhfgood)
Newsgroups: comp.os.msdos.djgpp
Subject: -KWII- Allegro and RLE sprites
Lines: 30
NNTP-Posting-Host: ladder01.news.aol.com
X-Admin: news AT aol DOT com
Date: 12 Feb 1999 23:05:08 GMT
Organization: AOL http://www.aol.com
Message-ID: <19990212180508.15560.00000180@ng151.aol.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I'm working on a program.  Okay basically i'm using RLE sprites from a
datafile.  Now I know how to load up the datafile, and that I can use the
sprite directly... like draw_rle_sprite( jman[ frame_1].dat - etc
But i've set it up to alias the frames in the datafile...  I declared an array
of rle sprites like so...  RLE_SPRITE *jumpman[ 12 ];  first I want to know if
that's ok... (i've actually compiled it all and it compiles without error)... 
okay... so what i have is this to alias the sprites (frames)... i have it set
up to do this 
  jumpman[ 0 ] = jman[ frame_1 ].dat and so forth, for the rest of
the frames.  Then at the end of my program i have a loop to destroy the sprites
like this:
  for( c = 0; c < 12; c++ )
    destroy_rle_sprites( jumpman[ c ] );

So i'm wondering if these declarations are ok?  Basically I want to alias the
sprite frames, so I could set the current frame of animation
to the way i wanted.  (I had done this with another program in msvc 1.0, and
had a way to change frames because of a certain order they were in).  Anyways,
if this is too confusing, just write me and i'll try to re-explain better. 
Basically i just want to know if those declarations above are ok to do.  ( It
compiles, but i haven't written the rest of the program to try to do anything
with them yet, so I want to know ahead of time if you guys would think that
this would cause any problems)...
If you've read this far, thanks.  I'd appreciate any replies -Keith W. II



*Keith Weatherby II*
*Uhfgood AT aol DOT com*
*Vice AT gconn DOT com*

- Raw text -


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