Package org.newdawn.slick

Examples of org.newdawn.slick.AppGameContainer


  }

  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);
    app.setShowFPS(false);
View Full Code Here


      @Override
      public void run() {

        try {

          AppGameContainer app = new AppGameContainer(game);
          app.setDisplayMode(width, height, false);
          // app.setFullscreen(true);
          app.start();
        } catch (SlickException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        }
View Full Code Here

        final WorldUI game = new WorldUI();
        Renderer.setLineStripRenderer(Renderer.QUAD_BASED_LINE_STRIP_RENDERER);
        Renderer.getLineStripRenderer().setLineCaps(true);

        AppGameContainer container =
                new AppGameContainer(game);
        container.start();

        System.out.println(" ->  -> -> Displaying City!");


    }
View Full Code Here

      fullscreen = Boolean.parseBoolean(options.get("fullScreen"));
    } catch (Exception e) {
      fullscreen = false;
    }
    try {
      gc = new AppGameContainer(new GameClient("Pokenet: Valiant Venonat"),
          800, 600, fullscreen);
      gc.setTargetFrameRate(50);
      gc.start();

    } catch (Exception e) {
View Full Code Here

        Log.out = new PrintStream( new FileOutputStream("foogl.log"));
      } catch (FileNotFoundException e) {
        e.printStackTrace();
        Log.out = System.out;
      }*/
      appContainer = new AppGameContainer(getGame());
      appContainer.setDisplayMode(width, height, fullScreen);
      appContainer.setVSync(true);
      appContainer.setTitle(getTitle());
      appContainer.setIcon("foogl_icon16.gif");
      screen = appContainer; 
View Full Code Here

      if (sharedContextTest) {
        GameContainer.enableSharedContext();
        exitMe = true;
      }
     
      AppGameContainer container = new AppGameContainer(new ImageTest());
      container.setForceExit(!sharedContextTest);
      container.setDisplayMode(800,600,false);
      container.start();
     
      if (sharedContextTest) {
        System.out.println("Exit first instance");
        exitMe = false;
        container = new AppGameContainer(new ImageTest());
        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 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 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 passed to the test
   */
  public static void main(String[] argv) {
    try {
      AppGameContainer container = new AppGameContainer(
          new GeomUtilTileTest());
      container.setDisplayMode(800, 600, false);
      container.start();
    } catch (SlickException e) {
      e.printStackTrace();
    }
  }
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.