Hi, I've been working on a Slick2D game for a while now and have recently tried to see what it would look like played on full screen mode, I get an error message and I havn't been able to fix it, any help is apprieictated.
my code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| public static void main(String[] args) throws LWJGLException {
AppGameContainer appgc; try { appgc = new AppGameContainer(new Game(NAME)); appgc.setDisplayMode(1200, 800, true); appgc.setIcon("res/image/f.png"); appgc.setShowFPS(true); appgc.setTargetFrameRate(60); appgc.setVSync(true); appgc.start(); } catch (SlickException e) { e.printStackTrace(); } |
my error
1 2 3 4
| Tue Jul 03 20:28:33 CDT 2012 INFO:Slick Build #274 org.newdawn.slick.SlickException: Failed to find value mode: 1200x800 fs=true at org.newdawn.slick.AppGameContainer.setDisplayMode(AppGameContainer.java:146) at game.Game.main(Game.java:70) |
In regards to the error message, clikcing on "AppGameContainer.java:146 links me to the class but I get the message "146 is not a valid line number in org.newdawn.slick.AppGameContainer."
Perhaps 1200x800 screen size/ratio isn't supported in full screen mode?