Scope Issue?
Posted: Sat Jan 30, 2016 8:45 am
Hey all,
So I've been working on a crappy RPG game for a while and progress was going well until I realized my code was just turning into a dogs dinner to put it politely. Its an absolute mess in my main and menu lua files.
I wanted to start cleaning up the main.lua file, so I've moved some collision functions into a separate Collisions.lua class/file. It doesn't work any longer and i'm not sure why. I feel like I'm having scope issues now? =/
Any help on this issue and advice for breaking up my code into more manageable chunks would be appreciated!
To test launch love file marked with fail, left click new game, then press Up arrow on your keyboard. You should get a nil error message and the line number.
So I've been working on a crappy RPG game for a while and progress was going well until I realized my code was just turning into a dogs dinner to put it politely. Its an absolute mess in my main and menu lua files.
I wanted to start cleaning up the main.lua file, so I've moved some collision functions into a separate Collisions.lua class/file. It doesn't work any longer and i'm not sure why. I feel like I'm having scope issues now? =/
Any help on this issue and advice for breaking up my code into more manageable chunks would be appreciated!
To test launch love file marked with fail, left click new game, then press Up arrow on your keyboard. You should get a nil error message and the line number.