
class HomeMode extends GameMode {

  PImage HomeModeBack;
  int newHeight;

  HomeMode() {
    HomeModeBack = loadImage("assets/HomeMode_Screen.png");
    if (aspectRatio != 1.6) {
      HomeModeBack.resize(width, height);
    } else {
      newHeight = ScreenHeight/10*9;
      HomeModeBack.resize(ScreenWidth, newHeight);
      println(newHeight);
    }
  }

  void draw() {
    if (aspectRatio == 1.6) {
      background(0);
      image(HomeModeBack, 0, (ScreenHeight-newHeight)/2);
    } else {
      background(HomeModeBack);
    }

    //text("homeMode", width/2, height/2); //just a text to visualize that the current Game Mode is HomeMode
  }

  void mouseClicked() {
    gameMode = new GameSetup(); //sets the gameMode to GameSetup
  }
}
