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) {
super(title);
}
@Override
public void render(GameContainer arg0, Graphics arg1) throws SlickException {
}
@Override
public void init(GameContainer arg0) throws SlickException {
}
@Override
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);
app.start();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment