Hello, I’m new here and one of the reasons I plan to learn Defold is the small size of an exported html5 game.
But I’m unsure how my assets are handled. I will make a game with lots of small textures. But only a few will be loaded at any time.
When a user runs my game (likely hosted on firebase), will all assets be downloaded in a bundle? Or individually as and when they are used in the game?
If it’s the former, I may have to think about hosting the assets elsewhere and loading them dynamically.
Apologies if this has been answered before, I did search but couldn’t find an answer.
Defold packs all assets into a game archive, so yes, you download all of them at the same time.
You can however also load images one by one either into an atlas and use in a sprite or on a gui box node. Finally you can also load additional archives and mount them and use the images in the extra archives. This is called LiveUpdate.
Thanks. LiveUpdate looks like it’ll be very useful.