Hide logo on loading screens
authorRuben Rodriguez <ruben@gnu.org>
Fri, 26 Feb 2021 17:31:35 +0000 (12:31 -0500)
committerRuben Rodriguez <ruben@gnu.org>
Fri, 26 Feb 2021 17:31:35 +0000 (12:31 -0500)
front/src/Phaser/Login/LoginScene.ts
front/src/Phaser/Login/SelectCharacterScene.ts
front/src/Phaser/Reconnecting/ReconnectingScene.ts

index 1b7ef76ffe502f9d0030be8faddd59e7e7a392b3..6592bed93c4a4c97e269251a8df54310e005009e 100644 (file)
@@ -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);
index dab9d61fb316babb9086569f361c928e49bdc808..db2e5898a405d16d84aa6313e1baae1cc9ec3540 100644 (file)
@@ -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);
index 7188b2231bccc9e171bd8b1152bef0ebf515bbc4..4a888bebc4a7a4143e2ef28e17d8e278b1c14208 100644 (file)
@@ -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();