Regenerating Shields
My earliest implementation of regenerating shields recovered very quickly, mainly because I wanted to make sure that regeneration would be noticed without interface cues (which I’d add later in the form of a shield bar). For the time being, whenever an entity with shields was hit by a weapon, the remaining shield percentage would flash near the point of impact.
I cleaned up some debug-showing gunk and added a regenerating shield system to base_enemy
that I’m happy with, for now. At the present rate, shields of 30
take about four hits to defeat, even if left alone, but shields of 100
will regenerate noticeably. Shields return to full strength after a maximum of 5 seconds.
Next will be implementing the same system on the player, and then, finally, the shooting asterdroids. Then, probably some shielded asterdroids.