Frame 1
mysound = new Sound();
mysound.attachSound("bakuon");
Mouse.show();
stop();
Instance of Symbol 35 MovieClip in Frame 1
onClipEvent (load) {
this.attachMovie("haikei", "haikei", 1);
bg = true;
}
onClipEvent (keyDown) {
if (Key.getCode() == 66) {
if (bg) {
this.haikei.removeMovieClip();
bg = false;
} else {
this.attachMovie("haikei", "haikei", 1);
bg = true;
}
}
}
Frame 2
function tekisyutugen(pattern, kankaku, xxx, yyy, number) {
var _local1 = kankaku;
var _local2 = yyy;
var _local3 = xxx;
_root.houkou = Math.atan2(_local2, _local3);
if (pattern == 1) {
_local3 = _local3 - (_local1 / 2);
_local2 = _local2 - (_local1 / 2);
tekiseisei(_local3, _local2, number);
tekiseisei(_local1 + _local3, _local2, number);
tekiseisei(_local3, _local1 + _local2, number);
tekiseisei(_local1 + _local3, _local1 + _local2, number);
} else if (pattern == 2) {
_local3 = _local3 - ((_local1 * 2) / 2);
_local2 = _local2 - ((_local1 * 2) / 2);
tekiseisei(_local3, _local2, number);
tekiseisei(_local1 + _local3, _local2, number);
tekiseisei((2 * _local1) + _local3, _local2, number);
tekiseisei(_local3, _local1 + _local2, number);
tekiseisei(_local1 + _local3, _local1 + _local2, number);
tekiseisei((2 * _local1) + _local3, _local1 + _local2, number);
tekiseisei(_local3, (2 * _local1) + _local2, number);
tekiseisei(_local1 + _local3, (2 * _local1) + _local2, number);
tekiseisei((2 * _local1) + _local3, (2 * _local1) + _local2, number);
} else if (pattern == 3) {
_local3 = _local3 - ((_local1 * 3) / 2);
_local2 = _local2 - ((_local1 * 3) / 2);
tekiseisei(_local1 + _local3, _local2, number);
tekiseisei((2 * _local1) + _local3, _local2, number);
tekiseisei(_local3, _local1 + _local2, number);
tekiseisei(_local1 + _local3, _local1 + _local2, number);
tekiseisei((2 * _local1) + _local3, _local1 + _local2, number);
tekiseisei((3 * _local1) + _local3, _local1 + _local2, number);
tekiseisei(_local3, (2 * _local1) + _local2, number);
tekiseisei(_local1 + _local3, (2 * _local1) + _local2, number);
tekiseisei((2 * _local1) + _local3, (2 * _local1) + _local2, number);
tekiseisei((3 * _local1) + _local3, (2 * _local1) + _local2, number);
tekiseisei(_local1 + _local3, (3 * _local1) + _local2, number);
tekiseisei((2 * _local1) + _local3, (3 * _local1) + _local2, number);
} else if (pattern == 4) {
_local3 = _local3 - ((_local1 * 4) / 2);
_local2 = _local2 - ((_local1 * 4) / 2);
tekiseisei((2 * _local1) + _local3, _local2, number);
tekiseisei(_local1 + _local3, _local1 + _local2, number);
tekiseisei((2 * _local1) + _local3, _local1 + _local2, number);
tekiseisei((3 * _local1) + _local3, _local1 + _local2, number);
tekiseisei(_local3, (2 * _local1) + _local2, number);
tekiseisei(_local1 + _local3, (2 * _local1) + _local2, number);
tekiseisei((2 * _local1) + _local3, (2 * _local1) + _local2, number);
tekiseisei((3 * _local1) + _local3, (2 * _local1) + _local2, number);
tekiseisei((4 * _local1) + _local3, (2 * _local1) + _local2, number);
tekiseisei(_local1 + _local3, (3 * _local1) + _local2, number);
tekiseisei((2 * _local1) + _local3, (3 * _local1) + _local2, number);
tekiseisei((3 * _local1) + _local3, (3 * _local1) + _local2, number);
tekiseisei((2 * _local1) + _local3, (4 * _local1) + _local2, number);
} else if (pattern == 5) {
_local3 = _local3 - ((_local1 * 2) / 2);
_local2 = _local2 - ((_local1 * 2) / 2);
tekiseisei(_local3, _local2, number);
tekiseisei((2 * _local1) + _local3, _local2, number);
tekiseisei(_local1 + _local3, _local1 + _local2, number);
tekiseisei(_local3, (2 * _local1) + _local2, number);
tekiseisei((2 * _local1) + _local3, (2 * _local1) + _local2, number);
}
}
function tekiseisei(xx, yy, num) {
var _local1 = _root;
effld.attachMovie("syoukan", "syoukan" + (++_local1.efdep), _local1.efdep);
effld["syoukan" + _local1.efdep]._x = xx;
effld["syoukan" + _local1.efdep]._y = yy;
effld["syoukan" + _local1.efdep].xx = xx;
effld["syoukan" + _local1.efdep].yy = yy;
effld["syoukan" + _local1.efdep].tnum = num;
}
function bakuhatuef(ookisa, kaisuu, xx, yy) {
var _local1 = _root;
effld.attachMovie("bakuhatu", "bakuhatu" + (++_local1.efdep), _local1.efdep);
effld["bakuhatu" + _local1.efdep]._x = xx;
effld["bakuhatu" + _local1.efdep]._y = yy;
effld["bakuhatu" + _local1.efdep].nankai = kaisuu;
effld["bakuhatu" + _local1.efdep]._xscale = ookisa;
effld["bakuhatu" + _local1.efdep]._yscale = ookisa;
}
time = -40;
level = 0;
score = 0;
chain = 0;
this.onEnterFrame = function () {
if (((time++) % 100) == 0) {
tekipattern = Math.ceil(Math.random() * level);
tekix = (Math.random() * 80) - 40;
tekiy = (Math.random() * 60) - 30;
tekinum = Math.ceil(Math.random() * level);
tekisyutugen(tekipattern, 25, tekix, tekiy, tekinum);
}
if ((time % 360) == 0) {
level++;
if (level > 5) {
level = 5;
}
}
};
_root.tekiArray = new Array();
Instance of Symbol 50 MovieClip "ziki" in Frame 2
onClipEvent (load) {
function hassya() {
var _local1 = _root;
if (_local1.beamsuu < 4) {
if (_currentframe == 1) {
_local1.attachMovie("beam", "beam" + (++_local1.dep), _local1.dep);
_local1["beam" + _local1.dep]._x = _x;
_local1["beam" + _local1.dep]._y = _y;
_local1["beam" + _local1.dep]._rotation = _rotation;
radian = Math.atan2(150 - _y, 200 - _x);
_local1["beam" + _local1.dep].addx = Math.cos(radian) * beamSpeed;
_local1["beam" + _local1.dep].addy = Math.sin(radian) * beamSpeed;
_local1.beamsuu++;
}
}
}
function sibou() {
if (_currentframe == 1) {
_root.bakuhatuef(150, 5, _x - 200, _y - 150);
play();
}
}
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
_rotation = ((Math.atan2(150 - _y, 200 - _x) * 180) / Math.PI);
dep = 0;
drag = 0;
beamSpeed = 8;
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
_rotation = ((Math.atan2(150 - _y, 200 - _x) * 180) / Math.PI);
updateAfterEvent();
}
onClipEvent (mouseDown) {
drag = 1;
hassya();
}
onClipEvent (mouseUp) {
drag = 0;
}
onClipEvent (enterFrame) {
if (drag > 0) {
if (((drag++) % 5) == 0) {
hassya();
}
}
}
Frame 3
Mouse.show();
Symbol 4 MovieClip Frame 1
stop();
Symbol 9 MovieClip [teki] Frame 1
function huhen() {
var _local2 = _root;
var _local3 = this;
if (_local3.hitTest(_local2.ziki._x, _local2.ziki._y, true)) {
_local2.ziki.sibou();
}
if ((Math.abs(_local3._x) > 210) || (Math.abs(_local3._y) > 160)) {
var _local1 = 0;
_local1 = 0;
while ((_local2.tekiArray[_local1] != mynum) && (_local1 < _local2.tekiArray.length)) {
_local1++;
}
_local2.tekiArray.splice(_local1, 1);
_local3.removeMovieClip();
}
}
function hidan() {
var _local1 = _root;
hp--;
if (hp < 1) {
x2 = (_x + 200) - hurux;
y2 = (_y + 150) - huruy;
kyori = Math.sqrt((x2 * x2) + (y2 * y2));
_local1.bakuhatuef(bscale, bkaisuu, _x, _y);
i = 0;
while ((_local1.tekiArray[i] != mynum) && (i < _local1.tekiArray.length)) {
i++;
}
_local1.tekiArray.splice(i, 1);
scoresyori(sco);
this.removeMovieClip();
}
}
function thassya(xx, yy, adx, ady) {
var _local1 = _root;
_local1.attachMovie("tbeam", "tbeam" + (++_local1.dep), _local1.dep);
_local1["tbeam" + _local1.dep]._x = xx;
_local1["tbeam" + _local1.dep]._y = yy;
_local1["tbeam" + _local1.dep].addx = adx;
_local1["tbeam" + _local1.dep].addy = ady;
_local1["tbeam" + _local1.dep]._rotation = (Math.atan2(ady, adx) * 180) / Math.PI;
}
function scoresyori(ten) {
var _local1 = _root;
longshot = 1;
_local1.chain++;
if (_local1.chain > 2) {
_local1.chaindisp.gotoAndPlay(2);
}
if (kyori > 200) {
_local1.chaindisp.gotoAndPlay(22);
longshot = 3;
}
kscore = Math.floor(ten * (((_local1.chain - 1) / 10) + 1)) * longshot;
_local1.score = _local1.score + kscore;
_local1.effld.attachMovie("scorez", "sc" + (++_local1.efdep), _local1.efdep);
_local1.effld["sc" + _local1.efdep]._x = _x;
_local1.effld["sc" + _local1.efdep]._y = _y;
_local1.effld["sc" + _local1.efdep].hscore = kscore;
}
sco = 50;
hp = 1;
bscale = 100;
bkaisuu = 2;
speed = 0.4;
if (Math.random() < 0.1) {
houdai = true;
timing = Math.round(Math.random() * 72);
mark.gotoAndStop(2);
}
tim = 0;
radian = _root.houkou;
addx = Math.cos(radian) * speed;
addy = Math.sin(radian) * speed;
this.onEnterFrame = function () {
_x = (_x + addx);
_y = (_y + addy);
addx = addx * 1.01;
addy = addy * 1.01;
huhen();
if (houdai) {
if (((tim++) % 72) == timing) {
radian = Math.atan2(_root.ziki._y - (_y + 150), _root.ziki._x - (_x + 200));
x = Math.cos(radian) * 8;
y = Math.sin(radian) * 8;
thassya(_x + 200, _y + 150, x, y);
}
}
};
Symbol 9 MovieClip [teki] Frame 2
sco = 100;
hp = 2;
bscale = 140;
bkaisuu = 2;
speed = 0.3;
if (Math.random() < 0.1) {
houdai = true;
timing = Math.round(Math.random() * 72);
mark.gotoAndStop(2);
}
tim = 0;
radian = _root.houkou;
addx = Math.cos(radian) * speed;
addy = Math.sin(radian) * speed;
this.onEnterFrame = function () {
_x = (_x + addx);
_y = (_y + addy);
addx = addx * 1.01;
addy = addy * 1.01;
huhen();
if (houdai) {
if (((tim++) % 72) == timing) {
radian = Math.atan2(_root.ziki._y - (_y + 150), _root.ziki._x - (_x + 200));
x = Math.cos(radian) * 8;
y = Math.sin(radian) * 8;
thassya(_x + 200, _y + 150, x, y);
}
}
};
Symbol 9 MovieClip [teki] Frame 3
sco = 100;
hp = 1;
bscale = 140;
bkaisuu = 2;
speed = 1;
if (Math.random() < 0.2) {
houdai = true;
timing = Math.round(Math.random() * 72);
mark.gotoAndStop(2);
}
time = 0;
ti = 0;
swi = Math.abs(((Math.round(_root.houkou * 10) - (Math.floor(_root.houkou) * 10)) % 2) * 2) - 1;
addx = Math.cos(_root.houkou) * speed;
addy = Math.sin(_root.houkou) * speed;
_rotation = ((_root.houkou * 180) / Math.PI);
this.onEnterFrame = function () {
if (((time++) > 30) && (time < 70)) {
_rotation = (_rotation + (swi * 2));
radian = (_rotation * Math.PI) / 180;
addx = Math.cos(radian) * speed;
addy = Math.sin(radian) * speed;
}
_x = (_x + addx);
_y = (_y + addy);
huhen();
if (houdai) {
if (((ti++) % 72) == timing) {
rad = Math.atan2(_root.ziki._y - (_y + 150), _root.ziki._x - (_x + 200));
x = Math.cos(rad) * 8;
y = Math.sin(rad) * 8;
thassya(_x + 200, _y + 150, x, y);
}
}
};
Symbol 9 MovieClip [teki] Frame 4
sco = 100;
hp = 1;
bscale = 140;
bkaisuu = 2;
speed = 0.3;
if (Math.random() < 0.1) {
houdai = true;
timing = Math.round(Math.random() * 72);
mark.gotoAndStop(2);
}
timm = 0;
radian = _root.houkou;
i = (Math.PI/2);
adx = Math.cos(radian) * 2;
ady = Math.sin(radian) * 2;
this.onEnterFrame = function () {
it = Math.sin(i) * 4;
i = i + 0.1;
addx = Math.cos(radian + (Math.PI/2)) * it;
addy = Math.sin(radian + (Math.PI/2)) * it;
_rotation = ((Math.atan2(addy + ady, addx + adx) * 180) / Math.PI);
_x = (_x + ((addx + adx) * speed));
_y = (_y + ((addy + ady) * speed));
huhen();
if (houdai) {
if (((timm++) % 72) == timing) {
rad = Math.atan2(_root.ziki._y - (_y + 150), _root.ziki._x - (_x + 200));
x = Math.cos(rad) * 8;
y = Math.sin(rad) * 8;
thassya(_x + 200, _y + 150, x, y);
}
}
};
Symbol 9 MovieClip [teki] Frame 5
sco = 200;
hp = 2;
bscale = 200;
bkaisuu = 3;
speed = 0.2;
if (Math.random() < 0.5) {
houdai = true;
timing = Math.round(Math.random() * 24);
mark.gotoAndStop(2);
}
tim = 0;
radian = _root.houkou;
addx = Math.cos(radian) * speed;
addy = Math.sin(radian) * speed;
this.onEnterFrame = function () {
_x = (_x + addx);
_y = (_y + addy);
addx = addx * 1.01;
addy = addy * 1.01;
huhen();
if (houdai) {
if (((tim++) % 24) == timing) {
radian = Math.atan2(_root.ziki._y - (_y + 150), _root.ziki._x - (_x + 200));
x = Math.cos(radian) * 8;
y = Math.sin(radian) * 8;
thassya(_x + 200, _y + 150, x, y);
}
}
};
Symbol 12 MovieClip [tbeam] Frame 1
time = 0;
this.onEnterFrame = function () {
var _local1 = _root;
_x = (_x + addx);
_y = (_y + addy);
if ((time++) > 12) {
if (this.hitTest(_local1.ziki._x, _local1.ziki._y)) {
_local1.ziki.sibou();
}
}
if ((((_x < -20) || (_x > 420)) || (_y < -20)) || (_y > 320)) {
this.removeMovieClip();
}
};
Symbol 12 MovieClip [tbeam] Frame 4
stop();
Symbol 15 MovieClip [beam] Frame 1
time = 0;
oldx = _x;
oldy = _y;
this.onEnterFrame = function () {
var _local1 = _root;
var _local3 = this;
_x = (_x + addx);
_y = (_y + addy);
if (_local1.tekifld.hitTest(_x, _y, true)) {
var _local2 = 0;
while (_local2 < _local1.tekiArray.length) {
if (_local1.tekifld["teki" + _local1.tekiArray[_local2]].hitTest(_x, _y, true)) {
_local1.tekifld["teki" + _local1.tekiArray[_local2]].hurux = oldx;
_local1.tekifld["teki" + _local1.tekiArray[_local2]].huruy = oldy;
_local1.tekifld["teki" + _local1.tekiArray[_local2]].hidan();
_local1.beamsuu--;
_local3.removeMovieClip();
}
_local2++;
}
}
if ((time++) > 12) {
if (_local3.hitTest(_local1.ziki._x, _local1.ziki._y)) {
_local1.ziki.sibou();
}
}
if ((((_x < -20) || (_x > 420)) || (_y < -20)) || (_y > 320)) {
_local1.beamsuu--;
_local1.chain = 0;
_local3.removeMovieClip();
}
};
Symbol 15 MovieClip [beam] Frame 5
stop();
Symbol 18 MovieClip [syoukan] Frame 11
_root.tekiArray.push(++_root.dep);
_root.tekifld.attachMovie("teki", "teki" + _root.dep, _root.dep);
_root.tekifld["teki" + _root.dep]._x = xx;
_root.tekifld["teki" + _root.dep]._y = yy;
_root.tekifld["teki" + _root.dep].mynum = _root.dep;
_root.tekifld["teki" + _root.dep].gotoAndStop(tnum);
Symbol 18 MovieClip [syoukan] Frame 20
this.removeMovieClip();
Symbol 20 MovieClip [banime] Frame 11
this.removeMovieClip();
Symbol 21 MovieClip [bakuhatu] Frame 1
if (bdep == undefined) {
_root.mysound.start();
bdep = 0;
owari = 0;
}
if ((++owari) > nankai) {
gotoAndPlay ("owa");
} else {
this.attachMovie("banime", "banime" + (++bdep), bdep);
this["banime" + bdep]._x = (Math.random() * 6) - 3;
this["banime" + bdep]._y = (Math.random() * 6) - 3;
this.attachMovie("kuzu", "kuzu" + (++bdep), bdep);
}
Symbol 21 MovieClip [bakuhatu] Frame 5
gotoAndPlay (1);
Symbol 21 MovieClip [bakuhatu] Frame 22
this.removeMovieClip();
Symbol 22 MovieClip [haikei] Frame 1
var i = 0;
while (i < 20) {
this.attachMovie("sen", "sen" + (++hdep), hdep);
this["sen" + hdep].px = (Math.random() * 1000) - 500;
this["sen" + hdep].py = (Math.random() * 1000) - 500;
this["sen" + hdep].pz = Math.random() * 4000;
radian = Math.atan2(this["sen" + hdep].py, this["sen" + hdep].px);
this["sen" + hdep]._rotation = (radian * 180) / Math.PI;
this["sen" + hdep]._x = -300;
i++;
}
this.onEnterFrame = function () {
var _local1 = this;
if (((tim++) % 2) == 0) {
_local1.attachMovie("sen", "sen" + (++hdep), hdep);
_local1["sen" + hdep].px = (Math.random() * 1000) - 500;
_local1["sen" + hdep].py = (Math.random() * 1000) - 500;
_local1["sen" + hdep].pz = 4000;
radian = Math.atan2(_local1["sen" + hdep].py, _local1["sen" + hdep].px);
_local1["sen" + hdep]._rotation = (radian * 180) / Math.PI;
_local1["sen" + hdep]._x = -300;
}
};
Symbol 24 MovieClip [sen] Frame 1
ph = 500;
this.onEnterFrame = function () {
pz = pz - 50;
if (pz < -700) {
this.removeMovieClip();
}
z = pz + 1000;
_x = ((px * ph) / z);
_y = ((py * ph) / z);
_xscale = ((100 * ph) / z);
};
Symbol 28 MovieClip [kuzu] Frame 1
addx = (Math.random() * 2) - 1;
addy = (Math.random() * 2) - 1;
this.onEnterFrame = function () {
_x = (_x + addx);
_y = (_y + addy);
};
Symbol 28 MovieClip [kuzu] Frame 21
this.removeMovieClip();
Symbol 33 MovieClip [scorez] Frame 20
this.removeMovieClip();
Symbol 45 Button
on (release) {
gotoAndStop (2);
}
Symbol 47 Button
on (release) {
getURL ("http://sapporo.cool.ne.jp/f1ash/");
}
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 85
_root.gotoAndStop(3);
Symbol 52 MovieClip Frame 42
stop();
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 21
gotoAndStop (1);
Symbol 63 Button
on (release) {
if (_root.score > _root.highscore) {
_root.highscore = _root.score;
}
gotoAndStop (1);
}