Does anyone know whats the recommended approach to programming with lua in defold with regards to the number of scripts?
So, for instance, is having one mega script with all the functionality of an object going to be better, then doing it the JS way and having all functionality be modular, and therefore even potentially reused in other objects?
Just to be clear I’m not talking about multiple GO necessarily, but rather about multiple scripts, passing messages around, vs one monolith script.
I’m sure it should have some overhead, but maybe it’s very minimal?
Thanks for any feedback.