Problem to separate lua files
Posted: Thu Jul 17, 2014 12:54 am
Hey guys,
I've already finished my game and it was running normal(without any problems), but it's all in main.lua file and i decided to separate in other files like enemy.lua, player.lua,...
I was doing this when I stumbled upon a problem I can not describe, but I'll post the code of the game here so you know better what it is.
I really hope you guys can help me, because once it works out and files get separated and the game running without any problem, finally I'll be able to add more things and finish the game
I apologize for the source code be in portuguese
I've already finished my game and it was running normal(without any problems), but it's all in main.lua file and i decided to separate in other files like enemy.lua, player.lua,...
I was doing this when I stumbled upon a problem I can not describe, but I'll post the code of the game here so you know better what it is.
I really hope you guys can help me, because once it works out and files get separated and the game running without any problem, finally I'll be able to add more things and finish the game
I apologize for the source code be in portuguese