Skip to content

Instantly share code, notes, and snippets.

@djlc
Created November 27, 2016 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djlc/f6e0717d82214fae609cc151945c060d to your computer and use it in GitHub Desktop.
Save djlc/f6e0717d82214fae609cc151945c060d to your computer and use it in GitHub Desktop.
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