From 44d4b88e01d1119a3a3322ee69c5a6940b33c7a4 Mon Sep 17 00:00:00 2001 From: Mal Date: Sun, 18 May 2025 12:25:24 +0200 Subject: [PATCH] Correct background tiles are shown ingame now --- js/retro/RetroArchitecture.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/retro/RetroArchitecture.js b/js/retro/RetroArchitecture.js index f5a47ad..ea4d440 100644 --- a/js/retro/RetroArchitecture.js +++ b/js/retro/RetroArchitecture.js @@ -317,7 +317,7 @@ export default class RetroArchitecture { context.drawImage( this.tilesetSpriteBackground.canvas, - -(field.tile.index % 2) * this.tileWidth, + -((field.tile.index + 2) % this.tilesBackground) * this.tileWidth, 0, this.tileWidth, this.tileHeight,