import java.awt.Dimension;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Toolkit;

import revert.MainScene.Scene;

import com.kgp.core.AssetsManager;
import com.kgp.core.GameFrame;

/**
 * Simple runner class to get the game started
 * @author nhydock
 *
 */
public class GameRunner {

	public static void main(String args[]) {
		GameFrame g = new GameFrame("Revert", 60);
		
		AssetsManager.init();
		
		Scene s = new Scene(g);
		
		if (args[0].equals("fullscreen")) {
			GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
			if (gd.isFullScreenSupported()){
				try{
					g.setUndecorated(true);
					g.setGame(s);
					g.setSize(gd.getDisplayMode().getWidth(), gd.getDisplayMode().getHeight());
					gd.setFullScreenWindow(g);
				}
				finally {
					g.setUndecorated(false);
					g.setGame(s);
					g.pack();
					
					Dimension res = Toolkit.getDefaultToolkit().getScreenSize();

					//center the window on screen
					g.setLocation(res.width / 2 - g.getWidth() / 2, res.height / 2 - g.getHeight() / 2);
				}
			}
		}
		else
		{
			g.setUndecorated(false);
			g.setGame(s);
			g.pack();
			
			Dimension res = Toolkit.getDefaultToolkit().getScreenSize();

			//center the window on screen
			g.setLocation(res.width / 2 - g.getWidth() / 2, res.height / 2
					- g.getHeight() / 2);
		}
	}
}

@@ -494,16 +494,35 @@
 %0D%0A%09%09if (
+args.length %3E 0 && 
 args%5B0%5D.
@@ -1146,24 +1146,50 @@
 ht() / 2);%0D%0A
+%09%09%09%09%09g.setVisible(true);%0D%0A
 %09%09%09%09%7D%0D%0A%09%09%09%7D%0D
@@ -1469,16 +1469,45 @@
  / 2);%0D%0A
+%09%09%09%0D%0A%09%09%09g.setVisible(true);%0D%0A
 %09%09%7D%0D%0A%09%7D%0D

Fix windowed when fullscreen isn't specified