Back

October 2017

Generate World

A quick test to generate a random world, with hills and a road leading from one side to the other.

Pathfinding algorithm by Aron Granberg.

The video show of the functions, if you want to test a webbuild, try it here.

In version 1 the script generates 10 hills and using a A* pathfinding script to find the quickest way. The world generates from a of screen key interaction.

In version 2 the script generates a number of hills represented by the slider (from 0-20).

In version 3 the number from the slider is visible and the UI is moved to not interfere with the world that is generated.

Back