thank you! you actually get energy depending on the time you get close (I believe it generates every 0.05 seconds), but I agree that using distance would be cool.
I initially planned to add an action where you shoot wisps to the nearest enemy, but since I didn't add any enemies other than projectiles I scrapped the idea, currently they only act as barriers, which they block energy generation as you mentioned.