Frame 1
stop();
Instance of Symbol 351 MovieClip in Frame 1
/* no clip actions */
Frame 2
stop();
System.useCodepage = true;
fscommand ("allowscale", false);
var NowPoint = 0;
var preUserid = "";
var prePoint = 0;
var preEof;
preUserid = cUserid;
prePoint = JumSu;
preEof = preEof;
userid = preUserid;
introSnd = new Sound();
introSnd.attachSound("introSound");
introSnd.start(0, 1500);
_root.mc_intro.btn_start.onRelease = function () {
introSnd.stop();
_root.gotoAndStop(3);
};
_root.mc_intro.btn_howto.onRelease = function () {
this.gotoAndStop("howto");
};
Frame 3
function init() {
if (gameLv <= 3) {
mc_back.gotoAndStop(random(2) + 1);
} else {
mc_back.gotoAndStop(random(4) + 1);
}
this.attachMovie("levelGo", "levelGo", depth++);
levelGo._x = 246.2;
levelGo._y = 207.1;
this.levelGo.mc_lv.lv_view.gotoAndStop(gameLv);
}
function init2() {
test.swapDepths(10000000);
ScoreChk("");
time_reduce();
gameSet();
makeItem();
if (SndChk == true) {
SoundFn("on");
} else if (SndChk == false) {
SoundFn("off");
}
}
function time_reduce() {
clearInterval(intervalID);
intervalID = setInterval(time_reduce2, 1000);
}
function time_reduce2() {
Seconds = Seconds + 1;
mc_timebar.mc_time.timeMsk._y = mc_timebar.mc_time.timeMsk._y + 2;
if (mc_timebar.mc_time.timeMsk._y >= -110) {
timeSound.stop();
clearInterval(intervalID);
GameEnd("0");
}
if (mc_timebar.mc_time.timeMsk._y == -150.4) {
memoView("hurry");
}
}
function nextLv() {
depth = 0;
speedX = 5;
speedY = 5;
dieMonNum = 0;
HitIngCnt = 0;
NowItemCnt = 0;
Seconds = 0;
gameMode = "play";
isKeyUpIng = false;
isCaptainIng = false;
mc_timebar.mc_time.timeMsk._y = -298.4;
init();
}
function gameSet() {
if (gameLv == 1) {
GroundMapX = [[0, 69.2, 307.3, 34.5, 72.5, 110.5, 148.5, 234.8, 335.9, 430.9, 468.9, -57.1, 182.1, 220.1, 68.6, 106.6, 218.5, -8.1, 30.1, 68, 166.6, 319.1, 357.1, 426.1, 464.1], [0, 69.1, 138.2, 207.3, 276.3, 371.3, 409.1, 447.1, 221.6, 258.2, 359.4, 454.4, -0.7, 37.4, 75.3, 113.3, 205.5, 243.5, 92, 130.1, 320.6, 358.5, 427.4, 465.4, -17.7, 53.5, 91.5, 171, 440.4]];
GroundMapY = [[375.6, 375.6, 375.6, 312.9, 312.9, 312.9, 312.9, 312.9, 312.9, 312.9, 312.9, 250.4, 250.4, 250.4, 187.9, 187.9, 187.9, 125.5, 125.5, 125.5, 125.5, 125.5, 125.5, 125.5, 125.5], [376.7, 376.7, 376.7, 376.7, 376.7, 376.7, 376.7, 376.7, 314.1, 314.1, 314.1, 314.1, 251.7, 251.7, 251.7, 251.7, 251.7, 251.7, 189.2, 189.2, 189.2, 189.2, 189.2, 189.2, 126.8, 126.8, 126.8, 126.8, 126.8]];
GroundType = [[2, 4, 8, 1, 1, 1, 1, 5, 3, 1, 1, 4, 1, 1, 1, 1, 8, 5, 1, 1, 3, 1, 2, 1, 1], [2, 2, 2, 2, 3, 1, 1, 2, 1, 7, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 7, 1, 1, 4, 2]];
speedXLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
speedYLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
spanXLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
spanYLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
MonMapX = [[297.4, 476.1, 30.9, 172.7, 471.4], [141, 468.6, 30.3, 270.4, 347.2, 203]];
MonMapY = [[336, 267.4, 211, 82.3, 85], [333.4, 335.8, 211, 211, 148, 83.3]];
MonType = [[1, 2, 1, 2, 1], [2, 1, 1, 1, 1, 2]];
MonDieCnt = [[5, 6, 5, 6, 5], [6, 5, 5, 5, 5, 6]];
monSpeedXLst = [[1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1]];
monSpanXLst = [[-150, -100, 120, 70, -100], [120, -70, 100, -30, 100, 150]];
LadderMapX = [[417.7], [71.2]];
LadderMapY = [[242.8], [308]];
LadderUpGround = [[16], [14]];
LadderDwGround = [[8], [1]];
ItemCnt = 2;
} else if (gameLv == 2) {
GroundMapX = [[0, 38, 107, 144.9, 181.8, 220.7, 291.8, 34.5, 105.6, 272.5, 310.5, 348.7, 432.4, 155.8, 225.2, 35.8, 73.8, 111.8, 251.1, 327.1, 365.1, 403.1, 441.1, 24.6, 172.7, 210.7, 327.1], [0, 70, 107.9, 144.8, 184.8, 279.8, 39.5, 110.6, 210.2, 248.2, 286.2, 324.2, 418.9, 122.8, 160.8, 230.2, 327.5, 365.6, 403.8, -4.3, 33.8, 71.8, 269.6, 29.6, 138.3, 177.7, 215.7, 332.1, 370.1, 408.1, 446.1]];
GroundMapY = [[376.7, 376.7, 376.7, 376.7, 376.7, 376.7, 376.7, 313.9, 313.9, 313.9, 313.9, 313.9, 313.9, 251.4, 251.4, 188.9, 188.9, 188.9, 188.9, 188.9, 188.9, 188.9, 188.9, 126.6, 126.6, 126.6, 126.6], [376.8, 376.8, 376.8, 376.8, 376.8, 376.8, 313.9, 313.9, 313.9, 313.9, 313.9, 313.9, 313.9, 251.4, 251.4, 251.4, 251.4, 251.4, 251.4, 188.9, 188.9, 188.9, 188.9, 126.6, 126.6, 126.6, 126.6, 126.6, 126.6, 126.6, 126.6]];
GroundType = [[1, 2, 1, 1, 5, 7, 4, 7, 1, 1, 1, 5, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 8], [2, 1, 1, 5, 3, 4, 7, 1, 1, 1, 1, 1, 3, 1, 2, 1, 1, 1, 5, 1, 1, 1, 8, 5, 5, 1, 1, 1, 1, 1, 1]];
speedXLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
speedYLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
spanXLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
spanYLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
MonMapX = [[241.4, 367, 138.1, 55, 465.4, 355.3], [99.3, 391.9, 251.9, 28, 307.9, 243.9]];
MonMapY = [[337, 333.4, 269.4, 146.8, 151, 85], [329.9, 337.1, 208.3, 146.3, 142, 85.3]];
MonType = [[1, 2, 2, 1, 1, 1], [2, 1, 1, 1, 2, 1]];
MonDieCnt = [[6, 7, 7, 6, 6, 6], [7, 6, 6, 6, 7, 6]];
monSpeedXLst = [[1, 2, 1, 2, 1, 1], [2, 1, 1, 1, 2, 1]];
monSpanXLst = [[-150, 70, -50, 80, -100, 100], [150, -150, -100, 50, 120, -70]];
LadderMapX = [[70.3], [179.3]];
LadderMapY = [[245.6], [183.6]];
LadderUpGround = [[15], [25]];
LadderDwGround = [[7], [14]];
ItemCnt = 2;
} else if (gameLv == 3) {
GroundMapX = [[0, 241.4, 310.4, 349.4, 443.4, 21.9, 162.4, 91.2, 222.3, 27.9, 315.8, 396.9, 434.9, 0, 117.3, 334.8], [0, 39.1, 133.1, 375.9, 444.6, 42, 167.4, 276.4, 6.3, 75, 179.9, 300.1, -57, 182.2, 365.8, 403.7, 453.1, 19.1, 137.3, 275.6, 344.9]];
GroundMapY = [[375.6, 375.6, 375.6, 375.6, 375.6, 312.9, 312.9, 250.4, 250.4, 187.9, 187.9, 187.9, 187.9, 125.6, 125.6, 125.6], [375.6, 375.6, 375.6, 375.6, 375.6, 312.9, 312.9, 312.9, 250.4, 250.4, 250.4, 250.4, 187.9, 187.9, 187.9, 187.9, 187.9, 125.6, 125.6, 125.6, 125.6]];
GroundType = [[8, 2, 5, 3, 2, 7, 2, 2, 8, 4, 1, 1, 1, 5, 3, 2], [5, 3, 8, 2, 2, 7, 2, 4, 2, 1, 1, 2, 4, 2, 1, 6, 6, 5, 3, 2, 2]];
speedXLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
speedYLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
spanXLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
spanYLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
MonMapX = [[265.9, 338.9, 26, 281.9, 92, 251.9, 468.9], [229.9, 461.9, 48, 300.9, 203.9, 389.9, 281.9]];
MonMapY = [[334.4, 327, 270.4, 201, 138, 144.3, 144.3], [333.4, 327, 263, 270.4, 139, 145.3, 83.3]];
MonType = [[3, 4, 3, 4, 4, 3, 3], [3, 4, 4, 3, 4, 3, 3]];
MonDieCnt = [[7, 8, 7, 8, 8, 7, 7], [7, 8, 8, 7, 8, 7, 7]];
monSpeedXLst = [[2, 1, 2, 1, 2, 1, 1], [1, 2, 1, 1, 2, 1, 2]];
monSpanXLst = [[-150, 100, 50, 100, 120, -120, -50], [-120, -100, 30, 150, -150, 80, 100]];
LadderMapX = [[398], [443.9]];
LadderMapY = [[306.9], [246.9]];
LadderUpGround = [[8], [15]];
LadderDwGround = [[3], [7]];
ItemCnt = 2;
} else if (gameLv == 4) {
GroundMapX = [[0, 94.8, 132.3, 170.3, 264.3, 335.4, 406.9, 22.4, 120.4, 158.3, 195.2, 234.3, 366, 106.2, 308.6, 427.6, 30.4, 284.6, 429.4, 92.8, 372.3], [0, 38, 77.7, 172.5, 267.5, 337.6, 408.1, 16.6, 54.5, 92.6, 189.4, 228.6, 420.2, 0, 302.9, 396.9, 445.6, 245.3, 283.6, 429.6, 38.5, 133.6, 336.5, 462.7]];
GroundMapY = [[376.7, 376.7, 376.7, 376.7, 376.7, 376.7, 376.7, 314.1, 314.1, 314.1, 314.1, 314.1, 314.1, 251.6, 251.6, 251.6, 189.1, 189.1, 189.1, 126.7, 126.7], [375.8, 375.8, 375.8, 375.8, 375.8, 375.8, 375.8, 313.1, 313.1, 313.1, 313.1, 313.1, 313.1, 250.6, 250.6, 250.6, 250.6, 188.1, 188.1, 188.1, 125.7, 125.7, 125.7, 125.7]];
GroundType = [[3, 1, 1, 3, 7, 7, 3, 1, 1, 1, 5, 1, 3, 2, 3, 6, 1, 7, 7, 4, 2], [1, 5, 3, 3, 7, 7, 3, 1, 1, 6, 5, 1, 3, 4, 3, 6, 6, 1, 1, 7, 3, 3, 2, 1]];
speedXLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
speedYLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
spanXLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
spanYLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
MonMapX = [[91, 467.9, 245.9, 111, 320.9, 480.9, 132.9], [233.9, 302.9, 35, 208.9, 470.9, 65, 394.9]];
MonMapY = [[335.4, 334.4, 264, 209.3, 202, 147.3, 77], [333.4, 328, 264, 207.3, 208.3, 77, 82.3]];
MonType = [[3, 3, 4, 3, 4, 3, 4], [3, 4, 4, 3, 3, 4, 3]];
MonDieCnt = [[8, 9, 9, 8, 9, 8, 9], [8, 9, 9, 8, 8, 9, 8]];
monSpeedXLst = [[1, 2, 2, 1, 1, 2, 2], [2, 2, 1, 1, 2, 1, 2]];
monSpanXLst = [[250, -150, -70, 50, 50, -30, 150], [-150, 100, 80, -120, -100, 120, -40]];
LadderMapX = [[139], [348.6]];
LadderMapY = [[178.9], [307]];
LadderUpGround = [[19], [14]];
LadderDwGround = [[13], [5]];
ItemCnt = 2;
} else if (gameLv == 5) {
GroundMapX = [[0, 37.9, 76.7, 318.2, 412.2, 0, 108.8, 203.4, 327.9, 105.3, 237.3, 18.6, 211.4, 424.6, 464.6, 58.8, 153.3, 248.8, 323.9], [0, 38, 279.1, 317.3, 355.4, 449.1, 120.7, 215.2, 354.1, 21.6, 323.3, 424.9, 48, 86.2, 124.7, 162.2, 244.8, 460.6, 33.5, 128, 323.1, 428.1]];
GroundMapY = [[375.6, 375.6, 375.6, 375.6, 375.6, 312.9, 312.9, 312.9, 312.9, 250.4, 250.4, 187.9, 187.9, 187.9, 187.9, 125.6, 125.6, 125.6, 125.6], [375.6, 375.6, 375.6, 375.6, 375.6, 375.6, 312.9, 312.9, 312.9, 250.4, 250.4, 250.4, 187.9, 187.9, 187.9, 187.9, 187.9, 187.9, 125.6, 125.6, 125.6, 125.6]];
GroundType = [[1, 1, 8, 3, 3, 7, 3, 1, 4, 2, 4, 7, 1, 5, 5, 3, 6, 1, 2], [1, 8, 1, 1, 3, 2, 3, 1, 3, 8, 2, 5, 1, 1, 1, 1, 1, 5, 3, 6, 2, 3]];
speedXLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
speedYLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
spanXLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
spanYLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
MonMapX = [[166, 261.3, 365.9, 412.3, 465.9, 120.3, 274.9, 481.9, 79.3, 161.9], [69.3, 146, 256.9, 324.9, 435.9, 42, 186.9, 379.9, 157, 481.9]];
MonMapY = [[331.4, 345, 345, 346, 268.4, 220, 206.3, 158, 95, 95], [347, 347, 346, 330.4, 283, 206.3, 221, 222, 81.3, 95]];
MonType = [[5, 6, 6, 6, 5, 6, 5, 6, 6, 6], [6, 6, 6, 5, 6, 5, 6, 6, 5, 6]];
MonDieCnt = [[9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9]];
monSpeedXLst = [[1, 2, 2, 1, 2, 1, 2, 2, 1, 1], [1, 1, 1, 2, 2, 2, 1, 2, 1, 2]];
monSpanXLst = [[-100, 100, -130, 50, -100, 20, 130, -20, 60, -50], [140, -60, -100, 120, -70, 150, -100, -40, -80, -30]];
LadderMapX = [[359.8], [65.2, 359.1]];
LadderMapY = [[179.8], [306.9, 182.8]];
LadderUpGround = [[18], [9, 20]];
LadderDwGround = [[10], [1, 10]];
ItemCnt = 3;
} else if (gameLv == 6) {
GroundMapX = [[0, 38.1, 75, 315.1, 323.4, 12.5, 197.4, 266.8, 161.4, 232.9, 64.3, 278.3, 359.1, 408.5], [0, 38.1, 76.2, 145.6, 214, 263.1, 278.8, 12.5, 83.8, 121.3, 266.8, 148, 230.8, 406.8, 64.3, 320.6, 359.1, 408.9]];
GroundMapY = [[376.6, 376.6, 376.6, 376.6, 313.8, 251.4, 251.4, 251.4, 188.9, 188.9, 126.5, 126.5, 126.5, 126.5], [375.6, 375.6, 375.6, 375.6, 375.6, 375.6, 312.8, 250.4, 250.4, 250.4, 250.4, 187.9, 187.9, 187.9, 125.5, 125.5, 125.5, 125.5]];
GroundType = [[1, 1, 8, 8, 4, 7, 2, 4, 1, 1, 3, 1, 6, 7], [1, 1, 2, 2, 6, 8, 1, 7, 1, 1, 4, 1, 1, 3, 3, 1, 6, 1]];
speedXLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
speedYLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
spanXLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
spanYLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
MonMapX = [[121, 205.9, 250.3, 386.9, 473.9, 381.3, 24.4, 221.3, 337.9, 474.9, 87, 450.9], [93, 191.6, 258.9, 384.3, 43, 279.3, 410.9, 471.9, 72.3, 150, 328.3, 429.9]];
MonMapY = [[332.4, 346, 347, 346, 332.4, 284, 221, 221, 221, 207.3, 81.3, 96], [347, 330.2, 345, 346, 205.3, 220, 220, 205.3, 95, 95, 95, 80.3]];
MonType = [[5, 6, 6, 6, 5, 6, 6, 6, 6, 5, 5, 6], [6, 5, 6, 6, 5, 6, 6, 5, 6, 6, 6, 5]];
MonDieCnt = [[9, 10, 10, 10, 9, 10, 10, 10, 10, 9, 9, 10], [10, 9, 10, 10, 9, 10, 10, 9, 10, 10, 10, 9]];
monSpeedXLst = [[2, 2, 1.5, 2, 1, 2, 1, 2, 2, 1, 1.5, 1], [1.5, 1, 2, 2, 1, 2, 1, 1.5, 2, 1, 2, 2]];
monSpanXLst = [[-70, -100, 140, -130, -100, 100, 30, 120, -100, -150, 30, -30], [-50, -100, -100, 60, 100, 90, -80, -110, 20, -20, 30, -20]];
LadderMapX = [[238.7, 449.7], [85.7, 422.1]];
LadderMapY = [[306.1, 182.1], [305.1, 305.1]];
LadderUpGround = [[6, 13], [7, 9]];
LadderDwGround = [[2, 7], [2, 5]];
ItemCnt = 3;
} else if (gameLv == 7) {
GroundMapX = [[0, 239.4, 276.8, 135.4, 318.3, 43.9, 200.8, 270.3, 355.3, 424.3, 462.4, 203.6, -60, 305.4], [0, 239.4, 276.8, 113.6, 151.3, 32.9, 312, 350.3, 419.3, 457.4, 91.8, 249.6, -85, 192, 363.6]];
GroundMapY = [[375.6, 375.6, 375.6, 312.8, 312.8, 250.4, 250.4, 250.4, 250.4, 250.4, 250.4, 187.9, 125.5, 125.5], [375.6, 375.6, 375.6, 312.9, 312.9, 250.4, 250.4, 250.4, 250.4, 250.4, 187.8, 187.8, 125.6, 125.6, 125.6]];
GroundType = [[4, 1, 8, 1, 3, 7, 2, 1, 2, 1, 1, 6, 4, 4], [4, 1, 8, 1, 2, 7, 1, 2, 1, 1, 3, 6, 4, 1, 3]];
speedXLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
speedYLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
spanXLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
spanYLst = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
MonMapX = [[85, 202.4, 323, 469.9, 398.9, 53.4, 219.3, 366.9, 481.9, 26.4, 151, 330.9, 423.9, 478.9], [163.4, 238.3, 324.9, 467.9, 205.9, 42, 332.3, 369.3, 470.9, 184.1, 257.3, 31, 92.3, 444.9]];
MonMapY = [[329.4, 335, 331.4, 331.4, 282, 221, 211, 209.3, 220, 95, 77, 81.3, 95, 95], [335, 345, 330.4, 345, 282, 202, 220, 220, 201, 144.3, 157, 79.3, 94, 82.3]];
MonType = [[5, 1, 2, 5, 6, 6, 1, 3, 6, 6, 4, 5, 6, 6], [1, 6, 5, 6, 6, 4, 6, 6, 4, 2, 6, 5, 6, 3]];
MonDieCnt = [[10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10]];
monSpeedXLst = [[2, 1.5, 2, 1.5, 2, 1.5, 2, 1.5, 2, 1.5, 2, 1, 2, 1], [1.5, 2, 2, 1, 2, 2, 1.5, 1.5, 1, 2, 2, 1, 2, 1.5]];
monSpanXLst = [[150, -100, -120, -120, -80, 40, 70, 80, -80, 120, -120, 150, -100, -90], [-120, 120, 100, -100, -70, 30, 100, 100, -120, -80, 30, 100, 50, -80]];
LadderMapX = [[80.1, 426.1], [351.1, 421.1]];
LadderMapY = [[181, 181.1], [306.4, 181.1]];
LadderUpGround = [[12, 13], [7, 14]];
LadderDwGround = [[5, 9], [2, 8]];
ItemCnt = 4;
}
ran = random(GroundMapX.length);
totalGround = GroundMapX[ran].length;
totalMon = MonMapX[ran].length;
totalLadder = LadderMapX[ran].length;
createHero();
initGround();
initLadder();
initMon();
}
function createHero() {
this.attachMovie("hero", "hero", 90000);
hero._x = GroundMapX[ran][0] + (hero._width / 2);
hero._y = (GroundMapY[ran][0] - (hero._height / 2)) + 5;
hero.gotoAndStop("right");
hero.hero.gotoAndStop("basic");
hero.dir == "right";
hero.speedY = 0;
hero.isAttack = false;
hero.isHitting = false;
hero.isUping = -1;
hero.itemType = [];
hero.itemTime = [];
}
function initGround() {
var _local3 = 0;
while (_local3 < totalGround) {
this.attachMovie("ground_" + GroundType[ran][_local3], "ground_" + _local3, depth++);
var _local2 = this["ground_" + _local3];
_local2._x = GroundMapX[ran][_local3];
_local2._y = GroundMapY[ran][_local3];
var _local4 = speedXLst[ran][_local3];
var _local5 = speedYLst[ran][_local3];
if ((_local4 != 0) || (_local5 != 0)) {
_local2.speedX = _local4;
_local2.speedY = _local5;
var _local7 = spanXLst[ran][_local3];
var _local6 = spanYLst[ran][_local3];
_local2.startX = _local2._x;
_local2.endX = _local2._x + _local7;
_local2.startY = _local2._y;
_local2.endY = _local2._y + _local6;
giveHandlerToGround(_local2);
}
_local3++;
}
}
function initMon() {
var _local3 = totalMon - 1;
while (_local3 > -1) {
this.attachMovie("mon_" + MonType[ran][_local3], "mon_" + _local3, depth++);
var _local2 = this["mon_" + _local3];
_local2._x = MonMapX[ran][_local3];
_local2._y = MonMapY[ran][_local3];
_local2.mtype = Math.abs(monSpanXLst[ran][_local3]) / monSpanXLst[ran][_local3];
_local2.killCnt = MonDieCnt[ran][_local3];
_local2.hitCnt = 0;
if (_local2.mtype < 0) {
_local2.gotoAndStop("left");
_local2.dir = "left";
} else {
_local2.gotoAndStop("right");
_local2.dir = "right";
}
if (monSpeedXLst[ran][_local3] != 0) {
_local2.mon.gotoAndStop("walk");
}
_local2.speedX = _local2.mtype * monSpeedXLst[ran][_local3];
_local2.startX = _local2._x;
_local2.endX = _local2.startX + monSpanXLst[ran][_local3];
giveHandlerToMon(_local2);
_local3--;
}
}
function initLadder() {
var _local3 = 0;
while (_local3 < totalLadder) {
this.attachMovie("ladder", "ladder_" + _local3, depth++);
var _local2 = this["ladder_" + _local3];
_local2._x = LadderMapX[ran][_local3];
_local2._y = LadderMapY[ran][_local3];
_local2.UpGrd = this["ground_" + LadderUpGround[ran][_local3]];
_local2.DwGrd = this["ground_" + LadderDwGround[ran][_local3]];
_local2.startX = (_local2._x - (_local2._width / 2)) + 15;
_local2.endX = (_local2._x + (_local2._width / 2)) - 15;
_local2.startY = _local2._y - (_local2._height / 2);
_local2.endY = _local2._y + (_local2._height / 2);
_local3++;
}
}
function giveHandlerToGround(pGround) {
pGround.onEnterFrame = function () {
if (this.speedX != 0) {
var _local3 = this._x + this.speedX;
if (_local3 < this.startX) {
this.speedX = this.speedX * -1;
} else if (_local3 > this.endX) {
this.speedX = this.speedX * -1;
} else {
this._x = _local3;
}
}
if (this.speedY != 0) {
var _local2 = this._x + this.speedY;
if (_local2 < this.startY) {
this.speedY = this.speedY * -1;
} else if (_local2 > this.endY) {
this.speedY = this.speedY * -1;
} else {
this._y = _local2;
}
}
};
}
function getGround() {
var _local3 = 0;
while (_local3 < totalGround) {
var _local2 = this["ground_" + _local3];
var _local7 = hero._x;
var _local6 = hero._y + (hero._height / 2);
var _local5 = _local2._x;
var _local4 = _local2._y;
var _local8 = _local2._width;
var _local9 = _local2._height;
if ((_local7 > _local5) && (_local7 < (_local5 + _local8))) {
if ((_local6 >= _local4) && (_local6 < (_local4 + _local9))) {
return(_local2);
}
}
_local3++;
}
}
function heroRun(pDir) {
hero.isAttack = false;
hero.dir = pDir;
var _local2 = itemAdjustChk(3);
if (_local2 == true) {
hero.gotoAndStop(pDir + "_big");
} else {
hero.gotoAndStop(pDir);
}
item_apply_1.gotoAndStop(hero.dir);
if (hero.isOnGround && (hero.isStand)) {
hero.hero.gotoAndStop("walk");
} else if (hero.isOnGround == false) {
hero.hero.gotoAndStop("jump");
}
if (pDir == "left") {
hero.speedX = -speedX;
} else if (pDir == "right") {
hero.speedX = speedX;
}
if (hero.isOnGround) {
hero._x = hero._x + hero.speedX;
}
}
function heroJump(pPower) {
hero.isAttack = false;
hero.hero.gotoAndStop("jump");
if (hero.isOnGround == true) {
jumpSound1.start(0, 1);
}
hero.isAttack = false;
hero.speedX = 0;
hero.speedY = -pPower;
hero._y = hero._y + hero.speedY;
}
function heroFly() {
hero.isAttack = false;
hero.isHitting = false;
var _local1 = getHitGround_bottom();
if (_local1 == null) {
hero.speedY = hero.speedY + gravity;
hero._y = hero._y + hero.speedY;
hero._x = hero._x + ((Math.abs(hero.speedX) / hero.speedX) * 2.5);
}
}
function heroStand() {
if (!hero.isStand) {
hero.isStand = true;
hero.hero.gotoAndStop("basic");
}
}
function heroAttack() {
if (isKeyUpIng == false) {
isKeyUpIng = true;
hero.isAttack = true;
hero.hero.gotoAndStop("attack");
}
}
function heroUp() {
hero.isAttack = false;
var _local3 = 0;
while (_local3 < totalLadder) {
var _local2 = this["ladder_" + _local3];
if (hero.isUping == -1) {
if ((hero.ground == _local2.DwGrd) && ((hero._x >= _local2.startX) && (hero._x <= _local2.endX))) {
hero.hero.gotoAndStop("lad");
hero.isUping = _local3;
hero._y = hero._y - speedX;
}
} else if (hero.isUping == _local3) {
hero._y = hero._y - speedX;
if (hero._y < _local2.UpGrd._y) {
hero._y = _local2.UpGrd._y - (hero._height / 2);
hero.hero.gotoAndStop("basic");
hero.isUping = -1;
}
}
_local3++;
}
}
function heroDown() {
hero.isAttack = false;
var _local3 = 0;
while (_local3 < totalLadder) {
var _local2 = this["ladder_" + _local3];
if (hero.isUping == -1) {
if ((hero.ground == _local2.UpGrd) && ((hero._x >= _local2.startX) && (hero._x <= _local2.endX))) {
hero.hero.gotoAndStop("lad");
hero.isUping = _local3;
hero._y = hero._y + speedX;
}
} else if (hero.isUping == _local3) {
hero._y = hero._y + speedX;
if ((hero._y + (hero._height / 2)) > _local2.DwGrd._y) {
hero._y = _local2.DwGrd._y - (hero._height / 2);
hero.hero.gotoAndStop("basic");
hero.isUping = -1;
}
}
_local3++;
}
}
function heroHit() {
HitIngCnt = HitIngCnt + 1;
hero.isUping = -1;
if ((hero.isHitting == false) && (HitIngCnt == 1)) {
hero.isHitting = true;
EnergyChk("-", 5);
hero.hero.gotoAndStop("hit");
if (hero.dir == "right") {
hero._x = hero._x - 40;
} else {
hero._x = hero._x + 40;
}
if (total_Energy <= 0) {
heroDie();
}
} else if (HitIngCnt == 10) {
HitIngCnt = 0;
}
}
function heroDie() {
gameMode = "";
hero.hero.gotoAndStop("die");
GameEnd("0");
}
function heroKillMon() {
dieMonNum = dieMonNum + 1;
if ((dieMonNum == totalMon) && (gameMode == "play")) {
if (gameLv == 7) {
callCaptain();
} else {
gameMode = "";
GameEnd("1");
}
}
}
function getHitGround_hor(pDir) {
var _local3 = 0;
while (_local3 < totalGround) {
var _local2 = this["ground_" + _local3];
if ((_local2 != hero.ground) && (_local2.hitTest(hero))) {
var _local4 = _local2._x + (_local2._width / 2);
if ((pDir == "right") && (_local4 > hero._x)) {
return(_local2);
}
if ((pDir == "left") && (_local4 < hero._x)) {
return(_local2);
}
}
_local3++;
}
return(null);
}
function giveHandlerToMon(pMon) {
pMon.onEnterFrame = function () {
if (gameMode == "play") {
var _local2 = this._x + this.speedX;
if (this.mtype < 0) {
var _local7 = this.endX;
var _local6 = this.startX;
} else {
var _local7 = this.startX;
var _local6 = this.endX;
}
if (_local2 < _local7) {
this.speedX = this.speedX * -1;
this.dir = "right";
this.gotoAndStop("right");
this.mon.gotoAndStop("walk");
} else if (_local2 > _local6) {
this.speedX = this.speedX * -1;
this.dir = "left";
this.gotoAndStop("left");
this.mon.gotoAndStop("walk");
} else {
this._x = _local2;
var _local4 = itemAdjustChk(0);
var _local5 = itemAdjustChk(3);
if ((this.monFocus.hitTest(hero.dieFocus) && (hero.isHitting == false)) && (_local4 != true)) {
if ((hero.speedY <= 0) || (hero.isOnGround)) {
heroHit();
}
}
if (this.monFocus.hitTest(hero.hero.hero.hitFocus) && (hero.isAttack == true)) {
if (hero.dir == this.dir) {
if (this.dir == "right") {
this.speedX = this.speedX * -1;
this.dir = "left";
this.gotoAndStop("left");
this.mon.gotoAndStop("walk");
} else {
this.speedX = this.speedX * -1;
this.dir = "right";
this.gotoAndStop("right");
this.mon.gotoAndStop("walk");
}
}
isKeyUpIng = true;
hero.isAttack = false;
if (_local5 == true) {
var _local3 = random(5) + 5;
this.hitCnt = this.hitCnt + 2;
} else {
var _local3 = random(5) + 3;
this.hitCnt = this.hitCnt + 1;
}
ScoreChk(_local3, this);
if (this.killCnt <= this.hitCnt) {
this.mon.gotoAndStop("die");
delete this.onEnterFrame;
heroKillMon();
} else {
this.mon.gotoAndStop("hit");
}
}
}
}
};
}
function ScoreChk(num, pMon) {
if (num != "") {
this.attachMovie("jumsu_" + num, "jumsu", depth++);
jumsu._x = pMon._x;
jumsu._y = pMon._y;
total_Score = total_Score + num;
}
mc_timebar.txtScore = total_Score;
}
function EnergyChk(chk, num) {
if (chk == "-") {
total_Energy = total_Energy - num;
if (total_Energy < 0) {
total_Energy = 0;
} else {
mc_timebar.mc_hp.hpMsk._x = mc_timebar.mc_hp.hpMsk._x - num;
}
} else if (chk == "+") {
total_Energy = total_Energy + num;
if (total_Energy > 122) {
total_Energy = 122;
} else {
mc_timebar.mc_hp.hpMsk._x = mc_timebar.mc_hp.hpMsk._x + num;
}
}
if (mc_timebar.mc_hp.hpMsk._x < 2.6) {
mc_timebar.mc_hp.hpMsk._x = 2.6;
}
if (mc_timebar.mc_hp.hpMsk._x > 124.6) {
mc_timebar.mc_hp.hpMsk._x = 124.6;
}
}
function makeItem() {
clearInterval(interval_makeItem);
if (ItemCnt > NowItemCnt) {
interval_makeItem = setInterval(intervalFunc_makeItem, random(30000));
}
}
function intervalFunc_makeItem() {
clearInterval(interval_makeItem);
copyItem();
makeItem();
}
function copyItem() {
NowItemCnt = NowItemCnt + 1;
var _local4 = random(4);
var _local3 = random(12);
this.attachMovie("item_" + _local4, "item_" + NowItemCnt, depth++);
var _local2 = this["item_" + NowItemCnt];
_local2.ground = this["ground_" + _local3];
_local2._x = GroundMapX[ran][_local3] + (_local2.ground._width / 2);
_local2._y = GroundMapY[ran][_local3] - (_local2._height / 2);
_local2.itemType = _local4;
giveHandlerToItem(_local2);
}
function itemAdjustChk(itm) {
var _local2 = false;
var _local1 = 0;
while (_local1 < hero.itemType.length) {
if (hero.itemType[_local1] == itm) {
_local2 = true;
break;
}
_local2 = false;
_local1++;
}
return(_local2);
}
function giveHandlerToItem(pItem) {
var frmCnt = 0;
pItem.onEnterFrame = function () {
frmCnt = frmCnt + 1;
if (this.hitTest(hero.dieFocus)) {
removeItems(this);
} else if (frmCnt > LmtItemTime) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
function removeItems(pItem) {
hero.isHitting = true;
this.attachMovie("item_effect_" + pItem.itemType, "item_effect", 90002);
item_effect._x = hero._x;
item_effect._y = hero._y;
this.attachMovie("item_effect2", "item_effect2", 90001);
item_effect2._x = hero._x - 130;
item_effect2._y = hero._y - 300;
if (pItem.itemType == 0) {
hero.itemType.push(pItem.itemType);
hero.itemTime.push(300);
this.attachMovie("item_apply_0", "item_apply_0", 90004);
item_apply_0._x = hero._x;
item_apply_0._y = hero._y;
} else if (pItem.itemType == 1) {
hero.itemType.push(pItem.itemType);
hero.itemTime.push(500);
speedX = 10;
speedY = 10;
this.attachMovie("item_apply_1", "item_apply_1", 90005);
item_apply_1.gotoAndStop(hero.dir);
item_apply_1._x = hero._x;
item_apply_1._y = hero._y;
} else if (pItem.itemType == 2) {
EnergyChk("+", 30);
} else if (pItem.itemType == 3) {
hero.itemType.push(pItem.itemType);
hero.itemTime.push(500);
heroLocation("big");
}
pItem.removeMovieClip();
delete pItem.onEnterFrame;
}
function heroLocation(chk) {
if (hero.dir == "right") {
if (chk == "speed") {
} else if (chk == "big") {
hero.gotoAndStop("right_big");
} else {
hero.gotoAndStop("right");
}
} else if (chk == "big") {
hero.gotoAndStop("left_big");
} else {
hero.gotoAndStop("left");
}
}
function callCaptain() {
clearInterval(intervalID);
clearInterval(interval_makeItem);
timeSound.stop();
backSound.stop();
var _local2 = 0;
while (_local2 < ItemCnt) {
var _local3 = this["item_" + NowItemCnt];
_local3.removeMovieClip();
_local2++;
}
item_effect.removeMovieClip();
item_effect2.removeMovieClip();
item_apply_0.removeMovieClip();
item_apply_1.removeMovieClip();
_local2 = 0;
while (_local2 < hero.itemTime.length) {
hero.itemTime[_local2] = 0;
_local2++;
}
memoView("warning");
}
function createCaptain() {
capShowSound.start(0, 1);
isCaptainIng = true;
if (SndChk == true) {
capbackSound.start(0, 1500);
}
this.attachMovie("captain", "captain", 90003);
captain._x = 250;
captain._y = 200;
captain.onEnterFrame = function () {
if (random(35) == 1) {
var _local2 = random(200) + 101;
}
this._y = this._y + (0.5 * (_local2 - this._y));
if (this.captain.hitFocus.hitTest(hero.hero.hero.hitFocus) && (isKeyUpIng == false)) {
isKeyUpIng = true;
this.gotoAndStop(3);
ScoreChk(random(3) + 7, this);
CaptainEnergyChk(5);
}
if (random(7) == 1) {
this.gotoAndStop(2);
goFire();
}
};
}
function CaptainEnergyChk(num) {
captain.energyBar._x = captain.energyBar._x - num;
if (captain.energyBar._x < -202.2) {
captain.gotoAndStop(4);
}
if (captain.energyBar._x > -68.15) {
captain.energyBar._x = -68.15;
}
}
function goFire() {
var _local4 = "missile_" + (++depth);
this.attachMovie("missile", _local4, 1000000 + depth);
var _local3 = _root[_local4];
_local3._x = captain._x;
_local3._y = captain._y + 70;
_local3._rotation = random(720) + -360;
_local3.speed = 5;
_local3.speedX = getSpeedX(_local3);
_local3.speedY = getSpeedY(_local3);
_local3.onEnterFrame = function () {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.hitTest(hero)) {
heroHit();
}
if (((this._x < 0) || (this._x > 500)) || ((this._y < 0) || (this._y > 400))) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
function getAngleFromRadian(pRadian) {
return(57.2957795130823 * pRadian);
}
function getSpeedX(pMC) {
var _local1 = getAngleFromRadian(pMC._rotation);
return(pMC.speed * Math.cos(_local1));
}
function getSpeedY(pMC) {
var _local1 = getAngleFromRadian(pMC._rotation);
return(pMC.speed * Math.sin(_local1));
}
function GameEnd(chk) {
gameMode = "";
isCaptainIng = false;
clearInterval(intervalID);
clearInterval(interval_makeItem);
timeSound.stop();
backSound.stop();
capbackSound.stop();
var _local3 = 0;
while (_local3 < ItemCnt) {
var _local4 = this["item_" + NowItemCnt];
_local4.removeMovieClip();
_local3++;
}
item_effect.removeMovieClip();
item_effect2.removeMovieClip();
item_apply_0.removeMovieClip();
item_apply_1.removeMovieClip();
captain.removeMovieClip();
if (chk == "1") {
timeUPSound.start(0, 10);
mc_timebar.mc_time.timeMsk.onEnterFrame = function () {
if (mc_timebar.mc_time.timeMsk._y >= -110) {
delete mc_timebar.mc_time.timeMsk.onEnterFrame;
timeUPSound.stop();
GameEnd2(chk);
} else {
_root.total_Score = _root.total_Score + 1;
ScoreChk("");
mc_timebar.mc_time.timeMsk._y = mc_timebar.mc_time.timeMsk._y + 2;
}
};
} else {
GameEnd2(chk);
}
}
function GameEnd2(chk) {
hero.removeMovieClip();
var _local2 = 0;
while (_local2 < totalGround) {
var _local5 = this["ground_" + _local2];
_local5.removeMovieClip();
_local2++;
}
_local2 = 0;
while (_local2 < totalMon) {
var _local3 = this["mon_" + _local2];
_local3.removeMovieClip();
_local2++;
}
_local2 = 0;
while (_local2 < totalLadder) {
var _local4 = this["ladder_" + _local2];
_local4.removeMovieClip();
_local2++;
}
if (chk == "1") {
if (gameLv == 7) {
memoView("Go_End");
} else {
memoView("Go_Next");
}
} else {
memoView("Go_End");
}
}
function memoView(memo) {
this.attachMovie(memo, memo, 99000);
if ((memo == "hurry") || (memo == "warning")) {
this[memo]._x = 250;
this[memo]._y = 200;
} else {
this[memo]._x = 250;
this[memo]._y = 100;
}
}
function SoundFn(c) {
if (c == "on") {
SndChk = true;
if (isCaptainIng == true) {
capbackSound.start(0, 1500);
} else {
backSound.start(0, 1500);
timeSound.start(0, 1500);
}
mc_timebar.mc_sound.gotoAndStop(1);
} else if (c == "off") {
SndChk = false;
backSound.stop();
timeSound.stop();
capbackSound.stop();
mc_timebar.mc_sound.gotoAndStop(2);
}
}
stop();
fscommand ("fullscreen", false);
fscommand ("showmenu", false);
fscommand ("allowscale", false);
fscommand ("trapallkeys", true);
System.useCodepage = true;
var gameLv = 1;
var total_Energy = 122;
var total_Score = 0;
var depth = 0;
var speedX = 5;
var speedY = 5;
var gravity = 0.3;
var jumpPower = 5;
var ran = 0;
var dieMonNum = 0;
var HitIngCnt = 0;
var NowItemCnt = 0;
var LmtItemTime = 300;
var Seconds = 0;
var SndChk = true;
var isKeyUpIng = false;
var isCaptainIng = false;
var totalGround = 0;
var GroundMapX = [];
var GroundMapY = [];
var GroundType = [];
var speedXLst = [];
var speedYLst = [];
var MonType = [];
var spanXLst = [];
var spanYLst = [];
var ItemCnt = 0;
var totalMon = 0;
var MonMapX = [];
var MonMapY = [];
var MonType = [];
var MonDieCnt = [];
var monSpeedXLst = [];
var monSpanXLst = [];
var totalLadder = 0;
var LadderMapX = [];
var LadderMapY = [];
var LadderUpGround = [];
var LadderDwGround = [];
var gameMode = "play";
backSound = new Sound();
backSound.attachSound("backSound");
timeSound = new Sound();
timeSound.attachSound("timeSound");
timeUPSound = new Sound();
timeUPSound.attachSound("upSound");
jumpSound1 = new Sound();
jumpSound1.attachSound("jumpSound1");
capShowSound = new Sound();
capShowSound.attachSound("capShowSound");
capbackSound = new Sound();
capbackSound.attachSound("capbackSound");
init();
myKey = new Object();
myKey.onKeyUp = function () {
if (Key.getCode() == 90) {
isKeyUpIng = false;
}
};
Key.addListener(myKey);
_root.onEnterFrame = function () {
if (gameMode == "play") {
var _local2 = getGround();
hero.ground = _local2;
if ((hero._x + (hero._width / 3)) > 500) {
hero._x = 500 - (hero._width / 3);
} else if ((hero._x - (hero._width / 3)) < 0) {
hero._x = hero._width / 3;
}
var _local1 = 0;
while (_local1 < hero.itemType.length) {
if (hero.itemTime[_local1] <= 0) {
if (hero.itemType[_local1] == 1) {
speedX = 5;
speedY = 5;
} else if (hero.itemType[_local1] == 3) {
heroLocation("");
}
hero.itemType.splice(_local1, 1);
hero.itemTime.splice(_local1, 1);
} else {
hero.itemTime[_local1] = hero.itemTime[_local1] - 1;
item_apply_0._x = hero._x;
item_apply_0._y = hero._y;
item_apply_1._x = hero._x;
item_apply_1._y = hero._y;
}
_local1++;
}
var _local3 = itemAdjustChk(0);
var _local4 = itemAdjustChk(1);
if (_local3 == false) {
item_apply_0.removeMovieClip();
}
if (_local4 == false) {
item_apply_1.removeMovieClip();
}
if (hero.isUping == -1) {
if (_local2 == null) {
hero.isOnGround = false;
heroFly();
} else {
hero.isOnGround = true;
hero._y = (_local2._y - (hero._height / 2)) + 5;
if ((_local2.speedX != 0) || (_local2.speedY != 0)) {
hero._x = hero._x + _local2.speedX;
hero._y = hero._y + _local2.speedY;
}
}
}
if (((Key.isDown(88) && (hero.isOnGround)) && (hero.isUping == -1)) && (hero.isHitting == false)) {
heroJump(jumpPower);
}
if (Key.isDown(38) && (hero.isHitting == false)) {
heroUp();
}
if (Key.isDown(40) && (hero.isHitting == false)) {
heroDown();
} else {
heroStand();
}
if ((Key.isDown(90) && (hero.isUping == -1)) && (hero.isHitting == false)) {
heroAttack();
}
if ((Key.isDown(37) && (hero.isUping == -1)) && (hero.isHitting == false)) {
heroRun("left");
} else if ((Key.isDown(39) && (hero.isUping == -1)) && (hero.isHitting == false)) {
heroRun("right");
} else {
hero.isMoving = false;
}
}
};
mc_timebar.mc_sound.onRelease = function () {
if (gameMode == "play") {
if (SndChk == true) {
SoundFn("off");
} else if (SndChk == false) {
SoundFn("on");
}
}
};
Symbol 16 MovieClip Frame 30
gotoAndPlay (10);
Symbol 17 MovieClip Frame 30
gotoAndPlay (10);
Symbol 18 MovieClip [item_apply_1] Frame 1
stop();
Symbol 26 MovieClip [item_effect2] Frame 41
stop();
this._parent.hero.isHitting = false;
this.removeMovieClip();
Symbol 60 MovieClip [hurry] Frame 39
stop();
this.removeMovieClip();
Symbol 76 MovieClip Frame 1
stop();
Symbol 80 MovieClip [levelGo] Frame 55
stop();
_root.init2();
this.removeMovieClip();
Symbol 98 MovieClip [Go_End] Frame 5
this.viewLv.gotoAndStop(_root.gameLv);
Symbol 98 MovieClip [Go_End] Frame 8
this.viewMon.gotoAndStop(_root.dieMonNum);
Symbol 98 MovieClip [Go_End] Frame 12
this.txtTotal = _root.total_Score;
Symbol 98 MovieClip [Go_End] Frame 15
stop();
if (_root.prePoint < _root.total_Score) {
_root.loadVariables("/F2Ffunworld/GameLand/TeongDuFight/SavePoint.asp?JumSu=" + _root.total_Score, "POST");
}
this.btn_first.onRelease = function () {
_root.gotoAndStop(2);
_root.Go_End.removeMovieClip();
};
this.btn_restart.onRelease = function () {
_root.gameLv = 1;
_root.total_Score = 0;
_root.total_Energy = 122;
_root.mc_timebar.mc_hp.hpMsk._x = 124.6;
_root.nextLv();
_root.Go_End.removeMovieClip();
};
Symbol 106 MovieClip [Go_Next] Frame 5
this.viewLv.gotoAndStop(_root.gameLv);
Symbol 106 MovieClip [Go_Next] Frame 8
this.viewMon.gotoAndStop(_root.dieMonNum);
Symbol 106 MovieClip [Go_Next] Frame 12
this.txtTotal = _root.total_Score;
Symbol 106 MovieClip [Go_Next] Frame 15
stop();
this.btn_next.onRelease = function () {
_root.gameLv++;
_root.nextLv();
_root.Go_Next.removeMovieClip();
};
Symbol 108 MovieClip [item_effect_1] Frame 35
stop();
this.removeMovieClip();
Symbol 110 MovieClip [item_effect_0] Frame 35
stop();
this.removeMovieClip();
Symbol 112 MovieClip [item_effect_3] Frame 35
stop();
this.removeMovieClip();
Symbol 114 MovieClip [item_effect_2] Frame 35
stop();
this.removeMovieClip();
Symbol 118 MovieClip [warning] Frame 48
this._parent.createCaptain();
this.removeMovieClip();
Symbol 145 MovieClip Frame 10
stop();
this._parent.gotoAndStop(1);
Symbol 147 MovieClip Frame 15
stop();
this._parent._parent.GameEnd("1");
this._parent.removeMovieClip();
Symbol 148 MovieClip [captain] Frame 1
stop();
Symbol 150 MovieClip [jumsu_0] Frame 17
stop();
this.removeMovieClip();
Symbol 152 MovieClip [jumsu_1] Frame 17
stop();
this.removeMovieClip();
Symbol 154 MovieClip [jumsu_2] Frame 17
stop();
this.removeMovieClip();
Symbol 156 MovieClip [jumsu_3] Frame 17
stop();
this.removeMovieClip();
Symbol 158 MovieClip [jumsu_4] Frame 17
stop();
this.removeMovieClip();
Symbol 160 MovieClip [jumsu_9] Frame 17
stop();
this.removeMovieClip();
Symbol 162 MovieClip [jumsu_8] Frame 17
stop();
this.removeMovieClip();
Symbol 164 MovieClip [jumsu_7] Frame 17
stop();
this.removeMovieClip();
Symbol 166 MovieClip [jumsu_6] Frame 17
stop();
this.removeMovieClip();
Symbol 168 MovieClip [jumsu_5] Frame 17
stop();
this.removeMovieClip();
Symbol 180 MovieClip Frame 21
if (this._parent._parent == _level0.hero.hero) {
this._parent._parent.gotoAndStop(1);
}
Symbol 189 MovieClip Frame 11
stop();
_root.hero.isAttack = false;
_root.hero.hero.gotoAndStop("basic");
Symbol 194 MovieClip Frame 10
stop();
_root.hero.isHitting = false;
this._parent.gotoAndStop("basic");
Symbol 195 MovieClip Frame 5
this._parent.gotoAndStop(1);
Symbol 206 MovieClip Frame 25
stop();
Symbol 209 MovieClip Frame 20
gotoAndPlay (2);
Symbol 210 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 11
stop();
_root.hero.isAttack = false;
_root.hero.hero.gotoAndStop("basic");
Symbol 216 MovieClip Frame 10
stop();
_root.hero.isHitting = false;
this._parent.gotoAndStop("basic");
Symbol 217 MovieClip Frame 5
this._parent.gotoAndStop(1);
Symbol 218 MovieClip Frame 25
stop();
Symbol 219 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 11
stop();
_root.hero.isAttack = false;
_root.hero.hero.gotoAndStop("basic");
Symbol 228 MovieClip Frame 10
stop();
_root.hero.isHitting = false;
this._parent.gotoAndStop("basic");
Symbol 229 MovieClip Frame 5
this._parent.gotoAndStop(1);
Symbol 232 MovieClip Frame 25
stop();
Symbol 233 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 11
stop();
_root.hero.isAttack = false;
_root.hero.hero.gotoAndStop("basic");
Symbol 239 MovieClip Frame 10
stop();
_root.hero.isHitting = false;
this._parent.gotoAndStop("basic");
Symbol 240 MovieClip Frame 5
this._parent.gotoAndStop(1);
Symbol 241 MovieClip Frame 25
stop();
Symbol 242 MovieClip Frame 1
stop();
Symbol 243 MovieClip [hero] Frame 1
stop();
Symbol 243 MovieClip [hero] Frame 2
stop();
Symbol 243 MovieClip [hero] Frame 3
stop();
Symbol 243 MovieClip [hero] Frame 4
stop();
Symbol 250 MovieClip Frame 10
stop();
this._parent.gotoAndStop("walk");
Symbol 251 MovieClip Frame 20
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 10
stop();
this._parent.gotoAndStop("walk");
Symbol 256 MovieClip Frame 20
stop();
Symbol 257 MovieClip Frame 1
stop();
Symbol 258 MovieClip [mon_1] Frame 1
stop();
Symbol 258 MovieClip [mon_1] Frame 2
stop();
Symbol 264 MovieClip Frame 10
stop();
this._parent.gotoAndStop("walk");
Symbol 265 MovieClip Frame 20
stop();
Symbol 266 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 10
stop();
this._parent.gotoAndStop("walk");
Symbol 270 MovieClip Frame 20
stop();
Symbol 271 MovieClip Frame 1
stop();
Symbol 272 MovieClip [mon_2] Frame 1
stop();
Symbol 272 MovieClip [mon_2] Frame 2
stop();
Symbol 278 MovieClip Frame 10
stop();
this._parent.gotoAndStop("walk");
Symbol 279 MovieClip Frame 20
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 10
stop();
this._parent.gotoAndStop("walk");
Symbol 284 MovieClip Frame 20
stop();
Symbol 285 MovieClip Frame 1
stop();
Symbol 286 MovieClip [mon_3] Frame 1
stop();
Symbol 286 MovieClip [mon_3] Frame 2
stop();
Symbol 292 MovieClip Frame 10
stop();
this._parent.gotoAndStop("walk");
Symbol 293 MovieClip Frame 20
stop();
Symbol 294 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 10
stop();
this._parent.gotoAndStop("walk");
Symbol 298 MovieClip Frame 20
stop();
Symbol 299 MovieClip Frame 1
stop();
Symbol 300 MovieClip [mon_4] Frame 1
stop();
Symbol 300 MovieClip [mon_4] Frame 2
stop();
Symbol 306 MovieClip Frame 10
stop();
this._parent.gotoAndStop("walk");
Symbol 307 MovieClip Frame 20
stop();
Symbol 308 MovieClip Frame 1
stop();
Symbol 311 MovieClip Frame 10
stop();
this._parent.gotoAndStop("walk");
Symbol 312 MovieClip Frame 20
stop();
Symbol 313 MovieClip Frame 1
stop();
Symbol 314 MovieClip [mon_5] Frame 1
stop();
Symbol 314 MovieClip [mon_5] Frame 2
stop();
Symbol 325 MovieClip Frame 10
stop();
this._parent.gotoAndStop("walk");
Symbol 326 MovieClip Frame 20
stop();
Symbol 327 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 10
stop();
this._parent.gotoAndStop("walk");
Symbol 331 MovieClip Frame 20
stop();
Symbol 332 MovieClip Frame 1
stop();
Symbol 333 MovieClip [mon_6] Frame 1
stop();
Symbol 333 MovieClip [mon_6] Frame 2
stop();
Symbol 351 MovieClip Frame 43
totalBytes = _root.getBytesTotal();
this.onEnterFrame = function () {
loadBytes = _root.getBytesLoaded();
txt = Math.floor((loadBytes / totalBytes) * 100);
if (txt >= 99) {
_root.gotoAndStop(2);
delete this.onEnterFrame;
}
};
Symbol 356 MovieClip Frame 21
gotoAndPlay (8);
Symbol 369 Button
on (release) {
gotoAndPlay (221);
}
Symbol 403 MovieClip Frame 220
gotoAndPlay (110);
Symbol 403 MovieClip Frame 280
stop();
Symbol 412 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 1
stop();
Symbol 434 MovieClip Frame 1
stop();
Symbol 437 MovieClip Frame 1
stop();