Skill Tree Activated

The quest to become an indie game developer

Game DevScript-writingSoftwareTrainingUnity

Unity Learn – 2D Roguelike – Level Generation: Writing the Game Manager

Day 007 #100DaysOfGameDev

GameManager script

With the game board code under wraps, it was time to write the game manager and loader code which would assemble everything and produce the actual playable level.

This code does exactly what it sounds like it should do, it manages the game and keeps track of everything that will go on. While I may not yet fully understand every facet of the code specifics, I was able to see how everything is brought together and what the specific classes are designed to do.

Loader script

With everything written I was able to run the “game” in Unity to test how well the procedural generation of a game level works. Wow! It works brilliantly. I always imagined procedural generation would be WAY more complex and would take me tens of hours, if not hundreds, to learn. This project is a perfect introduction to the concept and now I really want to put my hands on it to start customizing it to bring my own ideas to life.

A procedurally-generated game board in Unity

Leave a Reply

Your email address will not be published. Required fields are marked *