fix: exits place player in front of door, not on it
When exiting the lab, appear one tile below the town's entrance door instead of ON the door tile, which caused an infinite re-trigger loop. Same pattern for all map transitions — land adjacent to the exit, not on top of it. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -261,8 +261,8 @@ function loadCurrentGameData() {
|
||||
{ id: 'professor', x: 5, y: 1, facing: 'down', dialog: ['Welcome to the Circuit Lab!','I\'m the Professor. We study logic gates here.','Use the workshop tables to design circuits.','Press TAB to open the Workshop anytime!'] }
|
||||
];
|
||||
mapData.lab.exits = [
|
||||
{ x: 4, y: 11, targetMap: 'pallet-town', targetX: 10, targetY: 7 },
|
||||
{ x: 5, y: 11, targetMap: 'pallet-town', targetX: 10, targetY: 7 }
|
||||
{ x: 4, y: 11, targetMap: 'pallet-town', targetX: 10, targetY: 8 },
|
||||
{ x: 5, y: 11, targetMap: 'pallet-town', targetX: 10, targetY: 8 }
|
||||
];
|
||||
mapData.lab.interactions = [
|
||||
{ x: 2, y: 3, type: 'workshop', label: 'Workshop Table' },
|
||||
|
||||
Reference in New Issue
Block a user