Frame 1
function writeData() {
so.data.high_score = this.high_score;
so.flush();
}
function init() {
Mouse.removeListener(wheelListener);
Key.removeListener(keyListener);
}
function eatEnemy() {
this.pause_cnt = 15;
this.pause_flg = true;
var _local2 = this.combo_cnt * 200;
this.score = this.score + _local2;
this.combo_cnt = this.combo_cnt * 2;
this.mc_gs.entry(this.mc_gokkun._x + 20, this.mc_gokkun._y, _local2);
}
function eatFruits() {
this.pause_cnt = 15;
this.pause_flg = true;
var _local2 = this.fruits_num * 800;
this.score = this.score + _local2;
this.combo_cnt++;
this.mc_gs.entry(this.mc_gokkun._x + 20, this.mc_gokkun._y, _local2);
}
function randomInt(maxNum) {
var _local1 = Math.random() * maxNum;
if (_local1 == 0) {
_local1 = 1;
} else {
_local1 = Math.ceil(_local1);
}
return(_local1);
}
var wheelListener = new Object();
wheelListener.onMouseWheel = function (delta) {
if (!_root.game_flg) {
return(undefined);
}
mc_gokkun.moveLine(delta);
};
Mouse.addListener(wheelListener);
keyListener = new Object();
keyListener.onKeyDown = function () {
if (!_root.game_flg) {
return(undefined);
}
switch (Key.getCode()) {
case 38 :
n = 1;
break;
case 40 :
n = -1;
break;
default :
n = 0;
}
mc_gokkun.moveLine(n);
};
Key.addListener(keyListener);
_quality = "low";
this.scroll_speed = 3;
this.score = 0;
this.wall_list = [];
if (this.esa_set_cnt == undefined) {
this.esa_set_cnt = 0;
}
this.at_cnt = 0;
this.pause_flg = false;
this.combo_cnt = 1;
this.pause_cnt = 0;
this.mc_title._visible = true;
this.esa_get_cnt = 0;
this.fruits_num = 1;
this.game_flg = false;
this.fruits_set_flg = false;
this.high_score = 7650;
this.now_line = 1;
so = SharedObject.getLocal("highscore");
if (so.data.high_score == undefined) {
this.initData();
so.data.high_score = this.high_score;
} else {
this.high_score = so.data.high_score;
}
this.onEnterFrame = function () {
if (!this.pause_flg) {
if (this.at_cnt > 0) {
this.at_cnt--;
} else {
this.combo_cnt = 1;
}
} else {
this.pause_cnt--;
if (this.pause_cnt <= 0) {
this.pause_flg = false;
}
}
if (this.score > 9999999999) {
this.score = 9999999999;
}
if (this.score > this.high_score) {
this.high_score = this.score;
}
};
this.stop();
Instance of Symbol 60 MovieClip in Frame 1
//component parameters
onClipEvent (construct) {
line_num = 1;
}
Instance of Symbol 60 MovieClip in Frame 1
//component parameters
onClipEvent (construct) {
line_num = 2;
}
Instance of Symbol 60 MovieClip in Frame 1
//component parameters
onClipEvent (construct) {
line_num = 3;
}
Instance of Symbol 62 MovieClip in Frame 1
//component parameters
onClipEvent (construct) {
line_num = 1;
}
Instance of Symbol 62 MovieClip in Frame 1
//component parameters
onClipEvent (construct) {
line_num = 2;
}
Instance of Symbol 62 MovieClip in Frame 1
//component parameters
onClipEvent (construct) {
line_num = 3;
}
Frame 2
this.game_flg = true;
this.stop();
Symbol 2 MovieClip [esa_power] Frame 1
this.onEnterFrame = function () {
if (_root.pause_flg) {
return(undefined);
}
this._x = this._x - _parent.scroll_speed;
if (this._x <= -10) {
this.removeMovieClip();
}
if (_root.game_flg) {
if (this.hitTest(_parent.mc_gokkun.mc_hit)) {
_parent.at_cnt = 175;
_parent.score = _parent.score + 30;
this.removeMovieClip();
}
}
};
Symbol 4 MovieClip [esa] Frame 1
this.onEnterFrame = function () {
if (_root.pause_flg) {
return(undefined);
}
this._x = this._x - _parent.scroll_speed;
if (this._x <= -10) {
this.removeMovieClip();
}
if (_root.game_flg) {
if (this.hitTest(_parent.mc_gokkun.mc_hit)) {
_root.esa_get_cnt++;
if (_root.esa_get_cnt == 40) {
_root.fruits_set_flg = true;
}
_parent.score = _parent.score + 10;
this.removeMovieClip();
}
}
};
Symbol 9 MovieClip Frame 1
this._visible = false;
this.ten_flg = false;
this.onEnterFrame = function () {
if (_root.at_cnt > 0) {
this._visible = true;
if ((_root.at_cnt <= 60) && (!ten_flg)) {
this.flg = true;
this.gotoAndPlay("ten");
} else {
this.flg = false;
this.gotoAndStop(1);
}
} else {
this.flg = false;
this.gotoAndStop(1);
this._visible = false;
}
};
Symbol 9 MovieClip Frame 11
this.gotoAndPlay(_currentframe - 1);
Symbol 14 MovieClip Frame 1
_parent.my_speed = 1.1;
this.stop();
Symbol 14 MovieClip Frame 2
_parent.my_speed = 1.2;
this.stop();
Symbol 14 MovieClip Frame 3
_parent.my_speed = 1.3;
this.stop();
Symbol 14 MovieClip Frame 4
_parent.my_speed = 1.4;
Symbol 14 MovieClip Frame 15
this.stop();
Symbol 15 MovieClip [enemy] Frame 1
this.mc_g.gotoAndStop(_parent.randomInt(4));
this.stat = "run";
this.onEnterFrame = function () {
if (_root.pause_flg) {
return(undefined);
}
switch (this.stat) {
case "run" :
this._x = this._x - (_parent.scroll_speed * this.my_speed);
if (this._x <= -20) {
this.removeMovieClip();
}
if (_root.game_flg) {
if (this.hitTest(_parent.mc_gokkun)) {
if (_root.at_cnt > 0) {
_root.eatEnemy();
this.mc_g.gotoAndStop("eye");
this.stat = "death";
} else {
_root.pause_flg = true;
_root.pause_cnt = 60;
_parent.mc_gokkun.entryMiss();
}
}
}
break;
case "death" :
this._x = this._x + 6;
if (this._x < 480) {
break;
}
this.removeMovieClip();
}
};
Symbol 19 MovieClip [gameover] Frame 15
this.onPress = function () {
_root.init();
_root.gotoAndStop(1);
_root.writeData();
this.removeMovieClip();
};
this.stop();
Symbol 36 MovieClip Frame 1
this.stop();
Symbol 37 MovieClip [fruits] Frame 1
this.onEnterFrame = function () {
if (_root.pause_flg) {
return(undefined);
}
this._x = this._x - _parent.scroll_speed;
if (this._x <= -10) {
this.removeMovieClip();
}
if (_root.game_flg) {
if (this.hitTest(_parent.mc_gokkun.mc_hit)) {
_root.eatFruits();
this.removeMovieClip();
}
}
};
this.mc_g.gotoAndStop(_root.fruits_num);
this.stop();
Symbol 40 MovieClip Frame 1
function entry() {
this.stat = "fall";
}
this.vy = 0;
this.stat = "standby";
this.onEnterFrame = function () {
if (this.stat == "fall") {
this._y = this._y + this.vy;
this.vy = this.vy + 0.4;
}
};
Symbol 41 MovieClip Frame 15
this.gotoAndPlay(1);
Symbol 41 MovieClip Frame 20
this.stop();
Symbol 44 MovieClip [gokkun] Frame 1
function moveLine(d) {
if (d > 0) {
switch (this.line_num) {
case 2 :
if ((!_parent.mc_wall1_1.hitTest(this._x, this._y - 10, true)) && (!_parent.mc_wall1_2.hitTest(this._x, this._y - 10, true))) {
this.line_num = 1;
}
break;
case 3 :
if (!((!_parent.mc_wall2_1.hitTest(this._x, this._y - 10, true)) && (!_parent.mc_wall2_2.hitTest(this._x, this._y - 10, true)))) {
break;
}
this.line_num = 2;
}
} else if (d < 0) {
switch (this.line_num) {
case 1 :
if ((!_parent.mc_wall1_1.hitTest(this._x, this._y + 10, true)) && (!_parent.mc_wall1_2.hitTest(this._x, this._y + 10, true))) {
this.line_num = 2;
}
break;
case 2 :
if (!((!_parent.mc_wall2_1.hitTest(this._x, this._y + 10, true)) && (!_parent.mc_wall2_2.hitTest(this._x, this._y + 10, true)))) {
break;
}
this.line_num = 3;
}
}
_root.now_line = this.line_num;
}
function main() {
switch (this.stat) {
case "run" :
this._y = 10 + ((line_num - 1) * 20);
break;
case "miss" :
if (this.death_cnt > 0) {
this.mc_g["mc_" + this.death_cnt].entry();
if (this.death_cnt > 12) {
_root.attachMovie("gameover", "mc_gameover", 100004);
this.stat = "end";
}
}
this.death_cnt++;
}
}
function entryMiss() {
if (this.stat == "run") {
_root.game_flg = false;
this.stat = "miss";
this.mc_g.gotoAndStop("death");
}
}
this.stat = "run";
this.line_num = 1;
this.death_cnt = 0;
this.stop();
this.onEnterFrame = function () {
if (_root.pause_flg && (this.stat != "miss")) {
return(undefined);
}
this.main();
};
Symbol 55 MovieClip Frame 1
stop();
Symbol 56 MovieClip [wall] Frame 1
this.onEnterFrame = function () {
if (_root.pause_flg) {
return(undefined);
}
this._x = this._x - _parent.scroll_speed;
if (this._x <= -480) {
this._x = 480;
this.mc_g.gotoAndStop(_parent.randomInt(10));
}
};
Symbol 60 MovieClip Frame 1
function init() {
i = _parent.randomInt(4);
while (i < (13 - _parent.randomInt(4))) {
var _local3 = "esa" + _parent.esa_set_cnt;
_parent.attachMovie("esa", _local3, _parent.esa_set_cnt);
_parent[_local3]._x = 120 + (30 * i);
_parent[_local3]._y = ((this.line_num - 1) * 20) + 10;
_parent.esa_set_cnt++;
if (_parent.esa_set_cnt > 10000) {
_parent.esa_set_cnt = 0;
}
i++;
}
}
this.cnt = 0;
this.line_width = 0;
this.set_cnt = _parent.randomInt(10) + 4;
this.set_pass_cnt = 0;
this.set_cnt_total = 0;
this.init();
this.stop();
this.onEnterFrame = function () {
if (_root.pause_flg) {
return(undefined);
}
if (this.cnt == 10) {
if (set_pass_cnt == 0) {
var _local4 = "esa" + _parent.esa_set_cnt;
if (this.set_cnt_total == 16) {
_parent.attachMovie("esa_power", _local4, _parent.esa_set_cnt);
this.set_cnt_total = 0;
} else if (_root.fruits_set_flg) {
_root.fruits_set_flg = false;
_root.esa_get_cnt = 0;
_parent.attachMovie("fruits", _local4, _parent.esa_set_cnt);
_root.fruits_num++;
if (_root.fruits_num > 8) {
_root.fruits_num = 1;
}
} else {
this.set_cnt_total++;
_parent.attachMovie("esa", _local4, _parent.esa_set_cnt);
}
_parent[_local4]._x = 480;
_parent[_local4]._y = ((this.line_num - 1) * 20) + 10;
_parent.esa_set_cnt++;
this.set_cnt--;
if (this.set_cnt == 0) {
this.set_pass_cnt = _parent.randomInt(4) + 2;
}
} else {
this.set_pass_cnt--;
if (this.set_pass_cnt == 0) {
this.set_cnt = _parent.randomInt(10) + 4;
}
}
this.cnt = 0;
} else {
this.cnt++;
}
};
Symbol 62 MovieClip Frame 1
this.cnt = _root.randomInt(20) * 10;
this.stop();
this.onEnterFrame = function () {
if (_root.pause_flg) {
return(undefined);
}
if (this.cnt == 0) {
var _local4 = "enemy" + _parent.esa_set_cnt;
_parent.attachMovie("enemy", _local4, _parent.esa_set_cnt);
_parent[_local4]._x = 480;
_parent[_local4]._y = ((this.line_num - 1) * 20) + 10;
_parent.esa_set_cnt++;
if (_parent.esa_set_cnt > 10000) {
_parent.esa_set_cnt = 0;
}
this.cnt = 100 + (_parent.randomInt(10) * 10);
} else {
this.cnt--;
}
};
Symbol 67 MovieClip Frame 1
this.onPress = function () {
_parent._visible = false;
_root.gotoAndStop(2);
};
Symbol 71 MovieClip Frame 1
this.swapDepths(100002);
Symbol 73 MovieClip Frame 1
this.swapDepths(100000);
Symbol 76 MovieClip Frame 1
this.swapDepths(100001);
Symbol 79 MovieClip Frame 1
function entry(nx, ny, n) {
this.gs = n;
this._x = nx;
this._y = ny;
this.gotoAndPlay(3);
}
Symbol 79 MovieClip Frame 2
this.stop();
Symbol 79 MovieClip Frame 30
this._y = 300;
this.stop();
Symbol 81 MovieClip Frame 1
this.onPress = function () {
n = 0;
if (_parent._ymouse < 20) {
if (_root.now_line >= 2) {
n = 1;
}
} else if (_parent._ymouse >= 40) {
if (_root.now_line <= 2) {
n = -1;
}
} else {
if (_root.now_line == 1) {
n = -1;
}
if (_root.now_line == 3) {
n = 1;
}
}
_root.mc_gokkun.moveLine(n);
};