diff --git a/app/Game/Client/View/Pixi/View.js b/app/Game/Client/View/Pixi/View.js index 6f68723..212df0e 100755 --- a/app/Game/Client/View/Pixi/View.js +++ b/app/Game/Client/View/Pixi/View.js @@ -35,7 +35,8 @@ function (Parent, DomController, PIXI, Settings, Nc, Exception, GameStats, Layer this.init(); this.ncTokens = this.ncTokens.concat([ - Nc.on(Nc.ns.client.pointerLock.change, this.onPointerLockChange, this) + Nc.on(Nc.ns.client.pointerLock.change, this.onPointerLockChange, this), + Nc.on(Nc.ns.core.game.events.level.loaded, this.showDefaultLayers, this) ]); PIXI.scaleModes.DEFAULT = PIXI.scaleModes.NEAREST; @@ -84,20 +85,31 @@ function (Parent, DomController, PIXI, Settings, Nc, Exception, GameStats, Layer this.stage.addChild(this.gameStats.getInfoContainer()); this.ghostLayer = new Ghost(); + this.ghostLayer.hide(); this.layerManager.insert(this.ghostLayer, false); this.swiperLayer = new Swiper(); + this.swiperLayer.hide() this.layerManager.insert(this.swiperLayer, false); this.debugLayer = Debug; + this.debugLayer.hide(); this.layerManager.insert(this.debugLayer, false); this.messagesLayer = new Messages(); + this.messagesLayer.hide(); this.layerManager.insert(this.messagesLayer, false); this.render(); } + PixiView.prototype.showDefaultLayers = function() { + this.ghostLayer.show(); + this.swiperLayer.show() + this.debugLayer.show(); + this.messagesLayer.show(); + }; + PixiView.prototype.render = function () { if (this.me) { diff --git a/app/Game/Config/Settings.js b/app/Game/Config/Settings.js index 713ef6b..c2759ed 100755 --- a/app/Game/Config/Settings.js +++ b/app/Game/Config/Settings.js @@ -78,7 +78,7 @@ function () { // NETWORKING NETWORK_UPDATE_INTERVAL: 70, // in milliseconds - NETWORK_LOG_INCOMING: true, + NETWORK_LOG_INCOMING: false, NETWORK_LOG_OUTGOING: false, NETWORK_LOG_FILTER: ["ping", "pong", "worldUpdate", "lookAt"],