Jump to content

Search the Community

Showing results for tags 'localstorage'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 14 results

  1. Hello, I'm making a browser game where the only saving is done to localstorage with JSON data. I've seen some odd behaviour and wondered whether locastorage is actually reliable enough for save data and whether its worth putting in a backup / saving somewhere else too just in case? All opinions welcome.
  2. I've read a few articles on how phaser games can be deployed onto steam however I can't find anything related to how to store the data in this case. Essentially what i would want to do would be to create a game that runs on windows and save data locally instead of relying on the internet to handle save progress. Could anyone provide details on what options are available? Is it possible to still use local storage if the game is an exe file?
  3. I want to know how to keep the localstorage save data persistent in my game. If i reset my device the locally stored data is lost Eventhough i'm not clearing the cache. I'm trying to save highscore and stuff. How do i keep it persistent should i keep some log on the server? I'm running the game on Chrome fyi
  4. hey guys I'm currently after completing a tutorial at http://zenva.com . I have been working on my knowledge with phaser. anyways, after finishing the tutorial i decided to polish the game. I am new to the localstorage api and was looking for some help. here is my code for the highscore. it currenly doesnt work with localstorage and im not sure why. Any help is much appreciated init: function(score) { var score = score || 0; localStorage.setItem("score", this.highestScore); this.highestScore = this.highestScore = localStorage.getItem("score"); this.highestScore = Math.
  5. So I have a huge question that I just can't seem to find the answer to. A player has 5 characters they can move across the board. Each character has their own movement allowance (some can only move 1 square per turn while others can move 2 or 4). The player has a TOTAL of 5 moves per turn. So they can move their characters 5 squares however they please. My question is, after every turn, I want to make a database call to track their position so in case if they refresh the browser or come back to the game later, their characters are in the same position. If I store this information in
  6. I am trying to store from this code: Potato.upgradeButtonsData = [ {icon: '1stUpgrade', PIcon: 'potato4Upgrade', background: 'upgradeBg', themeText: "", name: '', level: 1, cost: 100, pas: 100, purchaseHandler: function(button, player){ Potato.player.clickDmg += 0.2; }}, But the problem is that when I try it either says "Nan" or will just do nothing. I am using localStorage because i could not get the store.js thing to work. And if you have to store all the items(by all the items i just mean (level, cost and pas)) like an Array then I dont know how
  7. Hi! This is my first time creating a game via a tutorial which I've coded along with so I am a completely new at this but I am eager to learn. I've this game "Bunny Defender" and want to create a simple High Score which I can store in some kind of localstorage with ex XML and display the high score result out on the screen when the game is over. I don't know how to do this and where to start. Would be very thankful if someone could point me at the right direction and how to manage this? // The complete game online http://rewindlevel.net/ // All the game files on github h
  8. Hi there, I want to know if there is a way to remove from Phaser, completely the use of localStorage, I'm working on a google Ad and Double Click Studio does not support this feature, and also I'm not using it, so I want to remove from the engine, someone knows if this could be possible. Regards.
  9. lz-string was designed to fulfill the need of storing large amounts of data in localStorage, specifically on mobile devices. localStorage being usually limited to 5MB, all you can compress is that much more data you can store. http://pieroxy.net/blog/pages/lz-string/index.html
  10. Hi, How to display best score in game using local storage? or is there any other better way I can do this with Phaser? If possible give a example code. I used method from this tutorial http://www.codevinsky.com/phaser-2-0-tutorial-flappy-bird-part-5/ but it give error: Localstorage is undefined Thanks
  11. So i want to implement a simple save and load feature in my game. After reading some threads i think something like this is sufficient. localStorage.setItem('myObject', JSON.stringify(myObject)); But after seeing this about localstorage: https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Storage#localStorage Important: This guide is out-of-date. For up-to-date information on Web Storage, you should visit the Web Storage landing page for reference, and ourUsing the Web Storage API guide for a walkthrough. And i see that store.js also using, i think, this way of saving objects...
  12. So yes Chrome has its own local storage API. I used chrome.storage.local.set({"item": itemValue});and chrome.storage.local.get("item", function (result) {console.log(result);});For all my storage calls. The problem I face is Phaser.js includes localStorage statement somewhere inside of it, which doesn't allow me to view my game at all. So Instead I get this error in console: window.localStorage is not available in packaged apps. Use chrome.storage.localand a black screen. What would you do in this case? Is there some functionality I could turn off in Phaser or I just don't bother with Ch
  13. Hello all, I'm building an update scheme for my game where the user downloads the new assets from the server. Every bitmap and JSON files will be stored under @cocoonjs localStorage file for further use. The thing is, I just can't find a way to initialize a sprite sheet on PIXI.js by passing the JSON and bitmap data instead of the JSON location. Anyone knows an workaround to register a sprite sheet on PIXI.js at this scenario? All the best, Epa
  14. Hello there! I'm using localstorage to save some data like scores,credits etc. What happens if another game on the portal i submitted my game uses the same keyword to store,lets say , the score? Is it possible to mess the player's storage ? Or does the site or the browser takes care of this? What happens when i use localStorage.clear() ? Does this delete everything on the player's storage? Or just the values i assigned on my game? Sorry if those questions are dumb but i'm currently got some issues on a game i uploaded on gamejolt.com Thanks in advance!
  • Create New...