Frame 1
fscommand ("showmenu", "false");
fscommand ("allowscale", "false");
fscommand ("fullscreen", "false");
Stage.showMenu = false;
Instance of Symbol 54 MovieClip [start] "start" in Frame 1
on (press) {
_root.gotoAndPlay("game");
}
Instance of Symbol 60 MovieClip in Frame 1
on (press) {
this.getURL("http://click.dtiserv2.com/Click147/1-103-15546", "_blank");
}
Frame 2
function ster() {
this.walk_len = (Math.random() * 10) + 0.1;
this.wk_x = 0;
this.wk_y = 0;
this._xscale = (Math.random() * 20) + 1;
this._yscale = this._xscale;
this.ct = 0;
}
ster.prototype = new MovieClip();
ster.prototype.onLoad = function () {
this._x = (Math.random() * s_width) + 1;
this._y = (Math.random() * s_height) + 1;
};
ster.prototype.onEnterFrame = function () {
this._x = this._x + this.walk_len;
if (this._x > (s_width + 15)) {
this._x = -15;
}
};
Object.registerClass("ster", ster);
Frame 5
this.gotoAndPlay(_currentframe - 1);
Frame 6
Mouse.hide();
score = 0;
max_pow = 100;
pow = max_pow;
ps_ct = 1;
ps_ct_disp = "";
_root.m_speed = 0;
max_ins = 7;
_root.backs.gotoAndPlay("A1");
count = 0;
p_count = 1;
max_p_count = 10;
max_inseki_pa = 30;
max_life = 20;
life = max_life;
_root.score = 0;
_root.count = 0;
e_count = 0;
max_e_count = 10;
r_ct = 0;
s_width = 840;
s_height = 720;
s_width = 480;
s_height = 360;
reload = 0;
max_tama_ct = 15;
tama_ct = max_tama_ct;
max_turn_ct = 220;
turn_ct = max_turn_ct;
si = 0;
while (si <= 30) {
game.attachMovie("ster", "ster" + si, -100 + si);
si++;
}
Frame 7
function p1() {
this._at_on = 0;
this._at_on_ct = 0;
this.mm = new MovieClip();
this.tm = new MovieClip();
this._xscale = 100;
this._yscale = this._xscale;
this.walk_len = 3;
}
p1.prototype = new MovieClip();
p1.prototype.onLoad = function () {
this._x = Math.floor(s_width / 2);
this._y = Math.floor(s_height / 2);
this.rot = 0;
this.fx = 0;
this.fy = 0;
this.bari._visible = false;
};
p1.prototype.onMouseDown = function () {
if (this._at_on == 0) {
this._at_on = 1;
}
};
p1.prototype.onMouseUp = function () {
this._at_on = 0;
};
p1.prototype.onMouseMove = function () {
updateAfterEvent(mouseMove);
};
p1.prototype.onEnterFrame = function () {
this._x = _root.game._xmouse;
this._y = _root.game._ymouse;
if (this._y < 15) {
this._y = 15;
} else if (this._y > 365) {
this._y = 365;
}
if (_root.pow <= 0) {
this._at_on = 0;
}
if (this._at_on == 0) {
this.bari._visible = false;
if (_root.pow < _root.max_pow) {
_root.pow = _root.pow + 0.4;
if (_root.pow >= _root.max_pow) {
_root.pow = _root.max_pow;
}
}
} else {
_root.pow = _root.pow - 1;
if (_root.pow <= 0) {
_root.pow = 0;
}
this.bari._visible = true;
}
};
Object.registerClass("tank1", p1);
Frame 8
function p_tama1() {
this.p_no = 0;
this.wk_speed = 20;
this.pm = new MovieClip();
this.pm_tama = new MovieClip();
this.pm_tama_i = new MovieClip();
this.m_x = 0;
this.m_y = 0;
this.rot = 0;
this.pct = 0;
this.len = 12;
this.dx = 0;
this.dy = 0;
this.wepon = 0;
this.d_ct = 0;
this.ct = 0;
this.dame = 1;
}
p_tama1.prototype = new MovieClip();
p_tama1.prototype.onLoad = function () {
this.rot = this._rotation;
this.d_ct = Math.floor(this._yscale);
this._xscale = 100 + Math.floor(Math.random() * 50);
this._yscale = this._xscale;
};
p_tama1.prototype.onEnterFrame = function () {
if (this.dame <= 0) {
this.removeMovieClip();
}
this.ct++;
if (this.ct > 100) {
}
if (this._x < -15) {
this.rot = this.rot + (90 + Math.floor(Math.random() * 30));
} else if (this._x > (s_width + 15)) {
this.rot = this.rot + (90 + Math.floor(Math.random() * 30));
}
if (this._y < -15) {
this.rot = this.rot + (90 + Math.floor(Math.random() * 30));
} else if (this._y > (s_height + 15)) {
this.rot = this.rot + (90 + Math.floor(Math.random() * 30));
}
this.dx = Math.cos((this.rot * Math.PI) / 180) * this.len;
this.dy = Math.sin((this.rot * Math.PI) / 180) * this.len;
this._x = this._x + this.dx;
this._y = this._y + this.dy;
};
Object.registerClass("p_tama1", p_tama1);
Frame 9
function inseki() {
this.p_no = 0;
this.wk_speed = 20;
this.pm = new MovieClip();
this.pm_tama = new MovieClip();
this.pm_tama_i = new MovieClip();
this.m_x = 0;
this.m_y = 0;
this.rot = 0;
this.pct = 0;
this.len = 12;
this.dx = 0;
this.dy = 0;
this.wepon = 0;
this.d_ct = 0;
this.ct = 0;
this.dame = 1;
this._at_on = 0;
this.len = ((Math.random() * 12) + 2) + _root.m_speed;
this.rot = (Math.random() * 20) - 5;
}
inseki.prototype = new MovieClip();
inseki.prototype.onLoad = function () {
this._xscale = 70 + Math.floor(Math.random() * 100);
this._yscale = this._xscale;
this._x = s_width + 60;
this._y = Math.random() * s_height;
};
inseki.prototype.onEnterFrame = function () {
this._x = this._x - this.len;
this._rotation = this._rotation + this.rot;
if (this._x < -30) {
score = score + 5;
this.removeMovieClip();
}
this.tm = _root.game.p1;
if (this.tm._visible) {
if (this.tm.hit.hitTest(this)) {
if (this.tm.bari._visible == false) {
_root.life = _root.life - 2;
}
this.tm.gotoAndPlay("DAME");
baku_fnc(this._x, this._y, this._xscale * 1.2);
this.removeMovieClip();
}
}
};
Object.registerClass("inseki_1", inseki);
Frame 10
function life_p_1() {
this.p_no = 0;
this.wk_speed = 20;
this.pm = new MovieClip();
this.pm_tama = new MovieClip();
this.pm_tama_i = new MovieClip();
this.m_x = 0;
this.m_y = 0;
this.rot = 0;
this.pct = 0;
this.len = 12;
this.dx = 0;
this.dy = 0;
this.wepon = 0;
this.d_ct = 0;
this.ct = 0;
this.dame = 1;
this._at_on = 0;
this.len = (Math.random() * 12) + 2;
this.rot = (Math.random() * 20) - 5;
}
life_p_1.prototype = new MovieClip();
life_p_1.prototype.onLoad = function () {
this._xscale = 100;
this._yscale = this._xscale;
this._x = s_width + 60;
this._y = Math.random() * s_height;
};
life_p_1.prototype.onEnterFrame = function () {
this._x = this._x - this.len;
if (this._x < -30) {
this.removeMovieClip();
}
this.tm = _root.game.p1;
if (this.tm._visible) {
if (this.tm.hit.hitTest(this)) {
life = life + 10;
if (life > 20) {
life = 20;
}
this.removeMovieClip();
}
}
};
Object.registerClass("LIFE_P", life_p_1);
Frame 11
function point_1() {
this.p_no = 0;
this.wk_speed = 20;
this.pm = new MovieClip();
this.pm_tama = new MovieClip();
this.pm_tama_i = new MovieClip();
this.m_x = 0;
this.m_y = 0;
this.rot = 0;
this.pct = 0;
this.len = 12;
this.dx = 0;
this.dy = 0;
this.wepon = 0;
this.d_ct = 0;
this.ct = 0;
this.dame = 1;
this._at_on = 0;
this.len = (Math.random() * 12) + 2;
this.rot = (Math.random() * 20) - 5;
}
point_1.prototype = new MovieClip();
point_1.prototype.onLoad = function () {
this._xscale = 100;
this._yscale = this._xscale;
this._x = s_width + 60;
this._y = Math.random() * s_height;
};
point_1.prototype.onEnterFrame = function () {
this._x = this._x - this.len;
if (this._x < -30) {
_root.ps_ct = 1;
this.removeMovieClip();
}
this.tm = _root.game.p1;
if (this.tm._visible) {
if (this.tm.hit.hitTest(this)) {
score = score + (50 * _root.ps_ct);
this.removeMovieClip();
}
}
};
Object.registerClass("point", point_1);
Frame 12
function energy() {
this.p_no = 0;
this.wk_speed = 20;
this.pm = new MovieClip();
this.pm_tama = new MovieClip();
this.pm_tama_i = new MovieClip();
this.m_x = 0;
this.m_y = 0;
this.rot = 0;
this.pct = 0;
this.len = 12;
this.dx = 0;
this.dy = 0;
this.wepon = 0;
this.d_ct = 0;
this.ct = 0;
this.dame = 1;
this._at_on = 0;
this.len = (Math.random() * 12) + 2;
this.rot = (Math.random() * 20) - 5;
}
energy.prototype = new MovieClip();
energy.prototype.onLoad = function () {
this._xscale = 100;
this._yscale = this._xscale;
this._x = s_width + 60;
this._y = Math.random() * s_height;
};
energy.prototype.onEnterFrame = function () {
this._x = this._x - this.len;
if (this._x < -30) {
this.removeMovieClip();
}
this.tm = _root.game.p1;
if (this.tm._visible) {
if (this.tm.hit.hitTest(this)) {
pow = pow + 20;
if (pow > max_pow) {
pow = max_pow;
}
this.removeMovieClip();
}
}
};
Object.registerClass("ENERGY_P", energy);
Frame 16
function baku_fnc(w_x, w_y, w_scale) {
game.attachMovie("baku", "baku" + count, 1500 + count);
game["baku" + count]._xscale = w_scale;
game["baku" + count]._yscale = w_scale;
game["baku" + count]._x = w_x;
game["baku" + count]._y = w_y;
count++;
}
Frame 17
game.attachMovie("tank1", "p1", 1300);
Frame 18
r_ct++;
if (r_ct > max_inseki_pa) {
r_ct = 0;
max_inseki_pa = (Math.random() * 60) + 10;
if (score < 500) {
max_ins = 5;
} else if (score < 1500) {
max_ins = 6;
} else if (score < 5000) {
max_ins = 7;
} else if (score < 9000) {
max_ins = 8;
}
if (score < 700) {
_root.m_speed = 0;
} else if (score < 1800) {
_root.m_speed = 1;
} else if (score < 3600) {
_root.m_speed = 2;
} else if (score < 5600) {
_root.m_speed = 3;
} else if (score < 10000) {
_root.m_speed = 4;
} else {
_root.m_speed = 5;
}
if (score < 500) {
_root.backs.gotoAndPlay("A1");
} else if (score < 1000) {
_root.backs.gotoAndPlay("A2");
} else if (score < 1500) {
_root.backs.gotoAndPlay("A3");
} else if (score < 2000) {
_root.backs.gotoAndPlay("A4");
} else if (score < 3000) {
_root.backs.gotoAndPlay("A5");
} else if (score < 3500) {
_root.backs.gotoAndPlay("A6");
} else if (score < 4000) {
_root.backs.gotoAndPlay("A7");
} else if (score < 4500) {
_root.backs.gotoAndPlay("A8");
} else if (score < 5000) {
_root.backs.gotoAndPlay("A9");
} else if (score < 5500) {
_root.backs.gotoAndPlay("A10");
} else {
_root.backs.gotoAndPlay("A11");
}
i = 0;
while (i <= max_ins) {
game.attachMovie("inseki_1", "inseki_" + count, 1500 + count);
count++;
i++;
}
if (Math.floor((Math.random() * 20) + 1) == 1) {
game.attachMovie("point", "point_" + count, 1500 + count);
count++;
}
if (Math.floor((Math.random() * 150) + 1) == 1) {
game.attachMovie("LIFE_P", "LIFE_P" + count, 1500 + count);
count++;
}
if (Math.floor((Math.random() * 70) + 1) == 1) {
game.attachMovie("ENERGY_P", "ENERGY_P_" + count, 1500 + count);
count++;
}
}
if (ps_ct == 1) {
ps_ct_disp = "";
} else if (ps_ct > 1) {
ps_ct_disp = ps_ct + "\u30B3\u30F3\u30DC\u4E2D";
}
if (_root.life <= 0) {
_root.gotoAndPlay("over");
_root.game.p1.removeMovieClip();
}
_root.bar.red._xscale = (pow / max_pow) * 100;
_root.bar_life.red._xscale = (_root.life / max_life) * 100;
Frame 19
this.gotoAndPlay(_currentframe - 1);
Frame 21
Mouse.show();
Instance of Symbol 41 MovieClip [retry] "retry" in Frame 27
on (press) {
_root.gotoAndPlay("game");
}
Instance of Symbol 60 MovieClip in Frame 27
on (press) {
this.getURL("http://click.dtiserv2.com/Click147/1-103-15546", "_blank");
}
Frame 29
stop();
Symbol 17 MovieClip Frame 8
_parent.removeMovieClip();
this.removeMovieClip();
Symbol 23 MovieClip [va] Frame 1
point = {x:_x, y:_y};
this.localToGlobal(point);
if ((Math.random() * 5) <= 1) {
vii = 1;
while (vii <= 10) {
if ((_root.game["va" + vii] == null) || (_root.game["va" + vii] == undefined)) {
_root.game.attachMovie("missile_2", "va" + vii, 1500 + _root.count);
_root.game["va" + vii]._x = point.x;
_root.game["va" + vii]._y = point.y;
_root.count++;
break;
}
vii++;
}
}
Symbol 31 MovieClip Frame 40
this.gotoAndPlay(1);
Symbol 31 MovieClip Frame 50
this.gotoAndPlay(1);
Instance of Symbol 27 MovieClip "hit" in Symbol 34 MovieClip [tank1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 33 MovieClip "my" in Symbol 34 MovieClip [tank1] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 81 MovieClip Frame 5
stop();
Symbol 81 MovieClip Frame 10
stop();
Symbol 81 MovieClip Frame 15
stop();
Symbol 81 MovieClip Frame 20
stop();
Symbol 81 MovieClip Frame 25
stop();
Symbol 81 MovieClip Frame 30
stop();
Symbol 81 MovieClip Frame 35
stop();
Symbol 81 MovieClip Frame 40
stop();
Symbol 81 MovieClip Frame 45
stop();
Symbol 81 MovieClip Frame 50
stop();
Symbol 81 MovieClip Frame 55
stop();
Symbol 94 MovieClip Frame 4
stop();