Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


ISO - Depth as TTD/SC2k

This topic is 6935 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Guest Anonymous Poster
If your engine works by blitting tiles, you can simulate height simply by subtracting (assuming 0,0 is top-left) the desired height from the Y value of the blitted tile. If you want tiles on top of one another, draw from the bottom up. (A linked list here could give you as many layers as you want!). You can handle ramps and other transitions between levels with tiles designed to *look* like they go up and down - artistic coverup, since the isometric projection is only fake 3D. This is pretty much how XCOM seems to do things (IIRC). Your render loop would be something like (in psuedocode):

y = just above the top of the screen;
WorldY,WorldX = screen locations of tiles
x = just to the left of the screen;
W = width of tiles
H = height of tiles
wx = a temporary integer

while (y < ScreenHeight)
if (WorldY MOD 2 = 1) then x=x-(W/2);
while (x < ScreenWidth)
blit basetile[wx,WorldY] to x,y
blit tile ontop of it to x,y-height
x = x + W
wx = wx + 1
WorldY = WorldY + 1
wx = WorldX;

(I hate psuedocode... been using C++ for too long). You'll notice that this is pretty similar to a regular isometric render loop - it merely deducts the Height value from the destination during the blit.

You could also do it by drawing tiles as textured polygons, which would let you have smooth transitions between levels without artistic fudging..... but thats not really practical without using something like Direct3D/OpenGL/LOW resolution screens.

Share this post

Link to post
Share on other sites
Im looking for Documentation, Sources or well anything that can help me get a MAP constructed like we know from Transport Tycoon Deluxe by Chris Sawyer or some of the bored games like Simcity 2/3k and many other games..

ISO but with Height levels..

I would prefere Docs or such, Else Pascal/Delphi Code, C++ just make it more confusing

Michael - brainware@cyberjunkie.dk

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!