diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2012-06-02 14:42:20 -0400 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2012-06-02 14:42:20 -0400 |
commit | 61b2605cd339d2e06fd1b296b324bac076815827 (patch) | |
tree | 4cc4c6176c82474981d616fa0cbfb35b5196b459 /src/com | |
parent | 00ef4e16476fbd619e3f866e4f32c021c14f3202 (diff) | |
download | frigidearth-61b2605cd339d2e06fd1b296b324bac076815827.tar.gz frigidearth-61b2605cd339d2e06fd1b296b324bac076815827.tar.bz2 frigidearth-61b2605cd339d2e06fd1b296b324bac076815827.zip |
Created a window
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/fourisland/frigidearth/Main.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/com/fourisland/frigidearth/Main.java b/src/com/fourisland/frigidearth/Main.java new file mode 100644 index 0000000..4301118 --- /dev/null +++ b/src/com/fourisland/frigidearth/Main.java | |||
@@ -0,0 +1,27 @@ | |||
1 | /* | ||
2 | * To change this template, choose Tools | Templates | ||
3 | * and open the template in the editor. | ||
4 | */ | ||
5 | package com.fourisland.frigidearth; | ||
6 | |||
7 | import javax.swing.JFrame; | ||
8 | |||
9 | /** | ||
10 | * | ||
11 | * @author hatkirby | ||
12 | */ | ||
13 | public class Main | ||
14 | { | ||
15 | static final int GAME_WIDTH = 15; | ||
16 | static final int GAME_HEIGHT = 10; | ||
17 | static final int TILE_WIDTH = 32; | ||
18 | static final int TILE_HEIGHT = 32; | ||
19 | |||
20 | public static void main(String[] args) | ||
21 | { | ||
22 | JFrame mainWindow = new JFrame("Frigid Earth"); | ||
23 | mainWindow.setSize(GAME_WIDTH*TILE_WIDTH, GAME_HEIGHT*TILE_HEIGHT); | ||
24 | mainWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | ||
25 | mainWindow.setVisible(true); | ||
26 | } | ||
27 | } | ||