ljhs-games / week-75

Week 75 game repository
MIT License
1 stars 2 forks source link

Add puddles #3

Closed ApGoldberg closed 5 years ago

ApGoldberg commented 5 years ago

Needs to light up when hit and do damage to enemies that are in it

ApGoldberg commented 5 years ago

Node should be an Area2D that turns yellow if entered by the lightning node or kills an enemy if entered by both a lightning node and an enemy.

creikey commented 5 years ago

Should keep track of a list of bodies inside of it in an array, then go through that array and if the group is enemy or player then it should call shock() on that body

creikey commented 5 years ago

The puddles should not detect when the lightning bolt enters it to know when to shock, the lightning bolt will call the shock method on the puddle

creikey commented 5 years ago

puddle should be in group puddle so lightning bolt and player can detect them

creikey commented 5 years ago

Implementation changed to just using built in Area2D functions to get bodies inside the puddle rather than keeping track of it manually