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

📄 dragoncanvas.java

📁 COM2US的超精典DragonFire2(龙火2),不用多说了,玩手游的都知道.
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
// FrontEnd Plus GUI for JAD
// DeCompiled : DragonCanvas.class
import com.nokia.mid.ui.*;
import java.io.InputStream;
import javax.microedition.lcdui.*;
import javax.microedition.media.Manager;
import javax.microedition.media.Player;
import javax.microedition.midlet.MIDlet;
import javax.microedition.rms.RecordStore;
import javax.microedition.rms.RecordStoreException;

public class DragonCanvas extends FullCanvas
    implements Runnable
{

    public final int aq[][] = {
        {
            15, 30, 45, 60, 80, 100, 120, 130, 170, 170, 
            180, 210, 220, 230, 250, 260, 260, 280, 290, 292, 
            294, 320, 322, 324, 340, 340, 340, 340, 350, 352, 
            354, 380, 382, 384, 400, 400, 400, 400, 410, 412, 
            414, 440, 442, 444, 470, 472, 474, 500, 502, 504, 
            530, 540, 550, 560, 570, 580, 585, 610, 615, 620, 
            670, 710, 712, 714, 740, 742, 744, 744, 790, 800, 
            805, 806, 840, 850, 855, 865, 870, 885, 900, 915, 
            950, 950, 950, 950, 950, 985, 985, 985, 985, 985, 
            1030, 1032, 1034, 1060, 1062, 1064, 1090, 1092, 1094, 1120, 
            1122, 1124, 1130, 1130, 1130, 1130, 1130, 1170, 1170, 1170, 
            1170, 1170, 1170, 1210, 1210, 1210, 1210, 1210, 1290, 1293, 
            1293, 1296, 1296, 1299, 1299, 1350, 1353, 1353, 1356, 1356, 
            1359, 1359, 1410, 1413, 1413, 1416, 1416, 1419, 1419, 1600, 
            1630, 1632, 1634, 1670, 1672, 1674, 1680, 1680, 1680, 1680, 
            1680, 1730, 1730, 1730, 1730, 1730, 1760, 1763, 1763, 1766, 
            1766, 1769, 1769, 1810, 1812, 1814, 1840, 1842, 1844, 1860, 
            1863, 1863, 1866, 1866, 1869, 1869, 3000
        }, {
            40, 65, 65, 120, 140, 160, 220, 220, 250, 260, 
            280, 280, 300, 300, 330, 330, 330, 330, 380, 384, 
            394, 404, 414, 430, 435, 440, 440, 440, 445, 450, 
            455, 460, 460, 460, 480, 480, 510, 515, 520, 525, 
            530, 535, 540, 540, 540, 545, 550, 555, 560, 565, 
            570, 575, 580, 585, 590, 595, 600, 605, 670, 670, 
            670, 670, 760, 790, 800, 800, 820, 820, 860, 863, 
            863, 866, 866, 940, 940, 970, 970, 990, 990, 1080, 
            1085, 1090, 1095, 1100, 1105, 1110, 1115, 1120, 1125, 1130, 
            1135, 1155, 1155, 1185, 1185, 1200, 1200, 1200, 1220, 1223, 
            1223, 1226, 1226, 1240, 1243, 1243, 1246, 1246, 1270, 1275, 
            1280, 1285, 1290, 1295, 1300, 1300, 1305, 1310, 1315, 1320, 
            1325, 1330, 1335, 1340, 1345, 1350, 1355, 1360, 1365, 1370, 
            1370, 1370, 1390, 1390, 1400, 1400, 1550, 1550, 1550, 1550, 
            1680, 1690, 1730, 1730, 1800, 1805, 1810, 1815, 1820, 1825, 
            1850, 1853, 1853, 1856, 1856, 3000
        }, {
            40, 40, 40, 40, 60, 65, 65, 70, 90, 90, 
            90, 140, 145, 170, 170, 175, 175, 180, 180, 180, 
            185, 185, 189, 220, 230, 240, 250, 290, 300, 310, 
            330, 350, 350, 350, 350, 400, 400, 420, 420, 440, 
            440, 475, 475, 475, 475, 475, 495, 495, 495, 495, 
            515, 515, 515, 515, 515, 600, 600, 620, 620, 780, 
            810, 810, 850, 850, 850, 850, 880, 880, 900, 900, 
            920, 940, 960, 1000, 1003, 1003, 1006, 1006, 1140, 1143, 
            1143, 1146, 1146, 1150, 1159, 1170, 1188, 1200, 1225, 1240, 
            1242, 1259, 1266, 1278, 1280, 1280, 1285, 1285, 1290, 1290, 
            1350, 1350, 1370, 1370, 1390, 1390, 1400, 1400, 1400, 1410, 
            1410, 1420, 1420, 1420, 1430, 1430, 1450, 1450, 1450, 1480, 
            1480, 1480, 1530, 1530, 1530, 1550, 1550, 1570, 1570, 1590, 
            1590, 1600, 1600, 1600, 1630, 1630, 1650, 1650, 1776, 1776, 
            1801, 1801, 1818, 1818, 1890, 1930, 1930, 1960, 1960, 1960, 
            1990, 1990, 2000, 2005, 2005, 2010, 2010, 3000
        }
    };
    public final int aw[] = {
        934, 980, 1050
    };
    public final int ae[] = {
        671, 710, 800
    };
    public final int ar[] = {
        61, 62, 60
    };
    public final int at[] = {
        1900, 1870, 2020
    };
    public final int ay[] = {
        1629, 1631, 1920
    };
    public final int au[] = {
        140, 140, 145
    };
    public String leftCommand;
    public String rightCommand;
    public boolean aa;
    public boolean as;
    public boolean ad;
    public boolean af;
    public int ag;
    public int ah;
    public String aj[];
    public String ak[];
    public int al;
    public int fireshotFlame;
    public int ax;
    public int ac[];
    public int av;
    public boolean ab;
    public int an;
    public int am;
    public boolean bq;
    public boolean bw;
    public boolean be;
    public boolean br;
    public boolean bt;
    public boolean by;
    public boolean bu;
    public int bi;
    public boolean bo;
    public int bp;
    public int ba;
    public boolean bs;
    public int bd;
    public boolean bf;
    public boolean bg;
    public int bh;
    public int bj;
    public int bk;
    public boolean bl;
    public boolean bz;
    public boolean bx;
    public int bc;
    public int bv;
    public int bb;
    public int bn;
    public int bm;
    public boolean cq;
    public boolean cw;
    public boolean ce;
    public int cr;
    public boolean ct;
    public boolean cy;
    public boolean cu;
    public int ci;
    public int co;
    public int i;
    public int _f[];
    public int _k[];
    public int k;
    public int j;
    public int l;
    public int t;
    public int ii;
    public int jj;
    public int kk;
    public int ll;
    public int ij;
    public int iji;
    public int ik;
    public int cp;
    public int ca;
    public int kl;
    public int lk;
    public int cs;
    public int cd;
    public boolean cf;
    public int cg;
    public boolean ch;
    public boolean cj;
    public boolean ck;
    public boolean cl;
    public Unit cz;
    public Unit cx[];
    public Unit cc[];
    public Unit cv[];
    public Unit cb[];
    public int cn;
    public int tt;
    public boolean cm;
    public int eq;
    public boolean ew;
    public int nK;
    public int er;
    public int et;
    public int ey;
    public int eu;
    public int ei;
    public int eo;
    public int ep;
    public int ea;
    public int es;
    public int ed;
    public int ef;
    public int eg;
    public boolean eh;
    public boolean ej;
    public int ek;
    public int el;
    public int ez;
    public boolean ex;
    public boolean ec;
    public int ev;
    public int eb;
    public boolean en;
    public int nF;
    public boolean em;
    public Unit fq[];
    public int fw;
    public boolean fe;
    public int fr;
    public boolean ft;
    public byte fy[];
    public int fu;
    public short fi;
    public short fo;
    public short fp;
    public short fa;
    public short fs;
    public int fd;
    public final short ff[] = {
        -27, 12, 35, -35, 19, 27, -12, -4, 4, -19
    };
    protected static final byte fg[][] = {
        {
            1, 1, 1, 0, 1, 1, 1, 0, 0, 2, 
            2, 1, 2, 2, 1, 1, 2, 2, 2, 0, 
            2, 2, 1, 1, 2, 2, 2, 0, 1, 1, 
            8
        }, {
            0, 1, 1, 2, 1, 0, 0, 0, 1, 1, 
            1, 0, 2, 2, 2, 0, 0, 2, 0, 0, 
            2, 8
        }, {
            0, 0, 0, 1, 1, 2, 2, 2, 0, 0, 
            0, 2, 8
        }
    };
    public static Player SOUNDS[] = new Player[7];
    public int gq;
    public int lastSoundIndex;
    InputStream is;
    private String exstring;
    private Image bufI[];
    private Graphics bufG[];
    protected final Font fntSmall = Font.getFont(0, 0, 8);
    protected final Font fntNormal = Font.getFont(0, 0, 0);
    protected final Font fntLarge = Font.getFont(0, 0, 16);
    protected final Font fntBLarge = Font.getFont(0, 1, 16);
    int VIEW_HEIGHT;
    protected Image z[];
    private Dragon _app;
    private Thread thread;
    public boolean flag1;
    int gw;
    protected RecordStore gu;
    protected int gi;
    protected int go;
    protected int gp;
    protected int ga;
    protected int gs;
    protected int gd;
    protected int gf;
    protected int gg;
    protected int gh;
    protected int gj;
    public int gk[];
    protected static final String MENU_ITEMS[] = {
        "Continue", "Play", "Load", "Instructions", "Score", "Settings", "About", "Quit"
    };
    protected static final String MENU_ITEMS2[] = {
        "Continue", "Restart", "Load", "Instructions", "Score", "Settings", "About", "Quit"
    };
    protected static final String MENU_CHOICE[] = {
        "Easy Mode", "Hard Mode"
    };
    protected static final String MENU_LOAD[] = {
        "Menu", "Stage 1", "Stage 2", "Stage 3"
    };
    protected static final String MENU_ON[] = {
        "Menu", "Sound On"
    };
    protected static final String MENU_OFF[] = {
        "Menu", "Sound Off"
    };
    private int ge;
    private int gr;
    private byte lastBG;
    private int _ftmp;
    DirectGraphics dg;
    int gt;
    int bossLife;
    int gy;

    public DragonCanvas(Dragon dragon)
    {
        leftCommand = null;
        rightCommand = null;
        aa = false;
        as = false;
        ad = false;
        af = false;
        ag = 0;
        ah = 0;
        aj = null;
        ak = null;
        al = 0;
        ab = false;
        an = 0;
        am = 0;
        bq = false;
        bw = false;
        be = false;
        br = false;
        bt = false;
        by = false;
        bu = false;
        bi = 0;
        bo = false;
        ba = 0;
        bs = false;
        bd = 0;
        bf = false;
        bg = false;
        bj = 0;
        bl = false;
        bz = false;
        bx = false;
        bc = 0;
        bv = 0;
        bb = 1;
        bn = 1;
        bm = 0;
        cw = false;
        ce = false;
        cr = 0;
        ct = false;
        cy = false;
        cu = false;
        t = 0;
        cp = 0;
        ca = 0;
        cd = 0;
        cf = false;
        cg = 0;
        ch = false;
        cj = false;
        ck = false;
        cl = false;
        cz = null;
        cx = null;
        cc = null;
        cv = null;
        cb = null;
        cn = 0;
        cm = false;
        eq = 0;
        ew = false;
        eh = false;
        ej = false;
        ex = false;
        ec = false;
        en = false;
        fq = null;
        fe = false;
        ft = false;
        fy = new byte[4];
        gq = 0;
        lastSoundIndex = 0;
        is = null;
        exstring = "now ok";
        bufI = new Image[6];
        bufG = new Graphics[6];
        VIEW_HEIGHT = 208 - fntNormal.getHeight() - 1;
        z = new Image[140];
        _app = null;
        flag1 = true;
        gk = new int[5];
        gr = 0;
        lastBG = 0;
        _ftmp = 0;
        gt = 0;
        bossLife = 0;
        gy = 0;
        _app = dragon;
        for(int i1 = 0; i1 < 6; i1++)
        {
            bufI[i1] = Image.createImage(176, 48);
            bufG[i1] = bufI[i1].getGraphics();
        }

        vg();
    }

    public void playSound(int i1)
    {
        if(i1 == 5 && gq == 5)

⌨️ 快捷键说明

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