mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-29 00:31:53 +08:00
Game fades to black at the end, and stays that way until the player clicks restart.
This commit is contained in:
+4
-9
@@ -369,9 +369,10 @@ var Space = {
|
||||
$('#locationSlider, #worldPanel, #spacePanel, #notifications').remove();
|
||||
$('#header').empty();
|
||||
setTimeout(function() {
|
||||
$('body').removeClass('noMask').stop().animate({
|
||||
$('body').stop();
|
||||
$('#starsContainer').animate({
|
||||
opacity: 0,
|
||||
'background-color': '#FFF'
|
||||
'background-color': '#000'
|
||||
}, {
|
||||
duration: 2000,
|
||||
progress: function() {
|
||||
@@ -381,18 +382,12 @@ var Space = {
|
||||
$('#notifyGradient').attr('style', 'background-color:'+cur+';background:-webkit-' + s + ';background:' + s);
|
||||
},
|
||||
complete: function() {
|
||||
$('#starsContainer, .deleteSave, .share').remove();
|
||||
$('#starsContainer').remove();
|
||||
if(typeof Storage != 'undefined' && localStorage) {
|
||||
localStorage.clear();
|
||||
}
|
||||
delete window.State;
|
||||
Engine.options = {};
|
||||
setTimeout(function() {
|
||||
Engine.init();
|
||||
$('body').animate({
|
||||
opacity: 1
|
||||
}, 500, 'linear');
|
||||
}, 2000);
|
||||
}
|
||||
});
|
||||
}, 2000);
|
||||
|
||||
Reference in New Issue
Block a user