Advertisement
Guest User

Untitled

a guest
Apr 6th, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.70 KB | None | 0 0
  1. package pack.script.game;
  2.  
  3.  
  4. public class Game {
  5.        
  6.     public static final String gName = "Java Game";
  7.     public static final String gVer = "v1.00";
  8.     public static final int sSIZE = 40;
  9.     public static final int sSCALE = 16;
  10.     public static int iSCALE = 1;
  11.    
  12.     public static final String sNAME = gName + " " + gVer;
  13.     public static final int sWIDTH = sSIZE * sSCALE;
  14.     public static final int sHEIGHT = sWIDTH / 12 * 9;
  15.     public static int iWIDTH = sWIDTH * iSCALE;
  16.     public static int iHEIGHT = sHEIGHT * iSCALE;
  17.    
  18.     public static void main(String args[]) {
  19.         Display sDisplay = new Display(sNAME, iWIDTH, iHEIGHT);
  20.         sDisplay.add(new Panel());
  21.         sDisplay.setVisible(true);
  22.        
  23.         sDisplay.pixel(5, 5);
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement