Spaces:
Runtime error
Runtime error
fix: revert character positions to original a6c1202 coordinates
Browse filesRestore area rects and parent positions to the version the user liked,
before the scene-landmark realignment that placed them incorrectly.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
frontend/electron-standalone.html
CHANGED
|
@@ -4419,11 +4419,11 @@ function toggleBrokerPanel() {
|
|
| 4419 |
}
|
| 4420 |
|
| 4421 |
function getAreaRect(area) {
|
| 4422 |
-
// 区域坐标
|
| 4423 |
const rects = {
|
| 4424 |
-
breakroom: { x1:
|
| 4425 |
-
writing: { x1:
|
| 4426 |
-
error: { x1:
|
| 4427 |
};
|
| 4428 |
return rects[area] || rects.breakroom;
|
| 4429 |
}
|
|
@@ -4455,8 +4455,8 @@ function toggleBrokerPanel() {
|
|
| 4455 |
// 父母固定点位(cats 静态猫)
|
| 4456 |
const PARENT_IDS = new Set(['adam', 'eve']);
|
| 4457 |
const PARENT_POSITIONS = {
|
| 4458 |
-
adam: { breakroom: { x:
|
| 4459 |
-
eve: { breakroom: { x:
|
| 4460 |
};
|
| 4461 |
|
| 4462 |
function getParentPoint(agentId, area) {
|
|
@@ -4508,7 +4508,7 @@ function toggleBrokerPanel() {
|
|
| 4508 |
const animIdleKey = `guest_anim_${animIdx}_idle`;
|
| 4509 |
|
| 4510 |
if (game.textures.exists(animKey) && game.anims.exists(animIdleKey)) {
|
| 4511 |
-
sprite = game.add.sprite(p.x, p.y, animKey).setOrigin(0.5, 1).setScale(
|
| 4512 |
sprite.anims.play(animIdleKey, true);
|
| 4513 |
} else {
|
| 4514 |
sprite = game.add.text(p.x, p.y, '🦞', { fontFamily: 'ArkPixel, monospace', fontSize: '30px' }).setOrigin(0.5, 1);
|
|
|
|
| 4419 |
}
|
| 4420 |
|
| 4421 |
function getAreaRect(area) {
|
| 4422 |
+
// 区域坐标(海辛提供,左上-右下;这里的 x/y 作为 sprite 底部锚点坐标来用)
|
| 4423 |
const rects = {
|
| 4424 |
+
breakroom: { x1: 511, y1: 262, x2: 841, y2: 621 },
|
| 4425 |
+
writing: { x1: 190, y1: 526, x2: 380, y2: 683 },
|
| 4426 |
+
error: { x1: 932, y1: 275, x2: 1109, y2: 327 }
|
| 4427 |
};
|
| 4428 |
return rects[area] || rects.breakroom;
|
| 4429 |
}
|
|
|
|
| 4455 |
// 父母固定点位(cats 静态猫)
|
| 4456 |
const PARENT_IDS = new Set(['adam', 'eve']);
|
| 4457 |
const PARENT_POSITIONS = {
|
| 4458 |
+
adam: { breakroom: { x: 511, y: 262 }, writing: { x: 190, y: 526 }, error: { x: 932, y: 275 } },
|
| 4459 |
+
eve: { breakroom: { x: 841, y: 621 }, writing: { x: 380, y: 683 }, error: { x: 1109, y: 327 } }
|
| 4460 |
};
|
| 4461 |
|
| 4462 |
function getParentPoint(agentId, area) {
|
|
|
|
| 4508 |
const animIdleKey = `guest_anim_${animIdx}_idle`;
|
| 4509 |
|
| 4510 |
if (game.textures.exists(animKey) && game.anims.exists(animIdleKey)) {
|
| 4511 |
+
sprite = game.add.sprite(p.x, p.y, animKey).setOrigin(0.5, 1).setScale(4.0);
|
| 4512 |
sprite.anims.play(animIdleKey, true);
|
| 4513 |
} else {
|
| 4514 |
sprite = game.add.text(p.x, p.y, '🦞', { fontFamily: 'ArkPixel, monospace', fontSize: '30px' }).setOrigin(0.5, 1);
|