📄 resourcemanager.java
字号:
audio.setMediaLocation(sndname[i]);
}
catch(Exception exception) { }
audio.start();
}
public void stop()
{
audio.stop();
astop();
}
public void setSound(String s, boolean flag)
{
}
public void setVib(int i)
{
int j = gc.midlet.getEffectOption();
if(j > 0)
{
Vibration.stop();
Vibration.start(Vibration.getLevelNum(), i);
Runtime.getRuntime().gc();
}
}
public void astop()
{
if(audio != null)
repeatFlag = false;
}
GameCanvas gc;
static final byte L_MENU = 1;
static final byte L_GAME = 3;
Image i_p;
Image i_p2;
Image img_icon;
Image img_char[];
Image img_mon;
Image img_obj;
Image img_magic;
Image img_eff;
Image img_game;
Image img_tmp;
byte publicCoord[][] = {
{
0, 0, 7, 8
}, {
7, 0, 5, 8
}, {
12, 0, 7, 8
}, {
19, 0, 7, 8
}, {
26, 0, 7, 8
}, {
33, 0, 7, 8
}, {
40, 0, 7, 8
}, {
0, 8, 7, 8
}, {
7, 8, 7, 8
}, {
14, 8, 7, 8
}, {
0, 23, 18, 7
}, {
21, 8, 17, 7
}, {
21, 15, 9, 12
}, {
38, 8, 9, 12
}, {
0, 16, 21, 7
}, {
30, 23, 13, 7
}, {
30, 15, 4, 4
}, {
34, 15, 4, 4
}, {
30, 19, 4, 4
}, {
34, 19, 4, 4
}, {
0, 30, 21, 7
}, {
22, 30, 24, 7
}
};
byte public2Coord[][] = {
{
0, 0, 23, 5
}, {
24, 0, 29, 5
}, {
0, 5, 26, 5
}, {
26, 5, 23, 5
}
};
byte gameCoord[][] = {
{
34, 24, 20, 12
}, {
44, 0, 10, 24
}, {
0, 0, 20, 20
}, {
32, 12, 12, 12
}, {
20, 24, 12, 12
}, {
20, 12, 12, 12
}, {
20, 0, 12, 12
}, {
32, 0, 12, 12
}, {
0, 20, 20, 15
}
};
byte moncoord[][] = {
{
29, 30, 12, 12
}, {
52, 0, 22, 17
}, {
29, 0, 23, 17
}, {
41, 17, 13, 13
}, {
0, 29, 26, 13
}, {
0, 0, 29, 29
}, {
76, 24, 15, 11
}, {
54, 17, 21, 21
}, {
78, 35, 13, 7
}, {
41, 30, 12, 12
}, {
29, 17, 12, 13
}, {
74, 0, 19, 24
}
};
byte magiccoord[][] = {
{
17, 43, 12, 11
}, {
17, 43, 12, 11
}, {
27, 17, 22, 17
}, {
27, 0, 22, 17
}, {
28, 34, 21, 11
}, {
28, 34, 21, 11
}, {
0, 40, 17, 14
}, {
0, 40, 17, 14
}, {
0, 0, 27, 20
}, {
0, 20, 27, 20
}
};
byte objCoord[][] = {
{
0, 0, 16, 32
}, {
31, 0, 16, 16
}, {
47, 0, 16, 16
}, {
31, 16, 16, 16
}, {
47, 16, 16, 16
}, {
16, 0, 15, 32
}, {
63, 0, 17, 28
}, {
46, 32, 20, 13
}, {
52, 45, 12, 13
}, {
66, 28, 14, 17
}, {
26, 54, 8, 11
}, {
26, 32, 8, 11
}, {
26, 43, 8, 11
}, {
35, 32, 11, 19
}, {
0, 32, 16, 25
}, {
16, 43, 10, 11
}, {
16, 32, 10, 11
}, {
0, 57, 10, 11
}, {
10, 57, 16, 11
}, {
35, 53, 15, 14
}, {
64, 45, 16, 16
}, {
0, 0, 16, 16
}
};
byte harryRCoord[][] = {
{
0, 0, 13, 28
}, {
13, 0, 18, 28
}, {
31, 0, 14, 28
}, {
45, 0, 22, 28
}, {
67, 0, 23, 28
}, {
90, 0, 24, 28
}, {
114, 0, 24, 28
}
};
byte harryLCoord[][] = {
{
0, 0, 13, 28
}, {
13, 0, 18, 28
}, {
31, 0, 15, 28
}, {
46, 0, 22, 28
}, {
68, 0, 22, 28
}, {
90, 0, 24, 28
}, {
114, 0, 24, 28
}
};
byte harryICoord[][] = {
{
0, 0, 14, 17
}, {
14, 0, 16, 27
}, {
30, 0, 16, 27
}, {
46, 0, 17, 27
}, {
63, 0, 19, 27
}
};
byte effCoord[][] = {
{
0, 0, 22, 19
}, {
43, 0, 15, 8
}, {
30, 46, 19, 8
}, {
30, 46, 19, 8
}, {
22, 0, 21, 19
}, {
14, 0, 20, 15
}, {
34, 0, 10, 15
}, {
0, 0, 14, 15
}, {
58, 20, 29, 17
}, {
43, 9, 15, 10
}, {
43, 9, 15, 10
}
};
byte hiCoord[][] = {
{
0, 0, 11, 19
}, {
11, 0, 15, 11
}, {
11, 11, 15, 14
}
};
byte leveltile[] = {
0, 1, 2, 1, 3, 4, 2, 4, 2, 2,
4
};
byte htile[] = {
10, 2, 13, 0, 4
};
int hcol[] = {
0x399cff, 0x9c7b39, 0x3f5f3f, 0x5f3f7f, 0xbf9f3f
};
byte ntile[][] = {
{
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
9, 9, 9, 9, 9, 10, 10, 10, 10, 10,
10, 11, 11, 11, 11, 11, 11, 12, 12, 12,
12, 12, 12, 10, 10, 10, 13, 13, 14, 15,
16, 16, 17, 17, 18, 19, 20
}, {
0, 0, 0, 1, 1, 1, 2, 2, 2, 2,
2, 2, 3, 3, 3, 3, 3, 3, 4, 4,
4, 4, 4, 4, 5, 5, 5, 5, 5, 5,
6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 16, 17, 18, 18
}, {
0, 1, 1, 2, 1, 1, 1, 1, 3, 4,
5, 6, 7, 8, 9, 21, 10, 10, 21, 10,
10, 10, 10, 10, 10, 11, 12, 13, 13, 13,
13, 13, 13, 13, 13, 13, 14, 15, 14, 15,
16, 17, 18, 18, 19, 20, 21
}, {
0, 0, 0, 0, 0, 0, 1, 2, 3, 4,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 6, 6, 6, 6, 6, 6, 0, 0, 0,
0, 7, 7, 8, 8, 9, 10, 11, 9, 11,
12, 12, 12, 12, 12, 13, 13
}, {
0, 0, 0, 0, 0, 0, 1, 1, 1, 1,
1, 1, 2, 2, 2, 2, 2, 2, 3, 3,
3, 3, 3, 3, 4, 4, 4, 4, 4, 4,
5, 5, 5, 5, 5, 5, 6, 6, 6, 7,
8, 9, 10, 11, 11, 12
}
};
int tnum;
int bglvl;
int btype;
int bgorder;
Image imgbg;
static final byte E_BG = 0;
static final byte E_TILE = 1;
static final byte E_CHAR = 4;
static final byte E_OBJ = 2;
static final byte E_MON = 3;
byte coord[] = {
0, 0, 10, 10
};
private byte level;
byte hiddenlevel[][] = {
{
0, -1, 1, -1, -1, 0
}, {
1, 0, -1, -1, -1, 1
}, {
2, -1, 3, -1, -1, 2
}, {
3, 2, -1, -1, -1, 3
}, {
4, -1, 5, -1, -1, 4
}, {
5, 4, -1, -1, -1, 5
}
};
byte ttiledata[][][];
byte tbgdata[][][];
byte tmondata[][][];
byte tobjdata[][][];
byte scriddata[];
byte sobjdata[][][];
private String vol;
boolean effectFlag;
boolean soundFlag;
boolean speedFlag;
MediaPlayer audio;
String sndname[] = {
"/snd/title.mmf", "/snd/title.mmf", "/snd/win.mmf", "/snd/gover.mmf", "/snd/menu0.mmf", "/snd/menu1.mmf", "/snd/mhit.mmf", "/snd/hhit.mmf", "/snd/door1.mmf", "/snd/boom.mmf",
"/snd/box.mmf", "/snd/m0.mmf", "/snd/m0.mmf"
};
static int intVol = 0;
static boolean repeatFlag = false;
static int tsound = 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -