Fix misplaced semicolon

This commit is contained in:
Chasethechicken 2021-12-21 23:26:15 +01:00
parent 66efdebc78
commit 1ea7b45c7e

View File

@ -84,10 +84,11 @@ export class GameMap {
this.phaserLayers.push( this.phaserLayers.push(
phaserMap phaserMap
.createLayer(layer.name, terrains, (layer.x || 0) * 32, (layer.y || 0) * 32) .createLayer(layer.name, terrains, (layer.x || 0) * 32, (layer.y || 0) * 32)
.setDepth(depth)); .setDepth(depth)
.setAlpha(layer.opacity) .setAlpha(layer.opacity)
.setVisible(layer.visible) .setVisible(layer.visible)
.setSize(layer.width, layer.height) .setSize(layer.width, layer.height)
);
} }
if (layer.type === "objectgroup" && layer.name === "floorLayer") { if (layer.type === "objectgroup" && layer.name === "floorLayer") {
depth = DEPTH_OVERLAY_INDEX; depth = DEPTH_OVERLAY_INDEX;