improved textField component and allowed 8 caracter names

This commit is contained in:
arp 2020-10-15 12:05:40 +02:00
parent 49a0125f88
commit 67a9bd2520
10 changed files with 36 additions and 35 deletions

View file

@ -77,7 +77,7 @@ export abstract class Character extends Container {
}
this.PlayerValue = name;
this.playerName = new BitmapText(scene, x, y - 25, 'main_font', name, 8);
this.playerName = new BitmapText(scene, x, y - 25, 'main_font', name, 7);
this.playerName.setOrigin(0.5).setCenterAlign().setDepth(99999);
scene.add.existing(this.playerName);
@ -178,6 +178,7 @@ export abstract class Character extends Container {
//this.anims.playReverse(`${this.PlayerTexture}-${PlayerAnimationNames.WalkLeft}`, true);
}
//todo:remove this, use a container tech to move the bubble instead
if (this.bubble) {
this.bubble.moveBubble(this.x, this.y);
}