class Score {
  
  float score;
  float start, end;
  float startFond, endFond;
  boolean actif;
  PImage youLived;
  
  Score(  ) {
    
  youLived = loadImage( "youLivedFor.png");  
  score = 0;
  start = time;
  
  }
  
  
  
  
  void display(){

    if ( liz.dead ) {
      push();
      imageMode(CENTER);
      image( youLived , width/2, height/2 );
      textFont(fontL);
      textAlign( LEFT, BOTTOM );
      textSize(77);
      noStroke();
      fill( #ffff66);  //, ( time - endFond ) / 20 );
      text( int (point.end/100) , width/2 + 114 , height/2 + 26 );
      pop();
    }
  }
  
  
  void update() {
    
    if ( actif ) {
    score  = time - start;
    startFond = time;
    }
    if ( liz.dead ) {
      actif = false;
      end = score;
      endFond = startFond;
    }
    
  }
  
}
