If your sheild meter isn't full, stars charge it by 1, and when it reaches 40, you get a sheild, and when you take damage with the sheild, the sheild meter goes back to 0.