Frame 1
_root.SCREEN_WIDTH = 256;
_root.SCREEN_HEIGHT = 224;
_root.L_MAX = 9;
_root.R_MAX = 215;
_root.U_MAX = 8;
_root.D_MAX = 198;
_root.SP_BET = 4;
_root.OPT_MAX = 50;
_root.BG_STAR_MAX = 64;
_root.stage_lmax = _root.L_MAX + (_root.jiki._width / 2);
_root.stage_rmax = _root.R_MAX - (_root.jiki._width / 2);
_root.stage_umax = _root.U_MAX + (_root.jiki._height / 2);
_root.stage_dmax = _root.D_MAX - (_root.jiki._height / 2);
_root.ST_SHOT = 0;
_root.ST_LASER = 1;
_root.star_color = new Array(0, 0, 152, 193, 0, 0, 1, 127, 53, 152, 84, 1, 53, 138, 179, 193, 114, 114, 193, 179, 0, 164, 193, 255);
_root.se_pow = new Sound();
_root.se_shot = new Sound();
_root.se_laser = new Sound();
_root.se_miss = new Sound();
_root.se_pow.attachSound("pow.mp3");
_root.se_shot.attachSound("shot.mp3");
_root.se_laser.attachSound("laser.mp3");
_root.se_miss.attachSound("miss.mp3");
Instance of Symbol 10 MovieClip "multiple" in Frame 1
/* no clip actions */
Instance of Symbol 36 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root.state == 1) {
_root.multi_cnt++;
if (_root.multi_cnt > 60) {
this.i = 1;
while (this.i < (_root.opt_num + 1)) {
_root["opt" + this.i].removeMovieClip();
_root["wp_laser" + this.i].removeMovieClip();
_root[("wp_shot" + this.i) + "_0"].removeMovieClip();
_root[("wp_shot" + this.i) + "_1"].removeMovieClip();
this.i++;
}
this.i = 1;
while (this.i < _root.star_max) {
_root["bg_star" + this.i].removeMovieClip();
this.i++;
}
_root.miss._x = -50;
_root.opt_num = 0;
_root.jiki.gotoAndStop(3);
_root.state = 0;
_root.multi_cnt = 0;
_root.dupli_num = 0;
_root.up_point = 0;
_root.down_point = 0;
_root.updown_point = 0;
_root.shot_type = _root.ST_SHOT;
_root.gotoAndPlay(2);
}
} else if ((_root.log_x[0] != _root._xmouse) || (_root.log_y[0] != _root._ymouse)) {
this.temp_length = _root.log_x.length - 1;
this.i = 0;
while (this.i < this.temp_length) {
_root.log_x[this.temp_length - this.i] = _root.log_x[this.temp_length - (this.i + 1)];
_root.log_y[this.temp_length - this.i] = _root.log_y[this.temp_length - (this.i + 1)];
this.i++;
}
if (_root.jiki._y > (_root._ymouse - 9)) {
_root.updown_point--;
} else if (_root.jiki._y < (_root._ymouse - 9)) {
_root.updown_point++;
} else if ((_root.updown_point > 0) && (_root._ymouse < _root.D_MAX)) {
_root.updown_point--;
} else if ((_root.updown_point < 0) && (_root._ymouse > _root.U_MAX)) {
_root.updown_point++;
}
if (_root.updown_point < -20) {
_root.updown_point = -20;
} else if (_root.updown_point < -15) {
_root.jiki.gotoAndStop(1);
} else if (_root.updown_point < -5) {
_root.jiki.gotoAndStop(2);
} else if (_root.updown_point > 20) {
_root.updown_point = 20;
} else if (_root.updown_point > 15) {
_root.jiki.gotoAndStop(5);
} else if (_root.updown_point > 5) {
_root.jiki.gotoAndStop(4);
} else {
_root.jiki.gotoAndStop(3);
}
_root.log_x[1] = _root.log_x[0];
_root.log_y[1] = _root.log_y[0];
_root.log_x[0] = _root._xmouse;
_root.log_y[0] = _root._ymouse;
} else {
if ((_root.updown_point > 0) && (_root._ymouse < _root.D_MAX)) {
_root.updown_point--;
} else if ((_root.updown_point < 0) && (_root._ymouse > _root.U_MAX)) {
_root.updown_point++;
}
if (_root.updown_point < -20) {
_root.updown_point = -20;
} else if (_root.updown_point < -15) {
_root.jiki.gotoAndStop(1);
} else if (_root.updown_point < -5) {
_root.jiki.gotoAndStop(2);
} else if (_root.updown_point > 20) {
_root.updown_point = 20;
} else if (_root.updown_point > 15) {
_root.jiki.gotoAndStop(5);
} else if (_root.updown_point > 5) {
_root.jiki.gotoAndStop(4);
} else {
_root.jiki.gotoAndStop(3);
}
}
}
onClipEvent (mouseDown) {
if (_root.state == 0) {
if (_root._ymouse < 215) {
if (_root.shot_type == _root.ST_SHOT) {
this.i = 0;
while (this.i < 2) {
if (_root["wp_shot_jiki" + this.i].flag == "off") {
_root["wp_shot_jiki" + this.i].flag = "on";
_root["wp_shot_jiki" + this.i]._x = _root.jiki._x;
_root["wp_shot_jiki" + this.i]._y = _root.jiki._y + 8;
_root.se_shot.start();
break;
}
this.i++;
}
this.j = 1;
while (this.j < (_root.opt_num + 1)) {
this.i = 0;
while (this.i < 2) {
if (_root[(("wp_shot" + this.j) + "_") + this.i].flag == "off") {
_root[(("wp_shot" + this.j) + "_") + this.i].flag = "on";
_root[(("wp_shot" + this.j) + "_") + this.i]._x = _root["opt" + this.j]._x;
_root[(("wp_shot" + this.j) + "_") + this.i]._y = _root["opt" + this.j]._y + 5;
_root.se_shot.start();
break;
}
this.i++;
}
this.j++;
}
} else if (_root.shot_type == _root.ST_LASER) {
if (_root.wp_laser_jiki.flag == "off") {
_root.wp_laser_jiki.flag = "on";
_root.wp_laser_jiki._x = _root.jiki._x + 15;
_root.wp_laser_jiki._y = _root.jiki._y + 11;
_root.wp_laser_jiki.parent_num = _root.SP_BET;
_root.se_laser.start();
}
this.j = 1;
while (this.j < (_root.opt_num + 1)) {
if (_root["wp_laser" + this.j].flag == "off") {
_root["wp_laser" + this.j].flag = "on";
_root["wp_laser" + this.j]._x = _root["opt" + this.j]._x + 15;
_root["wp_laser" + this.j]._y = _root["opt" + this.j]._y + 11;
_root["wp_laser" + this.j].parent_num = _root[((this.j - 1) * _root.SP_BET) + _root.SP_BET];
_root.se_laser.start();
}
this.j++;
}
}
}
}
}
onClipEvent (mouseUp) {
if (_root.shot_type == _root.ST_SHOT) {
if (_root.wp_shot_jiki0.flag == "on") {
_root.wp_shot_jiki0.flag = "wait";
}
if (_root.wp_shot_jiki1.flag == "on") {
_root.wp_shot_jiki1.flag = "wait";
}
this.j = 1;
while (this.j < (_root.opt_num + 1)) {
if (_root[("wp_shot" + this.j) + "_0"].flag == "on") {
_root[("wp_shot" + this.j) + "_0"].flag = "wait";
}
if (_root[("wp_shot" + this.j) + "_1"].flag == "on") {
_root[("wp_shot" + this.j) + "_1"].flag = "wait";
}
this.j++;
}
} else if (_root.shot_type == _root.ST_LASER) {
if (_root.wp_laser_jiki.flag == "on") {
_root.wp_laser_jiki.flag = "wait";
}
this.j = 1;
while (this.j < (_root.opt_num + 1)) {
if (_root["wp_laser" + this.j].flag == "on") {
_root["wp_laser" + this.j].flag = "wait";
}
this.j++;
}
}
}
Frame 2
_root.jiki.gotoAndStop(3);
_root.opt.gotoAndPlay(1);
_root.mess_start.gotoAndPlay(1);
_root.state = 0;
_root.multi_cnt = 0;
_root.opt_num = 0;
_root.dupli_num = 0;
_root.up_point = 0;
_root.down_point = 0;
_root.shot_type = _root.ST_SHOT;
_root.log_x = new Array();
_root.log_y = new Array();
this.i = 0;
while (this.i < (_root.SP_BET + 1)) {
_root.log_x[this.i] = _root._xmouse;
_root.log_y[this.i] = _root._ymouse;
this.i++;
}
_root.wp_shot.duplicateMovieClip("wp_shot_jiki0", _root.dupli_num++);
_root.wp_shot.duplicateMovieClip("wp_shot_jiki1", _root.dupli_num++);
_root.wp_shot_jiki0.my_num = 0;
_root.wp_shot_jiki1.my_num = 0;
_root.wp_laser.duplicateMovieClip("wp_laser_jiki", _root.dupli_num++);
_root.wp_laser_jiki.my_num = 0;
this.add_y = 0;
this.i = 1;
while (this.i < _root.BG_STAR_MAX) {
_root.bg_star.duplicateMovieClip("bg_star" + this.i, _root.dupli_num++);
_root["bg_star" + this.i].my_num = this.i;
_root["col_obj" + this.i] = new Color(_root["bg_star" + this.i]);
this.c = Math.floor(Math.random() * 7);
_root["col_obj" + this.i].setRGB(((_root.star_color[(this.c * 3) + 0] * 65536) + (_root.star_color[(this.c * 3) + 1] * 256)) + _root.star_color[(this.c * 3) + 2]);
_root["bg_star" + this.i]._x = Math.floor(Math.random() * 256);
this.add_y = this.add_y + (Math.floor(Math.random() * 4) + 2);
_root["bg_star" + this.i]._y = this.add_y + 26;
_root["bg_star" + this.i].speed = Math.floor(Math.random() * 5) + 1;
if (this.add_y > 185) {
break;
}
this.i++;
}
_root.star_max = this.i;
Instance of Symbol 38 MovieClip "bg_star" in Frame 2
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if ((this.my_num > 0) && (_root.state == 0)) {
this._x = this._x - this.speed;
if (this._x < 0) {
this._x = _root.SCREEN_WIDTH + 4;
}
}
}
Instance of Symbol 41 MovieClip "wp_shot" in Frame 2
onClipEvent (load) {
this.flag = "off";
}
onClipEvent (enterFrame) {
if (_root.state == 0) {
if ((this.flag == "on") || (this.flag == "wait")) {
this._x = this._x + 24;
if (this._x > (_root.SCREEN_WIDTH + 24)) {
if (this.flag == "wait") {
this.flag = "off";
} else {
if (this.my_num != 0) {
this._x = _root["opt" + this.my_num]._x + 4;
this._y = _root["opt" + this.my_num]._y + 5;
} else {
this._x = _root.jiki._x;
this._y = _root.jiki._y + 8;
}
_root.se_shot.start();
}
}
}
}
}
Instance of Symbol 43 MovieClip "wp_laser" in Frame 2
onClipEvent (load) {
this.flag = "off";
}
onClipEvent (enterFrame) {
if (_root.state == 0) {
if ((this.flag == "on") || (this.flag == "wait")) {
if (this._width < 210) {
this._x = (_root.log_x[(this.my_num * _root.SP_BET) + _root.SP_BET] - 12) + 15;
this._width = this._width + 32;
if (this._x < (_root.L_MAX + 15)) {
this._x = _root.L_MAX + 15;
}
if (this._x > (_root.R_MAX + 15)) {
this._x = _root.R_MAX + 15;
}
} else {
this._x = this._x + 32;
}
if (this._x > (_root.SCREEN_WIDTH + 210)) {
this._width = 1;
if (this.flag == "wait") {
this.flag = "off";
} else {
_root.se_laser.start();
}
}
if (this.my_num == 0) {
this._y = (_root.log_y[(this.my_num * _root.SP_BET) + _root.SP_BET] - 9) + 11;
} else {
this._y = (_root.log_y[(this.my_num * _root.SP_BET) + _root.SP_BET] - 9) + 11;
}
if (this._y < (_root.U_MAX + 11)) {
this._y = _root.U_MAX + 11;
}
if (this._y > (_root.D_MAX + 11)) {
this._y = _root.D_MAX + 11;
}
}
}
}
Instance of Symbol 50 MovieClip "opt" in Frame 2
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_root.state == 0) {
if (this.my_num > 0) {
this._x = (_root.log_x[(this.my_num * _root.SP_BET) + _root.SP_BET] - 12) - 4;
this._y = (_root.log_y[(this.my_num * _root.SP_BET) + _root.SP_BET] - 9) + 3;
if (this._x < (_root.L_MAX - 4)) {
this._x = _root.L_MAX - 4;
}
if (this._x > (_root.R_MAX - 4)) {
this._x = _root.R_MAX - 4;
}
if (this._y < (_root.U_MAX + 3)) {
this._y = _root.U_MAX + 3;
}
if (this._y > (_root.D_MAX + 3)) {
this._y = _root.D_MAX + 3;
}
}
} else {
this.stop();
}
}
Instance of Symbol 55 MovieClip "burner" in Frame 2
onClipEvent (enterFrame) {
if (_root.state == 0) {
this._x = (_root.log_x[_root.SP_BET] - 12) - 7;
this._y = (_root.log_y[_root.SP_BET] - 9) + 6;
if (this._x < (_root.L_MAX - 7)) {
this._x = _root.L_MAX - 7;
}
if (this._x > (_root.R_MAX - 7)) {
this._x = _root.R_MAX - 7;
}
if (this._y < (_root.U_MAX + 6)) {
this._y = _root.U_MAX + 6;
}
if (this._y > (_root.D_MAX + 6)) {
this._y = _root.D_MAX + 6;
}
}
}
Instance of Symbol 66 MovieClip "jiki" in Frame 2
onClipEvent (load) {
this.shot_num = 0;
}
onClipEvent (enterFrame) {
if (_root.state == 0) {
this._x = _root.log_x[_root.SP_BET] - 12;
this._y = _root.log_y[_root.SP_BET] - 9;
if (this._x < _root.L_MAX) {
this._x = _root.L_MAX;
}
if (this._x > _root.R_MAX) {
this._x = _root.R_MAX;
}
if (this._y < _root.U_MAX) {
this._y = _root.U_MAX;
}
if (this._y > _root.D_MAX) {
this._y = _root.D_MAX;
}
}
}
Frame 3
stop();
Symbol 13 Button
on (press) {
if (_root.state == 0) {
if (_root.opt_num < _root.OPT_MAX) {
_root.opt_num++;
this.i = 0;
while (this.i < (_root.SP_BET + 1)) {
_root.log_x.push(_root.log_x[_root.log_x.length - 1]);
_root.log_y.push(_root.log_y[_root.log_y.length - 1]);
this.i++;
}
_root.opt.duplicateMovieClip("opt" + _root.opt_num, _root.dupli_num++);
_root["opt" + _root.opt_num].gotoAndPlay(_root.opt._currentFrame);
_root.wp_shot.duplicateMovieClip(("wp_shot" + _root.opt_num) + "_0", _root.dupli_num++);
_root.wp_shot.duplicateMovieClip(("wp_shot" + _root.opt_num) + "_1", _root.dupli_num++);
_root.wp_laser.duplicateMovieClip("wp_laser" + _root.opt_num, _root.dupli_num++);
_root["opt" + _root.opt_num].my_num = _root.opt_num;
_root[("wp_shot" + _root.opt_num) + "_0"].my_num = _root.opt_num;
_root[("wp_shot" + _root.opt_num) + "_1"].my_num = _root.opt_num;
_root["wp_laser" + _root.opt_num].my_num = _root.opt_num;
_root.se_pow.start();
}
}
}
Symbol 18 Button
on (press) {
if (_root.state == 0) {
if (_root.shot_type == _root.ST_SHOT) {
_root.shot_type = _root.ST_LASER;
} else {
_root.shot_type = _root.ST_SHOT;
}
_root.se_pow.start();
}
}
Symbol 32 Button
on (press) {
if (_root.state == 0) {
_root.state = 1;
_root.se_miss.start();
_root.miss._x = _root.jiki._x;
_root.miss._y = _root.jiki._y;
_root.miss.gotoAndPlay(2);
_root.jiki._x = -50;
_root.burner._x = -50;
}
}
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 25
stop();
Symbol 80 MovieClip Frame 36
stop();