Frame 1
s_mask = 1;
s_lock = 0;
if (s_mask == 1) {
Stage.scaleMode = "showAll";
createEmptyMovieClip("stage_mask", 12345);
with (stage_mask) {
lineStyle();
beginFill(0, 100);
moveTo(0, 0);
lineTo(Stage.width, 0);
lineTo(Stage.width, Stage.height);
lineTo(0, Stage.height);
lineTo(0, 0);
endFill();
}
_root.setMask(stage_mask);
}
Frame 2
function xPop(pow, spd) {
if (gameover) {
return(null);
}
if (muteki) {
return(null);
}
layer1.attachMovie("pop", "pop" + psindo, psindo);
with (layer1["pop" + psindo]) {
if (pow >= 0) {
_x = 600;
} else {
_x = 40;
}
_y = 240;
_alpha = 100;
}
if (pow < 0) {
pow = pow * -1;
}
if (spd < 0) {
spd = spd * -1;
}
var pts = (pow * spd);
layer1["pop" + psindo].poptxt = "+" + pts;
if (200 < psindo) {
psindo = 100;
}
layer1["pop" + psindo].onEnterFrame = function () {
this._y = this._y - 1;
this._alpha = this._alpha - 1;
if (0 >= this._alpha) {
this.removeMovieClip();
delete this.onEnterFrame;
}
};
score = score + pts;
xScore();
psindo++;
}
function xStar() {
enemy[3]++;
snd_6.start();
ct = Math.floor(Math.random() * 120) + 30;
layer1.attachMovie("star", "star" + sindo, sindo);
with (layer1["star" + sindo]) {
_y = 360;
if (muki == 0) {
_x = -80;
}
if (muki == 1) {
_x = 640;
_xscale = _xscale * -1;
}
}
layer1["star" + sindo].dx = Math.floor(Math.random() * 6) + 2;
if (muki) {
layer1["star" + sindo].dx = layer1["star" + sindo].dx * -1;
}
layer1["star" + sindo].F = (Math.floor(Math.random() * 16) + 8) * -1;
layer1["star" + sindo].dy = layer1["star" + sindo].F;
layer1["star" + sindo].onEnterFrame = function () {
this._x = this._x + this.dx;
this._y = this._y + this.dy;
this.dy++;
if (this._y >= 360) {
this._y = 360;
this.dy = this.F;
}
if (this._x < -80) {
enemy[4]++;
xPop(this.dx, this.F);
this.removeMovieClip();
delete this.onEnterFrame;
}
if (720 < this._x) {
enemy[4]++;
xPop(this.dx, this.F);
this.removeMovieClip();
delete this.onEnterFrame;
}
if ((!muteki) && (_root.pc.hitTest(this._x, this._y))) {
xDamage(1, this._xscale);
this.removeMovieClip();
delete this.onEnterFrame;
}
};
muki = 1 - muki;
sindo++;
}
function xGameOver() {
gameover = 1;
txt = (("GameOver" + "\nlife:") + life) + "(dead)";
bgm.stop();
snd_dame.start();
pc._visible = false;
layer1.attachMovie("yarare", "yarare", 1000);
layer1.attachMovie("syutyu", "syutyu", 1001);
layer1.yarare._xscale = pc._xscale;
layer1.yarare._yscale = pc._yscale;
layer1.yarare._x = _root.pc._x;
layer1.yarare._y = _root.pc._y - 30;
layer1.yarare.dy = -24;
layer1.yarare.bound = 0;
layer1.yarare.dx = kb * 2;
layer1.yarare.onEnterFrame = function () {
this._rotation = this._rotation + this.dx;
this._x = this._x + this.dx;
this._y = this._y + this.dy;
this.dy++;
if (this._x < 0) {
this._x = 0;
this.dx = this.dx * -1;
}
if (640 < this._x) {
this._x = 640;
this.dx = this.dx * -1;
}
if (this._y >= 330) {
this._y = 330;
this.dy = this.dy / -1.5;
this.bound++;
snd_3.start();
if (3 < this.bound) {
gotoAndPlay("_root.overman");
delete this.onEnterFrame;
}
}
};
delete _root.pc.onEnterFrame;
}
function xScore() {
txt = ((("score:" + score) + "pts.") + "\nlife:") + life;
}
function xSummon() {
enemy[1]++;
ct = Math.floor(Math.random() * 120) + 30;
layer1.attachMovie("horn", "horn" + sindo, sindo);
with (layer1["horn" + sindo]) {
_y = 360;
_xscale = Math.floor(Math.random() * 50) + 50;
_yscale = _xscale;
if (muki == 0) {
_x = -160;
}
if (muki == 1) {
_x = 820;
_xscale = _xscale * -1;
}
}
layer1["horn" + sindo].speed = Math.floor(Math.random() * 12) + 6;
if (13 >= layer1["horn" + sindo].speed) {
snd_7.start();
} else {
snd_5.start();
}
layer1["horn" + sindo].ateta = 0;
layer1["horn" + sindo].onEnterFrame = function () {
if (0 >= this._xscale) {
this._x = this._x - this.speed;
if (-160 >= this._x) {
if ((!gameover) && (!this.ateta)) {
enemy[2]++;
_root.xPop(this._xscale, this.speed);
this.ateta = 1;
}
delete this.onEnterFrame;
this.removeMovieClip();
}
} else {
this._x = this._x + this.speed;
if (this._x >= 820) {
if ((!gameover) && (!this.ateta)) {
enemy[2]++;
_root.xPop(this._xscale, this.speed);
this.ateta = 1;
}
delete this.onEnterFrame;
this.removeMovieClip();
}
}
if ((!muteki) && (this.hitTest(_root.pc._x, _root.pc._y))) {
xDamage(3, this._xscale);
this.ateta = 1;
}
};
sindo++;
muki = 1 - muki;
if (99 < sindo) {
sindo = 0;
}
}
function xDamage(dmg, houkou) {
snd_3.start();
if (0 >= houkou) {
kb = -1;
} else {
kb = 1;
}
damage = 30;
muteki = 90;
_root.pc.gotoAndPlay("damage");
if (dy < 0) {
dy = 0;
}
life = life - dmg;
xScore();
if (0 >= life) {
xGameOver();
}
}
createEmptyMovieClip("mc_bgm", 1000);
createEmptyMovieClip("mc_se", 1001);
bgm = new Sound(_root.mc_bgm);
bgm.attachSound("iwish");
bgm.onSoundComplete = function () {
bgm.start(11.2);
};
snd_dame = new Sound(_root.mc_bgm);
snd_dame.attachSound("dame");
snd_1 = new Sound(_root.mc_se);
snd_1.attachSound("snd_1");
snd_2 = new Sound(_root.mc_se);
snd_2.attachSound("snd_2");
snd_3 = new Sound(_root.mc_se);
snd_3.attachSound("snd_3");
snd_4 = new Sound(_root.mc_se);
snd_4.attachSound("snd_4");
snd_5 = new Sound(_root.mc_se);
snd_5.attachSound("snd_5");
snd_6 = new Sound(_root.mc_se);
snd_6.attachSound("snd_6");
snd_7 = new Sound(_root.mc_se);
snd_7.attachSound("snd_7");
Instance of Symbol 12 MovieClip [スプライト(1)] "pc" in Frame 13
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 52 MovieClip [setumei] "setumei" in Frame 13
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 64 MovieClip [スプライト(7)] in Frame 13
onClipEvent (load) {
gotoAndStop(3);
}
on (press) {
if (!_root.setumei._visible) {
gotoAndStop(8);
_root.setumei._visible = 1;
_root.pc._visible = 1;
_root.title._visible = 0;
} else {
gotoAndStop(4);
_root.setumei._visible = 0;
_root.title._visible = 1;
_root.pc._visible = 0;
}
}
on (rollOver) {
gotoAndStop(_currentframe + 1);
}
on (rollOut) {
gotoAndStop(_currentframe - 1);
}
Frame 13
setumei.txt = (("score:" + 0) + "pts") + "\nlife:20";
px = pc._x;
py = pc._y;
pc.onEnterFrame = function () {
key_a = Key.isDown(32) + Key.isDown(38);
if (!((!key_l) && (Key.isDown(90)))) {
if ((!key_r) && (Key.isDown(88))) {
}
} else {
delete pc.onEnterFrame;
_root.gotoAndPlay("start");
}
key_l = Key.isDown(90);
key_r = Key.isDown(88);
if (Key.isDown(37)) {
px = px - 8;
pc._xscale = 50;
if (nidan) {
px = px + 1;
}
}
if (Key.isDown(39)) {
px = px + 8;
pc._xscale = -50;
if (nidan) {
px = px - 1;
}
}
if (((!damage) && (key_a)) && (!jump)) {
jump = 1;
py = pc._y;
dy = -20;
snd_1.start();
pc.gotoAndPlay("jump");
}
if (jump) {
py = py + dy;
dy = dy + 1;
if ((!key_a) && (dy < 1)) {
dy = 0;
}
if (((((!damage) && (key_a)) && (0 < dy)) && (!nidan)) && (!key_j)) {
dy = -16;
snd_4.start();
pc.gotoAndPlay("nidan");
nidan = 1;
}
if (360 < py) {
py = 360;
}
if (py == 360) {
jump = 0;
nidan = 0;
snd_2.start();
}
if ((jump == 0) && (!damage)) {
pc.gotoAndPlay("loop");
}
}
if (640 < px) {
px = 640;
}
if (px < 0) {
px = 0;
}
pc._x = px;
pc._y = py;
key_j = Key.isDown(32) + Key.isDown(38);
};
Frame 14
stop();
Frame 15
bgm.start();
life = 20;
jump = 0;
py = 360;
px = 320;
pc._x = px;
pc._y = py;
sindo = 0;
ct = 60;
muki = 0;
score = 0;
gameover = 0;
pc._visible = 1;
muteki = 0;
damage = 0;
psindo = 100;
enemy = null;
enemy = [0, 0, 0, 0, 0];
delete pc.onEnterFrame;
pc.gotoAndPlay("loop");
removeMovieClip(layer1.yarare);
removeMovieClip(layer1.syutyu);
xScore();
pc.onEnterFrame = function () {
if ((!damage) && (muteki)) {
pc._alpha = 50;
muteki--;
if (!muteki) {
pc._alpha = 100;
}
}
key_a = 0;
key_l = 0;
key_r = 0;
if (0 >= ct) {
dice = Math.floor(Math.random() * 2);
if (!dice) {
xStar();
} else {
xSummon();
}
}
ct--;
key_a = Key.isDown(32) + Key.isDown(38);
if (Key.isDown(37)) {
key_l = 1;
}
if (Key.isDown(39)) {
key_r = 1;
}
if ((!damage) && (key_l)) {
px = px - 8;
pc._xscale = 50;
if (nidan) {
px = px + 1;
}
}
if ((!damage) && (key_r)) {
px = px + 8;
pc._xscale = -50;
if (nidan) {
px = px - 1;
}
}
if (damage) {
px = px + kb;
damage--;
if (damage == 0) {
pc.gotoAndPlay("loop");
}
}
if (((!damage) && (key_a)) && (!jump)) {
jump = 1;
py = pc._y;
dy = -20;
snd_1.start();
pc.gotoAndPlay("jump");
}
if (jump) {
py = py + dy;
dy = dy + 1;
if ((!key_a) && (dy < 1)) {
dy = 0;
}
if (((((!damage) && (key_a)) && (0 < dy)) && (!nidan)) && (!key_j)) {
dy = -16;
snd_4.start();
pc.gotoAndPlay("nidan");
nidan = 1;
}
if (360 < py) {
py = 360;
}
if (py == 360) {
jump = 0;
nidan = 0;
snd_2.start();
}
if ((jump == 0) && (!damage)) {
pc.gotoAndPlay("loop");
}
}
if (640 < px) {
px = 640;
}
if (px < 0) {
px = 0;
}
pc._x = px;
pc._y = py;
enemy[0]++;
score++;
xScore();
key_j = Key.isDown(32) + Key.isDown(38);
};
Frame 76
stop();
Instance of Symbol 64 MovieClip [スプライト(7)] in Frame 87
onClipEvent (load) {
gotoAndStop(5);
}
on (press) {
_root.gotoAndPlay("start");
}
on (rollOver) {
gotoAndStop(_currentframe + 1);
}
on (rollOut) {
gotoAndStop(_currentframe - 1);
}
Instance of Symbol 64 MovieClip [スプライト(7)] in Frame 87
onClipEvent (load) {
gotoAndStop(7);
}
on (press) {
_root.gotoAndPlay("title");
}
on (rollOver) {
gotoAndStop(_currentframe + 1);
}
on (rollOut) {
gotoAndStop(_currentframe - 1);
}
Frame 87
txt = (("GameOver" + "\nlife:") + life) + "(dead)";
txt_score = (" Score : " + score) + " pts.";
pc.onEnterFrame = function () {
if (!((!key_l) && (Key.isDown(90)))) {
if ((!key_r) && (Key.isDown(88))) {
delete pc.onEnterFrame;
_root.gotoAndPlay("title");
}
} else {
delete pc.onEnterFrame;
_root.gotoAndPlay("start");
}
key_l = Key.isDown(90);
key_r = Key.isDown(88);
};
Frame 88
stop();
Symbol 122 MovieClip Frame 57
stop();
Symbol 80 MovieClip [kiwotuke] Frame 2
stop();
Symbol 80 MovieClip [kiwotuke] Frame 4
stop();
Symbol 80 MovieClip [kiwotuke] Frame 6
stop();
Instance of Symbol 80 MovieClip [kiwotuke] "kiwotuke" in Symbol 68 MovieClip [title] Frame 1
onClipEvent (load) {
gotoAndStop(1);
}
Instance of Symbol 82 MovieClip [icon] in Symbol 68 MovieClip [title] Frame 1
on (press) {
if (_root.s_lock) {
Stage.scaleMode = "showAll";
_root.s_lock = 0;
} else {
Stage.scaleMode = "noScale";
_root.s_lock = 1;
}
}
on (rollOver) {
_parent.kiwotuke.gotoAndStop(3);
}
on (rollOut) {
_parent.kiwotuke.gotoAndStop(1);
}
Instance of Symbol 64 MovieClip [スプライト(7)] in Symbol 68 MovieClip [title] Frame 1
onClipEvent (load) {
gotoAndStop(1);
}
on (rollOver) {
gotoAndStop(_currentframe + 1);
}
on (rollOut) {
gotoAndStop(_currentframe - 1);
}
on (press) {
_root.gotoAndPlay("start");
}
Instance of Symbol 94 MovieClip [qbt] in Symbol 68 MovieClip [title] Frame 25
onClipEvent (load) {
gotoAndStop(1);
}
on (press) {
_quality = "high";
}
on (rollOver) {
gotoAndStop(_currentframe + 2);
_parent.kiwotuke.gotoAndStop(5);
}
on (rollOut) {
gotoAndStop(_currentframe - 2);
_parent.kiwotuke.gotoAndStop(1);
}
Instance of Symbol 94 MovieClip [qbt] in Symbol 68 MovieClip [title] Frame 25
onClipEvent (load) {
gotoAndStop(5);
}
on (press) {
_quality = "medium";
}
on (rollOver) {
gotoAndStop(_currentframe + 2);
_parent.kiwotuke.gotoAndStop(5);
}
on (rollOut) {
gotoAndStop(_currentframe - 2);
_parent.kiwotuke.gotoAndStop(1);
}
Instance of Symbol 94 MovieClip [qbt] in Symbol 68 MovieClip [title] Frame 25
onClipEvent (load) {
gotoAndStop(9);
}
on (press) {
_quality = "low";
}
on (rollOver) {
gotoAndStop(_currentframe + 2);
_parent.kiwotuke.gotoAndStop(5);
}
on (rollOut) {
gotoAndStop(_currentframe - 2);
_parent.kiwotuke.gotoAndStop(1);
}
Symbol 68 MovieClip [title] Frame 25
stop();
Symbol 94 MovieClip [qbt] Frame 2
stop();
Symbol 94 MovieClip [qbt] Frame 4
stop();
Symbol 94 MovieClip [qbt] Frame 6
stop();
Symbol 94 MovieClip [qbt] Frame 8
stop();
Symbol 94 MovieClip [qbt] Frame 10
stop();
Symbol 94 MovieClip [qbt] Frame 12
stop();
Symbol 12 MovieClip [スプライト(1)] Frame 61
gotoAndPlay("loop");
Symbol 12 MovieClip [スプライト(1)] Frame 63
stop();
Symbol 12 MovieClip [スプライト(1)] Frame 65
stop();
Symbol 12 MovieClip [スプライト(1)] Frame 86
stop();
Symbol 20012 Button
on (press) {
gotoAndPlay("start");
}
on () {
}