basic login page with a text input and a click button

This commit is contained in:
kharhamel 2020-04-26 17:54:56 +02:00
parent 33bcbd4650
commit d691b58d0b
9 changed files with 107 additions and 25 deletions

View file

@ -0,0 +1,7 @@
export class TextField extends Phaser.GameObjects.Text {
constructor(scene: Phaser.Scene, x: number, y: number, text: string | string[]) {
super(scene, x, y, text, { fontSize: '32px', fontStyle: 'Courier', color: '#ffffff'});
this.scene.add.existing(this)
}
}