Thursday 6 April 2017

map Generator in Unity C# _1

I am currently working on a map generator project.

The generator can generate different setting of maps each time when play is clicked. The setting of the map , eg, width, height, size of the walk-able space can be adjust in the public parameter.

It uses random function to generate a matrix of on and off nodes,
smooth the value of the nodes according to its surround nodes, and finally use Unity mesh generator to create floor and walls.



It is still in a WIP stage.

No comments:

Post a Comment