Greetings everyone!
I’ve come up with the problem when trying to implement the following stuff:
A browser game with multiple levels. There is a small menu with the level list. Player chooses the level, the level loads up.
Thus, on the first launch the user loads a minimum amount of data (the menu and the resources it uses). Then we load a level with the necessary resources on a request (the resources load up when it needed).
I used a collection proxy to implement it. But while testing I’ve faced a really long first launch (the levels themselves were loading instantly). I think all data was loaded on the first launch.
Can I make such thing possible with Defold? Am I missing something?
That is exactly what collection proxies are intended to solve. Since all dependencies are static the engine loads only what is in a collection. What does your main collection contain? Do you have a “custom_resources” setting?
And no, I don’t have “custom resources” setting. As I understand, the file should be specified in it.
Please, can you elaborate what file is it? And what it should contain? Thanks in advance for your help.
Hey! Quick question, are you running on Windows? I suspect this has something to do with this issue, essentially related to bundles from Windows builds.
There is a fix coming for this.
edit: Oooops, my bad! I was a bit trigger happy on this one, I interpreted it as not working at all to load resources on HTML5, but the real problem was the long loading times…