Frame 1
function hitosibou(xxx, yyy) {
if (_root.hito.damage == 0) {
_root.hito.gotoAndStop(4);
radian = Math.atan2(yyy - _root.hito._y, xxx - _root.hito._x);
_root.hito.addx = (-Math.cos(radian)) * 15;
_root.hito.addy = ((-Math.sin(radian)) * 15) - 10;
_root.hito.damage = 1;
_root.hito.jump = true;
_root.power.nextFrame();
if (_root.power._currentframe == 7) {
_root.hito.life = false;
_root.hito.damege = 0;
}
}
}
function teki1syutugen() {
_root.tekifld.attachMovie("teki1", "t1" + (++tdep), tdep);
_root.tekifld["t1" + tdep]._y = 240;
_root.tekifld["t1" + tdep]._x = ((200 + (_root.tekifld["t1" + tdep]._width / 2)) * ((Math.round(Math.random()) * 2) - 1)) + 200;
}
function teki2syutugen() {
_root.tekifld.attachMovie("teki2", "t2" + (++tdep), tdep);
_root.tekifld["t2" + tdep]._y = 240;
_root.tekifld["t2" + tdep]._x = ((200 + (_root.tekifld["t2" + tdep]._width / 2)) * ((Math.round(Math.random()) * 2) - 1)) + 200;
}
function teki3syutugen() {
_root.tekifld.attachMovie("teki3", "t3" + (++tdep), tdep);
_root.tekifld["t3" + tdep]._y = 240;
_root.tekifld["t3" + tdep]._x = ((200 + (_root.tekifld["t3" + tdep]._width / 2)) * ((Math.round(Math.random()) * 2) - 1)) + 200;
}
function teki4syutugen() {
_root.tekifld.attachMovie("teki4", "t4" + (++tdep), tdep);
_root.tekifld["t4" + tdep]._y = 120;
_root.tekifld["t4" + tdep]._x = ((200 + (_root.tekifld["t4" + tdep]._width / 2)) * ((Math.round(Math.random()) * 2) - 1)) + 200;
}
function teki5syutugen() {
_root.tekifld.attachMovie("teki5", "t5" + (++tdep), tdep);
_root.tekifld["t5" + tdep]._y = 240;
_root.tekifld["t5" + tdep]._x = ((200 + (_root.tekifld["t5" + tdep]._width / 2)) * ((Math.round(Math.random()) * 2) - 1)) + 200;
}
function teki6syutugen() {
_root.tekifld.attachMovie("teki6", "t6" + (++tdep), tdep);
_root.tekifld["t6" + tdep]._y = 240;
_root.tekifld["t6" + tdep]._x = ((200 + (_root.tekifld["t6" + tdep]._width / 2)) * ((Math.round(Math.random()) * 2) - 1)) + 200;
}
stop();
maxlevel._visible = false;
if (_root.tassei) {
maxlevel._visible = true;
}
Frame 2
function levelup(old) {
if (level < old) {
level++;
levelupanime.play();
dispLV.text = level;
if (level == 9) {
dispLV.text = "MAX";
_root.tassei = true;
}
}
}
stop();
_root.totalscore = 0;
_root.time = 2;
teki1 = 0;
teki2 = 0;
teki3 = 0;
teki4 = 0;
teki5 = 0;
teki6 = 0;
dispLV.text = level;
if (level == 9) {
dispLV.text = "MAX";
}
this.onEnterFrame = function () {
_root.time++;
if ((_root.time % (60 - (level * 4))) == 0) {
tekis = level;
if (tekis > 8) {
tekis = 6;
} else if (tekis > 5) {
tekis = 5;
}
tekis = Math.ceil(Math.random() * tekis);
if (Math.random() < 0.2) {
tekis = 1;
}
eval ([("teki" + tekis) + "syutugen"])();
}
if (totalscore >= 3000) {
levelup(9);
} else if (totalscore >= 2500) {
levelup(8);
} else if (totalscore >= 2000) {
levelup(7);
} else if (totalscore >= 1500) {
levelup(6);
} else if (totalscore >= 1000) {
levelup(5);
} else if (totalscore >= 600) {
levelup(4);
} else if (totalscore >= 300) {
levelup(3);
} else if (totalscore >= 100) {
levelup(2);
}
};
Frame 3
_root._x = 0;
_root._y = 0;
Symbol 4 MovieClip [teki3] Frame 1
addx = 0;
score = 30;
life = true;
saidai = 4;
if (_root.teki3 >= saidai) {
this.removeMovieClip();
}
_root.teki3++;
this.onEnterFrame = function () {
if (life) {
if (_root.hito._x > _x) {
addx = addx + 0.5;
} else {
addx = addx - 0.5;
}
if (Math.abs(addx) > 7) {
addx = (Math.abs(addx) / addx) * 7;
}
_x = (_x + addx);
if (_root.bakudan._currentframe == 2) {
if (_root.bakudan.hitTest(this)) {
life = false;
_root.combo++;
sx = _x;
sy = _y - 40;
stime = 0;
radian = Math.atan2((_root.bakudan._y - 30) - _y, _root.bakudan._x - _x);
addx = (-Math.cos(radian)) * 30;
addy = Math.sin(radian) * 30;
}
}
if (this.atari.hitTest(_root.hito.atari)) {
_root.hitosibou(_x, _y);
}
} else {
_x = (_x + addx);
_y = (_y + addy);
addy = addy + 3;
stime++;
if (stime == 3) {
_root.fldspace.attachMovie("fld", "fld" + (++_root.fc), _root.fc);
_root.fldspace["fld" + _root.fc]._x = sx;
_root.fldspace["fld" + _root.fc]._y = sy;
_root.fldspace["fld" + _root.fc].addx = addx;
_root.fldspace["fld" + _root.fc].addy = addy;
_root.fldspace["fld" + _root.fc].num1 = score;
_root.fldspace["fld" + _root.fc].num2 = _root.combo;
_root.totalscore = _root.totalscore + (score * _root.combo);
}
}
if (((_x < (-(_width / 2))) || (_x > (400 + (_width / 2)))) || (_y > (300 + (_height / 2)))) {
_root.teki3--;
this.removeMovieClip();
}
};
Symbol 11 MovieClip [teki4] Frame 1
if (addx == undefined) {
score = 30;
speed = 1;
if (_x > 200) {
speed = speed * -1;
_xscale = -100;
}
addx = speed;
life = true;
saidai = 3;
if (_root.teki4 >= saidai) {
this.removeMovieClip();
}
_root.teki4++;
}
this.onEnterFrame = function () {
if (life) {
_x = (_x + addx);
if (_root.bakudan.hitTest(this.atari)) {
_root.bakudan.play();
}
if (_root.bakudan._currentframe == 2) {
if (_root.bakudan.hitTest(this)) {
life = false;
stop();
_root.combo++;
sx = _x;
sy = _y - 40;
stime = 0;
radian = Math.atan2((_root.bakudan._y - 30) - _y, _root.bakudan._x - _x);
addx = (-Math.cos(radian)) * 30;
addy = Math.sin(radian) * 30;
}
}
if (this.atari.hitTest(_root.hito.atari)) {
_root.hitosibou(_x, _y);
}
} else {
_x = (_x + addx);
_y = (_y + addy);
addy = addy + 3;
stime++;
if (stime == 3) {
_root.fldspace.attachMovie("fld", "fld" + (++_root.fc), _root.fc);
_root.fldspace["fld" + _root.fc]._x = sx;
_root.fldspace["fld" + _root.fc]._y = sy;
_root.fldspace["fld" + _root.fc].addx = addx;
_root.fldspace["fld" + _root.fc].addy = addy;
_root.fldspace["fld" + _root.fc].num1 = score;
_root.fldspace["fld" + _root.fc].num2 = _root.combo;
_root.totalscore = _root.totalscore + (score * _root.combo);
}
}
if (((_x < (-(_width / 2))) || (_x > (400 + (_width / 2)))) || (_y > (300 + (_height / 2)))) {
_root.teki4--;
this.removeMovieClip();
}
};
Symbol 17 MovieClip [teki1] Frame 1
if (speed == undefined) {
score = 10;
speed = 2;
if (_x > 200) {
speed = speed * -1;
}
addx = speed;
life = true;
saidai = 8;
if (_root.teki1 >= saidai) {
this.removeMovieClip();
}
_root.teki1++;
}
this.onEnterFrame = function () {
if (life) {
_x = (_x + addx);
if (_root.bakudan._currentframe == 2) {
if (_root.bakudan.hitTest(this)) {
stop();
life = false;
_root.combo++;
sx = _x;
sy = _y - 40;
stime = 0;
radian = Math.atan2((_root.bakudan._y - 30) - _y, _root.bakudan._x - _x);
addx = (-Math.cos(radian)) * 30;
addy = Math.sin(radian) * 30;
}
}
if (this.hitTest(_root.hito.atari)) {
_root.hitosibou(_x, _y);
}
} else {
_x = (_x + addx);
_y = (_y + addy);
addy = addy + 3;
stime++;
if (stime == 3) {
_root.fldspace.attachMovie("fld", "fld" + (++_root.fc), _root.fc);
_root.fldspace["fld" + _root.fc]._x = sx;
_root.fldspace["fld" + _root.fc]._y = sy;
_root.fldspace["fld" + _root.fc].addx = addx;
_root.fldspace["fld" + _root.fc].addy = addy;
_root.fldspace["fld" + _root.fc].num1 = score;
_root.fldspace["fld" + _root.fc].num2 = _root.combo;
_root.totalscore = _root.totalscore + (score * _root.combo);
}
}
if (((_x < (-(_width / 2))) || (_x > (400 + (_width / 2)))) || (_y > (300 + (_height / 2)))) {
_root.teki1--;
this.removeMovieClip();
}
};
Symbol 20 MovieClip [teki2] Frame 1
if (addx == undefined) {
score = 20;
speed = 3;
if (_x > 200) {
speed = speed * -1;
_xscale = -100;
}
addx = speed;
life = true;
saidai = 4;
if (_root.teki2 >= saidai) {
this.removeMovieClip();
}
_root.teki2++;
}
this.onEnterFrame = function () {
if (life) {
if ((((zikan++) % 35) == 0) && (!jump)) {
jump = true;
addy = -17;
this.gotoAndStop(2);
}
if (jump) {
_x = (_x + addx);
_y = (_y + addy);
addy = addy + 2;
if (_y > 240) {
_y = 240;
jump = false;
this.gotoAndStop(1);
}
}
if (_root.bakudan.hitTest(this.atari)) {
_root.bakudan.play();
}
if (_root.bakudan._currentframe == 2) {
if (_root.bakudan.hitTest(this.atari)) {
life = false;
_root.combo++;
sx = _x;
sy = _y - 40;
stime = 0;
radian = Math.atan2((_root.bakudan._y - 30) - _y, _root.bakudan._x - _x);
addx = (-Math.cos(radian)) * 30;
addy = Math.sin(radian) * 30;
}
}
if (this.atari.hitTest(_root.hito.atari)) {
_root.hitosibou(_x, _y);
}
} else {
_x = (_x + addx);
_y = (_y + addy);
addy = addy + 3;
stime++;
if (stime == 3) {
_root.fldspace.attachMovie("fld", "fld" + (++_root.fc), _root.fc);
_root.fldspace["fld" + _root.fc]._x = sx;
_root.fldspace["fld" + _root.fc]._y = sy;
_root.fldspace["fld" + _root.fc].addx = addx;
_root.fldspace["fld" + _root.fc].addy = addy;
_root.fldspace["fld" + _root.fc].num1 = score;
_root.fldspace["fld" + _root.fc].num2 = _root.combo;
_root.totalscore = _root.totalscore + (score * _root.combo);
}
}
if (((_x < (-(_width / 2))) || (_x > (400 + (_width / 2)))) || (_y > (300 + (_height / 2)))) {
_root.teki2--;
this.removeMovieClip();
}
};
Symbol 22 MovieClip [tubu] Frame 1
addx = (Math.random() * 20) - 10;
addy = ((-Math.random()) * 20) - 10;
kie = Math.round(Math.random() * 20);
this.onEnterFrame = function () {
_x = (_x + addx);
addy = addy + 3;
_y = (_y + addy);
if (_y > 240) {
_y = 240;
addy = addy * -0.7;
addx = addx * 0.7;
}
if ((kie++) > 40) {
this.removeMovieClip();
}
};
Symbol 29 MovieClip [teki6] Frame 1
if (addx == undefined) {
score = 80;
speed = 1;
if (_x > 200) {
speed = speed * -1;
_xscale = -100;
}
life = true;
addxp = 0;
hp = 3;
saidai = 1;
if (_root.teki5 >= saidai) {
this.removeMovieClip();
}
_root.teki5++;
}
addx = 0;
this.onEnterFrame = function () {
if (life) {
_x = (_x + (addx + addxp));
if (addxp != 0) {
addxp = addxp - (Math.abs(addxp) / addxp);
}
if (_root.bakudan._currentframe == 2) {
if (_root.bakudan.hitTest(this)) {
hp--;
if (_root.bakudan._x < _x) {
addxp = 8;
} else {
addxp = -8;
}
if (hp <= 0) {
stop();
life = false;
_root.combo++;
sx = _x;
sy = _y - 40;
stime = 0;
radian = Math.atan2((_root.bakudan._y - 30) - _y, _root.bakudan._x - _x);
addx = (-Math.cos(radian)) * 30;
addy = Math.sin(radian) * 30;
}
}
}
if (_root.bakudan.hitTest(this)) {
_root.bakudan.play();
}
if (this.atari.hitTest(_root.hito.atari)) {
_root.hitosibou(_x, _y);
}
} else {
_x = (_x + addx);
_y = (_y + addy);
addy = addy + 3;
stime++;
if (stime == 3) {
_root.fldspace.attachMovie("fld", "fld" + (++_root.fc), _root.fc);
_root.fldspace["fld" + _root.fc]._x = sx;
_root.fldspace["fld" + _root.fc]._y = sy;
_root.fldspace["fld" + _root.fc].addx = addx;
_root.fldspace["fld" + _root.fc].addy = addy;
_root.fldspace["fld" + _root.fc].num1 = score;
_root.fldspace["fld" + _root.fc].num2 = _root.combo;
_root.totalscore = _root.totalscore + (score * _root.combo);
}
}
if (((_x < -20) || (_x > 430)) || (_y > (300 + (_height / 2)))) {
_root.teki5--;
this.removeMovieClip();
}
};
Symbol 29 MovieClip [teki6] Frame 22
addx = speed * 2;
Symbol 29 MovieClip [teki6] Frame 28
addx = speed;
Symbol 29 MovieClip [teki6] Frame 34
addx = 0;
Symbol 29 MovieClip [teki6] Frame 48
addx = speed * 2;
Symbol 29 MovieClip [teki6] Frame 54
addx = speed;
Symbol 36 MovieClip [teki5] Frame 1
if (addx == undefined) {
score = 50;
speed = 1;
if (_x > 200) {
speed = speed * -1;
_xscale = -100;
}
life = true;
addxp = 0;
hp = 2;
saidai = 1;
if (_root.teki5 >= saidai) {
this.removeMovieClip();
}
_root.teki5++;
}
addx = 0;
this.onEnterFrame = function () {
if (life) {
_x = (_x + (addx + addxp));
if (addxp != 0) {
addxp = addxp - (Math.abs(addxp) / addxp);
}
if (_root.bakudan._currentframe == 2) {
if (_root.bakudan.hitTest(this)) {
hp--;
if (_root.bakudan._x < _x) {
addxp = 8;
} else {
addxp = -8;
}
if (hp <= 0) {
stop();
life = false;
_root.combo++;
sx = _x;
sy = _y - 40;
stime = 0;
radian = Math.atan2((_root.bakudan._y - 30) - _y, _root.bakudan._x - _x);
addx = (-Math.cos(radian)) * 30;
addy = Math.sin(radian) * 30;
}
}
}
if (_root.bakudan.hitTest(this)) {
_root.bakudan.play();
}
if (this.atari.hitTest(_root.hito.atari)) {
_root.hitosibou(_x, _y);
}
} else {
_x = (_x + addx);
_y = (_y + addy);
addy = addy + 3;
stime++;
if (stime == 3) {
_root.fldspace.attachMovie("fld", "fld" + (++_root.fc), _root.fc);
_root.fldspace["fld" + _root.fc]._x = sx;
_root.fldspace["fld" + _root.fc]._y = sy;
_root.fldspace["fld" + _root.fc].addx = addx;
_root.fldspace["fld" + _root.fc].addy = addy;
_root.fldspace["fld" + _root.fc].num1 = score;
_root.fldspace["fld" + _root.fc].num2 = _root.combo;
_root.totalscore = _root.totalscore + (score * _root.combo);
}
}
if (((_x < -20) || (_x > 430)) || (_y > (300 + (_height / 2)))) {
_root.teki5--;
this.removeMovieClip();
}
};
Symbol 36 MovieClip [teki5] Frame 22
addx = speed * 2;
Symbol 36 MovieClip [teki5] Frame 28
addx = speed;
Symbol 36 MovieClip [teki5] Frame 34
addx = 0;
Symbol 36 MovieClip [teki5] Frame 48
addx = speed * 2;
Symbol 36 MovieClip [teki5] Frame 54
addx = speed;
Symbol 46 MovieClip [fld] Frame 1
fldsy1.fld1.text = num1;
fldsy2.fld2.text = num2;
this._xscale = 90 + ((num1 * num2) / 1.5);
this._yscale = this._xscale;
this.onEnterFrame = function () {
_x = (_x + addx);
if (_x < ((_width / 2) + 5)) {
_x = ((_width / 2) + 5);
} else if (_x > ((400 - (_width / 2)) + 5)) {
_x = ((400 - (_width / 2)) + 5);
}
_y = (_y + addy);
addx = addx / 2;
addy = addy / 2;
};
Symbol 46 MovieClip [fld] Frame 21
this.removeMovieClip();
Symbol 52 MovieClip [bakudan] Frame 1
stop();
addy = 10;
_root.combo = 0;
this.onEnterFrame = function () {
_y = (_y + addy);
if (this.hitTest(_root.hito.atari)) {
play();
} else if (_y > 239) {
_y = 240;
play();
}
};
Symbol 52 MovieClip [bakudan] Frame 2
i = 0;
while (i < 5) {
_root.ef.attachMovie("tubu", "tubu" + (++Ntubu), Ntubu);
_root.ef["tubu" + Ntubu]._x = this._x;
_root.ef["tubu" + Ntubu]._y = this._y;
i++;
}
this.onEnterFrame = function () {
if (_root.noyure == undefined) {
_root._x = Math.random() * (13 - (_currentframe - (_currentframe / 2)));
_root._y = Math.random() * (13 - _currentframe);
}
};
if (this.hitTest(_root.hito.atari)) {
_root.hitosibou(_x, _y + 20);
}
Symbol 52 MovieClip [bakudan] Frame 12
_root._x = 0;
_root._y = 0;
this.onEnterFrame = function () {
};
Symbol 52 MovieClip [bakudan] Frame 20
stop();
this._y = -100;
Symbol 66 MovieClip Frame 1
stop();
Instance of Symbol 59 MovieClip in Symbol 66 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.getBytesTotal() <= _root.getBytesLoaded()) {
_parent.play();
}
}
Symbol 66 MovieClip Frame 42
stop();
Symbol 72 Button
on (release) {
getURL ("http://sapporo.cool.ne.jp/f1ash/");
}
Symbol 86 Button
on (release) {
gotoAndStop (4);
}
on (keyPress "<Space>") {
if (_root.noyure == undefined) {
_root.noyure = true;
_root.yures.gotoAndPlay("viboff");
} else {
_root.noyure = undefined;
_root.yures.gotoAndPlay("vibon");
}
}
Symbol 89 Button
on (release) {
gotoAndStop (2);
_root.level = 1;
}
Symbol 92 Button
on (release) {
gotoAndStop (2);
_root.level = 9;
}
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 21
stop();
Symbol 102 MovieClip Frame 1
gotoAndStop(Math.ceil(Math.random() * _totalframes));
_root.zimen.gotoAndStop(this._currentframe);
Symbol 118 MovieClip Frame 1
stop();
if (speed == undefined) {
life = true;
damage = 0;
speed = 7;
myListener = new Object();
myListener.onKeyUp = function () {
if ((!(Key.isDown(39) || (Key.isDown(37)))) && (!jump)) {
_root.hito.gotoAndStop(1);
}
};
myListener.onKeyDown = function () {
if (!jump) {
if (Key.isDown(39) && (!Key.isDown(37))) {
_root.hito.gotoAndStop(2);
_root.hito._xscale = 100;
} else if (Key.isDown(37) && (!Key.isDown(39))) {
_root.hito.gotoAndStop(2);
_root.hito._xscale = -100;
}
if (Key.isDown(90)) {
jump = true;
addy = -20;
_root.hito.gotoAndStop(3);
}
}
};
Key.addListener(myListener);
}
this.onEnterFrame = function () {
if (life) {
if (Key.isDown(39)) {
_x = (_x + speed);
if (_x > 400) {
_x = 400;
}
}
if (Key.isDown(37)) {
_x = (_x - speed);
if (_x < 0) {
_x = 0;
}
}
if (jump) {
_y = (_y + addy);
addy = addy + 3;
if (_y > 240) {
_y = 240;
jump = false;
if (Key.isDown(39) || (Key.isDown(37))) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
Bkankaku = 85 - (_root.level * 5);
if ((_root.time % Bkankaku) == 0) {
_root.bakudan._x = _root.hito._x;
_root.bakudan._y = -20;
_root.bakudan.gotoAndStop(1);
}
if (damage > 0) {
damage++;
if (jump) {
_x = (_x + addx);
if (_x > 400) {
_x = 400;
}
if (_x < 0) {
_x = 0;
}
} else {
addx = 0;
}
if ((damage % 2) == 0) {
this._visible = !this._visible;
}
if (damage >= 80) {
this._visible = true;
damage = 0;
}
}
} else {
_x = (_x + addx);
_y = (_y + addy);
addy = addy + 3;
sicount++;
if (sicount > 100) {
_root.gotoAndStop(3);
}
}
};
Symbol 129 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 29
if (_root.level == 9) {
gotoAndPlay (44);
}
Symbol 136 MovieClip Frame 43
gotoAndStop (1);
Symbol 136 MovieClip Frame 93
gotoAndStop (1);
Symbol 143 MovieClip Frame 39
stop();
Symbol 147 Button
on (release) {
gotoAndStop (1);
}