summaryrefslogtreecommitdiffstats
path: root/js/mapspecs.js
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-02-21 22:50:41 -0800
committerPatrick Davison <snapwilliam@gmail.com>2013-02-21 22:50:41 -0800
commitec22734ce0b00db83a9b0d4346899806706ad6b2 (patch)
treea9b11e09ec186c1d9a257dfdc31261106a018d65 /js/mapspecs.js
parent7b939119c99576a9525ff933958eb9d322fa3195 (diff)
downloadpathery-ec22734ce0b00db83a9b0d4346899806706ad6b2.tar.xz
Small animation adjustment.
Diffstat (limited to 'js/mapspecs.js')
-rw-r--r--js/mapspecs.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/js/mapspecs.js b/js/mapspecs.js
index 2a5bd1d..9cbd336 100644
--- a/js/mapspecs.js
+++ b/js/mapspecs.js
@@ -761,12 +761,14 @@ function useSolution(mapid, inputSolution, moves, tempWallColor, tempWallEmblem)
solution[mapid] = inputSolution;
var animateA = "showTempSolution(\""+mapid+"\", \""+inputSolution+"\", \""+moves+"\", \""+tempWallColor+"\", \""+tempWallEmblem+"\");";
var animateB = "showTempSolution(\""+mapid+"\", \""+inputSolution+"\", \""+moves+"\", false, false);";
+ //TODO: Sticky colors for the placed walls by the user would be cool.
+ //var animateC = "wallColor = false; wallEmblem = false;";
setTimeout(animateA, 50);
- setTimeout(animateB, 100);
- setTimeout(animateA, 150);
- setTimeout(animateB, 200);
+ setTimeout(animateB, 150);
setTimeout(animateA, 250);
- setTimeout(animateB, 450);
+ setTimeout(animateB, 350);
+ setTimeout(animateA, 450);
+ setTimeout(animateB, 550);
}
//Shows a solution for temporary use, see 'RestoreSolution'
function showTempSolution(mapid, tempSolution, moves, tempWallColor, tempWallEmblem) {