You lose one red bar when you get hit. The second time you get hit you lose the next one. And then if your hit while both bars are gone, you die.
sound by me