Kobaltic Posted January 28, 2015 Share Posted January 28, 2015 I was wondering if a save function has been added to Phaser or if anyone has one available? Link to comment Share on other sites More sharing options...
tips4design Posted January 28, 2015 Share Posted January 28, 2015 By save you mean saving the current state of the game? (eg: the exact position of all the sprites in the game, and the attributes of all objects used? ) Or by save you only want to save the progress of the game? Usually when saving you only want to save the properties of objects that actually change during a game, so that the save file is smaller. Link to comment Share on other sites More sharing options...
mariogarranz Posted January 28, 2015 Share Posted January 28, 2015 As far as I know, Phaser doesn't have persistance functionality.It's quite simple with Local Storage though. What I did was create my own class to handle interaction with Local Storage easier, checking for private mode in Safari to avoid crashes and other stuff, but it's really simple anyway. Link to comment Share on other sites More sharing options...
Kobaltic Posted January 29, 2015 Author Share Posted January 29, 2015 I figured out how to save my data pretty easy. Thanks though Link to comment Share on other sites More sharing options...
Recommended Posts