27 Commits

Author SHA1 Message Date
Baptiste
25d574714f add the save and unlock next level after finishing anyone 2023-11-13 19:08:18 -05:00
Felix-gabriel Boucher-luneau
96d9b0fd7b Pull request #49: added population mechanic
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
2023-10-30 03:26:43 +00:00
Felix Boucher
b54627196c 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
2023-10-29 19:12:32 -04:00
570b3948d4 Added some basic sounds including ambiant and res collection; Fixed level retry not working 2023-10-29 16:54:13 -04:00
2478c8b3fb Added show victory and defeat screens animation 2023-10-15 19:23:24 -04:00
e2ff56264e Fix game conflict and added correct UI for the victory and defeat screens 2023-10-15 18:34:42 -04:00
915fed0cbe Apply prefab 2023-10-15 17:47:33 -04:00
Felix Boucher
9e07c48fd4 ajout de transition avant de loader le level
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
2023-10-01 21:48:35 -04:00
Baptiste
e25b7da389 ajout des fonctionnalité des boutons + ajout de la condition de défaite fonctionnelle 2023-09-30 15:25:18 -04:00
Baptiste
2d2cfecbc4 ajout classe building + debut condition victoire defaite (script et ui) 2023-09-18 16:47:06 -04:00
496a6eb738 Added swordsman 2023-08-21 16:54:03 -04:00
Felix Boucher
27d72368aa finish integrating level selector
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
2023-07-23 20:16:44 -04:00
Felix Boucher
b1cfb714a6 changer l'apparence du harvester
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)
2023-07-23 11:53:07 -04:00
babc3a24e8 Add FarmersAssociation unit + balance changes 2023-07-21 23:25:38 -04:00
768700a06e Added farmers Association 2023-07-21 17:31:03 -04:00
70a4048ee7 Axeman, miner, entities scaling and projectile angled 2023-07-18 15:43:21 -04:00
1ceb1da60d Archer anim; Farmer anim; Fix HUD issues 2023-07-14 14:57:39 -04:00
c39bbba683 Made game scene look like maquette 2023-07-14 14:15:07 -04:00
1d147bb207 Clean code; Remove text on levels; Load game scene for now when clicking on a level btn 2023-07-14 13:01:21 -04:00
d12b9c2a62 Merge branch 'main' into origin/feature/Interface-Carte 2023-07-14 12:47:13 -04:00
Felix Boucher
43bc2c75f2 work on game scene + fix bugs
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
2023-07-11 15:52:43 -04:00
Felix Boucher
1b85e1c37f mettre tout le stock dans la scene Game
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
2023-07-11 15:52:40 -04:00
c48f275fce - Correction du scaling des boutons dans la carte du monde;
- Modification de l'éditeur du monde pour mieux charger les sprites.
2023-06-25 17:58:05 -04:00
Felix Boucher
43f4c6a39e Linked resource management to unit creation
Problem :

Les unités et bâtiments ne coutaient rien à construire

Solution :

J'ai link le système de drag and drop au resource manager.

Note :

J'ai déshérité le ResourceManager de MonoBehaviour aussi, vu que c'est pas une fonctionalité qui nécessite d'être updaté par frame vraiment, c'est plus du stockage.

J'ai testé dans l'éditeur et tout semble fonctionel *fingers crossed*
2023-06-22 13:58:02 -04:00
b1fc63de50 Finalisations de base pour la sélection de niveau. Aussi, ajout des images pour les boutons des niveaux. 2023-06-04 14:47:10 -04:00
c7ec6a7dd8 Réglages et avancements sur la création de la carte du monde. 2023-05-29 18:36:30 -04:00
ef7ee26ce1 Added demo project sprites and a basic animated stickman 2023-05-09 19:20:41 -04:00