The project allow you to generate random levels for a tower defense game made in Unity. You can define for each level:
- the weights of diagonal, vertical and horizontal cost for the pathfinding algorithm
- the size of the grid
- the start point and the end point of the path generated
- the colors of the background and trail
If you are interested in fixing issues and contributing directly to the code base or you want to request a new feature:
- contact me
- report an issue
- create a pull request.
You must have at least Unity 6.x.x installed to run the project, however, Unity 2017.1 is recommended.
Download or clone the repository and launch the Main.unity file inside the Asset/Scenes folder.
Add all the custom levels you want in the editor (right click on the asset window and then choose "Map" to create a new map) and after pressing play, press N on the keyboard to generate the next level. Before you begin, make sure you have correctly set the start and end points of the route, so that you have:
* start.x > 0
* start.y > 0
* end.x <= size.x-2
* end.y <= size.y-2Daniele Piergigli - A bored student of computer science - Lucci93
This project is licensed under the MIT License - see the LICENSE.md file for details.
