Examples of AppGameContainer


Examples of org.newdawn.slick.AppGameContainer

   *
   * @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

Examples of org.newdawn.slick.AppGameContainer

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

Examples of org.newdawn.slick.AppGameContainer

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

Examples of org.newdawn.slick.AppGameContainer

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

Examples of org.newdawn.slick.AppGameContainer

   * @throws SlickException Indicates a failure loading or processing resources
   * @throws IOException Indicates a failure loading the font
   */
  public static void main(String[] args) throws SlickException, IOException {
    Input.disableControllers();
    AppGameContainer container = new AppGameContainer(new UnicodeFontTest());
    container.setDisplayMode(512, 600, false);
    container.setTargetFrameRate(20);
    container.start();
  }
View Full Code Here

Examples of org.newdawn.slick.AppGameContainer

        party.addHero(Hero.getHeros("Leonard"));
        maps = new Maps();
    }

    public static void main(String[] args) {
        AppGameContainer app;
        try {
            MainGame game = new MainGame(gameName);
            app = new AppGameContainer(game);
            app.setDisplayMode(game.SCREEN_WIDTH, game.SCREEN_HEIGHT, game.MODE_FULLSCREEN);
            app.setShowFPS(game.MODE_FPS);
            app.setTargetFrameRate(game.SCREEN_FPS);
            app.setVSync(true);
            app.start();
            app.setDefaultFont(Police.getPolice(Police.STANDARD));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
View Full Code Here

Examples of org.newdawn.slick.AppGameContainer

import org.newdawn.slick.SlickException;

public class FractalSlick
{
  public static void main(String args[]) {
    AppGameContainer app = null;
    try {     
      app = new AppGameContainer(new FractalGame("Fractal"));
      app.setDisplayMode(852, 480, false);
      app.setShowFPS(false);
      app.start();
    } catch(SlickException slick) {
      slick.printStackTrace();
      if(app != null)
        app.destroy();
    }
  }
View Full Code Here

Examples of org.newdawn.slick.AppGameContainer

    // ME.debugEnabled = true;

    try {
      // Log.setVerbose(false);
      AppGameContainer container = new AppGameContainer(new StarCleaner());
      container.setDisplayMode(WIDTH, HEIGHT, false);
      // container.setShowFPS(false);
      // switch off mouse cursor
      container.start();
    } catch (SlickException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of org.newdawn.slick.AppGameContainer

  }

  public static void main(String[] argv) {
    try {
      ME.keyToggleDebug = Input.KEY_1;
      AppGameContainer container = new AppGameContainer(new HelloWorld(
          "Hello World Marte Engine"));
      container.setDisplayMode(800, 600, false);
      container.setTargetFrameRate(60);
      container.start();
    } catch (SlickException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of org.newdawn.slick.AppGameContainer

      // ME.keyToggleDebug = Input.KEY_1;
      // ME.keyRestart = Input.KEY_R;
      ME.keyMuteMusic = Input.KEY_M;
      ME.keyFullScreen = Input.KEY_F12;
      ME.playMusic = true;
      AppGameContainer container = new AppGameContainer(new FuzzyMain());
      container.setDisplayMode(640, 480, false);
      container.setTargetFrameRate(50);
      container.setShowFPS(false);
      container.start();
    } catch (SlickException e) {
      e.printStackTrace();
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.