delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/08/04:01:35

From: David Jenkins <me AT jenkinsdavid DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ALLEGRO: datafiles and palette manipulations
Date: Wed, 8 Oct 1997 06:00:31 +0100
Organization: None
Distribution: world
Message-ID: <xpszjDAvNxO0EwtD@jenkinsdavid.demon.co.uk>
References: <343AD9BE DOT 7A0B AT cam DOT org>
NNTP-Posting-Host: jenkinsdavid.demon.co.uk
MIME-Version: 1.0
Lines: 14
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <343AD9BE DOT 7A0B AT cam DOT org>, Vic <tudor AT cam DOT org> writes
>hi. I'm doin this stupid pacman clone and ,if you know the game, at the
>point where the dude gets invulnerable, the ghosts will change colors,
>right? How do I do this in allegro? cause the palette is in a datafile,
>and I say something like set_palette(dat[PALETA].dat). What I want is
>something simmilar to pal[103].r=100 or something like that. Anyone?
>TIA,

Can't you just copy the palette to a game_pal[] for use in the game??

-- 
http://www.jenkinsdavid.demon.co.uk for C programmers.
David Jenkins

- Raw text -


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