Article View: rec.games.programmer
Article #914Tile Map Animation
From: Virendra K. Saxena
Date: Tue, 01 Sep 1992 03:36
Date: Tue, 01 Sep 1992 03:36
52 lines
2444 bytes
2444 bytes
I know people don't want IBM-graphics questions posted here, but there's no other group to post to right now, so for those of you who want to flame me, sorry :-) Anyways...I'm working on a computer game that is like the Ultimas. I'm using 640x350x16 Enahanced EGA mode. I have two problems right now: 1) When I change modes to _ERES16COLOR(quick C 2.5), if I change the pallette to suit me, it is different on an EGA and VGA card. How do I fix this problem??? 2) What is the fastest way to do tile map animation like in the ultimas. I have a two-d array in which each different tile has a different number. When you move, the program checks the tiles around you and places the correct tiles at the correct location on the 2nd video page, and then switches pages. This is smooth, but it is VERY slow. Considering that I have a 386-33...something is definetely WRONG!!! Is there a faster way to do this?? Does anyone have their own replacement to _putimage that is a lot faster? 3) Does anyone have code for loading PCX's that actually works?? I have typed in code from a Lee Adams book and tried some code that I dl'ed. Didn't work. Help? I have more then two questions...I'm just going to pour out all the questions I have(I'm 16 so give me a brake :-) ); 4) How does one access 640x480x256 color mode with QC? If I use the BIOS interrupt(forget the number) to change modes, will the _getimage and _putimage routines still work? I can write my own pallette changing routines, but I'm not very familliar with that kind of code. 5)Can someone explain screen panning to me?? I got the Hobbes ModeX library, but I couldn't get it to compile with QC. If you have any code, I'd be very interested in it. 6) Any good books on graphics/game programming that would help me learn more??? 7) Anyone want to donate a PAS-16?? :-) I tried.... Thanks in adavance, Deepak PS: Use deepak as the subject for E-Mail replies since this is my dad's account.
Technical Details
Message-ID:
<8190@dirac.physics.purdue.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!gatech!purdue!mentor.cc.purdue.edu!noose.ecn.purdue.edu!dirac!maxwell.physics.purdue.edu!saxenaShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!purdue!mentor.cc.purdue.edu!noose.ecn.purdue.edu!dirac!maxwell.physics.purdue.edu!saxena From: saxena@maxwell.physics.purdue.edu (Virendra K. Saxena) Newsgroups: rec.games.programmer Subject: Tile Map Animation Message-ID: <8190@dirac.physics.purdue.edu> Date: 1 Sep 92 03:36:06 GMT Sender: news@dirac.physics.purdue.edu Lines: 52