Combined Code
frame 1 {
stop();
}
movieClip 4 {
}
movieClip 9 {
}
instance of movieClip 9 {
onClipEvent (load) {
SW = false;
}
onClipEvent (enterFrame) {
LB = _root.getBytesLoaded();
TB = _root.getBytesTotal();
pp = (LB / TB) * 100;
per = Math.floor(pp);
this.bar._xscale = pp;
if (SW) {
_root.gotoAndStop(2);
SW = false;
}
if (per >= 100) {
SW = true;
}
}
}
frame 2 {
function mb_clone(x, y, name, a, b, c, d) {
++_root.mb_counter;
if (_root.mb_counter > 100) {
_root.mb_counter = 1;
}
instance_name = 'myBullet' + mb_counter;
sindo = 3000 + mb_counter;
name.duplicateMovieClip(instance_name, sindo, {'_x': x, '_y': y, 'a': a, 'b': b, 'c': c, 'd': d, 'number': mb_counter});
}
function ef_clone(x, y, name, front, a, b, c, d) {
++_root.ef_counter;
if (_root.ef_counter > 100) {
_root.ef_counter = 1;
}
instance_name = 'effect' + ef_counter;
if (front == true) {
sindo = 6000 + ef_counter;
}
if (front == false) {
sindo = 1000 + ef_counter;
}
name.duplicateMovieClip(instance_name, sindo, {'_x': x, '_y': y, 'a': a, 'b': b, 'c': c, 'd': d, 'number': ef_counter});
}
function eb_clone(x, y, name, number, a, b, c, d) {
instance_name = 'enemy' + number;
sindo = 4000 + number;
name.duplicateMovieClip(instance_name, sindo, {'_x': x, '_y': y, 'a': a, 'b': b, 'c': c, 'd': d, 'number': number});
}
function sound(name) {
(eval('_root.board.sound.' + name)).gotoAndPlay(2);
}
_root.player_select = 'mami';
_root.witch_select = 'gertrud';
_quality = 'medium';
Stage.showMenu = false;
}
// unknown tag 88 length 22
button 18 {
on (press) {
_root.gotoAndPlay('select');
}
}
frame 3 {
stop();
Mouse.show();
_root.timer = 0;
_root.timerText = '0.0';
_root.pause = 1;
_root.counter = 1;
_root.mb_counter = 1;
_root.eb_counter = 1;
_root.ef_counter = 1;
_root.eAttackCounter = 1;
_root.mouse_down = 0;
_root.prev_mouse_down = 0;
_root.space_down = 0;
_root.prev_space_down = 0;
_root.swing = 0;
_root.hp = 100;
_root.damagePerFrame = 0.4;
_root.recoverPerFrame = 0.05;
_root.result = '';
_root.sindo_map = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.put = 1;
_root.over = 0;
}
// unknown tag 88 length 73
button 36 {
on (press) {
_root.witch_select = 'gertrud';
}
}
button 41 {
on (press) {
_root.witch_select = 'incubators';
}
}
button 45 {
on (press) {
_root.player_select = 'mami';
}
}
button 49 {
on (press) {
_root.gotoAndPlay('gamestart');
}
}
movieClip 51 {
}
instance of movieClip 51 {
onClipEvent (enterFrame) {
if (_root.player_select == 'mami') {
_x = 60;
} else {
if (_root.player_select == 'homuhomu') {
_x = 140;
} else {
if (_root.player_select == 'sayaka') {
_x = 220;
}
}
}
}
}
instance of movieClip 51 {
onClipEvent (enterFrame) {
if (_root.witch_select == 'gertrud') {
_x = 60;
_y = 280;
} else {
if (_root.witch_select == 'incubators') {
_x = 540;
_y = 280;
} else {
if (_root.witch_select == 'oktavia') {
_x = 140;
_y = 280;
} else {
if (_root.witch_select == 'elly') {
_x = 220;
_y = 280;
} else {
if (_root.witch_select == 'elsamaria') {
_x = 300;
_y = 280;
} else {
if (_root.witch_select == 'charlotte') {
_x = 380;
_y = 280;
} else {
if (_root.witch_select == 'oktavia2') {
_x = 460;
_y = 280;
} else {
if (_root.witch_select == 'walpurgis') {
_x = 300;
_y = 390;
}
}
}
}
}
}
}
}
}
}
button 55 {
on (rollOver) {
_root.introduction._y = 0;
}
on (rollOut) {
_root.introduction._y = 470;
}
}
// unknown tag 88 length 145
movieClip 60 {
}
instance of movieClip 60 {
onClipEvent (enterFrame) {
this.gotoAndStop(_root.player_select);
}
}
button 64 {
on (press) {
_root.witch_select = 'oktavia';
}
}
button 68 {
on (press) {
_root.player_select = 'homuhomu';
}
}
button 72 {
on (press) {
_root.witch_select = 'elly';
}
}
button 77 {
on (press) {
_root.witch_select = 'elsamaria';
}
}
button 85 {
on (press) {
_root.witch_select = 'charlotte';
}
}
button 88 {
on (press) {
_root.player_select = 'sayaka';
}
}
button 92 {
on (press) {
_root.witch_select = 'oktavia2';
}
}
button 97 {
on (press) {
_root.witch_select = 'walpurgis';
}
}
// unknown tag 88 length 142
movieClip 102 {
}
movieClip 108 {
}
instance bgm of movieClip 108 {
onClipEvent (load) {
this.stop();
}
}
movieClip 110 {
}
movieClip 117 {
}
movieClip 119 {
}
movieClip 121 {
}
movieClip 123 {
instance of movieClip 117 {
onClipEvent (load) {
frame = 0;
y = _y;
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
++frame;
_y = y + 12 * Math.sin(frame / 73);
}
}
}
instance of movieClip 119 {
onClipEvent (load) {
frame = 0;
y = _y;
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
++frame;
_y = y + 8 * -Math.sin(frame / 52);
}
}
}
instance of movieClip 121 {
onClipEvent (load) {
frame = 0;
y = _y;
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
++frame;
_y = y + 9 * Math.sin(frame / 59);
}
}
}
}
movieClip 137 {
}
movieClip 148 {
instance of movieClip 137 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
if (_root.result == 'gameclear') {
if (_y != 500) {
i = 1;
while (i < 60) {
_root.ef_clone(10 * i, _y, _root.board.effect.explosion, false, 50);
++i;
}
}
_y = 500;
}
}
}
instance of movieClip 117 {
onClipEvent (load) {
frame = 0;
y = _y;
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
++frame;
_y = y + 12 * Math.sin(frame / 73);
}
}
}
instance of movieClip 119 {
onClipEvent (load) {
frame = 0;
y = _y;
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
++frame;
_y = y + 8 * -Math.sin(frame / 52);
}
}
}
instance of movieClip 121 {
onClipEvent (load) {
frame = 0;
y = _y;
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
++frame;
_y = y + 9 * Math.sin(frame / 59);
}
}
}
}
movieClip 150 {
}
movieClip 151 {
instance charbody of movieClip 150 {
onClipEvent (load) {
hp = 0;
clone_number = a;
_xscale = b;
_yscale = b;
if (this != eval(_root.board.back_effect.charbody)) {
this.gotoAndPlay(2);
} else {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.back_effect.charbody) && _root.pause == 0) {
if (clone_number == 1) {
tx = _root.board.enemy.enemy0._x;
ty = _root.board.enemy.enemy0._y;
d = Math.sqrt((tx - _x) * (tx - _x) + (ty - _y) * (ty - _y));
while (d > 35) {
_x = _x + (_root.board.enemy.enemy0._x - _x) * 0.2;
_y = _y + (_root.board.enemy.enemy0._y - _y) * 0.2;
d = Math.sqrt((tx - _x) * (tx - _x) + (ty - _y) * (ty - _y));
}
} else {
tx = _root.board.back_effect['charbody' + (clone_number - 1)]._x;
ty = _root.board.back_effect['charbody' + (clone_number - 1)]._y;
d = Math.sqrt((tx - _x) * (tx - _x) + (ty - _y) * (ty - _y));
while (d > b / 3) {
_x = _x + (_root.board.back_effect['charbody' + (clone_number - 1)]._x - _x) * 0.2;
_y = _y + (_root.board.back_effect['charbody' + (clone_number - 1)]._y - _y) * 0.2;
d = Math.sqrt((tx - _x) * (tx - _x) + (ty - _y) * (ty - _y));
}
}
if (_root.board.enemy.enemy0.hp <= 0) {
this.removeMovieClip();
}
}
}
}
}
movieClip 154 {
}
movieClip 156 {
}
movieClip 167 {
}
movieClip 176 {
frame 60 {
if (_parent.roseSensor == 1) {
this.gotoAndPlay('loop_start');
}
}
frame 356 {
_parent.zyoutai = 'stand';
_parent.gotoAndPlay('stand');
}
}
movieClip 177 {
frame 1 {
stop();
}
instance of movieClip 167 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
frame 2 {
stop();
}
instance of movieClip 176 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
}
movieClip 179 {
}
movieClip 181 {
}
movieClip 183 {
}
movieClip 188 {
}
movieClip 190 {
frame 109 {
_parent.zyoutai = 'stand';
_parent.gotoAndStop('stand');
}
}
movieClip 191 {
frame 1 {
stop();
}
instance of movieClip 188 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
frame 2 {
stop();
}
instance of movieClip 190 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
}
movieClip 200 {
frame 6 {
stop();
}
}
movieClip 209 {
}
movieClip 211 {
}
movieClip 212 {
instance of movieClip 209 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
instance of movieClip 209 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
instance gamen of movieClip 211 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
}
movieClip 217 {
}
movieClip 222 {
}
movieClip 225 {
}
movieClip 226 {
instance of movieClip 217 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
instance of movieClip 222 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
instance of movieClip 225 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
}
movieClip 232 {
frame 2 {
goFrame = Math.round(Math.random() * 4 + 2.5);
gotoAndStop(goFrame);
}
}
movieClip 234 {
}
movieClip 239 {
}
movieClip 241 {
}
movieClip 244 {
}
movieClip 249 {
frame 30 {
_root.board.back_effect.charbody.duplicateMovieClip('charbody1', 100, {'_x': _parent._x, '_y': _parent._y, 'a': 1, 'b': 105});
_root.board.back_effect.charbody.duplicateMovieClip('charbody2', 99, {'_x': _parent._x, '_y': _parent._y, 'a': 2, 'b': 100});
_root.board.back_effect.charbody.duplicateMovieClip('charbody3', 98, {'_x': _parent._x, '_y': _parent._y, 'a': 3, 'b': 95});
_root.board.back_effect.charbody.duplicateMovieClip('charbody4', 97, {'_x': _parent._x, '_y': _parent._y, 'a': 4, 'b': 90});
_root.board.back_effect.charbody.duplicateMovieClip('charbody5', 96, {'_x': _parent._x, '_y': _parent._y, 'a': 5, 'b': 85});
_root.board.back_effect.charbody.duplicateMovieClip('charbody6', 95, {'_x': _parent._x, '_y': _parent._y, 'a': 6, 'b': 80});
_root.board.back_effect.charbody.duplicateMovieClip('charbody7', 94, {'_x': _parent._x, '_y': _parent._y, 'a': 7, 'b': 75});
_root.board.back_effect.charbody.duplicateMovieClip('charbody8', 93, {'_x': _parent._x, '_y': _parent._y, 'a': 8, 'b': 70});
_root.witch_hp_meter.face.gotoAndStop('charlotte2');
_parent.zyoutai = 'chase';
_parent.gotoAndStop('chase');
}
}
movieClip 256 {
instance of movieClip 249 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
}
movieClip 261 {
}
movieClip 270 {
frame 100 {
_parent.zyoutai = 'stand';
_parent.gotoAndStop('stand');
}
}
movieClip 271 {
frame 1 {
stop();
}
instance of movieClip 261 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
frame 2 {
stop();
}
instance of movieClip 270 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
}
movieClip 283 {
frame 2 {
if (Math.random() > 0.5) {
gotoAndPlay('a');
} else {
gotoAndPlay('b');
}
}
frame 42 {
gotoAndPlay('a');
}
frame 82 {
gotoAndPlay('b');
}
}
movieClip 294 {
frame 40 {
_parent.gotoAndPlay('stand');
}
}
movieClip 315 {
frame 93 {
_root.eb_clone(_parent._x, _parent._y, _root.board.enemy.laser_set, 13);
_parent.zyoutai = 'attack2';
_parent.gotoAndPlay('stand2');
}
}
movieClip 322 {
}
movieClip 326 {
}
movieClip 327 {
frame 1 {
a = 'off';
stop();
}
frame 2 {
a = 'on';
}
frame 70 {
gotoAndStop('off');
}
}
movieClip 351 {
instance laserB of movieClip 327 {
onClipEvent (enterFrame) {
if (_root.pause == 0 && a == 'on') {
play();
} else {
stop();
}
}
}
instance laserA of movieClip 327 {
onClipEvent (enterFrame) {
if (_root.pause == 0 && a == 'on') {
play();
} else {
stop();
}
}
}
frame 130 {
_root.eb_clone(490, 40, _root.board.enemy.bit, 11, 1);
_root.eb_clone(110, 40, _root.board.enemy.bit, 12, 2);
_parent.zyoutai = 'attack3';
_parent.gotoAndPlay('stand3');
}
}
movieClip 353 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance of movieClip 294 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
frame 3 {
stop();
}
instance of movieClip 315 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
frame 4 {
stop();
}
frame 5 {
stop();
}
instance of movieClip 351 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
frame 6 {
stop();
}
}
movieClip 357 {
}
movieClip 360 {
frame 1 {
stop();
}
}
movieClip 361 {
frame 1 {
stop();
}
frame 25 {
hp = 0;
}
}
movieClip 363 {
}
movieClip 365 {
frame 1 {
a = 'off';
stop();
}
frame 2 {
a = 'on';
}
frame 42 {
_root.board.enemy.enemy0.handou = 1;
}
frame 110 {
_root.board.enemy.enemy0.handou = 0;
gotoAndStop('off');
}
}
movieClip 366 {
instance laserC of movieClip 365 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
if (a == 'on') {
play();
}
} else {
stop();
}
}
}
instance laserB of movieClip 327 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
if (a == 'on') {
play();
} else {
if (_root.board.enemy.enemy0.zyoutai == 'attack3') {
tx = _root.board.player._x;
ty = _root.board.player._y;
rad = Math.atan2(ty - (_parent._y + 120), tx - (_parent._x - 110));
_rotation = rad * 180 / Math.PI - 90;
}
}
} else {
stop();
}
}
}
instance laserA of movieClip 327 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
if (a == 'on') {
play();
} else {
if (_root.board.enemy.enemy0.zyoutai == 'attack3') {
tx = _root.board.player._x;
ty = _root.board.player._y;
rad = Math.atan2(ty - (_parent._y + 120), tx - (_parent._x + 110));
_rotation = rad * 180 / Math.PI - 90;
}
}
} else {
stop();
}
}
}
}
movieClip 367 {
instance anthony of movieClip 154 {
onClipEvent (load) {
frame = 0;
hp = 1;
speed = 1.5;
bure_t = Math.random() * 30 + 15;
bure_a = Math.random() * 0.8 + 0.4;
tx = Math.random() * 500 + 50;
ty = Math.random() * 250 + 50;
tx_bara = Math.random() * 110 + 460;
ty_bara = Math.random() * 10 + 285;
if (this == eval(_root.board.enemy.anthony)) {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.anthony) && _root.pause == 0) {
++frame;
d = Math.sqrt((tx - _x) * (tx - _x) + (ty - _y) * (ty - _y));
if (_root.board.enemy.enemy0.zyoutai == 'stand') {
if (d < 3) {
if (Math.random() < 0.7) {
tx = _root.board.player._x;
ty = _root.board.player._y;
} else {
tx = Math.random() * 500 + 50;
ty = Math.random() * 250 + 50;
}
}
rad = Math.atan2(ty - _y, tx - _x);
vx = Math.cos(rad) * speed;
vy = Math.sin(rad) * speed;
this.gotoAndStop('normal');
} else {
tx = tx_bara;
ty = ty_bara + Math.sin(frame / bure_t) * bure_a;
if (d > 3) {
rad = Math.atan2(ty - _y, tx - _x);
vx = Math.cos(rad) * speed;
vy = Math.sin(rad) * speed;
} else {
vx = (tx - _x) * 0.5;
vy = (ty - _y) * 0.5;
}
this.gotoAndStop('defense');
}
_x = _x + vx;
_y = _y + vy;
_y = _y + Math.sin(frame / bure_t) * bure_a;
if (vx > 0) {
_xscale = -100;
} else {
_xscale = 100;
}
if (hp <= 0) {
i = 1;
while (i < 10) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 80);
++i;
}
_root.sound('gekiha');
_root.sindo_map[number] = 0;
this.removeMovieClip();
}
}
}
}
instance adelbert of movieClip 156 {
onClipEvent (load) {
frame = 0;
hp = 3;
speed = 2;
bure_t = Math.random() * 30 + 15;
bure_a = Math.random() * 0.8 + 0.4;
tx = _x;
ty = _y;
if (this == eval(_root.board.enemy.adelbert)) {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.adelbert) && _root.pause == 0) {
++frame;
tx = _root.board.player._x;
ty = _root.board.player._y;
d = Math.sqrt((tx - _x) * (tx - _x) + (ty - _y) * (ty - _y));
if (d > 3) {
rad = Math.atan2(ty - _y, tx - _x);
vx = Math.cos(rad) * speed;
vy = Math.sin(rad) * speed;
} else {
vx = (tx - _x) * 0.5;
vy = (ty - _y) * 0.5;
}
_x = _x + vx;
_y = _y + vy;
_y = _y + Math.sin(frame / bure_t) * bure_a;
if (vx > 0) {
_xscale = -100;
} else {
_xscale = 100;
}
if (hp <= 0) {
i = 1;
while (i < 10) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 100);
++i;
}
_root.sound('gekiha');
_root.sindo_map[number] = 0;
this.removeMovieClip();
}
}
}
}
instance gertrud of movieClip 177 {
onClipEvent (load) {
frame = 0;
max_hp = 200;
hp = max_hp;
roseSensor = 0;
counter = 0;
zyoutai = 'stand';
tuta_exist11 = 0;
tuta_exist12 = 0;
if (this == eval(_root.board.enemy.gertrud)) {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.gertrud) && _root.pause == 0) {
++frame;
if (_root.board.player._x > 450 && _root.board.player._y > 200 || _root.board.m_atk.hitTest(462, 295, true) || _root.board.m_atk.hitTest(482, 295, true) || _root.board.m_atk.hitTest(502, 295, true) || _root.board.m_atk.hitTest(522, 295, true) || _root.board.m_atk.hitTest(542, 295, true) || _root.board.m_atk.hitTest(562, 295, true)) {
roseSensor = 1;
} else {
roseSensor = 0;
}
if (roseSensor == 1 && zyoutai == 'stand') {
this.gotoAndPlay('defense');
zyoutai = 'defense';
}
if (zyoutai == 'stand') {
px = _root.board.player._x;
py = _root.board.player._y;
if ((80 < px && px < 160 && py > 250 || frame % 700 == 100) && tuta_exist11 == 0) {
_root.ef_clone(125, 340, _root.board.effect.adelbert_klein, true, 11);
tuta_exist11 = 1;
}
if ((240 < px && px < 450 && py > 250 || frame % 700 == 450) && tuta_exist12 == 0) {
_root.ef_clone(285, 340, _root.board.effect.adelbert_klein, true, 12);
tuta_exist12 = 1;
}
}
if (frame % 200 == 50 && _root.over == 0) {
_root.eb_clone(630, Math.random() * 150 + 50, _root.board.enemy.anthony, _root.put);
_root.sindo_map[_root.put] = 1;
}
if (frame % 200 == 150 && _root.over == 0) {
_root.eb_clone(630, Math.random() * 150 + 50, _root.board.enemy.adelbert, _root.put);
_root.sindo_map[_root.put] = 1;
}
if (hp <= 0) {
i = 1;
while (i < 30) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 150);
++i;
}
_root.sound('gekiha2');
_root.witch_hp_meter.gotoAndStop(201);
i = 0;
while (i <= 15) {
_root.board.enemy['enemy' + i].hp = 0;
++i;
}
if (_root.result == '') {
_root.result = 'gameclear';
_root.gotoAndPlay('result');
}
this.removeMovieClip();
}
}
}
}
instance tuta of movieClip 179 {
onClipEvent (load) {
frame = 0;
hp = 5;
if (this == eval(_root.board.enemy.tuta)) {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.tuta) && _root.pause == 0) {
if (_root.board.enemy.enemy0.zyoutai == 'stand') {
++frame;
if (_y > 350 && frame <= 200) {
_y = _y - 4;
}
} else {
if (_root.board.enemy.enemy0.zyoutai == 'defense') {
_y = _y + 8;
if (_y > 450) {
_root.board.enemy.enemy0['tuta_exist' + number] = 0;
this.removeMovieClip();
}
}
}
if (hp <= 0) {
i = 1;
while (i < 15) {
_root.ef_clone(_x, _y - i * 10, _root.board.effect.explosion, false, 80);
++i;
}
_root.sound('gekiha');
_root.board.enemy.enemy0['tuta_exist' + number] = 0;
this.removeMovieClip();
}
}
}
}
instance incubator_boss of movieClip 181 {
onClipEvent (load) {
frame = 0;
max_hp = 100;
hp = max_hp;
counter = 0;
zyoutai = 'stand';
if (this == eval(_root.board.enemy.incubator_boss)) {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.incubator_boss) && _root.pause == 0) {
++frame;
interval = Math.round(hp / 4) + 1;
if (frame % interval == 0 && _root.over == 0) {
_root.eb_clone(Math.random() * 560 + 20, 30, _root.board.enemy.incubator, _root.put);
_root.sindo_map[_root.put] = 1;
}
if (hp <= 0) {
i = 1;
while (i < 30) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 150);
++i;
}
_root.sound('gekiha2');
_root.witch_hp_meter.gotoAndStop(201);
i = 0;
while (i <= 15) {
_root.board.enemy['enemy' + i].hp = 0;
++i;
}
if (_root.result == '') {
_root.result = 'gameclear';
_root.gotoAndPlay('result');
}
this.removeMovieClip();
}
}
}
}
instance incubator of movieClip 183 {
onClipEvent (load) {
frame = 0;
hp = 0.5;
vx = Math.random() * 4 + 2;
if (Math.random() > 0.5) {
vx *= -1;
}
vy = 0;
if (this == eval(_root.board.enemy.incubator)) {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.incubator) && _root.pause == 0) {
++frame;
if (_x < 25) {
_x = _x + 2;
vx *= -1;
}
if (_x > 575) {
_x = _x - 2;
vx *= -1;
}
if (_y < 18) {
_y = _y + 2;
vy *= -1;
}
if (_y > 332) {
_y = _y - 2;
vy *= -1;
}
vy += 0.2;
_x = _x + vx;
_y = _y + vy;
if (hp <= 0) {
i = 1;
while (i < 10) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 100);
++i;
}
_root.sound('gekiha');
_root.board.enemy.enemy0.hp -= 1;
_root.sindo_map[number] = 0;
this.removeMovieClip();
}
}
}
}
instance oktavia of movieClip 191 {
onClipEvent (load) {
frame = 0;
max_hp = 270;
hp = max_hp;
counter = 0;
zyoutai = 'stand';
zyoutai2 = 'middle';
vx = 0;
vy = 0;
x = _x;
y = _y;
if (this == eval(_root.board.enemy.oktavia)) {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.oktavia) && _root.pause == 0) {
interval = Math.round(hp / 27 + 10);
if (hp < max_hp) {
++frame;
}
if (frame % 600 == 1) {
zyoutai = 'attack';
this.gotoAndStop('attack');
}
if (frame % 2400 == 300) {
zyoutai = 'rightMove';
zyoutai2 = 'right';
}
if (frame % 2400 == 900) {
zyoutai = 'middleMove';
zyoutai2 = 'middle';
}
if (frame % 2400 == 1500) {
zyoutai = 'leftMove';
zyoutai2 = 'left';
}
if (frame % 2400 == 2100) {
zyoutai = 'middleMove';
zyoutai2 = 'middle';
}
if (zyoutai == 'stand') {
vx = 0;
}
if (zyoutai == 'attack' && frame % interval == 0 && _root.over == 0) {
if (zyoutai2 == 'right') {
_root.eb_clone(Math.random() * 300 + 50, 40, _root.board.enemy.wheel, _root.put);
_root.sindo_map[_root.put] = 1;
} else {
if (zyoutai2 == 'left') {
_root.eb_clone(Math.random() * 300 + 250, 40, _root.board.enemy.wheel, _root.put);
_root.sindo_map[_root.put] = 1;
} else {
if (zyoutai2 == 'middle') {
_root.eb_clone(Math.random() * 500 + 50, 40, _root.board.enemy.wheel, _root.put);
_root.sindo_map[_root.put] = 1;
}
}
}
}
if (zyoutai == 'rightMove') {
vx = (480 - _x) * 0.2;
if (vx > 3) {
vx = 3;
}
if (frame % interval == 0) {
_root.eb_clone(_x, 80, _root.board.enemy.wheel, _root.put);
_root.sindo_map[_root.put] = 1;
}
if (_x > 478) {
zyoutai = 'stand';
}
}
if (zyoutai == 'middleMove') {
vx = (300 - _x) * 0.2;
if (vx > 3) {
vx = 3;
} else {
if (vx < -3) {
vx = -3;
}
}
if (frame % interval == 0) {
_root.eb_clone(_x, 80, _root.board.enemy.wheel, _root.put);
_root.sindo_map[_root.put] = 1;
}
if (_x > 298 && _x < 302) {
zyoutai = 'stand';
}
}
if (zyoutai == 'leftMove') {
vx = (120 - _x) * 0.2;
if (vx < -3) {
vx = -3;
}
if (frame % interval == 0) {
_root.eb_clone(_x, 80, _root.board.enemy.wheel, _root.put);
_root.sindo_map[_root.put] = 1;
}
if (_x < 122) {
zyoutai = 'stand';
}
}
x += vx;
y += vy;
_x = x;
_y = y + Math.sin(frame / 60) * 10;
if (hp <= 0) {
i = 1;
while (i < 30) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 150);
++i;
}
_root.sound('gekiha2');
_root.witch_hp_meter.gotoAndStop(201);
i = 0;
while (i <= 15) {
_root.board.enemy['enemy' + i].hp = 0;
++i;
}
if (_root.result == '') {
_root.result = 'gameclear';
_root.gotoAndPlay('result');
}
this.removeMovieClip();
}
}
}
}
instance wheel of movieClip 200 {
onClipEvent (load) {
frame = 0;
hp = 3;
vx = 0;
vy = 0;
_rotation = Math.random() * Math.PI;
rotSpeed = Math.random() * 12 + 2;
if (Math.random() > 0.5) {
rotSpeed *= -1;
}
reflected = 0;
if (this == eval(_root.board.enemy.wheel)) {
gotoAndStop(1);
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.wheel) && _root.pause == 0) {
++frame;
if (_x < -40) {
_root.sindo_map[number] = 0;
this.removeMovieClip();
}
if (_x > 640) {
_root.sindo_map[number] = 0;
this.removeMovieClip();
}
if (_y > 305) {
_y = 305;
vy *= -Math.abs(rotSpeed / 14);
reflected = 1;
}
if (reflected == 1) {
vx = rotSpeed / 2;
}
vy += 0.2;
_x = _x + vx;
_y = _y + vy;
_rotation = _rotation + rotSpeed;
if (hp <= 0) {
i = 1;
while (i < 10) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 100);
++i;
}
_root.sound('gekiha');
_root.sindo_map[number] = 0;
this.removeMovieClip();
}
}
}
}
instance elly of movieClip 212 {
onClipEvent (load) {
frame = 0;
max_hp = 160;
hp = max_hp;
vx = 0;
vy = 0;
tx = 300;
ty = 70;
attack1 = 3;
attack2 = 3;
attack3 = 3;
if (this == eval(_root.board.enemy.elly)) {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.elly) && _root.pause == 0) {
play();
++frame;
if (frame % 150 == 0 && _root.over == 0) {
if (Math.random() > 0.5) {
_root.eb_clone(-50, Math.random() * 150 + 50, _root.board.enemy.daniyyel, _root.put);
} else {
_root.eb_clone(650, Math.random() * 150 + 50, _root.board.enemy.daniyyel, _root.put);
}
_root.sindo_map[_root.put] = 1;
}
if (hp < 120 && attack1 > 0 && frame % 20 == 5 && _root.over == 0) {
_root.eb_clone(_x, _y, _root.board.enemy.daniyyel, _root.put);
_root.sindo_map[_root.put] = 1;
attack1 -= 1;
}
if (hp < 80 && attack2 > 0 && frame % 20 == 10 && _root.over == 0) {
_root.eb_clone(_x, _y, _root.board.enemy.daniyyel, _root.put);
_root.sindo_map[_root.put] = 1;
attack2 -= 1;
}
if (hp < 40 && attack3 > 0 && frame % 20 == 15 && _root.over == 0) {
_root.eb_clone(_x, _y, _root.board.enemy.daniyyel, _root.put);
_root.sindo_map[_root.put] = 1;
attack3 -= 1;
}
if (frame % 120 == 0) {
if (tx <= 300) {
tx = Math.random() * 230 + 320;
} else {
tx = Math.random() * 230 + 50;
}
ty = Math.random() * 30 + 70;
}
vx = (tx - _x) * 0.02;
vy = (ty - _y) * 0.02;
_rotation = vx;
_x = _x + vx;
_y = _y + vy;
if (hp <= 0) {
i = 1;
while (i < 30) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 150);
++i;
}
_root.sound('gekiha2');
_root.witch_hp_meter.gotoAndStop(201);
i = 0;
while (i <= 15) {
_root.board.enemy['enemy' + i].hp = 0;
++i;
}
if (_root.result == '') {
_root.result = 'gameclear';
_root.gotoAndPlay('result');
}
this.removeMovieClip();
}
} else {
stop();
}
}
}
instance daniyyel of movieClip 226 {
onClipEvent (load) {
frame = 0;
hp = 0.5;
speed = 1.7;
tx = _x;
ty = _y;
if (Math.random() > 0.5) {
_xscale = -100;
}
if (Math.random() > 0.66) {
this.gotoAndStop('stand');
} else {
if (Math.random() > 0.33) {
this.gotoAndStop('umauma');
} else {
this.gotoAndStop('tv');
}
}
if (this == eval(_root.board.enemy.daniyyel)) {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.daniyyel) && _root.pause == 0) {
++frame;
d = Math.sqrt((tx - _x) * (tx - _x) + (ty - _y) * (ty - _y));
if (d < 3 || Math.random() < 0.01) {
if (Math.random() < 0.7) {
tx = _root.board.player._x;
ty = _root.board.player._y;
} else {
tx = Math.random() * 500 + 50;
ty = Math.random() * 20 + 100;
}
}
d = Math.sqrt((tx - _x) * (tx - _x) + (ty - _y) * (ty - _y));
if (d > 3) {
rad = Math.atan2(ty - _y, tx - _x);
vx = Math.cos(rad) * speed;
vy = Math.sin(rad) * speed;
} else {
vx = (tx - _x) * 0.5;
vy = (ty - _y) * 0.5;
}
_x = _x + vx;
_y = _y + vy;
if (hp <= 0) {
i = 1;
while (i < 10) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 100);
++i;
}
_root.sound('gekiha');
_root.sindo_map[number] = 0;
this.removeMovieClip();
}
}
}
}
instance sebastians of movieClip 232 {
onClipEvent (load) {
frame = 0;
hp = 1.5;
vx = 0;
vy = 0;
prev_x = _x;
prev_y = _y;
accelStart = false;
if (_x > _root.board.player._x) {
rad = -Math.PI * (Math.random() * 0.1 + 0.55);
} else {
rad = -Math.PI * (Math.random() * -0.1 + 0.45);
}
rot = rad * 180 / Math.PI;
_rotation = rot;
RotSpeed = 0;
speed = Math.random() * 8 + 14;
maxSpeed = 8;
spd = 1.5;
if (this == eval(_root.board.enemy.sebastians)) {
_x = -1000;
this.stop();
} else {
this.gotoAndPlay(2);
_root.board.effect.sebasbody.duplicateMovieClip('sebasbody' + a, 7000 + a, {'_x': 0, '_y': 0, 'number': number});
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.sebastians) && _root.pause == 0) {
++frame;
tx = _root.board.player._x;
ty = _root.board.player._y;
d = Math.sqrt((tx - _x) * (tx - _x) + (ty - _y) * (ty - _y));
if (d > 30) {
if (accelStart == false) {
if (spd < 3) {
spd += 0.3;
}
speed *= 0.9300000000000001;
if (speed < 1.5) {
accelStart = true;
}
} else {
spd = 0.8;
if (speed < maxSpeed) {
speed += 0.5;
}
}
rad = Math.atan2(_root.board.player._y - _y, _root.board.player._x - _x);
rot = rad * 180 / Math.PI;
if (_rotation - 180 > rot) {
rot += 360;
}
if (_rotation + 180 < rot) {
rot -= 360;
}
if (_rotation - rot > spd) {
RotSpeed = -spd;
} else {
if (_rotation - rot < -spd) {
RotSpeed = spd;
} else {
RotSpeed *= 0.2;
}
}
_rotation = _rotation + RotSpeed;
rad2 = _rotation * Math.PI / 180;
vx = Math.cos(rad2) * speed;
vy = Math.sin(rad2) * speed;
} else {
vx = (tx - 25 * Math.cos(rad) - _x) * 0.06;
vy = (ty - 25 * Math.sin(rad) - _y) * 0.06;
}
prev_x = _x;
prev_y = _y;
_x = _x + vx;
_y = _y + vy;
if (_rotation > 90 || _rotation < -90) {
_yscale = -100;
} else {
_yscale = 100;
}
if (hp <= 0) {
i = 1;
while (i < 10) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 100);
++i;
}
_root.sound('gekiha');
_root.sindo_map[number] = 0;
this.removeMovieClip();
}
if (_x < 0 || _x > 600 || _y > 350 || _y < 0) {
_root.sindo_map[number] = 0;
this.removeMovieClip();
}
}
}
}
instance elsamaria of movieClip 234 {
onClipEvent (load) {
frame = 0;
max_hp = 200;
hp = max_hp;
counter = 1;
zyoutai = 'stand';
if (this == eval(_root.board.enemy.elsamaria)) {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.elsamaria) && _root.pause == 0) {
++frame;
interval = 180 + hp / 4;
if (frame % 280 >= interval && frame % 20 == 0 && _root.over == 0) {
place = Math.random() * 200 + 210;
_root.eb_clone(place, 310 - place * 0.05, _root.board.enemy.sebastians, _root.put, counter, 0, 0, 0);
_root.sindo_map[_root.put] = 1;
++counter;
}
if (_root.board.player._x > 300 && zyoutai == 'stand') {
_root.eb_clone(_x, _y, _root.board.enemy.hair, 11);
_root.eb_clone(_x, _y, _root.board.enemy.hair2, 12);
zyoutai = 'hair';
}
if (hp <= 0) {
i = 1;
while (i < 30) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 150);
++i;
}
_root.sound('gekiha2');
_root.witch_hp_meter.gotoAndStop(201);
i = 0;
while (i <= 15) {
_root.board.enemy['enemy' + i].hp = 0;
++i;
}
if (_root.result == '') {
_root.result = 'gameclear';
_root.gotoAndPlay('result');
}
this.removeMovieClip();
}
}
}
}
instance hair of movieClip 239 {
onClipEvent (load) {
frame = 1;
hp = 60;
prev_hp = 100;
notPierce = true;
if (this == eval(_root.board.enemy.hair)) {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.hair) && _root.pause == 0) {
++frame;
if (hp <= 0) {
i = 1;
while (i < 15) {
_root.ef_clone(_x, _y - i * 10, _root.board.effect.explosion, false, 80);
++i;
}
_root.sound('gekiha');
this.removeMovieClip();
}
if (frame >= 40) {
if (hp < 15) {
this.gotoAndStop(1);
} else {
if (hp < 30) {
this.gotoAndStop(11);
} else {
if (hp < 45) {
this.gotoAndStop(21);
} else {
this.gotoAndStop(31);
}
}
}
}
if (prev_hp > 45 && hp <= 45 || prev_hp > 30 && hp <= 30 || prev_hp > 15 && hp <= 15) {
_root.sound('gekiha');
}
prev_hp = hp;
}
if (_root.pause == 0 && frame < 40) {
play();
} else {
stop();
}
}
}
instance hair2 of movieClip 241 {
onClipEvent (load) {
frame = 1;
hp = 20;
notPierce = true;
if (this == eval(_root.board.enemy.hair2)) {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.hair2) && _root.pause == 0) {
++frame;
if (hp <= 0) {
i = 1;
while (i < 15) {
_root.ef_clone(_x, _y - i * 10, _root.board.effect.explosion, false, 80);
++i;
}
_root.sound('gekiha');
this.removeMovieClip();
}
}
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
instance pyotr of movieClip 244 {
onClipEvent (load) {
frame = 0;
hp = 1;
vx = Math.random() * -1 - 1;
vy = 0;
if (this == eval(_root.board.enemy.pyotr)) {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.pyotr) && _root.pause == 0) {
++frame;
_x = _x + vx;
_y = _y + vy;
if (hp <= 0) {
i = 1;
while (i < 10) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 100);
++i;
}
_root.sound('gekiha');
_root.sindo_map[number] = 0;
this.removeMovieClip();
}
if (_x < -20) {
_root.sindo_map[number] = 0;
this.removeMovieClip();
}
}
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
instance charlotte of movieClip 256 {
onClipEvent (load) {
this.stop();
frame = 0;
max_hp = 280;
hp = max_hp;
zyoutai = 'stand';
aRotSpeed = 0.1;
RotSpeedMax = 7;
tx = _root.board.player._x;
ty = _root.board.player._y;
rotated = 0;
RotSpeed = 0;
speed = 0;
fail_counter = 0;
if (this == eval(_root.board.enemy.charlotte)) {
_x = -1000;
} else {
this.swapDepths(3999);
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.charlotte) && _root.pause == 0) {
++frame;
if (frame % 550 >= 25 && frame % 550 <= 125 && frame % 25 == 0 && _root.over == 0) {
_root.eb_clone(620, 323, _root.board.enemy.pyotr, _root.put);
_root.sindo_map[_root.put] = 1;
}
if (zyoutai == 'chase') {
this.gotoAndStop('chase');
if (rotated == 0) {
rad = Math.atan2(ty - _y, tx - _x);
rot = rad * 180 / Math.PI;
_rotation = rot;
rotated = 1;
}
d = Math.sqrt((tx - _x) * (tx - _x) + (ty - _y) * (ty - _y));
if (d > 200) {
tx = _root.board.player._x;
ty = _root.board.player._y;
rad = Math.atan2(ty - _y, tx - _x);
rot = rad * 180 / Math.PI;
if (_rotation - 180 > rot) {
rot += 360;
}
if (_rotation + 180 < rot) {
rot -= 360;
}
if (_rotation - rot > RotSpeedMax) {
RotSpeed -= aRotSpeed;
} else {
if (_rotation - rot < -RotSpeedMax) {
RotSpeed += aRotSpeed;
} else {
RotSpeed *= 0.5;
}
}
if (RotSpeed > RotSpeedMax) {
RotSpeed = RotSpeedMax;
}
if (-RotSpeed < -RotSpeedMax) {
RotSpeed = RotSpeedMax;
}
_rotation = _rotation + RotSpeed;
if (speed < 8) {
speed += 0.1;
}
rad2 = _rotation * Math.PI / 180;
vx = Math.cos(rad2) * speed;
vy = Math.sin(rad2) * speed;
} else {
if (d > 20) {
vx = (tx - _x) * 0.1;
vy = (ty - _y) * 0.1;
rad = Math.atan2(ty - _y, tx - _x);
rot = rad * 180 / Math.PI;
_rotation = rot;
if (_rotation - 180 > rot) {
rot += 360;
}
if (_rotation + 180 < rot) {
rot -= 360;
}
} else {
zyoutai = 'eat';
vx = 0;
vy = 0;
}
}
}
if (zyoutai == 'eat') {
this.gotoAndStop('eat');
if (_root.result == '') {
_root.sound('eat');
}
px = _root.board.player._x;
py = _root.board.player._y;
pd = Math.sqrt((px - _x) * (px - _x) + (py - _y) * (py - _y));
if (pd < 40) {
_root.hp -= 9999;
} else {
if (_root.hp > 0) {
zyoutai = 'fail';
}
}
}
if (zyoutai == 'fail') {
++fail_counter;
if (fail_counter == Math.round(40 + hp / 8)) {
ran = Math.random();
if (ran > 0.66) {
this.gotoAndStop('fail1');
} else {
if (ran > 0.33) {
this.gotoAndStop('fail2');
} else {
this.gotoAndStop('fail3');
}
}
}
if (fail_counter > 2 * (40 + hp / 8)) {
fail_counter = 0;
rotated = 0;
tx = _root.board.player._x;
ty = _root.board.player._y;
zyoutai = 'chase';
}
}
_x = _x + vx;
_y = _y + vy;
if (_rotation > 90 || _rotation < -90) {
_yscale = -100;
} else {
_yscale = 100;
}
if (hp <= 270 && zyoutai == 'stand') {
zyoutai = 'change';
this.gotoAndStop('change');
}
if (hp <= 0) {
i = 1;
while (i < 30) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 150);
++i;
}
_root.sound('gekiha2');
_root.witch_hp_meter.gotoAndStop(201);
i = 0;
while (i <= 15) {
_root.board.enemy['enemy' + i].hp = 0;
++i;
}
if (_root.result == '') {
_root.result = 'gameclear';
_root.gotoAndPlay('result');
}
this.removeMovieClip();
}
}
}
}
instance oktavia2 of movieClip 271 {
onClipEvent (load) {
frame = 0;
max_hp = 270;
hp = max_hp;
counter = 0;
zyoutai = 'stand';
zyoutai2 = 'middle';
vx = 0;
vy = 0;
x = _x;
y = _y;
bvx = 0;
kla_counter = 3;
if (this == eval(_root.board.enemy.oktavia2)) {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.oktavia2) && _root.pause == 0) {
interval = Math.round(hp / 27 + 10);
if (hp < max_hp) {
++frame;
}
if (frame % 400 == 1) {
zyoutai = 'attack';
this.gotoAndStop('attack');
}
if (frame % 800 == 200) {
zyoutai = 'rightMove';
zyoutai2 = 'right';
if (hp > 200) {
kla_counter = 3;
} else {
if (hp > 100) {
kla_counter = 4;
} else {
kla_counter = 5;
}
}
}
if (frame % 800 == 600) {
zyoutai = 'leftMove';
zyoutai2 = 'left';
if (hp > 200) {
kla_counter = 3;
} else {
if (hp > 100) {
kla_counter = 4;
} else {
kla_counter = 5;
}
}
}
if (zyoutai == 'stand') {
vx = 0;
}
if (zyoutai == 'attack' && frame % 12 == 0) {
if (kla_counter > 0) {
if (_root.over == 0) {
_root.eb_clone(_root.board.player._x + Math.random() * 200 - 100, 40, _root.board.enemy.klarissa, _root.put, 0);
_root.sindo_map[_root.put] = 1;
}
kla_counter -= 1;
} else {
_root.eb_clone(-35, 305, _root.board.enemy.wheel2, 11, 7);
_root.eb_clone(635, 305, _root.board.enemy.wheel2, 12, -7);
zyoutai = 'stand';
}
}
if (zyoutai == 'rightMove') {
vx = (480 - _x) * 0.2;
if (vx > 5) {
vx = 5;
}
if (frame % interval == 0 && _root.over == 0) {
bvx = (_root.board.player._x - _x) * 0.015;
_root.eb_clone(_x, 80, _root.board.enemy.wheel2, _root.put, bvx);
_root.sindo_map[_root.put] = 1;
}
if (_x > 448) {
zyoutai = 'stand';
}
}
if (zyoutai == 'leftMove') {
vx = (120 - _x) * 0.2;
if (vx < -5) {
vx = -5;
}
if (frame % interval == 0 && _root.over == 0) {
bvx = (_root.board.player._x - _x) * 0.015;
_root.eb_clone(_x, 80, _root.board.enemy.wheel2, _root.put, bvx);
_root.sindo_map[_root.put] = 1;
}
if (_x < 152) {
zyoutai = 'stand';
}
}
x += vx;
y += vy;
_x = x;
_y = y + Math.sin(frame / 60) * 10;
if (hp <= 0) {
i = 1;
while (i < 30) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 150);
++i;
}
_root.sound('gekiha2');
_root.witch_hp_meter.gotoAndStop(201);
i = 0;
while (i <= 15) {
_root.board.enemy['enemy' + i].hp = 0;
++i;
}
if (_root.result == '') {
_root.result = 'gameclear';
_root.gotoAndPlay('result');
}
this.removeMovieClip();
}
}
}
}
instance wheel2 of movieClip 200 {
onClipEvent (load) {
frame = 0;
hp = 3;
vx = a;
vy = 0;
_rotation = Math.random() * Math.PI;
rotSpeed = Math.random() * 8 + 4;
if (Math.random() > 0.5) {
rotSpeed *= -1;
}
reflected = 0;
if (this == eval(_root.board.enemy.enemy11)) {
rotSpeed = 7;
} else {
if (_root.board.enemy.enemy12) {
rotSpeed = -7;
}
}
if (this == eval(_root.board.enemy.wheel2)) {
gotoAndStop(1);
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.wheel2) && _root.pause == 0) {
++frame;
if (_x < -40) {
_root.sindo_map[number] = 0;
this.removeMovieClip();
}
if (_x > 640) {
_root.sindo_map[number] = 0;
this.removeMovieClip();
}
if (_y > 305) {
_y = 305;
vy *= -Math.abs(rotSpeed / 16);
reflected = 1;
}
if (reflected == 1) {
vx = rotSpeed / 1.3;
}
vy += 0.2;
_x = _x + vx;
_y = _y + vy;
_rotation = _rotation + rotSpeed;
if (hp <= 0) {
i = 1;
while (i < 10) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 100);
++i;
}
_root.sound('gekiha');
_root.sindo_map[number] = 0;
this.removeMovieClip();
}
}
}
}
instance klarissa of movieClip 283 {
onClipEvent (load) {
frame = 0;
hp = 0.5;
vy = 1.5;
if (_x < 0) {
_x = Math.random() * 100;
} else {
if (_x > 600) {
_x = 600 - Math.random() * 100;
}
}
if (this == eval(_root.board.enemy.klarissa)) {
gotoAndStop(1);
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.klarissa) && _root.pause == 0) {
play();
++frame;
if (frame > 200 || _y < 310) {
vy += 0.2;
} else {
vy = 0;
}
_y = _y + vy;
if (_root.board.enemy.enemy11.hitTest(_x, _y, false) || _root.board.enemy.enemy12.hitTest(_x, _y, false)) {
hp = 0;
}
if (hp <= 0) {
i = 1;
while (i < 8) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 80);
++i;
}
_root.sound('gekiha');
_root.sindo_map[number] = 0;
this.removeMovieClip();
}
if (_y > 350) {
_root.sindo_map[number] = 0;
this.removeMovieClip();
}
} else {
stop();
}
}
}
instance walpurgis of movieClip 353 {
onClipEvent (load) {
frame = 0;
max_hp = 500;
hp = max_hp;
vx = 0;
vy = 0;
tx = 450;
ty = 300;
_xscale = 120;
_yscale = 120;
counter = 0;
zyoutai = 'attack1';
interval = 200;
handou = 0;
if (this == eval(_root.board.enemy.walpurgis)) {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.walpurgis) && _root.pause == 0) {
++frame;
if (zyoutai == 'attack1') {
ty = 220;
vx = 0;
if (ty - _y > 50) {
counter = 0;
vy = 2;
} else {
vy = (ty - _y) * 0.04;
++counter;
if (counter < 300) {
if (counter % 150 >= 73 && counter % 150 <= 75) {
this.gotoAndPlay('setup');
if (_root.over == 0) {
_root.eb_clone(_x, _y - 100, _root.board.enemy.walps, _root.put);
_root.sindo_map[_root.put] = 1;
}
}
} else {
zyoutai = 'back';
}
}
}
if (zyoutai == 'back') {
ty = -50;
if (_y - ty > 50) {
counter = 0;
vy = -3;
} else {
vy = (ty - _y) * 0.06;
if (_y - ty < 10) {
if (_x > 350) {
tx = Math.random() * 200 + 50;
} else {
tx = Math.random() * 200 + 350;
}
zyoutai = 'move';
if (hp < 350) {
zyoutai = 'rotate';
vy = 0;
}
}
}
}
if (zyoutai == 'move') {
vy = 0;
if (Math.abs(tx - _x) > 50) {
counter = 0;
if (tx > _x) {
vx = 3;
} else {
vx = -3;
}
} else {
vx = (tx - _x) * 0.06;
if (Math.abs(tx - _x) < 10) {
zyoutai = 'attack1';
}
}
}
if (zyoutai == 'rotate') {
if (_x < 600) {
vx = 3;
} else {
if (_x < 645) {
vx = (650 - _x) * 0.06;
} else {
vx = 0;
if (_y < 130) {
vy = 3;
} else {
vy = (180 - _y) * 0.06;
}
if (_rotation > -90) {
_rotation = _rotation - 0.8;
} else {
_rotation = -90;
vx = 0;
vy = 0;
zyoutai = 'transform';
this.gotoAndPlay('transform');
}
}
}
}
if (zyoutai == 'attack2') {
if (frame % 251 == 0 && _root.over == 0) {
_root.eb_clone(_x, _y, _root.board.enemy.walps, _root.put);
_root.sindo_map[_root.put] = 1;
}
if (frame % 292 == 0 && _root.over == 0) {
_root.sound('missile');
_root.eb_clone(_x - 180, _y + 45, _root.board.enemy.missile, _root.put, 180);
_root.sindo_map[_root.put] = 1;
}
if (frame % 292 == 146 && _root.over == 0) {
_root.sound('missile');
_root.eb_clone(_x - 180, _y - 45, _root.board.enemy.missile, _root.put, 180);
_root.sindo_map[_root.put] = 1;
}
if (frame % 400 == 0) {
_root.board.enemy.enemy13.laserA.gotoAndPlay('on');
} else {
if (frame % 400 == 200) {
_root.board.enemy.enemy13.laserB.gotoAndPlay('on');
} else {
if (frame % 400 == 199 || frame % 300 == 399) {
if (hp < 175) {
zyoutai = 'rotate2';
}
}
}
}
}
if (zyoutai == 'rotate2') {
vx = (300 - _x) * 0.04;
vy = (-100 - _y) * 0.04;
if (_rotation > -179) {
_rotation = _rotation - 0.8;
} else {
_rotation = -180;
vx = 0;
vy = 0;
zyoutai = 'transform2';
this.gotoAndPlay('transform2');
_x = 300;
_y = -100;
}
}
if (zyoutai == 'attack3') {
interval = Math.round(500 + hp);
if (frame % interval == 0 && _root.over == 0) {
_root.eb_clone(_x, _y, _root.board.enemy.walps, _root.put);
_root.sindo_map[_root.put] = 1;
}
if (frame % 300 == 0) {
_root.board.enemy.enemy13.laserA.gotoAndPlay('on');
_root.board.enemy.enemy13.laserB.gotoAndPlay('on');
}
if (frame % 700 == 0) {
_root.board.enemy.enemy13.laserC.gotoAndPlay('on');
}
if (frame % 700 > 600) {
vx = (_root.board.player._x - _x) * 0.04;
} else {
if (frame % 700 < 120) {
vx *= 0.8;
} else {
vx = (300 - _x) * 0.02;
}
}
if (handou == 0) {
vy = (-100 - _y) * 0.02;
} else {
if (vy > -0.8) {
vy -= 0.04;
}
}
if (hp < 0) {
hp = 0;
zyoutai = 'die';
}
}
if (zyoutai == 'die') {
_rotation = _rotation + 0.08;
vy += 0.01;
if (_y > 400) {
hp = -1000;
}
}
_x = _x + vx;
_y = _y + vy;
if (hp <= -1000) {
i = 1;
while (i < 50) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 300);
++i;
}
_root.sound('gekiha2');
_root.witch_hp_meter.gotoAndStop(201);
i = 0;
while (i <= 15) {
_root.board.enemy['enemy' + i].hp = 0;
++i;
}
if (_root.result == '') {
_root.result = 'gameclear';
_root.gotoAndPlay('result');
}
this.removeMovieClip();
}
}
}
}
instance walps of movieClip 357 {
onClipEvent (load) {
frame = 0;
hp = 2;
speed = 4;
bure_t = Math.random() * 30 + 15;
bure_a = Math.random() * 0.8 + 0.4;
tx = Math.random() * 500 + 50;
ty = Math.random() * 250 + 50;
if (Math.random() > 0.66) {
this.gotoAndStop('a');
} else {
if (Math.random() > 0.33) {
this.gotoAndStop('b');
} else {
this.gotoAndStop('c');
}
}
if (this == eval(_root.board.enemy.walps)) {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.walps) && _root.pause == 0) {
++frame;
d = Math.sqrt((tx - _x) * (tx - _x) + (ty - _y) * (ty - _y));
rad = Math.atan2(ty - _y, tx - _x);
if (d > 40) {
vx = Math.cos(rad) * speed;
vy = Math.sin(rad) * speed;
} else {
vx = (tx - _x) * 0.1;
vy = (ty - _y) * 0.1;
}
if (d < 10) {
tx = _root.board.player._x;
ty = _root.board.player._y;
}
_x = _x + vx;
_y = _y + vy;
_y = _y + Math.sin(frame / bure_t) * bure_a;
if (vx > 0) {
_xscale = -100;
} else {
_xscale = 100;
}
if (hp <= 0) {
i = 1;
while (i < 10) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 80);
++i;
}
_root.sound('gekiha');
_root.sindo_map[number] = 0;
this.removeMovieClip();
}
}
}
}
instance missile of movieClip 361 {
onClipEvent (load) {
frame = 0;
hp = 9999;
aRotSpeed = 0.1;
RotSpeedMax = 4;
RotSpeed = 0;
speed = 2;
explode = 0;
_rotation = a;
if (this == eval(_root.board.enemy.missile)) {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.missile) && _root.pause == 0) {
if (explode == 1) {
play();
}
++frame;
tx = _root.board.player._x;
ty = _root.board.player._y;
rad = Math.atan2(ty - _y, tx - _x);
rot = rad * 180 / Math.PI;
if (_rotation - 180 > rot) {
rot += 360;
}
if (_rotation + 180 < rot) {
rot -= 360;
}
if (_rotation - rot > RotSpeedMax) {
RotSpeed -= aRotSpeed;
} else {
if (_rotation - rot < -RotSpeedMax) {
RotSpeed += aRotSpeed;
} else {
RotSpeed *= 0.5;
}
}
if (RotSpeed > RotSpeedMax) {
RotSpeed = RotSpeedMax;
}
if (-RotSpeed < -RotSpeedMax) {
RotSpeed = RotSpeedMax;
}
_rotation = _rotation + RotSpeed;
if (speed < 8) {
speed += 0.1;
}
rad2 = _rotation * Math.PI / 180;
vx = Math.cos(rad2) * speed;
vy = Math.sin(rad2) * speed;
if (explode == 0) {
_x = _x + vx;
_y = _y + vy;
if (_root.board.player.hitTest(_x, _y, true) || _root.board.land.hitTest(_x, _y, true)) {
explode = 1;
this.gotoAndPlay('explosion');
}
}
if (hp <= 0) {
_root.sindo_map[number] = 0;
this.removeMovieClip();
}
} else {
stop();
}
}
}
instance bit of movieClip 363 {
onClipEvent (load) {
frame = 240;
hp = 25;
vx = 0;
vy = 0;
tx = _x;
ty = _y;
_xscale = 120;
_yscale = 120;
_rotation = 90;
if (this == eval(_root.board.enemy.bit)) {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.bit) && _root.pause == 0) {
++frame;
if (frame % 250 <= 200) {
px = _root.board.player._x;
py = _root.board.player._y;
rad = Math.atan2(py - _y, px - _x);
_rotation = rad * 180 / Math.PI;
}
if (frame % 250 == 0) {
if (tx <= 300) {
tx = Math.random() * 200 + 350;
} else {
tx = Math.random() * 200 + 50;
}
ty = Math.random() * 60 + 40;
} else {
if (frame % 250 == 220 + a && _root.over == 0) {
_root.sound('missile');
_root.eb_clone(_x, _y, _root.board.enemy.missile, _root.put, _rotation);
_root.sindo_map[_root.put] = 1;
}
}
vx = (tx - _x) * 0.02;
vy = (ty - _y) * 0.02;
_x = _x + vx;
_y = _y + vy;
if (hp <= 0) {
i = 1;
while (i < 10) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 80);
++i;
}
_root.sound('gekiha');
_root.sindo_map[number] = 0;
this.removeMovieClip();
}
}
}
}
instance laser_set of movieClip 366 {
onClipEvent (load) {
hp = 9999;
_xscale = 120;
_yscale = 120;
_y = -1000;
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.enemy.laser_set) && _root.pause == 0) {
if (_root.witch_select == 'walpurgis') {
_x = _root.board.enemy.enemy0._x;
_y = _root.board.enemy.enemy0._y;
_rotation = _root.board.enemy.enemy0._rotation;
if (_root.result == 'gameclear') {
_y = -1000;
}
}
}
}
}
}
movieClip 370 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 373 {
}
movieClip 375 {
}
movieClip 376 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 21 {
this.removeMovieClip();
}
}
movieClip 378 {
}
movieClip 380 {
}
movieClip 384 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 53 {
this.removeMovieClip();
}
}
movieClip 386 {
}
movieClip 387 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
movieClip 391 {
frame 1 {
stop();
}
frame 12 {
this.gotoAndPlay(3);
}
}
movieClip 393 {
}
movieClip 394 {
frame 20 {
this.removeMovieClip();
}
}
movieClip 395 {
}
movieClip 397 {
}
movieClip 399 {
}
movieClip 400 {
instance explosion of movieClip 370 {
onClipEvent (load) {
power = a;
scale = Math.random() * a / 2 + a / 2;
rad = Math.random() * Math.PI * 2;
speed = Math.random() * 9 * a / 100 + a / 100;
vx = Math.cos(rad) * speed;
vy = Math.sin(rad) * speed;
_xscale = scale;
_yscale = scale;
if (this != eval(_root.board.effect.explosion)) {
gotoAndStop(2);
} else {
_x = 10000;
}
}
onClipEvent (enterFrame) {
speed *= 0.95;
vx = Math.cos(rad) * speed;
vy = Math.sin(rad) * speed;
_x = _x + vx;
_y = _y + vy;
if (speed < a / 100) {
this.removeMovieClip();
}
}
}
instance musket of movieClip 376 {
onClipEvent (load) {
rad = Math.atan2(b - _y, a - _x);
_rotation = rad * 180 / Math.PI;
if (90 < _rotation && _rotation < 180 || -180 < _rotation && _rotation < -90) {
_yscale = -100;
} else {
_yscale = 100;
}
t_angle = Math.random() * Math.PI * 2;
t_distance = Math.random() * 30 + 20;
tx = Math.cos(t_angle) * t_distance + _x;
ty = Math.sin(t_angle) * t_distance + _y;
wait = Math.round(Math.random() * 10);
clear = 0;
counter = 0;
mouseRelease = 0;
if (this != eval(_root.board.effect.musket)) {
this.gotoAndStop(2);
} else {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.effect.musket)) {
rad = Math.atan2(b - _y, a - _x);
_rotation = rad * 180 / Math.PI;
_x = _x + (tx - _x) * 0.5;
_y = _y + (ty - _y) * 0.5;
if (_root.mouse_down == 0 && mouseRelease == 0) {
_root.sound('musket_shot');
mouseRelease = 1;
}
if (clear == 0 && mouseRelease == 1) {
++counter;
if (counter >= wait) {
clear = 1;
}
}
if (clear == 1) {
_root.mb_clone(_x, _y, _root.board.m_atk.bullet, _rotation, 0, 0, 0);
clear = 2;
this.gotoAndPlay(3);
}
}
}
}
instance finale of movieClip 384 {
onClipEvent (load) {
rad = Math.atan2(b - _y, a - _x);
_rotation = rad * 180 / Math.PI;
if (90 < _rotation && _rotation < 180 || -180 < _rotation && _rotation < -90) {
_yscale = -100;
} else {
_yscale = 100;
}
bx = _x + Math.cos(rad) * 40;
by = _y + Math.sin(rad) * 40;
fire = 0;
frame = 0;
if (this != eval(_root.board.effect.finale)) {
this.gotoAndPlay(2);
} else {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.effect.finale)) {
++frame;
if (frame >= 40 && fire == 0) {
fire = 1;
}
if (fire == 1) {
_root.mb_clone(bx, by, _root.board.m_atk.finale_bullet, _rotation, 0, 0, 0);
fire = 2;
}
}
}
}
instance adelbert_klein of movieClip 387 {
onClipEvent (load) {
frame = 0;
clone_number = a;
if (this != eval(_root.board.effect.adelbert_klein)) {
this.gotoAndPlay(2);
} else {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
if (this != eval(_root.board.effect.adelbert_klein) && _root.pause == 0) {
++frame;
if (frame == 40) {
_root.eb_clone(_x, 450, _root.board.enemy.tuta, clone_number);
}
if (frame >= 90) {
this.removeMovieClip();
}
}
}
}
instance bomb of movieClip 391 {
onClipEvent (load) {
frame = 0;
fire = 0;
if (this != eval(_root.board.effect.bomb)) {
this.gotoAndPlay(2);
} else {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.effect.bomb)) {
if (_root.pause == 0) {
play();
++frame;
if (frame >= 30 && fire == 0) {
fire = 1;
}
if (fire == 1) {
_root.mb_clone(_x, _y, _root.board.m_atk.boom, 0, 0, 0, 0);
fire = 2;
this.removeMovieClip();
}
} else {
stop();
}
}
}
}
instance time_stop of movieClip 394 {
onClipEvent (load) {
if (this != eval(_root.board.effect.time_stop)) {
this.gotoAndPlay(2);
} else {
_x = -1000;
}
}
}
instance sebasbody of movieClip 395 {
onClipEvent (load) {
frame = 0;
if (this != eval(_root.board.effect.sebasbody)) {
this.gotoAndPlay(2);
} else {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.effect.sebasbody)) {
if (_root.pause == 0 && _root.result != 'gameover') {
play();
++frame;
dx = _root.board.enemy['enemy' + number]._x;
dy = _root.board.enemy['enemy' + number]._y;
pdx = _root.board.enemy['enemy' + number].prev_x;
pdy = _root.board.enemy['enemy' + number].prev_y;
this.lineStyle(10, 0, 100, true, 'normal', 'round', 'round');
this.moveTo(pdx, pdy);
this.lineTo(dx, dy);
if (_root.board.enemy['enemy' + number].hp <= 0) {
this.removeMovieClip();
}
} else {
stop();
}
if (_root.board.enemy.enemy0.hp <= 0) {
this.clear();
}
}
}
}
instance craze of movieClip 394 {
onClipEvent (load) {
if (this != eval(_root.board.effect.craze)) {
this.gotoAndPlay(2);
} else {
_x = -1000;
}
}
}
instance sword of movieClip 397 {
onClipEvent (load) {
rad = Math.atan2(b - _y, a - _x);
_rotation = rad * 180 / Math.PI;
if (90 < _rotation && _rotation < 180 || -180 < _rotation && _rotation < -90) {
_yscale = -100;
} else {
_yscale = 100;
}
t_angle = Math.random() * Math.PI * 2;
t_distance = 30;
tx = Math.cos(t_angle) * t_distance + _root.board.player._x;
ty = Math.sin(t_angle) * t_distance + _root.board.player._y - 20;
wait = Math.round(Math.random() * 10);
clear = 0;
counter = 0;
mouseRelease = 0;
if (this != eval(_root.board.effect.sword)) {
this.gotoAndStop(2);
} else {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.effect.sword)) {
rad = Math.atan2(b - _y, a - _x);
_rotation = rad * 180 / Math.PI;
tx = Math.cos(t_angle) * t_distance + _root.board.player._x;
ty = Math.sin(t_angle) * t_distance + _root.board.player._y - 20;
_x = _x + (tx - _x) * 0.3;
_y = _y + (ty - _y) * 0.3;
if (_root.mouse_down == 0 && mouseRelease == 0) {
_root.sound('sword_shot');
mouseRelease = 1;
}
if (clear == 0 && mouseRelease == 1) {
++counter;
if (counter >= wait) {
clear = 1;
}
}
if (clear == 1) {
_root.mb_clone(_x, _y, _root.board.m_atk.sword, _rotation, 0, 0, 0);
this.removeMovieClip();
}
}
}
}
instance of movieClip 399 {
onClipEvent (load) {
_xscale = 120;
_yscale = 120;
_y = -1000;
}
onClipEvent (enterFrame) {
if (_root.witch_select == 'walpurgis') {
_x = _root.board.enemy.enemy0._x;
_y = _root.board.enemy.enemy0._y;
_rotation = _root.board.enemy.enemy0._rotation;
if (_root.result == 'gameclear') {
_y = -1000;
}
}
}
}
}
movieClip 402 {
frame 1 {
stop();
}
frame 2 {
this.gotoAndPlay(1);
}
}
movieClip 404 {
frame 1 {
stop();
}
frame 2 {
this.gotoAndPlay(1);
}
}
movieClip 406 {
frame 1 {
stop();
}
frame 2 {
this.gotoAndPlay(1);
}
}
movieClip 408 {
frame 1 {
stop();
}
frame 2 {
this.gotoAndPlay(1);
}
}
movieClip 410 {
frame 1 {
stop();
}
frame 2 {
this.gotoAndPlay(1);
}
}
movieClip 412 {
frame 1 {
stop();
}
frame 2 {
this.gotoAndPlay(1);
}
}
movieClip 414 {
frame 1 {
stop();
}
frame 2 {
this.gotoAndPlay(1);
}
}
movieClip 416 {
frame 1 {
stop();
}
frame 2 {
this.gotoAndPlay(1);
}
}
movieClip 419 {
frame 1 {
stop();
}
frame 2 {
this.gotoAndPlay(1);
}
}
movieClip 421 {
frame 1 {
stop();
}
frame 2 {
this.gotoAndPlay(1);
}
}
movieClip 422 {
instance bgm of movieClip 108 {
onClipEvent (load) {
this.stop();
}
}
}
movieClip 425 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 426 {
}
movieClip 428 {
}
movieClip 429 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 5 {
this.removeMovieClip();
}
}
movieClip 431 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 434 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 435 {
frame 5 {
this.removeMovieClip();
}
}
movieClip 436 {
instance bullet of movieClip 425 {
onClipEvent (load) {
rot = a;
speed = 10;
rad = rot * Math.PI / 180;
vx = Math.cos(rad) * speed;
vy = Math.sin(rad) * speed;
if (this != eval(_root.board.m_atk.bullet)) {
this.gotoAndStop(2);
} else {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.m_atk.bullet)) {
_x = _x + vx;
_y = _y + vy;
rad = Math.atan2(vy, vx);
_rotation = rad * 180 / Math.PI;
if (_root.board.enemy.hitTest(_x, _y, true)) {
i = 0;
while (i <= 15) {
if (_root.board.enemy['enemy' + i].hitTest(_x, _y, true)) {
_root.board.enemy['enemy' + i].hp -= 1;
if (i == 0) {
i = 1;
while (i <= 3) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 40);
++i;
}
}
this.removeMovieClip();
}
++i;
}
}
if (_root.board.land.hitTest(_x, _y, true) || _x < -10 || _x > 610 || _y < -10 || _y > 360) {
this.removeMovieClip();
}
}
}
}
instance atk_musket of movieClip 429 {
onClipEvent (load) {
if (this != eval(_root.board.m_atk.atk_musket)) {
this.gotoAndPlay(2);
} else {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.m_atk.atk_musket)) {
i = 0;
while (i <= 15) {
if (this.collision.hitTest(_root.board.enemy['enemy' + i])) {
_root.board.enemy['enemy' + i].hp -= 0.15;
}
++i;
}
}
}
}
instance finale_bullet of movieClip 431 {
onClipEvent (load) {
rot = a;
speed = 10;
rad = rot * Math.PI / 180;
vx = Math.cos(rad) * speed;
vy = Math.sin(rad) * speed;
if (this != eval(_root.board.m_atk.finale_bullet)) {
this.gotoAndStop(2);
} else {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.m_atk.finale_bullet)) {
_x = _x + vx;
_y = _y + vy;
rad = Math.atan2(vy, vx);
_rotation = rad * 180 / Math.PI;
i = 1;
while (i <= 15) {
if (_root.board.enemy['enemy' + i].hitTest(_x, _y, true)) {
_root.board.enemy['enemy' + i].hp -= 30;
if (_root.board.enemy['enemy' + i].notPierce == true) {
j = 1;
while (j < 10) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 100);
++j;
}
this.removeMovieClip();
}
}
++i;
}
if (_root.board.enemy.enemy0.hitTest(_x, _y, true)) {
_root.board.enemy.enemy0.hp -= 30;
i = 1;
while (i < 10) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 100);
++i;
}
this.removeMovieClip();
}
if (_root.board.land.hitTest(_x, _y, true) || _x < -10 || _x > 610 || _y < -10 || _y > 360) {
this.removeMovieClip();
}
}
}
}
instance gun_bullet of movieClip 434 {
onClipEvent (load) {
rot = a;
speed = 10;
stop_mode = 0;
rad = rot * Math.PI / 180;
vx = Math.cos(rad) * speed;
vy = Math.sin(rad) * speed;
_rotation = rad * 180 / Math.PI;
if (this != eval(_root.board.m_atk.gun_bullet)) {
this.gotoAndStop(2);
} else {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.m_atk.gun_bullet)) {
if (_root.pause == 0) {
stop_mode = 0;
}
if (stop_mode == 0) {
_x = _x + vx;
_y = _y + vy;
}
rad = Math.atan2(vy, vx);
_rotation = rad * 180 / Math.PI;
if (_root.board.enemy.hitTest(_x, _y, true)) {
i = 0;
while (i <= 15) {
if (_root.board.enemy['enemy' + i].hitTest(_x, _y, true)) {
if (_root.pause == 0) {
_root.board.enemy['enemy' + i].hp -= 1;
if (i == 0) {
i = 1;
while (i <= 3) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 40);
++i;
}
}
this.removeMovieClip();
} else {
stop_mode = 1;
_x = _x - vx;
_y = _y - vy;
}
}
++i;
}
}
if (_root.board.land.hitTest(_x, _y, true) || _x < -10 || _x > 610 || _y < -10 || _y > 360) {
this.removeMovieClip();
}
}
}
}
instance boom of movieClip 360 {
onClipEvent (load) {
scaleSpeed = 50;
if (this != eval(_root.board.m_atk.boom)) {
this.gotoAndPlay(2);
} else {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.m_atk.boom) && _root.pause == 0) {
scaleSpeed += 10;
if (_xscale < 500) {
_xscale = _xscale + scaleSpeed;
_yscale = _yscale + scaleSpeed;
i = 0;
while (i <= 15) {
if (this.hitTest(_root.board.enemy['enemy' + i])) {
_root.board.enemy['enemy' + i].hp -= 4;
}
++i;
}
} else {
_alpha = _alpha - 5;
if (_alpha <= 10) {
this.removeMovieClip();
}
}
}
}
}
instance sword of movieClip 397 {
onClipEvent (load) {
rot = a;
speed = 9;
if (_root.board.player.crazy == false) {
hp = 4;
} else {
hp = 6;
}
rad = rot * Math.PI / 180;
_rotation = rad * 180 / Math.PI;
vx = Math.cos(rad) * speed;
vy = Math.sin(rad) * speed;
if (this != eval(_root.board.m_atk.sword)) {
this.gotoAndStop(2);
} else {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.m_atk.sword)) {
_x = _x + vx;
_y = _y + vy;
rad = Math.atan2(vy, vx);
_rotation = rad * 180 / Math.PI;
if (_root.board.enemy.hitTest(_x, _y, true)) {
i = 0;
while (i <= 15) {
if (_root.board.enemy['enemy' + i].hitTest(_x, _y, true)) {
for (;;) {
if (!(_root.board.enemy['enemy' + i].hp > 0 && hp > 0)) break;
_root.board.enemy['enemy' + i].hp -= 1;
hp -= 1;
}
if (i == 0) {
i = 1;
while (i <= 3) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 40);
++i;
}
}
}
++i;
}
}
if (_root.board.land.hitTest(_x, _y, true) || hp <= 0 || _x < -10 || _x > 610 || _y < -10 || _y > 360) {
this.removeMovieClip();
}
}
}
}
instance atk_sword of movieClip 435 {
onClipEvent (load) {
if (this != eval(_root.board.m_atk.atk_sword)) {
_xscale = _root.board.player._xscale;
if (_root.board.player.crazy == false) {
atk = 0.24;
} else {
atk = 0.36;
}
} else {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.m_atk.atk_sword)) {
i = 0;
while (i <= 15) {
if (this.hitTest(_root.board.enemy['enemy' + i])) {
_root.board.enemy['enemy' + i].hp -= atk;
}
++i;
}
}
}
}
}
movieClip 438 {
}
movieClip 440 {
frame 1 {
stop();
}
}
movieClip 443 {
}
movieClip 444 {
}
movieClip 446 {
}
movieClip 448 {
}
movieClip 449 {
}
movieClip 451 {
}
movieClip 453 {
}
movieClip 454 {
}
movieClip 455 {
}
movieClip 457 {
}
movieClip 459 {
}
movieClip 460 {
}
movieClip 461 {
}
movieClip 466 {
}
movieClip 467 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 469 {
}
movieClip 474 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 9 {
this.gotoAndStop(2);
}
}
movieClip 476 {
}
movieClip 478 {
}
movieClip 480 {
}
movieClip 481 {
instance of movieClip 474 {
onClipEvent (enterFrame) {
if (_root.board.player.gun_mode == true) {
this.gotoAndStop('gun');
if (_root._xmouse >= _root.board.player._x) {
_rotation = _root.board.player.bullet_rotation;
} else {
_rotation = -_root.board.player.bullet_rotation + 180;
}
_x = -5.5;
_y = -9.4;
} else {
this.gotoAndStop('none');
_rotation = 5;
}
if (_root.board.player.fire == 1) {
this.gotoAndPlay(3);
}
}
}
}
movieClip 483 {
}
movieClip 485 {
}
movieClip 486 {
instance of movieClip 474 {
onClipEvent (enterFrame) {
if (_root.board.player.gun_mode == true) {
this.gotoAndStop('gun');
if (_root.board.player._xscale == 100) {
_rotation = _root.board.player.bullet_rotation - 15;
} else {
_rotation = -_root.board.player.bullet_rotation + 180 - 15;
}
} else {
this.gotoAndStop('none');
_rotation = 10;
}
if (_root.board.player.fire == 1) {
this.gotoAndPlay(3);
}
}
}
}
movieClip 487 {
}
movieClip 489 {
}
movieClip 491 {
}
movieClip 492 {
instance of movieClip 474 {
onClipEvent (enterFrame) {
if (_root.board.player.gun_mode == true) {
this.gotoAndStop('gun');
if (_root._xmouse >= _root.board.player._x) {
_rotation = _root.board.player.bullet_rotation;
} else {
_rotation = -_root.board.player.bullet_rotation + 180;
}
_x = -5.5;
_y = -9.4;
} else {
this.gotoAndStop('none');
_rotation = 10;
}
if (_root.board.player.fire == 1) {
this.gotoAndPlay(3);
}
}
}
}
movieClip 493 {
instance of movieClip 474 {
onClipEvent (enterFrame) {
if (_root.board.player.gun_mode == true) {
this.gotoAndStop('gun');
if (_root._xmouse >= _root.board.player._x) {
_rotation = _root.board.player.bullet_rotation;
} else {
_rotation = -_root.board.player.bullet_rotation + 180;
}
_x = -5.5;
_y = -9.4;
} else {
this.gotoAndStop('none');
_rotation = 15;
}
if (_root.board.player.fire == 1) {
this.gotoAndPlay(3);
}
}
}
}
movieClip 494 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 496 {
}
movieClip 499 {
}
movieClip 502 {
}
movieClip 503 {
}
movieClip 505 {
}
movieClip 508 {
}
movieClip 509 {
instance of movieClip 499 {
onClipEvent (enterFrame) {
if (_root.board.player._xscale == 100) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
}
instance of movieClip 508 {
onClipEvent (load) {
if (this._parent._parent.crazy == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (this._parent._parent.crazy == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 499 {
onClipEvent (enterFrame) {
if (_root.board.player._xscale == 100) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
}
movieClip 511 {
}
movieClip 513 {
}
movieClip 514 {
instance of movieClip 499 {
onClipEvent (enterFrame) {
if (_root.board.player._xscale == 100) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
}
instance of movieClip 508 {
onClipEvent (load) {
if (this._parent._parent._parent.crazy == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (this._parent._parent._parent.crazy == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 499 {
onClipEvent (enterFrame) {
if (_root.board.player._xscale == 100) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
}
movieClip 515 {
}
movieClip 517 {
}
movieClip 519 {
}
movieClip 520 {
instance of movieClip 499 {
onClipEvent (enterFrame) {
if (_root.board.player._xscale == 100) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
}
instance of movieClip 508 {
onClipEvent (load) {
if (this._parent._parent.crazy == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (this._parent._parent.crazy == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 499 {
onClipEvent (enterFrame) {
if (_root.board.player._xscale == 100) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
}
movieClip 521 {
instance of movieClip 499 {
onClipEvent (enterFrame) {
if (_root.board.player._xscale == 100) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
}
instance of movieClip 508 {
onClipEvent (load) {
if (this._parent._parent.crazy == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (this._parent._parent.crazy == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 499 {
onClipEvent (enterFrame) {
if (_root.board.player._xscale == 100) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
}
movieClip 522 {
instance of movieClip 499 {
onClipEvent (load) {
stop();
}
}
instance of movieClip 508 {
onClipEvent (load) {
if (this._parent._parent.crazy == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (this._parent._parent.crazy == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 499 {
onClipEvent (load) {
stop();
}
}
}
movieClip 523 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 524 {
instance land of movieClip 123 {
onClipEvent (load) {
this.gotoAndStop(_root.witch_select);
}
}
instance background of movieClip 148 {
onClipEvent (load) {
this.gotoAndStop(_root.witch_select);
}
}
instance enemy of movieClip 367 {
onClipEvent (load) {
this.gotoAndStop(_root.witch_select);
}
}
instance mami of movieClip 467 {
onClipEvent (load) {
vx = 0;
vy = 0;
d = 0;
g = 0.2;
max_vx = 3.5;
speedLimit = 7;
ax = _x;
ay = _y;
frame = 0;
frame2 = 0;
time_stop = 0;
action = 'free';
zyoutai = 'air';
zyoutai2 = 'neutral';
zyoutai3 = 'air_down';
prev_zyoutai3 = 'stand';
air_counter = 0;
jumpMode = 1;
friction = 0.9;
die = 0;
musket_counter = 0;
recoverPerFrame = _root.recoverPerFrame;
damagePerFrame = _root.damagePerFrame;
if (this == eval(_root.board.mami)) {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.mami) && _root.pause == 0) {
++frame;
posx = _root.board._x;
posy = _root.board._y;
g = 0.2;
speedLimit = 7;
d = Math.sqrt((_root._xmouse - _x) * (_root._xmouse - _x) + (_root._ymouse - _y) * (_root._ymouse - _y));
if (_root.mouse_down == 1 && d >= 60 && frame2 >= 6) {
frame = 0;
}
if (_root.mouse_down == 2 && frame % 6 == 1 && action == 'free' && _root.hp >= 25) {
frame2 = 0;
speedLimit = 0.3;
recoverPerFrame = 0;
if (musket_counter <= 25) {
_root.hp -= 0.4;
++musket_counter;
if (zyoutai == 'air') {
ay = _y;
} else {
ay = _y - 30;
}
if (_x < 50) {
ax = _x + 30;
} else {
if (_x > 550) {
ax = _x - 30;
} else {
ax = _x;
}
}
_root.ef_clone(ax, ay, _root.board.effect.musket, false, _root._xmouse, _root._ymouse);
}
}
if (_root.mouse_down == 1 && d < 60) {
action = 'spin';
}
if (_root.mouse_down == 0) {
++frame2;
action = 'free';
musket_counter = 0;
recoverPerFrame = _root.recoverPerFrame;
}
if (_root.space_down == 1 && _root.hp >= 25) {
_root.hp -= 24;
_root.ef_clone(_x, _y, _root.board.effect.finale, false, _root._xmouse, _root._ymouse);
}
if (zyoutai == 'land') {
if (Key.isDown(87) && action == 'free') {
vy = -8;
}
friction = 0.9;
} else {
if (Key.isDown(83) && action == 'free') {
g = 1;
speedLimit = 7;
}
friction = 0.1;
}
if (zyoutai2 == 'neutral') {
vx *= 1 - friction;
}
if (_parent.land.hitTest(_x + posx, _y + posy + 20, true)) {
while (_parent.land.hitTest(_x + posx, _y + posy + 19, true)) {
_y = _y - 0.1;
if (vy > 0) {
vy = 0;
}
}
zyoutai = 'land';
jumpMode = 0;
} else {
vy += g;
zyoutai = 'air';
}
if (Key.isDown(68) == true && Key.isDown(65) == false) {
zyoutai2 = 'right';
} else {
if (Key.isDown(65) == true && Key.isDown(68) == false) {
zyoutai2 = 'left';
} else {
zyoutai2 = 'neutral';
}
}
if (_parent.land.hitTest(_x + posx, _y + posy - 30, true)) {
while (_parent.land.hitTest(_x + posx, _y + posy - 29, true)) {
_y = _y + 0.1;
if (vy < 0) {
vy = 0;
}
}
}
if (_parent.land.hitTest(_x + posx - 10, _y + posy + 17, true) || _parent.land.hitTest(_x + posx - 10, _y + posy - 17, true) || _parent.land.hitTest(_x + posx - 10, _y + posy, true)) {
for (;;) {
if (!(_parent.land.hitTest(_x + posx - 9, _y + posy + 17, true) || _parent.land.hitTest(_x + posx - 9, _y + posy - 17, true) || _parent.land.hitTest(_x + posx - 9, _y + posy, true))) break;
_x = _x + 0.1;
vx = 0;
}
} else {
if (zyoutai2 == 'left' && action == 'free') {
if (vx > -max_vx) {
vx -= max_vx * friction;
} else {
vx = -max_vx;
}
}
}
if (_parent.land.hitTest(_x + posx + 10, _y + posy + 17, true) || _parent.land.hitTest(_x + posx + 10, _y + posy - 17, true) || _parent.land.hitTest(_x + posx + 10, _y + posy, true)) {
for (;;) {
if (!(_parent.land.hitTest(_x + posx + 9, _y + posy + 17, true) || _parent.land.hitTest(_x + posx + 9, _y + posy - 17, true) || _parent.land.hitTest(_x + posx + 9, _y + posy, true))) break;
_x = _x - 0.1;
vx = 0;
}
} else {
if (zyoutai2 == 'right' && action == 'free') {
if (vx < max_vx) {
vx += max_vx * friction;
} else {
vx = max_vx;
}
}
}
if (_root.result != 'gameclear') {
if (_root.board.enemy.hitTest(_x + posx - 10, _y + posy - 30, true) || _root.board.enemy.hitTest(_x + posx + 10, _y + posy - 30, true) || _root.board.enemy.hitTest(_x + posx - 10, _y + posy, true) || _root.board.enemy.hitTest(_x + posx + 10, _y + posy, true) || _root.board.enemy.hitTest(_x + posx - 10, _y + posy + 20, true) || _root.board.enemy.hitTest(_x + posx + 10, _y + posy + 20, true)) {
_root.hp -= damagePerFrame;
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 50);
if (frame % 5 == 0) {
_root.sound('damage');
}
}
}
if (action == 'spin') {
if (frame % 5 == 1) {
_root.mb_clone(_x, _y - 9, _root.board.m_atk.atk_musket);
}
if (frame % 8 == 1) {
_root.sound('spin');
}
speedLimit = 1.5;
vx = 0;
}
if (vy > speedLimit) {
vy = speedLimit;
}
_x = _x + vx;
_y = _y + vy;
if (zyoutai == 'land') {
if (zyoutai2 == 'neutral') {
zyoutai3 = 'stand';
} else {
zyoutai3 = 'run';
}
air_counter = 0;
}
if (zyoutai == 'air') {
++air_counter;
if (air_counter >= 10 || vy >= 3 || vy <= -3) {
if (vy > 0) {
zyoutai3 = 'air_down';
} else {
zyoutai3 = 'air_up';
}
}
}
if (action != 'free') {
zyoutai3 = action;
}
if (zyoutai3 == 'run') {
if (zyoutai2 == 'right') {
_xscale = 100;
} else {
if (zyoutai2 == 'left') {
_xscale = -100;
}
}
} else {
if (_root._xmouse >= _root.board.player._x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
if (prev_zyoutai3 != zyoutai3) {
this.gotoAndPlay(zyoutai3);
}
prev_zyoutai3 = zyoutai3;
if (_root.hp < 100) {
_root.hp += recoverPerFrame;
}
if (_y > 450) {
_root.hp = 0;
}
if (_root.hp <= 0) {
i = 1;
while (i < 30) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 150);
++i;
}
_root.sound('gekiha2');
_root.hp_meter_mami.gotoAndPlay(201);
if (_root.result == '') {
_root.result = 'gameover';
_root.gotoAndPlay('result');
}
this.removeMovieClip();
}
}
}
}
instance homuhomu of movieClip 494 {
onClipEvent (load) {
vx = 0;
vy = 0;
ox = _x - 5;
oy = _y - 13;
d = 0;
g = 0.2;
max_vx = 3.5;
speedLimit = 7;
frame = 0;
frame2 = 0;
time_stop = 0;
gun_mode = false;
action = 'free';
zyoutai = 'air';
zyoutai2 = 'neutral';
zyoutai3 = 'air_down';
prev_zyoutai3 = 'stand';
air_counter = 0;
jumpMode = 1;
friction = 0.9;
fire = 0;
die = 0;
bullet_rad = 0;
bullet_rotation = 0;
recoverPerFrame = _root.recoverPerFrame * 2;
damagePerFrame = _root.damagePerFrame;
if (this == eval(_root.board.homuhomu)) {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.homuhomu) && _root.pause == time_stop) {
++frame;
fire = 0;
posx = _root.board._x;
posy = _root.board._y;
g = 0.2;
speedLimit = 7;
d = Math.sqrt((_root._xmouse - _x) * (_root._xmouse - _x) + (_root._ymouse - _y) * (_root._ymouse - _y));
if (_root.mouse_down >= 1 && d >= 60) {
if (_root.mouse_down == 1 && frame2 >= 8) {
frame = 0;
}
gun_mode = true;
}
if (_root.mouse_down == 2 && gun_mode == true && _root.hp >= 25) {
speedLimit = 1.5;
if (zyoutai3 == 'stand' || zyoutai3 == 'air_up' || zyoutai3 == 'air_down') {
ox = _x - 5;
oy = _y - 13;
} else {
if (zyoutai3 == 'run') {
ox = _x;
oy = _y - 13;
}
}
bullet_rad = Math.atan2(_root._ymouse - oy, _root._xmouse - ox);
bullet_rotation = bullet_rad * 180 / Math.PI;
if (frame % 8 == 1) {
frame2 = 0;
fire = 1;
recoverPerFrame = 0;
_root.hp -= 0.4;
_root.mb_clone(ox + 35 * Math.cos(bullet_rad), oy + 35 * Math.sin(bullet_rad), _root.board.m_atk.gun_bullet, bullet_rotation, 0, 0, 0);
}
}
if (_root.mouse_down == 1 && d < 60 && _root.hp >= 25) {
_root.hp -= 18;
_root.ef_clone(_x, _y, _root.board.effect.bomb, false);
}
if (_root.mouse_down == 0) {
++frame2;
gun_mode = false;
recoverPerFrame = _root.recoverPerFrame * 2;
}
if (_root.hp < 25) {
gun_mode = false;
}
if (_root.space_down == 1 && _root.hp >= 25) {
_root.ef_clone(_x, _y, _root.board.effect.time_stop, false);
_root.sound('time_stop');
}
if (_root.space_down == 2 && _root.hp >= 25) {
recoverPerFrame = 0;
_root.hp -= 0.05;
time_stop = 1;
_root.pause = 1;
} else {
time_stop = 0;
_root.pause = 0;
}
if (zyoutai == 'land') {
if (Key.isDown(87)) {
vy = -8;
}
friction = 0.9;
} else {
if (Key.isDown(83)) {
g = 1;
speedLimit = 7;
}
friction = 0.1;
}
if (zyoutai2 == 'neutral') {
vx *= 1 - friction;
}
if (_parent.land.hitTest(_x + posx, _y + posy + 20, true)) {
while (_parent.land.hitTest(_x + posx, _y + posy + 19, true)) {
_y = _y - 0.1;
if (vy > 0) {
vy = 0;
}
}
zyoutai = 'land';
jumpMode = 0;
} else {
vy += g;
zyoutai = 'air';
}
if (Key.isDown(68) == true && Key.isDown(65) == false) {
zyoutai2 = 'right';
} else {
if (Key.isDown(65) == true && Key.isDown(68) == false) {
zyoutai2 = 'left';
} else {
zyoutai2 = 'neutral';
}
}
if (_parent.land.hitTest(_x + posx, _y + posy - 30, true)) {
while (_parent.land.hitTest(_x + posx, _y + posy - 29, true)) {
_y = _y + 0.1;
if (vy < 0) {
vy = 0;
}
}
}
if (_parent.land.hitTest(_x + posx - 10, _y + posy + 17, true) || _parent.land.hitTest(_x + posx - 10, _y + posy - 17, true) || _parent.land.hitTest(_x + posx - 10, _y + posy, true)) {
for (;;) {
if (!(_parent.land.hitTest(_x + posx - 9, _y + posy + 17, true) || _parent.land.hitTest(_x + posx - 9, _y + posy - 17, true) || _parent.land.hitTest(_x + posx - 9, _y + posy, true))) break;
_x = _x + 0.1;
vx = 0;
}
} else {
if (zyoutai2 == 'left') {
if (vx > -max_vx) {
vx -= max_vx * friction;
} else {
vx = -max_vx;
}
}
}
if (_parent.land.hitTest(_x + posx + 10, _y + posy + 17, true) || _parent.land.hitTest(_x + posx + 10, _y + posy - 17, true) || _parent.land.hitTest(_x + posx + 10, _y + posy, true)) {
for (;;) {
if (!(_parent.land.hitTest(_x + posx + 9, _y + posy + 17, true) || _parent.land.hitTest(_x + posx + 9, _y + posy - 17, true) || _parent.land.hitTest(_x + posx + 9, _y + posy, true))) break;
_x = _x - 0.1;
vx = 0;
}
} else {
if (zyoutai2 == 'right') {
if (vx < max_vx) {
vx += max_vx * friction;
} else {
vx = max_vx;
}
}
}
if (_root.result != 'gameclear') {
if (_root.board.enemy.hitTest(_x + posx - 10, _y + posy - 30, true) || _root.board.enemy.hitTest(_x + posx + 10, _y + posy - 30, true) || _root.board.enemy.hitTest(_x + posx - 10, _y + posy, true) || _root.board.enemy.hitTest(_x + posx + 10, _y + posy, true) || _root.board.enemy.hitTest(_x + posx - 10, _y + posy + 20, true) || _root.board.enemy.hitTest(_x + posx + 10, _y + posy + 20, true)) {
_root.hp -= damagePerFrame;
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 50);
if (frame % 5 == 0) {
_root.sound('damage');
}
}
}
if (vy > speedLimit) {
vy = speedLimit;
}
_x = _x + vx;
_y = _y + vy;
if (zyoutai == 'land') {
if (zyoutai2 == 'neutral') {
zyoutai3 = 'stand';
} else {
zyoutai3 = 'run';
}
air_counter = 0;
}
if (zyoutai == 'air') {
++air_counter;
if (air_counter >= 10 || vy >= 3 || vy <= -3) {
if (vy > 0) {
zyoutai3 = 'air_down';
} else {
zyoutai3 = 'air_up';
}
}
}
if (zyoutai3 == 'run') {
if (zyoutai2 == 'right') {
_xscale = 100;
} else {
if (zyoutai2 == 'left') {
_xscale = -100;
}
}
} else {
if (_root._xmouse >= _root.board.player._x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
if (prev_zyoutai3 != zyoutai3) {
this.gotoAndPlay(zyoutai3);
}
prev_zyoutai3 = zyoutai3;
if (_root.hp < 100) {
_root.hp += recoverPerFrame;
}
if (_y > 450) {
_root.hp = 0;
}
if (_root.hp <= 0) {
i = 1;
while (i < 30) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 150);
++i;
}
_root.sound('gekiha2');
_root.hp_meter_homuhomu.gotoAndPlay(201);
if (_root.result == '') {
_root.result = 'gameover';
_root.gotoAndPlay('result');
}
this.removeMovieClip();
}
}
}
}
instance sayaka of movieClip 523 {
onClipEvent (load) {
vx = 0;
vy = 0;
d = 0;
g = 0.15;
max_vx = 4;
speedLimit = 7;
frame = 0;
time_stop = 0;
crazy = false;
charge = 0;
charged = false;
sword_counter = 0;
action = 'free';
action2 = 'free';
zyoutai = 'air';
zyoutai2 = 'neutral';
zyoutai3 = 'air_down';
prev_zyoutai3 = 'stand';
air_counter = 0;
jumpMode = 1;
friction = 0.9;
die = 0;
recoverPerFrame = _root.recoverPerFrame;
damagePerFrame = _root.damagePerFrame * 1.5;
if (this == eval(_root.board.sayaka)) {
_x = -1000;
}
}
onClipEvent (enterFrame) {
if (this != eval(_root.board.sayaka) && _root.pause == 0) {
++frame;
posx = _root.board._x;
posy = _root.board._y;
if (crazy == false) {
recoverPerFrame = _root.recoverPerFrame;
damagePerFrame = _root.damagePerFrame * 2;
} else {
recoverPerFrame = _root.recoverPerFrame * 0;
damagePerFrame = _root.damagePerFrame * 4;
}
g = 0.15;
d = Math.sqrt((_root._xmouse - _x) * (_root._xmouse - _x) + (_root._ymouse - _y) * (_root._ymouse - _y));
if (_root.mouse_down == 2 && action != 'slash' && _root.hp >= 25) {
if (charge < 20) {
if (sword_counter < 20) {
++charge;
}
} else {
_root.hp -= 4;
_root.ef_clone(_x, _y - 20, _root.board.effect.sword, false, _root._xmouse, _root._ymouse);
_root.sound('sword_appear');
++sword_counter;
charge = 0;
}
}
if (_root.mouse_down == 1 && d < 80) {
action = 'slash';
}
if (_root.mouse_down == 0) {
action = 'free';
sword_counter = 0;
}
if (_root.space_down == 1 && crazy == false) {
crazy = true;
_root.ef_clone(_x, _y, _root.board.effect.craze, false);
_root.sound('time_stop');
}
if (zyoutai == 'land') {
if (Key.isDown(87) && action == 'free') {
vy = -7.5;
}
friction = 0.9;
} else {
if (Key.isDown(83) && action == 'free') {
g = 1;
}
friction = 0.1;
}
if (zyoutai2 == 'neutral') {
vx *= 1 - friction;
}
if (_parent.land.hitTest(_x + posx, _y + posy + 20, true)) {
while (_parent.land.hitTest(_x + posx, _y + posy + 19, true)) {
_y = _y - 0.1;
if (vy > 0) {
vy = 0;
}
}
zyoutai = 'land';
jumpMode = 0;
} else {
vy += g;
zyoutai = 'air';
}
if (Key.isDown(68) == true && Key.isDown(65) == false) {
zyoutai2 = 'right';
} else {
if (Key.isDown(65) == true && Key.isDown(68) == false) {
zyoutai2 = 'left';
} else {
zyoutai2 = 'neutral';
}
}
if (_parent.land.hitTest(_x + posx, _y + posy - 30, true)) {
while (_parent.land.hitTest(_x + posx, _y + posy - 29, true)) {
_y = _y + 0.1;
if (vy < 0) {
vy = 0;
}
}
}
if (_parent.land.hitTest(_x + posx - 10, _y + posy + 17, true) || _parent.land.hitTest(_x + posx - 10, _y + posy - 17, true) || _parent.land.hitTest(_x + posx - 10, _y + posy, true)) {
for (;;) {
if (!(_parent.land.hitTest(_x + posx - 9, _y + posy + 17, true) || _parent.land.hitTest(_x + posx - 9, _y + posy - 17, true) || _parent.land.hitTest(_x + posx - 9, _y + posy, true))) break;
_x = _x + 0.1;
vx = 0;
}
} else {
if (zyoutai2 == 'left' && action != 'slash') {
if (vx > -max_vx) {
vx -= max_vx * friction;
} else {
vx = -max_vx;
}
}
}
if (_parent.land.hitTest(_x + posx + 10, _y + posy + 17, true) || _parent.land.hitTest(_x + posx + 10, _y + posy - 17, true) || _parent.land.hitTest(_x + posx + 10, _y + posy, true)) {
for (;;) {
if (!(_parent.land.hitTest(_x + posx + 9, _y + posy + 17, true) || _parent.land.hitTest(_x + posx + 9, _y + posy - 17, true) || _parent.land.hitTest(_x + posx + 9, _y + posy, true))) break;
_x = _x - 0.1;
vx = 0;
}
} else {
if (zyoutai2 == 'right' && action != 'slash') {
if (vx < max_vx) {
vx += max_vx * friction;
} else {
vx = max_vx;
}
}
}
if (_root.result != 'gameclear') {
if (_root.board.enemy.hitTest(_x + posx - 10, _y + posy - 30, true) || _root.board.enemy.hitTest(_x + posx + 10, _y + posy - 30, true) || _root.board.enemy.hitTest(_x + posx - 10, _y + posy, true) || _root.board.enemy.hitTest(_x + posx + 10, _y + posy, true) || _root.board.enemy.hitTest(_x + posx - 10, _y + posy + 20, true) || _root.board.enemy.hitTest(_x + posx + 10, _y + posy + 20, true)) {
_root.hp -= damagePerFrame;
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 50);
if (frame % 5 == 0) {
_root.sound('damage');
}
}
}
if (action == 'slash') {
if (frame % 5 == 1) {
_root.mb_clone(_x, _y - 9, _root.board.m_atk.atk_sword);
}
if (frame % 7 == 1) {
_root.sound('spin');
}
vx = 0;
}
if (vy > speedLimit) {
vy = speedLimit;
}
_x = _x + vx;
_y = _y + vy;
if (zyoutai == 'land') {
if (zyoutai2 == 'neutral') {
zyoutai3 = 'stand';
} else {
zyoutai3 = 'run';
}
air_counter = 0;
}
if (zyoutai == 'air') {
++air_counter;
if (air_counter >= 10 || vy >= 3 || vy <= -3) {
if (vy > 0) {
zyoutai3 = 'air_down';
} else {
zyoutai3 = 'air_up';
}
}
}
if (action != 'free') {
zyoutai3 = action;
}
if (zyoutai3 == 'run') {
if (zyoutai2 == 'right') {
_xscale = 100;
} else {
if (zyoutai2 == 'left') {
_xscale = -100;
}
}
} else {
if (_root._xmouse >= _root.board.player._x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
if (prev_zyoutai3 != zyoutai3) {
this.gotoAndPlay(zyoutai3);
}
prev_zyoutai3 = zyoutai3;
if (_root.hp < 100) {
_root.hp += recoverPerFrame;
}
if (_y > 450) {
_root.hp = 0;
}
if (_root.hp <= 0) {
i = 1;
while (i < 30) {
_root.ef_clone(_x, _y, _root.board.effect.explosion, false, 150);
++i;
}
_root.sound('gekiha2');
_root.hp_meter_sayaka.gotoAndPlay(201);
if (_root.result == '') {
_root.result = 'gameover';
_root.gotoAndPlay('result');
}
this.removeMovieClip();
}
}
}
}
}
instance board of movieClip 524 {
onClipEvent (enterFrame) {
if (_root.swing > 1) {
_y = Math.random() * 12 - 6;
_root.swing -= 1;
} else {
_y = 0;
}
}
}
movieClip 525 {
}
movieClip 537 {
}
movieClip 539 {
}
movieClip 541 {
frame 320 {
stop();
}
}
instance hp_meter_mami of movieClip 541 {
onClipEvent (load) {
if (_root.player_select == 'mami') {
_x = 45;
_y = 400;
}
this.stop();
}
onClipEvent (enterFrame) {
if (_root.result != 'gameover') {
a = 200 - Math.round(_root.hp * 2) + 1;
this.gotoAndStop(a);
}
}
}
movieClip 554 {
}
movieClip 563 {
}
movieClip 564 {
instance face of movieClip 554 {
onClipEvent (load) {
this.gotoAndStop(_root.witch_select);
}
}
instance of movieClip 563 {
onClipEvent (load) {
this.gotoAndStop(_root.witch_select);
}
}
}
instance witch_hp_meter of movieClip 564 {
onClipEvent (load) {
this.stop();
}
onClipEvent (enterFrame) {
a = 200 - Math.round((_root.board.enemy.enemy0.hp / _root.board.enemy.enemy0.max_hp) * 200);
this.gotoAndStop(a);
}
}
movieClip 567 {
}
instance of movieClip 567 {
onClipEvent (load) {
_root.timer = 0;
_root.timerText = '0.0';
frame = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == _root.board.player.time_stop && _root.board.enemy.enemy0.hp > 0) {
++frame;
if (frame % 6 == 0) {
_root.timer += 0.1;
}
}
_root.timer = Math.round(_root.timer * 10) / 10;
if (_root.timer % 1 == 0) {
_root.timerText = _root.timer + '.0';
} else {
_root.timerText = _root.timer;
}
}
}
button 569 {
on (press) {
_root.gotoAndPlay('select');
}
}
movieClip 572 {
}
instance of movieClip 572 {
onClipEvent (load) {
this.gotoAndStop(2);
Mouse.hide();
if (_root.player_select == 'sayaka') {
dLimit = 80;
} else {
dLimit = 60;
}
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
}
onClipEvent (enterFrame) {
tx = _root.board.player._x;
ty = _root.board.player._y;
d = Math.sqrt((tx - _x) * (tx - _x) + (ty - _y) * (ty - _y));
if (d < dLimit) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
}
movieClip 580 {
}
movieClip 582 {
}
movieClip 584 {
frame 320 {
stop();
}
}
instance hp_meter_homuhomu of movieClip 584 {
onClipEvent (load) {
if (_root.player_select == 'homuhomu') {
_x = 45;
_y = 400;
}
this.stop();
}
onClipEvent (enterFrame) {
if (_root.result != 'gameover') {
a = 200 - Math.round(_root.hp * 2) + 1;
this.gotoAndStop(a);
}
}
}
movieClip 592 {
}
movieClip 594 {
}
movieClip 596 {
frame 320 {
stop();
}
}
instance hp_meter_sayaka of movieClip 596 {
onClipEvent (load) {
if (_root.player_select == 'sayaka') {
_x = 45;
_y = 400;
}
this.stop();
}
onClipEvent (enterFrame) {
if (_root.result != 'gameover') {
a = 200 - Math.round(_root.hp * 2) + 1;
this.gotoAndStop(a);
}
}
}
movieClip 598 {
}
instance system of movieClip 598 {
onClipEvent (load) {
frame = 0;
_root.mouse_status = 0;
if (_root.witch_select == 'gertrud') {
_root.board.enemy.gertrud.duplicateMovieClip('enemy0', 5000, {'_x': 380, '_y': 272});
} else {
if (_root.witch_select == 'incubators') {
_root.board.enemy.incubator_boss.duplicateMovieClip('enemy0', 5000, {'_x': 650, '_y': 0});
} else {
if (_root.witch_select == 'oktavia') {
_root.board.enemy.oktavia.duplicateMovieClip('enemy0', 5000, {'_x': 300, '_y': 150});
} else {
if (_root.witch_select == 'elly') {
_root.board.enemy.elly.duplicateMovieClip('enemy0', 5000, {'_x': 300, '_y': 80});
} else {
if (_root.witch_select == 'elsamaria') {
_root.board.enemy.elsamaria.duplicateMovieClip('enemy0', 5000, {'_x': 418, '_y': 251});
} else {
if (_root.witch_select == 'charlotte') {
_root.board.enemy.charlotte.duplicateMovieClip('enemy0', 5000, {'_x': 480, '_y': 167});
} else {
if (_root.witch_select == 'oktavia2') {
_root.board.enemy.oktavia2.duplicateMovieClip('enemy0', 5000, {'_x': 300, '_y': 150});
} else {
if (_root.witch_select == 'walpurgis') {
_root.board.enemy.walpurgis.duplicateMovieClip('enemy0', 5000, {'_x': 450, '_y': 50});
}
}
}
}
}
}
}
}
if (_root.player_select == 'mami') {
_root.board.mami.duplicateMovieClip('player', 6000, {'_x': 70, '_y': 100});
} else {
if (_root.player_select == 'homuhomu') {
_root.board.homuhomu.duplicateMovieClip('player', 6000, {'_x': 70, '_y': 100});
} else {
if (_root.player_select == 'sayaka') {
_root.board.sayaka.duplicateMovieClip('player', 6000, {'_x': 70, '_y': 100});
}
}
}
}
onClipEvent (mouseDown) {
_root.mouse_status = 1;
}
onClipEvent (mouseUp) {
_root.mouse_status = 0;
}
onClipEvent (enterFrame) {
++frame;
_root.prev_mouse_down = _root.mouse_down;
if (_root.mouse_status == 1) {
_root.mouse_down = 2;
} else {
_root.mouse_down = 0;
}
if (_root.prev_mouse_down == 0 && _root.mouse_down == 2) {
_root.mouse_down = 1;
}
_root.prev_space_down = _root.space_down;
if (Key.isDown(32)) {
_root.space_down = 2;
} else {
_root.space_down = 0;
}
if (_root.prev_space_down == 0 && _root.space_down == 2) {
_root.space_down = 1;
}
_root.over = 1;
i = 1;
while (i <= 10) {
if (_root.sindo_map[i] == 0) {
_root.put = i;
_root.over = 0;
break;
}
++i;
}
}
}
frame 109 {
_root.pause = 0;
}
movieClip 600 {
}
frame 143 {
stop();
if (_root.witch_select == 'gertrud' || _root.witch_select == 'incubators' || _root.witch_select == 'elly' || _root.witch_select == 'charlotte') {
_root.board.sound.bgm.gotoAndStop('eigyou');
} else {
if (_root.witch_select == 'oktavia' || _root.witch_select == 'oktavia2') {
_root.board.sound.bgm.gotoAndStop('oktavia');
} else {
if (_root.witch_select == 'elsamaria') {
_root.board.sound.bgm.gotoAndStop('sayaka');
} else {
if (_root.witch_select == 'walpurgis') {
_root.board.sound.bgm.gotoAndStop('walpurgis');
}
}
}
}
}
frame 144 {
play();
}
frame 280 {
if (_root.result == 'gameover') {
_root.gotoAndPlay('select');
}
}
frame 281 {
stop();
}
movieClip 602 {
}
instance of movieClip 602 {
onClipEvent (load) {
if (_root.witch_select == 'gertrud') {
witchName = 'GERTRUD';
} else {
if (_root.witch_select == 'incubators') {
witchName = 'QB100体';
} else {
if (_root.witch_select == 'oktavia') {
witchName = 'OKTAVIA';
} else {
if (_root.witch_select == 'elly') {
witchName = 'H.N.ELLY';
} else {
if (_root.witch_select == 'elsamaria') {
witchName = 'ELSAMARIA';
} else {
if (_root.witch_select == 'charlotte') {
witchName = 'CHARLOTTE';
} else {
if (_root.witch_select == 'oktavia2') {
witchName = 'OKTAVIA(赤)';
} else {
if (_root.witch_select == 'walpurgis') {
witchName = 'ワルプルギスã®å¤œ';
}
}
}
}
}
}
}
}
_root.resultText = witchName + 'ã‚’' + _root.timerText + '秒ã§æ’ƒç ´';
}
}
button 604 {
on (press) {
if (_root.witch_select == 'gertrud') {
witchName = 'GERTRUD';
} else {
if (_root.witch_select == 'incubators') {
witchName = 'QB100%e4%bd%93';
} else {
if (_root.witch_select == 'oktavia') {
witchName = 'OKTAVIA';
} else {
if (_root.witch_select == 'elly') {
witchName = 'H.N.ELLY';
} else {
if (_root.witch_select == 'elsamaria') {
witchName = 'ELSAMARIA';
} else {
if (_root.witch_select == 'charlotte') {
witchName = 'CHARLOTTE';
} else {
if (_root.witch_select == 'oktavia2') {
witchName = 'OKTAVIA%EF%BC%88%E8%B5%A4%EF%BC%89';
} else {
if (_root.witch_select == 'walpurgis') {
witchName = '%E3%83%AF%E3%83%AB%E3%83%97%E3%83%AB%E3%82%AE%E3%82%B9%E3%81%AE%E5%A4%9C';
}
}
}
}
}
}
}
}
if (_root.player_select == 'mami') {
playerName = '%E3%83%9E%E3%83%9F%E3%81%95%E3%82%93';
} else {
if (_root.player_select == 'homuhomu') {
playerName = '%E3%81%BB%E3%82%80%E3%81%BB%E3%82%80';
} else {
if (_root.player_select == 'sayaka') {
playerName = '%E3%81%95%E3%82%84%E3%81%8B';
}
}
}
getURL('http://twitter.com/intent/tweet?text=' + playerName + '%e3%81%8c' + witchName + '%e3%82%92' + timerText + '%e7%a7%92%e3%81%a7%e6%92%83%e7%a0%b4' + ' http://www.geocities.jp/meteosfaulte/flash/madomagi_wars.htm %23madomagi_wars', '_blank');
}
}