|
|
|
@ -378,8 +378,7 @@ class Game extends ManageLang {
|
|
|
|
|
let diffX = width * 1.1;
|
|
|
|
|
let line = 0;
|
|
|
|
|
new Button(this, 10, 10, width, width, 'back', () => this.clickBack()).setOrigin(0, 0);
|
|
|
|
|
new Button(this, WIDTH_WINDOW - diffX, HEIGHT_WINDOW, width, width, 'bonusBtn', () => this.clickBonus()).setOrigin(1, 1);
|
|
|
|
|
new Button(this, WIDTH_WINDOW, HEIGHT_WINDOW, width, width, 'save', () => this.clickSave()).setOrigin(1, 1);
|
|
|
|
|
new Button(this, WIDTH_WINDOW, HEIGHT_WINDOW, width, width, 'bonusBtn', () => this.clickBonus()).setOrigin(1, 1);
|
|
|
|
|
this.playBtn = new Button(this, x, y, width, width, 'play', () => this.clickPlay()).setOrigin(1, 0);
|
|
|
|
|
if (SPEED_GAME === 1) {
|
|
|
|
|
line = 0;
|
|
|
|
@ -420,12 +419,14 @@ class Game extends ManageLang {
|
|
|
|
|
this.scene.start('Description');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
clickSave() {
|
|
|
|
|
let tree = this.tree.getJson();
|
|
|
|
|
tree = tree.split('{"type":"waria","lNode":[')[1];
|
|
|
|
|
tree = tree.slice(0, -2);
|
|
|
|
|
console.log(tree);
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
clickPlay() {
|
|
|
|
|
if (this.gm.paused)
|
|
|
|
|