Package org.newdawn.slick

Examples of org.newdawn.slick.AppGameContainer


      planeY += 3;
    }
  }

  public static void main(String[] args) throws SlickException {
    AppGameContainer app =
        new AppGameContainer(new SimpleGameSlick2d());

    app.setDisplayMode(800, 600, false);

    app.start();
  }
View Full Code Here


* To change this template use File | Settings | File Templates.
*/
public class Main {
    public static void main(String[] arguments) {
        try {
            AppGameContainer app;
            app = new AppGameContainer(new XonixGame("Amputator"));
            app.setShowFPS(false);
            app.setDisplayMode(800, 600, false);
            app.start();
        } catch (SlickException ex) {
            Logger.getLogger(XonixGame.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
View Full Code Here

        }
      }
    }
   
    try{
      AppGameContainer app = new AppGameContainer(new VisualBurglar());
      VisualBurglar.FLAG_REPLAN_ON_NEW_KNOWLEDGE = replanOnKnowledge;
      app.setDisplayMode(width, height, fullScreen);
      app.setShowFPS(showFrameRate);
      // render even when invisible
      app.setAlwaysRender(true);
      // synchronize the rendering cycles with the monitor's frame rate
      app.setVSync(true);
      // start the main loop:
      app.start();
    }catch(SlickException e){
      e.printStackTrace();
    }
  }
View Full Code Here

      yamlElements.set(GuiElement.yamlLastID, 0);
      yamlElements.save(GuiElement.yamlGuiFilename);
      yamlElements.load(GuiElement.yamlGuiFilename);
    }
   
    AppGameContainer agc = new AppGameContainer(new Source(title));
    agc.setVSync(false);
    agc.setDisplayMode(yamlGridX * GuiElement.yamlGridW, yamlGridY * GuiElement.yamlGridH, false);
    agc.setUpdateOnlyWhenVisible(false);
    agc.setShowFPS(false);
    agc.setResizable(false);
    agc.start();
  }
View Full Code Here

     * @param args Command-line arguments (ignored).
     */
    public static void main(String[] args)
    throws SlickException
    {
        AppGameContainer app = new AppGameContainer(new Game());
        // setShowFPS(true), to show frames-per-second.
        app.setShowFPS(false);
        app.setDisplayMode(screenwidth, screenheight, false);
        app.start();
    }
View Full Code Here

   * Override this method if you want to set up the application differently.
   */
  public static void play(PointClikiGame game) {
    sGame = game;
    try {
      sApp = new AppGameContainer(sGame);
      sApp.setDisplayMode(960, 720, false);
      sApp.setVerbose(false);
      sApp.setShowFPS(false);
      sApp.start();
    } catch (SlickException e) {
View Full Code Here

    }
    if(Settings.IS_DEBUG){
      System.out.println("== Debug mode enabled ==");
    }
   
    AppGameContainer app = new AppGameContainer(new AloneInSpace());
    app.setDisplayMode(Settings.WIDTH, Settings.HEIGHT, false);
    app.setFullscreen(Settings.FULL_SCREEN);
    app.setShowFPS(false);
    app.setMinimumLogicUpdateInterval(16);
    app.setTargetFrameRate(60);
    app.start();
  }
View Full Code Here

    return (GruntzGame) PointClikiGame.instance();
  }
 
  public static void configureApp() {
    try {
      sApp = new AppGameContainer(sGame);
      sApp.setIcon("lib/icon.png");
     
      try {
        sApp.setDisplayMode(451, 600, false);
      } catch (SlickException e1) {
View Full Code Here

  public static void main(String[] args)
       throws SlickException
         {
        prepareSystem();
        AppGameContainer app =
          new AppGameContainer(new DasGame());

        app.setDisplayMode(800, 600, false);
        app.setIcon("img/player1.gif");
        app.setMinimumLogicUpdateInterval(20);
        app.setShowFPS(false);
        app.start();
       
         }
View Full Code Here

    init();
  }
 
  public static void init() throws SlickException{
    System.setProperty("org.lwjgl.opengl.Display.allowSoftwareOpenGL","true");
    AppGameContainer app = new AppGameContainer(new Game());
    app.setDisplayMode(800, 600, false);
    app.setShowFPS(false);
    app.start();
  }
View Full Code Here

TOP

Related Classes of org.newdawn.slick.AppGameContainer

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.