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

📄 russiangamemidlet.java

📁 手机游戏
💻 JAVA
字号:
package russiangame;

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import java.io.IOException;

/**
 * <p>Title: 俄罗斯方块</p>
 *
 * <p>Description: 俄罗斯方块游戏</p>
 *
 * <p>Copyright: Copyright (c) 2005</p>
 *
 * <p>Company: Star Group</p>
 *
 * @author: Part of this programe comes from a open-source project in the Web(www.hyweb.net).
 *          Our group makes some remakeble improvement to it.
 * @version 1.0
 */
public class RussianGameMIDlet extends MIDlet {
    static RussianGameMIDlet instance;
    private UIController controller = new UIController(this);
    private Splash splash;
    private Image imgStart;
    Display display = null;
    public RussianGameMIDlet() {
        instance = this;
        display = Display.getDisplay(this);
    }

    public void startApp() {
        try
        {
            imgStart = Image.createImage("/res/start.png");
        } catch (IOException e) {
        }
        StringBuffer infoStart = new StringBuffer("俄罗斯方块");
        splash = new Splash(this.controller,infoStart, imgStart);
        controller.setSplash(splash);
        controller.handleEvent(UIController.EventID.EVENT_START_SPLASH);
    }

    public void pauseApp() {
    }

    public void destroyApp(boolean unconditional) {
    }

    public static void quitApp() {
        instance.destroyApp(true);
        instance.notifyDestroyed();
        instance = null;
    }

}

⌨️ 快捷键说明

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