I have an app with multiple Composer scenes where I need to have all of them get data from the same database. The application is fairly complex so I wanted to get some advice before I make a mess.
Maybe I don’t understand the scope of Composer. Is it a virtual environment like a coroutine or is it a display group with some extra methods?
If it is the former, I’m not going to be able to access anything outside of the envelope of the scene. If it is the latter then I just need to make the db a global and then just access it wherever I need it.
Also, is there going to be a problem leaving the runtime listener for onSystemEvent in main.lua?
Any advice?