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

📄 ms.java

📁 传说中的小蜜蜂游戏,回忆下小时候 WTK编译可运行,内有图
💻 JAVA
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   MS.java

import javax.microedition.lcdui.*;

class MS extends List
    implements CommandListener
{

    private Main m;
    private Inv inv;
    private Game game;
    private static Command cmd[] = new Command[2];

    public MS(Inv inv1, Main main)
    {
        super("Space Invaders", 3);
        inv = inv1;
        m = main;
        cmd[0] = new Command("Select", 4, 1);
        cmd[1] = new Command("Back", 3, 1);
        addCommand(cmd[0]);
        addCommand(cmd[1]);
        setCommandListener(this);
    }

    public void setList(int i)
    {
        for(int j = 0; j < 6; j++)
            try
            {
                delete(0);
            }
            catch(IndexOutOfBoundsException indexoutofboundsexception) { }

        if(i == 1)
        {
            append("Continue", null);
            append("New game", null);
            append("Time attack", null);
            append("Instructions", null);
            append("About", null);
        } else
        {
            append("New game", null);
            append("Time attack", null);
            append("Settings", null);
            append("Instructions", null);
            append("About", null);
        }
    }

    public void commandAction(Command command, Displayable displayable)
    {
        String s = getString(getSelectedIndex());
        if(command == cmd[1])
        {
            MS _tmp = this;
            if(Main.b[6] == 1)
            {
                m.init(1);
                MS _tmp1 = this;
                Main.play = true;
                MS _tmp2 = this;
                if(Main.gaM == 1)
                {
                    MS _tmp3 = this;
                    Main.releaseTime = System.currentTimeMillis() - Main.stopTime;
                    MS _tmp4 = this;
                    MS _tmp5 = this;
                    Game.old_time += Main.releaseTime;
                    MS _tmp6 = this;
                    MS _tmp7 = this;
                    Game.old_time1 += Main.releaseTime;
                }
            } else
            {
                m.init(0);
            }
            inv.showMain();
        } else
        if(command == cmd[0])
            if(s.equals("Continue"))
            {
                MS _tmp8 = this;
                if(Main.b[6] == 1)
                {
                    m.init(1);
                    MS _tmp9 = this;
                    if(Main.gaM == 1)
                    {
                        MS _tmp10 = this;
                        Main.releaseTime = System.currentTimeMillis() - Main.stopTime;
                        MS _tmp11 = this;
                        MS _tmp12 = this;
                        Game.old_time += Main.releaseTime;
                        MS _tmp13 = this;
                        MS _tmp14 = this;
                        Game.old_time1 += Main.releaseTime;
                    }
                    MS _tmp15 = this;
                    Main.play = true;
                } else
                {
                    m.init(0);
                }
                inv.showMain();
            } else
            if(s.equals("New game"))
            {
                MS _tmp16 = this;
                Game.rdisp_flg = false;
                MS _tmp17 = this;
                Game.timer_cnt2 = 0;
                MS _tmp18 = this;
                Main.states[1] = 50;
                MS _tmp19 = this;
                Game.bonus_flg = false;
                MS _tmp20 = this;
                Main.l[2] = 0L;
                MS _tmp21 = this;
                Main.disp_cnt = 0;
                MS _tmp22 = this;
                Game.down6dot = 0;
                MS _tmp23 = this;
                Main.gaM = 0;
                MS _tmp24 = this;
                Game.score = 0;
                MS _tmp25 = this;
                Main.l[1] = 0L;
                MS _tmp26 = this;
                Main.l[0] = 0L;
                MS _tmp27 = this;
                Main.states[0] = 1;
                MS _tmp28 = this;
                Game.init();
                MS _tmp29 = this;
                Main.play = true;
                MS _tmp30 = this;
                Main.b[6] = 1;
                MS _tmp31 = this;
                Main.F_ga = false;
                inv.showMain();
            } else
            if(s.equals("Time attack"))
            {
                MS _tmp32 = this;
                Game.rdisp_flg = false;
                MS _tmp33 = this;
                Game.timer_cnt2 = 0;
                MS _tmp34 = this;
                Main.gaM = 1;
                MS _tmp35 = this;
                Main.play = true;
                MS _tmp36 = this;
                Main.states[0] = 1;
                MS _tmp37 = this;
                Game.bonus_flg = false;
                MS _tmp38 = this;
                Game.init();
                MS _tmp39 = this;
                Main.b[6] = 1;
                MS _tmp40 = this;
                Main.F_ga = false;
                MS _tmp41 = this;
                Main.l[2] = 0L;
                MS _tmp42 = this;
                Main.disp_cnt = 0;
                MS _tmp43 = this;
                Main.l[1] = 0L;
                MS _tmp44 = this;
                Main.l[0] = 0L;
                inv.showMain();
            } else
            if(s.equals("Settings"))
            {
                m.init(5);
                inv.showMain();
            } else
            if(s.equals("Instructions"))
                inv.showInstructionsScreen();
            else
            if(s.equals("About"))
            {
                MS _tmp45 = this;
                Main.About = true;
                m.init(0);
                inv.showMain();
            }
    }

}

⌨️ 快捷键说明

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