www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/19/20:20:59

Mime-Version: 1.0
To: dcyang AT uclink4 DOT berkeley DOT edu, djgpp AT delorie DOT com
From: Nate Eldredge <nate AT cartsys DOT com>
Subject: Re: allegro - sprites and the data file
Date: Tue, 19 May 1998 17:16:02 -0700
Message-ID: <19980520001555.AAA2064@ppp100.cartsys.com>

At 08:31  5/19/1998 GMT, david c. yang wrote:
>hi, i am new to allegro and thus the following questions are very
>basic, but i would be very appreciative if someone would lend me a
>hand:
>
>after drawing an 8 bit sprite in photoshop, i save it as a pcx and
>read it in grabber, grabbing both an rle_sprite and a 8 bit palette
>from the file.  i use the palette and sprite in my program, and it
>displays fine, however, when i grab a new 8 bit rle_sprite, that
>although not using any colors not in the palette (obtained from the
>first bitmap), it displays with messed up colors.  
>
>i guess i need to know how to make all the sprites use the same
>palette, and not just the same colors...

I know the program DISPLAY can do this. You feed it with a number of files,
and it converts them all to the same palette. You can get it from the
graphics/ directory of a Simtelnet mirror.

> and also, my sprites
>currently display as an entire box - the docs (yes, i've read them
>:-)) indicate that masked areas are to be of color 0 in the index.
>does this mean that i should put some random color i never intend to
>use in my program into the 0 position, and color in the masked areas
>with it?

Yes. Black is traditionally used.

Nate Eldredge
nate AT cartsys DOT com



- Raw text -


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