diff --git a/front/src/Phaser/Game/GameMap.ts b/front/src/Phaser/Game/GameMap.ts index 6688acb8..20c78347 100644 --- a/front/src/Phaser/Game/GameMap.ts +++ b/front/src/Phaser/Game/GameMap.ts @@ -81,7 +81,13 @@ export class GameMap { let depth = -2; for (const layer of this.flatLayers) { if (layer.type === "tilelayer") { - this.phaserLayers.push(phaserMap.createLayer(layer.name, terrains, 0, 0).setDepth(depth)); + this.phaserLayers.push( + phaserMap + .createLayer(layer.name, terrains, (layer.x || 0) * 32, (layer.y || 0) * 32) + .setDepth(depth)); + .setAlpha(layer.opacity) + .setVisible(layer.visible) + .setSize(layer.width, layer.height) } if (layer.type === "objectgroup" && layer.name === "floorLayer") { depth = DEPTH_OVERLAY_INDEX;