From 619dd20c332d93453e8dafa282a264f73f19ed4a Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Fri, 26 Feb 2021 12:31:35 -0500 Subject: [PATCH] Hide logo on loading screens --- front/src/Phaser/Login/LoginScene.ts | 4 ++-- front/src/Phaser/Login/SelectCharacterScene.ts | 6 +++--- front/src/Phaser/Reconnecting/ReconnectingScene.ts | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/front/src/Phaser/Login/LoginScene.ts b/front/src/Phaser/Login/LoginScene.ts index 1b7ef76..6592bed 100644 --- a/front/src/Phaser/Login/LoginScene.ts +++ b/front/src/Phaser/Login/LoginScene.ts @@ -64,8 +64,8 @@ export class LoginScene extends Phaser.Scene { this.pressReturnField = new TextField(this, this.game.renderer.width / 2, 130, 'Press enter to start'); this.pressReturnField.setOrigin(0.5).setCenterAlign() - this.logo = new Image(this, this.game.renderer.width - 30, this.game.renderer.height - 20, LoginTextures.icon); - this.add.existing(this.logo); + //this.logo = new Image(this, this.game.renderer.width - 30, this.game.renderer.height - 20, LoginTextures.icon); + //this.add.existing(this.logo); let infoText = "Commands: \n - Arrows or Z,Q,S,D to move\n - SHIFT to run"; this.infoTextField = new TextField(this, 10, this.game.renderer.height - 35, infoText); diff --git a/front/src/Phaser/Login/SelectCharacterScene.ts b/front/src/Phaser/Login/SelectCharacterScene.ts index dab9d61..db2e589 100644 --- a/front/src/Phaser/Login/SelectCharacterScene.ts +++ b/front/src/Phaser/Login/SelectCharacterScene.ts @@ -43,7 +43,7 @@ export class SelectCharacterScene extends Phaser.Scene { preload() { this.load.image(LoginTextures.playButton, "resources/objects/play_button.png"); - this.load.image(LoginTextures.icon, "resources/logos/tcm_full.png"); + //this.load.image(LoginTextures.icon, "resources/logos/tcm_full.png"); // Note: arcade.png from the Phaser 3 examples at: https://github.com/photonstorm/phaser3-examples/tree/master/public/assets/fonts/bitmap this.load.bitmapFont(LoginTextures.mainFont, 'resources/fonts/arcade.png', 'resources/fonts/arcade.xml'); //add player png @@ -67,8 +67,8 @@ export class SelectCharacterScene extends Phaser.Scene { this.selectedRectangle = this.add.rectangle(rectangleXStart, 90, 32, 32).setStrokeStyle(2, 0xFFFFFF); - this.logo = new Image(this, this.game.renderer.width - 30, this.game.renderer.height - 20, LoginTextures.icon); - this.add.existing(this.logo); + //this.logo = new Image(this, this.game.renderer.width - 30, this.game.renderer.height - 20, LoginTextures.icon); + //this.add.existing(this.logo); this.input.keyboard.on('keyup-ENTER', () => { return this.login(this.loginName); diff --git a/front/src/Phaser/Reconnecting/ReconnectingScene.ts b/front/src/Phaser/Reconnecting/ReconnectingScene.ts index 7188b22..4a888be 100644 --- a/front/src/Phaser/Reconnecting/ReconnectingScene.ts +++ b/front/src/Phaser/Reconnecting/ReconnectingScene.ts @@ -26,7 +26,7 @@ export class ReconnectingScene extends Phaser.Scene { } preload() { - this.load.image(ReconnectingTextures.icon, "resources/logos/tcm_full.png"); + //this.load.image(ReconnectingTextures.icon, "resources/logos/tcm_full.png"); // Note: arcade.png from the Phaser 3 examples at: https://github.com/photonstorm/phaser3-examples/tree/master/public/assets/fonts/bitmap this.load.bitmapFont(ReconnectingTextures.mainFont, 'resources/fonts/arcade.png', 'resources/fonts/arcade.xml'); this.load.spritesheet( @@ -37,8 +37,8 @@ export class ReconnectingScene extends Phaser.Scene { } create() { - this.logo = new Image(this, this.game.renderer.width - 30, this.game.renderer.height - 20, ReconnectingTextures.icon); - this.add.existing(this.logo); + //this.logo = new Image(this, this.game.renderer.width - 30, this.game.renderer.height - 20, ReconnectingTextures.icon); + //this.add.existing(this.logo); this.reconnectingField = new TextField(this, this.game.renderer.width / 2, this.game.renderer.height / 2, "Connection lost. Reconnecting..."); this.reconnectingField.setOrigin(0.5, 0.5).setCenterAlign(); -- 2.25.1