Open ReallyNotPikachu opened 4 days ago
Lua is a dynamically typed language, which can be nice and all, but image the sillyness that could occur if u accidentally put the wrong datatype in. This mainly applies to the various tables, like colliders, but still, just trying to save you some time ig.
On line 17 of
Scenes/game.lua
you declare a variable calledexitGame
and set it to zero. Wouldn't it be better to make it a boolean value? It may require a little refactoring, (I'm too lazy to do it), but you could. Also you should probably include a comment near some of the variables saying what type of variable it's supposed to be in order to make sure your code is maintainable.