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

📄 gamemain.java

📁 用J2ME编写的手机飞机空战小游戏,比较经典,与大家共享
💻 JAVA
字号:
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

/*====================================*/
/*              MIDlet  	          */
/*		      程序编写:励晓维		      */
/*		      2004-11-27 	          */
/*====================================*/
public class gameMain extends MIDlet 
{
	Display display;
	gameDraws gc;  //创建GameDraws的对象

	
	protected void startApp() throws MIDletStateChangeException
	{ 
		display=Display.getDisplay(this);
		gc=new gameDraws(this,display);
		display.setCurrent(gc);
	}

	protected void pauseApp()
	{
	}

	protected void destroyApp(boolean arg0)
	{
	}
}

⌨️ 快捷键说明

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