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 KenD

I've got a game I'm trying to port to iOS using appMobi's XDK and have run up against the app size limit of 25mb. The solution seems to be to use addToMediaCacheExt() and load in my images/sounds/videos from a remote server onto the device the first time the app is run. I was wondering if anyone has taken this route and if there's any advice for working with cached images and Image and AnimationSheet? Specifically, from my understanding, the URL for the cached file may not be predictable, so I was thinking of creating a hash of media names and URLs as returned by getMediaCacheList() but I'm not quite sure how to pass this hash to my entities so it's available in their constructors. I have tons of entities, so I really don't want to move all the animation sheet code into the init() methods of each one of them.

1 decade ago by KenD

Just a quick follow-up that setting the path to /_mediacache/<filename> does actually seem to work, at least in the emulator. I haven't gotten my game to run on a device other than that yet, but it's a good sign.
Page 1 of 1
« first « previous next › last »