From 43cc7e53f9bf4f42beeeaa3dff904c09559a6eee Mon Sep 17 00:00:00 2001 From: Paula Date: Sat, 7 Mar 2026 19:57:54 -0300 Subject: [PATCH] im stupid the square is the tile the point is the player --- client/systems/dimension_logic.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/client/systems/dimension_logic.ts b/client/systems/dimension_logic.ts index eaa0a84..0f6f817 100644 --- a/client/systems/dimension_logic.ts +++ b/client/systems/dimension_logic.ts @@ -51,14 +51,13 @@ export class DimensionLogicSystem extends System { } const distance_to_player = distance_point_rectangle( + player_position.x + (72 / 2), + player_position.y + (72 / 2), tile.x * TILE_SIZE, tile.y * TILE_SIZE, - player_position.x, - player_position.y, - 72, - 72, + TILE_SIZE, + TILE_SIZE, ); - console.log(distance_to_player); if (distance_to_player > TILE_SIZE * 2) { return; }