cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/19/13:01:08

From: dcyang AT uclink4 DOT berkeley DOT edu (david c. yang)
Newsgroups: comp.os.msdos.djgpp
Subject: allegro - sprites and the data file
Date: Tue, 19 May 1998 08:31:08 GMT
Organization: DNAI ( Direct Network Access )
Lines: 24
Message-ID: <35613fc6.90806242@news.dnai.com>
Reply-To: dcyang AT uclink4 DOT berkeley DOT edu
NNTP-Posting-Host: dnai-207-181-238-141.dialup.dnai.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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... 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?

obvious i have little idea what i am talking about, but i'd like to
think that that's because i just started fooling around with allegro a
few days ago. :-)  i suspect i'm doing this whole palette/sprite
editing thing the wrong way, so if someone can tell me a better way to
do it, i'd really appreciate it.  thanks!

- Raw text -


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