From ec22734ce0b00db83a9b0d4346899806706ad6b2 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Thu, 21 Feb 2013 22:50:41 -0800 Subject: Small animation adjustment. --- js/mapspecs.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'js') 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) { -- cgit v1.2.3