Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

XNA - 2D isometric terrain generation

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
4,507
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 20, 2010

2D isometric terrain generation in XNA. The terrain is procedurally generated and can be randomised each time. Points on the terrain can be raised and lowered (pulling the surrounding vertices up or down automatically), and you can scroll around the world with the mouse.

Category:

Gaming

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (ExclMarkPirateFlag)

  • i wanna know what tiles are you using..those fancy elevations must require some bunch of weirdo tiles..

  • @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 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 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 cool! Are you still working on it? Whats the project about?

  • @yksnimus Haven't done anything on it for a couple of months, but the plan is to use it for an isometric RTS.

Top Comments

  • Source code? Would like to see how this is done in 2D!

  • souce link?

see all

All Comments (14)

Sign In or Sign Up now to post a comment!
  • This definitely looks like the engine from Transport Tycoon, especially when modifying the height of the terrain.

  • Link, please!!!!!!! D:

  • SimCity!

  • Source?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more