diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2012-06-03 16:07:06 -0400 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2012-06-03 16:07:06 -0400 |
commit | 0d4bbb9cd9413814bbd8204b1a2265cba2de76e1 (patch) | |
tree | d1df50c267940f86975a8ab844baf94c145f51af /src/com/fourisland | |
parent | cee9549fea2f1b9f9aaa67268ec738395752d4e4 (diff) | |
download | frigidearth-0d4bbb9cd9413814bbd8204b1a2265cba2de76e1.tar.gz frigidearth-0d4bbb9cd9413814bbd8204b1a2265cba2de76e1.tar.bz2 frigidearth-0d4bbb9cd9413814bbd8204b1a2265cba2de76e1.zip |
Made game center itself upon start
Diffstat (limited to 'src/com/fourisland')
-rw-r--r-- | src/com/fourisland/frigidearth/Main.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
47 | mainWindow = new JFrame(); | 47 | mainWindow = new JFrame(); |
48 | mainWindow.setTitle("Frigid Earth"); | 48 | mainWindow.setTitle("Frigid Earth"); |
49 | mainWindow.setSize(CANVAS_WIDTH, CANVAS_HEIGHT); | 49 | mainWindow.setSize(CANVAS_WIDTH, CANVAS_HEIGHT); |
50 | mainWindow.setLocation(GraphicsEnvironment.getLocalGraphicsEnvironment().getCenterPoint().x-CANVAS_WIDTH, GraphicsEnvironment.getLocalGraphicsEnvironment().getCenterPoint().y-CANVAS_HEIGHT); | 50 | mainWindow.setLocation(GraphicsEnvironment.getLocalGraphicsEnvironment().getCenterPoint().x-CANVAS_WIDTH/2, GraphicsEnvironment.getLocalGraphicsEnvironment().getCenterPoint().y-CANVAS_HEIGHT/2); |
51 | mainWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | 51 | mainWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
52 | mainWindow.addKeyListener(new KeyListener() { | 52 | mainWindow.addKeyListener(new KeyListener() { |
53 | @Override | 53 | @Override |