Package net.itscrafted.entity

Examples of net.itscrafted.entity.GameButton


    // show mouse cursor
    Game.setCursor(Game.VISIBLE);
   
    // set up buttons
    options = new GameButton[3];
    options[0] = new GameButton(320, 300, 100, 50);
    options[0].setText("s t a r t", font);
    options[1] = new GameButton(320, 350, 100, 50);
    options[1].setText("q u i t", font);
    options[2] = new GameButton(320, 400, 100, 50);
    options[2].setText("o p t i o n s", font);
   
    // fade timer
    fadeInTimer = 0;
    fadeInDelay = 60;
View Full Code Here


    /*if(!JukeBox.isPlaying("bgmusic1")) {
      JukeBox.loop("bgmusic1");
    }*/
   
    // buttons
    resetButton = new GameButton(10, 450);
    resetButton.setType(GameButton.LEFT);
    resetButton.setFont(LevelData.SC_FONT.deriveFont(Font.BOLD, 24f));
    resetButton.setText("reset");
    backButton = new GameButton(580, 450);
    backButton.setType(GameButton.LEFT);
    backButton.setFont(LevelData.SC_FONT.deriveFont(Font.BOLD, 24f));
    backButton.setText("quit");
   
  }
View Full Code Here

    font = LevelData.SC_FONT.deriveFont(28f);
   
    // set up buttons
    buttons = new GameButton[LevelData.MAX_LEVELS];
    for(int i = 0; i < buttons.length; i++) {
      buttons[i] = new GameButton(50, 130 + 35 * i);
      buttons[i].setFont(font);
      buttons[i].setType(GameButton.LEFT);
      String s = LevelData.getLevel(i * 4);
      s = s.substring(0, s.indexOf("   "));
      s += "  :  " + GameData.getScore(i) + " score";
View Full Code Here

TOP

Related Classes of net.itscrafted.entity.GameButton

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.