Every once in a while when you’re developing a game and want to test something out you cheat and write some code in order to bypass a certain situation quickly, right?
Well, it’s a very common thing once a game get’s to a certain length that you have a debug menu inside of it. It’s extremely helpful and definitely worth losing a few days of coding when you want to make add something new for it. Even when using engines like Unity that make this sort of cheating much easier to do without writing any code it’s still useful in certain situations.
On the image above you can see the one I use in Ladra. It’s a very straightforward one but gets the job done. With it I can easily travel between the levels, update the chapter var which triggers conversations on the tavern and also update the complete chapter variable that also triggers a bunch of stuff.
This makes it much faster to test a given situation without touching the game’s code. The best of all is that this menu will only show up on dev version and never on a public build (always good to remember that),
I definitely encourage you to make one for your game!
0 comments