Frame 1
px = 5.5;
py = 8.5;
flag1 = 0;
flag2 = 0;
jump_on = 0;
enmy_n = 1;
var enmy_n0 = 0;
var eball_n = 1;
var arrow_n = 1;
var yuka_n = 0;
var mx2 = 0;
var my2 = 0;
var tobashi = 0;
var jump_on = 0;
var miss_on = 0;
var rakka_ball_n = 0;
var startx = 0;
var starty = 0;
var score = 0;
var charan = 0;
var jikan = 120;
tm = getTimer();
sp = 0;
homsp = 1;
bossmode = 0;
bosshp = 0;
se_shot = new Sound();
se_shot.attachSound("shot1");
se_pwup = new Sound();
se_pwup.attachSound("pwup1");
se_fall = new Sound();
se_fall.attachSound("fall1");
se_fall2 = new Sound();
se_fall2.attachSound("fall2");
se_damage = new Sound();
se_damage.attachSound("damage1");
se_tekidamage = new Sound();
se_tekidamage.attachSound("tekidamage1");
se_bom = new Sound();
se_bom.attachSound("bom1");
se_baku = new Sound();
se_baku.attachSound("baku1");
se_jump = new Sound();
se_jump.attachSound("jump1");
se_get = new Sound();
se_get.attachSound("get1");
se_biri = new Sound();
se_biri.attachSound("biri1");
se_doon = new Sound();
se_doon.attachSound("doon1");
se_pi1 = new Sound();
se_pi1.attachSound("pi1");
se_don1 = new Sound();
se_don1.attachSound("don1");
se_gunshot1 = new Sound();
se_gunshot1.attachSound("gunshot1");
se_gunshot2 = new Sound();
se_gunshot2.attachSound("gunshot2");
se_warp1 = new Sound();
se_warp1.attachSound("warp1");
se_basa1 = new Sound();
se_basa1.attachSound("basa1");
se_open1 = new Sound();
se_open1.attachSound("open1");
se_bell0 = new Sound();
se_bell0.attachSound("bell0");
se_kachi1 = new Sound();
se_kachi1.attachSound("kachi1");
se_byoro2 = new Sound();
se_byoro2.attachSound("byoro2");
se_byoro7 = new Sound();
se_byoro7.attachSound("byoro7");
Frame 25
stop();
Instance of Symbol 128 MovieClip [Button1] "charasel1" in Frame 29
onClipEvent (load) {
this.gotoAndstop("chara1");
}
on (press) {
_root.gotoAndPlay("chara1init");
}
Instance of Symbol 128 MovieClip [Button1] "charasel2" in Frame 30
onClipEvent (load) {
this.gotoAndstop("chara2");
}
on (press) {
_root.gotoAndPlay("chara2init");
}
Instance of Symbol 128 MovieClip [Button1] "charasel3" in Frame 31
onClipEvent (load) {
this.gotoAndstop("chara3");
}
on (press) {
_root.gotoAndPlay("chara3init");
}
Instance of Symbol 128 MovieClip [Button1] "charasel4" in Frame 32
onClipEvent (load) {
this.gotoAndstop("chara4");
}
on (press) {
_root.gotoAndPlay("chara4init");
}
Frame 33
stop();
Frame 34
_root.charan = 1;
Frame 35
gotoAndPlay("select2");
Frame 36
_root.charan = 2;
Frame 37
gotoAndPlay("select2");
Frame 38
_root.charan = 3;
Frame 39
gotoAndPlay("select2");
Frame 40
_root.charan = 4;
Frame 41
gotoAndPlay("select2");
Instance of Symbol 128 MovieClip [Button1] "charasel1a" in Frame 43
onClipEvent (load) {
if (_root.charan != 1) {
this.gotoAndplay("chara1");
} else {
this.gotoAndstop("chara1");
}
}
Instance of Symbol 128 MovieClip [Button1] "charasel2a" in Frame 44
onClipEvent (load) {
if (_root.charan != 2) {
this.gotoAndplay("chara2");
} else {
this.gotoAndstop("chara2");
}
}
Instance of Symbol 128 MovieClip [Button1] "charasel3a" in Frame 45
onClipEvent (load) {
if (_root.charan != 3) {
this.gotoAndplay("chara3");
} else {
this.gotoAndstop("chara3");
}
}
Instance of Symbol 128 MovieClip [Button1] "charasel4a" in Frame 46
onClipEvent (load) {
if (_root.charan != 4) {
this.gotoAndplay("chara4");
} else {
this.gotoAndstop("chara4");
}
}
Instance of Symbol 128 MovieClip [Button1] "stagesel1" in Frame 47
onClipEvent (load) {
this.gotoAndplay("stage1");
}
on (press) {
_root.gotoAndPlay("stage1init");
}
Instance of Symbol 128 MovieClip [Button1] "stagesel2" in Frame 48
onClipEvent (load) {
this.gotoAndplay("stage2");
}
on (press) {
_root.gotoAndPlay("stage2init");
}
Instance of Symbol 128 MovieClip [Button1] "stagesel3" in Frame 49
onClipEvent (load) {
this.gotoAndplay("stage3");
}
on (press) {
_root.gotoAndPlay("stage3init");
}
Instance of Symbol 128 MovieClip [Button1] "stagesel4" in Frame 50
onClipEvent (load) {
this.gotoAndplay("stage4");
}
on (press) {
_root.gotoAndPlay("stage4init");
}
Frame 51
stop();
Frame 53
mapx0 = new Array();
yukax0 = new Array();
enmyx0 = new Array();
mapx0[0] = "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[1] = "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[2] = "0111111110000000000000000000000000000000000000000000000000000000";
mapx0[3] = "0111111111111011000000000000000000000000000000000000000000000000";
mapx0[4] = "0111111111111011000000001111000000000000000000000000000000000000";
mapx0[5] = "0111111110000011121211111211111100000000019000000000000000000000";
mapx0[6] = "0000000000000011111112121112111100000000011000000000000000000000";
mapx0[7] = "0000000000000000000000001111000000000000000000000001211000000000";
mapx0[8] = "0000000000000000000000000000001112111112011012110111121110110000";
mapx0[9] = "0000000000000000000000000000001111111111012011110110000110121111";
mapx0[10] = "0000000000000000000000000000001111111111012011110110000110121111";
mapx0[11] = "0000000000000000000000000000001111211112011011210111121110110000";
mapx0[12] = "0000000000000000000000000000000000000000000000000001211000000000";
mapx0[13] = "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[14] = "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[15] = "0000000000000000000000000000000000000000000000000000000000000000";
enmypos0 = "0000000000000000000000000000000000000000000000000000000000000000";
yukax0[0] = "215,255,396,3b6,3e6,5e6,000,000,000,000,000,000,000,000,000,000";
yukax0[1] = "506,526,546,566,485,5c6,5e6,8e6,ae6,000,000,000,000,000,000,000";
yukax0[2] = "805,845,896,a96,8c6,ac6,8e6,ae6,596,000,000,000,000,000,000,000";
yukax0[3] = "816,a16,736,b36,756,b56,876,a76,8a6,aa6,9c6,9e6,000,000,000,000";
mapx0[0] = mapx0[0] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[1] = mapx0[1] + "0000000000000000000000000000000011111000000000000000000000000000";
mapx0[2] = mapx0[2] + "0000000000000000000000000000210011131000000000000000000000000000";
mapx0[3] = mapx0[3] + "0000000000000000000000002100110000111000000000000000000000000000";
mapx0[4] = mapx0[4] + "0000000000000000000000001100000000011000000000000000011001200000";
mapx0[5] = mapx0[5] + "0000000000000000000000000000000000021000000000001111012001101121";
mapx0[6] = mapx0[6] + "0000000000000000000000000000000000021000000012001131000290001131";
mapx0[7] = mapx0[7] + "0000000000000000111333311100000000011000000011001131000120001131";
mapx0[8] = mapx0[8] + "0000000011100120111000011100000000000000001200001111011002101121";
mapx0[9] = mapx0[9] + "0110120013100120111021011100000000000000001100000000021001100000";
mapx0[10] = mapx0[10] + "0110120011100000000000000000000000011000120000000000000000000000";
mapx0[11] = mapx0[11] + "0000000000000000000000000000000000022000110000000000000000000000";
mapx0[12] = mapx0[12] + "0000000000000000000000000000000000011111000000000000000000000000";
mapx0[13] = mapx0[13] + "0000000000000000000000000000000000013111000000000000000000000000";
mapx0[14] = mapx0[14] + "0000000000000000000000000000000000011100000000000000000000000000";
mapx0[15] = mapx0[15] + "0000000000000000000000000000000000000000000000000000000000000000";
enmypos0 = enmypos0 + "0000000000000000000000000000000000000000000000000000000000000000";
yukax0[4] = "916,947,888,8d7,000,000,000,000,000,000,000,000,000,000,000,000";
yukax0[5] = "708,731,741,751,761,941,951,778,386,2c6,000,000,000,000,000,000";
yukax0[6] = "106,128,436,636,a36,c38,c66,a86,8a6,6c6,000,000,000,000,000,000";
yukax0[7] = "505,457,857,677,497,897,5c5,000,000,000,000,000,000,000,000,000";
mapx0[0] = mapx0[0] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[1] = mapx0[1] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[2] = mapx0[2] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[3] = mapx0[3] + "0000000000000000000000000000091011100000000000000000000000000000";
mapx0[4] = mapx0[4] + "0000000000000000000000000000011013100122100000000000000000000000";
mapx0[5] = mapx0[5] + "0000000011200000000000000000000011100000000000000001121110000000";
mapx0[6] = mapx0[6] + "0110000013100000000000000000000001000000122111100001122110000000";
mapx0[7] = mapx0[7] + "0110112011201120000000000000000002000000000013101201100110111111";
mapx0[8] = mapx0[8] + "0000131000001310121211000000000001000000000011101201100110111111";
mapx0[9] = mapx0[9] + "0000112000001120000002000000000011100000000000000001122110000000";
mapx0[10] = mapx0[10] + "0000000000000000000001010102010113100000000000000001121110000000";
mapx0[11] = mapx0[11] + "0000000000000000000000000000000011100000000000000000000000000000";
mapx0[12] = mapx0[12] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[13] = mapx0[13] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[14] = mapx0[14] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[15] = mapx0[15] + "0000000000000000000000000000000000000000000000000000000000000000";
enmypos0 = enmypos0 + "0000000000000000000000000000000000000000000000000000000000000000";
yukax0[8] = "616,748,588,7c8,000,000,000,000,000,000,000,000,000,000,000,000";
yukax0[9] = "801,811,821,831,841,851,951,a51,a71,a91,ab1,ad1,af1,3d6,000,000";
yukax0[10] = "908,811,711,611,308,451,461,471,481,681,691,6a1,6b1,6c8,000,000";
yukax0[11] = "707,537,737,937,557,957,577,777,977,7a6,7c6,7e6,000,000,000,000";
mapx0[0] = mapx0[0] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[1] = mapx0[1] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[2] = mapx0[2] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[3] = mapx0[3] + "0000000000000000000011000000000000000000000000000000000000000000";
mapx0[4] = mapx0[4] + "0000000000000000000111100000000000000000000000000000000000000000";
mapx0[5] = mapx0[5] + "0000000000000000001111110000000000000000000000000000000000000000";
mapx0[6] = mapx0[6] + "0000000000000900011111111000000000000000000000000000000000000000";
mapx0[7] = mapx0[7] + "0111111111111110111111111c00000000000000000000000000000000000000";
mapx0[8] = mapx0[8] + "0111111111111110111111111b00000000000000000000000000000000000000";
mapx0[9] = mapx0[9] + "0000000000000100011111111000000000000000000000000000000000000000";
mapx0[10] = mapx0[10] + "0000000000000000001111110000000000000000000000000000000000000000";
mapx0[11] = mapx0[11] + "0000000000000000000111100000000000000000000000000000000000000000";
mapx0[12] = mapx0[12] + "0000000000000000000011000000000000000000000000000000000000000000";
mapx0[13] = mapx0[13] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[14] = mapx0[14] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[15] = mapx0[15] + "0000000000000000000000000000000000000000000000000000000000000000";
enmypos0 = enmypos0 + "0000000000000000000000000000000000000000000000000000000000000000";
yukax0[12] = "717,737,757,777,797,7b7,7d7,6d1,9d1,000,000,000,000,000,000,000";
yukax0[13] = "706,346,b46,786,432,683,b62,913,612,463,982,b33,529,000,000,000";
yukax0[14] = "000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000";
yukax0[15] = "000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000";
stagex = 1;
_root.bg1._alpha = 100;
_root.bg2._visible = 0;
_root.bg3._visible = 0;
_root.bg4._visible = 0;
Frame 54
gotoAndPlay("start0");
Frame 56
mapx0 = new Array();
yukax0 = new Array();
enmyx0 = new Array();
mapx0[0] = "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[1] = "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[2] = "0111111110000000000000000000000000000000000000000000000000000000";
mapx0[3] = "0111111111111011110000000000000000000000000000000000000000000000";
mapx0[4] = "0111111111111011210000000000000000131000012100001110001110000000";
mapx0[5] = "0111111110000011210011111112110000121011011101101230001910000000";
mapx0[6] = "0000000000000011110011111111210000111000012100001110001110000000";
mapx0[7] = "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[8] = "0000000000000000000000000000010000010000000000000100000100000000";
mapx0[9] = "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[10] = "0000000000000000000000000000111000111000000000001110001210000000";
mapx0[11] = "0000000000000000000000000000121010123000000000001210101111111111";
mapx0[12] = "0000000000000000000000000000111000111000000000001310001210000000";
mapx0[13] = "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[14] = "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[15] = "0000000000000000000000000000000000000000000000000000000000000000";
enmypos0 = "0000000000000000000000000000000000000000000000000000000000000000";
yukax0[0] = "215,255,396,3b6,3e6,5e6,000,000,000,000,000,000,000,000,000,000";
yukax0[1] = "306,506,546,566,586,5a6,5c6,8d1,ac8,000,000,000,000,000,000,000";
yukax0[2] = "b01,a28,831,428,561,571,498,5d1,5e1,000,000,000,000,000,000,000";
yukax0[3] = "408,811,a08,b41,a68,871,468,b92,ba2,bb2,bc2,bd2,be2,bf2,000,000";
mapx0[0] = mapx0[0] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[1] = mapx0[1] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[2] = mapx0[2] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[3] = mapx0[3] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[4] = mapx0[4] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[5] = mapx0[5] + "0000000000000000000000000000000001110000000000000000000000000000";
mapx0[6] = mapx0[6] + "0000000000000000000000000000000001310001201200000000000000000011";
mapx0[7] = mapx0[7] + "0000000000001111011211001110111101210001101100000000000000211011";
mapx0[8] = mapx0[8] + "0000000000001231000000000000112100000120000012000000000000131000";
mapx0[9] = mapx0[9] + "1110000000001231000000000000112100000110000011000000011010112000";
mapx0[10] = mapx0[10] + "1111111122111111181100121000111101210000000000120000012000000000";
mapx0[11] = mapx0[11] + "1110000000000000000000000000000001310000000000110000000000000000";
mapx0[12] = mapx0[12] + "0000000000000000000000000000000001110000000000001200110000000000";
mapx0[13] = mapx0[13] + "0000000000000000000000000000000000000000000000001100111111111119";
mapx0[14] = mapx0[14] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[15] = mapx0[15] + "0000000000000000000000000000000000000000000000000000000000000000";
enmypos0 = enmypos0 + "0000000000000000000000000000000000000000000000000000000000000000";
yukax0[4] = "908,a32,a42,a52,a62,a72,a82,a92,aa2,ab2,7c5,000,000,000,000,000";
yukax0[5] = "712,722,732,742,752,782,792,7a2,a02,a12,a22,a32,a62,a72,a82,7c5";
yukax0[6] = "518,a18,856,676,6a6,8c6,ae6,000,000,000,000,000,000,000,000,000";
yukax0[7] = "c06,c46,956,981,7a8,6e6,d62,d72,d82,d92,da2,db2,dc2,dd2,de2,df1";
mapx0[0] = mapx0[0] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[1] = mapx0[1] + "0000000000000000000000000000000000000000000000000000000012001100";
mapx0[2] = mapx0[2] + "0000000000000000000000000011110100100100100000000000000011001200";
mapx0[3] = mapx0[3] + "0000000000000000000000000013210000000000000000000000000000000000";
mapx0[4] = mapx0[4] + "0000000000000000000011110012310000000000000000000000000120000110";
mapx0[5] = mapx0[5] + "0000000000000000000013210011110000000000100000000000000110000120";
mapx0[6] = mapx0[6] + "0110011001100000000012310000000000000000000000000000000000000000";
mapx0[7] = mapx0[7] + "0110011001100000000011110000000000000000000000000000001200000011";
mapx0[8] = mapx0[8] + "0000000000000000000000000000000000000000100000000000001100000011";
mapx0[9] = mapx0[9] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[10] = mapx0[10] + "0000000012100117001210000000000000000000000000000000000000000000";
mapx0[11] = mapx0[11] + "0000000011100131001110000000000000000000111211321132111100000000";
mapx0[12] = mapx0[12] + "0000000012100111001210000000000000000000000000000000000000000000";
mapx0[13] = mapx0[13] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[14] = mapx0[14] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[15] = mapx0[15] + "0000000000000000000000000000000000000000000000000000000000000000";
enmypos0 = enmypos0 + "0000000000000000000000000000000000000000000000000000000000000000";
yukax0[8] = "616,656,696,a88,ad8,000,000,000,000,000,000,000,000,000,000,000";
yukax0[9] = "a28,445,2a5,2f1,000,000,000,000,000,000,000,000,000,000,000,000";
yukax0[10] = "221,251,281,581,881,b81,b92,ba2,bb2,bc2,bd2,be2,bf2,000,000,000";
yukax0[11] = "b02,b12,b22,b32,b42,b52,b62,b71,766,476,186,1c6,4d6,7e6,000,000";
mapx0[0] = mapx0[0] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[1] = mapx0[1] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[2] = mapx0[2] + "0000000000000000000111100000000000000000000000000000000000000000";
mapx0[3] = mapx0[3] + "0000000000000000000111100000000000000000000000000000000000000000";
mapx0[4] = mapx0[4] + "0000000000000000000111100000000000000000000000000000000000000000";
mapx0[5] = mapx0[5] + "0000000000000000000111111110000000000000000000000000000000000000";
mapx0[6] = mapx0[6] + "0000000000001000111100011110000000000000000000000000000000000000";
mapx0[7] = mapx0[7] + "1111161111111100111100011110000000000000000000000000000000000000";
mapx0[8] = mapx0[8] + "1111111111111100111100011110000000000000000000000000000000000000";
mapx0[9] = mapx0[9] + "0000000000009000111111110000000000000000000000000000000000000000";
mapx0[10] = mapx0[10] + "0000000000000000000011110000000000000000000000000000000000000000";
mapx0[11] = mapx0[11] + "0000000000000000000011110000000000000000000000000000000000000000";
mapx0[12] = mapx0[12] + "0000000000000000000011110000000000000000000000000000000000000000";
mapx0[13] = mapx0[13] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[14] = mapx0[14] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[15] = mapx0[15] + "0000000000000000000000000000000000000000000000000000000000000000";
enmypos0 = enmypos0 + "0000000000000000000000000000000000000000000000000000000000000000";
yukax0[12] = "707,727,747,767,787,7a7,7c6,6c1,9c1,000,000,000,000,000,000,000";
yukax0[13] = "605,235,575,945,000,000,000,000,000,000,000,000,000,000,000,000";
yukax0[14] = "000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000";
yukax0[15] = "000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000";
stagex = 2;
_root.bg2._alpha = 100;
_root.bg1._visible = 0;
_root.bg3._visible = 0;
_root.bg4._visible = 0;
Frame 57
gotoAndPlay("start0");
Frame 59
mapx0 = new Array();
yukax0 = new Array();
enmyx0 = new Array();
mapx0[0] = "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[1] = "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[2] = "0111111110000000000000000000000011110012000000000000000000000000";
mapx0[3] = "0111111111111011001101100120110011110011000000000000000000000000";
mapx0[4] = "0111111111111011001101100120110011210000000000000000000000000000";
mapx0[5] = "0111111110000000000000000000000011110000000000000021001100120010";
mapx0[6] = "0000000000000000000000000000000000001111000000210011000000000010";
mapx0[7] = "0000000000000000000000000000000000001311001200110000000000000000";
mapx0[8] = "0000000000000000000000000000000011001131001100000000000000000000";
mapx0[9] = "0000000000000000000000000000000021001111000000000000000000000010";
mapx0[10] = "0000000000000000000000000000000000000000000000000000000000000010";
mapx0[11] = "0000000000000000000000000000000000000110000000000000000000000000";
mapx0[12] = "0000000000000000000000000000000000000190000000000000000000000000";
mapx0[13] = "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[14] = "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[15] = "0000000000000000000000000000000000000000000000000000000000000000";
enmypos0 = "0000000000000000000000000000000000000000000000000000000000000000";
yukax0[0] = "215,255,396,3b6,3e6,000,000,000,000,000,000,000,000,000,000,000";
yukax0[1] = "326,356,396,3c6,000,000,000,000,000,000,000,000,000,000,000,000";
yukax0[2] = "205,806,645,266,b56,7a6,6e6,000,000,000,000,000,000,000,000,000";
yukax0[3] = "526,561,571,5a1,5b1,5e1,6e1,9e1,ae1,000,000,000,000,000,000,000";
mapx0[0] = mapx0[0] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[1] = mapx0[1] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[2] = mapx0[2] + "0000000000000000000000000000000000000000000000001112001200190000";
mapx0[3] = mapx0[3] + "0000000000000000000112000112000011200000000000001181001100110000";
mapx0[4] = mapx0[4] + "0000000000000000000181101181100118100000000000001311000000000000";
mapx0[5] = mapx0[5] + "0000000000000000000111000111000011100000000111211111000000000000";
mapx0[6] = mapx0[6] + "0000000000000000000010000000000001000000000118100000001200120011";
mapx0[7] = mapx0[7] + "0000000000000000000000000000000000000000000131100000001100110011";
mapx0[8] = mapx0[8] + "0000000000000000000010000000000000000011121111200000000000000000";
mapx0[9] = mapx0[9] + "0111000111000111000112000000000001000011810000000000000000000000";
mapx0[10] = mapx0[10] + "1111101131101131101181000000000011100013110000000000000000000000";
mapx0[11] = mapx0[11] + "0111000111000111000111000000000018110011110000000000000000000000";
mapx0[12] = mapx0[12] + "0000000000000000000000000000000021100000000000000000000000000000";
mapx0[13] = mapx0[13] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[14] = mapx0[14] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[15] = mapx0[15] + "0000000000000000000000000000000000000000000000000000000000000000";
enmypos0 = enmypos0 + "0000000000000000000000000000000000000000000000000000000000000000";
yukax0[4] = "a01,918,a41,a61,978,aa1,ac1,9d8,000,000,000,000,000,000,000,000";
yukax0[5] = "a01,a21,938,841,641,338,461,481,398,4c1,4f1,000,000,000,000,000";
yukax0[6] = "611,911,a08,b31,865,5b5,308,000,000,000,000,000,000,000,000,000";
yukax0[7] = "205,266,666,2a6,6a6,6e6,000,000,000,000,000,000,000,000,000,000";
mapx0[0] = mapx0[0] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[1] = mapx0[1] + "0000000000000121111111111111111100120000000000000000000000000000";
mapx0[2] = mapx0[2] + "0000011001100110000000000000001100110011000000000000000000000000";
mapx0[3] = mapx0[3] + "0000012001100000000000000000000000000011000000000000000000000000";
mapx0[4] = mapx0[4] + "0001100000000000000000000000001100000000110000000000000000000000";
mapx0[5] = mapx0[5] + "0001100000000000000000000000001100000000110000000000000000000000";
mapx0[6] = mapx0[6] + "0110012000001200000011810011320011012000000000001111000000000000";
mapx0[7] = mapx0[7] + "0110011011001100000011810011310011011000000000001181001200110011";
mapx0[8] = mapx0[8] + "0001100011000000001100000000000000000000110012001181001100110011";
mapx0[9] = mapx0[9] + "0001100000000000001200000000000000000000110011001111000000000000";
mapx0[10] = mapx0[10] + "0000000000000000110000000001100000000011000000000000000000000000";
mapx0[11] = mapx0[11] + "0000000000000000120000000001200000000011000000000000000000000000";
mapx0[12] = mapx0[12] + "0001201100120011000000000000011001200000000000000000000000000000";
mapx0[13] = mapx0[13] + "0001101100110011000000000000011001100011001200000000000000000000";
mapx0[14] = mapx0[14] + "0000000000000000000000000000000000000011001100000000000000000000";
mapx0[15] = mapx0[15] + "0000000000000000000000000000000000000000000000000000000000000000";
enmypos0 = enmypos0 + "0000000000000000000000000000000000000000000000000000000000000000";
yukax0[8] = "616,436,836,c36,256,656,c66,786,296,ca6,ce6,6c6,1d6,000,000,000";
yukax0[9] = "a06,826,646,666,6a6,6c6,ab6,cd6,4e6,1e6,000,000,000,000,000,000";
yukax0[10] = "606,c16,126,636,266,486,886,a66,d66,da6,8c6,000,000,000,000,000";
yukax0[11] = "605,766,7a6,7e6,000,000,000,000,000,000,000,000,000,000,000,000";
mapx0[0] = mapx0[0] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[1] = mapx0[1] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[2] = mapx0[2] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[3] = mapx0[3] + "0000000000000000700000000000000000000000000000000000000000000000";
mapx0[4] = mapx0[4] + "0000000000000000111111110000000000000000000000000000000000000000";
mapx0[5] = mapx0[5] + "0000000000000000111111110000000000000000000000000000000000000000";
mapx0[6] = mapx0[6] + "0000000000001000111111110000000000000000000000000000000000000000";
mapx0[7] = mapx0[7] + "1111111111111100111111110000000000000000000000000000000000000000";
mapx0[8] = mapx0[8] + "1111111111111100111111110000000000000000000000000000000000000000";
mapx0[9] = mapx0[9] + "0000000000009000111111110000000000000000000000000000000000000000";
mapx0[10] = mapx0[10] + "0000000000000000111111110000000000000000000000000000000000000000";
mapx0[11] = mapx0[11] + "0000000000000000111111110000000000000000000000000000000000000000";
mapx0[12] = mapx0[12] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[13] = mapx0[13] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[14] = mapx0[14] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[15] = mapx0[15] + "0000000000000000000000000000000000000000000000000000000000000000";
enmypos0 = enmypos0 + "0000000000000000000000000000000000000000000000000000000000000000";
yukax0[12] = "706,726,746,766,786,7a6,7c6,6c1,9c1,000,000,000,000,000,000,000";
yukax0[13] = "406,426,446,466,606,626,646,666,806,826,846,866,a06,a26,a46,a66";
yukax0[14] = "000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000";
yukax0[15] = "000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000";
stagex = 3;
_root.bg3._alpha = 100;
_root.bg2._visible = 0;
_root.bg1._visible = 0;
_root.bg4._visible = 0;
Frame 60
gotoAndPlay("start0");
Frame 62
mapx0 = new Array();
yukax0 = new Array();
enmyx0 = new Array();
mapx0[0] = "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[1] = "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[2] = "0111111111111011011170011710111171110000000000000000000000000000";
mapx0[3] = "0111111111111011011111111110111111110000012000000120000000000000";
mapx0[4] = "0111111111111011011111111110111111110000011000000110000000000000";
mapx0[5] = "0111111111111011011170011710111171111000000000000000000000000111";
mapx0[6] = "0000000000000000000000000000000000011111001111001111000000000191";
mapx0[7] = "0000000000000000000000000000000000001111001117001111000000000111";
mapx0[8] = "0000000000000000000000000000000000001111001171001111011110000000";
mapx0[9] = "0000000000000000000000000000000000001111001111001111011710111111";
mapx0[10] = "0000000000000000000000000000000000000000000000000000011710111111";
mapx0[11] = "0000000000000000000000000000000000000110000001100000011110111111";
mapx0[12] = "0000000000000000000000000000000000000120000001200000000000000000";
mapx0[13] = "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[14] = "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[15] = "0000000000000000000000000000000000000000000000000000000000000000";
enmypos0 = "0000000000000000000000000000000000000000000000000000000000000000";
yukax0[0] = "215,255,295,2e6,4e6,000,000,000,000,000,000,000,000,000,000,000";
yukax0[1] = "215,356,275,2c5,000,000,000,000,000,000,000,000,000,000,000,000";
yukax0[2] = "205,541,631,645,b57,6a5,397,bd7,000,000,000,000,000,000,000,000";
yukax0[3] = "605,317,855,9a8,5d8,9d8,000,000,000,000,000,000,000,000,000,000";
mapx0[0] = mapx0[0] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[1] = mapx0[1] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[2] = mapx0[2] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[3] = mapx0[3] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[4] = mapx0[4] + "0000000000000000000000000000000000000000000000000000000011110000";
mapx0[5] = mapx0[5] + "0000000000000000000000000000000000000111000000000000111111110000";
mapx0[6] = mapx0[6] + "0000000000000000000000000000000000000191000000000000111112130120";
mapx0[7] = mapx0[7] + "00000000000000000a00a00a00a00a0000000111000000000000111111110110";
mapx0[8] = mapx0[8] + "0000000000000000000000000000000000000000000000000000121100000000";
mapx0[9] = mapx0[9] + "1110111011101170111117000111111001110171011100001111000000001211";
mapx0[10] = mapx0[10] + "1110111011101110111131010113117001a101a101a101101111011011111111";
mapx0[11] = mapx0[11] + "1110111011101170111111000711111001110171011101101111012012131111";
mapx0[12] = mapx0[12] + "0000000000000000000000000000000000000000000000001111000011111111";
mapx0[13] = mapx0[13] + "00000000000000000a00a00a00a00a0000000000000000000000000011110000";
mapx0[14] = mapx0[14] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[15] = mapx0[15] + "0000000000000000000000000000000000000000000000000000000000000000";
enmypos0 = enmypos0 + "0000000000000000000000000000000000000000000000000000000000000000";
yukax0[4] = "908,948,988,9c8,791,d91,7c1,dc1,000,000,000,000,000,000,000,000";
yukax0[5] = "908,938,a71,998,9c8,711,d11,741,d41,771,d71,7a1,da1,7d1,dd1,000";
yukax0[6] = "918,558,958,998,ad7,000,000,000,000,000,000,000,000,000,000,000";
yukax0[7] = "909,549,a57,489,a89,6d7,9c9,000,000,000,000,000,000,000,000,000";
mapx0[0] = mapx0[0] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[1] = mapx0[1] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[2] = mapx0[2] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[3] = mapx0[3] + "0000000000000000000000000070000000000000000000000000007070000000";
mapx0[4] = mapx0[4] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[5] = mapx0[5] + "1111000000000000000000000000000000000000000000000000000000000000";
mapx0[6] = mapx0[6] + "111100000011100013100012100000000a1a1a1a1a1a1a00aaaa000000000000";
mapx0[7] = mapx0[7] + "11110111111a11111a11111a1111110011111711311111001111110011110011";
mapx0[8] = mapx0[8] + "11110111a11111a11111a11111a1110011111711113111001111110011110011";
mapx0[9] = mapx0[9] + "000000011100013100011100012100000a1a1a1a1a1a1a00aaaa000000000000";
mapx0[10] = mapx0[10] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[11] = mapx0[11] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[12] = mapx0[12] + "0000000000000000000000070000000000000000000000000000070700000000";
mapx0[13] = mapx0[13] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[14] = mapx0[14] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[15] = mapx0[15] + "0000000000000000000000000000000000000000000000000000000000000000";
enmypos0 = enmypos0 + "0000000000000000000000000000000000000000000000000000000000000000";
yukax0[8] = "509,756,778,6a8,7d8,000,000,000,000,000,000,000,000,000,000,000";
yukax0[9] = "608,738,668,798,7c6,000,000,000,000,000,000,000,000,000,000,000";
yukax0[10] = "706,611,911,625,665,6a5,000,000,000,000,000,000,000,000,000,000";
yukax0[11] = "605,746,786,7a6,7e6,000,000,000,000,000,000,000,000,000,000,000";
mapx0[0] = mapx0[0] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[1] = mapx0[1] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[2] = mapx0[2] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[3] = mapx0[3] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[4] = mapx0[4] + "0000000000000000111111110000000000000000000000000011111111000000";
mapx0[5] = mapx0[5] + "0000000000000000111111110000000000000000000000000011111111000000";
mapx0[6] = mapx0[6] + "0000000000010000111111110000000000000000000000000011111111000000";
mapx0[7] = mapx0[7] + "1111111111110011111111110000000000000000000000000011111111000000";
mapx0[8] = mapx0[8] + "1111111111110011111111110000000000000000000000000011111111000000";
mapx0[9] = mapx0[9] + "0000000000090000111111110000000000000000000000000011111111000000";
mapx0[10] = mapx0[10] + "0000000000000000111111110000000000000000000000000011111111000000";
mapx0[11] = mapx0[11] + "0000000000000000111111110000000000000000000000000011111111000000";
mapx0[12] = mapx0[12] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[13] = mapx0[13] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[14] = mapx0[14] + "0000000000000000000000000000000000000000000000000000000000000000";
mapx0[15] = mapx0[15] + "0000000000000000000000000000000000000000000000000000000000000000";
enmypos0 = enmypos0 + "0000000000000000000000000000000000000000000000000000000000000000";
yukax0[12] = "706,726,746,766,786,7a6,7e6,6b1,9b1,000,000,000,000,000,000,000";
yukax0[13] = "205,605,a05,000,000,000,000,000,000,000,000,000,000,000,000,000";
yukax0[14] = "000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000";
yukax0[15] = "429,829,469,869,000,000,000,000,000,000,000,000,000,000,000,000";
stagex = 4;
_root.bg4._alpha = 100;
_root.bg2._visible = 0;
_root.bg3._visible = 0;
_root.bg1._visible = 0;
Frame 63
gotoAndPlay("start0");
Frame 65
_root.map_s.removeMovieClip();
_root.player_s.removeMovieClip();
_root.miss_on = -20;
zanki--;
bossmode = 0;
bosshp = 0;
_root.bgm1.gotoAndPlay("end");
if (zanki < 1) {
zanki = 3;
this.gotoandplay("theend");
}
Frame 76
gotoAndPlay("start");
Frame 77
old_x = _root.map_s._x;
old_y = _root.map_s._y;
px0 = px;
py0 = py;
dxy = 1;
mx = 0;
my = 0;
if (!((Key.isDown(68) && (Key.isDown(88))) || (Key.isDown(67)))) {
if (!((Key.isDown(65) && (Key.isDown(88))) || (Key.isDown(90)))) {
if (!((Key.isDown(65) && (Key.isDown(87))) || (Key.isDown(81)))) {
if (!((Key.isDown(68) && (Key.isDown(87))) || (Key.isDown(69)))) {
if (!Key.isDown(68)) {
if (!Key.isDown(65)) {
if (!Key.isDown(88)) {
if (Key.isDown(87)) {
dxy = 10;
mx = 0;
my = -1;
}
} else {
dxy = 10;
mx = 0;
my = 1;
}
} else {
dxy = 10;
mx = -1;
my = 0;
}
} else {
dxy = 10;
mx = 1;
my = 0;
}
} else {
dxy = 7;
mx = 1;
my = -1;
}
} else {
dxy = 7;
mx = -1;
my = -1;
}
} else {
dxy = 7;
mx = -1;
my = 1;
}
} else {
dxy = 7;
mx = 1;
my = 1;
}
if (Key.isDown(77) && (jump_on == 0)) {
jump_on = 21;
}
if (0 >= jump_on) {
if (jump_on >= 0) {
rakka1 = 0;
_root.player_s.player._y = 160;
} else {
_root.map_s.player_fall._y = _root.map_s.player_fall._y - dy;
_root.map_s.player_fall._y = _root.map_s.player_fall._y + ((my * dxy) / 4);
_root.map_s.player_fall._x = _root.map_s.player_fall._x + ((mx * dxy) / 4);
dy--;
dxy = 1;
mx = 0;
my = 0;
}
} else {
_root.player_s.player._y = _root.player_s.player._y - (jump_on - 11);
jump_on--;
rakka1 = 1;
}
if (Key.isDown(78)) {
mx2 = 0;
my2 = 0;
}
if (0 < tobashi) {
tobashi--;
_root.map_s._x = _root.map_s._x - (((mx2 * tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((my2 * tobashi) * 2) / 10);
}
k = 0;
for ( ; k < dxy ; k++) {
_root.map_s._x = _root.map_s._x - (mx / 2);
_root.map_s._y = _root.map_s._y - (my / 2);
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (15 < py0) {
py0 = 15;
}
if (_root.map_s.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
_root.player_s.player_kage.gotoandstop(1);
} else if (!((rakka1 == 0) && (tobashi == 0))) {
_root.player_s.player_kage.gotoandstop("kesu");
if ((jump_on == 1) || (tobashi == 1)) {
j = Math.floor(py0 / 2);
i = Math.floor(px0 / 2);
_root.player_s._y = 400;
_root.map_s.character1.duplicateMovieClip("player_fall", (6000 + ((j - (i * 8)) * 2)) - 1);
_root.map_s.player_fall.gotoandplay("tatu");
_root.map_s.player_fall._x = (240 - 32) - _root.map_s._x;
_root.map_s.player_fall._y = (_root.player_s.player._y - _root.map_s._y) + 56;
k = 100;
dy = jump_on - 12;
jump_on = -10;
}
} else {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
}
if ((_root.map_s.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == 2) && ((Math.floor(py0) % 2) == 1)) {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
}
}
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
if ((Math.floor(px) < Math.floor(px0)) && ((Math.floor(px0) % 2) == 0)) {
i = (Math.floor(px0) / 2) - 8;
if (i < 0) {
i = 0;
}
if (255 < i) {
i = 255;
}
j = 0;
for ( ; j < 8 ; j++) {
obj_n = (i * 8) + j;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
i = (Math.floor(px0) / 2) + 12;
if (i < 0) {
i = 0;
}
if (255 < i) {
i = 255;
}
j = 0;
for ( ; j < 8 ; j++) {
obj_n = (i * 8) + j;
map_obj_name = "map_object" + obj_n;
obj_k = _root.map_s.mapx[j].charAt(i);
_root.map_s.map_object.duplicateMovieClip(map_obj_name, 6000 + ((j - (i * 8)) * 2));
if (obj_k != "1") {
if (obj_k == "2") {
eval ("_root.map_s." + map_obj_name).gotoandplay("yuka2");
}
} else {
eval ("_root.map_s." + map_obj_name).gotoandplay("yuka1");
}
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
obj_k = _root.map_s.mapx[8].charAt(i);
if (obj_k == "1") {
map_obj_name = "ball" + _root.enmy_n;
j = 3;
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
if (36 < _root.enmy_n) {
_root.enmy_n = 0;
}
}
}
if ((Math.floor(px0) < Math.floor(px)) && ((Math.floor(px) % 2) == 0)) {
i = (Math.floor(px) / 2) + 12;
if (i < 0) {
i = 0;
}
if (255 < i) {
i = 255;
}
j = 0;
for ( ; j < 8 ; j++) {
obj_n = (i * 8) + j;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
i = (Math.floor(px) / 2) - 8;
if (i < 0) {
i = 0;
}
if (255 < i) {
i = 255;
}
j = 0;
for ( ; j < 8 ; j++) {
obj_n = (i * 8) + j;
map_obj_name = "map_object" + obj_n;
obj_k = _root.map_s.mapx[j].charAt(i);
_root.map_s.map_object.duplicateMovieClip(map_obj_name, 6000 + ((j - (i * 8)) * 2));
if (obj_k != "1") {
if (obj_k == "2") {
eval ("_root.map_s." + map_obj_name).gotoandplay("yuka2");
}
} else {
eval ("_root.map_s." + map_obj_name).gotoandplay("yuka1");
}
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
px = px0;
py = py0;
Frame 78
rate = Math.round(10000 / (getTimer() - tm)) / 10;
tm = getTimer();
Frame 79
stop();
Frame 93
stop();
Frame 95
_root.bgm1.gotoAndPlay("end");
Frame 96
_root.map_s.removeMovieClip();
_root.player_s.removeMovieClip();
_root.miss_on = -20;
_root.score = _root.score + Math.floor((zanki * 10000) + ((jikan * 2) / 3));
_root.bossmode = 0;
_root.bosshp = 0;
_root.bgm1.gotoAndPlay("end");
Frame 109
stop();
Frame 110
zanki = 3;
score = 0;
sp = 0;
Frame 111
gotoAndPlay("start");
Frame 113
px = 5.5;
py = 8.5;
flag1 = 0;
flag2 = 0;
jump_on = 0;
enmy_n = 1;
enmy_n0 = 0;
eball_n = 1;
arrow_n = 5;
yuka_n = 0;
mx2 = 0;
my2 = 0;
tobashi = 0;
jump_on = 0;
miss_on = 0;
rakka_ball_n = 0;
startx = 0;
starty = 0;
if (Key.isDown(81)) {
startx = 192;
starty = 4;
}
zanki = 3;
sp = 0;
homsp = 1;
Frame 114
mapx = new Array();
yukax = new Array();
enmyx = new Array();
i = 0;
for ( ; 15 >= i ; i++) {
mapx[i] = mapx0[i];
yukax[i] = yukax0[i];
}
enmypos = enmypos0;
px = 5.5;
py = 8.5;
flag1 = 0;
jump_on = 0;
enmy_n = 1;
eball_n = 1;
enmy_n0 = 0;
miss_on = 0;
mx2 = 0;
my2 = 0;
tobashi = 0;
jump_on = 0;
window_on = 0;
if (stagex != 1) {
if (stagex != 2) {
if (stagex != 3) {
_root.map_os4.duplicateMovieClip("map_s", 5);
} else {
_root.map_os3.duplicateMovieClip("map_s", 5);
}
} else {
_root.map_os2.duplicateMovieClip("map_s", 5);
}
} else {
_root.map_os.duplicateMovieClip("map_s", 5);
}
Frame 125
ix = Math.max(0, Math.floor(startx / 16) - 1);
for ( ; ix < (Math.floor(startx / 16) + 2) ; ix++) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
if (sp == 0) {
sp = 1;
}
homsp = 1;
if (charan != 1) {
if (charan != 2) {
if (charan != 3) {
_root.map_s.player4.duplicateMovieClip("player1", 250001);
} else {
_root.map_s.player3.duplicateMovieClip("player1", 250001);
}
} else {
_root.map_s.player2.duplicateMovieClip("player1", 250001);
}
} else {
_root.map_s.player0.duplicateMovieClip("player1", 250001);
}
_root.map_s.player1.swapDepths(250001);
_root.map_s.player1.player.gotoandstop("tatu1");
_root.map_s.player1._x = -32;
_root.map_s.player1._y = 56;
_root.map_s._x = _root.map_s._x - ((startx * 32) + (starty * 32));
_root.map_s._y = _root.map_s._y - (((startx * -1) * 32) + (starty * 32));
_root.map_s.player1._x = _root.map_s.player1._x + ((startx * 32) + (starty * 32));
_root.map_s.player1._y = _root.map_s.player1._y + (((startx * -1) * 32) + (starty * 32));
_root.enmy_n0 = 0;
_root.map_s._x = _root.map_s._x + 480;
_root.map_s._y = _root.map_s._y + 360;
jikan = 400 * 30;
_root.map_s.lifetxt._x = _root.map_s.player1._x + 80;
_root.map_s.lifetxt._y = _root.map_s.player1._y - 56;
_root.map_s.scoretxt._x = _root.map_s.player1._x + 160;
_root.map_s.scoretxt._y = _root.map_s.player1._y - 56;
_root.map_s.timetxt._x = _root.map_s.player1._x + 400;
_root.map_s.timetxt._y = _root.map_s.player1._y - 56;
Frame 146
_root.map_s._x = _root.map_s._x - 480;
_root.map_s._y = _root.map_s._y - 360;
bossmode = 0;
bosshp = 0;
jikan = 400 * 30;
if (stagex != 1) {
if (stagex != 2) {
if (stagex != 2) {
if (stagex != 3) {
if (stagex == 4) {
_root.bg4.bg4a._x = (((_root.map_s._x / 4) % 36) + 36) % 36;
_root.bg4.bg4a._y = ((((_root.map_s._y / 4) - (12 * math.floor((_root.map_s._x / 4) / 36))) % 720) + 720) % 720;
_root.bg4.bg4b._x = (((_root.map_s._x / 4) % 40) + 40) % 40;
_root.bg4.bg4b._y = (((_root.map_s._y / 4) % 720) + 720) % 720;
_root.bg4.bg4c._x = (_root.map_s._x / 8) % 480;
_root.bg4.bg4c._y = (_root.map_s._y / 8) % 360;
_root.bg4.bg4d.gotoandplay("a0");
}
}
} else {
_root.bg2._x = (_root.map_s._x / 8) % 360;
_root.bg2._y = (_root.map_s._y / 8) % 480;
}
} else {
_root.bg2.bg2a._x = ((((_root.map_s._x / 8) - (300 * math.floor((_root.map_s._y / 8) / 360))) % 480) + 480) % 480;
_root.bg2.bg2a._y = (((_root.map_s._y / 8) % 360) + 360) % 360;
_root.bg2.bg2b._x = (((_root.map_s._x / 4) % 480) + 480) % 480;
_root.bg2.bg2b._y = ((((_root.map_s._y / 4) + (230 * math.floor((_root.map_s._x / 4) / 480))) % 360) + 360) % 360;
_root.map_s.bossrope0.swapDepths((50000 - (((213 + 16) - 7) * 100)) + 7);
_root.map_s.bossrope0.gotoAndPlay(1);
}
} else {
_root.bg1._x = (_root.map_s._x / 8) % 320;
_root.bg1._y = (_root.map_s._y / 8) % 240;
}
_root.bgm1.gotoAndPlay("play1");
Frame 152
gotoAndPlay("move_on");
Frame 158
stop();
Frame 164
gotoAndPlay("title0");
Frame 165
stop();
Symbol 128 MovieClip [Button1] Frame 35
stop();
Symbol 128 MovieClip [Button1] Frame 69
stop();
Symbol 128 MovieClip [Button1] Frame 102
stop();
Symbol 128 MovieClip [Button1] Frame 134
stop();
Symbol 128 MovieClip [Button1] Frame 166
stop();
Symbol 128 MovieClip [Button1] Frame 198
stop();
Symbol 128 MovieClip [Button1] Frame 230
stop();
Symbol 128 MovieClip [Button1] Frame 262
stop();
Symbol 128 MovieClip [Button1] Frame 263
stop();
Symbol 144 MovieClip [tstop] Frame 4
stop();
Symbol 144 MovieClip [tstop] Frame 9
stop();
Symbol 144 MovieClip [tstop] Frame 13
stop();
Symbol 1978 MovieClip [bnm4] Frame 3
stop();
Symbol 1978 MovieClip [bnm4] Frame 20
stop();
Symbol 1978 MovieClip [bnm4] Frame 37
stop();
Instance of Symbol 54 MovieClip [tennsuubonus] in Symbol 1978 MovieClip [bnm4] Frame 521
onClipEvent (load) {
dig = 6;
name = "_root.zanki";
name2 = "_root.jikan";
text1 = "";
this.swapDepths(60004);
}
onClipEvent (enterFrame) {
text1 = "";
num = String((10000 * Math.floor(parseFloat(eval (name)))) + Math.floor((2 / 3) * parseFloat(eval (name2))));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Symbol 1978 MovieClip [bnm4] Frame 522
stop();
Instance of Symbol 54 MovieClip [tennsuubonus] in Symbol 1978 MovieClip [bnm4] Frame 1036
onClipEvent (load) {
dig = 6;
name = "_root.zanki";
name2 = "_root.jikan";
text1 = "";
this.swapDepths(60004);
}
onClipEvent (enterFrame) {
text1 = "";
num = String((10000 * Math.floor(parseFloat(eval (name)))) + Math.floor((2 / 3) * parseFloat(eval (name2))));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Symbol 1978 MovieClip [bnm4] Frame 1037
stop();
Instance of Symbol 54 MovieClip [tennsuubonus] in Symbol 1978 MovieClip [bnm4] Frame 1611
onClipEvent (load) {
dig = 6;
name = "_root.zanki";
name2 = "_root.jikan";
text1 = "";
this.swapDepths(60004);
}
onClipEvent (enterFrame) {
text1 = "";
num = String((10000 * Math.floor(parseFloat(eval (name)))) + Math.floor((2 / 3) * parseFloat(eval (name2))));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Symbol 1978 MovieClip [bnm4] Frame 1612
stop();
Instance of Symbol 54 MovieClip [tennsuubonus] in Symbol 1978 MovieClip [bnm4] Frame 2096
onClipEvent (load) {
dig = 6;
name = "_root.zanki";
name2 = "_root.jikan";
text1 = "";
this.swapDepths(60004);
}
onClipEvent (enterFrame) {
text1 = "";
num = String((10000 * Math.floor(parseFloat(eval (name)))) + Math.floor((2 / 3) * parseFloat(eval (name2))));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Symbol 1978 MovieClip [bnm4] Frame 2097
stop();
Symbol 1978 MovieClip [bnm4] Frame 2098
stop();
Symbol 1252 MovieClip [bnm3] Frame 4
stop();
Instance of Symbol 54 MovieClip [tennsuubonus] in Symbol 1252 MovieClip [bnm3] Frame 488
onClipEvent (load) {
dig = 6;
name = "_root.zanki";
name2 = "_root.jikan";
text1 = "";
this.swapDepths(60004);
}
onClipEvent (enterFrame) {
text1 = "";
num = String((10000 * Math.floor(parseFloat(eval (name)))) + Math.floor((2 / 3) * parseFloat(eval (name2))));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Symbol 1252 MovieClip [bnm3] Frame 489
stop();
Instance of Symbol 54 MovieClip [tennsuubonus] in Symbol 1252 MovieClip [bnm3] Frame 1003
onClipEvent (load) {
dig = 6;
name = "_root.zanki";
name2 = "_root.jikan";
text1 = "";
this.swapDepths(60004);
}
onClipEvent (enterFrame) {
text1 = "";
num = String((10000 * Math.floor(parseFloat(eval (name)))) + Math.floor((2 / 3) * parseFloat(eval (name2))));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Symbol 1252 MovieClip [bnm3] Frame 1004
stop();
Instance of Symbol 54 MovieClip [tennsuubonus] in Symbol 1252 MovieClip [bnm3] Frame 1578
onClipEvent (load) {
dig = 6;
name = "_root.zanki";
name2 = "_root.jikan";
text1 = "";
this.swapDepths(60004);
}
onClipEvent (enterFrame) {
text1 = "";
num = String((10000 * Math.floor(parseFloat(eval (name)))) + Math.floor((2 / 3) * parseFloat(eval (name2))));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Symbol 1252 MovieClip [bnm3] Frame 1579
stop();
Instance of Symbol 54 MovieClip [tennsuubonus] in Symbol 1252 MovieClip [bnm3] Frame 2063
onClipEvent (load) {
dig = 6;
name = "_root.zanki";
name2 = "_root.jikan";
text1 = "";
this.swapDepths(60004);
}
onClipEvent (enterFrame) {
text1 = "";
num = String((10000 * Math.floor(parseFloat(eval (name)))) + Math.floor((2 / 3) * parseFloat(eval (name2))));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Symbol 1252 MovieClip [bnm3] Frame 2064
stop();
Symbol 1252 MovieClip [bnm3] Frame 2065
stop();
Symbol 20 MovieClip [bnm2] Frame 4
stop();
Instance of Symbol 54 MovieClip [tennsuubonus] in Symbol 20 MovieClip [bnm2] Frame 488
onClipEvent (load) {
dig = 6;
name = "_root.zanki";
name2 = "_root.jikan";
text1 = "";
this.swapDepths(60004);
}
onClipEvent (enterFrame) {
text1 = "";
num = String((10000 * Math.floor(parseFloat(eval (name)))) + Math.floor((2 / 3) * parseFloat(eval (name2))));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Symbol 20 MovieClip [bnm2] Frame 489
stop();
Instance of Symbol 54 MovieClip [tennsuubonus] in Symbol 20 MovieClip [bnm2] Frame 1003
onClipEvent (load) {
dig = 6;
name = "_root.zanki";
name2 = "_root.jikan";
text1 = "";
this.swapDepths(60004);
}
onClipEvent (enterFrame) {
text1 = "";
num = String((10000 * Math.floor(parseFloat(eval (name)))) + Math.floor((2 / 3) * parseFloat(eval (name2))));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Symbol 20 MovieClip [bnm2] Frame 1004
stop();
Instance of Symbol 54 MovieClip [tennsuubonus] in Symbol 20 MovieClip [bnm2] Frame 1578
onClipEvent (load) {
dig = 6;
name = "_root.zanki";
name2 = "_root.jikan";
text1 = "";
this.swapDepths(60004);
}
onClipEvent (enterFrame) {
text1 = "";
num = String((10000 * Math.floor(parseFloat(eval (name)))) + Math.floor((2 / 3) * parseFloat(eval (name2))));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Symbol 20 MovieClip [bnm2] Frame 1579
stop();
Instance of Symbol 54 MovieClip [tennsuubonus] in Symbol 20 MovieClip [bnm2] Frame 2063
onClipEvent (load) {
dig = 6;
name = "_root.zanki";
name2 = "_root.jikan";
text1 = "";
this.swapDepths(60004);
}
onClipEvent (enterFrame) {
text1 = "";
num = String((10000 * Math.floor(parseFloat(eval (name)))) + Math.floor((2 / 3) * parseFloat(eval (name2))));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Symbol 20 MovieClip [bnm2] Frame 2064
stop();
Symbol 20 MovieClip [bnm2] Frame 2065
stop();
Symbol 30 MovieClip [bnm] Frame 4
stop();
Instance of Symbol 54 MovieClip [tennsuubonus] in Symbol 30 MovieClip [bnm] Frame 488
onClipEvent (load) {
dig = 6;
name = "_root.zanki";
name2 = "_root.jikan";
text1 = "";
this.swapDepths(60004);
}
onClipEvent (enterFrame) {
text1 = "";
num = String((10000 * Math.floor(parseFloat(eval (name)))) + Math.floor((2 / 3) * parseFloat(eval (name2))));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Symbol 30 MovieClip [bnm] Frame 489
stop();
Instance of Symbol 54 MovieClip [tennsuubonus] in Symbol 30 MovieClip [bnm] Frame 1003
onClipEvent (load) {
dig = 6;
name = "_root.zanki";
name2 = "_root.jikan";
text1 = "";
this.swapDepths(60004);
}
onClipEvent (enterFrame) {
text1 = "";
num = String((10000 * Math.floor(parseFloat(eval (name)))) + Math.floor((2 / 3) * parseFloat(eval (name2))));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Symbol 30 MovieClip [bnm] Frame 1004
stop();
Instance of Symbol 54 MovieClip [tennsuubonus] in Symbol 30 MovieClip [bnm] Frame 1578
onClipEvent (load) {
dig = 6;
name = "_root.zanki";
name2 = "_root.jikan";
text1 = "";
this.swapDepths(60004);
}
onClipEvent (enterFrame) {
text1 = "";
num = String((10000 * Math.floor(parseFloat(eval (name)))) + Math.floor((2 / 3) * parseFloat(eval (name2))));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Symbol 30 MovieClip [bnm] Frame 1579
stop();
Instance of Symbol 54 MovieClip [tennsuubonus] in Symbol 30 MovieClip [bnm] Frame 2063
onClipEvent (load) {
dig = 6;
name = "_root.zanki";
name2 = "_root.jikan";
text1 = "";
this.swapDepths(60004);
}
onClipEvent (enterFrame) {
text1 = "";
num = String((10000 * Math.floor(parseFloat(eval (name)))) + Math.floor((2 / 3) * parseFloat(eval (name2))));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Symbol 30 MovieClip [bnm] Frame 2064
stop();
Symbol 30 MovieClip [bnm] Frame 2065
stop();
Symbol 26 MovieClip [bhp] Frame 2
stop();
Symbol 12 MovieClip [bgm] Frame 1
stop();
Symbol 12 MovieClip [bgm] Frame 2
stop();
Symbol 12 MovieClip [bgm] Frame 3
stop();
Symbol 12 MovieClip [bgm] Frame 4
stop();
Symbol 12 MovieClip [bgm] Frame 5
stop();
Symbol 32 MovieClip [tennsuu4] Frame 7
stop();
Symbol 14 MovieClip [tennsuu3] Frame 6
stop();
Symbol 10 MovieClip [tennsuu2] Frame 6
stop();
Instance of Symbol 42 MovieClip [tennsuufin] "scorelast" in Symbol 44 MovieClip [finalscore] Frame 1
onClipEvent (load) {
dig = 6;
name = "_root.score";
text1 = "";
this.swapDepths(60001);
}
onClipEvent (enterFrame) {
if (flag1 == 999) {
_this.removeClip();
}
text1 = "";
num = String(parseFloat(eval (name)));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Symbol 54 MovieClip [tennsuubonus] Frame 17
stop();
Symbol 42 MovieClip [tennsuufin] Frame 5
stop();
Symbol 4 MovieClip [tennsuu] Frame 6
stop();
Instance of Symbol 104 MovieClip [sp_character1] "player0" in Symbol 1800 MovieClip [sp_map4] Frame 2
onClipEvent (load) {
px0 = 0;
py0 = 0;
px = 5.5;
py = 8.5;
qx = 0;
qy = 0;
rakka1 = 0;
teki_ptn = 0;
loop_cnt = 0;
pmuki = 5;
arrow_cnt = 0;
mouse_kakudo = 0;
move_on = 0;
teki_ran = 0;
arrow_tame = 0;
arrow_on = 0;
timeup_on = 0;
arrow_kamae = 1;
sp_on = 0;
muteki = 0;
bcnt = 0;
bind_on = 0;
}
onClipEvent (enterFrame) {
if (((_root.charan == 1) && (this != _root.map_os4.player0)) && (this != _root.map_s.player0)) {
if (!(((timeup_on == 0) && (_root.bossmode != 1)) && (_root.bossmode < 3))) {
if (_root.bossmode != 1) {
if (_root.bossmode != 3) {
if (_root.bossmode != 4) {
if (0 < timeup_on) {
_root.jikan = 0;
timeup_on--;
if (timeup_on == 1) {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
_root.gotoandplay("end");
}
}
} else {
if (bcnt != 0) {
if (bcnt != 120) {
if (bcnt != 121) {
if (bcnt != 125) {
if (bcnt != 127) {
if (bcnt != 130) {
if (bcnt != 135) {
if (bcnt != 165) {
if (bcnt != 169) {
if (bcnt != 171) {
if (bcnt != 174) {
if (bcnt == 179) {
map_obj_name = "arrow100";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
_root.map_s.bossx.gotoandplay("tatu0");
_root.se_baku.start();
}
} else {
map_obj_name = "arrow99";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
} else {
map_obj_name = "arrow98";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
} else {
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
} else {
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
} else {
map_obj_name = "arrow100";
eval ("_root.map_s." + map_obj_name).tame = 100;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
_root.se_shot.start();
}
} else {
map_obj_name = "arrow99";
eval ("_root.map_s." + map_obj_name).tame = 100;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
_root.se_shot.start();
}
} else {
map_obj_name = "arrow98";
eval ("_root.map_s." + map_obj_name).tame = 100;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
_root.se_shot.start();
}
} else {
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name).tame = 100;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
_root.se_shot.start();
}
} else {
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name).tame = 100;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
_root.se_shot.start();
}
} else {
map_obj_name = "arrow96";
map_obj_name2 = "arrow97";
map_obj_name3 = "arrow98";
map_obj_name4 = "arrow99";
map_obj_name5 = "arrow100";
_root.arrow_n = 1;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 55100 + _root.arrow_n);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name2, (55100 + _root.arrow_n) + 1);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name3, (55100 + _root.arrow_n) + 2);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name4, (55100 + _root.arrow_n) + 3);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name5, (55100 + _root.arrow_n) + 4);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + 160;
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name2).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name2)._x = ((this._x + (dx * 12)) + 240) + 4;
eval ("_root.map_s." + map_obj_name2)._y = ((this._y + (dy * 12)) + 160) + 4;
eval ("_root.map_s." + map_obj_name2).pw = 4;
eval ("_root.map_s." + map_obj_name3).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name3)._x = ((this._x + (dx * 12)) + 240) - 4;
eval ("_root.map_s." + map_obj_name3)._y = ((this._y + (dy * 12)) + 160) + 4;
eval ("_root.map_s." + map_obj_name3).pw = 4;
eval ("_root.map_s." + map_obj_name4).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name4)._x = ((this._x + (dx * 12)) + 240) + 4;
eval ("_root.map_s." + map_obj_name4)._y = ((this._y + (dy * 12)) + 160) - 4;
eval ("_root.map_s." + map_obj_name4).pw = 4;
eval ("_root.map_s." + map_obj_name5).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name5)._x = ((this._x + (dx * 12)) + 240) - 4;
eval ("_root.map_s." + map_obj_name5)._y = ((this._y + (dy * 12)) + 160) - 4;
eval ("_root.map_s." + map_obj_name5).pw = 4;
eval ("_root.map_s." + map_obj_name).chara_n = 3;
eval ("_root.map_s." + map_obj_name2).chara_n = 4;
eval ("_root.map_s." + map_obj_name3).chara_n = 5;
eval ("_root.map_s." + map_obj_name4).chara_n = 6;
eval ("_root.map_s." + map_obj_name5).chara_n = 7;
_root.arrow_n++;
if (10 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
this._alpha = 100;
_root.map_s.txt0.bossname.gotoandplay("siro");
_root.se_pwup.start();
_root.map_s.txt0.bosshpbar._xscale = 0;
kakudo = (Math.atan2(((this._y + 160) - _root.map_s.bossx._y) + 16, ((this._x + 240) - _root.map_s.bossx._x) - 16) * 180) / Math.PI;
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
pmuki = 4;
} else {
pmuki = 5;
}
} else {
pmuki = 6;
}
} else {
pmuki = 7;
}
} else {
pmuki = 3;
}
} else {
pmuki = 2;
}
} else {
pmuki = 1;
}
} else {
pmuki = 8;
}
this.player.gotoandstop("utu" + pmuki);
play_name = "tatud" + pmuki;
dy = ((((this._y + 160) - _root.map_s.bossx._y) + 16) * -1) / 60;
dx = ((((this._x + 240) - _root.map_s.bossx._x) - 16) * -1) / 60;
}
if ((179 < bcnt) && (0 < _root.map_s.bossx._alpha)) {
_root.map_s.bossx._alpha = _root.map_s.bossx._alpha - 1;
}
if (bcnt < 60) {
_root.map_s._x = _root.map_s._x - (dx / 2);
_root.map_s._y = _root.map_s._y - (dy / 2);
_root.map_s.txt0._x = _root.map_s.txt0._x + (dx / 2);
_root.map_s.txt0._y = _root.map_s.txt0._y + (dy / 2);
}
if (bcnt != 300) {
if (bcnt == 700) {
_root.bossmode = 5;
_root.gotoandplay("gameclear");
}
} else {
_root.bgm1.gotoandplay("play3");
_root.score = _root.score + 5000;
}
if (bcnt < 1200) {
bcnt++;
}
}
} else if (bcnt != 3) {
bcnt++;
} else {
bcnt = 0;
_root.bossmode = 4;
}
} else if (bcnt >= 40) {
if (bcnt >= 70) {
if (bcnt >= 215) {
if (bcnt >= 240) {
if (bcnt != 240) {
if (bcnt != 250) {
if (bcnt != 330) {
if (bcnt >= 390) {
if (bcnt >= 430) {
move_on = 0;
_root.bgm1.gotoAndPlay("play2");
teki_ptn = 1;
_root.tobashi = 0;
_root.bossmode = 2;
bcnt = 0;
} else {
_root.bosshp = 40;
_root.map_s._x = _root.map_s._x + 4;
_root.map_s._y = _root.map_s._y - 4;
_root.map_s.txt0._x = _root.map_s.txt0._x - 4;
_root.map_s.txt0._y = _root.map_s.txt0._y + 4;
bcnt++;
}
} else {
bcnt++;
}
} else {
_root.map_s.txt0.bossname.gotoandplay("kesu");
bcnt++;
map_obj_name = "bossx2";
eval ("_root.map_s." + map_obj_name).isu0.gotoandplay(1);
map_obj_name = "bossx";
eval ("_root.map_s." + map_obj_name).boss4_hon.gotoandplay("tatu");
}
} else {
_root.map_s.txt0.bossname.gotoandplay("bossname2");
bcnt++;
map_obj_name = "bossx2";
eval ("_root.map_s." + map_obj_name).isu0.gotoandplay("bb");
map_obj_name = "bossx";
eval ("_root.map_s." + map_obj_name).boss4_hon.gotoandplay("tatur");
_root.se_doon.start();
}
} else {
bcnt++;
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ix = Math.floor(px0 / 32) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
_root.mapx[jx] = (_root.mapx[jx].substring(0, (64 * 3) + 12) + "0000") + _root.mapx[jx].substring((64 * 3) + 16);
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
_root.map_s.wall0._alpha = 0;
}
} else {
bcnt++;
}
} else {
if (bcnt != 90) {
if (bcnt != 120) {
if (bcnt != 150) {
if (bcnt == 160) {
ix = 15;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
}
} else {
_root.map_s.wall0.door4.gotoandplay("b");
_root.se_open1.start();
_root.bg4.bg4d.gotoandplay("ee");
_root.map_s.txt0.bossname.gotoandplay("bossname1");
}
} else {
_root.map_s.wall0.door3.gotoandplay("b");
_root.se_open1.start();
_root.bg4.bg4d.gotoandplay("dd");
}
} else {
_root.map_s.wall0.door2.gotoandplay("b");
_root.se_open1.start();
_root.bg4.bg4d.gotoandplay("cc");
}
_root.map_s._x = _root.map_s._x - 8;
_root.map_s._y = _root.map_s._y + 8;
_root.map_s.txt0._x = _root.map_s.txt0._x + 8;
_root.map_s.txt0._y = _root.map_s.txt0._y - 8;
this._x = this._x + 8;
this._y = this._y - 8;
bcnt++;
}
} else {
bcnt++;
if (bcnt == 60) {
_root.map_s.wall0.door1.gotoandplay("b");
_root.se_open1.start();
_root.bg4.bg4d.gotoandplay("bb");
}
}
} else {
if (bcnt == 1) {
_root.bg4.bg4d.gotoandplay("aa");
i = 217 + (16 * 2);
j = 7;
_root.enmy_n = 0;
map_obj_name = "bossx2";
_root.map_s.bossisu0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) - 16;
eval ("_root.map_s." + map_obj_name)._y = ((164 - (i * 32)) + (j * 32)) - 2;
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).gotoandplay(1);
map_obj_name = "bossx";
_root.map_s.boss0.duplicateMovieClip(map_obj_name, 51001 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) - 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).gotoandplay(1);
_root.enmy_n = 1;
_root.enmy_n0 = 0;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
_root.map_s._x = _root.map_s._x - 4;
_root.map_s._y = _root.map_s._y + 4;
_root.map_s.txt0._x = _root.map_s.txt0._x + 4;
_root.map_s.txt0._y = _root.map_s.txt0._y - 4;
bcnt++;
}
} else {
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
dxy = 1;
mx = 0;
my = 0;
if (mousemode == 1) {
mouse_kakudo = (Math.atan2(((_root._ymouse - 160) - 56) - 16, (_root._xmouse - 240) + 16) * 180) / Math.PI;
_root.flag2 = Math.floor(mouse_kakudo);
if (!(((45 + 22.5) >= mouse_kakudo) && ((45 - 22.5) < mouse_kakudo))) {
if (!(((135 + 22.5) >= mouse_kakudo) && ((135 - 22.5) < mouse_kakudo))) {
if (!(((-135 + 22.5) >= mouse_kakudo) && ((-135 - 22.5) < mouse_kakudo))) {
if (!(((-45 + 22.5) >= mouse_kakudo) && ((-45 - 22.5) < mouse_kakudo))) {
if (!(((-90 + 22.5) >= mouse_kakudo) && ((-90 - 22.5) < mouse_kakudo))) {
if (!(((0 + 22.5) >= mouse_kakudo) && ((-22.5) < mouse_kakudo))) {
if (!(((90 + 22.5) >= mouse_kakudo) && ((90 - 22.5) < mouse_kakudo))) {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
}
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
}
}
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.PGDN)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.END)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.HOME)))) {
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.PGUP)))) {
if (!Key.isDown(Key.RIGHT)) {
if (!Key.isDown(Key.LEFT)) {
if (!Key.isDown(Key.DOWN)) {
if (!Key.isDown(Key.UP)) {
tenkey = 0;
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
tenkey = 1;
mousemode = 0;
}
if (!(Key.isDown(1) || (tenkey == 1))) {
dxy = 1;
mx = 0;
my = 0;
move_on = 0;
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + pmuki);
}
} else {
if (Key.isDown(1)) {
mousemode = 1;
}
if (move_on != (pmuki * arrow_kamae)) {
if (arrow_kamae != -1) {
this.player.gotoandplay("tatu" + pmuki);
} else {
this.player.gotoandplay("utu" + pmuki);
}
move_on = pmuki * arrow_kamae;
}
}
if ((Key.isDown(77) || (Key.isDown(67))) && (_root.jump_on == 0)) {
_root.jump_on = 23;
if (bind_on == 0) {
_root.se_jump.start();
}
}
if (!(((0 < bind_on) && (_root.tobashi == 0)) && (muteki == 0))) {
bind_on = 0;
} else {
dxy = 0;
mx = 0;
my = 0;
if ((bind_on % 10) != 0) {
bind_on = bind_on - 1;
} else if (0 < _root.jump_on) {
bind_on = bind_on - 301;
_root.se_jump.start();
}
bind_on = bind_on - 10;
_root.jump_on = 0;
}
if ((((Key.isDown(66) || (Key.isDown(90))) && (0 < _root.sp)) && (-20 < _root.jump_on)) && (sp_on < 1)) {
sp_on = 900;
_root.se_pwup.start();
_root.sp--;
}
if (0 >= _root.jump_on) {
if (!((_root.jump_on < 0) && (-70 < _root.jump_on))) {
rakka1 = 0;
} else {
this.player._y = this.player._y - (_root.jump_on - 10);
_root.jump_on--;
if (_root.jump_on == -20) {
if (sp_on != 0) {
_root.se_warp1.start();
_root.map_s.player1.swapDepths(250001);
_root.map_s.player1.player.gotoandstop("tatu1");
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
sp_on = 0;
_root.map_s._x = qx;
_root.map_s._y = qy;
_root.map_s.player1._x = -32 - qx;
_root.map_s.player1._y = 56 - qy;
muteki = 150;
move_on = 0;
this._alpha = 50;
arrow_tame = 0;
arrow_cnt = 18;
this.player._y = 160;
} else {
_root.se_fall.start();
}
}
if (_root.jump_on < -50) {
_root.enmy_n0 = 0;
rakka1 = 0;
_root.jump_on = -100;
_root.tobashi = 0;
_root.gotoandplay("end");
}
}
} else {
this.player._y = this.player._y - (_root.jump_on - 12);
_root.jump_on--;
rakka1 = 1;
}
if (0 < muteki) {
_root.tobashi = 0;
muteki--;
if (muteki < 1) {
this._alpha = 100;
}
}
if (0 < _root.tobashi) {
_root.tobashi--;
_root.map_s._x = _root.map_s._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y + (((_root.my2 * _root.tobashi) * 2) / 10);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b") {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c") {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
}
} else {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
}
}
k = 0;
for ( ; k < dxy ; k++) {
_root.map_s._x = _root.map_s._x - (mx / 2);
_root.map_s._y = _root.map_s._y - (my / 2);
this._x = this._x + (mx / 2);
this._y = this._y + (my / 2);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.jump_on >= 0) {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
this.player_kage.gotoandstop(1);
if (_root.jump_on == 0) {
qx = _root.map_s._x;
qy = _root.map_s._y;
}
} else if (!((rakka1 == 0) && (_root.tobashi == 0))) {
this.player_kage.gotoandstop("kesu");
if ((_root.jump_on == 0) || (0 < _root.tobashi)) {
k = 100;
dy = _root.jump_on - 12;
_root.jump_on = -1;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths(50090 - (((ix1 + 16) - iy1) * 100));
if (!((192 < ix1) || (128 < _root.startx))) {
if (!((128 < ix1) || (64 < _root.startx))) {
if (64 < ix1) {
_root.startx = 64;
_root.starty = 6;
}
} else {
_root.startx = 128;
_root.starty = 3;
}
} else {
_root.startx = 192;
_root.starty = 4;
}
}
} else {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c")) {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
if (((205 < Math.floor(px0 / 2)) && (_root.jump_on == 0)) && (_root.bossmode == 0)) {
bcnt = 0;
_root.bossmode = 1;
_root.bgm1.gotoAndPlay("end");
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + pmuki);
}
}
if (_root.bossmode == 2) {
if (_root.bosshp < 1) {
_root.bosshp = 0;
if (_root.jump_on == 0) {
bcnt = 0;
_root.bossmode = 3;
}
}
}
if (Math.floor(px / 32) >= Math.floor(px0 / 32)) {
if (Math.floor(px0 / 32) < Math.floor(px / 32)) {
ij = 0;
for ( ; ij < (Math.floor(px / 32) - Math.floor(px0 / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) + 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
} else {
ij = 0;
for ( ; ij < (Math.floor(px0 / 32) - Math.floor(px / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) + 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) - 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
if (Math.floor(px / 2) >= Math.floor(px0 / 2)) {
if (Math.floor(px0 / 2) < Math.floor(px / 2)) {
ij = 0;
for ( ; ij < ((Math.floor(px0 / 2) * -1) + Math.floor(px / 2)) ; ij++) {
i = (Math.floor(px0 / 2) - 8) + ij;
if (i < 0) {
i = 0;
}
if (250 < i) {
i = 250;
}
j = 0;
for ( ; j < 16 ; j++) {
if (_root.mapx[j].charAt(i) == "a") {
if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "b") + _root.mapx[j].substring(i + 1);
_root.map_s.hashira0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
}
}
}
} else {
ij = 0;
for ( ; ij < (Math.floor(px0 / 2) - Math.floor(px / 2)) ; ij++) {
i = (Math.floor(px0 / 2) + 8) - ij;
if (i < 0) {
i = 0;
}
if (250 < i) {
i = 250;
}
j = 0;
for ( ; j < 16 ; j++) {
if (_root.mapx[j].charAt(i) != "2") {
if (_root.mapx[j].charAt(i) != "3") {
if (_root.mapx[j].charAt(i) != "9") {
if (_root.mapx[j].charAt(i) != "8") {
if (_root.mapx[j].charAt(i) != "7") {
if (_root.mapx[j].charAt(i) == "a") {
if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "b") + _root.mapx[j].substring(i + 1);
_root.map_s.hashira0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.tekia0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).ptn = Math.floor(Math.random() * 2) * 10;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else {
map_obj_name = "gs1";
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.gs0.duplicateMovieClip(map_obj_name, 58000);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.bigball0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.teki0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
}
}
if (pmuki != 1) {
if (pmuki != 2) {
if (pmuki != 3) {
if (pmuki != 4) {
if (pmuki != 5) {
if (pmuki != 6) {
if (pmuki != 7) {
dx = -10 / 8;
dy = 0;
dx2 = -7 / 8;
dy2 = -7 / 8;
} else {
dx = -7 / 8;
dy = -7 / 8;
dx2 = 0;
dy2 = -10 / 8;
}
} else {
dx = 0;
dy = -10 / 8;
dx2 = 7 / 8;
dy2 = -7 / 8;
}
} else {
dx = 7 / 8;
dy = -7 / 8;
dx2 = 10 / 8;
dy2 = 0;
}
} else {
dx = 10 / 8;
dy = 0;
dx2 = 7 / 8;
dy2 = 7 / 8;
}
} else {
dx = 7 / 8;
dy = 7 / 8;
dx2 = 0;
dy2 = 10 / 8;
}
} else {
dx = 0;
dy = 10 / 8;
dx2 = -7 / 8;
dy2 = 7 / 8;
}
} else {
dx = -7 / 8;
dy = 7 / 8;
dx2 = -10 / 8;
dy2 = 0;
}
if (sp_on < 1) {
dx2 = 0;
dy2 = 0;
}
map_obj_name = "arrow" + _root.arrow_n;
map_obj_name2 = "arrow" + (_root.arrow_n + 10);
map_obj_name3 = "arrow" + (_root.arrow_n + 20);
if (!(((Key.isDown(78) || (Key.isDown(88))) && (_root.jump_on == 0)) && (arrow_cnt == 0))) {
if (!(((Key.isDown(78) || (Key.isDown(88))) || (0 < _root.jump_on)) && (arrow_cnt == 19))) {
if (arrow_cnt == 19) {
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name2).tame = 1;
eval ("_root.map_s." + map_obj_name3).tame = 1;
if (arrow_tame < 60) {
if (arrow_tame < 35) {
if (arrow_tame < 15) {
play_name = "tatu" + pmuki;
play_name2 = "tatu" + ((pmuki % 8) + 1);
play_name3 = "tatu" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 1;
eval ("_root.map_s." + map_obj_name2).pw = 1;
eval ("_root.map_s." + map_obj_name3).pw = 1;
} else {
play_name = "tatub" + pmuki;
play_name2 = "tatub" + ((pmuki % 8) + 1);
play_name3 = "tatub" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 2;
eval ("_root.map_s." + map_obj_name2).pw = 2;
eval ("_root.map_s." + map_obj_name3).pw = 2;
}
} else {
play_name = "tatuc" + pmuki;
play_name2 = "tatuc" + ((pmuki % 8) + 1);
play_name3 = "tatuc" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 3;
eval ("_root.map_s." + map_obj_name2).pw = 3;
eval ("_root.map_s." + map_obj_name3).pw = 3;
}
} else {
play_name = "tatud" + pmuki;
play_name2 = "tatud" + ((pmuki % 8) + 1);
play_name3 = "tatud" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name2).pw = 4;
eval ("_root.map_s." + map_obj_name3).pw = 4;
}
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name2).gotoandplay(play_name2);
eval ("_root.map_s." + map_obj_name3).gotoandplay(play_name3);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + 160;
eval ("_root.map_s." + map_obj_name2).tdx = dy2 * 6;
eval ("_root.map_s." + map_obj_name2).tdy = (dx2 * -1) * 6;
eval ("_root.map_s." + map_obj_name2)._x = (this._x + (dy2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name2)._y = ((this._y - (dx2 * 12)) + 160) + ((1 - Math.ceil(sp_on / 900)) * 800);
eval ("_root.map_s." + map_obj_name3).tdx = dx2 * 6;
eval ("_root.map_s." + map_obj_name3).tdy = dy2 * 6;
eval ("_root.map_s." + map_obj_name3)._x = (this._x + (dx2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name3)._y = ((this._y + (dy2 * 12)) + 160) + ((1 - Math.ceil(sp_on / 900)) * 800);
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3);
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name2)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 1;
eval ("_root.map_s." + map_obj_name2).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name3)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 2;
eval ("_root.map_s." + map_obj_name3).swapDepths(dpth);
_root.se_shot.start();
_root.arrow_n++;
if (8 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
arrow_cnt++;
arrow_tame++;
if (arrow_tame < 60) {
if (arrow_tame < 35) {
if (arrow_tame < 15) {
play_name = "tatu" + pmuki;
play_name2 = "tatu" + ((pmuki % 8) + 1);
play_name3 = "tatu" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 1;
eval ("_root.map_s." + map_obj_name2).pw = 1;
eval ("_root.map_s." + map_obj_name3).pw = 1;
} else {
play_name = "tatub" + pmuki;
play_name2 = "tatub" + ((pmuki % 8) + 1);
play_name3 = "tatub" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 2;
eval ("_root.map_s." + map_obj_name2).pw = 2;
eval ("_root.map_s." + map_obj_name3).pw = 2;
}
} else {
play_name = "tatuc" + pmuki;
play_name2 = "tatuc" + ((pmuki % 8) + 1);
play_name3 = "tatuc" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 3;
eval ("_root.map_s." + map_obj_name2).pw = 3;
eval ("_root.map_s." + map_obj_name3).pw = 3;
}
} else {
play_name = "tatud" + pmuki;
play_name2 = "tatud" + ((pmuki % 8) + 1);
play_name3 = "tatud" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name2).pw = 4;
eval ("_root.map_s." + map_obj_name3).pw = 4;
}
if (((arrow_tame == 15) || (arrow_tame == 35)) || (arrow_tame == 60)) {
omuki = 0;
}
if (pmuki != omuki) {
eval ("_root.map_s." + map_obj_name).gotoandstop(play_name);
eval ("_root.map_s." + map_obj_name2).gotoandstop(play_name2);
eval ("_root.map_s." + map_obj_name3).gotoandstop(play_name3);
}
omuki = pmuki;
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + this.player._y;
eval ("_root.map_s." + map_obj_name2).tdx = dy2 * 6;
eval ("_root.map_s." + map_obj_name2).tdy = (dx2 * -1) * 6;
eval ("_root.map_s." + map_obj_name2)._x = (this._x + (dy2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name2)._y = ((this._y - (dx2 * 12)) + this.player._y) + ((1 - Math.ceil(sp_on / 900)) * 800);
eval ("_root.map_s." + map_obj_name3).tdx = dx2 * 6;
eval ("_root.map_s." + map_obj_name3).tdy = dy2 * 6;
eval ("_root.map_s." + map_obj_name3)._x = (this._x + (dx2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name3)._y = ((this._y + (dy2 * 12)) + this.player._y) + ((1 - Math.ceil(sp_on / 900)) * 800);
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3);
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name2)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 1;
eval ("_root.map_s." + map_obj_name2).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name3)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 2;
eval ("_root.map_s." + map_obj_name3).swapDepths(dpth);
if (_root.jump_on < 0) {
eval ("_root.map_s." + map_obj_name).removeMovieClip();
eval ("_root.map_s." + map_obj_name2).removeMovieClip();
eval ("_root.map_s." + map_obj_name3).removeMovieClip();
}
}
} else {
play_name = "tatu" + pmuki;
play_name2 = "tatu" + ((pmuki % 8) + 1);
play_name3 = "tatu" + (((pmuki + 6) % 8) + 1);
if (!((4 < pmuki) || (pmuki == 1))) {
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 55100 + _root.arrow_n);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name2, (55100 + _root.arrow_n) + 10);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name3, (55100 + _root.arrow_n) + 20);
} else {
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name2, (54900 + _root.arrow_n) + 10);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name3, (54900 + _root.arrow_n) + 20);
}
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + 160;
eval ("_root.map_s." + map_obj_name2).gotoandplay(play_name2);
eval ("_root.map_s." + map_obj_name2).tdx = dy2 * 6;
eval ("_root.map_s." + map_obj_name2).tdy = (dx2 * -1) * 6;
eval ("_root.map_s." + map_obj_name2)._x = (this._x + (dy2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name2)._y = ((this._y - (dx2 * 12)) + 160) + ((1 - Math.ceil(sp_on / 900)) * 800);
eval ("_root.map_s." + map_obj_name3).gotoandplay(play_name3);
eval ("_root.map_s." + map_obj_name3).tdx = dx2 * 6;
eval ("_root.map_s." + map_obj_name3).tdy = dy2 * 6;
eval ("_root.map_s." + map_obj_name3)._x = (this._x + (dx2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name3)._y = ((this._y + (dy2 * 12)) + 160) + ((1 - Math.ceil(sp_on / 900)) * 800);
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n * 3;
eval ("_root.map_s." + map_obj_name2).chara_n = (_root.arrow_n * 3) + 1;
eval ("_root.map_s." + map_obj_name3).chara_n = (_root.arrow_n * 3) + 2;
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3);
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name2)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 1;
eval ("_root.map_s." + map_obj_name2).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name3)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 2;
eval ("_root.map_s." + map_obj_name3).swapDepths(dpth);
arrow_cnt = 20;
arrow_tame = 0;
arrow_kamae = -1;
omuki = pmuki;
}
_root.bg4.bg4a._x = (((_root.map_s._x / 4) % 36) + 36) % 36;
_root.bg4.bg4a._y = ((((_root.map_s._y / 4) - (12 * math.floor((_root.map_s._x / 4) / 36))) % 720) + 720) % 720;
_root.bg4.bg4b._x = (((_root.map_s._x / 4) % 40) + 40) % 40;
_root.bg4.bg4b._y = (((_root.map_s._y / 4) % 720) + 720) % 720;
_root.bg4.bg4c._x = (_root.map_s._x / 8) % 480;
_root.bg4.bg4c._y = (_root.map_s._y / 8) % 360;
_root.map_s.txt0._x = this._x;
_root.map_s.txt0._y = this._y;
_root.map_s.txt0.bosshpbar._xscale = 200 * _root.bosshp;
px = px0;
py = py0;
_root.px = px;
_root.py = py;
_root.flag1 = _root.bg1._x;
loop_cnt++;
if (500 < loop_cnt) {
loop_cnt = 0;
}
if (0 < arrow_cnt) {
arrow_cnt--;
}
if (arrow_cnt == 10) {
arrow_kamae = 1;
}
if (arrow_cnt < 0) {
arrow_cnt++;
}
if (0 < sp_on) {
sp_on--;
}
_root.map_s.txt0.sptxt.gsbar._xscale = 30 * Math.floor(sp_on / 30);
_root.jikan--;
if ((_root.jikan < 0) && (timeup_on == 0)) {
_root.jikan = 0;
if (_root.jump_on == 0) {
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
_root.jikan = 0;
timeup_on = 90;
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
this.player.gotoandplay("timeup");
}
}
}
}
}
Instance of Symbol 120 MovieClip [sp_character2] "player2" in Symbol 1800 MovieClip [sp_map4] Frame 3
onClipEvent (load) {
px0 = 0;
py0 = 0;
px = 5.5;
py = 8.5;
qx = 0;
qy = 0;
rakka1 = 0;
teki_ptn = 0;
loop_cnt = 0;
pmuki = 5;
arrow_cnt = 0;
mouse_kakudo = 0;
move_on = 0;
teki_ran = 0;
arrow_tame = 0;
arrow_on = 0;
timeup_on = 0;
arrow_kamae = 1;
sp_on = 0;
muteki = 0;
bcnt = 0;
}
onClipEvent (enterFrame) {
if (((_root.charan == 2) && (this != _root.map_os4.player2)) && (this != _root.map_s.player2)) {
if (!(((timeup_on == 0) && (_root.bossmode != 1)) && (_root.bossmode < 3))) {
if (_root.bossmode != 1) {
if (_root.bossmode != 3) {
if (_root.bossmode != 4) {
if (0 < timeup_on) {
_root.jikan = 0;
timeup_on--;
if (timeup_on == 1) {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
_root.gotoandplay("end");
}
}
} else {
if (bcnt != 0) {
if (bcnt != 170) {
if (bcnt != 171) {
if (bcnt != 172) {
if (bcnt != 300) {
if (bcnt == 200) {
_root.map_s.bossx.gotoandplay("tatu0");
_root.se_baku.start();
}
} else {
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
map_obj_name = "arrow98";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
} else {
map_obj_name = "arrow96";
pmuki = eval ("_root.map_s." + map_obj_name).getDepth() + 1;
map_obj_name = "arrow98";
eval ("_root.map_s." + map_obj_name).swapDepths(pmuki);
pmuki = 1;
}
} else {
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
map_obj_name = "arrow98";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
_root.se_gunshot2.start();
}
} else {
_root.arrow_n = 1;
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
dx = 64;
dy = -4;
} else {
dx = 35;
dy = -35;
}
} else {
dx = 0;
dy = -50;
}
} else {
dx = -35;
dy = -35;
}
} else {
dx = 30;
dy = 30;
}
} else {
dx = 0;
dy = 42;
}
} else {
dx = -30;
dy = 30;
}
} else {
dx = -64;
dy = -4;
}
kakudo = (Math.atan2((((this._y + 160) + dy) - _root.map_s.bossx._y) + 16, (((this._x + 240) + dx) - _root.map_s.bossx._x) - 16) * 180) / Math.PI;
dx2 = ((((this._x + 240) + dx) - _root.map_s.bossx._x) - 16) * -1;
dy2 = ((((this._y + 160) + dy) - _root.map_s.bossx._y) + 16) * -1;
pmuki = Math.floor(Math.sqrt((dx2 * dx2) + (dy2 * dy2)));
map_obj_name = "arrow96";
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
play_name = "tamam" + 20;
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name)._x = ((this._x + dx) + 240) + 18;
eval ("_root.map_s." + map_obj_name)._y = ((this._y + dy) + 160) + 18;
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name).chara_n = 3;
eval ("_root.map_s." + map_obj_name)._rotation = kakudo - 180;
eval ("_root.map_s." + map_obj_name)._xscale = pmuki * 10;
eval ("_root.map_s." + map_obj_name)._yscale = 0;
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
_root.arrow_n++;
map_obj_name = "arrow97";
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
play_name = "tamam" + 20;
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name)._x = ((_root.map_s.bossx._x + 16) + 18) - (Math.cos((kakudo * Math.PI) / 180) * 400);
eval ("_root.map_s." + map_obj_name)._y = ((_root.map_s.bossx._y - 16) + 18) - (Math.sin((kakudo * Math.PI) / 180) * 400);
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name).chara_n = 4;
eval ("_root.map_s." + map_obj_name)._rotation = kakudo;
eval ("_root.map_s." + map_obj_name)._xscale = 4000;
eval ("_root.map_s." + map_obj_name)._yscale = 0;
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
_root.arrow_n++;
map_obj_name = "arrow98";
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
play_name = "tamam" + 21;
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name)._x = ((this._x + dx) + 240) + 15;
eval ("_root.map_s." + map_obj_name)._y = ((this._y + dy) + 160) + 15;
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name).chara_n = 5;
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
_root.arrow_n++;
pmuki = 1;
dx = 0;
dy = 0;
if (10 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
this._alpha = 100;
_root.map_s.txt0.bossname.gotoandplay("siro2");
_root.se_pwup.start();
_root.map_s.txt0.bosshpbar._xscale = 0;
kakudo = (Math.atan2(((this._y + 160) - _root.map_s.bossx._y) + 16, ((this._x + 240) - _root.map_s.bossx._x) - 16) * 180) / Math.PI;
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
pmuki = 4;
} else {
pmuki = 5;
}
} else {
pmuki = 6;
}
} else {
pmuki = 7;
}
} else {
pmuki = 3;
}
} else {
pmuki = 2;
}
} else {
pmuki = 1;
}
} else {
pmuki = 8;
}
play_name = "end" + pmuki;
this.player.gotoandplay(play_name);
play_name = "tamam" + (pmuki + 20);
dy = ((((this._y + 160) - _root.map_s.bossx._y) + 16) * -1) / 60;
dx = ((((this._x + 240) - _root.map_s.bossx._x) - 16) * -1) / 60;
_root.map_s.gun1.removeMovieClip();
_root.map_s.gun2.removeMovieClip();
}
if ((200 < bcnt) && (0 < _root.map_s.bossx._alpha)) {
_root.map_s.bossx._alpha = _root.map_s.bossx._alpha - 1;
}
if ((bcnt < 300) && (170 < bcnt)) {
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name)._yscale = (bcnt - 170) * 2;
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name)._yscale = (bcnt - 170) * 2;
}
if (bcnt < 60) {
_root.map_s._x = _root.map_s._x - (dx / 2);
_root.map_s._y = _root.map_s._y - (dy / 2);
_root.map_s.txt0._x = _root.map_s.txt0._x + (dx / 2);
_root.map_s.txt0._y = _root.map_s.txt0._y + (dy / 2);
}
if (bcnt != 300) {
if (bcnt == 700) {
_root.bossmode = 5;
_root.gotoandplay("gameclear");
}
} else {
_root.bgm1.gotoandplay("play3");
_root.score = _root.score + 5000;
}
if (bcnt < 1200) {
bcnt++;
}
}
} else if (bcnt != 3) {
bcnt++;
} else {
bcnt = 0;
_root.bossmode = 4;
}
} else if (bcnt >= 40) {
if (bcnt >= 70) {
if (bcnt >= 215) {
if (bcnt >= 240) {
if (bcnt != 240) {
if (bcnt != 250) {
if (bcnt != 330) {
if (bcnt >= 390) {
if (bcnt >= 430) {
move_on = 0;
_root.bgm1.gotoAndPlay("play2");
teki_ptn = 1;
_root.tobashi = 0;
_root.bossmode = 2;
bcnt = 0;
} else {
_root.bosshp = 40;
_root.map_s._x = _root.map_s._x + 4;
_root.map_s._y = _root.map_s._y - 4;
_root.map_s.txt0._x = _root.map_s.txt0._x - 4;
_root.map_s.txt0._y = _root.map_s.txt0._y + 4;
bcnt++;
}
} else {
bcnt++;
}
} else {
_root.map_s.txt0.bossname.gotoandplay("kesu");
bcnt++;
map_obj_name = "bossx2";
eval ("_root.map_s." + map_obj_name).isu0.gotoandplay(1);
map_obj_name = "bossx";
eval ("_root.map_s." + map_obj_name).boss4_hon.gotoandplay("tatu");
}
} else {
_root.map_s.txt0.bossname.gotoandplay("bossname2");
bcnt++;
map_obj_name = "bossx2";
eval ("_root.map_s." + map_obj_name).isu0.gotoandplay("bb");
map_obj_name = "bossx";
eval ("_root.map_s." + map_obj_name).boss4_hon.gotoandplay("tatur");
_root.se_doon.start();
}
} else {
bcnt++;
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ix = Math.floor(px0 / 32) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
_root.mapx[jx] = (_root.mapx[jx].substring(0, (64 * 3) + 12) + "0000") + _root.mapx[jx].substring((64 * 3) + 16);
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
_root.map_s.wall0._alpha = 0;
}
} else {
bcnt++;
}
} else {
if (bcnt != 90) {
if (bcnt != 120) {
if (bcnt != 150) {
if (bcnt == 160) {
ix = 15;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
}
} else {
_root.map_s.wall0.door4.gotoandplay("b");
_root.se_open1.start();
_root.bg4.bg4d.gotoandplay("ee");
_root.map_s.txt0.bossname.gotoandplay("bossname1");
}
} else {
_root.map_s.wall0.door3.gotoandplay("b");
_root.se_open1.start();
_root.bg4.bg4d.gotoandplay("dd");
}
} else {
_root.map_s.wall0.door2.gotoandplay("b");
_root.se_open1.start();
_root.bg4.bg4d.gotoandplay("cc");
}
_root.map_s._x = _root.map_s._x - 8;
_root.map_s._y = _root.map_s._y + 8;
_root.map_s.txt0._x = _root.map_s.txt0._x + 8;
_root.map_s.txt0._y = _root.map_s.txt0._y - 8;
this._x = this._x + 8;
this._y = this._y - 8;
bcnt++;
}
} else {
bcnt++;
if (bcnt == 60) {
_root.map_s.wall0.door1.gotoandplay("b");
_root.se_open1.start();
_root.bg4.bg4d.gotoandplay("bb");
}
}
} else {
if (bcnt == 1) {
_root.bg4.bg4d.gotoandplay("aa");
i = 217 + (16 * 2);
j = 7;
_root.enmy_n = 0;
map_obj_name = "bossx2";
_root.map_s.bossisu0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) - 16;
eval ("_root.map_s." + map_obj_name)._y = ((164 - (i * 32)) + (j * 32)) - 2;
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).gotoandplay(1);
map_obj_name = "bossx";
_root.map_s.boss0.duplicateMovieClip(map_obj_name, 51001 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) - 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).gotoandplay(1);
_root.enmy_n = 1;
_root.enmy_n0 = 0;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
_root.map_s._x = _root.map_s._x - 4;
_root.map_s._y = _root.map_s._y + 4;
_root.map_s.txt0._x = _root.map_s.txt0._x + 4;
_root.map_s.txt0._y = _root.map_s.txt0._y - 4;
bcnt++;
}
} else {
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
dxy = 1;
mx = 0;
my = 0;
if (mousemode == 1) {
mouse_kakudo = (Math.atan2(((_root._ymouse - 160) - 56) - 16, (_root._xmouse - 240) + 16) * 180) / Math.PI;
_root.flag2 = Math.floor(mouse_kakudo);
if (!(((45 + 22.5) >= mouse_kakudo) && ((45 - 22.5) < mouse_kakudo))) {
if (!(((135 + 22.5) >= mouse_kakudo) && ((135 - 22.5) < mouse_kakudo))) {
if (!(((-135 + 22.5) >= mouse_kakudo) && ((-135 - 22.5) < mouse_kakudo))) {
if (!(((-45 + 22.5) >= mouse_kakudo) && ((-45 - 22.5) < mouse_kakudo))) {
if (!(((-90 + 22.5) >= mouse_kakudo) && ((-90 - 22.5) < mouse_kakudo))) {
if (!(((0 + 22.5) >= mouse_kakudo) && ((-22.5) < mouse_kakudo))) {
if (!(((90 + 22.5) >= mouse_kakudo) && ((90 - 22.5) < mouse_kakudo))) {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
}
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
}
}
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.PGDN)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.END)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.HOME)))) {
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.PGUP)))) {
if (!Key.isDown(Key.RIGHT)) {
if (!Key.isDown(Key.LEFT)) {
if (!Key.isDown(Key.DOWN)) {
if (!Key.isDown(Key.UP)) {
tenkey = 0;
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
tenkey = 1;
mousemode = 0;
}
if (!(Key.isDown(1) || (tenkey == 1))) {
dxy = 1;
mx = 0;
my = 0;
move_on = 0;
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + (pmuki + (Math.ceil(sp_on / 900) * 10)));
}
} else {
if (Key.isDown(1)) {
mousemode = 1;
}
if (move_on != (pmuki * arrow_kamae)) {
if (arrow_kamae != -1) {
this.player.gotoandplay("tatu" + pmuki);
} else {
this.player.gotoandplay("utu" + (pmuki + (Math.ceil(sp_on / 900) * 10)));
}
move_on = pmuki * arrow_kamae;
}
}
if ((Key.isDown(77) || (Key.isDown(67))) && (_root.jump_on == 0)) {
_root.jump_on = 23;
if (bind_on == 0) {
_root.se_jump.start();
}
}
if (!(((0 < bind_on) && (_root.tobashi == 0)) && (muteki == 0))) {
bind_on = 0;
} else {
dxy = 0;
mx = 0;
my = 0;
if ((bind_on % 10) != 0) {
bind_on = bind_on - 1;
} else if (0 < _root.jump_on) {
bind_on = bind_on - 301;
_root.se_jump.start();
}
bind_on = bind_on - 10;
_root.jump_on = 0;
}
if ((((Key.isDown(66) || (Key.isDown(90))) && (0 < _root.sp)) && (-20 < _root.jump_on)) && (sp_on < 1)) {
sp_on = 900;
_root.se_pwup.start();
_root.sp--;
}
if (0 >= _root.jump_on) {
if (!((_root.jump_on < 0) && (-70 < _root.jump_on))) {
rakka1 = 0;
} else {
_root.map_s.gun1.removeMovieClip();
_root.map_s.gun2.removeMovieClip();
this.player._y = this.player._y - (_root.jump_on - 10);
_root.jump_on--;
if (_root.jump_on == -20) {
if (sp_on != 0) {
_root.se_warp1.start();
_root.map_s.player1.swapDepths(250001);
_root.map_s.player1.player.gotoandstop("tatu1");
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
sp_on = 0;
_root.map_s._x = qx;
_root.map_s._y = qy;
_root.map_s.player1._x = -32 - qx;
_root.map_s.player1._y = 56 - qy;
muteki = 150;
move_on = 0;
this._alpha = 50;
arrow_tame = 0;
arrow_cnt = 18;
this.player._y = 160;
} else {
_root.se_fall.start();
}
}
if (_root.jump_on < -50) {
_root.enmy_n0 = 0;
rakka1 = 0;
_root.jump_on = -100;
_root.tobashi = 0;
_root.gotoandplay("end");
}
}
} else {
this.player._y = this.player._y - (_root.jump_on - 12);
_root.jump_on--;
rakka1 = 1;
}
if (0 < muteki) {
_root.tobashi = 0;
muteki--;
if (muteki < 1) {
this._alpha = 100;
}
}
if (0 < _root.tobashi) {
_root.tobashi--;
_root.map_s._x = _root.map_s._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y + (((_root.my2 * _root.tobashi) * 2) / 10);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b") {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c") {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
}
} else {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
}
}
k = 0;
for ( ; k < dxy ; k++) {
_root.map_s._x = _root.map_s._x - (mx / 2);
_root.map_s._y = _root.map_s._y - (my / 2);
this._x = this._x + (mx / 2);
this._y = this._y + (my / 2);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.jump_on >= 0) {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
this.player_kage.gotoandstop(1);
if (_root.jump_on == 0) {
qx = _root.map_s._x;
qy = _root.map_s._y;
}
} else if (!((rakka1 == 0) && (_root.tobashi == 0))) {
this.player_kage.gotoandstop("kesu");
if ((_root.jump_on == 0) || (0 < _root.tobashi)) {
k = 100;
dy = _root.jump_on - 12;
_root.jump_on = -1;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths(50090 - (((ix1 + 16) - iy1) * 100));
if (!((192 < ix1) || (128 < _root.startx))) {
if (!((128 < ix1) || (64 < _root.startx))) {
if (64 < ix1) {
_root.startx = 64;
_root.starty = 6;
}
} else {
_root.startx = 128;
_root.starty = 3;
}
} else {
_root.startx = 192;
_root.starty = 4;
}
}
} else {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c")) {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
if (((205 < Math.floor(px0 / 2)) && (_root.jump_on == 0)) && (_root.bossmode == 0)) {
bcnt = 0;
_root.bossmode = 1;
_root.bgm1.gotoAndPlay("end");
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + (pmuki + (Math.ceil(sp_on / 900) * 10)));
}
}
if (_root.bossmode == 2) {
if (_root.bosshp < 1) {
_root.bosshp = 0;
if (_root.jump_on == 0) {
bcnt = 0;
_root.bossmode = 3;
}
}
}
if (Math.floor(px / 32) >= Math.floor(px0 / 32)) {
if (Math.floor(px0 / 32) < Math.floor(px / 32)) {
ij = 0;
for ( ; ij < (Math.floor(px / 32) - Math.floor(px0 / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) + 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
} else {
ij = 0;
for ( ; ij < (Math.floor(px0 / 32) - Math.floor(px / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) + 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) - 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
if (Math.floor(px / 2) >= Math.floor(px0 / 2)) {
if (Math.floor(px0 / 2) < Math.floor(px / 2)) {
ij = 0;
for ( ; ij < ((Math.floor(px0 / 2) * -1) + Math.floor(px / 2)) ; ij++) {
i = (Math.floor(px0 / 2) - 8) + ij;
if (i < 0) {
i = 0;
}
if (250 < i) {
i = 250;
}
j = 0;
for ( ; j < 16 ; j++) {
if (_root.mapx[j].charAt(i) == "a") {
if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "b") + _root.mapx[j].substring(i + 1);
_root.map_s.hashira0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
}
}
}
} else {
ij = 0;
for ( ; ij < (Math.floor(px0 / 2) - Math.floor(px / 2)) ; ij++) {
i = (Math.floor(px0 / 2) + 8) - ij;
if (i < 0) {
i = 0;
}
if (250 < i) {
i = 250;
}
j = 0;
for ( ; j < 16 ; j++) {
if (_root.mapx[j].charAt(i) != "2") {
if (_root.mapx[j].charAt(i) != "3") {
if (_root.mapx[j].charAt(i) != "9") {
if (_root.mapx[j].charAt(i) != "8") {
if (_root.mapx[j].charAt(i) != "7") {
if (_root.mapx[j].charAt(i) == "a") {
if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "b") + _root.mapx[j].substring(i + 1);
_root.map_s.hashira0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.tekia0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).ptn = Math.floor(Math.random() * 2) * 10;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else {
map_obj_name = "gs1";
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.gs0.duplicateMovieClip(map_obj_name, 58000);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.bigball0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.teki0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
}
}
if (pmuki != 1) {
if (pmuki != 2) {
if (pmuki != 3) {
if (pmuki != 4) {
if (pmuki != 5) {
if (pmuki != 6) {
if (pmuki != 7) {
dx = -10 / 8;
dy = 0;
dx2 = 0;
dy2 = -10;
} else {
dx = -7 / 8;
dy = -7 / 8;
dx2 = -7;
dy2 = 7;
}
} else {
dx = 0;
dy = -10 / 8;
dx2 = 10;
dy2 = 0;
}
} else {
dx = 7 / 8;
dy = -7 / 8;
dx2 = 7;
dy2 = 7;
}
} else {
dx = 10 / 8;
dy = 0;
dx2 = 0;
dy2 = -10;
}
} else {
dx = 7 / 8;
dy = 7 / 8;
dx2 = 7;
dy2 = -7;
}
} else {
dx = 0;
dy = 10 / 8;
dx2 = -10;
dy2 = 0;
}
} else {
dx = -7 / 8;
dy = 7 / 8;
dx2 = -7;
dy2 = -7;
}
map_obj_name = "arrow" + _root.arrow_n;
map_obj_name2 = "arrow" + (_root.arrow_n + 10);
map_obj_name3 = "arrow" + (_root.arrow_n + 20);
if (!(((Key.isDown(78) || (Key.isDown(88))) && (_root.jump_on == 0)) && (arrow_cnt == 0))) {
if (!(((Key.isDown(78) || (Key.isDown(88))) || (0 < _root.jump_on)) && (arrow_cnt == 19))) {
if (arrow_cnt == 19) {
if (arrow_tame < 60) {
if (arrow_tame < 25) {
omuki = 0;
} else {
omuki = 1;
}
} else {
omuki = 2;
}
play_name = "tamam" + (pmuki + (Math.ceil(sp_on / 900) * 10));
i = omuki * -1;
for ( ; i < (omuki + 1) ; i++) {
dpth = (_root.arrow_n - omuki) + i;
map_obj_name = "arrow" + dpth;
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 1 + Math.ceil(sp_on / 900);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = ((this._x + (dx * 20)) + 240) + (dx2 * i);
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy * 20)) + this.player._y) + (dy2 * i);
dpth = (((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) - omuki) + i;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
if (_root.jump_on < 0) {
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
_root.map_s.gun1.removeMovieClip();
_root.map_s.gun2.removeMovieClip();
_root.se_gunshot1.start();
arrow_kamae = 1;
}
} else {
arrow_cnt++;
arrow_tame++;
if (arrow_tame != 25) {
if (arrow_tame == 60) {
play_name2 = "utu" + ((pmuki + 10) + (Math.ceil(sp_on / 900) * 20));
_root.map_s.gun1.gotoandstop(play_name2);
_root.map_s.gun2.gotoandstop(play_name2);
_root.map_s.gun1._x = (this._x + 240) + (dx2 * 2);
_root.map_s.gun1._y = (this._y + this.player._y) + (dy2 * 2);
_root.map_s.gun2._x = (this._x + 240) - dx2;
_root.map_s.gun2._y = (this._y + this.player._y) - dy2;
dpth = 250002 + (((_root.map_s.gun1._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200);
_root.map_s.gun1.swapDepths(dpth);
dpth = (250002 + (((_root.map_s.gun2._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200)) + 1;
_root.map_s.gun2.swapDepths(dpth);
omuki = pmuki;
i = -2;
for ( ; i < 3 ; i = i + 2) {
if (i != 0) {
_root.arrow_n++;
dpth = _root.arrow_n;
map_obj_name = "arrow" + dpth;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + dpth);
play_name = "tamam" + (Math.ceil(sp_on / 900) * 10);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).pw = 1 + Math.ceil(sp_on / 900);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = ((this._x + (dx * 20)) + 240) + (dx2 * i);
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy * 20)) + 160) + (dy2 * i);
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n;
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
}
}
}
} else {
_root.map_s.gun0.duplicateMovieClip("gun1", 54901);
_root.map_s.gun0.duplicateMovieClip("gun2", 54902);
_root.map_s.gun1.chara_n = 1;
_root.map_s.gun2.chara_n = 2;
play_name2 = "utu" + (pmuki + (Math.ceil(sp_on / 900) * 20));
_root.map_s.gun1.gotoandstop(play_name2);
_root.map_s.gun2.gotoandstop(play_name2);
_root.map_s.gun1._x = (this._x + 240) + dx2;
_root.map_s.gun1._y = (this._y + this.player._y) + dy2;
_root.map_s.gun2._x = (this._x + 240) - dx2;
_root.map_s.gun2._y = (this._y + this.player._y) - dy2;
dpth = 250002 + (((_root.map_s.gun1._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200);
_root.map_s.gun1.swapDepths(dpth);
dpth = (250002 + (((_root.map_s.gun2._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200)) + 1;
_root.map_s.gun2.swapDepths(dpth);
omuki = pmuki;
i = -1;
for ( ; i < 2 ; i++) {
if (i != 0) {
_root.arrow_n++;
dpth = _root.arrow_n;
map_obj_name = "arrow" + dpth;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + dpth);
play_name = "tamam" + (Math.ceil(sp_on / 900) * 10);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).pw = 1 + Math.ceil(sp_on / 900);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = ((this._x + (dx * 20)) + 240) + (dx2 * i);
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy * 20)) + 160) + (dy2 * i);
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n;
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
}
}
}
if (arrow_tame < 60) {
if (arrow_tame < 25) {
omuki = 0;
} else {
_root.map_s.gun1._x = (this._x + 240) + dx2;
_root.map_s.gun1._y = (this._y + this.player._y) + dy2;
_root.map_s.gun2._x = (this._x + 240) - dx2;
_root.map_s.gun2._y = (this._y + this.player._y) - dy2;
if ((pmuki != omuki) || (sp_on == 900)) {
play_name2 = "utu" + (pmuki + (Math.ceil(sp_on / 900) * 20));
_root.map_s.gun1.gotoandstop(play_name2);
_root.map_s.gun2.gotoandstop(play_name2);
dpth = 250002 + (((_root.map_s.gun1._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200);
_root.map_s.gun1.swapDepths(dpth);
dpth = (250002 + (((_root.map_s.gun2._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200)) + 1;
_root.map_s.gun2.swapDepths(dpth);
}
omuki = 1;
}
} else {
_root.map_s.gun1._x = (this._x + 240) + (dx2 * 2);
_root.map_s.gun1._y = (this._y + this.player._y) + (dy2 * 2);
_root.map_s.gun2._x = (this._x + 240) - dx2;
_root.map_s.gun2._y = (this._y + this.player._y) - dy2;
if ((pmuki != omuki) || (sp_on == 900)) {
play_name2 = "utu" + ((pmuki + 10) + (Math.ceil(sp_on / 900) * 20));
_root.map_s.gun1.gotoandstop(play_name2);
_root.map_s.gun2.gotoandstop(play_name2);
dpth = 250002 + (((_root.map_s.gun1._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200);
_root.map_s.gun1.swapDepths(dpth);
dpth = (250002 + (((_root.map_s.gun2._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200)) + 1;
_root.map_s.gun2.swapDepths(dpth);
}
omuki = 2;
}
i = omuki * -1;
for ( ; i < (omuki + 1) ; i++) {
dpth = (_root.arrow_n - omuki) + i;
map_obj_name = "arrow" + dpth;
if (sp_on != 900) {
if (sp_on == 1) {
eval ("_root.map_s." + map_obj_name).gotoandplay("tamam0x");
}
} else {
eval ("_root.map_s." + map_obj_name).gotoandplay("tamam10");
}
eval ("_root.map_s." + map_obj_name).pw = 1 + Math.ceil(sp_on / 900);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = ((this._x + (dx * 20)) + 240) + (dx2 * i);
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy * 20)) + this.player._y) + (dy2 * i);
dpth = (((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) - omuki) + i;
if (_root.jump_on == 0) {
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
}
if (_root.jump_on < 0) {
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
omuki = pmuki;
}
} else {
play_name = "tamam" + (Math.ceil(sp_on / 900) * 10);
_root.arrow_n++;
if (25 < _root.arrow_n) {
_root.arrow_n = 5;
}
dpth = _root.arrow_n;
map_obj_name = "arrow" + dpth;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + dpth);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 20)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 20)) + 160;
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n;
eval ("_root.map_s." + map_obj_name).pw = 1 + Math.ceil(sp_on / 900);
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
arrow_cnt = 20;
arrow_tame = 0;
arrow_kamae = -1;
}
_root.bg4.bg4a._x = (((_root.map_s._x / 4) % 36) + 36) % 36;
_root.bg4.bg4a._y = ((((_root.map_s._y / 4) - (12 * math.floor((_root.map_s._x / 4) / 36))) % 720) + 720) % 720;
_root.bg4.bg4b._x = (((_root.map_s._x / 4) % 40) + 40) % 40;
_root.bg4.bg4b._y = (((_root.map_s._y / 4) % 720) + 720) % 720;
_root.bg4.bg4c._x = (_root.map_s._x / 8) % 480;
_root.bg4.bg4c._y = (_root.map_s._y / 8) % 360;
_root.map_s.txt0._x = this._x;
_root.map_s.txt0._y = this._y;
_root.map_s.txt0.bosshpbar._xscale = 200 * _root.bosshp;
px = px0;
py = py0;
_root.px = px;
_root.py = py;
_root.flag1 = _root.bg1._x;
loop_cnt++;
if (500 < loop_cnt) {
loop_cnt = 0;
}
if (0 < arrow_cnt) {
arrow_cnt--;
}
if (arrow_cnt == 10) {
arrow_kamae = 1;
}
if (arrow_cnt < 0) {
arrow_cnt++;
}
if (0 < sp_on) {
sp_on--;
}
_root.map_s.txt0.sptxt.gsbar._xscale = 30 * Math.floor(sp_on / 30);
_root.jikan--;
if ((_root.jikan < 0) && (timeup_on == 0)) {
_root.jikan = 0;
_root.map_s.gun1.removeMovieClip();
_root.map_s.gun2.removeMovieClip();
if (_root.jump_on == 0) {
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
_root.jikan = 0;
timeup_on = 90;
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
this.player.gotoandplay("timeup");
}
}
}
}
}
Instance of Symbol 140 MovieClip [sp_character3] "player3" in Symbol 1800 MovieClip [sp_map4] Frame 4
onClipEvent (load) {
px0 = 0;
py0 = 0;
px = 5.5;
py = 8.5;
qx = 0;
qy = 0;
rakka1 = 0;
teki_ptn = 0;
loop_cnt = 0;
pmuki = 5;
arrow_cnt = 0;
mouse_kakudo = 0;
move_on = 0;
teki_ran = 0;
arrow_tame = 0;
arrow_on = 0;
timeup_on = 0;
arrow_kamae = 1;
sp_on = 0;
muteki = 0;
bcnt = 0;
bind_on = 0;
}
onClipEvent (enterFrame) {
if (((_root.charan == 3) && (this != _root.map_os4.player3)) && (this != _root.map_s.player3)) {
if (!(((timeup_on == 0) && (_root.bossmode != 1)) && (_root.bossmode < 3))) {
if (_root.bossmode != 1) {
if (_root.bossmode != 3) {
if (_root.bossmode != 4) {
if (0 < timeup_on) {
_root.jikan = 0;
timeup_on--;
if (timeup_on == 1) {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
_root.gotoandplay("end");
}
}
} else {
if (bcnt != 0) {
if (bcnt != 130) {
if (bcnt != 160) {
if (bcnt != 161) {
if (!((161 < bcnt) && (bcnt < 201))) {
if (bcnt != 255) {
if (bcnt != 263) {
if (bcnt == 269) {
_root.map_s.bossx.gotoandplay("tatu0");
_root.se_baku.start();
}
} else {
_root.homsp = 1;
_root.map_s.txt0.timestop.gotoandstop("b");
k = 0;
for ( ; k < 8 ; k++) {
map_obj_name = "arrow" + (90 + k);
eval ("_root.map_s." + map_obj_name).pw = 3;
eval ("_root.map_s." + map_obj_name).tame = 250;
}
}
} else {
_root.se_kachi1.start();
}
} else {
if (bcnt == 180) {
this.player.gotoandstop("end1");
}
k = 0;
for ( ; k < 8 ; k++) {
map_obj_name = "arrow" + (90 + k);
eval ("_root.map_s." + map_obj_name)._y = eval ("_root.map_s." + map_obj_name)._y - (9 - ((bcnt - 162) / 2));
}
}
} else {
map_obj_name = "arrow90";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow91";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow92";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow93";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow94";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow95";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
}
} else {
_root.arrow_n = 1;
play_name = "tamamh1";
k = 0;
for ( ; k < 8 ; k++) {
map_obj_name = "arrow" + (90 + k);
dx2 = ((_root.map_s.bossx._x + 16) - 16) + (32 * Math.cos((k * Math.PI) / 4));
dy2 = (_root.map_s.bossx._y - 16) + (32 * Math.sin((k * Math.PI) / 4));
kakudo = (Math.atan2((this._y + 160) - dy2, (this._x + 240) - dx2) * 180) / Math.PI;
dy = (((this._y + 160) - dy2) * -1) / 40;
dx = (((this._x + 240) - dx2) * -1) / 40;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name)._x = (this._x + dx) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + dy) + 160;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
eval ("_root.map_s." + map_obj_name).chara_n = 3 + k;
_root.arrow_n++;
}
if (10 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
_root.se_pwup.start();
_root.map_s.txt0.timestop.gotoandstop("a");
bcnt = _root.map_s.bossx.boss4_hon._currentframe;
_root.map_s.bossx.boss4_hon.gotoandstop(bcnt);
bcnt = 130;
}
} else {
this._alpha = 100;
_root.map_s.txt0.bossname.gotoandplay("siro3");
_root.se_pwup.start();
_root.map_s.txt0.bosshpbar._xscale = 0;
_root.homsp = 0;
kakudo = (Math.atan2(((this._y + 160) - _root.map_s.bossx._y) + 16, (((this._x + 240) - _root.map_s.bossx._x) - 16) + 16) * 180) / Math.PI;
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
pmuki = 4;
} else {
pmuki = 5;
}
} else {
pmuki = 6;
}
} else {
pmuki = 7;
}
} else {
pmuki = 3;
}
} else {
pmuki = 2;
}
} else {
pmuki = 1;
}
} else {
pmuki = 8;
}
this.player.gotoandstop("utu" + pmuki);
dy = ((((this._y + 160) - _root.map_s.bossx._y) + 16) * -1) / 60;
dx = (((((this._x + 240) - _root.map_s.bossx._x) - 16) + 16) * -1) / 60;
}
if ((270 < bcnt) && (0 < _root.map_s.bossx._alpha)) {
_root.map_s.bossx._alpha = _root.map_s.bossx._alpha - 1;
}
if (bcnt < 60) {
_root.map_s._x = _root.map_s._x - (dx / 2);
_root.map_s._y = _root.map_s._y - (dy / 2);
_root.map_s.txt0._x = _root.map_s.txt0._x + (dx / 2);
_root.map_s.txt0._y = _root.map_s.txt0._y + (dy / 2);
}
if (bcnt != 300) {
if (bcnt == 700) {
_root.bossmode = 5;
_root.gotoandplay("gameclear");
}
} else {
_root.bgm1.gotoandplay("play3");
_root.score = _root.score + 5000;
}
if (bcnt < 1200) {
bcnt++;
}
}
} else if (bcnt != 3) {
bcnt++;
} else {
bcnt = 0;
_root.bossmode = 4;
}
} else if (bcnt >= 40) {
if (bcnt >= 70) {
if (bcnt >= 215) {
if (bcnt >= 240) {
if (bcnt != 240) {
if (bcnt != 250) {
if (bcnt != 330) {
if (bcnt >= 390) {
if (bcnt >= 430) {
move_on = 0;
_root.bgm1.gotoAndPlay("play2");
teki_ptn = 1;
_root.tobashi = 0;
_root.bossmode = 2;
bcnt = 0;
} else {
_root.bosshp = 40;
_root.map_s._x = _root.map_s._x + 4;
_root.map_s._y = _root.map_s._y - 4;
_root.map_s.txt0._x = _root.map_s.txt0._x - 4;
_root.map_s.txt0._y = _root.map_s.txt0._y + 4;
bcnt++;
}
} else {
bcnt++;
}
} else {
_root.map_s.txt0.bossname.gotoandplay("kesu");
bcnt++;
map_obj_name = "bossx2";
eval ("_root.map_s." + map_obj_name).isu0.gotoandplay(1);
map_obj_name = "bossx";
if (_root.homsp != 1) {
eval ("_root.map_s." + map_obj_name).boss4_hon.gotoandstop("tatu");
} else {
eval ("_root.map_s." + map_obj_name).boss4_hon.gotoandplay("tatu");
}
}
} else {
_root.map_s.txt0.bossname.gotoandplay("bossname2");
bcnt++;
map_obj_name = "bossx2";
eval ("_root.map_s." + map_obj_name).isu0.gotoandplay("bb");
map_obj_name = "bossx";
eval ("_root.map_s." + map_obj_name).boss4_hon.gotoandplay("tatur");
_root.se_doon.start();
}
} else {
bcnt++;
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ix = Math.floor(px0 / 32) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
_root.mapx[jx] = (_root.mapx[jx].substring(0, (64 * 3) + 12) + "0000") + _root.mapx[jx].substring((64 * 3) + 16);
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
_root.map_s.wall0._alpha = 0;
}
} else {
bcnt++;
}
} else {
if (bcnt != 90) {
if (bcnt != 120) {
if (bcnt != 150) {
if (bcnt == 160) {
ix = 15;
if (_root.homsp == 0) {
_root.bg4.bg4d.gotoandstop("ee2");
}
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
}
} else {
_root.map_s.wall0.door4.gotoandplay("b");
_root.se_open1.start();
if (_root.homsp != 1) {
_root.bg4.bg4d.gotoandplay("ee3");
} else {
_root.bg4.bg4d.gotoandplay("ee");
}
_root.map_s.txt0.bossname.gotoandplay("bossname1");
}
} else {
_root.map_s.wall0.door3.gotoandplay("b");
_root.se_open1.start();
_root.bg4.bg4d.gotoandplay("dd");
}
} else {
_root.map_s.wall0.door2.gotoandplay("b");
_root.se_open1.start();
_root.bg4.bg4d.gotoandplay("cc");
}
_root.map_s._x = _root.map_s._x - 8;
_root.map_s._y = _root.map_s._y + 8;
_root.map_s.txt0._x = _root.map_s.txt0._x + 8;
_root.map_s.txt0._y = _root.map_s.txt0._y - 8;
this._x = this._x + 8;
this._y = this._y - 8;
bcnt++;
}
} else {
bcnt++;
if (bcnt == 60) {
map_obj_name = "bossx";
if (_root.homsp != 1) {
eval ("_root.map_s." + map_obj_name).boss4_hon.gotoandstop("tatu");
} else {
eval ("_root.map_s." + map_obj_name).boss4_hon.gotoandplay("tatu");
}
_root.map_s.wall0.door1.gotoandplay("b");
_root.se_open1.start();
_root.bg4.bg4d.gotoandplay("bb");
}
}
} else {
if (bcnt == 1) {
_root.bg4.bg4d.gotoandplay("aa");
i = 217 + (16 * 2);
j = 7;
_root.enmy_n = 0;
map_obj_name = "bossx2";
_root.map_s.bossisu0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) - 16;
eval ("_root.map_s." + map_obj_name)._y = ((164 - (i * 32)) + (j * 32)) - 2;
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).gotoandplay(1);
map_obj_name = "bossx";
_root.map_s.boss0.duplicateMovieClip(map_obj_name, 51001 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) - 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).gotoandplay(1);
_root.enmy_n = 1;
_root.enmy_n0 = 0;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
_root.map_s._x = _root.map_s._x - 4;
_root.map_s._y = _root.map_s._y + 4;
_root.map_s.txt0._x = _root.map_s.txt0._x + 4;
_root.map_s.txt0._y = _root.map_s.txt0._y - 4;
bcnt++;
}
} else {
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
dxy = 1;
mx = 0;
my = 0;
if (mousemode == 1) {
mouse_kakudo = (Math.atan2(((_root._ymouse - 160) - 56) - 16, (_root._xmouse - 240) + 16) * 180) / Math.PI;
_root.flag2 = Math.floor(mouse_kakudo);
if (!(((45 + 22.5) >= mouse_kakudo) && ((45 - 22.5) < mouse_kakudo))) {
if (!(((135 + 22.5) >= mouse_kakudo) && ((135 - 22.5) < mouse_kakudo))) {
if (!(((-135 + 22.5) >= mouse_kakudo) && ((-135 - 22.5) < mouse_kakudo))) {
if (!(((-45 + 22.5) >= mouse_kakudo) && ((-45 - 22.5) < mouse_kakudo))) {
if (!(((-90 + 22.5) >= mouse_kakudo) && ((-90 - 22.5) < mouse_kakudo))) {
if (!(((0 + 22.5) >= mouse_kakudo) && ((-22.5) < mouse_kakudo))) {
if (!(((90 + 22.5) >= mouse_kakudo) && ((90 - 22.5) < mouse_kakudo))) {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
}
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
}
}
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.PGDN)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.END)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.HOME)))) {
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.PGUP)))) {
if (!Key.isDown(Key.RIGHT)) {
if (!Key.isDown(Key.LEFT)) {
if (!Key.isDown(Key.DOWN)) {
if (!Key.isDown(Key.UP)) {
tenkey = 0;
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
tenkey = 1;
mousemode = 0;
}
if (!(Key.isDown(1) || (tenkey == 1))) {
dxy = 1;
mx = 0;
my = 0;
move_on = 0;
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + pmuki);
}
} else {
if (Key.isDown(1)) {
mousemode = 1;
}
if (move_on != (pmuki * arrow_kamae)) {
if (arrow_kamae != -1) {
this.player.gotoandplay("tatu" + pmuki);
} else {
this.player.gotoandplay("utu" + pmuki);
}
move_on = pmuki * arrow_kamae;
}
}
if ((Key.isDown(77) || (Key.isDown(67))) && (_root.jump_on == 0)) {
_root.jump_on = 23;
if (bind_on == 0) {
_root.se_jump.start();
}
}
if (!(((0 < bind_on) && (_root.tobashi == 0)) && (muteki == 0))) {
bind_on = 0;
} else {
dxy = 0;
mx = 0;
my = 0;
if ((bind_on % 10) != 0) {
bind_on = bind_on - 1;
} else if (0 < _root.jump_on) {
bind_on = bind_on - 301;
_root.se_jump.start();
}
bind_on = bind_on - 10;
_root.jump_on = 0;
}
if ((((Key.isDown(66) || (Key.isDown(90))) && (0 < _root.sp)) && (-20 < _root.jump_on)) && (sp_on < 1)) {
sp_on = 300;
_root.homsp = 0;
_root.se_pwup.start();
_root.sp--;
_root.map_s.txt0.timestop.gotoandstop("a");
sp_on = _root.bg4.bg4a._currentframe;
_root.bg4.bg4a.gotoandstop(sp_on);
sp_on = _root.bg4.bg4b._currentframe;
_root.bg4.bg4b.gotoandstop(sp_on);
sp_on = _root.bg4.bg4d._currentframe;
if (1 < _root.bossmode) {
_root.bg4.bg4d.gotoandstop(sp_on);
}
sp_on = 300;
}
if (0 >= _root.jump_on) {
if (!((_root.jump_on < 0) && (-70 < _root.jump_on))) {
rakka1 = 0;
} else {
this.player._y = this.player._y - (_root.jump_on - 10);
_root.jump_on--;
if (_root.jump_on == -20) {
if (sp_on != 0) {
_root.se_warp1.start();
_root.map_s.player1.swapDepths(250001);
_root.map_s.player1.player.gotoandstop("tatu1");
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
sp_on = 1;
_root.map_s._x = qx;
_root.map_s._y = qy;
_root.map_s.player1._x = -32 - qx;
_root.map_s.player1._y = 56 - qy;
muteki = 150;
move_on = 0;
this._alpha = 50;
arrow_tame = 0;
arrow_cnt = 18;
this.player._y = 160;
} else {
_root.se_fall.start();
}
}
if (_root.jump_on < -50) {
_root.enmy_n0 = 0;
rakka1 = 0;
_root.jump_on = -100;
_root.tobashi = 0;
_root.gotoandplay("end");
}
}
} else {
this.player._y = this.player._y - (_root.jump_on - 12);
_root.jump_on--;
rakka1 = 1;
}
if (0 < muteki) {
_root.tobashi = 0;
muteki--;
if (muteki < 1) {
this._alpha = 100;
}
}
if (0 < _root.tobashi) {
_root.tobashi--;
_root.map_s._x = _root.map_s._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y + (((_root.my2 * _root.tobashi) * 2) / 10);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b") {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c") {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
}
} else {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
}
}
k = 0;
for ( ; k < dxy ; k++) {
_root.map_s._x = _root.map_s._x - (mx / 2);
_root.map_s._y = _root.map_s._y - (my / 2);
this._x = this._x + (mx / 2);
this._y = this._y + (my / 2);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.jump_on >= 0) {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
this.player_kage.gotoandstop(1);
if (_root.jump_on == 0) {
qx = _root.map_s._x;
qy = _root.map_s._y;
}
} else if (!((rakka1 == 0) && (_root.tobashi == 0))) {
this.player_kage.gotoandstop("kesu");
if ((_root.jump_on == 0) || (0 < _root.tobashi)) {
k = 100;
dy = _root.jump_on - 12;
_root.jump_on = -1;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths(50090 - (((ix1 + 16) - iy1) * 100));
if (!((192 < ix1) || (128 < _root.startx))) {
if (!((128 < ix1) || (64 < _root.startx))) {
if (64 < ix1) {
_root.startx = 64;
_root.starty = 6;
}
} else {
_root.startx = 128;
_root.starty = 3;
}
} else {
_root.startx = 192;
_root.starty = 4;
}
}
} else {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c")) {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
if (((205 < Math.floor(px0 / 2)) && (_root.jump_on == 0)) && (_root.bossmode == 0)) {
bcnt = 0;
_root.bossmode = 1;
_root.bgm1.gotoAndPlay("end");
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + pmuki);
}
}
if (_root.bossmode == 2) {
if (_root.bosshp < 1) {
_root.bosshp = 0;
if (_root.jump_on == 0) {
bcnt = 0;
_root.bossmode = 3;
}
}
}
if (Math.floor(px / 32) >= Math.floor(px0 / 32)) {
if (Math.floor(px0 / 32) < Math.floor(px / 32)) {
ij = 0;
for ( ; ij < (Math.floor(px / 32) - Math.floor(px0 / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) + 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
} else {
ij = 0;
for ( ; ij < (Math.floor(px0 / 32) - Math.floor(px / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) + 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) - 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
if (Math.floor(px / 2) >= Math.floor(px0 / 2)) {
if (Math.floor(px0 / 2) < Math.floor(px / 2)) {
ij = 0;
for ( ; ij < ((Math.floor(px0 / 2) * -1) + Math.floor(px / 2)) ; ij++) {
i = (Math.floor(px0 / 2) - 8) + ij;
if (i < 0) {
i = 0;
}
if (250 < i) {
i = 250;
}
j = 0;
for ( ; j < 16 ; j++) {
if (_root.mapx[j].charAt(i) == "a") {
if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "b") + _root.mapx[j].substring(i + 1);
_root.map_s.hashira0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
}
}
}
} else {
ij = 0;
for ( ; ij < (Math.floor(px0 / 2) - Math.floor(px / 2)) ; ij++) {
i = (Math.floor(px0 / 2) + 8) - ij;
if (i < 0) {
i = 0;
}
if (250 < i) {
i = 250;
}
j = 0;
for ( ; j < 16 ; j++) {
if (_root.mapx[j].charAt(i) != "2") {
if (_root.mapx[j].charAt(i) != "3") {
if (_root.mapx[j].charAt(i) != "9") {
if (_root.mapx[j].charAt(i) != "8") {
if (_root.mapx[j].charAt(i) != "7") {
if (_root.mapx[j].charAt(i) == "a") {
if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "b") + _root.mapx[j].substring(i + 1);
_root.map_s.hashira0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.tekia0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).ptn = Math.floor(Math.random() * 2) * 10;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else {
map_obj_name = "gs1";
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.gs0.duplicateMovieClip(map_obj_name, 58000);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.bigball0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.teki0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
}
}
if (pmuki != 1) {
if (pmuki != 2) {
if (pmuki != 3) {
if (pmuki != 4) {
if (pmuki != 5) {
if (pmuki != 6) {
if (pmuki != 7) {
dx = -10 / 8;
dy = 0;
dx2 = -7 / 8;
dy2 = -7 / 8;
} else {
dx = -7 / 8;
dy = -7 / 8;
dx2 = 0;
dy2 = -10 / 8;
}
} else {
dx = 0;
dy = -10 / 8;
dx2 = 7 / 8;
dy2 = -7 / 8;
}
} else {
dx = 7 / 8;
dy = -7 / 8;
dx2 = 10 / 8;
dy2 = 0;
}
} else {
dx = 10 / 8;
dy = 0;
dx2 = 7 / 8;
dy2 = 7 / 8;
}
} else {
dx = 7 / 8;
dy = 7 / 8;
dx2 = 0;
dy2 = 10 / 8;
}
} else {
dx = 0;
dy = 10 / 8;
dx2 = -7 / 8;
dy2 = 7 / 8;
}
} else {
dx = -7 / 8;
dy = 7 / 8;
dx2 = -10 / 8;
dy2 = 0;
}
if (sp_on < 1) {
dx2 = 0;
dy2 = 0;
}
map_obj_name = "arrow" + _root.arrow_n;
if (!(((Key.isDown(78) || (Key.isDown(88))) && (_root.jump_on == 0)) && (arrow_cnt == 0))) {
if (!(((Key.isDown(78) || (Key.isDown(88))) || (0 < _root.jump_on)) && (arrow_cnt == 19))) {
if (arrow_cnt == 19) {
eval ("_root.map_s." + map_obj_name).tame = 1;
if (arrow_tame < 60) {
if (arrow_tame < 25) {
play_name = "tamamh1";
eval ("_root.map_s." + map_obj_name).pw = 1;
} else {
play_name = "tamamh2";
eval ("_root.map_s." + map_obj_name).pw = 2;
}
} else {
play_name = "tamamh3";
eval ("_root.map_s." + map_obj_name).pw = 3;
}
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + 160;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
_root.se_shot.start();
_root.arrow_n++;
if (12 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
arrow_cnt++;
arrow_tame++;
if (arrow_tame < 60) {
if (arrow_tame < 25) {
play_name = "tamamh1";
eval ("_root.map_s." + map_obj_name).pw = 1;
} else {
play_name = "tamamh2";
eval ("_root.map_s." + map_obj_name).pw = 2;
}
} else {
play_name = "tamamh3";
eval ("_root.map_s." + map_obj_name).pw = 3;
}
if ((arrow_tame == 25) || (arrow_tame == 60)) {
omuki = 0;
}
if (pmuki != omuki) {
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
}
omuki = pmuki;
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + this.player._y;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
if (_root.jump_on < 0) {
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
} else {
play_name = "tamamh1";
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + 160;
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n + 3;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
arrow_cnt = 20;
arrow_tame = 0;
arrow_kamae = -1;
omuki = pmuki;
if (7 < sp_on) {
sp_on = sp_on - 20;
if (sp_on < 8) {
sp_on = 7;
}
}
}
_root.bg4.bg4a._x = (((_root.map_s._x / 4) % 36) + 36) % 36;
_root.bg4.bg4a._y = ((((_root.map_s._y / 4) - (12 * math.floor((_root.map_s._x / 4) / 36))) % 720) + 720) % 720;
_root.bg4.bg4b._x = (((_root.map_s._x / 4) % 40) + 40) % 40;
_root.bg4.bg4b._y = (((_root.map_s._y / 4) % 720) + 720) % 720;
_root.bg4.bg4c._x = (_root.map_s._x / 8) % 480;
_root.bg4.bg4c._y = (_root.map_s._y / 8) % 360;
_root.map_s.txt0._x = this._x;
_root.map_s.txt0._y = this._y;
_root.map_s.txt0.bosshpbar._xscale = 200 * _root.bosshp;
px = px0;
py = py0;
_root.px = px;
_root.py = py;
_root.flag1 = _root.bg1._x;
loop_cnt++;
if (500 < loop_cnt) {
loop_cnt = 0;
}
if (0 < arrow_cnt) {
arrow_cnt--;
}
if (arrow_cnt == 18) {
arrow_kamae = 1;
}
if (arrow_cnt < 0) {
arrow_cnt++;
}
if (0 < sp_on) {
if (sp_on != 1) {
if (sp_on == 7) {
_root.se_kachi1.start();
}
} else {
_root.map_s.txt0.timestop.gotoandstop("b");
_root.homsp = 1;
sp_on = _root.bg4.bg4a._currentframe;
_root.bg4.bg4a.gotoandplay(sp_on);
sp_on = _root.bg4.bg4b._currentframe;
_root.bg4.bg4b.gotoandplay(sp_on);
sp_on = _root.bg4.bg4d._currentframe;
if (1 < _root.bossmode) {
_root.bg4.bg4d.gotoandplay(sp_on);
}
sp_on = 1;
}
sp_on--;
}
_root.map_s.txt0.sptxt.gsbar._xscale = 30 * Math.floor(sp_on / 30);
_root.jikan--;
if ((_root.jikan < 0) && (timeup_on == 0)) {
_root.jikan = 0;
if (_root.jump_on == 0) {
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
_root.jikan = 0;
timeup_on = 90;
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
this.player.gotoandplay("timeup");
}
}
}
}
}
Instance of Symbol 148 MovieClip [sp_character4] "player4" in Symbol 1800 MovieClip [sp_map4] Frame 5
onClipEvent (load) {
px0 = 0;
py0 = 0;
px = 5.5;
py = 8.5;
qx = 0;
qy = 0;
rakka1 = 0;
teki_ptn = 0;
loop_cnt = 0;
pmuki = 5;
arrow_cnt = 0;
mouse_kakudo = 0;
move_on = 0;
teki_ran = 0;
arrow_tame = 0;
arrow_on = 0;
timeup_on = 0;
arrow_kamae = 1;
sp_on = 0;
muteki = 0;
arw_pw = 0;
bcnt = 0;
tenkey = 0;
mousemode = 0;
bind_on = 0;
}
onClipEvent (enterFrame) {
if (((_root.charan == 4) && (this != _root.map_os4.player4)) && (this != _root.map_s.player4)) {
if (!(((timeup_on == 0) && (_root.bossmode != 1)) && (_root.bossmode < 3))) {
if (_root.bossmode != 1) {
if (_root.bossmode != 3) {
if (_root.bossmode != 4) {
if (0 < timeup_on) {
_root.jikan = 0;
timeup_on--;
if (timeup_on == 1) {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
_root.gotoandplay("end");
}
}
} else {
if (bcnt != 0) {
if (bcnt != 130) {
if (bcnt != 161) {
if ((161 < bcnt) && (bcnt < 181)) {
this._x = this._x + dx;
this._y = this._y + dy;
this.player._y = this.player._y + (bcnt - 171);
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx2 * 2)) + 240;
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy2 * 2)) + this.player._y) - 8;
if (bcnt == 175) {
_root.map_s.bossx.gotoandplay("tatu0");
_root.se_baku.start();
}
}
} else {
this.player.gotoandstop("utub" + pmuki);
if (pmuki != 1) {
if (pmuki != 2) {
if (pmuki != 3) {
if (pmuki != 4) {
if (pmuki != 5) {
if (pmuki != 6) {
if (pmuki != 7) {
dx2 = -18;
dy2 = 5;
} else {
dx2 = -8;
dy2 = -13;
}
} else {
dx2 = 6;
dy2 = -23;
}
} else {
dx2 = 16;
dy2 = -5;
}
} else {
dx2 = 17;
dy2 = 5;
}
} else {
dx2 = 8;
dy2 = 18;
}
} else {
dx2 = -6;
dy2 = 23;
}
} else {
dx2 = -16;
dy2 = 15;
}
map_obj_name = "arrow" + 99;
play_name = "tamaan31";
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx2 * 2)) + 240;
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy2 * 2)) + this.player._y) - 8;
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 4;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
_root.se_byoro7.start();
}
} else {
dx2 = (_root.map_s.bossx._x + 16) - 16;
dy2 = (_root.map_s.bossx._y + 16) - 16;
kakudo = (Math.atan2((this._y + 160) - dy2, (this._x + 240) - dx2) * 180) / Math.PI;
dy = (((this._y + 160) - dy2) * -1) / 20;
dx = (((this._x + 240) - dx2) * -1) / 20;
_root.arrow_n = 1;
play_name = "tamamh1";
_root.se_byoro2.start();
k = 0;
for ( ; k < 6 ; k++) {
map_obj_name = "arrow" + (90 + k);
dx2 = ((_root.map_s.bossx._x + 16) + (64 * Math.cos(((k * Math.PI) / 3) + 1.1))) - 16;
dy2 = ((_root.map_s.bossx._y + 16) + (64 * Math.sin(((k * Math.PI) / 3) + 1.1))) - 16;
_root.map_s.gun0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
eval ("_root.map_s." + map_obj_name).gotoandplay("ank1");
eval ("_root.map_s." + map_obj_name)._x = dx2;
eval ("_root.map_s." + map_obj_name)._y = dy2;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + k) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
_root.arrow_n++;
}
if (10 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
this._alpha = 100;
_root.map_s.txt0.bossname.gotoandplay("siro4");
_root.se_pwup.start();
_root.map_s.txt0.bosshpbar._xscale = 0;
_root.homsp = 0;
kakudo = (Math.atan2(((this._y + 160) - _root.map_s.bossx._y) + 16, ((this._x + 240) - _root.map_s.bossx._x) - 16) * 180) / Math.PI;
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
pmuki = 4;
} else {
pmuki = 5;
}
} else {
pmuki = 6;
}
} else {
pmuki = 7;
}
} else {
pmuki = 3;
}
} else {
pmuki = 2;
}
} else {
pmuki = 1;
}
} else {
pmuki = 8;
}
this.player.gotoandstop("utu" + pmuki);
dy = ((((this._y + 160) - _root.map_s.bossx._y) + 16) * -1) / 60;
dx = ((((this._x + 240) - _root.map_s.bossx._x) - 16) * -1) / 60;
}
if ((181 < bcnt) && (0 < _root.map_s.bossx._alpha)) {
_root.map_s.bossx._alpha = _root.map_s.bossx._alpha - 1;
}
if (bcnt < 60) {
_root.map_s._x = _root.map_s._x - (dx / 2);
_root.map_s._y = _root.map_s._y - (dy / 2);
_root.map_s.txt0._x = _root.map_s.txt0._x + (dx / 2);
_root.map_s.txt0._y = _root.map_s.txt0._y + (dy / 2);
}
if (bcnt != 210) {
if (bcnt == 700) {
_root.bossmode = 5;
_root.gotoandplay("gameclear");
}
} else {
_root.bgm1.gotoandplay("play3");
_root.score = _root.score + 5000;
}
if (bcnt < 1200) {
bcnt++;
}
}
} else if (bcnt != 3) {
bcnt++;
} else {
bcnt = 0;
_root.bossmode = 4;
}
} else if (bcnt >= 40) {
if (bcnt >= 70) {
if (bcnt >= 215) {
if (bcnt >= 240) {
if (bcnt != 240) {
if (bcnt != 250) {
if (bcnt != 330) {
if (bcnt >= 390) {
if (bcnt >= 430) {
move_on = 0;
_root.bgm1.gotoAndPlay("play2");
teki_ptn = 1;
_root.tobashi = 0;
_root.bossmode = 2;
bcnt = 0;
} else {
_root.bosshp = 40;
_root.map_s._x = _root.map_s._x + 4;
_root.map_s._y = _root.map_s._y - 4;
_root.map_s.txt0._x = _root.map_s.txt0._x - 4;
_root.map_s.txt0._y = _root.map_s.txt0._y + 4;
bcnt++;
}
} else {
bcnt++;
}
} else {
_root.map_s.txt0.bossname.gotoandplay("kesu");
bcnt++;
map_obj_name = "bossx2";
eval ("_root.map_s." + map_obj_name).isu0.gotoandplay(1);
map_obj_name = "bossx";
eval ("_root.map_s." + map_obj_name).boss4_hon.gotoandplay("tatu");
}
} else {
_root.map_s.txt0.bossname.gotoandplay("bossname2");
bcnt++;
map_obj_name = "bossx2";
eval ("_root.map_s." + map_obj_name).isu0.gotoandplay("bb");
map_obj_name = "bossx";
eval ("_root.map_s." + map_obj_name).boss4_hon.gotoandplay("tatur");
_root.se_doon.start();
}
} else {
bcnt++;
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ix = Math.floor(px0 / 32) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
_root.mapx[jx] = (_root.mapx[jx].substring(0, (64 * 3) + 12) + "0000") + _root.mapx[jx].substring((64 * 3) + 16);
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
_root.map_s.wall0._alpha = 0;
}
} else {
bcnt++;
}
} else {
if (bcnt != 90) {
if (bcnt != 120) {
if (bcnt != 150) {
if (bcnt == 160) {
ix = 15;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
}
} else {
_root.map_s.wall0.door4.gotoandplay("b");
_root.se_open1.start();
_root.bg4.bg4d.gotoandplay("ee");
_root.map_s.txt0.bossname.gotoandplay("bossname1");
}
} else {
_root.map_s.wall0.door3.gotoandplay("b");
_root.se_open1.start();
_root.bg4.bg4d.gotoandplay("dd");
}
} else {
_root.map_s.wall0.door2.gotoandplay("b");
_root.se_open1.start();
_root.bg4.bg4d.gotoandplay("cc");
}
_root.map_s._x = _root.map_s._x - 8;
_root.map_s._y = _root.map_s._y + 8;
_root.map_s.txt0._x = _root.map_s.txt0._x + 8;
_root.map_s.txt0._y = _root.map_s.txt0._y - 8;
this._x = this._x + 8;
this._y = this._y - 8;
bcnt++;
}
} else {
bcnt++;
if (bcnt == 60) {
_root.map_s.wall0.door1.gotoandplay("b");
_root.se_open1.start();
_root.bg4.bg4d.gotoandplay("bb");
}
}
} else {
if (bcnt == 1) {
_root.bg4.bg4d.gotoandplay("aa");
i = 217 + (16 * 2);
j = 7;
_root.enmy_n = 0;
map_obj_name = "bossx2";
_root.map_s.bossisu0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) - 16;
eval ("_root.map_s." + map_obj_name)._y = ((164 - (i * 32)) + (j * 32)) - 2;
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).gotoandplay(1);
map_obj_name = "bossx";
_root.map_s.boss0.duplicateMovieClip(map_obj_name, 51001 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) - 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).gotoandplay(1);
_root.enmy_n = 1;
_root.enmy_n0 = 0;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
_root.map_s._x = _root.map_s._x - 4;
_root.map_s._y = _root.map_s._y + 4;
_root.map_s.txt0._x = _root.map_s.txt0._x + 4;
_root.map_s.txt0._y = _root.map_s.txt0._y - 4;
bcnt++;
}
} else {
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
dxy = 1;
mx = 0;
my = 0;
if (mousemode == 1) {
mouse_kakudo = (Math.atan2(((_root._ymouse - 160) - 56) - 16, (_root._xmouse - 240) + 16) * 180) / Math.PI;
_root.flag2 = Math.floor(mouse_kakudo);
if (!(((45 + 22.5) >= mouse_kakudo) && ((45 - 22.5) < mouse_kakudo))) {
if (!(((135 + 22.5) >= mouse_kakudo) && ((135 - 22.5) < mouse_kakudo))) {
if (!(((-135 + 22.5) >= mouse_kakudo) && ((-135 - 22.5) < mouse_kakudo))) {
if (!(((-45 + 22.5) >= mouse_kakudo) && ((-45 - 22.5) < mouse_kakudo))) {
if (!(((-90 + 22.5) >= mouse_kakudo) && ((-90 - 22.5) < mouse_kakudo))) {
if (!(((0 + 22.5) >= mouse_kakudo) && ((-22.5) < mouse_kakudo))) {
if (!(((90 + 22.5) >= mouse_kakudo) && ((90 - 22.5) < mouse_kakudo))) {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
}
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
}
}
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.PGDN)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.END)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.HOME)))) {
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.PGUP)))) {
if (!Key.isDown(Key.RIGHT)) {
if (!Key.isDown(Key.LEFT)) {
if (!Key.isDown(Key.DOWN)) {
if (!Key.isDown(Key.UP)) {
tenkey = 0;
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
tenkey = 1;
mousemode = 0;
}
if (!(Key.isDown(1) || (tenkey == 1))) {
dxy = 1;
mx = 0;
my = 0;
move_on = 0;
if (arrow_kamae != -1) {
if (arrow_kamae == 1) {
this.player.gotoandstop("tatu" + pmuki);
}
} else {
this.player.gotoandstop("utu" + pmuki);
}
} else {
if (Key.isDown(1)) {
mousemode = 1;
}
if (!(((18 >= arrow_cnt) && ((11 - arw_pw) < arrow_cnt)) && (arrow_kamae != 1))) {
if (((11 - arw_pw) >= arrow_cnt) && (1 < arrow_cnt)) {
arrow_kamae = 1;
arw_pw = 0;
}
} else {
mx = 0;
my = 0;
}
if (move_on != (pmuki * arrow_kamae)) {
if (arrow_kamae != -1) {
if (arrow_kamae == 1) {
this.player.gotoandplay("tatu" + pmuki);
}
} else {
this.player.gotoandplay("utu" + pmuki);
}
move_on = pmuki * arrow_kamae;
}
}
if ((Key.isDown(77) || (Key.isDown(67))) && (_root.jump_on == 0)) {
_root.jump_on = 23;
if (bind_on == 0) {
_root.se_jump.start();
}
}
if (!(((0 < bind_on) && (_root.tobashi == 0)) && (muteki == 0))) {
bind_on = 0;
} else {
dxy = 0;
mx = 0;
my = 0;
if ((bind_on % 10) != 0) {
bind_on = bind_on - 1;
} else if (0 < _root.jump_on) {
bind_on = bind_on - 301;
_root.se_jump.start();
}
bind_on = bind_on - 10;
_root.jump_on = 0;
}
if ((((Key.isDown(66) || (Key.isDown(90))) && (0 < _root.sp)) && (-20 < _root.jump_on)) && (sp_on < 1)) {
sp_on = 600;
_root.se_pwup.start();
_root.sp--;
this._alpha = 100;
play_name = "bari1";
map_obj_name = "arrow" + 20;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + 20);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 0;
eval ("_root.map_s." + map_obj_name).tdy = dy * 0;
eval ("_root.map_s." + map_obj_name)._x = this._x + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + 160) + 1;
eval ("_root.map_s." + map_obj_name).chara_n = 20 + 3;
dpth = ((250001 + ((((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) - 1) * 200)) + 20) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
play_name = "bari2";
map_obj_name = "arrow" + 21;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + 21);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 0;
eval ("_root.map_s." + map_obj_name).tdy = dy * 0;
eval ("_root.map_s." + map_obj_name)._x = this._x + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + 160) - 1;
eval ("_root.map_s." + map_obj_name).chara_n = 21 + 3;
dpth = ((250001 + ((((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) + 1) * 200)) + 21) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
}
if (0 >= _root.jump_on) {
if (!((_root.jump_on < 0) && (-70 < _root.jump_on))) {
rakka1 = 0;
} else {
this.player._y = this.player._y - (_root.jump_on - 10);
_root.jump_on--;
if (_root.jump_on == -20) {
map_obj_name = "arrow" + 20;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
map_obj_name = "arrow" + 21;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
if (sp_on != 0) {
_root.se_warp1.start();
_root.map_s.player1.swapDepths(250001);
_root.map_s.player1.player.gotoandstop("tatu1");
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
sp_on = 0;
_root.map_s._x = qx;
_root.map_s._y = qy;
_root.map_s.player1._x = -32 - qx;
_root.map_s.player1._y = 56 - qy;
muteki = 150;
move_on = 0;
this._alpha = 50;
arrow_tame = 0;
arrow_cnt = 18;
this.player._y = 160;
} else {
_root.se_fall.start();
}
}
if (_root.jump_on < -50) {
_root.enmy_n0 = 0;
rakka1 = 0;
_root.jump_on = -100;
_root.tobashi = 0;
_root.gotoandplay("end");
}
}
} else {
this.player._y = this.player._y - (_root.jump_on - 12);
_root.jump_on--;
rakka1 = 1;
}
if (0 < muteki) {
_root.tobashi = 0;
muteki--;
if (muteki < 1) {
this._alpha = 100;
}
}
if (0 < _root.tobashi) {
_root.tobashi--;
_root.map_s._x = _root.map_s._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y + (((_root.my2 * _root.tobashi) * 2) / 10);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b") {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c") {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
}
} else {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
}
}
k = 0;
for ( ; k < dxy ; k++) {
_root.map_s._x = _root.map_s._x - (mx / 2);
_root.map_s._y = _root.map_s._y - (my / 2);
this._x = this._x + (mx / 2);
this._y = this._y + (my / 2);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.jump_on >= 0) {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
this.player_kage.gotoandstop(1);
if (_root.jump_on == 0) {
qx = _root.map_s._x;
qy = _root.map_s._y;
}
} else if (!((rakka1 == 0) && (_root.tobashi == 0))) {
this.player_kage.gotoandstop("kesu");
if ((_root.jump_on == 0) || (0 < _root.tobashi)) {
k = 100;
dy = _root.jump_on - 12;
_root.jump_on = -1;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths(50090 - (((ix1 + 16) - iy1) * 100));
if (!((192 < ix1) || (128 < _root.startx))) {
if (!((128 < ix1) || (64 < _root.startx))) {
if (64 < ix1) {
_root.startx = 64;
_root.starty = 6;
}
} else {
_root.startx = 128;
_root.starty = 3;
}
} else {
_root.startx = 192;
_root.starty = 4;
}
}
} else {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c")) {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
if (((205 < Math.floor(px0 / 2)) && (_root.jump_on == 0)) && (_root.bossmode == 0)) {
bcnt = 0;
_root.bossmode = 1;
_root.bgm1.gotoAndPlay("end");
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + pmuki);
}
}
if (_root.bossmode == 2) {
if (_root.bosshp < 1) {
_root.bosshp = 0;
if (_root.jump_on == 0) {
bcnt = 0;
_root.bossmode = 3;
}
}
}
if (Math.floor(px / 32) >= Math.floor(px0 / 32)) {
if (Math.floor(px0 / 32) < Math.floor(px / 32)) {
ij = 0;
for ( ; ij < (Math.floor(px / 32) - Math.floor(px0 / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) + 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
} else {
ij = 0;
for ( ; ij < (Math.floor(px0 / 32) - Math.floor(px / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) + 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) - 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
if (Math.floor(px / 2) >= Math.floor(px0 / 2)) {
if (Math.floor(px0 / 2) < Math.floor(px / 2)) {
ij = 0;
for ( ; ij < ((Math.floor(px0 / 2) * -1) + Math.floor(px / 2)) ; ij++) {
i = (Math.floor(px0 / 2) - 8) + ij;
if (i < 0) {
i = 0;
}
if (250 < i) {
i = 250;
}
j = 0;
for ( ; j < 16 ; j++) {
if (_root.mapx[j].charAt(i) == "a") {
if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "b") + _root.mapx[j].substring(i + 1);
_root.map_s.hashira0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
}
}
}
} else {
ij = 0;
for ( ; ij < (Math.floor(px0 / 2) - Math.floor(px / 2)) ; ij++) {
i = (Math.floor(px0 / 2) + 8) - ij;
if (i < 0) {
i = 0;
}
if (250 < i) {
i = 250;
}
j = 0;
for ( ; j < 16 ; j++) {
if (_root.mapx[j].charAt(i) != "2") {
if (_root.mapx[j].charAt(i) != "3") {
if (_root.mapx[j].charAt(i) != "9") {
if (_root.mapx[j].charAt(i) != "8") {
if (_root.mapx[j].charAt(i) != "7") {
if (_root.mapx[j].charAt(i) == "a") {
if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "b") + _root.mapx[j].substring(i + 1);
_root.map_s.hashira0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.tekia0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).ptn = Math.floor(Math.random() * 2) * 10;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else {
map_obj_name = "gs1";
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.gs0.duplicateMovieClip(map_obj_name, 58000);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.bigball0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.teki0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
}
}
if (pmuki != 1) {
if (pmuki != 2) {
if (pmuki != 3) {
if (pmuki != 4) {
if (pmuki != 5) {
if (pmuki != 6) {
if (pmuki != 7) {
dx = -10 / 8;
dy = 0;
dx2 = -18;
dy2 = 5;
} else {
dx = -7 / 8;
dy = -7 / 8;
dx2 = -8;
dy2 = -13;
}
} else {
dx = 0;
dy = -10 / 8;
dx2 = 6;
dy2 = -23;
}
} else {
dx = 7 / 8;
dy = -7 / 8;
dx2 = 16;
dy2 = -5;
}
} else {
dx = 10 / 8;
dy = 0;
dx2 = 17;
dy2 = 5;
}
} else {
dx = 7 / 8;
dy = 7 / 8;
dx2 = 8;
dy2 = 18;
}
} else {
dx = 0;
dy = 10 / 8;
dx2 = -6;
dy2 = 23;
}
} else {
dx = -7 / 8;
dy = 7 / 8;
dx2 = -16;
dy2 = 15;
}
map_obj_name = "arrow" + _root.arrow_n;
if (!(((Key.isDown(78) || (Key.isDown(88))) && (_root.jump_on == 0)) && (arrow_cnt == 0))) {
if (!(((Key.isDown(78) || (Key.isDown(88))) || (0 < _root.jump_on)) && (arrow_cnt == 19))) {
if (arrow_cnt == 19) {
eval ("_root.map_s." + map_obj_name).tame = 1;
if (arrow_tame < 60) {
if (arrow_tame < 30) {
play_name = "tamaan" + pmuki;
play_name2 = "utub" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 2;
arw_pw = 0;
} else {
play_name = "tamaan1" + pmuki;
play_name2 = "utuc" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 3;
arw_pw = 4;
}
} else {
play_name = "tamaan2" + pmuki;
play_name2 = "utud" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 4;
arw_pw = 8;
}
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + dx2) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + dy2) + 160;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
_root.se_shot.start();
_root.arrow_n++;
arrow_kamae = -2;
if (12 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
arrow_cnt++;
arrow_tame++;
if (arrow_tame < 60) {
if (arrow_tame < 30) {
if (arrow_tame >= 0) {
play_name = "tamaanx" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 2;
}
} else {
play_name = "tamaanx1" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 3;
}
} else {
play_name = "tamaanx2" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 4;
}
if ((arrow_tame == 30) || (arrow_tame == 60)) {
omuki = 0;
}
if (pmuki != omuki) {
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
}
omuki = pmuki;
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 0)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 0)) + this.player._y;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
if (_root.jump_on < 0) {
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
if (arrow_tame < 0) {
_root.arrow_n++;
arrow_kamae = 1;
this.player.gotoandplay("tatu" + pmuki);
if (12 < _root.arrow_n) {
_root.arrow_n = 1;
}
arrow_cnt = 17;
}
}
} else {
play_name = "tamaanx" + pmuki;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 0)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 0)) + 160;
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n + 3;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
arrow_cnt = 20;
arrow_tame = 0;
arrow_kamae = -1;
omuki = pmuki;
}
_root.bg4.bg4a._x = (((_root.map_s._x / 4) % 36) + 36) % 36;
_root.bg4.bg4a._y = ((((_root.map_s._y / 4) - (12 * math.floor((_root.map_s._x / 4) / 36))) % 720) + 720) % 720;
_root.bg4.bg4b._x = (((_root.map_s._x / 4) % 40) + 40) % 40;
_root.bg4.bg4b._y = (((_root.map_s._y / 4) % 720) + 720) % 720;
_root.bg4.bg4c._x = (_root.map_s._x / 8) % 480;
_root.bg4.bg4c._y = (_root.map_s._y / 8) % 360;
_root.map_s.txt0._x = this._x;
_root.map_s.txt0._y = this._y;
_root.map_s.txt0.bosshpbar._xscale = 200 * _root.bosshp;
px = px0;
py = py0;
_root.px = px;
_root.py = py;
_root.flag1 = _root.bg1._x;
loop_cnt++;
if (500 < loop_cnt) {
loop_cnt = 0;
}
if (0 < arrow_cnt) {
arrow_cnt--;
}
if (arrow_cnt == 18) {
this.player.gotoandplay(play_name2);
}
if (arrow_cnt == 1) {
arrow_kamae = 1;
}
if (arrow_cnt < 0) {
arrow_cnt++;
}
if (0 >= sp_on) {
if (sp_on < 0) {
sp_on = 0;
muteki = 0;
}
} else {
map_obj_name = "arrow" + 20;
eval ("_root.map_s." + map_obj_name)._x = this._x + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + this.player._y) + 1;
dpth = ((250001 + ((((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) + 1) * 200)) + 20) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
map_obj_name = "arrow" + 21;
eval ("_root.map_s." + map_obj_name)._x = this._x + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + this.player._y) - 1;
dpth = ((250001 + ((((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) - 1) * 200)) + 20) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
sp_on--;
muteki = 10;
if (sp_on == 0) {
muteki = 0;
}
}
if (sp_on == 0) {
map_obj_name = "arrow" + 20;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
map_obj_name = "arrow" + 21;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
_root.map_s.txt0.sptxt.gsbar._xscale = 30 * Math.floor(sp_on / 30);
_root.jikan--;
if ((_root.jikan < 0) && (timeup_on == 0)) {
_root.jikan = 0;
if (_root.jump_on == 0) {
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
_root.jikan = 0;
timeup_on = 90;
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
this.player.gotoandplay("timeup");
}
}
}
}
}
Instance of Symbol 1802 MovieClip [txt_4] "txt0" in Symbol 1800 MovieClip [sp_map4] Frame 6
onClipEvent (load) {
this.swapDepths(600000);
}
Instance of Symbol 208 MovieClip [ball_obj] "ball0" in Symbol 1800 MovieClip [sp_map4] Frame 7
onClipEvent (load) {
otiru = 0;
muki2 = 0;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os4.ball0) && (this != _root.map_s.ball0))) {
} else {
if (_root.homsp != 1) {
this.gotoandstop(play_name);
muki2 = 100;
} else {
this._x = this._x + tdx;
this._y = this._y + tdy;
if (muki2 == 100) {
this.gotoandplay(play_name);
muki2 = 0;
}
}
px0 = (((this._x - this._y) + 160) - (6 - 15)) / 32;
py0 = (((this._x + this._y) - 160) + (6 + 15)) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (otiru != 0) {
this._y = this._y + ((60 - otiru) * _root.homsp);
otiru = otiru - _root.homsp;
if (otiru == 0) {
this.removeMovieClip();
}
} else {
dpth = (250100 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == 0) {
otiru = 60;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths((50020 - (((ix1 + 16) - iy1) * 100)) + _root.rakka_ball_n);
_root.rakka_ball_n++;
if (66 < _root.rakka_ball_n) {
_root.rakka_ball_n = 0;
}
}
}
if ((((Math.abs((this._y - _root.map_s.player1._y) - 160) < 10) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 10)) && (_root.jump_on == 0)) && (otiru == 0)) {
_root.flag1 = 666;
_root.mx2 = 4 * tdx;
_root.my2 = 4 * tdy;
_root.tobashi = 10;
_root.se_damage.start();
}
if (_root.miss_on == -20) {
this.removeMovieClip();
}
if (((640 < Math.abs((this._y - _root.map_s.player1._y) - 160)) || (960 < Math.abs((this._x - _root.map_s.player1._x) - 240))) || (_root.bossmode == 3)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 1862 MovieClip [teki4_obj] "teki0" in Symbol 1800 MovieClip [sp_map4] Frame 8
onClipEvent (load) {
tamakan = 200;
dx = 0;
dy = 0;
muki = 1;
muki2 = 0;
ddx = 0;
ddy = 0;
otiru = 0;
tatutest = "tatu";
tekihp = 4;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os4.teki0) && (this != _root.map_s.teki0))) {
} else if (!((0 < tekihp) && (_root.bossmode < 3))) {
tekihp--;
if (tekihp < -18) {
_root.enmy_n0--;
this.removeMovieClip();
}
} else {
if (otiru < 99) {
dpth = (250050 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
}
if (otiru != 0) {
if (30 < otiru) {
if (130 >= otiru) {
this._y = this._y + (130 - otiru);
otiru--;
if (otiru == 100) {
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "2") + _root.mapx[njx].substring(nix + 1);
_root.enmy_n0--;
this.removeMovieClip();
}
} else {
if (muki != 7) {
if (muki != 1) {
if (muki != 3) {
ddx = this._x - 2;
ddy = this._y + 2;
} else {
ddx = this._x - 2;
ddy = this._y - 12;
}
} else {
ddx = this._x + 34;
ddy = this._y - 12;
}
} else {
ddx = this._x + 34;
ddy = this._y + 2;
}
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (!((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == 0) || (otiru == 131))) {
this._x = this._x + dx;
this._y = this._y + dy;
otiru--;
} else {
otiru = 130;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths((50020 - (((ix1 + 16) - iy1) * 100)) + _root.rakka_ball_n);
_root.rakka_ball_n++;
if (66 < _root.rakka_ball_n) {
_root.rakka_ball_n = 0;
}
}
}
} else {
this._x = this._x + ((dx / 6) * Math.min(10, otiru - 1));
this._y = this._y + ((dy / 6) * Math.min(10, otiru - 1));
otiru--;
if (muki != 3) {
if (muki != 5) {
if (muki != 7) {
ddx = this._x - 2;
ddy = this._y + 2;
} else {
ddx = this._x - 2;
ddy = this._y - 12;
}
} else {
ddx = this._x + 34;
ddy = this._y - 12;
}
} else {
ddx = this._x + 34;
ddy = this._y + 2;
}
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c")) {
this._x = this._x - ((dx / 6) * Math.min(10, otiru - 1));
this._y = this._y - ((dy / 6) * Math.min(10, otiru - 1));
}
} else {
otiru = otiru + 132;
_root.score = _root.score + 100;
}
}
} else {
kakudo = (Math.atan2((this._y - _root.map_s.player1._y) - 160, (this._x - _root.map_s.player1._x) - 240) * 180) / Math.PI;
if (_root.homsp != 1) {
tatutest = "tatu" + muki;
muki2 = 100;
this.gotoandstop(tatutest);
} else {
if (muki2 == 100) {
tatutest = "tatu" + muki;
this.gotoandplay(tatutest);
}
muki2 = Math.floor(Math.random() * 64);
if (muki2 != 0) {
if (muki2 == 1) {
muki = muki - 2;
if (muki < 0) {
muki = 7;
}
tatutest = "tatu" + muki;
this.gotoandplay(tatutest);
}
} else if (kakudo >= -90) {
if (kakudo < 90) {
if (!((kakudo >= 0) && (kakudo < 90))) {
muki = 1;
this.gotoandplay("tatu1");
} else {
muki = 7;
this.gotoandplay("tatu7");
}
} else {
muki = 5;
this.gotoandplay("tatu5");
}
} else {
muki = 3;
this.gotoandplay("tatu3");
}
}
if (muki != 3) {
if (muki != 5) {
if (muki != 7) {
dx = -7 / 8;
dy = 7 / 8;
ddx = this._x - 2;
ddy = this._y + 2;
} else {
dx = -7 / 8;
dy = -7 / 8;
ddx = this._x - 2;
ddy = this._y - 12;
}
} else {
dx = 7 / 8;
dy = -7 / 8;
ddx = this._x + 34;
ddy = this._y - 12;
}
} else {
dx = 7 / 8;
dy = 7 / 8;
ddx = this._x + 34;
ddy = this._y + 2;
}
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (!(((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "0") && (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b")) && (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "c"))) {
muki = muki - 2;
if (muki < 0) {
muki = 7;
}
tatutest = "tatu" + muki;
if (_root.homsp == 1) {
this.gotoandplay(tatutest);
}
} else {
this._x = this._x + (dx * _root.homsp);
this._y = this._y + (dy * _root.homsp);
}
if ((((Math.abs((this._y - _root.map_s.player1._y) - 160) < 10) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 10)) && (_root.jump_on == 0)) && (otiru == 0)) {
_root.flag1 = 666;
_root.mx2 = 8 * dx;
_root.my2 = 8 * dy;
_root.tobashi = 10;
_root.se_damage.start();
}
i = 1;
for ( ; i < 31 ; i++) {
if (((Math.abs(this._y - eval ("_root.map_s.arrow" + i)._y) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2))) && (Math.abs(this._x - eval ("_root.map_s.arrow" + i)._x) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2)))) && ((_root.jump_on == 0) || (eval ("_root.map_s.arrow" + i).tame != 0))) {
if (_root.charan != 3) {
if (_root.charan != 4) {
dx = eval ("_root.map_s.arrow" + i).tdx;
dy = eval ("_root.map_s.arrow" + i).tdy;
_root.se_tekidamage.start();
tekihp = tekihp - eval ("_root.map_s.arrow" + i).pw;
otiru = 8 + (eval ("_root.map_s.arrow" + i).pw * 2);
eval ("_root.map_s.arrow" + i).removeMovieClip();
} else {
_root.se_tekidamage.start();
if (!((i == 20) && (_root.jump_on == 0))) {
if (i < 20) {
dx = eval ("_root.map_s.arrow" + i).tdx;
dy = eval ("_root.map_s.arrow" + i).tdy;
tekihp = tekihp - eval ("_root.map_s.arrow" + i).pw;
otiru = 8 + (eval ("_root.map_s.arrow" + i).pw * 2);
if (eval ("_root.map_s.arrow" + i).tame == 0) {
eval ("_root.map_s.arrow" + i).removeMovieClip();
_root.map_s.player1.arrow_tame = -100;
}
}
} else {
kakudo2 = (Math.atan2(this._y - eval ("_root.map_s.arrow" + i)._y, this._x - eval ("_root.map_s.arrow" + i)._x) * 180) / Math.PI;
dx = Math.cos((kakudo2 * Math.PI) / 180) * 4;
dy = Math.sin((kakudo2 * Math.PI) / 180) * 4;
otiru = 8 + (2 * 2);
_root.map_s.player1.sp_on = _root.map_s.player1.sp_on - 30;
}
}
} else if (i >= 15) {
if (1 < eval ("_root.map_s.arrow" + i).pw) {
if (0 < tekihp) {
tekihp = tekihp - 2;
}
otiru = 8 + (2 * 2);
_root.se_tekidamage.start();
kakudo2 = (Math.atan2(this._y - eval ("_root.map_s.arrow" + i)._y, this._x - eval ("_root.map_s.arrow" + i)._x) * 180) / Math.PI;
dx = Math.cos((kakudo2 * Math.PI) / 180) * (4 + (eval ("_root.map_s.arrow" + i).pw / 3));
dy = Math.sin((kakudo2 * Math.PI) / 180) * (4 + (eval ("_root.map_s.arrow" + i).pw / 3));
}
} else if (eval ("_root.map_s.arrow" + i).tame < 100) {
eval ("_root.map_s.arrow" + i).tame = 250;
}
if (tekihp < 1) {
tekihp = -1;
_root.score = _root.score + 100;
this.gotoandplay("tatu0");
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "2") + _root.mapx[njx].substring(nix + 1);
}
}
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
if (((240 < (tamakan * _root.homsp)) && (Math.floor(Math.random() * 32) == 0)) && (Math.abs(Math.floor(px0) - Math.floor(px)) < 16)) {
tamakan = 0;
if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.bara0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = this._x;
eval ("_root.map_s." + map_obj_name)._y = this._y;
eval ("_root.map_s." + map_obj_name).nix = 0;
eval ("_root.map_s." + map_obj_name).njx = 1;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
tamakan = tamakan + _root.homsp;
}
if (_root.miss_on == -20) {
_root.enmy_n0--;
this.removeMovieClip();
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if ((12 < (Math.floor(px0 / 2) - Math.floor(px / 2))) || (6 < (Math.floor(px / 2) - Math.floor(px0 / 2)))) {
if (otiru != 11) {
_root.enmy_n0--;
}
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "2") + _root.mapx[njx].substring(nix + 1);
this.removeMovieClip();
}
}
}
Instance of Symbol 1872 MovieClip [teki4b_obj] "tekia0" in Symbol 1800 MovieClip [sp_map4] Frame 9
onClipEvent (load) {
tamakan = 0;
dx = 0;
dy = 0;
muki = 1;
muki2 = 0;
ddx = 0;
ddy = 0;
otiru = 0;
tatutest = "tatu";
tekihp = 4;
fly = 0;
mode = 1;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os4.tekia0) && (this != _root.map_s.tekia0))) {
} else if (!((0 < tekihp) && (_root.bossmode < 3))) {
tekihp--;
if (tekihp < -18) {
_root.enmy_n0--;
this.removeMovieClip();
}
} else {
if (otiru < 99) {
dpth = (250050 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
}
if (otiru != 0) {
if (30 < otiru) {
if (130 >= otiru) {
this._y = this._y + (130 - otiru);
otiru--;
if (otiru == 100) {
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "7") + _root.mapx[njx].substring(nix + 1);
_root.enmy_n0--;
this.removeMovieClip();
}
} else {
if (muki != 7) {
if (muki != 1) {
if (muki != 3) {
ddx = this._x - 2;
ddy = this._y + 2;
} else {
ddx = this._x - 2;
ddy = this._y - 12;
}
} else {
ddx = this._x + 34;
ddy = this._y - 12;
}
} else {
ddx = this._x + 34;
ddy = this._y + 2;
}
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (!((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == 0) || (otiru == 131))) {
this._x = this._x + dx;
this._y = this._y + dy;
otiru--;
} else {
otiru = 130;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths((50020 - (((ix1 + 16) - iy1) * 100)) + _root.rakka_ball_n);
_root.rakka_ball_n++;
if (66 < _root.rakka_ball_n) {
_root.rakka_ball_n = 0;
}
}
}
} else {
this._x = this._x + ((dx / 6) * Math.min(10, otiru - 1));
this._y = this._y + ((dy / 6) * Math.min(10, otiru - 1));
otiru--;
if (muki != 3) {
if (muki != 5) {
if (muki != 7) {
ddx = this._x - 2;
ddy = this._y + 2;
} else {
ddx = this._x - 2;
ddy = this._y - 12;
}
} else {
ddx = this._x + 34;
ddy = this._y - 12;
}
} else {
ddx = this._x + 34;
ddy = this._y + 2;
}
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c")) {
this._x = this._x - ((dx / 6) * Math.min(10, otiru - 1));
this._y = this._y - ((dy / 6) * Math.min(10, otiru - 1));
}
}
}
} else {
kakudo = (Math.atan2((this._y - _root.map_s.player1._y) - 160, (this._x - _root.map_s.player1._x) - 240) * 180) / Math.PI;
if (2 >= mode) {
if (_root.homsp != 1) {
tatutest = "tatu" + muki;
muki2 = 100;
this.gotoandstop(tatutest);
} else {
if (muki2 == 100) {
tatutest = "tatu" + muki;
this.gotoandplay(tatutest);
}
muki2 = Math.floor(Math.random() * 64);
if ((muki2 < 3) || (mode == 2)) {
muki = muki - 2;
if (muki < 0) {
muki = 7;
}
tatutest = "tatu" + (muki + ptn);
this.gotoandplay(tatutest);
}
}
if (muki != 3) {
if (muki != 5) {
if (muki != 7) {
dx = -7 / 8;
dy = 7 / 8;
ddx = this._x - 2;
ddy = this._y + 2;
} else {
dx = -7 / 8;
dy = -7 / 8;
ddx = this._x - 2;
ddy = this._y - 12;
}
} else {
dx = 7 / 8;
dy = -7 / 8;
ddx = this._x + 34;
ddy = this._y - 12;
}
} else {
dx = 7 / 8;
dy = 7 / 8;
ddx = this._x + 34;
ddy = this._y + 2;
}
}
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (!(((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "0") && (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b")) && (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "c"))) {
this.kage.gotoandplay("tatu");
} else {
this.kage.gotoandplay("kesu");
}
if (!((py0 != 0) && (py0 != 31))) {
muki = muki - 2;
if (muki < 0) {
muki = 7;
}
tatutest = "tatu" + muki;
if (_root.homsp == 1) {
this.gotoandplay(tatutest);
}
} else {
this._x = this._x + (dx * _root.homsp);
this._y = this._y + (dy * _root.homsp);
}
if ((((Math.abs((this._y - _root.map_s.player1._y) - 160) < 10) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 10)) && (_root.jump_on == 0)) && (otiru == 0)) {
if (2 < mode) {
_root.mx2 = 2 * dx;
_root.my2 = 2 * dy;
} else {
_root.mx2 = 8 * dx;
_root.my2 = 8 * dy;
}
_root.tobashi = 10;
_root.se_damage.start();
}
i = 1;
for ( ; i < 31 ; i++) {
if (((Math.abs(this._y - eval ("_root.map_s.arrow" + i)._y) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2))) && (Math.abs(this._x - eval ("_root.map_s.arrow" + i)._x) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2)))) && ((_root.jump_on == 0) || (eval ("_root.map_s.arrow" + i).tame != 0))) {
if (_root.charan != 3) {
if (_root.charan != 4) {
dx = eval ("_root.map_s.arrow" + i).tdx;
dy = eval ("_root.map_s.arrow" + i).tdy;
_root.se_tekidamage.start();
tekihp = tekihp - eval ("_root.map_s.arrow" + i).pw;
otiru = 8 + (eval ("_root.map_s.arrow" + i).pw * 2);
eval ("_root.map_s.arrow" + i).removeMovieClip();
} else {
_root.se_tekidamage.start();
if (!((i == 20) && (_root.jump_on == 0))) {
if (i < 20) {
dx = eval ("_root.map_s.arrow" + i).tdx;
dy = eval ("_root.map_s.arrow" + i).tdy;
tekihp = tekihp - eval ("_root.map_s.arrow" + i).pw;
otiru = 8 + (eval ("_root.map_s.arrow" + i).pw * 2);
if (eval ("_root.map_s.arrow" + i).tame == 0) {
eval ("_root.map_s.arrow" + i).removeMovieClip();
_root.map_s.player1.arrow_tame = -100;
}
}
} else {
kakudo2 = (Math.atan2(this._y - eval ("_root.map_s.arrow" + i)._y, this._x - eval ("_root.map_s.arrow" + i)._x) * 180) / Math.PI;
dx = Math.cos((kakudo2 * Math.PI) / 180) * 4;
dy = Math.sin((kakudo2 * Math.PI) / 180) * 4;
otiru = 8 + (2 * 2);
_root.map_s.player1.sp_on = _root.map_s.player1.sp_on - 30;
}
}
} else if (i >= 15) {
if (1 < eval ("_root.map_s.arrow" + i).pw) {
if (0 < tekihp) {
tekihp = tekihp - 2;
}
otiru = 8 + (2 * 2);
_root.se_tekidamage.start();
kakudo2 = (Math.atan2(this._y - eval ("_root.map_s.arrow" + i)._y, this._x - eval ("_root.map_s.arrow" + i)._x) * 180) / Math.PI;
dx = Math.cos((kakudo2 * Math.PI) / 180) * (4 + (eval ("_root.map_s.arrow" + i).pw / 3));
dy = Math.sin((kakudo2 * Math.PI) / 180) * (4 + (eval ("_root.map_s.arrow" + i).pw / 3));
}
} else if (eval ("_root.map_s.arrow" + i).tame < 100) {
eval ("_root.map_s.arrow" + i).tame = 250;
}
if (tekihp < 1) {
tekihp = -1;
_root.score = _root.score + 100;
this.gotoandplay("tatu0");
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "7") + _root.mapx[njx].substring(nix + 1);
}
}
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (!(((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "0") && (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b")) && (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "c"))) {
this.kage.gotoandplay("kesu");
fly = 1;
} else {
this.kage.gotoandplay("tatu");
fly = 0;
}
if ((((50 < (tamakan * _root.homsp)) && (Math.floor(Math.random() * 32) == 0)) && (Math.abs(Math.floor(px0) - Math.floor(px)) < 16)) && (mode == 1)) {
kakudo = (Math.atan2((this._y - _root.map_s.player1._y) - 160, (this._x - _root.map_s.player1._x) - 240) * 180) / Math.PI;
if (!((kakudo >= -45) && (kakudo < 45))) {
if (!((kakudo >= 45) && (kakudo < 135))) {
if (!((-135 < kakudo) && (kakudo < -45))) {
tatutest = "tatu" + (4 + ptn);
this.gotoandplay(tatutest);
} else {
tatutest = "tatu" + (2 + ptn);
this.gotoandplay(tatutest);
}
} else {
tatutest = "tatu" + (6 + ptn);
this.gotoandplay(tatutest);
}
} else {
tatutest = "tatu" + (8 + ptn);
this.gotoandplay(tatutest);
}
dx = ((Math.cos((kakudo * Math.PI) / 180) * -1) * 10) / 2;
dy = ((Math.sin((kakudo * Math.PI) / 180) * -1) * 10) / 2;
mode = 90;
_root.se_bell0.start();
}
tamakan = tamakan + _root.homsp;
if (1 < mode) {
mode = mode - _root.homsp;
}
}
if (_root.miss_on == -20) {
_root.enmy_n0--;
this.removeMovieClip();
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if ((12 < (Math.floor(px0 / 2) - Math.floor(px / 2))) || (6 < (Math.floor(px / 2) - Math.floor(px0 / 2)))) {
if (otiru != 11) {
_root.enmy_n0--;
}
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "7") + _root.mapx[njx].substring(nix + 1);
this.removeMovieClip();
}
}
}
Instance of Symbol 220 MovieClip [kball_obj] "bigball0" in Symbol 1800 MovieClip [sp_map4] Frame 10
onClipEvent (load) {
tekihp = 1;
dpth = 0;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os4.bigball0) && (this != _root.map_s.bigball0))) {
} else {
dpth = (250050 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
if (0 >= tekihp) {
tekihp--;
if (tekihp != -8) {
if (tekihp != -2) {
if (tekihp < -30) {
_root.enmy_n0--;
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "3") + _root.mapx[njx].substring(nix + 1);
this.removeMovieClip();
}
} else {
this.gotoandplay("tatu0");
}
} else {
kakudo = (Math.atan2((this._y - _root.map_s.player1._y) - 160, (this._x - _root.map_s.player1._x) - 240) * 180) / Math.PI;
kakudo = kakudo - 22.5;
i = 0;
for ( ; i < 3 ; i++) {
map_obj_name = "ball" + _root.eball_n;
_root.map_s.ball0.duplicateMovieClip(map_obj_name, 50550 + _root.eball_n);
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
play_name = "tatu4";
} else {
play_name = "tatu5";
}
} else {
play_name = "tatu6";
}
} else {
play_name = "tatu7";
}
} else {
play_name = "tatu3";
}
} else {
play_name = "tatu2";
}
} else {
play_name = "tatu1";
}
} else {
play_name = "tatu8";
}
dx = ((Math.cos((kakudo * Math.PI) / 180) * -1) * 10) / 8;
dy = ((Math.sin((kakudo * Math.PI) / 180) * -1) * 10) / 8;
eval ("_root.map_s." + map_obj_name)._x = this._x + (dx * 10);
eval ("_root.map_s." + map_obj_name)._y = this._y + (dy * 10);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).play_name = play_name;
eval ("_root.map_s." + map_obj_name).tdx = dx * 2;
eval ("_root.map_s." + map_obj_name).tdy = dy * 2;
eval ("_root.map_s." + map_obj_name).chara_n = _root.eball_n;
_root.eball_n++;
if (100 < _root.eball_n) {
_root.eball_n = 1;
}
kakudo = kakudo + 22.5;
}
}
} else {
if (_root.homsp != 1) {
this.gotoandstop("tatu");
muki2 = 100;
} else if (muki2 == 100) {
this.gotoandplay("tatu");
muki2 = 0;
}
i = 1;
for ( ; i < 31 ; i++) {
if (((Math.abs(this._y - eval ("_root.map_s.arrow" + i)._y) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2))) && (Math.abs(this._x - eval ("_root.map_s.arrow" + i)._x) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2)))) && ((_root.jump_on == 0) || (eval ("_root.map_s.arrow" + i).tame != 0))) {
if (eval ("_root.map_s.arrow" + i).tame == 0) {
}
if (_root.charan != 3) {
tekihp = tekihp - eval ("_root.map_s.arrow" + i).pw;
eval ("_root.map_s.arrow" + i).removeMovieClip();
} else if (i >= 15) {
if (1 < eval ("_root.map_s.arrow" + i).pw) {
if (0 < tekihp) {
tekihp = tekihp - 2;
}
otiru = 8 + (2 * 2);
_root.se_tekidamage.start();
kakudo2 = (Math.atan2(this._y - eval ("_root.map_s.arrow" + i)._y, this._x - eval ("_root.map_s.arrow" + i)._x) * 180) / Math.PI;
dx = Math.cos((kakudo2 * Math.PI) / 180) * (4 + (eval ("_root.map_s.arrow" + i).pw / 3));
dy = Math.sin((kakudo2 * Math.PI) / 180) * (4 + (eval ("_root.map_s.arrow" + i).pw / 3));
}
} else if (eval ("_root.map_s.arrow" + i).tame < 100) {
eval ("_root.map_s.arrow" + i).tame = 250;
}
if ((tekihp < 1) && (_root.homsp == 1)) {
tekihp = -1;
_root.score = _root.score + 100;
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "2") + _root.mapx[njx].substring(nix + 1);
this.gotoandplay("tatu0");
_root.se_bom.start();
}
}
}
if ((((Math.abs((this._y - _root.map_s.player1._y) - 160) < 128) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 128)) && (tame == 0)) || (60 < tame)) {
if (_root.homsp == 1) {
tekihp = -1;
_root.se_bom.start();
}
}
if (25 < tame) {
tame++;
}
}
if (_root.miss_on == -20) {
_root.enmy_n0--;
this.removeMovieClip();
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if ((12 < (Math.floor(px0 / 2) - Math.floor(px / 2))) || (6 < (Math.floor(px / 2) - Math.floor(px0 / 2)))) {
if (otiru != 11) {
_root.enmy_n0--;
}
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "3") + _root.mapx[njx].substring(nix + 1);
this.removeMovieClip();
}
}
}
Instance of Symbol 1814 MovieClip [geruchair_obj] "bossisu0" in Symbol 1800 MovieClip [sp_map4] Frame 11
onClipEvent (load) {
pw = 1;
j_on = 0;
dy = 0;
dx = 0;
}
onClipEvent (enterFrame) {
if (!(((this != _root.map_os4.bossisu0) && (this != _root.map_s.bossisu0)) && (_root.bossmode == 2))) {
} else {
dpth = 250048 + (((this._y - _root.map_s.player1._y) - 160) * 200);
this.swapDepths(dpth);
if ((((Math.abs((this._y - _root.map_s.player1._y) - 160) < 40) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 40)) && (_root.jump_on == 0)) && (j_on < 3)) {
kakudo = (Math.atan2((this._y - _root.map_s.player1._y) - 160, (this._x - _root.map_s.player1._x) - 240) * 180) / Math.PI;
dx = ((Math.cos((kakudo * Math.PI) / 180) * -1) * 10) / 8;
dy = ((Math.sin((kakudo * Math.PI) / 180) * -1) * 10) / 8;
_root.mx2 = 8 * dx;
_root.my2 = 8 * dy;
_root.tobashi = 5;
if ((j_on >= 1) && (j_on < 3)) {
_root.tobashi = 15;
}
_root.se_damage.start();
}
tame++;
if (210 < tame) {
tame = 0;
}
if (0 < j_on) {
if (j_on != 21) {
if (j_on == 1) {
_root.se_don1.start();
}
} else {
dy = ((this._y - _root.map_s.player1._y) - 160) / 20;
dx = ((this._x - _root.map_s.player1._x) - 240) / 20;
}
this.isu0._y = this.isu0._y + ((11 - j_on) * _root.homsp);
this._y = this._y - (dy * _root.homsp);
this._x = this._x - (dx * _root.homsp);
j_on = j_on - _root.homsp;
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
}
}
Instance of Symbol 1812 MovieClip [boss4_obj] "boss0" in Symbol 1800 MovieClip [sp_map4] Frame 12
onClipEvent (load) {
tame = 0;
tame2 = 0;
tekihp = 40;
dp1 = 0;
mode = 0;
zako_n = 0;
dy = 0;
dx = 0;
mukix = 0;
}
onClipEvent (enterFrame) {
if (!(((this != _root.map_os4.boss0) && (this != _root.map_s.boss0)) && (_root.bossmode == 2))) {
} else {
dpth = 250049 + (((this._y - _root.map_s.player1._y) - 160) * 200);
this.swapDepths(dpth);
if (_root.homsp != 1) {
muki2 = this.boss4_hon._currentframe;
this.boss4_hon.gotoandstop(muki2);
muki2 = 100;
} else if (muki2 == 100) {
muki2 = this.boss4_hon._currentframe;
this.boss4_hon.gotoandplay(muki2);
muki2 = 0;
}
if (0 >= _root.bosshp) {
} else {
if (((Math.abs((this._y - _root.map_s.player1._y) - 160) < 40) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 40)) && (_root.jump_on == 0)) {
kakudo = (Math.atan2((this._y - _root.map_s.player1._y) - 160, (this._x - _root.map_s.player1._x) - 240) * 180) / Math.PI;
dx2 = ((Math.cos((kakudo * Math.PI) / 180) * -1) * 10) / 8;
dy2 = ((Math.sin((kakudo * Math.PI) / 180) * -1) * 10) / 8;
_root.mx2 = 8 * dx2;
_root.my2 = 8 * dy2;
_root.tobashi = 5;
_root.se_damage.start();
}
i = 1;
for ( ; i < 31 ; i++) {
if (((Math.abs(this._y - eval ("_root.map_s.arrow" + i)._y) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2))) && (Math.abs(this._x - eval ("_root.map_s.arrow" + i)._x) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2)))) && ((_root.jump_on == 0) || (eval ("_root.map_s.arrow" + i).tame != 0))) {
if (_root.charan != 3) {
if (_root.charan != 4) {
_root.se_tekidamage.start();
_root.bosshp = _root.bosshp - eval ("_root.map_s.arrow" + i).pw;
if (((_root.bosshp < 21) && (mode == 0)) || ((_root.bosshp < 11) && (mode == 2))) {
mode++;
tame3 = 0;
}
if (mukix != 0) {
if (mukix != 1) {
if (mukix != 2) {
if (mukix != 4) {
if (mukix != 6) {
if (mukix == 8) {
this.boss4_hon.gotoandplay("tatu8d");
}
} else {
this.boss4_hon.gotoandplay("tatu6d");
}
} else {
this.boss4_hon.gotoandplay("tatu4d");
}
} else {
this.boss4_hon.gotoandplay("tatu2d");
}
} else {
this.boss4_hon.gotoandplay("tatubd");
}
} else {
this.boss4_hon.gotoandplay("tatud");
}
eval ("_root.map_s.arrow" + i).removeMovieClip();
} else {
_root.se_tekidamage.start();
if (!((i == 20) && (_root.jump_on == 0))) {
if ((i < 20) && (eval ("_root.map_s.arrow" + i).bhit == 0)) {
if (mukix != 0) {
if (mukix != 1) {
if (mukix != 2) {
if (mukix != 4) {
if (mukix != 6) {
if (mukix == 8) {
this.boss4_hon.gotoandplay("tatu8d");
}
} else {
this.boss4_hon.gotoandplay("tatu6d");
}
} else {
this.boss4_hon.gotoandplay("tatu4d");
}
} else {
this.boss4_hon.gotoandplay("tatu2d");
}
} else {
this.boss4_hon.gotoandplay("tatubd");
}
} else {
this.boss4_hon.gotoandplay("tatud");
}
eval ("_root.map_s.arrow" + i).bhit = 1;
if (0 < _root.bosshp) {
_root.bosshp = _root.bosshp - eval ("_root.map_s.arrow" + i).pw;
}
if (((_root.bosshp < 21) && (mode == 0)) || ((_root.bosshp < 11) && (mode == 2))) {
mode++;
tame3 = 0;
}
if (eval ("_root.map_s.arrow" + i).tame == 0) {
eval ("_root.map_s.arrow" + i).removeMovieClip();
_root.map_s.player1.arrow_tame = -100;
}
}
} else {
_root.map_s.player1.sp_on = _root.map_s.player1.sp_on - 30;
}
}
} else if (i >= 15) {
if ((1 < eval ("_root.map_s.arrow" + i).pw) && (eval ("_root.map_s.arrow" + i).bhit == 0)) {
if (0 < _root.bosshp) {
_root.bosshp = _root.bosshp - 2;
}
if (((_root.bosshp < 21) && (mode == 0)) || ((_root.bosshp < 11) && (mode == 2))) {
mode++;
tame3 = 0;
}
eval ("_root.map_s.arrow" + i).bhit = 1;
_root.se_tekidamage.start();
if (mukix != 0) {
if (mukix != 1) {
if (mukix != 2) {
if (mukix != 4) {
if (mukix != 6) {
if (mukix == 8) {
this.boss4_hon.gotoandplay("tatu8d");
}
} else {
this.boss4_hon.gotoandplay("tatu6d");
}
} else {
this.boss4_hon.gotoandplay("tatu4d");
}
} else {
this.boss4_hon.gotoandplay("tatu2d");
}
} else {
this.boss4_hon.gotoandplay("tatubd");
}
} else {
this.boss4_hon.gotoandplay("tatud");
}
}
} else if (eval ("_root.map_s.arrow" + i).tame < 100) {
eval ("_root.map_s.arrow" + i).tame = 250;
}
}
}
if (!((tame < 60) && (_root.homsp == 1))) {
if (!((tame == 60) && (_root.homsp == 1))) {
if ((60 < tame) && (_root.homsp == 1)) {
if (tame != 61) {
if (tame >= 71) {
if (tame != 91) {
if (tame != 121) {
if (tame != 122) {
if (tame != 152) {
if (290 < tame) {
this.boss4_hon._y = this.boss4_hon._y + 2;
}
} else if (!(((this._y < _root.map_s.bossx2._y) && (dy < 0)) || ((_root.map_s.bossx2._y < this._y) && (0 < dy)))) {
tame--;
} else {
this._y = _root.map_s.bossx2._y + 2;
this.boss4_hon.gotoandplay("tatu");
dpth = 250049 + (((this._y - _root.map_s.player1._y) - 160) * 200);
this.swapDepths(dpth);
tame = 290;
dx = 0;
dy = 0;
mukix = 0;
}
} else if (!(((this._x < _root.map_s.bossx2._x) && (dx < 0)) || ((_root.map_s.bossx2._x < this._x) && (0 < dx)))) {
tame--;
} else {
this._x = _root.map_s.bossx2._x;
if (_root.map_s.bossx2._y >= this._y) {
if (0 >= dy) {
this.boss4_hon.gotoandplay("tatu2");
}
dy = 4;
dx = 0;
mukix = 2;
} else {
if (dy >= 0) {
this.boss4_hon.gotoandplay("tatu6");
}
dy = -4;
dx = 0;
mukix = 6;
}
tame = 151;
}
} else if (_root.map_s.bossx2._x >= this._x) {
if (0 >= dx) {
this.boss4_hon.gotoandplay("tatu4");
}
dx = 4;
dy = 0;
mukix = 4;
} else {
if (dx >= 0) {
this.boss4_hon.gotoandplay("tatu8");
}
dx = -4;
dy = 0;
mukix = 8;
}
} else if ((_root.map_s.player1._y + 160) >= this._y) {
if (0 >= dy) {
this.boss4_hon.gotoandplay("tatu2");
}
dy = 4;
dx = 0;
mukix = 2;
} else {
if (dy >= 0) {
this.boss4_hon.gotoandplay("tatu6");
}
dy = -4;
dx = 0;
mukix = 6;
}
} else {
this.boss4_hon._y = this.boss4_hon._y - 2;
}
} else if ((_root.map_s.player1._x + 240) >= this._x) {
if (0 >= dx) {
this.boss4_hon.gotoandplay("tatu4");
}
dx = 4;
dy = 0;
mukix = 4;
} else {
if (dx >= 0) {
this.boss4_hon.gotoandplay("tatu8");
}
dx = -4;
dy = 0;
mukix = 8;
}
if (300 < tame) {
tame = 0;
dx = 0;
dy = 0;
this.boss4_hon._y = 0;
mukix = 0;
}
this._x = this._x + dx;
this._y = this._y + dy;
}
} else if (_root.jump_on != 0) {
tame--;
tame2 = 0;
} else {
if (_root.map_s.bossx2.j_on == 0) {
_root.map_s.bossx2.j_on = 21;
}
tame2 = 50;
}
} else {
tame2 = 0;
if ((mode % 2) != 0) {
if (tame3 != 0) {
if (tame3 == 30) {
i = 242 + Math.floor(Math.random() * 8);
j = 4 + Math.floor(Math.random() * 8);
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.bara0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 0;
eval ("_root.map_s." + map_obj_name).njx = 1;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
i = 242 + Math.floor(Math.random() * 8);
j = 4 + Math.floor(Math.random() * 8);
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.bara0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 0;
eval ("_root.map_s." + map_obj_name).njx = 1;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
i = 242 + Math.floor(Math.random() * 8);
j = 4 + Math.floor(Math.random() * 8);
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.bara0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 0;
eval ("_root.map_s." + map_obj_name).njx = 1;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
mode++;
}
} else {
this.boss4_hon.gotoandplay("tatuz");
}
tame3++;
tame = 0;
} else {
if (this._x >= (_root.map_s.player1._x + 240)) {
if (mukix != 0) {
this.boss4_hon.gotoandplay("tatu");
}
mukix = 0;
} else {
if (mukix != 1) {
this.boss4_hon.gotoandplay("tatub");
}
mukix = 1;
}
if ((_root.enmy_n0 < 3) && (_root.bosshp < 40)) {
if (_root.enmy_n0 < 0) {
_root.enmy_n0 = 0;
}
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
i = (Math.floor(px0 / 2) + Math.floor(Math.random() * 5)) - 1;
i = Math.min(250, Math.max(0, i));
j = (Math.floor(py0 / 2) + Math.floor(Math.random() * 5)) - 1;
j = Math.min(15, Math.max(0, j));
if (_root.mapx[j].charAt(i) != 0) {
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.tekic0.duplicateMovieClip(map_obj_name, 58500 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 0;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
}
}
tame = tame + _root.homsp;
tame2 = tame2 + _root.homsp;
if ((90 < tame2) && (_root.homsp == 1)) {
tame2 = 0;
kakudo = (Math.atan2((this._y - _root.map_s.player1._y) - 160, (this._x - _root.map_s.player1._x) - 240) * 180) / Math.PI;
kakudo = kakudo - 22.5;
i = 0;
for ( ; i < 3 ; i++) {
map_obj_name = "ball" + _root.eball_n;
_root.map_s.ball0.duplicateMovieClip(map_obj_name, 50550 + _root.eball_n);
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
play_name = "tatu4";
} else {
play_name = "tatu5";
}
} else {
play_name = "tatu6";
}
} else {
play_name = "tatu7";
}
} else {
play_name = "tatu3";
}
} else {
play_name = "tatu2";
}
} else {
play_name = "tatu1";
}
} else {
play_name = "tatu8";
}
dx2 = ((Math.cos((kakudo * Math.PI) / 180) * -1) * 10) / 8;
dy2 = ((Math.sin((kakudo * Math.PI) / 180) * -1) * 10) / 8;
eval ("_root.map_s." + map_obj_name)._x = this._x + (dx2 * 10);
eval ("_root.map_s." + map_obj_name)._y = this._y + (dy2 * 10);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx2 * 2;
eval ("_root.map_s." + map_obj_name).tdy = dy2 * 2;
eval ("_root.map_s." + map_obj_name).play_name = play_name;
eval ("_root.map_s." + map_obj_name).chara_n = _root.eball_n;
_root.eball_n++;
if (100 < _root.eball_n) {
_root.eball_n = 1;
}
kakudo = kakudo + 22.5;
}
}
if (((tame2 % 30) == 2) && (_root.homsp == 1)) {
_root.se_basa1.start();
}
}
if (_root.miss_on == -20) {
_root.enmy_n0--;
this.removeMovieClip();
}
}
}
Instance of Symbol 36 MovieClip [gs_obj] "gs0" in Symbol 1800 MovieClip [sp_map4] Frame 13
onClipEvent (load) {
tekihp = 1;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os4.gs0) && (this != _root.map_s.gs0))) {
} else {
if (((Math.abs((this._y - _root.map_s.player1._y) - 160) < 10) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 10)) && (_root.jump_on == 0)) {
_root.sp = _root.sp + 1;
_root.se_get.start();
this.removeMovieClip();
}
dpth = (250049 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
if ((_root.miss_on == -20) || (_root.bossmode != 0)) {
this.removeMovieClip();
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if ((12 < (Math.floor(px0 / 2) - Math.floor(px / 2))) || (6 < (Math.floor(px / 2) - Math.floor(px0 / 2)))) {
this.removeMovieClip();
}
}
}
Instance of Symbol 212 MovieClip [arrow_obj] "arrow0" in Symbol 1800 MovieClip [sp_map4] Frame 14
onClipEvent (load) {
tame = 0;
pw = 1;
bhit = 0;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os4.arrow0) && (this != _root.map_s.arrow0))) {
} else {
if (tame != 0) {
this._x = this._x + tdx;
this._y = this._y + tdy;
dpth = (250001 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
px0 = (((this._x - this._y) + 160) - (6 - 15)) / 32;
py0 = (((this._x + this._y) - 160) + (6 + 15)) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (15 < py0) {
py0 = 15;
}
if ((320 < Math.abs((this._y - _root.map_s.player1._y) - 160)) || (480 < Math.abs((this._x - _root.map_s.player1._x) - 240))) {
if (_root.bossmode != 4) {
this.removeMovieClip();
}
}
if (_root.charan != 3) {
if (_root.charan == 4) {
tame++;
if (400 >= tame) {
if (!((tame == (10 * (pw - 1))) || (200 < tame))) {
if (tame >= ((100 + (((pw - 1) * 4) / 3)) + 4)) {
this.removeMovieClip();
}
} else {
tdx = 0;
tdy = 0;
tame = 402;
}
} else {
this.removeMovieClip();
}
if (3 < _root.bossmode) {
dpth = (250001 + (180 * 200)) + chara_n;
this.swapDepths(dpth);
}
}
} else {
tame++;
if (400 >= tame) {
if (!((tame == (10 * pw)) || (200 < tame))) {
if (tame >= ((100 + ((pw * 4) / 3)) + 4)) {
this.removeMovieClip();
}
} else {
tdx = 0;
tdy = 0;
if (_root.homsp != 1) {
if (3 < pw) {
pw = 3;
}
play_name = "tamamh" + pw;
this.gotoandstop(play_name);
tame = 252;
tame--;
} else {
map_obj_name = "arrow" + ((chara_n - 3) + 15);
_root.se_bom.start();
play_name = "tamamh" + (10 + pw);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + ((chara_n - 3) + 15));
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
eval ("_root.map_s." + map_obj_name)._x = this._x;
eval ("_root.map_s." + map_obj_name)._y = this._y;
eval ("_root.map_s." + map_obj_name).chara_n = chara_n + 10;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + chara_n) + 10;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
tame = 402;
}
}
} else {
eval ("_root.map_s." + map_obj_name).tame = 100;
eval ("_root.map_s." + map_obj_name).pw = 3 * pw;
this.removeMovieClip();
}
if (3 < _root.bossmode) {
dpth = (250001 + (180 * 200)) + chara_n;
this.swapDepths(dpth);
}
}
}
if ((_root.miss_on == -20) || (_root.bossmode == 3)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 1842 MovieClip [teki4c_obj] "tekic0" in Symbol 1800 MovieClip [sp_map4] Frame 15
onClipEvent (load) {
tamakan = 0;
dx = 0;
dy = 0;
muki = 1;
muki2 = 0;
ddx = 0;
ddy = 0;
otiru = 0;
tatutest = "tatu";
tekihp = 1;
mode = 0;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os4.tekic0) && (this != _root.map_s.tekic0))) {
} else if (!((0 < tekihp) && (_root.bossmode < 3))) {
tekihp--;
if (tekihp < -18) {
_root.enmy_n0--;
this.removeMovieClip();
}
} else {
if (otiru < 99) {
dpth = (250050 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
}
if (!(mode === 0)) {
if (mode != 1) {
if (mode >= 6) {
this._y = _root.map_s.player1._y + 161;
this._x = _root.map_s.player1._x + 240;
} else {
this._x = this._x + dx;
this._y = this._y + dy;
mode++;
}
} else {
if (_root.map_s.player1.bind_on != 0) {
_root.enmy_n0--;
this.removeMovieClip();
} else {
this.gotoandplay("tatux");
}
_root.map_s.player1.bind_on = 1500;
dy = ((this._y - _root.map_s.player1._y) - 160) / 4;
dx = ((this._x - _root.map_s.player1._x) - 240) / 4;
mode++;
}
if (_root.map_s.player1.bind_on == 0) {
_root.enmy_n0--;
this.removeMovieClip();
}
} else {
if (otiru != 0) {
if (30 < otiru) {
if (130 >= otiru) {
this._y = this._y + (130 - otiru);
otiru--;
if (otiru == 100) {
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "2") + _root.mapx[njx].substring(nix + 1);
_root.enmy_n0--;
this.removeMovieClip();
}
} else {
if (muki != 7) {
if (muki != 1) {
if (muki != 3) {
ddx = this._x - 2;
ddy = this._y + 2;
} else {
ddx = this._x - 2;
ddy = this._y - 12;
}
} else {
ddx = this._x + 34;
ddy = this._y - 12;
}
} else {
ddx = this._x + 34;
ddy = this._y + 2;
}
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (!((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == 0) || (otiru == 131))) {
this._x = this._x + dx;
this._y = this._y + dy;
otiru--;
} else {
otiru = 130;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths((50020 - (((ix1 + 16) - iy1) * 100)) + _root.rakka_ball_n);
_root.rakka_ball_n++;
if (66 < _root.rakka_ball_n) {
_root.rakka_ball_n = 0;
}
}
}
} else {
this._x = this._x + ((dx / 6) * Math.min(10, otiru - 1));
this._y = this._y + ((dy / 6) * Math.min(10, otiru - 1));
otiru--;
if (muki != 3) {
if (muki != 5) {
if (muki != 7) {
ddx = this._x - 2;
ddy = this._y + 2;
} else {
ddx = this._x - 2;
ddy = this._y - 12;
}
} else {
ddx = this._x + 34;
ddy = this._y - 12;
}
} else {
ddx = this._x + 34;
ddy = this._y + 2;
}
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c")) {
this._x = this._x - ((dx / 6) * Math.min(10, otiru - 1));
this._y = this._y - ((dy / 6) * Math.min(10, otiru - 1));
}
} else {
otiru = otiru + 132;
_root.score = _root.score + 0;
}
}
} else {
kakudo = (Math.atan2((this._y - _root.map_s.player1._y) - 160, (this._x - _root.map_s.player1._x) - 240) * 180) / Math.PI;
if (_root.homsp != 1) {
tatutest = "tatu" + muki;
muki2 = 100;
this.gotoandstop(tatutest);
} else {
if (muki2 == 100) {
tatutest = "tatu" + muki;
this.gotoandplay(tatutest);
}
muki2 = Math.floor(Math.random() * 64);
if (muki2 != 0) {
if (muki2 == 1) {
muki = muki - 2;
if (muki < 0) {
muki = 7;
}
tatutest = "tatu" + muki;
this.gotoandplay(tatutest);
}
} else if (kakudo >= -90) {
if (kakudo < 90) {
if (!((kakudo >= 0) && (kakudo < 90))) {
muki = 1;
this.gotoandplay("tatu1");
} else {
muki = 7;
this.gotoandplay("tatu7");
}
} else {
muki = 5;
this.gotoandplay("tatu5");
}
} else {
muki = 3;
this.gotoandplay("tatu3");
}
}
if (muki != 3) {
if (muki != 5) {
if (muki != 7) {
dx = -7 / 8;
dy = 7 / 8;
ddx = this._x - 2;
ddy = this._y + 2;
} else {
dx = -7 / 8;
dy = -7 / 8;
ddx = this._x - 2;
ddy = this._y - 12;
}
} else {
dx = 7 / 8;
dy = -7 / 8;
ddx = this._x + 34;
ddy = this._y - 12;
}
} else {
dx = 7 / 8;
dy = 7 / 8;
ddx = this._x + 34;
ddy = this._y + 2;
}
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (!(((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "0") && (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b")) && (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "c"))) {
muki = muki - 2;
if (muki < 0) {
muki = 7;
}
tatutest = "tatu" + muki;
if (_root.homsp == 1) {
this.gotoandplay(tatutest);
}
} else {
this._x = this._x + (dx * _root.homsp);
this._y = this._y + (dy * _root.homsp);
}
if ((((Math.abs((this._y - _root.map_s.player1._y) - 160) < 10) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 10)) && (_root.jump_on == 0)) && (otiru == 0)) {
_root.mx2 = 0 * dx;
_root.my2 = 0 * dy;
_root.se_damage.start();
mode = 1;
}
i = 1;
for ( ; i < 31 ; i++) {
if (((Math.abs(this._y - eval ("_root.map_s.arrow" + i)._y) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2))) && (Math.abs(this._x - eval ("_root.map_s.arrow" + i)._x) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2)))) && ((_root.jump_on == 0) || (eval ("_root.map_s.arrow" + i).tame != 0))) {
if (_root.charan != 3) {
if (_root.charan != 4) {
dx = eval ("_root.map_s.arrow" + i).tdx;
dy = eval ("_root.map_s.arrow" + i).tdy;
_root.se_tekidamage.start();
tekihp = tekihp - eval ("_root.map_s.arrow" + i).pw;
otiru = 8 + (eval ("_root.map_s.arrow" + i).pw * 2);
eval ("_root.map_s.arrow" + i).removeMovieClip();
} else {
_root.se_tekidamage.start();
if (!((i == 20) && (_root.jump_on == 0))) {
if (i < 20) {
dx = eval ("_root.map_s.arrow" + i).tdx;
dy = eval ("_root.map_s.arrow" + i).tdy;
tekihp = tekihp - eval ("_root.map_s.arrow" + i).pw;
otiru = 8 + (eval ("_root.map_s.arrow" + i).pw * 2);
if (eval ("_root.map_s.arrow" + i).tame == 0) {
eval ("_root.map_s.arrow" + i).removeMovieClip();
_root.map_s.player1.arrow_tame = -100;
}
}
} else {
kakudo2 = (Math.atan2(this._y - eval ("_root.map_s.arrow" + i)._y, this._x - eval ("_root.map_s.arrow" + i)._x) * 180) / Math.PI;
dx = Math.cos((kakudo2 * Math.PI) / 180) * 4;
dy = Math.sin((kakudo2 * Math.PI) / 180) * 4;
otiru = 8 + (2 * 2);
_root.map_s.player1.sp_on = _root.map_s.player1.sp_on - 30;
}
}
} else if (i >= 15) {
if (1 < eval ("_root.map_s.arrow" + i).pw) {
if (0 < tekihp) {
tekihp = tekihp - 2;
}
otiru = 8 + (2 * 2);
_root.se_tekidamage.start();
kakudo2 = (Math.atan2(this._y - eval ("_root.map_s.arrow" + i)._y, this._x - eval ("_root.map_s.arrow" + i)._x) * 180) / Math.PI;
dx = Math.cos((kakudo2 * Math.PI) / 180) * (4 + (eval ("_root.map_s.arrow" + i).pw / 3));
dy = Math.sin((kakudo2 * Math.PI) / 180) * (4 + (eval ("_root.map_s.arrow" + i).pw / 3));
}
} else if (eval ("_root.map_s.arrow" + i).tame < 100) {
eval ("_root.map_s.arrow" + i).tame = 250;
}
if (tekihp < 1) {
tekihp = -1;
_root.score = _root.score + 0;
this.gotoandplay("tatu0");
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "2") + _root.mapx[njx].substring(nix + 1);
}
}
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
}
if (_root.miss_on == -20) {
_root.enmy_n0--;
this.removeMovieClip();
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if ((12 < (Math.floor(px0 / 2) - Math.floor(px / 2))) || (6 < (Math.floor(px / 2) - Math.floor(px0 / 2)))) {
if (otiru != 11) {
_root.enmy_n0--;
}
this.removeMovieClip();
}
}
}
}
Instance of Symbol 1480 MovieClip [gun1] "gun0" in Symbol 1800 MovieClip [sp_map4] Frame 16
onClipEvent (load) {
tekihp = 0;
omuki = 0;
}
onClipEvent (enterFrame) {
if ((this != _root.map_os4.gun0) && (this != _root.map_s.gun0)) {
}
}
Instance of Symbol 1852 MovieClip [bara_obj] "bara0" in Symbol 1800 MovieClip [sp_map4] Frame 17
onClipEvent (load) {
tame = 57;
tekihp = 3;
dpth = 0;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os4.bara0) && (this != _root.map_s.bara0))) {
} else {
dpth = (250050 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
if (((60 < (tame * _root.homsp)) && (0 < tekihp)) && (_root.bossmode < 3)) {
if (((Math.abs((this._y - _root.map_s.player1._y) - 160) < 192) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 192)) || (tekihp < 3)) {
kakudo = (Math.atan2((this._y - _root.map_s.player1._y) - 160, (this._x - _root.map_s.player1._x) - 240) * 180) / Math.PI;
map_obj_name = "ball" + _root.eball_n;
_root.map_s.hanabira0.duplicateMovieClip(map_obj_name, 50550 + _root.eball_n);
play_name = "tatu1";
dx = ((Math.cos((kakudo * Math.PI) / 180) * -1) * 10) / 8;
dy = ((Math.sin((kakudo * Math.PI) / 180) * -1) * 10) / 8;
eval ("_root.map_s." + map_obj_name)._x = this._x + (dx * 10);
eval ("_root.map_s." + map_obj_name)._y = this._y + (dy * 10);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 2;
eval ("_root.map_s." + map_obj_name).tdy = dy * 2;
eval ("_root.map_s." + map_obj_name).chara_n = _root.eball_n;
_root.eball_n++;
if (100 < _root.eball_n) {
_root.eball_n = 1;
}
}
tekihp--;
tame = 0;
}
tame = tame + _root.homsp;
if (0 < tekihp) {
if (tekihp < -40) {
if (_root.bossmode == 0) {
_root.enmy_n0--;
}
this.removeMovieClip();
}
} else {
if (tekihp == 0) {
this.gotoandplay("tatu0");
}
tekihp--;
}
if ((_root.miss_on == -20) || (_root.bossmode == 3)) {
if (_root.bossmode == 0) {
_root.enmy_n0--;
}
this.removeMovieClip();
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if ((12 < (Math.floor(px0 / 2) - Math.floor(px / 2))) || (6 < (Math.floor(px / 2) - Math.floor(px0 / 2)))) {
if (otiru != 11) {
_root.enmy_n0--;
}
this.removeMovieClip();
}
}
}
Instance of Symbol 1854 MovieClip [hanabira_obj] "hanabira0" in Symbol 1800 MovieClip [sp_map4] Frame 18
onClipEvent (load) {
otiru = 0;
tame = 0;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os4.hanabira0) && (this != _root.map_s.hanabira0))) {
} else {
if ((tame < 30) && (_root.jump_on == 0)) {
kakudo = (Math.atan2((this._y - _root.map_s.player1._y) - 160, (this._x - _root.map_s.player1._x) - 240) * 180) / Math.PI;
tdx = (((Math.cos((kakudo * Math.PI) / 180) * -1) * 10) / 8) * 3;
tdy = (((Math.sin((kakudo * Math.PI) / 180) * -1) * 10) / 8) * 3;
}
tame = tame + _root.homsp;
this._x = this._x + (tdx * _root.homsp);
this._y = this._y + (tdy * _root.homsp);
px0 = (((this._x - this._y) + 160) - (6 - 15)) / 32;
py0 = (((this._x + this._y) - 160) + (6 + 15)) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (otiru != 0) {
this._y = this._y + (60 - otiru);
otiru--;
if (otiru == 0) {
this.removeMovieClip();
}
} else {
dpth = (250100 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
this.gotoandplay("tatu3");
} else {
this.gotoandplay("tatu2");
}
}
if ((((Math.abs((this._y - _root.map_s.player1._y) - 160) < 10) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 10)) && (_root.jump_on == 0)) && (otiru == 0)) {
_root.flag1 = 666;
_root.mx2 = 4 * tdx;
_root.my2 = 4 * tdy;
_root.tobashi = 10;
_root.se_damage.start();
this.removeMovieClip();
}
if (_root.miss_on == -20) {
this.removeMovieClip();
}
if (((640 < Math.abs((this._y - _root.map_s.player1._y) - 160)) || (960 < Math.abs((this._x - _root.map_s.player1._x) - 240))) || (_root.bossmode == 3)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 1878 MovieClip [hashira_obj] "hashira0" in Symbol 1800 MovieClip [sp_map4] Frame 19
onClipEvent (load) {
tekihp = 1;
dpth = 0;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os4.hashira0) && (this != _root.map_s.hashira0))) {
} else {
dpth = (250050 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
if (_root.miss_on == -20) {
_root.enmy_n0--;
this.removeMovieClip();
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if ((12 < (Math.floor(px0 / 2) - Math.floor(px / 2))) || (12 < (Math.floor(px / 2) - Math.floor(px0 / 2)))) {
if (otiru != 11) {
_root.enmy_n0--;
}
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "a") + _root.mapx[njx].substring(nix + 1);
this.removeMovieClip();
}
}
}
Instance of Symbol 1900 MovieClip [wall_obj] "wall0" in Symbol 1800 MovieClip [sp_map4] Frame 20
onClipEvent (load) {
this.swapDepths(599990);
this._alpha = 100;
i = 217;
j = 3;
this._x = ((((i * 32) + (j * 32)) - 16) - 3) - 192;
this._y = ((159 - (i * 32)) + (j * 32)) + 192;
}
Symbol 1800 MovieClip [sp_map4] Frame 21
stop();
Instance of Symbol 104 MovieClip [sp_character1] "player0" in Symbol 1202 MovieClip [sp_map3] Frame 2
onClipEvent (load) {
px0 = 0;
py0 = 0;
px = 5.5;
py = 8.5;
qx = 0;
qy = 0;
rakka1 = 0;
teki_ptn = 0;
loop_cnt = 0;
pmuki = 5;
arrow_cnt = 0;
mouse_kakudo = 0;
move_on = 0;
teki_ran = 0;
arrow_tame = 0;
arrow_on = 0;
timeup_on = 0;
arrow_kamae = 1;
sp_on = 0;
muteki = 0;
bcnt = 0;
}
onClipEvent (enterFrame) {
if (((_root.charan == 1) && (this != _root.map_os3.player0)) && (this != _root.map_s.player0)) {
if (!(((timeup_on == 0) && (_root.bossmode != 1)) && (_root.bossmode < 3))) {
if (_root.bossmode != 1) {
if (_root.bossmode != 3) {
if (_root.bossmode != 4) {
if (0 < timeup_on) {
_root.jikan = 0;
timeup_on--;
if (timeup_on == 1) {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
_root.gotoandplay("end");
}
}
} else {
if (bcnt != 0) {
if (bcnt != 120) {
if (bcnt != 121) {
if (bcnt != 125) {
if (bcnt != 127) {
if (bcnt != 130) {
if (bcnt != 135) {
if (bcnt != 165) {
if (bcnt != 169) {
if (bcnt != 171) {
if (bcnt != 174) {
if (bcnt == 179) {
map_obj_name = "arrow100";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
_root.map_s.bossx.gotoandplay("tatu0");
_root.se_baku.start();
}
} else {
map_obj_name = "arrow99";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
} else {
map_obj_name = "arrow98";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
} else {
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
} else {
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
} else {
map_obj_name = "arrow100";
eval ("_root.map_s." + map_obj_name).tame = 100;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
_root.se_shot.start();
}
} else {
map_obj_name = "arrow99";
eval ("_root.map_s." + map_obj_name).tame = 100;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
_root.se_shot.start();
}
} else {
map_obj_name = "arrow98";
eval ("_root.map_s." + map_obj_name).tame = 100;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
_root.se_shot.start();
}
} else {
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name).tame = 100;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
_root.se_shot.start();
}
} else {
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name).tame = 100;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
_root.se_shot.start();
}
} else {
map_obj_name = "arrow96";
map_obj_name2 = "arrow97";
map_obj_name3 = "arrow98";
map_obj_name4 = "arrow99";
map_obj_name5 = "arrow100";
_root.arrow_n = 1;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 55100 + _root.arrow_n);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name2, (55100 + _root.arrow_n) + 1);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name3, (55100 + _root.arrow_n) + 2);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name4, (55100 + _root.arrow_n) + 3);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name5, (55100 + _root.arrow_n) + 4);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + 160;
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name2).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name2)._x = ((this._x + (dx * 12)) + 240) + 4;
eval ("_root.map_s." + map_obj_name2)._y = ((this._y + (dy * 12)) + 160) + 4;
eval ("_root.map_s." + map_obj_name2).pw = 4;
eval ("_root.map_s." + map_obj_name3).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name3)._x = ((this._x + (dx * 12)) + 240) - 4;
eval ("_root.map_s." + map_obj_name3)._y = ((this._y + (dy * 12)) + 160) + 4;
eval ("_root.map_s." + map_obj_name3).pw = 4;
eval ("_root.map_s." + map_obj_name4).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name4)._x = ((this._x + (dx * 12)) + 240) + 4;
eval ("_root.map_s." + map_obj_name4)._y = ((this._y + (dy * 12)) + 160) - 4;
eval ("_root.map_s." + map_obj_name4).pw = 4;
eval ("_root.map_s." + map_obj_name5).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name5)._x = ((this._x + (dx * 12)) + 240) - 4;
eval ("_root.map_s." + map_obj_name5)._y = ((this._y + (dy * 12)) + 160) - 4;
eval ("_root.map_s." + map_obj_name5).pw = 4;
eval ("_root.map_s." + map_obj_name).chara_n = 3;
eval ("_root.map_s." + map_obj_name2).chara_n = 4;
eval ("_root.map_s." + map_obj_name3).chara_n = 5;
eval ("_root.map_s." + map_obj_name4).chara_n = 6;
eval ("_root.map_s." + map_obj_name5).chara_n = 7;
_root.arrow_n++;
if (10 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
this._alpha = 100;
_root.map_s.txt0.bossname.gotoandplay("siro");
_root.se_pwup.start();
_root.map_s.txt0.bosshpbar._xscale = 0;
kakudo = (Math.atan2(((this._y + 160) - _root.map_s.bossx._y) + 16, ((this._x + 240) - _root.map_s.bossx._x) - 16) * 180) / Math.PI;
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
pmuki = 4;
} else {
pmuki = 5;
}
} else {
pmuki = 6;
}
} else {
pmuki = 7;
}
} else {
pmuki = 3;
}
} else {
pmuki = 2;
}
} else {
pmuki = 1;
}
} else {
pmuki = 8;
}
this.player.gotoandstop("utu" + pmuki);
play_name = "tatud" + pmuki;
dy = ((((this._y + 160) - _root.map_s.bossx._y) + 16) * -1) / 60;
dx = ((((this._x + 240) - _root.map_s.bossx._x) - 16) * -1) / 60;
}
if ((179 < bcnt) && (0 < _root.map_s.bossx._alpha)) {
_root.map_s.bossx._alpha = _root.map_s.bossx._alpha - 1;
}
if (bcnt < 60) {
_root.map_s._x = _root.map_s._x - (dx / 2);
_root.map_s._y = _root.map_s._y - (dy / 2);
_root.map_s.txt0._x = _root.map_s.txt0._x + (dx / 2);
_root.map_s.txt0._y = _root.map_s.txt0._y + (dy / 2);
}
if (bcnt != 300) {
if (bcnt == 700) {
_root.bossmode = 5;
_root.gotoandplay("gameclear");
}
} else {
_root.bgm1.gotoandplay("play3");
_root.score = _root.score + 5000;
}
if (bcnt < 1200) {
bcnt++;
}
}
} else if (bcnt != 3) {
bcnt++;
} else {
bcnt = 0;
_root.bossmode = 4;
}
} else if (bcnt >= 40) {
if (bcnt != 40) {
if (bcnt != 70) {
if (bcnt != 100) {
if (bcnt != 180) {
if (bcnt >= 200) {
if (bcnt >= 240) {
move_on = 0;
_root.bgm1.gotoAndPlay("play2");
_root.map_s.bossrope0.gotoandplay("kesu");
teki_ptn = 1;
ix = 212;
jx = 8;
_root.mapx[jx] = (_root.mapx[jx].substring(0, ix) + "00") + _root.mapx[jx].substring(ix + 2);
jx++;
_root.mapx[jx] = (_root.mapx[jx].substring(0, ix) + "00") + _root.mapx[jx].substring(ix + 2);
_root.bossmode = 2;
bcnt = 0;
} else {
_root.bosshp = 40;
_root.map_s._x = _root.map_s._x + 4;
_root.map_s._y = _root.map_s._y - 2;
_root.map_s.txt0._x = _root.map_s.txt0._x - 4;
_root.map_s.txt0._y = _root.map_s.txt0._y + 2;
bcnt++;
}
} else {
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
bcnt++;
_root.se_doon.start();
}
} else {
bcnt++;
_root.se_don1.start();
obj_n = (13 * 16) + 10;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("rakka");
}
} else {
map_obj_name = "bossx";
_root.enmy_n = 0;
_root.map_s.boss0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
i = 213;
j = 9;
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) - 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).gotoandplay(1);
_root.enmy_n = 1;
_root.enmy_n0 = 0;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
bcnt++;
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ix = Math.floor(px0 / 32) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
_root.mapx[jx] = (_root.mapx[jx].substring(0, (64 * 3) + 12) + "0000") + _root.mapx[jx].substring((64 * 3) + 16);
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
} else {
_root.map_s._x = _root.map_s._x - 4;
_root.map_s._y = _root.map_s._y + 2;
_root.map_s.txt0._x = _root.map_s.txt0._x + 4;
_root.map_s.txt0._y = _root.map_s.txt0._y - 2;
bcnt++;
}
} else {
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
dxy = 1;
mx = 0;
my = 0;
if (mousemode == 1) {
mouse_kakudo = (Math.atan2(((_root._ymouse - 160) - 56) - 16, (_root._xmouse - 240) + 16) * 180) / Math.PI;
_root.flag2 = Math.floor(mouse_kakudo);
if (!(((45 + 22.5) >= mouse_kakudo) && ((45 - 22.5) < mouse_kakudo))) {
if (!(((135 + 22.5) >= mouse_kakudo) && ((135 - 22.5) < mouse_kakudo))) {
if (!(((-135 + 22.5) >= mouse_kakudo) && ((-135 - 22.5) < mouse_kakudo))) {
if (!(((-45 + 22.5) >= mouse_kakudo) && ((-45 - 22.5) < mouse_kakudo))) {
if (!(((-90 + 22.5) >= mouse_kakudo) && ((-90 - 22.5) < mouse_kakudo))) {
if (!(((0 + 22.5) >= mouse_kakudo) && ((-22.5) < mouse_kakudo))) {
if (!(((90 + 22.5) >= mouse_kakudo) && ((90 - 22.5) < mouse_kakudo))) {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
}
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
}
}
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.PGDN)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.END)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.HOME)))) {
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.PGUP)))) {
if (!Key.isDown(Key.RIGHT)) {
if (!Key.isDown(Key.LEFT)) {
if (!Key.isDown(Key.DOWN)) {
if (!Key.isDown(Key.UP)) {
tenkey = 0;
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
tenkey = 1;
mousemode = 0;
}
if (!(Key.isDown(1) || (tenkey == 1))) {
dxy = 1;
mx = 0;
my = 0;
move_on = 0;
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + pmuki);
}
} else {
if (Key.isDown(1)) {
mousemode = 1;
}
if (move_on != (pmuki * arrow_kamae)) {
if (arrow_kamae != -1) {
this.player.gotoandplay("tatu" + pmuki);
} else {
this.player.gotoandplay("utu" + pmuki);
}
move_on = pmuki * arrow_kamae;
}
}
if ((Key.isDown(77) || (Key.isDown(67))) && (_root.jump_on == 0)) {
_root.jump_on = 23;
_root.se_jump.start();
}
if ((((Key.isDown(66) || (Key.isDown(90))) && (0 < _root.sp)) && (-20 < _root.jump_on)) && (sp_on < 1)) {
sp_on = 900;
_root.se_pwup.start();
_root.sp--;
}
if (0 >= _root.jump_on) {
if (!((_root.jump_on < 0) && (-70 < _root.jump_on))) {
rakka1 = 0;
} else {
this.player._y = this.player._y - (_root.jump_on - 10);
_root.jump_on--;
if (_root.jump_on == -20) {
if (sp_on != 0) {
_root.se_warp1.start();
_root.map_s.player1.swapDepths(250001);
_root.map_s.player1.player.gotoandstop("tatu1");
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
sp_on = 0;
_root.map_s._x = qx;
_root.map_s._y = qy;
_root.map_s.player1._x = -32 - qx;
_root.map_s.player1._y = 56 - qy;
muteki = 150;
move_on = 0;
this._alpha = 50;
arrow_tame = 0;
arrow_cnt = 18;
this.player._y = 160;
} else {
_root.se_fall.start();
}
}
if (_root.jump_on < -50) {
_root.enmy_n0 = 0;
rakka1 = 0;
_root.jump_on = -100;
_root.tobashi = 0;
_root.gotoandplay("end");
}
}
} else {
this.player._y = this.player._y - (_root.jump_on - 12);
_root.jump_on--;
rakka1 = 1;
}
if (0 < muteki) {
_root.tobashi = 0;
muteki--;
if (muteki < 1) {
this._alpha = 100;
}
}
if (0 < _root.tobashi) {
_root.tobashi--;
_root.map_s._x = _root.map_s._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y + (((_root.my2 * _root.tobashi) * 2) / 10);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b") {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c") {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x + (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((7 * _root.tobashi) * 2) / 10);
this._x = this._x - (((7 * _root.tobashi) * 2) / 10);
this._y = this._y - (((7 * _root.tobashi) * 2) / 10);
}
} else {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x - (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((7 * _root.tobashi) * 2) / 10);
this._x = this._x + (((7 * _root.tobashi) * 2) / 10);
this._y = this._y + (((7 * _root.tobashi) * 2) / 10);
}
}
k = 0;
for ( ; k < dxy ; k++) {
_root.map_s._x = _root.map_s._x - (mx / 2);
_root.map_s._y = _root.map_s._y - (my / 2);
this._x = this._x + (mx / 2);
this._y = this._y + (my / 2);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.jump_on >= 0) {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
this.player_kage.gotoandstop(1);
if (_root.jump_on == 0) {
qx = _root.map_s._x;
qy = _root.map_s._y;
}
} else if (!((rakka1 == 0) && (_root.tobashi == 0))) {
this.player_kage.gotoandstop("kesu");
if ((_root.jump_on == 0) || (0 < _root.tobashi)) {
k = 100;
dy = _root.jump_on - 12;
_root.jump_on = -1;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths(50090 - (((ix1 + 16) - iy1) * 100));
if (!((192 < ix1) || (128 < _root.startx))) {
if (!((128 < ix1) || (64 < _root.startx))) {
if (64 < ix1) {
_root.startx = 64;
_root.starty = 6;
}
} else {
_root.startx = 128;
_root.starty = 3;
}
} else {
_root.startx = 192;
_root.starty = 4;
}
}
} else {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c")) {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
if (((207 < Math.floor(px0 / 2)) && (_root.jump_on == 0)) && (_root.bossmode == 0)) {
bcnt = 0;
_root.bossmode = 1;
_root.bgm1.gotoAndPlay("end");
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + pmuki);
}
}
if (_root.bossmode == 2) {
if (_root.bosshp < 1) {
_root.bosshp = 0;
if (_root.jump_on == 0) {
bcnt = 0;
_root.bossmode = 3;
}
}
}
if (Math.floor(px / 32) >= Math.floor(px0 / 32)) {
if (Math.floor(px0 / 32) < Math.floor(px / 32)) {
ij = 0;
for ( ; ij < (Math.floor(px / 32) - Math.floor(px0 / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) + 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
} else {
ij = 0;
for ( ; ij < (Math.floor(px0 / 32) - Math.floor(px / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) + 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) - 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
if (Math.floor(px / 2) < Math.floor(px0 / 2)) {
ij = 0;
for ( ; ij < (Math.floor(px0 / 2) - Math.floor(px / 2)) ; ij++) {
i = (Math.floor(px0 / 2) + 8) - ij;
if (i < 0) {
i = 0;
}
if (250 < i) {
i = 250;
}
j = 0;
for ( ; j < 16 ; j++) {
if (_root.mapx[j].charAt(i) != "2") {
if (_root.mapx[j].charAt(i) != "3") {
if (_root.mapx[j].charAt(i) != "9") {
if (_root.mapx[j].charAt(i) != "8") {
if (_root.mapx[j].charAt(i) == "7") {
_root.enmy_n0 = 10;
_root.enmy_n = 10;
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "0") + _root.mapx[j].substring(i + 1);
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (((i * 32) + (j * 32)) + 16) - 32;
eval ("_root.map_s." + map_obj_name)._y = ((164 - (i * 32)) + (j * 32)) + 32;
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 400;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((((i * 32) + (j * 32)) + 16) - 32) + (9 * 32);
eval ("_root.map_s." + map_obj_name)._y = (((164 - (i * 32)) + (j * 32)) + 32) - (9 * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 400;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((((i * 32) + (j * 32)) + 16) - 32) + (18 * 32);
eval ("_root.map_s." + map_obj_name)._y = ((164 - (i * 32)) + (j * 32)) + 32;
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 400;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((((i * 32) + (j * 32)) + 16) - 32) + (9 * 32);
eval ("_root.map_s." + map_obj_name)._y = (((164 - (i * 32)) + (j * 32)) + 32) + (9 * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 400;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else {
map_obj_name = "gs1";
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.gs0.duplicateMovieClip(map_obj_name, 58000);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.bigball0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.teki0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
}
}
if (pmuki != 1) {
if (pmuki != 2) {
if (pmuki != 3) {
if (pmuki != 4) {
if (pmuki != 5) {
if (pmuki != 6) {
if (pmuki != 7) {
dx = -10 / 8;
dy = 0;
dx2 = -7 / 8;
dy2 = -7 / 8;
} else {
dx = -7 / 8;
dy = -7 / 8;
dx2 = 0;
dy2 = -10 / 8;
}
} else {
dx = 0;
dy = -10 / 8;
dx2 = 7 / 8;
dy2 = -7 / 8;
}
} else {
dx = 7 / 8;
dy = -7 / 8;
dx2 = 10 / 8;
dy2 = 0;
}
} else {
dx = 10 / 8;
dy = 0;
dx2 = 7 / 8;
dy2 = 7 / 8;
}
} else {
dx = 7 / 8;
dy = 7 / 8;
dx2 = 0;
dy2 = 10 / 8;
}
} else {
dx = 0;
dy = 10 / 8;
dx2 = -7 / 8;
dy2 = 7 / 8;
}
} else {
dx = -7 / 8;
dy = 7 / 8;
dx2 = -10 / 8;
dy2 = 0;
}
if (sp_on < 1) {
dx2 = 0;
dy2 = 0;
}
map_obj_name = "arrow" + _root.arrow_n;
map_obj_name2 = "arrow" + (_root.arrow_n + 10);
map_obj_name3 = "arrow" + (_root.arrow_n + 20);
if (!(((Key.isDown(78) || (Key.isDown(88))) && (_root.jump_on == 0)) && (arrow_cnt == 0))) {
if (!(((Key.isDown(78) || (Key.isDown(88))) || (0 < _root.jump_on)) && (arrow_cnt == 19))) {
if (arrow_cnt == 19) {
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name2).tame = 1;
eval ("_root.map_s." + map_obj_name3).tame = 1;
if (arrow_tame < 60) {
if (arrow_tame < 35) {
if (arrow_tame < 15) {
play_name = "tatu" + pmuki;
play_name2 = "tatu" + ((pmuki % 8) + 1);
play_name3 = "tatu" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 1;
eval ("_root.map_s." + map_obj_name2).pw = 1;
eval ("_root.map_s." + map_obj_name3).pw = 1;
} else {
play_name = "tatub" + pmuki;
play_name2 = "tatub" + ((pmuki % 8) + 1);
play_name3 = "tatub" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 2;
eval ("_root.map_s." + map_obj_name2).pw = 2;
eval ("_root.map_s." + map_obj_name3).pw = 2;
}
} else {
play_name = "tatuc" + pmuki;
play_name2 = "tatuc" + ((pmuki % 8) + 1);
play_name3 = "tatuc" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 3;
eval ("_root.map_s." + map_obj_name2).pw = 3;
eval ("_root.map_s." + map_obj_name3).pw = 3;
}
} else {
play_name = "tatud" + pmuki;
play_name2 = "tatud" + ((pmuki % 8) + 1);
play_name3 = "tatud" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name2).pw = 4;
eval ("_root.map_s." + map_obj_name3).pw = 4;
}
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name2).gotoandplay(play_name2);
eval ("_root.map_s." + map_obj_name3).gotoandplay(play_name3);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + 160;
eval ("_root.map_s." + map_obj_name2).tdx = dy2 * 6;
eval ("_root.map_s." + map_obj_name2).tdy = (dx2 * -1) * 6;
eval ("_root.map_s." + map_obj_name2)._x = (this._x + (dy2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name2)._y = ((this._y - (dx2 * 12)) + 160) + ((1 - Math.ceil(sp_on / 900)) * 800);
eval ("_root.map_s." + map_obj_name3).tdx = dx2 * 6;
eval ("_root.map_s." + map_obj_name3).tdy = dy2 * 6;
eval ("_root.map_s." + map_obj_name3)._x = (this._x + (dx2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name3)._y = ((this._y + (dy2 * 12)) + 160) + ((1 - Math.ceil(sp_on / 900)) * 800);
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3);
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name2)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 1;
eval ("_root.map_s." + map_obj_name2).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name3)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 2;
eval ("_root.map_s." + map_obj_name3).swapDepths(dpth);
_root.se_shot.start();
_root.arrow_n++;
if (8 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
arrow_cnt++;
arrow_tame++;
if (arrow_tame < 60) {
if (arrow_tame < 35) {
if (arrow_tame < 15) {
play_name = "tatu" + pmuki;
play_name2 = "tatu" + ((pmuki % 8) + 1);
play_name3 = "tatu" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 1;
eval ("_root.map_s." + map_obj_name2).pw = 1;
eval ("_root.map_s." + map_obj_name3).pw = 1;
} else {
play_name = "tatub" + pmuki;
play_name2 = "tatub" + ((pmuki % 8) + 1);
play_name3 = "tatub" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 2;
eval ("_root.map_s." + map_obj_name2).pw = 2;
eval ("_root.map_s." + map_obj_name3).pw = 2;
}
} else {
play_name = "tatuc" + pmuki;
play_name2 = "tatuc" + ((pmuki % 8) + 1);
play_name3 = "tatuc" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 3;
eval ("_root.map_s." + map_obj_name2).pw = 3;
eval ("_root.map_s." + map_obj_name3).pw = 3;
}
} else {
play_name = "tatud" + pmuki;
play_name2 = "tatud" + ((pmuki % 8) + 1);
play_name3 = "tatud" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name2).pw = 4;
eval ("_root.map_s." + map_obj_name3).pw = 4;
}
if (((arrow_tame == 15) || (arrow_tame == 35)) || (arrow_tame == 60)) {
omuki = 0;
}
if (pmuki != omuki) {
eval ("_root.map_s." + map_obj_name).gotoandstop(play_name);
eval ("_root.map_s." + map_obj_name2).gotoandstop(play_name2);
eval ("_root.map_s." + map_obj_name3).gotoandstop(play_name3);
}
omuki = pmuki;
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + this.player._y;
eval ("_root.map_s." + map_obj_name2).tdx = dy2 * 6;
eval ("_root.map_s." + map_obj_name2).tdy = (dx2 * -1) * 6;
eval ("_root.map_s." + map_obj_name2)._x = (this._x + (dy2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name2)._y = ((this._y - (dx2 * 12)) + this.player._y) + ((1 - Math.ceil(sp_on / 900)) * 800);
eval ("_root.map_s." + map_obj_name3).tdx = dx2 * 6;
eval ("_root.map_s." + map_obj_name3).tdy = dy2 * 6;
eval ("_root.map_s." + map_obj_name3)._x = (this._x + (dx2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name3)._y = ((this._y + (dy2 * 12)) + this.player._y) + ((1 - Math.ceil(sp_on / 900)) * 800);
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3);
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name2)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 1;
eval ("_root.map_s." + map_obj_name2).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name3)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 2;
eval ("_root.map_s." + map_obj_name3).swapDepths(dpth);
if (_root.jump_on < 0) {
eval ("_root.map_s." + map_obj_name).removeMovieClip();
eval ("_root.map_s." + map_obj_name2).removeMovieClip();
eval ("_root.map_s." + map_obj_name3).removeMovieClip();
}
}
} else {
play_name = "tatu" + pmuki;
play_name2 = "tatu" + ((pmuki % 8) + 1);
play_name3 = "tatu" + (((pmuki + 6) % 8) + 1);
if (!((4 < pmuki) || (pmuki == 1))) {
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 55100 + _root.arrow_n);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name2, (55100 + _root.arrow_n) + 10);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name3, (55100 + _root.arrow_n) + 20);
} else {
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name2, (54900 + _root.arrow_n) + 10);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name3, (54900 + _root.arrow_n) + 20);
}
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + 160;
eval ("_root.map_s." + map_obj_name2).gotoandplay(play_name2);
eval ("_root.map_s." + map_obj_name2).tdx = dy2 * 6;
eval ("_root.map_s." + map_obj_name2).tdy = (dx2 * -1) * 6;
eval ("_root.map_s." + map_obj_name2)._x = (this._x + (dy2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name2)._y = ((this._y - (dx2 * 12)) + 160) + ((1 - Math.ceil(sp_on / 900)) * 800);
eval ("_root.map_s." + map_obj_name3).gotoandplay(play_name3);
eval ("_root.map_s." + map_obj_name3).tdx = dx2 * 6;
eval ("_root.map_s." + map_obj_name3).tdy = dy2 * 6;
eval ("_root.map_s." + map_obj_name3)._x = (this._x + (dx2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name3)._y = ((this._y + (dy2 * 12)) + 160) + ((1 - Math.ceil(sp_on / 900)) * 800);
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n * 3;
eval ("_root.map_s." + map_obj_name2).chara_n = (_root.arrow_n * 3) + 1;
eval ("_root.map_s." + map_obj_name3).chara_n = (_root.arrow_n * 3) + 2;
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3);
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name2)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 1;
eval ("_root.map_s." + map_obj_name2).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name3)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 2;
eval ("_root.map_s." + map_obj_name3).swapDepths(dpth);
arrow_cnt = 20;
arrow_tame = 0;
arrow_kamae = -1;
omuki = pmuki;
}
_root.map_s.txt0._x = this._x;
_root.map_s.txt0._y = this._y;
_root.map_s.txt0.bosshpbar._xscale = 200 * _root.bosshp;
px = px0;
py = py0;
_root.px = px;
_root.py = py;
_root.flag1 = _root.bg1._x;
loop_cnt++;
if (500 < loop_cnt) {
loop_cnt = 0;
}
if (0 < arrow_cnt) {
arrow_cnt--;
}
if (arrow_cnt == 10) {
arrow_kamae = 1;
}
if (arrow_cnt < 0) {
arrow_cnt++;
}
if (0 < sp_on) {
sp_on--;
}
_root.map_s.txt0.sptxt.gsbar._xscale = 30 * Math.floor(sp_on / 30);
_root.jikan--;
if ((_root.jikan < 0) && (timeup_on == 0)) {
_root.jikan = 0;
if (_root.jump_on == 0) {
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
_root.jikan = 0;
timeup_on = 90;
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
this.player.gotoandplay("timeup");
}
}
}
}
}
Instance of Symbol 120 MovieClip [sp_character2] "player2" in Symbol 1202 MovieClip [sp_map3] Frame 3
onClipEvent (load) {
px0 = 0;
py0 = 0;
px = 5.5;
py = 8.5;
qx = 0;
qy = 0;
rakka1 = 0;
teki_ptn = 0;
loop_cnt = 0;
pmuki = 5;
arrow_cnt = 0;
mouse_kakudo = 0;
move_on = 0;
teki_ran = 0;
arrow_tame = 0;
arrow_on = 0;
timeup_on = 0;
arrow_kamae = 1;
sp_on = 0;
muteki = 0;
bcnt = 0;
}
onClipEvent (enterFrame) {
if (((_root.charan == 2) && (this != _root.map_os3.player2)) && (this != _root.map_s.player2)) {
if (!(((timeup_on == 0) && (_root.bossmode != 1)) && (_root.bossmode < 3))) {
if (_root.bossmode != 1) {
if (_root.bossmode != 3) {
if (_root.bossmode != 4) {
if (0 < timeup_on) {
_root.jikan = 0;
timeup_on--;
if (timeup_on == 1) {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
_root.gotoandplay("end");
}
}
} else {
if (bcnt != 0) {
if (bcnt != 170) {
if (bcnt != 171) {
if (bcnt != 172) {
if (bcnt != 300) {
if (bcnt == 200) {
_root.map_s.bossx.gotoandplay("tatu0");
_root.se_baku.start();
}
} else {
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
map_obj_name = "arrow98";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
} else {
map_obj_name = "arrow96";
pmuki = eval ("_root.map_s." + map_obj_name).getDepth() + 1;
map_obj_name = "arrow98";
eval ("_root.map_s." + map_obj_name).swapDepths(pmuki);
pmuki = 1;
}
} else {
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
map_obj_name = "arrow98";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
_root.se_gunshot2.start();
}
} else {
_root.arrow_n = 1;
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
dx = 64;
dy = -4;
} else {
dx = 35;
dy = -35;
}
} else {
dx = 0;
dy = -50;
}
} else {
dx = -35;
dy = -35;
}
} else {
dx = 30;
dy = 30;
}
} else {
dx = 0;
dy = 42;
}
} else {
dx = -30;
dy = 30;
}
} else {
dx = -64;
dy = -4;
}
kakudo = (Math.atan2((((this._y + 160) + dy) - _root.map_s.bossx._y) + 16, ((((this._x + 240) + dx) - _root.map_s.bossx._x) - 16) + 16) * 180) / Math.PI;
dx2 = (((((this._x + 240) + dx) - _root.map_s.bossx._x) - 16) + 16) * -1;
dy2 = ((((this._y + 160) + dy) - _root.map_s.bossx._y) + 16) * -1;
pmuki = Math.floor(Math.sqrt((dx2 * dx2) + (dy2 * dy2)));
map_obj_name = "arrow96";
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
play_name = "tamam" + 20;
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name)._x = ((this._x + dx) + 240) + 18;
eval ("_root.map_s." + map_obj_name)._y = ((this._y + dy) + 160) + 18;
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name).chara_n = 3;
eval ("_root.map_s." + map_obj_name)._rotation = kakudo - 180;
eval ("_root.map_s." + map_obj_name)._xscale = pmuki * 10;
eval ("_root.map_s." + map_obj_name)._yscale = 0;
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
_root.arrow_n++;
map_obj_name = "arrow97";
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
play_name = "tamam" + 20;
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name)._x = (((_root.map_s.bossx._x + 16) + 18) - 16) - (Math.cos((kakudo * Math.PI) / 180) * 400);
eval ("_root.map_s." + map_obj_name)._y = ((_root.map_s.bossx._y - 16) + 18) - (Math.sin((kakudo * Math.PI) / 180) * 400);
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name).chara_n = 4;
eval ("_root.map_s." + map_obj_name)._rotation = kakudo;
eval ("_root.map_s." + map_obj_name)._xscale = 4000;
eval ("_root.map_s." + map_obj_name)._yscale = 0;
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
_root.arrow_n++;
map_obj_name = "arrow98";
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
play_name = "tamam" + 21;
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name)._x = ((this._x + dx) + 240) + 15;
eval ("_root.map_s." + map_obj_name)._y = ((this._y + dy) + 160) + 15;
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name).chara_n = 5;
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
_root.arrow_n++;
pmuki = 1;
dx = 0;
dy = 0;
if (10 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
this._alpha = 100;
_root.map_s.txt0.bossname.gotoandplay("siro2");
_root.se_pwup.start();
_root.map_s.txt0.bosshpbar._xscale = 0;
kakudo = (Math.atan2(((this._y + 160) - _root.map_s.bossx._y) + 16, (((this._x + 240) - _root.map_s.bossx._x) - 16) + 16) * 180) / Math.PI;
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
pmuki = 4;
} else {
pmuki = 5;
}
} else {
pmuki = 6;
}
} else {
pmuki = 7;
}
} else {
pmuki = 3;
}
} else {
pmuki = 2;
}
} else {
pmuki = 1;
}
} else {
pmuki = 8;
}
play_name = "end" + pmuki;
this.player.gotoandplay(play_name);
play_name = "tamam" + (pmuki + 20);
dy = ((((this._y + 160) - _root.map_s.bossx._y) + 16) * -1) / 60;
dx = (((((this._x + 240) - _root.map_s.bossx._x) - 16) + 16) * -1) / 60;
_root.map_s.gun1.removeMovieClip();
_root.map_s.gun2.removeMovieClip();
}
if ((200 < bcnt) && (0 < _root.map_s.bossx._alpha)) {
_root.map_s.bossx._alpha = _root.map_s.bossx._alpha - 1;
}
if ((bcnt < 300) && (170 < bcnt)) {
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name)._yscale = (bcnt - 170) * 2;
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name)._yscale = (bcnt - 170) * 2;
}
if (bcnt < 60) {
_root.map_s._x = _root.map_s._x - (dx / 2);
_root.map_s._y = _root.map_s._y - (dy / 2);
_root.map_s.txt0._x = _root.map_s.txt0._x + (dx / 2);
_root.map_s.txt0._y = _root.map_s.txt0._y + (dy / 2);
}
if (bcnt != 300) {
if (bcnt == 700) {
_root.bossmode = 5;
_root.gotoandplay("gameclear");
}
} else {
_root.bgm1.gotoandplay("play3");
_root.score = _root.score + 5000;
}
if (bcnt < 1200) {
bcnt++;
}
}
} else if (bcnt != 3) {
bcnt++;
} else {
bcnt = 0;
_root.bossmode = 4;
}
} else if (bcnt >= 40) {
if (bcnt != 40) {
if (bcnt != 70) {
if (bcnt != 100) {
if (bcnt != 180) {
if (bcnt >= 200) {
if (bcnt >= 240) {
move_on = 0;
_root.bgm1.gotoAndPlay("play2");
_root.map_s.bossrope0.gotoandplay("kesu");
teki_ptn = 1;
ix = 212;
jx = 8;
_root.mapx[jx] = (_root.mapx[jx].substring(0, ix) + "00") + _root.mapx[jx].substring(ix + 2);
jx++;
_root.mapx[jx] = (_root.mapx[jx].substring(0, ix) + "00") + _root.mapx[jx].substring(ix + 2);
_root.bossmode = 2;
bcnt = 0;
} else {
_root.bosshp = 40;
_root.map_s._x = _root.map_s._x + 4;
_root.map_s._y = _root.map_s._y - 2;
_root.map_s.txt0._x = _root.map_s.txt0._x - 4;
_root.map_s.txt0._y = _root.map_s.txt0._y + 2;
bcnt++;
}
} else {
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
bcnt++;
_root.se_doon.start();
}
} else {
bcnt++;
_root.se_don1.start();
obj_n = (13 * 16) + 10;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("rakka");
}
} else {
map_obj_name = "bossx";
_root.enmy_n = 0;
_root.map_s.boss0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
i = 213;
j = 9;
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) - 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).gotoandplay(1);
_root.enmy_n = 1;
_root.enmy_n0 = 0;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
bcnt++;
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ix = Math.floor(px0 / 32) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
_root.mapx[jx] = (_root.mapx[jx].substring(0, (64 * 3) + 12) + "0000") + _root.mapx[jx].substring((64 * 3) + 16);
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
} else {
_root.map_s._x = _root.map_s._x - 4;
_root.map_s._y = _root.map_s._y + 2;
_root.map_s.txt0._x = _root.map_s.txt0._x + 4;
_root.map_s.txt0._y = _root.map_s.txt0._y - 2;
bcnt++;
}
} else {
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
dxy = 1;
mx = 0;
my = 0;
if (mousemode == 1) {
mouse_kakudo = (Math.atan2(((_root._ymouse - 160) - 56) - 16, (_root._xmouse - 240) + 16) * 180) / Math.PI;
_root.flag2 = Math.floor(mouse_kakudo);
if (!(((45 + 22.5) >= mouse_kakudo) && ((45 - 22.5) < mouse_kakudo))) {
if (!(((135 + 22.5) >= mouse_kakudo) && ((135 - 22.5) < mouse_kakudo))) {
if (!(((-135 + 22.5) >= mouse_kakudo) && ((-135 - 22.5) < mouse_kakudo))) {
if (!(((-45 + 22.5) >= mouse_kakudo) && ((-45 - 22.5) < mouse_kakudo))) {
if (!(((-90 + 22.5) >= mouse_kakudo) && ((-90 - 22.5) < mouse_kakudo))) {
if (!(((0 + 22.5) >= mouse_kakudo) && ((-22.5) < mouse_kakudo))) {
if (!(((90 + 22.5) >= mouse_kakudo) && ((90 - 22.5) < mouse_kakudo))) {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
}
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
}
}
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.PGDN)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.END)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.HOME)))) {
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.PGUP)))) {
if (!Key.isDown(Key.RIGHT)) {
if (!Key.isDown(Key.LEFT)) {
if (!Key.isDown(Key.DOWN)) {
if (!Key.isDown(Key.UP)) {
tenkey = 0;
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
tenkey = 1;
mousemode = 0;
}
if (!(Key.isDown(1) || (tenkey == 1))) {
dxy = 1;
mx = 0;
my = 0;
move_on = 0;
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + (pmuki + (Math.ceil(sp_on / 900) * 10)));
}
} else {
if (Key.isDown(1)) {
mousemode = 1;
}
if (move_on != (pmuki * arrow_kamae)) {
if (arrow_kamae != -1) {
this.player.gotoandplay("tatu" + pmuki);
} else {
this.player.gotoandplay("utu" + (pmuki + (Math.ceil(sp_on / 900) * 10)));
}
move_on = pmuki * arrow_kamae;
}
}
if ((Key.isDown(77) || (Key.isDown(67))) && (_root.jump_on == 0)) {
_root.jump_on = 23;
_root.se_jump.start();
}
if ((((Key.isDown(66) || (Key.isDown(90))) && (0 < _root.sp)) && (-20 < _root.jump_on)) && (sp_on < 1)) {
sp_on = 900;
_root.se_pwup.start();
_root.sp--;
}
if (0 >= _root.jump_on) {
if (!((_root.jump_on < 0) && (-70 < _root.jump_on))) {
rakka1 = 0;
} else {
_root.map_s.gun1.removeMovieClip();
_root.map_s.gun2.removeMovieClip();
this.player._y = this.player._y - (_root.jump_on - 10);
_root.jump_on--;
if (_root.jump_on == -20) {
if (sp_on != 0) {
_root.se_warp1.start();
_root.map_s.player1.swapDepths(250001);
_root.map_s.player1.player.gotoandstop("tatu1");
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
sp_on = 0;
_root.map_s._x = qx;
_root.map_s._y = qy;
_root.map_s.player1._x = -32 - qx;
_root.map_s.player1._y = 56 - qy;
muteki = 150;
move_on = 0;
this._alpha = 50;
arrow_tame = 0;
arrow_cnt = 18;
this.player._y = 160;
} else {
_root.se_fall.start();
}
}
if (_root.jump_on < -50) {
_root.enmy_n0 = 0;
rakka1 = 0;
_root.jump_on = -100;
_root.tobashi = 0;
_root.gotoandplay("end");
}
}
} else {
this.player._y = this.player._y - (_root.jump_on - 12);
_root.jump_on--;
rakka1 = 1;
}
if (0 < muteki) {
_root.tobashi = 0;
muteki--;
if (muteki < 1) {
this._alpha = 100;
}
}
if (0 < _root.tobashi) {
_root.tobashi--;
_root.map_s._x = _root.map_s._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y + (((_root.my2 * _root.tobashi) * 2) / 10);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b") {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c") {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x + (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((7 * _root.tobashi) * 2) / 10);
this._x = this._x - (((7 * _root.tobashi) * 2) / 10);
this._y = this._y - (((7 * _root.tobashi) * 2) / 10);
}
} else {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x - (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((7 * _root.tobashi) * 2) / 10);
this._x = this._x + (((7 * _root.tobashi) * 2) / 10);
this._y = this._y + (((7 * _root.tobashi) * 2) / 10);
}
}
k = 0;
for ( ; k < dxy ; k++) {
_root.map_s._x = _root.map_s._x - (mx / 2);
_root.map_s._y = _root.map_s._y - (my / 2);
this._x = this._x + (mx / 2);
this._y = this._y + (my / 2);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.jump_on >= 0) {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
this.player_kage.gotoandstop(1);
if (_root.jump_on == 0) {
qx = _root.map_s._x;
qy = _root.map_s._y;
}
} else if (!((rakka1 == 0) && (_root.tobashi == 0))) {
this.player_kage.gotoandstop("kesu");
if ((_root.jump_on == 0) || (0 < _root.tobashi)) {
k = 100;
dy = _root.jump_on - 12;
_root.jump_on = -1;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths(50090 - (((ix1 + 16) - iy1) * 100));
if (!((192 < ix1) || (128 < _root.startx))) {
if (!((128 < ix1) || (64 < _root.startx))) {
if (64 < ix1) {
_root.startx = 64;
_root.starty = 6;
}
} else {
_root.startx = 128;
_root.starty = 3;
}
} else {
_root.startx = 192;
_root.starty = 4;
}
}
} else {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c")) {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
if (((207 < Math.floor(px0 / 2)) && (_root.jump_on == 0)) && (_root.bossmode == 0)) {
bcnt = 0;
_root.bossmode = 1;
_root.bgm1.gotoAndPlay("end");
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + (pmuki + (Math.ceil(sp_on / 900) * 10)));
}
}
if (_root.bossmode == 2) {
if (_root.bosshp < 1) {
_root.bosshp = 0;
if (_root.jump_on == 0) {
bcnt = 0;
_root.bossmode = 3;
}
}
}
if (Math.floor(px / 32) >= Math.floor(px0 / 32)) {
if (Math.floor(px0 / 32) < Math.floor(px / 32)) {
ij = 0;
for ( ; ij < (Math.floor(px / 32) - Math.floor(px0 / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) + 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
} else {
ij = 0;
for ( ; ij < (Math.floor(px0 / 32) - Math.floor(px / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) + 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) - 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
if (Math.floor(px / 2) < Math.floor(px0 / 2)) {
ij = 0;
for ( ; ij < (Math.floor(px0 / 2) - Math.floor(px / 2)) ; ij++) {
i = (Math.floor(px0 / 2) + 8) - ij;
if (i < 0) {
i = 0;
}
if (250 < i) {
i = 250;
}
j = 0;
for ( ; j < 16 ; j++) {
if (_root.mapx[j].charAt(i) != "2") {
if (_root.mapx[j].charAt(i) != "3") {
if (_root.mapx[j].charAt(i) != "9") {
if (_root.mapx[j].charAt(i) != "8") {
if (_root.mapx[j].charAt(i) == "7") {
_root.enmy_n0 = 10;
_root.enmy_n = 10;
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "0") + _root.mapx[j].substring(i + 1);
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (((i * 32) + (j * 32)) + 16) - 32;
eval ("_root.map_s." + map_obj_name)._y = ((164 - (i * 32)) + (j * 32)) + 32;
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 400;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((((i * 32) + (j * 32)) + 16) - 32) + (9 * 32);
eval ("_root.map_s." + map_obj_name)._y = (((164 - (i * 32)) + (j * 32)) + 32) - (9 * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 400;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((((i * 32) + (j * 32)) + 16) - 32) + (18 * 32);
eval ("_root.map_s." + map_obj_name)._y = ((164 - (i * 32)) + (j * 32)) + 32;
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 400;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((((i * 32) + (j * 32)) + 16) - 32) + (9 * 32);
eval ("_root.map_s." + map_obj_name)._y = (((164 - (i * 32)) + (j * 32)) + 32) + (9 * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 400;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else {
map_obj_name = "gs1";
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.gs0.duplicateMovieClip(map_obj_name, 58000);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.bigball0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.teki0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
}
}
if (pmuki != 1) {
if (pmuki != 2) {
if (pmuki != 3) {
if (pmuki != 4) {
if (pmuki != 5) {
if (pmuki != 6) {
if (pmuki != 7) {
dx = -10 / 8;
dy = 0;
dx2 = 0;
dy2 = -10;
} else {
dx = -7 / 8;
dy = -7 / 8;
dx2 = -7;
dy2 = 7;
}
} else {
dx = 0;
dy = -10 / 8;
dx2 = 10;
dy2 = 0;
}
} else {
dx = 7 / 8;
dy = -7 / 8;
dx2 = 7;
dy2 = 7;
}
} else {
dx = 10 / 8;
dy = 0;
dx2 = 0;
dy2 = -10;
}
} else {
dx = 7 / 8;
dy = 7 / 8;
dx2 = 7;
dy2 = -7;
}
} else {
dx = 0;
dy = 10 / 8;
dx2 = -10;
dy2 = 0;
}
} else {
dx = -7 / 8;
dy = 7 / 8;
dx2 = -7;
dy2 = -7;
}
map_obj_name = "arrow" + _root.arrow_n;
map_obj_name2 = "arrow" + (_root.arrow_n + 10);
map_obj_name3 = "arrow" + (_root.arrow_n + 20);
if (!(((Key.isDown(78) || (Key.isDown(88))) && (_root.jump_on == 0)) && (arrow_cnt == 0))) {
if (!(((Key.isDown(78) || (Key.isDown(88))) || (0 < _root.jump_on)) && (arrow_cnt == 19))) {
if (arrow_cnt == 19) {
if (arrow_tame < 60) {
if (arrow_tame < 25) {
omuki = 0;
} else {
omuki = 1;
}
} else {
omuki = 2;
}
play_name = "tamam" + (pmuki + (Math.ceil(sp_on / 900) * 10));
i = omuki * -1;
for ( ; i < (omuki + 1) ; i++) {
dpth = (_root.arrow_n - omuki) + i;
map_obj_name = "arrow" + dpth;
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 1 + Math.ceil(sp_on / 900);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = ((this._x + (dx * 20)) + 240) + (dx2 * i);
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy * 20)) + this.player._y) + (dy2 * i);
dpth = (((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) - omuki) + i;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
if (_root.jump_on < 0) {
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
_root.map_s.gun1.removeMovieClip();
_root.map_s.gun2.removeMovieClip();
_root.se_gunshot1.start();
arrow_kamae = 1;
}
} else {
arrow_cnt++;
arrow_tame++;
if (arrow_tame != 25) {
if (arrow_tame == 60) {
play_name2 = "utu" + ((pmuki + 10) + (Math.ceil(sp_on / 900) * 20));
_root.map_s.gun1.gotoandstop(play_name2);
_root.map_s.gun2.gotoandstop(play_name2);
_root.map_s.gun1._x = (this._x + 240) + (dx2 * 2);
_root.map_s.gun1._y = (this._y + this.player._y) + (dy2 * 2);
_root.map_s.gun2._x = (this._x + 240) - dx2;
_root.map_s.gun2._y = (this._y + this.player._y) - dy2;
dpth = 250002 + (((_root.map_s.gun1._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200);
_root.map_s.gun1.swapDepths(dpth);
dpth = (250002 + (((_root.map_s.gun2._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200)) + 1;
_root.map_s.gun2.swapDepths(dpth);
omuki = pmuki;
i = -2;
for ( ; i < 3 ; i = i + 2) {
if (i != 0) {
_root.arrow_n++;
dpth = _root.arrow_n;
map_obj_name = "arrow" + dpth;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + dpth);
play_name = "tamam" + (Math.ceil(sp_on / 900) * 10);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).pw = 1 + Math.ceil(sp_on / 900);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = ((this._x + (dx * 20)) + 240) + (dx2 * i);
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy * 20)) + 160) + (dy2 * i);
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n;
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
}
}
}
} else {
_root.map_s.gun0.duplicateMovieClip("gun1", 54901);
_root.map_s.gun0.duplicateMovieClip("gun2", 54902);
_root.map_s.gun1.chara_n = 1;
_root.map_s.gun2.chara_n = 2;
play_name2 = "utu" + (pmuki + (Math.ceil(sp_on / 900) * 20));
_root.map_s.gun1.gotoandstop(play_name2);
_root.map_s.gun2.gotoandstop(play_name2);
_root.map_s.gun1._x = (this._x + 240) + dx2;
_root.map_s.gun1._y = (this._y + this.player._y) + dy2;
_root.map_s.gun2._x = (this._x + 240) - dx2;
_root.map_s.gun2._y = (this._y + this.player._y) - dy2;
dpth = 250002 + (((_root.map_s.gun1._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200);
_root.map_s.gun1.swapDepths(dpth);
dpth = (250002 + (((_root.map_s.gun2._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200)) + 1;
_root.map_s.gun2.swapDepths(dpth);
omuki = pmuki;
i = -1;
for ( ; i < 2 ; i++) {
if (i != 0) {
_root.arrow_n++;
dpth = _root.arrow_n;
map_obj_name = "arrow" + dpth;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + dpth);
play_name = "tamam" + (Math.ceil(sp_on / 900) * 10);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).pw = 1 + Math.ceil(sp_on / 900);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = ((this._x + (dx * 20)) + 240) + (dx2 * i);
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy * 20)) + 160) + (dy2 * i);
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n;
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
}
}
}
if (arrow_tame < 60) {
if (arrow_tame < 25) {
omuki = 0;
} else {
_root.map_s.gun1._x = (this._x + 240) + dx2;
_root.map_s.gun1._y = (this._y + this.player._y) + dy2;
_root.map_s.gun2._x = (this._x + 240) - dx2;
_root.map_s.gun2._y = (this._y + this.player._y) - dy2;
if ((pmuki != omuki) || (sp_on == 900)) {
play_name2 = "utu" + (pmuki + (Math.ceil(sp_on / 900) * 20));
_root.map_s.gun1.gotoandstop(play_name2);
_root.map_s.gun2.gotoandstop(play_name2);
dpth = 250002 + (((_root.map_s.gun1._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200);
_root.map_s.gun1.swapDepths(dpth);
dpth = (250002 + (((_root.map_s.gun2._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200)) + 1;
_root.map_s.gun2.swapDepths(dpth);
}
omuki = 1;
}
} else {
_root.map_s.gun1._x = (this._x + 240) + (dx2 * 2);
_root.map_s.gun1._y = (this._y + this.player._y) + (dy2 * 2);
_root.map_s.gun2._x = (this._x + 240) - dx2;
_root.map_s.gun2._y = (this._y + this.player._y) - dy2;
if ((pmuki != omuki) || (sp_on == 900)) {
play_name2 = "utu" + ((pmuki + 10) + (Math.ceil(sp_on / 900) * 20));
_root.map_s.gun1.gotoandstop(play_name2);
_root.map_s.gun2.gotoandstop(play_name2);
dpth = 250002 + (((_root.map_s.gun1._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200);
_root.map_s.gun1.swapDepths(dpth);
dpth = (250002 + (((_root.map_s.gun2._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200)) + 1;
_root.map_s.gun2.swapDepths(dpth);
}
omuki = 2;
}
i = omuki * -1;
for ( ; i < (omuki + 1) ; i++) {
dpth = (_root.arrow_n - omuki) + i;
map_obj_name = "arrow" + dpth;
if (sp_on != 900) {
if (sp_on == 1) {
eval ("_root.map_s." + map_obj_name).gotoandplay("tamam0x");
}
} else {
eval ("_root.map_s." + map_obj_name).gotoandplay("tamam10");
}
eval ("_root.map_s." + map_obj_name).pw = 1 + Math.ceil(sp_on / 900);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = ((this._x + (dx * 20)) + 240) + (dx2 * i);
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy * 20)) + this.player._y) + (dy2 * i);
dpth = (((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) - omuki) + i;
if (_root.jump_on == 0) {
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
}
if (_root.jump_on < 0) {
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
omuki = pmuki;
}
} else {
play_name = "tamam" + (Math.ceil(sp_on / 900) * 10);
_root.arrow_n++;
if (25 < _root.arrow_n) {
_root.arrow_n = 5;
}
dpth = _root.arrow_n;
map_obj_name = "arrow" + dpth;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + dpth);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 20)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 20)) + 160;
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n;
eval ("_root.map_s." + map_obj_name).pw = 1 + Math.ceil(sp_on / 900);
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
arrow_cnt = 20;
arrow_tame = 0;
arrow_kamae = -1;
}
_root.map_s.txt0._x = this._x;
_root.map_s.txt0._y = this._y;
_root.map_s.txt0.bosshpbar._xscale = 200 * _root.bosshp;
px = px0;
py = py0;
_root.px = px;
_root.py = py;
_root.flag1 = _root.bg1._x;
loop_cnt++;
if (500 < loop_cnt) {
loop_cnt = 0;
}
if (0 < arrow_cnt) {
arrow_cnt--;
}
if (arrow_cnt == 10) {
arrow_kamae = 1;
}
if (arrow_cnt < 0) {
arrow_cnt++;
}
if (0 < sp_on) {
sp_on--;
}
_root.map_s.txt0.sptxt.gsbar._xscale = 30 * Math.floor(sp_on / 30);
_root.jikan--;
if ((_root.jikan < 0) && (timeup_on == 0)) {
_root.jikan = 0;
_root.map_s.gun1.removeMovieClip();
_root.map_s.gun2.removeMovieClip();
if (_root.jump_on == 0) {
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
_root.jikan = 0;
timeup_on = 90;
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
this.player.gotoandplay("timeup");
}
}
}
}
}
Instance of Symbol 140 MovieClip [sp_character3] "player3" in Symbol 1202 MovieClip [sp_map3] Frame 4
onClipEvent (load) {
px0 = 0;
py0 = 0;
px = 5.5;
py = 8.5;
qx = 0;
qy = 0;
rakka1 = 0;
teki_ptn = 0;
loop_cnt = 0;
pmuki = 5;
arrow_cnt = 0;
mouse_kakudo = 0;
move_on = 0;
teki_ran = 0;
arrow_tame = 0;
arrow_on = 0;
timeup_on = 0;
arrow_kamae = 1;
sp_on = 0;
muteki = 0;
bcnt = 0;
}
onClipEvent (enterFrame) {
if (((_root.charan == 3) && (this != _root.map_os3.player3)) && (this != _root.map_s.player3)) {
if (!(((timeup_on == 0) && (_root.bossmode != 1)) && (_root.bossmode < 3))) {
if (_root.bossmode != 1) {
if (_root.bossmode != 3) {
if (_root.bossmode != 4) {
if (0 < timeup_on) {
_root.jikan = 0;
timeup_on--;
if (timeup_on == 1) {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
_root.gotoandplay("end");
}
}
} else {
if (bcnt != 0) {
if (bcnt != 130) {
if (bcnt != 160) {
if (bcnt != 161) {
if (!((161 < bcnt) && (bcnt < 201))) {
if (bcnt != 255) {
if (bcnt != 263) {
if (bcnt == 269) {
_root.map_s.bossx.gotoandplay("tatu0");
_root.se_baku.start();
}
} else {
_root.homsp = 1;
_root.map_s.txt0.timestop.gotoandstop("b");
k = 0;
for ( ; k < 8 ; k++) {
map_obj_name = "arrow" + (90 + k);
eval ("_root.map_s." + map_obj_name).pw = 3;
eval ("_root.map_s." + map_obj_name).tame = 250;
}
}
} else {
_root.se_kachi1.start();
}
} else {
if (bcnt == 180) {
this.player.gotoandstop("end1");
}
k = 0;
for ( ; k < 8 ; k++) {
map_obj_name = "arrow" + (90 + k);
eval ("_root.map_s." + map_obj_name)._y = eval ("_root.map_s." + map_obj_name)._y - (10 - ((bcnt - 162) / 2));
}
}
} else {
map_obj_name = "arrow90";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow91";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow92";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow93";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow94";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow95";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
}
} else {
_root.arrow_n = 1;
play_name = "tamamh1";
k = 0;
for ( ; k < 8 ; k++) {
map_obj_name = "arrow" + (90 + k);
dx2 = ((_root.map_s.bossx._x + 16) - 16) + (32 * Math.cos((k * Math.PI) / 4));
dy2 = (_root.map_s.bossx._y - 16) + (32 * Math.sin((k * Math.PI) / 4));
kakudo = (Math.atan2((this._y + 160) - dy2, (this._x + 240) - dx2) * 180) / Math.PI;
dy = (((this._y + 160) - dy2) * -1) / 40;
dx = (((this._x + 240) - dx2) * -1) / 40;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name)._x = (this._x + dx) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + dy) + 160;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
eval ("_root.map_s." + map_obj_name).chara_n = 3 + k;
_root.arrow_n++;
}
if (10 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
_root.se_pwup.start();
_root.map_s.txt0.timestop.gotoandstop("a");
bcnt = _root.map_s.bossx._currentframe;
_root.map_s.bossx.gotoandstop(bcnt);
bcnt = 130;
}
} else {
this._alpha = 100;
_root.map_s.txt0.bossname.gotoandplay("siro3");
_root.se_pwup.start();
_root.map_s.txt0.bosshpbar._xscale = 0;
_root.homsp = 0;
kakudo = (Math.atan2(((this._y + 160) - _root.map_s.bossx._y) + 16, (((this._x + 240) - _root.map_s.bossx._x) - 16) + 16) * 180) / Math.PI;
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
pmuki = 4;
} else {
pmuki = 5;
}
} else {
pmuki = 6;
}
} else {
pmuki = 7;
}
} else {
pmuki = 3;
}
} else {
pmuki = 2;
}
} else {
pmuki = 1;
}
} else {
pmuki = 8;
}
this.player.gotoandstop("utu" + pmuki);
dy = ((((this._y + 160) - _root.map_s.bossx._y) + 16) * -1) / 60;
dx = (((((this._x + 240) - _root.map_s.bossx._x) - 16) + 16) * -1) / 60;
}
if ((269 < bcnt) && (0 < _root.map_s.bossx._alpha)) {
_root.map_s.bossx._alpha = _root.map_s.bossx._alpha - 1;
}
if (bcnt < 60) {
_root.map_s._x = _root.map_s._x - (dx / 2);
_root.map_s._y = _root.map_s._y - (dy / 2);
_root.map_s.txt0._x = _root.map_s.txt0._x + (dx / 2);
_root.map_s.txt0._y = _root.map_s.txt0._y + (dy / 2);
}
if (bcnt != 300) {
if (bcnt == 700) {
_root.bossmode = 5;
_root.gotoandplay("gameclear");
}
} else {
_root.bgm1.gotoandplay("play3");
_root.score = _root.score + 5000;
}
if (bcnt < 1200) {
bcnt++;
}
}
} else if (bcnt != 3) {
bcnt++;
} else {
bcnt = 0;
_root.bossmode = 4;
}
} else if (bcnt >= 40) {
if (bcnt != 40) {
if (bcnt != 70) {
if (bcnt != 100) {
if (bcnt != 180) {
if (bcnt >= 200) {
if (bcnt >= 240) {
move_on = 0;
_root.bgm1.gotoAndPlay("play2");
teki_ptn = 1;
ix = 212;
jx = 8;
_root.mapx[jx] = (_root.mapx[jx].substring(0, ix) + "00") + _root.mapx[jx].substring(ix + 2);
jx++;
_root.mapx[jx] = (_root.mapx[jx].substring(0, ix) + "00") + _root.mapx[jx].substring(ix + 2);
_root.bossmode = 2;
bcnt = 0;
} else {
_root.bosshp = 40;
_root.map_s._x = _root.map_s._x + 4;
_root.map_s._y = _root.map_s._y - 2;
_root.map_s.txt0._x = _root.map_s.txt0._x - 4;
_root.map_s.txt0._y = _root.map_s.txt0._y + 2;
bcnt++;
}
} else {
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
bcnt++;
_root.se_doon.start();
}
} else {
bcnt++;
_root.se_don1.start();
obj_n = (13 * 16) + 10;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("rakka");
}
} else {
map_obj_name = "bossx";
_root.enmy_n = 0;
_root.map_s.boss0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
i = 213;
j = 9;
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) - 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).gotoandplay(1);
_root.enmy_n = 1;
_root.enmy_n0 = 0;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
bcnt++;
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ix = Math.floor(px0 / 32) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
_root.mapx[jx] = (_root.mapx[jx].substring(0, (64 * 3) + 12) + "0000") + _root.mapx[jx].substring((64 * 3) + 16);
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
} else {
_root.map_s._x = _root.map_s._x - 4;
_root.map_s._y = _root.map_s._y + 2;
_root.map_s.txt0._x = _root.map_s.txt0._x + 4;
_root.map_s.txt0._y = _root.map_s.txt0._y - 2;
bcnt++;
}
} else {
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
dxy = 1;
mx = 0;
my = 0;
if (mousemode == 1) {
mouse_kakudo = (Math.atan2(((_root._ymouse - 160) - 56) - 16, (_root._xmouse - 240) + 16) * 180) / Math.PI;
_root.flag2 = Math.floor(mouse_kakudo);
if (!(((45 + 22.5) >= mouse_kakudo) && ((45 - 22.5) < mouse_kakudo))) {
if (!(((135 + 22.5) >= mouse_kakudo) && ((135 - 22.5) < mouse_kakudo))) {
if (!(((-135 + 22.5) >= mouse_kakudo) && ((-135 - 22.5) < mouse_kakudo))) {
if (!(((-45 + 22.5) >= mouse_kakudo) && ((-45 - 22.5) < mouse_kakudo))) {
if (!(((-90 + 22.5) >= mouse_kakudo) && ((-90 - 22.5) < mouse_kakudo))) {
if (!(((0 + 22.5) >= mouse_kakudo) && ((-22.5) < mouse_kakudo))) {
if (!(((90 + 22.5) >= mouse_kakudo) && ((90 - 22.5) < mouse_kakudo))) {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
}
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
}
}
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.PGDN)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.END)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.HOME)))) {
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.PGUP)))) {
if (!Key.isDown(Key.RIGHT)) {
if (!Key.isDown(Key.LEFT)) {
if (!Key.isDown(Key.DOWN)) {
if (!Key.isDown(Key.UP)) {
tenkey = 0;
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
tenkey = 1;
mousemode = 0;
}
if (!(Key.isDown(1) || (tenkey == 1))) {
dxy = 1;
mx = 0;
my = 0;
move_on = 0;
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + pmuki);
}
} else {
if (Key.isDown(1)) {
mousemode = 1;
}
if (move_on != (pmuki * arrow_kamae)) {
if (arrow_kamae != -1) {
this.player.gotoandplay("tatu" + pmuki);
} else {
this.player.gotoandplay("utu" + pmuki);
}
move_on = pmuki * arrow_kamae;
}
}
if ((Key.isDown(77) || (Key.isDown(67))) && (_root.jump_on == 0)) {
_root.jump_on = 23;
_root.se_jump.start();
}
if ((((Key.isDown(66) || (Key.isDown(90))) && (0 < _root.sp)) && (-20 < _root.jump_on)) && (sp_on < 1)) {
_root.homsp = 0;
_root.se_pwup.start();
_root.sp--;
_root.map_s.txt0.timestop.gotoandstop("a");
sp_on = _root.bg3._currentframe;
_root.bg3.gotoandstop(sp_on);
sp_on = 300;
}
if (0 >= _root.jump_on) {
if (!((_root.jump_on < 0) && (-70 < _root.jump_on))) {
rakka1 = 0;
} else {
this.player._y = this.player._y - (_root.jump_on - 10);
_root.jump_on--;
if (_root.jump_on == -20) {
if (sp_on != 0) {
_root.se_warp1.start();
_root.map_s.player1.swapDepths(250001);
_root.map_s.player1.player.gotoandstop("tatu1");
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
sp_on = 1;
_root.map_s._x = qx;
_root.map_s._y = qy;
_root.map_s.player1._x = -32 - qx;
_root.map_s.player1._y = 56 - qy;
muteki = 150;
move_on = 0;
this._alpha = 50;
arrow_tame = 0;
arrow_cnt = 18;
this.player._y = 160;
} else {
_root.se_fall.start();
}
}
if (_root.jump_on < -50) {
_root.enmy_n0 = 0;
rakka1 = 0;
_root.jump_on = -100;
_root.tobashi = 0;
_root.gotoandplay("end");
}
}
} else {
this.player._y = this.player._y - (_root.jump_on - 12);
_root.jump_on--;
rakka1 = 1;
}
if (0 < muteki) {
_root.tobashi = 0;
muteki--;
if (muteki < 1) {
this._alpha = 100;
}
}
if (0 < _root.tobashi) {
_root.tobashi--;
_root.map_s._x = _root.map_s._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y + (((_root.my2 * _root.tobashi) * 2) / 10);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b") {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c") {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x + (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((7 * _root.tobashi) * 2) / 10);
this._x = this._x - (((7 * _root.tobashi) * 2) / 10);
this._y = this._y - (((7 * _root.tobashi) * 2) / 10);
}
} else {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x - (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((7 * _root.tobashi) * 2) / 10);
this._x = this._x + (((7 * _root.tobashi) * 2) / 10);
this._y = this._y + (((7 * _root.tobashi) * 2) / 10);
}
}
k = 0;
for ( ; k < dxy ; k++) {
_root.map_s._x = _root.map_s._x - (mx / 2);
_root.map_s._y = _root.map_s._y - (my / 2);
this._x = this._x + (mx / 2);
this._y = this._y + (my / 2);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.jump_on >= 0) {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
this.player_kage.gotoandstop(1);
if (_root.jump_on == 0) {
qx = _root.map_s._x;
qy = _root.map_s._y;
}
} else if (!((rakka1 == 0) && (_root.tobashi == 0))) {
this.player_kage.gotoandstop("kesu");
if ((_root.jump_on == 0) || (0 < _root.tobashi)) {
k = 100;
dy = _root.jump_on - 12;
_root.jump_on = -1;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths(50090 - (((ix1 + 16) - iy1) * 100));
if (!((192 < ix1) || (128 < _root.startx))) {
if (!((128 < ix1) || (64 < _root.startx))) {
if (64 < ix1) {
_root.startx = 64;
_root.starty = 6;
}
} else {
_root.startx = 128;
_root.starty = 3;
}
} else {
_root.startx = 192;
_root.starty = 4;
}
}
} else {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c")) {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
if (((207 < Math.floor(px0 / 2)) && (_root.jump_on == 0)) && (_root.bossmode == 0)) {
bcnt = 0;
_root.bossmode = 1;
_root.bgm1.gotoAndPlay("end");
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + pmuki);
}
}
if (_root.bossmode == 2) {
if (_root.bosshp < 1) {
_root.bosshp = 0;
if (_root.jump_on == 0) {
bcnt = 0;
_root.bossmode = 3;
}
}
}
if (Math.floor(px / 32) >= Math.floor(px0 / 32)) {
if (Math.floor(px0 / 32) < Math.floor(px / 32)) {
ij = 0;
for ( ; ij < (Math.floor(px / 32) - Math.floor(px0 / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) + 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
} else {
ij = 0;
for ( ; ij < (Math.floor(px0 / 32) - Math.floor(px / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) + 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) - 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
if (Math.floor(px / 2) < Math.floor(px0 / 2)) {
ij = 0;
for ( ; ij < (Math.floor(px0 / 2) - Math.floor(px / 2)) ; ij++) {
i = (Math.floor(px0 / 2) + 8) - ij;
if (i < 0) {
i = 0;
}
if (250 < i) {
i = 250;
}
j = 0;
for ( ; j < 16 ; j++) {
if (_root.mapx[j].charAt(i) != "2") {
if (_root.mapx[j].charAt(i) != "3") {
if (_root.mapx[j].charAt(i) != "9") {
if (_root.mapx[j].charAt(i) != "8") {
if (_root.mapx[j].charAt(i) == "7") {
_root.enmy_n0 = 10;
_root.enmy_n = 10;
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "0") + _root.mapx[j].substring(i + 1);
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (((i * 32) + (j * 32)) + 16) - 32;
eval ("_root.map_s." + map_obj_name)._y = ((164 - (i * 32)) + (j * 32)) + 32;
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 400;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((((i * 32) + (j * 32)) + 16) - 32) + (9 * 32);
eval ("_root.map_s." + map_obj_name)._y = (((164 - (i * 32)) + (j * 32)) + 32) - (9 * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 400;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((((i * 32) + (j * 32)) + 16) - 32) + (18 * 32);
eval ("_root.map_s." + map_obj_name)._y = ((164 - (i * 32)) + (j * 32)) + 32;
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 400;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((((i * 32) + (j * 32)) + 16) - 32) + (9 * 32);
eval ("_root.map_s." + map_obj_name)._y = (((164 - (i * 32)) + (j * 32)) + 32) + (9 * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 400;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else {
map_obj_name = "gs1";
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.gs0.duplicateMovieClip(map_obj_name, 58000);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.bigball0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.teki0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
}
}
if (pmuki != 1) {
if (pmuki != 2) {
if (pmuki != 3) {
if (pmuki != 4) {
if (pmuki != 5) {
if (pmuki != 6) {
if (pmuki != 7) {
dx = -10 / 8;
dy = 0;
dx2 = -7 / 8;
dy2 = -7 / 8;
} else {
dx = -7 / 8;
dy = -7 / 8;
dx2 = 0;
dy2 = -10 / 8;
}
} else {
dx = 0;
dy = -10 / 8;
dx2 = 7 / 8;
dy2 = -7 / 8;
}
} else {
dx = 7 / 8;
dy = -7 / 8;
dx2 = 10 / 8;
dy2 = 0;
}
} else {
dx = 10 / 8;
dy = 0;
dx2 = 7 / 8;
dy2 = 7 / 8;
}
} else {
dx = 7 / 8;
dy = 7 / 8;
dx2 = 0;
dy2 = 10 / 8;
}
} else {
dx = 0;
dy = 10 / 8;
dx2 = -7 / 8;
dy2 = 7 / 8;
}
} else {
dx = -7 / 8;
dy = 7 / 8;
dx2 = -10 / 8;
dy2 = 0;
}
if (sp_on < 1) {
dx2 = 0;
dy2 = 0;
}
map_obj_name = "arrow" + _root.arrow_n;
if (!(((Key.isDown(78) || (Key.isDown(88))) && (_root.jump_on == 0)) && (arrow_cnt == 0))) {
if (!(((Key.isDown(78) || (Key.isDown(88))) || (0 < _root.jump_on)) && (arrow_cnt == 19))) {
if (arrow_cnt == 19) {
eval ("_root.map_s." + map_obj_name).tame = 1;
if (arrow_tame < 60) {
if (arrow_tame < 25) {
play_name = "tamamh1";
eval ("_root.map_s." + map_obj_name).pw = 1;
} else {
play_name = "tamamh2";
eval ("_root.map_s." + map_obj_name).pw = 2;
}
} else {
play_name = "tamamh3";
eval ("_root.map_s." + map_obj_name).pw = 3;
}
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + 160;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
_root.se_shot.start();
_root.arrow_n++;
if (12 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
arrow_cnt++;
arrow_tame++;
if (arrow_tame < 60) {
if (arrow_tame < 25) {
play_name = "tamamh1";
eval ("_root.map_s." + map_obj_name).pw = 1;
} else {
play_name = "tamamh2";
eval ("_root.map_s." + map_obj_name).pw = 2;
}
} else {
play_name = "tamamh3";
eval ("_root.map_s." + map_obj_name).pw = 3;
}
if ((arrow_tame == 25) || (arrow_tame == 60)) {
omuki = 0;
}
if (pmuki != omuki) {
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
}
omuki = pmuki;
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + this.player._y;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
if (_root.jump_on < 0) {
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
} else {
play_name = "tamamh1";
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + 160;
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n + 3;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
arrow_cnt = 20;
arrow_tame = 0;
arrow_kamae = -1;
omuki = pmuki;
if (7 < sp_on) {
sp_on = sp_on - 20;
if (sp_on < 8) {
sp_on = 7;
}
}
}
_root.map_s.txt0._x = this._x;
_root.map_s.txt0._y = this._y;
_root.map_s.txt0.bosshpbar._xscale = 200 * _root.bosshp;
px = px0;
py = py0;
_root.px = px;
_root.py = py;
_root.flag1 = _root.bg1._x;
loop_cnt++;
if (500 < loop_cnt) {
loop_cnt = 0;
}
if (0 < arrow_cnt) {
arrow_cnt--;
}
if (arrow_cnt == 18) {
arrow_kamae = 1;
}
if (arrow_cnt < 0) {
arrow_cnt++;
}
if (0 < sp_on) {
if (sp_on != 1) {
if (sp_on == 7) {
_root.se_kachi1.start();
}
} else {
_root.map_s.txt0.timestop.gotoandstop("b");
_root.homsp = 1;
sp_on = _root.bg3._currentframe;
_root.bg3.gotoandplay(sp_on);
sp_on = 1;
}
sp_on--;
}
_root.map_s.txt0.sptxt.gsbar._xscale = 30 * Math.floor(sp_on / 30);
_root.jikan--;
if ((_root.jikan < 0) && (timeup_on == 0)) {
_root.jikan = 0;
if (_root.jump_on == 0) {
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
_root.jikan = 0;
timeup_on = 90;
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
this.player.gotoandplay("timeup");
}
}
}
}
}
Instance of Symbol 148 MovieClip [sp_character4] "player4" in Symbol 1202 MovieClip [sp_map3] Frame 5
onClipEvent (load) {
px0 = 0;
py0 = 0;
px = 5.5;
py = 8.5;
qx = 0;
qy = 0;
rakka1 = 0;
teki_ptn = 0;
loop_cnt = 0;
pmuki = 5;
arrow_cnt = 0;
mouse_kakudo = 0;
move_on = 0;
teki_ran = 0;
arrow_tame = 0;
arrow_on = 0;
timeup_on = 0;
arrow_kamae = 1;
sp_on = 0;
muteki = 0;
arw_pw = 0;
bcnt = 0;
tenkey = 0;
mousemode = 0;
}
onClipEvent (enterFrame) {
if (((_root.charan == 4) && (this != _root.map_os3.player4)) && (this != _root.map_s.player4)) {
if (!(((timeup_on == 0) && (_root.bossmode != 1)) && (_root.bossmode < 3))) {
if (_root.bossmode != 1) {
if (_root.bossmode != 3) {
if (_root.bossmode != 4) {
if (0 < timeup_on) {
_root.jikan = 0;
timeup_on--;
if (timeup_on == 1) {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
_root.gotoandplay("end");
}
}
} else {
if (bcnt != 0) {
if (bcnt != 130) {
if (bcnt != 161) {
if ((161 < bcnt) && (bcnt < 181)) {
this._x = this._x + dx;
this._y = this._y + dy;
this.player._y = this.player._y + (bcnt - 171);
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx2 * 2)) + 240;
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy2 * 2)) + this.player._y) - 8;
if (bcnt == 175) {
_root.map_s.bossx.gotoandplay("tatu0");
_root.se_baku.start();
}
}
} else {
this.player.gotoandstop("utub" + pmuki);
if (pmuki != 1) {
if (pmuki != 2) {
if (pmuki != 3) {
if (pmuki != 4) {
if (pmuki != 5) {
if (pmuki != 6) {
if (pmuki != 7) {
dx2 = -18;
dy2 = 5;
} else {
dx2 = -8;
dy2 = -13;
}
} else {
dx2 = 6;
dy2 = -23;
}
} else {
dx2 = 16;
dy2 = -5;
}
} else {
dx2 = 17;
dy2 = 5;
}
} else {
dx2 = 8;
dy2 = 18;
}
} else {
dx2 = -6;
dy2 = 23;
}
} else {
dx2 = -16;
dy2 = 15;
}
map_obj_name = "arrow" + 99;
play_name = "tamaan31";
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx2 * 2)) + 240;
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy2 * 2)) + this.player._y) - 8;
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 4;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
_root.se_byoro7.start();
}
} else {
dx2 = (_root.map_s.bossx._x + 16) - 16;
dy2 = (_root.map_s.bossx._y + 16) - 16;
kakudo = (Math.atan2((this._y + 160) - dy2, (this._x + 240) - dx2) * 180) / Math.PI;
dy = (((this._y + 160) - dy2) * -1) / 20;
dx = (((this._x + 240) - dx2) * -1) / 20;
_root.arrow_n = 1;
play_name = "tamamh1";
_root.se_byoro2.start();
k = 0;
for ( ; k < 6 ; k++) {
map_obj_name = "arrow" + (90 + k);
dx2 = ((_root.map_s.bossx._x + 16) + (64 * Math.cos(((k * Math.PI) / 3) + 1.1))) - 16;
dy2 = ((_root.map_s.bossx._y + 16) + (64 * Math.sin(((k * Math.PI) / 3) + 1.1))) - 16;
_root.map_s.gun0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
eval ("_root.map_s." + map_obj_name).gotoandplay("ank1");
eval ("_root.map_s." + map_obj_name)._x = dx2;
eval ("_root.map_s." + map_obj_name)._y = dy2;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + k) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
_root.arrow_n++;
}
if (10 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
this._alpha = 100;
_root.map_s.txt0.bossname.gotoandplay("siro4");
_root.se_pwup.start();
_root.map_s.txt0.bosshpbar._xscale = 0;
_root.homsp = 0;
kakudo = (Math.atan2(((this._y + 160) - _root.map_s.bossx._y) + 16, ((this._x + 240) - _root.map_s.bossx._x) - 16) * 180) / Math.PI;
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
pmuki = 4;
} else {
pmuki = 5;
}
} else {
pmuki = 6;
}
} else {
pmuki = 7;
}
} else {
pmuki = 3;
}
} else {
pmuki = 2;
}
} else {
pmuki = 1;
}
} else {
pmuki = 8;
}
this.player.gotoandstop("utu" + pmuki);
dy = ((((this._y + 160) - _root.map_s.bossx._y) + 16) * -1) / 60;
dx = ((((this._x + 240) - _root.map_s.bossx._x) - 16) * -1) / 60;
}
if ((181 < bcnt) && (0 < _root.map_s.bossx._alpha)) {
_root.map_s.bossx._alpha = _root.map_s.bossx._alpha - 1;
}
if (bcnt < 60) {
_root.map_s._x = _root.map_s._x - (dx / 2);
_root.map_s._y = _root.map_s._y - (dy / 2);
_root.map_s.txt0._x = _root.map_s.txt0._x + (dx / 2);
_root.map_s.txt0._y = _root.map_s.txt0._y + (dy / 2);
}
if (bcnt != 210) {
if (bcnt == 700) {
_root.bossmode = 5;
_root.gotoandplay("gameclear");
}
} else {
_root.bgm1.gotoandplay("play3");
_root.score = _root.score + 5000;
}
if (bcnt < 1200) {
bcnt++;
}
}
} else if (bcnt != 3) {
bcnt++;
} else {
bcnt = 0;
_root.bossmode = 4;
}
} else if (bcnt >= 40) {
if (bcnt != 40) {
if (bcnt != 70) {
if (bcnt != 100) {
if (bcnt != 180) {
if (bcnt >= 200) {
if (bcnt >= 240) {
move_on = 0;
_root.bgm1.gotoAndPlay("play2");
_root.map_s.bossrope0.gotoandplay("kesu");
teki_ptn = 1;
ix = 212;
jx = 8;
_root.mapx[jx] = (_root.mapx[jx].substring(0, ix) + "00") + _root.mapx[jx].substring(ix + 2);
jx++;
_root.mapx[jx] = (_root.mapx[jx].substring(0, ix) + "00") + _root.mapx[jx].substring(ix + 2);
_root.bossmode = 2;
bcnt = 0;
} else {
_root.bosshp = 40;
_root.map_s._x = _root.map_s._x + 4;
_root.map_s._y = _root.map_s._y - 2;
_root.map_s.txt0._x = _root.map_s.txt0._x - 4;
_root.map_s.txt0._y = _root.map_s.txt0._y + 2;
bcnt++;
}
} else {
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
bcnt++;
_root.se_doon.start();
}
} else {
bcnt++;
_root.se_don1.start();
obj_n = (13 * 16) + 10;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("rakka");
}
} else {
map_obj_name = "bossx";
_root.enmy_n = 0;
_root.map_s.boss0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
i = 213;
j = 9;
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) - 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).gotoandplay(1);
_root.enmy_n = 1;
_root.enmy_n0 = 0;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
bcnt++;
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ix = Math.floor(px0 / 32) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
_root.mapx[jx] = (_root.mapx[jx].substring(0, (64 * 3) + 12) + "0000") + _root.mapx[jx].substring((64 * 3) + 16);
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
} else {
_root.map_s._x = _root.map_s._x - 4;
_root.map_s._y = _root.map_s._y + 2;
_root.map_s.txt0._x = _root.map_s.txt0._x + 4;
_root.map_s.txt0._y = _root.map_s.txt0._y - 2;
bcnt++;
}
} else {
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
dxy = 1;
mx = 0;
my = 0;
if (mousemode == 1) {
mouse_kakudo = (Math.atan2(((_root._ymouse - 160) - 56) - 16, (_root._xmouse - 240) + 16) * 180) / Math.PI;
_root.flag2 = Math.floor(mouse_kakudo);
if (!(((45 + 22.5) >= mouse_kakudo) && ((45 - 22.5) < mouse_kakudo))) {
if (!(((135 + 22.5) >= mouse_kakudo) && ((135 - 22.5) < mouse_kakudo))) {
if (!(((-135 + 22.5) >= mouse_kakudo) && ((-135 - 22.5) < mouse_kakudo))) {
if (!(((-45 + 22.5) >= mouse_kakudo) && ((-45 - 22.5) < mouse_kakudo))) {
if (!(((-90 + 22.5) >= mouse_kakudo) && ((-90 - 22.5) < mouse_kakudo))) {
if (!(((0 + 22.5) >= mouse_kakudo) && ((-22.5) < mouse_kakudo))) {
if (!(((90 + 22.5) >= mouse_kakudo) && ((90 - 22.5) < mouse_kakudo))) {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
}
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
}
}
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.PGDN)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.END)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.HOME)))) {
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.PGUP)))) {
if (!Key.isDown(Key.RIGHT)) {
if (!Key.isDown(Key.LEFT)) {
if (!Key.isDown(Key.DOWN)) {
if (!Key.isDown(Key.UP)) {
tenkey = 0;
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
tenkey = 1;
mousemode = 0;
}
if (!(Key.isDown(1) || (tenkey == 1))) {
dxy = 1;
mx = 0;
my = 0;
move_on = 0;
if (arrow_kamae != -1) {
if (arrow_kamae == 1) {
this.player.gotoandstop("tatu" + pmuki);
}
} else {
this.player.gotoandstop("utu" + pmuki);
}
} else {
if (Key.isDown(1)) {
mousemode = 1;
}
if (!(((18 >= arrow_cnt) && ((11 - arw_pw) < arrow_cnt)) && (arrow_kamae != 1))) {
if (((11 - arw_pw) >= arrow_cnt) && (1 < arrow_cnt)) {
arrow_kamae = 1;
arw_pw = 0;
}
} else {
mx = 0;
my = 0;
}
if (move_on != (pmuki * arrow_kamae)) {
if (arrow_kamae != -1) {
if (arrow_kamae == 1) {
this.player.gotoandplay("tatu" + pmuki);
}
} else {
this.player.gotoandplay("utu" + pmuki);
}
move_on = pmuki * arrow_kamae;
}
}
if ((Key.isDown(77) || (Key.isDown(67))) && (_root.jump_on == 0)) {
_root.jump_on = 23;
_root.se_jump.start();
}
if ((((Key.isDown(66) || (Key.isDown(90))) && (0 < _root.sp)) && (-20 < _root.jump_on)) && (sp_on < 1)) {
sp_on = 600;
_root.se_pwup.start();
_root.sp--;
this._alpha = 100;
play_name = "bari1";
map_obj_name = "arrow" + 20;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + 20);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 0;
eval ("_root.map_s." + map_obj_name).tdy = dy * 0;
eval ("_root.map_s." + map_obj_name)._x = this._x + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + 160) + 1;
eval ("_root.map_s." + map_obj_name).chara_n = 20 + 3;
dpth = ((250001 + ((((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) - 1) * 200)) + 20) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
play_name = "bari2";
map_obj_name = "arrow" + 21;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + 21);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 0;
eval ("_root.map_s." + map_obj_name).tdy = dy * 0;
eval ("_root.map_s." + map_obj_name)._x = this._x + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + 160) - 1;
eval ("_root.map_s." + map_obj_name).chara_n = 21 + 3;
dpth = ((250001 + ((((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) + 1) * 200)) + 21) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
}
if (0 >= _root.jump_on) {
if (!((_root.jump_on < 0) && (-70 < _root.jump_on))) {
rakka1 = 0;
} else {
this.player._y = this.player._y - (_root.jump_on - 10);
_root.jump_on--;
if (_root.jump_on == -20) {
map_obj_name = "arrow" + 20;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
map_obj_name = "arrow" + 21;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
if (sp_on != 0) {
_root.se_warp1.start();
_root.map_s.player1.swapDepths(250001);
_root.map_s.player1.player.gotoandstop("tatu1");
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
sp_on = 0;
_root.map_s._x = qx;
_root.map_s._y = qy;
_root.map_s.player1._x = -32 - qx;
_root.map_s.player1._y = 56 - qy;
muteki = 150;
move_on = 0;
this._alpha = 50;
arrow_tame = 0;
arrow_cnt = 18;
this.player._y = 160;
} else {
_root.se_fall.start();
}
}
if (_root.jump_on < -50) {
_root.enmy_n0 = 0;
rakka1 = 0;
_root.jump_on = -100;
_root.tobashi = 0;
_root.gotoandplay("end");
}
}
} else {
this.player._y = this.player._y - (_root.jump_on - 12);
_root.jump_on--;
rakka1 = 1;
}
if (0 < muteki) {
_root.tobashi = 0;
muteki--;
if (muteki < 1) {
this._alpha = 100;
}
}
if (0 < _root.tobashi) {
_root.tobashi--;
_root.map_s._x = _root.map_s._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y + (((_root.my2 * _root.tobashi) * 2) / 10);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b") {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c") {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x + (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((7 * _root.tobashi) * 2) / 10);
this._x = this._x - (((7 * _root.tobashi) * 2) / 10);
this._y = this._y - (((7 * _root.tobashi) * 2) / 10);
}
} else {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x - (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((7 * _root.tobashi) * 2) / 10);
this._x = this._x + (((7 * _root.tobashi) * 2) / 10);
this._y = this._y + (((7 * _root.tobashi) * 2) / 10);
}
}
k = 0;
for ( ; k < dxy ; k++) {
_root.map_s._x = _root.map_s._x - (mx / 2);
_root.map_s._y = _root.map_s._y - (my / 2);
this._x = this._x + (mx / 2);
this._y = this._y + (my / 2);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.jump_on >= 0) {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
this.player_kage.gotoandstop(1);
if (_root.jump_on == 0) {
qx = _root.map_s._x;
qy = _root.map_s._y;
}
} else if (!((rakka1 == 0) && (_root.tobashi == 0))) {
this.player_kage.gotoandstop("kesu");
if ((_root.jump_on == 0) || (0 < _root.tobashi)) {
k = 100;
dy = _root.jump_on - 12;
_root.jump_on = -1;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths(50090 - (((ix1 + 16) - iy1) * 100));
if (!((192 < ix1) || (128 < _root.startx))) {
if (!((128 < ix1) || (64 < _root.startx))) {
if (64 < ix1) {
_root.startx = 64;
_root.starty = 6;
}
} else {
_root.startx = 128;
_root.starty = 3;
}
} else {
_root.startx = 192;
_root.starty = 4;
}
}
} else {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c")) {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
if (((207 < Math.floor(px0 / 2)) && (_root.jump_on == 0)) && (_root.bossmode == 0)) {
bcnt = 0;
_root.bossmode = 1;
_root.bgm1.gotoAndPlay("end");
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + pmuki);
}
}
if (_root.bossmode == 2) {
if (_root.bosshp < 1) {
_root.bosshp = 0;
if (_root.jump_on == 0) {
bcnt = 0;
_root.bossmode = 3;
}
}
}
if (Math.floor(px / 32) >= Math.floor(px0 / 32)) {
if (Math.floor(px0 / 32) < Math.floor(px / 32)) {
ij = 0;
for ( ; ij < (Math.floor(px / 32) - Math.floor(px0 / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) + 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
} else {
ij = 0;
for ( ; ij < (Math.floor(px0 / 32) - Math.floor(px / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) + 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) - 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
if (Math.floor(px / 2) < Math.floor(px0 / 2)) {
ij = 0;
for ( ; ij < (Math.floor(px0 / 2) - Math.floor(px / 2)) ; ij++) {
i = (Math.floor(px0 / 2) + 8) - ij;
if (i < 0) {
i = 0;
}
if (250 < i) {
i = 250;
}
j = 0;
for ( ; j < 16 ; j++) {
if (_root.mapx[j].charAt(i) != "2") {
if (_root.mapx[j].charAt(i) != "3") {
if (_root.mapx[j].charAt(i) != "9") {
if (_root.mapx[j].charAt(i) != "8") {
if (_root.mapx[j].charAt(i) == "7") {
_root.enmy_n0 = 10;
_root.enmy_n = 10;
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "0") + _root.mapx[j].substring(i + 1);
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (((i * 32) + (j * 32)) + 16) - 32;
eval ("_root.map_s." + map_obj_name)._y = ((164 - (i * 32)) + (j * 32)) + 32;
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 400;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((((i * 32) + (j * 32)) + 16) - 32) + (9 * 32);
eval ("_root.map_s." + map_obj_name)._y = (((164 - (i * 32)) + (j * 32)) + 32) - (9 * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 400;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((((i * 32) + (j * 32)) + 16) - 32) + (18 * 32);
eval ("_root.map_s." + map_obj_name)._y = ((164 - (i * 32)) + (j * 32)) + 32;
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 400;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((((i * 32) + (j * 32)) + 16) - 32) + (9 * 32);
eval ("_root.map_s." + map_obj_name)._y = (((164 - (i * 32)) + (j * 32)) + 32) + (9 * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 400;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.kago0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else {
map_obj_name = "gs1";
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.gs0.duplicateMovieClip(map_obj_name, 58000);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.bigball0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.teki0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
}
}
if (pmuki != 1) {
if (pmuki != 2) {
if (pmuki != 3) {
if (pmuki != 4) {
if (pmuki != 5) {
if (pmuki != 6) {
if (pmuki != 7) {
dx = -10 / 8;
dy = 0;
dx2 = -18;
dy2 = 5;
} else {
dx = -7 / 8;
dy = -7 / 8;
dx2 = -8;
dy2 = -13;
}
} else {
dx = 0;
dy = -10 / 8;
dx2 = 6;
dy2 = -23;
}
} else {
dx = 7 / 8;
dy = -7 / 8;
dx2 = 16;
dy2 = -5;
}
} else {
dx = 10 / 8;
dy = 0;
dx2 = 17;
dy2 = 5;
}
} else {
dx = 7 / 8;
dy = 7 / 8;
dx2 = 8;
dy2 = 18;
}
} else {
dx = 0;
dy = 10 / 8;
dx2 = -6;
dy2 = 23;
}
} else {
dx = -7 / 8;
dy = 7 / 8;
dx2 = -16;
dy2 = 15;
}
map_obj_name = "arrow" + _root.arrow_n;
if (!(((Key.isDown(78) || (Key.isDown(88))) && (_root.jump_on == 0)) && (arrow_cnt == 0))) {
if (!(((Key.isDown(78) || (Key.isDown(88))) || (0 < _root.jump_on)) && (arrow_cnt == 19))) {
if (arrow_cnt == 19) {
eval ("_root.map_s." + map_obj_name).tame = 1;
if (arrow_tame < 60) {
if (arrow_tame < 30) {
play_name = "tamaan" + pmuki;
play_name2 = "utub" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 2;
arw_pw = 0;
} else {
play_name = "tamaan1" + pmuki;
play_name2 = "utuc" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 3;
arw_pw = 4;
}
} else {
play_name = "tamaan2" + pmuki;
play_name2 = "utud" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 4;
arw_pw = 8;
}
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + dx2) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + dy2) + 160;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
_root.se_shot.start();
_root.arrow_n++;
arrow_kamae = -2;
if (12 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
arrow_cnt++;
arrow_tame++;
if (arrow_tame < 60) {
if (arrow_tame < 30) {
if (arrow_tame >= 0) {
play_name = "tamaanx" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 2;
}
} else {
play_name = "tamaanx1" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 3;
}
} else {
play_name = "tamaanx2" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 4;
}
if ((arrow_tame == 30) || (arrow_tame == 60)) {
omuki = 0;
}
if (pmuki != omuki) {
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
}
omuki = pmuki;
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 0)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 0)) + this.player._y;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
if (_root.jump_on < 0) {
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
if (arrow_tame < 0) {
_root.arrow_n++;
arrow_kamae = 1;
this.player.gotoandplay("tatu" + pmuki);
if (12 < _root.arrow_n) {
_root.arrow_n = 1;
}
arrow_cnt = 17;
}
}
} else {
play_name = "tamaanx" + pmuki;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 0)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 0)) + 160;
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n + 3;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
arrow_cnt = 20;
arrow_tame = 0;
arrow_kamae = -1;
omuki = pmuki;
}
_root.map_s.txt0._x = this._x;
_root.map_s.txt0._y = this._y;
_root.map_s.txt0.bosshpbar._xscale = 200 * _root.bosshp;
px = px0;
py = py0;
_root.px = px;
_root.py = py;
_root.flag1 = _root.bg1._x;
loop_cnt++;
if (500 < loop_cnt) {
loop_cnt = 0;
}
if (0 < arrow_cnt) {
arrow_cnt--;
}
if (arrow_cnt == 18) {
this.player.gotoandplay(play_name2);
}
if (arrow_cnt == 1) {
arrow_kamae = 1;
}
if (arrow_cnt < 0) {
arrow_cnt++;
}
if (0 >= sp_on) {
if (sp_on < 0) {
sp_on = 0;
muteki = 0;
}
} else {
map_obj_name = "arrow" + 20;
eval ("_root.map_s." + map_obj_name)._x = this._x + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + this.player._y) + 1;
dpth = ((250001 + ((((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) + 1) * 200)) + 20) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
map_obj_name = "arrow" + 21;
eval ("_root.map_s." + map_obj_name)._x = this._x + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + this.player._y) - 1;
dpth = ((250001 + ((((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) - 1) * 200)) + 20) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
sp_on--;
muteki = 10;
if (sp_on == 0) {
muteki = 0;
}
}
if (sp_on == 0) {
map_obj_name = "arrow" + 20;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
map_obj_name = "arrow" + 21;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
_root.map_s.txt0.sptxt.gsbar._xscale = 30 * Math.floor(sp_on / 30);
_root.jikan--;
if ((_root.jikan < 0) && (timeup_on == 0)) {
_root.jikan = 0;
if (_root.jump_on == 0) {
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
_root.jikan = 0;
timeup_on = 90;
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
this.player.gotoandplay("timeup");
}
}
}
}
}
Instance of Symbol 1250 MovieClip [txt_3] "txt0" in Symbol 1202 MovieClip [sp_map3] Frame 6
onClipEvent (load) {
this.swapDepths(600000);
}
Instance of Symbol 96 MovieClip [ball2_obj] "ball0" in Symbol 1202 MovieClip [sp_map3] Frame 7
onClipEvent (load) {
otiru = 0;
muki2 = 0;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os3.ball0) && (this != _root.map_s.ball0))) {
} else {
if (_root.homsp != 1) {
this.gotoandstop(play_name);
muki2 = 100;
} else {
this._x = this._x + tdx;
this._y = this._y + tdy;
if (muki2 == 100) {
this.gotoandplay(play_name);
muki2 = 0;
}
}
px0 = (((this._x - this._y) + 160) - (6 - 15)) / 32;
py0 = (((this._x + this._y) - 160) + (6 + 15)) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (otiru != 0) {
this._y = this._y + ((60 - otiru) * _root.homsp);
otiru = otiru - _root.homsp;
if (otiru == 0) {
this.removeMovieClip();
}
} else {
dpth = (250100 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == 0) {
otiru = 60;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths((50020 - (((ix1 + 16) - iy1) * 100)) + _root.rakka_ball_n);
_root.rakka_ball_n++;
if (66 < _root.rakka_ball_n) {
_root.rakka_ball_n = 0;
}
}
}
if ((((Math.abs((this._y - _root.map_s.player1._y) - 160) < 10) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 10)) && (_root.jump_on == 0)) && (otiru == 0)) {
_root.flag1 = 666;
_root.mx2 = 4 * tdx;
_root.my2 = 4 * tdy;
_root.tobashi = 10;
_root.se_damage.start();
}
if (_root.miss_on == -20) {
this.removeMovieClip();
}
if (((640 < Math.abs((this._y - _root.map_s.player1._y) - 160)) || (960 < Math.abs((this._x - _root.map_s.player1._x) - 240))) || (_root.bossmode == 3)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 1204 MovieClip [teki3_obj] "teki0" in Symbol 1202 MovieClip [sp_map3] Frame 8
onClipEvent (load) {
tamakan = 0;
dx = 0;
dy = 0;
muki = 1;
muki2 = 0;
ddx = 0;
ddy = 0;
otiru = 0;
tatutest = "tatu";
tekihp = 4;
fly = 0;
mode = 1;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os3.teki0) && (this != _root.map_s.teki0))) {
} else if (!((0 < tekihp) && (_root.bossmode < 3))) {
tekihp--;
if (tekihp < -18) {
_root.enmy_n0--;
this.removeMovieClip();
}
} else {
if (otiru < 99) {
dpth = (250050 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
}
if (otiru != 0) {
if (!((30 >= otiru) && (_root.homsp == 1))) {
if (!((130 < otiru) && (_root.homsp == 1))) {
if (_root.homsp == 1) {
this._y = this._y + (130 - otiru);
otiru--;
if (otiru == 100) {
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "2") + _root.mapx[njx].substring(nix + 1);
_root.enmy_n0--;
this.removeMovieClip();
}
}
} else {
if (muki != 7) {
if (muki != 1) {
if (muki != 3) {
ddx = this._x - 2;
ddy = this._y + 2;
} else {
ddx = this._x - 2;
ddy = this._y - 12;
}
} else {
ddx = this._x + 34;
ddy = this._y - 12;
}
} else {
ddx = this._x + 34;
ddy = this._y + 2;
}
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (!((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == 0) || (otiru == 131))) {
this._x = this._x + dx;
this._y = this._y + dy;
otiru--;
} else {
otiru = 130;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths((50020 - (((ix1 + 16) - iy1) * 100)) + _root.rakka_ball_n);
_root.rakka_ball_n++;
if (66 < _root.rakka_ball_n) {
_root.rakka_ball_n = 0;
}
}
}
} else {
this._x = this._x + ((dx / 6) * Math.min(10, otiru - 1));
this._y = this._y + ((dy / 6) * Math.min(10, otiru - 1));
otiru--;
if (muki != 3) {
if (muki != 5) {
if (muki != 7) {
ddx = this._x - 2;
ddy = this._y + 2;
} else {
ddx = this._x - 2;
ddy = this._y - 12;
}
} else {
ddx = this._x + 34;
ddy = this._y - 12;
}
} else {
ddx = this._x + 34;
ddy = this._y + 2;
}
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c")) {
this._x = this._x - ((dx / 6) * Math.min(10, otiru - 1));
this._y = this._y - ((dy / 6) * Math.min(10, otiru - 1));
}
}
}
} else {
if (_root.bossmode != 2) {
kakudo = (Math.atan2((this._y - _root.map_s.player1._y) - 160, (this._x - _root.map_s.player1._x) - 240) * 180) / Math.PI;
} else {
kakudo = (Math.atan2(this._y - _root.map_s.bossx._y, this._x - _root.map_s.bossx._x) * 180) / Math.PI;
}
if (!(((Math.abs((this._y - _root.map_s.player1._y) - 160) < 128) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 128)) || (_root.bossmode == 2))) {
mode = 1;
} else {
mode = 2;
}
if (_root.homsp != 1) {
tatutest = "tatu" + muki;
muki2 = 100;
this.gotoandstop(tatutest);
} else {
if (muki2 == 100) {
tatutest = "tatu" + muki;
this.gotoandplay(tatutest);
}
muki2 = Math.floor(Math.random() * 64);
if (mode != 1) {
if (muki2 < 2) {
if (!((kakudo >= 0) && (kakudo < 90))) {
if (kakudo < 90) {
if (!((kakudo < 0) && (-90 < kakudo))) {
muki = 3;
this.gotoandplay("tatu3");
} else {
muki = 1;
this.gotoandplay("tatu1");
}
} else {
muki = 5;
this.gotoandplay("tatu5");
}
} else {
muki = 7;
this.gotoandplay("tatu7");
}
}
} else if (muki2 < 3) {
muki = muki - 2;
if (muki < 0) {
muki = 7;
}
tatutest = "tatu" + muki;
this.gotoandplay(tatutest);
}
}
if (muki != 3) {
if (muki != 5) {
if (muki != 7) {
dx = -7 / 8;
dy = 7 / 8;
ddx = this._x - 2;
ddy = this._y + 2;
} else {
dx = -7 / 8;
dy = -7 / 8;
ddx = this._x - 2;
ddy = this._y - 12;
}
} else {
dx = 7 / 8;
dy = -7 / 8;
ddx = this._x + 34;
ddy = this._y - 12;
}
} else {
dx = 7 / 8;
dy = 7 / 8;
ddx = this._x + 34;
ddy = this._y + 2;
}
dx = dx * mode;
dy = dy * mode;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (!(((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "0") && (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b")) && (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "c"))) {
this.kage.gotoandplay("tatu");
} else {
this.kage.gotoandplay("kesu");
}
if (!((py0 != 0) && (py0 != 31))) {
muki = muki - 2;
if (muki < 0) {
muki = 7;
}
tatutest = "tatu" + muki;
if (_root.homsp == 1) {
this.gotoandplay(tatutest);
}
} else {
this._x = this._x + (dx * _root.homsp);
this._y = this._y + (dy * _root.homsp);
}
if ((((Math.abs((this._y - _root.map_s.player1._y) - 160) < 10) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 10)) && (_root.jump_on == 0)) && (otiru == 0)) {
_root.mx2 = 8 * dx;
_root.my2 = 8 * dy;
_root.tobashi = 10;
_root.se_damage.start();
}
i = 1;
for ( ; i < 31 ; i++) {
if (((Math.abs(this._y - eval ("_root.map_s.arrow" + i)._y) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2))) && (Math.abs(this._x - eval ("_root.map_s.arrow" + i)._x) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2)))) && ((_root.jump_on == 0) || (eval ("_root.map_s.arrow" + i).tame != 0))) {
if (_root.charan != 3) {
if (_root.charan != 4) {
dx = eval ("_root.map_s.arrow" + i).tdx;
dy = eval ("_root.map_s.arrow" + i).tdy;
_root.se_tekidamage.start();
tekihp = tekihp - eval ("_root.map_s.arrow" + i).pw;
otiru = 8 + (eval ("_root.map_s.arrow" + i).pw * 2);
eval ("_root.map_s.arrow" + i).removeMovieClip();
} else {
_root.se_tekidamage.start();
if (!((i == 20) && (_root.jump_on == 0))) {
if (i < 20) {
dx = eval ("_root.map_s.arrow" + i).tdx;
dy = eval ("_root.map_s.arrow" + i).tdy;
tekihp = tekihp - eval ("_root.map_s.arrow" + i).pw;
otiru = 8 + (eval ("_root.map_s.arrow" + i).pw * 2);
if (eval ("_root.map_s.arrow" + i).tame == 0) {
eval ("_root.map_s.arrow" + i).removeMovieClip();
_root.map_s.player1.arrow_tame = -100;
}
}
} else {
kakudo2 = (Math.atan2(this._y - eval ("_root.map_s.arrow" + i)._y, this._x - eval ("_root.map_s.arrow" + i)._x) * 180) / Math.PI;
dx = Math.cos((kakudo2 * Math.PI) / 180) * 4;
dy = Math.sin((kakudo2 * Math.PI) / 180) * 4;
otiru = 8 + (2 * 2);
_root.map_s.player1.sp_on = _root.map_s.player1.sp_on - 30;
}
}
} else if (i >= 15) {
if (1 < eval ("_root.map_s.arrow" + i).pw) {
if (0 < tekihp) {
tekihp = tekihp - 2;
}
otiru = 8 + (2 * 2);
_root.se_tekidamage.start();
kakudo2 = (Math.atan2(this._y - eval ("_root.map_s.arrow" + i)._y, this._x - eval ("_root.map_s.arrow" + i)._x) * 180) / Math.PI;
dx = Math.cos((kakudo2 * Math.PI) / 180) * (4 + (eval ("_root.map_s.arrow" + i).pw / 3));
dy = Math.sin((kakudo2 * Math.PI) / 180) * (4 + (eval ("_root.map_s.arrow" + i).pw / 3));
}
} else if (eval ("_root.map_s.arrow" + i).tame < 100) {
eval ("_root.map_s.arrow" + i).tame = 250;
}
if (tekihp < 1) {
tekihp = -1;
_root.score = _root.score + 100;
this.gotoandplay("tatu0");
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "2") + _root.mapx[njx].substring(nix + 1);
}
}
}
if ((_root.bossmode * _root.homsp) == 2) {
kakudo = (Math.atan2(this._y - _root.map_s.bossx._y, this._x - _root.map_s.bossx._x) * 180) / Math.PI;
if ((Math.abs(this._y - _root.map_s.bossx._y) < 32) && (Math.abs(this._x - _root.map_s.bossx._x) < 32)) {
if (!((kakudo >= 0) && (kakudo < 90))) {
if (kakudo < 90) {
if (!((kakudo < 0) && (-90 < kakudo))) {
dx = -6;
dy = -6;
} else {
dx = 6;
dy = -6;
}
} else {
dx = -6;
dy = 6;
}
} else {
dx = 6;
dy = 6;
}
otiru = 10;
muki = muki - 2;
if (muki < 0) {
muki = 7;
}
tatutest = "tatu" + muki;
this.gotoandplay(tatutest);
}
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (!(((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "0") && (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b")) && (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "c"))) {
this.kage.gotoandplay("kesu");
fly = 1;
} else {
this.kage.gotoandplay("tatu");
fly = 0;
}
if ((((50 < (tamakan * _root.homsp)) && (Math.floor(Math.random() * 64) == 0)) && (Math.abs(Math.floor(px0) - Math.floor(px)) < 16)) && (fly == 0)) {
kakudo = (Math.atan2((this._y - _root.map_s.player1._y) - 160, (this._x - _root.map_s.player1._x) - 240) * 180) / Math.PI;
tamakan = 0;
map_obj_name = "ball" + _root.eball_n;
_root.map_s.ball0.duplicateMovieClip(map_obj_name, 50550 + _root.eball_n);
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
play_name = "tatu4";
} else {
play_name = "tatu5";
}
} else {
play_name = "tatu6";
}
} else {
play_name = "tatu7";
}
} else {
play_name = "tatu3";
}
} else {
play_name = "tatu2";
}
} else {
play_name = "tatu1";
}
} else {
play_name = "tatu8";
}
dx = ((Math.cos((kakudo * Math.PI) / 180) * -1) * 10) / 8;
dy = ((Math.sin((kakudo * Math.PI) / 180) * -1) * 10) / 8;
eval ("_root.map_s." + map_obj_name)._x = this._x + (dx * 10);
eval ("_root.map_s." + map_obj_name)._y = this._y + (dy * 10);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 2;
eval ("_root.map_s." + map_obj_name).tdy = dy * 2;
eval ("_root.map_s." + map_obj_name).play_name = play_name;
eval ("_root.map_s." + map_obj_name).chara_n = _root.eball_n;
_root.eball_n++;
if (100 < _root.eball_n) {
_root.eball_n = 1;
}
}
tamakan = tamakan + _root.homsp;
}
if (_root.miss_on == -20) {
_root.enmy_n0--;
this.removeMovieClip();
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if ((12 < (Math.floor(px0 / 2) - Math.floor(px / 2))) || (6 < (Math.floor(px / 2) - Math.floor(px0 / 2)))) {
if (otiru != 11) {
_root.enmy_n0--;
}
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "2") + _root.mapx[njx].substring(nix + 1);
this.removeMovieClip();
}
}
}
Instance of Symbol 220 MovieClip [kball_obj] "bigball0" in Symbol 1202 MovieClip [sp_map3] Frame 9
onClipEvent (load) {
tekihp = 1;
dpth = 0;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os3.bigball0) && (this != _root.map_s.bigball0))) {
} else {
dpth = (250050 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
if (0 >= tekihp) {
tekihp--;
if (tekihp != -8) {
if (tekihp != -2) {
if (tekihp < -30) {
_root.enmy_n0--;
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "3") + _root.mapx[njx].substring(nix + 1);
this.removeMovieClip();
}
} else {
this.gotoandplay("tatu0");
}
} else {
kakudo = (Math.atan2((this._y - _root.map_s.player1._y) - 160, (this._x - _root.map_s.player1._x) - 240) * 180) / Math.PI;
kakudo = kakudo - 22.5;
i = 0;
for ( ; i < 3 ; i++) {
map_obj_name = "ball" + _root.eball_n;
_root.map_s.ball0.duplicateMovieClip(map_obj_name, 50550 + _root.eball_n);
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
play_name = "tatu4";
} else {
play_name = "tatu5";
}
} else {
play_name = "tatu6";
}
} else {
play_name = "tatu7";
}
} else {
play_name = "tatu3";
}
} else {
play_name = "tatu2";
}
} else {
play_name = "tatu1";
}
} else {
play_name = "tatu8";
}
dx = ((Math.cos((kakudo * Math.PI) / 180) * -1) * 10) / 8;
dy = ((Math.sin((kakudo * Math.PI) / 180) * -1) * 10) / 8;
eval ("_root.map_s." + map_obj_name)._x = this._x + (dx * 10);
eval ("_root.map_s." + map_obj_name)._y = this._y + (dy * 10);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).play_name = play_name;
eval ("_root.map_s." + map_obj_name).tdx = dx * 2;
eval ("_root.map_s." + map_obj_name).tdy = dy * 2;
eval ("_root.map_s." + map_obj_name).chara_n = _root.eball_n;
_root.eball_n++;
if (100 < _root.eball_n) {
_root.eball_n = 1;
}
kakudo = kakudo + 22.5;
}
}
} else {
if (_root.homsp != 1) {
this.gotoandstop("tatu");
muki2 = 100;
} else if (muki2 == 100) {
this.gotoandplay("tatu");
muki2 = 0;
}
i = 1;
for ( ; i < 31 ; i++) {
if (((Math.abs(this._y - eval ("_root.map_s.arrow" + i)._y) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2))) && (Math.abs(this._x - eval ("_root.map_s.arrow" + i)._x) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2)))) && ((_root.jump_on == 0) || (eval ("_root.map_s.arrow" + i).tame != 0))) {
if (eval ("_root.map_s.arrow" + i).tame == 0) {
}
if (_root.charan != 3) {
tekihp = tekihp - eval ("_root.map_s.arrow" + i).pw;
eval ("_root.map_s.arrow" + i).removeMovieClip();
} else if (i >= 15) {
if (1 < eval ("_root.map_s.arrow" + i).pw) {
if (0 < tekihp) {
tekihp = tekihp - 2;
}
otiru = 8 + (2 * 2);
_root.se_tekidamage.start();
kakudo2 = (Math.atan2(this._y - eval ("_root.map_s.arrow" + i)._y, this._x - eval ("_root.map_s.arrow" + i)._x) * 180) / Math.PI;
dx = Math.cos((kakudo2 * Math.PI) / 180) * (4 + (eval ("_root.map_s.arrow" + i).pw / 3));
dy = Math.sin((kakudo2 * Math.PI) / 180) * (4 + (eval ("_root.map_s.arrow" + i).pw / 3));
}
} else if (eval ("_root.map_s.arrow" + i).tame < 100) {
eval ("_root.map_s.arrow" + i).tame = 250;
}
if ((tekihp < 1) && (_root.homsp == 1)) {
tekihp = -1;
_root.score = _root.score + 100;
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "2") + _root.mapx[njx].substring(nix + 1);
this.gotoandplay("tatu0");
_root.se_bom.start();
}
}
}
if ((((Math.abs((this._y - _root.map_s.player1._y) - 160) < 128) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 128)) && (tame == 0)) || (60 < tame)) {
if (_root.homsp == 1) {
tekihp = -1;
_root.se_bom.start();
}
}
if (25 < tame) {
tame++;
}
}
if (_root.miss_on == -20) {
_root.enmy_n0--;
this.removeMovieClip();
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if ((12 < (Math.floor(px0 / 2) - Math.floor(px / 2))) || (6 < (Math.floor(px / 2) - Math.floor(px0 / 2)))) {
if (otiru != 11) {
_root.enmy_n0--;
}
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "3") + _root.mapx[njx].substring(nix + 1);
this.removeMovieClip();
}
}
}
Instance of Symbol 1236 MovieClip [boss3_obj] "boss0" in Symbol 1202 MovieClip [sp_map3] Frame 10
onClipEvent (load) {
tame = 0;
tekihp = 40;
dp1 = 0;
mode = 7;
zako_n = 0;
}
onClipEvent (enterFrame) {
if (!(((this != _root.map_os3.boss0) && (this != _root.map_s.boss0)) && (_root.bossmode == 2))) {
} else {
dpth = 250048 + (((this._y - _root.map_s.player1._y) - 160) * 200);
this.swapDepths(dpth);
if (0 >= _root.bosshp) {
} else {
if (tame != 0) {
if (tame != 60) {
if (tame != 30) {
if (_root.homsp != 1) {
muki2 = this._currentframe;
this.gotoandstop(muki2);
muki2 = 100;
} else {
if (muki2 == 100) {
muki2 = this._currentframe;
this.gotoandplay(muki2);
muki2 = 0;
}
tame--;
}
} else {
ix = px0 - 1;
jx = py0 - 1;
_root.mapx[jx] = (_root.mapx[jx].substring(0, ix) + "00") + _root.mapx[jx].substring(ix + 2);
jx++;
_root.mapx[jx] = (_root.mapx[jx].substring(0, ix) + "00") + _root.mapx[jx].substring(ix + 2);
_root.se_don1.start();
ix = px0 - 1;
jx = py0 - 1;
obj_n = (13 * 16) + Math.floor(((ix - 208) / 2) + (4 * ((jx - 4) / 2)));
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("rakka");
px0 = Math.floor((5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32)) / 2);
py0 = Math.floor((8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32)) / 2);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (250 < px0) {
px0 = 250;
}
if (15 < py0) {
py0 = 15;
}
if ((_root.jump_on == 0) && (_root.tobashi == 0)) {
if (_root.mapx[py0].charAt(px0) == "0") {
_root.mx2 = 0;
_root.my2 = 0;
_root.tobashi = 3;
}
}
tame = 0;
}
} else {
px0 = Math.floor((5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32)) / 2);
py0 = Math.floor((8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32)) / 2);
if (px0 < 208) {
px0 = 208;
}
if (py0 < 4) {
py0 = 4;
}
if (215 < px0) {
px0 = 215;
}
if (11 < py0) {
py0 = 11;
}
if (_root.mapx[py0].charAt(px0) != "0") {
px0 = (Math.floor(px0 / 2) * 2) + 1;
py0 = (Math.floor(py0 / 2) * 2) + 1;
this._x = ((px0 * 32) + (py0 * 32)) - 16;
this._y = (164 - (px0 * 32)) + (py0 * 32);
this.gotoandplay(1);
tame--;
}
}
} else {
if (_root.homsp != 1) {
muki2 = this._currentframe;
this.gotoandstop(muki2);
muki2 = 100;
} else {
if (muki2 == 100) {
muki2 = this._currentframe;
this.gotoandplay(muki2);
muki2 = 0;
}
if (mode >= (_root.bosshp / 5)) {
this.gotoandplay("tatu9");
mode--;
tame = 120;
}
}
i = 1;
for ( ; i < 31 ; i++) {
if (((Math.abs(this._y - eval ("_root.map_s.arrow" + i)._y) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2))) && (Math.abs(this._x - eval ("_root.map_s.arrow" + i)._x) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2)))) && ((_root.jump_on == 0) || (eval ("_root.map_s.arrow" + i).tame != 0))) {
if (_root.charan != 3) {
if (_root.charan != 4) {
_root.se_tekidamage.start();
_root.bosshp = _root.bosshp - eval ("_root.map_s.arrow" + i).pw;
this.gotoandplay("tatu2");
eval ("_root.map_s.arrow" + i).removeMovieClip();
} else {
_root.se_tekidamage.start();
if (!((i == 20) && (_root.jump_on == 0))) {
if ((i < 20) && (eval ("_root.map_s.arrow" + i).bhit == 0)) {
_root.se_tekidamage.start();
_root.bosshp = _root.bosshp - eval ("_root.map_s.arrow" + i).pw;
this.gotoandplay("tatu2");
eval ("_root.map_s.arrow" + i).bhit = 1;
if (eval ("_root.map_s.arrow" + i).tame == 0) {
eval ("_root.map_s.arrow" + i).removeMovieClip();
_root.map_s.player1.arrow_tame = -100;
}
}
} else {
_root.map_s.player1.sp_on = _root.map_s.player1.sp_on - 30;
}
}
} else if (i >= 15) {
if ((1 < eval ("_root.map_s.arrow" + i).pw) && (eval ("_root.map_s.arrow" + i).bhit == 0)) {
if (0 < _root.bosshp) {
_root.bosshp = _root.bosshp - 2;
}
eval ("_root.map_s.arrow" + i).bhit = 1;
_root.se_tekidamage.start();
this.gotoandplay("tatu2");
}
} else if (eval ("_root.map_s.arrow" + i).tame < 100) {
eval ("_root.map_s.arrow" + i).tame = 250;
}
}
}
}
if (((_root.enmy_n0 < 4) && (_root.jump_on == 0)) && (_root.homsp == 1)) {
if (_root.enmy_n0 < 0) {
_root.enmy_n0 = 0;
}
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.teki0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
if (zako_n != 0) {
if (zako_n != 1) {
if (zako_n != 2) {
i = 216;
j = 3;
zako_n = 0;
} else {
i = 216;
j = 12;
zako_n++;
}
} else {
i = 207;
j = 12;
zako_n++;
}
} else {
i = 207;
j = 3;
zako_n++;
}
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 1;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
if (_root.miss_on == -20) {
_root.enmy_n0--;
this.removeMovieClip();
}
}
}
Instance of Symbol 36 MovieClip [gs_obj] "gs0" in Symbol 1202 MovieClip [sp_map3] Frame 11
onClipEvent (load) {
tekihp = 1;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os3.gs0) && (this != _root.map_s.gs0))) {
} else {
if (((Math.abs((this._y - _root.map_s.player1._y) - 160) < 10) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 10)) && (_root.jump_on == 0)) {
_root.sp = _root.sp + 1;
_root.se_get.start();
this.removeMovieClip();
}
dpth = (250049 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
if ((_root.miss_on == -20) || (_root.bossmode != 0)) {
this.removeMovieClip();
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if ((12 < (Math.floor(px0 / 2) - Math.floor(px / 2))) || (6 < (Math.floor(px / 2) - Math.floor(px0 / 2)))) {
this.removeMovieClip();
}
}
}
Instance of Symbol 212 MovieClip [arrow_obj] "arrow0" in Symbol 1202 MovieClip [sp_map3] Frame 12
onClipEvent (load) {
tame = 0;
pw = 1;
bhit = 0;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os3.arrow0) && (this != _root.map_s.arrow0))) {
} else {
if (tame != 0) {
this._x = this._x + tdx;
this._y = this._y + tdy;
dpth = (250001 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
px0 = (((this._x - this._y) + 160) - (6 - 15)) / 32;
py0 = (((this._x + this._y) - 160) + (6 + 15)) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (15 < py0) {
py0 = 15;
}
if ((320 < Math.abs((this._y - _root.map_s.player1._y) - 160)) || (480 < Math.abs((this._x - _root.map_s.player1._x) - 240))) {
if (_root.bossmode != 4) {
this.removeMovieClip();
}
}
if (_root.charan != 3) {
if (_root.charan == 4) {
tame++;
if (400 >= tame) {
if (!((tame == (10 * (pw - 1))) || (200 < tame))) {
if (tame >= ((100 + (((pw - 1) * 4) / 3)) + 4)) {
this.removeMovieClip();
}
} else {
tdx = 0;
tdy = 0;
tame = 402;
}
} else {
this.removeMovieClip();
}
if (3 < _root.bossmode) {
dpth = (250001 + (180 * 200)) + chara_n;
this.swapDepths(dpth);
}
}
} else {
tame++;
if (400 >= tame) {
if (!((tame == (10 * pw)) || (200 < tame))) {
if (tame >= ((100 + ((pw * 4) / 3)) + 4)) {
this.removeMovieClip();
}
} else {
tdx = 0;
tdy = 0;
if (_root.homsp != 1) {
if (3 < pw) {
pw = 3;
}
play_name = "tamamh" + pw;
this.gotoandstop(play_name);
tame = 252;
tame--;
} else {
map_obj_name = "arrow" + ((chara_n - 3) + 15);
_root.se_bom.start();
play_name = "tamamh" + (10 + pw);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + ((chara_n - 3) + 15));
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
eval ("_root.map_s." + map_obj_name)._x = this._x;
eval ("_root.map_s." + map_obj_name)._y = this._y;
eval ("_root.map_s." + map_obj_name).chara_n = chara_n + 10;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + chara_n) + 10;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
tame = 402;
}
}
} else {
eval ("_root.map_s." + map_obj_name).tame = 100;
eval ("_root.map_s." + map_obj_name).pw = 3 * pw;
this.removeMovieClip();
}
if (3 < _root.bossmode) {
dpth = (250001 + (180 * 200)) + chara_n;
this.swapDepths(dpth);
}
}
}
if ((_root.miss_on == -20) || (_root.bossmode == 3)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 1218 MovieClip [kago_obj] "kago0" in Symbol 1202 MovieClip [sp_map3] Frame 13
onClipEvent (load) {
pw = 1;
muki2 = 0;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os3.kago0) && (this != _root.map_s.kago0))) {
} else {
dpth = (250050 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
if (tame >= 300) {
this.gotoandplay("m3");
} else {
if (_root.homsp != 1) {
muki2 = this._currentframe;
this.gotoandstop(muki2);
muki2 = 100;
} else {
if (tame != 60) {
if (tame != 150) {
if (tame == 75) {
_root.se_don1.start();
kakudo = (Math.atan2((this._y - _root.map_s.player1._y) - 160, (this._x - _root.map_s.player1._x) - 240) * 180) / Math.PI;
kakudo = kakudo - 22.5;
i = 0;
for ( ; i < 3 ; i++) {
map_obj_name = "ball" + _root.eball_n;
_root.map_s.ball0.duplicateMovieClip(map_obj_name, 50550 + _root.eball_n);
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
play_name = "tatu4";
} else {
play_name = "tatu5";
}
} else {
play_name = "tatu6";
}
} else {
play_name = "tatu7";
}
} else {
play_name = "tatu3";
}
} else {
play_name = "tatu2";
}
} else {
play_name = "tatu1";
}
} else {
play_name = "tatu8";
}
dx = ((Math.cos((kakudo * Math.PI) / 180) * -1) * 10) / 8;
dy = ((Math.sin((kakudo * Math.PI) / 180) * -1) * 10) / 8;
eval ("_root.map_s." + map_obj_name)._x = this._x + (dx * 10);
eval ("_root.map_s." + map_obj_name)._y = this._y + (dy * 10);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 2;
eval ("_root.map_s." + map_obj_name).tdy = dy * 2;
eval ("_root.map_s." + map_obj_name).play_name = play_name;
eval ("_root.map_s." + map_obj_name).chara_n = _root.eball_n;
_root.eball_n++;
if (100 < _root.eball_n) {
_root.eball_n = 1;
}
kakudo = kakudo + 22.5;
}
}
} else {
this.gotoandplay("m2");
}
} else {
this.gotoandplay("m");
}
if ((((Math.abs((this._y - _root.map_s.player1._y) - 160) < 10) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 10)) && (_root.jump_on == 0)) && ((tame >= 75) && (tame < 150))) {
kakudo = (Math.atan2((this._y - _root.map_s.player1._y) - 160, (this._x - _root.map_s.player1._x) - 240) * 180) / Math.PI;
dx = ((Math.cos((kakudo * Math.PI) / 180) * -1) * 10) / 8;
dy = ((Math.sin((kakudo * Math.PI) / 180) * -1) * 10) / 8;
_root.mx2 = 8 * dx;
_root.my2 = 8 * dy;
_root.tobashi = 10;
_root.se_damage.start();
}
tame++;
if (210 < tame) {
tame = 0;
}
if (muki2 == 100) {
muki2 = this._currentframe;
this.gotoandplay(muki2);
muki2 = 0;
}
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if ((12 < (Math.floor(px0 / 2) - Math.floor(px / 2))) || (6 < (Math.floor(px / 2) - Math.floor(px0 / 2)))) {
if (otiru != 11) {
_root.enmy_n0--;
}
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "2") + _root.mapx[njx].substring(nix + 1);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 1480 MovieClip [gun1] "gun0" in Symbol 1202 MovieClip [sp_map3] Frame 14
onClipEvent (load) {
tekihp = 0;
omuki = 0;
}
onClipEvent (enterFrame) {
if ((this != _root.map_os3.gun0) && (this != _root.map_s.gun0)) {
}
}
Symbol 1202 MovieClip [sp_map3] Frame 15
stop();
Instance of Symbol 104 MovieClip [sp_character1] "player0" in Symbol 1012 MovieClip [sp_map2] Frame 2
onClipEvent (load) {
px0 = 0;
py0 = 0;
px = 5.5;
py = 8.5;
qx = 0;
qy = 0;
rakka1 = 0;
teki_ptn = 0;
loop_cnt = 0;
pmuki = 5;
arrow_cnt = 0;
mouse_kakudo = 0;
move_on = 0;
teki_ran = 0;
arrow_tame = 0;
arrow_on = 0;
timeup_on = 0;
arrow_kamae = 1;
sp_on = 0;
muteki = 0;
bcnt = 0;
}
onClipEvent (enterFrame) {
if (((_root.charan == 1) && (this != _root.map_os2.player0)) && (this != _root.map_s.player0)) {
if (!(((timeup_on == 0) && (_root.bossmode != 1)) && (_root.bossmode < 3))) {
if (_root.bossmode != 1) {
if (_root.bossmode != 3) {
if (_root.bossmode != 4) {
if (0 < timeup_on) {
_root.jikan = 0;
timeup_on--;
if (timeup_on == 1) {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
_root.gotoandplay("end");
}
}
} else {
if (bcnt != 0) {
if (bcnt != 120) {
if (bcnt != 121) {
if (bcnt != 125) {
if (bcnt != 127) {
if (bcnt != 130) {
if (bcnt != 135) {
if (bcnt != 165) {
if (bcnt != 169) {
if (bcnt != 171) {
if (bcnt != 174) {
if (bcnt == 179) {
map_obj_name = "arrow100";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
_root.map_s.bossx.gotoandplay("tatu0");
_root.se_baku.start();
}
} else {
map_obj_name = "arrow99";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
} else {
map_obj_name = "arrow98";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
} else {
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
} else {
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
} else {
map_obj_name = "arrow100";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
_root.se_shot.start();
}
} else {
map_obj_name = "arrow99";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
_root.se_shot.start();
}
} else {
map_obj_name = "arrow98";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
_root.se_shot.start();
}
} else {
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
_root.se_shot.start();
}
} else {
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
_root.se_shot.start();
}
} else {
map_obj_name = "arrow96";
map_obj_name2 = "arrow97";
map_obj_name3 = "arrow98";
map_obj_name4 = "arrow99";
map_obj_name5 = "arrow100";
_root.arrow_n = 1;
if (!((4 < pmuki) || (pmuki == 1))) {
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 55100 + _root.arrow_n);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name2, (55100 + _root.arrow_n) + 1);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name3, (55100 + _root.arrow_n) + 2);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name4, (55100 + _root.arrow_n) + 3);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name5, (55100 + _root.arrow_n) + 4);
} else {
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name2, (54900 + _root.arrow_n) + 1);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name3, (54900 + _root.arrow_n) + 2);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name4, (54900 + _root.arrow_n) + 3);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name5, (54900 + _root.arrow_n) + 4);
}
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + 160;
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name2).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name2)._x = ((this._x + (dx * 12)) + 240) + 4;
eval ("_root.map_s." + map_obj_name2)._y = ((this._y + (dy * 12)) + 160) + 4;
eval ("_root.map_s." + map_obj_name2).pw = 4;
eval ("_root.map_s." + map_obj_name3).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name3)._x = ((this._x + (dx * 12)) + 240) - 4;
eval ("_root.map_s." + map_obj_name3)._y = ((this._y + (dy * 12)) + 160) + 4;
eval ("_root.map_s." + map_obj_name3).pw = 4;
eval ("_root.map_s." + map_obj_name4).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name4)._x = ((this._x + (dx * 12)) + 240) + 4;
eval ("_root.map_s." + map_obj_name4)._y = ((this._y + (dy * 12)) + 160) - 4;
eval ("_root.map_s." + map_obj_name4).pw = 4;
eval ("_root.map_s." + map_obj_name5).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name5)._x = ((this._x + (dx * 12)) + 240) - 4;
eval ("_root.map_s." + map_obj_name5)._y = ((this._y + (dy * 12)) + 160) - 4;
eval ("_root.map_s." + map_obj_name5).pw = 4;
eval ("_root.map_s." + map_obj_name).chara_n = 3;
eval ("_root.map_s." + map_obj_name2).chara_n = 4;
eval ("_root.map_s." + map_obj_name3).chara_n = 5;
eval ("_root.map_s." + map_obj_name4).chara_n = 6;
eval ("_root.map_s." + map_obj_name5).chara_n = 7;
_root.arrow_n++;
if (10 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
this._alpha = 100;
_root.map_s.txt0.bossname.gotoandplay("siro");
_root.se_pwup.start();
_root.map_s.txt0.bosshpbar._xscale = 0;
kakudo = (Math.atan2(((this._y + 160) - _root.map_s.bossx._y) + 16, (((this._x + 240) - _root.map_s.bossx._x) - 16) + 16) * 180) / Math.PI;
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
pmuki = 4;
} else {
pmuki = 5;
}
} else {
pmuki = 6;
}
} else {
pmuki = 7;
}
} else {
pmuki = 3;
}
} else {
pmuki = 2;
}
} else {
pmuki = 1;
}
} else {
pmuki = 8;
}
this.player.gotoandstop("utu" + pmuki);
play_name = "tatud" + pmuki;
dy = ((((this._y + 160) - _root.map_s.bossx._y) + 16) * -1) / 60;
dx = (((((this._x + 240) - _root.map_s.bossx._x) - 16) + 16) * -1) / 60;
}
if ((179 < bcnt) && (0 < _root.map_s.bossx._alpha)) {
_root.map_s.bossx._alpha = _root.map_s.bossx._alpha - 1;
}
if (bcnt < 60) {
_root.map_s._x = _root.map_s._x - (dx / 2);
_root.map_s._y = _root.map_s._y - (dy / 2);
_root.map_s.txt0._x = _root.map_s.txt0._x + (dx / 2);
_root.map_s.txt0._y = _root.map_s.txt0._y + (dy / 2);
_root.bg2.bg2a._x = ((((_root.map_s._x / 8) - (300 * math.floor((_root.map_s._y / 8) / 360))) % 480) + 480) % 480;
_root.bg2.bg2a._y = (((_root.map_s._y / 8) % 360) + 360) % 360;
_root.bg2.bg2b._x = (((_root.map_s._x / 4) % 480) + 480) % 480;
_root.bg2.bg2b._y = ((((_root.map_s._y / 4) + (230 * math.floor((_root.map_s._x / 4) / 480))) % 360) + 360) % 360;
}
if (bcnt != 300) {
if (bcnt == 700) {
_root.bossmode = 5;
_root.gotoandplay("gameclear");
}
} else {
_root.bgm1.gotoandplay("play3");
_root.score = _root.score + 5000;
}
if (bcnt < 1200) {
bcnt++;
}
}
} else if (bcnt != 3) {
bcnt++;
} else {
bcnt = 0;
_root.bossmode = 4;
}
} else {
if (bcnt >= 40) {
if (bcnt != 40) {
if (bcnt != 80) {
if (bcnt != 160) {
if (bcnt >= 180) {
if (bcnt >= 220) {
move_on = 0;
_root.bgm1.gotoAndPlay("play2");
_root.map_s.bossrope0.gotoandplay("kesu");
teki_ptn = 1;
_root.bossmode = 2;
bcnt = 0;
} else {
_root.bosshp = 40;
_root.map_s._x = _root.map_s._x + 3;
_root.map_s._y = _root.map_s._y - 3;
_root.map_s.txt0._x = _root.map_s.txt0._x - 3;
_root.map_s.txt0._y = _root.map_s.txt0._y + 3;
bcnt++;
}
} else {
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
bcnt++;
_root.se_doon.start();
}
} else {
map_obj_name = "bossx";
_root.enmy_n = 0;
_root.map_s.boss0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
i = 213;
j = 7;
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).gotoandplay(1);
_root.enmy_n = 1;
_root.enmy_n0 = 0;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
bcnt++;
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ix = Math.floor(px0 / 32) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
_root.mapx[jx] = (_root.mapx[jx].substring(0, (64 * 3) + 12) + "0000") + _root.mapx[jx].substring((64 * 3) + 16);
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
} else {
_root.map_s._x = _root.map_s._x - 3;
_root.map_s._y = _root.map_s._y + 3;
_root.map_s.txt0._x = _root.map_s.txt0._x + 3;
_root.map_s.txt0._y = _root.map_s.txt0._y - 3;
bcnt++;
}
if ((((((bcnt == 180) || (bcnt == 185)) || (bcnt == 190)) || (bcnt == 200)) || (bcnt == 205)) || (bcnt == 210)) {
map_obj_namex = "teki" + bcnt;
_root.map_s.tekib0.duplicateMovieClip(map_obj_namex, 5001 + Math.floor(bcnt / 5));
i = 213;
j = 7;
eval ("_root.map_s." + map_obj_namex)._x = ((((i * 32) + (j * 32)) + 16) + Math.floor(Math.random() * 8)) - 4;
eval ("_root.map_s." + map_obj_namex)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_namex).tame = 65;
eval ("_root.map_s." + map_obj_namex).gotoandplay("rakka2");
_root.se_shot.start();
}
_root.bg2.bg2a._x = ((((_root.map_s._x / 8) - (300 * math.floor((_root.map_s._y / 8) / 360))) % 480) + 480) % 480;
_root.bg2.bg2a._y = (((_root.map_s._y / 8) % 360) + 360) % 360;
_root.bg2.bg2b._x = (((_root.map_s._x / 4) % 480) + 480) % 480;
_root.bg2.bg2b._y = ((((_root.map_s._y / 4) + (230 * math.floor((_root.map_s._x / 4) / 480))) % 360) + 360) % 360;
}
} else {
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
dxy = 1;
mx = 0;
my = 0;
if (mousemode == 1) {
mouse_kakudo = (Math.atan2(((_root._ymouse - 160) - 56) - 16, (_root._xmouse - 240) + 16) * 180) / Math.PI;
_root.flag2 = Math.floor(mouse_kakudo);
if (!(((45 + 22.5) >= mouse_kakudo) && ((45 - 22.5) < mouse_kakudo))) {
if (!(((135 + 22.5) >= mouse_kakudo) && ((135 - 22.5) < mouse_kakudo))) {
if (!(((-135 + 22.5) >= mouse_kakudo) && ((-135 - 22.5) < mouse_kakudo))) {
if (!(((-45 + 22.5) >= mouse_kakudo) && ((-45 - 22.5) < mouse_kakudo))) {
if (!(((-90 + 22.5) >= mouse_kakudo) && ((-90 - 22.5) < mouse_kakudo))) {
if (!(((0 + 22.5) >= mouse_kakudo) && ((-22.5) < mouse_kakudo))) {
if (!(((90 + 22.5) >= mouse_kakudo) && ((90 - 22.5) < mouse_kakudo))) {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
}
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
}
}
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.PGDN)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.END)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.HOME)))) {
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.PGUP)))) {
if (!Key.isDown(Key.RIGHT)) {
if (!Key.isDown(Key.LEFT)) {
if (!Key.isDown(Key.DOWN)) {
if (!Key.isDown(Key.UP)) {
tenkey = 0;
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
tenkey = 1;
mousemode = 0;
}
if (!(Key.isDown(1) || (tenkey == 1))) {
dxy = 1;
mx = 0;
my = 0;
move_on = 0;
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + pmuki);
}
} else {
if (Key.isDown(1)) {
mousemode = 1;
}
if (move_on != (pmuki * arrow_kamae)) {
if (arrow_kamae != -1) {
this.player.gotoandplay("tatu" + pmuki);
} else {
this.player.gotoandplay("utu" + pmuki);
}
move_on = pmuki * arrow_kamae;
}
}
if ((Key.isDown(77) || (Key.isDown(67))) && (_root.jump_on == 0)) {
_root.jump_on = 23;
_root.se_jump.start();
}
if ((((Key.isDown(66) || (Key.isDown(90))) && (0 < _root.sp)) && (-20 < _root.jump_on)) && (sp_on < 1)) {
sp_on = 900;
_root.se_pwup.start();
_root.sp--;
}
if (0 >= _root.jump_on) {
if (!((_root.jump_on < 0) && (-70 < _root.jump_on))) {
rakka1 = 0;
} else {
this.player._y = this.player._y - (_root.jump_on - 10);
_root.jump_on--;
if (_root.jump_on == -20) {
if (sp_on != 0) {
_root.se_warp1.start();
_root.map_s.player1.swapDepths(250001);
_root.map_s.player1.player.gotoandstop("tatu1");
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
sp_on = 0;
_root.map_s._x = qx;
_root.map_s._y = qy;
_root.map_s.player1._x = -32 - qx;
_root.map_s.player1._y = 56 - qy;
muteki = 150;
move_on = 0;
this._alpha = 50;
arrow_tame = 0;
arrow_cnt = 18;
this.player._y = 160;
} else {
_root.se_fall.start();
}
}
if (_root.jump_on < -50) {
_root.enmy_n0 = 0;
rakka1 = 0;
_root.jump_on = -100;
_root.tobashi = 0;
_root.gotoandplay("end");
}
}
} else {
this.player._y = this.player._y - (_root.jump_on - 12);
_root.jump_on--;
rakka1 = 1;
}
if (0 < muteki) {
_root.tobashi = 0;
muteki--;
if (muteki < 1) {
this._alpha = 100;
}
}
if (0 < _root.tobashi) {
_root.tobashi--;
_root.map_s._x = _root.map_s._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y + (((_root.my2 * _root.tobashi) * 2) / 10);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b") {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c") {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x + (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((7 * _root.tobashi) * 2) / 10);
this._x = this._x - (((7 * _root.tobashi) * 2) / 10);
this._y = this._y - (((7 * _root.tobashi) * 2) / 10);
}
} else {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x - (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((7 * _root.tobashi) * 2) / 10);
this._x = this._x + (((7 * _root.tobashi) * 2) / 10);
this._y = this._y + (((7 * _root.tobashi) * 2) / 10);
}
}
k = 0;
for ( ; k < dxy ; k++) {
_root.map_s._x = _root.map_s._x - (mx / 2);
_root.map_s._y = _root.map_s._y - (my / 2);
this._x = this._x + (mx / 2);
this._y = this._y + (my / 2);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.jump_on >= 0) {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
this.player_kage.gotoandstop(1);
if (_root.jump_on == 0) {
qx = _root.map_s._x;
qy = _root.map_s._y;
}
} else if (!((rakka1 == 0) && (_root.tobashi == 0))) {
this.player_kage.gotoandstop("kesu");
if ((_root.jump_on == 0) || (0 < _root.tobashi)) {
k = 100;
dy = _root.jump_on - 12;
_root.jump_on = -1;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths(50090 - (((ix1 + 16) - iy1) * 100));
if (!((192 < ix1) || (128 < _root.startx))) {
if (!((128 < ix1) || (64 < _root.startx))) {
if (64 < ix1) {
_root.startx = 64;
_root.starty = 6;
}
} else {
_root.startx = 128;
_root.starty = 3;
}
} else {
_root.startx = 192;
_root.starty = 4;
}
}
} else {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c")) {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
if (((207 < Math.floor(px0 / 2)) && (_root.jump_on == 0)) && (_root.bossmode == 0)) {
bcnt = 0;
_root.bossmode = 1;
_root.bgm1.gotoAndPlay("end");
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + pmuki);
}
}
if (_root.bossmode == 2) {
if (_root.bosshp < 1) {
_root.bosshp = 0;
}
if (!((_root.bosshp < 1) && (_root.jump_on == 0))) {
if (_root.bosshp < 20) {
teki_ptn = 2;
}
} else {
bcnt = 0;
_root.bossmode = 3;
_root.bosshp = 0;
}
}
if (0 < teki_ptn) {
if ((_root.enmy_n0 < 89) && (isu_cnt >= (120 - (teki_ptn * 30)))) {
if (_root.bossmode != 0) {
if (_root.enmy_n0 < 0) {
_root.enmy_n0 = 0;
}
if (3 >= _root.enmy_n0) {
i = (Math.floor(px0 / 2) + Math.floor(Math.random() * 3)) - 1;
i = Math.min(250, Math.max(0, i));
j = (Math.floor(py0 / 2) + Math.floor(Math.random() * 3)) - 1;
j = Math.min(15, Math.max(0, j));
if (_root.mapx[j].charAt(i) != 0) {
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.tekib0.duplicateMovieClip(map_obj_name, 58500 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 0;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
isu_cnt = 0;
}
} else {
i = (Math.floor(px0 / 2) + Math.floor(Math.random() * 5)) - 2;
i = Math.min(250, Math.max(0, i));
j = (Math.floor(py0 / 2) + Math.floor(Math.random() * 5)) - 2;
j = Math.min(15, Math.max(0, j));
if (_root.mapx[j].charAt(i) != 0) {
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.chair0.duplicateMovieClip(map_obj_name, 58500 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 0;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
isu_cnt = 0;
}
}
} else {
i = Math.floor(px0 / 2) + Math.floor(Math.random() * 5);
i = Math.min(250, Math.max(0, i));
j = (Math.floor(py0 / 2) + Math.floor(Math.random() * 5)) - 2;
j = Math.min(15, Math.max(0, j));
if (_root.mapx[j].charAt(i) != 0) {
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.chair0.duplicateMovieClip(map_obj_name, 58500 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 0;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
isu_cnt = 0;
}
}
}
isu_cnt = isu_cnt + 1;
}
if (Math.floor(px / 32) >= Math.floor(px0 / 32)) {
if (Math.floor(px0 / 32) < Math.floor(px / 32)) {
ij = 0;
for ( ; ij < (Math.floor(px / 32) - Math.floor(px0 / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) + 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
} else {
ij = 0;
for ( ; ij < (Math.floor(px0 / 32) - Math.floor(px / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) + 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) - 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
if (Math.floor(px / 2) < Math.floor(px0 / 2)) {
ij = 0;
for ( ; ij < (Math.floor(px0 / 2) - Math.floor(px / 2)) ; ij++) {
i = (Math.floor(px0 / 2) + 8) - ij;
if (i < 0) {
i = 0;
}
if (250 < i) {
i = 250;
}
j = 0;
for ( ; j < 16 ; j++) {
if (_root.mapx[j].charAt(i) != "2") {
if (_root.mapx[j].charAt(i) != "3") {
if (_root.mapx[j].charAt(i) != "9") {
if (_root.mapx[j].charAt(i) != "8") {
if (_root.mapx[j].charAt(i) != "7") {
if (_root.mapx[j].charAt(i) != "6") {
if (_root.mapx[j].charAt(i) == "8") {
if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.chair0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).chair01._y = -300;
_root.enmy_n++;
_root.enmy_n0++;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
} else {
teki_ptn = 0;
}
} else {
teki_ptn = 2;
}
} else {
teki_ptn = 1;
}
} else {
map_obj_name = "gs1";
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.gs0.duplicateMovieClip(map_obj_name, 58000);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.bigball0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.teki0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
}
}
if (pmuki != 1) {
if (pmuki != 2) {
if (pmuki != 3) {
if (pmuki != 4) {
if (pmuki != 5) {
if (pmuki != 6) {
if (pmuki != 7) {
dx = -10 / 8;
dy = 0;
dx2 = -7 / 8;
dy2 = -7 / 8;
} else {
dx = -7 / 8;
dy = -7 / 8;
dx2 = 0;
dy2 = -10 / 8;
}
} else {
dx = 0;
dy = -10 / 8;
dx2 = 7 / 8;
dy2 = -7 / 8;
}
} else {
dx = 7 / 8;
dy = -7 / 8;
dx2 = 10 / 8;
dy2 = 0;
}
} else {
dx = 10 / 8;
dy = 0;
dx2 = 7 / 8;
dy2 = 7 / 8;
}
} else {
dx = 7 / 8;
dy = 7 / 8;
dx2 = 0;
dy2 = 10 / 8;
}
} else {
dx = 0;
dy = 10 / 8;
dx2 = -7 / 8;
dy2 = 7 / 8;
}
} else {
dx = -7 / 8;
dy = 7 / 8;
dx2 = -10 / 8;
dy2 = 0;
}
if (sp_on < 1) {
dx2 = 0;
dy2 = 0;
}
map_obj_name = "arrow" + _root.arrow_n;
map_obj_name2 = "arrow" + (_root.arrow_n + 10);
map_obj_name3 = "arrow" + (_root.arrow_n + 20);
if (!(((Key.isDown(78) || (Key.isDown(88))) && (_root.jump_on == 0)) && (arrow_cnt == 0))) {
if (!(((Key.isDown(78) || (Key.isDown(88))) || (0 < _root.jump_on)) && (arrow_cnt == 19))) {
if (arrow_cnt == 19) {
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name2).tame = 1;
eval ("_root.map_s." + map_obj_name3).tame = 1;
if (arrow_tame < 60) {
if (arrow_tame < 35) {
if (arrow_tame < 15) {
play_name = "tatu" + pmuki;
play_name2 = "tatu" + ((pmuki % 8) + 1);
play_name3 = "tatu" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 1;
eval ("_root.map_s." + map_obj_name2).pw = 1;
eval ("_root.map_s." + map_obj_name3).pw = 1;
} else {
play_name = "tatub" + pmuki;
play_name2 = "tatub" + ((pmuki % 8) + 1);
play_name3 = "tatub" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 2;
eval ("_root.map_s." + map_obj_name2).pw = 2;
eval ("_root.map_s." + map_obj_name3).pw = 2;
}
} else {
play_name = "tatuc" + pmuki;
play_name2 = "tatuc" + ((pmuki % 8) + 1);
play_name3 = "tatuc" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 3;
eval ("_root.map_s." + map_obj_name2).pw = 3;
eval ("_root.map_s." + map_obj_name3).pw = 3;
}
} else {
play_name = "tatud" + pmuki;
play_name2 = "tatud" + ((pmuki % 8) + 1);
play_name3 = "tatud" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name2).pw = 4;
eval ("_root.map_s." + map_obj_name3).pw = 4;
}
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name2).gotoandplay(play_name2);
eval ("_root.map_s." + map_obj_name3).gotoandplay(play_name3);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + 160;
eval ("_root.map_s." + map_obj_name2).tdx = dy2 * 6;
eval ("_root.map_s." + map_obj_name2).tdy = (dx2 * -1) * 6;
eval ("_root.map_s." + map_obj_name2)._x = (this._x + (dy2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name2)._y = ((this._y - (dx2 * 12)) + 160) + ((1 - Math.ceil(sp_on / 900)) * 800);
eval ("_root.map_s." + map_obj_name3).tdx = dx2 * 6;
eval ("_root.map_s." + map_obj_name3).tdy = dy2 * 6;
eval ("_root.map_s." + map_obj_name3)._x = (this._x + (dx2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name3)._y = ((this._y + (dy2 * 12)) + 160) + ((1 - Math.ceil(sp_on / 900)) * 800);
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3);
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name2)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 1;
eval ("_root.map_s." + map_obj_name2).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name3)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 2;
eval ("_root.map_s." + map_obj_name3).swapDepths(dpth);
_root.se_shot.start();
_root.arrow_n++;
if (8 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
arrow_cnt++;
arrow_tame++;
if (arrow_tame < 60) {
if (arrow_tame < 35) {
if (arrow_tame < 15) {
play_name = "tatu" + pmuki;
play_name2 = "tatu" + ((pmuki % 8) + 1);
play_name3 = "tatu" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 1;
eval ("_root.map_s." + map_obj_name2).pw = 1;
eval ("_root.map_s." + map_obj_name3).pw = 1;
} else {
play_name = "tatub" + pmuki;
play_name2 = "tatub" + ((pmuki % 8) + 1);
play_name3 = "tatub" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 2;
eval ("_root.map_s." + map_obj_name2).pw = 2;
eval ("_root.map_s." + map_obj_name3).pw = 2;
}
} else {
play_name = "tatuc" + pmuki;
play_name2 = "tatuc" + ((pmuki % 8) + 1);
play_name3 = "tatuc" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 3;
eval ("_root.map_s." + map_obj_name2).pw = 3;
eval ("_root.map_s." + map_obj_name3).pw = 3;
}
} else {
play_name = "tatud" + pmuki;
play_name2 = "tatud" + ((pmuki % 8) + 1);
play_name3 = "tatud" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name2).pw = 4;
eval ("_root.map_s." + map_obj_name3).pw = 4;
}
if (((arrow_tame == 15) || (arrow_tame == 35)) || (arrow_tame == 60)) {
omuki = 0;
}
if (pmuki != omuki) {
eval ("_root.map_s." + map_obj_name).gotoandstop(play_name);
eval ("_root.map_s." + map_obj_name2).gotoandstop(play_name2);
eval ("_root.map_s." + map_obj_name3).gotoandstop(play_name3);
}
omuki = pmuki;
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + this.player._y;
eval ("_root.map_s." + map_obj_name2).tdx = dy2 * 6;
eval ("_root.map_s." + map_obj_name2).tdy = (dx2 * -1) * 6;
eval ("_root.map_s." + map_obj_name2)._x = (this._x + (dy2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name2)._y = ((this._y - (dx2 * 12)) + this.player._y) + ((1 - Math.ceil(sp_on / 900)) * 800);
eval ("_root.map_s." + map_obj_name3).tdx = dx2 * 6;
eval ("_root.map_s." + map_obj_name3).tdy = dy2 * 6;
eval ("_root.map_s." + map_obj_name3)._x = (this._x + (dx2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name3)._y = ((this._y + (dy2 * 12)) + this.player._y) + ((1 - Math.ceil(sp_on / 900)) * 800);
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3);
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name2)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 1;
eval ("_root.map_s." + map_obj_name2).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name3)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 2;
eval ("_root.map_s." + map_obj_name3).swapDepths(dpth);
if (_root.jump_on < 0) {
eval ("_root.map_s." + map_obj_name).removeMovieClip();
eval ("_root.map_s." + map_obj_name2).removeMovieClip();
eval ("_root.map_s." + map_obj_name3).removeMovieClip();
}
}
} else {
play_name = "tatu" + pmuki;
play_name2 = "tatu" + ((pmuki % 8) + 1);
play_name3 = "tatu" + (((pmuki + 6) % 8) + 1);
if (!((4 < pmuki) || (pmuki == 1))) {
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 55100 + _root.arrow_n);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name2, (55100 + _root.arrow_n) + 10);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name3, (55100 + _root.arrow_n) + 20);
} else {
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name2, (54900 + _root.arrow_n) + 10);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name3, (54900 + _root.arrow_n) + 20);
}
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + 160;
eval ("_root.map_s." + map_obj_name2).gotoandplay(play_name2);
eval ("_root.map_s." + map_obj_name2).tdx = dy2 * 6;
eval ("_root.map_s." + map_obj_name2).tdy = (dx2 * -1) * 6;
eval ("_root.map_s." + map_obj_name2)._x = (this._x + (dy2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name2)._y = ((this._y - (dx2 * 12)) + 160) + ((1 - Math.ceil(sp_on / 900)) * 800);
eval ("_root.map_s." + map_obj_name3).gotoandplay(play_name3);
eval ("_root.map_s." + map_obj_name3).tdx = dx2 * 6;
eval ("_root.map_s." + map_obj_name3).tdy = dy2 * 6;
eval ("_root.map_s." + map_obj_name3)._x = (this._x + (dx2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name3)._y = ((this._y + (dy2 * 12)) + 160) + ((1 - Math.ceil(sp_on / 900)) * 800);
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n * 3;
eval ("_root.map_s." + map_obj_name2).chara_n = (_root.arrow_n * 3) + 1;
eval ("_root.map_s." + map_obj_name3).chara_n = (_root.arrow_n * 3) + 2;
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3);
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name2)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 1;
eval ("_root.map_s." + map_obj_name2).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name3)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 2;
eval ("_root.map_s." + map_obj_name3).swapDepths(dpth);
arrow_cnt = 20;
arrow_tame = 0;
arrow_kamae = -1;
omuki = pmuki;
}
_root.bg2.bg2a._x = ((((_root.map_s._x / 8) - (300 * math.floor((_root.map_s._y / 8) / 360))) % 480) + 480) % 480;
_root.bg2.bg2a._y = (((_root.map_s._y / 8) % 360) + 360) % 360;
_root.bg2.bg2b._x = (((_root.map_s._x / 4) % 480) + 480) % 480;
_root.bg2.bg2b._y = ((((_root.map_s._y / 4) + (230 * math.floor((_root.map_s._x / 4) / 480))) % 360) + 360) % 360;
_root.map_s.txt0._x = this._x;
_root.map_s.txt0._y = this._y;
_root.map_s.txt0.bosshpbar._xscale = 200 * _root.bosshp;
px = px0;
py = py0;
_root.px = px;
_root.py = py;
_root.flag1 = _root.bg1._x;
loop_cnt++;
if (500 < loop_cnt) {
loop_cnt = 0;
}
if (0 < arrow_cnt) {
arrow_cnt--;
}
if (arrow_cnt == 10) {
arrow_kamae = 1;
}
if (arrow_cnt < 0) {
arrow_cnt++;
}
if (0 < sp_on) {
sp_on--;
}
_root.map_s.txt0.sptxt.gsbar._xscale = 30 * Math.floor(sp_on / 30);
_root.jikan--;
if ((_root.jikan < 0) && (timeup_on == 0)) {
_root.jikan = 0;
if (_root.jump_on == 0) {
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
_root.jikan = 0;
timeup_on = 90;
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
this.player.gotoandplay("timeup");
}
}
}
}
}
Instance of Symbol 120 MovieClip [sp_character2] "player2" in Symbol 1012 MovieClip [sp_map2] Frame 3
onClipEvent (load) {
px0 = 0;
py0 = 0;
px = 5.5;
py = 8.5;
qx = 0;
qy = 0;
rakka1 = 0;
teki_ptn = 0;
loop_cnt = 0;
pmuki = 5;
arrow_cnt = 0;
mouse_kakudo = 0;
move_on = 0;
teki_ran = 0;
arrow_tame = 0;
arrow_on = 0;
timeup_on = 0;
arrow_kamae = 1;
sp_on = 0;
muteki = 0;
bcnt = 0;
}
onClipEvent (enterFrame) {
if (((_root.charan == 2) && (this != _root.map_os2.player2)) && (this != _root.map_s.player2)) {
if (!(((timeup_on == 0) && (_root.bossmode != 1)) && (_root.bossmode < 3))) {
if (_root.bossmode != 1) {
if (_root.bossmode != 3) {
if (_root.bossmode != 4) {
if (0 < timeup_on) {
_root.jikan = 0;
timeup_on--;
if (timeup_on == 1) {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
_root.gotoandplay("end");
}
}
} else {
if (bcnt != 0) {
if (bcnt != 170) {
if (bcnt != 171) {
if (bcnt != 172) {
if (bcnt != 300) {
if (bcnt == 200) {
_root.map_s.bossx.gotoandplay("tatu0");
_root.se_baku.start();
}
} else {
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
map_obj_name = "arrow98";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
} else {
map_obj_name = "arrow96";
pmuki = eval ("_root.map_s." + map_obj_name).getDepth() + 1;
map_obj_name = "arrow98";
eval ("_root.map_s." + map_obj_name).swapDepths(pmuki);
pmuki = 1;
}
} else {
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
map_obj_name = "arrow98";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
_root.se_gunshot2.start();
}
} else {
_root.arrow_n = 1;
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
dx = 64;
dy = -4;
} else {
dx = 35;
dy = -35;
}
} else {
dx = 0;
dy = -50;
}
} else {
dx = -35;
dy = -35;
}
} else {
dx = 30;
dy = 30;
}
} else {
dx = 0;
dy = 42;
}
} else {
dx = -30;
dy = 30;
}
} else {
dx = -64;
dy = -4;
}
kakudo = (Math.atan2((((this._y + 160) + dy) - _root.map_s.bossx._y) + 16, ((((this._x + 240) + dx) - _root.map_s.bossx._x) - 16) + 16) * 180) / Math.PI;
dx2 = (((((this._x + 240) + dx) - _root.map_s.bossx._x) - 16) + 16) * -1;
dy2 = ((((this._y + 160) + dy) - _root.map_s.bossx._y) + 16) * -1;
pmuki = Math.floor(Math.sqrt((dx2 * dx2) + (dy2 * dy2)));
map_obj_name = "arrow96";
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
play_name = "tamam" + 20;
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name)._x = ((this._x + dx) + 240) + 18;
eval ("_root.map_s." + map_obj_name)._y = ((this._y + dy) + 160) + 18;
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name).chara_n = 3;
eval ("_root.map_s." + map_obj_name)._rotation = kakudo - 180;
eval ("_root.map_s." + map_obj_name)._xscale = pmuki * 10;
eval ("_root.map_s." + map_obj_name)._yscale = 0;
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
_root.arrow_n++;
map_obj_name = "arrow97";
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
play_name = "tamam" + 20;
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name)._x = (((_root.map_s.bossx._x + 16) + 18) - 16) - (Math.cos((kakudo * Math.PI) / 180) * 400);
eval ("_root.map_s." + map_obj_name)._y = ((_root.map_s.bossx._y - 16) + 18) - (Math.sin((kakudo * Math.PI) / 180) * 400);
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name).chara_n = 4;
eval ("_root.map_s." + map_obj_name)._rotation = kakudo;
eval ("_root.map_s." + map_obj_name)._xscale = 4000;
eval ("_root.map_s." + map_obj_name)._yscale = 0;
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
_root.arrow_n++;
map_obj_name = "arrow98";
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
play_name = "tamam" + 21;
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name)._x = ((this._x + dx) + 240) + 15;
eval ("_root.map_s." + map_obj_name)._y = ((this._y + dy) + 160) + 15;
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name).chara_n = 5;
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
_root.arrow_n++;
pmuki = 1;
dx = 0;
dy = 0;
if (10 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
this._alpha = 100;
_root.map_s.txt0.bossname.gotoandplay("siro2");
_root.se_pwup.start();
_root.map_s.txt0.bosshpbar._xscale = 0;
kakudo = (Math.atan2(((this._y + 160) - _root.map_s.bossx._y) + 16, (((this._x + 240) - _root.map_s.bossx._x) - 16) + 16) * 180) / Math.PI;
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
pmuki = 4;
} else {
pmuki = 5;
}
} else {
pmuki = 6;
}
} else {
pmuki = 7;
}
} else {
pmuki = 3;
}
} else {
pmuki = 2;
}
} else {
pmuki = 1;
}
} else {
pmuki = 8;
}
play_name = "end" + pmuki;
this.player.gotoandplay(play_name);
play_name = "tamam" + (pmuki + 20);
dy = ((((this._y + 160) - _root.map_s.bossx._y) + 16) * -1) / 60;
dx = (((((this._x + 240) - _root.map_s.bossx._x) - 16) + 16) * -1) / 60;
_root.map_s.gun1.removeMovieClip();
_root.map_s.gun2.removeMovieClip();
}
if ((200 < bcnt) && (0 < _root.map_s.bossx._alpha)) {
_root.map_s.bossx._alpha = _root.map_s.bossx._alpha - 1;
}
if ((bcnt < 300) && (170 < bcnt)) {
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name)._yscale = (bcnt - 170) * 2;
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name)._yscale = (bcnt - 170) * 2;
}
if (bcnt < 60) {
_root.map_s._x = _root.map_s._x - (dx / 2);
_root.map_s._y = _root.map_s._y - (dy / 2);
_root.map_s.txt0._x = _root.map_s.txt0._x + (dx / 2);
_root.map_s.txt0._y = _root.map_s.txt0._y + (dy / 2);
_root.bg2.bg2a._x = ((((_root.map_s._x / 8) - (300 * math.floor((_root.map_s._y / 8) / 360))) % 480) + 480) % 480;
_root.bg2.bg2a._y = (((_root.map_s._y / 8) % 360) + 360) % 360;
_root.bg2.bg2b._x = (((_root.map_s._x / 4) % 480) + 480) % 480;
_root.bg2.bg2b._y = ((((_root.map_s._y / 4) + (230 * math.floor((_root.map_s._x / 4) / 480))) % 360) + 360) % 360;
}
if (bcnt != 300) {
if (bcnt == 700) {
_root.gotoandplay("gameclear");
_root.bossmode = 5;
}
} else {
_root.bgm1.gotoandplay("play3");
_root.score = _root.score + 5000;
}
if (bcnt < 1200) {
bcnt++;
}
}
} else if (bcnt != 3) {
bcnt++;
} else {
bcnt = 0;
_root.bossmode = 4;
}
} else {
if (bcnt >= 40) {
if (bcnt != 40) {
if (bcnt != 80) {
if (bcnt != 160) {
if (bcnt >= 180) {
if (bcnt >= 220) {
move_on = 0;
_root.bgm1.gotoAndPlay("play2");
_root.map_s.bossrope0.gotoandplay("kesu");
teki_ptn = 1;
_root.bossmode = 2;
bcnt = 0;
} else {
_root.bosshp = 40;
_root.map_s._x = _root.map_s._x + 3;
_root.map_s._y = _root.map_s._y - 3;
_root.map_s.txt0._x = _root.map_s.txt0._x - 3;
_root.map_s.txt0._y = _root.map_s.txt0._y + 3;
bcnt++;
}
} else {
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
bcnt++;
_root.se_doon.start();
}
} else {
map_obj_name = "bossx";
_root.enmy_n = 0;
_root.map_s.boss0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
i = 213;
j = 7;
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).gotoandplay(1);
_root.enmy_n = 1;
_root.enmy_n0 = 0;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
bcnt++;
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ix = Math.floor(px0 / 32) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
_root.mapx[jx] = (_root.mapx[jx].substring(0, (64 * 3) + 12) + "0000") + _root.mapx[jx].substring((64 * 3) + 16);
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
} else {
_root.map_s._x = _root.map_s._x - 3;
_root.map_s._y = _root.map_s._y + 3;
_root.map_s.txt0._x = _root.map_s.txt0._x + 3;
_root.map_s.txt0._y = _root.map_s.txt0._y - 3;
bcnt++;
}
if ((((((bcnt == 180) || (bcnt == 185)) || (bcnt == 190)) || (bcnt == 200)) || (bcnt == 205)) || (bcnt == 210)) {
map_obj_namex = "teki" + bcnt;
_root.map_s.tekib0.duplicateMovieClip(map_obj_namex, 5001 + Math.floor(bcnt / 5));
i = 213;
j = 7;
eval ("_root.map_s." + map_obj_namex)._x = ((((i * 32) + (j * 32)) + 16) + Math.floor(Math.random() * 8)) - 4;
eval ("_root.map_s." + map_obj_namex)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_namex).tame = 65;
eval ("_root.map_s." + map_obj_namex).gotoandplay("rakka2");
_root.se_shot.start();
}
_root.bg2.bg2a._x = ((((_root.map_s._x / 8) - (300 * math.floor((_root.map_s._y / 8) / 360))) % 480) + 480) % 480;
_root.bg2.bg2a._y = (((_root.map_s._y / 8) % 360) + 360) % 360;
_root.bg2.bg2b._x = (((_root.map_s._x / 4) % 480) + 480) % 480;
_root.bg2.bg2b._y = ((((_root.map_s._y / 4) + (230 * math.floor((_root.map_s._x / 4) / 480))) % 360) + 360) % 360;
}
} else {
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
dxy = 1;
mx = 0;
my = 0;
if (mousemode == 1) {
mouse_kakudo = (Math.atan2(((_root._ymouse - 160) - 56) - 16, (_root._xmouse - 240) + 16) * 180) / Math.PI;
_root.flag2 = Math.floor(mouse_kakudo);
if (!(((45 + 22.5) >= mouse_kakudo) && ((45 - 22.5) < mouse_kakudo))) {
if (!(((135 + 22.5) >= mouse_kakudo) && ((135 - 22.5) < mouse_kakudo))) {
if (!(((-135 + 22.5) >= mouse_kakudo) && ((-135 - 22.5) < mouse_kakudo))) {
if (!(((-45 + 22.5) >= mouse_kakudo) && ((-45 - 22.5) < mouse_kakudo))) {
if (!(((-90 + 22.5) >= mouse_kakudo) && ((-90 - 22.5) < mouse_kakudo))) {
if (!(((0 + 22.5) >= mouse_kakudo) && ((-22.5) < mouse_kakudo))) {
if (!(((90 + 22.5) >= mouse_kakudo) && ((90 - 22.5) < mouse_kakudo))) {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
}
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
}
}
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.PGDN)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.END)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.HOME)))) {
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.PGUP)))) {
if (!Key.isDown(Key.RIGHT)) {
if (!Key.isDown(Key.LEFT)) {
if (!Key.isDown(Key.DOWN)) {
if (!Key.isDown(Key.UP)) {
tenkey = 0;
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
tenkey = 1;
mousemode = 0;
}
if (!(Key.isDown(1) || (tenkey == 1))) {
dxy = 1;
mx = 0;
my = 0;
move_on = 0;
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + (pmuki + (Math.ceil(sp_on / 900) * 10)));
}
} else {
if (Key.isDown(1)) {
mousemode = 1;
}
if (move_on != (pmuki * arrow_kamae)) {
if (arrow_kamae != -1) {
this.player.gotoandplay("tatu" + pmuki);
} else {
this.player.gotoandplay("utu" + (pmuki + (Math.ceil(sp_on / 900) * 10)));
}
move_on = pmuki * arrow_kamae;
}
}
if ((Key.isDown(77) || (Key.isDown(67))) && (_root.jump_on == 0)) {
_root.jump_on = 23;
_root.se_jump.start();
}
if ((((Key.isDown(66) || (Key.isDown(90))) && (0 < _root.sp)) && (-20 < _root.jump_on)) && (sp_on < 1)) {
sp_on = 900;
_root.se_pwup.start();
_root.sp--;
}
if (0 >= _root.jump_on) {
if (!((_root.jump_on < 0) && (-70 < _root.jump_on))) {
rakka1 = 0;
} else {
_root.map_s.gun1.removeMovieClip();
_root.map_s.gun2.removeMovieClip();
this.player._y = this.player._y - (_root.jump_on - 10);
_root.jump_on--;
if (_root.jump_on == -20) {
if (sp_on != 0) {
_root.se_warp1.start();
_root.map_s.player1.swapDepths(250001);
_root.map_s.player1.player.gotoandstop("tatu1");
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
sp_on = 0;
_root.map_s._x = qx;
_root.map_s._y = qy;
_root.map_s.player1._x = -32 - qx;
_root.map_s.player1._y = 56 - qy;
muteki = 150;
move_on = 0;
this._alpha = 50;
arrow_tame = 0;
arrow_cnt = 18;
this.player._y = 160;
} else {
_root.se_fall.start();
}
}
if (_root.jump_on < -50) {
_root.enmy_n0 = 0;
rakka1 = 0;
_root.jump_on = -100;
_root.tobashi = 0;
_root.gotoandplay("end");
}
}
} else {
this.player._y = this.player._y - (_root.jump_on - 12);
_root.jump_on--;
rakka1 = 1;
}
if (0 < muteki) {
_root.tobashi = 0;
muteki--;
if (muteki < 1) {
this._alpha = 100;
}
}
if (0 < _root.tobashi) {
_root.tobashi--;
_root.map_s._x = _root.map_s._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y + (((_root.my2 * _root.tobashi) * 2) / 10);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b") {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c") {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x + (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((7 * _root.tobashi) * 2) / 10);
this._x = this._x - (((7 * _root.tobashi) * 2) / 10);
this._y = this._y - (((7 * _root.tobashi) * 2) / 10);
}
} else {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x - (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((7 * _root.tobashi) * 2) / 10);
this._x = this._x + (((7 * _root.tobashi) * 2) / 10);
this._y = this._y + (((7 * _root.tobashi) * 2) / 10);
}
}
k = 0;
for ( ; k < dxy ; k++) {
_root.map_s._x = _root.map_s._x - (mx / 2);
_root.map_s._y = _root.map_s._y - (my / 2);
this._x = this._x + (mx / 2);
this._y = this._y + (my / 2);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.jump_on >= 0) {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
this.player_kage.gotoandstop(1);
if (_root.jump_on == 0) {
qx = _root.map_s._x;
qy = _root.map_s._y;
}
} else if (!((rakka1 == 0) && (_root.tobashi == 0))) {
this.player_kage.gotoandstop("kesu");
if ((_root.jump_on == 0) || (0 < _root.tobashi)) {
k = 100;
dy = _root.jump_on - 12;
_root.jump_on = -1;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths(50090 - (((ix1 + 16) - iy1) * 100));
if (!((192 < ix1) || (128 < _root.startx))) {
if (!((128 < ix1) || (64 < _root.startx))) {
if (64 < ix1) {
_root.startx = 64;
_root.starty = 6;
}
} else {
_root.startx = 128;
_root.starty = 3;
}
} else {
_root.startx = 192;
_root.starty = 4;
}
}
} else {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c")) {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
if (((207 < Math.floor(px0 / 2)) && (_root.jump_on == 0)) && (_root.bossmode == 0)) {
bcnt = 0;
_root.bossmode = 1;
_root.bgm1.gotoAndPlay("end");
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + (pmuki + (Math.ceil(sp_on / 900) * 10)));
}
}
if (_root.bossmode == 2) {
if (_root.bosshp < 1) {
_root.bosshp = 0;
}
if (!((_root.bosshp < 1) && (_root.jump_on == 0))) {
if (_root.bosshp < 20) {
teki_ptn = 2;
}
} else {
bcnt = 0;
_root.bossmode = 3;
_root.bosshp = 0;
}
}
if (0 < teki_ptn) {
if ((_root.enmy_n0 < 89) && (isu_cnt >= (120 - (teki_ptn * 30)))) {
if (_root.bossmode != 0) {
if (_root.enmy_n0 < 0) {
_root.enmy_n0 = 0;
}
if (3 >= _root.enmy_n0) {
i = (Math.floor(px0 / 2) + Math.floor(Math.random() * 3)) - 1;
i = Math.min(250, Math.max(0, i));
j = (Math.floor(py0 / 2) + Math.floor(Math.random() * 3)) - 1;
j = Math.min(15, Math.max(0, j));
if (_root.mapx[j].charAt(i) != 0) {
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.tekib0.duplicateMovieClip(map_obj_name, 58500 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 0;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
isu_cnt = 0;
}
} else {
i = (Math.floor(px0 / 2) + Math.floor(Math.random() * 5)) - 2;
i = Math.min(250, Math.max(0, i));
j = (Math.floor(py0 / 2) + Math.floor(Math.random() * 5)) - 2;
j = Math.min(15, Math.max(0, j));
if (_root.mapx[j].charAt(i) != 0) {
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.chair0.duplicateMovieClip(map_obj_name, 58500 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 0;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
isu_cnt = 0;
}
}
} else {
i = Math.floor(px0 / 2) + Math.floor(Math.random() * 5);
i = Math.min(250, Math.max(0, i));
j = (Math.floor(py0 / 2) + Math.floor(Math.random() * 5)) - 2;
j = Math.min(15, Math.max(0, j));
if (_root.mapx[j].charAt(i) != 0) {
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.chair0.duplicateMovieClip(map_obj_name, 58500 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 0;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
isu_cnt = 0;
}
}
}
isu_cnt = isu_cnt + 1;
}
if (Math.floor(px / 32) >= Math.floor(px0 / 32)) {
if (Math.floor(px0 / 32) < Math.floor(px / 32)) {
ij = 0;
for ( ; ij < (Math.floor(px / 32) - Math.floor(px0 / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) + 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
} else {
ij = 0;
for ( ; ij < (Math.floor(px0 / 32) - Math.floor(px / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) + 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) - 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
if (Math.floor(px / 2) < Math.floor(px0 / 2)) {
ij = 0;
for ( ; ij < (Math.floor(px0 / 2) - Math.floor(px / 2)) ; ij++) {
i = (Math.floor(px0 / 2) + 8) - ij;
if (i < 0) {
i = 0;
}
if (250 < i) {
i = 250;
}
j = 0;
for ( ; j < 16 ; j++) {
if (_root.mapx[j].charAt(i) != "2") {
if (_root.mapx[j].charAt(i) != "3") {
if (_root.mapx[j].charAt(i) != "9") {
if (_root.mapx[j].charAt(i) != "8") {
if (_root.mapx[j].charAt(i) != "7") {
if (_root.mapx[j].charAt(i) != "6") {
if (_root.mapx[j].charAt(i) == "8") {
if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.chair0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).chair01._y = -300;
_root.enmy_n++;
_root.enmy_n0++;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
} else {
teki_ptn = 0;
}
} else {
teki_ptn = 2;
}
} else {
teki_ptn = 1;
}
} else {
map_obj_name = "gs1";
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.gs0.duplicateMovieClip(map_obj_name, 58000);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.bigball0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.teki0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
}
}
if (pmuki != 1) {
if (pmuki != 2) {
if (pmuki != 3) {
if (pmuki != 4) {
if (pmuki != 5) {
if (pmuki != 6) {
if (pmuki != 7) {
dx = -10 / 8;
dy = 0;
dx2 = 0;
dy2 = -10;
} else {
dx = -7 / 8;
dy = -7 / 8;
dx2 = -7;
dy2 = 7;
}
} else {
dx = 0;
dy = -10 / 8;
dx2 = 10;
dy2 = 0;
}
} else {
dx = 7 / 8;
dy = -7 / 8;
dx2 = 7;
dy2 = 7;
}
} else {
dx = 10 / 8;
dy = 0;
dx2 = 0;
dy2 = -10;
}
} else {
dx = 7 / 8;
dy = 7 / 8;
dx2 = 7;
dy2 = -7;
}
} else {
dx = 0;
dy = 10 / 8;
dx2 = -10;
dy2 = 0;
}
} else {
dx = -7 / 8;
dy = 7 / 8;
dx2 = -7;
dy2 = -7;
}
map_obj_name = "arrow" + _root.arrow_n;
map_obj_name2 = "arrow" + (_root.arrow_n + 10);
map_obj_name3 = "arrow" + (_root.arrow_n + 20);
if (!(((Key.isDown(78) || (Key.isDown(88))) && (_root.jump_on == 0)) && (arrow_cnt == 0))) {
if (!(((Key.isDown(78) || (Key.isDown(88))) || (0 < _root.jump_on)) && (arrow_cnt == 19))) {
if (arrow_cnt == 19) {
if (arrow_tame < 60) {
if (arrow_tame < 25) {
omuki = 0;
} else {
omuki = 1;
}
} else {
omuki = 2;
}
play_name = "tamam" + (pmuki + (Math.ceil(sp_on / 900) * 10));
i = omuki * -1;
for ( ; i < (omuki + 1) ; i++) {
dpth = (_root.arrow_n - omuki) + i;
map_obj_name = "arrow" + dpth;
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 1 + Math.ceil(sp_on / 900);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = ((this._x + (dx * 20)) + 240) + (dx2 * i);
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy * 20)) + this.player._y) + (dy2 * i);
dpth = (((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) - omuki) + i;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
if (_root.jump_on < 0) {
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
_root.map_s.gun1.removeMovieClip();
_root.map_s.gun2.removeMovieClip();
_root.se_gunshot1.start();
arrow_kamae = 1;
}
} else {
arrow_cnt++;
arrow_tame++;
if (arrow_tame != 25) {
if (arrow_tame == 60) {
play_name2 = "utu" + ((pmuki + 10) + (Math.ceil(sp_on / 900) * 20));
_root.map_s.gun1.gotoandstop(play_name2);
_root.map_s.gun2.gotoandstop(play_name2);
_root.map_s.gun1._x = (this._x + 240) + (dx2 * 2);
_root.map_s.gun1._y = (this._y + this.player._y) + (dy2 * 2);
_root.map_s.gun2._x = (this._x + 240) - dx2;
_root.map_s.gun2._y = (this._y + this.player._y) - dy2;
dpth = 250002 + (((_root.map_s.gun1._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200);
_root.map_s.gun1.swapDepths(dpth);
dpth = (250002 + (((_root.map_s.gun2._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200)) + 1;
_root.map_s.gun2.swapDepths(dpth);
omuki = pmuki;
i = -2;
for ( ; i < 3 ; i = i + 2) {
if (i != 0) {
_root.arrow_n++;
dpth = _root.arrow_n;
map_obj_name = "arrow" + dpth;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + dpth);
play_name = "tamam" + (Math.ceil(sp_on / 900) * 10);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).pw = 1 + Math.ceil(sp_on / 900);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = ((this._x + (dx * 20)) + 240) + (dx2 * i);
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy * 20)) + 160) + (dy2 * i);
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n;
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
}
}
}
} else {
_root.map_s.gun0.duplicateMovieClip("gun1", 54901);
_root.map_s.gun0.duplicateMovieClip("gun2", 54902);
_root.map_s.gun1.chara_n = 1;
_root.map_s.gun2.chara_n = 2;
play_name2 = "utu" + (pmuki + (Math.ceil(sp_on / 900) * 20));
_root.map_s.gun1.gotoandstop(play_name2);
_root.map_s.gun2.gotoandstop(play_name2);
_root.map_s.gun1._x = (this._x + 240) + dx2;
_root.map_s.gun1._y = (this._y + this.player._y) + dy2;
_root.map_s.gun2._x = (this._x + 240) - dx2;
_root.map_s.gun2._y = (this._y + this.player._y) - dy2;
dpth = 250002 + (((_root.map_s.gun1._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200);
_root.map_s.gun1.swapDepths(dpth);
dpth = (250002 + (((_root.map_s.gun2._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200)) + 1;
_root.map_s.gun2.swapDepths(dpth);
omuki = pmuki;
i = -1;
for ( ; i < 2 ; i++) {
if (i != 0) {
_root.arrow_n++;
dpth = _root.arrow_n;
map_obj_name = "arrow" + dpth;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + dpth);
play_name = "tamam" + (Math.ceil(sp_on / 900) * 10);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).pw = 1 + Math.ceil(sp_on / 900);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = ((this._x + (dx * 20)) + 240) + (dx2 * i);
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy * 20)) + 160) + (dy2 * i);
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n;
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
}
}
}
if (arrow_tame < 60) {
if (arrow_tame < 25) {
omuki = 0;
} else {
_root.map_s.gun1._x = (this._x + 240) + dx2;
_root.map_s.gun1._y = (this._y + this.player._y) + dy2;
_root.map_s.gun2._x = (this._x + 240) - dx2;
_root.map_s.gun2._y = (this._y + this.player._y) - dy2;
if ((pmuki != omuki) || (sp_on == 900)) {
play_name2 = "utu" + (pmuki + (Math.ceil(sp_on / 900) * 20));
_root.map_s.gun1.gotoandstop(play_name2);
_root.map_s.gun2.gotoandstop(play_name2);
dpth = 250002 + (((_root.map_s.gun1._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200);
_root.map_s.gun1.swapDepths(dpth);
dpth = (250002 + (((_root.map_s.gun2._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200)) + 1;
_root.map_s.gun2.swapDepths(dpth);
}
omuki = 1;
}
} else {
_root.map_s.gun1._x = (this._x + 240) + (dx2 * 2);
_root.map_s.gun1._y = (this._y + this.player._y) + (dy2 * 2);
_root.map_s.gun2._x = (this._x + 240) - dx2;
_root.map_s.gun2._y = (this._y + this.player._y) - dy2;
if ((pmuki != omuki) || (sp_on == 900)) {
play_name2 = "utu" + ((pmuki + 10) + (Math.ceil(sp_on / 900) * 20));
_root.map_s.gun1.gotoandstop(play_name2);
_root.map_s.gun2.gotoandstop(play_name2);
dpth = 250002 + (((_root.map_s.gun1._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200);
_root.map_s.gun1.swapDepths(dpth);
dpth = (250002 + (((_root.map_s.gun2._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200)) + 1;
_root.map_s.gun2.swapDepths(dpth);
}
omuki = 2;
}
i = omuki * -1;
for ( ; i < (omuki + 1) ; i++) {
dpth = (_root.arrow_n - omuki) + i;
map_obj_name = "arrow" + dpth;
if (sp_on != 900) {
if (sp_on == 1) {
eval ("_root.map_s." + map_obj_name).gotoandplay("tamam0x");
}
} else {
eval ("_root.map_s." + map_obj_name).gotoandplay("tamam10");
}
eval ("_root.map_s." + map_obj_name).pw = 1 + Math.ceil(sp_on / 900);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = ((this._x + (dx * 20)) + 240) + (dx2 * i);
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy * 20)) + this.player._y) + (dy2 * i);
dpth = (((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) - omuki) + i;
if (_root.jump_on == 0) {
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
}
if (_root.jump_on < 0) {
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
omuki = pmuki;
}
} else {
play_name = "tamam" + (Math.ceil(sp_on / 900) * 10);
_root.arrow_n++;
if (25 < _root.arrow_n) {
_root.arrow_n = 5;
}
dpth = _root.arrow_n;
map_obj_name = "arrow" + dpth;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + dpth);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 20)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 20)) + 160;
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n;
eval ("_root.map_s." + map_obj_name).pw = 1 + Math.ceil(sp_on / 900);
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
arrow_cnt = 20;
arrow_tame = 0;
arrow_kamae = -1;
}
_root.bg2.bg2a._x = ((((_root.map_s._x / 8) - (300 * math.floor((_root.map_s._y / 8) / 360))) % 480) + 480) % 480;
_root.bg2.bg2a._y = (((_root.map_s._y / 8) % 360) + 360) % 360;
_root.bg2.bg2b._x = (((_root.map_s._x / 4) % 480) + 480) % 480;
_root.bg2.bg2b._y = ((((_root.map_s._y / 4) + (230 * math.floor((_root.map_s._x / 4) / 480))) % 360) + 360) % 360;
_root.map_s.txt0._x = this._x;
_root.map_s.txt0._y = this._y;
_root.map_s.txt0.bosshpbar._xscale = 200 * _root.bosshp;
px = px0;
py = py0;
_root.px = px;
_root.py = py;
_root.flag1 = _root.bg1._x;
loop_cnt++;
if (500 < loop_cnt) {
loop_cnt = 0;
}
if (0 < arrow_cnt) {
arrow_cnt--;
}
if (arrow_cnt == 10) {
arrow_kamae = 1;
}
if (arrow_cnt < 0) {
arrow_cnt++;
}
if (0 < sp_on) {
sp_on--;
}
_root.map_s.txt0.sptxt.gsbar._xscale = 30 * Math.floor(sp_on / 30);
_root.jikan--;
if ((_root.jikan < 0) && (timeup_on == 0)) {
_root.jikan = 0;
_root.map_s.gun1.removeMovieClip();
_root.map_s.gun2.removeMovieClip();
if (_root.jump_on == 0) {
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
_root.jikan = 0;
timeup_on = 90;
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
this.player.gotoandplay("timeup");
}
}
}
}
}
Instance of Symbol 140 MovieClip [sp_character3] "player3" in Symbol 1012 MovieClip [sp_map2] Frame 4
onClipEvent (load) {
px0 = 0;
py0 = 0;
px = 5.5;
py = 8.5;
qx = 0;
qy = 0;
rakka1 = 0;
teki_ptn = 0;
loop_cnt = 0;
pmuki = 5;
arrow_cnt = 0;
mouse_kakudo = 0;
move_on = 0;
teki_ran = 0;
arrow_tame = 0;
arrow_on = 0;
timeup_on = 0;
arrow_kamae = 1;
sp_on = 0;
muteki = 0;
bcnt = 0;
}
onClipEvent (enterFrame) {
if (((_root.charan == 3) && (this != _root.map_os2.player3)) && (this != _root.map_s.player3)) {
if (!(((timeup_on == 0) && (_root.bossmode != 1)) && (_root.bossmode < 3))) {
if (_root.bossmode != 1) {
if (_root.bossmode != 3) {
if (_root.bossmode != 4) {
if (0 < timeup_on) {
_root.jikan = 0;
timeup_on--;
if (timeup_on == 1) {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
_root.gotoandplay("end");
}
}
} else {
if (bcnt != 0) {
if (bcnt != 130) {
if (bcnt != 160) {
if (bcnt != 161) {
if (!((161 < bcnt) && (bcnt < 201))) {
if (bcnt != 255) {
if (bcnt != 263) {
if (bcnt == 269) {
_root.map_s.bossx.gotoandplay("tatu0");
_root.se_baku.start();
}
} else {
_root.homsp = 1;
_root.map_s.txt0.timestop.gotoandstop("b");
k = 0;
for ( ; k < 8 ; k++) {
map_obj_name = "arrow" + (90 + k);
eval ("_root.map_s." + map_obj_name).pw = 3;
eval ("_root.map_s." + map_obj_name).tame = 250;
}
}
} else {
_root.se_kachi1.start();
}
} else {
if (bcnt == 180) {
this.player.gotoandstop("end1");
}
k = 0;
for ( ; k < 8 ; k++) {
map_obj_name = "arrow" + (90 + k);
eval ("_root.map_s." + map_obj_name)._y = eval ("_root.map_s." + map_obj_name)._y - (10 - ((bcnt - 162) / 2));
}
}
} else {
map_obj_name = "arrow90";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow91";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow92";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow93";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow94";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow95";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
}
} else {
_root.arrow_n = 1;
play_name = "tamamh1";
k = 0;
for ( ; k < 8 ; k++) {
map_obj_name = "arrow" + (90 + k);
dx2 = ((_root.map_s.bossx._x + 16) - 16) + (32 * Math.cos((k * Math.PI) / 4));
dy2 = (_root.map_s.bossx._y - 16) + (32 * Math.sin((k * Math.PI) / 4));
kakudo = (Math.atan2((this._y + 160) - dy2, (this._x + 240) - dx2) * 180) / Math.PI;
dy = (((this._y + 160) - dy2) * -1) / 40;
dx = (((this._x + 240) - dx2) * -1) / 40;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name)._x = (this._x + dx) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + dy) + 160;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
eval ("_root.map_s." + map_obj_name).chara_n = 3 + k;
_root.arrow_n++;
}
if (10 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
_root.se_pwup.start();
_root.map_s.txt0.timestop.gotoandstop("a");
bcnt = _root.map_s.bossx._currentframe;
_root.map_s.bossx.gotoandstop(bcnt);
bcnt = 130;
}
} else {
this._alpha = 100;
_root.map_s.txt0.bossname.gotoandplay("siro3");
_root.se_pwup.start();
_root.map_s.txt0.bosshpbar._xscale = 0;
_root.homsp = 0;
kakudo = (Math.atan2(((this._y + 160) - _root.map_s.bossx._y) + 16, (((this._x + 240) - _root.map_s.bossx._x) - 16) + 16) * 180) / Math.PI;
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
pmuki = 4;
} else {
pmuki = 5;
}
} else {
pmuki = 6;
}
} else {
pmuki = 7;
}
} else {
pmuki = 3;
}
} else {
pmuki = 2;
}
} else {
pmuki = 1;
}
} else {
pmuki = 8;
}
this.player.gotoandstop("utu" + pmuki);
dy = ((((this._y + 160) - _root.map_s.bossx._y) + 16) * -1) / 60;
dx = (((((this._x + 240) - _root.map_s.bossx._x) - 16) + 16) * -1) / 60;
}
if ((269 < bcnt) && (0 < _root.map_s.bossx._alpha)) {
_root.map_s.bossx._alpha = _root.map_s.bossx._alpha - 1;
}
if (bcnt < 60) {
_root.map_s._x = _root.map_s._x - (dx / 2);
_root.map_s._y = _root.map_s._y - (dy / 2);
_root.map_s.txt0._x = _root.map_s.txt0._x + (dx / 2);
_root.map_s.txt0._y = _root.map_s.txt0._y + (dy / 2);
_root.bg2.bg2a._x = ((((_root.map_s._x / 8) - (300 * math.floor((_root.map_s._y / 8) / 360))) % 480) + 480) % 480;
_root.bg2.bg2a._y = (((_root.map_s._y / 8) % 360) + 360) % 360;
_root.bg2.bg2b._x = (((_root.map_s._x / 4) % 480) + 480) % 480;
_root.bg2.bg2b._y = ((((_root.map_s._y / 4) + (230 * math.floor((_root.map_s._x / 4) / 480))) % 360) + 360) % 360;
}
if (bcnt != 300) {
if (bcnt == 700) {
_root.bossmode = 5;
_root.gotoandplay("gameclear");
}
} else {
_root.bgm1.gotoandplay("play3");
_root.score = _root.score + 5000;
}
if (bcnt < 1200) {
bcnt++;
}
}
} else if (bcnt != 3) {
bcnt++;
} else {
bcnt = 0;
_root.bossmode = 4;
}
} else {
if (bcnt >= 40) {
if (bcnt != 40) {
if (bcnt != 80) {
if (bcnt != 160) {
if (bcnt >= 180) {
if (bcnt >= 220) {
move_on = 0;
_root.bgm1.gotoAndPlay("play2");
_root.map_s.bossrope0.gotoandplay("kesu");
teki_ptn = 1;
_root.bossmode = 2;
bcnt = 0;
} else {
_root.bosshp = 40;
_root.map_s._x = _root.map_s._x + 3;
_root.map_s._y = _root.map_s._y - 3;
_root.map_s.txt0._x = _root.map_s.txt0._x - 3;
_root.map_s.txt0._y = _root.map_s.txt0._y + 3;
bcnt++;
}
} else {
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
bcnt++;
_root.se_doon.start();
}
} else {
map_obj_name = "bossx";
_root.enmy_n = 0;
_root.map_s.boss0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
i = 213;
j = 7;
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).gotoandplay(1);
_root.enmy_n = 1;
_root.enmy_n0 = 0;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
bcnt++;
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ix = Math.floor(px0 / 32) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
_root.mapx[jx] = (_root.mapx[jx].substring(0, (64 * 3) + 12) + "0000") + _root.mapx[jx].substring((64 * 3) + 16);
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
} else {
_root.map_s._x = _root.map_s._x - 3;
_root.map_s._y = _root.map_s._y + 3;
_root.map_s.txt0._x = _root.map_s.txt0._x + 3;
_root.map_s.txt0._y = _root.map_s.txt0._y - 3;
bcnt++;
}
if ((((((bcnt == 180) || (bcnt == 185)) || (bcnt == 190)) || (bcnt == 200)) || (bcnt == 205)) || (bcnt == 210)) {
map_obj_namex = "teki" + bcnt;
_root.map_s.tekib0.duplicateMovieClip(map_obj_namex, 5001 + Math.floor(bcnt / 5));
i = 213;
j = 7;
eval ("_root.map_s." + map_obj_namex)._x = ((((i * 32) + (j * 32)) + 16) + Math.floor(Math.random() * 8)) - 4;
eval ("_root.map_s." + map_obj_namex)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_namex).tame = 65;
eval ("_root.map_s." + map_obj_namex).gotoandplay("rakka2");
_root.se_shot.start();
}
_root.bg2.bg2a._x = ((((_root.map_s._x / 8) - (300 * math.floor((_root.map_s._y / 8) / 360))) % 480) + 480) % 480;
_root.bg2.bg2a._y = (((_root.map_s._y / 8) % 360) + 360) % 360;
_root.bg2.bg2b._x = (((_root.map_s._x / 4) % 480) + 480) % 480;
_root.bg2.bg2b._y = ((((_root.map_s._y / 4) + (230 * math.floor((_root.map_s._x / 4) / 480))) % 360) + 360) % 360;
}
} else {
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
dxy = 1;
mx = 0;
my = 0;
if (mousemode == 1) {
mouse_kakudo = (Math.atan2(((_root._ymouse - 160) - 56) - 16, (_root._xmouse - 240) + 16) * 180) / Math.PI;
_root.flag2 = Math.floor(mouse_kakudo);
if (!(((45 + 22.5) >= mouse_kakudo) && ((45 - 22.5) < mouse_kakudo))) {
if (!(((135 + 22.5) >= mouse_kakudo) && ((135 - 22.5) < mouse_kakudo))) {
if (!(((-135 + 22.5) >= mouse_kakudo) && ((-135 - 22.5) < mouse_kakudo))) {
if (!(((-45 + 22.5) >= mouse_kakudo) && ((-45 - 22.5) < mouse_kakudo))) {
if (!(((-90 + 22.5) >= mouse_kakudo) && ((-90 - 22.5) < mouse_kakudo))) {
if (!(((0 + 22.5) >= mouse_kakudo) && ((-22.5) < mouse_kakudo))) {
if (!(((90 + 22.5) >= mouse_kakudo) && ((90 - 22.5) < mouse_kakudo))) {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
}
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
}
}
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.PGDN)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.END)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.HOME)))) {
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.PGUP)))) {
if (!Key.isDown(Key.RIGHT)) {
if (!Key.isDown(Key.LEFT)) {
if (!Key.isDown(Key.DOWN)) {
if (!Key.isDown(Key.UP)) {
tenkey = 0;
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
tenkey = 1;
mousemode = 0;
}
if (!(Key.isDown(1) || (tenkey == 1))) {
dxy = 1;
mx = 0;
my = 0;
move_on = 0;
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + pmuki);
}
} else {
if (Key.isDown(1)) {
mousemode = 1;
}
if (move_on != (pmuki * arrow_kamae)) {
if (arrow_kamae != -1) {
this.player.gotoandplay("tatu" + pmuki);
} else {
this.player.gotoandplay("utu" + pmuki);
}
move_on = pmuki * arrow_kamae;
}
}
if ((Key.isDown(77) || (Key.isDown(67))) && (_root.jump_on == 0)) {
_root.jump_on = 23;
_root.se_jump.start();
}
if ((((Key.isDown(66) || (Key.isDown(90))) && (0 < _root.sp)) && (-20 < _root.jump_on)) && (sp_on < 1)) {
sp_on = 300;
_root.homsp = 0;
_root.se_pwup.start();
_root.sp--;
_root.map_s.txt0.timestop.gotoandstop("a");
sp_on = _root.bg2.bg2c._currentframe;
_root.bg2.bg2c.gotoandstop(sp_on);
sp_on = 300;
}
if (0 >= _root.jump_on) {
if (!((_root.jump_on < 0) && (-70 < _root.jump_on))) {
rakka1 = 0;
} else {
this.player._y = this.player._y - (_root.jump_on - 10);
_root.jump_on--;
if (_root.jump_on == -20) {
if (sp_on != 0) {
_root.se_warp1.start();
_root.map_s.player1.swapDepths(250001);
_root.map_s.player1.player.gotoandstop("tatu1");
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
sp_on = 1;
_root.map_s._x = qx;
_root.map_s._y = qy;
_root.map_s.player1._x = -32 - qx;
_root.map_s.player1._y = 56 - qy;
muteki = 150;
move_on = 0;
this._alpha = 50;
arrow_tame = 0;
arrow_cnt = 18;
this.player._y = 160;
} else {
_root.se_fall.start();
}
}
if (_root.jump_on < -50) {
_root.enmy_n0 = 0;
rakka1 = 0;
_root.jump_on = -100;
_root.tobashi = 0;
_root.gotoandplay("end");
}
}
} else {
this.player._y = this.player._y - (_root.jump_on - 12);
_root.jump_on--;
rakka1 = 1;
}
if (0 < muteki) {
_root.tobashi = 0;
muteki--;
if (muteki < 1) {
this._alpha = 100;
}
}
if (0 < _root.tobashi) {
_root.tobashi--;
_root.map_s._x = _root.map_s._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y + (((_root.my2 * _root.tobashi) * 2) / 10);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b") {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c") {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x + (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((7 * _root.tobashi) * 2) / 10);
this._x = this._x - (((7 * _root.tobashi) * 2) / 10);
this._y = this._y - (((7 * _root.tobashi) * 2) / 10);
}
} else {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x - (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((7 * _root.tobashi) * 2) / 10);
this._x = this._x + (((7 * _root.tobashi) * 2) / 10);
this._y = this._y + (((7 * _root.tobashi) * 2) / 10);
}
}
k = 0;
for ( ; k < dxy ; k++) {
_root.map_s._x = _root.map_s._x - (mx / 2);
_root.map_s._y = _root.map_s._y - (my / 2);
this._x = this._x + (mx / 2);
this._y = this._y + (my / 2);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.jump_on >= 0) {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
this.player_kage.gotoandstop(1);
if (_root.jump_on == 0) {
qx = _root.map_s._x;
qy = _root.map_s._y;
}
} else if (!((rakka1 == 0) && (_root.tobashi == 0))) {
this.player_kage.gotoandstop("kesu");
if ((_root.jump_on == 0) || (0 < _root.tobashi)) {
k = 100;
dy = _root.jump_on - 12;
_root.jump_on = -1;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths(50090 - (((ix1 + 16) - iy1) * 100));
if (!((192 < ix1) || (128 < _root.startx))) {
if (!((128 < ix1) || (64 < _root.startx))) {
if (64 < ix1) {
_root.startx = 64;
_root.starty = 6;
}
} else {
_root.startx = 128;
_root.starty = 3;
}
} else {
_root.startx = 192;
_root.starty = 4;
}
}
} else {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c")) {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
if (((207 < Math.floor(px0 / 2)) && (_root.jump_on == 0)) && (_root.bossmode == 0)) {
bcnt = 0;
_root.bossmode = 1;
_root.bgm1.gotoAndPlay("end");
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + pmuki);
}
}
if (_root.bossmode == 2) {
if (_root.bosshp < 1) {
_root.bosshp = 0;
}
if (!((_root.bosshp < 1) && (_root.jump_on == 0))) {
if (_root.bosshp < 20) {
teki_ptn = 2;
}
} else {
bcnt = 0;
_root.bossmode = 3;
_root.bosshp = 0;
}
}
if (0 < teki_ptn) {
if ((_root.enmy_n0 < 89) && (isu_cnt >= (120 - (teki_ptn * 30)))) {
if (_root.bossmode != 0) {
if (_root.enmy_n0 < 0) {
_root.enmy_n0 = 0;
}
if (3 >= _root.enmy_n0) {
i = (Math.floor(px0 / 2) + Math.floor(Math.random() * 3)) - 1;
i = Math.min(250, Math.max(0, i));
j = (Math.floor(py0 / 2) + Math.floor(Math.random() * 3)) - 1;
j = Math.min(15, Math.max(0, j));
if ((_root.mapx[j].charAt(i) != 0) && (_root.homsp == 1)) {
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.tekib0.duplicateMovieClip(map_obj_name, 58500 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 0;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
isu_cnt = 0;
}
} else {
i = (Math.floor(px0 / 2) + Math.floor(Math.random() * 5)) - 2;
i = Math.min(250, Math.max(0, i));
j = (Math.floor(py0 / 2) + Math.floor(Math.random() * 5)) - 2;
j = Math.min(15, Math.max(0, j));
if ((_root.mapx[j].charAt(i) != 0) && (_root.homsp == 1)) {
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.chair0.duplicateMovieClip(map_obj_name, 58500 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 0;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
isu_cnt = 0;
}
}
} else {
i = Math.floor(px0 / 2) + Math.floor(Math.random() * 5);
i = Math.min(250, Math.max(0, i));
j = (Math.floor(py0 / 2) + Math.floor(Math.random() * 5)) - 2;
j = Math.min(15, Math.max(0, j));
if ((_root.mapx[j].charAt(i) != 0) && (_root.homsp == 1)) {
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.chair0.duplicateMovieClip(map_obj_name, 58500 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 0;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
isu_cnt = 0;
}
}
}
isu_cnt = isu_cnt + _root.homsp;
}
if (Math.floor(px / 32) >= Math.floor(px0 / 32)) {
if (Math.floor(px0 / 32) < Math.floor(px / 32)) {
ij = 0;
for ( ; ij < (Math.floor(px / 32) - Math.floor(px0 / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) + 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
} else {
ij = 0;
for ( ; ij < (Math.floor(px0 / 32) - Math.floor(px / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) + 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) - 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
if (Math.floor(px / 2) < Math.floor(px0 / 2)) {
ij = 0;
for ( ; ij < (Math.floor(px0 / 2) - Math.floor(px / 2)) ; ij++) {
i = (Math.floor(px0 / 2) + 8) - ij;
if (i < 0) {
i = 0;
}
if (250 < i) {
i = 250;
}
j = 0;
for ( ; j < 16 ; j++) {
if (_root.mapx[j].charAt(i) != "2") {
if (_root.mapx[j].charAt(i) != "3") {
if (_root.mapx[j].charAt(i) != "9") {
if (_root.mapx[j].charAt(i) != "8") {
if (_root.mapx[j].charAt(i) != "7") {
if (_root.mapx[j].charAt(i) != "6") {
if (_root.mapx[j].charAt(i) == "8") {
if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.chair0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).chair01._y = -300;
_root.enmy_n++;
_root.enmy_n0++;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
} else {
teki_ptn = 0;
}
} else {
teki_ptn = 2;
}
} else {
teki_ptn = 1;
}
} else {
map_obj_name = "gs1";
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.gs0.duplicateMovieClip(map_obj_name, 58000);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.bigball0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.teki0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
}
}
if (pmuki != 1) {
if (pmuki != 2) {
if (pmuki != 3) {
if (pmuki != 4) {
if (pmuki != 5) {
if (pmuki != 6) {
if (pmuki != 7) {
dx = -10 / 8;
dy = 0;
dx2 = -7 / 8;
dy2 = -7 / 8;
} else {
dx = -7 / 8;
dy = -7 / 8;
dx2 = 0;
dy2 = -10 / 8;
}
} else {
dx = 0;
dy = -10 / 8;
dx2 = 7 / 8;
dy2 = -7 / 8;
}
} else {
dx = 7 / 8;
dy = -7 / 8;
dx2 = 10 / 8;
dy2 = 0;
}
} else {
dx = 10 / 8;
dy = 0;
dx2 = 7 / 8;
dy2 = 7 / 8;
}
} else {
dx = 7 / 8;
dy = 7 / 8;
dx2 = 0;
dy2 = 10 / 8;
}
} else {
dx = 0;
dy = 10 / 8;
dx2 = -7 / 8;
dy2 = 7 / 8;
}
} else {
dx = -7 / 8;
dy = 7 / 8;
dx2 = -10 / 8;
dy2 = 0;
}
if (sp_on < 1) {
dx2 = 0;
dy2 = 0;
}
map_obj_name = "arrow" + _root.arrow_n;
if (!(((Key.isDown(78) || (Key.isDown(88))) && (_root.jump_on == 0)) && (arrow_cnt == 0))) {
if (!(((Key.isDown(78) || (Key.isDown(88))) || (0 < _root.jump_on)) && (arrow_cnt == 19))) {
if (arrow_cnt == 19) {
eval ("_root.map_s." + map_obj_name).tame = 1;
if (arrow_tame < 60) {
if (arrow_tame < 25) {
play_name = "tamamh1";
eval ("_root.map_s." + map_obj_name).pw = 1;
} else {
play_name = "tamamh2";
eval ("_root.map_s." + map_obj_name).pw = 2;
}
} else {
play_name = "tamamh3";
eval ("_root.map_s." + map_obj_name).pw = 3;
}
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + 160;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
_root.se_shot.start();
_root.arrow_n++;
if (12 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
arrow_cnt++;
arrow_tame++;
if (arrow_tame < 60) {
if (arrow_tame < 25) {
play_name = "tamamh1";
eval ("_root.map_s." + map_obj_name).pw = 1;
} else {
play_name = "tamamh2";
eval ("_root.map_s." + map_obj_name).pw = 2;
}
} else {
play_name = "tamamh3";
eval ("_root.map_s." + map_obj_name).pw = 3;
}
if ((arrow_tame == 25) || (arrow_tame == 60)) {
omuki = 0;
}
if (pmuki != omuki) {
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
}
omuki = pmuki;
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + this.player._y;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
if (_root.jump_on < 0) {
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
} else {
play_name = "tamamh1";
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + 160;
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n + 3;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
arrow_cnt = 20;
arrow_tame = 0;
arrow_kamae = -1;
omuki = pmuki;
if (7 < sp_on) {
sp_on = sp_on - 20;
if (sp_on < 8) {
sp_on = 7;
}
}
}
_root.bg2.bg2a._x = ((((_root.map_s._x / 8) - (300 * math.floor((_root.map_s._y / 8) / 360))) % 480) + 480) % 480;
_root.bg2.bg2a._y = (((_root.map_s._y / 8) % 360) + 360) % 360;
_root.bg2.bg2b._x = (((_root.map_s._x / 4) % 480) + 480) % 480;
_root.bg2.bg2b._y = ((((_root.map_s._y / 4) + (230 * math.floor((_root.map_s._x / 4) / 480))) % 360) + 360) % 360;
_root.map_s.txt0._x = this._x;
_root.map_s.txt0._y = this._y;
_root.map_s.txt0.bosshpbar._xscale = 200 * _root.bosshp;
px = px0;
py = py0;
_root.px = px;
_root.py = py;
_root.flag1 = _root.bg1._x;
loop_cnt++;
if (500 < loop_cnt) {
loop_cnt = 0;
}
if (0 < arrow_cnt) {
arrow_cnt--;
}
if (arrow_cnt == 18) {
arrow_kamae = 1;
}
if (arrow_cnt < 0) {
arrow_cnt++;
}
if (0 < sp_on) {
if (sp_on != 1) {
if (sp_on == 7) {
_root.se_kachi1.start();
}
} else {
_root.map_s.txt0.timestop.gotoandstop("b");
sp_on = _root.bg2.bg2c._currentframe;
_root.bg2.bg2c.gotoandplay(sp_on);
sp_on = 1;
_root.homsp = 1;
}
sp_on--;
}
_root.map_s.txt0.sptxt.gsbar._xscale = 30 * Math.floor(sp_on / 30);
_root.jikan--;
if ((_root.jikan < 0) && (timeup_on == 0)) {
_root.jikan = 0;
if (_root.jump_on == 0) {
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
_root.jikan = 0;
timeup_on = 90;
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
this.player.gotoandplay("timeup");
}
}
}
}
}
Instance of Symbol 148 MovieClip [sp_character4] "player4" in Symbol 1012 MovieClip [sp_map2] Frame 5
onClipEvent (load) {
px0 = 0;
py0 = 0;
px = 5.5;
py = 8.5;
qx = 0;
qy = 0;
rakka1 = 0;
teki_ptn = 0;
loop_cnt = 0;
pmuki = 5;
arrow_cnt = 0;
mouse_kakudo = 0;
move_on = 0;
teki_ran = 0;
arrow_tame = 0;
arrow_on = 0;
timeup_on = 0;
arrow_kamae = 1;
sp_on = 0;
muteki = 0;
arw_pw = 0;
bcnt = 0;
tenkey = 0;
mousemode = 0;
}
onClipEvent (enterFrame) {
if (((_root.charan == 4) && (this != _root.map_os2.player4)) && (this != _root.map_s.player4)) {
if (!(((timeup_on == 0) && (_root.bossmode != 1)) && (_root.bossmode < 3))) {
if (_root.bossmode != 1) {
if (_root.bossmode != 3) {
if (_root.bossmode != 4) {
if (0 < timeup_on) {
_root.jikan = 0;
timeup_on--;
if (timeup_on == 1) {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
_root.gotoandplay("end");
}
}
} else {
if (bcnt != 0) {
if (bcnt != 130) {
if (bcnt != 161) {
if ((161 < bcnt) && (bcnt < 181)) {
this._x = this._x + dx;
this._y = this._y + dy;
this.player._y = this.player._y + (bcnt - 171);
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx2 * 2)) + 240;
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy2 * 2)) + this.player._y) - 8;
if (bcnt == 175) {
_root.map_s.bossx.gotoandplay("tatu0");
_root.se_baku.start();
}
}
} else {
this.player.gotoandstop("utub" + pmuki);
if (pmuki != 1) {
if (pmuki != 2) {
if (pmuki != 3) {
if (pmuki != 4) {
if (pmuki != 5) {
if (pmuki != 6) {
if (pmuki != 7) {
dx2 = -18;
dy2 = 5;
} else {
dx2 = -8;
dy2 = -13;
}
} else {
dx2 = 6;
dy2 = -23;
}
} else {
dx2 = 16;
dy2 = -5;
}
} else {
dx2 = 17;
dy2 = 5;
}
} else {
dx2 = 8;
dy2 = 18;
}
} else {
dx2 = -6;
dy2 = 23;
}
} else {
dx2 = -16;
dy2 = 15;
}
map_obj_name = "arrow" + 99;
play_name = "tamaan31";
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx2 * 2)) + 240;
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy2 * 2)) + this.player._y) - 8;
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 4;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
_root.se_byoro7.start();
}
} else {
dx2 = _root.map_s.bossx._x + 16;
dy2 = _root.map_s.bossx._y + 16;
kakudo = (Math.atan2((this._y + 160) - dy2, (this._x + 240) - dx2) * 180) / Math.PI;
dy = (((this._y + 160) - dy2) * -1) / 20;
dx = (((this._x + 240) - dx2) * -1) / 20;
_root.arrow_n = 1;
play_name = "tamamh1";
_root.se_byoro2.start();
k = 0;
for ( ; k < 6 ; k++) {
map_obj_name = "arrow" + (90 + k);
dx2 = _root.map_s.bossx._x + (64 * Math.cos(((k * Math.PI) / 3) + 1.1));
dy2 = (_root.map_s.bossx._y + 16) + (64 * Math.sin(((k * Math.PI) / 3) + 1.1));
_root.map_s.gun0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
eval ("_root.map_s." + map_obj_name).gotoandplay("ank1");
eval ("_root.map_s." + map_obj_name)._x = dx2;
eval ("_root.map_s." + map_obj_name)._y = dy2;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + k) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
_root.arrow_n++;
}
if (10 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
this._alpha = 100;
_root.map_s.txt0.bossname.gotoandplay("siro4");
_root.se_pwup.start();
_root.map_s.txt0.bosshpbar._xscale = 0;
_root.homsp = 0;
kakudo = (Math.atan2(((this._y + 160) - _root.map_s.bossx._y) + 16, ((this._x + 240) - _root.map_s.bossx._x) - 16) * 180) / Math.PI;
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
pmuki = 4;
} else {
pmuki = 5;
}
} else {
pmuki = 6;
}
} else {
pmuki = 7;
}
} else {
pmuki = 3;
}
} else {
pmuki = 2;
}
} else {
pmuki = 1;
}
} else {
pmuki = 8;
}
this.player.gotoandstop("utu" + pmuki);
dy = ((((this._y + 160) - _root.map_s.bossx._y) + 16) * -1) / 60;
dx = (((this._x + 240) - _root.map_s.bossx._x) * -1) / 60;
}
if ((181 < bcnt) && (0 < _root.map_s.bossx._alpha)) {
_root.map_s.bossx._alpha = _root.map_s.bossx._alpha - 1;
}
if (bcnt < 60) {
_root.map_s._x = _root.map_s._x - (dx / 2);
_root.map_s._y = _root.map_s._y - (dy / 2);
_root.map_s.txt0._x = _root.map_s.txt0._x + (dx / 2);
_root.map_s.txt0._y = _root.map_s.txt0._y + (dy / 2);
}
if (bcnt != 210) {
if (bcnt == 700) {
_root.bossmode = 5;
_root.gotoandplay("gameclear");
}
} else {
_root.bgm1.gotoandplay("play3");
_root.score = _root.score + 5000;
}
if (bcnt < 1200) {
bcnt++;
}
}
} else if (bcnt != 3) {
bcnt++;
} else {
bcnt = 0;
_root.bossmode = 4;
}
} else {
if (bcnt >= 40) {
if (bcnt != 40) {
if (bcnt != 80) {
if (bcnt != 160) {
if (bcnt >= 180) {
if (bcnt >= 220) {
move_on = 0;
_root.bgm1.gotoAndPlay("play2");
_root.map_s.bossrope0.gotoandplay("kesu");
teki_ptn = 1;
_root.bossmode = 2;
bcnt = 0;
} else {
_root.bosshp = 40;
_root.map_s._x = _root.map_s._x + 3;
_root.map_s._y = _root.map_s._y - 3;
_root.map_s.txt0._x = _root.map_s.txt0._x - 3;
_root.map_s.txt0._y = _root.map_s.txt0._y + 3;
bcnt++;
}
} else {
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
bcnt++;
_root.se_doon.start();
}
} else {
map_obj_name = "bossx";
_root.enmy_n = 0;
_root.map_s.boss0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
i = 213;
j = 7;
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).gotoandplay(1);
_root.enmy_n = 1;
_root.enmy_n0 = 0;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
bcnt++;
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ix = Math.floor(px0 / 32) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
_root.mapx[jx] = (_root.mapx[jx].substring(0, (64 * 3) + 12) + "0000") + _root.mapx[jx].substring((64 * 3) + 16);
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
} else {
_root.map_s._x = _root.map_s._x - 3;
_root.map_s._y = _root.map_s._y + 3;
_root.map_s.txt0._x = _root.map_s.txt0._x + 3;
_root.map_s.txt0._y = _root.map_s.txt0._y - 3;
bcnt++;
}
if ((((((bcnt == 180) || (bcnt == 185)) || (bcnt == 190)) || (bcnt == 200)) || (bcnt == 205)) || (bcnt == 210)) {
map_obj_namex = "teki" + bcnt;
_root.map_s.tekib0.duplicateMovieClip(map_obj_namex, 5001 + Math.floor(bcnt / 5));
i = 213;
j = 7;
eval ("_root.map_s." + map_obj_namex)._x = ((((i * 32) + (j * 32)) + 16) + Math.floor(Math.random() * 8)) - 4;
eval ("_root.map_s." + map_obj_namex)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_namex).tame = 65;
eval ("_root.map_s." + map_obj_namex).gotoandplay("rakka2");
_root.se_shot.start();
}
_root.bg2.bg2a._x = ((((_root.map_s._x / 8) - (300 * math.floor((_root.map_s._y / 8) / 360))) % 480) + 480) % 480;
_root.bg2.bg2a._y = (((_root.map_s._y / 8) % 360) + 360) % 360;
_root.bg2.bg2b._x = (((_root.map_s._x / 4) % 480) + 480) % 480;
_root.bg2.bg2b._y = ((((_root.map_s._y / 4) + (230 * math.floor((_root.map_s._x / 4) / 480))) % 360) + 360) % 360;
}
} else {
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
dxy = 1;
mx = 0;
my = 0;
if (mousemode == 1) {
mouse_kakudo = (Math.atan2(((_root._ymouse - 160) - 56) - 16, (_root._xmouse - 240) + 16) * 180) / Math.PI;
_root.flag2 = Math.floor(mouse_kakudo);
if (!(((45 + 22.5) >= mouse_kakudo) && ((45 - 22.5) < mouse_kakudo))) {
if (!(((135 + 22.5) >= mouse_kakudo) && ((135 - 22.5) < mouse_kakudo))) {
if (!(((-135 + 22.5) >= mouse_kakudo) && ((-135 - 22.5) < mouse_kakudo))) {
if (!(((-45 + 22.5) >= mouse_kakudo) && ((-45 - 22.5) < mouse_kakudo))) {
if (!(((-90 + 22.5) >= mouse_kakudo) && ((-90 - 22.5) < mouse_kakudo))) {
if (!(((0 + 22.5) >= mouse_kakudo) && ((-22.5) < mouse_kakudo))) {
if (!(((90 + 22.5) >= mouse_kakudo) && ((90 - 22.5) < mouse_kakudo))) {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
}
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
}
}
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.PGDN)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.END)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.HOME)))) {
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.PGUP)))) {
if (!Key.isDown(Key.RIGHT)) {
if (!Key.isDown(Key.LEFT)) {
if (!Key.isDown(Key.DOWN)) {
if (!Key.isDown(Key.UP)) {
tenkey = 0;
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
tenkey = 1;
mousemode = 0;
}
if (!(Key.isDown(1) || (tenkey == 1))) {
dxy = 1;
mx = 0;
my = 0;
move_on = 0;
if (arrow_kamae != -1) {
if (arrow_kamae == 1) {
this.player.gotoandstop("tatu" + pmuki);
}
} else {
this.player.gotoandstop("utu" + pmuki);
}
} else {
if (Key.isDown(1)) {
mousemode = 1;
}
if (!(((18 >= arrow_cnt) && ((11 - arw_pw) < arrow_cnt)) && (arrow_kamae != 1))) {
if (((11 - arw_pw) >= arrow_cnt) && (1 < arrow_cnt)) {
arrow_kamae = 1;
arw_pw = 0;
}
} else {
mx = 0;
my = 0;
}
if (move_on != (pmuki * arrow_kamae)) {
if (arrow_kamae != -1) {
if (arrow_kamae == 1) {
this.player.gotoandplay("tatu" + pmuki);
}
} else {
this.player.gotoandplay("utu" + pmuki);
}
move_on = pmuki * arrow_kamae;
}
}
if ((Key.isDown(77) || (Key.isDown(67))) && (_root.jump_on == 0)) {
_root.jump_on = 23;
_root.se_jump.start();
}
if ((((Key.isDown(66) || (Key.isDown(90))) && (0 < _root.sp)) && (-20 < _root.jump_on)) && (sp_on < 1)) {
sp_on = 600;
_root.se_pwup.start();
_root.sp--;
this._alpha = 100;
play_name = "bari1";
map_obj_name = "arrow" + 20;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + 20);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 0;
eval ("_root.map_s." + map_obj_name).tdy = dy * 0;
eval ("_root.map_s." + map_obj_name)._x = this._x + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + 160) + 1;
eval ("_root.map_s." + map_obj_name).chara_n = 20 + 3;
dpth = ((250001 + ((((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) - 1) * 200)) + 20) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
play_name = "bari2";
map_obj_name = "arrow" + 21;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + 21);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 0;
eval ("_root.map_s." + map_obj_name).tdy = dy * 0;
eval ("_root.map_s." + map_obj_name)._x = this._x + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + 160) - 1;
eval ("_root.map_s." + map_obj_name).chara_n = 21 + 3;
dpth = ((250001 + ((((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) + 1) * 200)) + 21) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
}
if (0 >= _root.jump_on) {
if (!((_root.jump_on < 0) && (-70 < _root.jump_on))) {
rakka1 = 0;
} else {
this.player._y = this.player._y - (_root.jump_on - 10);
_root.jump_on--;
if (_root.jump_on == -20) {
map_obj_name = "arrow" + 20;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
map_obj_name = "arrow" + 21;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
if (sp_on != 0) {
_root.se_warp1.start();
_root.map_s.player1.swapDepths(250001);
_root.map_s.player1.player.gotoandstop("tatu1");
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
sp_on = 0;
_root.map_s._x = qx;
_root.map_s._y = qy;
_root.map_s.player1._x = -32 - qx;
_root.map_s.player1._y = 56 - qy;
muteki = 150;
move_on = 0;
this._alpha = 50;
arrow_tame = 0;
arrow_cnt = 18;
this.player._y = 160;
} else {
_root.se_fall.start();
}
}
if (_root.jump_on < -50) {
_root.enmy_n0 = 0;
rakka1 = 0;
_root.jump_on = -100;
_root.tobashi = 0;
_root.gotoandplay("end");
}
}
} else {
this.player._y = this.player._y - (_root.jump_on - 12);
_root.jump_on--;
rakka1 = 1;
}
if (0 < muteki) {
_root.tobashi = 0;
muteki--;
if (muteki < 1) {
this._alpha = 100;
}
}
if (0 < _root.tobashi) {
_root.tobashi--;
_root.map_s._x = _root.map_s._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y + (((_root.my2 * _root.tobashi) * 2) / 10);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b") {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c") {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x + (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((7 * _root.tobashi) * 2) / 10);
this._x = this._x - (((7 * _root.tobashi) * 2) / 10);
this._y = this._y - (((7 * _root.tobashi) * 2) / 10);
}
} else {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x - (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((7 * _root.tobashi) * 2) / 10);
this._x = this._x + (((7 * _root.tobashi) * 2) / 10);
this._y = this._y + (((7 * _root.tobashi) * 2) / 10);
}
}
k = 0;
for ( ; k < dxy ; k++) {
_root.map_s._x = _root.map_s._x - (mx / 2);
_root.map_s._y = _root.map_s._y - (my / 2);
this._x = this._x + (mx / 2);
this._y = this._y + (my / 2);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.jump_on >= 0) {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
this.player_kage.gotoandstop(1);
if (_root.jump_on == 0) {
qx = _root.map_s._x;
qy = _root.map_s._y;
}
} else if (!((rakka1 == 0) && (_root.tobashi == 0))) {
this.player_kage.gotoandstop("kesu");
if ((_root.jump_on == 0) || (0 < _root.tobashi)) {
k = 100;
dy = _root.jump_on - 12;
_root.jump_on = -1;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths(50090 - (((ix1 + 16) - iy1) * 100));
if (!((192 < ix1) || (128 < _root.startx))) {
if (!((128 < ix1) || (64 < _root.startx))) {
if (64 < ix1) {
_root.startx = 64;
_root.starty = 6;
}
} else {
_root.startx = 128;
_root.starty = 3;
}
} else {
_root.startx = 192;
_root.starty = 4;
}
}
} else {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c")) {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
if (((207 < Math.floor(px0 / 2)) && (_root.jump_on == 0)) && (_root.bossmode == 0)) {
bcnt = 0;
_root.bossmode = 1;
_root.bgm1.gotoAndPlay("end");
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + pmuki);
}
}
if (_root.bossmode == 2) {
if (_root.bosshp < 1) {
_root.bosshp = 0;
}
if (!((_root.bosshp < 1) && (_root.jump_on == 0))) {
if (_root.bosshp < 20) {
teki_ptn = 2;
}
} else {
bcnt = 0;
_root.bossmode = 3;
_root.bosshp = 0;
}
}
if (0 < teki_ptn) {
if ((_root.enmy_n0 < 89) && (isu_cnt >= (120 - (teki_ptn * 30)))) {
if (_root.bossmode != 0) {
if (_root.enmy_n0 < 0) {
_root.enmy_n0 = 0;
}
if (3 >= _root.enmy_n0) {
i = (Math.floor(px0 / 2) + Math.floor(Math.random() * 3)) - 1;
i = Math.min(250, Math.max(0, i));
j = (Math.floor(py0 / 2) + Math.floor(Math.random() * 3)) - 1;
j = Math.min(15, Math.max(0, j));
if (_root.mapx[j].charAt(i) != 0) {
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.tekib0.duplicateMovieClip(map_obj_name, 58500 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 0;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
isu_cnt = 0;
}
} else {
i = (Math.floor(px0 / 2) + Math.floor(Math.random() * 5)) - 2;
i = Math.min(250, Math.max(0, i));
j = (Math.floor(py0 / 2) + Math.floor(Math.random() * 5)) - 2;
j = Math.min(15, Math.max(0, j));
if (_root.mapx[j].charAt(i) != 0) {
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.chair0.duplicateMovieClip(map_obj_name, 58500 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 0;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
isu_cnt = 0;
}
}
} else {
i = Math.floor(px0 / 2) + Math.floor(Math.random() * 5);
i = Math.min(250, Math.max(0, i));
j = (Math.floor(py0 / 2) + Math.floor(Math.random() * 5)) - 2;
j = Math.min(15, Math.max(0, j));
if (_root.mapx[j].charAt(i) != 0) {
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.chair0.duplicateMovieClip(map_obj_name, 58500 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 0;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
isu_cnt = 0;
}
}
}
isu_cnt = isu_cnt + 1;
}
if (Math.floor(px / 32) >= Math.floor(px0 / 32)) {
if (Math.floor(px0 / 32) < Math.floor(px / 32)) {
ij = 0;
for ( ; ij < (Math.floor(px / 32) - Math.floor(px0 / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) + 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
} else {
ij = 0;
for ( ; ij < (Math.floor(px0 / 32) - Math.floor(px / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) + 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) - 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
if (Math.floor(px / 2) < Math.floor(px0 / 2)) {
ij = 0;
for ( ; ij < (Math.floor(px0 / 2) - Math.floor(px / 2)) ; ij++) {
i = (Math.floor(px0 / 2) + 8) - ij;
if (i < 0) {
i = 0;
}
if (250 < i) {
i = 250;
}
j = 0;
for ( ; j < 16 ; j++) {
if (_root.mapx[j].charAt(i) != "2") {
if (_root.mapx[j].charAt(i) != "3") {
if (_root.mapx[j].charAt(i) != "9") {
if (_root.mapx[j].charAt(i) != "8") {
if (_root.mapx[j].charAt(i) != "7") {
if (_root.mapx[j].charAt(i) != "6") {
if (_root.mapx[j].charAt(i) == "8") {
if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.chair0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).chair01._y = -300;
_root.enmy_n++;
_root.enmy_n0++;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
} else {
teki_ptn = 0;
}
} else {
teki_ptn = 2;
}
} else {
teki_ptn = 1;
}
} else {
map_obj_name = "gs1";
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.gs0.duplicateMovieClip(map_obj_name, 58000);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.bigball0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.teki0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
}
}
if (pmuki != 1) {
if (pmuki != 2) {
if (pmuki != 3) {
if (pmuki != 4) {
if (pmuki != 5) {
if (pmuki != 6) {
if (pmuki != 7) {
dx = -10 / 8;
dy = 0;
dx2 = -18;
dy2 = 5;
} else {
dx = -7 / 8;
dy = -7 / 8;
dx2 = -8;
dy2 = -13;
}
} else {
dx = 0;
dy = -10 / 8;
dx2 = 6;
dy2 = -23;
}
} else {
dx = 7 / 8;
dy = -7 / 8;
dx2 = 16;
dy2 = -5;
}
} else {
dx = 10 / 8;
dy = 0;
dx2 = 17;
dy2 = 5;
}
} else {
dx = 7 / 8;
dy = 7 / 8;
dx2 = 8;
dy2 = 18;
}
} else {
dx = 0;
dy = 10 / 8;
dx2 = -6;
dy2 = 23;
}
} else {
dx = -7 / 8;
dy = 7 / 8;
dx2 = -16;
dy2 = 15;
}
map_obj_name = "arrow" + _root.arrow_n;
if (!(((Key.isDown(78) || (Key.isDown(88))) && (_root.jump_on == 0)) && (arrow_cnt == 0))) {
if (!(((Key.isDown(78) || (Key.isDown(88))) || (0 < _root.jump_on)) && (arrow_cnt == 19))) {
if (arrow_cnt == 19) {
eval ("_root.map_s." + map_obj_name).tame = 1;
if (arrow_tame < 60) {
if (arrow_tame < 30) {
play_name = "tamaan" + pmuki;
play_name2 = "utub" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 2;
arw_pw = 0;
} else {
play_name = "tamaan1" + pmuki;
play_name2 = "utuc" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 3;
arw_pw = 4;
}
} else {
play_name = "tamaan2" + pmuki;
play_name2 = "utud" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 4;
arw_pw = 8;
}
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + dx2) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + dy2) + 160;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
_root.se_shot.start();
_root.arrow_n++;
arrow_kamae = -2;
if (12 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
arrow_cnt++;
arrow_tame++;
if (arrow_tame < 60) {
if (arrow_tame < 30) {
if (arrow_tame >= 0) {
play_name = "tamaanx" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 2;
}
} else {
play_name = "tamaanx1" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 3;
}
} else {
play_name = "tamaanx2" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 4;
}
if ((arrow_tame == 30) || (arrow_tame == 60)) {
omuki = 0;
}
if (pmuki != omuki) {
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
}
omuki = pmuki;
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 0)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 0)) + this.player._y;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
if (_root.jump_on < 0) {
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
if (arrow_tame < 0) {
_root.arrow_n++;
arrow_kamae = 1;
this.player.gotoandplay("tatu" + pmuki);
if (12 < _root.arrow_n) {
_root.arrow_n = 1;
}
arrow_cnt = 17;
}
}
} else {
play_name = "tamaanx" + pmuki;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 0)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 0)) + 160;
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n + 3;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
arrow_cnt = 20;
arrow_tame = 0;
arrow_kamae = -1;
omuki = pmuki;
}
_root.bg2.bg2a._x = ((((_root.map_s._x / 8) - (300 * math.floor((_root.map_s._y / 8) / 360))) % 480) + 480) % 480;
_root.bg2.bg2a._y = (((_root.map_s._y / 8) % 360) + 360) % 360;
_root.bg2.bg2b._x = (((_root.map_s._x / 4) % 480) + 480) % 480;
_root.bg2.bg2b._y = ((((_root.map_s._y / 4) + (230 * math.floor((_root.map_s._x / 4) / 480))) % 360) + 360) % 360;
_root.map_s.txt0._x = this._x;
_root.map_s.txt0._y = this._y;
_root.map_s.txt0.bosshpbar._xscale = 200 * _root.bosshp;
px = px0;
py = py0;
_root.px = px;
_root.py = py;
_root.flag1 = _root.bg1._x;
loop_cnt++;
if (500 < loop_cnt) {
loop_cnt = 0;
}
if (0 < arrow_cnt) {
arrow_cnt--;
}
if (arrow_cnt == 18) {
this.player.gotoandplay(play_name2);
}
if (arrow_cnt == 1) {
arrow_kamae = 1;
}
if (arrow_cnt < 0) {
arrow_cnt++;
}
if (0 >= sp_on) {
if (sp_on < 0) {
sp_on = 0;
muteki = 0;
}
} else {
map_obj_name = "arrow" + 20;
eval ("_root.map_s." + map_obj_name)._x = this._x + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + this.player._y) + 1;
dpth = ((250001 + ((((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) + 1) * 200)) + 20) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
map_obj_name = "arrow" + 21;
eval ("_root.map_s." + map_obj_name)._x = this._x + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + this.player._y) - 1;
dpth = ((250001 + ((((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) - 1) * 200)) + 20) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
sp_on--;
muteki = 10;
if (sp_on == 0) {
muteki = 0;
}
}
if (sp_on == 0) {
map_obj_name = "arrow" + 20;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
map_obj_name = "arrow" + 21;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
_root.map_s.txt0.sptxt.gsbar._xscale = 30 * Math.floor(sp_on / 30);
_root.jikan--;
if ((_root.jikan < 0) && (timeup_on == 0)) {
_root.jikan = 0;
if (_root.jump_on == 0) {
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
_root.jikan = 0;
timeup_on = 90;
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
this.player.gotoandplay("timeup");
}
}
}
}
}
Instance of Symbol 94 MovieClip [txt_2] "txt0" in Symbol 1012 MovieClip [sp_map2] Frame 6
onClipEvent (load) {
this.swapDepths(600000);
}
Instance of Symbol 96 MovieClip [ball2_obj] "ball0" in Symbol 1012 MovieClip [sp_map2] Frame 7
onClipEvent (load) {
otiru = 0;
muki2 = 0;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os2.ball0) && (this != _root.map_s.ball0))) {
} else {
if (_root.homsp != 1) {
this.gotoandstop(play_name);
muki2 = 100;
} else {
this._x = this._x + tdx;
this._y = this._y + tdy;
if (muki2 == 100) {
this.gotoandplay(play_name);
muki2 = 0;
}
}
px0 = (((this._x - this._y) + 160) - (6 - 15)) / 32;
py0 = (((this._x + this._y) - 160) + (6 + 15)) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (otiru != 0) {
this._y = this._y + ((60 - otiru) * _root.homsp);
otiru = otiru - _root.homsp;
if (otiru == 0) {
this.removeMovieClip();
}
} else {
dpth = (250100 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == 0) {
otiru = 60;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths((50020 - (((ix1 + 16) - iy1) * 100)) + _root.rakka_ball_n);
_root.rakka_ball_n++;
if (66 < _root.rakka_ball_n) {
_root.rakka_ball_n = 0;
}
}
}
if ((((Math.abs((this._y - _root.map_s.player1._y) - 160) < 10) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 10)) && (_root.jump_on == 0)) && (otiru == 0)) {
_root.flag1 = 666;
_root.mx2 = 4 * tdx;
_root.my2 = 4 * tdy;
_root.tobashi = 10;
_root.se_damage.start();
}
if (_root.miss_on == -20) {
this.removeMovieClip();
}
if (((640 < Math.abs((this._y - _root.map_s.player1._y) - 160)) || (960 < Math.abs((this._x - _root.map_s.player1._x) - 240))) || (_root.bossmode == 3)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 1046 MovieClip [teki2_obj] "teki0" in Symbol 1012 MovieClip [sp_map2] Frame 8
onClipEvent (load) {
tamakan = 0;
dx = 0;
dy = 0;
muki = 1;
muki2 = 0;
ddx = 0;
ddy = 0;
otiru = 0;
tatutest = "tatu";
tekihp = 4;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os2.teki0) && (this != _root.map_s.teki0))) {
} else if (!((0 < tekihp) && (_root.bossmode < 3))) {
tekihp--;
if (tekihp < -18) {
_root.enmy_n0--;
this.removeMovieClip();
}
} else {
if (otiru < 99) {
dpth = (250050 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
}
if (otiru != 0) {
if (!((30 >= otiru) && (_root.homsp == 1))) {
if (!((130 < otiru) && (_root.homsp == 1))) {
if (_root.homsp == 1) {
this._y = this._y + (130 - otiru);
otiru--;
if (otiru == 100) {
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "2") + _root.mapx[njx].substring(nix + 1);
_root.enmy_n0--;
this.removeMovieClip();
}
}
} else {
if (muki != 7) {
if (muki != 1) {
if (muki != 3) {
ddx = this._x - 2;
ddy = this._y + 2;
} else {
ddx = this._x - 2;
ddy = this._y - 12;
}
} else {
ddx = this._x + 34;
ddy = this._y - 12;
}
} else {
ddx = this._x + 34;
ddy = this._y + 2;
}
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (!((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == 0) || (otiru == 131))) {
this._x = this._x + dx;
this._y = this._y + dy;
otiru--;
} else {
otiru = 130;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths((50020 - (((ix1 + 16) - iy1) * 100)) + _root.rakka_ball_n);
_root.rakka_ball_n++;
if (66 < _root.rakka_ball_n) {
_root.rakka_ball_n = 0;
}
}
}
} else {
this._x = this._x + ((dx / 6) * Math.min(10, otiru - 1));
this._y = this._y + ((dy / 6) * Math.min(10, otiru - 1));
otiru--;
if (muki != 3) {
if (muki != 5) {
if (muki != 7) {
ddx = this._x - 2;
ddy = this._y + 2;
} else {
ddx = this._x - 2;
ddy = this._y - 12;
}
} else {
ddx = this._x + 34;
ddy = this._y - 12;
}
} else {
ddx = this._x + 34;
ddy = this._y + 2;
}
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c")) {
this._x = this._x - ((dx / 6) * Math.min(10, otiru - 1));
this._y = this._y - ((dy / 6) * Math.min(10, otiru - 1));
}
} else {
otiru = otiru + 132;
_root.score = _root.score + 100;
}
}
} else {
kakudo = (Math.atan2((this._y - _root.map_s.player1._y) - 160, (this._x - _root.map_s.player1._x) - 240) * 180) / Math.PI;
if (_root.homsp != 1) {
tatutest = "tatu" + muki;
muki2 = 100;
this.gotoandstop(tatutest);
} else {
if (muki2 == 100) {
tatutest = "tatu" + muki;
this.gotoandplay(tatutest);
}
muki2 = Math.floor(Math.random() * 64);
if (muki2 >= 2) {
if (muki2 == 2) {
muki = muki - 2;
if (muki < 0) {
muki = 7;
}
tatutest = "tatu" + muki;
this.gotoandplay(tatutest);
}
} else if (!((kakudo >= 45) || (kakudo < -135))) {
muki = 1;
this.gotoandplay("tatu1");
} else {
muki = 5;
this.gotoandplay("tatu5");
}
}
if (muki != 3) {
if (muki != 5) {
if (muki != 7) {
dx = -7 / 8;
dy = 7 / 8;
ddx = this._x - 2;
ddy = this._y + 2;
} else {
dx = -7 / 8;
dy = -7 / 8;
ddx = this._x - 2;
ddy = this._y - 12;
}
} else {
dx = 7 / 8;
dy = -7 / 8;
ddx = this._x + 34;
ddy = this._y - 12;
}
} else {
dx = 7 / 8;
dy = 7 / 8;
ddx = this._x + 34;
ddy = this._y + 2;
}
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (!(((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "0") && (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b")) && (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "c"))) {
muki = muki - 2;
if (muki < 0) {
muki = 7;
}
tatutest = "tatu" + muki;
if (_root.homsp == 1) {
this.gotoandplay(tatutest);
}
} else if (!((muki == 1) || (muki == 5))) {
this._x = this._x + (dx * _root.homsp);
this._y = this._y + (dy * _root.homsp);
} else {
this._x = this._x + ((dx * 2) * _root.homsp);
this._y = this._y + ((dy * 2) * _root.homsp);
}
if ((((Math.abs((this._y - _root.map_s.player1._y) - 160) < 10) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 10)) && (_root.jump_on == 0)) && (otiru == 0)) {
_root.flag1 = 666;
_root.mx2 = 8 * dx;
_root.my2 = 8 * dy;
_root.tobashi = 10;
_root.se_damage.start();
}
i = 1;
for ( ; i < 31 ; i++) {
if (((Math.abs(this._y - eval ("_root.map_s.arrow" + i)._y) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2))) && (Math.abs(this._x - eval ("_root.map_s.arrow" + i)._x) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2)))) && ((_root.jump_on == 0) || (eval ("_root.map_s.arrow" + i).tame != 0))) {
if (_root.charan != 3) {
if (_root.charan != 4) {
dx = eval ("_root.map_s.arrow" + i).tdx;
dy = eval ("_root.map_s.arrow" + i).tdy;
_root.se_tekidamage.start();
tekihp = tekihp - eval ("_root.map_s.arrow" + i).pw;
otiru = 8 + (eval ("_root.map_s.arrow" + i).pw * 2);
eval ("_root.map_s.arrow" + i).removeMovieClip();
} else {
_root.se_tekidamage.start();
if (!((i == 20) && (_root.jump_on == 0))) {
if (i < 20) {
dx = eval ("_root.map_s.arrow" + i).tdx;
dy = eval ("_root.map_s.arrow" + i).tdy;
tekihp = tekihp - eval ("_root.map_s.arrow" + i).pw;
otiru = 8 + (eval ("_root.map_s.arrow" + i).pw * 2);
if (eval ("_root.map_s.arrow" + i).tame == 0) {
eval ("_root.map_s.arrow" + i).removeMovieClip();
_root.map_s.player1.arrow_tame = -100;
}
}
} else {
kakudo2 = (Math.atan2(this._y - eval ("_root.map_s.arrow" + i)._y, this._x - eval ("_root.map_s.arrow" + i)._x) * 180) / Math.PI;
dx = Math.cos((kakudo2 * Math.PI) / 180) * 4;
dy = Math.sin((kakudo2 * Math.PI) / 180) * 4;
otiru = 8 + (2 * 2);
_root.map_s.player1.sp_on = _root.map_s.player1.sp_on - 30;
}
}
} else if (i >= 15) {
if (1 < eval ("_root.map_s.arrow" + i).pw) {
if (0 < tekihp) {
tekihp = tekihp - 2;
}
otiru = 8 + (2 * 2);
_root.se_tekidamage.start();
kakudo2 = (Math.atan2(this._y - eval ("_root.map_s.arrow" + i)._y, this._x - eval ("_root.map_s.arrow" + i)._x) * 180) / Math.PI;
dx = Math.cos((kakudo2 * Math.PI) / 180) * (4 + (eval ("_root.map_s.arrow" + i).pw / 3));
dy = Math.sin((kakudo2 * Math.PI) / 180) * (4 + (eval ("_root.map_s.arrow" + i).pw / 3));
}
} else if (eval ("_root.map_s.arrow" + i).tame < 100) {
eval ("_root.map_s.arrow" + i).tame = 250;
}
if (tekihp < 1) {
tekihp = -1;
_root.score = _root.score + 100;
this.gotoandplay("tatu0");
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "2") + _root.mapx[njx].substring(nix + 1);
}
}
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
if (((50 < (tamakan * _root.homsp)) && (Math.floor(Math.random() * 64) == 0)) && (Math.abs(Math.floor(px0) - Math.floor(px)) < 16)) {
tamakan = 0;
map_obj_name = "ball" + _root.eball_n;
_root.map_s.ball0.duplicateMovieClip(map_obj_name, 50550 + _root.eball_n);
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
play_name = "tatu4";
} else {
play_name = "tatu5";
}
} else {
play_name = "tatu6";
}
} else {
play_name = "tatu7";
}
} else {
play_name = "tatu3";
}
} else {
play_name = "tatu2";
}
} else {
play_name = "tatu1";
}
} else {
play_name = "tatu8";
}
dx = ((Math.cos((kakudo * Math.PI) / 180) * -1) * 10) / 8;
dy = ((Math.sin((kakudo * Math.PI) / 180) * -1) * 10) / 8;
eval ("_root.map_s." + map_obj_name)._x = this._x + (dx * 10);
eval ("_root.map_s." + map_obj_name)._y = this._y + (dy * 10);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 2;
eval ("_root.map_s." + map_obj_name).tdy = dy * 2;
eval ("_root.map_s." + map_obj_name).play_name = play_name;
eval ("_root.map_s." + map_obj_name).chara_n = _root.eball_n;
_root.eball_n++;
if (100 < _root.eball_n) {
_root.eball_n = 1;
}
}
tamakan = tamakan + _root.homsp;
}
if (_root.miss_on == -20) {
_root.enmy_n0--;
this.removeMovieClip();
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if ((12 < (Math.floor(px0 / 2) - Math.floor(px / 2))) || (6 < (Math.floor(px / 2) - Math.floor(px0 / 2)))) {
if (otiru != 11) {
_root.enmy_n0--;
}
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "2") + _root.mapx[njx].substring(nix + 1);
this.removeMovieClip();
}
}
}
Instance of Symbol 220 MovieClip [kball_obj] "bigball0" in Symbol 1012 MovieClip [sp_map2] Frame 9
onClipEvent (load) {
tekihp = 1;
dpth = 0;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os2.bigball0) && (this != _root.map_s.bigball0))) {
} else {
dpth = (250050 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
if (0 >= tekihp) {
tekihp--;
if (tekihp != -8) {
if (tekihp != -2) {
if (tekihp < -30) {
_root.enmy_n0--;
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "3") + _root.mapx[njx].substring(nix + 1);
this.removeMovieClip();
}
} else {
this.gotoandplay("tatu0");
}
} else {
kakudo = (Math.atan2((this._y - _root.map_s.player1._y) - 160, (this._x - _root.map_s.player1._x) - 240) * 180) / Math.PI;
kakudo = kakudo - 22.5;
i = 0;
for ( ; i < 3 ; i++) {
map_obj_name = "ball" + _root.eball_n;
_root.map_s.ball0.duplicateMovieClip(map_obj_name, 50550 + _root.eball_n);
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
play_name = "tatu4";
} else {
play_name = "tatu5";
}
} else {
play_name = "tatu6";
}
} else {
play_name = "tatu7";
}
} else {
play_name = "tatu3";
}
} else {
play_name = "tatu2";
}
} else {
play_name = "tatu1";
}
} else {
play_name = "tatu8";
}
dx = ((Math.cos((kakudo * Math.PI) / 180) * -1) * 10) / 8;
dy = ((Math.sin((kakudo * Math.PI) / 180) * -1) * 10) / 8;
eval ("_root.map_s." + map_obj_name)._x = this._x + (dx * 10);
eval ("_root.map_s." + map_obj_name)._y = this._y + (dy * 10);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).play_name = play_name;
eval ("_root.map_s." + map_obj_name).tdx = dx * 2;
eval ("_root.map_s." + map_obj_name).tdy = dy * 2;
eval ("_root.map_s." + map_obj_name).chara_n = _root.eball_n;
_root.eball_n++;
if (100 < _root.eball_n) {
_root.eball_n = 1;
}
kakudo = kakudo + 22.5;
}
}
} else {
if (_root.homsp != 1) {
this.gotoandstop("tatu");
muki2 = 100;
} else if (muki2 == 100) {
this.gotoandplay("tatu");
muki2 = 0;
}
i = 1;
for ( ; i < 31 ; i++) {
if (((Math.abs(this._y - eval ("_root.map_s.arrow" + i)._y) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2))) && (Math.abs(this._x - eval ("_root.map_s.arrow" + i)._x) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2)))) && ((_root.jump_on == 0) || (eval ("_root.map_s.arrow" + i).tame != 0))) {
if (eval ("_root.map_s.arrow" + i).tame == 0) {
}
if (_root.charan != 3) {
tekihp = tekihp - eval ("_root.map_s.arrow" + i).pw;
eval ("_root.map_s.arrow" + i).removeMovieClip();
} else if (i >= 15) {
if (1 < eval ("_root.map_s.arrow" + i).pw) {
if (0 < tekihp) {
tekihp = tekihp - 2;
}
otiru = 8 + (2 * 2);
_root.se_tekidamage.start();
kakudo2 = (Math.atan2(this._y - eval ("_root.map_s.arrow" + i)._y, this._x - eval ("_root.map_s.arrow" + i)._x) * 180) / Math.PI;
dx = Math.cos((kakudo2 * Math.PI) / 180) * (4 + (eval ("_root.map_s.arrow" + i).pw / 3));
dy = Math.sin((kakudo2 * Math.PI) / 180) * (4 + (eval ("_root.map_s.arrow" + i).pw / 3));
}
} else if (eval ("_root.map_s.arrow" + i).tame < 100) {
eval ("_root.map_s.arrow" + i).tame = 250;
}
if ((tekihp < 1) && (_root.homsp == 1)) {
tekihp = -1;
_root.score = _root.score + 100;
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "2") + _root.mapx[njx].substring(nix + 1);
this.gotoandplay("tatu0");
_root.se_bom.start();
}
}
}
if ((((Math.abs((this._y - _root.map_s.player1._y) - 160) < 128) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 128)) && (tame == 0)) || (60 < tame)) {
if (_root.homsp == 1) {
tekihp = -1;
_root.se_bom.start();
}
}
if (25 < tame) {
tame++;
}
}
if (_root.miss_on == -20) {
_root.enmy_n0--;
this.removeMovieClip();
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if ((12 < (Math.floor(px0 / 2) - Math.floor(px / 2))) || (6 < (Math.floor(px / 2) - Math.floor(px0 / 2)))) {
if (otiru != 11) {
_root.enmy_n0--;
}
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "3") + _root.mapx[njx].substring(nix + 1);
this.removeMovieClip();
}
}
}
Instance of Symbol 1066 MovieClip [boss2_obj] "boss0" in Symbol 1012 MovieClip [sp_map2] Frame 10
onClipEvent (load) {
tame = 0;
tekihp = 40;
dp1 = 0;
}
onClipEvent (enterFrame) {
if (!(((this != _root.map_os2.boss0) && (this != _root.map_s.boss0)) && (_root.bossmode == 2))) {
} else {
dpth = 250048 + (((this._y - _root.map_s.player1._y) - 160) * 200);
this.swapDepths(dpth);
if (_root.homsp != 1) {
this.gotoandstop("tatu");
muki2 = 100;
} else if (muki2 == 100) {
this.gotoandplay("tatu");
muki2 = 0;
}
if (0 >= _root.bosshp) {
} else {
i = 1;
for ( ; i < 31 ; i++) {
if (((Math.abs(this._y - eval ("_root.map_s.arrow" + i)._y) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2))) && (Math.abs(this._x - eval ("_root.map_s.arrow" + i)._x) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2)))) && ((_root.jump_on == 0) || (eval ("_root.map_s.arrow" + i).tame != 0))) {
if (_root.charan != 3) {
if (_root.charan != 4) {
_root.se_tekidamage.start();
_root.bosshp = _root.bosshp - eval ("_root.map_s.arrow" + i).pw;
this.gotoandplay("tatu2");
eval ("_root.map_s.arrow" + i).removeMovieClip();
} else {
_root.se_tekidamage.start();
if (!((i == 20) && (_root.jump_on == 0))) {
if ((i < 20) && (eval ("_root.map_s.arrow" + i).bhit == 0)) {
_root.se_tekidamage.start();
_root.bosshp = _root.bosshp - eval ("_root.map_s.arrow" + i).pw;
this.gotoandplay("tatu2");
eval ("_root.map_s.arrow" + i).bhit = 1;
if (eval ("_root.map_s.arrow" + i).tame == 0) {
eval ("_root.map_s.arrow" + i).removeMovieClip();
_root.map_s.player1.arrow_tame = -100;
}
}
} else {
_root.map_s.player1.sp_on = _root.map_s.player1.sp_on - 30;
}
}
} else if (i >= 15) {
if ((1 < eval ("_root.map_s.arrow" + i).pw) && (eval ("_root.map_s.arrow" + i).bhit == 0)) {
if (0 < _root.bosshp) {
_root.bosshp = _root.bosshp - 2;
}
eval ("_root.map_s.arrow" + i).bhit = 1;
_root.se_tekidamage.start();
this.gotoandplay("tatu2");
}
} else if (eval ("_root.map_s.arrow" + i).tame < 100) {
eval ("_root.map_s.arrow" + i).tame = 250;
}
}
}
}
if (_root.miss_on == -20) {
_root.enmy_n0--;
this.removeMovieClip();
}
if ((640 < Math.abs((this._y - _root.map_s.player1._y) - 160)) || (960 < Math.abs((this._x - _root.map_s.player1._x) - 240))) {
if (otiru != 11) {
_root.enmy_n0--;
}
this.removeMovieClip();
}
}
}
Instance of Symbol 36 MovieClip [gs_obj] "gs0" in Symbol 1012 MovieClip [sp_map2] Frame 12
onClipEvent (load) {
tekihp = 1;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os2.gs0) && (this != _root.map_s.gs0))) {
} else {
if (((Math.abs((this._y - _root.map_s.player1._y) - 160) < 10) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 10)) && (_root.jump_on == 0)) {
_root.sp = _root.sp + 1;
_root.se_get.start();
this.removeMovieClip();
}
dpth = (250049 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
if ((_root.miss_on == -20) || (_root.bossmode != 0)) {
this.removeMovieClip();
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if ((12 < (Math.floor(px0 / 2) - Math.floor(px / 2))) || (6 < (Math.floor(px / 2) - Math.floor(px0 / 2)))) {
this.removeMovieClip();
}
}
}
Instance of Symbol 212 MovieClip [arrow_obj] "arrow0" in Symbol 1012 MovieClip [sp_map2] Frame 13
onClipEvent (load) {
tame = 0;
pw = 1;
bhit = 0;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os2.arrow0) && (this != _root.map_s.arrow0))) {
} else {
if (tame != 0) {
this._x = this._x + tdx;
this._y = this._y + tdy;
dpth = (250001 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
px0 = (((this._x - this._y) + 160) - (6 - 15)) / 32;
py0 = (((this._x + this._y) - 160) + (6 + 15)) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (15 < py0) {
py0 = 15;
}
if ((320 < Math.abs((this._y - _root.map_s.player1._y) - 160)) || (480 < Math.abs((this._x - _root.map_s.player1._x) - 240))) {
if (_root.bossmode != 4) {
this.removeMovieClip();
}
}
if (_root.charan != 3) {
if (_root.charan == 4) {
tame++;
if (400 >= tame) {
if (!((tame == (10 * (pw - 1))) || (200 < tame))) {
if (tame >= ((100 + (((pw - 1) * 4) / 3)) + 4)) {
this.removeMovieClip();
}
} else {
tdx = 0;
tdy = 0;
tame = 402;
}
} else {
this.removeMovieClip();
}
if (3 < _root.bossmode) {
dpth = (250001 + (180 * 200)) + chara_n;
this.swapDepths(dpth);
}
}
} else {
tame++;
if (400 >= tame) {
if (!((tame == (10 * pw)) || (200 < tame))) {
if (tame >= ((100 + ((pw * 4) / 3)) + 4)) {
this.removeMovieClip();
}
} else {
tdx = 0;
tdy = 0;
if (_root.homsp != 1) {
if (3 < pw) {
pw = 3;
}
play_name = "tamamh" + pw;
this.gotoandstop(play_name);
tame = 252;
tame--;
} else {
map_obj_name = "arrow" + ((chara_n - 3) + 15);
_root.se_bom.start();
play_name = "tamamh" + (10 + pw);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + ((chara_n - 3) + 15));
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
eval ("_root.map_s." + map_obj_name)._x = this._x;
eval ("_root.map_s." + map_obj_name)._y = this._y;
eval ("_root.map_s." + map_obj_name).chara_n = chara_n + 10;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + chara_n) + 10;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
tame = 402;
}
}
} else {
eval ("_root.map_s." + map_obj_name).tame = 100;
eval ("_root.map_s." + map_obj_name).pw = 3 * pw;
this.removeMovieClip();
}
if (3 < _root.bossmode) {
dpth = (250001 + (180 * 200)) + chara_n;
this.swapDepths(dpth);
}
}
}
if ((_root.miss_on == -20) || (_root.bossmode == 3)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 1052 MovieClip [chair_obj] "chair0" in Symbol 1012 MovieClip [sp_map2] Frame 14
onClipEvent (load) {
tame = 0;
pw = 1;
muki2 = 0;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os2.chair0) && (this != _root.map_s.chair0))) {
} else {
dpth = (250050 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
if (_root.homsp != 1) {
muki2 = this._currentframe;
this.gotoandstop(muki2);
muki2 = 100;
} else {
tame = tame + 1;
if (tame != 1) {
if (tame != 30) {
if (tame != 60) {
if (90 < tame) {
_root.enmy_n0--;
this.removeMovieClip();
}
} else {
_root.se_bom.start();
kakudo = (Math.atan2((this._y - _root.map_s.player1._y) - 160, (this._x - _root.map_s.player1._x) - 240) * 180) / Math.PI;
kakudo = kakudo - 22.5;
i = 0;
for ( ; i < 3 ; i++) {
map_obj_name = "ball" + _root.eball_n;
_root.map_s.ball0.duplicateMovieClip(map_obj_name, 50550 + _root.eball_n);
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
play_name = "tatu4";
} else {
play_name = "tatu5";
}
} else {
play_name = "tatu6";
}
} else {
play_name = "tatu7";
}
} else {
play_name = "tatu3";
}
} else {
play_name = "tatu2";
}
} else {
play_name = "tatu1";
}
} else {
play_name = "tatu8";
}
dx = ((Math.cos((kakudo * Math.PI) / 180) * -1) * 10) / 8;
dy = ((Math.sin((kakudo * Math.PI) / 180) * -1) * 10) / 8;
eval ("_root.map_s." + map_obj_name)._x = this._x + (dx * 10);
eval ("_root.map_s." + map_obj_name)._y = this._y + (dy * 10);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 2;
eval ("_root.map_s." + map_obj_name).tdy = dy * 2;
eval ("_root.map_s." + map_obj_name).play_name = play_name;
eval ("_root.map_s." + map_obj_name).chara_n = _root.eball_n;
_root.eball_n++;
if (100 < _root.eball_n) {
_root.eball_n = 1;
}
kakudo = kakudo + 22.5;
}
}
} else {
_root.se_fall2.start();
}
} else {
_root.se_pi1.start();
}
if (muki2 == 100) {
muki2 = this._currentframe;
this.gotoandplay(muki2);
muki2 = 0;
}
}
}
}
Instance of Symbol 16 MovieClip [teki2b_obj] "tekib0" in Symbol 1012 MovieClip [sp_map2] Frame 15
onClipEvent (load) {
pw = 1;
muki2 = 0;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os2.tekib0) && (this != _root.map_s.tekib0))) {
} else if (_root.homsp != 1) {
muki2 = this._currentframe;
this.gotoandstop(muki2);
muki2 = 100;
} else {
tame = tame + 1;
if (tame != 1) {
if (tame != 30) {
if (tame != 60) {
if (120 >= tame) {
if (tame < 60) {
dpth = (250050 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
}
} else {
_root.enmy_n0--;
this.removeMovieClip();
}
} else {
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.teki0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = this._x;
eval ("_root.map_s." + map_obj_name)._y = this._y;
eval ("_root.map_s." + map_obj_name).nix = 0;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
this.removeMovieClip();
}
} else {
_root.se_fall2.start();
}
} else {
_root.se_pi1.start();
}
if (muki2 == 100) {
muki2 = this._currentframe;
this.gotoandplay(muki2);
muki2 = 0;
}
}
}
Instance of Symbol 1480 MovieClip [gun1] "gun0" in Symbol 1012 MovieClip [sp_map2] Frame 16
onClipEvent (load) {
tekihp = 0;
omuki = 0;
}
onClipEvent (enterFrame) {
if ((this != _root.map_os2.gun0) && (this != _root.map_s.gun0)) {
}
}
Symbol 1012 MovieClip [sp_map2] Frame 17
stop();
Instance of Symbol 104 MovieClip [sp_character1] "player0" in Symbol 102 MovieClip [sp_map1] Frame 2
onClipEvent (load) {
px0 = 0;
py0 = 0;
px = 5.5;
py = 8.5;
qx = 0;
qy = 0;
rakka1 = 0;
teki_ptn = 0;
loop_cnt = 0;
pmuki = 5;
arrow_cnt = 0;
mouse_kakudo = 0;
move_on = 0;
teki_ran = 0;
arrow_tame = 0;
arrow_on = 0;
timeup_on = 0;
arrow_kamae = 1;
sp_on = 0;
muteki = 0;
bcnt = 0;
tenkey = 0;
mousemode = 0;
}
onClipEvent (enterFrame) {
if (((_root.charan == 1) && (this != _root.map_os.player0)) && (this != _root.map_s.player0)) {
if (!(((timeup_on == 0) && (_root.bossmode != 1)) && (_root.bossmode < 3))) {
if (_root.bossmode != 1) {
if (_root.bossmode != 3) {
if (_root.bossmode != 4) {
if (0 < timeup_on) {
_root.jikan = 0;
timeup_on--;
if (timeup_on == 1) {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
_root.gotoandplay("end");
}
}
} else {
if (bcnt != 0) {
if (bcnt != 120) {
if (bcnt != 121) {
if (bcnt != 125) {
if (bcnt != 127) {
if (bcnt != 130) {
if (bcnt != 135) {
if (bcnt != 165) {
if (bcnt != 169) {
if (bcnt != 171) {
if (bcnt != 174) {
if (bcnt == 179) {
map_obj_name = "arrow100";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
_root.map_s.bossx.gotoandplay("tatu0");
_root.se_baku.start();
}
} else {
map_obj_name = "arrow99";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
} else {
map_obj_name = "arrow98";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
} else {
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
} else {
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
} else {
map_obj_name = "arrow100";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
_root.se_shot.start();
}
} else {
map_obj_name = "arrow99";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
_root.se_shot.start();
}
} else {
map_obj_name = "arrow98";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
_root.se_shot.start();
}
} else {
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
_root.se_shot.start();
}
} else {
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
_root.se_shot.start();
}
} else {
map_obj_name = "arrow96";
map_obj_name2 = "arrow97";
map_obj_name3 = "arrow98";
map_obj_name4 = "arrow99";
map_obj_name5 = "arrow100";
_root.arrow_n = 1;
if (!((4 < pmuki) || (pmuki == 1))) {
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 55100 + _root.arrow_n);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name2, (55100 + _root.arrow_n) + 1);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name3, (55100 + _root.arrow_n) + 2);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name4, (55100 + _root.arrow_n) + 3);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name5, (55100 + _root.arrow_n) + 4);
} else {
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name2, (54900 + _root.arrow_n) + 1);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name3, (54900 + _root.arrow_n) + 2);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name4, (54900 + _root.arrow_n) + 3);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name5, (54900 + _root.arrow_n) + 4);
}
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + 160;
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name2).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name2)._x = ((this._x + (dx * 12)) + 240) + 4;
eval ("_root.map_s." + map_obj_name2)._y = ((this._y + (dy * 12)) + 160) + 4;
eval ("_root.map_s." + map_obj_name2).pw = 4;
eval ("_root.map_s." + map_obj_name3).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name3)._x = ((this._x + (dx * 12)) + 240) - 4;
eval ("_root.map_s." + map_obj_name3)._y = ((this._y + (dy * 12)) + 160) + 4;
eval ("_root.map_s." + map_obj_name3).pw = 4;
eval ("_root.map_s." + map_obj_name4).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name4)._x = ((this._x + (dx * 12)) + 240) + 4;
eval ("_root.map_s." + map_obj_name4)._y = ((this._y + (dy * 12)) + 160) - 4;
eval ("_root.map_s." + map_obj_name4).pw = 4;
eval ("_root.map_s." + map_obj_name5).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name5)._x = ((this._x + (dx * 12)) + 240) - 4;
eval ("_root.map_s." + map_obj_name5)._y = ((this._y + (dy * 12)) + 160) - 4;
eval ("_root.map_s." + map_obj_name5).pw = 4;
eval ("_root.map_s." + map_obj_name).chara_n = 3;
eval ("_root.map_s." + map_obj_name2).chara_n = 4;
eval ("_root.map_s." + map_obj_name3).chara_n = 5;
eval ("_root.map_s." + map_obj_name4).chara_n = 6;
eval ("_root.map_s." + map_obj_name5).chara_n = 7;
_root.arrow_n++;
if (10 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
this._alpha = 100;
_root.map_s.txt0.bossname.gotoandplay("siro");
_root.se_pwup.start();
_root.map_s.txt0.bosshpbar._xscale = 0;
kakudo = (Math.atan2(((this._y + 160) - _root.map_s.bossx._y) + 16, ((this._x + 240) - _root.map_s.bossx._x) - 16) * 180) / Math.PI;
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
pmuki = 4;
} else {
pmuki = 5;
}
} else {
pmuki = 6;
}
} else {
pmuki = 7;
}
} else {
pmuki = 3;
}
} else {
pmuki = 2;
}
} else {
pmuki = 1;
}
} else {
pmuki = 8;
}
this.player.gotoandstop("utu" + pmuki);
play_name = "tatud" + pmuki;
dy = ((((this._y + 160) - _root.map_s.bossx._y) + 16) * -1) / 60;
dx = ((((this._x + 240) - _root.map_s.bossx._x) - 16) * -1) / 60;
}
if ((179 < bcnt) && (0 < _root.map_s.bossx._alpha)) {
_root.map_s.bossx._alpha = _root.map_s.bossx._alpha - 1;
}
if (bcnt < 60) {
_root.map_s._x = _root.map_s._x - (dx / 2);
_root.map_s._y = _root.map_s._y - (dy / 2);
_root.map_s.txt0._x = _root.map_s.txt0._x + (dx / 2);
_root.map_s.txt0._y = _root.map_s.txt0._y + (dy / 2);
}
if (bcnt != 300) {
if (bcnt == 700) {
_root.bossmode = 5;
_root.gotoandplay("gameclear");
}
} else {
_root.bgm1.gotoandplay("play3");
_root.score = _root.score + 5000;
}
if (bcnt < 1200) {
bcnt++;
}
}
} else if (bcnt != 3) {
bcnt++;
} else {
bcnt = 0;
_root.bossmode = 4;
}
} else if (bcnt >= 40) {
if (bcnt != 40) {
if (!((bcnt == 50) || (bcnt == 60))) {
if (bcnt != 80) {
if (bcnt != 160) {
if (bcnt >= 180) {
if (bcnt >= 220) {
move_on = 0;
_root.bgm1.gotoAndPlay("play2");
_root.bossmode = 2;
bcnt = 0;
} else {
_root.bosshp = 40;
_root.map_s._x = _root.map_s._x + 6;
_root.map_s._y = _root.map_s._y - 6;
_root.map_s.txt0._x = _root.map_s.txt0._x - 6;
_root.map_s.txt0._y = _root.map_s.txt0._y + 6;
bcnt++;
}
} else {
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
bcnt++;
_root.se_doon.start();
}
} else {
_root.se_biri.start();
bcnt++;
}
} else {
map_obj_name = "bossx";
_root.enmy_n = 0;
_root.map_s.boss0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
i = 217;
j = 7;
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).gotoandplay(1);
_root.enmy_n = 1;
_root.enmy_n0 = 0;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
bcnt++;
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ix = Math.floor(px0 / 32) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
_root.mapx[jx] = (_root.mapx[jx].substring(0, (64 * 3) + 12) + "0000") + _root.mapx[jx].substring((64 * 3) + 16);
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
_root.se_biri.start();
}
} else {
_root.map_s._x = _root.map_s._x - 6;
_root.map_s._y = _root.map_s._y + 6;
_root.map_s.txt0._x = _root.map_s.txt0._x + 6;
_root.map_s.txt0._y = _root.map_s.txt0._y - 6;
bcnt++;
}
} else {
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
dxy = 1;
mx = 0;
my = 0;
if (mousemode == 1) {
mouse_kakudo = (Math.atan2(((_root._ymouse - 160) - 56) - 16, (_root._xmouse - 240) + 16) * 180) / Math.PI;
_root.flag2 = Math.floor(mouse_kakudo);
if (!(((45 + 22.5) >= mouse_kakudo) && ((45 - 22.5) < mouse_kakudo))) {
if (!(((135 + 22.5) >= mouse_kakudo) && ((135 - 22.5) < mouse_kakudo))) {
if (!(((-135 + 22.5) >= mouse_kakudo) && ((-135 - 22.5) < mouse_kakudo))) {
if (!(((-45 + 22.5) >= mouse_kakudo) && ((-45 - 22.5) < mouse_kakudo))) {
if (!(((-90 + 22.5) >= mouse_kakudo) && ((-90 - 22.5) < mouse_kakudo))) {
if (!(((0 + 22.5) >= mouse_kakudo) && ((-22.5) < mouse_kakudo))) {
if (!(((90 + 22.5) >= mouse_kakudo) && ((90 - 22.5) < mouse_kakudo))) {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
}
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
}
}
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.PGDN)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.END)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.HOME)))) {
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.PGUP)))) {
if (!Key.isDown(Key.RIGHT)) {
if (!Key.isDown(Key.LEFT)) {
if (!Key.isDown(Key.DOWN)) {
if (!Key.isDown(Key.UP)) {
tenkey = 0;
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
tenkey = 1;
mousemode = 0;
}
if (!(Key.isDown(1) || (tenkey == 1))) {
dxy = 1;
mx = 0;
my = 0;
move_on = 0;
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + pmuki);
}
} else {
if (Key.isDown(1)) {
mousemode = 1;
}
if (move_on != (pmuki * arrow_kamae)) {
if (arrow_kamae != -1) {
this.player.gotoandplay("tatu" + pmuki);
} else {
this.player.gotoandplay("utu" + pmuki);
}
move_on = pmuki * arrow_kamae;
}
}
if ((Key.isDown(77) || (Key.isDown(67))) && (_root.jump_on == 0)) {
_root.jump_on = 23;
_root.se_jump.start();
}
if ((((Key.isDown(66) || (Key.isDown(90))) && (0 < _root.sp)) && (-20 < _root.jump_on)) && (sp_on < 1)) {
sp_on = 900;
_root.se_pwup.start();
_root.sp--;
}
if (0 >= _root.jump_on) {
if (!((_root.jump_on < 0) && (-70 < _root.jump_on))) {
rakka1 = 0;
} else {
this.player._y = this.player._y - (_root.jump_on - 10);
_root.jump_on--;
if (_root.jump_on == -20) {
if (sp_on != 0) {
_root.se_warp1.start();
_root.map_s.player1.swapDepths(250001);
_root.map_s.player1.player.gotoandstop("tatu1");
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
sp_on = 0;
_root.map_s._x = qx;
_root.map_s._y = qy;
_root.map_s.player1._x = -32 - qx;
_root.map_s.player1._y = 56 - qy;
muteki = 150;
this._alpha = 50;
arrow_tame = 0;
arrow_cnt = 18;
this.player._y = 160;
move_on = 0;
} else {
_root.se_fall.start();
}
}
if (_root.jump_on < -50) {
_root.enmy_n0 = 0;
rakka1 = 0;
_root.jump_on = -100;
_root.tobashi = 0;
_root.gotoandplay("end");
}
}
} else {
this.player._y = this.player._y - (_root.jump_on - 12);
_root.jump_on--;
rakka1 = 1;
}
if (0 < muteki) {
_root.tobashi = 0;
muteki--;
if (muteki < 1) {
this._alpha = 100;
}
}
if (0 < _root.tobashi) {
_root.tobashi--;
_root.map_s._x = _root.map_s._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y + (((_root.my2 * _root.tobashi) * 2) / 10);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b") {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c") {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x + (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((7 * _root.tobashi) * 2) / 10);
this._x = this._x - (((7 * _root.tobashi) * 2) / 10);
this._y = this._y - (((7 * _root.tobashi) * 2) / 10);
}
} else {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x - (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((7 * _root.tobashi) * 2) / 10);
this._x = this._x + (((7 * _root.tobashi) * 2) / 10);
this._y = this._y + (((7 * _root.tobashi) * 2) / 10);
}
}
k = 0;
for ( ; k < dxy ; k++) {
_root.map_s._x = _root.map_s._x - (mx / 2);
_root.map_s._y = _root.map_s._y - (my / 2);
this._x = this._x + (mx / 2);
this._y = this._y + (my / 2);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.jump_on >= 0) {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
this.player_kage.gotoandstop(1);
if (_root.jump_on == 0) {
qx = _root.map_s._x;
qy = _root.map_s._y;
}
} else if (!((rakka1 == 0) && (_root.tobashi == 0))) {
this.player_kage.gotoandstop("kesu");
if ((_root.jump_on == 0) || (0 < _root.tobashi)) {
k = 100;
dy = _root.jump_on - 12;
_root.jump_on = -1;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths(50090 - (((ix1 + 16) - iy1) * 100));
if (!((192 < ix1) || (128 < _root.startx))) {
if (!((128 < ix1) || (64 < _root.startx))) {
if (64 < ix1) {
_root.startx = 64;
_root.starty = 6;
}
} else {
_root.startx = 128;
_root.starty = 3;
}
} else {
_root.startx = 192;
_root.starty = 4;
}
}
} else {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c")) {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
if (((207 < Math.floor(px0 / 2)) && (_root.jump_on == 0)) && (_root.bossmode == 0)) {
bcnt = 0;
_root.bossmode = 1;
_root.bgm1.gotoAndPlay("end");
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + pmuki);
}
}
if ((_root.bossmode == 2) && (_root.bosshp < 1)) {
_root.bosshp = 0;
if (_root.jump_on == 0) {
bcnt = 0;
_root.bossmode = 3;
}
}
if (Math.floor(px / 32) >= Math.floor(px0 / 32)) {
if (Math.floor(px0 / 32) < Math.floor(px / 32)) {
ij = 0;
for ( ; ij < (Math.floor(px / 32) - Math.floor(px0 / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) + 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
} else {
ij = 0;
for ( ; ij < (Math.floor(px0 / 32) - Math.floor(px / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) + 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) - 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
if (Math.floor(px / 2) < Math.floor(px0 / 2)) {
ij = 0;
for ( ; ij < (Math.floor(px0 / 2) - Math.floor(px / 2)) ; ij++) {
i = (Math.floor(px0 / 2) + 8) - ij;
if (i < 0) {
i = 0;
}
if (250 < i) {
i = 250;
}
j = 0;
for ( ; j < 16 ; j++) {
if (_root.mapx[j].charAt(i) != "2") {
if (_root.mapx[j].charAt(i) != "3") {
if (_root.mapx[j].charAt(i) == "9") {
map_obj_name = "gs1";
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.gs0.duplicateMovieClip(map_obj_name, 58000);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.bigball0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.teki0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
}
}
if (pmuki != 1) {
if (pmuki != 2) {
if (pmuki != 3) {
if (pmuki != 4) {
if (pmuki != 5) {
if (pmuki != 6) {
if (pmuki != 7) {
dx = -10 / 8;
dy = 0;
dx2 = -7 / 8;
dy2 = -7 / 8;
} else {
dx = -7 / 8;
dy = -7 / 8;
dx2 = 0;
dy2 = -10 / 8;
}
} else {
dx = 0;
dy = -10 / 8;
dx2 = 7 / 8;
dy2 = -7 / 8;
}
} else {
dx = 7 / 8;
dy = -7 / 8;
dx2 = 10 / 8;
dy2 = 0;
}
} else {
dx = 10 / 8;
dy = 0;
dx2 = 7 / 8;
dy2 = 7 / 8;
}
} else {
dx = 7 / 8;
dy = 7 / 8;
dx2 = 0;
dy2 = 10 / 8;
}
} else {
dx = 0;
dy = 10 / 8;
dx2 = -7 / 8;
dy2 = 7 / 8;
}
} else {
dx = -7 / 8;
dy = 7 / 8;
dx2 = -10 / 8;
dy2 = 0;
}
if (sp_on < 1) {
dx2 = 0;
dy2 = 0;
}
map_obj_name = "arrow" + _root.arrow_n;
map_obj_name2 = "arrow" + (_root.arrow_n + 10);
map_obj_name3 = "arrow" + (_root.arrow_n + 20);
if (!(((Key.isDown(78) || (Key.isDown(88))) && (_root.jump_on == 0)) && (arrow_cnt == 0))) {
if (!(((Key.isDown(78) || (Key.isDown(88))) || (0 < _root.jump_on)) && (arrow_cnt == 19))) {
if (arrow_cnt == 19) {
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name2).tame = 1;
eval ("_root.map_s." + map_obj_name3).tame = 1;
if (arrow_tame < 60) {
if (arrow_tame < 35) {
if (arrow_tame < 15) {
play_name = "tatu" + pmuki;
play_name2 = "tatu" + ((pmuki % 8) + 1);
play_name3 = "tatu" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 1;
eval ("_root.map_s." + map_obj_name2).pw = 1;
eval ("_root.map_s." + map_obj_name3).pw = 1;
} else {
play_name = "tatub" + pmuki;
play_name2 = "tatub" + ((pmuki % 8) + 1);
play_name3 = "tatub" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 2;
eval ("_root.map_s." + map_obj_name2).pw = 2;
eval ("_root.map_s." + map_obj_name3).pw = 2;
}
} else {
play_name = "tatuc" + pmuki;
play_name2 = "tatuc" + ((pmuki % 8) + 1);
play_name3 = "tatuc" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 3;
eval ("_root.map_s." + map_obj_name2).pw = 3;
eval ("_root.map_s." + map_obj_name3).pw = 3;
}
} else {
play_name = "tatud" + pmuki;
play_name2 = "tatud" + ((pmuki % 8) + 1);
play_name3 = "tatud" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name2).pw = 4;
eval ("_root.map_s." + map_obj_name3).pw = 4;
}
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name2).gotoandplay(play_name2);
eval ("_root.map_s." + map_obj_name3).gotoandplay(play_name3);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + 160;
eval ("_root.map_s." + map_obj_name2).tdx = dy2 * 6;
eval ("_root.map_s." + map_obj_name2).tdy = (dx2 * -1) * 6;
eval ("_root.map_s." + map_obj_name2)._x = (this._x + (dy2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name2)._y = ((this._y - (dx2 * 12)) + 160) + ((1 - Math.ceil(sp_on / 900)) * 800);
eval ("_root.map_s." + map_obj_name3).tdx = dx2 * 6;
eval ("_root.map_s." + map_obj_name3).tdy = dy2 * 6;
eval ("_root.map_s." + map_obj_name3)._x = (this._x + (dx2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name3)._y = ((this._y + (dy2 * 12)) + 160) + ((1 - Math.ceil(sp_on / 900)) * 800);
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3);
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name2)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 1;
eval ("_root.map_s." + map_obj_name2).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name3)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 2;
eval ("_root.map_s." + map_obj_name3).swapDepths(dpth);
_root.se_shot.start();
_root.arrow_n++;
if (8 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
arrow_cnt++;
arrow_tame++;
if (arrow_tame < 60) {
if (arrow_tame < 35) {
if (arrow_tame < 15) {
play_name = "tatu" + pmuki;
play_name2 = "tatu" + ((pmuki % 8) + 1);
play_name3 = "tatu" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 1;
eval ("_root.map_s." + map_obj_name2).pw = 1;
eval ("_root.map_s." + map_obj_name3).pw = 1;
} else {
play_name = "tatub" + pmuki;
play_name2 = "tatub" + ((pmuki % 8) + 1);
play_name3 = "tatub" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 2;
eval ("_root.map_s." + map_obj_name2).pw = 2;
eval ("_root.map_s." + map_obj_name3).pw = 2;
}
} else {
play_name = "tatuc" + pmuki;
play_name2 = "tatuc" + ((pmuki % 8) + 1);
play_name3 = "tatuc" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 3;
eval ("_root.map_s." + map_obj_name2).pw = 3;
eval ("_root.map_s." + map_obj_name3).pw = 3;
}
} else {
play_name = "tatud" + pmuki;
play_name2 = "tatud" + ((pmuki % 8) + 1);
play_name3 = "tatud" + (((pmuki + 6) % 8) + 1);
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name2).pw = 4;
eval ("_root.map_s." + map_obj_name3).pw = 4;
}
if (((arrow_tame == 15) || (arrow_tame == 35)) || (arrow_tame == 60)) {
omuki = 0;
}
if (pmuki != omuki) {
eval ("_root.map_s." + map_obj_name).gotoandstop(play_name);
eval ("_root.map_s." + map_obj_name2).gotoandstop(play_name2);
eval ("_root.map_s." + map_obj_name3).gotoandstop(play_name3);
}
omuki = pmuki;
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + this.player._y;
eval ("_root.map_s." + map_obj_name2).tdx = dy2 * 6;
eval ("_root.map_s." + map_obj_name2).tdy = (dx2 * -1) * 6;
eval ("_root.map_s." + map_obj_name2)._x = (this._x + (dy2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name2)._y = ((this._y - (dx2 * 12)) + this.player._y) + ((1 - Math.ceil(sp_on / 900)) * 800);
eval ("_root.map_s." + map_obj_name3).tdx = dx2 * 6;
eval ("_root.map_s." + map_obj_name3).tdy = dy2 * 6;
eval ("_root.map_s." + map_obj_name3)._x = (this._x + (dx2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name3)._y = ((this._y + (dy2 * 12)) + this.player._y) + ((1 - Math.ceil(sp_on / 900)) * 800);
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3);
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name2)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 1;
eval ("_root.map_s." + map_obj_name2).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name3)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 2;
eval ("_root.map_s." + map_obj_name3).swapDepths(dpth);
if (_root.jump_on < 0) {
eval ("_root.map_s." + map_obj_name).removeMovieClip();
eval ("_root.map_s." + map_obj_name2).removeMovieClip();
eval ("_root.map_s." + map_obj_name3).removeMovieClip();
}
}
} else {
play_name = "tatu" + pmuki;
play_name2 = "tatu" + ((pmuki % 8) + 1);
play_name3 = "tatu" + (((pmuki + 6) % 8) + 1);
if (!((4 < pmuki) || (pmuki == 1))) {
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 55100 + _root.arrow_n);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name2, (55100 + _root.arrow_n) + 10);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name3, (55100 + _root.arrow_n) + 20);
} else {
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name2, (54900 + _root.arrow_n) + 10);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name3, (54900 + _root.arrow_n) + 20);
}
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + 160;
eval ("_root.map_s." + map_obj_name2).gotoandplay(play_name2);
eval ("_root.map_s." + map_obj_name2).tdx = dy2 * 6;
eval ("_root.map_s." + map_obj_name2).tdy = (dx2 * -1) * 6;
eval ("_root.map_s." + map_obj_name2)._x = (this._x + (dy2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name2)._y = ((this._y - (dx2 * 12)) + 160) + ((1 - Math.ceil(sp_on / 900)) * 800);
eval ("_root.map_s." + map_obj_name3).gotoandplay(play_name3);
eval ("_root.map_s." + map_obj_name3).tdx = dx2 * 6;
eval ("_root.map_s." + map_obj_name3).tdy = dy2 * 6;
eval ("_root.map_s." + map_obj_name3)._x = (this._x + (dx2 * 12)) + 240;
eval ("_root.map_s." + map_obj_name3)._y = ((this._y + (dy2 * 12)) + 160) + ((1 - Math.ceil(sp_on / 900)) * 800);
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n * 3;
eval ("_root.map_s." + map_obj_name2).chara_n = (_root.arrow_n * 3) + 1;
eval ("_root.map_s." + map_obj_name3).chara_n = (_root.arrow_n * 3) + 2;
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3);
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name2)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 1;
eval ("_root.map_s." + map_obj_name2).swapDepths(dpth);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name3)._y - _root.map_s.player1._y) - 160) * 200)) + (_root.arrow_n * 3)) + 2;
eval ("_root.map_s." + map_obj_name3).swapDepths(dpth);
arrow_cnt = 20;
arrow_tame = 0;
arrow_kamae = -1;
omuki = pmuki;
}
_root.bg1._x = (_root.map_s._x / 8) % 320;
_root.bg1._y = (_root.map_s._y / 8) % 240;
_root.map_s.txt0._x = this._x;
_root.map_s.txt0._y = this._y;
_root.map_s.txt0.bosshpbar._xscale = 200 * _root.bosshp;
px = px0;
py = py0;
_root.px = px;
_root.py = py;
loop_cnt++;
if (500 < loop_cnt) {
loop_cnt = 0;
}
if (0 < arrow_cnt) {
arrow_cnt--;
}
if (arrow_cnt == 10) {
arrow_kamae = 1;
}
if (arrow_cnt < 0) {
arrow_cnt++;
}
if (0 < sp_on) {
sp_on--;
}
_root.map_s.txt0.sptxt.gsbar._xscale = 30 * Math.floor(sp_on / 30);
_root.jikan--;
if ((_root.jikan < 0) && (timeup_on == 0)) {
_root.jikan = 0;
if (_root.jump_on == 0) {
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
_root.jikan = 0;
timeup_on = 90;
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
this.player.gotoandplay("timeup");
}
}
}
}
}
Instance of Symbol 120 MovieClip [sp_character2] "player2" in Symbol 102 MovieClip [sp_map1] Frame 3
onClipEvent (load) {
px0 = 0;
py0 = 0;
px = 5.5;
py = 8.5;
qx = 0;
qy = 0;
rakka1 = 0;
teki_ptn = 0;
loop_cnt = 0;
pmuki = 5;
arrow_cnt = 0;
mouse_kakudo = 0;
move_on = 0;
teki_ran = 0;
arrow_tame = 0;
arrow_on = 0;
timeup_on = 0;
arrow_kamae = 1;
sp_on = 0;
muteki = 0;
bcnt = 0;
}
onClipEvent (enterFrame) {
if (((_root.charan == 2) && (this != _root.map_os.player2)) && (this != _root.map_s.player2)) {
if (!(((timeup_on == 0) && (_root.bossmode != 1)) && (_root.bossmode < 3))) {
if (_root.bossmode != 1) {
if (_root.bossmode != 3) {
if (_root.bossmode != 4) {
if (0 < timeup_on) {
_root.jikan = 0;
timeup_on--;
if (timeup_on == 1) {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
_root.gotoandplay("end");
}
}
} else {
if (bcnt != 0) {
if (bcnt != 170) {
if (bcnt != 171) {
if (bcnt != 172) {
if (bcnt != 300) {
if (bcnt == 200) {
_root.map_s.bossx.gotoandplay("tatu0");
_root.se_baku.start();
}
} else {
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
map_obj_name = "arrow98";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
} else {
map_obj_name = "arrow96";
pmuki = eval ("_root.map_s." + map_obj_name).getDepth() + 1;
map_obj_name = "arrow98";
eval ("_root.map_s." + map_obj_name).swapDepths(pmuki);
pmuki = 1;
}
} else {
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
map_obj_name = "arrow98";
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
_root.se_gunshot2.start();
}
} else {
_root.arrow_n = 1;
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
dx = 64;
dy = -4;
} else {
dx = 35;
dy = -35;
}
} else {
dx = 0;
dy = -50;
}
} else {
dx = -35;
dy = -35;
}
} else {
dx = 30;
dy = 30;
}
} else {
dx = 0;
dy = 42;
}
} else {
dx = -30;
dy = 30;
}
} else {
dx = -64;
dy = -4;
}
kakudo = (Math.atan2((((this._y + 160) + dy) - _root.map_s.bossx._y) + 16, (((this._x + 240) + dx) - _root.map_s.bossx._x) - 16) * 180) / Math.PI;
dx2 = ((((this._x + 240) + dx) - _root.map_s.bossx._x) - 16) * -1;
dy2 = ((((this._y + 160) + dy) - _root.map_s.bossx._y) + 16) * -1;
pmuki = Math.floor(Math.sqrt((dx2 * dx2) + (dy2 * dy2)));
map_obj_name = "arrow96";
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
play_name = "tamam" + 20;
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name)._x = ((this._x + dx) + 240) + 18;
eval ("_root.map_s." + map_obj_name)._y = ((this._y + dy) + 160) + 18;
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name).chara_n = 3;
eval ("_root.map_s." + map_obj_name)._rotation = kakudo - 180;
eval ("_root.map_s." + map_obj_name)._xscale = pmuki * 10;
eval ("_root.map_s." + map_obj_name)._yscale = 0;
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
_root.arrow_n++;
map_obj_name = "arrow97";
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
play_name = "tamam" + 20;
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name)._x = ((_root.map_s.bossx._x + 16) + 18) - (Math.cos((kakudo * Math.PI) / 180) * 400);
eval ("_root.map_s." + map_obj_name)._y = ((_root.map_s.bossx._y - 16) + 18) - (Math.sin((kakudo * Math.PI) / 180) * 400);
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name).chara_n = 4;
eval ("_root.map_s." + map_obj_name)._rotation = kakudo;
eval ("_root.map_s." + map_obj_name)._xscale = 4000;
eval ("_root.map_s." + map_obj_name)._yscale = 0;
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
_root.arrow_n++;
map_obj_name = "arrow98";
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
play_name = "tamam" + 21;
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name)._x = ((this._x + dx) + 240) + 15;
eval ("_root.map_s." + map_obj_name)._y = ((this._y + dy) + 160) + 15;
eval ("_root.map_s." + map_obj_name).pw = 4;
eval ("_root.map_s." + map_obj_name).chara_n = 5;
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
_root.arrow_n++;
pmuki = 1;
dx = 0;
dy = 0;
if (10 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
this._alpha = 100;
_root.map_s.txt0.bossname.gotoandplay("siro2");
_root.se_pwup.start();
_root.map_s.txt0.bosshpbar._xscale = 0;
kakudo = (Math.atan2(((this._y + 160) - _root.map_s.bossx._y) + 16, ((this._x + 240) - _root.map_s.bossx._x) - 16) * 180) / Math.PI;
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
pmuki = 4;
} else {
pmuki = 5;
}
} else {
pmuki = 6;
}
} else {
pmuki = 7;
}
} else {
pmuki = 3;
}
} else {
pmuki = 2;
}
} else {
pmuki = 1;
}
} else {
pmuki = 8;
}
play_name = "end" + pmuki;
this.player.gotoandplay(play_name);
play_name = "tamam" + (pmuki + 20);
dy = ((((this._y + 160) - _root.map_s.bossx._y) + 16) * -1) / 60;
dx = ((((this._x + 240) - _root.map_s.bossx._x) - 16) * -1) / 60;
_root.map_s.gun1.removeMovieClip();
_root.map_s.gun2.removeMovieClip();
}
if ((200 < bcnt) && (0 < _root.map_s.bossx._alpha)) {
_root.map_s.bossx._alpha = _root.map_s.bossx._alpha - 1;
}
if ((bcnt < 300) && (170 < bcnt)) {
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name)._yscale = (bcnt - 170) * 2;
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name)._yscale = (bcnt - 170) * 2;
}
if (bcnt < 60) {
_root.map_s._x = _root.map_s._x - (dx / 2);
_root.map_s._y = _root.map_s._y - (dy / 2);
_root.map_s.txt0._x = _root.map_s.txt0._x + (dx / 2);
_root.map_s.txt0._y = _root.map_s.txt0._y + (dy / 2);
}
if (bcnt != 300) {
if (bcnt == 700) {
_root.gotoandplay("gameclear");
_root.bossmode = 5;
}
} else {
_root.bgm1.gotoandplay("play3");
_root.score = _root.score + 5000;
}
if (bcnt < 1200) {
bcnt++;
}
}
} else if (bcnt != 3) {
bcnt++;
} else {
bcnt = 0;
_root.bossmode = 4;
}
} else if (bcnt >= 40) {
if (bcnt != 40) {
if (!((bcnt == 50) || (bcnt == 60))) {
if (bcnt != 80) {
if (bcnt != 160) {
if (bcnt >= 180) {
if (bcnt >= 220) {
move_on = 0;
_root.bgm1.gotoAndPlay("play2");
_root.bossmode = 2;
bcnt = 0;
} else {
_root.bosshp = 40;
_root.map_s._x = _root.map_s._x + 6;
_root.map_s._y = _root.map_s._y - 6;
_root.map_s.txt0._x = _root.map_s.txt0._x - 6;
_root.map_s.txt0._y = _root.map_s.txt0._y + 6;
bcnt++;
}
} else {
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
bcnt++;
_root.se_doon.start();
}
} else {
_root.se_biri.start();
bcnt++;
}
} else {
map_obj_name = "bossx";
_root.enmy_n = 0;
_root.map_s.boss0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
i = 217;
j = 7;
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).gotoandplay(1);
_root.enmy_n = 1;
_root.enmy_n0 = 0;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
bcnt++;
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ix = Math.floor(px0 / 32) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
_root.mapx[jx] = (_root.mapx[jx].substring(0, (64 * 3) + 12) + "0000") + _root.mapx[jx].substring((64 * 3) + 16);
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
_root.se_biri.start();
}
} else {
_root.map_s._x = _root.map_s._x - 6;
_root.map_s._y = _root.map_s._y + 6;
_root.map_s.txt0._x = _root.map_s.txt0._x + 6;
_root.map_s.txt0._y = _root.map_s.txt0._y - 6;
bcnt++;
}
} else {
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
dxy = 1;
mx = 0;
my = 0;
if (mousemode == 1) {
mouse_kakudo = (Math.atan2(((_root._ymouse - 160) - 56) - 16, (_root._xmouse - 240) + 16) * 180) / Math.PI;
_root.flag2 = Math.floor(mouse_kakudo);
if (!(((45 + 22.5) >= mouse_kakudo) && ((45 - 22.5) < mouse_kakudo))) {
if (!(((135 + 22.5) >= mouse_kakudo) && ((135 - 22.5) < mouse_kakudo))) {
if (!(((-135 + 22.5) >= mouse_kakudo) && ((-135 - 22.5) < mouse_kakudo))) {
if (!(((-45 + 22.5) >= mouse_kakudo) && ((-45 - 22.5) < mouse_kakudo))) {
if (!(((-90 + 22.5) >= mouse_kakudo) && ((-90 - 22.5) < mouse_kakudo))) {
if (!(((0 + 22.5) >= mouse_kakudo) && ((-22.5) < mouse_kakudo))) {
if (!(((90 + 22.5) >= mouse_kakudo) && ((90 - 22.5) < mouse_kakudo))) {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
}
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
}
}
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.PGDN)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.END)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.HOME)))) {
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.PGUP)))) {
if (!Key.isDown(Key.RIGHT)) {
if (!Key.isDown(Key.LEFT)) {
if (!Key.isDown(Key.DOWN)) {
if (!Key.isDown(Key.UP)) {
tenkey = 0;
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
tenkey = 1;
mousemode = 0;
}
if (!(Key.isDown(1) || (tenkey == 1))) {
dxy = 1;
mx = 0;
my = 0;
move_on = 0;
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + (pmuki + (Math.ceil(sp_on / 900) * 10)));
}
} else {
if (Key.isDown(1)) {
mousemode = 1;
}
if (move_on != (pmuki * arrow_kamae)) {
if (arrow_kamae != -1) {
this.player.gotoandplay("tatu" + pmuki);
} else {
this.player.gotoandplay("utu" + (pmuki + (Math.ceil(sp_on / 900) * 10)));
}
move_on = pmuki * arrow_kamae;
}
}
if ((Key.isDown(77) || (Key.isDown(67))) && (_root.jump_on == 0)) {
_root.jump_on = 23;
_root.se_jump.start();
}
if ((((Key.isDown(66) || (Key.isDown(90))) && (0 < _root.sp)) && (-20 < _root.jump_on)) && (sp_on < 1)) {
sp_on = 900;
_root.se_pwup.start();
_root.sp--;
}
if (0 >= _root.jump_on) {
if (!((_root.jump_on < 0) && (-70 < _root.jump_on))) {
rakka1 = 0;
} else {
_root.map_s.gun1.removeMovieClip();
_root.map_s.gun2.removeMovieClip();
this.player._y = this.player._y - (_root.jump_on - 10);
_root.jump_on--;
if (_root.jump_on == -20) {
if (sp_on != 0) {
_root.se_warp1.start();
_root.map_s.player1.swapDepths(250001);
_root.map_s.player1.player.gotoandstop("tatu1");
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
sp_on = 0;
_root.map_s._x = qx;
_root.map_s._y = qy;
_root.map_s.player1._x = -32 - qx;
_root.map_s.player1._y = 56 - qy;
muteki = 150;
this._alpha = 50;
arrow_tame = 0;
arrow_cnt = 18;
this.player._y = 160;
move_on = 0;
} else {
_root.se_fall.start();
}
}
if (_root.jump_on < -50) {
_root.enmy_n0 = 0;
rakka1 = 0;
_root.jump_on = -100;
_root.tobashi = 0;
_root.gotoandplay("end");
}
}
} else {
this.player._y = this.player._y - (_root.jump_on - 12);
_root.jump_on--;
rakka1 = 1;
}
if (0 < muteki) {
_root.tobashi = 0;
muteki--;
if (muteki < 1) {
this._alpha = 100;
}
}
if (0 < _root.tobashi) {
_root.tobashi--;
_root.map_s._x = _root.map_s._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y + (((_root.my2 * _root.tobashi) * 2) / 10);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b") {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c") {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x + (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((7 * _root.tobashi) * 2) / 10);
this._x = this._x - (((7 * _root.tobashi) * 2) / 10);
this._y = this._y - (((7 * _root.tobashi) * 2) / 10);
}
} else {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x - (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((7 * _root.tobashi) * 2) / 10);
this._x = this._x + (((7 * _root.tobashi) * 2) / 10);
this._y = this._y + (((7 * _root.tobashi) * 2) / 10);
}
}
k = 0;
for ( ; k < dxy ; k++) {
_root.map_s._x = _root.map_s._x - (mx / 2);
_root.map_s._y = _root.map_s._y - (my / 2);
this._x = this._x + (mx / 2);
this._y = this._y + (my / 2);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.jump_on >= 0) {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
this.player_kage.gotoandstop(1);
if (_root.jump_on == 0) {
qx = _root.map_s._x;
qy = _root.map_s._y;
}
} else if (!((rakka1 == 0) && (_root.tobashi == 0))) {
this.player_kage.gotoandstop("kesu");
if ((_root.jump_on == 0) || (0 < _root.tobashi)) {
k = 100;
dy = _root.jump_on - 12;
_root.jump_on = -1;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths(50090 - (((ix1 + 16) - iy1) * 100));
if (!((192 < ix1) || (128 < _root.startx))) {
if (!((128 < ix1) || (64 < _root.startx))) {
if (64 < ix1) {
_root.startx = 64;
_root.starty = 6;
}
} else {
_root.startx = 128;
_root.starty = 3;
}
} else {
_root.startx = 192;
_root.starty = 4;
}
}
} else {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c")) {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
if (((207 < Math.floor(px0 / 2)) && (_root.jump_on == 0)) && (_root.bossmode == 0)) {
bcnt = 0;
_root.bossmode = 1;
_root.bgm1.gotoAndPlay("end");
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + (pmuki + (Math.ceil(sp_on / 900) * 10)));
}
}
if ((_root.bossmode == 2) && (_root.bosshp < 1)) {
_root.bosshp = 0;
if (_root.jump_on == 0) {
bcnt = 0;
_root.bossmode = 3;
}
}
if (Math.floor(px / 32) >= Math.floor(px0 / 32)) {
if (Math.floor(px0 / 32) < Math.floor(px / 32)) {
ij = 0;
for ( ; ij < (Math.floor(px / 32) - Math.floor(px0 / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) + 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
} else {
ij = 0;
for ( ; ij < (Math.floor(px0 / 32) - Math.floor(px / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) + 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) - 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
if (Math.floor(px / 2) < Math.floor(px0 / 2)) {
ij = 0;
for ( ; ij < (Math.floor(px0 / 2) - Math.floor(px / 2)) ; ij++) {
i = (Math.floor(px0 / 2) + 8) - ij;
if (i < 0) {
i = 0;
}
if (250 < i) {
i = 250;
}
j = 0;
for ( ; j < 16 ; j++) {
if (_root.mapx[j].charAt(i) != "2") {
if (_root.mapx[j].charAt(i) != "3") {
if (_root.mapx[j].charAt(i) == "9") {
map_obj_name = "gs1";
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.gs0.duplicateMovieClip(map_obj_name, 58000);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.bigball0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.teki0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
}
}
if (pmuki != 1) {
if (pmuki != 2) {
if (pmuki != 3) {
if (pmuki != 4) {
if (pmuki != 5) {
if (pmuki != 6) {
if (pmuki != 7) {
dx = -10 / 8;
dy = 0;
dx2 = 0;
dy2 = -10;
} else {
dx = -7 / 8;
dy = -7 / 8;
dx2 = -7;
dy2 = 7;
}
} else {
dx = 0;
dy = -10 / 8;
dx2 = 10;
dy2 = 0;
}
} else {
dx = 7 / 8;
dy = -7 / 8;
dx2 = 7;
dy2 = 7;
}
} else {
dx = 10 / 8;
dy = 0;
dx2 = 0;
dy2 = -10;
}
} else {
dx = 7 / 8;
dy = 7 / 8;
dx2 = 7;
dy2 = -7;
}
} else {
dx = 0;
dy = 10 / 8;
dx2 = -10;
dy2 = 0;
}
} else {
dx = -7 / 8;
dy = 7 / 8;
dx2 = -7;
dy2 = -7;
}
map_obj_name = "arrow" + _root.arrow_n;
map_obj_name2 = "arrow" + (_root.arrow_n + 10);
map_obj_name3 = "arrow" + (_root.arrow_n + 20);
if (!(((Key.isDown(78) || (Key.isDown(88))) && (_root.jump_on == 0)) && (arrow_cnt == 0))) {
if (!(((Key.isDown(78) || (Key.isDown(88))) || (0 < _root.jump_on)) && (arrow_cnt == 19))) {
if (arrow_cnt == 19) {
if (arrow_tame < 60) {
if (arrow_tame < 25) {
omuki = 0;
} else {
omuki = 1;
}
} else {
omuki = 2;
}
play_name = "tamam" + (pmuki + (Math.ceil(sp_on / 900) * 10));
i = omuki * -1;
for ( ; i < (omuki + 1) ; i++) {
dpth = (_root.arrow_n - omuki) + i;
map_obj_name = "arrow" + dpth;
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 1 + Math.ceil(sp_on / 900);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = ((this._x + (dx * 20)) + 240) + (dx2 * i);
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy * 20)) + this.player._y) + (dy2 * i);
dpth = (((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) - omuki) + i;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
if (_root.jump_on < 0) {
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
_root.map_s.gun1.removeMovieClip();
_root.map_s.gun2.removeMovieClip();
_root.se_gunshot1.start();
arrow_kamae = 1;
}
} else {
arrow_cnt++;
arrow_tame++;
if (arrow_tame != 25) {
if (arrow_tame == 60) {
play_name2 = "utu" + ((pmuki + 10) + (Math.ceil(sp_on / 900) * 20));
_root.map_s.gun1.gotoandstop(play_name2);
_root.map_s.gun2.gotoandstop(play_name2);
_root.map_s.gun1._x = (this._x + 240) + (dx2 * 2);
_root.map_s.gun1._y = (this._y + this.player._y) + (dy2 * 2);
_root.map_s.gun2._x = (this._x + 240) - dx2;
_root.map_s.gun2._y = (this._y + this.player._y) - dy2;
dpth = 250002 + (((_root.map_s.gun1._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200);
_root.map_s.gun1.swapDepths(dpth);
dpth = (250002 + (((_root.map_s.gun2._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200)) + 1;
_root.map_s.gun2.swapDepths(dpth);
omuki = pmuki;
i = -2;
for ( ; i < 3 ; i = i + 2) {
if (i != 0) {
_root.arrow_n++;
dpth = _root.arrow_n;
map_obj_name = "arrow" + dpth;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + dpth);
play_name = "tamam" + (Math.ceil(sp_on / 900) * 10);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).pw = 1 + Math.ceil(sp_on / 900);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = ((this._x + (dx * 20)) + 240) + (dx2 * i);
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy * 20)) + 160) + (dy2 * i);
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n;
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
}
}
}
} else {
_root.map_s.gun0.duplicateMovieClip("gun1", 54901);
_root.map_s.gun0.duplicateMovieClip("gun2", 54902);
_root.map_s.gun1.chara_n = 1;
_root.map_s.gun2.chara_n = 2;
play_name2 = "utu" + (pmuki + (Math.ceil(sp_on / 900) * 20));
_root.map_s.gun1.gotoandstop(play_name2);
_root.map_s.gun2.gotoandstop(play_name2);
_root.map_s.gun1._x = (this._x + 240) + dx2;
_root.map_s.gun1._y = (this._y + this.player._y) + dy2;
_root.map_s.gun2._x = (this._x + 240) - dx2;
_root.map_s.gun2._y = (this._y + this.player._y) - dy2;
dpth = 250002 + (((_root.map_s.gun1._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200);
_root.map_s.gun1.swapDepths(dpth);
dpth = (250002 + (((_root.map_s.gun2._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200)) + 1;
_root.map_s.gun2.swapDepths(dpth);
omuki = pmuki;
i = -1;
for ( ; i < 2 ; i++) {
if (i != 0) {
_root.arrow_n++;
dpth = _root.arrow_n;
map_obj_name = "arrow" + dpth;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + dpth);
play_name = "tamam" + (Math.ceil(sp_on / 900) * 10);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).pw = 1 + Math.ceil(sp_on / 900);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = ((this._x + (dx * 20)) + 240) + (dx2 * i);
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy * 20)) + 160) + (dy2 * i);
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n;
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
}
}
}
if (arrow_tame < 60) {
if (arrow_tame < 25) {
omuki = 0;
} else {
_root.map_s.gun1._x = (this._x + 240) + dx2;
_root.map_s.gun1._y = (this._y + this.player._y) + dy2;
_root.map_s.gun2._x = (this._x + 240) - dx2;
_root.map_s.gun2._y = (this._y + this.player._y) - dy2;
if ((pmuki != omuki) || (sp_on == 900)) {
play_name2 = "utu" + (pmuki + (Math.ceil(sp_on / 900) * 20));
_root.map_s.gun1.gotoandstop(play_name2);
_root.map_s.gun2.gotoandstop(play_name2);
dpth = 250002 + (((_root.map_s.gun1._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200);
_root.map_s.gun1.swapDepths(dpth);
dpth = (250002 + (((_root.map_s.gun2._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200)) + 1;
_root.map_s.gun2.swapDepths(dpth);
}
omuki = 1;
}
} else {
_root.map_s.gun1._x = (this._x + 240) + (dx2 * 2);
_root.map_s.gun1._y = (this._y + this.player._y) + (dy2 * 2);
_root.map_s.gun2._x = (this._x + 240) - dx2;
_root.map_s.gun2._y = (this._y + this.player._y) - dy2;
if ((pmuki != omuki) || (sp_on == 900)) {
play_name2 = "utu" + ((pmuki + 10) + (Math.ceil(sp_on / 900) * 20));
_root.map_s.gun1.gotoandstop(play_name2);
_root.map_s.gun2.gotoandstop(play_name2);
dpth = 250002 + (((_root.map_s.gun1._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200);
_root.map_s.gun1.swapDepths(dpth);
dpth = (250002 + (((_root.map_s.gun2._y - _root.map_s.player1.player._y) - _root.map_s.player1._y) * 200)) + 1;
_root.map_s.gun2.swapDepths(dpth);
}
omuki = 2;
}
i = omuki * -1;
for ( ; i < (omuki + 1) ; i++) {
dpth = (_root.arrow_n - omuki) + i;
map_obj_name = "arrow" + dpth;
if (sp_on != 900) {
if (sp_on == 1) {
eval ("_root.map_s." + map_obj_name).gotoandplay("tamam0x");
}
} else {
eval ("_root.map_s." + map_obj_name).gotoandplay("tamam10");
}
eval ("_root.map_s." + map_obj_name).pw = 1 + Math.ceil(sp_on / 900);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = ((this._x + (dx * 20)) + 240) + (dx2 * i);
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy * 20)) + this.player._y) + (dy2 * i);
dpth = (((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) - omuki) + i;
if (_root.jump_on == 0) {
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
}
if (_root.jump_on < 0) {
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
omuki = pmuki;
}
} else {
play_name = "tamam" + (Math.ceil(sp_on / 900) * 10);
_root.arrow_n++;
if (25 < _root.arrow_n) {
_root.arrow_n = 5;
}
dpth = _root.arrow_n;
map_obj_name = "arrow" + dpth;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + dpth);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 20)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 20)) + 160;
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n;
eval ("_root.map_s." + map_obj_name).pw = 1 + Math.ceil(sp_on / 900);
dpth = (250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
arrow_cnt = 20;
arrow_tame = 0;
arrow_kamae = -1;
}
_root.bg1._x = (_root.map_s._x / 8) % 320;
_root.bg1._y = (_root.map_s._y / 8) % 240;
_root.map_s.txt0._x = this._x;
_root.map_s.txt0._y = this._y;
_root.map_s.txt0.bosshpbar._xscale = 200 * _root.bosshp;
px = px0;
py = py0;
_root.px = px;
_root.py = py;
loop_cnt++;
if (500 < loop_cnt) {
loop_cnt = 0;
}
if (0 < arrow_cnt) {
arrow_cnt--;
}
if (arrow_cnt == 10) {
arrow_kamae = 1;
}
if (arrow_cnt < 0) {
arrow_cnt++;
}
if (0 < sp_on) {
sp_on--;
}
_root.map_s.txt0.sptxt.gsbar._xscale = 30 * Math.floor(sp_on / 30);
_root.jikan--;
if ((_root.jikan < 0) && (timeup_on == 0)) {
_root.jikan = 0;
_root.map_s.gun1.removeMovieClip();
_root.map_s.gun2.removeMovieClip();
if (_root.jump_on == 0) {
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
_root.jikan = 0;
timeup_on = 90;
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
this.player.gotoandplay("timeup");
}
}
}
}
}
Instance of Symbol 140 MovieClip [sp_character3] "player3" in Symbol 102 MovieClip [sp_map1] Frame 4
onClipEvent (load) {
px0 = 0;
py0 = 0;
px = 5.5;
py = 8.5;
qx = 0;
qy = 0;
rakka1 = 0;
teki_ptn = 0;
loop_cnt = 0;
pmuki = 5;
arrow_cnt = 0;
mouse_kakudo = 0;
move_on = 0;
teki_ran = 0;
arrow_tame = 0;
arrow_on = 0;
timeup_on = 0;
arrow_kamae = 1;
sp_on = 0;
muteki = 0;
bcnt = 0;
tenkey = 0;
mousemode = 0;
}
onClipEvent (enterFrame) {
if (((_root.charan == 3) && (this != _root.map_os.player3)) && (this != _root.map_s.player3)) {
if (!(((timeup_on == 0) && (_root.bossmode != 1)) && (_root.bossmode < 3))) {
if (_root.bossmode != 1) {
if (_root.bossmode != 3) {
if (_root.bossmode != 4) {
if (0 < timeup_on) {
_root.jikan = 0;
timeup_on--;
if (timeup_on == 1) {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
_root.gotoandplay("end");
}
}
} else {
if (bcnt != 0) {
if (bcnt != 130) {
if (bcnt != 160) {
if (bcnt != 161) {
if (!((161 < bcnt) && (bcnt < 201))) {
if (bcnt != 255) {
if (bcnt != 263) {
if (bcnt == 269) {
_root.map_s.bossx.gotoandplay("tatu0");
_root.se_baku.start();
}
} else {
_root.homsp = 1;
_root.map_s.txt0.timestop.gotoandstop("b");
k = 0;
for ( ; k < 8 ; k++) {
map_obj_name = "arrow" + (90 + k);
eval ("_root.map_s." + map_obj_name).pw = 3;
eval ("_root.map_s." + map_obj_name).tame = 250;
}
}
} else {
_root.se_kachi1.start();
}
} else {
if (bcnt == 180) {
this.player.gotoandstop("end1");
}
k = 0;
for ( ; k < 8 ; k++) {
map_obj_name = "arrow" + (90 + k);
eval ("_root.map_s." + map_obj_name)._y = eval ("_root.map_s." + map_obj_name)._y - (10 - ((bcnt - 162) / 2));
}
}
} else {
map_obj_name = "arrow90";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow91";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow92";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow93";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow94";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow95";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow96";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
map_obj_name = "arrow97";
eval ("_root.map_s." + map_obj_name).tame = 1;
eval ("_root.map_s." + map_obj_name).pw = 4;
_root.se_shot.start();
}
} else {
_root.arrow_n = 1;
play_name = "tamamh1";
k = 0;
for ( ; k < 8 ; k++) {
map_obj_name = "arrow" + (90 + k);
dx2 = (_root.map_s.bossx._x + 16) + (32 * Math.cos((k * Math.PI) / 4));
dy2 = (_root.map_s.bossx._y - 16) + (32 * Math.sin((k * Math.PI) / 4));
kakudo = (Math.atan2((this._y + 160) - dy2, (this._x + 240) - dx2) * 180) / Math.PI;
dy = (((this._y + 160) - dy2) * -1) / 40;
dx = (((this._x + 240) - dx2) * -1) / 40;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name)._x = (this._x + dx) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + dy) + 160;
eval ("_root.map_s." + map_obj_name).tdx = dx;
eval ("_root.map_s." + map_obj_name).tdy = dy;
eval ("_root.map_s." + map_obj_name).chara_n = 3 + k;
_root.arrow_n++;
}
if (10 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
_root.se_pwup.start();
_root.map_s.txt0.timestop.gotoandstop("a");
}
} else {
this._alpha = 100;
_root.map_s.txt0.bossname.gotoandplay("siro3");
_root.se_pwup.start();
_root.map_s.txt0.bosshpbar._xscale = 0;
_root.homsp = 0;
kakudo = (Math.atan2(((this._y + 160) - _root.map_s.bossx._y) + 16, ((this._x + 240) - _root.map_s.bossx._x) - 16) * 180) / Math.PI;
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
pmuki = 4;
} else {
pmuki = 5;
}
} else {
pmuki = 6;
}
} else {
pmuki = 7;
}
} else {
pmuki = 3;
}
} else {
pmuki = 2;
}
} else {
pmuki = 1;
}
} else {
pmuki = 8;
}
this.player.gotoandstop("utu" + pmuki);
dy = ((((this._y + 160) - _root.map_s.bossx._y) + 16) * -1) / 60;
dx = ((((this._x + 240) - _root.map_s.bossx._x) - 16) * -1) / 60;
}
if ((269 < bcnt) && (0 < _root.map_s.bossx._alpha)) {
_root.map_s.bossx._alpha = _root.map_s.bossx._alpha - 1;
}
if (bcnt < 60) {
_root.map_s._x = _root.map_s._x - (dx / 2);
_root.map_s._y = _root.map_s._y - (dy / 2);
_root.map_s.txt0._x = _root.map_s.txt0._x + (dx / 2);
_root.map_s.txt0._y = _root.map_s.txt0._y + (dy / 2);
}
if (bcnt != 300) {
if (bcnt == 700) {
_root.bossmode = 5;
_root.gotoandplay("gameclear");
}
} else {
_root.bgm1.gotoandplay("play3");
_root.score = _root.score + 5000;
}
if (bcnt < 1200) {
bcnt++;
}
}
} else if (bcnt != 3) {
bcnt++;
} else {
bcnt = 0;
_root.bossmode = 4;
}
} else if (bcnt >= 40) {
if (bcnt != 40) {
if (!((bcnt == 50) || (bcnt == 60))) {
if (bcnt != 80) {
if (bcnt != 160) {
if (bcnt >= 180) {
if (bcnt >= 220) {
move_on = 0;
_root.bgm1.gotoAndPlay("play2");
_root.bossmode = 2;
bcnt = 0;
} else {
_root.bosshp = 40;
_root.map_s._x = _root.map_s._x + 6;
_root.map_s._y = _root.map_s._y - 6;
_root.map_s.txt0._x = _root.map_s.txt0._x - 6;
_root.map_s.txt0._y = _root.map_s.txt0._y + 6;
bcnt++;
}
} else {
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
bcnt++;
_root.se_doon.start();
}
} else {
_root.se_biri.start();
bcnt++;
}
} else {
map_obj_name = "bossx";
_root.enmy_n = 0;
_root.map_s.boss0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
i = 217;
j = 7;
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).gotoandplay(1);
_root.enmy_n = 1;
_root.enmy_n0 = 0;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
bcnt++;
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ix = Math.floor(px0 / 32) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
_root.mapx[jx] = (_root.mapx[jx].substring(0, (64 * 3) + 12) + "0000") + _root.mapx[jx].substring((64 * 3) + 16);
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
_root.se_biri.start();
}
} else {
_root.map_s._x = _root.map_s._x - 6;
_root.map_s._y = _root.map_s._y + 6;
_root.map_s.txt0._x = _root.map_s.txt0._x + 6;
_root.map_s.txt0._y = _root.map_s.txt0._y - 6;
bcnt++;
}
} else {
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
dxy = 1;
mx = 0;
my = 0;
if (mousemode == 1) {
mouse_kakudo = (Math.atan2(((_root._ymouse - 160) - 56) - 16, (_root._xmouse - 240) + 16) * 180) / Math.PI;
_root.flag2 = Math.floor(mouse_kakudo);
if (!(((45 + 22.5) >= mouse_kakudo) && ((45 - 22.5) < mouse_kakudo))) {
if (!(((135 + 22.5) >= mouse_kakudo) && ((135 - 22.5) < mouse_kakudo))) {
if (!(((-135 + 22.5) >= mouse_kakudo) && ((-135 - 22.5) < mouse_kakudo))) {
if (!(((-45 + 22.5) >= mouse_kakudo) && ((-45 - 22.5) < mouse_kakudo))) {
if (!(((-90 + 22.5) >= mouse_kakudo) && ((-90 - 22.5) < mouse_kakudo))) {
if (!(((0 + 22.5) >= mouse_kakudo) && ((-22.5) < mouse_kakudo))) {
if (!(((90 + 22.5) >= mouse_kakudo) && ((90 - 22.5) < mouse_kakudo))) {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
}
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
}
}
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.PGDN)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.END)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.HOME)))) {
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.PGUP)))) {
if (!Key.isDown(Key.RIGHT)) {
if (!Key.isDown(Key.LEFT)) {
if (!Key.isDown(Key.DOWN)) {
if (!Key.isDown(Key.UP)) {
tenkey = 0;
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
tenkey = 1;
mousemode = 0;
}
if (!(Key.isDown(1) || (tenkey == 1))) {
dxy = 1;
mx = 0;
my = 0;
move_on = 0;
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + pmuki);
}
} else {
if (Key.isDown(1)) {
mousemode = 1;
}
if (move_on != (pmuki * arrow_kamae)) {
if (arrow_kamae != -1) {
this.player.gotoandplay("tatu" + pmuki);
} else {
this.player.gotoandplay("utu" + pmuki);
}
move_on = pmuki * arrow_kamae;
}
}
if ((Key.isDown(77) || (Key.isDown(67))) && (_root.jump_on == 0)) {
_root.jump_on = 23;
_root.se_jump.start();
}
if ((((Key.isDown(66) || (Key.isDown(90))) && (0 < _root.sp)) && (-20 < _root.jump_on)) && (sp_on < 1)) {
sp_on = 300;
_root.homsp = 0;
_root.se_pwup.start();
_root.sp--;
_root.map_s.txt0.timestop.gotoandstop("a");
}
if (0 >= _root.jump_on) {
if (!((_root.jump_on < 0) && (-70 < _root.jump_on))) {
rakka1 = 0;
} else {
this.player._y = this.player._y - (_root.jump_on - 10);
_root.jump_on--;
if (_root.jump_on == -20) {
if (sp_on != 0) {
_root.se_warp1.start();
_root.map_s.player1.swapDepths(250001);
_root.map_s.player1.player.gotoandstop("tatu1");
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
sp_on = 1;
_root.map_s._x = qx;
_root.map_s._y = qy;
_root.map_s.player1._x = -32 - qx;
_root.map_s.player1._y = 56 - qy;
muteki = 150;
this._alpha = 50;
arrow_tame = 0;
arrow_cnt = 18;
this.player._y = 160;
move_on = 0;
} else {
_root.se_fall.start();
}
}
if (_root.jump_on < -50) {
_root.enmy_n0 = 0;
rakka1 = 0;
_root.jump_on = -100;
_root.tobashi = 0;
_root.gotoandplay("end");
}
}
} else {
this.player._y = this.player._y - (_root.jump_on - 12);
_root.jump_on--;
rakka1 = 1;
}
if (0 < muteki) {
_root.tobashi = 0;
muteki--;
if (muteki < 1) {
this._alpha = 100;
}
}
if (0 < _root.tobashi) {
_root.tobashi--;
_root.map_s._x = _root.map_s._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y + (((_root.my2 * _root.tobashi) * 2) / 10);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b") {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c") {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x + (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((7 * _root.tobashi) * 2) / 10);
this._x = this._x - (((7 * _root.tobashi) * 2) / 10);
this._y = this._y - (((7 * _root.tobashi) * 2) / 10);
}
} else {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x - (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((7 * _root.tobashi) * 2) / 10);
this._x = this._x + (((7 * _root.tobashi) * 2) / 10);
this._y = this._y + (((7 * _root.tobashi) * 2) / 10);
}
}
k = 0;
for ( ; k < dxy ; k++) {
_root.map_s._x = _root.map_s._x - (mx / 2);
_root.map_s._y = _root.map_s._y - (my / 2);
this._x = this._x + (mx / 2);
this._y = this._y + (my / 2);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.jump_on >= 0) {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
this.player_kage.gotoandstop(1);
if (_root.jump_on == 0) {
qx = _root.map_s._x;
qy = _root.map_s._y;
}
} else if (!((rakka1 == 0) && (_root.tobashi == 0))) {
this.player_kage.gotoandstop("kesu");
if ((_root.jump_on == 0) || (0 < _root.tobashi)) {
k = 100;
dy = _root.jump_on - 12;
_root.jump_on = -1;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths(50090 - (((ix1 + 16) - iy1) * 100));
if (!((192 < ix1) || (128 < _root.startx))) {
if (!((128 < ix1) || (64 < _root.startx))) {
if (64 < ix1) {
_root.startx = 64;
_root.starty = 6;
}
} else {
_root.startx = 128;
_root.starty = 3;
}
} else {
_root.startx = 192;
_root.starty = 4;
}
}
} else {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c")) {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
if (((207 < Math.floor(px0 / 2)) && (_root.jump_on == 0)) && (_root.bossmode == 0)) {
bcnt = 0;
_root.bossmode = 1;
_root.bgm1.gotoAndPlay("end");
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + pmuki);
}
}
if ((_root.bossmode == 2) && (_root.bosshp < 1)) {
_root.bosshp = 0;
if (_root.jump_on == 0) {
bcnt = 0;
_root.bossmode = 3;
}
}
if (Math.floor(px / 32) >= Math.floor(px0 / 32)) {
if (Math.floor(px0 / 32) < Math.floor(px / 32)) {
ij = 0;
for ( ; ij < (Math.floor(px / 32) - Math.floor(px0 / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) + 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
} else {
ij = 0;
for ( ; ij < (Math.floor(px0 / 32) - Math.floor(px / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) + 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) - 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
if (Math.floor(px / 2) < Math.floor(px0 / 2)) {
ij = 0;
for ( ; ij < (Math.floor(px0 / 2) - Math.floor(px / 2)) ; ij++) {
i = (Math.floor(px0 / 2) + 8) - ij;
if (i < 0) {
i = 0;
}
if (250 < i) {
i = 250;
}
j = 0;
for ( ; j < 16 ; j++) {
if (_root.mapx[j].charAt(i) != "2") {
if (_root.mapx[j].charAt(i) != "3") {
if (_root.mapx[j].charAt(i) == "9") {
map_obj_name = "gs1";
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.gs0.duplicateMovieClip(map_obj_name, 58000);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.bigball0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.teki0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
}
}
if (pmuki != 1) {
if (pmuki != 2) {
if (pmuki != 3) {
if (pmuki != 4) {
if (pmuki != 5) {
if (pmuki != 6) {
if (pmuki != 7) {
dx = -10 / 8;
dy = 0;
dx2 = -7 / 8;
dy2 = -7 / 8;
} else {
dx = -7 / 8;
dy = -7 / 8;
dx2 = 0;
dy2 = -10 / 8;
}
} else {
dx = 0;
dy = -10 / 8;
dx2 = 7 / 8;
dy2 = -7 / 8;
}
} else {
dx = 7 / 8;
dy = -7 / 8;
dx2 = 10 / 8;
dy2 = 0;
}
} else {
dx = 10 / 8;
dy = 0;
dx2 = 7 / 8;
dy2 = 7 / 8;
}
} else {
dx = 7 / 8;
dy = 7 / 8;
dx2 = 0;
dy2 = 10 / 8;
}
} else {
dx = 0;
dy = 10 / 8;
dx2 = -7 / 8;
dy2 = 7 / 8;
}
} else {
dx = -7 / 8;
dy = 7 / 8;
dx2 = -10 / 8;
dy2 = 0;
}
if (sp_on < 1) {
dx2 = 0;
dy2 = 0;
}
map_obj_name = "arrow" + _root.arrow_n;
if (!(((Key.isDown(78) || (Key.isDown(88))) && (_root.jump_on == 0)) && (arrow_cnt == 0))) {
if (!(((Key.isDown(78) || (Key.isDown(88))) || (0 < _root.jump_on)) && (arrow_cnt == 19))) {
if (arrow_cnt == 19) {
eval ("_root.map_s." + map_obj_name).tame = 1;
if (arrow_tame < 60) {
if (arrow_tame < 25) {
play_name = "tamamh1";
eval ("_root.map_s." + map_obj_name).pw = 1;
} else {
play_name = "tamamh2";
eval ("_root.map_s." + map_obj_name).pw = 2;
}
} else {
play_name = "tamamh3";
eval ("_root.map_s." + map_obj_name).pw = 3;
}
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + 160;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
_root.se_shot.start();
_root.arrow_n++;
if (12 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
arrow_cnt++;
arrow_tame++;
if (arrow_tame < 60) {
if (arrow_tame < 25) {
play_name = "tamamh1";
eval ("_root.map_s." + map_obj_name).pw = 1;
} else {
play_name = "tamamh2";
eval ("_root.map_s." + map_obj_name).pw = 2;
}
} else {
play_name = "tamamh3";
eval ("_root.map_s." + map_obj_name).pw = 3;
}
if ((arrow_tame == 25) || (arrow_tame == 60)) {
omuki = 0;
}
if (pmuki != omuki) {
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
}
omuki = pmuki;
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + this.player._y;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
if (_root.jump_on < 0) {
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
} else {
play_name = "tamamh1";
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 12)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 12)) + 160;
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n + 3;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
arrow_cnt = 20;
arrow_tame = 0;
arrow_kamae = -1;
omuki = pmuki;
if (7 < sp_on) {
sp_on = sp_on - 20;
if (sp_on < 8) {
sp_on = 7;
}
}
}
_root.bg1._x = (_root.map_s._x / 8) % 320;
_root.bg1._y = (_root.map_s._y / 8) % 240;
_root.map_s.txt0._x = this._x;
_root.map_s.txt0._y = this._y;
_root.map_s.txt0.bosshpbar._xscale = 200 * _root.bosshp;
px = px0;
py = py0;
_root.px = px;
_root.py = py;
loop_cnt++;
if (500 < loop_cnt) {
loop_cnt = 0;
}
if (0 < arrow_cnt) {
arrow_cnt--;
}
if (arrow_cnt == 18) {
arrow_kamae = 1;
}
if (arrow_cnt < 0) {
arrow_cnt++;
}
if (0 < sp_on) {
if (sp_on != 1) {
if (sp_on == 7) {
_root.se_kachi1.start();
}
} else {
_root.map_s.txt0.timestop.gotoandstop("b");
_root.homsp = 1;
}
sp_on--;
}
_root.map_s.txt0.sptxt.gsbar._xscale = 30 * Math.floor(sp_on / 30);
_root.jikan--;
if ((_root.jikan < 0) && (timeup_on == 0)) {
_root.jikan = 0;
if (_root.jump_on == 0) {
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
_root.jikan = 0;
timeup_on = 90;
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
this.player.gotoandplay("timeup");
}
}
}
}
}
Instance of Symbol 148 MovieClip [sp_character4] "player4" in Symbol 102 MovieClip [sp_map1] Frame 5
onClipEvent (load) {
px0 = 0;
py0 = 0;
px = 5.5;
py = 8.5;
qx = 0;
qy = 0;
rakka1 = 0;
teki_ptn = 0;
loop_cnt = 0;
pmuki = 5;
arrow_cnt = 0;
mouse_kakudo = 0;
move_on = 0;
teki_ran = 0;
arrow_tame = 0;
arrow_on = 0;
timeup_on = 0;
arrow_kamae = 1;
sp_on = 0;
muteki = 0;
arw_pw = 0;
bcnt = 0;
tenkey = 0;
mousemode = 0;
}
onClipEvent (enterFrame) {
if (((_root.charan == 4) && (this != _root.map_os.player4)) && (this != _root.map_s.player4)) {
if (!(((timeup_on == 0) && (_root.bossmode != 1)) && (_root.bossmode < 3))) {
if (_root.bossmode != 1) {
if (_root.bossmode != 3) {
if (_root.bossmode != 4) {
if (0 < timeup_on) {
_root.jikan = 0;
timeup_on--;
if (timeup_on == 1) {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
_root.gotoandplay("end");
}
}
} else {
if (bcnt != 0) {
if (bcnt != 130) {
if (bcnt != 161) {
if ((161 < bcnt) && (bcnt < 181)) {
this._x = this._x + dx;
this._y = this._y + dy;
this.player._y = this.player._y + (bcnt - 171);
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx2 * 2)) + 240;
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy2 * 2)) + this.player._y) - 8;
if (bcnt == 175) {
_root.map_s.bossx.gotoandplay("tatu0");
_root.se_baku.start();
}
}
} else {
this.player.gotoandstop("utub" + pmuki);
if (pmuki != 1) {
if (pmuki != 2) {
if (pmuki != 3) {
if (pmuki != 4) {
if (pmuki != 5) {
if (pmuki != 6) {
if (pmuki != 7) {
dx2 = -18;
dy2 = 5;
} else {
dx2 = -8;
dy2 = -13;
}
} else {
dx2 = 6;
dy2 = -23;
}
} else {
dx2 = 16;
dy2 = -5;
}
} else {
dx2 = 17;
dy2 = 5;
}
} else {
dx2 = 8;
dy2 = 18;
}
} else {
dx2 = -6;
dy2 = 23;
}
} else {
dx2 = -16;
dy2 = 15;
}
map_obj_name = "arrow" + 99;
play_name = "tamaan31";
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx2 * 2)) + 240;
eval ("_root.map_s." + map_obj_name)._y = ((this._y + (dy2 * 2)) + this.player._y) - 8;
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 4;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
_root.se_byoro7.start();
}
} else {
dx2 = _root.map_s.bossx._x + 16;
dy2 = _root.map_s.bossx._y + 16;
kakudo = (Math.atan2((this._y + 160) - dy2, (this._x + 240) - dx2) * 180) / Math.PI;
dy = (((this._y + 160) - dy2) * -1) / 20;
dx = (((this._x + 240) - dx2) * -1) / 20;
_root.arrow_n = 1;
play_name = "tamamh1";
_root.se_byoro2.start();
k = 0;
for ( ; k < 6 ; k++) {
map_obj_name = "arrow" + (90 + k);
dx2 = (_root.map_s.bossx._x + 16) + (64 * Math.cos(((k * Math.PI) / 3) + 1.1));
dy2 = (_root.map_s.bossx._y + 16) + (64 * Math.sin(((k * Math.PI) / 3) + 1.1));
_root.map_s.gun0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
eval ("_root.map_s." + map_obj_name).gotoandplay("ank1");
eval ("_root.map_s." + map_obj_name)._x = dx2;
eval ("_root.map_s." + map_obj_name)._y = dy2;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + k) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
_root.arrow_n++;
}
if (10 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
this._alpha = 100;
_root.map_s.txt0.bossname.gotoandplay("siro4");
_root.se_pwup.start();
_root.map_s.txt0.bosshpbar._xscale = 0;
_root.homsp = 0;
kakudo = (Math.atan2(((this._y + 160) - _root.map_s.bossx._y) + 16, ((this._x + 240) - _root.map_s.bossx._x) - 16) * 180) / Math.PI;
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
pmuki = 4;
} else {
pmuki = 5;
}
} else {
pmuki = 6;
}
} else {
pmuki = 7;
}
} else {
pmuki = 3;
}
} else {
pmuki = 2;
}
} else {
pmuki = 1;
}
} else {
pmuki = 8;
}
this.player.gotoandstop("utu" + pmuki);
dy = ((((this._y + 160) - _root.map_s.bossx._y) + 16) * -1) / 60;
dx = ((((this._x + 240) - _root.map_s.bossx._x) - 16) * -1) / 60;
}
if ((181 < bcnt) && (0 < _root.map_s.bossx._alpha)) {
_root.map_s.bossx._alpha = _root.map_s.bossx._alpha - 1;
}
if (bcnt < 60) {
_root.map_s._x = _root.map_s._x - (dx / 2);
_root.map_s._y = _root.map_s._y - (dy / 2);
_root.map_s.txt0._x = _root.map_s.txt0._x + (dx / 2);
_root.map_s.txt0._y = _root.map_s.txt0._y + (dy / 2);
}
if (bcnt != 210) {
if (bcnt == 700) {
_root.bossmode = 5;
_root.gotoandplay("gameclear");
}
} else {
_root.bgm1.gotoandplay("play3");
_root.score = _root.score + 5000;
}
if (bcnt < 1200) {
bcnt++;
}
}
} else if (bcnt != 3) {
bcnt++;
} else {
bcnt = 0;
_root.bossmode = 4;
}
} else if (bcnt >= 40) {
if (bcnt != 40) {
if (!((bcnt == 50) || (bcnt == 60))) {
if (bcnt != 80) {
if (bcnt != 160) {
if (bcnt >= 180) {
if (bcnt >= 220) {
move_on = 0;
_root.bgm1.gotoAndPlay("play2");
_root.bossmode = 2;
bcnt = 0;
} else {
_root.bosshp = 40;
_root.map_s._x = _root.map_s._x + 6;
_root.map_s._y = _root.map_s._y - 6;
_root.map_s.txt0._x = _root.map_s.txt0._x - 6;
_root.map_s.txt0._y = _root.map_s.txt0._y + 6;
bcnt++;
}
} else {
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
bcnt++;
}
} else {
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y + 400;
bcnt++;
_root.se_doon.start();
}
} else {
_root.se_biri.start();
bcnt++;
}
} else {
map_obj_name = "bossx";
_root.enmy_n = 0;
_root.map_s.boss0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
i = 217;
j = 7;
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).gotoandplay(1);
_root.enmy_n = 1;
_root.enmy_n0 = 0;
if (100 < _root.enmy_n) {
_root.enmy_n = 1;
}
bcnt++;
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ix = Math.floor(px0 / 32) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
_root.mapx[jx] = (_root.mapx[jx].substring(0, (64 * 3) + 12) + "0000") + _root.mapx[jx].substring((64 * 3) + 16);
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
_root.se_biri.start();
}
} else {
_root.map_s._x = _root.map_s._x - 6;
_root.map_s._y = _root.map_s._y + 6;
_root.map_s.txt0._x = _root.map_s.txt0._x + 6;
_root.map_s.txt0._y = _root.map_s.txt0._y - 6;
bcnt++;
}
} else {
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
dxy = 1;
mx = 0;
my = 0;
if (mousemode == 1) {
mouse_kakudo = (Math.atan2(((_root._ymouse - 160) - 56) - 16, (_root._xmouse - 240) + 16) * 180) / Math.PI;
_root.flag2 = Math.floor(mouse_kakudo);
if (!(((45 + 22.5) >= mouse_kakudo) && ((45 - 22.5) < mouse_kakudo))) {
if (!(((135 + 22.5) >= mouse_kakudo) && ((135 - 22.5) < mouse_kakudo))) {
if (!(((-135 + 22.5) >= mouse_kakudo) && ((-135 - 22.5) < mouse_kakudo))) {
if (!(((-45 + 22.5) >= mouse_kakudo) && ((-45 - 22.5) < mouse_kakudo))) {
if (!(((-90 + 22.5) >= mouse_kakudo) && ((-90 - 22.5) < mouse_kakudo))) {
if (!(((0 + 22.5) >= mouse_kakudo) && ((-22.5) < mouse_kakudo))) {
if (!(((90 + 22.5) >= mouse_kakudo) && ((90 - 22.5) < mouse_kakudo))) {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
}
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
}
}
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.PGDN)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.DOWN))) || (Key.isDown(Key.END)))) {
if (!((Key.isDown(Key.LEFT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.HOME)))) {
if (!((Key.isDown(Key.RIGHT) && (Key.isDown(Key.UP))) || (Key.isDown(Key.PGUP)))) {
if (!Key.isDown(Key.RIGHT)) {
if (!Key.isDown(Key.LEFT)) {
if (!Key.isDown(Key.DOWN)) {
if (!Key.isDown(Key.UP)) {
tenkey = 0;
} else {
dxy = 10;
mx = 0;
my = -1;
pmuki = 6;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 0;
my = 1;
pmuki = 2;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = -1;
my = 0;
pmuki = 8;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 10;
mx = 1;
my = 0;
pmuki = 4;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = -1;
pmuki = 5;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = -1;
pmuki = 7;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = -1;
my = 1;
pmuki = 1;
tenkey = 1;
mousemode = 0;
}
} else {
dxy = 7;
mx = 1;
my = 1;
pmuki = 3;
tenkey = 1;
mousemode = 0;
}
if (!(Key.isDown(1) || (tenkey == 1))) {
dxy = 1;
mx = 0;
my = 0;
move_on = 0;
if (arrow_kamae != -1) {
if (arrow_kamae == 1) {
this.player.gotoandstop("tatu" + pmuki);
}
} else {
this.player.gotoandstop("utu" + pmuki);
}
} else {
if (Key.isDown(1)) {
mousemode = 1;
}
if (!(((18 >= arrow_cnt) && ((11 - arw_pw) < arrow_cnt)) && (arrow_kamae != 1))) {
if (((11 - arw_pw) >= arrow_cnt) && (1 < arrow_cnt)) {
arrow_kamae = 1;
arw_pw = 0;
}
} else {
mx = 0;
my = 0;
}
if (move_on != (pmuki * arrow_kamae)) {
if (arrow_kamae != -1) {
if (arrow_kamae == 1) {
this.player.gotoandplay("tatu" + pmuki);
}
} else {
this.player.gotoandplay("utu" + pmuki);
}
move_on = pmuki * arrow_kamae;
}
}
if ((Key.isDown(77) || (Key.isDown(67))) && (_root.jump_on == 0)) {
_root.jump_on = 23;
_root.se_jump.start();
}
if ((((Key.isDown(66) || (Key.isDown(90))) && (0 < _root.sp)) && (-20 < _root.jump_on)) && (sp_on < 1)) {
sp_on = 600;
_root.se_pwup.start();
_root.sp--;
this._alpha = 100;
play_name = "bari1";
map_obj_name = "arrow" + 20;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + 20);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 0;
eval ("_root.map_s." + map_obj_name).tdy = dy * 0;
eval ("_root.map_s." + map_obj_name)._x = this._x + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + 160) + 1;
eval ("_root.map_s." + map_obj_name).chara_n = 20 + 3;
dpth = ((250001 + ((((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) - 1) * 200)) + 20) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
play_name = "bari2";
map_obj_name = "arrow" + 21;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + 21);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 0;
eval ("_root.map_s." + map_obj_name).tdy = dy * 0;
eval ("_root.map_s." + map_obj_name)._x = this._x + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + 160) - 1;
eval ("_root.map_s." + map_obj_name).chara_n = 21 + 3;
dpth = ((250001 + ((((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) + 1) * 200)) + 21) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
}
if (0 >= _root.jump_on) {
if (!((_root.jump_on < 0) && (-70 < _root.jump_on))) {
rakka1 = 0;
} else {
this.player._y = this.player._y - (_root.jump_on - 10);
_root.jump_on--;
if (_root.jump_on == -20) {
map_obj_name = "arrow" + 20;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
map_obj_name = "arrow" + 21;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
if (sp_on != 0) {
_root.se_warp1.start();
_root.map_s.player1.swapDepths(250001);
_root.map_s.player1.player.gotoandstop("tatu1");
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
sp_on = 0;
_root.map_s._x = qx;
_root.map_s._y = qy;
_root.map_s.player1._x = -32 - qx;
_root.map_s.player1._y = 56 - qy;
muteki = 150;
this._alpha = 50;
arrow_tame = 0;
arrow_cnt = 18;
this.player._y = 160;
move_on = 0;
} else {
_root.se_fall.start();
}
}
if (_root.jump_on < -50) {
_root.enmy_n0 = 0;
rakka1 = 0;
_root.jump_on = -100;
_root.tobashi = 0;
_root.gotoandplay("end");
}
}
} else {
this.player._y = this.player._y - (_root.jump_on - 12);
_root.jump_on--;
rakka1 = 1;
}
if (0 < muteki) {
_root.tobashi = 0;
muteki--;
if (muteki < 1) {
this._alpha = 100;
}
}
if (0 < _root.tobashi) {
_root.tobashi--;
_root.map_s._x = _root.map_s._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y + (((_root.my2 * _root.tobashi) * 2) / 10);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b") {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c") {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x + (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((7 * _root.tobashi) * 2) / 10);
this._x = this._x - (((7 * _root.tobashi) * 2) / 10);
this._y = this._y - (((7 * _root.tobashi) * 2) / 10);
}
} else {
_root.map_s._x = _root.map_s._x + (((_root.mx2 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y + (((_root.my2 * _root.tobashi) * 2) / 10);
this._x = this._x - (((_root.mx2 * _root.tobashi) * 2) / 10);
this._y = this._y - (((_root.my2 * _root.tobashi) * 2) / 10);
_root.map_s._x = _root.map_s._x - (((7 * _root.tobashi) * 2) / 10);
_root.map_s._y = _root.map_s._y - (((7 * _root.tobashi) * 2) / 10);
this._x = this._x + (((7 * _root.tobashi) * 2) / 10);
this._y = this._y + (((7 * _root.tobashi) * 2) / 10);
}
}
k = 0;
for ( ; k < dxy ; k++) {
_root.map_s._x = _root.map_s._x - (mx / 2);
_root.map_s._y = _root.map_s._y - (my / 2);
this._x = this._x + (mx / 2);
this._y = this._y + (my / 2);
px0 = 5.5 - (((_root.map_s._x - _root.map_s._y) + 4) / 32);
py0 = 8.5 - (((_root.map_s._x + _root.map_s._y) - 4) / 32);
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.jump_on >= 0) {
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
this.player_kage.gotoandstop(1);
if (_root.jump_on == 0) {
qx = _root.map_s._x;
qy = _root.map_s._y;
}
} else if (!((rakka1 == 0) && (_root.tobashi == 0))) {
this.player_kage.gotoandstop("kesu");
if ((_root.jump_on == 0) || (0 < _root.tobashi)) {
k = 100;
dy = _root.jump_on - 12;
_root.jump_on = -1;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths(50090 - (((ix1 + 16) - iy1) * 100));
if (!((192 < ix1) || (128 < _root.startx))) {
if (!((128 < ix1) || (64 < _root.startx))) {
if (64 < ix1) {
_root.startx = 64;
_root.starty = 6;
}
} else {
_root.startx = 128;
_root.starty = 3;
}
} else {
_root.startx = 192;
_root.starty = 4;
}
}
} else {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c")) {
_root.map_s._x = _root.map_s._x + (mx / 2);
_root.map_s._y = _root.map_s._y + (my / 2);
this._x = this._x - (mx / 2);
this._y = this._y - (my / 2);
}
}
px0 = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py0 = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
if (((207 < Math.floor(px0 / 2)) && (_root.jump_on == 0)) && (_root.bossmode == 0)) {
bcnt = 0;
_root.bossmode = 1;
_root.bgm1.gotoAndPlay("end");
if (arrow_kamae != -1) {
this.player.gotoandstop("tatu" + pmuki);
} else {
this.player.gotoandstop("utu" + pmuki);
}
}
if ((_root.bossmode == 2) && (_root.bosshp < 1)) {
_root.bosshp = 0;
if (_root.jump_on == 0) {
bcnt = 0;
_root.bossmode = 3;
}
}
if (Math.floor(px / 32) >= Math.floor(px0 / 32)) {
if (Math.floor(px0 / 32) < Math.floor(px / 32)) {
ij = 0;
for ( ; ij < (Math.floor(px / 32) - Math.floor(px0 / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) - 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) + 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
} else {
ij = 0;
for ( ; ij < (Math.floor(px0 / 32) - Math.floor(px / 32)) ; ij++) {
ix = (Math.floor(px0 / 32) + ij) + 1;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
j = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 0), 16);
i = parseInt("0x" + _root.yukax[ix].charAt((jx * 4) + 1), 16) + (ix * 16);
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
_root.map_s.map_object.duplicateMovieClip(map_obj_name, (50000 - (((i + 16) - j) * 100)) + j);
obj_k = "yuka" + _root.yukax[ix].charAt((jx * 4) + 2);
eval ("_root.map_s." + map_obj_name).gotoandplay(obj_k);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (160 - (i * 32)) + (j * 32);
}
}
}
ix = (Math.floor(px0 / 32) + ij) - 2;
if ((ix >= 0) && (ix < 16)) {
jx = 0;
for ( ; jx < 16 ; jx++) {
if (_root.yukax[ix].charAt((jx * 4) + 2) != 0) {
obj_n = (ix * 16) + jx;
map_obj_name = "map_object" + obj_n;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
}
}
}
}
if (Math.floor(px / 2) < Math.floor(px0 / 2)) {
ij = 0;
for ( ; ij < (Math.floor(px0 / 2) - Math.floor(px / 2)) ; ij++) {
i = (Math.floor(px0 / 2) + 8) - ij;
if (i < 0) {
i = 0;
}
if (250 < i) {
i = 250;
}
j = 0;
for ( ; j < 16 ; j++) {
if (_root.mapx[j].charAt(i) != "2") {
if (_root.mapx[j].charAt(i) != "3") {
if (_root.mapx[j].charAt(i) == "9") {
map_obj_name = "gs1";
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.gs0.duplicateMovieClip(map_obj_name, 58000);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.bigball0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = ((i * 32) + (j * 32)) + 16;
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).tame = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else if (_root.enmy_n0 < 89) {
map_obj_name = "teki" + _root.enmy_n;
_root.mapx[j] = (_root.mapx[j].substring(0, i) + "1") + _root.mapx[j].substring(i + 1);
_root.map_s.teki0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = (i * 32) + (j * 32);
eval ("_root.map_s." + map_obj_name)._y = (164 - (i * 32)) + (j * 32);
eval ("_root.map_s." + map_obj_name).nix = i;
eval ("_root.map_s." + map_obj_name).njx = j;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
}
}
}
if (pmuki != 1) {
if (pmuki != 2) {
if (pmuki != 3) {
if (pmuki != 4) {
if (pmuki != 5) {
if (pmuki != 6) {
if (pmuki != 7) {
dx = -10 / 8;
dy = 0;
dx2 = -18;
dy2 = 5;
} else {
dx = -7 / 8;
dy = -7 / 8;
dx2 = -8;
dy2 = -13;
}
} else {
dx = 0;
dy = -10 / 8;
dx2 = 6;
dy2 = -23;
}
} else {
dx = 7 / 8;
dy = -7 / 8;
dx2 = 16;
dy2 = -5;
}
} else {
dx = 10 / 8;
dy = 0;
dx2 = 17;
dy2 = 5;
}
} else {
dx = 7 / 8;
dy = 7 / 8;
dx2 = 8;
dy2 = 18;
}
} else {
dx = 0;
dy = 10 / 8;
dx2 = -6;
dy2 = 23;
}
} else {
dx = -7 / 8;
dy = 7 / 8;
dx2 = -16;
dy2 = 15;
}
map_obj_name = "arrow" + _root.arrow_n;
if (!(((Key.isDown(78) || (Key.isDown(88))) && (_root.jump_on == 0)) && (arrow_cnt == 0))) {
if (!(((Key.isDown(78) || (Key.isDown(88))) || (0 < _root.jump_on)) && (arrow_cnt == 19))) {
if (arrow_cnt == 19) {
eval ("_root.map_s." + map_obj_name).tame = 1;
if (arrow_tame < 60) {
if (arrow_tame < 30) {
play_name = "tamaan" + pmuki;
play_name2 = "utub" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 2;
arw_pw = 0;
} else {
play_name = "tamaan1" + pmuki;
play_name2 = "utuc" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 3;
arw_pw = 4;
}
} else {
play_name = "tamaan2" + pmuki;
play_name2 = "utud" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 4;
arw_pw = 8;
}
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + dx2) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + dy2) + 160;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
_root.se_shot.start();
_root.arrow_n++;
arrow_kamae = -2;
if (12 < _root.arrow_n) {
_root.arrow_n = 1;
}
}
} else {
arrow_cnt++;
arrow_tame++;
if (arrow_tame < 60) {
if (arrow_tame < 30) {
if (arrow_tame >= 0) {
play_name = "tamaanx" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 2;
}
} else {
play_name = "tamaanx1" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 3;
}
} else {
play_name = "tamaanx2" + pmuki;
eval ("_root.map_s." + map_obj_name).pw = 4;
}
if ((arrow_tame == 30) || (arrow_tame == 60)) {
omuki = 0;
}
if (pmuki != omuki) {
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
}
omuki = pmuki;
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 0)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 0)) + this.player._y;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
if (_root.jump_on < 0) {
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
if (arrow_tame < 0) {
_root.arrow_n++;
arrow_kamae = 1;
this.player.gotoandplay("tatu" + pmuki);
if (12 < _root.arrow_n) {
_root.arrow_n = 1;
}
arrow_cnt = 17;
}
}
} else {
play_name = "tamaanx" + pmuki;
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + _root.arrow_n);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 6;
eval ("_root.map_s." + map_obj_name).tdy = dy * 6;
eval ("_root.map_s." + map_obj_name)._x = (this._x + (dx * 0)) + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + (dy * 0)) + 160;
eval ("_root.map_s." + map_obj_name).chara_n = _root.arrow_n + 3;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + _root.arrow_n) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
arrow_cnt = 20;
arrow_tame = 0;
arrow_kamae = -1;
omuki = pmuki;
}
_root.bg1._x = (_root.map_s._x / 8) % 320;
_root.bg1._y = (_root.map_s._y / 8) % 240;
_root.map_s.txt0._x = this._x;
_root.map_s.txt0._y = this._y;
_root.map_s.txt0.bosshpbar._xscale = 200 * _root.bosshp;
px = px0;
py = py0;
_root.px = px;
_root.py = py;
loop_cnt++;
if (500 < loop_cnt) {
loop_cnt = 0;
}
if (0 < arrow_cnt) {
arrow_cnt--;
}
if (arrow_cnt == 18) {
this.player.gotoandplay(play_name2);
}
if (arrow_cnt == 1) {
arrow_kamae = 1;
}
if (arrow_cnt < 0) {
arrow_cnt++;
}
if (0 >= sp_on) {
if (sp_on < 0) {
sp_on = 0;
muteki = 0;
}
} else {
map_obj_name = "arrow" + 20;
eval ("_root.map_s." + map_obj_name)._x = this._x + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + this.player._y) + 1;
dpth = ((250001 + ((((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) + 1) * 200)) + 20) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
map_obj_name = "arrow" + 21;
eval ("_root.map_s." + map_obj_name)._x = this._x + 240;
eval ("_root.map_s." + map_obj_name)._y = (this._y + this.player._y) - 1;
dpth = ((250001 + ((((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) - 1) * 200)) + 20) + 3;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
sp_on--;
muteki = 10;
if (sp_on == 0) {
muteki = 0;
}
}
if (sp_on == 0) {
map_obj_name = "arrow" + 20;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
map_obj_name = "arrow" + 21;
eval ("_root.map_s." + map_obj_name).removeMovieClip();
}
_root.map_s.txt0.sptxt.gsbar._xscale = 30 * Math.floor(sp_on / 30);
_root.jikan--;
if ((_root.jikan < 0) && (timeup_on == 0)) {
_root.jikan = 0;
if (_root.jump_on == 0) {
rakka1 = 0;
_root.jump_on = 0;
_root.tobashi = 0;
_root.jikan = 0;
timeup_on = 90;
_root.map_s.txt0.bossname._y = _root.map_s.txt0.bossname._y - 400;
this.player.gotoandplay("timeup");
}
}
}
}
}
Instance of Symbol 22 MovieClip [txt_1] "txt0" in Symbol 102 MovieClip [sp_map1] Frame 6
onClipEvent (load) {
this.swapDepths(600000);
}
Instance of Symbol 208 MovieClip [ball_obj] "ball0" in Symbol 102 MovieClip [sp_map1] Frame 7
onClipEvent (load) {
otiru = 0;
muki2 = 0;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os.ball0) && (this != _root.map_s.ball0))) {
} else {
if (_root.homsp != 1) {
this.gotoandstop(play_name);
muki2 = 100;
} else {
this._x = this._x + tdx;
this._y = this._y + tdy;
if (muki2 == 100) {
this.gotoandplay(play_name);
muki2 = 0;
}
}
px0 = (((this._x - this._y) + 160) - (6 - 15)) / 32;
py0 = (((this._x + this._y) - 160) + (6 + 15)) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (otiru != 0) {
this._y = this._y + ((60 - otiru) * _root.homsp);
otiru = otiru - _root.homsp;
if (otiru == 0) {
this.removeMovieClip();
}
} else {
dpth = (250100 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b")) {
dpth = 60000 + chara_n;
this.swapDepths(dpth);
}
} else {
otiru = 60;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths((50020 - (((ix1 + 16) - iy1) * 100)) + _root.rakka_ball_n);
_root.rakka_ball_n++;
if (66 < _root.rakka_ball_n) {
_root.rakka_ball_n = 0;
}
}
}
if ((((Math.abs((this._y - _root.map_s.player1._y) - 160) < 10) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 10)) && (_root.jump_on == 0)) && (otiru == 0)) {
_root.flag1 = 666;
_root.mx2 = 4 * tdx;
_root.my2 = 4 * tdy;
_root.tobashi = 10;
_root.se_damage.start();
}
if (_root.miss_on == -20) {
this.removeMovieClip();
}
if (((640 < Math.abs((this._y - _root.map_s.player1._y) - 160)) || (960 < Math.abs((this._x - _root.map_s.player1._x) - 240))) || (_root.bossmode == 3)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 210 MovieClip [teki_obj] "teki0" in Symbol 102 MovieClip [sp_map1] Frame 8
onClipEvent (load) {
tamakan = 0;
dx = 0;
dy = 0;
muki = 1;
muki2 = 0;
ddx = 0;
ddy = 0;
otiru = 0;
tatutest = "tatu";
tekihp = 4;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os.teki0) && (this != _root.map_s.teki0))) {
} else if (!((0 < tekihp) && (_root.bossmode < 3))) {
tekihp--;
if (tekihp < -18) {
_root.enmy_n0--;
this.removeMovieClip();
}
} else {
if (otiru < 99) {
dpth = (250050 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
}
if (otiru != 0) {
if (!((30 >= otiru) && (_root.homsp == 1))) {
if (!((130 < otiru) && (_root.homsp == 1))) {
if (_root.homsp == 1) {
this._y = this._y + (130 - otiru);
otiru--;
if (otiru == 100) {
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "2") + _root.mapx[njx].substring(nix + 1);
_root.enmy_n0--;
this.removeMovieClip();
}
}
} else {
if (muki != 7) {
if (muki != 1) {
if (muki != 3) {
ddx = this._x - 2;
ddy = this._y + 2;
} else {
ddx = this._x - 2;
ddy = this._y - 12;
}
} else {
ddx = this._x + 34;
ddy = this._y - 12;
}
} else {
ddx = this._x + 34;
ddy = this._y + 2;
}
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (!((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == 0) || (otiru == 131))) {
this._x = this._x + dx;
this._y = this._y + dy;
otiru--;
} else {
otiru = 130;
ix1 = Math.max(0, Math.floor(px0 / 2));
iy1 = Math.min(15, Math.floor(py0 / 2));
this.swapDepths((50020 - (((ix1 + 16) - iy1) * 100)) + _root.rakka_ball_n);
_root.rakka_ball_n++;
if (66 < _root.rakka_ball_n) {
_root.rakka_ball_n = 0;
}
}
}
} else {
this._x = this._x + ((dx / 6) * Math.min(10, otiru - 1));
this._y = this._y + ((dy / 6) * Math.min(10, otiru - 1));
otiru--;
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != 0) {
if ((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "b") || (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) == "c")) {
this._x = this._x - ((dx / 6) * Math.min(10, otiru - 1));
this._y = this._y - ((dy / 6) * Math.min(10, otiru - 1));
}
} else {
otiru = otiru + 132;
_root.score = _root.score + 100;
}
}
} else {
kakudo = (Math.atan2((this._y - _root.map_s.player1._y) - 160, (this._x - _root.map_s.player1._x) - 240) * 180) / Math.PI;
if (_root.homsp != 1) {
tatutest = "tatu" + muki;
muki2 = 100;
this.gotoandstop(tatutest);
} else {
if (muki2 == 100) {
tatutest = "tatu" + muki;
this.gotoandplay(tatutest);
}
muki2 = Math.floor(Math.random() * 64);
if (muki2 != 0) {
if (muki2 == 1) {
muki = muki - 2;
if (muki < 0) {
muki = 7;
}
tatutest = "tatu" + muki;
this.gotoandplay(tatutest);
}
} else if (kakudo >= -90) {
if (kakudo < 90) {
if (!((kakudo >= 0) && (kakudo < 90))) {
muki = 1;
this.gotoandplay("tatu1");
} else {
muki = 7;
this.gotoandplay("tatu7");
}
} else {
muki = 5;
this.gotoandplay("tatu5");
}
} else {
muki = 3;
this.gotoandplay("tatu3");
}
}
if (muki != 3) {
if (muki != 5) {
if (muki != 7) {
dx = -7 / 8;
dy = 7 / 8;
ddx = this._x - 2;
ddy = this._y + 2;
} else {
dx = -7 / 8;
dy = -7 / 8;
ddx = this._x - 2;
ddy = this._y - 12;
}
} else {
dx = 7 / 8;
dy = -7 / 8;
ddx = this._x + 34;
ddy = this._y - 12;
}
} else {
dx = 7 / 8;
dy = 7 / 8;
ddx = this._x + 34;
ddy = this._y + 2;
}
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (31 < py0) {
py0 = 31;
}
if (!(((_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "0") && (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "b")) && (_root.mapx[Math.floor(py0 / 2)].charAt(Math.floor(px0 / 2)) != "c"))) {
muki = muki - 2;
if (muki < 0) {
muki = 7;
}
tatutest = "tatu" + muki;
if (_root.homsp == 1) {
this.gotoandplay(tatutest);
}
} else {
this._x = this._x + (dx * _root.homsp);
this._y = this._y + (dy * _root.homsp);
}
if ((((Math.abs((this._y - _root.map_s.player1._y) - 160) < 10) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 10)) && (_root.jump_on == 0)) && (otiru == 0)) {
_root.flag1 = 666;
_root.mx2 = 8 * dx;
_root.my2 = 8 * dy;
_root.tobashi = 10;
_root.se_damage.start();
}
i = 1;
for ( ; i < 31 ; i++) {
if (((Math.abs(this._y - eval ("_root.map_s.arrow" + i)._y) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2))) && (Math.abs(this._x - eval ("_root.map_s.arrow" + i)._x) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2)))) && ((_root.jump_on == 0) || (eval ("_root.map_s.arrow" + i).tame != 0))) {
if (_root.charan != 3) {
if (_root.charan != 4) {
dx = eval ("_root.map_s.arrow" + i).tdx;
dy = eval ("_root.map_s.arrow" + i).tdy;
_root.se_tekidamage.start();
tekihp = tekihp - eval ("_root.map_s.arrow" + i).pw;
otiru = 8 + (eval ("_root.map_s.arrow" + i).pw * 2);
eval ("_root.map_s.arrow" + i).removeMovieClip();
} else {
_root.se_tekidamage.start();
if (!((i == 20) && (_root.jump_on == 0))) {
if (i < 20) {
dx = eval ("_root.map_s.arrow" + i).tdx;
dy = eval ("_root.map_s.arrow" + i).tdy;
tekihp = tekihp - eval ("_root.map_s.arrow" + i).pw;
otiru = 8 + (eval ("_root.map_s.arrow" + i).pw * 2);
if (eval ("_root.map_s.arrow" + i).tame == 0) {
eval ("_root.map_s.arrow" + i).removeMovieClip();
_root.map_s.player1.arrow_tame = -100;
}
}
} else {
kakudo2 = (Math.atan2(this._y - eval ("_root.map_s.arrow" + i)._y, this._x - eval ("_root.map_s.arrow" + i)._x) * 180) / Math.PI;
dx = Math.cos((kakudo2 * Math.PI) / 180) * 4;
dy = Math.sin((kakudo2 * Math.PI) / 180) * 4;
otiru = 8 + (2 * 2);
_root.map_s.player1.sp_on = _root.map_s.player1.sp_on - 30;
}
}
} else if (i >= 15) {
if (1 < eval ("_root.map_s.arrow" + i).pw) {
if (0 < tekihp) {
tekihp = tekihp - 2;
}
otiru = 8 + (2 * 2);
_root.se_tekidamage.start();
kakudo2 = (Math.atan2(this._y - eval ("_root.map_s.arrow" + i)._y, this._x - eval ("_root.map_s.arrow" + i)._x) * 180) / Math.PI;
dx = Math.cos((kakudo2 * Math.PI) / 180) * (4 + (eval ("_root.map_s.arrow" + i).pw / 3));
dy = Math.sin((kakudo2 * Math.PI) / 180) * (4 + (eval ("_root.map_s.arrow" + i).pw / 3));
}
} else if (eval ("_root.map_s.arrow" + i).tame < 100) {
eval ("_root.map_s.arrow" + i).tame = 250;
}
if (tekihp < 1) {
tekihp = -1;
_root.score = _root.score + 100;
this.gotoandplay("tatu0");
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "2") + _root.mapx[njx].substring(nix + 1);
}
}
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
if (((50 < (tamakan * _root.homsp)) && (Math.floor(Math.random() * 64) == 0)) && (Math.abs(Math.floor(px0) - Math.floor(px)) < 16)) {
tamakan = 0;
map_obj_name = "ball" + _root.eball_n;
_root.map_s.ball0.duplicateMovieClip(map_obj_name, 50550 + _root.eball_n);
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
play_name = "tatu4";
} else {
play_name = "tatu5";
}
} else {
play_name = "tatu6";
}
} else {
play_name = "tatu7";
}
} else {
play_name = "tatu3";
}
} else {
play_name = "tatu2";
}
} else {
play_name = "tatu1";
}
} else {
play_name = "tatu8";
}
dx = ((Math.cos((kakudo * Math.PI) / 180) * -1) * 10) / 8;
dy = ((Math.sin((kakudo * Math.PI) / 180) * -1) * 10) / 8;
eval ("_root.map_s." + map_obj_name)._x = this._x + (dx * 10);
eval ("_root.map_s." + map_obj_name)._y = this._y + (dy * 10);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = dx * 2;
eval ("_root.map_s." + map_obj_name).tdy = dy * 2;
eval ("_root.map_s." + map_obj_name).play_name = play_name;
eval ("_root.map_s." + map_obj_name).chara_n = _root.eball_n;
_root.eball_n++;
if (100 < _root.eball_n) {
_root.eball_n = 1;
}
}
tamakan = tamakan + _root.homsp;
}
if (_root.miss_on == -20) {
_root.enmy_n0--;
this.removeMovieClip();
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if ((12 < (Math.floor(px0 / 2) - Math.floor(px / 2))) || (6 < (Math.floor(px / 2) - Math.floor(px0 / 2)))) {
if (otiru != 11) {
_root.enmy_n0--;
}
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "2") + _root.mapx[njx].substring(nix + 1);
this.removeMovieClip();
}
}
}
Instance of Symbol 220 MovieClip [kball_obj] "bigball0" in Symbol 102 MovieClip [sp_map1] Frame 9
onClipEvent (load) {
tekihp = 1;
dpth = 0;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os2.bigball0) && (this != _root.map_s.bigball0))) {
} else {
dpth = (250050 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
if (0 >= tekihp) {
tekihp--;
if (tekihp != -8) {
if (tekihp != -2) {
if (tekihp < -30) {
_root.enmy_n0--;
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "3") + _root.mapx[njx].substring(nix + 1);
this.removeMovieClip();
}
} else {
this.gotoandplay("tatu0");
}
} else {
kakudo = (Math.atan2((this._y - _root.map_s.player1._y) - 160, (this._x - _root.map_s.player1._x) - 240) * 180) / Math.PI;
kakudo = kakudo - 22.5;
i = 0;
for ( ; i < 3 ; i++) {
map_obj_name = "ball" + _root.eball_n;
_root.map_s.ball0.duplicateMovieClip(map_obj_name, 50550 + _root.eball_n);
if (!((kakudo >= (-22.5)) && (kakudo < (0 + 22.5)))) {
if (!((kakudo >= (-45 - 22.5)) && (kakudo < (-45 + 22.5)))) {
if (!((kakudo >= (-90 - 22.5)) && (kakudo < (-90 + 22.5)))) {
if (!((kakudo >= (-135 - 22.5)) && (kakudo < (-135 + 22.5)))) {
if (!((kakudo >= (45 - 22.5)) && (kakudo < (45 + 22.5)))) {
if (!((kakudo >= (90 - 22.5)) && (kakudo < (90 + 22.5)))) {
if (!((kakudo >= (135 - 22.5)) && (kakudo < (135 + 22.5)))) {
play_name = "tatu4";
} else {
play_name = "tatu5";
}
} else {
play_name = "tatu6";
}
} else {
play_name = "tatu7";
}
} else {
play_name = "tatu3";
}
} else {
play_name = "tatu2";
}
} else {
play_name = "tatu1";
}
} else {
play_name = "tatu8";
}
dx = ((Math.cos((kakudo * Math.PI) / 180) * -1) * 10) / 8;
dy = ((Math.sin((kakudo * Math.PI) / 180) * -1) * 10) / 8;
eval ("_root.map_s." + map_obj_name)._x = this._x + (dx * 10);
eval ("_root.map_s." + map_obj_name)._y = this._y + (dy * 10);
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).play_name = play_name;
eval ("_root.map_s." + map_obj_name).tdx = dx * 2;
eval ("_root.map_s." + map_obj_name).tdy = dy * 2;
eval ("_root.map_s." + map_obj_name).chara_n = _root.eball_n;
_root.eball_n++;
if (100 < _root.eball_n) {
_root.eball_n = 1;
}
kakudo = kakudo + 22.5;
}
}
} else {
if (_root.homsp != 1) {
this.gotoandstop("tatu");
muki2 = 100;
} else if (muki2 == 100) {
this.gotoandplay("tatu");
muki2 = 0;
}
i = 1;
for ( ; i < 31 ; i++) {
if (((Math.abs(this._y - eval ("_root.map_s.arrow" + i)._y) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2))) && (Math.abs(this._x - eval ("_root.map_s.arrow" + i)._x) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2)))) && ((_root.jump_on == 0) || (eval ("_root.map_s.arrow" + i).tame != 0))) {
if (eval ("_root.map_s.arrow" + i).tame == 0) {
}
if (_root.charan != 3) {
if (_root.charan != 4) {
tekihp = tekihp - eval ("_root.map_s.arrow" + i).pw;
eval ("_root.map_s.arrow" + i).removeMovieClip();
} else {
_root.se_tekidamage.start();
if (!((i == 20) && (_root.jump_on == 0))) {
if (i < 20) {
tekihp = tekihp - 2;
if (eval ("_root.map_s.arrow" + i).tame == 0) {
eval ("_root.map_s.arrow" + i).removeMovieClip();
_root.map_s.player1.arrow_tame = -100;
}
}
} else {
tekihp = tekihp - 2;
_root.map_s.player1.sp_on = _root.map_s.player1.sp_on - 30;
}
}
} else if (i >= 15) {
if (1 < eval ("_root.map_s.arrow" + i).pw) {
if (0 < tekihp) {
tekihp = tekihp - 2;
}
otiru = 8 + (2 * 2);
_root.se_tekidamage.start();
kakudo2 = (Math.atan2(this._y - eval ("_root.map_s.arrow" + i)._y, this._x - eval ("_root.map_s.arrow" + i)._x) * 180) / Math.PI;
dx = Math.cos((kakudo2 * Math.PI) / 180) * (4 + (eval ("_root.map_s.arrow" + i).pw / 3));
dy = Math.sin((kakudo2 * Math.PI) / 180) * (4 + (eval ("_root.map_s.arrow" + i).pw / 3));
}
} else if (eval ("_root.map_s.arrow" + i).tame < 100) {
eval ("_root.map_s.arrow" + i).tame = 250;
}
if ((tekihp < 1) && (_root.homsp == 1)) {
tekihp = -1;
_root.score = _root.score + 100;
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "2") + _root.mapx[njx].substring(nix + 1);
this.gotoandplay("tatu0");
_root.se_bom.start();
}
}
}
if ((((Math.abs((this._y - _root.map_s.player1._y) - 160) < 128) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 128)) && (tame == 0)) || (60 < tame)) {
if (_root.homsp == 1) {
tekihp = -1;
_root.se_bom.start();
}
}
if (25 < tame) {
tame++;
}
}
if (_root.miss_on == -20) {
_root.enmy_n0--;
this.removeMovieClip();
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if ((12 < (Math.floor(px0 / 2) - Math.floor(px / 2))) || (6 < (Math.floor(px / 2) - Math.floor(px0 / 2)))) {
if (otiru != 11) {
_root.enmy_n0--;
}
_root.mapx[njx] = (_root.mapx[njx].substring(0, nix) + "3") + _root.mapx[njx].substring(nix + 1);
this.removeMovieClip();
}
}
}
Instance of Symbol 222 MovieClip [boss_obj] "boss0" in Symbol 102 MovieClip [sp_map1] Frame 10
onClipEvent (load) {
tame = 0;
tekihp = 40;
}
onClipEvent (enterFrame) {
if (!(((this != _root.map_os.boss0) && (this != _root.map_s.boss0)) && (_root.bossmode == 2))) {
} else {
if (0 >= _root.bosshp) {
} else {
dpth = 250048 + (((this._y - _root.map_s.player1._y) - 160) * 200);
this.swapDepths(dpth);
i = 1;
for ( ; i < 31 ; i++) {
if (!(((Math.abs(this._y - eval ("_root.map_s.arrow" + i)._y) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2))) && (Math.abs(this._x - eval ("_root.map_s.arrow" + i)._x) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2)))) && ((_root.jump_on == 0) || (eval ("_root.map_s.arrow" + i).tame != 0)))) {
if ((Math.abs((this._y - eval ("_root.map_s.arrow" + i)._y) + 32) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2))) && (Math.abs((this._x - eval ("_root.map_s.arrow" + i)._x) + 32) < (18 + (eval ("_root.map_s.arrow" + i).pw * 2)))) {
if (_root.charan != 3) {
if (_root.charan != 4) {
_root.se_tekidamage.start();
_root.bosshp = _root.bosshp - eval ("_root.map_s.arrow" + i).pw;
this.gotoandplay("tatu2");
eval ("_root.map_s.arrow" + i).removeMovieClip();
} else {
_root.se_tekidamage.start();
if (!((i == 20) && (_root.jump_on == 0))) {
if ((i < 20) && (eval ("_root.map_s.arrow" + i).bhit == 0)) {
_root.se_tekidamage.start();
_root.bosshp = _root.bosshp - eval ("_root.map_s.arrow" + i).pw;
this.gotoandplay("tatu2");
eval ("_root.map_s.arrow" + i).bhit = 1;
if (eval ("_root.map_s.arrow" + i).tame == 0) {
eval ("_root.map_s.arrow" + i).removeMovieClip();
_root.map_s.player1.arrow_tame = -100;
}
}
} else {
_root.map_s.player1.sp_on = _root.map_s.player1.sp_on - 30;
}
}
} else if (i >= 15) {
if ((1 < eval ("_root.map_s.arrow" + i).pw) && (eval ("_root.map_s.arrow" + i).bhit == 0)) {
if (0 < _root.bosshp) {
_root.bosshp = _root.bosshp - 2;
}
eval ("_root.map_s.arrow" + i).bhit = 1;
_root.se_tekidamage.start();
this.gotoandplay("tatu2");
}
} else if (eval ("_root.map_s.arrow" + i).tame < 100) {
eval ("_root.map_s.arrow" + i).tame = 250;
}
}
} else if (_root.charan != 3) {
if (_root.charan != 4) {
_root.se_tekidamage.start();
_root.bosshp = _root.bosshp - eval ("_root.map_s.arrow" + i).pw;
this.gotoandplay("tatu2");
eval ("_root.map_s.arrow" + i).removeMovieClip();
} else if (!((i == 20) && (_root.jump_on == 0))) {
if ((i < 20) && (eval ("_root.map_s.arrow" + i).bhit == 0)) {
_root.se_tekidamage.start();
_root.bosshp = _root.bosshp - eval ("_root.map_s.arrow" + i).pw;
this.gotoandplay("tatu2");
eval ("_root.map_s.arrow" + i).bhit = 1;
if (eval ("_root.map_s.arrow" + i).tame == 0) {
eval ("_root.map_s.arrow" + i).removeMovieClip();
_root.map_s.player1.arrow_tame = -100;
}
}
} else {
_root.map_s.player1.sp_on = _root.map_s.player1.sp_on - 30;
}
} else if (i >= 15) {
if ((1 < eval ("_root.map_s.arrow" + i).pw) && (eval ("_root.map_s.arrow" + i).bhit == 0)) {
if (0 < _root.bosshp) {
_root.bosshp = _root.bosshp - 2;
}
eval ("_root.map_s.arrow" + i).bhit = 1;
_root.se_tekidamage.start();
this.gotoandplay("tatu2");
}
} else if (eval ("_root.map_s.arrow" + i).tame < 100) {
eval ("_root.map_s.arrow" + i).tame = 250;
}
}
if (!(((((tame == 0) || (tame == 30)) || (tame == 60)) && (_root.enmy_n0 < 3)) && (_root.homsp == 1))) {
if ((tame == 90) && (_root.homsp == 1)) {
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.bigball0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = this._x;
eval ("_root.map_s." + map_obj_name)._y = this._y + 32;
eval ("_root.map_s." + map_obj_name).tame = 30;
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
} else {
map_obj_name = "teki" + _root.enmy_n;
_root.map_s.teki0.duplicateMovieClip(map_obj_name, 51000 + _root.enmy_n);
eval ("_root.map_s." + map_obj_name)._x = this._x;
eval ("_root.map_s." + map_obj_name)._y = this._y + 32;
eval ("_root.map_s." + map_obj_name).gotoandplay("tatu");
eval ("_root.map_s." + map_obj_name).nix = 1;
eval ("_root.map_s." + map_obj_name).njx = 0;
eval ("_root.map_s." + map_obj_name).chara_n = _root.enmy_n;
_root.enmy_n++;
_root.enmy_n0++;
if (50 < _root.enmy_n) {
_root.enmy_n = 1;
}
}
tame = tame + _root.homsp;
if ((500 - ((40 - _root.bosshp) * 10)) < tame) {
tame = 0;
}
}
if (_root.miss_on == -20) {
_root.enmy_n0--;
this.removeMovieClip();
}
if ((640 < Math.abs((this._y - _root.map_s.player1._y) - 160)) || (960 < Math.abs((this._x - _root.map_s.player1._x) - 240))) {
if (otiru != 11) {
_root.enmy_n0--;
}
this.removeMovieClip();
}
}
}
Instance of Symbol 36 MovieClip [gs_obj] "gs0" in Symbol 102 MovieClip [sp_map1] Frame 11
onClipEvent (load) {
tekihp = 1;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os.gs0) && (this != _root.map_s.gs0))) {
} else {
if (((Math.abs((this._y - _root.map_s.player1._y) - 160) < 10) && (Math.abs((this._x - _root.map_s.player1._x) - 240) < 10)) && (_root.jump_on == 0)) {
_root.sp = _root.sp + 1;
_root.se_get.start();
this.removeMovieClip();
}
dpth = 250049 + (((this._y - _root.map_s.player1._y) - 160) * 200);
this.swapDepths(dpth);
if ((_root.miss_on == -20) || (_root.bossmode != 0)) {
this.removeMovieClip();
}
px = 5.5 - ((_root.map_s._x - _root.map_s._y) / 32);
py = 8.5 - ((_root.map_s._x + _root.map_s._y) / 32);
ddx = this._x + 16;
ddy = this._y + 5;
px0 = ((ddx - ddy) + 160) / 32;
py0 = ((ddx + ddy) - 160) / 32;
if ((12 < (Math.floor(px0 / 2) - Math.floor(px / 2))) || (6 < (Math.floor(px / 2) - Math.floor(px0 / 2)))) {
this.removeMovieClip();
}
}
}
Instance of Symbol 212 MovieClip [arrow_obj] "arrow0" in Symbol 102 MovieClip [sp_map1] Frame 12
onClipEvent (load) {
tame = 0;
pw = 1;
bhit = 0;
}
onClipEvent (enterFrame) {
if (!((this != _root.map_os.arrow0) && (this != _root.map_s.arrow0))) {
} else {
if (tame != 0) {
this._x = this._x + tdx;
this._y = this._y + tdy;
dpth = (250001 + (((this._y - _root.map_s.player1._y) - 160) * 200)) + chara_n;
this.swapDepths(dpth);
px0 = (((this._x - this._y) + 160) - (6 - 15)) / 32;
py0 = (((this._x + this._y) - 160) + (6 + 15)) / 32;
if (px0 < 0) {
px0 = 0;
}
if (py0 < 0) {
py0 = 0;
}
if (510 < px0) {
px0 = 510;
}
if (15 < py0) {
py0 = 15;
}
if ((320 < Math.abs((this._y - _root.map_s.player1._y) - 160)) || (480 < Math.abs((this._x - _root.map_s.player1._x) - 240))) {
if (_root.bossmode != 4) {
this.removeMovieClip();
}
}
if (_root.charan != 3) {
if (_root.charan == 4) {
tame++;
if (400 >= tame) {
if (!((tame == (10 * (pw - 1))) || (200 < tame))) {
if (tame >= ((100 + (((pw - 1) * 4) / 3)) + 4)) {
this.removeMovieClip();
}
} else {
tdx = 0;
tdy = 0;
tame = 402;
}
} else {
this.removeMovieClip();
}
if (3 < _root.bossmode) {
dpth = (250001 + (180 * 200)) + chara_n;
this.swapDepths(dpth);
}
}
} else {
tame++;
if (400 >= tame) {
if (!((tame == (10 * pw)) || (200 < tame))) {
if (tame >= ((100 + ((pw * 4) / 3)) + 4)) {
this.removeMovieClip();
}
} else {
tdx = 0;
tdy = 0;
if (_root.homsp != 1) {
if (3 < pw) {
pw = 3;
}
play_name = "tamamh" + pw;
this.gotoandstop(play_name);
tame = 252;
tame--;
} else {
map_obj_name = "arrow" + ((chara_n - 3) + 15);
_root.se_bom.start();
play_name = "tamamh" + (10 + pw);
_root.map_s.arrow0.duplicateMovieClip(map_obj_name, 54900 + ((chara_n - 3) + 15));
eval ("_root.map_s." + map_obj_name).gotoandplay(play_name);
eval ("_root.map_s." + map_obj_name).tdx = 0;
eval ("_root.map_s." + map_obj_name).tdy = 0;
eval ("_root.map_s." + map_obj_name)._x = this._x;
eval ("_root.map_s." + map_obj_name)._y = this._y;
eval ("_root.map_s." + map_obj_name).chara_n = chara_n + 10;
dpth = ((250001 + (((eval ("_root.map_s." + map_obj_name)._y - _root.map_s.player1._y) - 160) * 200)) + chara_n) + 10;
eval ("_root.map_s." + map_obj_name).swapDepths(dpth);
tame = 402;
}
}
} else {
eval ("_root.map_s." + map_obj_name).tame = 100;
eval ("_root.map_s." + map_obj_name).pw = 3 * pw;
this.removeMovieClip();
}
if (3 < _root.bossmode) {
dpth = (250001 + (180 * 200)) + chara_n;
this.swapDepths(dpth);
}
}
}
if ((_root.miss_on == -20) || (_root.bossmode == 3)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 1480 MovieClip [gun1] "gun0" in Symbol 102 MovieClip [sp_map1] Frame 13
onClipEvent (load) {
tekihp = 0;
omuki = 0;
}
onClipEvent (enterFrame) {
if ((this != _root.map_os.gun0) && (this != _root.map_s.gun0)) {
}
}
Symbol 102 MovieClip [sp_map1] Frame 14
stop();
Symbol 148 MovieClip [sp_character4] Frame 3
stop();
Symbol 140 MovieClip [sp_character3] Frame 3
stop();
Symbol 120 MovieClip [sp_character2] Frame 3
stop();
Symbol 104 MovieClip [sp_character1] Frame 3
stop();
Symbol 106 MovieClip [sp_test1] Frame 10
stop();
Symbol 1806 MovieClip [bg4] Frame 6
stop();
Symbol 1222 MovieClip [bg3] Frame 242
gotoAndPlay("bgon");
Symbol 1018 MovieClip [bg2] Frame 5
stop();
Symbol 108 MovieClip [bg1] Frame 17
stop();
Symbol 1804 MovieClip [map_obj4] Frame 1
stop();
Symbol 1804 MovieClip [map_obj4] Frame 3
stop();
Symbol 1804 MovieClip [map_obj4] Frame 5
stop();
Symbol 1804 MovieClip [map_obj4] Frame 7
stop();
Symbol 1804 MovieClip [map_obj4] Frame 9
stop();
Symbol 1804 MovieClip [map_obj4] Frame 11
stop();
Symbol 1804 MovieClip [map_obj4] Frame 13
stop();
Symbol 1804 MovieClip [map_obj4] Frame 15
stop();
Symbol 1804 MovieClip [map_obj4] Frame 17
stop();
Symbol 1804 MovieClip [map_obj4] Frame 19
stop();
Symbol 1804 MovieClip [map_obj4] Frame 21
stop();
Symbol 1804 MovieClip [map_obj4] Frame 58
stop();
Symbol 1804 MovieClip [map_obj4] Frame 59
stop();
Symbol 1248 MovieClip [map_obj3] Frame 1
stop();
Symbol 1248 MovieClip [map_obj3] Frame 3
stop();
Symbol 1248 MovieClip [map_obj3] Frame 5
stop();
Symbol 1248 MovieClip [map_obj3] Frame 7
stop();
Symbol 1248 MovieClip [map_obj3] Frame 9
stop();
Symbol 1248 MovieClip [map_obj3] Frame 11
stop();
Symbol 1248 MovieClip [map_obj3] Frame 13
stop();
Symbol 1248 MovieClip [map_obj3] Frame 15
stop();
Symbol 1248 MovieClip [map_obj3] Frame 17
stop();
Symbol 1248 MovieClip [map_obj3] Frame 19
stop();
Symbol 1248 MovieClip [map_obj3] Frame 21
stop();
Symbol 1248 MovieClip [map_obj3] Frame 58
stop();
Symbol 1248 MovieClip [map_obj3] Frame 59
stop();
Symbol 1014 MovieClip [map_obj2] Frame 1
stop();
Symbol 1014 MovieClip [map_obj2] Frame 3
stop();
Symbol 1014 MovieClip [map_obj2] Frame 5
stop();
Symbol 1014 MovieClip [map_obj2] Frame 7
stop();
Symbol 1014 MovieClip [map_obj2] Frame 9
stop();
Symbol 1014 MovieClip [map_obj2] Frame 11
stop();
Symbol 1014 MovieClip [map_obj2] Frame 13
stop();
Symbol 1014 MovieClip [map_obj2] Frame 15
stop();
Symbol 1014 MovieClip [map_obj2] Frame 17
stop();
Symbol 1014 MovieClip [map_obj2] Frame 19
stop();
Symbol 1014 MovieClip [map_obj2] Frame 21
stop();
Symbol 1014 MovieClip [map_obj2] Frame 22
stop();
Symbol 202 MovieClip [map_obj] Frame 1
stop();
Symbol 202 MovieClip [map_obj] Frame 3
stop();
Symbol 202 MovieClip [map_obj] Frame 5
stop();
Symbol 202 MovieClip [map_obj] Frame 7
stop();
Symbol 202 MovieClip [map_obj] Frame 9
stop();
Symbol 202 MovieClip [map_obj] Frame 11
stop();
Symbol 202 MovieClip [map_obj] Frame 13
stop();
Symbol 202 MovieClip [map_obj] Frame 15
stop();
Symbol 202 MovieClip [map_obj] Frame 17
stop();
Symbol 202 MovieClip [map_obj] Frame 19
stop();
Symbol 202 MovieClip [map_obj] Frame 21
stop();
Symbol 202 MovieClip [map_obj] Frame 22
stop();
Symbol 150 MovieClip [character4_obj] Frame 17
gotoAndPlay("tatu1");
Symbol 150 MovieClip [character4_obj] Frame 18
stop();
Symbol 150 MovieClip [character4_obj] Frame 35
gotoAndPlay("utu1");
Symbol 150 MovieClip [character4_obj] Frame 36
stop();
Symbol 150 MovieClip [character4_obj] Frame 52
gotoAndPlay("tatu1");
Symbol 150 MovieClip [character4_obj] Frame 53
stop();
Symbol 150 MovieClip [character4_obj] Frame 77
gotoAndPlay("tatu1");
Symbol 150 MovieClip [character4_obj] Frame 78
stop();
Symbol 150 MovieClip [character4_obj] Frame 110
gotoAndPlay("tatu1");
Symbol 150 MovieClip [character4_obj] Frame 111
stop();
Symbol 150 MovieClip [character4_obj] Frame 128
gotoAndPlay("tatu2");
Symbol 150 MovieClip [character4_obj] Frame 129
stop();
Symbol 150 MovieClip [character4_obj] Frame 146
gotoAndPlay("utu2");
Symbol 150 MovieClip [character4_obj] Frame 147
stop();
Symbol 150 MovieClip [character4_obj] Frame 163
gotoAndPlay("tatu2");
Symbol 150 MovieClip [character4_obj] Frame 164
stop();
Symbol 150 MovieClip [character4_obj] Frame 188
gotoAndPlay("tatu2");
Symbol 150 MovieClip [character4_obj] Frame 189
stop();
Symbol 150 MovieClip [character4_obj] Frame 221
gotoAndPlay("tatu2");
Symbol 150 MovieClip [character4_obj] Frame 222
stop();
Symbol 150 MovieClip [character4_obj] Frame 239
gotoAndPlay("tatu3");
Symbol 150 MovieClip [character4_obj] Frame 240
stop();
Symbol 150 MovieClip [character4_obj] Frame 257
gotoAndPlay("utu3");
Symbol 150 MovieClip [character4_obj] Frame 258
stop();
Symbol 150 MovieClip [character4_obj] Frame 274
gotoAndPlay("tatu3");
Symbol 150 MovieClip [character4_obj] Frame 275
stop();
Symbol 150 MovieClip [character4_obj] Frame 299
gotoAndPlay("tatu3");
Symbol 150 MovieClip [character4_obj] Frame 300
stop();
Symbol 150 MovieClip [character4_obj] Frame 332
gotoAndPlay("tatu3");
Symbol 150 MovieClip [character4_obj] Frame 333
stop();
Symbol 150 MovieClip [character4_obj] Frame 350
gotoAndPlay("tatu4");
Symbol 150 MovieClip [character4_obj] Frame 351
stop();
Symbol 150 MovieClip [character4_obj] Frame 368
gotoAndPlay("utu4");
Symbol 150 MovieClip [character4_obj] Frame 369
stop();
Symbol 150 MovieClip [character4_obj] Frame 385
gotoAndPlay("tatu4");
Symbol 150 MovieClip [character4_obj] Frame 386
stop();
Symbol 150 MovieClip [character4_obj] Frame 410
gotoAndPlay("tatu4");
Symbol 150 MovieClip [character4_obj] Frame 411
stop();
Symbol 150 MovieClip [character4_obj] Frame 443
gotoAndPlay("tatu4");
Symbol 150 MovieClip [character4_obj] Frame 444
stop();
Symbol 150 MovieClip [character4_obj] Frame 461
gotoAndPlay("tatu5");
Symbol 150 MovieClip [character4_obj] Frame 462
stop();
Symbol 150 MovieClip [character4_obj] Frame 479
gotoAndPlay("utu5");
Symbol 150 MovieClip [character4_obj] Frame 480
stop();
Symbol 150 MovieClip [character4_obj] Frame 496
gotoAndPlay("tatu5");
Symbol 150 MovieClip [character4_obj] Frame 497
stop();
Symbol 150 MovieClip [character4_obj] Frame 521
gotoAndPlay("tatu5");
Symbol 150 MovieClip [character4_obj] Frame 522
stop();
Symbol 150 MovieClip [character4_obj] Frame 554
gotoAndPlay("tatu5");
Symbol 150 MovieClip [character4_obj] Frame 555
stop();
Symbol 150 MovieClip [character4_obj] Frame 572
gotoAndPlay("tatu6");
Symbol 150 MovieClip [character4_obj] Frame 573
stop();
Symbol 150 MovieClip [character4_obj] Frame 590
gotoAndPlay("utu6");
Symbol 150 MovieClip [character4_obj] Frame 591
stop();
Symbol 150 MovieClip [character4_obj] Frame 607
gotoAndPlay("tatu6");
Symbol 150 MovieClip [character4_obj] Frame 608
stop();
Symbol 150 MovieClip [character4_obj] Frame 632
gotoAndPlay("tatu6");
Symbol 150 MovieClip [character4_obj] Frame 633
stop();
Symbol 150 MovieClip [character4_obj] Frame 665
gotoAndPlay("tatu6");
Symbol 150 MovieClip [character4_obj] Frame 666
stop();
Symbol 150 MovieClip [character4_obj] Frame 683
gotoAndPlay("tatu7");
Symbol 150 MovieClip [character4_obj] Frame 684
stop();
Symbol 150 MovieClip [character4_obj] Frame 701
gotoAndPlay("utu7");
Symbol 150 MovieClip [character4_obj] Frame 702
stop();
Symbol 150 MovieClip [character4_obj] Frame 718
gotoAndPlay("tatu7");
Symbol 150 MovieClip [character4_obj] Frame 719
stop();
Symbol 150 MovieClip [character4_obj] Frame 743
gotoAndPlay("tatu7");
Symbol 150 MovieClip [character4_obj] Frame 744
stop();
Symbol 150 MovieClip [character4_obj] Frame 776
gotoAndPlay("tatu7");
Symbol 150 MovieClip [character4_obj] Frame 777
stop();
Symbol 150 MovieClip [character4_obj] Frame 794
gotoAndPlay("tatu8");
Symbol 150 MovieClip [character4_obj] Frame 795
stop();
Symbol 150 MovieClip [character4_obj] Frame 812
gotoAndPlay("utu8");
Symbol 150 MovieClip [character4_obj] Frame 813
stop();
Symbol 150 MovieClip [character4_obj] Frame 829
gotoAndPlay("tatu8");
Symbol 150 MovieClip [character4_obj] Frame 830
stop();
Symbol 150 MovieClip [character4_obj] Frame 854
gotoAndPlay("tatu8");
Symbol 150 MovieClip [character4_obj] Frame 855
stop();
Symbol 150 MovieClip [character4_obj] Frame 887
gotoAndPlay("tatu8");
Symbol 150 MovieClip [character4_obj] Frame 888
stop();
Symbol 150 MovieClip [character4_obj] Frame 890
stop();
Symbol 150 MovieClip [character4_obj] Frame 899
stop();
Symbol 150 MovieClip [character4_obj] Frame 900
stop();
Symbol 142 MovieClip [character3_obj] Frame 17
gotoAndPlay("tatu1");
Symbol 142 MovieClip [character3_obj] Frame 18
stop();
Symbol 142 MovieClip [character3_obj] Frame 35
gotoAndPlay("utu1");
Symbol 142 MovieClip [character3_obj] Frame 36
stop();
Symbol 142 MovieClip [character3_obj] Frame 53
gotoAndPlay("tatu2");
Symbol 142 MovieClip [character3_obj] Frame 54
stop();
Symbol 142 MovieClip [character3_obj] Frame 71
gotoAndPlay("utu2");
Symbol 142 MovieClip [character3_obj] Frame 72
stop();
Symbol 142 MovieClip [character3_obj] Frame 89
gotoAndPlay("tatu3");
Symbol 142 MovieClip [character3_obj] Frame 90
stop();
Symbol 142 MovieClip [character3_obj] Frame 107
gotoAndPlay("utu3");
Symbol 142 MovieClip [character3_obj] Frame 108
stop();
Symbol 142 MovieClip [character3_obj] Frame 125
gotoAndPlay("tatu4");
Symbol 142 MovieClip [character3_obj] Frame 126
stop();
Symbol 142 MovieClip [character3_obj] Frame 143
gotoAndPlay("utu4");
Symbol 142 MovieClip [character3_obj] Frame 144
stop();
Symbol 142 MovieClip [character3_obj] Frame 161
gotoAndPlay("tatu5");
Symbol 142 MovieClip [character3_obj] Frame 162
stop();
Symbol 142 MovieClip [character3_obj] Frame 179
gotoAndPlay("utu5");
Symbol 142 MovieClip [character3_obj] Frame 180
stop();
Symbol 142 MovieClip [character3_obj] Frame 197
gotoAndPlay("tatu6");
Symbol 142 MovieClip [character3_obj] Frame 198
stop();
Symbol 142 MovieClip [character3_obj] Frame 215
gotoAndPlay("utu6");
Symbol 142 MovieClip [character3_obj] Frame 216
stop();
Symbol 142 MovieClip [character3_obj] Frame 233
gotoAndPlay("tatu7");
Symbol 142 MovieClip [character3_obj] Frame 234
stop();
Symbol 142 MovieClip [character3_obj] Frame 251
gotoAndPlay("utu7");
Symbol 142 MovieClip [character3_obj] Frame 252
stop();
Symbol 142 MovieClip [character3_obj] Frame 269
gotoAndPlay("tatu8");
Symbol 142 MovieClip [character3_obj] Frame 270
stop();
Symbol 142 MovieClip [character3_obj] Frame 287
gotoAndPlay("utu8");
Symbol 142 MovieClip [character3_obj] Frame 288
stop();
Symbol 142 MovieClip [character3_obj] Frame 290
stop();
Symbol 142 MovieClip [character3_obj] Frame 299
stop();
Symbol 142 MovieClip [character3_obj] Frame 300
stop();
Symbol 118 MovieClip [character2_obj] Frame 17
gotoAndPlay("tatu1");
Symbol 118 MovieClip [character2_obj] Frame 18
stop();
Symbol 118 MovieClip [character2_obj] Frame 35
gotoAndPlay("utu1");
Symbol 118 MovieClip [character2_obj] Frame 36
stop();
Symbol 118 MovieClip [character2_obj] Frame 53
gotoAndPlay("utu11");
Symbol 118 MovieClip [character2_obj] Frame 54
stop();
Symbol 118 MovieClip [character2_obj] Frame 71
gotoAndPlay("tatu2");
Symbol 118 MovieClip [character2_obj] Frame 72
stop();
Symbol 118 MovieClip [character2_obj] Frame 89
gotoAndPlay("utu2");
Symbol 118 MovieClip [character2_obj] Frame 90
stop();
Symbol 118 MovieClip [character2_obj] Frame 107
gotoAndPlay("utu12");
Symbol 118 MovieClip [character2_obj] Frame 108
stop();
Symbol 118 MovieClip [character2_obj] Frame 125
gotoAndPlay("tatu3");
Symbol 118 MovieClip [character2_obj] Frame 126
stop();
Symbol 118 MovieClip [character2_obj] Frame 143
gotoAndPlay("utu3");
Symbol 118 MovieClip [character2_obj] Frame 144
stop();
Symbol 118 MovieClip [character2_obj] Frame 161
gotoAndPlay("utu13");
Symbol 118 MovieClip [character2_obj] Frame 162
stop();
Symbol 118 MovieClip [character2_obj] Frame 179
gotoAndPlay("tatu4");
Symbol 118 MovieClip [character2_obj] Frame 180
stop();
Symbol 118 MovieClip [character2_obj] Frame 197
gotoAndPlay("utu4");
Symbol 118 MovieClip [character2_obj] Frame 198
stop();
Symbol 118 MovieClip [character2_obj] Frame 215
gotoAndPlay("utu14");
Symbol 118 MovieClip [character2_obj] Frame 216
stop();
Symbol 118 MovieClip [character2_obj] Frame 233
gotoAndPlay("tatu5");
Symbol 118 MovieClip [character2_obj] Frame 234
stop();
Symbol 118 MovieClip [character2_obj] Frame 251
gotoAndPlay("utu5");
Symbol 118 MovieClip [character2_obj] Frame 252
stop();
Symbol 118 MovieClip [character2_obj] Frame 269
gotoAndPlay("utu15");
Symbol 118 MovieClip [character2_obj] Frame 270
stop();
Symbol 118 MovieClip [character2_obj] Frame 287
gotoAndPlay("tatu6");
Symbol 118 MovieClip [character2_obj] Frame 288
stop();
Symbol 118 MovieClip [character2_obj] Frame 305
gotoAndPlay("utu6");
Symbol 118 MovieClip [character2_obj] Frame 306
stop();
Symbol 118 MovieClip [character2_obj] Frame 323
gotoAndPlay("utu16");
Symbol 118 MovieClip [character2_obj] Frame 324
stop();
Symbol 118 MovieClip [character2_obj] Frame 341
gotoAndPlay("tatu7");
Symbol 118 MovieClip [character2_obj] Frame 342
stop();
Symbol 118 MovieClip [character2_obj] Frame 359
gotoAndPlay("utu7");
Symbol 118 MovieClip [character2_obj] Frame 360
stop();
Symbol 118 MovieClip [character2_obj] Frame 377
gotoAndPlay("utu17");
Symbol 118 MovieClip [character2_obj] Frame 378
stop();
Symbol 118 MovieClip [character2_obj] Frame 395
gotoAndPlay("tatu8");
Symbol 118 MovieClip [character2_obj] Frame 396
stop();
Symbol 118 MovieClip [character2_obj] Frame 413
gotoAndPlay("utu8");
Symbol 118 MovieClip [character2_obj] Frame 414
stop();
Symbol 118 MovieClip [character2_obj] Frame 431
gotoAndPlay("utu18");
Symbol 118 MovieClip [character2_obj] Frame 432
stop();
Symbol 118 MovieClip [character2_obj] Frame 593
stop();
Symbol 118 MovieClip [character2_obj] Frame 754
stop();
Symbol 118 MovieClip [character2_obj] Frame 915
stop();
Symbol 118 MovieClip [character2_obj] Frame 1076
stop();
Symbol 118 MovieClip [character2_obj] Frame 1237
stop();
Symbol 118 MovieClip [character2_obj] Frame 1398
stop();
Symbol 118 MovieClip [character2_obj] Frame 1559
stop();
Symbol 118 MovieClip [character2_obj] Frame 1720
stop();
Symbol 118 MovieClip [character2_obj] Frame 1729
stop();
Symbol 118 MovieClip [character2_obj] Frame 1730
stop();
Symbol 204 MovieClip [character_obj] Frame 17
gotoAndPlay("tatu1");
Symbol 204 MovieClip [character_obj] Frame 18
stop();
Symbol 204 MovieClip [character_obj] Frame 35
gotoAndPlay("utu1");
Symbol 204 MovieClip [character_obj] Frame 36
stop();
Symbol 204 MovieClip [character_obj] Frame 53
gotoAndPlay("tatu2");
Symbol 204 MovieClip [character_obj] Frame 54
stop();
Symbol 204 MovieClip [character_obj] Frame 71
gotoAndPlay("utu2");
Symbol 204 MovieClip [character_obj] Frame 72
stop();
Symbol 204 MovieClip [character_obj] Frame 89
gotoAndPlay("tatu3");
Symbol 204 MovieClip [character_obj] Frame 90
stop();
Symbol 204 MovieClip [character_obj] Frame 107
gotoAndPlay("utu3");
Symbol 204 MovieClip [character_obj] Frame 108
stop();
Symbol 204 MovieClip [character_obj] Frame 125
gotoAndPlay("tatu4");
Symbol 204 MovieClip [character_obj] Frame 126
stop();
Symbol 204 MovieClip [character_obj] Frame 143
gotoAndPlay("utu4");
Symbol 204 MovieClip [character_obj] Frame 144
stop();
Symbol 204 MovieClip [character_obj] Frame 161
gotoAndPlay("tatu5");
Symbol 204 MovieClip [character_obj] Frame 162
stop();
Symbol 204 MovieClip [character_obj] Frame 179
gotoAndPlay("utu5");
Symbol 204 MovieClip [character_obj] Frame 180
stop();
Symbol 204 MovieClip [character_obj] Frame 197
gotoAndPlay("tatu6");
Symbol 204 MovieClip [character_obj] Frame 198
stop();
Symbol 204 MovieClip [character_obj] Frame 215
gotoAndPlay("utu6");
Symbol 204 MovieClip [character_obj] Frame 216
stop();
Symbol 204 MovieClip [character_obj] Frame 233
gotoAndPlay("tatu7");
Symbol 204 MovieClip [character_obj] Frame 234
stop();
Symbol 204 MovieClip [character_obj] Frame 251
gotoAndPlay("utu7");
Symbol 204 MovieClip [character_obj] Frame 252
stop();
Symbol 204 MovieClip [character_obj] Frame 269
gotoAndPlay("tatu8");
Symbol 204 MovieClip [character_obj] Frame 270
stop();
Symbol 204 MovieClip [character_obj] Frame 287
gotoAndPlay("utu8");
Symbol 204 MovieClip [character_obj] Frame 288
stop();
Symbol 204 MovieClip [character_obj] Frame 297
stop();
Symbol 204 MovieClip [character_obj] Frame 298
stop();
Symbol 222 MovieClip [boss_obj] Frame 36
gotoAndPlay("tatu");
Symbol 222 MovieClip [boss_obj] Frame 37
stop();
Symbol 222 MovieClip [boss_obj] Frame 42
gotoAndPlay("tatu");
Symbol 222 MovieClip [boss_obj] Frame 43
stop();
Symbol 222 MovieClip [boss_obj] Frame 96
stop();
Symbol 222 MovieClip [boss_obj] Frame 97
stop();
Symbol 36 MovieClip [gs_obj] Frame 3
gotoAndPlay("tatu");
Symbol 36 MovieClip [gs_obj] Frame 4
stop();
Symbol 36 MovieClip [gs_obj] Frame 8
stop();
Symbol 36 MovieClip [gs_obj] Frame 9
stop();
Symbol 1852 MovieClip [bara_obj] Frame 9
gotoAndPlay("tatu");
Symbol 1852 MovieClip [bara_obj] Frame 10
stop();
Symbol 1852 MovieClip [bara_obj] Frame 44
stop();
Symbol 1852 MovieClip [bara_obj] Frame 45
stop();
Symbol 1878 MovieClip [hashira_obj] Frame 8
gotoAndPlay("tatu");
Symbol 1878 MovieClip [hashira_obj] Frame 9
stop();
Symbol 1878 MovieClip [hashira_obj] Frame 14
stop();
Symbol 1878 MovieClip [hashira_obj] Frame 15
stop();
Symbol 220 MovieClip [kball_obj] Frame 30
gotoAndPlay("tatu");
Symbol 220 MovieClip [kball_obj] Frame 31
stop();
Symbol 220 MovieClip [kball_obj] Frame 63
stop();
Symbol 220 MovieClip [kball_obj] Frame 64
stop();
Symbol 206 MovieClip [kage_obj] Frame 5
gotoAndPlay("tatu");
Symbol 206 MovieClip [kage_obj] Frame 6
stop();
Symbol 206 MovieClip [kage_obj] Frame 7
stop();
Symbol 1854 MovieClip [hanabira_obj] Frame 6
stop();
Symbol 1854 MovieClip [hanabira_obj] Frame 11
stop();
Symbol 1854 MovieClip [hanabira_obj] Frame 16
gotoAndPlay("mawaru3");
Symbol 1854 MovieClip [hanabira_obj] Frame 17
stop();
Symbol 1854 MovieClip [hanabira_obj] Frame 35
gotoAndPlay("mawaru4");
Symbol 1854 MovieClip [hanabira_obj] Frame 36
stop();
Symbol 1854 MovieClip [hanabira_obj] Frame 54
gotoAndPlay("mawaru5");
Symbol 1854 MovieClip [hanabira_obj] Frame 55
stop();
Symbol 1854 MovieClip [hanabira_obj] Frame 73
gotoAndPlay("mawaru6");
Symbol 1854 MovieClip [hanabira_obj] Frame 74
stop();
Symbol 1854 MovieClip [hanabira_obj] Frame 92
gotoAndPlay("mawaru7");
Symbol 1854 MovieClip [hanabira_obj] Frame 93
stop();
Symbol 1854 MovieClip [hanabira_obj] Frame 111
gotoAndPlay("mawaru8");
Symbol 1854 MovieClip [hanabira_obj] Frame 112
stop();
Symbol 1854 MovieClip [hanabira_obj] Frame 113
stop();
Symbol 96 MovieClip [ball2_obj] Frame 18
gotoAndPlay("mawaru1");
Symbol 96 MovieClip [ball2_obj] Frame 19
stop();
Symbol 96 MovieClip [ball2_obj] Frame 37
gotoAndPlay("mawaru2");
Symbol 96 MovieClip [ball2_obj] Frame 38
stop();
Symbol 96 MovieClip [ball2_obj] Frame 56
gotoAndPlay("mawaru3");
Symbol 96 MovieClip [ball2_obj] Frame 57
stop();
Symbol 96 MovieClip [ball2_obj] Frame 75
gotoAndPlay("mawaru4");
Symbol 96 MovieClip [ball2_obj] Frame 76
stop();
Symbol 96 MovieClip [ball2_obj] Frame 94
gotoAndPlay("mawaru5");
Symbol 96 MovieClip [ball2_obj] Frame 95
stop();
Symbol 96 MovieClip [ball2_obj] Frame 113
gotoAndPlay("mawaru6");
Symbol 96 MovieClip [ball2_obj] Frame 114
stop();
Symbol 96 MovieClip [ball2_obj] Frame 132
gotoAndPlay("mawaru7");
Symbol 96 MovieClip [ball2_obj] Frame 133
stop();
Symbol 96 MovieClip [ball2_obj] Frame 151
gotoAndPlay("mawaru8");
Symbol 96 MovieClip [ball2_obj] Frame 152
stop();
Symbol 96 MovieClip [ball2_obj] Frame 153
stop();
Symbol 208 MovieClip [ball_obj] Frame 18
gotoAndPlay("mawaru1");
Symbol 208 MovieClip [ball_obj] Frame 19
stop();
Symbol 208 MovieClip [ball_obj] Frame 37
gotoAndPlay("mawaru2");
Symbol 208 MovieClip [ball_obj] Frame 38
stop();
Symbol 208 MovieClip [ball_obj] Frame 56
gotoAndPlay("mawaru3");
Symbol 208 MovieClip [ball_obj] Frame 57
stop();
Symbol 208 MovieClip [ball_obj] Frame 75
gotoAndPlay("mawaru4");
Symbol 208 MovieClip [ball_obj] Frame 76
stop();
Symbol 208 MovieClip [ball_obj] Frame 94
gotoAndPlay("mawaru5");
Symbol 208 MovieClip [ball_obj] Frame 95
stop();
Symbol 208 MovieClip [ball_obj] Frame 113
gotoAndPlay("mawaru6");
Symbol 208 MovieClip [ball_obj] Frame 114
stop();
Symbol 208 MovieClip [ball_obj] Frame 132
gotoAndPlay("mawaru7");
Symbol 208 MovieClip [ball_obj] Frame 133
stop();
Symbol 208 MovieClip [ball_obj] Frame 151
gotoAndPlay("mawaru8");
Symbol 208 MovieClip [ball_obj] Frame 152
stop();
Symbol 208 MovieClip [ball_obj] Frame 153
stop();
Symbol 1842 MovieClip [teki4c_obj] Frame 15
gotoAndPlay("mawaru1");
Symbol 1842 MovieClip [teki4c_obj] Frame 16
stop();
Symbol 1842 MovieClip [teki4c_obj] Frame 31
gotoAndPlay("mawaru3");
Symbol 1842 MovieClip [teki4c_obj] Frame 32
stop();
Symbol 1842 MovieClip [teki4c_obj] Frame 48
stop();
Symbol 1842 MovieClip [teki4c_obj] Frame 55
stop();
Symbol 1842 MovieClip [teki4c_obj] Frame 56
stop();
Symbol 1872 MovieClip [teki4b_obj] Frame 30
gotoAndPlay("mawaru1");
Symbol 1872 MovieClip [teki4b_obj] Frame 31
stop();
Symbol 1872 MovieClip [teki4b_obj] Frame 39
gotoAndPlay("mawaru2");
Symbol 1872 MovieClip [teki4b_obj] Frame 40
stop();
Symbol 1872 MovieClip [teki4b_obj] Frame 69
gotoAndPlay("mawaru3");
Symbol 1872 MovieClip [teki4b_obj] Frame 70
stop();
Symbol 1872 MovieClip [teki4b_obj] Frame 78
gotoAndPlay("mawaru4");
Symbol 1872 MovieClip [teki4b_obj] Frame 79
stop();
Symbol 1872 MovieClip [teki4b_obj] Frame 108
gotoAndPlay("mawaru5");
Symbol 1872 MovieClip [teki4b_obj] Frame 109
stop();
Symbol 1872 MovieClip [teki4b_obj] Frame 117
gotoAndPlay("mawaru6");
Symbol 1872 MovieClip [teki4b_obj] Frame 118
stop();
Symbol 1872 MovieClip [teki4b_obj] Frame 147
gotoAndPlay("mawaru7");
Symbol 1872 MovieClip [teki4b_obj] Frame 148
stop();
Symbol 1872 MovieClip [teki4b_obj] Frame 156
gotoAndPlay("mawaru8");
Symbol 1872 MovieClip [teki4b_obj] Frame 157
stop();
Symbol 1872 MovieClip [teki4b_obj] Frame 179
stop();
Symbol 1872 MovieClip [teki4b_obj] Frame 208
gotoAndPlay("mawaru11");
Symbol 1872 MovieClip [teki4b_obj] Frame 209
stop();
Symbol 1872 MovieClip [teki4b_obj] Frame 217
gotoAndPlay("mawaru12");
Symbol 1872 MovieClip [teki4b_obj] Frame 218
stop();
Symbol 1872 MovieClip [teki4b_obj] Frame 247
gotoAndPlay("mawaru13");
Symbol 1872 MovieClip [teki4b_obj] Frame 248
stop();
Symbol 1872 MovieClip [teki4b_obj] Frame 256
gotoAndPlay("mawaru14");
Symbol 1872 MovieClip [teki4b_obj] Frame 257
stop();
Symbol 1872 MovieClip [teki4b_obj] Frame 286
gotoAndPlay("mawaru15");
Symbol 1872 MovieClip [teki4b_obj] Frame 287
stop();
Symbol 1872 MovieClip [teki4b_obj] Frame 295
gotoAndPlay("mawaru16");
Symbol 1872 MovieClip [teki4b_obj] Frame 296
stop();
Symbol 1872 MovieClip [teki4b_obj] Frame 325
gotoAndPlay("mawaru17");
Symbol 1872 MovieClip [teki4b_obj] Frame 326
stop();
Symbol 1872 MovieClip [teki4b_obj] Frame 334
gotoAndPlay("mawaru18");
Symbol 1872 MovieClip [teki4b_obj] Frame 335
stop();
Symbol 1872 MovieClip [teki4b_obj] Frame 357
stop();
Symbol 1872 MovieClip [teki4b_obj] Frame 358
stop();
Symbol 1862 MovieClip [teki4_obj] Frame 30
gotoAndPlay("mawaru1");
Symbol 1862 MovieClip [teki4_obj] Frame 31
stop();
Symbol 1862 MovieClip [teki4_obj] Frame 60
gotoAndPlay("mawaru3");
Symbol 1862 MovieClip [teki4_obj] Frame 61
stop();
Symbol 1862 MovieClip [teki4_obj] Frame 90
gotoAndPlay("mawaru5");
Symbol 1862 MovieClip [teki4_obj] Frame 91
stop();
Symbol 1862 MovieClip [teki4_obj] Frame 120
gotoAndPlay("mawaru7");
Symbol 1862 MovieClip [teki4_obj] Frame 121
stop();
Symbol 1862 MovieClip [teki4_obj] Frame 148
stop();
Symbol 1862 MovieClip [teki4_obj] Frame 149
stop();
Symbol 210 MovieClip [teki_obj] Frame 30
gotoAndPlay("mawaru1");
Symbol 210 MovieClip [teki_obj] Frame 31
stop();
Symbol 210 MovieClip [teki_obj] Frame 60
gotoAndPlay("mawaru3");
Symbol 210 MovieClip [teki_obj] Frame 61
stop();
Symbol 210 MovieClip [teki_obj] Frame 90
gotoAndPlay("mawaru5");
Symbol 210 MovieClip [teki_obj] Frame 91
stop();
Symbol 210 MovieClip [teki_obj] Frame 120
gotoAndPlay("mawaru7");
Symbol 210 MovieClip [teki_obj] Frame 121
stop();
Symbol 210 MovieClip [teki_obj] Frame 143
stop();
Symbol 210 MovieClip [teki_obj] Frame 144
stop();
Symbol 218 MovieClip [arrow4_obj] Frame 2
gotoAndPlay("mawaru1");
Symbol 218 MovieClip [arrow4_obj] Frame 3
stop();
Symbol 218 MovieClip [arrow4_obj] Frame 5
gotoAndPlay("mawaru2");
Symbol 218 MovieClip [arrow4_obj] Frame 6
stop();
Symbol 218 MovieClip [arrow4_obj] Frame 8
gotoAndPlay("mawaru3");
Symbol 218 MovieClip [arrow4_obj] Frame 9
stop();
Symbol 218 MovieClip [arrow4_obj] Frame 11
gotoAndPlay("mawaru4");
Symbol 218 MovieClip [arrow4_obj] Frame 12
stop();
Symbol 218 MovieClip [arrow4_obj] Frame 14
gotoAndPlay("mawaru5");
Symbol 218 MovieClip [arrow4_obj] Frame 15
stop();
Symbol 218 MovieClip [arrow4_obj] Frame 17
gotoAndPlay("mawaru6");
Symbol 218 MovieClip [arrow4_obj] Frame 18
stop();
Symbol 218 MovieClip [arrow4_obj] Frame 20
gotoAndPlay("mawaru7");
Symbol 218 MovieClip [arrow4_obj] Frame 21
stop();
Symbol 218 MovieClip [arrow4_obj] Frame 23
gotoAndPlay("mawaru8");
Symbol 218 MovieClip [arrow4_obj] Frame 24
stop();
Symbol 218 MovieClip [arrow4_obj] Frame 25
stop();
Symbol 216 MovieClip [arrow3_obj] Frame 2
gotoAndPlay("mawaru1");
Symbol 216 MovieClip [arrow3_obj] Frame 3
stop();
Symbol 216 MovieClip [arrow3_obj] Frame 5
gotoAndPlay("mawaru2");
Symbol 216 MovieClip [arrow3_obj] Frame 6
stop();
Symbol 216 MovieClip [arrow3_obj] Frame 8
gotoAndPlay("mawaru3");
Symbol 216 MovieClip [arrow3_obj] Frame 9
stop();
Symbol 216 MovieClip [arrow3_obj] Frame 11
gotoAndPlay("mawaru4");
Symbol 216 MovieClip [arrow3_obj] Frame 12
stop();
Symbol 216 MovieClip [arrow3_obj] Frame 14
gotoAndPlay("mawaru5");
Symbol 216 MovieClip [arrow3_obj] Frame 15
stop();
Symbol 216 MovieClip [arrow3_obj] Frame 17
gotoAndPlay("mawaru6");
Symbol 216 MovieClip [arrow3_obj] Frame 18
stop();
Symbol 216 MovieClip [arrow3_obj] Frame 20
gotoAndPlay("mawaru7");
Symbol 216 MovieClip [arrow3_obj] Frame 21
stop();
Symbol 216 MovieClip [arrow3_obj] Frame 23
gotoAndPlay("mawaru8");
Symbol 216 MovieClip [arrow3_obj] Frame 24
stop();
Symbol 216 MovieClip [arrow3_obj] Frame 25
stop();
Symbol 214 MovieClip [arrow2_obj] Frame 2
gotoAndPlay("mawaru1");
Symbol 214 MovieClip [arrow2_obj] Frame 3
stop();
Symbol 214 MovieClip [arrow2_obj] Frame 5
gotoAndPlay("mawaru2");
Symbol 214 MovieClip [arrow2_obj] Frame 6
stop();
Symbol 214 MovieClip [arrow2_obj] Frame 8
gotoAndPlay("mawaru3");
Symbol 214 MovieClip [arrow2_obj] Frame 9
stop();
Symbol 214 MovieClip [arrow2_obj] Frame 11
gotoAndPlay("mawaru4");
Symbol 214 MovieClip [arrow2_obj] Frame 12
stop();
Symbol 214 MovieClip [arrow2_obj] Frame 14
gotoAndPlay("mawaru5");
Symbol 214 MovieClip [arrow2_obj] Frame 15
stop();
Symbol 214 MovieClip [arrow2_obj] Frame 17
gotoAndPlay("mawaru6");
Symbol 214 MovieClip [arrow2_obj] Frame 18
stop();
Symbol 214 MovieClip [arrow2_obj] Frame 20
gotoAndPlay("mawaru7");
Symbol 214 MovieClip [arrow2_obj] Frame 21
stop();
Symbol 214 MovieClip [arrow2_obj] Frame 23
gotoAndPlay("mawaru8");
Symbol 214 MovieClip [arrow2_obj] Frame 24
stop();
Symbol 214 MovieClip [arrow2_obj] Frame 25
stop();
Symbol 212 MovieClip [arrow_obj] Frame 2
stop();
Symbol 212 MovieClip [arrow_obj] Frame 4
stop();
Symbol 212 MovieClip [arrow_obj] Frame 6
stop();
Symbol 212 MovieClip [arrow_obj] Frame 8
stop();
Symbol 212 MovieClip [arrow_obj] Frame 10
stop();
Symbol 212 MovieClip [arrow_obj] Frame 12
stop();
Symbol 212 MovieClip [arrow_obj] Frame 14
stop();
Symbol 212 MovieClip [arrow_obj] Frame 16
stop();
Symbol 212 MovieClip [arrow_obj] Frame 18
stop();
Symbol 212 MovieClip [arrow_obj] Frame 20
stop();
Symbol 212 MovieClip [arrow_obj] Frame 22
stop();
Symbol 212 MovieClip [arrow_obj] Frame 24
stop();
Symbol 212 MovieClip [arrow_obj] Frame 26
stop();
Symbol 212 MovieClip [arrow_obj] Frame 28
stop();
Symbol 212 MovieClip [arrow_obj] Frame 30
stop();
Symbol 212 MovieClip [arrow_obj] Frame 32
stop();
Symbol 212 MovieClip [arrow_obj] Frame 34
stop();
Symbol 212 MovieClip [arrow_obj] Frame 36
stop();
Symbol 212 MovieClip [arrow_obj] Frame 38
stop();
Symbol 212 MovieClip [arrow_obj] Frame 40
stop();
Symbol 212 MovieClip [arrow_obj] Frame 42
stop();
Symbol 212 MovieClip [arrow_obj] Frame 44
stop();
Symbol 212 MovieClip [arrow_obj] Frame 46
stop();
Symbol 212 MovieClip [arrow_obj] Frame 48
stop();
Symbol 212 MovieClip [arrow_obj] Frame 50
stop();
Symbol 212 MovieClip [arrow_obj] Frame 52
stop();
Symbol 212 MovieClip [arrow_obj] Frame 54
stop();
Symbol 212 MovieClip [arrow_obj] Frame 56
stop();
Symbol 212 MovieClip [arrow_obj] Frame 58
stop();
Symbol 212 MovieClip [arrow_obj] Frame 60
stop();
Symbol 212 MovieClip [arrow_obj] Frame 62
stop();
Symbol 212 MovieClip [arrow_obj] Frame 64
stop();
Symbol 212 MovieClip [arrow_obj] Frame 81
gotoAndPlay("tamam0");
Symbol 212 MovieClip [arrow_obj] Frame 82
stop();
Symbol 212 MovieClip [arrow_obj] Frame 99
gotoAndPlay("tamam10");
Symbol 212 MovieClip [arrow_obj] Frame 100
stop();
Symbol 212 MovieClip [arrow_obj] Frame 102
gotoAndPlay("tamam0");
Symbol 212 MovieClip [arrow_obj] Frame 104
stop();
Symbol 212 MovieClip [arrow_obj] Frame 106
stop();
Symbol 212 MovieClip [arrow_obj] Frame 108
stop();
Symbol 212 MovieClip [arrow_obj] Frame 110
stop();
Symbol 212 MovieClip [arrow_obj] Frame 112
stop();
Symbol 212 MovieClip [arrow_obj] Frame 114
stop();
Symbol 212 MovieClip [arrow_obj] Frame 116
stop();
Symbol 212 MovieClip [arrow_obj] Frame 118
stop();
Symbol 212 MovieClip [arrow_obj] Frame 120
stop();
Symbol 212 MovieClip [arrow_obj] Frame 122
stop();
Symbol 212 MovieClip [arrow_obj] Frame 124
stop();
Symbol 212 MovieClip [arrow_obj] Frame 126
stop();
Symbol 212 MovieClip [arrow_obj] Frame 128
stop();
Symbol 212 MovieClip [arrow_obj] Frame 130
stop();
Symbol 212 MovieClip [arrow_obj] Frame 132
stop();
Symbol 212 MovieClip [arrow_obj] Frame 134
stop();
Symbol 212 MovieClip [arrow_obj] Frame 295
stop();
Symbol 212 MovieClip [arrow_obj] Frame 426
stop();
Symbol 212 MovieClip [arrow_obj] Frame 459
gotoAndPlay("tamamh1");
Symbol 212 MovieClip [arrow_obj] Frame 460
stop();
Symbol 212 MovieClip [arrow_obj] Frame 493
gotoAndPlay("tamamh2");
Symbol 212 MovieClip [arrow_obj] Frame 494
stop();
Symbol 212 MovieClip [arrow_obj] Frame 527
gotoAndPlay("tamamh3");
Symbol 212 MovieClip [arrow_obj] Frame 528
stop();
Symbol 212 MovieClip [arrow_obj] Frame 537
stop();
Symbol 212 MovieClip [arrow_obj] Frame 550
stop();
Symbol 212 MovieClip [arrow_obj] Frame 567
stop();
Symbol 212 MovieClip [arrow_obj] Frame 569
stop();
Symbol 212 MovieClip [arrow_obj] Frame 571
stop();
Symbol 212 MovieClip [arrow_obj] Frame 573
stop();
Symbol 212 MovieClip [arrow_obj] Frame 575
stop();
Symbol 212 MovieClip [arrow_obj] Frame 577
stop();
Symbol 212 MovieClip [arrow_obj] Frame 579
stop();
Symbol 212 MovieClip [arrow_obj] Frame 581
stop();
Symbol 212 MovieClip [arrow_obj] Frame 583
stop();
Symbol 212 MovieClip [arrow_obj] Frame 585
stop();
Symbol 212 MovieClip [arrow_obj] Frame 587
stop();
Symbol 212 MovieClip [arrow_obj] Frame 589
stop();
Symbol 212 MovieClip [arrow_obj] Frame 591
stop();
Symbol 212 MovieClip [arrow_obj] Frame 593
stop();
Symbol 212 MovieClip [arrow_obj] Frame 595
stop();
Symbol 212 MovieClip [arrow_obj] Frame 597
stop();
Symbol 212 MovieClip [arrow_obj] Frame 599
stop();
Symbol 212 MovieClip [arrow_obj] Frame 601
stop();
Symbol 212 MovieClip [arrow_obj] Frame 603
stop();
Symbol 212 MovieClip [arrow_obj] Frame 605
stop();
Symbol 212 MovieClip [arrow_obj] Frame 607
stop();
Symbol 212 MovieClip [arrow_obj] Frame 609
stop();
Symbol 212 MovieClip [arrow_obj] Frame 611
stop();
Symbol 212 MovieClip [arrow_obj] Frame 613
stop();
Symbol 212 MovieClip [arrow_obj] Frame 615
stop();
Symbol 212 MovieClip [arrow_obj] Frame 617
stop();
Symbol 212 MovieClip [arrow_obj] Frame 619
stop();
Symbol 212 MovieClip [arrow_obj] Frame 621
stop();
Symbol 212 MovieClip [arrow_obj] Frame 623
stop();
Symbol 212 MovieClip [arrow_obj] Frame 625
stop();
Symbol 212 MovieClip [arrow_obj] Frame 627
stop();
Symbol 212 MovieClip [arrow_obj] Frame 629
stop();
Symbol 212 MovieClip [arrow_obj] Frame 631
stop();
Symbol 212 MovieClip [arrow_obj] Frame 633
stop();
Symbol 212 MovieClip [arrow_obj] Frame 635
stop();
Symbol 212 MovieClip [arrow_obj] Frame 637
stop();
Symbol 212 MovieClip [arrow_obj] Frame 639
stop();
Symbol 212 MovieClip [arrow_obj] Frame 641
stop();
Symbol 212 MovieClip [arrow_obj] Frame 643
stop();
Symbol 212 MovieClip [arrow_obj] Frame 645
stop();
Symbol 212 MovieClip [arrow_obj] Frame 647
stop();
Symbol 212 MovieClip [arrow_obj] Frame 649
stop();
Symbol 212 MovieClip [arrow_obj] Frame 651
stop();
Symbol 212 MovieClip [arrow_obj] Frame 653
stop();
Symbol 212 MovieClip [arrow_obj] Frame 655
stop();
Symbol 212 MovieClip [arrow_obj] Frame 657
stop();
Symbol 212 MovieClip [arrow_obj] Frame 659
stop();
Symbol 212 MovieClip [arrow_obj] Frame 661
stop();
Symbol 212 MovieClip [arrow_obj] Frame 663
stop();
Symbol 212 MovieClip [arrow_obj] Frame 692
stop();
Symbol 212 MovieClip [arrow_obj] Frame 694
stop();
Symbol 212 MovieClip [arrow_obj] Frame 696
stop();
Symbol 212 MovieClip [arrow_obj] Frame 697
stop();
Instance of Symbol 14 MovieClip [tennsuu3] "lifetxt" in Symbol 1802 MovieClip [txt_4] Frame 1
onClipEvent (load) {
dig = 2;
name = "_root.zanki";
text1 = "";
this.swapDepths(60000);
}
onClipEvent (enterFrame) {
text1 = "";
num = String(parseFloat(eval (name)));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Instance of Symbol 4 MovieClip [tennsuu] "scoretxt" in Symbol 1802 MovieClip [txt_4] Frame 2
onClipEvent (load) {
dig = 6;
name = "_root.score";
text1 = "";
this.swapDepths(60001);
}
onClipEvent (enterFrame) {
text1 = "";
num = String(parseFloat(eval (name)));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Instance of Symbol 10 MovieClip [tennsuu2] "timetxt" in Symbol 1802 MovieClip [txt_4] Frame 3
onClipEvent (load) {
dig = 3;
name = "_root.jikan";
text1 = "";
this.swapDepths(60002);
}
onClipEvent (enterFrame) {
text1 = "";
num = String(Math.floor(parseFloat(eval (name)) / 30));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Instance of Symbol 32 MovieClip [tennsuu4] "sptxt" in Symbol 1802 MovieClip [txt_4] Frame 4
onClipEvent (load) {
dig = 2;
name = "_root.sp";
text1 = "";
this.swapDepths(60004);
}
onClipEvent (enterFrame) {
text1 = "";
num = String(Math.floor(parseFloat(eval (name))));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Symbol 1802 MovieClip [txt_4] Frame 8
stop();
Instance of Symbol 14 MovieClip [tennsuu3] "lifetxt" in Symbol 1250 MovieClip [txt_3] Frame 1
onClipEvent (load) {
dig = 2;
name = "_root.zanki";
text1 = "";
this.swapDepths(60000);
}
onClipEvent (enterFrame) {
text1 = "";
num = String(parseFloat(eval (name)));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Instance of Symbol 4 MovieClip [tennsuu] "scoretxt" in Symbol 1250 MovieClip [txt_3] Frame 2
onClipEvent (load) {
dig = 6;
name = "_root.score";
text1 = "";
this.swapDepths(60001);
}
onClipEvent (enterFrame) {
text1 = "";
num = String(parseFloat(eval (name)));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Instance of Symbol 10 MovieClip [tennsuu2] "timetxt" in Symbol 1250 MovieClip [txt_3] Frame 3
onClipEvent (load) {
dig = 3;
name = "_root.jikan";
text1 = "";
this.swapDepths(60002);
}
onClipEvent (enterFrame) {
text1 = "";
num = String(Math.floor(parseFloat(eval (name)) / 30));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Instance of Symbol 32 MovieClip [tennsuu4] "sptxt" in Symbol 1250 MovieClip [txt_3] Frame 4
onClipEvent (load) {
dig = 2;
name = "_root.sp";
text1 = "";
this.swapDepths(60004);
}
onClipEvent (enterFrame) {
text1 = "";
num = String(Math.floor(parseFloat(eval (name))));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Symbol 1250 MovieClip [txt_3] Frame 8
stop();
Instance of Symbol 14 MovieClip [tennsuu3] "lifetxt" in Symbol 94 MovieClip [txt_2] Frame 1
onClipEvent (load) {
dig = 2;
name = "_root.zanki";
text1 = "";
this.swapDepths(60000);
}
onClipEvent (enterFrame) {
text1 = "";
num = String(parseFloat(eval (name)));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Instance of Symbol 4 MovieClip [tennsuu] "scoretxt" in Symbol 94 MovieClip [txt_2] Frame 2
onClipEvent (load) {
dig = 6;
name = "_root.score";
text1 = "";
this.swapDepths(60001);
}
onClipEvent (enterFrame) {
text1 = "";
num = String(parseFloat(eval (name)));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Instance of Symbol 10 MovieClip [tennsuu2] "timetxt" in Symbol 94 MovieClip [txt_2] Frame 3
onClipEvent (load) {
dig = 3;
name = "_root.jikan";
text1 = "";
this.swapDepths(60002);
}
onClipEvent (enterFrame) {
text1 = "";
num = String(Math.floor(parseFloat(eval (name)) / 30));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Instance of Symbol 32 MovieClip [tennsuu4] "sptxt" in Symbol 94 MovieClip [txt_2] Frame 4
onClipEvent (load) {
dig = 2;
name = "_root.sp";
text1 = "";
this.swapDepths(60004);
}
onClipEvent (enterFrame) {
text1 = "";
num = String(Math.floor(parseFloat(eval (name))));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Symbol 94 MovieClip [txt_2] Frame 8
stop();
Instance of Symbol 14 MovieClip [tennsuu3] "lifetxt" in Symbol 22 MovieClip [txt_1] Frame 1
onClipEvent (load) {
dig = 2;
name = "_root.zanki";
text1 = "";
this.swapDepths(60000);
}
onClipEvent (enterFrame) {
text1 = "";
num = String(parseFloat(eval (name)));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Instance of Symbol 4 MovieClip [tennsuu] "scoretxt" in Symbol 22 MovieClip [txt_1] Frame 2
onClipEvent (load) {
dig = 6;
name = "_root.score";
text1 = "";
this.swapDepths(60001);
}
onClipEvent (enterFrame) {
text1 = "";
num = String(parseFloat(eval (name)));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Instance of Symbol 10 MovieClip [tennsuu2] "timetxt" in Symbol 22 MovieClip [txt_1] Frame 3
onClipEvent (load) {
dig = 3;
name = "_root.jikan";
text1 = "";
this.swapDepths(60002);
}
onClipEvent (enterFrame) {
text1 = "";
num = String(Math.floor(parseFloat(eval (name)) / 30));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Instance of Symbol 32 MovieClip [tennsuu4] "sptxt" in Symbol 22 MovieClip [txt_1] Frame 4
onClipEvent (load) {
dig = 2;
name = "_root.sp";
text1 = "";
this.swapDepths(60004);
}
onClipEvent (enterFrame) {
text1 = "";
num = String(Math.floor(parseFloat(eval (name))));
if (dig >= num.length) {
i = 0;
for ( ; i < (dig - num.length) ; i++) {
text1 = text1 + "0";
}
text1 = text1 + num;
} else {
i = 0;
for ( ; i < dig ; i++) {
text1 = text1 + "9";
}
}
}
Symbol 22 MovieClip [txt_1] Frame 8
stop();
Symbol 16 MovieClip [teki2b_obj] Frame 64
stop();
Symbol 16 MovieClip [teki2b_obj] Frame 128
stop();
Symbol 16 MovieClip [teki2b_obj] Frame 129
stop();
Symbol 1046 MovieClip [teki2_obj] Frame 16
stop();
Symbol 1046 MovieClip [teki2_obj] Frame 31
stop();
Symbol 1046 MovieClip [teki2_obj] Frame 46
stop();
Symbol 1046 MovieClip [teki2_obj] Frame 61
stop();
Symbol 1046 MovieClip [teki2_obj] Frame 83
stop();
Symbol 1046 MovieClip [teki2_obj] Frame 84
stop();
Symbol 1068 MovieClip [boss2rope_obj] Frame 11
stop();
Symbol 1068 MovieClip [boss2rope_obj] Frame 16
stop();
Symbol 1068 MovieClip [boss2rope_obj] Frame 17
stop();
Symbol 1816 MovieClip [geruchair] Frame 5
stop();
Symbol 1816 MovieClip [geruchair] Frame 10
stop();
Symbol 1824 MovieClip [boss4_hontai] Frame 28
gotoAndPlay("tatu");
Symbol 1824 MovieClip [boss4_hontai] Frame 32
stop();
Symbol 1824 MovieClip [boss4_hontai] Frame 46
stop();
Symbol 1824 MovieClip [boss4_hontai] Frame 80
gotoAndPlay("tatu");
Symbol 1824 MovieClip [boss4_hontai] Frame 84
stop();
Symbol 1824 MovieClip [boss4_hontai] Frame 89
gotoAndPlay("tatu");
Symbol 1824 MovieClip [boss4_hontai] Frame 93
stop();
Symbol 1824 MovieClip [boss4_hontai] Frame 120
gotoAndPlay("tatub");
Symbol 1824 MovieClip [boss4_hontai] Frame 124
stop();
Symbol 1824 MovieClip [boss4_hontai] Frame 129
gotoAndPlay("tatub");
Symbol 1824 MovieClip [boss4_hontai] Frame 133
stop();
Symbol 1824 MovieClip [boss4_hontai] Frame 150
gotoAndPlay("tatu4");
Symbol 1824 MovieClip [boss4_hontai] Frame 154
stop();
Symbol 1824 MovieClip [boss4_hontai] Frame 159
gotoAndPlay("tatu4");
Symbol 1824 MovieClip [boss4_hontai] Frame 163
stop();
Symbol 1824 MovieClip [boss4_hontai] Frame 180
gotoAndPlay("tatu6");
Symbol 1824 MovieClip [boss4_hontai] Frame 184
stop();
Symbol 1824 MovieClip [boss4_hontai] Frame 189
gotoAndPlay("tatu6");
Symbol 1824 MovieClip [boss4_hontai] Frame 193
stop();
Symbol 1824 MovieClip [boss4_hontai] Frame 210
gotoAndPlay("tatu8");
Symbol 1824 MovieClip [boss4_hontai] Frame 214
stop();
Symbol 1824 MovieClip [boss4_hontai] Frame 219
gotoAndPlay("tatu8");
Symbol 1824 MovieClip [boss4_hontai] Frame 223
stop();
Symbol 1824 MovieClip [boss4_hontai] Frame 240
gotoAndPlay("tatu2");
Symbol 1824 MovieClip [boss4_hontai] Frame 244
stop();
Symbol 1824 MovieClip [boss4_hontai] Frame 249
gotoAndPlay("tatu2");
Symbol 1824 MovieClip [boss4_hontai] Frame 253
stop();
Symbol 1824 MovieClip [boss4_hontai] Frame 306
stop();
Symbol 1824 MovieClip [boss4_hontai] Frame 307
stop();
Symbol 1812 MovieClip [boss4_obj] Frame 3
stop();
Symbol 1812 MovieClip [boss4_obj] Frame 56
stop();
Symbol 1812 MovieClip [boss4_obj] Frame 57
stop();
Symbol 1236 MovieClip [boss3_obj] Frame 61
gotoAndPlay("tatu");
Symbol 1236 MovieClip [boss3_obj] Frame 62
stop();
Symbol 1236 MovieClip [boss3_obj] Frame 153
stop();
Symbol 1236 MovieClip [boss3_obj] Frame 158
gotoAndPlay("tatu");
Symbol 1236 MovieClip [boss3_obj] Frame 159
stop();
Symbol 1236 MovieClip [boss3_obj] Frame 212
stop();
Symbol 1236 MovieClip [boss3_obj] Frame 213
stop();
Symbol 1066 MovieClip [boss2_obj] Frame 115
gotoAndPlay("tatu");
Symbol 1066 MovieClip [boss2_obj] Frame 116
stop();
Symbol 1066 MovieClip [boss2_obj] Frame 121
gotoAndPlay("tatu");
Symbol 1066 MovieClip [boss2_obj] Frame 122
stop();
Symbol 1066 MovieClip [boss2_obj] Frame 175
stop();
Symbol 1066 MovieClip [boss2_obj] Frame 176
stop();
Symbol 1204 MovieClip [teki3_obj] Frame 30
gotoAndPlay("mawaru1");
Symbol 1204 MovieClip [teki3_obj] Frame 31
stop();
Symbol 1204 MovieClip [teki3_obj] Frame 60
gotoAndPlay("mawaru3");
Symbol 1204 MovieClip [teki3_obj] Frame 61
stop();
Symbol 1204 MovieClip [teki3_obj] Frame 90
gotoAndPlay("mawaru5");
Symbol 1204 MovieClip [teki3_obj] Frame 91
stop();
Symbol 1204 MovieClip [teki3_obj] Frame 120
gotoAndPlay("mawaru7");
Symbol 1204 MovieClip [teki3_obj] Frame 121
stop();
Symbol 1204 MovieClip [teki3_obj] Frame 143
stop();
Symbol 1204 MovieClip [teki3_obj] Frame 144
stop();
Symbol 1218 MovieClip [kago_obj] Frame 2
stop();
Symbol 1218 MovieClip [kago_obj] Frame 3
stop();
Symbol 1218 MovieClip [kago_obj] Frame 7
stop();
Symbol 1218 MovieClip [kago_obj] Frame 23
stop();
Symbol 1218 MovieClip [kago_obj] Frame 27
stop();
Symbol 1218 MovieClip [kago_obj] Frame 88
stop();
Symbol 1218 MovieClip [kago_obj] Frame 92
stop();
Symbol 1218 MovieClip [kago_obj] Frame 153
gotoAndPlay("m");
Symbol 1218 MovieClip [kago_obj] Frame 154
stop();
Symbol 1218 MovieClip [kago_obj] Frame 169
stop();
Symbol 1218 MovieClip [kago_obj] Frame 171
stop();
Symbol 1814 MovieClip [geruchair_obj] Frame 3
gotoAndPlay("tatu");
Symbol 1814 MovieClip [geruchair_obj] Frame 4
stop();
Symbol 1052 MovieClip [chair_obj] Frame 76
stop();
Symbol 1036 MovieClip [bg2c] Frame 241
gotoAndPlay("aa");
Symbol 1910 MovieClip [bg4d] Frame 4
stop();
Symbol 1910 MovieClip [bg4d] Frame 69
stop();
Symbol 1910 MovieClip [bg4d] Frame 116
stop();
Symbol 1910 MovieClip [bg4d] Frame 163
stop();
Symbol 1910 MovieClip [bg4d] Frame 210
stop();
Symbol 1910 MovieClip [bg4d] Frame 257
gotoAndPlay("ee2");
Symbol 1910 MovieClip [bg4d] Frame 258
stop();
Symbol 1910 MovieClip [bg4d] Frame 262
stop();
Symbol 1910 MovieClip [bg4d] Frame 270
stop();
Symbol 1894 MovieClip [bg4c] Frame 10
stop();
Symbol 1890 MovieClip [bg4a] Frame 29
gotoAndPlay("aa");
Symbol 1890 MovieClip [bg4a] Frame 30
stop();
Symbol 1034 MovieClip [bg2a] Frame 10
stop();
Symbol 1892 MovieClip [bg4b] Frame 29
gotoAndPlay("aa");
Symbol 1892 MovieClip [bg4b] Frame 30
stop();
Symbol 1892 MovieClip [bg4b] Frame 31
stop();
Symbol 1032 MovieClip [bg2b] Frame 10
stop();
Symbol 1480 MovieClip [gun1] Frame 2
stop();
Symbol 1480 MovieClip [gun1] Frame 4
stop();
Symbol 1480 MovieClip [gun1] Frame 6
stop();
Symbol 1480 MovieClip [gun1] Frame 8
stop();
Symbol 1480 MovieClip [gun1] Frame 13
stop();
Symbol 1480 MovieClip [gun1] Frame 15
stop();
Symbol 1480 MovieClip [gun1] Frame 20
stop();
Symbol 1480 MovieClip [gun1] Frame 22
stop();
Symbol 1480 MovieClip [gun1] Frame 27
stop();
Symbol 1480 MovieClip [gun1] Frame 32
stop();
Symbol 1480 MovieClip [gun1] Frame 37
stop();
Symbol 1480 MovieClip [gun1] Frame 42
stop();
Symbol 1480 MovieClip [gun1] Frame 47
stop();
Symbol 1480 MovieClip [gun1] Frame 52
stop();
Symbol 1480 MovieClip [gun1] Frame 57
stop();
Symbol 1480 MovieClip [gun1] Frame 62
stop();
Symbol 1480 MovieClip [gun1] Frame 67
stop();
Symbol 1480 MovieClip [gun1] Frame 72
stop();
Symbol 1480 MovieClip [gun1] Frame 77
stop();
Symbol 1480 MovieClip [gun1] Frame 82
stop();
Symbol 1480 MovieClip [gun1] Frame 87
stop();
Symbol 1480 MovieClip [gun1] Frame 92
stop();
Symbol 1480 MovieClip [gun1] Frame 97
stop();
Symbol 1480 MovieClip [gun1] Frame 102
stop();
Symbol 1480 MovieClip [gun1] Frame 104
stop();
Symbol 1480 MovieClip [gun1] Frame 106
stop();
Symbol 1480 MovieClip [gun1] Frame 108
stop();
Symbol 1480 MovieClip [gun1] Frame 110
stop();
Symbol 1480 MovieClip [gun1] Frame 112
stop();
Symbol 1480 MovieClip [gun1] Frame 114
stop();
Symbol 1480 MovieClip [gun1] Frame 116
stop();
Symbol 1480 MovieClip [gun1] Frame 118
stop();
Symbol 1480 MovieClip [gun1] Frame 135
stop();
Symbol 1918 MovieClip [door_obj] Frame 8
stop();
Symbol 1918 MovieClip [door_obj] Frame 36
stop();
Symbol 1900 MovieClip [wall_obj] Frame 6
stop();
Symbol 20000 Button
on (release) {
gotoAndPlay("select1");
}
Symbol 20001 Button
on (release) {
gotoAndPlay("cont");
}
Symbol 20002 Button
on (release) {
gotoAndPlay("reset");
}
Symbol 20003 Button
on (release) {
gotoAndPlay("reset");
}