feat: bidirectional door system + editor bi-link tool

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 <noreply@anthropic.com>
This commit is contained in:
Jose Luis
2026-03-20 17:15:25 +01:00
parent 1d494d8ef3
commit f740d96fc0
4 changed files with 169 additions and 52 deletions

View File

@@ -40,10 +40,6 @@ export const worldState = {
solvedPuzzles: [], // array of puzzleIds that have been solved
activePuzzle: null, // { puzzleId, requiredOutputs, doorX, doorY } or null when no puzzle active
// Return points — remembers where the player entered each map from
// Stack of { fromMap, fromX, fromY } — push on enter, pop on exit
returnPoints: [],
// Game flags
flags: {
// Examples: