Package it.timehero.slick.ui

Source Code of it.timehero.slick.ui.UserInterface

/**
* TimeHero - http://timehero.sf.net
*
* @license See LICENSE
*/
package it.timehero.slick.ui;

import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;

/**
* disegna interfaccia di gioco a video
*/
public class UserInterface {

  /**
   * Disegna interfaccia utente a video
   *
   * @param g
   * @param punteggio
   * @throws SlickException
   */
  public void render(Graphics g, int pf) throws SlickException{
        // comandi a schermo
    g.drawImage(new Image("data/grafica/roundBox.png"), 0, 0);
        g.drawString("Uccidi tutte le strega!", 10, 25);
//        g.drawString("Comandi :", 10, 50);
        g.drawString("  Movimento: frecce", 10, 40);
        g.drawString("  Spazio : attacca", 10, 50);
        g.drawString("  ESC esci", 10, 60);
        //g.drawRect(5, 575, 100, 30);
        g.drawImage(new Image("data/grafica/roundBox.png"), 5, 575);
        //g.drawImage(, 5, 575, 5, 605);
        g.drawString("  PF : "+pf, 10, 580);
  }
 
}
TOP

Related Classes of it.timehero.slick.ui.UserInterface

TOP
Copyright © 2018 www.massapi.com. 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.