1 decade ago by KenD
I&
039;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&039;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&039;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.