public static void main(String[] args)
	{
		JFrame frame = new JFrame("Realms of Caelum");
		Canvas canvas = new Canvas();
		Dimension size = new Dimension(1280, 720); //TODO add size to settings later
		
		canvas.setMinimumSize(size);
		canvas.setMaximumSize(size);
		canvas.setPreferredSize(size);
		canvas.setSize(size);
		frame.add(canvas);
		frame.setVisible(true);
		frame.pack();
		frame.setResizable(false);
		game = new RoC(canvas, "realmsofcaelum/res/");
		frame.addWindowListener(game);
		canvas.requestFocus();
		
		if (!game.startGame())
		{
			System.exit(0);
		}
		else
		{
			RoC.log("Game did not exit cleanly!");
			System.exit(1);
		}
		
	}