RPGDemoMIDlet.java
资源名称:J2ME&Game.rar [点击查看]
上传用户:gyyuli
上传日期:2013-07-09
资源大小:3050k
文件大小:1k
源码类别:
J2ME
开发平台:
Java
- import javax.microedition.lcdui.Display;
- import javax.microedition.midlet.MIDlet;
- import javax.microedition.midlet.MIDletStateChangeException;
- public class RPGDemoMIDlet extends MIDlet
- {
- private RPGCanvas myCanvas;
- public RPGDemoMIDlet()
- {
- myCanvas = new RPGCanvas();
- }
- protected void startApp() throws MIDletStateChangeException
- {
- Display.getDisplay(this).setCurrent(myCanvas);
- }
- protected void pauseApp()
- {
- }
- protected void destroyApp(boolean arg0) throws MIDletStateChangeException
- {
- myCanvas.stop();
- }
- }