From 0d4bbb9cd9413814bbd8204b1a2265cba2de76e1 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 3 Jun 2012 16:07:06 -0400 Subject: Made game center itself upon start --- src/com/fourisland/frigidearth/Main.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/fourisland') diff --git a/src/com/fourisland/frigidearth/Main.java b/src/com/fourisland/frigidearth/Main.java index 7ded79f..bd617b3 100644 --- a/src/com/fourisland/frigidearth/Main.java +++ b/src/com/fourisland/frigidearth/Main.java @@ -47,7 +47,7 @@ public class Main extends Canvas mainWindow = new JFrame(); mainWindow.setTitle("Frigid Earth"); mainWindow.setSize(CANVAS_WIDTH, CANVAS_HEIGHT); - mainWindow.setLocation(GraphicsEnvironment.getLocalGraphicsEnvironment().getCenterPoint().x-CANVAS_WIDTH, GraphicsEnvironment.getLocalGraphicsEnvironment().getCenterPoint().y-CANVAS_HEIGHT); + mainWindow.setLocation(GraphicsEnvironment.getLocalGraphicsEnvironment().getCenterPoint().x-CANVAS_WIDTH/2, GraphicsEnvironment.getLocalGraphicsEnvironment().getCenterPoint().y-CANVAS_HEIGHT/2); mainWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); mainWindow.addKeyListener(new KeyListener() { @Override -- cgit 1.4.1