Merge in CGD/gather-and-defend from progress_worldmap to main
* commit '25d574714f32e7eec33f90451d2054cb643722ff':
add the save and unlock next level after finishing anyone
Merge in CGD/gather-and-defend from prog/fix_detection_range to main
* commit '4568c350bfec91842dc9a8fe0917798fbfce7dda':
toggle collider in coroutine instead of script
fix detection range
Merge in CGD/gather-and-defend from prog/fix_detection_range to main
* commit '937624f54fafd20cbc70dd752fa00314139ec795':
remove underscore
fix detection range
problem :
detection range didn't show anymore on placeholders
solution :
calculate detection range from collider's offset and size instead of it's bound
Merge in CGD/gather-and-defend from prog/population to main
* commit '6778880d5fed0d60c92f48995e62eca289bfaec3':
reset resources for real each level loading
oops forgot some staging
population mechanic with art
- added art for house and UI
- put population in ResourceManager
- create house prefab
- added code for adding and removing pop depending on entity
- refactor harvesters so they inherit from ally
- modify placeholders and buttons so that only units cost population
- add events for population and resources changing
- add population relative configs to global config
- add start resources values to Levels
- add debug feature for generating resources for free
problème :
Il y avait plusieurs manières de faire planter le loading screen en appuyant sur des boutons
changements:
- turn off buttons when loading screen is active
- turn on buttons when loading screen is not active
- add event aggregator class to project and migrate every event to it
- fix bugs and regressions
besoin :
- le level était loadé directement au moment de cliquer dans le level selector ce qui n'est pas très fenshui
solution :
- fade out avec nuages
- les tuiles tombent à leur place au lieu d'apparaitre toutes en même temps
Merge in CGD/gather-and-defend from origin/feature/ChangeGameSpeed to main
* commit '059b6d5bd84b3f07963f222f575a61c7dc7b86a2':
Correction du nom d'une méthode.
Ajout du menu pause et de son interface.
- Ajout d'une fonction qui met le jeu en pause.
- Implémentation d'une méthode pour accèler le jeux pendant un partie;
Made interval between spawns adapt to enemies spawned at the Start
Removed the random factor of interval to respect the game duration
Made max spawn per row dependent of enemy toughness on that row
Merge in CGD/gather-and-defend from feature/globalConfigFile to main
* commit '0714036b57f45e2c04dc8de469ce99b1b8a2d6d3':
separate ally and enemy config + bugfixes
appliquer global config aux différents endroits
forgot changes in game.unity
creer le scriptable object GlobalConfig
la config des ennemis influencait la config des alliés, ce qui était un bug maintenant, il y a une config différente pour les alliés et les ennemis.
l'animation d'attaque ne se terminait pas à temps pour faire le dégat, il a donc fallu multiplier la vitesse d'animation par le attack speed quand on attaque
j'en ai profité pour faire la même chose pour le walk animation et le speed
j'ai changé l'attribut des unités "attack speed" pour un "attack interval", pour que ça représente mieux son utilisation. Le multiplicateur reste sur la vitesse, et non sur l'interval.
Les configs pour les ressources sont les valeurs des ressources directement (pas des multiplicateurs)