XNA - 2D isometric terrain generation
Loading...
4,507
Loading...
Uploader Comments (ExclMarkPirateFlag)
Top Comments
-
Source code? Would like to see how this is done in 2D!
-
souce link?
see all
All Comments (14)
-
This definitely looks like the engine from Transport Tycoon, especially when modifying the height of the terrain.
-
Link, please!!!!!!! D:
-
SimCity!
-
Source?
Loading...
i wanna know what tiles are you using..those fancy elevations must require some bunch of weirdo tiles..
yksnimus 4 months ago
@yksnimus They were all custom made - one for every possible combination! Then I just store the height of each corner as 4 bits (i.e. raised in N and E would be 1100, N and S would be 1010) and use that as a lookup for the correct texture to display.
ExclMarkPirateFlag 4 months ago
@ExclMarkPirateFlag Thanks! Thats how I though for solving this, but then I started to get scared with the many different combinations possible, and the many tiles required..
Now imagine doing all that for different terrains..sand, rock, tall grass, etc, and the transitions between them! woahhh..
Thanks for answering!
yksnimus 4 months ago
@yksnimus Haha, I don't have to imagine it - I did it for grass, sand, and water! If you do each set on a single sprite sheet and split them into separate sprite rectangles, it isn't so bad. And once you have the template set up you can just recolour them.
ExclMarkPirateFlag 4 months ago
@ExclMarkPirateFlag cool! Are you still working on it? Whats the project about?
yksnimus 4 months ago
@yksnimus Haven't done anything on it for a couple of months, but the plan is to use it for an isometric RTS.
ExclMarkPirateFlag 4 months ago