Correct background tiles are shown ingame now
This commit is contained in:
parent
75797d968e
commit
44d4b88e01
@ -317,7 +317,7 @@ export default class RetroArchitecture
|
|||||||
{
|
{
|
||||||
context.drawImage(
|
context.drawImage(
|
||||||
this.tilesetSpriteBackground.canvas,
|
this.tilesetSpriteBackground.canvas,
|
||||||
-(field.tile.index % 2) * this.tileWidth,
|
-((field.tile.index + 2) % this.tilesBackground) * this.tileWidth,
|
||||||
0,
|
0,
|
||||||
this.tileWidth,
|
this.tileWidth,
|
||||||
this.tileHeight,
|
this.tileHeight,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user