text: #include "life.h"
  #include "main.h"
  
  #include "heart.h"
  
  Life::Life() {
      life = 3;
  }
  
  void Life::init() {
      for (int i = 0; i < 5; i++) hearts[i] = Heart(4+i*1.2, 8);
  }
  
  bool Life::decrease() {
      life--;
      return (life == 0);
  }
  
  void Life::draw() {
      for (int i = 0; i < life; i++) hearts[i].draw();
  }
  