VBGamer |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RE: layers Steven Blom (3 replies, 0 views) (2000-Sep-26) I HAVE done it once before, but I always program with DirectX
Now... I dont' have the code to do it, but if you know anything about reverse-engineering code, check out "The black hole", which should be accessable from this site's title page. IN the files section for that somewhere is the source to my map editor... it might be prooven useful.
But in a nutshell,
set up a 3D array for your tiles
Z = number of layers -1
Dim Tiles(x,y,z)
Then you draw them back to front, any layers not visible shouldn't be drawn when you refresh the display.
HTH
Steven
|