From: "Chris A. Triebel" Newsgroups: comp.os.msdos.djgpp Subject: Re: Silly newbie question - Allegro/palletes Date: Fri, 28 Mar 1997 08:03:59 -0500 Organization: University of New Hampshire - Durham, NH Lines: 44 Message-ID: References: <3332BFFF DOT 1569 AT interlog DOT com> NNTP-Posting-Host: sun4.iol.unh.edu Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <3332BFFF.1569@interlog.com> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Are you using a shared color pallete between the different files. Keep in mind that you only have 256 colors to work with. If the ship loads its pallete ( generally of 256 colors ) to the video card and then the missiles load their pallete you lose the first one. What you need to do is figure out a mechanism where all colors needed are represented properly. The easiest way is to create a pallete ( we will say in winPaint ) in which all needed colors are represented. Before you start creating your sprites you load this pallete. Now you have an accurate reflection of what colors are going to be available at run time. Once you starting loading these files ( at run time ) you pick one that contains the pallete and discard any others that are loaded after it. In theory this may be your problem. cat On Fri, 21 Mar 1997, Adam Lawrence wrote: > Date: Fri, 21 MAR 1997 12:06:07 -0500 > From: Adam Lawrence > Newgroups: comp.os.msdos.djgpp > Subject: Silly newbie question - Allegro/palletes > > G'day all. > > I'm programming away in DJGPP using Allegro and sprites. I draw the > sprites (for now) using the cheezy Windows Paint program. I cannot seem > to load or create a pallete that displays the colors of all the sprites > correctly. My 'spaceship' looks fine but its shots, instead of being > yellow and red, are an odd-shade of purple. Is there some sort of > workaround for this? > > UNH InterOperability Lab Network Management Consortium (603)862-2060 ------------------------------------------------------------------------------- "It's not the programming languages that will kill you, its the syntax." "Digging a hole with a bulldozer is much more effective, unless you only know how to use a shovel."