Skip to content

Commit

Permalink
scoring system 100% complete
Browse files Browse the repository at this point in the history
  • Loading branch information
Vermilingua committed Nov 1, 2013
1 parent 3b3755c commit a68f58e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/.settings
*.TODO
36 changes: 19 additions & 17 deletions script/space.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,10 +393,7 @@ var Space = {
var backup = new Object();
backup.score = null;
backup.stores = null;
$('.deleteSave, .share, .manualSave').remove();
Prestige.populateNewSave(backup);
$('#content, #notifications').remove();
$('.deleteSave, .share, .manualSave').attr('style', 'color: white;').animate({opacity:0},1500);


$('<center>')
.addClass('centerCont')
Expand All @@ -415,20 +412,25 @@ var Space = {
.animate({opacity:1},1500);
$('<br />')
.appendTo('.centerCont');
$('<span>')
.addClass('deleteSave endGame')
.text('restart.')
.click(Engine.confirmDelete)
.appendTo('.centerCont')
.animate({opacity:1},1500);

$('#starsContainer').remove();
if(typeof Storage != 'undefined' && localStorage) {
backup.stores = Prestige.saveStores(true);
backup.score = Prestige.saveScore();
localStorage.clear();
}
delete window.State;
Engine.options = {};
if(typeof Storage != 'undefined' && localStorage) {
backup.stores = Prestige.saveStores(true);
backup.score = Prestige.saveScore();
localStorage.clear();
}
delete window.State;
Prestige.populateNewSave(backup);
$('.deleteSave, .share, .manualSave').remove();
$('#content, #notifications').remove();
$('.deleteSave, .share, .manualSave').attr('style', 'color: white;').animate({opacity:0},1500);
$('<span>')
.addClass('deleteSave endGame')
.text('restart.')
.click(Engine.confirmDelete)
.appendTo('.centerCont')
.animate({opacity:1},1500);
Engine.options = {};
}
});
}, 2000);
Expand Down

0 comments on commit a68f58e

Please sign in to comment.