Making a sensible Level Manager

 Making a Sensible Level Manager

The Problem:

What does it mean to make a sensible level manager? To me, making a sensible level manager is making one that is able to be used reliably, where you are able to use it functionality without having to worry what it is doing behind the scenes. This was the issue of trying to make a level manager rather than manually setting up getting a new track for each selection. And how we should go about.

The Solution:

So how do we solve it? For me, the best solution was by making it static. Rather than trying to create a level manager object for each level, it was better to try and make it static since this will run throughout the entirety of the game. After the static functions was made, the next step was to simply call the level manager in all buttons where there is a next level or retry level and the rest was simple. Since it is simply getting the index to switch to the tracks, we can be able to simply just get the current index and add it by one to get the level we want. With this, I feel we will be able to create levels and add them to the build in a sensible manner.


Pedro J Colon




Comments

Popular posts from this blog

The Pitfalls of Crafting a Position Placement and Lap Counter for Kart Racing Games

Troubleshooting Unity GameManager Input Handling

Only one line of code