I am working on a project with about ~30MB of soundfiles. The game will run in browser, so I want to load as few resources as possible, it is not plausible for me to load all of this data in one go. Especially since not all of it will be necessary in every game session.
The game is easily divided into parts, where each one could load assets specific to that one. However, I can not figure out how to do this. For example: On boot all general sounds would be loaded and menu music. When starting the first level, that would load the music and sound effects specific to that one. I thought Collection proxy would be the way to go, but all assets still seem to load at once when booting.
If this question has already been answered, please tell me where, I couldn’t find anything.