Archived

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.

Recommended Posts

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
etc.
x = x + W
wx = wx + 1
endwhile
y=y+(H/2)
WorldY = WorldY + 1
wx = WorldX;
endwhile

(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 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

Regards
Michael - brainware@cyberjunkie.dk

1. 1
Rutin
49
2. 2
3. 3
4. 4
5. 5

• 11
• 16
• 9
• 10
• 13
• Forum Statistics

• Total Topics
633003
• Total Posts
3009849
• Who's Online (See full list)

There are no registered users currently online

×