From f740d96fc0f31211cd7bbd03719b052ec57f68ab Mon Sep 17 00:00:00 2001 From: Jose Luis Date: Fri, 20 Mar 2026 17:15:25 +0100 Subject: [PATCH] feat: bidirectional door system + editor bi-link tool MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace spawn-based map transitions with explicit bidirectional door links. Every exit now requires targetX/targetY β€” spawn is only used for initial game start. Remove returnPoints stack from worldState. Editor improvements: - New "Bi-Link" tool creates paired exits on both maps at once - Exit list shows target coordinates and warns if missing - Canvas renders target info labels below exit tiles - Properties panel handles game ID ↔ editor ID mapping Co-Authored-By: Claude Opus 4.6 --- editor.html | 173 ++++++++++++++++++++++++++++++++++++++--- js/world/gameMode.js | 38 ++------- js/world/maps.js | 6 +- js/world/worldState.js | 4 - 4 files changed, 169 insertions(+), 52 deletions(-) diff --git a/editor.html b/editor.html index d9e08d1..91bb2a7 100644 --- a/editor.html +++ b/editor.html @@ -91,7 +91,8 @@ body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', syste - + + @@ -144,6 +145,31 @@ body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', syste + + +