Another noob question (I tried to define some macros for debugging and execute them before everything else executes). It works by having a file Constants.lua and declaring dependencies. Then I finally got the Games on Gideros book (awesome, btw) and learned about init.lua, and did some research.
Based on my understanding is that init.lua is loaded first, main.lua last. Also, each file is executed after it's loaded and parsed. So in the single lua file on deployment the init.lua code would be on top, and the main.lua code on the bottom. But that's not what I see (with the windows player locally as well as pushing to the android player from windows). What am I missing?
What I did: I created a file init.lua with a single line of code
I put similar lines in other files. The result is
Bushido Battle Started.
init.lua doesn't depend on anything.
main.lua has to depend on SceneManager to work, so it does that. (I have Scenemanager.lua among my class files, not using the plugin)