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

📄 mangame.java

📁 是男人就下一百层
💻 JAVA
字号:
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;

public class ManGame extends MIDlet{
	public boolean isPause = false;
	public Display display;
	private GameScreen gamescreen;
	public myRecord record;
	
	public ManGame(){
		record = new myRecord("ManLevel",1);
		this.display = Display.getDisplay(this);
	}
	
	public void startApp(){
		if(isPause){
			isPause = false;
		}
		else{
			this.gamescreen = new GameScreen(this);
			this.display.setCurrent(this.gamescreen);
		}
	}

	public void pauseApp(){
		isPause = true;
		System.gc();
	}
 
	public void destroyApp(boolean unc){
		
	}

    public void quit()
    {
    	destroyApp(false);
    	notifyDestroyed();
    }

}

⌨️ 快捷键说明

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