From f7e4bd0e36ba069495a2defc2b2192e3dcbc3b43 Mon Sep 17 00:00:00 2001 From: cha0s Date: Mon, 22 Jul 2024 01:43:05 -0500 Subject: [PATCH] fix: adjust interactivity bounds --- app/ecs/components/interacts.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/ecs/components/interacts.js b/app/ecs/components/interacts.js index e4414a7..bdb720f 100644 --- a/app/ecs/components/interacts.js +++ b/app/ecs/components/interacts.js @@ -9,16 +9,16 @@ export default class Interacts extends Component { let x0 = Position.x - 8; let y0 = Position.y - 8; if (0 === Direction.direction) { - y0 -= 16 + y0 -= 12 } if (1 === Direction.direction) { - x0 += 16 + x0 += 12 } if (2 === Direction.direction) { - y0 += 16 + y0 += 12 } if (3 === Direction.direction) { - x0 -= 16 + x0 -= 12 } return {x0, x1: x0 + 15, y0, y1: y0 + 15}; }