pop2midlet.java
来自「一个j2me游戏代码」· Java 代码 · 共 60 行
JAVA
60 行
package pop2;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
/**
* <p>Title: POP2</p>
* <p>Description: Prince of Persia 2</p>
* <p>Copyright: Copyright (c) 2003</p>
* <p>Company: UBI soft (Beijing)</p>
* @author unascribed
* @version 1.0
*/
public class Pop2MIDlet extends MIDlet
{
static Display m_display = null;
static GE m_ge = null;
static public long code = 0x2003091914510001L;
public Pop2MIDlet()
{
}
//----------------------------------------------------------
protected void startApp()
{
try
{
if (m_ge == null)
{
m_ge = new GE(this);
Display.getDisplay(this).setCurrent(m_ge);
new Thread(m_ge).start();
}
}
catch(Exception e)
{
destroyApp(false);
notifyDestroyed();
}
catch(Error e)
{
destroyApp(false);
notifyDestroyed();
}
}
//----------------------------------------------------------
protected void pauseApp()
{
if (m_ge != null)
m_ge.pauseGame();
}
//----------------------------------------------------------
protected void destroyApp(boolean unconditional)
{
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?