Frame 1
function eria1() {
totaltime++;
if (hp <= 0) {
hp = 0;
} else {
if ((totaltime >= (720 + extend)) && (eper > 8)) {
eper = eper - 4;
extend = extend + 720;
if (eper <= 20) {
bg.gotoAndStop(1);
}
if (eper <= 16) {
bg._rotation = 180;
}
if (eper <= 12) {
bg._visible = 0;
}
}
rockper = parseInt((rbreak / ebreak) * 100);
aims.startDrag(true);
if (Key.isDown(16)) {
btype = btype + 1;
if (btype > 3) {
btype = 1;
}
}
if ((rock == 1) && (rockn < rockmax)) {
he = 1;
while (he <= ekosuu) {
if (aims.hitTest(this["target" + he]) && ((!this["rockc" + he]) == 1)) {
this["rockc" + he] = 1;
rockn++;
rockb++;
roc.duplicateMovieClip("roc" + he, he + 185);
this["roc" + he].hn = he;
}
he++;
}
}
if (rockmax <= 0) {
btime = 1;
rock = 0;
rockmax = 0;
}
if (etime >= eper) {
((en < ekosuu) ? (en++) : ((en = 1)));
target.duplicateMovieClip("target" + en, en + 20);
emc = this["target" + en];
emc.n = en;
etotal++;
etype = parseInt((Math.random() * 4) + 1);
emc.gotoAndStop(etype);
emc.etype = etype;
emc._xscale = (Math.random() * 50) + 50;
emc._yscale = emc._xscale;
emc.hp = emc._xscale / etype;
emc.sc = parseInt(emc._xscale / 10) * 10;
emc._x = (Math.random() * 400) + 100;
emc._y = (Math.random() * 200) + 100;
etime = 0;
}
etime = etime + 1;
if (ebc == 1) {
((ebn < 30) ? (ebn++) : ((ebn = 1)));
ebullet.duplicateMovieClip("ebullet" + ebn, ebn + 70);
ebmc = this["ebullet" + ebn];
ebmc.ebiryoku = ebiryoku;
ebmc._x = (bex + (Math.random() * 10)) - 5;
ebmc._y = (bey + (Math.random() * 10)) - 5;
ebc = 0;
}
}
}
this.onLoad = function () {
srockon = new Sound();
srockon.attachSound("rockon2");
srshot = new Sound();
srshot.attachSound("rockonshot");
sbreak1 = new Sound();
sbreak1.attachSound("break1");
sbreak2 = new Sound();
sbreak2.attachSound("break2");
sbreak3 = new Sound();
sbreak3.attachSound("break3");
sbreak4 = new Sound();
sbreak4.attachSound("break4");
sbreak5 = new Sound();
sbreak5.attachSound("breakb1");
sbreak6 = new Sound();
sbreak6.attachSound("breakb2");
shit1 = new Sound();
shit1.attachSound("hit1");
shit2 = new Sound();
shit2.attachSound("hit2");
target._visible = 0;
bullet._visible = 0;
ebullet._visible = 0;
aim._visible = 0;
hom._visible = 0;
roc._visible = 0;
bg.gotoAndStop(2);
Mouse.hide();
aim.duplicateMovieClip("aims", 200);
hp = 50;
btype = 1;
btime = 1;
rockmax = 6;
bara = 50;
rapid = 3;
kosuu = 30;
eper = 24;
ekosuu = 10;
ebreak = -1;
};
this.onEnterFrame = eria1;
this.onMouseMove = function () {
if (hp > 0) {
if (time >= rapid) {
((n <= kosuu) ? (n++) : ((n = 1)));
bullet.duplicateMovieClip("bullet" + n, n + 120);
mc = this["bullet" + n];
mc.gotoAndStop(btype);
mc._xscale = (Math.random() * 50) + 50;
mc._yscale = mc._xscale;
mc._x = (_xmouse + (Math.random() * bara)) - (bara / 2);
mc._y = (_ymouse + (Math.random() * bara)) - (bara / 2);
time = 0;
}
time = time + btime;
}
};
this.onMouseDown = function () {
if (rockmax > 0) {
btime = 0;
rock = 1;
aims.gotoAndPlay(2);
}
};
this.onMouseUp = function () {
if (rockmax > 0) {
btime = 1;
rock = 0;
aims.gotoAndPlay(5);
hn = 1;
while (hn <= ekosuu) {
if ((this["rockc" + hn] == 1) && ((!this["rockc2" + hn]) == 1)) {
hom.duplicateMovieClip("hom" + hn, hn + 170);
this["hom" + hn].rockb = rockb;
this["hom" + hn].hn = hn;
this["hom" + hn].eX = this["target" + hn]._x + ((Math.random() * 900) * 2);
this["hom" + hn].eY = this["target" + hn]._y + ((Math.random() * 600) * 2);
this["rockc2" + hn] = 1;
}
hn++;
}
rockb = 0;
}
};
BGM1 = new Sound();
BGM1.loadSound("./BGM1.mp3", true);
BGM1.setVolume(50);
BGM1.start();
BGM1.onSoundComplete = function () {
BGM1.start();
};
Instance of Symbol 18 MovieClip "bullet" in Frame 1
onClipEvent (enterFrame) {
e = 1;
while (e <= _parent.ekosuu) {
if (this.hitTest(_parent["target" + e]) && (this.z == _parent["target" + e].z)) {
_parent.hit = _parent.hit + 1;
_parent["target" + e].hp = _parent["target" + e].hp - iryoku;
_parent.score = _parent.score + shotb;
this.b.gotoAndPlay("hit");
}
e++;
}
}
Instance of Symbol 23 MovieClip "bg" in Frame 1
/* no clip actions */
Instance of Symbol 25 MovieClip "ebullet" in Frame 1
onClipEvent (load) {
X = this._x;
Y = this._y;
z = 0;
accelX = (_parent.aims._x - X) / 1000;
accelY = (_parent.aims._y - Y) / 1000;
}
onClipEvent (enterFrame) {
this._rotation = this._rotation + (ebiryoku * 3);
if (this.hitTest(_parent.aims.body) && (z == 1)) {
if (_parent.rock == 1) {
_parent.rockmax--;
_parent.aims.gotoAndPlay("shell");
_parent.shit2.start();
} else {
_parent.hp = _parent.hp - ebiryoku;
_parent.aims.gotoAndPlay("hit");
_parent.shit1.start();
}
removeMovieClip(this);
}
speedX = speedX + accelX;
speedY = speedY + accelY;
this._x = this._x + speedX;
this._y = this._y + speedY;
}
Instance of Symbol 35 MovieClip "target" in Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + (hp / 2));
if ((hp <= 0) && (bc != 1)) {
this.gotoAndStop("break");
_parent["sbreak" + etype].setPan((300 - this._x) / 3);
_parent["sbreak" + etype].start();
_parent.ebreak++;
_parent.score = _parent.score + (this.sc * (rockb + 1));
bc = 1;
}
}
Instance of Symbol 56 MovieClip "hom" in Frame 1
onClipEvent (load) {
_parent.srshot.start();
this._x = _parent.aims._x;
this._y = _parent.aims._y;
X = this._x;
Y = this._y;
Z = 1;
hit = 0;
friction = 0.78;
spring = 1;
}
onClipEvent (enterFrame) {
this._rotation = this._rotation + (speedX + speedY);
if (this.hitTest(_parent["target" + hn]) && ((_parent["target" + hn].z - this.Z) <= 0.5)) {
this.homi.gotoAndPlay("hit");
hit = 1;
_parent["target" + hn].hp = _parent["target" + hn].hp - 100;
_parent["target" + hn].rockb = rockb;
_parent["roc" + hn].hit = 1;
_parent["roc" + hn].gotoAndPlay(5);
}
if ((_parent["target" + hn]._x == null) && (hit != 1)) {
removeMovieClip(this);
}
accelX = ((((eX + _parent["target" + hn]._x) + endX) - X) / 30) * spring;
accelY = ((((eY + _parent["target" + hn]._y) + endY) - Y) / 30) * spring;
eX = 0;
eY = 0;
speedX = speedX + accelX;
speedY = speedY + accelY;
speedZ = ((_parent["target" + hn].z + endZ) - Z) * 0.3;
this._x = this._x + (speedX * 2);
this._y = this._y + (speedY * 2);
this._z = this._z + speedZ;
this._xscale = 100 - (this._z * 30);
this._yscale = 100 - (this._z * 30);
this._alpha = 100 - (this._z * 20);
this._x = this._x * friction;
this._y = this._y * friction;
X = this._x;
Y = this._y;
Z = this._z;
}
Instance of Symbol 60 MovieClip "roc" in Frame 1
onClipEvent (load) {
_parent.srockon.start();
this._x = _parent["target" + hn]._x;
this._y = _parent["target" + hn]._y;
hit = 0;
}
onClipEvent (enterFrame) {
this._x = _parent["target" + hn]._x;
this._y = _parent["target" + hn]._y;
if (_parent["target" + hn]._x == null) {
_parent["rockc" + hn] = 0;
_parent["rockc2" + hn] = 0;
_parent.rockn--;
if (hit == 1) {
_parent.rbreak++;
} else {
((_parent.rockb > 1) ? (_parent.rockb--) : ((_parent.rockb = 0)));
}
removeMovieClip(this);
}
}
Symbol 12 MovieClip Frame 1
_parent.z = 1;
Symbol 12 MovieClip Frame 4
_parent.z = 2;
Symbol 12 MovieClip Frame 7
_parent.z = 3;
Symbol 12 MovieClip Frame 9
_parent.z = 3;
removeMovieClip(_parent);
Symbol 12 MovieClip Frame 12
removeMovieClip(_parent);
Symbol 14 MovieClip Frame 1
_parent.z = 1;
Symbol 14 MovieClip Frame 3
_parent.z = 2;
Symbol 14 MovieClip Frame 5
_parent.z = 3;
Symbol 14 MovieClip Frame 6
_parent.z = 3;
removeMovieClip(_parent);
Symbol 14 MovieClip Frame 9
removeMovieClip(_parent);
Symbol 16 MovieClip Frame 1
_parent.z = 1;
Symbol 16 MovieClip Frame 5
_parent.z = 2;
Symbol 16 MovieClip Frame 9
_parent.z = 3;
Symbol 16 MovieClip Frame 12
_parent.z = 3;
removeMovieClip(_parent);
Symbol 16 MovieClip Frame 14
_parent.z = 3;
Symbol 16 MovieClip Frame 15
_parent.z = 3;
removeMovieClip(_parent);
Symbol 18 MovieClip Frame 1
stop();
Instance of Symbol 12 MovieClip "b" in Symbol 18 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.bara = 50;
_parent._parent.rapid = 3;
_parent.iryoku = 6;
_parent.shotb = 20;
}
Instance of Symbol 14 MovieClip "b" in Symbol 18 MovieClip Frame 2
onClipEvent (load) {
_parent._parent.bara = 60;
_parent._parent.rapid = 1;
_parent.iryoku = 2;
_parent.shotb = 10;
}
Instance of Symbol 16 MovieClip "b" in Symbol 18 MovieClip Frame 3
onClipEvent (load) {
_parent._parent.bara = 1;
_parent._parent.rapid = 13;
_parent.iryoku = 20;
_parent.shotb = 40;
}
Symbol 23 MovieClip Frame 1
stop();
this.onLoad = function () {
backg._visible = 0;
};
this.onEnterFrame = function () {
if (bgtime >= 8) {
((bn < 5) ? (bn++) : ((bn = 1)));
backg.duplicateMovieClip("backga" + bn, bn);
bmca = this["backga" + bn];
bmca._x = 0;
bmca._y = 150;
bmca.bgc = 0;
bgtime = 0;
}
bgtime = bgtime + 1;
};
Instance of Symbol 20 MovieClip "backg" in Symbol 23 MovieClip Frame 1
onClipEvent (load) {
if (bgc == null) {
this._visible = 0;
}
move = 2;
this._alpha = 2;
this._xscale = 100;
this._yscale = 100;
}
onClipEvent (enterFrame) {
move = move * 1.1;
this._alpha = this._alpha + 0.8;
_y = (_y + move);
if (this._y >= 200) {
removeMovieClip(this);
}
}
Symbol 23 MovieClip Frame 2
stop();
this.onLoad = function () {
backg._visible = 0;
};
this.onEnterFrame = function () {
if (bgtime >= 10) {
((bn < 5) ? (bn++) : ((bn = 1)));
backg.duplicateMovieClip("backga" + bn, bn);
backg.duplicateMovieClip("backgb" + bn, bn + 10);
bmca = this["backga" + bn];
bmcb = this["backgb" + bn];
bmca._x = -150;
bmca._y = 0;
bmca.bgc = 0;
bmcb._x = 150;
bmcb._y = 0;
bmcb.bgc = 1;
bgtime = 0;
}
bgtime = bgtime + 1;
};
Instance of Symbol 22 MovieClip "backg" in Symbol 23 MovieClip Frame 2
onClipEvent (load) {
if (bgc == null) {
this._visible = 0;
}
move = 3;
this._alpha = 5;
this._xscale = 100;
this._yscale = 100;
}
onClipEvent (enterFrame) {
move = move * 1.4;
this._alpha = this._alpha + 2;
if (bgc == 0) {
_x = (_x - move);
} else {
_x = (_x + move);
}
if ((this._x >= 300) || (this._x <= -300)) {
removeMovieClip(this);
}
}
Symbol 25 MovieClip Frame 41
z = 1;
Symbol 25 MovieClip Frame 47
removeMovieClip(this);
Symbol 29 MovieClip Frame 1
_parent.z = 3;
Symbol 29 MovieClip Frame 25
_parent.z = 2;
Symbol 29 MovieClip Frame 45
_parent.z = 1;
Symbol 29 MovieClip Frame 48
attak = 1;
Symbol 29 MovieClip Frame 51
_parent.z = -2;
Symbol 29 MovieClip Frame 55
_parent.z = -2;
removeMovieClip(_parent);
Symbol 30 MovieClip Frame 1
_parent.z = 3;
Symbol 30 MovieClip Frame 18
_parent.z = 2;
Symbol 30 MovieClip Frame 54
_parent.z = 3;
Symbol 30 MovieClip Frame 62
_parent.z = 3;
removeMovieClip(_parent);
Symbol 31 MovieClip Frame 5
_parent.z = 2;
Symbol 31 MovieClip Frame 43
removeMovieClip(_parent);
Symbol 32 MovieClip Frame 5
_parent.z = 3;
Symbol 32 MovieClip Frame 74
removeMovieClip(_parent);
Symbol 34 MovieClip Frame 4
removeMovieClip(_parent);
Symbol 35 MovieClip Frame 1
stop();
Instance of Symbol 29 MovieClip "e" in Symbol 35 MovieClip Frame 1
onClipEvent (load) {
ebiryoku = 10;
accelX = ((((Math.random() * 200) + 400) + _parent._parent.aims._x) - _parent._x) / 4500;
accelY = ((((Math.random() * 300) + 200) + _parent._parent.aims._y) - _parent._y) / 4500;
friction = 0.985;
}
onClipEvent (enterFrame) {
if (_parent.hitTest(_parent._parent.aims.body) && (attak == 1)) {
_parent._parent.hp = _parent._parent.hp - ebiryoku;
_parent._parent.aims.gotoAndPlay("hit");
_parent._parent.shit1.start();
_parent.gotoAndStop("break");
}
speedX = speedX + accelX;
speedY = speedY + accelY;
_parent._x = _parent._x + (speedX * 2);
_parent._y = _parent._y + (speedY * 2);
_parent._x = _parent._x * friction;
_parent._y = _parent._y * friction;
X = _parent._x;
Y = _parent._y;
}
Instance of Symbol 30 MovieClip "e" in Symbol 35 MovieClip Frame 2
onClipEvent (load) {
erapid = (Math.random() * 48) + 24;
ebiryoku = 2;
accelX = -((((Math.random() * 300) + 150) - _parent._x) / 4000);
accelY = -((((Math.random() * 200) + 100) - _parent._y) / 4000);
}
onClipEvent (enterFrame) {
speedX = speedX + accelX;
speedY = speedY + accelY;
_parent._x = _parent._x + (speedX * 2);
_parent._y = _parent._y + (speedY * 2);
X = _parent._x;
Y = _parent._y;
if (btime >= erapid) {
_parent._parent.ebc = 1;
_parent._parent.bex = _parent._x;
_parent._parent.bey = _parent._y;
_parent._parent.ebiryoku = ebiryoku;
btime = 0;
}
btime++;
}
Instance of Symbol 31 MovieClip "e" in Symbol 35 MovieClip Frame 3
onClipEvent (load) {
X = _parent._x + 600;
Y = _parent._y + 150;
erapid = (Math.random() * 36) + 18;
ebiryoku = 5;
friction = 0.99;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + 3;
if (btime >= erapid) {
_parent._parent.ebc = 1;
_parent._parent.bex = _parent._x;
_parent._parent.bey = _parent._y;
_parent._parent.ebiryoku = ebiryoku;
btime = 0;
}
btime++;
if (_parent._parent["hom" + _parent.n]._x != null) {
accelX = (600 - X) / 1000;
accelY = (300 - Y) / 1000;
speedX = speedX + accelX;
speedY = speedY + accelY;
_parent._x = _parent._x + (speedX * 2);
_parent._y = _parent._y + (speedY * 2);
_parent._x = _parent._x * friction;
_parent._y = _parent._y * friction;
X = _parent._x;
Y = _parent._y;
}
}
Instance of Symbol 32 MovieClip "e" in Symbol 35 MovieClip Frame 4
onClipEvent (load) {
X = _parent._x;
Y = _parent._y;
erapid = (Math.random() * 48) + 32;
ebiryoku = 3;
friction = 0.99;
}
onClipEvent (enterFrame) {
if (btime >= erapid) {
_parent._parent.ebc = 1;
_parent._parent.bex = _parent._x;
_parent._parent.bey = _parent._y;
_parent._parent.ebiryoku = ebiryoku;
btime = 0;
}
btime++;
accelX = (300 - X) / 5000;
accelY = (200 - Y) / 5000;
speedX = speedX + accelX;
speedY = speedY + accelY;
_parent._x = _parent._x + (speedX * 2);
_parent._y = _parent._y + (speedY * 2);
_parent._x = _parent._x * friction;
_parent._y = _parent._y * friction;
X = _parent._x;
Y = _parent._y;
}
Symbol 40 MovieClip Frame 1
stop();
Symbol 40 MovieClip Frame 4
stop();
Symbol 40 MovieClip Frame 7
gotoAndStop (1);
Symbol 40 MovieClip Frame 14
gotoAndStop (1);
Symbol 40 MovieClip Frame 22
gotoAndStop (4);
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 4
removeMovieClip(_parent);
Symbol 60 MovieClip Frame 4
stop();