Everytime you die you lose a (half) heart, and at zero hearts you die permanently.
Vary your food for extra hunger points!