Package org.newdawn.slick

Examples of org.newdawn.slick.AppGameContainer


   *
   * @param argv The arguments passed to the test
   */
  public static void main(String[] argv) {
    try {
      AppGameContainer container = new AppGameContainer(new GraphicsTest());
      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 GradientTest());
      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 ShapeTest());
            container.setDisplayMode(800,600,false);
            container.start();
        } catch (SlickException e) {
            e.printStackTrace();
        }
    }
View Full Code Here

     
      public static void main(String[] args){
        Example t = new Example("Psuedo Texture Example");
       
        try{
          AppGameContainer agc = new AppGameContainer(t, 400,400, false);
          agc.start();
        }catch(SlickException e){
          // TODO Auto-generated catch block
          e.printStackTrace();
        }
      }
View Full Code Here

  public Start() {
    super("Mult");
  }
 
  public static void main(String[] args) throws SlickException {
    AppGameContainer app = new AppGameContainer(new Start());

    app.setDisplayMode(760, 600, false);
    app.setAlwaysRender(true);
    app.setTargetFrameRate(100);
    //app.setVSync(true);
    app.start();
  }
View Full Code Here

        super("BlockBreaker");
    }
 
    public static void main(String[] args) throws SlickException
    {
         AppGameContainer app = new AppGameContainer(new BlockBreaker());
 
         //app.setDisplayMode(1280,  800, false);
         app.setDisplayMode(600, 500, false);
         app.start();
    }
View Full Code Here

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

  /**
   * @param args
   * @throws SlickException
   */
  public static void main(String[] args) throws SlickException {
    AppGameContainer container = new AppGameContainer(new BeaversGame(),
        800, 600, false);
    container.setShowFPS(false);
    container.start();
  }
View Full Code Here

    hudRenderSystem.process();
  }

  public static void main(String[] args) throws SlickException {
    TankzGame tankz = new TankzGame("Tankz");
    AppGameContainer container = new AppGameContainer(tankz);
    container.setDisplayMode(Math.round(container.getScreenWidth() * 0.7f), Math.round(container.getScreenHeight() * 0.8f), false);
    container.setAlwaysRender(true);
    // container.setDisplayMode(1920, 1200, true);
    // container.setTargetFrameRate(60);
    // container.setMaximumLogicUpdateInterval(1);
    // container.setMinimumLogicUpdateInterval(1);

    container.setMusicOn(false);
    container.setMusicVolume(0.1f);
    container.setSoundOn(false);
    container.setSoundVolume(0.1f);

    container.start();
  }
View Full Code Here

   * @param argv The arguments
   */
  public static void main(String[] argv) {
    try {
      Log.info("Timehero Start ");
      AppGameContainer container = new AppGameContainer(new TimeHero());
      container.setMinimumLogicUpdateInterval(10);
      container.setMaximumLogicUpdateInterval(50);
      container.setDisplayMode(800,600,false);
      container.setShowFPS(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.