Change calque names into game scene TS file
authorNIP <n.peguin@thecodingmachine.com>
Mon, 13 Apr 2020 18:05:13 +0000 (20:05 +0200)
committerNIP <n.peguin@thecodingmachine.com>
Mon, 13 Apr 2020 18:05:13 +0000 (20:05 +0200)
front/src/Phaser/Game/GameScene.ts

index 48acf4a2046f76ea990ba5ee14047c9866048981..12acded0b657e6e037e2aa32c2bd7c41a967d693 100644 (file)
@@ -66,8 +66,8 @@ export class GameScene extends Phaser.Scene implements GameSceneInterface{
 
         //add layer on map
         this.Layers = new Array<Phaser.Tilemaps.StaticTilemapLayer>();
-        this.addLayer( this.Map.createStaticLayer("Calque 1", [this.Terrain], 0, 0).setDepth(-2) );
-        this.addLayer( this.Map.createStaticLayer("Calque 2", [this.Terrain], 0, 0).setDepth(-1) );
+        this.addLayer( this.Map.createStaticLayer("bottom", [this.Terrain], 0, 0).setDepth(-2) );
+        this.addLayer( this.Map.createStaticLayer("top", [this.Terrain], 0, 0).setDepth(-1) );
 
         //add entities
         this.Objects = new Array<Phaser.Physics.Arcade.Sprite>();