예제 #1
0
  MenuState(GameStateManager gsm) {
    super(gsm);

    try {
      bg = new Background("/Backgrounds/Menu.gif", 1);
      bg.setVector(-0.1, 0);

      titleColor = Color.WHITE;
      titleFont = new Font("Times New Roman", Font.PLAIN, 28);
      font = new Font("Times New Roman", Font.PLAIN, 12);

      music = new Audio("/Audio/mainTheme.wav");
      music.play();

    } catch (Exception e) {
      e.printStackTrace();
    }
  }
예제 #2
0
 public void init() {
   music.play();
 }