Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Slick2D Sample
package base;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.BasicGame;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
public class Main extends BasicGame {
public Main(String title) {
public void render(GameContainer arg0, Graphics arg1) throws SlickException {
public void init(GameContainer arg0) throws SlickException {
public void update(GameContainer arg0, int arg1) throws SlickException {
public static void main(String[] args) throws SlickException {
AppGameContainer app = new AppGameContainer(new Main("test"));
app.setDisplayMode(800, 600, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment