vtquan_Delayed-Processing/CloneGame/MenuScene.pde
class MenuScene extends Scene {
  Button startB = new Button(width/2, height/2, 100, 40, "Start");
  PImage img = loadImage("TitleScreen.jpg");
  
  MenuScene()
  {
    groove = minim.loadFile("Music/FantasticA.mp3");
    groove.play();
  }
  
  void update()
  {
    startB.update();
  }
  
  void display()
  {
    image(img, width/2, height/2, width, height);
    
    pushStyle();
    
    textAlign(CENTER);
    textSize(100);
    fill(255);
    text("Delayed", width/2, 100);
    
    popStyle();
    startB.display();
    
    showScore();
  }
  
  void showScore()
  {
    textAlign(LEFT);
    fill(255);
    textSize(14);
    text("survival time: "+game.frameElapsed+" score: " +game.score, 10, height - 10); 
    
    textAlign(RIGHT);
    text("highest survival time: "+highSurvival+" highest score: " +highScore, width - 10, height - 10); 
  }
}
