Maze3DMIDlet.java
资源名称:J2ME&Game.rar [点击查看]
上传用户:gyyuli
上传日期:2013-07-09
资源大小:3050k
文件大小:3k
源码类别:
J2ME
开发平台:
Java
- import java.util.*;
- import javax.microedition.lcdui.*;
- import javax.microedition.m3g.*;
- import javax.microedition.midlet.*;
- public class Maze3DMIDlet
- extends MIDlet
- {
- private final MazeCanvas canvas3D;
- private final Image error;
- private final Image splash;
- private MenuList menuList;
- //Construct the midlet
- public Maze3DMIDlet()
- {
- error = makeImage("/error.png");
- splash = makeImage("/splash.png");
- canvas3D = new MazeCanvas(this);
- ErrorScreen.init(splash, Display.getDisplay(this));
- }
- public void startApp()
- {
- Displayable current = Display.getDisplay(this).getCurrent();
- if (current == null)
- {
- // check that the API is available