mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2025-09-11 02:57:36 +02:00
Fixes for background tile widget
This commit is contained in:
@@ -77,7 +77,7 @@ export default class Field
|
||||
{
|
||||
const position = this.index >= -1
|
||||
? -this.index * this.tileset.getTileWidth()
|
||||
: (this.index % this.tileset.background.tiles) * this.tileset.getTileWidth();
|
||||
: ((this.index + 2) % this.tileset.background.tiles) * this.tileset.getTileWidth();
|
||||
|
||||
this.htmlElement.style.backgroundPositionX = String(position) + 'px';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user