From b141eafb75b9127e71e784940d83cbe41e56a2b2 Mon Sep 17 00:00:00 2001 From: Mal Date: Sat, 7 Dec 2024 20:05:32 +0100 Subject: [PATCH] Gaps between terrain sprites removed --- js/retro/RetroArchitecture.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/retro/RetroArchitecture.js b/js/retro/RetroArchitecture.js index e34b8ae..7425da2 100644 --- a/js/retro/RetroArchitecture.js +++ b/js/retro/RetroArchitecture.js @@ -228,10 +228,10 @@ export default class RetroArchitecture 0, this.tileWidth, this.tileHeight, - x * this.tileWidth - camera.position.x - 1, - y * this.tileHeight - camera.position.y - 1, - this.tileWidth + 1, - this.tileHeight + 1 + Math.round(x * this.tileWidth - camera.position.x), + Math.round(y * this.tileHeight - camera.position.y), + this.tileWidth, + this.tileHeight, ); }