file = {
score: Game.scene.score,
visits: Game.scene.visits
};
localStorage.setItem('saveFile',JSON.stringify(file));
};
Game.loadFile = function(){
var file = JSON.parse(localStorage.getItem('saveFile'));
Game.scene.score = file.score;
Game.scene.visits = file.visits;
};
..
What and what should i edit for it to fit into my website?
..
Also please..and what file in my "websites file manager" can i put this code for it to work with the JavaScript game-player that i embedd on my website?
Can any other body help out?..please .. Thank alot
I will help you.. learn JavaScript depending on shortcuts will only increase your troubles
Обсуждают сегодня