From 597486afcb9b503058fb5dfba63bd49ceea21d48 Mon Sep 17 00:00:00 2001 From: Admin Date: Sat, 19 Sep 2026 08:50:57 +0000 Subject: [PATCH] fix: sync reversed log collision offset --- src/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index cbb4964..a182b62 100644 --- a/src/main.js +++ b/src/main.js @@ -422,7 +422,10 @@ class ForestScene extends Phaser.Scene { .setDepth(6); const surfaceWidth = (LOG_SURFACE_RIGHT - LOG_SURFACE_LEFT) * scale; - const surfaceCenterOffset = ( + // The visible moss cap is biased left relative to the cropped log frame. + // Keep the corrected surface width, but mirror the centre correction so + // the collider follows the artwork rather than drifting right. + const surfaceCenterOffset = -( ((LOG_SURFACE_LEFT + LOG_SURFACE_RIGHT) / 2) - (LOG_FRAME_WIDTH / 2) ) * scale;