Correct background tiles are shown ingame now

This commit is contained in:
Mal 2025-05-18 12:25:24 +02:00
parent 75797d968e
commit 44d4b88e01

View File

@ -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,