1 decade ago by Midas
So I would like to offset the loading of some assets until just before I absolutely need them, and I am curious if there is already an existing solution for loading images (or other assets) dynamically.
If there is no solution available already for ImpactJS, I will probably end up writing my own. Would it be better to put loading screens between calling ig.system.setGame() or should each asset just have a loading bar? Perhaps I can just extend ig.system to have something like ig.system.setGameWithDependencies(MyGame, ['media/image.png']) ? does anyone have any suggestions?
If there is no solution available already for ImpactJS, I will probably end up writing my own. Would it be better to put loading screens between calling ig.system.setGame() or should each asset just have a loading bar? Perhaps I can just extend ig.system to have something like ig.system.setGameWithDependencies(MyGame, ['media/image.png']) ? does anyone have any suggestions?