2020-04-26 17:54:56 +02:00
|
|
|
|
|
|
|
export class TextField extends Phaser.GameObjects.Text {
|
|
|
|
constructor(scene: Phaser.Scene, x: number, y: number, text: string | string[]) {
|
2020-04-26 18:48:41 +02:00
|
|
|
super(scene, x, y, text, { fontFamily: 'Arial', fontSize: "20px", color: '#ffffff'});
|
2020-04-26 17:54:56 +02:00
|
|
|
this.scene.add.existing(this)
|
|
|
|
}
|
|
|
|
}
|