Tuesday 13 August 2013

3D ascii terrain generation implemented

Progress for v0.06a

Up to and including release v0.05a, the terrain generator placed tiles randomly within each map region. Of course, this can make every screen look boring, as there wouldn't be any mountains, just a series of tiles that randomly change as you the player walk from region to region.

What I've done for the v0.06a release, is to use a terrain generator routine which isn't random. It's still pseudo-infinite e.g. it gets created during gameplay and has no predefined end. But the difference now is that a mathematical algorithm is used together with some other tricks to make the landscape more designed.

The end result is a great improvement. What you the player will see, is a landscape that appears as a contour geographical map. Areas of the world that are higher than where you are standing, are coloured lighter. Those areas lower are darker:



Water and Trees

If you click the image above, you will see an example of this. The blue area is water. The game shows terrain one level above your current level, and one below. Walking to a level lower than you, makes you drop automatically to it, and the game recalculates what new levels of the region you can now see. The same goes for levels higher than you: you automatically go up the landscape, and can see new areas from your new height.

So, v0.06a will add in an improved 3D landscape to explore. It wont be finished, but still, a better terrain generator than that used until now.

More status updates as usual throughout the week as progress is made.

No comments:

Post a Comment