Java Code Examples for org.newdawn.slick.AppGameContainer#start()

The following examples show how to use org.newdawn.slick.AppGameContainer#start() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GeomAccuracyTest.java    From slick2d-maven with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Entry point to our test
 * 
 * @param argv
 *            The arguments passed to the test
 */
public static void main(String[] argv) {
	try {
		AppGameContainer container = new AppGameContainer(new GeomAccuracyTest());
		container.setDisplayMode(800, 600, false);
		container.start();
	} catch (SlickException e) {
		e.printStackTrace();
	}
}
 
Example 2
Source File: DistanceFieldTest.java    From slick2d-maven with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Entry point to our test
 * 
 * @param argv The arguments to pass into the test
 */
public static void main(String[] argv) {
	try {
		AppGameContainer container = new AppGameContainer(new DistanceFieldTest());
		container.setDisplayMode(800,600,false);
		container.start();
	} catch (SlickException e) {
		e.printStackTrace();
	}
}
 
Example 3
Source File: MorphShapeTest.java    From slick2d-maven with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Entry point to our test
 * 
 * @param argv
 *            The arguments passed to the test
 */
public static void main(String[] argv) {
	try {
		AppGameContainer container = new AppGameContainer(
				new MorphShapeTest());
		container.setDisplayMode(800, 600, false);
		container.start();
	} catch (SlickException e) {
		e.printStackTrace();
	}
}
 
Example 4
Source File: ImageReadTest.java    From slick2d-maven with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Entry point to our test
 * 
 * @param argv The arguments to pass into the test
 */
public static void main(String[] argv) {
	try {
		AppGameContainer container = new AppGameContainer(new ImageReadTest());
		container.setDisplayMode(800,600,false);
		container.start();
	} catch (SlickException e) {
		e.printStackTrace();
	}
}
 
Example 5
Source File: LineRenderTest.java    From slick2d-maven with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Entry point to our test
 * 
 * @param argv The arguments passed to the test
 */
public static void main(String[] argv) {
	try {
		Renderer.setLineStripRenderer(Renderer.QUAD_BASED_LINE_STRIP_RENDERER);
		Renderer.getLineStripRenderer().setLineCaps(true);
		
		AppGameContainer container = new AppGameContainer(new LineRenderTest());
		container.setDisplayMode(800,600,false);
		container.start();
	} catch (SlickException e) {
		e.printStackTrace();
	}
}
 
Example 6
Source File: PedigreeTest.java    From slick2d-maven with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Entry point to our test
 * 
 * @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();
	}
}
 
Example 7
Source File: GeomUtilTileTest.java    From slick2d-maven with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Entry point to our test
 * 
 * @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();
	}
}
 
Example 8
Source File: GeomUtilTest.java    From slick2d-maven with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Entry point to our test
 * 
 * @param argv The arguments passed to the test
 */
public static void main(String[] argv) {
	try {
		AppGameContainer container = new AppGameContainer(new GeomUtilTest());
		container.setDisplayMode(800,600,false);
		container.start();
	} catch (SlickException e) {
		e.printStackTrace();
	}
}
 
Example 9
Source File: GeomTest.java    From slick2d-maven with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Entry point to our test
 * 
 * @param argv The arguments passed to the test
 */
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();
	}
}
 
Example 10
Source File: GraphicsTest.java    From slick2d-maven with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Entry point to our test
 * 
 * @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();
	}
}
 
Example 11
Source File: CurveTest.java    From slick2d-maven with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Entry point to our simple test
 * 
 * @param argv The arguments passed in
 */
public static void main(String argv[]) {
	try {
		AppGameContainer container = new AppGameContainer(new CurveTest());
		container.setDisplayMode(800,600,false);
		container.start();
	} catch (SlickException e) {
		e.printStackTrace();
	}
}
 
Example 12
Source File: Scroller.java    From slick2d-maven with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Entry point to the scroller example
 * 
 * @param argv The argument passed on the command line (if any)
 */
public static void main(String[] argv) {
	try {
		// create a new container for our example game. This container
		// just creates a normal native window for rendering OpenGL accelerated
		// elements to
		AppGameContainer container = new AppGameContainer(new Scroller(), 800, 600, false);
		container.start();
	} catch (Exception e) {
		e.printStackTrace();
	}
}
 
Example 13
Source File: UnicodeFontTest.java    From slick2d-maven with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Entry point to our simple test
 * 
 * @param args The arguments supplied to the test
 * @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();
}
 
Example 14
Source File: SoundURLTest.java    From slick2d-maven with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Entry point to the sound test
 * 
 * @param argv The arguments provided to the test
 */
public static void main(String[] argv) {
	try {
		AppGameContainer container = new AppGameContainer(new SoundURLTest());
		container.setDisplayMode(800,600,false);
		container.start();
	} catch (SlickException e) {
		e.printStackTrace();
	}
}
 
Example 15
Source File: SavedStateTest.java    From slick2d-maven with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Entry point to our test
 * 
 * @param argv The arguments passed in the test
 */
public static void main(String[] argv) {
	try {
		container = new AppGameContainer(new SavedStateTest());
		container.setDisplayMode(800,600,false);
		container.start();
	} catch (SlickException e) {
		e.printStackTrace();
	}
}
 
Example 16
Source File: InputTest.java    From slick2d-maven with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Entry point to our test
 * 
 * @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();
	}
}
 
Example 17
Source File: LameTest.java    From slick2d-maven with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Entry point to our test
 * 
 * @param argv The arguments to pass into the test
 */
public static void main(String[] argv) {
	try {
		AppGameContainer container = new AppGameContainer(new LameTest());
		container.setDisplayMode(800,600,false);
		container.start();
	} catch (SlickException e) {
		e.printStackTrace();
	}
}
 
Example 18
Source File: TileMapTest.java    From slick2d-maven with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Entry point to our test
 * 
 * @param argv The arguments passed to the test
 */
public static void main(String[] argv) {
	try {
		AppGameContainer container = new AppGameContainer(new TileMapTest());
		container.setDisplayMode(800,600,false);
		container.start();
	} catch (SlickException e) {
		e.printStackTrace();
	}
}
 
Example 19
Source File: TransformTest.java    From slick2d-maven with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Entry point to our test
 * 
 * @param argv The arguments passed to the test
 */
public static void main(String[] argv) {
	try {
		AppGameContainer container = new AppGameContainer(new TransformTest());
		container.setDisplayMode(640,480,false);
		container.start();
	} catch (SlickException e) {
		e.printStackTrace();
	}
}
 
Example 20
Source File: BigSpriteSheetTest.java    From slick2d-maven with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * Entry point to our test
 * 
 * @param argv The arguments to pass into the test
 */
public static void main(String[] argv) {
	try {
		AppGameContainer container = new AppGameContainer(new BigSpriteSheetTest());
		container.setDisplayMode(800,600,false);
		container.start();
	} catch (SlickException e) {
		e.printStackTrace();
	}
}