Package org.newdawn.slick

Examples of org.newdawn.slick.ScalableGame


      this.addState(new LoadingState(LOADINGSTATE));
  }

  public static void main(String[] args) throws SlickException
  {
    game = new ScalableGame(new Game(),app_x,app_y,false);
    app = new AppGameContainer(game);
    loading_time = app.getTime();
    app.setIcon("res/icon.png");
    app.setDisplayMode(app_x, app_y, false);
    app.setTargetFrameRate(fps);
View Full Code Here


//      e.printStackTrace();
//    }

    // maintain aspect ratio
    try {
      ScalableGame game = new ScalableGame(new ScalableTest(),1024,568,true) {

        protected void renderOverlay(GameContainer container, Graphics g) {
          g.setColor(Color.white);
          g.drawString("Outside The Game", 350, 10);
          g.drawString(container.getInput().getMouseX()+","+container.getInput().getMouseY(), 400, 20);
View Full Code Here

TOP

Related Classes of org.newdawn.slick.ScalableGame

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.