From 60fa55b49e8f4cf8570882b5eb6ad3f9bbb7885b Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Thu, 28 Feb 2013 23:08:28 -0800 Subject: Labeled checkpoints and etc in the mapDisplay --- js/mapspecs.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'js') diff --git a/js/mapspecs.js b/js/mapspecs.js index 0ea99db..2387a00 100644 --- a/js/mapspecs.js +++ b/js/mapspecs.js @@ -826,6 +826,17 @@ function displayMap(mapid, divID, goalSize, solution, moves, challengeMap, isThu }); } +var Tile = { +"o" : "Open", +"s" : "Start", +"f" : "Finish", +"c" : "Checkpoint", +"r" : "Rock", +"t" : "Teleport In", +"u" : "Teleport Out", +"p" : "Unbuildable", +"x" : "Single-Path-Rock"}; + //Map as object. If target width is NULL or False, default width is used. function mapAsHTML(map, targetWidth, demo) { @@ -867,7 +878,7 @@ function mapAsHTML(map, targetWidth, demo) { mapgrid += "
"; mapgrid += "
"; } else { - mapgrid += "
"; + mapgrid += "
"; mapgrid += "
"; } } @@ -931,10 +942,7 @@ function mapThumbnailHTML(map, targetWidth, isActive) { height = tileWidth * map.height; var mapgrid = ''; - - var r = ''; - //r += "
"; r += map.name; mapgrid += '
'; @@ -949,9 +957,7 @@ function mapThumbnailHTML(map, targetWidth, isActive) { } } mapgrid += '
'; - r += mapgrid; - //r += '
'; return r; } -- cgit v1.2.3