Skip to content

apkd/UnityProcedural2DMap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C# 100.0%