From 61b2605cd339d2e06fd1b296b324bac076815827 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sat, 2 Jun 2012 14:42:20 -0400 Subject: Created a window --- src/com/fourisland/frigidearth/Main.java | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/com/fourisland/frigidearth/Main.java (limited to 'src/com') 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 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ +package com.fourisland.frigidearth; + +import javax.swing.JFrame; + +/** + * + * @author hatkirby + */ +public class Main +{ + static final int GAME_WIDTH = 15; + static final int GAME_HEIGHT = 10; + static final int TILE_WIDTH = 32; + static final int TILE_HEIGHT = 32; + + public static void main(String[] args) + { + JFrame mainWindow = new JFrame("Frigid Earth"); + mainWindow.setSize(GAME_WIDTH*TILE_WIDTH, GAME_HEIGHT*TILE_HEIGHT); + mainWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + mainWindow.setVisible(true); + } +} -- cgit 1.4.1