⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 application.java

📁 一款很好玩的简单的坦克游戏
💻 JAVA
字号:
/*
 * Created on 2005-1-8
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
import javax.swing.UIManager;
import tankgame.MulitMainGameThread;
import tankgame.server.AppServer;
/**
 * @author Emtry Immortal
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class Application {
	boolean packFrame = false;

	//Construct the application
	public Application() {
		MulitMainGameThread mltGame=new MulitMainGameThread();
		mltGame.initGame();
		mltGame.run();
	}
	//Main method
	public static void main(String[] args) {
		try {
		  UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		}
		catch(Exception e) {
		  e.printStackTrace();
		}
		if(args.length>0&&args[0].equals("-server")){
			System.out.println("server starting...");
			AppServer server=new AppServer();
		}
		new Application();
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -