Fix rendering of tiles above the actor layer
This commit is contained in:
parent
c6594712df
commit
246ef468de
@ -241,6 +241,8 @@ export class CanvasRenderer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
packet.perception = this.perception;
|
packet.perception = this.perception;
|
||||||
|
packet.offsetx = 0;
|
||||||
|
packet.offsety = 0;
|
||||||
for (let x = xf0; x <= x1; x++) {
|
for (let x = xf0; x <= x1; x++) {
|
||||||
for (let y = yf0; y <= y1; y++) {
|
for (let y = yf0; y <= y1; y++) {
|
||||||
let cell = this.level.cell(x, y);
|
let cell = this.level.cell(x, y);
|
||||||
@ -249,6 +251,8 @@ export class CanvasRenderer {
|
|||||||
if (! tile)
|
if (! tile)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
packet.x = x - x0;
|
||||||
|
packet.y = y - y0;
|
||||||
this.tileset.draw(tile, packet);
|
this.tileset.draw(tile, packet);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user