Hi,
Quite new with defold and would love some advice.
I have a “board” game object. It has a script to fill the screen with another game object, “gem”, via a factory. Those gems are clickable. When clicked, they change color, rotate, scale, and display a score for a few seconds.
I have three questions that probably don’t have real answers, but preferences.
-
Should I create independent components (audio, sprite, factory, …) that I “attach” to a game object or should I define them inside the game object? The answer might be around reusability, but in general loads of tiny components or one huge game object.
-
Similarly, one script vs many? From other posts, it seems one script and many lua modules is preferred.
-
Lastly, filling the screen with gems had me increase many limits (max game object, max sprite, max audio, …). Is this to be expected?
Thank you for your help