Closed ApGoldberg closed 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.
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
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
puddle should be in group puddle
so lightning bolt and player can detect them
Implementation changed to just using built in Area2D
functions to get bodies inside the puddle rather than keeping track of it manually
Needs to light up when hit and do damage to enemies that are in it