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;
}
}
}
}
}
}
}
}
}
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';
}
}
// unknown tag 88 length 142
movieClip 102 {
}
movieClip 107 {
}
instance bgm of movieClip 107 {
onClipEvent (load) {
this.stop();
}
}
movieClip 109 {
}
movieClip 115 {
}
movieClip 130 {
}
movieClip 139 {
instance of movieClip 130 {
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;
}
}
}
}
movieClip 141 {
}
movieClip 142 {
instance charbody of movieClip 141 {
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 145 {
}
movieClip 147 {
}
movieClip 158 {
}
movieClip 167 {
frame 60 {
if (_parent.roseSensor == 1) {
this.gotoAndPlay('loop_start');
}
}
frame 356 {
_parent.zyoutai = 'stand';
_parent.gotoAndPlay('stand');
}
}
movieClip 168 {
frame 1 {
stop();
}
instance of movieClip 158 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
frame 2 {
stop();
}
instance of movieClip 167 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
}
movieClip 170 {
}
movieClip 172 {
}
movieClip 174 {
}
movieClip 179 {
}
movieClip 181 {
frame 109 {
_parent.zyoutai = 'stand';
_parent.gotoAndStop('stand');
}
}
movieClip 182 {
frame 1 {
stop();
}
instance of movieClip 179 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
frame 2 {
stop();
}
instance of movieClip 181 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
}
movieClip 191 {
frame 6 {
stop();
}
}
movieClip 200 {
}
movieClip 202 {
}
movieClip 203 {
instance of movieClip 200 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
instance of movieClip 200 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
instance gamen of movieClip 202 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
}
movieClip 208 {
}
movieClip 213 {
}
movieClip 216 {
}
movieClip 217 {
instance of movieClip 208 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
instance of movieClip 213 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
instance of movieClip 216 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
}
movieClip 223 {
frame 2 {
goFrame = Math.round(Math.random() * 4 + 2.5);
gotoAndStop(goFrame);
}
}
movieClip 225 {
}
movieClip 230 {
}
movieClip 232 {
}
movieClip 235 {
}
movieClip 240 {
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 247 {
instance of movieClip 240 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
}
movieClip 252 {
}
movieClip 261 {
frame 100 {
_parent.zyoutai = 'stand';
_parent.gotoAndStop('stand');
}
}
movieClip 262 {
frame 1 {
stop();
}
instance of movieClip 252 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
frame 2 {
stop();
}
instance of movieClip 261 {
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
}
}
movieClip 274 {
frame 2 {
if (Math.random() > 0.5) {
gotoAndPlay('a');
} else {
gotoAndPlay('b');
}
}
frame 42 {
gotoAndPlay('a');
}
frame 82 {
gotoAndPlay('b');
}
}
movieClip 275 {
instance anthony of movieClip 145 {
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 147 {
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 168 {
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 170 {
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 172 {
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 174 {
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 182 {
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 191 {
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 203 {
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 217 {
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 223 {
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 225 {
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 230 {
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 232 {
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 235 {
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 247 {
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 262 {
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 191 {
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 274 {
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();
}
}
}
}
movieClip 278 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 281 {
}
movieClip 284 {
}
movieClip 285 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 21 {
this.removeMovieClip();
}
}
movieClip 287 {
}
movieClip 289 {
}
movieClip 293 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 53 {
this.removeMovieClip();
}
}
movieClip 295 {
}
movieClip 296 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
movieClip 300 {
frame 1 {
stop();
}
frame 12 {
this.gotoAndPlay(3);
}
}
movieClip 302 {
}
movieClip 303 {
frame 20 {
this.removeMovieClip();
}
}
movieClip 304 {
}
movieClip 306 {
}
movieClip 307 {
instance explosion of movieClip 278 {
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 285 {
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 293 {
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 296 {
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 300 {
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 303 {
onClipEvent (load) {
if (this != eval(_root.board.effect.time_stop)) {
this.gotoAndPlay(2);
} else {
_x = -1000;
}
}
}
instance sebasbody of movieClip 304 {
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 303 {
onClipEvent (load) {
if (this != eval(_root.board.effect.craze)) {
this.gotoAndPlay(2);
} else {
_x = -1000;
}
}
}
instance sword of movieClip 306 {
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();
}
}
}
}
}
movieClip 309 {
frame 1 {
stop();
}
frame 2 {
this.gotoAndPlay(1);
}
}
movieClip 311 {
frame 1 {
stop();
}
frame 2 {
this.gotoAndPlay(1);
}
}
movieClip 313 {
frame 1 {
stop();
}
frame 2 {
this.gotoAndPlay(1);
}
}
movieClip 315 {
frame 1 {
stop();
}
frame 2 {
this.gotoAndPlay(1);
}
}
movieClip 317 {
frame 1 {
stop();
}
frame 2 {
this.gotoAndPlay(1);
}
}
movieClip 319 {
frame 1 {
stop();
}
frame 2 {
this.gotoAndPlay(1);
}
}
movieClip 321 {
frame 1 {
stop();
}
frame 2 {
this.gotoAndPlay(1);
}
}
movieClip 323 {
frame 1 {
stop();
}
frame 2 {
this.gotoAndPlay(1);
}
}
movieClip 326 {
frame 1 {
stop();
}
frame 2 {
this.gotoAndPlay(1);
}
}
movieClip 327 {
instance bgm of movieClip 107 {
onClipEvent (load) {
this.stop();
}
}
}
movieClip 330 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 331 {
}
movieClip 333 {
}
movieClip 334 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 5 {
this.removeMovieClip();
}
}
movieClip 336 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 339 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 341 {
frame 1 {
stop();
}
}
movieClip 342 {
frame 5 {
this.removeMovieClip();
}
}
movieClip 343 {
instance bullet of movieClip 330 {
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 334 {
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 336 {
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 339 {
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 341 {
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 306 {
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 342 {
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 345 {
}
movieClip 347 {
frame 1 {
stop();
}
}
movieClip 350 {
}
movieClip 351 {
}
movieClip 353 {
}
movieClip 355 {
}
movieClip 356 {
}
movieClip 358 {
}
movieClip 360 {
}
movieClip 361 {
}
movieClip 362 {
}
movieClip 364 {
}
movieClip 366 {
}
movieClip 367 {
}
movieClip 368 {
}
movieClip 373 {
}
movieClip 374 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 376 {
}
movieClip 381 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 9 {
this.gotoAndStop(2);
}
}
movieClip 383 {
}
movieClip 385 {
}
movieClip 387 {
}
movieClip 388 {
instance of movieClip 381 {
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 390 {
}
movieClip 392 {
}
movieClip 393 {
instance of movieClip 381 {
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 394 {
}
movieClip 396 {
}
movieClip 398 {
}
movieClip 399 {
instance of movieClip 381 {
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 400 {
instance of movieClip 381 {
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 401 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 403 {
}
movieClip 406 {
}
movieClip 409 {
}
movieClip 410 {
}
movieClip 412 {
}
movieClip 415 {
}
movieClip 416 {
instance of movieClip 406 {
onClipEvent (enterFrame) {
if (_root.board.player._xscale == 100) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
}
instance of movieClip 415 {
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 406 {
onClipEvent (enterFrame) {
if (_root.board.player._xscale == 100) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
}
movieClip 418 {
}
movieClip 420 {
}
movieClip 421 {
instance of movieClip 406 {
onClipEvent (enterFrame) {
if (_root.board.player._xscale == 100) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
}
instance of movieClip 415 {
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 406 {
onClipEvent (enterFrame) {
if (_root.board.player._xscale == 100) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
}
movieClip 422 {
}
movieClip 424 {
}
movieClip 426 {
}
movieClip 427 {
instance of movieClip 406 {
onClipEvent (enterFrame) {
if (_root.board.player._xscale == 100) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
}
instance of movieClip 415 {
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 406 {
onClipEvent (enterFrame) {
if (_root.board.player._xscale == 100) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
}
movieClip 428 {
instance of movieClip 406 {
onClipEvent (enterFrame) {
if (_root.board.player._xscale == 100) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
}
instance of movieClip 415 {
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 406 {
onClipEvent (enterFrame) {
if (_root.board.player._xscale == 100) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
}
movieClip 429 {
instance of movieClip 406 {
onClipEvent (load) {
stop();
}
}
instance of movieClip 415 {
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 406 {
onClipEvent (load) {
stop();
}
}
}
movieClip 430 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 431 {
instance land of movieClip 115 {
onClipEvent (load) {
this.gotoAndStop(_root.witch_select);
}
}
instance background of movieClip 139 {
onClipEvent (load) {
this.gotoAndStop(_root.witch_select);
}
}
instance enemy of movieClip 275 {
onClipEvent (load) {
this.gotoAndStop(_root.witch_select);
}
}
instance mami of movieClip 374 {
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 (_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 401 {
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 (_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 430 {
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 (_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 431 {
onClipEvent (enterFrame) {
if (_root.swing > 1) {
_y = Math.random() * 12 - 6;
_root.swing -= 1;
} else {
_y = 0;
}
}
}
movieClip 432 {
}
movieClip 444 {
}
movieClip 446 {
}
movieClip 448 {
frame 320 {
stop();
}
}
instance hp_meter_mami of movieClip 448 {
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 460 {
}
movieClip 468 {
}
movieClip 469 {
instance face of movieClip 460 {
onClipEvent (load) {
this.gotoAndStop(_root.witch_select);
}
}
instance of movieClip 468 {
onClipEvent (load) {
this.gotoAndStop(_root.witch_select);
}
}
}
instance witch_hp_meter of movieClip 469 {
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 472 {
}
instance of movieClip 472 {
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 474 {
on (press) {
_root.gotoAndPlay('select');
}
}
movieClip 477 {
}
instance of movieClip 477 {
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 485 {
}
movieClip 487 {
}
movieClip 489 {
frame 320 {
stop();
}
}
instance hp_meter_homuhomu of movieClip 489 {
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 497 {
}
movieClip 499 {
}
movieClip 501 {
frame 320 {
stop();
}
}
instance hp_meter_sayaka of movieClip 501 {
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 503 {
}
instance system of movieClip 503 {
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});
}
}
}
}
}
}
}
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 505 {
}
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');
}
}
}
}
frame 144 {
play();
}
frame 280 {
if (_root.result == 'gameover') {
_root.gotoAndPlay('select');
}
}
frame 281 {
stop();
}
movieClip 507 {
}
instance of movieClip 507 {
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(赤)';
}
}
}
}
}
}
}
if (_root.player_select == 'mami') {
playerName = 'マミã•ã‚“';
} else {
if (_root.player_select == 'homuhomu') {
playerName = 'ã»ã‚€ã»ã‚€';
}
}
_root.resultText = witchName + 'ã‚’' + _root.timerText + '秒ã§æ’ƒç ´';
}
}
button 509 {
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';
}
}
}
}
}
}
}
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://bit.ly/ezzSH4 %23madomagi_wars', '_blank');
}
}