Retire le UI du UnitTree quand on clique sur n'importe quoi d'autre
Co-authored-by: Ader Alisma 01 <adeder22@hotmail.com>
Reviewed-on: #9
Reviewed-by: EliaGingras1 <william-gin1@hotmail.com>
Reviewed-on: #11
Reviewed-by: Ader_Alisma <ader.alisma.1@ens.etsmtl.ca>
Co-authored-by: Adam Salah <adam-hamid.salah-salah.1@ens.etsmtl.ca>
Co-committed-by: Adam Salah <adam-hamid.salah-salah.1@ens.etsmtl.ca>
Co-authored-by: Adam <adam-hamid.salah-salah.1@ens.etsmtl.ca>
Co-authored-by: Adam Hamid Salah Salah <adam-hamid.salah-salah.1@ens.etsmtl.ca>
Reviewed-on: #8
Reviewed-by: Ader_Alisma <ader.alisma.1@ens.etsmtl.ca>
Co-authored-by: Craftelia <william-gin1@hotmail.com>
Co-committed-by: Craftelia <william-gin1@hotmail.com>
Merge in CGD/gather-and-defend from UpgradeIndividuel to main
* commit '196740676df3a8b2b1cfa877b0b61dabdda497e0':
Permettre 1 à 3 upgrades
Suppression debug logs
Revert UI
Utilisation du UI d'Élia
Ajout ScriptableObject pour UnitUpgrades
Affichage bouttons interactifs + Suppression dummy gameobjects in Game scene
Debuggins
Change l'unité par l'upgrade choisi
Début lien entre upgradeUI et Unité
Rendu UpgradePlacementButton.cs indépendant des héritages de UnitPlacementButtons.
Prefab UpgadeButtons, utilisation de EventSystems pour clique sur unités.
Tentative d'associer le clique utilisateur à une position sur le jeu
Merge in CGD/gather-and-defend from art/millAndPeasantCard to main
* commit 'ee5cf003b0fd0b4d5b03334f514649d04b96adf3':
Added animated mill and peasant card!
#Le besoin addressé par le commit
les unités et bâtiments devrait avoir un temps de cooldown avant de pouvoir être spawné à nouveau
#Comment le besoin est-il addressé? (modifications)
les unités et bâtiments prennent maintenant 3 secondes avant de redevenir interactif après avoir été spawné
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
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
Level selector was already working after work by William but some small bugs remained to be fixed + it wasn't possible to return to level selector once we were in the level.
- it's now possible to go back to level selector from Level
- LevelManagerScript is no longer a singleton (this way, it resets with the Game scene unloading)
- Added a property drawer for using scene files in inspectors
problème :
- le harvester avait une apparence non-changeante dépendant du genre de ressource sur lequel il était placé.
solution :
- ajouter une logique qui change le prefab choisi dépendant de sur quelle tuile on place le harvester.
- also, quelques micro refactorings (changement de noms, ajout de doc)
problems :
- game scene was not as shown in the GDD
- problem when moving tilemap (the placeholders didn't follow)
- possible to place units outside the game area
solutions :
- try to make the game scene as close to the gdd as possible
- don't move the tilemap : move the camera instead (this keeps the world position of tilemap intact)
- there was a logic bug in the DraggablePlaceholder. It ain't anymore
problème :
- la scène game n'avait pas toute les dernières features créées
solution :
- ajouté LevelManager, boutons d'ajout d'unités, labels de resources