Skip to content

About

A random levels generator for tower defense games made in Unity.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

Tower Defense Random Levels Generator

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

Contributing

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.

Prerequisites

You must have at least Unity 6.x.x installed to run the project, however, Unity 2017.1 is recommended.

Installing

Download or clone the repository and launch the Main.unity file inside the Asset/Scenes folder.

Running the tests

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-2

Built With

Authors

Daniele Piergigli - A bored student of computer science - Lucci93

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

A random levels generator for tower defense games made in Unity.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages