Frame 1
lineStyle(1, 6710886);
moveTo(-5000, 265);
lineTo(0, 265);
lineTo(5000, 265);
stop();
if (index == undefined) {
index = true;
}
if (wall == undefined) {
wall = false;
}
if (wind == undefined) {
wind = 0;
}
if (_root.wind != 0) {
_root.wind = Math.random() - 0.5;
}
if (_root.syokiHP == undefined) {
_root.syokiHP = 2;
}
hitoHP = _root.syokiHP;
hito2HP = _root.syokiHP;
Instance of Symbol 60 MovieClip "setting" in Frame 1
onClipEvent (load) {
this._alpha = 0;
}
Frame 2
turn = 1;
stop();
Instance of Symbol 61 MovieClip "mato" in Frame 2
onClipEvent (load) {
this._x = 800 + (Math.random() * 2000);
_root.mhaikei._x = this._x;
_root.matohaikei._x = this._x;
_root.taiyou._x = (this._x + 200) / 2;
_root.hitoHP = 3000;
}
Instance of Symbol 100 MovieClip "hito" in Frame 2
onClipEvent (mouseDown) {
drag = true;
this.yumi.gotoAndStop(2);
xzero = _xmouse;
yzero = _ymouse;
_root.gravity = 0.5;
_root.sign._visible = true;
_root.sign._x = _root._xmouse;
_root.sign._y = _root._ymouse;
nagasa = 3;
radian = 0;
muki = true;
}
onClipEvent (enterFrame) {
if (drag) {
ymo = _ymouse - yzero;
xmo = _xmouse - xzero;
radian = Math.atan2(-ymo, -xmo);
kakudo = (radian * 180) / Math.PI;
this.yumi._rotation = kakudo;
power = Math.sqrt((ymo * ymo) + (xmo * xmo)) / 10;
if (power > 25) {
power = 25;
}
nagasa = Math.floor(power) + 2;
this.yumi.gotoAndStop(nagasa);
}
if ((Math.round(Math.random() * 30) == 1) && (_root.wind != 0)) {
_root.hadep++;
_root.haba.attachMovie("happa", "ha" + _root.hadep, _root.hadep);
_root.haba["ha" + _root.hadep]._x = (-_root._x) + (Math.random() * 400);
_root.haba["ha" + _root.hadep]._y = 265;
}
}
onClipEvent (mouseUp) {
drag = false;
_root.sign._visible = false;
this.yumi.gotoAndStop(this.yumi._totalframes);
addx = (Math.cos(radian) * power) * 1.5;
addy = (Math.sin(radian) * power) * 1.5;
_root.depth++;
_root.yaba.attachMovie("ya", "ya" + _root.depth, _root.depth);
_root.yaba["ya" + _root.depth]._x = this._x + (Math.cos(radian) * 32);
_root.yaba["ya" + _root.depth]._y = this._y + (Math.sin(radian) * 32);
_root.yaba["ya" + _root.depth].addx = addx;
_root.yaba["ya" + _root.depth].addy = addy;
_root.yaba["ya" + _root.depth].mydepth = _root.depth;
}
Instance of Symbol 109 MovieClip "sign" in Frame 2
onClipEvent (load) {
this._visible = false;
if (_root.index == false) {
this._xscale = 0;
this._yscale = 0;
}
}
Frame 3
turn = 1;
stop();
Instance of Symbol 100 MovieClip "hito" in Frame 3
onClipEvent (mouseDown) {
if (((_root.turn == 1) && (_root.hitoHP > 0)) && (_root.hito2HP > 0)) {
drag = true;
this.yumi.gotoAndStop(2);
xzero = _xmouse;
yzero = _ymouse;
_root.gravity = 0.5;
_root.sign._visible = true;
_root.sign._x = _root._xmouse;
_root.sign._y = _root._ymouse;
nagasa = 3;
radian = 0;
muki = true;
}
}
onClipEvent (enterFrame) {
if (drag) {
ymo = _ymouse - yzero;
xmo = _xmouse - xzero;
radian = Math.atan2(-ymo, -xmo);
kakudo = (radian * 180) / Math.PI;
this.yumi._rotation = kakudo;
power = Math.sqrt((ymo * ymo) + (xmo * xmo)) / 10;
if (power > 25) {
power = 25;
}
nagasa = Math.floor(power) + 2;
this.yumi.gotoAndStop(nagasa);
}
if ((Math.round(Math.random() * 10) == 1) && (_root.wind != 0)) {
_root.hadep++;
_root.haba.attachMovie("happa", "ha" + _root.hadep, _root.hadep);
_root.haba["ha" + _root.hadep]._x = (-_root._x) + (Math.random() * 400);
_root.haba["ha" + _root.hadep]._y = 265;
}
}
onClipEvent (mouseUp) {
if (drag) {
_root.turn = 2;
drag = false;
_root.sign._visible = false;
this.yumi.gotoAndStop(this.yumi._totalframes);
addx = (Math.cos(radian) * power) * 1.5;
addy = (Math.sin(radian) * power) * 1.5;
_root.depth++;
_root.yaba.attachMovie("ya", "ya" + _root.depth, _root.depth);
_root.yaba["ya" + _root.depth]._x = this._x + (Math.cos(radian) * 32);
_root.yaba["ya" + _root.depth]._y = this._y + (Math.sin(radian) * 32);
_root.yaba["ya" + _root.depth].addx = addx;
_root.yaba["ya" + _root.depth].addy = addy;
_root.yaba["ya" + _root.depth].mydepth = _root.depth;
}
}
Instance of Symbol 100 MovieClip "hito2" in Frame 3
onClipEvent (load) {
this.nextFrame();
if (_root.wind == 0) {
this._x = 800 + (Math.random() * 2000);
} else {
this._x = 800 + (Math.random() * 1000);
}
_root.hitoatari2._x = this._x;
_root.haikei._x = this._x;
if (_root.wall) {
if (_root.wind == 0) {
_root.mato._yscale = ((Math.random() * 400) + 200) * -1;
} else {
_root.mato._yscale = ((Math.random() * 150) + 150) * -1;
}
} else {
_root.mato._yscale = 0;
}
_root.mato._x = (this._x + 200) / 2;
_root.taiyou._x = (this._x + 200) / 2;
}
onClipEvent (mouseDown) {
if (((_root.turn == 2) && (_root.hitoHP > 0)) && (_root.hito2HP > 0)) {
drag = true;
this.yumi.gotoAndStop(2);
xzero = _xmouse;
yzero = _ymouse;
_root.gravity = 0.5;
_root.sign._visible = true;
_root.sign._x = _root._xmouse;
_root.sign._y = _root._ymouse;
nagasa = 3;
radian = 0;
muki = true;
}
}
onClipEvent (enterFrame) {
if (drag) {
ymo = _ymouse - yzero;
xmo = _xmouse - xzero;
radian = Math.atan2(-ymo, -xmo);
kakudo = (radian * 180) / Math.PI;
this.yumi._rotation = kakudo;
power = Math.sqrt((ymo * ymo) + (xmo * xmo)) / 10;
if (power > 25) {
power = 25;
}
nagasa = Math.floor(power) + 2;
this.yumi.gotoAndStop(nagasa);
}
}
onClipEvent (mouseUp) {
if (drag) {
_root.turn = 1;
drag = false;
_root.sign._visible = false;
this.yumi.gotoAndStop(this.yumi._totalframes);
addx = (Math.cos(radian) * power) * 1.5;
addy = (Math.sin(radian) * power) * 1.5;
_root.depth++;
_root.yaba.attachMovie("ya", "ya" + _root.depth, _root.depth);
_root.yaba["ya" + _root.depth]._x = this._x + (Math.cos(radian) * 32);
_root.yaba["ya" + _root.depth]._y = this._y + (Math.sin(radian) * 32);
_root.yaba["ya" + _root.depth].addx = addx;
_root.yaba["ya" + _root.depth].addy = addy;
_root.yaba["ya" + _root.depth].mydepth = _root.depth;
}
}
Instance of Symbol 113 MovieClip "syouri" in Frame 3
onClipEvent (enterFrame) {
if (thi > 0) {
thi++;
if (thi == 150) {
this.play();
}
if (thi == 250) {
_root._x = 0;
_root._y = 0;
_root._xscale = 100;
_root._yscale = 100;
_root.gotoAndStop(1);
}
} else if (_root.hitoHP == 0) {
thi = 1;
this._x = _root.hito2._x;
this.gotoAndStop(21);
} else if (_root.hito2HP == 0) {
thi = 1;
}
}
Frame 4
turn = 1;
stop();
Instance of Symbol 109 MovieClip "sign" in Frame 4
onClipEvent (load) {
this._visible = false;
if (_root.index == false) {
this._xscale = 0;
this._yscale = 0;
}
}
Instance of Symbol 113 MovieClip "syouri" in Frame 4
onClipEvent (enterFrame) {
if (thi > 0) {
thi++;
if (thi == 150) {
this.play();
}
if (thi == 250) {
_root._x = 0;
_root._y = 0;
_root._xscale = 100;
_root._yscale = 100;
_root.gotoAndStop(1);
}
} else if (_root.hitoHP == 0) {
thi = 1;
this._x = _root.hito2._x;
this.gotoAndStop(21);
} else if (_root.hito2HP == 0) {
thi = 1;
}
}
Instance of Symbol 100 MovieClip "hito2" in Frame 4
onClipEvent (load) {
this.nextFrame();
if (_root.wind == 0) {
this._x = 800 + (Math.random() * 2000);
} else {
this._x = 800 + (Math.random() * 1000);
}
_root.hitoatari2._x = this._x;
_root.haikei._x = this._x;
_root.hitresult = _root.hito2._x - _root.hito._x;
maxpow = _root.hitresult / 70;
if (_root.wall) {
if (_root.wind == 0) {
_root.mato._yscale = ((Math.random() * 400) + 200) * -1;
} else {
_root.mato._yscale = ((Math.random() * 150) + 150) * -1;
}
} else {
_root.mato._yscale = 0;
}
_root.mato._x = (this._x + 200) / 2;
_root.taiyou._x = (this._x + 200) / 2;
drag = false;
}
onClipEvent (enterFrame) {
if (((((_root.turn == 2) && (_root.hitoHP > 0)) && (_root.hito2HP > 0)) && (drag == false)) && (Math.abs((_root._x + this._x) - 200) < 2)) {
drag = true;
this.yumi.gotoAndStop(2);
xzero = -100;
yzero = -100;
comx = xzero;
comy = yzero;
if ((_root.hitresult == "wall") || ((maxpow == 24) && (_root.hitresult > 10))) {
yakakudo = yakakudo + (Math.random() - (_root.mato._yscale / 300));
}
addcomx = ((9 - yakakudo) + Math.random()) - 0.5;
addcomy = ((3 + yakakudo) + Math.random()) - 0.5;
yakakudo = yakakudo / 1.2;
if (_root.hitresult != "wall") {
maxpow = maxpow + (_root.hitresult / 200);
if (maxpow > 24) {
maxpow = 24;
}
}
_root.gravity = 0.5;
_root.sign._visible = true;
_root.sign._x = this._x + xzero;
_root.sign._y = this._y + xzero;
nagasa = 3;
radian = 0;
muki = true;
}
if (drag) {
comx = comx + addcomx;
comy = comy + addcomy;
ymo = comy - yzero;
xmo = comx - xzero;
radian = Math.atan2(-ymo, -xmo);
kakudo = (radian * 180) / Math.PI;
this.yumi._rotation = kakudo;
power = Math.sqrt((ymo * ymo) + (xmo * xmo)) / 10;
if (power > 25) {
power = 25;
}
nagasa = Math.floor(power) + 2;
this.yumi.gotoAndStop(nagasa);
if (power > maxpow) {
addcomx = addcomx / 2;
addcomy = addcomy / 2;
okure++;
if (drag && (okure > 20)) {
_root.turn = 1;
drag = false;
_root.sign._visible = false;
this.yumi.gotoAndStop(this.yumi._totalframes);
addx = (Math.cos(radian) * power) * 1.5;
addy = (Math.sin(radian) * power) * 1.5;
_root.depth++;
_root.yaba.attachMovie("ya", "ya" + _root.depth, _root.depth);
_root.yaba["ya" + _root.depth]._x = this._x + (Math.cos(radian) * 32);
_root.yaba["ya" + _root.depth]._y = this._y + (Math.sin(radian) * 32);
_root.yaba["ya" + _root.depth].addx = addx;
_root.yaba["ya" + _root.depth].addy = addy;
_root.yaba["ya" + _root.depth].mydepth = _root.depth;
okure = 0;
}
}
}
}
Symbol 11 MovieClip Frame 6
stop();
Symbol 13 MovieClip [ya] Frame 1
function syori() {
if (_root.camera == mydepth) {
if (frag > 0) {
frag--;
rootaddx = ((((-this._x) * (_root._xscale / 100)) - _root._x) + 200) / (3 / (_root._xscale / 100));
rootaddy = ((((-this._y) * (_root._xscale / 100)) - _root._y) + 150) / (3 / (_root._xscale / 100));
_root._x = _root._x + rootaddx;
_root._y = _root._y + rootaddy;
} else if ((frag <= 0) && (frag > -50)) {
if (((_root.turn == 1) && (_root.hitoHP > 0)) || (_root.hito2HP == 0)) {
frag--;
rootaddx = ((((-_root.hito._x) * (_root._xscale / 100)) - _root._x) + 200) / 5;
rootaddy = ((((-(_root.hito._y - 50)) * (_root._xscale / 100)) - _root._y) + 150) / 5;
_root._x = _root._x + rootaddx;
_root._y = _root._y + rootaddy;
} else {
frag--;
rootaddx = ((((-_root.hito2._x) * (_root._xscale / 100)) - _root._x) + 200) / 5;
rootaddy = ((((-(_root.hito2._y - 50)) * (_root._xscale / 100)) - _root._y) + 150) / 5;
_root._x = _root._x + rootaddx;
_root._y = _root._y + rootaddy;
}
}
}
}
stop();
frag = 5;
_root.camera++;
divide = 8;
addx = addx / divide;
addy = addy / divide;
maziaddx = this._x;
maziaddy = this._y;
this.onEnterFrame = function () {
if (_root.camera == mydepth) {
frag--;
if (frag < 0) {
rootaddx = ((((-this._x) * (_root._xscale / 100)) - _root._x) + 200) / (3 / (_root._xscale / 100));
rootaddy = ((((-this._y) * (_root._xscale / 100)) - _root._y) + 150) / (3 / (_root._xscale / 100));
_root._x = _root._x + rootaddx;
_root._y = _root._y + rootaddy;
}
}
addy = addy + (_root.gravity / divide);
addx = addx + (_root.wind / divide);
this._rotation = (Math.atan2(addy, addx) * 180) / Math.PI;
i = 0;
while (i < divide) {
maziaddx = maziaddx + addx;
maziaddy = maziaddy + addy;
this._x = maziaddx;
this._y = maziaddy;
if (_root.mato.hitTest(this._x, this._y, false)) {
this.gotoAndStop(4);
return;
}
if (_root.hitoatari.hitTest(this._x, this._y, false)) {
sibuki = 5;
if (this._y < 250) {
_root.hitoHP--;
sibuki = 11;
}
this.gotoAndStop(3);
return;
}
if (_root.hitoatari2.hitTest(this._x, this._y, false)) {
sibuki = 5;
if (this._y < 250) {
_root.hito2HP--;
sibuki = 11;
}
this.gotoAndStop(3);
return;
}
if (this._y > 265) {
this.gotoAndStop(2);
return;
}
i++;
}
};
Symbol 13 MovieClip [ya] Frame 2
frag = 50;
if (_root.turn == 1) {
_root.hitresult = this._x - _root.hito._x;
}
if (_root.wind != 0) {
_root.wind = _root.wind + ((Math.random() * 0.2) - 0.1);
if (Math.abs(_root.wind) > 0.5) {
_root.wind = (_root.wind / Math.abs(_root.wind)) * 0.5;
}
}
this.onEnterFrame = function () {
syori();
if (Key.isDown(38) && (_root.camera != mydepth)) {
this.removeMovieClip();
}
};
Symbol 13 MovieClip [ya] Frame 3
frag = 50;
if (_root.turn == 1) {
_root.hitresult = this._x - _root.hito._x;
}
if (_root.wind != 0) {
_root.wind = _root.wind + ((Math.random() * 0.2) - 0.1);
if (Math.abs(_root.wind) > 0.5) {
_root.wind = (_root.wind / Math.abs(_root.wind)) * 0.5;
}
}
tikazu = 0;
if ((_root.hitoHP == 0) || (_root.hito2HP == 0)) {
tikazu = 40;
frag = frag + 50;
}
i = 1;
while (i < (sibuki + tikazu)) {
_root.tidep = _root.tidep + 1000;
_root.attachMovie("ti", "ti" + _root.tidep, _root.tidep);
_root["ti" + _root.tidep]._x = this._x;
_root["ti" + _root.tidep]._y = this._y;
_root["ti" + _root.tidep].addx = ((addx * 4) / i) + (((-addx) * tikazu) / 25);
_root["ti" + _root.tidep].addy = (((addy * 3) * Math.random()) - 0.5) - ((tikazu * 2) / (i + 10));
min = Math.random() * 80;
_root["ti" + _root.tidep]._xscale = _xscale - min;
_root["ti" + _root.tidep]._yscale = _yscale - min;
_root["ti" + _root.tidep].okure = i;
i++;
}
this.onEnterFrame = function () {
syori();
};
Symbol 13 MovieClip [ya] Frame 4
frag = 50;
if (_root.turn == 1) {
_root.hitresult = "wall";
}
if (_root.wind != 0) {
_root.wind = _root.wind + ((Math.random() * 0.2) - 0.1);
if (Math.abs(_root.wind) > 0.5) {
_root.wind = (_root.wind / Math.abs(_root.wind)) * 0.5;
}
}
this.onEnterFrame = function () {
syori();
if (Key.isDown(38)) {
this.removeMovieClip();
}
};
Symbol 15 MovieClip [ti] Frame 1
zimen = Math.random() * 20;
this._visible = false;
this.onEnterFrame = function () {
okure--;
if (okure < 0) {
this._visible = true;
if (this._y < (zimen + 270)) {
addy = addy + _root.gravity;
addx = addx + _root.wind;
this._x = this._x + addx;
this._y = this._y + addy;
} else {
teisu = this._xscale / 20;
_root.tinuri.beginFill(16711680, 100);
_root.tinuri.lineStyle(undefined);
_root.tinuri.moveTo(this._x, this._y - (teisu / 2));
_root.tinuri.curveTo(this._x + teisu, this._y - (teisu / 2), this._x + teisu, this._y);
_root.tinuri.curveTo(this._x + teisu, this._y + (teisu / 2), this._x, this._y + (teisu / 2));
_root.tinuri.curveTo(this._x - teisu, this._y + (teisu / 2), this._x - teisu, this._y);
_root.tinuri.curveTo(this._x - teisu, this._y - (teisu / 2), this._x, this._y - (teisu / 2));
_root.tinuri.endFill();
this.removeMovieClip();
}
}
};
Symbol 24 MovieClip [happa] Frame 1
this.gotoAndStop(Math.ceil(Math.random() * _totalframes));
kieru = 0;
this._alpha = 0;
randro = (Math.random() * 40) + 80;
this.onEnterFrame = function () {
this._x = this._x + (_root.wind * 20);
this._rotation = this._rotation + (_root.wind * randro);
this._alpha = 8 * (50 - Math.abs(kieru - 50));
kieru++;
if (kieru > 100) {
this.removeMovieClip();
}
};
Symbol 34 MovieClip Frame 40
stop();
Symbol 39 MovieClip Frame 8
stop();
Symbol 41 Button
on (release) {
gotoAndStop (3);
}
Symbol 42 Button
on (release) {
gotoAndStop (4);
}
Symbol 43 Button
on (release) {
gotoAndStop (2);
}
Symbol 44 Button
on (release) {
_root.setting._y = 145;
_root.setting._alpha = 100;
}
Symbol 50 Button
on (release) {
this._y = 445;
this._alpha = 0;
}
Symbol 55 MovieClip Frame 1
this.gotoAndStop(_root.hitoHP);
Symbol 59 MovieClip Frame 1
stop();
Instance of Symbol 46 MovieClip in Symbol 60 MovieClip Frame 1
on (press) {
}
Instance of Symbol 55 MovieClip in Symbol 60 MovieClip Frame 1
on (release) {
_root.syokiHP = Math.ceil((_xmouse + 54) / 20);
this.gotoAndStop(_root.syokiHP);
_root.hitoHP = _root.syokiHP;
_root.hito2HP = _root.syokiHP;
}
Instance of Symbol 59 MovieClip in Symbol 60 MovieClip Frame 1
onClipEvent (load) {
if (!_root.index) {
this.gotoAndStop(2);
}
}
on (release) {
if (_root.index) {
_root.index = false;
this.gotoAndStop(2);
} else {
_root.index = true;
this.gotoAndStop(1);
}
}
Instance of Symbol 59 MovieClip in Symbol 60 MovieClip Frame 1
onClipEvent (load) {
if (!_root.wall) {
this.gotoAndStop(2);
}
}
on (release) {
if (_root.wall) {
_root.wall = false;
this.gotoAndStop(2);
} else {
_root.wall = true;
this.gotoAndStop(1);
}
}
Instance of Symbol 59 MovieClip in Symbol 60 MovieClip Frame 1
onClipEvent (load) {
if (_root.wind == 0) {
this.gotoAndStop(2);
}
}
on (release) {
if (_root.wind == 0) {
_root.wind = Math.random() - 0.5;
this.gotoAndStop(1);
} else {
_root.wind = 0;
this.gotoAndStop(2);
}
}
Symbol 65 MovieClip Frame 1
this.gotoAndStop(Math.ceil(Math.random() * this._totalframes));
stop();
Symbol 70 Button
on (keyPress "<Up>") {
_root.tinuri.clear();
lineStyle(1, 6710886);
moveTo(-5000, 265);
lineTo(5000, 265);
}
on (keyPress "<Down>") {
_root._x = 0;
_root._y = 0;
_root._xscale = 100;
_root._yscale = 100;
_root.gotoAndStop(1);
}
Symbol 81 MovieClip Frame 8
stop();
Symbol 95 MovieClip Frame 21
_parent._rotation = (_parent._rotation + 90) / 2;
Symbol 95 MovieClip Frame 22
_parent._rotation = (_parent._rotation + 90) / 2;
Symbol 95 MovieClip Frame 23
_parent._rotation = (_parent._rotation + 90) / 2;
Symbol 95 MovieClip Frame 24
_parent._rotation = (_parent._rotation + 90) / 2;
Symbol 95 MovieClip Frame 25
if ((_root.turn == 2) || (_root._currentframe == 2)) {
_parent._rotation = 0;
} else if (_root.turn == 1) {
_parent._rotation = 180;
}
_parent.gotoAndStop(1);
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 2
stop();
Symbol 100 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.turn == 1) {
this.kaku.text = -(Math.round(_root.hito.kakudo * 1000) / 1000);
this.powe.text = (Math.round(_root.hito.power * 1000) / 1000) * 4;
this.sen._rotation = _root.hito.kakudo + 180;
this.sen._xscale = this.powe.text;
pradian = (this.sen._rotation * Math.PI) / 180;
px = (Math.cos(pradian) * this.powe.text) * 2.5;
py = (Math.sin(pradian) * this.powe.text) * 2.5;
this.powe._x = px - 55;
this.powe._y = py;
} else if (_root.turn == 2) {
this.kaku.text = (Math.round(_root.hito2.kakudo * 1000) / 1000) + 180;
this.powe.text = (Math.round(_root.hito2.power * 1000) / 1000) * 4;
this.sen._rotation = _root.hito2.kakudo + 180;
this.sen._xscale = this.powe.text;
pradian = (this.sen._rotation * Math.PI) / 180;
px = (Math.cos(pradian) * this.powe.text) * 2.5;
py = (Math.sin(pradian) * this.powe.text) * 2.5;
this.powe._x = px - 55;
this.powe._y = py;
}
};
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 20
stop();
Symbol 113 MovieClip Frame 40
stop();