package j2048.jgamegui;

import java.awt.Color;

import jgame.GContainer;
import jgame.GRootContainer;
import jgame.Game;

/**
 * The driver class for a 2048 game.
 * 
 * @author William Chargin
 * 
 */
public class J2048 extends Game {

	public static final Color MAIN_COLOR = new Color(187, 173, 160);
	public static final Color TEXT_COLOR = new Color(119, 110, 101);
	public static final Color LIGHT_COLOR = new Color(250, 248, 239);
	public static final Color LIGHT_TEXT = new Color(238, 228, 218);

	public J2048() {
		setTargetFPS(60);

		GRootContainer root = new GRootContainer(LIGHT_COLOR);
		setRootContainer(root);

		GContainer container = new GContainer();
		GamePanel game = new GamePanel();
		container.setSize(game.getWidth() + 50, game.getHeight() + 50);
		container.addAtCenter(game);
		root.add(container);
	}

	public static void main(String[] args) {
		new J2048().startGame("2048");
	}

}

@@ -113,18 +113,24 @@
 ame.Game
+Applet
 ;%0A
-
 %0A/**%0A * 
@@ -233,18 +233,90 @@
 nds Game
- %7B
+Applet %7B%0A%0A%09/**%0A%09 * %0A%09 */%0A%09private static final long serialVersionUID = 1L;
 %0A%0A%09publi
@@ -595,16 +595,21 @@
 8() %7B%0A%09%09
+core.
 setTarge
@@ -678,16 +678,21 @@
 LOR);%0A%09%09
+core.
 setRootC
@@ -884,16 +884,16 @@
 (game);%0A
+
 %09%09root.a
@@ -915,85 +915,6 @@
 %09%7D%0A%0A
-%09public static void main(String%5B%5D args) %7B%0A%09%09new J2048().startGame(%222048%22);%0A%09%7D%0A%0A
 %7D%0A

Switch to applet (Game -> GameApplet extension)