Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by tedzhu

I found in my game, sound is 24mb, image is 2mb, codes are little. It might be wise not to load sound assets on mobile devices. Is there a way to do this?

1 decade ago by amadeus

Just check if ig.ua.mobile is true and don't load the sound files.

1 decade ago by tedzhu

But are the sounds loaded before any of the game code are executed?
Or is there a way to change the engine code

1 decade ago by Graphikos

Something like this?

music: ( !ig.ua.mobile ? new ig.Sound('media/music/game.*') : null ),

(untested)
Page 1 of 1
« first « previous next › last »