3ddy Posted February 8, 2016 Share Posted February 8, 2016 Hello, I'm starting a project and have couple questions. Mainly I want to achieve dynamic updates of the game assets, without the need to update the game in store (android and iOS). Main thing that I would be able to update are graphics. I would like to change current application spritesheet, or add another one to my game. The question is : can I download a new sprite and replace the one that comes with game from the store? Or can I just add another one (for example I have on mobile somesprite.png downloaded with game from store and I would like to add anothersprite.png to game files when starting the game). Is it possible? The same I would like to use for ads, so I can change displaying one without updating the game in store. If yes, next question is if that added new sprite can be stored on phone memory, or I would have to download it everytime I start the game? Links to similar problems/tutorials are welcome (yes, I was searching before posting but didn't find anything) Link to comment Share on other sites More sharing options...
Gob0 Posted February 8, 2016 Share Posted February 8, 2016 Hi you can download data from a website and store it on the phone. Then in your game, you'll have to implement a "fall back" during phaser loading to load the default asset or the last downloaded. I don't have links right now but if i find one, you'll get it 3ddy 1 Link to comment Share on other sites More sharing options...
3ddy Posted February 8, 2016 Author Share Posted February 8, 2016 Thanks for reply. So I can store date of last download and check in backend if there was any update -> if yes download new ones, if no, use files from phone. And those files downloaded will be stored in memory when I close the game and reopen it later? But in case of uninstalling the game, those downloaded files won't be deleted, right? Also, in case that I'll use one sprite only, can i replace the one that comes with game, or I have to store it as new one? Link to comment Share on other sites More sharing options...
Gob0 Posted February 8, 2016 Share Posted February 8, 2016 It depends on how you store sprites. If you choose to store them as files, they won't be removed during uninstall. If you choose to store them as "application property" (using Web storage API for example), sprites will be remove during uninstall. Link to comment Share on other sites More sharing options...
Recommended Posts