Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Daniel Lemke

2
Posts
A member registered May 03, 2014 · View creator page →

Recent community posts

What are you trying to accomplish by doing this? If you just need to save and load state, you can make life much easier on yourself by using localStorage. Is your game multiplayer? If not, save yourself the trouble of managing state on your server and leave it on the client. Here’s a quick way to accomplish this (from StackOverflow):

var testObject = { 'one': 1, 'two': 2, 'three': 3 };

// Put the object into storage
localStorage.setItem('testObject', JSON.stringify(testObject));

// Retrieve the object from storage
var retrievedObject = localStorage.getItem('testObject');

console.log('retrievedObject: ', JSON.parse(retrievedObject));

From the rules with emphasis added:

3. Color palettes must consist of 4 colors. (Only 4 colors can be displayed on the screen at a time, so you are more then welcome to have changing palettes!