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,11 @@
export class ClickButton extends Phaser.GameObjects.Image{
constructor(scene: Phaser.Scene, x: number, y: number, textureName: string, callback: Function) {
super(scene, x, y, textureName);
this.scene.add.existing(this);
this.setInteractive();
this.on("pointerup", callback);
}
}