improved textField component and allowed 8 caracter names
This commit is contained in:
parent
49a0125f88
commit
67a9bd2520
10 changed files with 36 additions and 35 deletions
|
@ -45,7 +45,6 @@ export class FourOFourScene extends Phaser.Scene {
|
|||
this.add.existing(this.logo);
|
||||
|
||||
this.mapNotFoundField = new TextField(this, this.game.renderer.width / 2, this.game.renderer.height / 2, "404 - File not found");
|
||||
this.mapNotFoundField.setOrigin(0.5, 0.5).setCenterAlign();
|
||||
|
||||
let text: string = '';
|
||||
if (this.file !== undefined) {
|
||||
|
@ -56,7 +55,6 @@ export class FourOFourScene extends Phaser.Scene {
|
|||
}
|
||||
|
||||
this.couldNotFindField = new TextField(this, this.game.renderer.width / 2, this.game.renderer.height / 2 + 24, text);
|
||||
this.couldNotFindField.setOrigin(0.5, 0.5).setCenterAlign();
|
||||
|
||||
const url = this.file ? this.file : this.url;
|
||||
if (url !== undefined) {
|
||||
|
|
|
@ -34,7 +34,6 @@ export class ReconnectingScene extends Phaser.Scene {
|
|||
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();
|
||||
|
||||
const cat = this.physics.add.sprite(this.game.renderer.width / 2, this.game.renderer.height / 2 - 32, 'cat');
|
||||
this.anims.create({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue