Package font

Examples of font.GLFont


  private Dimension defeatDim;
  private Dimension victoryDim;

  public Application() {
    Resources.loadResources();
    font = new GLFont(new Font("Arial", Font.BOLD, 30));
    bigFont = new GLFont(new Font("Arial", Font.BOLD, 60));

    actualGameState = GameState.MAIN_MENU;
   
    TextureManager.getInstance().addTexture("orange", new Texture(32, 32, Color.ORANGE));
    TextureManager.getInstance().addTexture("black", new Texture(32, 32, Color.BLACK));
View Full Code Here


  public void initialize(World world, FrameBuffer buffer){
    result = 0;
   
    //Logger.log("INIT PAUSE MENU");
    //create font
    font = new GLFont(new Font("Arial", Font.BOLD, 30));
   
    //init menu items
    resumeGame = createMenuButton("RESUME GAME", 1, 70, world, buffer);
    restartGame = createMenuButton("RESTART GAME", 2, 130, world, buffer);
    goToMainMenu = createMenuButton("BACK TO MAIN MANU", 3, 190, world, buffer);
View Full Code Here

  public FPSCounter(){
    totalFps = 0;
      fps = 0;
      lastFps = 0;
   
    font = new GLFont(new Font("Arial", Font.PLAIN, 16));
    timer = new Timer(REFRESH_TIME_IN_MILISECONDS);
    timer.start();
  }
View Full Code Here

  @Override
  public void initialize(World world, FrameBuffer buffer){
    result = 0;
   
    //create font
    font = new GLFont(new Font("Arial", Font.BOLD, 30));
   
    //init menu items
    newGame = new MenuItem(world, buffer, font);
    newGame.setPosition(600, 70);
    newGame.setText("NEW GAME");
View Full Code Here

    planets = new ArrayList<Planet>();
    setVictory(0);
    ships = new ArrayList<Ship>();
    shipsToRemove = new ArrayList<Ship>();
    difficultyLevel = new DifficultyLevel(DifficultyLevel.HARD);
    font = new GLFont(new Font("Arial", Font.PLAIN, 16));
  }
View Full Code Here

TOP

Related Classes of font.GLFont

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.