Force resource loading

Monkey Targets Forums/HTML5/Force resource loading

Zwer99(Posted 2012) [#1]
Hello all!

Is it possible to force loading all resources (music, images, etc.) before the game starts. Now the resources get loaded when they're needed.
I hope you know what I mean ;)

Thank you!


AdamRedwoods(Posted 2012) [#2]
For HTML5, you would need to write a resource manager using the new databuffer/datastream loaders.


Zwer99(Posted 2012) [#3]
Thank you for the hint!
I'm sure, that I'll find a solution ;)


Gerry Quinn(Posted 2012) [#4]
Or you could just "need" them all before doing anything. For example, render something from every image on the first frame. Make all the noises with channel volume set to zero.


Zwer99(Posted 2012) [#5]
Aaa! That's an idea :D
Dirty, but it might be a solution :)

Thank you!