Tuesday, 27 June 2017

First generation tests

Today I generated 2 of the first ever maps for Explore.

They are both currently forced into the "Forest" biome

Generations:

No graphics have been added as of yet, but this is the very first iteration of the procedural generation which is planned to be implemented.

So far the generation fist creates a clear grid, it then follows up by adding a border around the entire grid of "force" which is short for force field which will stop the player from being able to leave the local area.

The next thing which happens is it selects a biome (only Forest is currently available but when others are added this step will become more relevant.

It will then go through a series of other steps for each biome, for example Forest will add a random amount of trees and rocks, then it will add a pond which size is also randomized.

When the pond is added it will choose a random set of coordinates and check to see if they are empty, it will then look at an adjacent grid position and check if it is also clear, if it isn't then it will look at a different one and if it is then it will make that a pond square also. this process will continue until the size of the pond is as big as it is supposed to be.

The final stage in the generation at this stage is to decide if any random structures are to be added. At this stage of development there are only 2 different structures which can spawn. The first is ancient ruins which work much like the lake and generate in a random shape. the second is the Elven alter which spawns in a specific shape (see below)

This will be the first structure which is not randomized to be added to the game.

Development will continue over the next few days and new announcements will be announced shortly.

No comments:

Post a Comment