From: David Jenkins Newsgroups: comp.os.msdos.djgpp Subject: Re: When you know Nothing! Date: Wed, 11 Jun 1997 15:57:27 +0100 Organization: None Distribution: world Message-ID: References: <199706110212 DOT TAA27009 AT geocities DOT com> NNTP-Posting-Host: jenkinsdavid.demon.co.uk MIME-Version: 1.0 Lines: 74 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In article <199706110212 DOT TAA27009 AT geocities DOT com>, Guilherme Silveira writes >Please I need some help: I haven't tried to help anybody for a while, so here goes. ;-) > >- When I use the page flipping with Allegro, can I use only Horizontal >flipping? >- Does anyone have some source code with page flipping that can send me? > Sorry, I always use double buffer. >- Does anyone know any 'topografic' program? I'm in Civil Engineering and I >need to do one thing: The program for my School. Not sure if you mean a terrain generator, I have a couple of really sad ones on my site. (URL below.) Try using DejaNews to look through comp.graphics.algorithms there's a few threads in there about this. > >- Can anyone send me some code about breaking the screen and fading out it's >pallete? No. BUT can't be too hard to write one, can it?? Here's how I'd approach it. Try storing two palettes in arrays or structures or whatever. A and B. Use the first array A to hold the original palette. Copy this to the second B array. Then set the screen to use the second B array as a current palette. Then write a function to decreas this B array to 0. void palette_fader() { int i; for (i=0 ; i<256 ; i++){ if (cur_palette[b].r > 0) cur_palette[b].r--; if (cur_palette[b].g > 0) cur_palette[b].g--; if (cur_palette[b].b > 0) cur_palette[b].b--; } vsync(); set_palette(cur_palette[b]); } > >- My game is using a project in RHIDE but I'm with some problems: > In the project, there are: > - TDA.CC (main program: defines and function main) > - MAIN.CC (main menu: the functions; no includes here!) > When I try to run it, I get some strange errors, can anyone tell me >what's wrong, is that 'cause I'm not putting includes in MAIN.CC? > Dunno. I don't use progects in Rhide. > >Thanks > Hope I helped a little. :-) >Guilherme >------------------------------------------------ >Guilherme Silveira - Sao Paulo - Brasil >carlos AT usway DOT com - thedarkage AT mail DOT geocities DOT com >http://www.geocities.com/SiliconValley/5441/ >18/09/1981 - Until Today... > -- http://www.jenkinsdavid.demon.co.uk for C programmers. David Jenkins