Package org.newdawn.slick

Examples of org.newdawn.slick.AppGameContainer


   *
   * @param argv The arguments passed on the command line
   */
  public static void main(String[] argv) {
    try {
      AppGameContainer container = new AppGameContainer(new PolygonTest(), 640, 480, false);
      container.start();
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here


   */
  public static void main(String[] argv) {
    try {
      Renderer.setRenderer(Renderer.VERTEX_ARRAY_RENDERER);
     
      AppGameContainer container = new AppGameContainer(new GeomTest());
      container.setDisplayMode(800,600,false);
      container.start();
    } catch (SlickException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

  public static void main(String argv[]) {
    try {
      Renderer.setRenderer(Renderer.VERTEX_ARRAY_RENDERER);
      Renderer.setLineStripRenderer(Renderer.QUAD_BASED_LINE_STRIP_RENDERER);
     
      AppGameContainer container = new AppGameContainer(new InkscapeTest());
      container.setDisplayMode(800,600,false);
      container.start();
    } catch (SlickException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

    *
    * @param argv The arguments passed to the test
    */
   public static void main(String[] argv) {
      try {
         AppGameContainer container = new AppGameContainer(new TransformTest2());
         container.setDisplayMode(640,480,false);
         container.start();
      } catch (SlickException e) {
         e.printStackTrace();
      }
   }
View Full Code Here

   *
   * @param argv The arguments to pass into the test
   */
  public static void main(String[] argv) {
    try {
      AppGameContainer container = new AppGameContainer(new SlickCallableTest());
      container.setDisplayMode(800,600,false);
      container.start();
    } catch (SlickException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

   *
   * @param argv The arguments passed into our test
    */
  public static void main(String[] argv) {
    try {
      AppGameContainer container = new AppGameContainer(new InputTest());
      container.setDisplayMode(800,600,false);
      container.start();
    } catch (SlickException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

   *
   * @param argv The arguments to pass into the test
   */
  public static void main(String[] argv) {
    try {
      AppGameContainer container = new AppGameContainer(new DeferredLoadingTest());
      container.setDisplayMode(800,600,false);
      container.start();
    } catch (SlickException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

   *
   * @param argv The arguments passed to the test
   */
  public static void main(String[] argv) {
    try {
      AppGameContainer container = new AppGameContainer(new AntiAliasTest());
      container.setDisplayMode(800,600,false);
      container.start();
    } catch (SlickException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

   * @param height The height of the window
   * @param fullscreen True if the window should be fullscreen
   */
  public static void runAsApplication(Game game, int width, int height, boolean fullscreen) {
    try {
      AppGameContainer container = new AppGameContainer(game, width, height, fullscreen);
      container.start();
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

    public void update(GameContainer container, int delta) throws SlickException {
        counter++;
    }
   
    public static void main(String[] args) throws SlickException {
        AppGameContainer app = new AppGameContainer(new Game());
        app.setDisplayMode(WIDTH, HEIGHT, false);
        app.setForceExit(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.