Today I finished the second part of the Level Generation in the Unity 2D Roguelike tutorial. The system works now and doesn’t look half bad! Using the algorithm from the previous post, it generates levels of increasing difficulty with progressively more and more enemies. It’ll definitely be a consideration for my own project, as a system like this could give a lot of replay value, without the need for actually designing the individual levels.
I also got a refresher on what Singletons are – and used it for the GameManager, as it is a persistent element that will be in each and every scene. I also saw how to elegantly assign all of the different sprite variations to an array – integral for rapidly working on a level generation system.
Above: some of the generated levels with a marked difficulty 3.
Overall, a very productive tutorial and I am happy with the quick pace of it. Eager to learn more!
PS: I also upgraded to Visual Studio 2017, which for now has no discernible benefit apart from slightly better UI and build times.