Dragonfly3r Posted February 2, 2015 Share Posted February 2, 2015 So i'm trying to do up a game which makes uses of google chrome's page refresh feature within my game. does anyone know how or could point me in the direction of how i could get the likes of this to work in my game e.g.Player starts level.Wall in the way of player and goal.Refresh webpage and continue gameWall is gone.Player completes level. Link to comment Share on other sites More sharing options...
P.Uri.Tanner Posted February 2, 2015 Share Posted February 2, 2015 //You can persist key/value pairs between reloads like thislocalStorage.setItem("isWallRemoved", true)var isWallRemoved = localStorage.getItem("isWallRemoved")With that data, you could reinstate the game status after a reload. Link to comment Share on other sites More sharing options...
Recommended Posts