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-05-01 22:23:41 +02:00
|
|
|
super(scene, x, y, text, { fontFamily: 'Arial', fontSize: "15px", color: '#ffffff'});
|
2020-04-26 17:54:56 +02:00
|
|
|
this.scene.add.existing(this)
|
|
|
|
}
|
2020-05-01 22:23:41 +02:00
|
|
|
}
|