Mail Archives: djgpp/1998/04/01/16:30:39
Ishpeck writes:
>Well, it runs pretty fast already. In fact,
>it runs too fast. I want it a bit slower
>than it is...
It's easy to change the speed of a FLIC: this is just a byte in the file
header. For example the DTA program comes with a utility called flispeed
for doing exactly this...
>How would I got about writing a rutine that
>converts the palette of the bitmap and
>rewrites it?
This could be done either by setting up a color mapping table for
converting one palette to to the other and then using the
draw_lit_sprite() routine, or by copying to a truecolor memory bitmap
and then reducing this back to 256 colors after selecting the new
palette. Both of those methods will be very inefficient and quite
complex to code, though: I think it would save you a lot of time if you
can simply change your graphics so that they are all using the same
palette (any decent paint program will have options to do this, and
there are several utilities on the Allegro website which may help).
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa
- Raw text -