Finalisation du projet - Suppression du bouton Save dans le jeu

master
clmaisonha 5 years ago
parent 55ebcfd999
commit 9291149ec4

File diff suppressed because one or more lines are too long

@ -33,6 +33,6 @@ class Attack extends Node{
getOptionJson() {
return this.percentRange;
return this.percentRange.toString();
}
}

@ -1,5 +1,5 @@
class Condition extends Node {
constructor(myself, shieldFilter = false, rangeFilter = false, shield, range) { //shieldFilter : true/false - rangeFilter : true/false
constructor(myself = true, shieldFilter = false, rangeFilter = false, shield, range) { //shieldFilter : true/false - rangeFilter : true/false
super("condition");
this.shieldFilter = shieldFilter;
this.rangeFilter = rangeFilter;

@ -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)

@ -1,5 +1,5 @@
class Move extends Node {
constructor(toward, enemyBot = true, typeBonus) { //true = move toward / false = flee from
constructor(toward = true, enemyBot = true, typeBonus) { //true = move toward / false = flee from
super("move");
this.toward = toward;
this.enemyBot = enemyBot;

Loading…
Cancel
Save