Mail Archives: djgpp/1997/04/30/06:41:50
From: | "Helix" <Helix AT Unknown>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Tile Based Game, need help!
|
Date: | 29 Apr 1997 22:30:37 GMT
|
Organization: | Computers & More Inc.
|
Lines: | 18
|
Message-ID: | <01bc5508$11470e60$LocalHost@stachowiak>
|
NNTP-Posting-Host: | port105.compmore.net
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I've been writing a tile based game but have unfortunatly come across the
problem of character movement!
I set the game up so that it creates a random map in one procedure, and
made a second procedure that
receives arrow key input to move the character. The second procedure uses
the map procedure to redraw the map once the character moves, so that the
old copy of the character is draw over. The problem with this is that
whenever I want the unit to leave a bitmap behind (like a city bitmap), (
it's sort of like civilization) it's drawn over. Also when the character
moves the hole map is randomized again since it calls the map procedure.
Alright what I really want is to be able to be able to move my character
and the computer erases the previous bitmap, and only in some instances.
If anybody understood what I just said and has some ideas (or better yet
source code),
please e-mail me.
maciek AT compmore DOT net
- Raw text -