Frame 1
function eshot_pat28_load() {
max_list1 = [3, 2, 2, 1];
max_list2 = [6, 8, 12, 15];
max1 = max_list1[difficult_no - 1];
max2 = max_list2[difficult_no - 1];
between_attack = max1;
num = 0;
while (num < 360) {
random1[num] = cos_list10[num] * 5;
random2[num] = sin_list10[num] * 5;
num++;
}
random3 = [25, 325, 25, 325];
random4 = [25, 25, 375, 375];
num = 0;
while (num < max2) {
random5[num] = (360 / max2) * num;
num++;
}
}
function eshot_pat28() {
if (es_time < 30) {
num = 0;
while (num < 4) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot3_1", shot_name, 10000 + eshot_number);
esita = ((es_time * 6) + (num * 90)) % 360;
_root.create_effect(reimu._x + random1[esita], reimu._y + random2[esita]);
_root.exy(reimu._x + random1[esita], reimu._y + random2[esita]);
_root[shot_name].sita = esita;
_root[shot_name]._rotation = esita;
_root[shot_name].dx = cos_list4[esita];
_root[shot_name].dy = sin_list4[esita];
_root[shot_name]._visible = false;
eshot_number++;
num++;
}
} else if (es_time < 40) {
} else if (es_time < 70) {
num = 0;
while (num < 4) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot3_1", shot_name, 10000 + eshot_number);
esita = ((3 + (es_time * 6)) + (num * 90)) % 360;
_root.create_effect(reimu._x + random1[esita], reimu._y + random2[esita]);
_root.exy(reimu._x + random1[esita], reimu._y + random2[esita]);
_root[shot_name].sita = esita;
_root[shot_name]._rotation = esita;
_root[shot_name].dx = cos_list6[esita];
_root[shot_name].dy = sin_list6[esita];
eshot_number++;
num++;
}
} else if (es_time == 85) {
num = 0;
while (num < 4) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot35", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].tempx = random3[num];
_root[shot_name].tempy = random4[num];
eshot_number++;
num++;
}
}
es_time++;
es_time = es_time % 90;
}
spell28 = "\u30D5\u30EB\u30E0\u30FC\u30F3\u30B7\u30E5\u30FC\u30C8";
function eshot_pat29q_load() {
between_attack = 2;
max = _root["max" + eshot_pat][difficult_no - 1];
max2 = _root[("max" + eshot_pat) + "_2"][difficult_no - 1];
sita = 360 / max;
num1 = 0;
while (num1 < max2) {
num = 0;
while (num < max) {
random1[num + (num1 * max)] = (((sita * num) + 360) + (30 * ((num1 % 2) + 1))) % 360;
random2[num + (num1 * max)] = 5 - (num1 * 2);
if ((num % 6) < 3) {
random3[num + (num1 * max)] = ((num % 3) + 5) + (num1 * 3);
} else {
random3[num + (num1 * max)] = ((3 - (num % 3)) + 5) + (num1 * 3);
}
random4[num + (num1 * max)] = Math.floor((num + (num1 * max)) / max) * 10;
num++;
}
num1++;
}
}
function eshot_pat29q() {
if ((es_time % 50) == 30) {
num = 0;
while (num < (max * max2)) {
attachMovie("enemy_shot", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy(magic0._x, magic0._y);
_root["enemy_shot" + eshot_number].sita = random1[num];
_root["enemy_shot" + eshot_number]._rotation = _root["enemy_shot" + eshot_number].sita;
_root["enemy_shot" + eshot_number].dx = cos_list[_root["enemy_shot" + eshot_number].sita] * random2[num];
_root["enemy_shot" + eshot_number].dy = sin_list[_root["enemy_shot" + eshot_number].sita] * random2[num];
_root["enemy_shot" + eshot_number].count = 0;
_root["enemy_shot" + eshot_number].number = num;
_root["enemy_shot" + eshot_number].number2 = random4[num];
_root["enemy_shot" + eshot_number].etype = 1;
eshot_number++;
num++;
}
} else if ((es_time % 50) == 15) {
attachMovie("magic2", "magic0", 10);
magic0._x = _root.ranset(350, 0);
magic0._y = _root.ranset(400, 0);
}
es_time++;
}
function eshot_pat29_1(tMC) {
tMC.count++;
if (tMC.count < 15) {
tMC._x = tMC._x + tMC.dx;
tMC._y = tMC._y + tMC.dy;
} else {
tMC.etype = 2;
tMC.dx = cos_list[tMC.sita] * random3[tMC.number];
tMC.dy = sin_list[tMC.sita] * random3[tMC.number];
}
}
function eshot_pat29_2(tMC) {
tMC.count++;
if (tMC.count < (35 + tMC.number2)) {
} else {
tMC.etype = 3;
}
}
function eshot_pat29_3(tMC) {
tMC._x = tMC._x + tMC.dx;
tMC._y = tMC._y + tMC.dy;
}
spell29 = "\u660E\u661F\u306E\u6E21\u308A\u661F";
max29 = [36, 36, 72, 72];
max29_2 = [1, 2, 1, 2];
function eshot_pat30q_load() {
between_attack = _root["batk" + eshot_pat][difficult_no - 1];
max = _root["max" + eshot_pat][difficult_no - 1];
max2 = _root[("max" + eshot_pat) + "_2"][difficult_no - 1];
attachMovie("magic", "magic0", 10);
magic0._x = 175;
magic0._y = 80;
}
function eshot_pat30q() {
num = 0;
while (num < max) {
attachMovie("enemy_shot", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy(magic0._x, magic0._y);
_root["enemy_shot" + eshot_number].sita = ((((num % 2) * 36) - 18) + 360) % 360;
_root["enemy_shot" + eshot_number]._rotation = _root["enemy_shot" + eshot_number].sita;
_root["enemy_shot" + eshot_number].count = 0;
_root["enemy_shot" + eshot_number].dx = cos_list[_root["enemy_shot" + eshot_number].sita] * 20;
_root["enemy_shot" + eshot_number].dy = sin_list[_root["enemy_shot" + eshot_number].sita] * 20;
_root["enemy_shot" + eshot_number].etype = num % 2;
_root["enemy_shot" + eshot_number].number = eshot_number;
eshot_number++;
num++;
}
if ((es_time % 25) == 0) {
num = 0;
while (num < max2) {
attachMovie("enemy_shot_9", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root["enemy_shot" + eshot_number].sita = ((num * 60) / max2) - 20;
_root["enemy_shot" + eshot_number]._rotation = _root["enemy_shot" + eshot_number].sita;
_root["enemy_shot" + eshot_number].dx = cos_list[_root["enemy_shot" + eshot_number].sita] * 3;
_root["enemy_shot" + eshot_number].dy = sin_list[_root["enemy_shot" + eshot_number].sita] * 3;
_root["enemy_shot" + eshot_number].etype = 9;
eshot_number++;
num++;
}
}
es_time++;
}
function eshot_pat30_1(tMC) {
tMC.count++;
if (tMC.count < 15) {
tMC._x = tMC._x + tMC.dx;
tMC._y = tMC._y + tMC.dy;
} else {
tMC.sita = ((tMC.sita - 144) + 360) % 360;
tMC._rotation = tMC.sita;
tMC.dx = cos_list[tMC.sita] * 20;
tMC.dy = sin_list[tMC.sita] * 20;
tMC.etype = 3;
}
}
function eshot_pat30_3(tMC) {
tMC.count++;
if (tMC.count < 30) {
tMC._x = tMC._x + tMC.dx;
tMC._y = tMC._y + tMC.dy;
} else {
tMC.sita = ((tMC.sita - 144) + 360) % 360;
tMC._rotation = tMC.sita;
tMC.dx = cos_list[tMC.sita] * 20;
tMC.dy = sin_list[tMC.sita] * 20;
tMC.etype = 5;
}
}
function eshot_pat30_5(tMC) {
tMC.count++;
if (tMC.count < 37) {
tMC._x = tMC._x + tMC.dx;
tMC._y = tMC._y + tMC.dy;
} else {
tMC.sita = _root.ranset(360, 0);
tMC._rotation = tMC.sita;
tMC.dx = cos_list[tMC.sita] * 5;
tMC.dy = sin_list[tMC.sita] * 5;
tMC._x = 175;
tMC._y = 230;
tMC.etype = 9;
}
}
function eshot_pat30_0(tMC) {
tMC.count++;
if (tMC.count < 15) {
tMC._x = tMC._x + tMC.dx;
tMC._y = tMC._y + tMC.dy;
} else {
tMC.sita = ((tMC.sita + 144) + 360) % 360;
tMC._rotation = tMC.sita;
tMC.dx = cos_list[tMC.sita] * 20;
tMC.dy = sin_list[tMC.sita] * 20;
tMC.etype = 2;
}
}
function eshot_pat30_2(tMC) {
tMC.count++;
if (tMC.count < 30) {
tMC._x = tMC._x + tMC.dx;
tMC._y = tMC._y + tMC.dy;
} else {
tMC.sita = ((tMC.sita + 144) + 360) % 360;
tMC._rotation = tMC.sita;
tMC.dx = cos_list[tMC.sita] * 20;
tMC.dy = sin_list[tMC.sita] * 20;
tMC.etype = 4;
}
}
function eshot_pat30_4(tMC) {
tMC.count++;
if (tMC.count < 37) {
tMC._x = tMC._x + tMC.dx;
tMC._y = tMC._y + tMC.dy;
} else {
tMC.sita = _root.ranset(360, 0);
tMC._rotation = tMC.sita;
tMC.dx = cos_list[tMC.sita] * 5;
tMC.dy = sin_list[tMC.sita] * 5;
tMC._x = 175;
tMC._y = 230;
tMC.etype = 9;
}
}
function eshot_pat30_q(tMC) {
if ((es_time % 40) == 0) {
tMC.etype = 3;
tMC.rad = Math.atan2(_root.ranset(20, 190) - tMC._y, _root.ranset(20, 165) - tMC._x);
tMC.rot = ((tMC.rad / Math.PI) * 180) - 90;
tMC._rotation = -180 + tMC.rot;
}
tMC.count++;
if (tMC.count < 37) {
if ((tMC.count % 15) == 0) {
tMC.sita = tMC.sita + 144;
tMC._rotation = tMC.sita;
}
tMC._x = tMC._x + _root.cos(tMC.sita + 90, 20);
tMC._y = tMC._y + _root.sin(tMC.sita + 90, 20);
}
}
function eshot_pat30_q(tMC) {
if ((es_time % 40) == 0) {
tMC.etype = 3;
tMC.rad = Math.atan2(_root.ranset(20, 190) - tMC._y, _root.ranset(20, 165) - tMC._x);
tMC.rot = ((tMC.rad / Math.PI) * 180) - 90;
tMC._rotation = -180 + tMC.rot;
}
tMC.count++;
if (tMC.count < 37) {
if ((tMC.count % 15) == 0) {
tMC.sita = tMC.sita - 144;
tMC._rotation = tMC.sita;
}
tMC._x = tMC._x + _root.cos(tMC.sita + 90, 20);
tMC._y = tMC._y + _root.sin(tMC.sita + 90, 20);
}
}
function eshot_pat30_q(tMC) {
tMC._x = tMC._x - (Math.cos(tMC.rad) * 5);
tMC._y = tMC._y - (Math.sin(tMC.rad) * 5);
}
function eshot_pat30_9(tMC) {
tMC._x = tMC._x + tMC.dx;
tMC._y = tMC._y + tMC.dy;
}
spell30 = "\u9858\u3044\u3092\u661F\u306B\u8FBC\u3081\u3066";
batk30 = [2, 2, 2, 2];
max30 = [2, 2, 3, 4];
max30_2[7];
function eshot_pat31q_load() {
between_attack = _root["batk" + eshot_pat][difficult_no - 1];
max = _root["max" + eshot_pat][difficult_no - 1];
max2 = _root[("max" + eshot_pat) + "_2"][difficult_no - 1];
temp_max = (3720 * temp_time) / 600;
num = 0;
while (num < temp_max) {
random3[num] = (_root.ranset(100, -10) + 360) % 360;
random4[num] = (_root.ranset(-100, 10) + 360) % 360;
num++;
}
num = 0;
while (num < 2) {
attachMovie("magic2", "magic" + num, 10 + num);
_root["magic" + num]._x = (175 + (num * 50)) - 25;
_root["magic" + num]._y = reimu._y;
num++;
}
}
function eshot_pat31() {
num = 0;
while (num < 2) {
attachMovie("enemy_shot", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy((175 + (num * 50)) - 25, reimu._y);
_root["enemy_shot" + eshot_number].sita = 0;
_root["enemy_shot" + eshot_number].dx = 12;
_root["enemy_shot" + eshot_number].etype = 3;
_root["enemy_shot" + eshot_number].count = 0;
eshot_number++;
num++;
}
if ((es_time % 5) == 0) {
num = 0;
while (num < max2) {
attachMovie("enemy_shot_2", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root["enemy_shot" + eshot_number].sita = (((num * 45) - 45) + 360) % 360;
_root["enemy_shot" + eshot_number].dx = cos_list[_root["enemy_shot" + eshot_number].sita] * 5;
_root["enemy_shot" + eshot_number].dy = sin_list[_root["enemy_shot" + eshot_number].sita] * 5;
_root["enemy_shot" + eshot_number].etype = 4;
eshot_number++;
num++;
}
}
num1 = 0;
while (num1 < max) {
attachMovie("enemy_shot", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy(150, reimu._y);
_root["enemy_shot" + eshot_number].sita = random3[eshot_number];
_root["enemy_shot" + eshot_number]._rotation = _root["enemy_shot" + eshot_number].sita;
_root["enemy_shot" + eshot_number].dx = cos_list[_root["enemy_shot" + eshot_number].sita] * 15;
_root["enemy_shot" + eshot_number].dy = sin_list[_root["enemy_shot" + eshot_number].sita] * 15;
_root["enemy_shot" + eshot_number].etype = 4;
eshot_number++;
attachMovie("enemy_shot", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy(200, reimu._y);
_root["enemy_shot" + eshot_number].sita = random4[eshot_number];
_root["enemy_shot" + eshot_number]._rotation = _root["enemy_shot" + eshot_number].sita;
_root["enemy_shot" + eshot_number].dx = cos_list[_root["enemy_shot" + eshot_number].sita] * 15;
_root["enemy_shot" + eshot_number].dy = sin_list[_root["enemy_shot" + eshot_number].sita] * 15;
_root["enemy_shot" + eshot_number].etype = 4;
eshot_number++;
num1++;
}
es_time++;
}
function eshot_pat31_3(tMC) {
tMC._y = tMC._y + tMC.dx;
}
function eshot_pat31_4(tMC) {
tMC._x = tMC._x + tMC.dx;
tMC._y = tMC._y + tMC.dy;
}
spell31 = "\u7D05\u9B54\u5F0F\u6B53\u8FCE\u6328\u62F6";
batk31 = [10, 7, 5, 3];
max31 = [4, 4, 8, 8];
max31_2 = [0, 0, 3, 3];
function eshot_pat32_load() {
between_attack = 1;
max = _root["max" + eshot_pat][difficult_no - 1];
temp_max = (2000 * temp_time) / 600;
num = 0;
while (num < temp_max) {
random1[num] = ((num * 5) + 360) % 360;
num++;
}
}
function eshot_pat32() {
if ((es_time % 150) == 0) {
rans1 = _root.ranset(5, 1);
rans2 = _root.ranset(5, 1);
attachMovie("magic2", "magic0", 10);
magic0._x = 175;
magic0._y = 200;
}
if ((es_time % 150) < max) {
num = 0;
while (num < 5) {
attachMovie("enemy_shot_3", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root["enemy_shot" + eshot_number].sita = random1[eshot_number];
_root["enemy_shot" + eshot_number].dx = cos_list[_root["enemy_shot" + eshot_number].sita] * 5;
_root["enemy_shot" + eshot_number].dy = sin_list[_root["enemy_shot" + eshot_number].sita] * 5;
_root["enemy_shot" + eshot_number].etype = 1;
temp1 = _root.cos((eshot_number * rans1) + 90, eshot_number * 1.5);
temp2 = _root.sin((eshot_number * rans2) + 90, eshot_number * 1.5);
_root.exy(175 + temp1, 200 + temp2);
_root["enemy_shot" + eshot_number].count = 0;
magic0._x = _root["enemy_shot" + eshot_number]._x;
magic0._y = _root["enemy_shot" + eshot_number]._y;
eshot_number++;
eshot_number = eshot_number % (max * 5);
num++;
}
}
es_time++;
}
function eshot_pat32_1(tMC) {
tMC.count++;
if (tMC.count < 50) {
} else {
tMC.etype = 2;
}
}
function eshot_pat32_2(tMC) {
tMC._x = tMC._x + tMC.dx;
tMC._y = tMC._y + tMC.dy;
}
spell32 = "\u86C7\u884C\u9B54\u6CD5\u9663";
max32 = [30, 40, 50, 75];
function eshot_pat33_load() {
between_attack = 1;
max = _root["max" + eshot_pat][difficult_no - 1];
max2 = _root[("max" + eshot_pat) + "_2"][difficult_no - 1];
temp_max = (2000 * temp_time) / 600;
num = 0;
while (num < temp_max) {
random1[num] = _root.ranset(360, 0);
random2[num] = (((12 * (num % 5)) - 24) + 360) % 360;
num++;
}
}
function eshot_pat33() {
if ((es_time % 150) == 0) {
etype = 0;
num = 0;
while (num < max) {
attachMovie("magic2", "magic" + num, 10 + num);
_root["magic" + num]._x = reimu._x;
_root["magic" + num]._y = reimu._y;
if (reimu._x < 120) {
_root["magic" + num].dx = Math.random() * 4;
} else if (reimu._x > 230) {
_root["magic" + num].dx = (-Math.random()) * 4;
} else {
_root["magic" + num].dx = (Math.random() * 6) - 3;
}
_root["magic" + num].dy = -1;
num++;
}
}
if (((es_time % 150) < 75) && ((es_time % 3) == 0)) {
num = 0;
while (num < max) {
attachMovie("enemy_shot_3", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy(_root["magic" + num]._x, _root["magic" + num]._y);
_root["enemy_shot" + eshot_number].sita = random1[eshot_number];
_root["enemy_shot" + eshot_number].dx = cos_list[_root["enemy_shot" + eshot_number].sita] * 2;
_root["enemy_shot" + eshot_number].dy = sin_list[_root["enemy_shot" + eshot_number].sita] * 2;
_root["enemy_shot" + eshot_number].count = 0;
_root["enemy_shot" + eshot_number].etype = 1;
eshot_number++;
num++;
}
}
num = 0;
while (num < max) {
_root["magic" + num]._x = _root["magic" + num]._x + _root["magic" + num].dx;
_root["magic" + num]._y = _root["magic" + num]._y + (_root["magic" + num].dy + ((es_time % 150) / 5));
_root["magic" + num]._rotation = _root["magic" + num]._rotation + 20;
num++;
}
if ((es_time % max2) == 0) {
num = 0;
while (num < 5) {
attachMovie("enemy_shot", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root["enemy_shot" + eshot_number].sita = random2[eshot_number];
_root["enemy_shot" + eshot_number]._rotation = _root["enemy_shot" + eshot_number].sita;
_root["enemy_shot" + eshot_number].dx = cos_list[_root["enemy_shot" + eshot_number].sita] * 5;
_root["enemy_shot" + eshot_number].dy = sin_list[_root["enemy_shot" + eshot_number].sita] * 5;
_root["enemy_shot" + eshot_number].etype = 3;
eshot_number++;
num++;
}
}
if ((es_time % 150) == 75) {
etype = 1;
}
es_time++;
}
function eshot_pat33_1(tMC) {
if (etype < 1) {
} else {
tMC.etype = 2;
}
}
function eshot_pat33_2(tMC) {
tMC.count++;
if (tMC.count < 10) {
tMC._x = tMC._x + tMC.dx;
tMC._y = tMC._y + tMC.dy;
} else {
tMC.etype = 3;
tMC.dx = tMC.dx * 4;
tMC.dy = tMC.dy * 4;
}
}
function eshot_pat33_3(tMC) {
tMC._x = tMC._x + tMC.dx;
tMC._y = tMC._y + tMC.dy;
}
spell33 = "\u98A8\u7D76\u306E\u8D64\u9B54\u6CD5";
max33 = [2, 3, 5, 7];
max33_2 = [20, 15, 15, 10];
function eshot_pat34_load() {
between_attack = _root["batk" + eshot_pat][difficult_no - 1];
max = _root["max" + eshot_pat][difficult_no - 1];
max2 = _root[("max" + eshot_pat) + "_2"][difficult_no - 1];
num = 0;
while (num < max) {
random1[num] = ((((num * 90) / (max - 1)) - 45) + 360) % 360;
num++;
}
}
function eshot_pat34() {
between_attack = 5;
if ((es_time % max2) == 0) {
attachMovie("enemy_shot_2", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root["enemy_shot" + eshot_number]._x = reimu._x;
_root["enemy_shot" + eshot_number]._y = reimu._y;
_root["enemy_shot" + eshot_number].count = 0;
_root["enemy_shot" + eshot_number].etype = 1;
eshot_number++;
}
if ((es_time % 2) == 0) {
num = 0;
while (num < max) {
attachMovie("enemy_shot_3", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root["enemy_shot" + eshot_number].sita = random1[num];
_root["enemy_shot" + eshot_number].dx = cos_list[_root["enemy_shot" + eshot_number].sita] * 3;
_root["enemy_shot" + eshot_number].dy = sin_list[_root["enemy_shot" + eshot_number].sita] * 3;
_root["enemy_shot" + eshot_number].etype = 0;
eshot_number++;
num++;
}
}
es_time++;
}
function eshot_pat34_0(tMC) {
tMC._x = tMC._x + tMC.dx;
tMC._y = tMC._y + tMC.dy;
}
function eshot_pat34_1(tMC) {
tMC.count++;
if (tMC.count < 20) {
rad = Math.atan2(marisa._y - tMC._y, marisa._x - tMC._x);
tMC._x = tMC._x + (Math.cos(rad) * 10);
tMC._y = tMC._y + (Math.sin(rad) * 10);
} else {
tMC.etype = 2;
}
}
function eshot_pat34_2(tMC) {
tMC.count++;
if (tMC.count < 40) {
rad = Math.atan2(marisa._y - tMC._y, marisa._x - tMC._x);
tMC._x = tMC._x + (Math.cos(rad) * 2);
tMC._y = tMC._y + (Math.sin(rad) * 2);
} else {
tMC.etype = 3;
}
}
function eshot_pat34_3(tMC) {
tMC.count++;
if (tMC.count < 60) {
rad = Math.atan2(marisa._y - tMC._y, marisa._x - tMC._x);
tMC._x = tMC._x + (Math.cos(rad) * 10);
tMC._y = tMC._y + (Math.sin(rad) * 10);
} else {
tMC.etype = 4;
}
}
function eshot_pat34_4(tMC) {
tMC.count++;
if (tMC.count < 80) {
rad = Math.atan2(marisa._y - tMC._y, marisa._x - tMC._x);
tMC._x = tMC._x + (Math.cos(rad) * 2);
tMC._y = tMC._y + (Math.sin(rad) * 2);
} else {
tMC.etype = 0;
rad = Math.atan2(marisa._y - tMC._y, marisa._x - tMC._x);
tMC.dx = Math.cos(rad) * 15;
tMC.dy = Math.sin(rad) * 15;
}
}
spell34 = "\u60AA\u5922\u306E\u8FFD\u8DE1";
batk34 = [5, 5, 5, 4];
max34 = [3, 4, 6, 7];
max34_2 = [30, 30, 20, 15];
function eshot_pat35_load() {
between_attack = _root["batk" + eshot_pat][difficult_no - 1];
max = _root["max" + eshot_pat][difficult_no - 1];
max2 = _root[("max" + eshot_pat) + "_2"][difficult_no - 1];
num = 0;
while (num < 100) {
random2[num] = (_root.ranset(40, -20) + 360) % 360;
random3[num] = (((((num % max2) * 72) / max2) - 36) + 360) % 360;
num++;
}
}
function eshot_pat35() {
if ((es_time % 75) == 0) {
attachMovie("magic2", "magic0", 10);
magic0._x = reimu._x;
magic0._y = reimu._y;
rans1 = (_root.ranset(30, -75) + 360) % 360;
rans2 = (_root.ranset(-30, 75) + 360) % 360;
rans3 = (_root.ranset(30, -75) + 360) % 360;
rans4 = (_root.ranset(-30, 75) + 360) % 360;
rans5 = (_root.ranset(30, -75) + 360) % 360;
rans6 = (_root.ranset(-30, 75) + 360) % 360;
}
if ((es_time % 75) < 50) {
num = 0;
while (num < max) {
attachMovie("enemy_shot_3", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy(magic0._x, magic0._y);
_root["enemy_shot" + eshot_number].sita = _root["rans" + (num + 1)];
_root["enemy_shot" + eshot_number].dx = cos_list[_root["enemy_shot" + eshot_number].sita] * 12;
_root["enemy_shot" + eshot_number].dy = sin_list[_root["enemy_shot" + eshot_number].sita] * 12;
_root["enemy_shot" + eshot_number].etype = 1;
eshot_number++;
num++;
}
}
if ((es_time % 4) == 0) {
rans = random2[es_time];
num = 0;
while (num < max2) {
attachMovie("enemy_shot", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root["enemy_shot" + eshot_number].sita = ((random3[eshot_number] + rans) + 360) % 360;
_root["enemy_shot" + eshot_number]._rotation = _root["enemy_shot" + eshot_number].sita;
_root["enemy_shot" + eshot_number].dx = cos_list[_root["enemy_shot" + eshot_number].sita] * 6;
_root["enemy_shot" + eshot_number].dy = sin_list[_root["enemy_shot" + eshot_number].sita] * 6;
_root["enemy_shot" + eshot_number].etype = 0;
eshot_number++;
num++;
}
}
es_time++;
}
function eshot_pat35_0(tMC) {
tMC._x = tMC._x + tMC.dx;
tMC._y = tMC._y + tMC.dy;
}
function eshot_pat35_1(tMC) {
tMC._x = tMC._x + tMC.dx;
tMC._y = tMC._y + tMC.dy;
if ((tMC._x + tMC.dx) < 10) {
tMC.dx = tMC.dx * -1;
tMC._rotation = tMC._rotation * -1;
} else if ((tMC._x + tMC.dx) > 340) {
tMC.dx = tMC.dx * -1;
tMC._rotation = tMC._rotation * -1;
}
}
function eshot_pat35_2(tMC) {
tMC._x = tMC._x + tMC.dx;
tMC._y = tMC._y + tMC.dy;
if ((tMC._x + tMC.dx) < 10) {
tMC.dx = tMC.dx * -1;
tMC._rotation = tMC._rotation * -1;
} else if ((tMC._x + tMC.dx) > 340) {
tMC.dx = tMC.dx * -1;
tMC._rotation = tMC._rotation * -1;
}
}
spell35 = "\u56DB\u65B9\u5C01\u9396";
batk35 = [3, 3, 3, 3];
max35 = [2, 2, 4, 6];
max35_2 = [2, 4, 4, 6];
function eshot_pat36_load() {
between_attack = _root["batk" + eshot_pat][difficult_no - 1];
max = _root["max" + eshot_pat][difficult_no - 1];
max2 = _root[("max" + eshot_pat) + "_2"][difficult_no - 1];
max3 = _root[("max" + eshot_pat) + "_3"][difficult_no - 1];
tdx = _root["tdx" + eshot_pat][difficult_no - 1];
num = 0;
while (num < 1000) {
random2[num] = _root.ranset(360, 0);
num++;
}
num = 0;
while (num < max) {
random1[num] = ((((num * 90) / max) - 45) + 360) % 360;
num++;
}
num = 0;
while (num < max3) {
attachMovie("magic2", "magic" + num, 10 + num);
_root["magic" + num]._x = _root.ranset(350, 0);
_root["magic" + num]._y = 400;
_root["magic" + num].dx = _root.ranset(-8, -4);
num++;
}
}
function eshot_pat36() {
if ((es_time % 10) == 0) {
num = 0;
while (num < max) {
attachMovie("enemy_shot", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root["enemy_shot" + eshot_number].sita = random1[num];
_root["enemy_shot" + eshot_number]._rotation = _root["enemy_shot" + eshot_number].sita;
_root["enemy_shot" + eshot_number].dx = cos_list[_root["enemy_shot" + eshot_number].sita] * 10;
_root["enemy_shot" + eshot_number].dy = sin_list[_root["enemy_shot" + eshot_number].sita] * 10;
_root["enemy_shot" + eshot_number].number = eshot_number;
_root["enemy_shot" + eshot_number].count = 0;
_root["enemy_shot" + eshot_number].etype = 1;
eshot_number++;
num++;
}
}
if ((difficult == "hard") || (difficult == "lunatic")) {
attachMovie("enemy_shot", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy(_root["magic" + (es_time % max3)]._x, _root["magic" + (es_time % max3)]._y);
_root["enemy_shot" + eshot_number]._rotation = 180;
_root["enemy_shot" + eshot_number].dy = 4;
_root["enemy_shot" + eshot_number].etype = 0;
eshot_number++;
num = 0;
while (num < max3) {
_root["magic" + num]._x = _root["magic" + num]._x + _root["magic" + num].dx;
if (_root["magic" + num]._x < 0) {
_root["magic" + num]._x = _root.ranset(50, 300);
_root["magic" + num].dx = _root.ranset(-8, -4);
}
num++;
}
}
es_time++;
}
function eshot_pat36_0(tMC) {
tMC._y = tMC._y - tMC.dy;
}
function eshot_pat36_1(tMC) {
tMC.count++;
if (tMC.count < 10) {
tMC._x = tMC._x + tMC.dx;
tMC._y = tMC._y + tMC.dy;
} else {
rad = Math.atan2(marisa._y - tMC._y, marisa._x - tMC._x);
tMC.dx = Math.cos(rad) * 10;
tMC.dy = Math.sin(rad) * 10;
tMC._rotation = ((rad / Math.PI) * 180) - 90;
tMC.etype = 2;
}
}
function eshot_pat36_2(tMC) {
tMC.count++;
if (tMC.count < 30) {
tMC._x = tMC._x + tMC.dx;
tMC._y = tMC._y + tMC.dy;
} else {
tMC.etype = 3;
}
}
function eshot_pat36_3(tMC) {
tMC.count++;
if (tMC.count < 50) {
tMC.sita = random2[tMC.number];
tMC._rotation = tMC.sita;
tMC.dx = cos_list[tMC.sita] * tdx;
tMC.dy = sin_list[tMC.sita] * tdx;
tMC.etype = 4;
}
}
function eshot_pat36_4(tMC) {
tMC._x = tMC._x + tMC.dx;
tMC._y = tMC._y + tMC.dy;
}
spell36 = "\u7D05\u3005\u5922\u4E16\u754C";
batk36 = [2, 2, 2, 2];
max36 = [9, 18, 18, 30];
max36_2 = [0, 0, 5, 5];
max36_3 = [0, 0, 3, 4];
tdx36 = [4, 8, 8, 12];
function eshot_pat37() {
max = 180;
between_attack = 5;
if ((es_time % 15) < 5) {
num = 0;
while (num < 10) {
attachMovie("enemy_shot_6", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root["enemy_shot" + eshot_number].sita = (num * 36) + ((es_time % 15) * 5);
_root["enemy_shot" + eshot_number]._rotation = _root["enemy_shot" + eshot_number].sita;
_root["enemy_shot" + eshot_number].count = 0;
eshot_number++;
num++;
}
}
es_time++;
if (eshot_number == max) {
eshot_number = 0;
}
}
function eshot_pat37_2(tMC) {
tMC.count++;
if (tMC.count < 20) {
tMC.sita = tMC.sita + tMC.count;
tMC._rotation = tMC.sita;
tMC._x = tMC._x + _root.cos(tMC.sita + 90, 2);
tMC._y = tMC._y + (_root.sin(tMC.sita + 90, 2) + 8);
} else if (tMC.count < 45) {
tMC._x = tMC._x + _root.cos(tMC.sita + 90, 5);
tMC._y = tMC._y + _root.sin(tMC.sita + 90, 5);
} else {
tMC._x = tMC._x + _root.cos(tMC.sita - 90, 12);
tMC._y = tMC._y + _root.sin(tMC.sita - 90, 12);
}
}
spell37 = "\u30C1\u30EB\u30CE\u30B9\u30DA\u30B7\u30E3\u30EB";
function eshot_pat38() {
max = 200;
between_attack = 3;
rans = _root.ranset(90, -45);
if ((es_time % 10) == 0) {
num = 0;
while (num < 8) {
attachMovie("enemy_shot_6", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root["enemy_shot" + eshot_number].sita = rans;
_root["enemy_shot" + eshot_number]._rotation = _root["enemy_shot" + eshot_number].sita;
_root["enemy_shot" + eshot_number].count = 0;
_root["enemy_shot" + eshot_number].number = eshot_number;
eshot_number++;
num++;
}
}
es_time++;
}
function eshot_pat38_2(tMC) {
tMC.count++;
if (tMC.count < 100) {
if (tMC.count == 20) {
if ((tMC.numbere % 4) == 0) {
rans = _root.ranset(360, 0);
}
tMC.sita = rans + (45 * (tMC.number % 8));
tMC._rotation = tMC.sita;
} else if ((tMC.count == 40) || (tMC.count == 60)) {
tMC.sita = _root.ranset(360, 0);
tMC._rotation = tMC.sita;
} else {
tMC._x = tMC._x + _root.cos(tMC.sita + 90, 8);
tMC._y = tMC._y + _root.sin(tMC.sita + 90, 8);
}
} else {
tMC._x = tMC._x + _root.cos(tMC.sita + 90, 12);
tMC._y = tMC._y + _root.sin(tMC.sita + 90, 12);
}
}
spell38 = "\u6C37\u7D50\u70B8\u88C2";
function eshot_pat39() {
max = 160;
between_attack = 3;
if ((es_time % 40) == 0) {
if (reimu._x > 175) {
num = 0;
while (num < 80) {
attachMovie("enemy_shot", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root["enemy_shot" + eshot_number].sita = _root.ranset(90, 0);
_root["enemy_shot" + eshot_number]._rotation = _root["enemy_shot" + eshot_number].sita;
_root["enemy_shot" + eshot_number].dx = _root.ranset(14, 1);
_root["enemy_shot" + eshot_number].count = 0;
eshot_number++;
num++;
}
}
if (reimu._x <= 175) {
num = 0;
while (num < 80) {
attachMovie("enemy_shot", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root["enemy_shot" + eshot_number].sita = _root.ranset(90, -90);
_root["enemy_shot" + eshot_number]._rotation = _root["enemy_shot" + eshot_number].sita;
_root["enemy_shot" + eshot_number].dx = _root.ranset(14, 1);
_root["enemy_shot" + eshot_number].count = 0;
eshot_number++;
num++;
}
}
}
es_time++;
}
function eshot_pat39_2(tMC) {
tMC.count++;
if (tMC.count == 40) {
if (tMC.sita < 0) {
tMC.sita = 90 + _root.ranset(20, -10);
} else {
tMC.sita = -90 + _root.ranset(20, -10);
}
tMC._rotation = tMC.sita;
tMC.dx = 8;
} else {
tMC._x = tMC._x + _root.cos(tMC.sita + 90, tMC.dx);
tMC._y = tMC._y + _root.sin(tMC.sita + 90, tMC.dx);
}
}
spell39 = "\u98A8\u795E\u5C11\u5973";
function eshot_pat40() {
max = 300;
between_attack = 3;
if ((es_time % 35) == 0) {
num = 0;
while (num < 36) {
attachMovie("enemy_shot_8", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy(175, 200);
_root["enemy_shot" + eshot_number].sita = num * 10;
_root["enemy_shot" + eshot_number]._rotation = _root["enemy_shot" + eshot_number].sita;
_root["enemy_shot" + eshot_number].count = 0;
_root["enemy_shot" + eshot_number].dx = 5;
eshot_number++;
num++;
}
num = 0;
while (num < 18) {
attachMovie("enemy_shot_5", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy(175, 200);
_root["enemy_shot" + eshot_number].sita = (num * 20) + 5;
_root["enemy_shot" + eshot_number]._rotation = _root["enemy_shot" + eshot_number].sita;
_root["enemy_shot" + eshot_number].count = 0;
_root["enemy_shot" + eshot_number].dx = 4;
eshot_number++;
num++;
}
num = 0;
while (num < 18) {
attachMovie("enemy_shot_8", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy(175, 200);
_root["enemy_shot" + eshot_number].sita = (num * 20) + 10;
_root["enemy_shot" + eshot_number]._rotation = _root["enemy_shot" + eshot_number].sita;
_root["enemy_shot" + eshot_number].count = 0;
_root["enemy_shot" + eshot_number].dx = 3;
eshot_number++;
num++;
}
num = 0;
while (num < 18) {
attachMovie("enemy_shot_5", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy(175, 200);
_root["enemy_shot" + eshot_number].sita = (num * 20) + 15;
_root["enemy_shot" + eshot_number]._rotation = _root["enemy_shot" + eshot_number].sita;
_root["enemy_shot" + eshot_number].count = 0;
_root["enemy_shot" + eshot_number].dx = 2;
eshot_number++;
num++;
}
}
es_time++;
}
function eshot_pat40_2(tMC) {
tMC.count++;
if (tMC.count < 20) {
tMC.sita2 = tMC.sita + (tMC.count * 2);
tMC._rotation = tMC.sita2;
tMC._x = tMC._x + _root.cos(tMC.sita2 + 90, tMC.dx);
tMC._y = tMC._y + _root.sin(tMC.sita2 + 90, tMC.dx);
} else if (tMC.count < 40) {
} else {
tMC._x = tMC._x - _root.cos(tMC.sita2 + 90, tMC.dx * 3);
tMC._y = tMC._y - _root.sin(tMC.sita2 + 90, tMC.dx * 3);
}
}
spell40 = "\u51A5\u754C\u306E\u82B1";
function eshot_pat41() {
between_attack = 3;
num = 0;
while (num < 8) {
attachMovie("enemy_shot", "enemy_shot" + eshot_number, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root["enemy_shot" + eshot_number].sita = num * 45;
_root["enemy_shot" + eshot_number].dx = _root.ranset(40, 20);
_root["enemy_shot" + eshot_number].count = 0;
eshot_number++;
num++;
}
es_time++;
}
function eshot_pat41_2(tMC) {
tMC.count++;
if (tMC.count < 20) {
tMC.sita = tMC.sita + 5;
tMC._x = reimu._x + _root.cos(tMC.sita + 90, tMC.dx);
tMC._y = reimu._y + _root.sin(tMC.sita + 90, tMC.dx);
tMC._rotation = tMC.sita + 90;
} else if (tMC.count < 60) {
tMC.sita = tMC.sita + 5;
tMC._x = reimu._x + _root.cos(tMC.sita + 90, tMC.dx);
tMC._y = reimu._y + _root.sin(tMC.sita + 90, tMC.dx);
tMC._rotation = tMC.sita + 90;
if (Math.random() > 0.97) {
tMC.count = 60;
tMC._rotation = tMC.sita;
}
if (tMC.count == 59) {
tMC._rotation = tMC.sita;
}
} else {
tMC._x = tMC._x + _root.cos(tMC.sita + 90, 15);
tMC._y = tMC._y + _root.sin(tMC.sita + 90, 15);
}
}
function eshot_pat1_load() {
bossMHP = 800;
bossHP = bossMHP;
max_list1 = [3, 5, 6, 10];
max_list2 = [8, 12, 16, 20];
max_list3 = [4, 8, 8, 12];
max1 = max_list1[difficult_no - 1];
max2 = max_list2[difficult_no - 1];
max3 = max_list3[difficult_no - 1];
between_attack = 5;
num = 0;
while (num < 1000) {
random1[num] = ((((num * 90) / max1) - 30) + 360) % 360;
num++;
}
num = 0;
while (num < max3) {
random2[num] = (num * 360) / max3;
num++;
}
}
function eshot_pat1() {
if (es_time < 4) {
_root.create_effect(reimu._x, reimu._y);
num = 0;
while (num < max1) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot3_1", shot_name, eshot_number + 10000);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random1[eshot_number];
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list5[_root[shot_name].sita];
_root[shot_name].dy = sin_list5[_root[shot_name].sita];
eshot_number++;
num++;
}
} else if (es_time < 8) {
num = 0;
while (num < max2) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot1_1", shot_name, eshot_number + 10000);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = _root.ranset(360, 0);
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list7[_root[shot_name].sita];
_root[shot_name].dy = sin_list7[_root[shot_name].sita];
eshot_number++;
num++;
}
} else if (es_time < 12) {
boss_move_sw = 1;
rad = Math.atan2(marisa._y - reimu._y, marisa._x - reimu._x);
esita = Math.floor((rad / PI1) + 630) % 360;
num = 0;
while (num < max3) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot2_4", shot_name, eshot_number + 10000);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = (esita + random2[num]) % 360;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list10[_root[shot_name].sita];
_root[shot_name].dy = sin_list10[_root[shot_name].sita];
eshot_number++;
num++;
}
}
es_time++;
if (es_time > 18) {
es_time = 0;
}
}
spell1 = "\u535A\u9E97\u9001\u8FCE\u5F0F";
function eshot_pat2_load() {
bossMHP = 1200;
bossHP = bossMHP;
spell_sw = 1;
num2 = 0;
between_attack = 5;
max_list1 = [8, 6, 4, 3];
max_list2 = [6, 8, 10, 12];
max1 = max_list1[difficult_no - 1];
max2 = max_list2[difficult_no - 1];
attachMovie("magic1_1", "magic1", 10);
magic1._x = reimu._x - 25;
magic1._y = reimu._y + 25;
magic1.dx = -25;
magic1.dy = 25;
attachMovie("magic1_1", "magic2", 11);
magic2._x = reimu._x - 25;
magic2._y = reimu._y - 25;
magic2.dx = -25;
magic2.dy = -25;
attachMovie("magic1_1", "magic3", 12);
magic3._x = reimu._x + 25;
magic3._y = reimu._y - 25;
magic3.dx = 25;
magic3.dy = -25;
attachMovie("magic1_1", "magic4", 13);
magic4._x = reimu._x + 25;
magic4._y = reimu._y + 25;
magic4.dx = 25;
magic4.dy = 25;
random1 = [15, 75, 105, 165, 195, 255, 285, 345];
random3 = [1, 1, 2, 2, 3, 3, 4, 4];
num = 0;
while (num < 18) {
random2[num] = (num * 360) / 18;
num++;
}
boss_move_sw = 0;
}
function eshot_pat2() {
num = 0;
while (num < 8) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot3_1", shot_name, eshot_number + 10000);
_root.exy(_root["magic" + random3[num]]._x, _root["magic" + random3[num]]._y);
_root[shot_name].sita = random1[num];
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list10[_root[shot_name].sita] * 2;
_root[shot_name].dy = sin_list10[_root[shot_name].sita] * 2;
eshot_number++;
num++;
}
if ((es_time > 10) && (es_time < 16)) {
num = 0;
while (num < 18) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot1_4", shot_name, eshot_number + 10000);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random2[num] + num2;
_root[shot_name].dx = cos_list10[_root[shot_name].sita];
_root[shot_name].dy = sin_list10[_root[shot_name].sita];
eshot_number++;
num++;
}
num2 = num2 + 3;
}
if ((es_time % max1) == 0) {
num = 1;
while (num <= 4) {
shot_name = "enemy_shot" + eshot_number;
magic_name = "magic" + num;
_root.attachMovie("eshot1_2", shot_name, _root.eshot_number + 10000);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
rad = Math.atan2(marisa._y - _root[magic_name]._y, marisa._x - _root[magic_name]._x);
_root[shot_name].dx = Math.cos(rad) * max2;
_root[shot_name].dy = Math.sin(rad) * max2;
eshot_number++;
num++;
}
}
es_time++;
if (es_time == 20) {
es_time = 0;
num2 = 0;
}
}
spell2 = "\u5C01\u9B54\u9663\u56DB\u5B63";
function eshot_pat3_load() {
bossMHP = 1000;
bossHP = bossMHP;
max_list1 = [18, 18, 36, 36];
max_list2 = [20, 30, 40, 50];
max1 = max_list1[difficult_no - 1];
max2 = max_list2[difficult_no - 1];
between_attack = 3;
num = 0;
while (num < max1) {
random1[num] = (num * 360) / max1;
random2[num] = ((num * 360) / max1) + 4;
random3[num] = ((num * 360) / max1) + 8;
num++;
}
num = 0;
while (num < 1500) {
random4[num] = _root.ranset(180, 270) % 360;
random5[num] = _root.ranset(5, 3);
num++;
}
attachMovie("magic1_1", "magic1", 10);
magic1._x = reimu._x - 25;
magic1._y = reimu._y;
magic1.dx = -25;
magic1.dy = 0;
attachMovie("magic1_1", "magic2", 11);
magic2._x = reimu._x + 25;
magic2._y = reimu._y;
magic2.dx = 25;
magic2.dy = 0;
}
function eshot_pat3() {
if (es_time < 9) {
if ((es_time % 3) == 0) {
temp3 = 5 + (es_time / 1.5);
num = 0;
while (num < max1) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot3_1", shot_name, eshot_number + 10000);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = _root["random" + ((es_time / 3) + 1)][num];
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root["cos_list" + temp3][_root[shot_name].sita];
_root[shot_name].dy = _root["sin_list" + temp3][_root[shot_name].sita];
eshot_number++;
num++;
}
}
} else if (es_time < 30) {
num = 1;
while (num <= 2) {
shot_name = "enemy_shot" + eshot_number;
_root.attachMovie("eshot1_2", shot_name, _root.eshot_number + 10000);
_root.exy(_root["magic" + num]._x, _root["magic" + num]._y);
rad = Math.atan2(marisa._y - _root["magic" + num]._y, marisa._x - _root["magic" + num]._x);
_root[shot_name].dx = Math.cos(rad) * 10;
_root[shot_name].dy = Math.sin(rad) * 10;
eshot_number++;
num++;
}
if (es_time == 15) {
boss_move_sw = 1;
num = 0;
while (num < max2) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot1_4", shot_name, eshot_number + 10000);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random4[eshot_number];
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root["cos_list" + random5[eshot_number]][_root[shot_name].sita];
_root[shot_name].dy = _root["sin_list" + random5[eshot_number]][_root[shot_name].sita];
eshot_number++;
num++;
}
}
}
es_time++;
if (es_time == 30) {
es_time = 0;
}
}
function eshot_pat3_1(tMC) {
tMC._x = tMC._x + tMC.dx;
tMC._y = tMC._y + tMC.dy;
}
spell3 = "\u7D05\u767D\u5DEB\u5973\u306E\u5B9A\u77F3";
function eshot_pat4_load() {
bossMHP = 1000;
bossHP = bossMHP;
spell_sw = 1;
max_list1 = [2, 4, 6, 8];
max_list2 = [3, 4, 7, 10];
max_list3 = [3, 4, 4, 5];
max1 = max_list1[difficult_no - 1];
max2 = max_list2[difficult_no - 1];
max3 = max_list3[difficult_no - 1];
between_attack = 5;
num = 0;
while (num < max1) {
random1[num] = (num * 360) / max1;
attachMovie("magic1_2", "magic" + num, 10 + num);
_root["magic" + num]._x = cos_list5[random1[num]] * 5;
_root["magic" + num]._y = sin_list5[random1[num]] * 5;
_root["magic" + num].sita = random1[num];
num++;
}
num = 0;
while (num < max2) {
random2[num] = (((num * 90) / (max2 - 1)) + 315) % 360;
num++;
}
}
function eshot_pat4() {
if (es_time == 0) {
num = 0;
while (num < max1) {
num1 = 0;
while (num1 < max3) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot4", shot_name, 10000 + eshot_number);
_root[shot_name]._x = _root["magic" + num]._x;
_root[shot_name]._y = _root["magic" + num]._y;
_root[shot_name].sita = (_root["magic" + num].sita + 90) % 360;
_root[shot_name].dx = _root["cos_list" + (7 - num1)][_root[shot_name].sita];
_root[shot_name].dy = _root["sin_list" + (7 - num1)][_root[shot_name].sita];
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].kei = num1 * 0.01;
eshot_number++;
num1++;
}
num++;
}
}
if ((es_time % 5) == 0) {
num = 0;
while (num < max2) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot5", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random2[num];
_root[shot_name].dx = cos_list5[_root[shot_name].sita];
_root[shot_name].dy = sin_list5[_root[shot_name].sita];
eshot_number++;
num++;
}
}
es_time++;
if (es_time == 20) {
es_time = 0;
}
}
spell4 = "\u5922\u60F3\u5C01\u5370 \u96C6";
function eshot_pat5_load() {
bossMHP = 1000;
bossHP = bossMHP;
spell_sw = 1;
max_list1 = [5, 4, 3, 2];
max1 = max_list1[difficult_no - 1];
between_attack = 1;
num = 0;
while (num < 2000) {
random1[num] = _root.ranset(90, 0);
random1[num + 1] = random1[num] + 90;
random1[num + 2] = random1[num] + 180;
random1[num + 3] = random1[num] + 270;
num = num + 4;
}
num = 0;
while (num < 2) {
magic_name = "magic" + num;
attachMovie("magic1_" + (3 + num), magic_name, 40000 + num);
_root[magic_name]._x = 175;
_root[magic_name]._y = 200;
_root[magic_name]._xscale = 0;
_root[magic_name]._yscale = 0;
num++;
}
es_time = -10;
}
function eshot_pat5() {
if (es_time > 0) {
num = 0;
while (num < 4) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot7", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random1[eshot_number];
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list4[_root[shot_name].sita];
_root[shot_name].dy = sin_list4[_root[shot_name].sita];
eshot_number++;
num++;
}
} else if (es_time == 0) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot6", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
rad = Math.atan2(marisa._y - reimu._y, marisa._x - reimu._x);
_root[shot_name].dx = Math.cos(rad) * 5;
_root[shot_name].dy = Math.sin(rad) * 5;
eshot_number++;
} else if (es_time < 0) {
reimu._x = reimu._x + ((175 - reimu._x) * 0.2);
reimu._y = reimu._y + ((210 - reimu._y) * 0.2);
magic0._xscale = magic0._xscale + 10;
magic0._yscale = magic0._yscale + 10;
magic1._xscale = magic1._xscale + 10;
magic1._yscale = magic1._yscale + 10;
}
es_time++;
if (es_time == 10) {
es_time = 0;
} else if (es_time == 0) {
between_attack = max1;
}
}
spell5 = "\u4E8C\u91CD\u7D50\u754C";
function eshot_pat6_load() {
bossMHP = 1000;
bossHP = bossMHP;
max_list1 = [15, 20, 25, 30];
max_list2 = [2, 3, 3, 4];
max1 = max_list1[difficult_no - 1];
max2 = max_list2[difficult_no - 1];
between_attack = 3;
num = 0;
while (num < 1500) {
random1[num] = _root.ranset(120, 300) % 360;
random2[num] = _root.ranset(360, 0);
num++;
}
}
function eshot_pat6() {
if ((es_time < 9) && ((es_time % 3) == 0)) {
num = 1;
while (num < max1) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot9", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random1[eshot_number];
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list5[_root[shot_name].sita];
_root[shot_name].dy = sin_list5[_root[shot_name].sita];
eshot_number++;
num++;
}
} else if (es_time == 10) {
num = 0;
while (num < max2) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot8", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random1[eshot_number];
_root[shot_name].dx = cos_list5[_root[shot_name].sita];
_root[shot_name].dy = sin_list5[_root[shot_name].sita];
eshot_number++;
num++;
}
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot1_4", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
rad = Math.atan2(marisa._y - reimu._y, marisa._x - reimu._x);
_root[shot_name].dx = Math.cos(rad) * 8;
_root[shot_name].dy = Math.sin(rad) * 8;
eshot_number++;
}
es_time++;
if (es_time == 20) {
es_time = 0;
}
}
spell6 = "\u5C01\u5F0F \u7A7A";
function eshot_pat7_load() {
bossMHP = 1000;
bossHP = bossMHP;
spell_sw = 1;
max_list1 = [4, 8, 12, 16];
max_list2 = [9, 9, 18, 18];
max1 = max_list1[difficult_no - 1];
max2 = max_list2[difficult_no - 1];
between_attack = 1;
num = 0;
while (num < max1) {
random1[num] = _root.ranset(45, 22);
random1[num + 1] = random1[num] + 90;
random1[num + 2] = random1[num] + 180;
random1[num + 3] = random1[num] + 270;
num = num + 4;
}
num = 0;
while (num < max1) {
random2[num] = _root.ranset(5, 5);
random3[num] = _root.ranset(5, 5);
num++;
}
num = 0;
while (num < max2) {
random4[num] = (num * 360) / max2;
num++;
}
attachMovie("magic1_5", "magic0", 40000 + num);
magic0._x = 175;
magic0._y = 200;
magic0._xscale = 0;
magic0._yscale = 0;
es_time = -10;
}
function eshot_pat7() {
if (es_time == 0) {
num = 0;
while (num < max1) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot10", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random1[num];
_root[shot_name].dx = _root["cos_list" + random2[num]][_root[shot_name].sita];
_root[shot_name].dy = _root["sin_list" + random3[num]][_root[shot_name].sita];
eshot_number++;
num++;
}
between_attack = 3;
} else if (es_time < 0) {
reimu._x = reimu._x + ((175 - reimu._x) * 0.2);
reimu._y = reimu._y + ((210 - reimu._y) * 0.2);
magic0._xscale = magic0._xscale + 10;
magic0._yscale = magic0._yscale + 10;
} else if ((es_time % 10) == 0) {
num = 0;
while (num < max2) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot1_2", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random4[num] + _root.ranset(20, 0);
_root[shot_name].dx = cos_list5[_root[shot_name].sita];
_root[shot_name].dy = sin_list5[_root[shot_name].sita];
eshot_number++;
num++;
}
}
es_time++;
if (es_time == 50) {
es_time = 0;
}
}
spell7 = "\u5922\u60F3\u5C01\u5370 \u9589";
function eshot_pat8_load() {
bossMHP = 500;
bossHP = bossMHP;
spell_sw = 1;
between_attack = 20;
max_list1 = [2, 4, 4, 8];
max_list2 = [10, 15, 20, 30];
max1 = max_list1[difficult_no - 1];
max2 = max_list2[difficult_no - 1];
num = 0;
while (num < 3600) {
random1[num] = _root.ranset(120, 300) % 360;
num++;
}
num = 0;
while (num < max1) {
magic_name = "magic" + num;
attachMovie("magic1_7", magic_name, 10 + num);
_root[magic_name]._x = 175;
_root[magic_name]._y = 200;
_root[magic_name].sita = (num * 360) / max1;
num++;
}
attachMovie("magic1_6", "magic9", 40000);
magic9._x = 175;
magic9._y = 150;
}
function eshot_pat8() {
if ((es_time % 2) == 0) {
num = 0;
while (num < max1) {
magic_name = "magic" + num;
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot9", shot_name, 10000 + eshot_number);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
rad = Math.atan2(marisa._y - _root[magic_name]._y, marisa._x - _root[magic_name]._x);
_root[shot_name]._rotation = (rad / PI1) - 90;
_root[shot_name].dx = Math.cos(rad) * 5;
_root[shot_name].dy = Math.sin(rad) * 5;
eshot_number++;
num++;
}
}
num = 0;
while (num < max2) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot1_1", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random1[eshot_number];
_root[shot_name].dx = cos_list6[_root[shot_name].sita];
_root[shot_name].dy = sin_list6[_root[shot_name].sita];
eshot_number++;
num++;
}
es_time++;
}
spell8 = "\u4E8C\u5C64\u5C01\u5370 \u96C6/\u6563";
function eshot_pat9_load() {
bossMHP = 1000;
bossHP = bossMHP;
spell_sw = 1;
between_attack = 1;
max_list1 = [5, 7, 9, 11];
max1 = max_list1[difficult_no - 1];
num = 0;
while (num < 3600) {
random1[num] = _root.ranset(360, 0);
num++;
}
es_time = -10;
}
function eshot_pat9() {
if (es_time > 0) {
if (es_time < 30) {
num = 0;
while (num < max1) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot11", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random1[eshot_number];
_root[shot_name].dx = cos_list10[_root[shot_name].sita];
_root[shot_name].dy = sin_list10[_root[shot_name].sita];
eshot_number++;
num++;
}
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot1_1", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
rad = Math.atan2(marisa._y - reimu._y, marisa._x - reimu._x);
_root[shot_name].dx = Math.cos(rad) * 12;
_root[shot_name].dy = Math.sin(rad) * 12;
eshot_number++;
} else if (es_time < 40) {
} else if (es_time < 70) {
num = 0;
while (num < max1) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot1_5", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random1[eshot_number];
_root[shot_name].dx = cos_list10[_root[shot_name].sita];
_root[shot_name].dy = sin_list10[_root[shot_name].sita];
eshot_number++;
num++;
}
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot12", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
rad = Math.atan2(marisa._y - reimu._y, marisa._x - reimu._x);
_root[shot_name].dx = Math.cos(rad) * 12;
_root[shot_name].dy = Math.sin(rad) * 12;
eshot_number++;
}
} else {
reimu._x = reimu._x + ((175 - reimu._x) * 0.25);
reimu._y = reimu._y + ((200 - reimu._y) * 0.25);
if (es_time == 0) {
between_attack = 3;
}
}
es_time++;
if (es_time == 80) {
es_time = 1;
}
}
spell9 = "\u5922\u60F3\u5C01\u5370 \u932F";
function eshot_pat10_load() {
bossMHP = 1000;
bossHP = bossMHP;
between_attack = 3;
max_list1 = [2, 3, 4, 5];
max_list2 = [5, 8, 10, 15];
max1 = max_list1[difficult_no - 1];
max2 = max_list2[difficult_no - 1];
num = 0;
while (num < 2) {
magic_name = "magic" + num;
attachMovie("magic2_1", magic_name, 10 + num);
_root[magic_name].dx = (num * 60) - 30;
_root[magic_name]._x = reimu._x + _root[magic_name].dx;
_root[magic_name]._y = reimu._y;
num++;
}
num = 0;
while (num < 1630) {
random1[num] = _root.ranset(180, 270) % 360;
num++;
}
}
function eshot_pat10() {
if (es_time < 10) {
num = 0;
while (num < 2) {
shot_name = "enemy_shot" + eshot_number;
magic_name = "magic" + num;
attachMovie("eshot3_2", shot_name, 10000 + eshot_number);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
rad = Math.atan2(marisa._y - _root[magic_name]._y, marisa._x - _root[magic_name]._x);
_root[shot_name]._rotation = (rad / PI1) - 90;
_root[shot_name].dx = Math.cos(rad) * 15;
_root[shot_name].dy = Math.sin(rad) * 15;
eshot_number++;
num++;
}
num = 0;
while (num < max1) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot1_1", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random1[eshot_number];
_root[shot_name].dx = cos_list6[_root[shot_name].sita];
_root[shot_name].dy = sin_list6[_root[shot_name].sita];
eshot_number++;
num++;
}
} else if (es_time < 20) {
if (es_time == 10) {
boss_move_sw = 1;
}
num = 0;
while (num < 2) {
shot_name = "enemy_shot" + eshot_number;
magic_name = "magic" + num;
attachMovie("eshot3_1", shot_name, 10000 + eshot_number);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
rad = Math.atan2(marisa._y - _root[magic_name]._y, (marisa._x + ((num * 100) - 50)) - _root[magic_name]._x);
_root[shot_name]._rotation = (rad / PI1) - 90;
_root[shot_name].dx = Math.cos(rad) * 15;
_root[shot_name].dy = Math.sin(rad) * 15;
eshot_number++;
num++;
}
num = 0;
while (num < 3) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot1_2", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random1[eshot_number];
_root[shot_name].dx = cos_list6[_root[shot_name].sita];
_root[shot_name].dy = sin_list6[_root[shot_name].sita];
eshot_number++;
num++;
}
} else if (es_time < 25) {
} else if (es_time < 26) {
rad = Math.atan2(marisa._y - reimu._y, marisa._x - reimu._x);
sita_p10 = Math.floor((rad / PI1) + 270) % 360;
} else if (es_time < 35) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot1_1", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = sita_p10;
_root[shot_name].dx = _root["cos_list" + max2][_root[shot_name].sita];
_root[shot_name].dy = _root["sin_list" + max2][_root[shot_name].sita];
eshot_number++;
num1 = 0;
while (num1 < 2) {
num = 0;
while (num < 3) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot1_2", shot_name, 10000 + eshot_number);
_root.exy(_root["magic" + num1]._x, _root["magic" + num1]._y);
_root[shot_name].sita = ((sita_p10 + (num * 10)) + 350) % 360;
_root[shot_name].dx = _root["cos_list" + max2][_root[shot_name].sita];
_root[shot_name].dy = _root["sin_list" + max2][_root[shot_name].sita];
eshot_number++;
num++;
}
num1++;
}
}
es_time++;
if (es_time == (55 - max2)) {
es_time = 0;
}
}
spell10 = "\u53CC\u5263\u306E\u5203";
function eshot_pat11_load() {
bossMHP = 1000;
bossHP = bossMHP;
spell_sw = 1;
between_attack = 3;
max_list1 = [6, 9, 10, 18];
max1 = max_list1[difficult_no - 1];
num = 0;
while (num < max1) {
random1[num] = (((90 / max1) * num) + 330) % 360;
num++;
}
num = 0;
while (num < 18) {
random2[num] = 20 * num;
num++;
}
num = 0;
while (num < 10) {
random3[num] = ((6 * num) + 330) % 360;
num++;
}
num = 0;
while (num < 4) {
magic_name = "magic" + num;
attachMovie("magic2_3", magic_name, 10 + num);
_root[magic_name].dx = 30;
_root[magic_name].sita = num * 90;
num++;
}
}
function eshot_pat11() {
if (es_time == 0) {
num = 0;
while (num < 4) {
magic_name = "magic" + num;
num1 = 0;
while (num1 < max1) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot13", shot_name, 10000 + eshot_number);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
if ((num % 2) == 0) {
_root[shot_name].sita = random1[num1];
} else {
rad = Math.atan2(marisa._y - _root[magic_name]._y, marisa._x - _root[magic_name]._x);
_root[shot_name].sita = ((Math.floor((rad / PI1) - 90) + 330) + random1[num1]) % 360;
}
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list8[_root[shot_name].sita];
_root[shot_name].dy = sin_list8[_root[shot_name].sita];
_root[shot_name].count = 0;
eshot_number++;
num1++;
}
num++;
}
} else if (es_time == 8) {
num = 0;
while (num < 18) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot14", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random2[num];
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].tempx = reimu._x + (cos_list10[_root[shot_name].sita] * 5);
_root[shot_name].tempy = reimu._y + (sin_list10[_root[shot_name].sita] * 5);
eshot_number++;
num++;
}
} else if (es_time == 9) {
num = 0;
while (num < 18) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot15", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random2[num];
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].tempx = reimu._x + (cos_list10[_root[shot_name].sita] * 7.5);
_root[shot_name].tempy = reimu._y + (sin_list10[_root[shot_name].sita] * 7.5);
eshot_number++;
num++;
}
num = 0;
while (num < 10) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot1_2", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random3[num];
_root[shot_name].dx = cos_list8[_root[shot_name].sita];
_root[shot_name].dy = sin_list8[_root[shot_name].sita];
eshot_number++;
num++;
}
}
es_time++;
if (es_time == 30) {
es_time = 0;
}
}
spell11 = "\u970A\u6483\u5C01\u6BBA\u5263";
function eshot_pat12_load() {
bossMHP = 1000;
bossHP = bossMHP;
between_attack = 3;
max_list1 = [2, 3, 4, 5];
max_list2 = [18, 18, 36, 36];
max1 = max_list1[difficult_no - 1];
max2 = max_list2[difficult_no - 1];
num = 0;
while (num < max1) {
random1[num] = (((num * 60) / max1) + 330) % 360;
num++;
}
num = 0;
while (num < max2) {
random3[num] = (num * 360) / max2;
num++;
}
num = 0;
while (num < 2000) {
random2[num] = _root.ranset(360, 0);
num++;
}
}
function eshot_pat12() {
if (es_time == 0) {
num = 0;
while (num < max1) {
magic_name = "magic" + num;
attachMovie("magic2_2", magic_name, 10 + num);
_root[magic_name]._x = reimu._x;
_root[magic_name]._y = reimu._y;
_root[magic_name].sita = random1[num];
_root[magic_name].dx = cos_list5[_root[magic_name].sita];
_root[magic_name].dy = sin_list5[_root[magic_name].sita];
num++;
}
} else if (es_time < 25) {
num = 0;
while (num < max1) {
shot_name = "enemy_shot" + eshot_number;
magic_name = "magic" + num;
attachMovie("eshot1_2", shot_name, 10000 + eshot_number);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
_root[shot_name].sita = random2[eshot_number];
_root[shot_name].dx = cos_list6[_root[shot_name].sita];
_root[shot_name].dy = sin_list6[_root[shot_name].sita];
eshot_number++;
num++;
}
} else if (es_time < 26) {
between_attack = 1;
} else if (es_time < 35) {
reimu._x = reimu._x + ((175 - reimu._x) * 0.2);
reimu._y = reimu._y + ((220 - reimu._y) * 0.2);
} else if (es_time < 36) {
between_attack = 3;
} else if (es_time < 45) {
if ((es_time % 3) == 0) {
num = 0;
while (num < max2) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot1_1", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random3[num];
_root[shot_name].dx = cos_list5[_root[shot_name].sita];
_root[shot_name].dy = sin_list5[_root[shot_name].sita];
eshot_number++;
num++;
}
}
} else if (es_time < 49) {
reimu._visible = 0;
} else if (es_time < 50) {
reimu._visible = 1;
reimu._x = _root.ranset(300, 25);
reimu._y = _root.ranset(50, 100);
} else {
num = 0;
while (num < max2) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot1_1", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random2[eshot_number];
_root[shot_name].dx = cos_list10[_root[shot_name].sita];
_root[shot_name].dy = sin_list10[_root[shot_name].sita];
eshot_number++;
num++;
}
}
es_time++;
if (es_time == 51) {
es_time = 0;
}
}
spell12 = "\u77AC\u52D5\u5239";
function eshot_pat13_load() {
bossMHP = 1000;
bossHP = bossMHP;
spell_sw = 1;
between_attack = 3;
max_list1 = [1, 2, 2, 3];
max1 = max_list1[difficult_no - 1];
num = 0;
while (num < 3) {
magic_name = "magic" + num;
attachMovie("magic2_4", magic_name, 10 + num);
_root[magic_name]._x = reimu._x;
_root[magic_name]._y = reimu._y;
if (num == 0) {
_root[magic_name].tempx = 50;
_root[magic_name].tempy = 200;
} else if (num == 1) {
_root[magic_name].tempx = 175;
_root[magic_name].tempy = 100;
} else {
_root[magic_name].tempx = 300;
_root[magic_name].tempy = 200;
}
num++;
}
num = 0;
while (num < 2000) {
random1[num] = _root.ranset(360, 0);
num++;
}
num = 3;
magic_name = "magic" + num;
attachMovie("magic2_5", magic_name, 10 + num);
_root[magic_name]._x = 350;
_root[magic_name]._y = 50;
_root[magic_name].dx = 6;
_root[magic_name]._visible = 0;
}
function eshot_pat13() {
num = 0;
while (num < 3) {
num1 = 0;
while (num1 < max1) {
shot_name = "enemy_shot" + eshot_number;
magic_name = "magic" + num;
attachMovie("eshot16", shot_name, 10000 + eshot_number);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
_root[shot_name].sita = random1[eshot_number];
_root[shot_name].dx = cos_list8[_root[shot_name].sita];
_root[shot_name].dy = sin_list8[_root[shot_name].sita];
eshot_number++;
num1++;
}
num++;
}
if (es_time == 10) {
magic3._x = 350;
magic3._visible = 1;
} else if (es_time < 10) {
} else if (es_time < 24) {
num = 0;
while (num < 5) {
if ((es_time % 2) == 0) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot3_1", shot_name, 10000 + eshot_number);
_root.exy(magic3._x, magic3._y);
rad = Math.atan2(marisa._y - magic3._y, (marisa._x - 50) - magic3._x);
_root[shot_name]._rotation = (rad / PI1) - 90;
_root[shot_name].dx = Math.cos(rad) * (num + 7);
_root[shot_name].dy = Math.sin(rad) * (num + 7);
eshot_number++;
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot3_1", shot_name, 10000 + eshot_number);
_root.exy(magic3._x, magic3._y);
rad = Math.atan2(marisa._y - magic3._y, (marisa._x + 50) - magic3._x);
_root[shot_name]._rotation = (rad / PI1) - 90;
_root[shot_name].dx = Math.cos(rad) * (num + 7);
_root[shot_name].dy = Math.sin(rad) * (num + 7);
eshot_number++;
}
num++;
}
}
es_time++;
if (es_time == 30) {
es_time = 0;
}
}
spell13 = "\u5C01\u6BBA \u4E09\u5F0F";
function eshot_pat14_load() {
bossMHP = 1000;
bossHP = bossMHP;
spell_sw = 1;
between_attack = 1;
num = 0;
while (num < 4) {
magic_name = "magic" + num;
attachMovie("magic2_3", magic_name, 10 + num);
_root[magic_name].dx = 100;
_root[magic_name].sita = num * 90;
num++;
}
es_time = -10;
}
function eshot_pat14() {
if (es_time < 0) {
reimu._x = reimu._x + ((175 - reimu._x) * 0.3);
reimu._y = reimu._y + ((210 - reimu._y) * 0.3);
} else if (es_time == 0) {
between_attack = 5;
} else {
num = 0;
while (num < 4) {
shot_name = "enemy_shot" + eshot_number;
magic_name = "magic" + num;
attachMovie("eshot3_2", shot_name, 10000 + eshot_number);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
rad = Math.atan2(reimu._y - _root[magic_name]._y, reimu._x - _root[magic_name]._x);
_root[shot_name]._rotation = (rad / PI1) - 90;
_root[shot_name].dx = Math.cos(rad) * 7;
_root[shot_name].dy = Math.sin(rad) * 7;
eshot_number++;
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot17", shot_name, 10000 + eshot_number);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
rad = Math.atan2(reimu._y - _root[magic_name]._y, reimu._x - _root[magic_name]._x);
_root[shot_name].sita = Math.floor((rad / PI1) + 450);
eshot_number++;
num++;
}
}
es_time++;
if (es_time == 15) {
es_time = 0;
}
}
spell14 = "\u970A\u9B42\u9A12\u52D5";
function eshot_pat15_load() {
bossMHP = 1000;
bossHP = bossMHP;
between_attack = 1;
max_list1 = [5, 4, 3, 2];
max1 = max_list1[difficult_no - 1];
num = 0;
while (num < 4) {
magic_name = "magic" + num;
attachMovie("magic2_6", magic_name, 10 + num);
_root[magic_name]._x = reimu._x;
_root[magic_name]._y = reimu._y;
_root[magic_name].tempx = (250 * (num % 2)) + 50;
if (num < 2) {
_root[magic_name].tempy = 50;
} else {
_root[magic_name].tempy = 350;
}
num++;
}
es_time = -10;
}
function eshot_pat15() {
if (es_time < 0) {
num = 0;
while (num < 4) {
magic_name = "magic" + num;
_root[magic_name]._x = _root[magic_name]._x + ((_root[magic_name].tempx - _root[magic_name]._x) * 0.3);
_root[magic_name]._y = _root[magic_name]._y + ((_root[magic_name].tempy - _root[magic_name]._y) * 0.3);
num++;
}
if (es_time == -1) {
between_attack = max1;
}
} else if (es_time < 10) {
num = 0;
while (num < 4) {
shot_name = "enemy_shot" + eshot_number;
magic_name = "magic" + num;
attachMovie("eshot1_2", shot_name, 10000 + eshot_number);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
rad = Math.atan2(marisa._y - _root[magic_name]._y, marisa._x - _root[magic_name]._x);
_root[shot_name].dx = Math.cos(rad) * 7;
_root[shot_name].dy = Math.sin(rad) * 7;
eshot_number++;
num++;
}
} else if (es_time < 20) {
num = 0;
while (num < 4) {
shot_name = "enemy_shot" + eshot_number;
magic_name = "magic" + num;
attachMovie("eshot1_1", shot_name, 10000 + eshot_number);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
if (num < 2) {
rad = Math.atan2((marisa._y + 30) - _root[magic_name]._y, (marisa._x + ((num * 60) - 30)) - _root[magic_name]._x);
} else {
rad = Math.atan2((marisa._y - 30) - _root[magic_name]._y, (marisa._x + (((num % 2) * 60) - 30)) - _root[magic_name]._x);
}
_root[shot_name].dx = Math.cos(rad) * 7;
_root[shot_name].dy = Math.sin(rad) * 7;
eshot_number++;
num++;
}
}
es_time++;
if (es_time == 20) {
es_time = 0;
}
}
spell15 = "\u5F14\u82B1";
function eshot_pat16_load() {
bossMHP = 1000;
bossHP = bossMHP;
spell_sw = 1;
between_attack = 3;
max_list1 = [2, 4, 4, 6];
max_list2 = [3, 4, 6, 8];
max1 = max_list1[difficult_no - 1];
max2 = max_list2[difficult_no - 1];
num = 0;
while (num < max1) {
magic_name = "magic" + num;
attachMovie("magic2_7", magic_name, 10 + num);
_root[magic_name]._x = -150;
_root[magic_name]._y = -150;
_root[magic_name].sita = (360 / max1) * num;
num++;
}
num = 0;
while (num < max2) {
random1[num] = ((Math.floor(60 / max2) * num) + 330) % 360;
num++;
}
num2 = 0;
}
function eshot_pat16() {
if (es_time < 5) {
num = 0;
while (num < max2) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot3_1", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = (random1[num] + (es_time * 5)) % 360;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list6[_root[shot_name].sita];
_root[shot_name].dy = sin_list6[_root[shot_name].sita];
eshot_number++;
num++;
}
} else if (es_time < 10) {
num = max2;
while (num > 0) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot3_2", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = (random1[num - 1] + ((es_time % 5) * 5)) % 360;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list6[_root[shot_name].sita];
_root[shot_name].dy = sin_list6[_root[shot_name].sita];
eshot_number++;
num--;
}
} else if (es_time < 20) {
} else if (es_time < 30) {
num = 0;
while (num < max1) {
shot_name = "enemy_shot" + eshot_number;
magic_name = "magic" + num;
if (_root[magic_name]._x != undefined) {
attachMovie("eshot18", shot_name, 10000 + eshot_number);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
_root[shot_name].sita = _root[magic_name].sita;
_root[shot_name]._rotation = _root[magic_name].sita;
_root[shot_name].dx = cos_list10[_root[shot_name].sita];
_root[shot_name].dy = sin_list10[_root[shot_name].sita];
eshot_number++;
}
num++;
}
}
es_time++;
if (es_time == 40) {
es_time = 0;
}
}
spell16 = "\u5B88\u8B77\u5370 \u5805";
function eshot_pat17_load() {
bossMHP = 1000;
bossHP = bossMHP;
spell_sw = 1;
between_attack = 1;
max_list1 = [4, 5, 6, 8];
num = 0;
while (num < max1) {
random1[num] = Math.floor(90 / max1);
num++;
}
num = 0;
while (num < 8) {
random2[num] = 45 * num;
num++;
}
num = 0;
while (num < 8) {
magic_name = "magic" + num;
attachMovie("magic2_6", magic_name, 10 + num);
_root[magic_name]._x = reimu._x;
_root[magic_name]._y = reimu._y;
if (num < 4) {
if (num < 2) {
_root[magic_name].tempx = 25 + (300 * num);
_root[magic_name].tempy = 25;
} else {
_root[magic_name].tempx = 25 + (300 * (num % 2));
_root[magic_name].tempy = 375;
}
} else if (num < 6) {
_root[magic_name].tempx = 75 + (200 * (num % 2));
_root[magic_name].tempy = 100;
} else {
_root[magic_name].tempx = 75 + (200 * (num % 2));
_root[magic_name].tempy = 300;
}
num++;
}
es_time = -10;
}
function eshot_pat17() {
if (es_time < 0) {
num = 0;
while (num < 8) {
magic_name = "magic" + num;
_root[magic_name]._x = _root[magic_name]._x + ((_root[magic_name].tempx - _root[magic_name]._x) * 0.25);
_root[magic_name]._y = _root[magic_name]._y + ((_root[magic_name].tempy - _root[magic_name]._y) * 0.25);
num++;
}
if (es_time == -1) {
between_attack = 3;
}
} else if (es_time < 5) {
num = 0;
while (num < 4) {
shot_name = "enemy_shot" + eshot_number;
magic_name = "magic" + num;
attachMovie("eshot19", shot_name, 10000 + eshot_number);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
rad = Math.atan2(marisa._y - _root[magic_name]._y, marisa._x - _root[magic_name]._x);
_root[shot_name]._rotation = (rad / PI1) - 90;
_root[shot_name].dx = Math.cos(rad) * 7;
_root[shot_name].dy = Math.sin(rad) * 7;
eshot_number++;
num++;
}
if (es_time < 3) {
num = 4;
while (num < 8) {
magic_name = "magic" + num;
rans = _root.ranset(20, 350);
num1 = 0;
while (num1 < 8) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot20", shot_name, 10000 + eshot_number);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
_root[shot_name].sita = (random2[num1] + rans) % 360;
_root[shot_name].dx = cos_list5[_root[shot_name].sita];
_root[shot_name].dy = sin_list5[_root[shot_name].sita];
eshot_number++;
num1++;
}
num++;
}
}
}
es_time++;
if (es_time == 30) {
es_time = 0;
}
}
spell17 = "\u5C01\u6BBA\u516B\u5F0F \u7262";
function eshot_pat18_load() {
bossMHP = 1000;
bossHP = bossMHP;
spell_sw = 1;
between_attack = 3;
reimu._y = 100;
num = 0;
while (num < 4) {
magic_name = "magic" + num;
attachMovie("magic2_8", magic_name, 10 + num);
_root[magic_name]._x = -100;
_root[magic_name]._y = -100;
_root[magic_name].sita = 90 * num;
num++;
}
}
function eshot_pat18() {
if (es_time < 20) {
num = 0;
while (num < 4) {
shot_name = "enemy_shot" + eshot_number;
magic_name = "magic" + num;
if ((num % 2) == 1) {
attachMovie("eshot3_2", shot_name, 10000 + eshot_number);
rad = Math.atan2(marisa._y - _root[magic_name]._y, marisa._x - _root[magic_name]._x);
} else {
attachMovie("eshot3_1", shot_name, 10000 + eshot_number);
rad = Math.atan2(marisa._y - _root[magic_name]._y, ((marisa._x + 50) - (num * 50)) - _root[magic_name]._x);
}
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
_root[shot_name]._rotation = (rad / PI1) - 90;
_root[shot_name].dx = Math.cos(rad) * 12;
_root[shot_name].dy = Math.sin(rad) * 12;
eshot_number++;
num++;
}
} else if (es_time < 35) {
num = 0;
while (num < 4) {
shot_name = "enemy_shot" + eshot_number;
magic_name = "magic" + num;
attachMovie("eshot21", shot_name, 10000 + eshot_number);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
_root[shot_name].sita = _root.ranset(360, 0);
_root[shot_name].dx = cos_list5[_root[shot_name].sita];
_root[shot_name].dy = sin_list5[_root[shot_name].sita];
eshot_number++;
num++;
}
} else if (es_time < 45) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot1_4", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
rad = Math.atan2(marisa._y - reimu._y, marisa._x - reimu._x);
_root[shot_name].dx = Math.cos(rad) * 12;
_root[shot_name].dy = Math.sin(rad) * 12;
eshot_number++;
}
es_time++;
if (es_time == 55) {
es_time = 0;
}
}
spell18 = "\u5929\u4E0A\u9326";
function eshot_pat19_load() {
bossMHP = 1000;
bossHP = bossMHP;
between_attack = 2;
num = 0;
while (num < 36) {
random1[num] = ((5 * num) + 270) % 360;
num++;
}
}
function eshot_pat19() {
if (es_time < 9) {
num = 0;
while (num < 4) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot3_1", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = (random1[num + (es_time * 4)] + _root.ranset(10, 355)) % 360;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list7[_root[shot_name].sita];
_root[shot_name].dy = sin_list7[_root[shot_name].sita];
eshot_number++;
num++;
}
} else if (es_time < 18) {
num = 0;
while (num < 4) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot3_1", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = (random1[(35 - num) - ((es_time - 9) * 4)] + _root.ranset(10, 355)) % 360;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list7[_root[shot_name].sita];
_root[shot_name].dy = sin_list7[_root[shot_name].sita];
eshot_number++;
num++;
}
} else if (es_time < 27) {
num = 0;
while (num < 4) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot3_1", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = (random1[num + ((es_time - 18) * 4)] + _root.ranset(10, 355)) % 360;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list7[_root[shot_name].sita];
_root[shot_name].dy = sin_list7[_root[shot_name].sita];
eshot_number++;
num++;
}
} else if (es_time == 27) {
num = 0;
while (num < 2) {
magic_name = "magic" + num;
attachMovie("magic3_1", magic_name, 10 + num);
_root[magic_name]._x = 25 + (300 * num);
_root[magic_name]._y = 0;
num++;
}
} else if (es_time < 50) {
num = 0;
while (num < 2) {
shot_name = "enemy_shot" + eshot_number;
magic_name = "magic" + num;
attachMovie("eshot3_1", shot_name, 10000 + eshot_number);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
_root[shot_name].sita = 270 - (180 * num);
_root[shot_name]._rotation = _root[shot_name].sita;
edis = _root.ranset(4, 4);
_root[shot_name].dx = _root["cos_list" + edis][_root[shot_name].sita];
_root[shot_name].dy = _root["sin_list" + edis][_root[shot_name].sita];
eshot_number++;
num++;
}
}
es_time++;
if (es_time == 60) {
es_time = 0;
}
}
spell19 = "\u8D64\u7D05";
function eshot_pat20_load() {
bossMHP = 1000;
bossHP = bossMHP;
spell_sw = 1;
max_list1 = [1, 2, 4, 6];
max1 = max_list1[difficult_no - 1];
between_attack = 3;
num = 0;
while (num < 24) {
random1[num] = 15 * num;
num++;
}
}
function eshot_pat20() {
if ((es_time % 10) == 0) {
tempx = _root.ranset(250, 50);
tempy = _root.ranset(50, 50);
num1 = 0;
while (num1 < 4) {
num = 0;
while (num < 6) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot22", shot_name, 10000 + eshot_number);
_root[shot_name].sita = random1[num + (num1 * 6)];
_root[shot_name].plus = max1;
if (num < 3) {
_root[shot_name]._x = tempx + ((cos_list10[_root[shot_name].sita] * (num + 2)) * 3);
_root[shot_name]._y = tempy + ((sin_list10[_root[shot_name].sita] * (num + 2)) * 3);
_root[shot_name].dis = 30 * (num + 2);
} else {
_root[shot_name]._x = tempx + ((cos_list10[_root[shot_name].sita] * ((6 - num) + 2)) * 3);
_root[shot_name]._y = tempy + ((sin_list10[_root[shot_name].sita] * ((6 - num) + 2)) * 3);
_root[shot_name].dis = 30 * ((6 - num) + 2);
}
eshot_number++;
num++;
}
num1++;
}
}
if ((es_time % 20) == 0) {
num = 0;
while (num < 3) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot1_2", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = _root.ranset(60, 330) % 360;
_root[shot_name].dx = cos_list4[_root[shot_name].sita];
_root[shot_name].dy = sin_list4[_root[shot_name].sita];
eshot_number++;
num++;
}
}
es_time++;
}
spell20 = "\u30B9\u30AB\u30FC\u30EC\u30C3\u30C8\u30AC\u30FC\u30C7\u30F3";
function eshot_pat21_load() {
bossMHP = 1000;
bossHP = bossMHP;
between_attack = 3;
max_list1 = [20, 30, 45, 60];
max_list2 = [3, 2, 2, 1];
max1 = max_list1[difficult_no - 1];
max2 = max_list2[difficult_no - 1];
num = 0;
while (num < 4) {
random1[num] = (330 + (num * 20)) % 360;
num++;
}
}
function eshot_pat21() {
if (es_time == 0) {
num = 0;
while (num < max1) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot23", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = _root.ranset(120, 300) % 360;
_root[shot_name]._rotation = _root[shot_name].sita;
dis = _root.ranset(5, 5);
_root[shot_name].dx = _root["cos_list" + dis][_root[shot_name].sita];
_root[shot_name].dy = _root["sin_list" + dis][_root[shot_name].sita];
eshot_number++;
num++;
}
} else if (es_time < 20) {
} else if (es_time == 20) {
num = 0;
while (num < 4) {
magic_name = "magic" + num;
attachMovie("magic3_2", magic_name, 10 + num);
_root[magic_name]._x = reimu._x;
_root[magic_name]._y = reimu._y;
_root[magic_name].sita = random1[num];
_root[magic_name].dx = cos_list4[_root[magic_name].sita];
_root[magic_name].dy = sin_list4[_root[magic_name].sita];
num++;
}
} else if ((es_time % max2) == 0) {
num = 0;
while (num < 4) {
shot_name = "enemy_shot" + eshot_number;
magic_name = "magic" + num;
if (_root[magic_name]._x != undefined) {
attachMovie("eshot24", shot_name, 10000 + eshot_number);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
eshot_number++;
}
num++;
}
}
es_time++;
if (es_time == 60) {
es_time = 0;
}
}
spell21 = "\u7D05\u9B54\u56DE\u5ECA";
function eshot_pat22_load() {
bossMHP = 1000;
bossHP = bossMHP;
spell_sw = 1;
between_attack = 1;
max_list1 = [5, 7, 9, 11];
max1 = max_list1[difficult_no - 1];
num = 0;
while (num < 5) {
magic_name = "magic" + num;
attachMovie("magic3_3", magic_name, 10 + num);
_root[magic_name]._x = reimu._x;
_root[magic_name]._y = reimu._y;
_root[magic_name].sita = 72 * num;
num++;
}
es_time = -10;
}
function eshot_pat22() {
if (es_time < 0) {
reimu._x = reimu._x + ((175 - reimu._x) * 0.25);
reimu._y = reimu._y + ((210 - reimu._y) * 0.25);
if (es_time == -1) {
between_attack = 3;
}
} else if (es_time < 20) {
num = 0;
while (num < 5) {
shot_name = "enemy_shot" + eshot_number;
magic_name = "magic" + num;
attachMovie("eshot3_1", shot_name, 10000 + eshot_number);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
rad = Math.atan2(_root["magic" + ((num + 2) % 5)]._y - _root[magic_name]._y, _root["magic" + ((num + 2) % 5)]._x - _root[magic_name]._x);
_root[shot_name]._rotation = (rad / PI1) - 90;
_root[shot_name].dx = Math.cos(rad) * max1;
_root[shot_name].dy = Math.sin(rad) * max1;
eshot_number++;
num++;
}
} else if (es_time < 25) {
num = 0;
while (num < 5) {
_root["magic" + num].type1 = 2;
num++;
}
} else if (es_time < 45) {
num = 0;
while (num < 5) {
shot_name = "enemy_shot" + eshot_number;
magic_name = "magic" + num;
attachMovie("eshot25", shot_name, 10000 + eshot_number);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
rad = Math.atan2(_root["magic" + ((num + 2) % 5)]._y - _root[magic_name]._y, _root["magic" + ((num + 2) % 5)]._x - _root[magic_name]._x);
_root[shot_name].sita = Math.floor((rad / PI1) - 90);
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = Math.cos(rad) * 7;
_root[shot_name].dy = Math.sin(rad) * 7;
eshot_number++;
num++;
}
}
es_time++;
if (es_time == 60) {
es_time = 0;
num = 0;
while (num < 5) {
_root["magic" + num].type1 = 1;
num++;
}
}
}
spell22 = "\u30B7\u30E5\u30FC\u30C6\u30A3\u30F3\u30B0\u30B9\u30BF\u30FC";
function eshot_pat23_load() {
bossMHP = 1000;
bossHP = bossMHP;
spell_sw = 1;
max_list1 = [3, 3, 2, 1];
max1 = max_list1[difficult_no - 1];
between_attack = max1;
num = 0;
while (num < 18) {
random1[num] = 20 * num;
num++;
}
}
function eshot_pat23() {
if (es_time == 0) {
attachMovie("magic3_4", "magic0", 10);
magic0._x = marisa._x;
magic0._y = marisa._y;
} else if (es_time < 19) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot26", shot_name, 10000 + eshot_number);
_root.exy(magic0._x, magic0._y);
_root[shot_name]._x = _root[shot_name]._x + (cos_list20[random1[es_time - 1]] * 3);
_root[shot_name]._y = _root[shot_name]._y + (sin_list20[random1[es_time - 1]] * 3);
rad = Math.atan2(magic0._y - _root[shot_name]._y, magic0._x - _root[shot_name]._x);
_root[shot_name]._rotation = (rad / PI1) - 90;
_root[shot_name].dx = Math.cos(rad) * 15;
_root[shot_name].dy = Math.sin(rad) * 15;
eshot_number++;
} else if (es_time < 25) {
} else if (es_time < 40) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot3_1", shot_name, 10000 + eshot_number);
_root.exy(magic0._x, magic0._y);
_root[shot_name].sita = _root.ranset(360, 0);
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list15[_root[shot_name].sita];
_root[shot_name].dy = sin_list15[_root[shot_name].sita];
eshot_number++;
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot3_2", shot_name, 10000 + eshot_number);
_root.exy(magic0._x, magic0._y);
rad = Math.atan2(marisa._y - magic0._y, marisa._x - magic0._x);
_root[shot_name]._rotation = (rad / PI1) - 90;
_root[shot_name].dx = Math.cos(rad) * 12;
_root[shot_name].dy = Math.sin(rad) * 12;
eshot_number++;
}
es_time++;
if (es_time == 50) {
es_time = 0;
}
}
spell23 = "\u30B3\u30F3\u30BF\u30AF\u30C8\u30C8\u30E9\u30C3\u30D7";
function eshot_pat24_load() {
bossMHP = 1000;
bossHP = bossMHP;
between_attack = 1;
num = 0;
while (num < 12) {
random1[num] = 300 + (5 * num);
random2[num] = 5 * num;
num++;
}
num = 12;
while (num < 24) {
if (num < 18) {
random1[num] = 270 + (5 * (num - 12));
random2[num] = 5 * (num - 12);
} else {
random1[num] = 300 + (5 * (num - 12));
random2[num] = 30 + (5 * (num - 12));
}
num++;
}
num = 24;
while (num < 36) {
random1[num] = _root.ranset(120, 300) % 360;
random2[num] = _root.ranset(120, 300) % 360;
num++;
}
}
function eshot_pat24() {
if (es_time < 12) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot27", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random1[es_time];
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name]._x = _root[shot_name]._x + (cos_list20[_root[shot_name].sita] * 3);
_root[shot_name]._y = _root[shot_name]._y + (sin_list20[_root[shot_name].sita] * 3);
eshot_number++;
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot27", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random2[es_time];
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name]._x = _root[shot_name]._x + (cos_list20[_root[shot_name].sita] * 3);
_root[shot_name]._y = _root[shot_name]._y + (sin_list20[_root[shot_name].sita] * 3);
eshot_number++;
} else if (es_time < 24) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot28", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random1[es_time];
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name]._x = _root[shot_name]._x + (cos_list20[_root[shot_name].sita] * 6);
_root[shot_name]._y = _root[shot_name]._y + (sin_list20[_root[shot_name].sita] * 6);
eshot_number++;
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot28", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random2[es_time];
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name]._x = _root[shot_name]._x + (cos_list20[_root[shot_name].sita] * 6);
_root[shot_name]._y = _root[shot_name]._y + (sin_list20[_root[shot_name].sita] * 6);
eshot_number++;
} else if (es_time < 36) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot27", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random1[es_time];
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name]._x = _root[shot_name]._x + (cos_list20[_root[shot_name].sita] * 10);
_root[shot_name]._y = _root[shot_name]._y + (sin_list20[_root[shot_name].sita] * 10);
eshot_number++;
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot27", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = random2[es_time];
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name]._x = _root[shot_name]._x + (cos_list20[_root[shot_name].sita] * 10);
_root[shot_name]._y = _root[shot_name]._y + (sin_list20[_root[shot_name].sita] * 10);
eshot_number++;
}
es_time++;
if (es_time == 90) {
es_time = 0;
}
}
spell24 = "\u30EA\u30C8\u30EB\u30C0\u30A4\u30CB\u30F3\u30B0";
function eshot_pat25_load() {
bossMHP = 1000;
bossHP = bossMHP;
spell_sw = 1;
between_attack = 3;
max_list1 = [1, 2, 3, 4];
max_list2 = [1, 2, 2, 3];
max1 = max_list1[difficult_no - 1];
max2 = max_list2[difficult_no - 1];
num = 0;
while (num < 18) {
random1[num] = 20 * num;
num++;
}
}
function eshot_pat25() {
if (es_time == 0) {
num = 0;
while (num < max1) {
magic_name = "magic" + num;
attachMovie("magic3_5", magic_name, 10 + num);
_root[magic_name]._x = reimu._x;
_root[magic_name]._y = reimu._y;
_root[magic_name].tempx = _root.ranset(250, 50);
_root[magic_name].tempy = _root.ranset(300, 50);
num++;
}
} else if (es_time < 30) {
num = 0;
while (num < max2) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot1_1", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = _root.ranset(60, 330) % 360;
_root[shot_name].dx = cos_list5[_root[shot_name].sita];
_root[shot_name].dy = sin_list5[_root[shot_name].sita];
num++;
}
eshot_number++;
} else if (es_time == 40) {
num = 0;
while (num < max1) {
magic_name = "magic" + num;
num1 = 0;
while (num1 < 18) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot29", shot_name, 10000 + eshot_number);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
_root[shot_name].sita = random1[num1];
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].tempx = _root[magic_name]._x + (cos_list20[_root[shot_name].sita] * 3);
_root[shot_name].tempy = _root[magic_name]._y + (sin_list20[_root[shot_name].sita] * 3);
_root[shot_name].dx = cos_list10[_root[shot_name].sita];
_root[shot_name].dy = sin_list10[_root[shot_name].sita];
eshot_number++;
num1++;
}
num++;
}
}
es_time++;
if (es_time == 45) {
es_time = 0;
}
}
spell25 = "\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u30DE\u30B8\u30C3\u30AF";
function eshot_pat26_load() {
bossMHP = 1000;
bossHP = bossMHP;
spell_sw = 1;
between_attack = 5;
max_list1 = [2, 3, 4, 6];
max1 = max_list1[difficult_no - 1];
num = 0;
while (num < max1) {
magic_name = "magic" + num;
attachMovie("magic3_6", magic_name, 10 + num);
if (Math.random() > 0.5) {
if (Math.random() > 0.5) {
_root[magic_name]._x = _root.ranset(250, 50);
_root[magic_name]._y = 25;
_root[magic_name].dx = 8;
_root[magic_name].type1 = 0;
} else {
_root[magic_name]._x = _root.ranset(250, 50);
_root[magic_name]._y = 375;
_root[magic_name].dx = -8;
_root[magic_name].type1 = 2;
}
} else if (Math.random() > 0.5) {
_root[magic_name]._x = 25;
_root[magic_name]._y = _root.ranset(300, 50);
_root[magic_name].dy = -8;
_root[magic_name].type1 = 3;
} else {
_root[magic_name]._x = 325;
_root[magic_name]._y = _root.ranset(300, 50);
_root[magic_name].dy = 8;
_root[magic_name].type1 = 1;
}
num++;
}
}
function eshot_pat26() {
num = 0;
while (num < max1) {
num1 = 0;
while (num1 < 2) {
magic_name = "magic" + num;
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot3_1", shot_name, 10000 + eshot_number);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
_root[shot_name].sita = ((_root[magic_name].type1 * 90) + (num1 * 180)) % 360;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list10[_root[shot_name].sita];
_root[shot_name].dy = sin_list10[_root[shot_name].sita];
eshot_number++;
num1++;
}
num++;
}
}
spell26 = "\u7D05\u9B54\u5F0F\u6B53\u8FCE";
function eshot_pat27_load() {
bossMHP = 1000;
bossHP = bossMHP;
spell_sw = 1;
between_attack = 3;
}
function eshot_pat27() {
if (es_time < 10) {
esita = _root.ranset(360, 0);
num = 0;
while (num < 4) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot30", shot_name, 10000 + eshot_number);
_root.exy(reimu._x, reimu._y);
_root[shot_name].sita = (esita + (num * 5)) % 360;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].tempx = reimu._x + (cos_list20[_root[shot_name].sita] * 5);
_root[shot_name].tempy = reimu._y + (sin_list20[_root[shot_name].sita] * 5);
eshot_number++;
num++;
}
} else if (es_time == 10) {
num = 0;
while (num < 2) {
magic_name = "magic" + num;
attachMovie("magic3_7", magic_name, 10 + num);
_root[magic_name]._x = 25 + (num * 300);
_root[magic_name]._y = -25 + (num * 450);
_root[magic_name].dy = 8 - (num * 16);
num++;
}
} else if (es_time < 20) {
num = 0;
while (num < 2) {
magic_name = "magic" + num;
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot" + (31 + num), shot_name, 10000 + eshot_number);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
_root[shot_name].sita = 270 - (180 * num);
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = 8 - (16 * num);
eshot_number++;
num++;
}
} else if (es_time == 20) {
num = 2;
while (num < 4) {
magic_name = "magic" + num;
attachMovie("magic3_7", magic_name, 10 + num);
_root[magic_name]._x = -25 + ((num % 2) * 400);
_root[magic_name]._y = 25 + ((num % 2) * 350);
_root[magic_name].dx = 8 - ((num % 2) * 16);
num++;
}
} else if (es_time < 30) {
num = 2;
while (num < 4) {
magic_name = "magic" + num;
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot" + (31 + num), shot_name, 10000 + eshot_number);
_root.exy(_root[magic_name]._x, _root[magic_name]._y);
_root[shot_name].sita = 180 * (num % 2);
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dy = 8 - (16 * (num % 2));
eshot_number++;
num++;
}
} else if (es_time == 35) {
num = 0;
while (num < 20) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot3_1", shot_name, 10000 + eshot_number);
_root.exy((num * 17) + 5, 10);
_root[shot_name].dx = 0;
_root[shot_name].dy = 5;
eshot_number++;
num++;
}
} else if (es_time == 40) {
num = 0;
while (num < 21) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot3_1", shot_name, 10000 + eshot_number);
_root.exy(5, num * 20);
_root[shot_name]._rotation = 270;
_root[shot_name].dx = 5;
_root[shot_name].dy = 0;
eshot_number++;
num++;
}
} else if (es_time == 45) {
num = 0;
while (num < 21) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot3_1", shot_name, 10000 + eshot_number);
_root.exy(345, (num * 20) + 5);
_root[shot_name]._rotation = 90;
_root[shot_name].dx = -5;
_root[shot_name].dy = 0;
eshot_number++;
num++;
}
} else if (es_time == 50) {
num = 0;
while (num < 21) {
shot_name = "enemy_shot" + eshot_number;
attachMovie("eshot3_1", shot_name, 10000 + eshot_number);
_root.exy(num * 17, 400);
_root[shot_name]._rotation = 180;
_root[shot_name].dx = 0;
_root[shot_name].dy = -5;
eshot_number++;
num++;
}
}
es_time++;
if (es_time == 60) {
es_time = 0;
}
}
spell27 = "\u7D05\u3005\u5922\u4E16\u754C";
function Item_move1(tMC) {
}
function Item_move2(tMC) {
tMC._y = tMC._y + 4;
if (tMC.hitTest(marisa)) {
tMC.removeMovieClip();
power.bar._x = power.bar._x + 10;
if (power.bar._x > 0) {
power.bar._x = 0;
}
_root.set_power();
}
if (tMC._y > 400) {
tMC.removeMovieClip();
}
}
function main_moving() {
if (Key.isDown(39)) {
if (Key.isDown(16)) {
if ((marisa._x + dis1) < 340) {
marisa._x = marisa._x + dis1;
}
} else if ((marisa._x + dis2) < 340) {
marisa._x = marisa._x + dis2;
}
} else if (Key.isDown(37)) {
if (Key.isDown(16)) {
if ((marisa._x + dis1) > 20) {
marisa._x = marisa._x - dis1;
}
} else if ((marisa._x + dis2) > 20) {
marisa._x = marisa._x - dis2;
}
}
if (Key.isDown(38) && ((marisa._y - dis) > 20)) {
if (Key.isDown(16)) {
marisa._y = marisa._y - dis1;
} else {
marisa._y = marisa._y - dis2;
}
} else if (Key.isDown(40) && ((marisa._y + dis) < 400)) {
if (Key.isDown(16)) {
marisa._y = marisa._y + dis1;
} else {
marisa._y = marisa._y + dis2;
}
}
}
function boss_move() {
if (boss_move_sw == 1) {
enemy_move_delay++;
if (enemy_move_delay < 2) {
endpoint = _root.ranset(250, 50);
startpoint = reimu._x;
endpoint2 = _root.ranset(50, 25);
startpoint2 = reimu._y;
} else if (enemy_move_delay < 42) {
reimu._x = reimu._x + ((endpoint - startpoint) / 40);
reimu._y = reimu._y + ((endpoint2 - startpoint2) / 40);
} else {
enemy_move_delay = 0;
boss_move_sw = 0;
}
}
enemy_attack_delay++;
if (enemy_attack_delay > (between_attack - 1)) {
enemy_attack_delay = 0;
_root["eshot_pat" + eshot_pat]();
}
}
function mainshot_pat1(tMC) {
_root.SE(2);
_root[shot_type]();
}
function set_power() {
if (power.bar._x < -120) {
shot_power = 1;
} else if (power.bar._x < -60) {
if (shot_power == 1) {
_root.SE(7);
}
shot_power = 2;
} else if (power.bar._x < 0) {
if (shot_power == 2) {
_root.SE(7);
}
shot_power = 3;
} else if (power.bar._x < 1) {
if (shot_power == 3) {
_root.SE(7);
}
shot_power = 4;
}
shot_type = (("shot_pat" + shot_pat) + "_") + shot_power;
}
function hit_test4(tMC) {
num = emin;
while (num < enumber) {
enemy_name = "enemy" + num;
if (tMC.hitTest(_root[enemy_name])) {
Score1 = Score1 + 500;
_root[enemy_name].life = _root[enemy_name].life - tMC.damage;
if (_root[enemy_name].life < 1) {
_root.elist(_root[enemy_name]);
Score1 = Score1 + 20000;
attachMovie("break", "break" + num, 500 + num);
_root["break" + num]._x = _root[enemy_name]._x;
_root["break" + num]._y = _root[enemy_name]._y;
attachMovie("Item" + _root[enemy_name].Item, "Item" + num, 250 + num);
_root["Item" + num]._x = _root[enemy_name]._x + _root.ranset(60, -30);
_root["Item" + num]._y = _root[enemy_name]._y + _root.ranset(20, -10);
_root.SE(6);
_root[enemy_name].removeMovieClip();
}
tMC.removeMovieClip();
}
num++;
}
}
function hit_test5(tMC) {
if (((tMC._y < -15) || (tMC._x < -15)) || (tMC._x > 365)) {
clearInterval(tMC.hit_ID);
tMC.removeMovieClip();
}
if (tMC.hitTest(sboss)) {
Score1 = Score1 + 800;
sboss.HP = sboss.HP - tMC.damage;
reimu_bar.bar._x = ((sboss.HP / sboss.MHP) * 330) - 330;
tMC.removeMovieClip();
if (sboss.HP < 1) {
if (sboss.type1 == 1) {
_root.shotdel();
sboss.count = -20;
sboss.type1 = 2;
shot_sw = 0;
sboss.MHP = 500;
sboss.HP = 500;
} else if (sboss.type1 == 2) {
system_sw = 6;
load_sw = 0;
_root.shotdel();
delete_delay = 18;
bomb_sw = 0;
sboss.count = 0;
sboss.type1 = 3;
}
}
}
}
function hit_test7(tMC) {
tMC.interval_time = Math.abs(Math.floor((reimu._y - tMC._y) / 25) * 50);
if (((tMC._y < -15) || (tMC._x < -15)) || (tMC._x > 365)) {
clearInterval(tMC.hit_ID);
tMC.removeMovieClip();
}
if (tMC.hitTest(reimu)) {
if (battle_sw == 1) {
bossHP = bossHP - tMC.damage;
reimu_bar.bar._x = ((bossHP / bossMHP) * 330) - 330;
tMC.removeMovieClip();
Score1 = Score1 + 800;
}
}
}
function hit_test11(tMC) {
tMC.interval_time = Math.abs(Math.floor((reimu._y - tMC._y) / 25) * 50);
if (((tMC._y < -15) || (tMC._x < -15)) || (tMC._x > 365)) {
tMC.removeMovieClip();
}
if (tMC.hitTest(reimu)) {
if (battle_sw == 1) {
bossHP = bossHP - tMC.damage;
reimu_bar.bar._x = ((bossHP / bossMHP) * 330) - 330;
tMC.removeMovieClip();
Score1 = Score1 + 800;
}
}
}
function elist(tMC) {
enemy_list[tMC.number] = 1;
num1 = emin;
while (num1 <= enumber) {
if (enemy_list[num1] == 0) {
emin = num1;
return;
}
num1++;
}
}
function elist2(tMC) {
enemy_list[tMC.number] = 1;
num1 = emin;
while (num1 <= enumber) {
if (enemy_list[num1] == 0) {
emin = num1;
return;
}
num1++;
}
}
emin = 0;
emax = 0;
enemy_list = new Array();
num = 0;
while (num < 500) {
enemy_list[num] = 0;
num++;
}
function bomb_pat1() {
if (bomb_pat == 1) {
if ((dead_sw == 1.5) && (bombs > 0)) {
dead_sw = 0;
dead_effect.removeMovieClip();
if (bombs != 1) {
bombs--;
}
}
damage_count++;
bomb_count = 0;
bsita = _root.ranset(360, 0);
if (bombs != 0) {
num = 0;
while (num < 5) {
attachMovie("bomb", "bomb" + num, num + 200);
_root["bomb" + num]._x = marisa._x;
_root["bomb" + num]._y = marisa._y;
_root["bomb" + num].sita = bsita + (num * 72);
_root["bomb" + num].count = 0;
_root["bomb" + num].number = num;
num++;
}
bombs--;
bomb_stoc.gotoAndStop("bomb_stoc" + bombs);
bomb_sw = 1;
bomb_delay = 1;
}
}
}
function bomb_pat2(tMC) {
if (bomb_sw == 1) {
tMC.count++;
tMC._rotation = tMC._rotation - 20;
if (tMC.count < 20) {
tMC._x = tMC._x + _root.cos(tMC.sita, 2);
tMC._y = tMC._y + _root.sin(tMC.sita, 2);
} else if ((tMC.count - (tMC.number * 5)) == 20) {
if (system_sw == 6) {
rad = Math.atan2(reimu._y - tMC._y, reimu._x - tMC._x);
} else {
rad = Math.atan2(10 - tMC._y, _root.ranset(250, 50) - tMC._x);
}
tMC.dx = Math.cos(rad) * 20;
tMC.dy = Math.sin(rad) * 20;
} else {
tMC._x = tMC._x + tMC.dx;
tMC._y = tMC._y + tMC.dy;
}
if (tMC._y < -30) {
tMC.removeMovieClip();
bomb_count++;
if (bomb_count == 5) {
bomb_sw = 0;
}
}
}
}
function shot_pat1_1() {
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
attachMovie("shot1", shot_name, shot_number + 6000);
_root[shot_name]._x = (marisa._x + 8) - (num * 16);
_root[shot_name]._y = marisa._y - 10;
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list[_root[shot_name].sita] * 20;
_root[shot_name].dy = sin_list[_root[shot_name].sita] * 20;
_root[shot_name].damage = shot_damage1;
shot_number++;
num++;
}
}
function shot_pat1_2() {
num = 0;
while (num < 3) {
shot_name = "main_shot" + shot_number;
attachMovie("shot1", shot_name, shot_number + 6000);
_root[shot_name]._x = (marisa._x + 10) - (num * 10);
_root[shot_name]._y = (marisa._y - 10) - ((num % 2) * 5);
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list[_root[shot_name].sita] * 20;
_root[shot_name].dy = sin_list[_root[shot_name].sita] * 20;
_root[shot_name].damage = shot_damage1;
shot_number++;
num++;
}
}
function shot_pat1_3() {
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
attachMovie("shot1", shot_name, shot_number + 6000);
_root[shot_name]._x = (marisa._x + 8) - (num * 16);
_root[shot_name]._y = marisa._y - 10;
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list[_root[shot_name].sita] * 20;
_root[shot_name].dy = sin_list[_root[shot_name].sita] * 20;
_root[shot_name].damage = shot_damage1;
shot_number++;
num++;
}
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
attachMovie("shot1", shot_name, shot_number + 6000);
_root[shot_name]._x = (marisa._x + 8) - (num * 16);
_root[shot_name]._y = marisa._y - 10;
_root[shot_name].sita = ((-5 + (num * 10)) + 360) % 360;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list[_root[shot_name].sita] * 20;
_root[shot_name].dy = sin_list[_root[shot_name].sita] * 20;
_root[shot_name].damage = shot_damage1;
shot_number++;
num++;
}
}
function shot_pat1_4() {
num = 0;
while (num < 3) {
shot_name = "main_shot" + shot_number;
attachMovie("shot1", shot_name, shot_number + 6000);
_root[shot_name]._x = (marisa._x + 10) - (num * 10);
_root[shot_name]._y = (marisa._y - 10) - ((num % 2) * 5);
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list[_root[shot_name].sita] * 20;
_root[shot_name].dy = sin_list[_root[shot_name].sita] * 20;
_root[shot_name].damage = shot_damage1;
shot_number++;
num++;
}
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
attachMovie("shot1", shot_name, shot_number + 6000);
_root[shot_name]._x = (marisa._x + 8) - (num * 16);
_root[shot_name]._y = marisa._y - 10;
_root[shot_name].sita = ((-5 + (num * 10)) + 360) % 360;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list[_root[shot_name].sita] * 20;
_root[shot_name].dy = sin_list[_root[shot_name].sita] * 20;
_root[shot_name].damage = shot_damage1;
shot_number++;
num++;
}
}
function shot_pat2_1() {
shot_name = "main_shot" + shot_number;
attachMovie("shot2_1", shot_name, shot_number + 6000);
_root.xy(marisa._x, marisa._y);
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage2_1;
shot_number++;
}
function shot_pat2_2() {
shot_name = "main_shot" + shot_number;
attachMovie("shot2_1", shot_name, shot_number + 6000);
_root.xy(marisa._x, marisa._y);
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage2_1;
shot_number++;
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
attachMovie("shot2_2", shot_name, shot_number + 6000);
_root.xy(marisa._x, marisa._y);
_root[shot_name].sita = (((num * 90) - 45) + 360) % 360;
_root[shot_name].sita2 = _root[shot_name].sita;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].stype = 1;
_root[shot_name].count = 0;
_root[shot_name].damage = shot_damage2_2;
shot_number++;
num++;
}
}
function shot_pat2_3() {
num = 0;
while (num < 3) {
shot_name = "main_shot" + shot_number;
attachMovie("shot2_1", shot_name, shot_number + 6000);
_root.xy(marisa._x, marisa._y);
_root[shot_name].sita = ((num * 15) + 345) % 360;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage2_1;
shot_number++;
num++;
}
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
attachMovie("shot2_2", shot_name, shot_number + 6000);
_root.xy(marisa._x, marisa._y);
_root[shot_name].sita = (((num * 90) - 45) + 360) % 360;
_root[shot_name].sita2 = _root[shot_name].sita;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].stype = 1;
_root[shot_name].count = 0;
_root[shot_name].damage = shot_damage2_2;
shot_number++;
num++;
}
}
function shot_pat2_4() {
num = 0;
while (num < 3) {
shot_name = "main_shot" + shot_number;
attachMovie("shot2_1", shot_name, shot_number + 6000);
_root.xy(marisa._x, marisa._y);
_root[shot_name].sita = ((num * 15) + 345) % 360;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage2_1;
shot_number++;
num++;
}
num = 0;
while (num < 4) {
shot_name = "main_shot" + shot_number;
attachMovie("shot2_2", shot_name, shot_number + 6000);
_root.xy(marisa._x, marisa._y);
if (num < 2) {
_root[shot_name].sita = (((num * 15) - 45) + 360) % 360;
_root[shot_name].sita2 = _root[shot_name].sita;
} else {
_root[shot_name].sita = num * 15;
_root[shot_name].sita2 = _root[shot_name].sita;
}
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].stype = 1;
_root[shot_name].count = 0;
_root[shot_name].damage = shot_damage2_2;
shot_number++;
num++;
}
}
function shot_pat3_1() {
shot_name = "main_shot" + shot_number;
attachMovie("shot3", shot_name, shot_number + 6000);
_root.xy(marisa._x, marisa._y - 20);
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage3_1;
shot_number++;
shot_name = "main_shot" + shot_number;
attachMovie("shot3", shot_name, shot_number + 6000);
_root.xy(option0._x, option0._y);
rad = Math.atan2(marisa._y - option0._y, marisa._x - option0._x);
_root[shot_name].sita = (Math.floor(((rad / Math.PI) * 180) - 90) + _root.ranset(6, 357)) % 360;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage3_2;
shot_number++;
}
function shot_pat3_2() {
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
attachMovie("shot3", shot_name, shot_number + 6000);
_root.xy((marisa._x + (num * 20)) - 10, marisa._y - 20);
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage3_1;
shot_number++;
num++;
}
shot_name = "main_shot" + shot_number;
attachMovie("shot3", shot_name, shot_number + 6000);
_root.xy(option0._x, option0._y);
rad = Math.atan2(marisa._y - option0._y, marisa._x - option0._x);
_root[shot_name].sita = (Math.floor(((rad / Math.PI) * 180) - 90) + _root.ranset(6, 357)) % 360;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage3_2;
shot_number++;
}
function shot_pat3_3() {
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
attachMovie("shot3", shot_name, shot_number + 6000);
_root.xy((marisa._x + (num * 20)) - 10, marisa._y - 20);
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage3_1;
shot_number++;
num++;
}
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
attachMovie("shot3", shot_name, shot_number + 6000);
_root.xy(option0._x, option0._y);
rad = Math.atan2(marisa._y - option0._y, marisa._x - option0._x);
_root[shot_name].sita = (Math.floor(((rad / Math.PI) * 180) - 90) + _root.ranset(6, 357)) % 360;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage3_2;
shot_number++;
num++;
}
}
function shot_pat3_4() {
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
attachMovie("shot3", shot_name, shot_number + 6000);
_root.xy((marisa._x + (num * 20)) - 10, marisa._y - 20);
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage3_1;
shot_number++;
num++;
}
num = 0;
while (num < 3) {
shot_name = "main_shot" + shot_number;
attachMovie("shot3", shot_name, shot_number + 6000);
_root.xy(option0._x, option0._y);
rad = Math.atan2(marisa._y - option0._y, marisa._x - option0._x);
_root[shot_name].sita = (Math.floor(((rad / Math.PI) * 180) - 90) + _root.ranset(6, 357)) % 360;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage3_2;
shot_number++;
num++;
}
}
function shot_pat4_1() {
shot_name = "main_shot" + shot_number;
attachMovie("shot4", shot_name, shot_number + 6000);
_root.xy(marisa._x, marisa._y);
_root[shot_name].dx = 0;
_root[shot_name].dy = 20;
_root[shot_name].damage = shot_damage1;
shot_number++;
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
attachMovie("shot4", shot_name, shot_number + 6000);
_root.xy(_root["option" + num]._x, _root["option" + num]._y);
_root[shot_name].sita = 350 - (340 * num);
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list20[_root[shot_name].sita];
_root[shot_name].dy = sin_list20[_root[shot_name].sita];
_root[shot_name].damage = shot_damage1;
shot_number++;
num++;
}
}
function shot_pat4_2() {
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
attachMovie("shot4", shot_name, shot_number + 6000);
_root.xy(marisa._x, marisa._y);
_root[shot_name].sita = 10 + (num * 340);
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list20[_root[shot_name].sita];
_root[shot_name].dy = sin_list20[_root[shot_name].sita];
_root[shot_name].damage = shot_damage1;
shot_number++;
num++;
}
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
attachMovie("shot4", shot_name, shot_number + 6000);
_root.xy(_root["option" + num]._x, _root["option" + num]._y);
_root[shot_name].sita = 350 - (340 * num);
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list20[_root[shot_name].sita];
_root[shot_name].dy = sin_list20[_root[shot_name].sita];
_root[shot_name].damage = shot_damage1;
shot_number++;
num++;
}
}
function shot_pat4_3() {
num = 0;
while (num < 3) {
shot_name = "main_shot" + shot_number;
attachMovie("shot4", shot_name, shot_number + 6000);
_root.xy(marisa._x, marisa._y);
_root[shot_name].sita = (350 + (num * 10)) % 360;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list20[_root[shot_name].sita];
_root[shot_name].dy = sin_list20[_root[shot_name].sita];
_root[shot_name].damage = shot_damage1;
shot_number++;
num++;
}
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
attachMovie("shot4", shot_name, shot_number + 6000);
_root.xy(_root["option" + num]._x, _root["option" + num]._y);
_root[shot_name].sita = 350 - (340 * num);
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list20[_root[shot_name].sita];
_root[shot_name].dy = sin_list20[_root[shot_name].sita];
_root[shot_name].damage = shot_damage1;
shot_number++;
num++;
}
}
function shot_pat4_4() {
num = 0;
while (num < 3) {
shot_name = "main_shot" + shot_number;
attachMovie("shot4", shot_name, shot_number + 6000);
_root.xy(marisa._x, marisa._y);
_root[shot_name].sita = (350 + (num * 10)) % 360;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list20[_root[shot_name].sita];
_root[shot_name].dy = sin_list20[_root[shot_name].sita];
_root[shot_name].damage = shot_damage1;
shot_number++;
num++;
}
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
attachMovie("shot4", shot_name, shot_number + 6000);
_root.xy(option0._x, option0._y);
_root[shot_name].sita = 350 - (10 * num);
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list20[_root[shot_name].sita];
_root[shot_name].dy = sin_list20[_root[shot_name].sita];
_root[shot_name].damage = shot_damage1;
shot_number++;
shot_name = "main_shot" + shot_number;
attachMovie("shot4", shot_name, shot_number + 6000);
_root.xy(option1._x, option1._y);
_root[shot_name].sita = 10 + (10 * num);
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = cos_list20[_root[shot_name].sita];
_root[shot_name].dy = sin_list20[_root[shot_name].sita];
_root[shot_name].damage = shot_damage1;
shot_number++;
num++;
}
}
function shot_pat5_1() {
shot_name = "main_shot" + shot_number;
attachMovie("shot5", shot_name, shot_number + 6000);
_root.xy(marisa._x, marisa._y - 20);
_root[shot_name].sita = 0;
_root[shot_name].dx = 0;
_root[shot_name].dy = 20;
_root[shot_name].damage = shot_damage5_1;
_root[shot_number].type1 = 1;
shot_number++;
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
attachMovie("shot5", shot_name, shot_number + 6000);
_root.xy(_root["option" + num]._x, _root["option" + num]._y);
_root[shot_name].sita2 = 15 + (330 * num);
_root[shot_name].damage = shot_damage5_2;
_root[shot_name].type1 = 2;
shot_number++;
num++;
}
}
function shot_pat5_2() {
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
attachMovie("shot5", shot_name, shot_number + 6000);
_root.xy((marisa._x + 10) - (num * 20), marisa._y - 20);
_root[shot_name].sita = 0;
_root[shot_name].dx = 0;
_root[shot_name].dy = 20;
_root[shot_name].damage = shot_damage5_1;
_root[shot_number].type1 = 1;
shot_number++;
shot_name = "main_shot" + shot_number;
attachMovie("shot5", shot_name, shot_number + 6000);
_root.xy(_root["option" + num]._x, _root["option" + num]._y);
_root[shot_name].sita2 = 15 + (330 * num);
_root[shot_name].damage = shot_damage5_2;
_root[shot_name].type1 = 2;
shot_number++;
num++;
}
}
function shot_pat5_3() {
num = 0;
while (num < 3) {
shot_name = "main_shot" + shot_number;
attachMovie("shot5", shot_name, shot_number + 6000);
_root.xy((marisa._x + 10) - (num * 10), (marisa._y - 20) + ((num % 2) * -5));
_root[shot_name].sita = 0;
_root[shot_name].dx = 0;
_root[shot_name].dy = 20;
_root[shot_name].damage = shot_damage5_1;
_root[shot_number].type1 = 1;
shot_number++;
num++;
}
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
attachMovie("shot5", shot_name, shot_number + 6000);
_root.xy(_root["option" + num]._x, _root["option" + num]._y);
_root[shot_name].sita2 = 15 + (330 * num);
_root[shot_name].damage = shot_damage5_2;
_root[shot_name].type1 = 2;
shot_number++;
num++;
}
}
function shot_pat5_4() {
num = 0;
while (num < 3) {
shot_name = "main_shot" + shot_number;
attachMovie("shot5", shot_name, shot_number + 6000);
_root.xy((marisa._x + 10) - (num * 10), (marisa._y - 20) + ((num % 2) * -5));
_root[shot_name].sita = 0;
_root[shot_name].dx = 0;
_root[shot_name].dy = 20;
_root[shot_name].damage = shot_damage5_1;
_root[shot_number].type1 = 1;
shot_number++;
num++;
}
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
attachMovie("shot5", shot_name, shot_number + 6000);
_root.xy((option0._x + (num * 10)) - 5, option0._y);
_root[shot_name].sita2 = 15;
_root[shot_name].damage = shot_damage5_2;
_root[shot_name].type1 = 2;
shot_number++;
shot_name = "main_shot" + shot_number;
attachMovie("shot5", shot_name, shot_number + 6000);
_root.xy((option1._x + (num * 10)) - 5, option1._y);
_root[shot_name].sita2 = 345;
_root[shot_name].damage = shot_damage5_2;
_root[shot_name].type1 = 2;
shot_number++;
num++;
}
}
function shot_pat6_1() {
shot_name = "main_shot" + shot_number;
attachMovie("shot6_1", shot_name, shot_number + 6000);
_root.xy(marisa._x, marisa._y - 20);
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage6_1;
shot_number++;
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
oname = "option" + num;
attachMovie("shot6_2", shot_name, shot_number + 6000);
_root.xy(_root[oname]._x, _root[oname]._y - 20);
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage6_2;
shot_number++;
num++;
}
}
function shot_pat6_2() {
shot_name = "main_shot" + shot_number;
attachMovie("shot6_1", shot_name, shot_number + 6000);
_root.xy(marisa._x, marisa._y - 20);
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage6_1;
shot_number++;
num = 0;
while (num < 3) {
shot_name = "main_shot" + shot_number;
oname = "option" + num;
attachMovie("shot6_2", shot_name, shot_number + 6000);
_root.xy(_root[oname]._x, _root[oname]._y - 20);
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage6_2;
shot_number++;
num++;
}
}
function shot_pat6_3() {
shot_name = "main_shot" + shot_number;
attachMovie("shot6_1", shot_name, shot_number + 6000);
_root.xy(marisa._x, marisa._y - 20);
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage6_1;
shot_number++;
num = 0;
while (num < 4) {
shot_name = "main_shot" + shot_number;
oname = "option" + num;
attachMovie("shot6_2", shot_name, shot_number + 6000);
_root.xy(_root[oname]._x, _root[oname]._y - 20);
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage6_2;
shot_number++;
num++;
}
}
function shot_pat6_4() {
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
oname = "option" + num;
attachMovie("shot6_1", shot_name, shot_number + 6000);
_root.xy((marisa._x + (num * 10)) - 5, marisa._y - 20);
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage6_3;
shot_number++;
num++;
}
num = 0;
while (num < 4) {
shot_name = "main_shot" + shot_number;
attachMovie("shot6_2", shot_name, shot_number + 6000);
_root.xy(_root[oname]._x, _root[oname]._y - 20);
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage6_2;
shot_number++;
num++;
}
}
function shot_pat7_1() {
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
attachMovie("shot7", shot_name, shot_number + 6000);
_root.xy((marisa._x + (num * 12)) - 6, marisa._y - 20);
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage7_1;
shot_number++;
num++;
}
shot_name = "main_shot" + shot_number;
attachMovie("shot7", shot_name, shot_number + 6000);
_root.xy(option0._x, option0._y - 20);
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage7_1;
shot_number++;
}
function shot_pat7_2() {
num = 0;
while (num < 3) {
shot_name = "main_shot" + shot_number;
attachMovie("shot7", shot_name, shot_number + 6000);
_root.xy((marisa._x + (num * 8)) - 8, (marisa._y - 20) - ((num % 2) * 5));
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage7_1;
shot_number++;
num++;
}
shot_name = "main_shot" + shot_number;
attachMovie("shot7", shot_name, shot_number + 6000);
_root.xy(option0._x, option0._y - 20);
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage7_1;
shot_number++;
}
function shot_pat7_3() {
num = 0;
while (num < 3) {
shot_name = "main_shot" + shot_number;
attachMovie("shot7", shot_name, shot_number + 6000);
_root.xy((marisa._x + (num * 8)) - 8, (marisa._y - 20) - ((num % 2) * 5));
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage7_1;
shot_number++;
num++;
}
num = 0;
while (num < 2) {
shot_name = "main_shot" + shot_number;
attachMovie("shot7", shot_name, shot_number + 6000);
_root.xy((option0._x + 8) - (16 * num), option0._y - 20);
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage7_1;
shot_number++;
num++;
}
}
function shot_pat7_4() {
num = 0;
while (num < 3) {
shot_name = "main_shot" + shot_number;
attachMovie("shot7", shot_name, shot_number + 6000);
_root.xy((marisa._x + (num * 8)) - 8, (marisa._y - 20) - ((num % 2) * 5));
_root[shot_name].sita = 0;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage7_1;
shot_number++;
num++;
}
num = 0;
while (num < 3) {
shot_name = "main_shot" + shot_number;
attachMovie("shot7", shot_name, shot_number + 6000);
_root.xy(option0._x, option0._y - 20);
_root[shot_name].sita = (330 + (30 * num)) % 360;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos(_root[shot_name].sita, 20);
_root[shot_name].dy = _root.sin(_root[shot_name].sita, 20);
_root[shot_name].damage = shot_damage7_1;
shot_number++;
num++;
}
}
function hit_test_boss() {
attachMovie("dead_effect", "dead_effect", 9999);
dead_effect._x = marisa._x;
dead_effect._y = marisa._y;
dead_sw = 1;
damage_count++;
_root.shotdel();
marisa.play();
}
function hit_test0(tMC) {
tempd = Math.max(Math.abs(marisa._x - tMC._x), Math.abs(marisa._y - tMC._y));
tMC.time2 = Math.floor(tempd / (8 + tMC.temp)) + 1;
_root["bombf" + bomb_sw](tMC);
if ((((tMC._x < -10) || (tMC._x > 360)) || (tMC._y < -10)) || (tMC._y > 410)) {
dshot++;
tMC.removeMovieClip();
}
}
function hit_test1(tMC) {
tempd = Math.max(Math.abs(marisa._x - tMC._x), Math.abs(marisa._y - tMC._y));
tMC.time2 = Math.floor(tempd / (8 + tMC.temp)) + 1;
_root["bombf" + bomb_sw](tMC);
}
function bombf0(tMC) {
if (tMC.point.hitTest(marisa.point)) {
attachMovie("dead_effect", "dead_effect", 9999);
dead_effect._x = marisa._x;
dead_effect._y = marisa._y;
dead_sw = 1;
damage_count++;
_root.shotdel();
marisa.play();
}
}
function bombf1(tMC) {
num1 = 0;
while (num1 < 5) {
if (tMC.hitTest(_root["bomb" + num1])) {
tMC.removeMovieClip();
}
num1++;
}
}
function dead_act() {
dead_sw = 0;
shot_number = 0;
if (players == 0) {
if (system_sw == 11) {
eshot_pat = 0;
es_time = 0;
shot_sw = 0;
start_sw = 0;
bomb_sw = 0;
attachMovie("sresult2", "sresult", 30009);
sresult._x = 175;
sresult._y = 200;
sresult.gotoAndPlay(69);
retry = 1;
z_delay = -10;
reimu.removeMovieClip();
marisa.removeMovieClip();
reimu_bar.removeMovieClip();
sni.removeMovieClip();
_root.shotdel();
num = 0;
while (num < 10) {
_root["magic" + num].removeMovieClip();
_root["option" + num].removeMovieClip();
num++;
}
} else {
temp_sw = system_sw;
marisa._visible = false;
system_sw = 9;
load_sw = 0;
z_delay = -15;
_root.shotdel();
}
} else {
players--;
player_stoc.gotoAndStop("ps" + players);
_root.shotdel();
marisa._x = 175;
marisa._y = 380;
marisa.gotoAndPlay(3);
bombs = 3;
bomb_stoc.gotoAndStop("bomb_stoc" + bombs);
power.bar._x = power.bar._x - 10;
if (power.bar._x <= -160) {
power.bar._x = -160;
}
_root.set_power();
shot_number = 0;
}
}
function system1() {
if (load_sw == 0) {
Select = 1;
_root.create_menu1();
_root.shot_pat_set();
load_sw = 1;
}
now = mySound.getBytesLoaded();
total = mySound.getBytesTotal();
pers = Math.floor((now / total) * 100);
if (Key.isDown(90) && (z_delay == 0)) {
if (Select == 1) {
menu.removeMovieClip();
system_sw = ttt;
load_sw = 0;
z_delay = -15;
} else if (Select == 3) {
menu.removeMovieClip();
_root.set_dif(1);
system_sw = 2;
load_sw = 0;
z_delay = -15;
}
}
_root.system0_key();
_root.setz_delay();
_root.setkey_delay();
}
function system0_key() {
if (Key.isDown(40) && (key_delay == 0)) {
if (Select < 6) {
menu["menu1_" + Select]._alpha = 50;
Select++;
menu["menu1_" + Select]._alpha = 100;
} else {
menu["menu1_" + Select]._alpha = 50;
Select = 1;
menu["menu1_" + Select]._alpha = 100;
}
key_delay++;
} else if (Key.isDown(38) && (key_delay == 0)) {
if (Select > 1) {
menu["menu1_" + Select]._alpha = 50;
Select--;
menu["menu1_" + Select]._alpha = 100;
} else {
menu["menu1_" + Select]._alpha = 50;
Select = 6;
menu["menu1_" + Select]._alpha = 100;
}
key_delay++;
}
}
function system2() {
if (load_sw == 0) {
card_Select = 1;
attachMovie("menu2", "menu2", 30030);
menu2["card" + card_Select].swapDepths(70);
attachMovie("cursor3", "cursor", 30045);
cursor._x = 100;
cursor._y = 320;
cursor._rotation = -15;
load_sw = 1;
}
if (Key.isDown(90) && (z_delay == 0)) {
shot_pat = card_Select;
menu2.removeMovieClip();
cursor.removeMovieClip();
z_delay++;
load_sw = 0;
if (Select == 1) {
system_sw = 3;
} else {
system_sw = 10;
}
}
if (Key.isDown(39) && (key_delay == 0)) {
if (card_Select < card_max) {
menu2["card" + card_Select].swapDepths(70 - card_Select);
card_Select++;
menu2["card" + card_Select].swapDepths(70);
cursor._x = cursor._x + 40;
} else {
menu2["card" + card_Select].swapDepths(70 - card_Select);
card_Select = 1;
menu2["card" + card_Select].swapDepths(70);
cursor._x = 100;
}
menu2.smessage.gotoAndStop(card_Select * 5);
key_delay++;
}
if (Key.isDown(37) && (key_delay == 0)) {
if (card_Select > 1) {
menu2["card" + card_Select].swapDepths(70 - card_Select);
card_Select--;
menu2["card" + card_Select].swapDepths(70);
cursor._x = cursor._x - 40;
} else {
menu2["card" + card_Select].swapDepths(70 - card_Select);
card_Select = card_max;
menu2["card" + card_Select].swapDepths(70);
cursor._x = 60 + (card_max * 40);
}
menu2.smessage.gotoAndStop(card_Select * 5);
key_delay++;
}
_root.setz_delay();
_root.setkey_delay();
}
function system3() {
if (load_sw == 0) {
Select2 = 1;
attachMovie("menu3", "menu3", 99);
load_sw = 1;
}
if (Key.isDown(90) && (z_delay == 0)) {
system_sw = 4;
difficult_no = Select2;
menu3.removeMovieClip();
stage_count = 1;
load_sw = 0;
z_delay++;
}
if (Key.isDown(38) && (key_delay == 0)) {
if (Select2 > 1) {
menu3["menu3_" + Select2]._alpha = 50;
Select2--;
menu3["menu3_" + Select2]._alpha = 100;
} else {
menu3["menu3_" + Select2]._alpha = 50;
Select2 = 4;
menu3["menu3_" + Select2]._alpha = 100;
}
key_delay++;
} else if (Key.isDown(40) && (key_delay == 0)) {
if (Select2 < 4) {
menu3["menu3_" + Select2]._alpha = 50;
Select2++;
menu3["menu3_" + Select2]._alpha = 100;
} else {
menu3["menu3_" + Select2]._alpha = 50;
Select2 = 1;
menu3["menu3_" + Select2]._alpha = 100;
}
key_delay++;
}
_root.setz_delay();
_root.setkey_delay();
}
function system4() {
if (load_sw == 0) {
test_sw = 0;
shot_sw = 1;
eshot_pat = 0;
if (stage_count == 1) {
_root.create_power();
power.bar._x = -160;
_root.create_player_stoc(2);
_root.create_bomb_stoc(3);
_root.create_menu4();
_root.set_power();
}
_root["stage" + stage_count]();
_root.create_marisa();
stopAllSounds();
if (bgm_sw == 1) {
mySound2.start();
}
load_sw = 1;
_root.set_option();
}
if (dead_sw == 0) {
_root.main_moving();
} else if (dead_sw == 1) {
_root.SE(1);
dead_sw = 1.5;
} else if (dead_sw == 2) {
_root.dead_act();
}
if (Key.isDown(88)) {
if (bomb_sw == 0) {
_root.bomb_pat1();
}
}
if (Key.isDown(90)) {
if ((shot_sw == 1) && ((shot_count % 3) == 0)) {
shot_count++;
_root.mainshot_pat1();
} else {
shot_count++;
}
}
_root.delete_sw_delay();
}
function system5() {
if (load_sw == 0) {
load_sw = 1;
}
if (dead_sw == 0) {
_root.main_moving();
} else if (dead_sw == 1) {
_root.SE(1);
dead_sw = 1.5;
} else if (dead_sw == 2) {
_root.dead_act();
}
if (Key.isDown(88) && (bomb_sw == 0)) {
_root.bomb_pat1();
}
if ((Key.isDown(90) && (shot_sw == 1)) && ((shot_count % 3) == 0)) {
shot_count++;
_root.mainshot_pat1();
} else {
shot_count++;
}
_root.mainshot_pat1_2();
_root.delete_sw_delay();
}
function system6() {
if (load_sw == 0) {
_root.create_mw();
_root.create_chara();
message1 = new Array();
message1 = _root.MC["mes" + stage_count].split(newline);
_root.set_message();
shot_number = 0;
load_sw = 1;
z_delay = -15;
}
_root.main_moving();
if (Key.isDown(90) && (z_delay == 0)) {
_root.set_message();
z_delay = 1;
}
_root.setz_delay();
}
function set_message() {
if (message1[mes_num].slice(0, 3) == "end") {
if (bgm_sw == 1) {
}
if (message1[mes_num].slice(3, 4) == "1") {
system_sw = 5;
load_sw = 0;
mes_num++;
} else if (message1[mes_num].slice(3, 4) == "2") {
system_sw = 4;
mes_num++;
} else if (message1[mes_num].slice(3, 4) == "3") {
system_sw = 7;
load_sw = 0;
mes_num++;
} else {
if ((eshot_pat == 26) || (eshot_pat == 27)) {
system_sw = 14;
} else {
system_sw = 8;
}
eshot_number = 0;
eshot_pat = 0;
reimu.removeMovieClip();
mes_num = 0;
load_sw = 0;
stage_count++;
}
chara.removeMovieClip();
mw.removeMovieClip();
mes_name = "";
mes_main = "";
} else {
if (message1[mes_num].slice(0, 2) == "\u970A\u5922") {
chara.gotoAndStop("reimu");
temp2 = "\u970A\u5922";
} else if (message1[mes_num].slice(0, 3) == "\u9B54\u7406\u6C99") {
chara.gotoAndStop("marisa");
temp2 = "\u9B54\u7406\u6C99";
} else if (message1[mes_num].slice(0, 3) == "\u5996\u59221") {
chara.gotoAndStop("yomu1");
temp2 = "\u5996\u5922";
} else if (message1[mes_num].slice(0, 3) == "\u5996\u59222") {
chara.gotoAndStop("yomu2");
temp2 = "\u5996\u5922";
} else if (message1[mes_num].slice(0, 3) == "\u5C0F\u60AA\u9B54") {
chara.gotoAndStop("koakuma");
temp2 = "\u5C0F\u60AA\u9B54";
} else if (message1[mes_num].slice(0, 4) == "\u30EB\u30FC\u30DF\u30A2") {
chara.gotoAndStop("rumia" + message1[mes_num].slice(4, 5));
temp2 = "\u30EB\u30FC\u30DF\u30A2";
} else if (message1[mes_num].slice(0, 3) == "\u30C1\u30EB\u30CE") {
chara.gotoAndStop("chiru");
temp2 = "\u30C1\u30EB\u30CE";
} else if (message1[mes_num].slice(0, 3) == "\u306B\u3083\u3053") {
chara.gotoAndStop("nyaco");
temp2 = "\u306B\u3083\u3053";
}
temp1 = message1[mes_num].split("\u300C");
mes_name = ("\u3010" + temp2) + "\u3011";
mes_main = "\u300C" + temp1[1];
mes_num++;
}
}
function system7() {
if (load_sw == 0) {
if (test_sw == 1) {
_root.create_marisa();
_root.create_player_stoc(2);
_root.create_bomb_stoc(3);
_root.create_power();
_root.create_menu4();
power.bar._x = 0;
_root.set_power();
_root.set_opition();
stage_count = 1;
mes_num = 18;
} else {
pat_count = ((stage_count - 1) * 9) + 1;
}
reimu.removeMovieClip();
_root.create_reimu();
reimu.gotoAndStop("boss" + stage_count);
_root.create_reimu_bar();
reimu_bar.bar._x = -330;
stopAllSounds();
if (bgm_sw == 1) {
mySound.start();
}
battle_sw = 0;
load_sw = 1;
shot_sw = 0;
miss = 0;
}
_root.startend();
if (eshot_sw == 1) {
_root.boss_move();
if (reimu_bar.bar._x > -330) {
temp_time--;
main_time = Math.floor(temp_time / 20);
}
}
if (Key.isDown(90)) {
if ((shot_sw == 1) && ((shot_count % 3) == 0)) {
shot_count++;
_root.mainshot_pat1();
} else {
shot_count++;
}
}
_root.mainshot_pat1_2();
if (Key.isDown(88)) {
if (bomb_sw == 0) {
_root.bomb_pat1();
}
}
_root.bomb_pat2();
if (dead_sw == 0) {
_root.main_moving();
} else if (dead_sw == 1) {
_root.SE(1);
dead_sw = 1.5;
} else if (dead_sw == 2) {
_root.dead_act();
}
_root.delete_sw_delay();
if (bgm_sw == 1) {
mySound.onSoundComplete = mySound.start;
}
}
function startend() {
if (battle_sw == 0) {
temp_time = 1;
reimu_bar.bar._x = reimu_bar.bar._x + 6;
enemy_move_delay = 0;
enemy_attack_delay = 0;
reimu._x = reimu._x + ((175 - reimu._x) * 0.05);
reimu._y = reimu._y + ((50 - reimu._y) * 0.05);
if (reimu_bar.bar._x > 0) {
result_sw = 0;
battle_sw = 1;
reimu_bar.bar._x = 0;
reimu_bar.timer._visible = 1;
damage_count = 0;
shot_number = 0;
eshot_number = 0;
es_time = 0;
temp_time = 600;
eshot_pat = pat_count;
pat_count++;
_root["PlayList" + difficult_no][eshot_pat] = 1;
sdata01.data[(("PL" + difficult_no) + "_") + eshot_pat] = 1;
shot_sw = 1;
eshot_sw = 1;
bomb_sw = 0;
_root[("eshot_pat" + eshot_pat) + "_load"]();
}
}
if ((reimu_bar.bar._x < -330) || ((temp_time == 0) && (reimu_bar.bar._x > -330))) {
if (result_sw == 0) {
num = 0;
while (num < 5) {
_root["bomb" + num].removeMovieClip();
num++;
}
bomb_sw = 0;
result_sw = 1;
reimu_bar.bar._x = -330;
shot_sw = 0;
spell_name = _root["spell" + pat_count];
reimu_bar.timer._visible = 0;
sni.removeMovieClip();
boss_move_sw = 0;
_root.shotdel();
num = 0;
while (num < 10) {
if (num < 5) {
attachMovie("Item1", "Item" + num, 250 + num);
} else if (num < 6) {
attachMovie("Item2", "Item" + num, 250 + num);
} else if (num < 10) {
attachMovie("Item3", "Item" + num, 250 + num);
}
_root["Item" + num]._x = reimu._x + _root.ranset(60, -30);
_root["Item" + num]._y = reimu._y + _root.ranset(20, -10);
num++;
}
num = 0;
while (num < 10) {
_root["magic" + num].removeMovieClip();
_root["reimu" + num].removeMovieClip();
num++;
}
if (spell_sw == 1) {
result_sw = 1;
_root.SE(5);
num = 0;
while (num < 180) {
effect_name = "mc" + num;
attachMovie("effect2", effect_name, 2000 + num);
_root[effect_name]._x = reimu._x;
_root[effect_name]._y = reimu._y;
_root[effect_name]._rotation = num * 2;
_root[effect_name].tempx = reimu._x + (Math.cos(((num * 2) + 90) * PI1) * 200);
_root[effect_name].tempy = reimu._y + (Math.sin(((num * 2) + 90) * PI1) * 200);
num++;
}
spell_sw = 0;
if (damage_count > 0) {
attachMovie("sresult2", "sresult", 30009);
sresult._x = 175;
sresult._y = 200;
miss++;
} else {
attachMovie("sresult1", "sresult", 30009);
sresult._x = 175;
sresult._y = 200;
spell_score = temp_time * 1500;
Score1 = Score1 + spell_score;
spell_score = "+" + spell_score;
}
} else if (spell_sw == 0) {
result_sw = 1;
if ((((eshot_pat % 9) == 1) || ((eshot_pat % 9) == 3)) || ((eshot_pat % 9) == 6)) {
attachMovie("spell_namein", "sni", 77);
sni._x = 150;
sni._y = 200;
}
battle_sw = 0;
}
eshot_sw = 0;
}
}
}
function system8() {
if (load_sw == 0) {
num = 0;
while (num < 4) {
_root["option" + num].removeMovieClip();
num++;
}
marisa._visible = false;
attachMovie("stage_result", "stage_result", 30002);
stage_result._x = 10;
stage_resutl._y = 50;
ClearBonus = stage_count * 100000;
LifeBonus = players * 10000;
spellBonus = bombs * 10000;
spellCardBonus = 10000;
TotalScore = ((ClearBonus + LifeBonus) + spellBonus) + spellCardBonus;
Score1 = Score1 + TotalScore;
Score2 = Score1;
load_sw = 1;
}
if (Key.isDown(90) && (stage_result._currentframe > 90)) {
system_sw = 4;
load_sw = 0;
stage_result.removeMovieClip();
}
}
function system9() {
if (load_sw == 0) {
test = test + 500;
attachMovie("cmenu", "cmenu", 30040);
cmenu._x = 175;
cmenu._y = 200;
load_sw = 1;
}
if (Key.isDown(90) && (z_delay == 0)) {
if (continue_sw == 1) {
system_sw = temp_sw;
marisa._x = 175;
marisa._y = 380;
marisa._visible = true;
bombs = 3;
bomb_stoc.gotoAndStop("bomb_stoc" + bombs);
players = 2;
player_stoc.gotoAndStop("ps" + players);
power.bar._x = 0;
_root.set_power();
} else {
if (temp_sw == 4) {
bossb1.removeMovieClip();
bossb2.removeMovieClip();
sboss.removeMovieClip();
num = 0;
while (num < 150) {
_root["enemyb" + num].removeMovieClip();
num++;
}
num = emin;
while (num <= enumber) {
_root["enemy" + num].removeMovieClip();
num++;
}
} else {
reimu.removeMovieClip();
reimu_bar.removeMovieClip();
soboss.removeMovieClip();
num = 0;
while (num < 10) {
_root["magic" + num].removeMovieClip();
_root["reimu" + num].removeMovieClip();
num++;
}
}
menu4.removeMovieClip();
num = 0;
while (num < 4) {
_root["option" + num].removeMovieClip();
num++;
}
power.removeMovieClip();
continue_sw = 1;
system_sw = 1;
load_sw = 0;
shot_sw = 0;
eshot_sw = 0;
sw_HPhue = 0;
HiScore = Score1;
temp_HiScore = HiScore;
Score1 = (Score2 = 0);
z_delay = -10;
stopAllSounds();
}
cmenu.removeMovieClip();
}
if ((Key.isDown(40) || (Key.isDown(38))) && (key_delay == 0)) {
if (continue_sw == 1) {
cmenu.gotoAndStop(6);
continue_sw = 0;
} else {
cmenu.gotoAndStop(1);
continue_sw = 1;
}
key_delay++;
}
_root.setz_delay();
_root.setkey_delay();
}
function system10() {
if (load_sw == 0) {
if (smode == 1) {
Select3 = 1;
attachMovie("menu5", "menu5", 99);
} else {
attachMovie("menu5", "menu5", 99);
_root.spell_set1();
menu5.pagepage = page + "/3";
z_delay++;
}
load_sw = 1;
}
if (smode == 1) {
if (Key.isDown(40) && (key_delay == 0)) {
if (Select3 < 3) {
menu5["menu5_" + Select3]._alpha = 50;
Select3++;
menu5["menu5_" + Select3]._alpha = 100;
} else {
menu5["menu5_" + Select3]._alpha = 50;
Select3 = 1;
menu5["menu5_" + Select3]._alpha = 100;
}
key_delay++;
} else if (Key.isDown(38) && (key_delay == 0)) {
if (Select3 > 1) {
menu5["menu5_" + Select3]._alpha = 50;
Select3--;
menu5["menu5_" + Select3]._alpha = 100;
} else {
menu5["menu5_" + Select3]._alpha = 50;
Select3 = 3;
menu5["menu5_" + Select3]._alpha = 100;
}
key_delay++;
}
if (Key.isDown(90) && (z_delay == 0)) {
smode = 2;
page = 1;
menu5.pagepage = page + "/3";
stage = Select3;
num = 1;
while (num <= 3) {
menu5["menu5_" + num]._visible = 0;
num++;
}
_root.spell_set1();
Select4 = 1;
menu5["spell" + Select4].gotoAndStop(5);
z_delay++;
} else if (Key.isDown(88) && (z_delay == 0)) {
system_sw = 2;
load_sw = 0;
menu5.removeMovieClip();
}
} else if (smode == 2) {
if (Key.isDown(90) && (z_delay == 0)) {
temp = ((Math.floor((Select4 - 1) / 4) + 1) + ((page - 1) * 3)) + ((stage - 1) * 9);
difficult_no = ((Select4 - 1) % 4) + 1;
pat_count = temp;
system_sw = 11;
load_sw = 0;
menu5.removeMovieClip();
_root["ChallengeList" + difficult_no][pat_count]++;
sdata01.data[(("ChL" + difficult_no) + "_") + pat_count]++;
if (bgm_sw == 1) {
mySound.start();
}
}
if (Key.isDown(40) && (key_delay == 0)) {
if (Select4 < 12) {
menu5["spell" + Select4].gotoAndStop(10);
Select4++;
menu5["spell" + Select4].gotoAndStop(5);
} else {
menu5["spell" + Select4].gotoAndStop(10);
Select4 = 1;
menu5["spell" + Select4].gotoAndStop(5);
}
key_delay++;
} else if (Key.isDown(38) && (key_delay == 0)) {
if (Select4 > 1) {
menu5["spell" + Select4].gotoAndStop(10);
Select4--;
menu5["spell" + Select4].gotoAndStop(5);
} else {
menu5["spell" + Select4].gotoAndStop(10);
Select4 = 12;
menu5["spell" + Select4].gotoAndStop(5);
}
key_delay++;
} else if (Key.isDown(39) && (key_delay == 0)) {
if (page < 3) {
page++;
_root.spell_set1();
} else {
page = 1;
_root.spell_set1();
}
key_delay++;
menu5.pagepage = page + "/3";
} else if (Key.isDown(37) && (key_delay == 0)) {
if (page > 1) {
page--;
_root.spell_set1();
} else {
page = 3;
_root.spell_set1();
}
key_delay++;
menu5.pagepage = page + "/3";
} else if (Key.isDown(88) && (z_delay == 0)) {
num = 1;
while (num <= 12) {
menu5["spell" + num]._visible = 0;
menu5["spell" + num]._alpha = 50;
num++;
}
num = 1;
while (num <= 3) {
menu5["menu5_" + num]._visible = 1;
num++;
}
smode = 1;
z_delay++;
}
}
_root.setz_delay();
_root.setkey_delay();
}
function spell_set1() {
num = 1;
while (num <= 3) {
num1 = 1;
while (num1 <= 4) {
temp_num = ((num * 4) + num1) - 4;
temp_num2 = (num + ((page - 1) * 3)) + ((stage - 1) * 9);
temp_num3 = (_root["SuccessList" + num1][temp_num2] + "/") + _root["ChallengeList" + num1][temp_num2];
menu5["spell" + temp_num].cc = ("(" + temp_num3) + ")";
menu5["spell" + temp_num]._visible = 1;
if (_root["PlayList" + num1][temp_num2] == 1) {
menu5["spell" + temp_num].sname = _root["spell" + temp_num2];
if (num1 == 1) {
menu5["spell" + temp_num].sname = menu5["spell" + temp_num].sname + "-Easy-";
} else if (num1 == 2) {
menu5["spell" + temp_num].sname = menu5["spell" + temp_num].sname + "-Normal-";
} else if (num1 == 3) {
menu5["spell" + temp_num].sname = menu5["spell" + temp_num].sname + "-Hard-";
} else {
menu5["spell" + temp_num].sname = menu5["spell" + temp_num].sname + "-Lunatic-";
}
} else {
menu5["spell" + (((num * 4) + num1) - 4)].sname = "\uFF1F\uFF1F\uFF1F\uFF1F\uFF1F";
}
num1++;
}
num++;
}
}
function system11() {
if (load_sw == 0) {
reimu.removeMovieClip();
_root.create_reimu();
reimu.gotoAndStop("boss" + Math.floor(((pat_count - 1) / 9) + 1));
_root.create_reimu_bar();
_root.create_marisa();
_root.create_power();
_root.create_player_stoc(0);
_root.create_bomb_stoc(0);
_root.create_menu4();
attachMovie("spell_namein", "sni", 77);
sni._x = 150;
sni._y = 200;
load_sw = 1;
eshot_number = 0;
shot_number = 0;
es_time = 0;
shot_sw = 0;
eshot_pat = 0;
battle_sw = 0;
Score1 = 0;
Score2 = 0;
_root.set_power();
_root.set_option();
}
_root.startend2();
_root.boss_move();
if (Key.isDown(90)) {
if (((shot_sw == 1) && ((shot_count % 3) == 0)) && (dead_sw == 0)) {
shot_count++;
_root.mainshot_pat1();
} else {
shot_count++;
}
}
_root.mainshot_pat1_2();
if (Key.isDown(88)) {
if (bomb_sw == 0) {
_root.bomb_pat1();
}
}
_root.bomb_pat2();
if (dead_sw == 0) {
_root.main_moving();
} else if (dead_sw == 1) {
_root.SE(1);
dead_sw = 1.5;
} else if (dead_sw == 2) {
_root.dead_act();
}
if (reimu_bar.bar._x > -330) {
temp_time--;
main_time = Math.floor(temp_time / 20);
}
_root.delete_sw_delay();
if (bgm_sw == 1) {
mySound.onSoundComplete = mySound.start;
}
}
function startend2() {
if (battle_sw == 0) {
temp_time = 1;
spell_name = _root["spell" + pat_count];
reimu_bar.bar._x = reimu_bar.bar._x + 6;
enemy_move_delay = 0;
enemy_attack_delay = 0;
if (reimu_bar.bar._x > 0) {
reimu_bar.bar._x = 0;
temp_time = 1200;
result_sw = 0;
battle_sw = 1;
shot_sw = 1;
eshot_pat = pat_count;
pat_count++;
_root[("eshot_pat" + eshot_pat) + "_load"]();
}
}
if ((reimu_bar.bar._x < -330) || ((temp_time == 0) && (reimu_bar.bar._x > -330))) {
if (result_sw == 0) {
result_sw = 1;
reimu_bar.bar._x = -330;
eshot_pat = 0;
shot_sw = 0;
start_sw = 0;
bomb_sw = 0;
retry = 0;
z_delay = -15;
marisa.removeMovieClip();
reimu_bar.removeMovieClip();
num = 0;
while (num < 5) {
_root["option" + num].removeMovieClip();
num++;
}
_root.shotdel();
_root["ClearList" + difficult_no][pat_count - 1] = 1;
sdata01.data[(("CL" + difficult_no) + "_") + (pat_count - 1)] = 1;
_root["SuccessList" + difficult_no][pat_count - 1]++;
sdata01.data[(("SL" + difficult_no) + "_") + (pat_count - 1)]++;
num = 0;
while (num < 10) {
_root["magic" + num].removeMovieClip();
num++;
}
result_sw = 1;
_root.SE(5);
num = 0;
while (num < 180) {
effect_name = "mc" + num;
attachMovie("effect2", effect_name, 2000 + num);
_root[effect_name]._x = reimu._x;
_root[effect_name]._y = reimu._y;
_root[effect_name]._rotation = num * 2;
_root[effect_name].tempx = reimu._x + (Math.cos(((num * 2) + 90) * PI1) * 200);
_root[effect_name].tempy = reimu._y + (Math.sin(((num * 2) + 90) * PI1) * 200);
num++;
}
spell_sw = 0;
if (damage_count > 0) {
attachMovie("sresult2", "sresult", 30009);
sresult._x = 175;
sresult._y = 200;
miss++;
} else {
attachMovie("sresult1", "sresult", 30009);
sresult._x = 175;
sresult._y = 200;
spell_score = temp_time * 1500;
Score1 = Score1 + spell_score;
spell_score = "+" + spell_score;
}
reimu.removeMovieClip();
sni.removeMovieClip();
spell_score = temp_time * 1500;
Score1 = Score1 + spell_score;
Score2 = Score2 + spell_score;
spell_score = "+" + spell_score;
}
}
}
function system12() {
if (load_sw == 0) {
attachMovie("menu6", "menu6", 30015);
menu6._x = 175;
menu6._y = 200;
load_sw = 1;
menu6.gotoAndStop(10 - (retry * 5));
marisa.removeMovieClip();
}
if (Key.isDown(90) && (z_delay == 0)) {
if (retry == 0) {
load_sw = 0;
system_sw = 10;
z_delay = -15;
menu6.removeMovieClip();
menu4.removeMovieClip();
power.removeMovieClip();
mySound.stop();
} else {
load_sw = 0;
system_sw = 11;
menu6.removeMovieClip();
num = 0;
while (num < 4) {
_root["option" + num].removeMovieClip();
num++;
}
pat_count--;
_root["ChallengeList" + difficult_no][pat_count]++;
sdata01.data[(("ChL" + difficult_no) + "_") + pat_count]++;
power.bar._x = 0;
}
}
if ((Key.isDown(38) || (Key.isDown(40))) && (key_delay == 0)) {
if (retry == 0) {
retry = 1;
menu6.gotoAndStop(10 - (retry * 5));
} else {
retry = 0;
menu6.gotoAndStop(10 - (retry * 5));
}
key_delay++;
}
_root.setz_delay();
_root.setkey_delay();
}
function system13() {
if (Key.isDown(90)) {
system_sw = 4;
}
}
function system10q() {
if (load_sw == 0) {
temp = spell_Select;
if ((spell_Select % 10) == 0) {
cursor2._y = 345;
spell_Select = spell_Select - 9;
} else {
cursor2._y = ((spell_Select % 10) * 35) - 5;
spell_Select = (Math.floor(spell_Select / 10) * 10) + 1;
}
_root.setspell();
spell_Select = temp;
Score1 = 0;
_root.create_spell_menu();
load_sw = 1;
}
if (Key.isDown(16) && (key_delay == 0)) {
shot_pat = (shot_pat % 3) + 1;
_root.shot_pat_set();
key_delay++;
}
if (Key.isDown(90) && (z_delay == 0)) {
system_sw = 10;
load_sw = 0;
pat_count = spell_Select;
spell_menu.removeMovieClip();
cursor2.removeMovieClip();
num = 0;
while (num < 10) {
_root["eClear" + num].removeMovieClip();
num++;
}
sw_HPhue = 1;
power.bar._x = 0;
if (bgm_sw == 1) {
mySound.start();
}
} else if (Key.isDown(88) && (z_delay == 0)) {
load_sw = 0;
spell_menu.removeMovieClip();
cursor2.removeMovieClip();
num = 0;
while (num < 10) {
_root["eClear" + num].removeMovieClip();
num++;
}
_root.set_dif(1);
system_sw = 0;
}
if (Key.isDown(39) && (key_delay == 0)) {
if (difficult_no == 4) {
difficult_no = 1;
} else {
difficult_no++;
}
_root.set_dif(difficult_no);
key_delay++;
_root.setspell();
} else if (Key.isDown(37) && (key_delay == 0)) {
if (difficult_no == 1) {
difficult_no = 4;
} else {
difficult_no--;
}
_root.set_dif(difficult_no);
key_delay++;
_root.setspell();
}
if (Key.isDown(38) && (key_delay == 0)) {
key_delay = key_delay + 3;
if (spell_Select == 1) {
} else if (((spell_Select % 10) == 1) && (spell_Select != 1)) {
spell_Select--;
key_sw = 1;
_root.setspell();
cursor2._y = 345;
} else {
cursor2._y = cursor2._y - 35;
spell_Select--;
}
} else if (Key.isDown(40) && (key_delay == 0)) {
key_delay = key_delay + 3;
if (((spell_Select % 10) == 0) && (spell_Select != 40)) {
spell_Select++;
key_sw = 1;
_root.setspell();
cursor2._y = 30;
} else if (spell_Select == (spell_max - 1)) {
} else {
cursor2._y = cursor2._y + 35;
spell_Select++;
}
}
cursor2._rotation = cursor2._rotation + 3;
_root.setz_delay();
_root.setkey_delay();
}
function system14() {
if (load_sw == 0) {
attachMovie("endm", "endm", 88);
endm._x = 25;
endm._y = 110;
load_sw = 1;
clear_count++;
sdata01.data.clear_count++;
}
if (Key.isDown(90) && (z_delay == 0)) {
endm.removeMovieClip();
marisa.removeMovieClip();
menu4.removeMovieClip();
bomb_stoc.removeMovieClip();
player_stoc.removeMovieClip();
power.removeMovieClip();
stopAllSounds();
if (tempHiScore < Score1) {
temp_HiScore = Score1;
sdata01.data.HiScore = temp_HiScore;
}
Score1 = 0;
Score2 = 0;
system_sw = 1;
load_sw = 0;
z_delay = -15;
}
_root.setz_delay();
}
function dif_set() {
if (Key.isDown(81)) {
set_dif(1);
} else if (Key.isDown(87)) {
set_dif(2);
} else if (Key.isDown(69)) {
set_dif(3);
} else if (Key.isDown(82)) {
set_dif(4);
}
}
function set_dif(number2) {
if (number2 == 1) {
difficult = "easy";
difficult_no = number2;
} else if (number2 == 2) {
difficult = "normal";
difficult_no = number2;
} else if (number2 == 3) {
difficult = "hard";
difficult_no = number2;
} else {
difficult = "lunatic";
difficult_no = number2;
}
menu4.difficult_image.gotoAndStop("difficult" + number2);
}
function mp3load() {
this.createEmptyMovieClip("sound_mc", 573);
mySound = new Sound(sound_mc);
mySound.loadSound("sound1.mp3", false);
mySound.setVolume(30);
this.createEmptyMovieClip("sound_mc2", 574);
mySound2 = new Sound(sound_mc2);
mySound2.loadSound("sound2.mp3", false);
mySound2.setVolume(30);
}
function syoki_once() {
Log1 = "";
spell_name = "";
}
test_sw = 1;
ttt = 2;
pat_count = 1;
shot_damage = 0;
spell_max = 27;
shot_pat = 1;
shot_power = 1;
difficult_no = 1;
smode = 1;
card_max = 7;
max_list1 = new Array();
max_list2 = new Array();
max_list3 = new Array();
max_list4 = new Array();
point_list = [20, 50, 100, 200, 9999];
point_count = 0;
now_point = 0;
centerx = 175;
centery = 200;
spell_get = 0;
shot_damage1 = 5;
shot_damage2_1 = 5;
shot_damage2_2 = 1;
shot_damage3_1 = 2;
shot_damage3_2 = 4;
shot_damage4 = 4;
shot_damage5_1 = 4;
shot_damage5_2 = 2;
shot_damage6_1 = 6;
shot_damage6_2 = 1;
shot_damage6_3 = 3;
shot_damage7_1 = 2;
difficult = "easy";
power.bar._x = -160;
random1 = new Array();
random2 = new Array();
random3 = new Array();
random4 = new Array();
random5 = new Array();
shot_count = 0;
system_sw = 1;
Score1 = 0;
Score2 = 0;
HiScore = 0;
temp_HiScore = 0;
mode_Select = 1;
load_sw = 0;
test = 0;
spell_Select = 1;
chara_no = 1;
key_sw = 1;
dshot = 0;
_root.mp3load();
dis1 = 4;
dis2 = 8;
dis = dis2;
bomb_sw = 0;
shot_sw = 0;
start_sw = 1;
bgm_sw = 1;
continue_sw = 1;
eshot_pat = 0;
bomb_pat = 1;
enemy_attack_delay = 0;
enemy_move_delay = 0;
a_delay = 0;
z_delay = 0;
es_time = 0;
key_delay = 0;
hantei_delay = 0;
shot_number = 0;
eshot_number = 0;
eshot_number2 = 0;
eshot_number3 = 0;
enumber = 0;
mes_num = 0;
between_attack = 5;
System.useCodepage = true;
this.createEmptyMovieClip("MC", 20);
MC.loadVariables("touhou.txt");
mes_name = "";
mes_main = "";
side_menu.swapDepths(30000);
battle_sw = 1;
sw_magic = 0;
dead_sw = 0;
num = 1;
while (num <= 4) {
_root["ClearList" + num] = new Array();
_root["PlayList" + num] = new Array();
_root["ChallengeList" + num] = new Array();
_root["SuccessList" + num] = new Array();
num++;
}
sdata01 = SharedObject.getLocal("save01");
if (sdata01.data.play_count != undefined) {
sdata01.data.play_count++;
play_count = sdata01.data.play_count;
clear_count = sdata01.data.clear_count;
num = 1;
while (num <= spell_max) {
num1 = 1;
while (num1 <= 4) {
_root["ClearList" + num1][num] = sdata01.data[(("CL" + num1) + "_") + num];
_root["PlayList" + num1][num] = sdata01.data[(("PL" + num1) + "_") + num];
_root["ChallengeList" + num1][num] = sdata01.data[(("ChL" + num1) + "_") + num];
_root["SuccessList" + num1][num] = sdata01.data[(("SL" + num1) + "_") + num];
num1++;
}
num++;
}
} else {
sdata01.data.play_count = 1;
play_count = 1;
clear_count = 0;
sdata01.data.clear_count = 0;
num = 1;
while (num <= 4) {
num1 = 1;
while (num1 <= spell_max) {
sdata01.data[(("CL" + num) + "_") + num1] = (_root["ClearList" + num][num1] = 0);
sdata01.data[(("PL" + num) + "_") + num1] = (_root["PlayList" + num][num1] = 0);
sdata01.data[(("ChL" + num) + "_") + num1] = (_root["ChallengeList" + num][num1] = 0);
sdata01.data[(("SL" + num) + "_") + num1] = (_root["SuccessList" + num][num1] = 0);
num1++;
}
num++;
}
}
num = 1;
while (num <= spell_max) {
num1 = 1;
while (num1 <= 4) {
_root["PlayList" + num1][num] = 1;
num1++;
}
num++;
}
if (sdata01.data.HiScore == undefined) {
temp_HiScore = 0;
} else {
tempHiScore = sdata01.data.HiScore;
}
_root.syoki_once();
function moving() {
tama = eshot_number - dshot;
_root.dif_set();
_root["system" + system_sw]();
if (Score1 > Score2) {
Score2 = Score2 + _root.ranset(1200, 1000);
if (Score2 > Score1) {
Score2 = Score1;
}
if (HiScore < Score2) {
HiScore = Score2;
}
}
}
temp_eshot = 0;
this.onEnterFrame = _root.moving;
function option_move7_1(tMC) {
if (system_sw == 4) {
if (_root["enemy" + emin]._y == undefined) {
tMC._x = tMC._x + ((marisa._x - tMC._x) * 0.75);
tMC._y = tMC._y + (((marisa._y - 75) - tMC._y) * 0.75);
} else {
tempo6 = emin;
targety = _root["enemy" + emin]._y + 25;
tMC._x = tMC._x + ((_root["enemy" + emin]._x - tMC._x) * 0.25);
tMC._y = tMC._y + ((targety - tMC._y) * 0.25);
}
} else if ((system_sw == 7) || (system_sw == 11)) {
targety = reimu._y + 25;
tMC._x = tMC._x + ((reimu._x - tMC._x) * 0.25);
tMC._y = tMC._y + ((targety - tMC._y) * 0.25);
} else if (system_sw == 5) {
targety = sboss._y + 25;
tMC._x = tMC._x + ((sboss._x - tMC._x) * 0.25);
tMC._y = tMC._y + ((targety - tMC._y) * 0.25);
}
}
function option_move3_0(tMC) {
tMC._x = tMC._x + Math.floor((marisa._x - tMC._x) * tMC.dis);
tMC._y = tMC._y + Math.floor((marisa._y - tMC._y) * tMC.dis);
}
function option_move3_1(tMC) {
tMC._x = tMC._x + Math.floor((_root["option" + (tMC.number - 1)]._x - tMC._x) * tMC.dis2);
tMC._y = tMC._y + Math.floor((_root["option" + (tMC.number - 1)]._y - tMC._y) * tMC.dis2);
}
function option_move3_2(tMC) {
tMC._x = tMC._x + Math.floor((_root["option" + (tMC.number - 1)]._x - tMC._x) * tMC.dis2);
tMC._y = tMC._y + Math.floor((_root["option" + (tMC.number - 1)]._y - tMC._y) * tMC.dis2);
}
function option_move4_0(tMC) {
tMC._x = (marisa._x - 20) + (cos_list[tMC.rans] * 3);
tMC._y = marisa._y;
tMC.rans = (tMC.rans + tMC.rans1) % 360;
}
function option_move4_1(tMC) {
tMC._x = (marisa._x + 20) + (cos_list[tMC.rans] * 3);
tMC._y = marisa._y;
tMC.rans = (tMC.rans + tMC.rans1) % 360;
}
function option_move5_0(tMC) {
tMC._x = (marisa._x - 20) + (cos_list[tMC.rans] * 3);
tMC._y = marisa._y;
tMC.rans = (tMC.rans + tMC.rans1) % 360;
}
function option_move5_1(tMC) {
tMC._x = (marisa._x + 20) + (cos_list[tMC.rans] * 3);
tMC._y = marisa._y;
tMC.rans = (tMC.rans + tMC.rans1) % 360;
}
function option_move6_0(tMC) {
tMC._x = (marisa._x - 10) + (cos_list[tMC.rans % 360] * 3);
tMC._y = (marisa._y - 20) + (sin_list[tMC.rans % 360] * 3);
tMC.rans = tMC.rans + tMC.rans1;
}
function option_move6_1(tMC) {
tMC._x = (marisa._x + 10) + (cos_list[tMC.rans % 360] * 3);
tMC._y = (marisa._y - 20) + (sin_list[tMC.rans % 360] * 3);
tMC.rans = tMC.rans + tMC.rans1;
}
function option_move6_2(tMC) {
tMC._x = (marisa._x - 20) + (cos_list[tMC.rans % 360] * 3);
tMC._y = (marisa._y - 10) + (sin_list[tMC.rans % 360] * 3);
tMC.rans = tMC.rans + tMC.rans1;
}
function option_move6_3(tMC) {
tMC._x = (marisa._x + 20) + (cos_list[tMC.rans % 360] * 3);
tMC._y = (marisa._y - 10) + (sin_list[tMC.rans % 360] * 3);
tMC.rans = tMC.rans + tMC.rans1;
}
function set_option() {
if (shot_pat == 6) {
_root.create_option();
} else if (shot_pat == 3) {
_root.create_option2();
} else if (shot_pat == 4) {
_root.create_option4();
} else if (shot_pat == 5) {
_root.create_option5();
} else if (shot_pat == 7) {
_root.create_option3();
}
}
function create_option3() {
attachMovie("option3", "option0", 9997);
option0._x = marisa._x;
option0._y = marisa._y - 50;
option0.damage = 0.5;
}
function create_option2() {
num = 0;
while (num < 3) {
attachMovie("option2", "option" + num, 9997 - num);
_root["option" + num]._x = marisa._x;
_root["option" + num]._y = marisa._y - 1;
_root["option" + num]._xscale = 100 - (num * 25);
_root["option" + num]._yscale = 100 - (num * 25);
_root["option" + num].number = num;
num++;
}
}
function create_option() {
num = 0;
while (num < 4) {
attachMovie("option", "option" + num, 9997 - num);
_root["option" + num].number = num;
num++;
}
}
function create_option4() {
num = 0;
while (num < 2) {
attachMovie("option4", "option" + num, 9997 - num);
_root["option" + num].number = num;
num++;
}
}
function create_option5() {
num = 0;
while (num < 2) {
attachMovie("option5", "option" + num, 9997 - num);
_root["option" + num].number = num;
num++;
}
}
function deleter1(tMC) {
dshot++;
tMC.removeMovieClip();
}
function spell_result(tMC) {
if (system_sw == 7) {
if ((eshot_pat % 9) == 8) {
if (miss < 3) {
battle_sw = 0;
attachMovie("spell_namein", "sni", 77);
sni._x = 150;
sni._y = 200;
} else {
system_sw = 6;
load_sw = 0;
reimu_bar.removeMovieClip();
}
tMC.removeMovieClip();
} else if ((eshot_pat % 9) == 0) {
system_sw = 6;
load_sw = 0;
reimu_bar.removeMovieClip();
tMC.removeMovieClip();
} else {
if (((eshot_pat % 9) == 4) || ((eshot_pat % 9) == 7)) {
attachMovie("spell_namein", "sni", 77);
sni._x = 150;
sni._y = 200;
}
battle_sw = 0;
tMC.removeMovieClip();
}
} else if (system_sw == 11) {
Score2 = Score1;
system_sw = 12;
load_sw = 0;
tMC.removeMovieClip();
}
}
function setspell() {
num = 0;
while (num < 10) {
_root["eClear" + num].removeMovieClip();
num++;
}
if (spell_Select < spell_max) {
if ((spell_Select % 10) == 0) {
stemp = spell_Select - 9;
} else {
stemp = spell_Select;
}
if (key_sw == 1) {
num = stemp;
while (num < (stemp + 10)) {
if (num < spell_max) {
if (num < 10) {
_root["spelln" + (num % 10)] = ((("No.0" + num) + "\u300E") + _root["spell" + num]) + "\u300F";
} else if ((num % 10) == 0) {
spelln10 = ((("No." + num) + "\u300E") + _root["spell" + num]) + "\u300F";
_root["spelln" + (num % 10)] = ((("No." + num) + "\u300E") + _root["spell" + num]) + "\u300F";
} else {
_root["spelln" + (num % 10)] = ((("No." + num) + "\u300E") + _root["spell" + num]) + "\u300F";
}
} else {
_root["spelln" + (num % 10)] = "";
_root["spelln" + ((num % 10) + 10)] = "";
}
num++;
}
key_sw = 0;
}
stemp = (Math.floor((spell_Select - 1) / 10) * 10) + 1;
num = 0;
while (num < 10) {
if (_root["ClearList1_" + difficult_no][stemp + num] == 1) {
attachMovie("eClear", "eClear" + num, 2000 + num);
_root["eClear" + num]._x = 15;
_root["eClear" + num]._y = (num * 35) + 30;
}
num++;
}
}
}
function shotdel() {
num = 0;
while (num < 10) {
_root["bomb" + num].removeMovieClip();
num++;
}
delete_sw = 1;
delete_delay = 1;
}
function cos(cdata, cdata2) {
cdata = (cdata + 360) % 360;
cdata = cos_list[cdata] * cdata2;
return(cdata);
}
function sin(sdata, sdata2) {
sdata = (sdata + 360) % 360;
sdata = sin_list[sdata] * sdata2;
return(sdata);
}
function ranset(ran1, ran2) {
ran1 = Math.floor((Math.random() * ran1) + ran2);
return(ran1);
}
function exy(eshot_x, eshot_y) {
_root[shot_name]._x = eshot_x;
_root[shot_name]._y = eshot_y;
}
function exy2(eshot_x, eshot_y, tMC) {
_root[tMC.shot_name]._x = eshot_x;
_root[tMC.shot_name]._y = eshot_y;
}
function xy(shot_x, shot_y) {
_root["main_shot" + shot_number]._x = shot_x;
_root["main_shot" + shot_number]._y = shot_y;
}
function setkey_delay() {
if (key_delay != 0) {
if (key_delay == 1) {
}
key_delay++;
if (key_delay == 5) {
key_delay = 0;
_root.SE(4);
}
}
}
function delete_sw_delay() {
if (delete_delay != 0) {
delete_delay++;
if (delete_delay == 20) {
delete_sw = 0;
delete_delay = 0;
}
}
}
function setz_delay() {
if (z_delay != 0) {
z_delay++;
if (z_delay == 10) {
z_delay = 0;
}
}
}
function setmarisa() {
marisa._x = 175;
marisa._y = 365;
}
function setreimu() {
reimu._x = 175;
reimu._y = 50;
}
PI1 = (Math.PI/180);
cos_list = new Array();
sin_list = new Array();
aaa = 100;
num = 0;
while (num < 360) {
cos_list[num] = Math.cos((90 + num) * PI1);
cos_list[num] = Math.floor(cos_list[num] * aaa) / aaa;
sin_list[num] = Math.sin((90 + num) * PI1);
sin_list[num] = Math.floor(sin_list[num] * aaa) / aaa;
num++;
}
num1 = 2;
while (num1 <= 10) {
_root["cos_list" + num1] = new Array();
_root["sin_list" + num1] = new Array();
num = 0;
while (num < 360) {
_root["cos_list" + num1][num] = cos_list[num] * num1;
_root["sin_list" + num1][num] = sin_list[num] * num1;
num++;
}
num1++;
}
cos_list15 = new Array();
sin_list15 = new Array();
cos_list20 = new Array();
sin_list20 = new Array();
num = 0;
while (num < 360) {
cos_list15[num] = cos_list[num] * 15;
sin_list15[num] = sin_list[num] * 15;
cos_list20[num] = cos_list[num] * 20;
sin_list20[num] = sin_list[num] * 20;
num++;
}
function one_up() {
players++;
player_stoc.gotoAndStop("ps" + players);
point_count++;
menu4.Point = (now_point + "/") + point_list[point_count];
}
function create_effect(tempx, tempy) {
attachMovie("effect1", "effect" + eshot_number, 28000 - eshot_number);
_root["effect" + eshot_number]._x = tempx;
_root["effect" + eshot_number]._y = tempy;
}
function SE(tSE) {
attachMovie("SE" + tSE, SE + tSE, 800 + tSE);
}
function create_menu1() {
attachMovie("menu1", "menu", 30010);
}
function create_menu3() {
attachMovie("menu3", "menu3", 30011);
menu3._x = 230;
menu3._y = 220;
}
function create_menu4() {
attachMovie("menu4", "menu4", 30000);
menu4._x = 350;
}
function create_menu5() {
attachMovie("menu5", "menu5", 30002);
menu5._x = 27;
menu5._y = 150;
}
function create_marisa() {
attachMovie("marisa", "marisa", 9998);
marisa._x = 175;
marisa._y = 365;
}
function create_reimu() {
attachMovie("boss", "reimu", 19999);
reimu._x = 175;
reimu._y = 50;
}
function create_reimu_bar() {
attachMovie("bar4", "reimu_bar", 30012);
reimu_bar._x = 10;
reimu_bar._y = 5;
reimu_bar.bar._x = -330;
reimu_bar.timer._visible = 0;
}
function create_spell_menu() {
attachMovie("spell_menu", "spell_menu", 51);
spell_menu._x = 60;
spell_menu._y = 20;
}
function create_backg() {
attachMovie("back_ground", "back_ground", 1);
}
function create_power() {
attachMovie("bar1", "power", 30001);
power._x = 380;
power._y = 180;
}
function create_side_menu() {
attachMovie("menu2", "side_menu", 30000);
side_menu._x = 350;
}
function create_player_stoc(pstoc) {
attachMovie("player_stoc", "player_stoc", 30008);
player_stoc._x = 420;
player_stoc._y = 80;
players = pstoc;
player_stoc.gotoAndStop("ps" + players);
}
function create_bomb_stoc(bstoc) {
attachMovie("bomb_stoc", "bomb_stoc", 30007);
bomb_stoc._x = 418;
bomb_stoc._y = 110;
bombs = bstoc;
bomb_stoc.gotoAndStop("bomb_stoc" + bombs);
}
function create_chara() {
attachMovie("chara", "chara", 30006);
chara._x = 10;
chara._y = 290;
}
function create_mw() {
attachMovie("mw", "mw", 30005);
mw._x = 10;
mw._y = 290;
}
function savedata() {
sdata01.data[(("CL" + chara_no) + difficult_no) + (pat_count - 1)] = _root["ClearList1_" + difficult_no][pat_count - 1];
}
function load_data() {
sdata01 = SharedObject.getLocal("save01");
num = 1;
while (num <= 36) {
if (sdata01.data[("CL" + chara_no) + num] != undefined) {
_root[(("ClearList" + chara_no) + "_") + difficult_no][num] = sdata01.data[("CL" + chara_no) + num];
}
num++;
}
}
function stage1() {
snum = 0;
ename = "bossb" + snum;
attachMovie("bossb1", ename, 900 + snum);
_root[ename]._x = 175;
_root[ename]._y = -735;
snum++;
ename = "bossb" + snum;
attachMovie("bossb2", ename, 900 + snum);
_root[ename]._x = 175;
_root[ename]._y = -445;
snum++;
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_1", ename, 900 + snum);
_root[ename]._x = 55;
_root[ename]._y = -675 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_1", ename, 900 + snum);
_root[ename]._x = 305;
_root[ename]._y = -645 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_2", ename, 900 + snum);
_root[ename]._x = 350;
_root[ename]._y = -625 - (5 * num);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_2", ename, 900 + snum);
_root[ename]._x = 0;
_root[ename]._y = -585 - (5 * num);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_4", ename, 900 + snum);
_root[ename]._x = 285 - (num * 5);
_root[ename]._y = -535 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_4", ename, 900 + snum);
_root[ename]._x = 55 + (num * 5);
_root[ename]._y = -535 - (num * 5);
snum++;
num++;
}
ename = "enemyb" + snum;
attachMovie("eb2_1", ename, 900 + snum);
_root[ename]._x = 255;
_root[ename]._y = -495;
snum++;
ename = "enemyb" + snum;
attachMovie("eb2_1", ename, 900 + snum);
_root[ename]._x = 80;
_root[ename]._y = -495;
snum++;
ename = "enemyb" + snum;
attachMovie("eb2_1", ename, 900 + snum);
_root[ename]._x = 175;
_root[ename]._y = -385;
snum++;
num = 0;
while (num < 4) {
ename = "enemyb" + snum;
attachMovie("eb1_5", ename, 900 + snum);
if (num == 3) {
_root[ename]._x = 255;
_root[ename]._y = -385;
} else {
_root[ename]._x = 310 - (20 * num);
_root[ename]._y = -375 - (num * 10);
}
snum++;
num++;
}
num = 0;
while (num < 4) {
ename = "enemyb" + snum;
attachMovie("eb1_5", ename, 900 + snum);
if (num == 3) {
_root[ename]._x = 85;
_root[ename]._y = -385;
} else {
_root[ename]._x = 25 + (20 * num);
_root[ename]._y = -375 - (num * 10);
}
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_2", ename, 900 + snum);
_root[ename]._x = 350;
_root[ename]._y = -325 - (5 * num);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_2", ename, 900 + snum);
_root[ename]._x = 0;
_root[ename]._y = -285 - (5 * num);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_4", ename, 900 + snum);
_root[ename]._x = 285 - (num * 5);
_root[ename]._y = -235 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_4", ename, 900 + snum);
_root[ename]._x = 55 + (num * 5);
_root[ename]._y = -235 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_1", ename, 900 + snum);
_root[ename]._x = 105;
_root[ename]._y = -185 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_1", ename, 900 + snum);
_root[ename]._x = 255;
_root[ename]._y = -145 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_1", ename, 900 + snum);
_root[ename]._x = 55;
_root[ename]._y = -105 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_1", ename, 900 + snum);
_root[ename]._x = 305;
_root[ename]._y = -65 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 4) {
ename = "enemyb" + snum;
attachMovie("eb1_5", ename, 900 + snum);
if (num == 3) {
_root[ename]._x = 255;
_root[ename]._y = -35;
} else {
_root[ename]._x = 315 - (20 * num);
_root[ename]._y = -25 - (num * 10);
}
snum++;
num++;
}
num = 0;
while (num < 4) {
ename = "enemyb" + snum;
attachMovie("eb1_5", ename, 900 + snum);
if (num == 3) {
_root[ename]._x = 85;
_root[ename]._y = -35;
} else {
_root[ename]._x = 25 + (20 * num);
_root[ename]._y = -25 - (num * 10);
}
snum++;
num++;
}
}
function stage2() {
snum = 0;
ename = "bossb" + snum;
attachMovie("bossb1", ename, 900 + snum);
_root[ename]._x = 175;
_root[ename]._y = -580;
snum++;
ename = "bossb" + snum;
attachMovie("bossb2", ename, 900 + snum);
_root[ename]._x = 175;
_root[ename]._y = -300;
snum++;
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_2", ename, 900 + snum);
_root[ename]._x = 350;
_root[ename]._y = -510 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_2", ename, 900 + snum);
_root[ename]._x = 0;
_root[ename]._y = -510 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb3_1", ename, 900 + snum);
_root[ename]._x = 300;
_root[ename]._y = -500 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb3_1", ename, 900 + snum);
_root[ename]._x = 50;
_root[ename]._y = -500 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 13) {
ename = "enemyb" + snum;
attachMovie("eb1_4", ename, 900 + snum);
_root[ename]._x = 25 + (25 * num);
_root[ename]._y = -470 + (num * 5);
snum++;
num++;
}
num = 0;
while (num < 13) {
ename = "enemyb" + snum;
attachMovie("eb1_4", ename, 900 + snum);
_root[ename]._x = 25 + (25 * num);
_root[ename]._y = -410 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 2) {
ename = "enemyb" + snum;
attachMovie("eb2_1", ename, 900 + snum);
_root[ename]._x = 75 + (200 * num);
_root[ename]._y = -350;
snum++;
num++;
}
num = 0;
while (num < 3) {
ename = "enemyb" + snum;
attachMovie("eb2_1", ename, 900 + snum);
_root[ename]._x = 50 + (125 * num);
_root[ename]._y = -330;
snum++;
num++;
}
ename = "enemyb" + snum;
attachMovie("eb2_1", ename, 900 + snum);
_root[ename]._x = 175;
_root[ename]._y = -240;
snum++;
num = 0;
while (num < 2) {
ename = "enemyb" + snum;
attachMovie("eb3_1", ename, 900 + snum);
_root[ename]._x = 125 + (num * 100);
_root[ename]._y = -225;
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_1", ename, 900 + snum);
_root[ename]._x = 300;
_root[ename]._y = -225 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_1", ename, 900 + snum);
_root[ename]._x = 50;
_root[ename]._y = -225 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 7) {
ename = "enemyb" + snum;
attachMovie("eb1_4", ename, 900 + snum);
_root[ename]._x = 25 + (num * 50);
_root[ename]._y = -200;
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_2", ename, 900 + snum);
_root[ename]._x = 350;
_root[ename]._y = -150 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_2", ename, 900 + snum);
_root[ename]._x = 0;
_root[ename]._y = -150 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 6) {
ename = "enemyb" + snum;
attachMovie("eb1_4", ename, 900 + snum);
_root[ename]._x = 50 + (num * 50);
_root[ename]._y = -125;
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb3_1", ename, 900 + snum);
_root[ename]._x = 270;
_root[ename]._y = -80 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb3_1", ename, 900 + snum);
_root[ename]._x = 100;
_root[ename]._y = -80 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 2) {
ename = "enemyb" + snum;
attachMovie("eb2_1", ename, 900 + snum);
_root[ename]._x = 125 + (num * 100);
_root[ename]._y = -30;
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_1", ename, 900 + snum);
_root[ename]._x = 50;
_root[ename]._y = -30 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_1", ename, 900 + snum);
_root[ename]._x = 300;
_root[ename]._y = -30 - (num * 5);
snum++;
num++;
}
}
function stage3() {
snum = 0;
ename = "bossb" + snum;
attachMovie("bossb1", ename, 900 + snum);
_root[ename]._x = 175;
_root[ename]._y = -580;
snum++;
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_2", ename, 900 + snum);
_root[ename]._x = 350;
_root[ename]._y = -510 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_2", ename, 900 + snum);
_root[ename]._x = 0;
_root[ename]._y = -510 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb3_1", ename, 900 + snum);
_root[ename]._x = 300;
_root[ename]._y = -500 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb3_1", ename, 900 + snum);
_root[ename]._x = 50;
_root[ename]._y = -500 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 13) {
ename = "enemyb" + snum;
attachMovie("eb1_4", ename, 900 + snum);
_root[ename]._x = 25 + (25 * num);
_root[ename]._y = -470 + (num * 5);
snum++;
num++;
}
num = 0;
while (num < 13) {
ename = "enemyb" + snum;
attachMovie("eb1_4", ename, 900 + snum);
_root[ename]._x = 25 + (25 * num);
_root[ename]._y = -410 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 2) {
ename = "enemyb" + snum;
attachMovie("eb2_1", ename, 900 + snum);
_root[ename]._x = 75 + (200 * num);
_root[ename]._y = -350;
snum++;
num++;
}
num = 0;
while (num < 3) {
ename = "enemyb" + snum;
attachMovie("eb2_1", ename, 900 + snum);
_root[ename]._x = 50 + (125 * num);
_root[ename]._y = -330;
snum++;
num++;
}
ename = "enemyb" + snum;
attachMovie("eb2_1", ename, 900 + snum);
_root[ename]._x = 175;
_root[ename]._y = -240;
snum++;
num = 0;
while (num < 2) {
ename = "enemyb" + snum;
attachMovie("eb3_1", ename, 900 + snum);
_root[ename]._x = 125 + (num * 100);
_root[ename]._y = -225;
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_1", ename, 900 + snum);
_root[ename]._x = 300;
_root[ename]._y = -225 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_1", ename, 900 + snum);
_root[ename]._x = 50;
_root[ename]._y = -225 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 7) {
ename = "enemyb" + snum;
attachMovie("eb1_4", ename, 900 + snum);
_root[ename]._x = 25 + (num * 50);
_root[ename]._y = -200;
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_2", ename, 900 + snum);
_root[ename]._x = 350;
_root[ename]._y = -150 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_2", ename, 900 + snum);
_root[ename]._x = 0;
_root[ename]._y = -150 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 6) {
ename = "enemyb" + snum;
attachMovie("eb1_4", ename, 900 + snum);
_root[ename]._x = 50 + (num * 50);
_root[ename]._y = -125;
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb3_1", ename, 900 + snum);
_root[ename]._x = 270;
_root[ename]._y = -80 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb3_1", ename, 900 + snum);
_root[ename]._x = 100;
_root[ename]._y = -80 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 2) {
ename = "enemyb" + snum;
attachMovie("eb2_1", ename, 900 + snum);
_root[ename]._x = 125 + (num * 100);
_root[ename]._y = -30;
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_1", ename, 900 + snum);
_root[ename]._x = 50;
_root[ename]._y = -30 - (num * 5);
snum++;
num++;
}
num = 0;
while (num < 5) {
ename = "enemyb" + snum;
attachMovie("eb1_1", ename, 900 + snum);
_root[ename]._x = 300;
_root[ename]._y = -30 - (num * 5);
snum++;
num++;
}
}
function stage11() {
snum = 0;
attachMovie("bossb", "bossb1", 900 + snum);
_root.bossb1._x = 175;
_root.bossb1._y = -500;
snum++;
num = 0;
while (num < 5) {
attachMovie("enemyb3", "enemyb1" + snum, 900 + snum);
_root["enemyb1" + snum]._x = 50;
_root["enemyb1" + snum]._y = (-5 * num) - 80;
snum++;
num++;
}
num = 0;
while (num < 5) {
attachMovie("enemyb1", "enemyb1" + snum, 900 + snum);
_root["enemyb1" + snum]._x = 50;
_root["enemyb1" + snum]._y = (-5 * num) - 180;
snum++;
num++;
}
num = 0;
while (num < 5) {
attachMovie("enemyb1", "enemyb1" + snum, 900 + snum);
_root["enemyb1" + snum]._x = 50;
_root["enemyb1" + snum]._y = (-5 * num) - 280;
snum++;
num++;
}
num = 0;
while (num < 5) {
attachMovie("enemyb1", "enemyb1" + snum, 900 + snum);
_root["enemyb1" + snum]._x = 300;
_root["enemyb1" + snum]._y = (-5 * num) - 30;
snum++;
num++;
}
num = 0;
while (num < 5) {
attachMovie("enemyb1", "enemyb1" + snum, 900 + snum);
_root["enemyb1" + snum]._x = 300;
_root["enemyb1" + snum]._y = (-5 * num) - 130;
snum++;
num++;
}
num = 0;
while (num < 5) {
attachMovie("enemyb1", "enemyb1" + snum, 900 + snum);
_root["enemyb1" + snum]._x = 150;
_root["enemyb1" + snum]._y = (-5 * num) - 380;
snum++;
num++;
}
num = 0;
while (num < 5) {
attachMovie("enemyb1", "enemyb1" + snum, 900 + snum);
_root["enemyb1" + snum]._x = 200;
_root["enemyb1" + snum]._y = (-5 * num) - 380;
snum++;
num++;
}
attachMovie("enemyb2", "enemyb2" + snum, 900 + snum);
_root["enemyb2" + snum]._x = 175;
_root["enemyb2" + snum]._y = -20;
snum++;
attachMovie("enemyb2", "enemyb2" + snum, 900 + snum);
_root["enemyb2" + snum]._x = 235;
_root["enemyb2" + snum]._y = -90;
snum++;
attachMovie("enemyb2", "enemyb2" + snum, 900 + snum);
_root["enemyb2" + snum]._x = 115;
_root["enemyb2" + snum]._y = -120;
snum++;
attachMovie("enemyb2", "enemyb2" + snum, 900 + snum);
_root["enemyb2" + snum]._x = 235;
_root["enemyb2" + snum]._y = -245;
snum++;
attachMovie("enemyb2", "enemyb2" + snum, 900 + snum);
_root["enemyb2" + snum]._x = 115;
_root["enemyb2" + snum]._y = -245;
snum++;
attachMovie("enemyb2", "enemyb2" + snum, 900 + snum);
_root["enemyb2" + snum]._x = 300;
_root["enemyb2" + snum]._y = -400;
snum++;
attachMovie("enemyb2", "enemyb2" + snum, 900 + snum);
_root["enemyb2" + snum]._x = 50;
_root["enemyb2" + snum]._y = -400;
snum++;
attachMovie("enemyb2", "enemyb2" + snum, 900 + snum);
_root["enemyb2" + snum]._x = 175;
_root["enemyb2" + snum]._y = -450;
snum++;
}
function system1q() {
if (load_sw == 0) {
_root.create_menu3();
_root.create_menu5();
load_sw = 1;
stage_count = 1;
shot_number = 0;
pat_count = 1;
mes_num = 0;
menu5.gotoAndStop(difficult_no * 5);
menu3.gotoAndStop("stype" + shot_pat);
}
if (Key.isDown(88) && (z_delay == 0)) {
menu5.removeMovieClip();
menu3.removeMovieClip();
system_sw = 0;
z_delay++;
load_sw = 0;
}
if (Key.isDown(39) && (key_delay == 0)) {
if (difficult_no == 4) {
difficult_no = 1;
} else {
difficult_no++;
}
_root.set_dif(difficult_no);
menu5.gotoAndStop(difficult_no * 5);
key_delay++;
} else if (Key.isDown(37) && (key_delay == 0)) {
if (difficult_no == 1) {
difficult_no = 4;
} else {
difficult_no--;
}
_root.set_dif(difficult_no);
menu5.gotoAndStop(difficult_no * 5);
key_delay++;
} else if (Key.isDown(38) && (key_delay == 0)) {
if (shot_pat == 1) {
shot_pat = 3;
} else {
shot_pat--;
}
key_delay++;
_root.shot_pat_set();
menu3.gotoAndStop("stype" + shot_pat);
} else if (Key.isDown(40) && (key_delay == 0)) {
if (shot_pat == 3) {
shot_pat = 1;
} else {
shot_pat++;
}
key_delay++;
_root.shot_pat_set();
menu3.gotoAndStop("stype" + shot_pat);
} else if (Key.isDown(90) && (z_delay == 0)) {
HiScore = temp_HiScore;
system_sw = 2;
load_sw = 0;
menu3.removeMovieClip();
menu5.removeMovieClip();
eshot_number = 0;
if (shot_pat == 1) {
shot_damage = shot_damage1;
} else if (shot_pat == 2) {
shot_damage = shot_damage2;
} else if (shot_pat == 3) {
shot_damage = shot_damage3;
}
}
_root.setkey_delay();
_root.setz_delay();
}
Symbol 11 MovieClip [boss_sub2] Frame 1
function moving1() {
if (count < 0) {
_y = (_y + ((150 - _y) * 0.1));
_root.reimu_bar.bar._x = _root.reimu_bar.bar._x + 18;
if (_root.reimu_bar.bar._x > 0) {
_root.reimu_bar.bar._x = 0;
}
if (count == -1) {
_root.shot_sw = 1;
sw = 1;
}
} else if (count > 0) {
if ((count % max2) == 0) {
num = 0;
while (num < 4) {
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("eshot3_2", shot_name, 10000 + _root.eshot_number);
_root[shot_name]._x = _x;
_root[shot_name]._y = _y;
_root[shot_name].sita = (random1[num] + count3) % 360;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos_list8[_root[shot_name].sita];
_root[shot_name].dy = _root.sin_list8[_root[shot_name].sita];
_root.eshot_number++;
count3 = count3 + max1;
num++;
}
}
if ((count % 10) == 0) {
num = 0;
while (num < 8) {
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("spshot2_1", shot_name, 10000 + _root.eshot_number);
_root[shot_name]._x = _x;
_root[shot_name]._y = _y;
_root[shot_name].sita = ((45 * num) + sita) % 360;
_root[shot_name].tempx = _x + (_root.cos_list20[_root[shot_name].sita] * 5);
_root[shot_name].tempy = _y + (_root.sin_list20[_root[shot_name].sita] * 5);
_root[shot_name].type1 = num % 2;
_root.eshot_number++;
num++;
}
sita = sita + 5;
}
}
count++;
if (count == 50) {
count = 0;
}
}
function moving2() {
if (count < 0) {
_x = (_x + ((175 - _x) * 0.15));
_y = (_y + ((50 - _y) * 0.15));
_root.reimu_bar.bar._x = _root.reimu_bar.bar._x + 18;
if (_root.reimu_bar.bar._x > 0) {
_root.reimu_bar.bar._x = 0;
}
if (count == -1) {
_root.shot_sw = 1;
}
} else if (count == 0) {
num = 0;
while (num < max3) {
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("spshot2_2", shot_name, 10000 + _root.eshot_number);
_root[shot_name]._x = _x;
_root[shot_name]._y = _y;
_root[shot_name].sita = _root.ranset(180, -90);
_root.eshot_number++;
num++;
}
}
count++;
if (count == 55) {
count = 0;
}
}
function moving3() {
if (sw == 1) {
if (count == 0) {
tempx = _root.ranset(350, 0);
tempy = -50;
} else if (count < 20) {
_x = (_x + ((tempx - _x) * 0.1));
_y = (_y + ((tempy - _y) * 0.1));
} else {
this.removeMovieClip();
}
count++;
}
}
count = -60;
count2 = 0;
count3 = 0;
sw = 0;
type1 = 1;
num2 = 1;
_root.shot_sw = 0;
random1 = [0, 90, 180, 270];
MHP = 800;
HP = MHP;
max_list1 = [3, 2, 2, 1];
max1 = max_list1[_root.difficult_no - 1];
max_list2 = [4, 4, 3, 3];
max2 = max_list2[_root.difficult_no - 1];
max_list3 = [20, 30, 40, 50];
max3 = max_list3[_root.difficult_no - 1];
sita = 0;
this.onEnterFrame = function () {
if (_root.system_sw == 5) {
this["moving" + type1]();
} else if ((_root.system_sw == 4) && (sw == 1)) {
this["moving" + type1]();
}
if (move_sw == 1) {
count2++;
_x = (_x + ((tempx - _x) * 0.25));
_y = (_y + ((tempx - _y) * 0.25));
if (count2 == 10) {
count2 = 0;
move_sw = 0;
}
}
if (hitTest(_root.marisa.point)) {
_root.hit_test_boss();
}
};
Symbol 14 MovieClip [boss_sub1] Frame 1
function moving1() {
if (count < 0) {
_root.reimu_bar.bar._x = _root.reimu_bar.bar._x + 18;
if (_root.reimu_bar.bar._x > 0) {
_root.reimu_bar.bar._x = 0;
}
if (count == -1) {
_root.shot_sw = 1;
}
} else if (count < 30) {
} else if (count == 30) {
num = 1;
while (num <= 6) {
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("spshot1_" + num, shot_name, 10000 + _root.eshot_number);
_root[shot_name]._x = _x;
_root[shot_name]._y = _y;
_root[shot_name].sita = random1[num - 1];
_root[shot_name].dx = _root.cos_list5[_root[shot_name].sita];
_root[shot_name].dy = _root.sin_list5[_root[shot_name].sita];
_root[shot_name].max1 = max1;
_root.eshot_number++;
num++;
}
} else if (count < 50) {
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("eshot3_2", shot_name, 10000 + _root.eshot_number);
_root[shot_name]._x = _x;
_root[shot_name]._y = _y;
_root[shot_name].sita = _root.ranset(60, 330) % 360;
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos_list5[_root[shot_name].sita];
_root[shot_name].dy = _root.sin_list5[_root[shot_name].sita];
_root.eshot_number++;
}
count++;
if (count == 50) {
count = 0;
}
}
function moving2() {
if (count < 0) {
_x = (_x + ((175 - _x) * 0.2));
_y = (_y + ((200 - _y) * 0.2));
_root.reimu_bar.bar._x = _root.reimu_bar.bar._x + 18;
if (_root.reimu_bar.bar._x > 0) {
_root.reimu_bar.bar._x = 0;
}
if (count == -1) {
_root.shot_sw = 1;
}
} else if (count == 0) {
move_sw = 1;
tempx = _root.ranset(300, 25);
tempy = _root.ranset(100, 50);
} else if (count < 20) {
if ((count % 3) == 0) {
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("spshot1_" + num2, shot_name, 10000 + _root.eshot_number);
_root[shot_name]._x = _x;
_root[shot_name]._y = _y;
rad = Math.atan2(_root.marisa._y - _y, _root.marisa._x - _x);
_root[shot_name].dx = Math.cos(rad) * 5;
_root[shot_name].dy = Math.sin(rad) * 5;
_root[shot_name].max1 = max1;
_root.eshot_number++;
num2++;
if (num2 == 7) {
num2 = 1;
}
}
} else if (count < 40) {
num = 0;
while (num < max2) {
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("spshot2", shot_name, 10000 + _root.eshot_number);
rans = _root.ranset(360, 0);
dis = _root.ranset(50, 50);
_root[shot_name]._x = _x + (_root.cos_list[rans] * dis);
_root[shot_name]._y = _y + (_root.sin_list[rans] * dis);
_root.eshot_number++;
num++;
}
}
count++;
if (count == 55) {
count = 0;
}
}
function moving3() {
if (count == 0) {
tempx = _root.ranset(350, 0);
tempy = -50;
} else if (count < 20) {
_x = (_x + ((tempx - _x) * 0.1));
_y = (_y + ((tempy - _y) * 0.1));
} else {
this.removeMovieClip();
}
count++;
}
count = -60;
count2 = 0;
type1 = 1;
num2 = 1;
_root.shot_sw = 0;
random1 = [30, 18, 6, 354, 342, 330];
MHP = 500;
HP = MHP;
max_list1 = [3, 5, 7, 10];
max1 = max_list1[_root.difficult_no - 1];
max_list2 = [1, 2, 2, 3];
max2 = max_list2[_root.difficult_no - 1];
this.onEnterFrame = function () {
if (_root.system_sw == 5) {
this["moving" + type1]();
} else if (_root.system_sw == 4) {
this["moving" + type1]();
}
if (move_sw == 1) {
count2++;
_x = (_x + ((tempx - _x) * 0.25));
_y = (_y + ((tempx - _y) * 0.25));
if (count2 == 10) {
count2 = 0;
move_sw = 0;
}
}
if (hitTest(_root.marisa.point)) {
_root.hit_test_boss();
}
};
Symbol 21 MovieClip [boss] Frame 1
this.onEnterFrame = function () {
if (hitTest(_root.marisa.point)) {
if ((_root.system_sw == 7) || (_root.system_sw == 11)) {
_root.hit_test_boss();
}
}
};
Symbol 21 MovieClip [boss] Frame 2
stop();
Symbol 43 MovieClip [chara] Frame 2
stop();
Symbol 47 MovieClip [eshot7] Frame 1
function moving0() {
_x = (_x + dx);
_y = (_y + dy);
}
function moving1() {
_x = (_x + dx);
_y = (_y + dy);
if ((_x > 250) && (count == 0)) {
_x = 300;
_y = (200 - ((200 - _y) * 1.66));
dx = dx * -1;
dy = dy * -1;
_rotation = (_rotation + 180);
count++;
} else if ((_x < 250) && (count == 1)) {
dx = dx * -1;
dy = dy * -1;
_rotation = (_rotation + 180);
_x = 300;
_y = (200 - ((200 - _y) * 1.66));
type = 0;
}
}
function moving2() {
_x = (_x + dx);
_y = (_y + dy);
if ((_x < 100) && (count == 0)) {
_x = 50;
_y = (200 - ((200 - _y) * 1.66));
dx = dx * -1;
dy = dy * -1;
_rotation = (_rotation + 180);
count++;
} else if ((_x > 100) && (count == 1)) {
_x = 50;
_y = (200 - ((200 - _y) * 1.66));
dx = dx * -1;
dy = dy * -1;
_rotation = (_rotation + 180);
type = 0;
}
}
function moving3() {
_x = (_x + dx);
_y = (_y + dy);
if ((_y > 275) && (count == 0)) {
_x = (175 - ((175 - _x) * 1.66));
_y = 325;
dx = dx * -1;
dy = dy * -1;
_rotation = (_rotation + 180);
count++;
} else if ((_y < 275) && (count == 1)) {
_x = (175 - ((175 - _x) * 1.66));
_y = 325;
dx = dx * -1;
dy = dy * -1;
_rotation = (_rotation + 180);
type = 0;
}
}
function moving4() {
_x = (_x + dx);
_y = (_y + dy);
if ((_y < 125) && (count == 0)) {
_x = (175 - ((175 - _x) * 1.66));
_y = 75;
dx = dx * -1;
dy = dy * -1;
_rotation = (_rotation + 180);
count++;
} else if ((_y > 125) && (count == 1)) {
_x = (175 - ((175 - _x) * 1.66));
_y = 75;
dx = dx * -1;
dy = dy * -1;
_rotation = (_rotation + 180);
type = 0;
}
}
temp = 20;
time2 = 1;
count = 0;
if (Math.abs(dx) > Math.abs(dy)) {
if (dx > 0) {
type = 1;
} else {
type = 2;
}
} else if (dy > 0) {
type = 3;
} else {
type = 4;
}
this.onEnterFrame = function () {
this["moving" + type]();
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 49 MovieClip [eshot15] Frame 1
time2 = 1;
temp = 20;
count = 0;
rans = _root.ranset(2, 0);
this.onEnterFrame = function () {
if (count < 20) {
_x = (_x + ((tempx - _x) * 0.3));
_y = (_y + ((tempy - _y) * 0.3));
} else if (count == 20) {
rad = Math.atan2(_root.marisa._y - _y, ((_root.marisa._x - 30) + (rans * 60)) - _x);
_rotation = ((rad / PI1) - 90);
dx = Math.cos(rad) * 12;
dy = Math.sin(rad) * 12;
} else {
_x = (_x + dx);
_y = (_y + dy);
}
count++;
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 51 MovieClip [eshot18] Frame 1
function moving0() {
_x = (_x + dx);
_y = (_y + dy);
}
function moving1() {
_x = (_x + dx);
_y = (_y + dy);
if (_x < 0) {
dx = dx * -1;
dy = dy * -1;
type1 = 0;
_rotation = (_rotation + 180);
} else if (_y > 400) {
dx = dx * -1;
dy = dy * -1;
type1 = 0;
_rotation = (_rotation + 180);
}
}
function moving2() {
_x = (_x + dx);
_y = (_y + dy);
if (_x < 0) {
dx = dx * -1;
dy = dy * -1;
type1 = 0;
_rotation = (_rotation + 180);
} else if (_y < 0) {
dx = dx * -1;
dy = dy * -1;
type1 = 0;
_rotation = (_rotation + 180);
}
}
function moving3() {
_x = (_x + dx);
_y = (_y + dy);
if (_x > 350) {
dx = dx * -1;
dy = dy * -1;
type1 = 0;
_rotation = (_rotation + 180);
} else if (_y < 0) {
dx = dx * -1;
dy = dy * -1;
type1 = 0;
_rotation = (_rotation + 180);
}
}
function moving4() {
_x = (_x + dx);
_y = (_y + dy);
if (_x > 350) {
dx = dx * -1;
dy = dy * -1;
type1 = 0;
_rotation = (_rotation + 180);
} else if (_y > 400) {
dx = dx * -1;
dy = dy * -1;
type1 = 0;
_rotation = (_rotation + 180);
}
}
time2 = 1;
temp = 20;
count = 0;
if (sita < 90) {
type1 = 1;
} else if (sita < 180) {
type1 = 2;
} else if (sita < 270) {
type1 = 3;
} else {
type1 = 4;
}
this.onEnterFrame = function () {
this["moving" + type1]();
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 52 MovieClip [eshot14] Frame 1
time2 = 1;
temp = 20;
count = 0;
this.onEnterFrame = function () {
if (count < 20) {
_x = (_x + ((tempx - _x) * 0.3));
_y = (_y + ((tempy - _y) * 0.3));
} else if (count == 20) {
rad = Math.atan2(_root.marisa._y - _y, _root.marisa._x - _x);
_rotation = ((rad / PI1) - 90);
dx = Math.cos(rad) * 12;
dy = Math.sin(rad) * 12;
} else {
_x = (_x + dx);
_y = (_y + dy);
}
count++;
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 54 MovieClip [eshot13] Frame 1
stop();
if (((_root.marisa._y - _y) > 50) && (dy < -2)) {
time2 = Math.floor((_y + 10) / (-dy)) + 1;
} else if (((_root.marisa._x - _x) > 0) && (dx < -2)) {
time2 = Math.floor((_x + 10) / (-dx)) + 1;
} else if (((_root.marisa._x - _x) < 0) && (dx > 2)) {
time2 = Math.floor((360 - _x) / dx) + 1;
} else {
time2 = 1;
}
temp = Math.max(Math.abs(dx), Math.abs(dy));
dx2 = dx / 2;
dy2 = dy / 2;
this.onEnterFrame = function () {
if ((count < 20) || (count > 50)) {
gotoAndStop (1);
_x = (_x + dx);
_y = (_y + dy);
if (count == 75) {
this.removeMovieClip();
}
} else {
gotoAndStop (2);
_x = (_x + dx2);
_y = (_y + dy2);
}
count++;
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 57 MovieClip [eshot3_3] Frame 1
if (((_root.marisa._y - _y) > 50) && (dy < -2)) {
time2 = Math.floor((_y + 10) / (-dy)) + 1;
} else if (((_root.marisa._x - _x) > 0) && (dx < -2)) {
time2 = Math.floor((_x + 10) / (-dx)) + 1;
} else if (((_root.marisa._x - _x) < 0) && (dx > 2)) {
time2 = Math.floor((360 - _x) / dx) + 1;
} else {
time2 = 1;
}
temp = Math.floor(Math.max(Math.abs(dx), Math.abs(dy)));
this.onEnterFrame = function () {
_x = (_x + dx);
_y = (_y + dy);
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 58 MovieClip [eshot19] Frame 1
stop();
time2 = 1;
temp = 15;
dx2 = dx / 2;
dy2 = dy / 2;
this.onEnterFrame = function () {
if (_root.es_time < 5) {
_x = (_x + dx);
_y = (_y + dy);
} else if (_root.es_time < 15) {
if (_root.es_time == 5) {
gotoAndStop (2);
}
_x = (_x + dx2);
_y = (_y + dy2);
} else {
if (_root.es_time == 15) {
gotoAndStop (1);
}
_x = (_x + dx);
_y = (_y + dy);
}
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 59 MovieClip [eshot28] Frame 1
time2 = 1;
temp = 15;
this.onEnterFrame = function () {
if (_root.es_time < 59) {
} else if (_root.es_time == 59) {
rad = Math.atan2(_root.marisa._y - _y, _root.marisa._x - _x);
_rotation = ((rad / _root.PI1) - 90);
dx = Math.cos(rad) * 15;
dy = Math.sin(rad) * 15;
} else {
_x = (_x + dx);
_y = (_y + dy);
}
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 60 MovieClip [eshot3_2] Frame 1
if (((_root.marisa._y - _y) > 50) && (dy < -2)) {
time2 = Math.floor((_y + 10) / (-dy)) + 1;
} else if (((_root.marisa._x - _x) > 0) && (dx < -2)) {
time2 = Math.floor((_x + 10) / (-dx)) + 1;
} else if (((_root.marisa._x - _x) < 0) && (dx > 2)) {
time2 = Math.floor((360 - _x) / dx) + 1;
} else {
time2 = 1;
}
temp = Math.floor(Math.max(Math.abs(dx), Math.abs(dy)));
this.onEnterFrame = function () {
_x = (_x + dx);
_y = (_y + dy);
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 61 MovieClip [eshot23] Frame 1
time2 = 1;
temp = 15;
this.onEnterFrame = function () {
if ((_x + dx) > 350) {
dx = dx * -1;
_rotation = (_rotation * -1);
} else if ((_x + dx) < 0) {
dx = dx * -1;
_rotation = (_rotation * -1);
}
_x = (_x + dx);
_y = (_y + dy);
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 62 MovieClip [eshot34] Frame 1
function moving1() {
_y = (_y + dy);
if ((_y + dy) < 0) {
dy = dy * -2;
type1 = 2;
_rotation = (_rotation + 180);
}
}
function moving2() {
_y = (_y + dy);
}
time2 = 1;
temp = 15;
count = 0;
type1 = 1;
this.onEnterFrame = function () {
this["moving" + type1]();
time2--;
if (time2 == 0) {
_root.hit_test1(this);
}
if (_y > 410) {
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 63 MovieClip [eshot33] Frame 1
function moving1() {
_y = (_y + dy);
if ((_y + dy) > 400) {
dy = dy * -2;
type1 = 2;
_rotation = (_rotation + 180);
}
}
function moving2() {
_y = (_y + dy);
}
time2 = 1;
temp = 15;
count = 0;
type1 = 1;
this.onEnterFrame = function () {
this["moving" + type1]();
time2--;
if (time2 == 0) {
_root.hit_test1(this);
}
if (_y < -10) {
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 64 MovieClip [eshot32] Frame 1
function moving1() {
_x = (_x + dx);
if ((_x + dx) < 0) {
dx = dx * -2;
type1 = 2;
_rotation = (_rotation + 180);
}
}
function moving2() {
_x = (_x + dx);
}
time2 = 1;
temp = 15;
count = 0;
type1 = 1;
this.onEnterFrame = function () {
this["moving" + type1]();
time2--;
if (time2 == 0) {
_root.hit_test1(this);
}
if (_x > 360) {
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 65 MovieClip [eshot31] Frame 1
function moving1() {
_x = (_x + dx);
if ((_x + dx) > 350) {
dx = dx * -2;
type1 = 2;
_rotation = (_rotation + 180);
}
}
function moving2() {
_x = (_x + dx);
}
time2 = 1;
temp = 16;
count = 0;
type1 = 1;
this.onEnterFrame = function () {
this["moving" + type1]();
time2--;
if (time2 == 0) {
_root.hit_test1(this);
}
if (_x < -10) {
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 66 MovieClip [eshot30] Frame 1
function moving1() {
if (count < 20) {
_x = (_x + ((tempx - _x) * 0.25));
_y = (_y + ((tempy - _y) * 0.25));
count++;
} else if (count < 50) {
} else if (count == 50) {
rad = Math.atan2(_root.marisa._y - _y, _root.marisa._x - _x);
dx = Math.cos(rad) * 10;
dy = Math.sin(rad) * 10;
_rotation = ((rad / _root.PI1) - 90);
_x = (_x + dx);
_y = (_y + dy);
type1 = 2;
}
}
function moving2() {
_x = (_x + dx);
_y = (_y + dy);
}
time2 = 50;
temp = 15;
count = 0;
type1 = 1;
this.onEnterFrame = function () {
this["moving" + type1]();
count++;
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 67 MovieClip [eshot29] Frame 1
time2 = 1;
temp = 15;
count = 0;
this.onEnterFrame = function () {
if (count < 30) {
_x = (_x + ((tempx - _x) * 0.25));
_y = (_y + ((tempy - _y) * 0.25));
count++;
} else {
_x = (_x + dx);
_y = (_y + dy);
}
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 68 MovieClip [eshot27] Frame 1
time2 = 1;
temp = 15;
dx = _root.cos_list15[sita];
dy = _root.sin_list15[sita];
this.onEnterFrame = function () {
if (_root.es_time < 60) {
} else {
_x = (_x + dx);
_y = (_y + dy);
}
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 69 MovieClip [eshot25] Frame 1
time2 = 1;
temp = 15;
count = 0;
this.onEnterFrame = function () {
if (count < 27) {
_x = (_x + dx);
_y = (_y + dy);
count++;
} else if (count == 27) {
sita = (sita + _root.ranset(180, 270)) % 360;
_rotation = sita;
dx = _root.cos_list15[sita];
dy = _root.sin_list15[sita];
count++;
} else {
_x = (_x + dx);
_y = (_y + dy);
}
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 70 MovieClip [eshot26] Frame 1
time2 = 1;
temp = 15;
type1 = 0;
this.onEnterFrame = function () {
if (_root.es_time > 19) {
type1 = 1;
}
if (type1 > 0) {
_x = (_x + dx);
_y = (_y + dy);
}
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 71 MovieClip [eshot3_1] Frame 1
if (((_root.marisa._y - _y) > 50) && (dy < -2)) {
time2 = Math.floor((_y + 10) / (-dy)) + 1;
} else if (((_root.marisa._x - _x) > 0) && (dx < -2)) {
time2 = Math.floor((_x + 10) / (-dx)) + 1;
} else if (((_root.marisa._x - _x) < 0) && (dx > 2)) {
time2 = Math.floor((360 - _x) / dx) + 1;
} else {
time2 = 1;
}
temp = Math.floor(Math.max(Math.abs(dx), Math.abs(dy)));
this.onEnterFrame = function () {
_x = (_x + dx);
_y = (_y + dy);
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 76 MovieClip [marisa] Frame 2
stop();
Symbol 78 MovieClip [shot4] Frame 1
temp = _root.system_sw;
this.onEnterFrame = function () {
_x = (_x - dx);
_y = (_y - dy);
_root["hit_test" + temp](this);
if ((((_y < -10) || (_x < -10)) || (_x > 360)) || (_y > 410)) {
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 81 MovieClip [shot1] Frame 1
temp = _root.system_sw;
this.onEnterFrame = function () {
_x = (_x - dx);
_y = (_y - dy);
_root["hit_test" + temp](this);
if ((((_y < -10) || (_x < -10)) || (_x > 360)) || (_y > 410)) {
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 89 MovieClip [spshot1_6] Frame 1
count = 0;
random1 = new Array();
num = 0;
while (num < 10) {
random1[num] = _root.ranset(360, 0);
num++;
}
this.onEnterFrame = function () {
if (count < 50) {
_x = (_x + dx);
_y = (_y + dy);
count++;
} else {
num = 0;
while (num < max1) {
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("eshot1_2", shot_name, 10000 + _root.eshot_number);
_root[shot_name]._x = _x;
_root[shot_name]._y = _y;
_root[shot_name].sita = random1[num];
_root[shot_name].dx = _root.cos_list6[_root[shot_name].sita];
_root[shot_name].dy = _root.sin_list6[_root[shot_name].sita];
_root.eshot_number++;
num++;
}
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 91 MovieClip [spshot1_5] Frame 1
count = 0;
random1 = new Array();
num = 0;
while (num < 10) {
random1[num] = _root.ranset(360, 0);
num++;
}
this.onEnterFrame = function () {
if (count < 50) {
_x = (_x + dx);
_y = (_y + dy);
count++;
} else {
num = 0;
while (num < max1) {
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("eshot1_2", shot_name, 10000 + _root.eshot_number);
_root[shot_name]._x = _x;
_root[shot_name]._y = _y;
_root[shot_name].sita = random1[num];
_root[shot_name].dx = _root.cos_list6[_root[shot_name].sita];
_root[shot_name].dy = _root.sin_list6[_root[shot_name].sita];
_root.eshot_number++;
num++;
}
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 93 MovieClip [spshot1_4] Frame 1
count = 0;
random1 = new Array();
num = 0;
while (num < 10) {
random1[num] = _root.ranset(360, 0);
num++;
}
this.onEnterFrame = function () {
if (count < 50) {
_x = (_x + dx);
_y = (_y + dy);
count++;
} else {
num = 0;
while (num < max1) {
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("eshot1_2", shot_name, 10000 + _root.eshot_number);
_root[shot_name]._x = _x;
_root[shot_name]._y = _y;
_root[shot_name].sita = random1[num];
_root[shot_name].dx = _root.cos_list6[_root[shot_name].sita];
_root[shot_name].dy = _root.sin_list6[_root[shot_name].sita];
_root.eshot_number++;
num++;
}
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 95 MovieClip [spshot1_3] Frame 1
count = 0;
random1 = new Array();
num = 0;
while (num < 10) {
random1[num] = _root.ranset(360, 0);
num++;
}
this.onEnterFrame = function () {
if (count < 50) {
_x = (_x + dx);
_y = (_y + dy);
count++;
} else {
num = 0;
while (num < max1) {
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("eshot1_2", shot_name, 10000 + _root.eshot_number);
_root[shot_name]._x = _x;
_root[shot_name]._y = _y;
_root[shot_name].sita = random1[num];
_root[shot_name].dx = _root.cos_list6[_root[shot_name].sita];
_root[shot_name].dy = _root.sin_list6[_root[shot_name].sita];
_root.eshot_number++;
num++;
}
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 97 MovieClip [spshot1_2] Frame 1
count = 0;
random1 = new Array();
num = 0;
while (num < 10) {
random1[num] = _root.ranset(360, 0);
num++;
}
this.onEnterFrame = function () {
if (count < 50) {
_x = (_x + dx);
_y = (_y + dy);
count++;
} else {
num = 0;
while (num < max1) {
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("eshot1_2", shot_name, 10000 + _root.eshot_number);
_root[shot_name]._x = _x;
_root[shot_name]._y = _y;
_root[shot_name].sita = random1[num];
_root[shot_name].dx = _root.cos_list6[_root[shot_name].sita];
_root[shot_name].dy = _root.sin_list6[_root[shot_name].sita];
_root.eshot_number++;
num++;
}
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 99 MovieClip [spshot1_1] Frame 1
count = 0;
random1 = new Array();
num = 0;
while (num < 10) {
random1[num] = _root.ranset(360, 0);
num++;
}
this.onEnterFrame = function () {
if (count < 50) {
_x = (_x + dx);
_y = (_y + dy);
count++;
} else {
num = 0;
while (num < max1) {
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("eshot1_2", shot_name, 10000 + _root.eshot_number);
_root[shot_name]._x = _x;
_root[shot_name]._y = _y;
_root[shot_name].sita = random1[num];
_root[shot_name].dx = _root.cos_list6[_root[shot_name].sita];
_root[shot_name].dy = _root.sin_list6[_root[shot_name].sita];
_root.eshot_number++;
num++;
}
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 102 MovieClip [eshot17] Frame 1
time2 = 1;
temp = 20;
this.onEnterFrame = function () {
_x = (_x + _root.cos_list5[sita]);
_y = (_y + _root.sin_list5[sita]);
time2--;
sita = (sita + 2) % 360;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 103 MovieClip [eshot35] Frame 1
time2 = 1;
temp = 15;
count = 20;
this.onEnterFrame = function () {
_x = (_x + ((tempx - _x) * 0.1));
_y = (_y + ((tempy - _y) * 0.1));
count--;
if (count == 0) {
num = 0;
while (num < _root.max2) {
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("eshot1_1", shot_name, 10000 + _root.eshot_number);
_root[shot_name]._x = _x;
_root[shot_name]._y = _y;
_root[shot_name].sita = _root.random5[num];
_root[shot_name].dx = _root.cos_list8[_root[shot_name].sita];
_root[shot_name].dy = _root.sin_list8[_root[shot_name].sita];
_root.eshot_number++;
num++;
}
this.removeMovieClip();
}
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 104 MovieClip [eshot5] Frame 1
if (((_root.marisa._y - _y) > 50) && (dy < -2)) {
time2 = Math.floor((_y + 10) / (-dy)) + 1;
} else if (((_root.marisa._x - _x) > 0) && (dx < -2)) {
time2 = Math.floor((_x + 10) / (-dx)) + 1;
} else if (((_root.marisa._x - _x) < 0) && (dx > 2)) {
time2 = Math.floor((360 - _x) / dx) + 1;
} else {
time2 = 1;
}
temp = Math.max(Math.abs(dx), Math.abs(dy));
this.onEnterFrame = function () {
_x = (_x + dx);
_y = (_y + dy);
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 106 MovieClip [eshot1_3] Frame 1
if (((_root.marisa._y - _y) > 50) && (dy < -2)) {
time2 = Math.floor((_y + 10) / (-dy)) + 1;
} else if (((_root.marisa._x - _x) > 0) && (dx < -2)) {
time2 = Math.floor((_x + 10) / (-dx)) + 1;
} else if (((_root.marisa._x - _x) < 0) && (dx > 2)) {
time2 = Math.floor((360 - _x) / dx) + 1;
} else {
time2 = 1;
}
temp = Math.floor(Math.max(Math.abs(dx), Math.abs(dy)));
this.onEnterFrame = function () {
_x = (_x + dx);
_y = (_y + dy);
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 108 MovieClip [eshot11] Frame 1
this.onEnterFrame = function () {
_x = (_x + dx);
_y = (_y + dy);
if ((((_x < -10) || (_x > 360)) || (_y < -10)) || (_y > 410)) {
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 109 MovieClip [eshot1_5] Frame 1
if (((_root.marisa._y - _y) > 50) && (dy < -2)) {
time2 = Math.floor((_y + 10) / (-dy)) + 1;
} else if (((_root.marisa._x - _x) > 0) && (dx < -2)) {
time2 = Math.floor((_x + 10) / (-dx)) + 1;
} else if (((_root.marisa._x - _x) < 0) && (dx > 2)) {
time2 = Math.floor((360 - _x) / dx) + 1;
} else {
time2 = 1;
}
temp = Math.floor(Math.max(Math.abs(dx), Math.abs(dy)));
this.onEnterFrame = function () {
_x = (_x + dx);
_y = (_y + dy);
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 111 MovieClip [eshot1_4] Frame 1
if (((_root.marisa._y - _y) > 50) && (dy < -2)) {
time2 = Math.floor((_y + 10) / (-dy)) + 1;
} else if (((_root.marisa._x - _x) > 0) && (dx < -2)) {
time2 = Math.floor((_x + 10) / (-dx)) + 1;
} else if (((_root.marisa._x - _x) < 0) && (dx > 2)) {
time2 = Math.floor((360 - _x) / dx) + 1;
} else {
time2 = 1;
}
temp = Math.floor(Math.max(Math.abs(dx), Math.abs(dy)));
this.onEnterFrame = function () {
_x = (_x + dx);
_y = (_y + dy);
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 113 MovieClip [eshot16] Frame 1
time2 = 1;
temp = 15;
count = 0;
dx2 = dx / _root.ranset(6, 2);
dy2 = dy / _root.ranset(6, 2);
this.onEnterFrame = function () {
if (count > 9) {
_x = (_x + dx);
_y = (_y + dy);
} else {
_x = (_x + dx2);
_y = (_y + dy2);
count++;
}
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 114 MovieClip [eshot20] Frame 1
stop();
time2 = 1;
temp = 15;
dx2 = dx / 2;
dy2 = dy / 2;
this.onEnterFrame = function () {
if (_root.es_time < 5) {
_x = (_x + dx);
_y = (_y + dy);
} else if (_root.es_time < 15) {
if (_root.es_time == 5) {
gotoAndStop (2);
}
_x = (_x + dx2);
_y = (_y + dy2);
} else {
if (_root.es_time == 15) {
gotoAndStop (1);
}
_x = (_x + dx);
_y = (_y + dy);
}
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 115 MovieClip [eshot21] Frame 1
time2 = 1;
temp = 15;
this.onEnterFrame = function () {
if (_root.es_time < 30) {
_x = (_x + dx);
_y = (_y + dy);
} else if (_root.es_time < 35) {
} else {
if (_root.es_time == 35) {
dx = 0;
dy = _root.ranset(8, 4);
}
_y = (_y + dy);
}
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 116 MovieClip [spshot2_2] Frame 1
stop();
if (sw != 1) {
time2 = 1;
temp = 20;
count = 0;
dis = 18 - Math.floor(Math.abs(sita) / 10);
sita = (sita + 360) % 360;
dx = _root.cos_list[sita] * dis;
dy = _root.sin_list[sita] * dis;
sw = 1;
type1 = _root.ranset(2, 0);
}
this.onEnterFrame = function () {
if (count < 20) {
_x = (_x + dx);
_y = (_y + dy);
} else if (count < 50) {
if (count == 20) {
gotoAndStop (2);
} else if (count == 49) {
if (type1 == 0) {
dx = dx * -0.5;
dy = dy * -0.5;
}
gotoAndStop (1);
}
} else if (count < 60) {
_x = (_x + dx);
_y = (_y + dy);
} else {
_x = (_x + dx);
_y = (_y + dy);
if (((_x > 360) || (_x < -10)) || (_y < -10)) {
this.removeMovieClip();
}
}
count++;
time2--;
if (time2 == 0) {
_root.hit_test1(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 117 MovieClip [spshot2_1] Frame 1
time2 = 1;
temp = 10;
count = 0;
this.onEnterFrame = function () {
if (count < 30) {
_x = (_x + ((tempx - _x) * 0.15));
_y = (_y + ((tempy - _y) * 0.15));
if (count == 29) {
if (type1 == 0) {
rad = Math.atan2(_root.marisa._y - _y, _root.marisa._x - _x);
dx = Math.cos(rad) * 10;
dy = Math.sin(rad) * 10;
} else {
dx = _root.cos_list10[sita];
dy = _root.sin_list10[sita];
}
}
} else {
_x = (_x + dx);
_y = (_y + dy);
}
count++;
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 118 MovieClip [eshot1_2] Frame 1
if (((_root.marisa._y - _y) > 50) && (dy < -2)) {
time2 = Math.floor((_y + 10) / (-dy)) + 1;
} else if (((_root.marisa._x - _x) > 0) && (dx < -2)) {
time2 = Math.floor((_x + 10) / (-dx)) + 1;
} else if (((_root.marisa._x - _x) < 0) && (dx > 2)) {
time2 = Math.floor((360 - _x) / dx) + 1;
} else {
time2 = 1;
}
temp = Math.floor(Math.max(Math.abs(dx), Math.abs(dy)));
this.onEnterFrame = function () {
_x = (_x + dx);
_y = (_y + dy);
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 120 MovieClip [eshot12] Frame 1
this.onEnterFrame = function () {
_x = (_x + dx);
_y = (_y + dy);
if ((((_x < -10) || (_x > 360)) || (_y < -10)) || (_y > 410)) {
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 121 MovieClip [spshot2] Frame 1
function moving1() {
if (_root.sboss.count == 50) {
rad = Math.atan2(_root.marisa._y - _y, _root.marisa._x - _x);
dx = Math.cos(rad) * 7;
dy = Math.sin(rad) * 7;
type1 = 2;
}
}
function moving2() {
_x = (_x + dx);
_y = (_y + dy);
}
time2 = 1;
type1 = 1;
temp = 20;
this.onEnterFrame = function () {
this["moving" + type1]();
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 122 MovieClip [eshot24] Frame 1
time2 = 5;
temp = 15;
if (Math.random() > 0.5) {
dx = -_root.ranset(4, 3);
} else {
dx = _root.ranset(4, 3);
}
count = 0;
this.onEnterFrame = function () {
if (count > 10) {
_x = (_x + dx);
}
count++;
time2--;
if (time2 == 0) {
_root.hit_test1(this);
}
if ((_x < -10) || (_x > 360)) {
_root.dshot++;
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 123 MovieClip [eshot22] Frame 1
time2 = 20;
temp = 15;
this.onEnterFrame = function () {
_y = (_y + 5);
_x = (_x - (_root.cos_list[sita] * dis));
_y = (_y - (_root.sin_list[sita] * dis));
sita = (sita + plus) % 360;
_x = (_x + (_root.cos_list[sita] * dis));
_y = (_y + (_root.sin_list[sita] * dis));
time2--;
if (time2 == 0) {
_root.hit_test1(this);
}
if (_y > 450) {
_root.dshot++;
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 124 MovieClip [eshot1_1] Frame 1
if (((_root.marisa._y - _y) > 50) && (dy < -2)) {
time2 = Math.floor((_y + 10) / (-dy)) + 1;
} else if (((_root.marisa._x - _x) > 0) && (dx < -2)) {
time2 = Math.floor((_x + 10) / (-dx)) + 1;
} else if (((_root.marisa._x - _x) < 0) && (dx > 2)) {
time2 = Math.floor((360 - _x) / dx) + 1;
} else {
time2 = 1;
}
temp = Math.floor(Math.max(Math.abs(dx), Math.abs(dy)));
this.onEnterFrame = function () {
_x = (_x + dx);
_y = (_y + dy);
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 128 MovieClip [magic3_7] Frame 1
this.onEnterFrame = function () {
_x = (_x + dx);
_y = (_y + dy);
_rotation = (_rotation + 30);
if ((((_y < -25) || (_y > 425)) || (_x < -25)) || (_x > 375)) {
this.removeMovieClip();
}
};
Symbol 129 MovieClip [magic3_6] Frame 1
this.onEnterFrame = function () {
_x = (_x + dx);
_y = (_y + dy);
if (_x > 325) {
_x = 325;
dy = 8 + _root.ranset(8, -4);
dx = 0;
type1 = 1;
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("eshot1_1", shot_name, 10000 + _root.eshot_number);
_root[shot_name]._x = _x;
_root[shot_name]._y = _y;
_root[shot_name].dx = _root.cos_list4[225];
_root[shot_name].dy = _root.sin_list4[225];
_root.eshot_number++;
} else if (_y > 375) {
_y = 375;
dx = -8 + _root.ranset(8, -4);
dy = 0;
type1 = 2;
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("eshot1_1", shot_name, 10000 + _root.eshot_number);
_root[shot_name]._x = _x;
_root[shot_name]._y = _y;
_root[shot_name].dx = _root.cos_list4[315];
_root[shot_name].dy = _root.sin_list4[315];
_root.eshot_number++;
} else if (_x < 25) {
_x = 25;
dy = -8 + _root.ranset(8, -4);
dx = 0;
type1 = 3;
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("eshot1_1", shot_name, 10000 + _root.eshot_number);
_root[shot_name]._x = _x;
_root[shot_name]._y = _y;
_root[shot_name].dx = _root.cos_list4[45];
_root[shot_name].dy = _root.sin_list4[45];
_root.eshot_number++;
} else if (_y < 25) {
_y = 25;
dx = 8 + _root.ranset(8, -4);
dy = 0;
type1 = 0;
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("eshot1_1", shot_name, 10000 + _root.eshot_number);
_root[shot_name]._x = _x;
_root[shot_name]._y = _y;
_root[shot_name].dx = _root.cos_list4[135];
_root[shot_name].dy = _root.sin_list4[135];
_root.eshot_number++;
}
_rotation = (_rotation + 30);
};
Symbol 130 MovieClip [magic3_5] Frame 1
this.onEnterFrame = function () {
_rotation = (_rotation + 30);
if (_root.es_time < 10) {
_x = (_x + ((tempx - _x) * 0.25));
_y = (_y + ((tempy - _y) * 0.25));
if (_root.es_time == 9) {
_visible = false;
}
}
};
Symbol 131 MovieClip [magic3_4] Frame 1
this.onEnterFrame = function () {
_rotation = (_rotation + 30);
};
Symbol 132 MovieClip [magic3_3] Frame 1
type1 = 1;
this.onEnterFrame = function () {
if (type1 == 1) {
_rotation = (_rotation + 30);
_x = (_root.reimu._x + (_root.cos_list20[sita] * 5));
_y = (_root.reimu._y + (_root.sin_list20[sita] * 5));
sita = (sita + 10) % 360;
}
};
Symbol 133 MovieClip [magic3_2] Frame 1
this.onEnterFrame = function () {
_rotation = (_rotation + 15);
_x = (_x + dx);
_y = (_y + dy);
if (_y > 420) {
this.removeMovieClip();
}
};
Symbol 134 MovieClip [magic3_1] Frame 1
this.onEnterFrame = function () {
_y = (_y + 10);
if (_y > 410) {
this.removeMovieClip();
}
};
Symbol 136 MovieClip [magic2_3] Frame 1
this.onEnterFrame = function () {
_rotation = (_rotation - 15);
_x = (_root.reimu._x + (_root.cos_list[sita] * dx));
_y = (_root.reimu._y + (_root.sin_list[sita] * dx));
sita = (sita + 5) % 360;
};
Symbol 137 MovieClip [magic2_2] Frame 1
count = 0;
this.onEnterFrame = function () {
_x = (_x + dx);
_y = (_y + dy);
count++;
if (count == 75) {
this.removeMovieClip();
}
};
Symbol 138 MovieClip [magic2_5] Frame 1
this.onEnterFrame = function () {
_rotation = (_rotation - 10);
_x = (_x - dx);
};
Symbol 139 MovieClip [magic2_4] Frame 1
count = 0;
this.onEnterFrame = function () {
if (count > 9) {
} else {
_x = (_x + ((tempx - _x) * 0.2));
_y = (_y + ((tempy - _y) * 0.2));
count++;
}
};
Symbol 140 MovieClip [magic2_7] Frame 1
HP = 100;
this.onEnterFrame = function () {
_rotation = (_rotation + 15);
_x = (_root.marisa._x + (_root.cos_list20[sita] * 3));
_y = (_root.marisa._y + (_root.sin_list20[sita] * 3));
sita = (sita + 15) % 360;
num = _root.shot_number - 40;
while (num < _root.shot_number) {
if (hitTest(_root["main_shot" + num])) {
_root["main_shot" + num].removeMovieClip();
HP--;
if (HP < 1) {
this.removeMovieClip();
}
}
num++;
}
};
Symbol 141 MovieClip [magic2_8] Frame 1
this.onEnterFrame = function () {
_rotation = (_rotation + 30);
_x = (_root.reimu._x + (_root.cos_list10[sita] * 8));
_y = (_root.reimu._y + (_root.sin_list10[sita] * 8));
sita = (sita + 10) % 360;
};
Symbol 142 MovieClip [magic2_6] Frame 1
this.onEnterFrame = function () {
_rotation = (_rotation + 15);
};
Symbol 143 MovieClip [magic2_1] Frame 1
this.onEnterFrame = function () {
_x = (_root.reimu._x + dx);
};
Symbol 145 MovieClip [magic1_2] Frame 1
this.onEnterFrame = function () {
this._rotation = this._rotation + 15;
sita = (sita + 3) % 360;
_x = (_root.reimu._x + (_root.cos_list5[sita] * 5));
_y = (_root.reimu._y + (_root.sin_list5[sita] * 5));
};
Symbol 146 MovieClip [magic1_7] Frame 1
this.onEnterFrame = function () {
this._rotation = this._rotation + 15;
_x = (175 + (_root.cos_list10[sita] * 18));
_y = (210 + (_root.sin_list10[sita] * 18));
sita = (sita + 4) % 360;
};
Symbol 147 MovieClip [magic1_1] Frame 1
this.onEnterFrame = function () {
this._rotation = this._rotation + 15;
_x = (_root.reimu._x + dx);
_y = (_root.reimu._y + dy);
};
Symbol 151 MovieClip [eshot10] Frame 1
function moving() {
_x = (_x + dx);
_y = (_y + dy);
count++;
if (count < 100) {
if ((_x > 340) || (_x < 10)) {
dx = dx * -1;
_x = (_x + dx);
}
if ((_y > 390) || (_y < 10)) {
dy = dy * -1;
_y = (_y + dy);
}
}
}
temp = 15;
time2 = 1;
count = 0;
this.onEnterFrame = function () {
_rotation = (_rotation + 15);
this.moving();
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 152 MovieClip [eshot8] Frame 1
function moving() {
_x = (_x + dx);
_y = (_y + dy);
count++;
if (count < 20) {
} else if (count < 40) {
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("eshot1_1", shot_name, 10000 + _root.eshot_number);
_root[shot_name]._x = _x;
_root[shot_name]._y = _y;
_root[shot_name].sita = _root.random2[_root.eshot_number];
_root[shot_name].dx = _root.cos_list6[_root[shot_name].sita];
_root[shot_name].dy = _root.sin_list6[_root[shot_name].sita];
_root.eshot_number++;
} else {
this.removeMovieClip();
}
}
temp = Math.max(Math.abs(dx), Math.abs(dy));
time2 = 10;
count = 0;
this.onEnterFrame = function () {
_rotation = (_rotation + 15);
this.moving();
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 153 MovieClip [eshot6] Frame 1
temp = Math.max(Math.abs(dx), Math.abs(dy));
time2 = 10;
this.onEnterFrame = function () {
_rotation = (_rotation + 15);
_x = (_x + dx);
_y = (_y + dy);
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 165 MovieClip [Item3] Frame 1
this.onEnterFrame = function () {
if (_root.marisa._y > 120) {
_y = (_y + 3);
} else {
_x = (_x + ((_root.marisa._x - _x) * 0.5));
_y = (_y + ((_root.marisa._y - _y) * 0.5));
}
if (hitTest(_root.marisa)) {
_root.now_point = _root.now_point + 1;
_root.Score1 = _root.Score1 + 20000;
_root.menu4.Point = (_root.now_point + "/") + _root.point_list[_root.point_count];
if (_root.now_point >= _root.point_list[_root.point_count]) {
_root.one_up();
}
_root.set_power();
this.removeMovieClip();
}
if (_y > 400) {
this.removeMovieClip();
}
};
Symbol 167 MovieClip [Item1] Frame 1
this.onEnterFrame = function () {
if (_root.marisa._y > 120) {
_y = (_y + 3);
} else {
_x = (_x + ((_root.marisa._x - _x) * 0.5));
_y = (_y + ((_root.marisa._y - _y) * 0.5));
}
if (hitTest(_root.marisa)) {
_root.power.bar._x = _root.power.bar._x + 2;
_root.Score1 = _root.Score1 + 10000;
if (_root.power.bar._x > 0) {
_root.power.bar._x = 0;
}
_root.set_power();
this.removeMovieClip();
}
if (_y > 400) {
this.removeMovieClip();
}
};
Symbol 169 MovieClip [Item2] Frame 1
this.onEnterFrame = function () {
if (_root.marisa._y > 120) {
_y = (_y + 3);
} else {
_x = (_x + ((_root.marisa._x - _x) * 0.5));
_y = (_y + ((_root.marisa._y - _y) * 0.5));
}
if (hitTest(_root.marisa)) {
_root.power.bar._x = _root.power.bar._x + 10;
_root.Score1 = _root.Score1 + 40000;
if (_root.power.bar._x > 0) {
_root.power.bar._x = 0;
}
_root.set_power();
this.removeMovieClip();
}
if (_y > 420) {
this.removeMovieClip();
}
};
Symbol 177 MovieClip [spell_namein] Frame 10
_root.SE(8);
Symbol 177 MovieClip [spell_namein] Frame 65
stop();
Symbol 196 MovieClip [menu1] Frame 1
num = 2;
while (num <= 7) {
this["menu1_" + num]._alpha = 50;
this["menu1_" + _root.Select]._alpha = 100;
num++;
}
Symbol 198 MovieClip [eshot2_4] Frame 1
if (((_root.marisa._y - _y) > 50) && (dy < -2)) {
time2 = Math.floor((_y + 10) / (-dy)) + 1;
} else if (((_root.marisa._x - _x) > 0) && (dx < -2)) {
time2 = Math.floor((_x + 10) / (-dx)) + 1;
} else if (((_root.marisa._x - _x) < 0) && (dx > 2)) {
time2 = Math.floor((360 - _x) / dx) + 1;
} else {
time2 = 1;
}
temp = Math.floor(Math.max(Math.abs(dx), Math.abs(dy)));
this.onEnterFrame = function () {
_x = (_x + dx);
_y = (_y + dy);
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 200 MovieClip [enemy_shot_8] Frame 1
interval_time = 0;
hit_sw = 0;
temp = _root.system_sw;
this.onEnterFrame = function () {
_root[(("eshot_pat" + _root.eshot_pat) + "_") + etype](this);
if (hit_sw == 0) {
hit_sw = 1;
hit_ID = setInterval(_root["hit_test" + temp], interval_time, this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 202 MovieClip [enemy_shot_6] Frame 1
if (((_root.marisa._y - _y) > 50) && (dy < -2)) {
time2 = Math.floor((_y + 10) / (-dy)) + 1;
} else if (((_root.marisa._x - _x) > 0) && (dx < -2)) {
time2 = Math.floor((_x + 10) / (-dx)) + 1;
} else if (((_root.marisa._x - _x) < 0) && (dx > 2)) {
time2 = Math.floor((360 - _x) / dx) + 1;
} else {
time2 = 1;
}
temp = Math.floor(Math.max(Math.abs(dx), Math.abs(dy)));
this.onEnterFrame = function () {
_x = (_x + dx);
_y = (_y + dy);
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 204 MovieClip [enemy_shot_5] Frame 1
interval_time = 0;
hit_sw = 0;
temp = _root.system_sw;
this.onEnterFrame = function () {
_root[(("eshot_pat" + _root.eshot_pat) + "_") + etype](this);
if (hit_sw == 0) {
hit_sw = 1;
hit_ID = setInterval(_root["hit_test" + temp], interval_time, this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 211 MovieClip Frame 2
stop();
Symbol 234 MovieClip Frame 2
stop();
Symbol 239 MovieClip [menu4] Frame 1
Point = (_root.now_point + "/") + _root.point_list[_root.point_count];
_root.set_dif(_root.difficult_no);
Instance of Symbol 225 MovieClip in Symbol 239 MovieClip [menu4] Frame 1
onClipEvent (load) {
fr = 20;
time = 200;
time_count = 0;
old_timer = getTimer();
fps = (fr + "/") + fr;
}
onClipEvent (enterFrame) {
time_count = time_count + 1;
if ((getTimer() - old_timer) >= time) {
fps = ((Math.floor((time_count * 1000) / (getTimer() - old_timer)) + "/") + fr) + "fps";
old_timer = getTimer();
time_count = 0;
}
}
Symbol 241 MovieClip [bomb] Frame 1
this.onEnterFrame = function () {
_root.bomb_pat2(this);
};
Symbol 244 MovieClip [enemy3] Frame 1
function moving() {
time1++;
if (time1 < 20) {
_y = (_y + dy);
} else if (time1 < 40) {
if (((time1 > 25) && (time1 <= 30)) && ((time1 % 2) == 0)) {
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("eshot1_2", shot_name, _root.eshot_number + 10000);
_root.exy2(_x, _y, this);
rad = Math.atan2(_root.marisa._y - _y, _root.marisa._x - _x);
_root[shot_name].dx = Math.cos(rad) * 10;
_root[shot_name].dy = Math.sin(rad) * 10;
_root.eshot_number++;
}
_x = (_x + dx);
_y = (_y + (dy - 1.5));
} else {
_x = (_x + (dx * (1 + count)));
_y = (_y + dy);
count = count + 0.05;
}
if ((((_x < -10) || (_x > 360)) || (_y > 410)) || (tMC < -10)) {
_root.elist2(this);
this.removeMovieClip();
}
}
stop();
dx = (175 - this._x) / 100;
dy = 2;
life = 30;
Item = 3;
this.onEnterFrame = function () {
if (_root.system_sw == 4) {
this.moving();
}
};
Symbol 247 MovieClip [enemy1_5] Frame 1
function moving() {
}
if (_x > _root.centerx) {
dx = -8;
sita = -15;
} else {
dx = 8;
sita = 15;
}
life = 3;
Item = 1;
this.onEnterFrame = function () {
if (_root.system_sw == 4) {
_rotation = (_rotation + sita);
_x = (_x + dx);
if ((((_x < -10) || (_x > 360)) || (_y > 410)) || (_y < -10)) {
_root.elist2(this);
this.removeMovieClip();
}
}
};
Symbol 250 MovieClip [enemy1_2] Frame 1
function moving() {
time1++;
if (time1 < 19) {
_x = (_x + dx);
} else if (time1 < 20) {
tempx = _x;
tempy = _y + 50;
sita = 180;
} else if (time1 < 60) {
if ((sita % 90) == 0) {
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("eshot1_2", shot_name, _root.eshot_number + 10000);
_root.exy2(_x, _y, this);
rad = Math.atan2(_root.marisa._y - _y, _root.marisa._x - _x);
_root[shot_name].dx = Math.cos(rad) * 4;
_root[shot_name].dy = Math.sin(rad) * 4;
_root.eshot_number++;
}
sita1 = (sita + 360) % 360;
_x = (tempx + (_root.cos_list[sita1] * 50));
_y = (tempy + (_root.sin_list[sita1] * 50));
sita = sita + msita;
} else if (time1 < 61) {
sita = _root.ranset(180, 90);
dx = _root.cos_list[sita] * 10;
dy = _root.sin_list[sita] * 10;
} else if (time1 < 65) {
} else {
_x = (_x + dx);
_y = (_y + dy);
}
if ((((_x < -10) || (_x > 360)) || (_y > 410)) || (_y < -10)) {
_root.elist2(this);
this.removeMovieClip();
}
}
if (_x > 175) {
dx = -10;
msita = -9;
} else {
dx = 10;
msita = 9;
}
dy = 2;
life = 18;
count = 0;
time1 = 0;
Item = 3;
this.onEnterFrame = function () {
if (_root.system_sw == 4) {
this.moving();
}
};
Symbol 251 MovieClip [enemy1_4] Frame 1
function moving() {
time1++;
if (time1 < 20) {
_x = (_x + ((tempx - _x) * 0.15));
_y = (_y + ((100 - _y) * 0.15));
} else if (time1 < 21) {
num = 0;
while (num < 8) {
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("eshot2_4", shot_name, _root.eshot_number + 10000);
_root.exy2(_x, _y, this);
_root[shot_name].sita = random1[num];
_root[shot_name]._rotation = _root[shot_name].sita;
_root[shot_name].dx = _root.cos_list[_root[shot_name].sita] * 5;
_root[shot_name].dy = _root.sin_list[_root[shot_name].sita] * 5;
_root.eshot_number++;
num++;
}
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("eshot1_4", shot_name, _root.eshot_number + 10000);
_root.exy2(_x, _y, this);
rad = Math.atan2(_root.marisa._y - _y, _root.marisa._x - _x);
_root[shot_name].dx = Math.cos(rad) * 10;
_root[shot_name].dy = Math.sin(rad) * 10;
_root.eshot_number++;
} else if (time1 < 30) {
} else {
_y = (_y - 4);
}
if ((((_x < -10) || (_x > 360)) || (_y > 410)) || (_y < -10)) {
_root.elist2(this);
this.removeMovieClip();
}
}
tempx = _x + _root.ranset(10);
life = 18;
time1 = 0;
random1 = [0, 45, 90, 135, 180, 225, 270, 315];
Item = 1;
this.onEnterFrame = function () {
if (_root.system_sw == 4) {
this.moving();
}
};
Symbol 252 MovieClip [enemy1_1] Frame 1
function moving() {
time1++;
if (time1 < 20) {
_y = (_y + dy);
} else if (time1 < 40) {
if (time1 == 25) {
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("eshot1_1", shot_name, _root.eshot_number + 10000);
_root.exy2(_x, _y, this);
rad = Math.atan2(_root.marisa._y - _y, _root.marisa._x - _x);
_root[shot_name].dx = Math.cos(rad) * 10;
_root[shot_name].dy = Math.sin(rad) * 10;
_root.eshot_number++;
}
_x = (_x + dx);
_y = (_y + (dy - 1.5));
} else {
_x = (_x + (dx * (1 + count)));
_y = (_y + dy);
count = count + 0.05;
}
if ((((_x < -10) || (_x > 360)) || (_y > 410)) || (_y < -10)) {
_root.elist2(this);
this.removeMovieClip();
}
}
dx = (175 - this._x) / 100;
dy = 2;
life = 18;
count = 0;
time1 = 0;
Item = 1;
this.onEnterFrame = function () {
if (_root.system_sw == 4) {
this.moving();
}
};
Symbol 255 MovieClip [enemy2] Frame 1
function moving() {
time1++;
if (time1 < 20) {
_y = (_y + dy);
} else if (time1 < 40) {
if ((time1 % 4) == 0) {
num = 0;
while (num < 4) {
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("eshot1_3", shot_name, _root.eshot_number + 10000);
_root.exy2(_x, _y, this);
_root[shot_name].sita = random1[num];
_root[shot_name].dx = _root.cos_list[_root[shot_name].sita] * 5;
_root[shot_name].dy = _root.sin_list[_root[shot_name].sita] * 5;
_root.eshot_number++;
num++;
}
}
} else if (time1 < 60) {
} else if (time1 < 80) {
if ((time1 % 4) == 0) {
num = 0;
while (num < 4) {
shot_name = "enemy_shot" + _root.eshot_number;
_root.attachMovie("eshot1_3", shot_name, _root.eshot_number + 10000);
_root.exy2(_x, _y, this);
_root[shot_name].sita = random1[num];
_root[shot_name].dx = _root.cos_list[_root[shot_name].sita] * 5;
_root[shot_name].dy = _root.sin_list[_root[shot_name].sita] * 5;
_root.eshot_number++;
num++;
}
}
} else if (time1 < 120) {
} else {
_y = (_y - dy);
}
if ((((_x < -10) || (_x > 360)) || (_y > 410)) || (_y < -10)) {
_root.elist2(this);
this.removeMovieClip();
}
}
stop();
dy = 2;
life = 90;
count = 0;
time1 = 0;
random1 = [312, 344, 16, 48];
Item = 2;
this.onEnterFrame = function () {
if (_root.system_sw == 4) {
this.moving();
}
};
Symbol 257 MovieClip [bossb2] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.system_sw == 4) {
if (this._y == -5) {
_root.attachMovie("boss_sub" + _root.stage_count, "sboss", 19999);
_root.sboss._x = this._x;
_root.sboss._y = this._y;
this._y++;
} else if (this._y < -5) {
this._y = this._y + 0.5;
} else {
_root.sboss._y = _root.sboss._y + 1;
}
if (_root.sboss._y == 35) {
_root.temp_sw = _root.system_sw;
_root.system_sw = 6;
_root.load_sw = 0;
_root.eshot_number = 0;
this.gotoAndStop(2);
_root.shotdel();
_root.delete_delay = 15;
_root.create_reimu_bar();
}
}
};
Symbol 257 MovieClip [bossb2] Frame 2
this.onEnterFrame = function () {
gotoAndStop (2);
};
Symbol 259 MovieClip [bossb1] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.system_sw == 4) {
if (this._y == -5) {
_root.attachMovie("boss", "reimu", 19999);
_root.reimu.gotoAndStop("boss" + _root.stage_count);
_root.reimu._x = this._x;
_root.reimu._y = this._y;
this._y++;
} else if (this._y < -5) {
this._y = this._y + 0.5;
} else {
_root.reimu._y = _root.reimu._y + 1;
}
if (_root.reimu._y == 35) {
_root.system_sw = 6;
_root.load_sw = 0;
_root.eshot_number = 0;
this.gotoAndStop(2);
_root.shotdel();
}
}
};
Symbol 259 MovieClip [bossb1] Frame 2
this.onEnterFrame = function () {
};
Symbol 261 MovieClip [eb3_1] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.system_sw == 4) {
if (this._y == -5) {
enemy_name = "enemy" + _root.enumber;
_root.attachMovie("enemy3", enemy_name, 1200 + _root.enumber);
_root[enemy_name]._x = this._x;
_root[enemy_name]._y = this._y;
if (this._x < 175) {
_root[enemy_name]._xscale = -100;
}
_root[enemy_name].count = 0;
_root[enemy_name].time1 = 0;
_root[enemy_name].number = _root.enumber;
_root.enumber++;
gotoAndStop (2);
this.removeMovieClip();
} else {
_y = (_y + 0.5);
}
}
};
Symbol 261 MovieClip [eb3_1] Frame 2
this.onEnterFrame = function () {
};
Symbol 263 MovieClip [eb2_1] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.system_sw == 4) {
if (this._y == -5) {
enemy_name = "enemy" + _root.enumber;
_root.attachMovie("enemy2", enemy_name, 1200 + _root.enumber);
_root[enemy_name]._x = this._x;
_root[enemy_name]._y = this._y;
_root[enemy_name].number = _root.enumber;
_root.enumber++;
gotoAndStop (2);
this.removeMovieClip();
} else {
_y = (_y + 0.5);
}
}
};
Symbol 263 MovieClip [eb2_1] Frame 2
this.onEnterFrame = function () {
};
Symbol 265 MovieClip [eb1_5] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.system_sw == 4) {
if (this._y == -5) {
enemy_name = "enemy" + _root.enumber;
_root.attachMovie("enemy1_5", enemy_name, 1200 + _root.enumber);
if (_x < _root.centerx) {
_root[enemy_name]._x = 0;
_root[enemy_name]._y = _x / 2;
} else {
_root[enemy_name]._x = _root.centerx * 2;
_root[enemy_name]._y = _root.centerx - (_x / 2);
}
_root[enemy_name].number = _root.enumber;
_root.enumber++;
gotoAndStop (2);
} else {
_y = (_y + 0.5);
}
}
};
Symbol 265 MovieClip [eb1_5] Frame 2
this.onEnterFrame = function () {
};
Symbol 267 MovieClip [eb1_2] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.system_sw == 4) {
if (this._y == -5) {
enemy_name = "enemy" + _root.enumber;
_root.attachMovie("enemy1_2", enemy_name, 1200 + _root.enumber);
_root[enemy_name]._x = this._x;
_root[enemy_name]._y = 75;
_root[enemy_name].number = _root.enumber;
_root.enumber++;
gotoAndStop (2);
this.removeMovieClip();
} else {
_y = (_y + 0.5);
}
}
};
Symbol 267 MovieClip [eb1_2] Frame 2
this.onEnterFrame = function () {
};
Symbol 269 MovieClip [eb1_4] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.system_sw == 4) {
if (this._y == -5) {
enemy_name = "enemy" + _root.enumber;
_root.attachMovie("enemy1_4", enemy_name, 1000 + _root.enumber);
_root[enemy_name]._x = this._x;
_root[enemy_name]._y = this._y;
_root[enemy_name].number = _root.enumber;
_root.enumber++;
gotoAndStop (2);
this.removeMovieClip();
} else {
_y = (_y + 0.5);
}
}
};
Symbol 269 MovieClip [eb1_4] Frame 2
this.onEnterFrame = function () {
};
Symbol 271 MovieClip [eb1_1] Frame 1
stop();
this.onEnterFrame = function () {
if (_root.system_sw == 4) {
if (this._y == -5) {
enemy_name = "enemy" + _root.enumber;
_root.attachMovie("enemy1_1", enemy_name, 1200 + _root.enumber);
_root[enemy_name]._x = this._x;
_root[enemy_name]._y = this._y;
_root[enemy_name].number = _root.enumber;
_root.enumber++;
gotoAndStop (2);
this.removeMovieClip();
} else {
_y = (_y + 0.5);
}
}
};
Symbol 271 MovieClip [eb1_1] Frame 2
this.onEnterFrame = function () {
};
Symbol 274 MovieClip [break] Frame 5
this.removeMovieClip();
Symbol 278 MovieClip [bomb_stoc] Frame 1
stop();
Symbol 281 MovieClip [player_stoc] Frame 1
stop();
Symbol 284 MovieClip [dead_effect] Frame 10
_root.dead_sw = 2;
this.removeMovieClip();
Symbol 290 MovieClip [cmenu] Frame 1
stop();
Symbol 292 MovieClip [SE1] Frame 1
this.removeMovieClip();
Symbol 294 MovieClip [SE2] Frame 1
this.removeMovieClip();
Symbol 296 MovieClip [SE3] Frame 1
this.removeMovieClip();
Symbol 308 MovieClip Frame 1
stop();
Symbol 309 MovieClip [menu5] Frame 1
num = 1;
while (num <= 3) {
if (_root.smode == 1) {
this["menu5_" + num]._alpha = 50;
} else {
this["menu5_" + num]._alpha = 50;
this["menu5_" + num]._visible = 0;
}
num++;
}
this["menu5_" + _root.Select3]._alpha = 100;
num = 1;
while (num <= 12) {
if (_root.smode == 1) {
this["spell" + num].gotoAndStop(10);
this["spell" + num]._visible = 0;
} else {
this["spell" + num].gotoAndStop(10);
this["spell" + _root.Select4].gotoAndStop(5);
}
num++;
}
Symbol 318 MovieClip [menu6] Frame 1
stop();
Symbol 321 MovieClip [back_ground] Frame 1
this.onEnterFrame = function () {
if ((((_root.system_sw == 4) || (_root.system_sw == 10)) || (_root.system_sw == 5)) || (_root.system_sw == 11)) {
this._visible = true;
} else {
this._visible = false;
}
this._y = this._y - 2;
if (this._y == -800) {
this._y = 0;
}
};
Symbol 323 MovieClip [sresult2] Frame 80
_root.spell_result(this);
Symbol 326 MovieClip [sresult1] Frame 80
_root.spell_result(this);
Symbol 363 MovieClip [stage_result] Frame 100
stop();
Symbol 367 MovieClip [eshot9] Frame 1
temp = 20;
time2 = 1;
this.onEnterFrame = function () {
this.moving();
_x = (_x + dx);
_y = (_y + dy);
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 368 MovieClip [eshot4] Frame 1
function moving() {
if (count < 20) {
_x = (_x + dx);
_y = (_y + dy);
count++;
} else if (count < 39) {
count++;
} else if (count < 40) {
rad = Math.atan2(_root.marisa._y - _y, _root.marisa._x - _x);
_rotation = ((rad / _root.PI1) - 90);
tempx = _x + ((_root.marisa._x - _x) * 1.2);
tempy = _y + ((_root.marisa._y - _y) * 1.2);
count++;
} else if (count < 60) {
_x = (_x + ((tempx - _x) * (kei + 0.03)));
_y = (_y + ((tempy - _y) * (kei + 0.03)));
count++;
} else if (count < 79) {
count++;
} else if (count < 80) {
rad = Math.atan2(_root.marisa._y - _y, _root.marisa._x - _x);
_rotation = ((rad / _root.PI1) - 90);
tempx = _x + ((_root.marisa._x - _x) * 1.2);
tempy = _y + ((_root.marisa._y - _y) * 1.2);
count++;
} else if (count < 92) {
_x = (_x + ((tempx - _x) * (kei + 0.1)));
_y = (_y + ((tempy - _y) * (kei + 0.1)));
count++;
} else if (count < 101) {
count++;
} else if (count < 102) {
rad = Math.atan2(_root.marisa._y - _y, _root.marisa._x - _x);
_rotation = ((rad / _root.PI1) - 90);
dis = _root.ranset(4, 6);
dx = Math.cos(rad) * dis;
dy = Math.sin(rad) * dis;
count++;
} else {
_x = (_x + dx);
_y = (_y + dy);
}
}
temp = 20;
time2 = 50;
count = 0;
this.onEnterFrame = function () {
this.moving();
time2--;
if (time2 == 0) {
_root.hit_test0(this);
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 370 MovieClip [SE8] Frame 1
this.removeMovieClip();
Symbol 372 MovieClip [SE7] Frame 1
this.removeMovieClip();
Symbol 373 MovieClip [SE6] Frame 1
this.removeMovieClip();
Symbol 375 MovieClip [SE5] Frame 1
this.removeMovieClip();
Symbol 377 MovieClip [SE4] Frame 1
this.removeMovieClip();
Symbol 379 MovieClip [shot2_2] Frame 1
function moving4() {
count++;
if (count < 15) {
_x = (_x - dx);
_y = (_y - dy);
} else if (count < 20) {
if (_root["enemy" + _root.emin]._y == undefined) {
sita = sita2;
} else {
rad = Math.atan2(_root["enemy" + _root.emin]._y - _y, _root["enemy" + _root.emin]._x - _x);
sita = Math.floor((rad / _root.PI1) + 450) % 360;
}
_x = (_x - _root.cos_list20[sita]);
_y = (_y - _root.sin_list20[sita]);
} else {
_x = (_x - _root.cos_list15[sita]);
_y = (_y - _root.sin_list15[sita]);
}
}
function moving5() {
count++;
if (count < 15) {
_x = (_x - dx);
_y = (_y - dy);
} else if (count < 20) {
rad = Math.atan2(_root.sboss._y - _y, _root.sboss._x - _x);
sita = (Math.floor((rad / _root.PI1) + 90) + 360) % 360;
_x = (_x - _root.cos_list20[sita]);
_y = (_y - _root.sin_list20[sita]);
} else {
_x = (_x - (_root.cos_list[sita] * 15));
_y = (_y - (_root.sin_list[sita] * 15));
}
}
function moving7() {
count++;
if (count < 15) {
_x = (_x - dx);
_y = (_y - dy);
} else if (count < 20) {
rad = Math.atan2(_root.reimu._y - _y, _root.reimu._x - _x);
sita = (Math.floor((rad / _root.PI1) + 90) + 360) % 360;
_x = (_x - _root.cos_list20[sita]);
_y = (_y - _root.sin_list20[sita]);
} else {
_x = (_x - (_root.cos_list[sita] * 15));
_y = (_y - (_root.sin_list[sita] * 15));
}
}
function moving11() {
count++;
if (count < 15) {
_x = (_x - dx);
_y = (_y - dy);
} else if (count < 20) {
rad = Math.atan2(_root.reimu._y - _y, _root.reimu._x - _x);
sita = (Math.floor((rad / _root.PI1) + 90) + 360) % 360;
_x = (_x - _root.cos_list20[sita]);
_y = (_y - _root.sin_list20[sita]);
} else {
_x = (_x - _root.cos_list15[sita]);
_y = (_y - _root.sin_list15[sita]);
}
}
temp = _root.system_sw;
dx = _root.cos_list15[sita];
dy = _root.sin_list15[sita];
this.onEnterFrame = function () {
_rotation = (_rotation + 15);
this["moving" + temp]();
_root["hit_test" + temp](this);
if ((((_y < -10) || (_x < -10)) || (_x > 360)) || (_y > 410)) {
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 381 MovieClip [shot2_1] Frame 1
temp = _root.system_sw;
this.onEnterFrame = function () {
_rotation = (_rotation + 30);
_x = (_x - dx);
_y = (_y - dy);
_root["hit_test" + temp](this);
if ((((_y < -10) || (_x < -10)) || (_x > 360)) || (_y > 410)) {
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 383 MovieClip [effect1] Frame 5
this.removeMovieClip();
Symbol 385 MovieClip [option] Frame 1
rans = _root.ranset(360, 0);
rans1 = 6;
this.onEnterFrame = function () {
if (Key.isDown(16) == 0) {
_root["option_move6_" + number](this);
temp_x = this._x;
temp_y = this._y;
} else {
this._x = temp_x + (_root.cos_list[rans % 360] * 3);
this._y = temp_y + (_root.sin_list[rans % 360] * 3);
rans = rans + rans1;
}
};
Symbol 387 MovieClip [shot6_2] Frame 1
temp = _root.system_sw;
this.onEnterFrame = function () {
_x = (_x - dx);
_y = (_y - dy);
_root["hit_test" + temp](this);
if ((((_y < -10) || (_x < -10)) || (_x > 360)) || (_y > 410)) {
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 389 MovieClip [shot6_1] Frame 1
temp = _root.system_sw;
this.onEnterFrame = function () {
_x = (_x - dx);
_y = (_y - dy);
_root["hit_test" + temp](this);
if ((((_y < -10) || (_x < -10)) || (_x > 360)) || (_y > 410)) {
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 391 MovieClip [option4] Frame 1
rans = _root.ranset(360, 0);
rans1 = 6;
this.onEnterFrame = function () {
_root["option_move4_" + number](this);
};
Symbol 393 MovieClip [option5] Frame 1
rans = _root.ranset(360, 0);
rans1 = 6;
this.onEnterFrame = function () {
_root["option_move5_" + number](this);
};
Symbol 395 MovieClip [option2] Frame 1
dis = 0.2;
dis2 = 0.8;
sw = 0;
this.onEnterFrame = function () {
if (Key.isDown(16) && (sw == 0)) {
this._x = _root.marisa._x;
this._y = _root.marisa._y - 1;
sw = 1;
} else {
sw = 0;
}
_root["option_move3_" + number](this);
};
Instance of Symbol 394 MovieClip "point" in Symbol 395 MovieClip [option2] Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 6;
}
Symbol 398 MovieClip [shot3] Frame 1
temp = _root.system_sw;
this.onEnterFrame = function () {
_x = (_x - dx);
_y = (_y - dy);
_root["hit_test" + temp](this);
if ((((_y < -10) || (_x < -10)) || (_x > 360)) || (_y > 410)) {
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 400 MovieClip [option3] Frame 1
this.onEnterFrame = function () {
this._rotation = this._rotation + 15;
_root.option_move7_1(this);
};
Symbol 402 MovieClip [shot7] Frame 1
temp = _root.system_sw;
this.onEnterFrame = function () {
_x = (_x - dx);
_y = (_y - dy);
_root["hit_test" + temp](this);
if ((((_y < -10) || (_x < -10)) || (_x > 360)) || (_y > 410)) {
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 412 MovieClip Frame 2
stop();
Symbol 416 MovieClip [shot8] Frame 1
temp = _root.system_sw;
this.onEnterFrame = function () {
_x = (_x - dx);
_y = (_y - dy);
_root["hit_test" + temp](this);
if ((((_y < -10) || (_x < -10)) || (_x > 360)) || (_y > 410)) {
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};
Symbol 418 MovieClip [magic1_6] Frame 1
this.onEnterFrame = function () {
num = _root.shot_number - 40;
while (num < _root.shot_number) {
if (hitTest(_root["main_shot" + num])) {
_root["main_shot" + num]._x = _root.ranset(350, 0);
}
num++;
}
};
Symbol 432 MovieClip Frame 2
stop();
Symbol 433 MovieClip [menu2] Frame 1
num = 1;
while (num <= _root.card_max) {
card_name = "card" + num;
attachMovie("card", card_name, 70 - num);
this[card_name]._x = 60 + (num * 40);
this[card_name]._y = 320;
this[card_name]._rotation = -15;
this[card_name].img.gotoAndStop(num * 5);
num++;
}
Symbol 444 MovieClip [menu3] Frame 1
num = 1;
while (num <= 4) {
this["menu3_" + num]._alpha = 50;
num++;
}
this["menu3_" + _root.Select2]._alpha = 100;
Symbol 445 MovieClip [effect2] Frame 1
count = 0;
this.onEnterFrame = function () {
count++;
if (count < 60) {
_x = (_x + ((tempx - _x) * 0.25));
_y = (_y + ((tempy - _y) * 0.25));
_alpha = (100 - (count * 3));
} else {
this.removeMovieClip();
}
};
Symbol 447 MovieClip [shot5] Frame 1
function moving4() {
count++;
if (count < 15) {
_x = (_x - dx);
_y = (_y - dy);
} else if (count < 20) {
if (_root["enemy" + _root.emin]._y == undefined) {
sita = sita2;
} else {
rad = Math.atan2(_root["enemy" + _root.emin]._y - _y, _root["enemy" + _root.emin]._x - _x);
sita = Math.floor((rad / _root.PI1) + 450) % 360;
}
_x = (_x - _root.cos_list20[sita]);
_y = (_y - _root.sin_list20[sita]);
} else {
_x = (_x - _root.cos_list15[sita]);
_y = (_y - _root.sin_list15[sita]);
}
}
temp = _root.system_sw;
if (type1 == 2) {
if (temp == 4) {
if (_root["enemy" + _root.emin]._y == undefined) {
sita = sita2;
} else {
rad = Math.atan2(_root["enemy" + _root.emin]._y - _y, _root["enemy" + _root.emin]._x - _x);
sita = Math.floor((rad / _root.PI1) + 450) % 360;
}
_rotation = sita;
dx = _root.cos_list20[sita];
dy = _root.sin_list20[sita];
} else if (temp == 5) {
rad = Math.atan2(_root.sboss._y - _y, _root.sboss._x - _x);
sita = (Math.floor((rad / _root.PI1) + 90) + 360) % 360;
_rotation = sita;
dx = _root.cos_list20[sita];
dy = _root.sin_list20[sita];
} else if ((temp == 7) || (temp == 11)) {
rad = Math.atan2(_root.reimu._y - _y, _root.reimu._x - _x);
sita = (Math.floor((rad / _root.PI1) + 90) + 360) % 360;
_rotation = sita;
dx = _root.cos_list20[sita];
dy = _root.sin_list20[sita];
}
}
this.onEnterFrame = function () {
_x = (_x - dx);
_y = (_y - dy);
_root["hit_test" + temp](this);
if ((((_y < -10) || (_x < -10)) || (_x > 360)) || (_y > 410)) {
this.removeMovieClip();
}
_root["deleter" + _root.delete_sw](this);
};