Frame 1 (1.08 KiB) ●
function klink() {
getURL ("http://www.kabomb.net", "_blank");
}
function slink() {
getURL ("http://www.armorgames.com", "_blank");
}
function hq() {
_global.graphics = "high";
}
function mq() {
_global.graphics = "medium";
}
function lq() {
_global.graphics = "low";
}
function gi() {
pointless = true;
}
function sound() {
if (_global.sound == true) {
_global.sound = false;
stopAllSounds();
} else {
var _local2 = new Sound();
_local2.attachSound("theme");
_local2.start(0, 99999);
_local2.setVolume(50);
_global.sound = true;
}
}
cm = new ContextMenu();
cm.hideBuiltInItems();
cm.builtInItems.quality = true;
cm1 = new ContextMenuItem("Kabomb.net", klink);
cm2 = new ContextMenuItem("Armorgames", slink);
cm3 = new ContextMenuItem("... High", hq);
cm4 = new ContextMenuItem("... Medium", mq);
cm5 = new ContextMenuItem("... Low", lq);
cm6 = new ContextMenuItem("Graphics Intensity:", gi);
cm7 = new ContextMenuItem("Toggle Sound", sound);
cm7.separatorBefore = true;
cm.customItems.push(cm1, cm2, cm7, cm6, cm3, cm4, cm5);
_root.menu = cm;
Frame 2 (279 B)
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
Frame 3 (85 B)
if (_root.percentLoaded == 100) {
gotoAndPlay (4);
} else {
gotoAndPlay (2);
}
Frame 4 (1.55 KiB) ●
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
stop();
_global.graphics = "high";
_global.sound = true;
_global.cheat1 = false;
_global.cheat2 = false;
_global.cheat3 = false;
_global.cheat4 = false;
_global.cheat5 = false;
_global.cheat1_enable = false;
_global.cheat2_enable = false;
_global.cheat3_enable = false;
_global.cheat4_enable = false;
_global.cheat5_enable = false;
__com_mochibot__("f6e4f3f5", this, 10301, true);
Frame 5 (921 B)
i = 0;
stop();
_root.title_mc.swapDepths(1002);
_root.menus.swapDepths(1003);
date = new Date();
before = date.getSeconds();
time = 0;
onEnterFrame = function () {
i++;
if (i >= 1000) {
i = 0;
}
var _local4 = attachMovie("enemy1", "menufx" + i, i);
_local4.gotoAndStop(random(5) + 1);
_local4._x = _root._xmouse;
_local4._y = _root._ymouse;
_local4._xscale = (Math.random() * 50) + 10;
_local4._yscale = _local4._xscale;
_local4.xspeed = (Math.random() * 4) - 2;
_local4.yspeed = (Math.random() * 4) - 2;
_local4.onEnterFrame = function () {
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
this._alpha = this._alpha - 1;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
if (i < 240) {
date = new Date();
if (before != date.getSeconds()) {
time++;
before = date.getSeconds();
}
_global.cpu_fps = i / time;
}
};
Frame 6 (27.95 KiB) ● ● ●
function cheat_msg(cheat_no) {
_root.cheat_txt_mc.play();
_root.cheat_txt_mc.cheat_txt = cheat_no + " unlocked!";
}
function make_enemy1() {
i++;
var _local5 = attachMovie("enemy1", "e1" + i, i);
_local5.dir = random(4);
if (_local5.dir == 0) {
_local5._x = Math.random() * Stage.width;
_local5._y = -_local5._height;
}
if (_local5.dir == 1) {
_local5._x = Math.random() * Stage.width;
_local5._y = Stage.height + _local5._height;
}
if (_local5.dir == 2) {
_local5._y = Math.random() * Stage.height;
_local5._x = -_local5._width;
}
if (_local5.dir == 3) {
_local5._y = Math.random() * Stage.height;
_local5._x = Stage.width + _local5._width;
}
_local5.gotoAndStop(1);
_local5.speed = (Math.random() * 50) + 50;
_local5._alpha = 0;
_local5.onEnterFrame = function () {
if (_global.die == true) {
this.removeMovieClip();
}
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
}
this._x = this._x + (((Stage.width / 2) - this._x) / this.speed);
this._y = this._y + (((Stage.height / 2) - this._y) / this.speed);
if (this.hitTest(_root.circle)) {
combo++;
climit = 48;
ecount++;
ccount = true;
_root.combo_mc._alpha = 100;
score = score + (combo * 10);
fx = 0;
while (fx < fx_count) {
i++;
var _local4 = attachMovie("enemy1", "e1fx" + i, i);
_local4.gotoAndStop(this._currentframe);
_local4._x = this._x;
_local4._y = this._y;
_local4._xscale = this._xscale / 4;
_local4._yscale = this._xscale / 4;
_local4.xspeed = (Math.random() * 10) - 5;
_local4.yspeed = (Math.random() * 10) - 5;
_local4.onEnterFrame = function () {
if (_global.die == true) {
this.removeMovieClip();
}
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
this._alpha = this._alpha - 1;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
fx++;
}
this.removeMovieClip();
}
};
}
function make_enemy2() {
i++;
var _local5 = attachMovie("enemy1", "e2" + i, i);
_local5.dir = random(4);
if (_local5.dir == 0) {
_local5._x = Math.random() * Stage.width;
_local5._y = -_local5._height;
}
if (_local5.dir == 1) {
_local5._x = Math.random() * Stage.width;
_local5._y = Stage.height + _local5._height;
}
if (_local5.dir == 2) {
_local5._y = Math.random() * Stage.height;
_local5._x = -_local5._width;
}
if (_local5.dir == 3) {
_local5._y = Math.random() * Stage.height;
_local5._x = Stage.width + _local5._width;
}
_local5._xscale = 75;
_local5._yscale = 75;
_local5.gotoAndStop(4);
_local5.xspeed = (Math.random() * 10) - 5;
_local5.yspeed = (Math.random() * 10) - 5;
_local5._alpha = 0;
_local5.onEnterFrame = function () {
if (_global.die == true) {
this.removeMovieClip();
}
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
}
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
if (this._x < (this._width / 2)) {
this._x = this._width / 2;
this.xspeed = Math.abs(this.xspeed);
}
if (this._x > (Stage.width - (this._width / 2))) {
this._x = Stage.width - (this._width / 2);
this.xspeed = -Math.abs(this.xspeed);
}
if (this._y < (this._height / 2)) {
this._y = this._height / 2;
this.yspeed = Math.abs(this.yspeed);
}
if (this._y > (Stage.height - (this._height / 2))) {
this._y = Stage.height - (this._height / 2);
this.yspeed = -Math.abs(this.yspeed);
}
if (this.hitTest(_root.circle)) {
combo++;
climit = 48;
ecount++;
ccount = true;
_root.combo_mc._alpha = 100;
score = score + (combo * 20);
fx = 0;
while (fx < fx_count) {
i++;
var _local4 = attachMovie("enemy1", "e2fx" + i, i);
_local4.gotoAndStop(this._currentframe);
_local4._x = this._x;
_local4._y = this._y;
_local4._xscale = this._xscale / 4;
_local4._yscale = this._xscale / 4;
_local4.xspeed = (Math.random() * 10) - 5;
_local4.yspeed = (Math.random() * 10) - 5;
_local4.onEnterFrame = function () {
if (_global.die == true) {
this.removeMovieClip();
}
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
this._alpha = this._alpha - 1;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
fx++;
}
this.removeMovieClip();
}
};
}
function make_enemy3() {
i++;
var _local5 = attachMovie("enemy1", "e3" + i, i);
_local5.dir = random(4);
if (_local5.dir == 0) {
_local5._x = Math.random() * Stage.width;
_local5._y = -_local5._height;
}
if (_local5.dir == 1) {
_local5._x = Math.random() * Stage.width;
_local5._y = Stage.height + _local5._height;
}
if (_local5.dir == 2) {
_local5._y = Math.random() * Stage.height;
_local5._x = -_local5._width;
}
if (_local5.dir == 3) {
_local5._y = Math.random() * Stage.height;
_local5._x = Stage.width + _local5._width;
}
_local5._xscale = 50;
_local5._yscale = 50;
_local5.gotoAndStop(2);
_local5._alpha = 0;
_local5.speed = (Math.random() * 10) + 5;
_local5.onEnterFrame = function () {
if (_global.die == true) {
this.removeMovieClip();
}
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
}
this.dist = Math.abs(Math.sqrt(Math.pow(this._x - _root.circle._x, 2) + Math.pow(this._y - _root.circle._y, 2)));
this._rotation = Math.abs((Math.atan2(_root.circle._y - this._y, _root.circle._x - this._x) / (Math.PI/180)) + 215);
this.x = Math.sin((this._rotation + 90) * (Math.PI/180)) * this.speed;
this.y = Math.cos((this._rotation + 90) * (Math.PI/180)) * (-this.speed);
this._x = this._x + this.x;
this._y = this._y + this.y;
if (this._x < (this._width / 2)) {
this._x = this._width / 2;
this.xspeed = Math.abs(this.xspeed);
}
if (this._x > (Stage.width - (this._width / 2))) {
this._x = Stage.width - (this._width / 2);
this.xspeed = -Math.abs(this.xspeed);
}
if (this._y < (this._height / 2)) {
this._y = this._height / 2;
this.yspeed = Math.abs(this.yspeed);
}
if (this._y > (Stage.height - (this._height / 2))) {
this._y = Stage.height - (this._height / 2);
this.yspeed = -Math.abs(this.yspeed);
}
if (this.hitTest(_root.circle)) {
combo++;
climit = 48;
ecount++;
ccount = true;
_root.combo_mc._alpha = 100;
score = score + (combo * 30);
fx = 0;
while (fx < fx_count) {
i++;
var _local4 = attachMovie("enemy1", "e3fx" + i, i);
_local4.gotoAndStop(this._currentframe);
_local4._x = this._x;
_local4._y = this._y;
_local4._xscale = this._xscale / 4;
_local4._yscale = this._xscale / 4;
_local4.xspeed = (Math.random() * 10) - 5;
_local4.yspeed = (Math.random() * 10) - 5;
_local4.onEnterFrame = function () {
if (_global.die == true) {
this.removeMovieClip();
}
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
this._alpha = this._alpha - 1;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
fx++;
}
this.removeMovieClip();
}
};
}
function make_enemy4() {
i++;
var _local5 = attachMovie("enemy1", "e4" + i, i);
_local5.dir = random(4);
if (_local5.dir == 0) {
_local5._x = Math.random() * Stage.width;
_local5._y = -_local5._height;
}
if (_local5.dir == 1) {
_local5._x = Math.random() * Stage.width;
_local5._y = Stage.height + _local5._height;
}
if (_local5.dir == 2) {
_local5._y = Math.random() * Stage.height;
_local5._x = -_local5._width;
}
if (_local5.dir == 3) {
_local5._y = Math.random() * Stage.height;
_local5._x = Stage.width + _local5._width;
}
_local5._xscale = 25;
_local5._yscale = 25;
_local5.gotoAndStop(3);
_local5._alpha = 0;
_local5.speed = (Math.random() * 25) + 10;
_local5.onEnterFrame = function () {
if (_global.die == true) {
this.removeMovieClip();
}
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
}
this._x = this._x + (((Stage.width - _root.circle._x) - this._x) / this.speed);
this._y = this._y + (((Stage.height - _root.circle._y) - this._y) / this.speed);
if (this._x < (this._width / 2)) {
this._x = this._width / 2;
this.xspeed = Math.abs(this.xspeed);
}
if (this._x > (Stage.width - (this._width / 2))) {
this._x = Stage.width - (this._width / 2);
this.xspeed = -Math.abs(this.xspeed);
}
if (this._y < (this._height / 2)) {
this._y = this._height / 2;
this.yspeed = Math.abs(this.yspeed);
}
if (this._y > (Stage.height - (this._height / 2))) {
this._y = Stage.height - (this._height / 2);
this.yspeed = -Math.abs(this.yspeed);
}
if (this.hitTest(_root.circle)) {
combo++;
climit = 48;
ecount++;
ccount = true;
_root.combo_mc._alpha = 100;
score = score + (combo * 40);
fx = 0;
while (fx < fx_count) {
i++;
var _local4 = attachMovie("enemy1", "e4fx" + i, i);
_local4.gotoAndStop(this._currentframe);
_local4._x = this._x;
_local4._y = this._y;
_local4._xscale = this._xscale / 4;
_local4._yscale = this._xscale / 4;
_local4.xspeed = (Math.random() * 10) - 5;
_local4.yspeed = (Math.random() * 10) - 5;
_local4.onEnterFrame = function () {
if (_global.die == true) {
this.removeMovieClip();
}
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
this._alpha = this._alpha - 1;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
fx++;
}
this.removeMovieClip();
}
};
}
function make_enemy5() {
i++;
var _local5 = attachMovie("enemy1", "e5" + i, i);
_local5.dir = random(4);
if (_local5.dir == 0) {
_local5._x = Math.random() * Stage.width;
_local5._y = -_local5._height;
}
if (_local5.dir == 1) {
_local5._x = Math.random() * Stage.width;
_local5._y = Stage.height + _local5._height;
}
if (_local5.dir == 2) {
_local5._y = Math.random() * Stage.height;
_local5._x = -_local5._width;
}
if (_local5.dir == 3) {
_local5._y = Math.random() * Stage.height;
_local5._x = Stage.width + _local5._width;
}
_local5._alpha = 0;
_local5.speed = (Math.random() * 25) + 10;
_local5.gotoAndPlay(random(_local5._totalframes) + 1);
_local5.xto = Math.random() * Stage.width;
_local5.yto = Math.random() * Stage.height;
_local5.count = random(24) + 1;
_local5.onEnterFrame = function () {
if (_global.die == true) {
this.removeMovieClip();
}
this.count--;
if (this.count <= 0) {
this.count = 24;
this.xto = Math.random() * Stage.width;
this.yto = Math.random() * Stage.height;
}
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
}
this._x = this._x + ((this.xto - this._x) / this.speed);
this._y = this._y + ((this.yto - this._y) / this.speed);
if (this._x < (this._width / 2)) {
this._x = this._width / 2;
this.xspeed = Math.abs(this.xspeed);
}
if (this._x > (Stage.width - (this._width / 2))) {
this._x = Stage.width - (this._width / 2);
this.xspeed = -Math.abs(this.xspeed);
}
if (this._y < (this._height / 2)) {
this._y = this._height / 2;
this.yspeed = Math.abs(this.yspeed);
}
if (this._y > (Stage.height - (this._height / 2))) {
this._y = Stage.height - (this._height / 2);
this.yspeed = -Math.abs(this.yspeed);
}
if (this.hitTest(_root.circle)) {
combo++;
climit = 48;
ecount++;
ccount = true;
_root.combo_mc._alpha = 100;
score = score + (combo * 50);
fx = 0;
while (fx < fx_count) {
i++;
var _local4 = attachMovie("enemy1", "e5fx" + i, i);
_local4.gotoAndPlay(random(this._totalframes) + 1);
_local4._x = this._x;
_local4._y = this._y;
_local4._xscale = this._xscale / 4;
_local4._yscale = this._xscale / 4;
_local4.xspeed = (Math.random() * 10) - 5;
_local4.yspeed = (Math.random() * 10) - 5;
_local4.onEnterFrame = function () {
if (_global.die == true) {
this.removeMovieClip();
}
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
this._alpha = this._alpha - 1;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
fx++;
}
this.removeMovieClip();
}
};
}
function make_enemy6() {
i++;
var _local5 = attachMovie("enemy1", "e6" + i, i);
_local5.dir = random(4);
if (_local5.dir == 0) {
_local5._x = Math.random() * Stage.width;
_local5._y = -_local5._height;
}
if (_local5.dir == 1) {
_local5._x = Math.random() * Stage.width;
_local5._y = Stage.height + _local5._height;
}
if (_local5.dir == 2) {
_local5._y = Math.random() * Stage.height;
_local5._x = -_local5._width;
}
if (_local5.dir == 3) {
_local5._y = Math.random() * Stage.height;
_local5._x = Stage.width + _local5._width;
}
_local5._alpha = 0;
_local5.gotoAndStop(6);
_local5._rotation = Math.atan2((Stage.height / 2) - _local5._y, (Stage.width / 2) - _local5._x) / (Math.PI/180);
_local5.rot = 0;
_local5.easing = 10;
_local5.speed = 6;
_local5.onEnterFrame = function () {
if (_global.die == true) {
this.removeMovieClip();
}
this.dist = Math.abs(Math.sqrt(Math.pow(this._x - _root.circle._x, 2) + Math.pow(this._y - _root.circle._y, 2)));
if (this.dist <= 150) {
this.angle = Math.atan2(this._y - _root.circle._y, this._x - _root.circle._x);
this.diff = (((this.angle * 57.2957795130823) + 90) - ((this._rotation = this._rotation % 360))) - 90;
if (this.diff > 180) {
this.diff = this.diff - 360;
} else if (this.diff < -180) {
this.diff = this.diff + 360;
}
this._rotation = this._rotation + (this.diff / this.easing);
}
this._x = this._x + (Math.sin((this._rotation + 90) * (Math.PI/180)) * this.speed);
this._y = this._y + (Math.cos((this._rotation + 90) * (Math.PI/180)) * (-this.speed));
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
}
if (this._x < ((-this._width) / 2)) {
this._x = Stage.width + (this._width / 2);
}
if (this._x > (Stage.width + (this._width / 2))) {
this._x = (-this._width) / 2;
}
if (this._y < ((-this._height) / 2)) {
this._y = Stage.height + (this._height / 2);
}
if (this._y > (Stage.height + (this._height / 2))) {
this._y = (-this._height) / 2;
}
if (this.hitTest(_root.circle)) {
combo++;
climit = 48;
ecount++;
ccount = true;
_root.combo_mc._alpha = 100;
score = score + (combo * 60);
fx = 0;
while (fx < fx_count) {
i++;
var _local4 = attachMovie("enemy1", "e6fx" + i, i);
_local4.gotoAndStop(this._currentframe);
_local4._x = this._x;
_local4._y = this._y;
_local4._xscale = this._xscale / 4;
_local4._yscale = this._xscale / 4;
_local4.xspeed = (Math.random() * 10) - 5;
_local4.yspeed = (Math.random() * 10) - 5;
_local4.onEnterFrame = function () {
if (_global.die == true) {
this.removeMovieClip();
}
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
this._alpha = this._alpha - 1;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
fx++;
}
this.removeMovieClip();
}
};
}
stop();
Selection.setFocus(cheat_txt);
cheat_txt._visible = false;
_global.xspeed = 0;
_global.yspeed = 0;
max = 5;
crlse = false;
erlse = false;
_root.circle.swapDepths(1002);
_root.cheat_code._visible = false;
fric = 0.9;
i = 2000;
d = 0;
wave = 1;
wave_make = true;
_global.lives = 3;
count = 0;
combo = 0;
climit = 0;
ccount = false;
_global.die = false;
echance = 100;
score = 0;
score_to = 0;
tcheat1 = false;
tcheat2 = false;
tcheat3 = false;
tcheat4 = false;
tcheat5 = false;
onEnterFrame = function () {
lvl_txt = wave;
if (score_to < score) {
score_to = score_to + Math.round(((score + 50) - score_to) / 10);
} else {
score_to = score;
}
scr_txt = score_to;
lvs_txt = _global.lives;
if (_global.lives <= 0) {
_global.hs_score = score;
_global.die = true;
gotoAndStop ("die");
}
if (_global.graphics == "high") {
fx_count = 15;
tlength = 2;
}
if (_global.graphics == "medium") {
fx_count = 5;
tlength = 5;
}
if (_global.graphics == "low") {
fx_count = 0;
tlength = 100;
}
i++;
count++;
if (ccount == true) {
climit--;
_root.combo_mc._alpha = _root.combo_mc._alpha - 2.08333333333333;
if (climit <= 0) {
climit = 48;
ccount = false;
combo = 0;
}
}
if (combo > 1) {
_root.combo_mc.combo_txt = combo + "x Combo!";
} else {
_root.combo_mc.combo_txt = "";
}
if (combo == 10) {
if (_global.cheat1 != true) {
cheat_msg("power-up one");
_global.cheat1 = true;
_global.cheat1_enable = true;
}
}
if (combo == 25) {
if (_global.cheat3 != true) {
cheat_msg("power-up three");
_global.cheat3 = true;
_global.cheat3_enable = true;
}
}
if (combo == 50) {
if (_global.cheat4 != true) {
_root.cheat_txt_mc.play();
_root.cheat_txt_mc.cheat_txt = "50x combo- extra life!";
_global.cheat4 = true;
_global.lives++;
}
} else {
_global.cheat4 = false;
}
if (combo == 100) {
if (_global.cheat5 != true) {
cheat_msg("power-up five");
_global.cheat5 = true;
_global.cheat5_enable = true;
}
}
_root.circle._xscale = 100;
_root.circle._yscale = 100;
if (_global.cheat2_enable == true) {
_root.circle._xscale = 50;
_root.circle._yscale = 50;
}
if (tcheat3 == true) {
_root.circle._xscale = 200;
_root.circle._yscale = 200;
}
if (tcheat5 == true) {
_root.circle._xscale = 25;
_root.circle._yscale = 25;
}
if (graphics != "low") {
d++;
if (d > 1000) {
d = 1;
}
duplicateMovieClip (_root.circle, "c" + d, d);
if (_global.cheat1_enable == true) {
_root["c" + d].gotoAndPlay("skin");
}
if (tcheat1 == true) {
_root["c" + d].gotoAndPlay(22);
}
if (tcheat2 == true) {
_root["c" + d].gotoAndPlay("stars");
}
_root["c" + d].onEnterFrame = function () {
if (_global.die == true) {
this.removeMovieClip();
}
this._xscale = this._xscale - tlength;
this._yscale = this._yscale - tlength;
if (this._yscale <= 0) {
this.removeMovieClip();
}
};
}
if (_global.cheat3_enable == true) {
if (tcheat4 == true) {
_global.xspeed = _global.xspeed - (Key.isDown(39) * 1.5);
_global.xspeed = _global.xspeed + (Key.isDown(37) * 1.5);
_global.yspeed = _global.yspeed - (Key.isDown(40) * 1.5);
_global.yspeed = _global.yspeed + (Key.isDown(38) * 1.5);
} else {
_global.xspeed = _global.xspeed + (Key.isDown(39) * 1.5);
_global.xspeed = _global.xspeed - (Key.isDown(37) * 1.5);
_global.yspeed = _global.yspeed + (Key.isDown(40) * 1.5);
_global.yspeed = _global.yspeed - (Key.isDown(38) * 1.5);
}
} else if (tcheat4 == true) {
_global.xspeed = _global.xspeed - Key.isDown(39);
_global.xspeed = _global.xspeed + Key.isDown(37);
_global.yspeed = _global.yspeed - Key.isDown(40);
_global.yspeed = _global.yspeed + Key.isDown(38);
} else {
_global.xspeed = _global.xspeed + Key.isDown(39);
_global.xspeed = _global.xspeed - Key.isDown(37);
_global.yspeed = _global.yspeed + Key.isDown(40);
_global.yspeed = _global.yspeed - Key.isDown(38);
}
_global.xspeed = _global.xspeed * fric;
_global.yspeed = _global.yspeed * fric;
_root.circle._x = _root.circle._x + _global.xspeed;
_root.circle._y = _root.circle._y + _global.yspeed;
_root.circle.gotoAndPlay(1);
if (_global.cheat1_enable == true) {
_root.circle.gotoAndPlay("skin");
}
if (tcheat1 == true) {
_root.circle.gotoAndPlay("snake");
}
if (tcheat2 == true) {
_root.circle.gotoAndPlay("stars");
}
if (_global.die == true) {
_root.circle.removeMovieClip();
}
if (_global.cheat5_enable != true) {
if (_root.circle._x < (_root.circle._width / 2)) {
_root.circle._x = _root.circle._width / 2;
_global.xspeed = Math.abs(_global.xspeed);
}
if (_root.circle._x > (Stage.width - (_root.circle._width / 2))) {
_root.circle._x = Stage.width - (_root.circle._width / 2);
_global.xspeed = -Math.abs(_global.xspeed);
}
if (_root.circle._y < (_root.circle._height / 2)) {
_root.circle._y = _root.circle._height / 2;
_global.yspeed = Math.abs(_global.yspeed);
}
if (_root.circle._y > (Stage.height - (_root.circle._height / 2))) {
_root.circle._y = Stage.height - (_root.circle._height / 2);
_global.yspeed = -Math.abs(_global.yspeed);
}
} else {
if (_root.circle._x < ((-_root.circle._width) / 2)) {
_root.circle._x = Stage.width + (_root.circle._width / 2);
}
if (_root.circle._x > (Stage.width + (_root.circle._width / 2))) {
_root.circle._x = (-_root.circle._width) / 2;
}
if (_root.circle._y < ((-_root.circle._height) / 2)) {
_root.circle._y = Stage.height + (_root.circle._height / 2);
}
if (_root.circle._y > (Stage.height + (_root.circle._height / 2))) {
_root.circle._y = (-_root.circle._height) / 2;
}
}
cheat_txt.restrict = "a-z";
if (Key.isDown(67) && (crlse == false)) {
crlse = true;
}
if ((!Key.isDown(67)) && (crlse == true)) {
crlse = false;
if (_root.cheat_code._visible == false) {
_root.cheat_code._visible = true;
Selection.setFocus(_root.cheat_code.cheat_in_mc);
}
}
if (_root.cheat_code._visible == true) {
if (Key.isDown(13) && (erlse == false)) {
erlse = true;
}
if ((!Key.isDown(13)) && (erlse == true)) {
erlse = false;
if (_root.cheat_code.cheat_in_txt == "snake") {
if (tcheat1 == false) {
tcheat2 = false;
tcheat1 = true;
} else {
tcheat1 = false;
}
}
if (_root.cheat_code.cheat_in_txt == "stars") {
if (tcheat2 == false) {
tcheat1 = false;
tcheat2 = true;
} else {
tcheat2 = false;
}
}
if (_root.cheat_code.cheat_in_txt == "obese") {
if (tcheat3 == false) {
tcheat5 = false;
tcheat3 = true;
} else {
tcheat3 = false;
}
}
if (_root.cheat_code.cheat_in_txt == "drunk") {
if (tcheat4 == false) {
tcheat4 = true;
} else {
tcheat4 = false;
}
}
if (_root.cheat_code.cheat_in_txt == "micro") {
if (tcheat5 == false) {
tcheat3 = false;
tcheat5 = true;
} else {
tcheat5 = false;
}
}
_root.cheat_code.cheat_in_txt = "";
_root.cheat_code._visible = false;
}
}
if (wave_make == true) {
if (wave == 1) {
enemies = 5;
ecount = 0;
em = 0;
while (em < 5) {
make_enemy1();
wave_make = false;
em++;
}
}
if (wave == 2) {
enemies = 5;
ecount = 0;
em = 0;
while (em < 5) {
make_enemy2();
wave_make = false;
em++;
}
}
if (wave == 3) {
enemies = 5;
ecount = 0;
em = 0;
while (em < 5) {
make_enemy3();
wave_make = false;
em++;
}
}
if (wave == 4) {
enemies = 5;
ecount = 0;
em = 0;
while (em < 5) {
make_enemy4();
wave_make = false;
em++;
}
}
if (wave == 5) {
enemies = 5;
ecount = 0;
em = 0;
while (em < 5) {
make_enemy5();
wave_make = false;
em++;
}
}
if (wave == 6) {
enemies = 5;
ecount = 0;
em = 0;
while (em < 5) {
make_enemy6();
wave_make = false;
em++;
}
}
if ((wave > 6) && (wave < 10)) {
enemies = 6;
ecount = 0;
m2e = 0;
while (m2e < 2) {
etype = random(6) + 1;
em = 0;
while (em < 3) {
if (etype == 1) {
make_enemy1();
}
if (etype == 2) {
make_enemy2();
}
if (etype == 3) {
make_enemy3();
}
if (etype == 4) {
make_enemy4();
}
if (etype == 5) {
make_enemy5();
}
if (etype == 6) {
make_enemy6();
}
wave_make = false;
em++;
}
m2e++;
}
}
if ((wave > 9) && (wave < 20)) {
enemies = 12;
ecount = 0;
m3e = 0;
while (m3e < 3) {
etype = random(6) + 1;
em = 0;
while (em < 4) {
if (etype == 1) {
make_enemy1();
}
if (etype == 2) {
make_enemy2();
}
if (etype == 3) {
make_enemy3();
}
if (etype == 4) {
make_enemy4();
}
if (etype == 5) {
make_enemy5();
}
if (etype == 6) {
make_enemy6();
}
wave_make = false;
em++;
}
m3e++;
}
}
if (wave > 19) {
enemies = 15;
ecount = 0;
m3e = 0;
while (m3e < 3) {
etype = random(6) + 1;
em = 0;
while (em < 5) {
if (etype == 1) {
make_enemy1();
}
if (etype == 2) {
make_enemy2();
}
if (etype == 3) {
make_enemy3();
}
if (etype == 4) {
make_enemy4();
}
if (etype == 5) {
make_enemy5();
}
if (etype == 6) {
make_enemy6();
}
wave_make = false;
em++;
}
m3e++;
}
}
}
if ((wave_make == false) && (ecount >= enemies)) {
wave++;
if (wave == 20) {
if (_global.cheat2 != true) {
cheat_msg("power-up two");
_global.cheat2 = true;
_global.cheat2_enable = true;
}
}
echance = echance - 3;
if (echance <= 30) {
echance = 30;
}
wave_make = true;
}
if (random(echance) == 0) {
i++;
var _local5 = attachMovie("star", "s" + i, i);
_local5.dir = random(4);
if (_local5.dir == 0) {
_local5._x = Math.random() * Stage.width;
_local5._y = _local5._height;
_local5.xspeed = (Math.random() * 10) - 5;
_local5.yspeed = Math.random() * 5;
}
if (_local5.dir == 1) {
_local5._x = Math.random() * Stage.width;
_local5._y = Stage.height - _local5._height;
_local5.xspeed = (Math.random() * 10) - 5;
_local5.yspeed = Math.random() * -5;
}
if (_local5.dir == 2) {
_local5._y = Math.random() * Stage.height;
_local5._x = _local5._width;
_local5.xspeed = Math.random() * 5;
_local5.yspeed = (Math.random() * 10) - 5;
}
if (_local5.dir == 3) {
_local5._y = Math.random() * Stage.height;
_local5._x = Stage.width - _local5._width;
_local5.xspeed = Math.random() * -5;
_local5.yspeed = (Math.random() * 10) - 5;
}
_local5._xscale = (Math.random() * 50) + 50;
_local5._yscale = _local5._xscale;
_local5.gotoAndStop(random(_local5._totalframes) + 1);
_local5._alpha = 0;
_local5.rot = (Math.random() * 20) - 10;
_local5.onEnterFrame = function () {
if (_global.die == true) {
this.removeMovieClip();
}
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
}
this._rotation = this._rotation + this.rot;
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
if ((((this._x < ((-this._width) / 2)) || (this._x > (Stage.width + (this._width / 2)))) || (this._y < ((-this._height) / 2))) || (this._y > (Stage.height + (this._height / 2)))) {
this.removeMovieClip();
}
if (this.hitTest(_root.circle) && (this._alpha > 99)) {
_global.lives--;
combo = 0;
ccount = false;
_root.combo_mc._alpha = 0;
climit = 48;
_root.combo_mc._alpha = 100;
fx = 0;
while (fx < fx_count) {
i++;
var _local4 = attachMovie("star", "starfx" + i, i);
_local4.gotoAndStop(this._currentframe);
_local4._x = this._x;
_local4._y = this._y;
_local4._xscale = this._xscale / 4;
_local4._yscale = this._xscale / 4;
_local4.xspeed = (Math.random() * 10) - 5;
_local4.yspeed = (Math.random() * 10) - 5;
_local4.gotoAndStop(this._currentframe);
_local4.onEnterFrame = function () {
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
this._alpha = this._alpha - 1;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
fx++;
}
this.removeMovieClip();
}
};
}
};
Frame 7 (596 B)
hs_txt = _global.hs_score;
onEnterFrame = function () {
hs_name = _root.hs_name_txt;
if (_global.hs_submitted == true) {
submit_btn.enabled = false;
submit_btn._alpha = 50;
}
};
submit_btn.onRelease = function () {
ab20_09 = new LoadVars();
if (hs_name == undefined) {
hs_name = "No Name";
}
ab20_09.z = hs_name;
ab20_09.x = _global.hs_score;
_global.hs_score = 0;
ab20_09.c = 703;
ab20_09.v = "GKMKUK";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
submit_btn.enabled = false;
submit_btn._alpha = 50;
_global.hs_submitted = true;
};
Frame 8 (621 B)
stop();
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
__top10_send__.hid = 703;
__top10_send__.kid = "GKMKUK";
__top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__, __top10_receive__, "POST");
__top10_receive__.onLoad = function (success) {
if (success) {
i = 1;
while (i < 11) {
_root[("_name" + i) + "_"].text = __top10_receive__["name" + i];
_root[("_score" + i) + "_"].text = __top10_receive__["score" + i];
i++;
}
} else {
_root.__err__.gotoAndStop(2);
}
};
Symbol 30 Button (64 B)
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 37 MovieClip Frame 81 (154 B)
_root.play();
var theme = new Sound();
theme.attachSound("theme");
theme.start(0, 99999);
theme.setVolume(50);
_global.sound = true;
_root.play();
Symbol 46 Button (34 B)
on (release) {
gotoAndStop (2);
}
Symbol 51 Button (34 B)
on (release) {
gotoAndStop (3);
}
Symbol 57 Button (34 B)
on (release) {
gotoAndStop (4);
}
Symbol 62 Button (98 B)
on (release) {
_root.title_mc.removeMovieClip();
_root.play();
_root.menus.removeMovieClip();
}
Symbol 66 Button (59 B)
on (release) {
getURL ("http://www.kabomb.net", _blank);
}
Symbol 67 Button (63 B)
on (release) {
getURL ("http://www.armorgames.com", _blank);
}
Symbol 72 Button (34 B)
on (release) {
gotoAndStop (1);
}
Symbol 78 Button (61 B)
on (release) {
_global.graphics = "low";
gotoAndStop (3);
}
Symbol 82 Button (64 B)
on (release) {
_global.graphics = "medium";
gotoAndStop (2);
}
Symbol 87 Button (62 B)
on (release) {
_global.graphics = "high";
gotoAndStop (1);
}
Symbol 89 MovieClip Frame 1 (214 B)
onEnterFrame = function () {
if (_global.graphics == "high") {
gotoAndStop (1);
}
if (_global.graphics == "medium") {
gotoAndStop (2);
}
if (_global.graphics == "low") {
gotoAndStop (3);
}
};
Symbol 91 Button (59 B)
on (release) {
_root._quality = "LOW";
gotoAndStop (3);
}
Symbol 92 Button (62 B)
on (release) {
_root._quality = "MEDIUM";
gotoAndStop (2);
}
Symbol 93 Button (60 B)
on (release) {
_root._quality = "HIGH";
gotoAndStop (1);
}
Symbol 94 MovieClip Frame 1 (240 B)
onEnterFrame = function () {
if ((_root._quality == "HIGH") || (_root._quality == "BEST")) {
gotoAndStop (1);
}
if (_root._quality == "MEDIUM") {
gotoAndStop (2);
}
if (_root._quality == "LOW") {
gotoAndStop (3);
}
};
Symbol 100 Button (76 B)
on (release) {
stopAllSounds();
_global.sound = false;
gotoAndStop (2);
}
Symbol 105 Button (181 B)
on (release) {
var theme = new Sound();
theme.attachSound("theme");
theme.start(0, 99999);
theme.setVolume(50);
_global.sound = true;
_global.sound = true;
gotoAndStop (1);
}
Symbol 106 MovieClip Frame 1 (119 B)
onEnterFrame = function () {
if (_global.sound == true) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
};
Symbol 110 MovieClip Frame 1 (208 B)
if (_global.cpu_fps > 40) {
gotoAndStop (1);
} else if ((_global.cpu_fps < 40) && (_global.cpu_fps > 30)) {
gotoAndStop (2);
} else if (_global.cpu_fps < 30) {
gotoAndStop (3);
}
Symbol 116 Button (82 B)
on (release) {
getURL ("http://www.kabomb.net/orbis_impetus_tips.htm", _blank);
}
Symbol 120 MovieClip Frame 1 (8 B)
stop();
Symbol 124 MovieClip Frame 1 (8 B)
stop();
Symbol 128 MovieClip Frame 1 (8 B)
stop();
Symbol 131 MovieClip Frame 1 (8 B)
stop();
Symbol 135 MovieClip Frame 1 (8 B)
stop();
Symbol 136 MovieClip Frame 1 (8 B)
stop();
Symbol 136 MovieClip Frame 4 (1.92 KiB) ●
cheat1_mc.onRelease = function () {
if (_global.cheat1 == true) {
if (_global.cheat1_enable == false) {
cheat1_mc.gotoAndStop(3);
_global.cheat1_enable = true;
} else {
cheat1_mc.gotoAndStop(2);
_global.cheat1_enable = false;
}
}
};
cheat2_mc.onRelease = function () {
if (_global.cheat2 == true) {
if (_global.cheat2_enable == false) {
cheat2_mc.gotoAndStop(3);
_global.cheat2_enable = true;
} else {
cheat2_mc.gotoAndStop(2);
_global.cheat2_enable = false;
}
}
};
cheat3_mc.onRelease = function () {
if (_global.cheat3 == true) {
if (_global.cheat3_enable == false) {
cheat3_mc.gotoAndStop(3);
_global.cheat3_enable = true;
} else {
cheat3_mc.gotoAndStop(2);
_global.cheat3_enable = false;
}
}
};
cheat5_mc.onRelease = function () {
if (_global.cheat5 == true) {
if (_global.cheat5_enable == false) {
cheat5_mc.gotoAndStop(3);
_global.cheat5_enable = true;
} else {
cheat5_mc.gotoAndStop(2);
_global.cheat5_enable = false;
}
}
};
onEnterFrame = function () {
if (_global.cheat1 == true) {
if (_global.cheat1_enable == true) {
cheat1_mc.gotoAndStop(3);
} else {
cheat1_mc.gotoAndStop(2);
}
} else {
cheat1_mc.gotoAndStop(1);
}
if (_global.cheat2 == true) {
if (_global.cheat2_enable == true) {
cheat2_mc.gotoAndStop(3);
} else {
cheat2_mc.gotoAndStop(2);
}
} else {
cheat2_mc.gotoAndStop(1);
}
if (_global.cheat3 == true) {
if (_global.cheat3_enable == true) {
cheat3_mc.gotoAndStop(3);
} else {
cheat3_mc.gotoAndStop(2);
}
} else {
cheat3_mc.gotoAndStop(1);
}
if (_global.cheat4 == true) {
cheat4_mc.gotoAndStop(2);
} else {
cheat4_mc.gotoAndStop(1);
}
if (_global.cheat5 == true) {
if (_global.cheat5_enable == true) {
cheat5_mc.gotoAndStop(3);
} else {
cheat5_mc.gotoAndStop(2);
}
} else {
cheat5_mc.gotoAndStop(1);
}
};
Symbol 152 MovieClip Frame 10 (17 B)
gotoAndPlay (1);
Symbol 152 MovieClip Frame 20 (22 B)
gotoAndPlay ("skin");
Symbol 152 MovieClip Frame 30 (18 B)
gotoAndPlay (22);
Symbol 152 MovieClip Frame 40 (23 B)
gotoAndPlay ("stars");
Symbol 164 MovieClip Frame 1 (8 B)
stop();
Symbol 172 Button (36 B)
on (release) {
_global.lives = 0;
}
Symbol 185 Button (73 B)
on (release) {
getURL ("http://armorbot.com/mytable/?id=703", _blank);
}
Symbol 190 Button (34 B)
on (release) {
gotoAndStop (8);
}
Symbol 194 Button (44 B)
on (release) {
gotoAndStop ("play_game");
}
Symbol 198 Button (34 B)
on (release) {
gotoAndStop (5);
}
Symbol 200 Button (63 B)
on (release) {
getURL ("http://www.armorgames.com", _blank);
}
Symbol 231 MovieClip Frame 1 (8 B)
stop();
Symbol 231 MovieClip Frame 2 (8 B)
stop();
Symbol 232 Button (34 B)
on (release) {
gotoAndStop (7);
}