prettier login page
This commit is contained in:
parent
d691b58d0b
commit
25ac579a90
3 changed files with 28 additions and 5 deletions
|
@ -15,6 +15,7 @@ export class LogincScene extends Phaser.Scene {
|
|||
private emailInput: TextInput;
|
||||
private textField: TextField;
|
||||
private playButton: ClickButton;
|
||||
private infoTextField: TextField;
|
||||
constructor() {
|
||||
super({
|
||||
key: LoginSceneName
|
||||
|
@ -28,10 +29,13 @@ export class LogincScene extends Phaser.Scene {
|
|||
create() {
|
||||
this.textField = new TextField(this, 10, 10, 'Enter your email:');
|
||||
this.emailInput = new TextInput(this, 10, 50);
|
||||
|
||||
|
||||
let x = this.game.renderer.width / 2;
|
||||
let y = this.game.renderer.height / 2;
|
||||
this.playButton = new ClickButton(this, x, y, LoginTextures.playButton, this.login.bind(this));
|
||||
|
||||
let infoText = "Commandes de base: \n - Z,Q,S,D (ou les flèches de direction) pour bouger\n - SHIFT pour accélerer";
|
||||
this.infoTextField = new TextField(this, 10, 300, infoText);
|
||||
}
|
||||
|
||||
update(time: number, delta: number): void {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue