From 201bbf3e917066fb05ff1f10f7166d262b8ed2cf Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Wed, 18 Feb 2026 19:29:08 +0100 Subject: Simple map editor --- mapeditor.html | 100 ++++++++++++++++++++------------------------------------- 1 file changed, 35 insertions(+), 65 deletions(-) (limited to 'mapeditor.html') diff --git a/mapeditor.html b/mapeditor.html index 03661e7..c8568cb 100644 --- a/mapeditor.html +++ b/mapeditor.html @@ -6,20 +6,13 @@ ASCII Map Editor -
-

ASCII Map Editor

-

Paint tiles directly onto the grid. Export keeps the same text layout as your map files.

-
+
-
- -
@@ -240,6 +189,16 @@ "╝", "═", "║", + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", "#", ".", "~", @@ -259,6 +218,16 @@ "S": "Red", "G": "Red", "$": "Gold", + "0": "Cyan", + "1": "Cyan", + "2": "Cyan", + "3": "Cyan", + "4": "Cyan", + "5": "Cyan", + "6": "Cyan", + "7": "Cyan", + "8": "Cyan", + "9": "Cyan", " ": "Void", "┌": "Border corner", "┐": "Border corner", @@ -321,6 +290,7 @@ if ("#┌┐└┘─│╔╗╚╝═║".includes(tile)) return "wall"; if (tile === ".") return "floor"; if (tile === "~") return "water"; + if ("0123456789".includes(tile)) return "cyan"; if (tile === "N") return "cyan"; if ("BSG".includes(tile)) return "red"; if (tile === "$") return "gold"; -- cgit v1.2.3