Les arbres et le stats initiales se créent en coordination avec le robot choisis - Simplification du code json des niveaux => Suppression ou modification de certaines données - Dorénavant, l'arbre se créé sans avoir besoin de rentrer chaque donnée dans le fichier json, il les récupère directement sur le robot sélectionné - Ajout de la possibilité de récupérer le code json d'un robot - Création de la classe Node pour reggrouper Move, Attack, Condition - Tout ces changements devraient permettre de changer de robot sélectionné en jeu (gérer deux arbres de robot)

master
clmaisonha 5 years ago
parent 2b50ecdc84
commit 1e2e822e8f

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +1 @@
{"enemyVisible":true,"bonusVisible":true,"robotRandomPosition":true,"tree":{"type":"waria","lRect":[{"type":"move","option":[true,false]},{"type":"attack","option":[0.3333333333333333]},{"type":"condition","option":[true,true,false,0.3333333333333333,0],"lRect":[{"type":"move","option":[false,true]},{"type":"attack","option":[1]}]},{"type":"move","option":[true,true]}]},"initStat":{"lBar":[{"value":2,"valueMax":5,"color":16711680,"colorMin":16711680},{"value":3,"valueMax":5,"color":8323327,"colorMin":8323327},{"value":3,"valueMax":5,"color":255,"colorMin":255},{"value":2,"valueMax":5,"color":32768,"colorMin":32768}],"lText":[["DAMAGE","DEGATS"],["R.S","RECHARGEMENT"],["SPEED","VITESSE"],["RANGE","PORTEE"]]},"listTeam":[{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.1,"y":0.1,"name":"enemy","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[{"name":"condition","option":[true,true,false,0.5,0],"lNode":[{"name":"move","option":[false]}]},{"name":"attack","option":[]},{"name":"move","option":[true]}]}]},{"name":"myTeam","robots":[{"height":0.1,"width":0.1,"x":0.9,"y":0.9,"name":"myself","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[]}]}],"lBonus":[{"style":"shield","number":0,"x":0.5,"y":0.5}]}
{"enemyVisible":true,"bonusVisible":true,"robotRandomPosition":true,"initStat":{"valueMax":10,"lBar":[{"valueMax":5,"color":16711680,"colorMin":16711680,"lText":["DAMAGE","DEGATS"]},{"valueMax":5,"color":8323327,"colorMin":8323327,"lText":["R.S","RECHARGEMENT"]},{"valueMax":5,"color":255,"colorMin":255,"lText":["SPEED","VITESSE"]},{"valueMax":5,"color":32768,"colorMin":32768,"lText":["RANGE","PORTEE"]}]},"listTeam":[{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.1,"y":0.1,"name":"enemy","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[{"type":"condition","option":[true,true,false,0.5,0],"lNode":[{"type":"move","option":[false]}]},{"type":"attack","option":[]},{"type":"move","option":[true]}]}]},{"name":"myTeam","robots":[{"height":0.1,"width":0.1,"x":0.9,"y":0.9,"name":"myself","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[{"type":"move","option":[true,false]},{"type":"attack","option":[0.3333333333333333]},{"type":"condition","option":[true,true,false,0.3333333333333333,0],"lNode":[{"type":"move","option":[false,true]},{"type":"attack","option":[1]}]},{"type":"move","option":[true,true]}]}]}],"lBonus":[{"style":"shield","number":0,"x":0.5,"y":0.5}]}

@ -1 +1 @@
{"enemyVisible":true,"bonusVisible":true,"robotRandomPosition":true,"tree":{"type":"waria","lRect":[{"type":"move","option":[true,false]},{"type":"attack","option":[0.3333333333333333]},{"type":"condition","option":[true,true,false,0.3333333333333333,0],"lRect":[{"type":"move","option":[false,true]},{"type":"attack","option":[1]}]},{"type":"move","option":[true,true]}]},"initStat":{"lBar":[{"value":2,"valueMax":5,"color":16711680,"colorMin":16711680},{"value":3,"valueMax":5,"color":8323327,"colorMin":8323327},{"value":3,"valueMax":5,"color":255,"colorMin":255},{"value":2,"valueMax":5,"color":32768,"colorMin":32768}],"lText":[["DAMAGE","DEGATS"],["R.S","RECHARGEMENT"],["SPEED","VITESSE"],["RANGE","PORTEE"]]},"listTeam":[{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.1,"y":0.1,"name":"enemy","speed":3,"speedReload":3,"range":3,"damage":5,"lNode":[{"name":"condition","option":[false,false,true,0,1],"lNode":[{"name":"condition","option":[true,true,false,0.3333333333333333,0],"lNode":[{"name":"move","option":[true,false]}]},{"name":"attack","option":[0.3333333333333333]},{"name":"attack","option":[0.6666666666666666]},{"name":"attack","option":[]}]},{"name":"move","option":[true,false]},{"name":"move","option":[true]}]}]},{"name":"myTeam","robots":[{"height":0.1,"width":0.1,"x":0.9,"y":0.9,"name":"myself","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[]}]}],"lBonus":[{"style":"shield","number":0,"x":0.2,"y":0.1},{"style":"shield","number":1,"x":0.5,"y":0.9},{"style":"shield","number":2,"x":0.2,"y":0.8}]}
{"enemyVisible":true,"bonusVisible":true,"robotRandomPosition":true,"initStat":{"valueMax":10,"lBar":[{"valueMax":5,"color":16711680,"colorMin":16711680,"lText":["DAMAGE","DEGATS"]},{"valueMax":5,"color":8323327,"colorMin":8323327,"lText":["R.S","RECHARGEMENT"]},{"valueMax":5,"color":255,"colorMin":255,"lText":["SPEED","VITESSE"]},{"valueMax":5,"color":32768,"colorMin":32768,"lText":["RANGE","PORTEE"]}]},"listTeam":[{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.1,"y":0.1,"name":"enemy","speed":3,"speedReload":3,"range":3,"damage":5,"lNode":[{"type":"condition","option":[false,false,true,0,1],"lNode":[{"type":"condition","option":[true,true,false,0.3333333333333333,0],"lNode":[{"type":"move","option":[true,false]}]},{"type":"attack","option":[0.3333333333333333]},{"type":"attack","option":[0.6666666666666666]},{"type":"attack","option":[]}]},{"type":"move","option":[true,false]},{"type":"move","option":[true]}]}]},{"name":"myTeam","robots":[{"height":0.1,"width":0.1,"x":0.9,"y":0.9,"name":"myself","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[{"type":"move","option":[true,false]},{"type":"attack","option":[0.3333333333333333]},{"type":"condition","option":[true,true,false,0.3333333333333333,0],"lNode":[{"type":"move","option":[false,true]},{"type":"attack","option":[1]}]},{"type":"move","option":[true,true]}]}]}],"lBonus":[{"style":"shield","number":0,"x":0.2,"y":0.1},{"style":"shield","number":1,"x":0.5,"y":0.9},{"style":"shield","number":2,"x":0.2,"y":0.8}]}

@ -1 +1 @@
{"enemyVisible":false,"bonusVisible":true,"robotRandomPosition":true,"tree":{"type":"waria","lRect":[{"type":"condition","option":[true,true,false,0.3333333333333333,0],"lRect":[{"type":"move","option":[true,false,"speed"]}]},{"type":"attack","option":[0.3333333333333333]},{"type":"move","option":[true,true]}]},"initStat":{"lBar":[{"value":0,"valueMax":5,"color":16711680,"colorMin":16711680},{"value":0,"valueMax":5,"color":8323327,"colorMin":8323327},{"value":5,"valueMax":5,"color":255,"colorMin":255},{"value":5,"valueMax":5,"color":32768,"colorMin":32768}],"lText":[["DAMAGE","DEGATS"],["R.S","RECHARGEMENT"],["SPEED","VITESSE"],["RANGE","PORTEE"]]},"listTeam":[{"name":"myTeam","robots":[{"height":0.1,"width":0.1,"x":0.9,"y":0.9,"name":"myself","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.1,"y":0.1,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"name":"attack","option":[]},{"name":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.3,"y":0.1,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"name":"condition","option":[true,true,false,0.5,0],"lNode":[{"name":"move","option":[false]}]},{"name":"attack","option":[]},{"name":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.7,"y":0.1,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"name":"condition","option":[true,true,false,0.5,0],"lNode":[{"name":"move","option":[false]}]},{"name":"attack","option":[]},{"name":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.5,"y":0.4,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"name":"condition","option":[true,true,false,0.5,0],"lNode":[{"name":"move","option":[false]}]},{"name":"attack","option":[]},{"name":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.1,"y":0.9,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"name":"condition","option":[true,true,false,0.5,0],"lNode":[{"name":"move","option":[false]}]},{"name":"attack","option":[]},{"name":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.3,"y":0.7,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"name":"condition","option":[true,true,false,0.5,0],"lNode":[{"name":"move","option":[false]}]},{"name":"attack","option":[]},{"name":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.9,"y":0.2,"name":"enemy","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[{"name":"condition","option":[true,true,false,0.5,0],"lNode":[{"name":"move","option":[false]}]},{"name":"attack","option":[]},{"name":"move","option":[true]}]}]}],"lBonus":[{"style":"speed","number":0,"x":0.5,"y":0.5},{"style":"attack","number":2,"x":0.7,"y":0.7},{"style":"shield","number":0,"x":0.2,"y":0.9},{"style":"shield","number":1,"x":0.8,"y":0.4},{"style":"shield","number":2,"x":0.2,"y":0.2}]}
{"enemyVisible":false,"bonusVisible":true,"robotRandomPosition":true,"initStat":{"valueMax":10,"lBar":[{"valueMax":5,"color":16711680,"colorMin":16711680,"lText":["DAMAGE","DEGATS"]},{"valueMax":5,"color":8323327,"colorMin":8323327,"lText":["R.S","RECHARGEMENT"]},{"valueMax":5,"color":255,"colorMin":255,"lText":["SPEED","VITESSE"]},{"valueMax":5,"color":32768,"colorMin":32768,"lText":["RANGE","PORTEE"]}]},"listTeam":[{"name":"myTeam","robots":[{"height":0.1,"width":0.1,"x":0.9,"y":0.9,"name":"myself","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[{"type":"move","option":[true,false]},{"type":"attack","option":[0.3333333333333333]},{"type":"condition","option":[true,true,false,0.3333333333333333,0],"lNode":[{"type":"move","option":[false,true]},{"type":"attack","option":[1]}]},{"type":"move","option":[true,true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.1,"y":0.1,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"type":"attack","option":[]},{"type":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.3,"y":0.1,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"type":"condition","option":[true,true,false,0.5,0],"lNode":[{"type":"move","option":[false]}]},{"type":"attack","option":[]},{"type":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.7,"y":0.1,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"type":"condition","option":[true,true,false,0.5,0],"lNode":[{"type":"move","option":[false]}]},{"type":"attack","option":[]},{"type":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.5,"y":0.4,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"type":"condition","option":[true,true,false,0.5,0],"lNode":[{"type":"move","option":[false]}]},{"type":"attack","option":[]},{"type":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.1,"y":0.9,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"type":"condition","option":[true,true,false,0.5,0],"lNode":[{"type":"move","option":[false]}]},{"type":"attack","option":[]},{"type":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.3,"y":0.7,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"type":"condition","option":[true,true,false,0.5,0],"lNode":[{"type":"move","option":[false]}]},{"type":"attack","option":[]},{"type":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.9,"y":0.2,"name":"enemy","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[{"type":"condition","option":[true,true,false,0.5,0],"lNode":[{"type":"move","option":[false]}]},{"type":"attack","option":[]},{"type":"move","option":[true]}]}]}],"lBonus":[{"style":"speed","number":0,"x":0.5,"y":0.5},{"style":"attack","number":2,"x":0.7,"y":0.7},{"style":"shield","number":0,"x":0.2,"y":0.9},{"style":"shield","number":1,"x":0.8,"y":0.4},{"style":"shield","number":2,"x":0.2,"y":0.2}]}

@ -1 +1 @@
{"enemyVisible":false,"bonusVisible":true,"robotRandomPosition":true,"tree":{"type":"waria","lRect":[{"type":"condition","option":[true,true,false,0.3333333333333333,0],"lRect":[{"type":"move","option":[true,false,"speed"]}]},{"type":"attack","option":[0.3333333333333333]},{"type":"move","option":[true,true]}]},"initStat":{"lBar":[{"value":0,"valueMax":5,"color":16711680,"colorMin":16711680},{"value":0,"valueMax":5,"color":8323327,"colorMin":8323327},{"value":5,"valueMax":5,"color":255,"colorMin":255},{"value":5,"valueMax":5,"color":32768,"colorMin":32768}],"lText":[["DAMAGE","DEGATS"],["R.S","RECHARGEMENT"],["SPEED","VITESSE"],["RANGE","PORTEE"]]},"listTeam":[{"name":"myTeam","robots":[{"height":0.1,"width":0.1,"x":0.9,"y":0.9,"name":"myself","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.1,"y":0.1,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"name":"attack","option":[]},{"name":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.3,"y":0.1,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"name":"condition","option":[true,true,false,0.5,0],"lNode":[{"name":"move","option":[true,false]}]},{"name":"attack","option":[]},{"name":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.7,"y":0.1,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"name":"condition","option":[true,true,false,0.5,0],"lNode":[{"name":"move","option":[true,false]}]},{"name":"attack","option":[]},{"name":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.5,"y":0.4,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"name":"condition","option":[true,true,false,0.5,0],"lNode":[{"name":"move","option":[true,false]}]},{"name":"attack","option":[]},{"name":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.1,"y":0.9,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"name":"condition","option":[true,true,false,0.5,0],"lNode":[{"name":"move","option":[true,false]}]},{"name":"attack","option":[]},{"name":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.3,"y":0.7,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"name":"condition","option":[true,true,false,0.5,0],"lNode":[{"name":"move","option":[true,false]}]},{"name":"attack","option":[]},{"name":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.9,"y":0.2,"name":"enemy","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[{"name":"condition","option":[true,true,false,0.5,0],"lNode":[{"name":"move","option":[true,false]}]},{"name":"attack","option":[]},{"name":"move","option":[true]}]}]}],"lBonus":[{"style":"speed","number":0,"x":0.5,"y":0.5},{"style":"attack","number":2,"x":0.7,"y":0.7},{"style":"shield","number":0,"x":0.2,"y":0.9},{"style":"shield","number":1,"x":0.8,"y":0.4},{"style":"shield","number":2,"x":0.2,"y":0.2}]}
{"enemyVisible":false,"bonusVisible":true,"robotRandomPosition":true,"initStat":{"valueMax":10,"lBar":[{"valueMax":5,"color":16711680,"colorMin":16711680,"lText":["DAMAGE","DEGATS"]},{"valueMax":5,"color":8323327,"colorMin":8323327,"lText":["R.S","RECHARGEMENT"]},{"valueMax":5,"color":255,"colorMin":255,"lText":["SPEED","VITESSE"]},{"valueMax":5,"color":32768,"colorMin":32768,"lText":["RANGE","PORTEE"]}]},"listTeam":[{"name":"myTeam","robots":[{"height":0.1,"width":0.1,"x":0.9,"y":0.9,"name":"myself","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[{"type":"move","option":[true,false]},{"type":"attack","option":[0.3333333333333333]},{"type":"condition","option":[true,true,false,0.3333333333333333,0],"lNode":[{"type":"move","option":[false,true]},{"type":"attack","option":[1]}]},{"type":"move","option":[true,true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.1,"y":0.1,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"type":"attack","option":[]},{"type":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.3,"y":0.1,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"type":"condition","option":[true,true,false,0.5,0],"lNode":[{"type":"move","option":[true,false]}]},{"type":"attack","option":[]},{"type":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.7,"y":0.1,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"type":"condition","option":[true,true,false,0.5,0],"lNode":[{"type":"move","option":[true,false]}]},{"type":"attack","option":[]},{"type":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.5,"y":0.4,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"type":"condition","option":[true,true,false,0.5,0],"lNode":[{"type":"move","option":[true,false]}]},{"type":"attack","option":[]},{"type":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.1,"y":0.9,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"type":"condition","option":[true,true,false,0.5,0],"lNode":[{"type":"move","option":[true,false]}]},{"type":"attack","option":[]},{"type":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.3,"y":0.7,"name":"enemy","speed":1,"speedReload":1,"range":5,"damage":5,"lNode":[{"type":"condition","option":[true,true,false,0.5,0],"lNode":[{"type":"move","option":[true,false]}]},{"type":"attack","option":[]},{"type":"move","option":[true]}]}]},{"name":"enemyTeam","robots":[{"height":0.1,"width":0.1,"x":0.9,"y":0.2,"name":"enemy","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[{"type":"condition","option":[true,true,false,0.5,0],"lNode":[{"type":"move","option":[true,false]}]},{"type":"attack","option":[]},{"type":"move","option":[true]}]}]}],"lBonus":[{"style":"speed","number":0,"x":0.5,"y":0.5},{"style":"attack","number":2,"x":0.7,"y":0.7},{"style":"shield","number":0,"x":0.2,"y":0.9},{"style":"shield","number":1,"x":0.8,"y":0.4},{"style":"shield","number":2,"x":0.2,"y":0.2}]}

@ -1 +1 @@
{"enemyVisible":false,"bonusVisible":true,"robotRandomPosition":false,"tree":{"type":"waria","lRect":[{"type":"attack","option":[0.3333333333333333]},{"type":"condition","option":[false,false,true,0.3333333333333333,1],"lRect":[{"type":"move","option":[false,true]},{"type":"attack","option":[1]}]},{"type":"move","option":[true,false]},{"type":"move","option":[true,true]}]},"initStat":{"lBar":[{"value":5,"valueMax":5,"color":16711680,"colorMin":16711680},{"value":0,"valueMax":5,"color":8323327,"colorMin":8323327},{"value":0,"valueMax":5,"color":255,"colorMin":255},{"value":5,"valueMax":5,"color":32768,"colorMin":32768}],"lText":[["DAMAGE","DEGATS"],["R.S","RECHARGEMENT"],["SPEED","VITESSE"],["RANGE","PORTEE"]]},"listTeam":[{"name":"myTeam","robots":[{"height":0.1,"width":0.1,"x":0.9,"y":0.9,"name":"myself","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[]},{"height":0.1,"width":0.1,"x":0.3,"y":0.5,"name":"myself","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[]}]},{"name":"enemyTeam","color":16711680,"robots":[{"height":0.1,"width":0.1,"x":0.5,"y":0.1,"name":"enemy","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[{"name":"condition","option":[true,true,false,0.5,0],"lNode":[{"name":"move","option":[false]}]},{"name":"attack","option":[]},{"name":"move","option":[true]}]},{"height":0.1,"width":0.1,"x":0.1,"y":0.9,"name":"enemy","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[{"name":"condition","option":[true,true,false,0.5,0],"lNode":[{"name":"move","option":[false]}]},{"name":"attack","option":[]},{"name":"move","option":[true]}]}]}],"lBonus":[{"style":"speed","number":0,"x":0.5,"y":0.5}]}
{"enemyVisible":false,"bonusVisible":true,"robotRandomPosition":false,"initStat":{"valueMax":10,"lBar":[{"valueMax":5,"color":16711680,"colorMin":16711680,"lText":["DAMAGE","DEGATS"]},{"valueMax":5,"color":8323327,"colorMin":8323327,"lText":["R.S","RECHARGEMENT"]},{"valueMax":5,"color":255,"colorMin":255,"lText":["SPEED","VITESSE"]},{"valueMax":5,"color":32768,"colorMin":32768,"lText":["RANGE","PORTEE"]}]},"listTeam":[{"name":"myTeam","robots":[{"height":0.1,"width":0.1,"x":0.9,"y":0.9,"name":"myself","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[{"type":"move","option":[true,false]},{"type":"attack","option":[0.3333333333333333]},{"type":"condition","option":[true,true,false,0.3333333333333333,0],"lNode":[{"type":"move","option":[false,true]},{"type":"attack","option":[1]}]},{"type":"move","option":[true,true]}]},{"height":0.1,"width":0.1,"x":0.3,"y":0.5,"name":"myself","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[{"type":"move","option":[true,false]},{"type":"attack","option":[0.3333333333333333]},{"type":"condition","option":[true,true,false,0.3333333333333333,0],"lNode":[{"type":"move","option":[false,true]},{"type":"attack","option":[1]}]},{"type":"move","option":[true,true]}]}]},{"name":"enemyTeam","color":16711680,"robots":[{"height":0.1,"width":0.1,"x":0.5,"y":0.1,"name":"enemy","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[{"type":"condition","option":[true,true,false,0.5,0],"lNode":[{"type":"move","option":[false]}]},{"type":"attack","option":[]},{"type":"move","option":[true]}]},{"height":0.1,"width":0.1,"x":0.1,"y":0.9,"name":"enemy","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[{"type":"condition","option":[true,true,false,0.5,0],"lNode":[{"type":"move","option":[false]}]},{"type":"attack","option":[]},{"type":"move","option":[true]}]}]}],"lBonus":[{"style":"speed","number":0,"x":0.5,"y":0.5}]}

@ -1 +1 @@
{"enemyVisible":false,"bonusVisible":true,"robotRandomPosition":false,"tree":{"type":"waria","lRect":[{"type":"attack","option":[0.3333333333333333]},{"type":"condition","option":[false,false,true,0.3333333333333333,1],"lRect":[{"type":"move","option":[false,true]},{"type":"attack","option":[1]}]},{"type":"move","option":[true,false]},{"type":"move","option":[true,true]}]},"initStat":{"lBar":[{"value":5,"valueMax":5,"color":16711680,"colorMin":16711680},{"value":0,"valueMax":5,"color":8323327,"colorMin":8323327},{"value":0,"valueMax":5,"color":255,"colorMin":255},{"value":5,"valueMax":5,"color":32768,"colorMin":32768}],"lText":[["DAMAGE","DEGATS"],["R.S","RECHARGEMENT"],["SPEED","VITESSE"],["RANGE","PORTEE"]]},"listTeam":[{"name":"myTeam","robots":[{"height":0.1,"width":0.1,"x":0.9,"y":0.8,"name":"myself","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[]},{"height":0.1,"width":0.1,"x":0.8,"y":0.9,"name":"myself","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[]}]},{"name":"enemyTeam","color":16711680,"robots":[{"height":0.1,"width":0.1,"x":0.1,"y":0.8,"name":"enemy","speed":3,"speedReload":3,"range":3,"damage":5,"lNode":[{"name":"attack","option":[]},{"name":"move","option":[true]}]},{"height":0.1,"width":0.1,"x":0.2,"y":0.9,"name":"enemy","speed":3,"speedReload":3,"range":3,"damage":5,"lNode":[{"name":"attack","option":[]},{"name":"move","option":[true]}]}]},{"name":"enemyTeam","color":32768,"robots":[{"height":0.1,"width":0.1,"x":0.5,"y":0.1,"name":"enemy","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[{"name":"attack","option":[]},{"name":"move","option":[true]}]},{"height":0.1,"width":0.1,"x":0.5,"y":0.2,"name":"enemy","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[{"name":"attack","option":[]},{"name":"move","option":[true]}]}]}],"lBonus":[{"style":"speed","number":1,"x":0.5,"y":0.5},{"style":"shield","number":2,"x":0.1,"y":0.1},{"style":"attack","number":2,"x":0.9,"y":0.1}]}
{"enemyVisible":false,"bonusVisible":true,"robotRandomPosition":false,"initStat":{"valueMax":10,"lBar":[{"valueMax":5,"color":16711680,"colorMin":16711680,"lText":["DAMAGE","DEGATS"]},{"valueMax":5,"color":8323327,"colorMin":8323327,"lText":["R.S","RECHARGEMENT"]},{"valueMax":5,"color":255,"colorMin":255,"lText":["SPEED","VITESSE"]},{"valueMax":5,"color":32768,"colorMin":32768,"lText":["RANGE","PORTEE"]}]},"listTeam":[{"name":"myTeam","robots":[{"height":0.1,"width":0.1,"x":0.9,"y":0.8,"name":"myself","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[{"type":"move","option":[true,false]},{"type":"attack","option":[0.3333333333333333]},{"type":"condition","option":[true,true,false,0.3333333333333333,0],"lNode":[{"type":"move","option":[false,true]},{"type":"attack","option":[1]}]},{"type":"move","option":[true,true]}]},{"height":0.1,"width":0.1,"x":0.8,"y":0.9,"name":"myself","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[{"type":"move","option":[true,false]},{"type":"attack","option":[0.3333333333333333]},{"type":"condition","option":[true,true,false,0.3333333333333333,0],"lNode":[{"type":"move","option":[false,true]},{"type":"attack","option":[1]}]},{"type":"move","option":[true,true]}]}]},{"name":"enemyTeam","color":16711680,"robots":[{"height":0.1,"width":0.1,"x":0.1,"y":0.8,"name":"enemy","speed":3,"speedReload":3,"range":3,"damage":5,"lNode":[{"type":"attack","option":[]},{"type":"move","option":[true]}]},{"height":0.1,"width":0.1,"x":0.2,"y":0.9,"name":"enemy","speed":3,"speedReload":3,"range":3,"damage":5,"lNode":[{"type":"attack","option":[]},{"type":"move","option":[true]}]}]},{"name":"enemyTeam","color":32768,"robots":[{"height":0.1,"width":0.1,"x":0.5,"y":0.1,"name":"enemy","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[{"type":"attack","option":[]},{"type":"move","option":[true]}]},{"height":0.1,"width":0.1,"x":0.5,"y":0.2,"name":"enemy","speed":3,"speedReload":1,"range":3,"damage":5,"lNode":[{"type":"attack","option":[]},{"type":"move","option":[true]}]}]}],"lBonus":[{"style":"speed","number":1,"x":0.5,"y":0.5},{"style":"shield","number":2,"x":0.1,"y":0.1},{"style":"attack","number":2,"x":0.9,"y":0.1}]}

@ -1,5 +1,6 @@
class Attack {
class Attack extends Node{
constructor(percentRange = 1) {
super("attack");
if (percentRange > 1 / 3) {
if (percentRange > 2 / 3) {
percentRange = 1;
@ -26,6 +27,11 @@ class Attack {
return this.percentRange * 3 - 1;
}
getTreeJson() {
return super.getTreeJson(this.getOptionJson());
}
getOptionJson() {
return this.percentRange;
}

@ -5,6 +5,7 @@ class Bar extends HealthBar {
} else {
super(scene, name, width, height, x, y, categoryBar.valueMax, color, color, false);
}
console.log(value);
this.name = name;
this.scene = scene;
this.scene.input.on('pointerdown', this.doDrag, this);
@ -68,4 +69,17 @@ class Bar extends HealthBar {
this.text.setText(this.value + 1);
}
}
getJson(texts = []) {
let json = super.getJson();
json = json.substr(0, json.length - 1) + ',';
json += '"lText":[';
texts.forEach(text => {
json += '"' + text + '",';
});
json = endLineJson(json);
json += ']';
json += '}';
return json;
}
}

@ -1,5 +1,6 @@
class Condition {
class Condition extends Node {
constructor(myself, shieldFilter = false, rangeFilter = false, shield, range) { //shieldFilter : true/false - rangeFilter : true/false
super("condition");
this.shieldFilter = shieldFilter;
this.rangeFilter = rangeFilter;
this.shield = shield;
@ -90,6 +91,16 @@ class Condition {
return line * 7 + image;
}
getTreeJson() {
let json = super.getTreeJson(this.getOptionJson());
json = json.substr(0, json.length - 1) + ',';
json += '"lNode":[';
this.lNode.forEach(node => json += node.getTreeJson() + ',');
json = endLineJson(json);
json += ']}'
return json;
}
getOptionJson() {
return this.myself + ',' + this.shieldFilter + ',' + this.rangeFilter + ',' + this.shield + ',' + this.range;
}

@ -40,14 +40,7 @@ class Game extends ManageLang {
this.add.text(WIDTH_WINDOW / 2, HEIGHT_WINDOW / 2, selectWord("LEVEL UNDEFINED", "NIVEAU INDEFINI"), style).setOrigin(0.5, 0.5);
return;
}
if (this.tree !== undefined && this.initStat !== undefined) {
let tree = this.tree.getJson(true);
level.tree = JSON.parse(tree);
let initStat = this.initStat.getJson(true);
level.initStat = JSON.parse(initStat);
}
console.log(level);
this.loadSave(level);
this.gm.setEnemyRobotVisible(level.enemyVisible);
@ -95,25 +88,50 @@ class Game extends ManageLang {
loadSave(level) {
this.loadBonus(level.lBonus);
this.loadTeam(level)
this.initStat = this.loadInitSave(level.initStat);
this.tree = this.loadTree(level.tree);
this.loadTeam(level);
let initStat;
let tree;
this.setRobotSelected(this.gm.getMyTeam().listRobot[0]);
if (this.initStat !== undefined) {
initStat = JSON.parse(this.initStat.getJson());
this.robotSelected.setDamage(this.initStat.lBar[0].value);
this.robotSelected.setSpeedReload(this.initStat.lBar[1].value);
this.robotSelected.setSpeed(this.initStat.lBar[2].value);
this.robotSelected.setRange(this.initStat.lBar[3].value);
} else {
initStat = level.initStat;
}
if (this.tree !== undefined) {
tree = JSON.parse(this.tree.getJson(true));
} else {
tree = JSON.parse(this.robotSelected.getTreeJson());
}
this.tree = this.loadTree(tree);
this.initStat = this.loadInitSave(initStat, this.robotSelected, this.robotSelected.damage - DAMAGE_BASE, this.robotSelected.speedReload - SPEED_RELOAD_BASE, this.robotSelected.speed - SPEED_BASE, this.robotSelected.range - RANGE_BASE);
}
setRobotSelected(robot) {
if (this.robotSelected !== undefined) {
}
this.robotSelected = robot;
}
loadTree(element, posX = CENTERX_TREE, posY = OFFY_TREE / 2) {
let tree;
if (element.x !== undefined && element.y !== undefined) {
tree = new RectangleNode(element.x, element.y, this, element.type, element.option);
if (element.lRect !== undefined && element.lRect.length > 0) {
element.lRect.forEach(rect => tree.addRect(this.loadTree(rect)))
if (element.lNode !== undefined && element.lNode.length > 0) {
element.lNode.forEach(rect => tree.addRect(this.loadTree(rect)))
}
} else {
tree = new RectangleNode(posX, posY, this, element.type, element.option);
if (element.lRect !== undefined && element.lRect.length > 0) {
let nbRect = element.lRect.length;
if (element.lNode !== undefined && element.lNode.length > 0) {
let nbRect = element.lNode.length;
let x = posX - (OFFX_TREE / 2) * (nbRect - 1);
let y = posY + OFFY_TREE;
element.lRect.forEach(rect => {
element.lNode.forEach(rect => {
tree.addRect(this.loadTree(rect, x, y))
x += OFFX_TREE;
});
@ -122,28 +140,23 @@ class Game extends ManageLang {
return tree;
}
loadInitSave(element) {
loadInitSave(element, team, ...stat) {
let width = 200;
let height = 30;
let initStat = new InitStat(this, OFFX_MAP + WIDTH_MAP + 5, OFFY_MAP, width, height, 10);
let initStat = new InitStat(this, OFFX_MAP + WIDTH_MAP + 5, OFFY_MAP, width, height, element.valueMax);
for (let i = 0; i < element.lBar.length; i++) {
initStat.addBar(element.lBar[i].value, element.lBar[i].valueMax, element.lBar[i].color, element.lText[i]);
initStat.addBar(stat[i], element.lBar[i].valueMax, element.lBar[i].color, element.lBar[i].lText);
}
let myTeam = this.gm.getMyTeam();
initStat.lBar[0].addEvent(myTeam.setDamage, myTeam);
initStat.lBar[1].addEvent(myTeam.setSpeedReload, myTeam);
initStat.lBar[2].addEvent(myTeam.setSpeed, myTeam);
initStat.lBar[3].addEvent(myTeam.setRange, myTeam);
initStat.lBar[0].addEvent(team.setDamage, team);
initStat.lBar[1].addEvent(team.setSpeedReload, team);
initStat.lBar[2].addEvent(team.setSpeed, team);
initStat.lBar[3].addEvent(team.setRange, team);
return initStat;
}
log(text) {
console.log(text);
}
loadTeam(level) {
if (level.listTeam !== undefined) {
let init = 0;
@ -169,7 +182,9 @@ class Game extends ManageLang {
let listRobot = [];
element.forEach(robot => {
let lNode = [];
robot.lNode.forEach(node => lNode.push(this.loadNode(node)));
robot.lNode.forEach(node => {
lNode.push(this.loadNode(node))
});
if (randomPosition) {
if (this.listPositionRobotInit[i] === undefined) {
robot.x = Math.random() * ((1 - robot.width / 2) - robot.width / 2) + robot.width / 2;
@ -184,12 +199,13 @@ class Game extends ManageLang {
i += 1;
}
)
console.log(listRobot);
return listRobot;
}
loadNode(element) {
let node;
switch (element.name) {
switch (element.type) {
case "condition":
node = new Condition(element.option[0], element.option[1], element.option[2], element.option[3], element.option[4]);
break;
@ -245,6 +261,8 @@ class Game extends ManageLang {
this.scene.pause('Game');
this.scene.launch('Finish');
this.robotSelected = undefined;
}
@ -295,7 +313,8 @@ class Game extends ManageLang {
this.playBtn.changeFrame(0);
this.tree.sort();
this.gm.modifyNodes(this.tree.getNode());
this.robotSelected.setNodes(this.tree.getNode());
//this.gm.modifyNodes(this.tree.getNode());
//this.gm.modifyValue(this.initStat.lBar[0].value, this.initStat.lBar[1].value, this.initStat.lBar[2].value, this.initStat.lBar[3].value);
this.gm.resume();
@ -461,6 +480,7 @@ class Game extends ManageLang {
if (this.level !== level) {
this.level = level;
this.listPositionRobotInit = [];
this.robotSelected = undefined;
}
console.log(this.level);
}

@ -1,5 +1,5 @@
class InitStat {
constructor(scene, posX, posY, width, height, valueMax) {
constructor(scene, posX, posY, width, height, valueMax = 10) {
this.scene = scene;
this.posX = posX;
this.posY = posY;
@ -11,7 +11,7 @@ class InitStat {
this.category.addText(this.scene, selectWord("TOKENS : ", "JETONS : "), this.posX, this.posY, this.height);
}
addBar(value, valueMax, color, text) {
addBar(value, valueMax, color, text = []) {
this.lText.push(text);
this.lBar.push(new Bar(this.scene, selectWord(text[0], text[1]), this.width, this.height, this.posX, this.posY, color, this.category, value, valueMax));
this.posY += this.height * 1.5;
@ -20,21 +20,12 @@ class InitStat {
getJson() {
let json = '{';
json += toJson("valueMax", this.category.valueMax);
json += '"lBar":[';
this.lBar.forEach(bar => json += bar.getJson() + ',');
json = endLineJson(json) + '],';
json += '"lText":[';
this.lText.forEach(text => {
json += '[';
text.forEach(word => {
json += '"' + word + '",';
});
json = endLineJson(json);
json += '],';
});
json = endLineJson(json);
json += ']';
json += '}';
for (let i = 0; i < this.lBar.length; i++) {
json += this.lBar[i].getJson(this.lText[i]) + ','
}
json = endLineJson(json) + ']}';
return json;
}
}

@ -1,5 +1,6 @@
class Move {
class Move extends Node{
constructor(toward, enemyBot = true, typeBonus) { //true = move toward / false = flee from
super("move");
this.toward = toward;
this.enemyBot = enemyBot;
this.typeBonus = typeBonus;
@ -79,6 +80,10 @@ class Move {
return frame;
}
getTreeJson() {
return super.getTreeJson(this.getOptionJson());
}
getOptionJson() {
let json = this.toward + ',' + this.enemyBot + '';
if (this.typeBonus !== undefined) {

@ -177,7 +177,7 @@ class RectangleNode {
json += '"option":[' + this.node.getOptionJson() + '],';
}
if (this.canAddNode) {
json += '"lRect":[';
json += '"lNode":[';
this.lRect.forEach(rect => json += rect.getJson(withX) + ',');
json = endLineJson(json) + ']';
}

@ -18,12 +18,6 @@ class Robot {
this.lNode = lNode;
let condition = new Condition(true, true, false, 0.5, 0);
condition.addNode(new Move(false));
this.addNode(condition);
this.addNode(new Attack());
this.addNode(new Move(true));
this.setSpeed(speed);
this.setSpeedReload(speedReload);
this.setRange(range);
@ -35,6 +29,8 @@ class Robot {
this.team = undefined;
}
addScene(scene) {
this.scene = scene;
if (this.name === 'enemy') {
@ -398,6 +394,11 @@ class Robot {
this.lNode = [];
}
setNodes(lNode) {
this.cleanNodes();
lNode.forEach(node => this.addNode(node));
}
setVisible(boolean) {
this.circle.setVisible(boolean);
this.life.setVisible(boolean);
@ -406,4 +407,13 @@ class Robot {
this.circleRange.setVisible(boolean);
}
}
getTreeJson() {
let json = '{' + toJson("type", "waria");
json += '"lNode":[';
this.lNode.forEach(node => json += node.getTreeJson() + ',');
json = endLineJson(json);
json += ']}';
return json;
}
}

@ -85,8 +85,7 @@ class Team {
modifyNodes(lNodes) {
this.listRobot.forEach(robot => {
robot.cleanNodes();
lNodes.forEach(node => robot.addNode(node));
robot.setNodes(lNodes);
});
}

@ -151,7 +151,7 @@ class HealthBar {
getJson() {
let json = '{';
json += toJson("value", this.value) + toJson("valueMax", this.valueMax) + toJson("color", this.color) + toJson("colorMin", this.colorMin);
json += toJson("valueMax", this.valueMax) + toJson("color", this.color) + toJson("colorMin", this.colorMin);
json = endLineJson(json);
json += '}';
return json;

@ -0,0 +1,11 @@
class Node {
constructor(type = "") {
this.type = type;
}
getTreeJson(option = "") {
let json = '{' + toJson("type", this.type);
json += '"option":[' + option + ']}';
return json;
}
}

@ -2,100 +2,45 @@
"enemyVisible": true,
"bonusVisible": true,
"robotRandomPosition": true,
"tree": {
"type": "waria",
"lRect": [
{
"type": "move",
"option": [
true,
false
]
},
{
"type": "attack",
"option": [
0.3333333333333333
]
},
{
"type": "condition",
"option": [
true,
true,
false,
0.3333333333333333,
0
],
"lRect": [
{
"type": "move",
"option": [
false,
true
]
},
{
"type": "attack",
"option": [
1
]
}
]
},
{
"type": "move",
"option": [
true,
true
]
}
]
},
"initStat": {
"valueMax": 10,
"lBar": [
{
"value": 2,
"valueMax": 5,
"color": 16711680,
"colorMin": 16711680
"colorMin": 16711680,
"lText": [
"DAMAGE",
"DEGATS"
]
},
{
"value": 3,
"valueMax": 5,
"color": 8323327,
"colorMin": 8323327
"colorMin": 8323327,
"lText": [
"R.S",
"RECHARGEMENT"
]
},
{
"value": 3,
"valueMax": 5,
"color": 255,
"colorMin": 255
"colorMin": 255,
"lText": [
"SPEED",
"VITESSE"
]
},
{
"value": 2,
"valueMax": 5,
"color": 32768,
"colorMin": 32768
"colorMin": 32768,
"lText": [
"RANGE",
"PORTEE"
]
}
],
"lText": [
[
"DAMAGE",
"DEGATS"
],
[
"R.S",
"RECHARGEMENT"
],
[
"SPEED",
"VITESSE"
],
[
"RANGE",
"PORTEE"
]
]
},
"listTeam": [
@ -114,7 +59,7 @@
"damage": 5,
"lNode": [
{
"name": "condition",
"type": "condition",
"option": [
true,
true,
@ -124,7 +69,7 @@
],
"lNode": [
{
"name": "move",
"type": "move",
"option": [
false
]
@ -132,12 +77,12 @@
]
},
{
"name": "attack",
"type": "attack",
"option": [
]
},
{
"name": "move",
"type": "move",
"option": [
true
]
@ -160,6 +105,51 @@
"range": 3,
"damage": 5,
"lNode": [
{
"type": "move",
"option": [
true,
false
]
},
{
"type": "attack",
"option": [
0.3333333333333333
]
},
{
"type": "condition",
"option": [
true,
true,
false,
0.3333333333333333,
0
],
"lNode": [
{
"type": "move",
"option": [
false,
true
]
},
{
"type": "attack",
"option": [
1
]
}
]
},
{
"type": "move",
"option": [
true,
true
]
}
]
}
]

@ -2,100 +2,45 @@
"enemyVisible": true,
"bonusVisible": true,
"robotRandomPosition": true,
"tree": {
"type": "waria",
"lRect": [
{
"type": "move",
"option": [
true,
false
]
},
{
"type": "attack",
"option": [
0.3333333333333333
]
},
{
"type": "condition",
"option": [
true,
true,
false,
0.3333333333333333,
0
],
"lRect": [
{
"type": "move",
"option": [
false,
true
]
},
{
"type": "attack",
"option": [
1
]
}
]
},
{
"type": "move",
"option": [
true,
true
]
}
]
},
"initStat": {
"valueMax": 10,
"lBar": [
{
"value": 2,
"valueMax": 5,
"color": 16711680,
"colorMin": 16711680
"colorMin": 16711680,
"lText": [
"DAMAGE",
"DEGATS"
]
},
{
"value": 3,
"valueMax": 5,
"color": 8323327,
"colorMin": 8323327
"colorMin": 8323327,
"lText": [
"R.S",
"RECHARGEMENT"
]
},
{
"value": 3,
"valueMax": 5,
"color": 255,
"colorMin": 255
"colorMin": 255,
"lText": [
"SPEED",
"VITESSE"
]
},
{
"value": 2,
"valueMax": 5,
"color": 32768,
"colorMin": 32768
"colorMin": 32768,
"lText": [
"RANGE",
"PORTEE"
]
}
],
"lText": [
[
"DAMAGE",
"DEGATS"
],
[
"R.S",
"RECHARGEMENT"
],
[
"SPEED",
"VITESSE"
],
[
"RANGE",
"PORTEE"
]
]
},
"listTeam": [
@ -114,7 +59,7 @@
"damage": 5,
"lNode": [
{
"name": "condition",
"type": "condition",
"option": [
false,
false,
@ -124,7 +69,7 @@
],
"lNode": [
{
"name": "condition",
"type": "condition",
"option": [
true,
true,
@ -134,7 +79,7 @@
],
"lNode": [
{
"name": "move",
"type": "move",
"option": [
true,
false
@ -143,33 +88,33 @@
]
},
{
"name": "attack",
"type": "attack",
"option": [
0.3333333333333333
]
},
{
"name": "attack",
"type": "attack",
"option": [
0.6666666666666666
]
},
{
"name": "attack",
"type": "attack",
"option": [
]
}
]
},
{
"name": "move",
"type": "move",
"option": [
true,
false
]
},
{
"name": "move",
"type": "move",
"option": [
true
]
@ -192,6 +137,51 @@
"range": 3,
"damage": 5,
"lNode": [
{
"type": "move",
"option": [
true,
false
]
},
{
"type": "attack",
"option": [
0.3333333333333333
]
},
{
"type": "condition",
"option": [
true,
true,
false,
0.3333333333333333,
0
],
"lNode": [
{
"type": "move",
"option": [
false,
true
]
},
{
"type": "attack",
"option": [
1
]
}
]
},
{
"type": "move",
"option": [
true,
true
]
}
]
}
]

@ -2,88 +2,45 @@
"enemyVisible": false,
"bonusVisible": true,
"robotRandomPosition": true,
"tree": {
"type": "waria",
"lRect": [
{
"type": "condition",
"option": [
true,
true,
false,
0.3333333333333333,
0
],
"lRect": [
{
"type": "move",
"option": [
true,
false,
"speed"
]
}
]
},
{
"type": "attack",
"option": [
0.3333333333333333
]
},
{
"type": "move",
"option": [
true,
true
]
}
]
},
"initStat": {
"valueMax": 10,
"lBar": [
{
"value": 0,
"valueMax": 5,
"color": 16711680,
"colorMin": 16711680
"colorMin": 16711680,
"lText": [
"DAMAGE",
"DEGATS"
]
},
{
"value": 0,
"valueMax": 5,
"color": 8323327,
"colorMin": 8323327
"colorMin": 8323327,
"lText": [
"R.S",
"RECHARGEMENT"
]
},
{
"value": 5,
"valueMax": 5,
"color": 255,
"colorMin": 255
"colorMin": 255,
"lText": [
"SPEED",
"VITESSE"
]
},
{
"value": 5,
"valueMax": 5,
"color": 32768,
"colorMin": 32768
"colorMin": 32768,
"lText": [
"RANGE",
"PORTEE"
]
}
],
"lText": [
[
"DAMAGE",
"DEGATS"
],
[
"R.S",
"RECHARGEMENT"
],
[
"SPEED",
"VITESSE"
],
[
"RANGE",
"PORTEE"
]
]
},
"listTeam": [
@ -101,6 +58,51 @@
"range": 3,
"damage": 5,
"lNode": [
{
"type": "move",
"option": [
true,
false
]
},
{
"type": "attack",
"option": [
0.3333333333333333
]
},
{
"type": "condition",
"option": [
true,
true,
false,
0.3333333333333333,
0
],
"lNode": [
{
"type": "move",
"option": [
false,
true
]
},
{
"type": "attack",
"option": [
1
]
}
]
},
{
"type": "move",
"option": [
true,
true
]
}
]
}
]
@ -120,12 +122,12 @@
"damage": 5,
"lNode": [
{
"name": "attack",
"type": "attack",
"option": [
]
},
{
"name": "move",
"type": "move",
"option": [
true
]
@ -149,7 +151,7 @@
"damage": 5,
"lNode": [
{
"name": "condition",
"type": "condition",
"option": [
true,
true,
@ -159,7 +161,7 @@
],
"lNode": [
{
"name": "move",
"type": "move",
"option": [
false
]
@ -167,12 +169,12 @@
]
},
{
"name": "attack",
"type": "attack",
"option": [
]
},
{
"name": "move",
"type": "move",
"option": [
true
]
@ -196,7 +198,7 @@
"damage": 5,
"lNode": [
{
"name": "condition",
"type": "condition",
"option": [
true,
true,
@ -206,7 +208,7 @@
],
"lNode": [
{
"name": "move",
"type": "move",
"option": [
false
]
@ -214,12 +216,12 @@
]
},
{
"name": "attack",
"type": "attack",
"option": [
]
},
{
"name": "move",
"type": "move",
"option": [
true
]
@ -243,7 +245,7 @@
"damage": 5,
"lNode": [
{
"name": "condition",
"type": "condition",
"option": [
true,
true,
@ -253,7 +255,7 @@
],
"lNode": [
{
"name": "move",
"type": "move",
"option": [
false
]
@ -261,12 +263,12 @@
]
},
{
"name": "attack",
"type": "attack",
"option": [
]
},
{
"name": "move",
"type": "move",
"option": [
true
]
@ -290,7 +292,7 @@
"damage": 5,
"lNode": [
{
"name": "condition",
"type": "condition",
"option": [
true,
true,
@ -300,7 +302,7 @@
],
"lNode": [
{
"name": "move",
"type": "move",
"option": [
false
]
@ -308,12 +310,12 @@
]
},
{
"name": "attack",
"type": "attack",
"option": [
]
},
{
"name": "move",
"type": "move",
"option": [
true
]
@ -337,7 +339,7 @@
"damage": 5,
"lNode": [
{
"name": "condition",
"type": "condition",
"option": [
true,
true,
@ -347,7 +349,7 @@
],
"lNode": [
{
"name": "move",
"type": "move",
"option": [
false
]
@ -355,12 +357,12 @@
]
},
{
"name": "attack",
"type": "attack",
"option": [
]
},
{
"name": "move",
"type": "move",
"option": [
true
]
@ -384,7 +386,7 @@
"damage": 5,
"lNode": [
{
"name": "condition",
"type": "condition",
"option": [
true,
true,
@ -394,7 +396,7 @@
],
"lNode": [
{
"name": "move",
"type": "move",
"option": [
false
]
@ -402,12 +404,12 @@
]
},
{
"name": "attack",
"type": "attack",
"option": [
]
},
{
"name": "move",
"type": "move",
"option": [
true
]

@ -2,88 +2,45 @@
"enemyVisible": false,
"bonusVisible": true,
"robotRandomPosition": true,
"tree": {
"type": "waria",
"lRect": [
{
"type": "condition",
"option": [
true,
true,
false,
0.3333333333333333,
0
],
"lRect": [
{
"type": "move",
"option": [
true,
false,
"speed"
]
}
]
},
{
"type": "attack",
"option": [
0.3333333333333333
]
},
{
"type": "move",
"option": [
true,
true
]
}
]
},
"initStat": {
"valueMax": 10,
"lBar": [
{
"value": 0,
"valueMax": 5,
"color": 16711680,
"colorMin": 16711680
"colorMin": 16711680,
"lText": [
"DAMAGE",
"DEGATS"
]
},
{
"value": 0,
"valueMax": 5,
"color": 8323327,
"colorMin": 8323327
"colorMin": 8323327,
"lText": [
"R.S",
"RECHARGEMENT"
]
},
{
"value": 5,
"valueMax": 5,
"color": 255,
"colorMin": 255
"colorMin": 255,
"lText": [
"SPEED",
"VITESSE"
]
},
{
"value": 5,
"valueMax": 5,
"color": 32768,
"colorMin": 32768
"colorMin": 32768,
"lText": [
"RANGE",
"PORTEE"
]
}
],
"lText": [
[
"DAMAGE",
"DEGATS"
],
[
"R.S",
"RECHARGEMENT"
],
[
"SPEED",
"VITESSE"
],
[
"RANGE",
"PORTEE"
]
]
},
"listTeam": [
@ -101,6 +58,51 @@
"range": 3,
"damage": 5,
"lNode": [
{
"type": "move",
"option": [
true,
false
]
},
{
"type": "attack",
"option": [
0.3333333333333333
]
},
{
"type": "condition",
"option": [
true,
true,
false,
0.3333333333333333,
0
],
"lNode": [
{
"type": "move",
"option": [
false,
true
]
},
{
"type": "attack",
"option": [
1
]
}
]
},
{
"type": "move",
"option": [
true,
true
]
}
]
}
]
@ -120,12 +122,12 @@
"damage": 5,
"lNode": [
{
"name": "attack",
"type": "attack",
"option": [
]
},
{
"name": "move",
"type": "move",
"option": [
true
]
@ -149,7 +151,7 @@
"damage": 5,
"lNode": [
{
"name": "condition",
"type": "condition",
"option": [
true,
true,
@ -159,7 +161,7 @@
],
"lNode": [
{
"name": "move",
"type": "move",
"option": [
true,
false
@ -168,12 +170,12 @@
]
},
{
"name": "attack",
"type": "attack",
"option": [
]
},
{
"name": "move",
"type": "move",
"option": [
true
]
@ -197,7 +199,7 @@
"damage": 5,
"lNode": [
{
"name": "condition",
"type": "condition",
"option": [
true,
true,
@ -207,7 +209,7 @@
],
"lNode": [
{
"name": "move",
"type": "move",
"option": [
true,
false
@ -216,12 +218,12 @@
]
},
{
"name": "attack",
"type": "attack",
"option": [
]
},
{
"name": "move",
"type": "move",
"option": [
true
]
@ -245,7 +247,7 @@
"damage": 5,
"lNode": [
{
"name": "condition",
"type": "condition",
"option": [
true,
true,
@ -255,7 +257,7 @@
],
"lNode": [
{
"name": "move",
"type": "move",
"option": [
true,
false
@ -264,12 +266,12 @@
]
},
{
"name": "attack",
"type": "attack",
"option": [
]
},
{
"name": "move",
"type": "move",
"option": [
true
]
@ -293,7 +295,7 @@
"damage": 5,
"lNode": [
{
"name": "condition",
"type": "condition",
"option": [
true,
true,
@ -303,7 +305,7 @@
],
"lNode": [
{
"name": "move",
"type": "move",
"option": [
true,
false
@ -312,12 +314,12 @@
]
},
{
"name": "attack",
"type": "attack",
"option": [
]
},
{
"name": "move",
"type": "move",
"option": [
true
]
@ -341,7 +343,7 @@
"damage": 5,
"lNode": [
{
"name": "condition",
"type": "condition",
"option": [
true,
true,
@ -351,7 +353,7 @@
],
"lNode": [
{
"name": "move",
"type": "move",
"option": [
true,
false
@ -360,12 +362,12 @@
]
},
{
"name": "attack",
"type": "attack",
"option": [
]
},
{
"name": "move",
"type": "move",
"option": [
true
]
@ -389,7 +391,7 @@
"damage": 5,
"lNode": [
{
"name": "condition",
"type": "condition",
"option": [
true,
true,
@ -399,7 +401,7 @@
],
"lNode": [
{
"name": "move",
"type": "move",
"option": [
true,
false
@ -408,12 +410,12 @@
]
},
{
"name": "attack",
"type": "attack",
"option": [
]
},
{
"name": "move",
"type": "move",
"option": [
true
]

@ -2,100 +2,45 @@
"enemyVisible": false,
"bonusVisible": true,
"robotRandomPosition": false,
"tree": {
"type": "waria",
"lRect": [
{
"type": "attack",
"option": [
0.3333333333333333
]
},
{
"type": "condition",
"option": [
false,
false,
true,
0.3333333333333333,
1
],
"lRect": [
{
"type": "move",
"option": [
false,
true
]
},
{
"type": "attack",
"option": [
1
]
}
]
},
{
"type": "move",
"option": [
true,
false
]
},
{
"type": "move",
"option": [
true,
true
]
}
]
},
"initStat": {
"valueMax": 10,
"lBar": [
{
"value": 5,
"valueMax": 5,
"color": 16711680,
"colorMin": 16711680
"colorMin": 16711680,
"lText": [
"DAMAGE",
"DEGATS"
]
},
{
"value": 0,
"valueMax": 5,
"color": 8323327,
"colorMin": 8323327
"colorMin": 8323327,
"lText": [
"R.S",
"RECHARGEMENT"
]
},
{
"value": 0,
"valueMax": 5,
"color": 255,
"colorMin": 255
"colorMin": 255,
"lText": [
"SPEED",
"VITESSE"
]
},
{
"value": 5,
"valueMax": 5,
"color": 32768,
"colorMin": 32768
"colorMin": 32768,
"lText": [
"RANGE",
"PORTEE"
]
}
],
"lText": [
[
"DAMAGE",
"DEGATS"
],
[
"R.S",
"RECHARGEMENT"
],
[
"SPEED",
"VITESSE"
],
[
"RANGE",
"PORTEE"
]
]
},
"listTeam": [
@ -113,6 +58,51 @@
"range": 3,
"damage": 5,
"lNode": [
{
"type": "move",
"option": [
true,
false
]
},
{
"type": "attack",
"option": [
0.3333333333333333
]
},
{
"type": "condition",
"option": [
true,
true,
false,
0.3333333333333333,
0
],
"lNode": [
{
"type": "move",
"option": [
false,
true
]
},
{
"type": "attack",
"option": [
1
]
}
]
},
{
"type": "move",
"option": [
true,
true
]
}
]
},
{
@ -126,6 +116,51 @@
"range": 3,
"damage": 5,
"lNode": [
{
"type": "move",
"option": [
true,
false
]
},
{
"type": "attack",
"option": [
0.3333333333333333
]
},
{
"type": "condition",
"option": [
true,
true,
false,
0.3333333333333333,
0
],
"lNode": [
{
"type": "move",
"option": [
false,
true
]
},
{
"type": "attack",
"option": [
1
]
}
]
},
{
"type": "move",
"option": [
true,
true
]
}
]
}
]
@ -146,7 +181,7 @@
"damage": 5,
"lNode": [
{
"name": "condition",
"type": "condition",
"option": [
true,
true,
@ -156,7 +191,7 @@
],
"lNode": [
{
"name": "move",
"type": "move",
"option": [
false
]
@ -164,12 +199,12 @@
]
},
{
"name": "attack",
"type": "attack",
"option": [
]
},
{
"name": "move",
"type": "move",
"option": [
true
]
@ -188,7 +223,7 @@
"damage": 5,
"lNode": [
{
"name": "condition",
"type": "condition",
"option": [
true,
true,
@ -198,7 +233,7 @@
],
"lNode": [
{
"name": "move",
"type": "move",
"option": [
false
]
@ -206,12 +241,12 @@
]
},
{
"name": "attack",
"type": "attack",
"option": [
]
},
{
"name": "move",
"type": "move",
"option": [
true
]

@ -2,100 +2,45 @@
"enemyVisible": false,
"bonusVisible": true,
"robotRandomPosition": false,
"tree": {
"type": "waria",
"lRect": [
{
"type": "attack",
"option": [
0.3333333333333333
]
},
{
"type": "condition",
"option": [
false,
false,
true,
0.3333333333333333,
1
],
"lRect": [
{
"type": "move",
"option": [
false,
true
]
},
{
"type": "attack",
"option": [
1
]
}
]
},
{
"type": "move",
"option": [
true,
false
]
},
{
"type": "move",
"option": [
true,
true
]
}
]
},
"initStat": {
"valueMax": 10,
"lBar": [
{
"value": 5,
"valueMax": 5,
"color": 16711680,
"colorMin": 16711680
"colorMin": 16711680,
"lText": [
"DAMAGE",
"DEGATS"
]
},
{
"value": 0,
"valueMax": 5,
"color": 8323327,
"colorMin": 8323327
"colorMin": 8323327,
"lText": [
"R.S",
"RECHARGEMENT"
]
},
{
"value": 0,
"valueMax": 5,
"color": 255,
"colorMin": 255
"colorMin": 255,
"lText": [
"SPEED",
"VITESSE"
]
},
{
"value": 5,
"valueMax": 5,
"color": 32768,
"colorMin": 32768
"colorMin": 32768,
"lText": [
"RANGE",
"PORTEE"
]
}
],
"lText": [
[
"DAMAGE",
"DEGATS"
],
[
"R.S",
"RECHARGEMENT"
],
[
"SPEED",
"VITESSE"
],
[
"RANGE",
"PORTEE"
]
]
},
"listTeam": [
@ -113,6 +58,51 @@
"range": 3,
"damage": 5,
"lNode": [
{
"type": "move",
"option": [
true,
false
]
},
{
"type": "attack",
"option": [
0.3333333333333333
]
},
{
"type": "condition",
"option": [
true,
true,
false,
0.3333333333333333,
0
],
"lNode": [
{
"type": "move",
"option": [
false,
true
]
},
{
"type": "attack",
"option": [
1
]
}
]
},
{
"type": "move",
"option": [
true,
true
]
}
]
},
{
@ -126,6 +116,51 @@
"range": 3,
"damage": 5,
"lNode": [
{
"type": "move",
"option": [
true,
false
]
},
{
"type": "attack",
"option": [
0.3333333333333333
]
},
{
"type": "condition",
"option": [
true,
true,
false,
0.3333333333333333,
0
],
"lNode": [
{
"type": "move",
"option": [
false,
true
]
},
{
"type": "attack",
"option": [
1
]
}
]
},
{
"type": "move",
"option": [
true,
true
]
}
]
}
]
@ -146,12 +181,12 @@
"damage": 5,
"lNode": [
{
"name": "attack",
"type": "attack",
"option": [
]
},
{
"name": "move",
"type": "move",
"option": [
true
]
@ -170,12 +205,12 @@
"damage": 5,
"lNode": [
{
"name": "attack",
"type": "attack",
"option": [
]
},
{
"name": "move",
"type": "move",
"option": [
true
]
@ -200,12 +235,12 @@
"damage": 5,
"lNode": [
{
"name": "attack",
"type": "attack",
"option": [
]
},
{
"name": "move",
"type": "move",
"option": [
true
]
@ -224,12 +259,12 @@
"damage": 5,
"lNode": [
{
"name": "attack",
"type": "attack",
"option": [
]
},
{
"name": "move",
"type": "move",
"option": [
true
]

Loading…
Cancel
Save