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

📄 help.java

📁 J2ME手机游戏,可以下下玩完,很好玩的.
💻 JAVA
字号:
package Src;

import javax.microedition.lcdui.*;
public class Help extends Canvas{

	private int width,heigh;//获取不同机型长宽
	private Image img;//定义背景图以及选择图
	private FugitiveGame FugitiveGame;
	Help(FugitiveGame FugitiveGame)
	{
		super.setFullScreenMode(true);
		try{
		img=Image.createImage("/res/help.png");	 
		}catch(Exception e){}
		width=this.getWidth();
		heigh=this.getHeight();
		this.FugitiveGame=FugitiveGame;
	}
	
    public void keyPressed(int keycode)
    {
   
 	 if(keycode==-7)
	  {
 		this.FugitiveGame.back();
	  }
 	  
    }

	public void paint(Graphics g)
	{
		g.setColor(0xFFFFFF);
        g.fillRect( 0, 0, width,heigh );        
        g.setColor(0x00000);       
        g.drawImage(img,0,0, g.TOP | g.LEFT );
                
	}

}

⌨️ 快捷键说明

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