177 Commits

Author SHA1 Message Date
fd57c8247d Merge branch 'feature/waveEditor' into feature/waveGroup 2023-09-24 17:30:16 -04:00
0ce0acae5e Fix MissingRefException when monster calls method OnDestroy
Changes to Entity.cs to override Death method
2023-09-17 20:45:11 -04:00
def7c9f30d Merge remote-tracking branch 'origin/main' into feature/waveEditor 2023-09-17 20:03:00 -04:00
56410139fd Reworked constant spawn
One row will spawn at a set interval

Maximum enemy per row determined by active toughness on that row
2023-09-17 18:56:30 -04:00
William Gingras 01
9c976a9cc5 Pull request #41: Added berries, updated rock and trees; Added decos to axeman, miner and archer
Merge in CGD/gather-and-defend from art/polishArcherMinerAxemanTreesBerries to main

* commit '62b8385739a59e16880e0f4f1383acfab72d913b':
  Added berries, updated rock and trees; Added decos to axeman, miner and archer
2023-09-10 20:39:30 +00:00
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
62b8385739 Added berries, updated rock and trees; Added decos to axeman, miner and archer 2023-09-10 11:29:40 -04:00
Felix-gabriel Boucher-luneau
ce058aee7f Pull request #39: global config file
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
2023-09-03 16:21:20 +00:00
William Gingras 01
44d32b3347 Pull request #40: Added swordsman
Merge in CGD/gather-and-defend from art/swordsman to main

* commit '496a6eb7382de64241446b950ea3f89e197beeb0':
  Added swordsman
2023-08-30 19:11:28 +00:00
Felix Boucher
0714036b57 separate ally and enemy config + bugfixes
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)
2023-08-30 14:57:01 -04:00
496a6eb738 Added swordsman 2023-08-21 16:54:03 -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
Felix Boucher
0aa3327433 appliquer global config aux différents endroits
PROBLÈME :

la config existait mais n'était pas appliquée nulle part

SOLUTION :

maintenant elle l'est

NOTES :

Elle n'est pas encore appliquée au flash de dégat
2023-08-05 15:55:54 -04:00
35f0796ad1 Merge remote-tracking branch 'origin/main' into feature/waveEditor 2023-08-02 15:10:19 -04:00
76c90cacdd Pull request #38: Fixed resource collecting bug
Merge in CGD/gather-and-defend from feature/fixRecolteBug to main

* commit '5deeb528b8783c2e3c2e54753e7c369b4c910d59':
  Ajusted the behavior to be performance efficient
  Fixed yield collecting bug
  Ajustement de l'ordre des sprite des recoltes
2023-08-02 19:06:57 +00: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
Felix Boucher
b9908ab717 forgot changes in game.unity 2023-08-02 01:39:57 -04:00
Felix Boucher
defe6ed4ff creer le scriptable object GlobalConfig
besoin : il serait bien d'avoir un fichier central qui permettrait de modifier toutes les valeurs du jeu sans avoir à aller dans chaque prefab et gosser

solution : un fichier central de paramétrage qui sera hooked en middleman dans les valeurs des différents objets du jeu, et pourra être changé en temps réel et appliqué globalement

note : le fichier est créé mais les paramètres ne sont pas encore hooked.
2023-08-02 01:39:24 -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
Baptiste Girard
3d919455e9 Pull request #36: AJout detection de l'ennemi le plus proche, correction bug collision, correction bug monstres attaque de loin
Merge in CGD/gather-and-defend from animation_unites to main

* commit '33e5d14c9ef1223a17ea1d5335b2f60ab4ba5938':
  isTrigger ajouté
  restored broken prefabs
  no message
  AJout detection de l'ennemi le plus proche, correction bug collision, correction bug monstres attaque de loin
2023-07-23 23:24:47 +00: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-gabriel Boucher-luneau
15f95d5bc4 Pull request #35: changer l'apparence du harvester
Merge in CGD/gather-and-defend from feature/harvesterFitsResourceNode to main

* commit 'b1cfb714a60996898c83f7c5f45d0f4b2d8c9fde':
  changer l'apparence du harvester
2023-07-23 16:37:00 +00: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
William Gingras 01
b35325d949 Pull request #33: Axeman, miner, entities scaling and projectile angled
Merge in CGD/gather-and-defend from art/minerAndAxeman to main

* commit 'fd22af5e650a0ab60410e50785b94be984410583':
  Revert FetchDatabaseStatic because it prevents builds
  Level 1 to 6 and allow loading levels in worldMap
  Add game scene changes to HUD
  Add FarmersAssociation unit + balance changes
  Added farmers Association
  Fixed scenes spawners
  Changed levels, update rock sprite, added enemyspawnStart
  Added tilesBackground and updated grass tiles
  Axeman, miner, entities scaling and projectile angled
2023-07-22 18:57:03 +00: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
William Gingras 01
f733a84ebf Pull request #32: Art/maquetteAccurateGameScene
Merge in CGD/gather-and-defend from art/maquetteAccurateGameScene to main

* commit '1ceb1da60dee39c58ddb72fe4f591f2598b7fbff':
  Archer anim; Farmer anim; Fix HUD issues
  restored testGame scene
  Made game scene look like maquette
2023-07-17 22:00:55 +00:00