From 71321e8e884350060089806b8f9b9070e7c9774e Mon Sep 17 00:00:00 2001 From: Jose Luis Date: Fri, 20 Mar 2026 16:29:40 +0100 Subject: [PATCH] feat: add standalone level editor for visual map editing Full-featured editor at /editor.html with: - Visual wall painting (click/drag to paint/erase collision tiles) - Entity placement: NPCs, exits, interactions, spawn point - Properties panel for editing dialog, facing, target maps, etc. - Zoom/pan with scroll wheel and right-click drag - Tile coordinate overlay on the map PNG backgrounds - Color-coded overlays matching the F3 debug view - Export as JSON or as complete maps.js source code - Import JSON to load/restore map data - Keyboard shortcuts: 1-7 for tools, Delete to remove entities - All 4 maps supported: lab, pallet-town, house, route-1 Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 1 + editor.html | 960 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 961 insertions(+) create mode 100644 editor.html diff --git a/Dockerfile b/Dockerfile index 070a9fb..1164ee9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ FROM nginx:alpine COPY index.html /usr/share/nginx/html/ +COPY editor.html /usr/share/nginx/html/ COPY css/ /usr/share/nginx/html/css/ COPY js/ /usr/share/nginx/html/js/ COPY assets/ /usr/share/nginx/html/assets/ diff --git a/editor.html b/editor.html new file mode 100644 index 0000000..613afee --- /dev/null +++ b/editor.html @@ -0,0 +1,960 @@ + + + + + +Level Editor β€” Logic Gates + + + + + +
+
+

⚑ Level Editor

+ +
+
+ + + + + + + + +
+
+

Spawn

+
+

NPCs

+
+

Exits

+
+

Interactions

+
+
+
+

Properties

+
Click an entity to edit
+
+ +
+ + +
+ +
+ Tile: β€” + β€” + Zoom: 3x +
+
+ + +
+ + + + + + + + + +