12.07.2015 Views

Game Programming with Groovy - GeeCON

Game Programming with Groovy - GeeCON

Game Programming with Groovy - GeeCON

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Basic<strong>Game</strong> examplepublic class Simple<strong>Game</strong> extends Basic<strong>Game</strong>{public Simple<strong>Game</strong>() { super("Simple<strong>Game</strong>"); }@Overridepublic void init(<strong>Game</strong>Container gc) throws SlickException { }@Overridepublic void update(<strong>Game</strong>Container gc, int delta) throws SlickException{ }public void render(<strong>Game</strong>Container gc, Graphics g) throws SlickException{ }}public static void main(args) throws SlickException {def app = new App<strong>Game</strong>Container(new Simple<strong>Game</strong>())app.setDisplayMode 800, 600, falseapp.start()}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!