Search the Community
Showing results for tags 'data structure'.
Found 2 results
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.
I'm working on a game which has very very large worlds (billions of tiles). Storing such data into an Array isn't possible and I'm trying find the best data structure to fit with my needs. How should I store and read the world map? I took a look to the File API but the solution didn't appeared to me... Maybe something with a FileReader. Any clues?