A Easy to use Procedural 2D map created in Unity.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
2DProceduralLinesMap
Builds
.gitignore
LICENSE
README.md

README.md

UnityProcedural2DMap

An easy to use Procedural 2D map created in Unity.

Use

Create a new GameObject and add the component “ProceduralMap”.

Change the map size, edit at will the properties and play the scene or click “Generate”. The property “CollisionPrefab” will take a prefab, in most cases you would like to add a Prefab with a SpriteRenderer and a BoxCollider2D.

To generate a new map in another script add the next using directive :

  using ccglp.Procedural;

Take the reference to ProceduralMap and call InitializeAndGenerateMap():

  ProceduralMap map = GameObject.Find(“MapGenerator”).GetComponent<ProceduralMap>();
  map.InitiliazeAndGenerateMap();

Enjoy!