-
Notifications
You must be signed in to change notification settings - Fork 0
Generation
At the start of the game, the terrain is generated with one start biome of fixed length. After that, a new biome of the same fixed length is generated whenever the hiker gets close to the right border of the currently generated terrain. This is done concurrently to not disturb the playing experience. Similarily, whenever a biome is no longer visible it is removed from the terrrain.
The basepoints used to specify the ground of each biome are generated in an iterative manner.
The overall form of the ground in a biome is specified by the terrain phases
To generate a new point
The angular range in which generation is allowed is defined by a
Determining
Although we check all constraints for every generated point, sometimes we cannot generate a new point from the existing terrain. Then, we need to retrace parts of the previously generated terrain. To do so, we remove a fixed number of points from the terrain. After that, the generation continues normally. Retracing is illustrated in the following Figure.
If we cannot regenerate all points that were removed before we retrace again, then we increment how many points need to be removed by a fixed number and retrace again. We also tried an exponentially increasing retrace count. However, that regularily lead to the entire ground being regenerated which took longer overall. Therefore, we decided to use the linearly increasing retrace count.