131 Commits

Author SHA1 Message Date
6345febb35 Start reworking constant spawn
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
2023-09-10 15:39:19 -04:00
fcc29ad88a Removed debuging comments
Fixed the behavior of WaveObserver when a monster dies
2023-08-06 18:51:27 -04:00
a0aa9cfb64 Changed comments to english
Added a limit to how many monsters are created per lane
Unfixed issue where SpawnOnStart breaks the system
2023-08-06 18:27:23 -04:00
35f0796ad1 Merge remote-tracking branch 'origin/main' into feature/waveEditor 2023-08-02 15:10:19 -04:00
5deeb528b8 Merge remote-tracking branch 'origin/main' into feature/fixRecolteBug 2023-08-02 15:02:45 -04:00
333a6e00bf Ajusted the behavior to be performance efficient 2023-08-02 15:00:21 -04:00
d44bf44624 Merge remote-tracking branch 'origin/main' into feature/fixRecolteBug 2023-07-30 15:56:28 -04:00
cfeb6bb09b Fixed yield collecting bug
Implemented OverlapCircleAll and FindAll
Reverted SortingOrder changes to prefabs
2023-07-30 15:55:54 -04:00
c9c47f1417 Fix enemy count bug where the number of enemies spawned was inconsistent with the amount desired 2023-07-30 11:56:13 -04:00
Felix-gabriel Boucher-luneau
fb80cc3c9b Pull request #37: Finish integrating level selector
Merge in CGD/gather-and-defend from feature/integrateLevelSelector to main

* commit '9696ee614e4666d93da40bcec686e87ac6a30559':
  spawners n'apparaissent plus + beau back button
  finish integrating level selector
2023-07-25 23:07:22 +00:00
Felix Boucher
9696ee614e spawners n'apparaissent plus + beau back button 2023-07-23 20:22:29 -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
adea3b05d4 Ajustement de l'ordre des sprite des recoltes
Implementation de OverlapPoint pour remplacer RaycastHit
2023-07-23 19:14:35 -04:00
Baptiste
33e5d14c9e isTrigger ajouté 2023-07-23 16:28:08 -04:00
8b13efe012 restored broken prefabs 2023-07-23 16:26:27 -04:00
Baptiste
7de3727297 no message 2023-07-23 16:01:54 -04:00
Baptiste
d60d333743 Merge branch 'main' of https://bitbucket.clubconjure.com/scm/cgd/gather-and-defend into animation_unites
# Conflicts:
#	Assets/Prefabs/Monsters/ClawClawRough_monster.prefab
#	Assets/Prefabs/Sticks/baseStick.prefab
2023-07-23 15:59:36 -04:00
Baptiste
b3bb49d9e1 AJout detection de l'ennemi le plus proche, correction bug collision, correction bug monstres attaque de loin 2023-07-23 15:45:58 -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
3b9964debd Ajout d'un WaveConfig aux niveaux du LevelSelect 2023-07-22 17:59:55 -04:00
7dcf3e8217 Changement du nom de dossier de LevelConfig vers WaveConfig
Ajustement des instructions du WaveConfig
2023-07-22 17:57:52 -04:00
84470e8d0e Merge branch 'main' into feature/waveEditor 2023-07-22 17:50:56 -04:00
b57efc49a8 Ajout d'instructions pour la configuration de la vague d'ennemi
Changé le nom de classe de LevelConfig vers WaveConfig afin d'éviter une confusion avec le LevelEditor
2023-07-22 14:21:44 -04:00
fd22af5e65 Revert FetchDatabaseStatic because it prevents builds 2023-07-22 01:32:22 -04:00
ecd32b09b8 Level 1 to 6 and allow loading levels in worldMap 2023-07-22 01:24:05 -04:00
4a1b773c2c Add game scene changes to HUD 2023-07-21 23:26:15 -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
9b8b329340 Fixed scenes spawners 2023-07-18 20:40:53 -04:00
d4e3bb316c Changed levels, update rock sprite, added enemyspawnStart 2023-07-18 20:31:09 -04:00
9da10f580d Added tilesBackground and updated grass tiles 2023-07-18 20:06:59 -04:00
70a4048ee7 Axeman, miner, entities scaling and projectile angled 2023-07-18 15:43:21 -04:00
d83f621c3e Merge remote-tracking branch 'origin/main' into feature/animationRecolte 2023-07-14 23:16:26 -04:00
cad2436773 Progrès WaveEditor
WaveObserver gère le nombre d'ennemi à créer et assure d'arreter la création d'ennemis supplémentaires.

SpawnerTile détermine un intervalle aléatoire automatiquement après chaque création d'ennemi. La première intervalle a plus de chance d'être plus courte que les intervalles suivantes.

Config01 est le scriptable object de type LevelConfig

Suppression de commentaires de tests
2023-07-14 23:15:18 -04:00
d75a1ec747 Progrès WaveEditor
WaveObserver donne aux spawners les unités à instancier ainsi que l'intervalle de création de ceux-ci

LevelConfig passe de Level vers LevelManager puis il est utilisé dans l'instance de WaveObserver
2023-07-14 19:44:07 -04:00
1ceb1da60d Archer anim; Farmer anim; Fix HUD issues 2023-07-14 14:57:39 -04:00
84184b4968 restored testGame scene 2023-07-14 14:19:11 -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
9889ca76a7 harvesters
problème : il faut que les resource tiles produisent des resources seulement quand elles ont une unité au dessus d'elles pour les harvester.

solution : créer une classe harvester qui est vérifiée par la resource tile avant d'updater. Si aucun harvester n'est au dessus, aucune update n'est faite.
2023-07-13 12:40:37 -04:00
Felix Boucher
588d491b6a cards should be aligned top left
instead of bottom left
2023-07-11 15:52:43 -04:00
Felix Boucher
87622e8a69 oubli des universioned files 2023-07-11 15:52:43 -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
2ec13ed7e2 ajout placeholder pour fast forward 2023-07-11 15:52:43 -04:00
Felix Boucher
1cf027cb1c animator de l'archer etait brisé + oublis 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
Baptiste Girard
525a1ba729 Pull request #26: Animation unites
Merge in CGD/gather-and-defend from animation_unites to main

* commit 'e44264d66f2068dc53f341e5bb19684e2e3409db':
  ajout event animation, ajout classe Root qui sert de transition entre la classe Entity et l'animator.
  correction du merge request
  no message
  animations walk/idle/death/move working
2023-07-11 17:37:08 +00:00
Baptiste
e44264d66f ajout event animation, ajout classe Root qui sert de transition entre la classe Entity et l'animator. 2023-07-09 21:33:35 -04:00
15b5976cb0 Debut Wave Editor
LevelConfig cnotient la liste des ennemies à spawn à un rythme constant ainsi que la durée du jeux

EnemyType contient l'ennemi ainsi que la quantité à SpawnerTile

Modifications de Level et TilemapData afin d'accéder aux paramètres des Spawners du jeu
2023-07-09 18:59:37 -04:00