Package detectiongame.app

Source Code of detectiongame.app.App

package detectiongame.app;

import detectiongame.dungen.DunGen;
import detectiongame.proto.Proto;

public class App {

  /**
   * @param args
   */
  public static void main(String[] args) {
    DunGen game = null;
    Proto proto = null;
   
    boolean protoStart = false;
   
    for(int i = 0; i < args.length; i++) {
      if(args[i].equalsIgnoreCase("-proto")) {
        protoStart = true;
       
        proto = new Proto();
        proto.DISPLAY_WIDTH = 1280;
        proto.DISPLAY_HEIGHT = 800;
        proto.start();
      }
    }
   
    if(!protoStart) {
      game = new DunGen();
      game.DISPLAY_WIDTH = 1280;
      game.DISPLAY_HEIGHT = 800;
      game.start();
    }
  }

}
TOP

Related Classes of detectiongame.app.App

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.