42ddd8b858
Input name can only be 4 characters long Passing name to next scene
8 lines
246 B
TypeScript
8 lines
246 B
TypeScript
|
|
export class TextField extends Phaser.GameObjects.BitmapText {
|
|
constructor(scene: Phaser.Scene, x: number, y: number, text: string | string[]) {
|
|
super(scene, x, y, 'main_font', text, 8);
|
|
this.scene.add.existing(this)
|
|
}
|
|
}
|