[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (24 B)
Stage.showMenu = false;
Frame 3 (32.22 KiB) ● ● ● ●
function __us_abtracker__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var at;
var atc;
at = "__abtracker__";
atc = "world.abtracker.us";
g = (_global ? (_global) : (_level0._root));
if (g[at + swfid]) {
return(g[at + 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(atc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(atc);
}
mrlu = mc._url;
mrlu_s = mrlu.substr(0, 4);
if (mrlu_s == "file") {
mrlu = "__local__";
}
u = (((((((((((((("http://" + atc) + "/strack/bot.swf?abtv=1&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + "&llr=") + escape(mrlu)) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[at + "level"] ? (g[at + "level"] + 1) : (lv))));
g[at + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(at + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__us_abtracker__("U5335WSB", this, 11011, true);
function setmainoffset(sound) {
_global.moffset = sound.position / 1000;
}
function playscreen() {
gotoAndPlay (7);
}
function settingsscreen() {
gotoAndPlay (5);
}
function creditsscreen() {
gotoAndPlay (261);
}
function instructionsscreen() {
gotoAndPlay (6);
}
function transitionefx() {
_global.bbp = new flash.display.BitmapData(640, 480, 0, 3355443);
_global.bbp.draw(_root);
_root.attachMovie("empty", "transition", 20000, {_x:0, _y:480});
_root.transition.attachMovie("empty", "bm", 1, {_x:0, _y:-480});
_root.transition.bm.attachBitmap(_global.bbp, 1);
_root.transition.onEnterFrame = function () {
this._rotation = this._rotation - 5;
if (this._rotation < -90) {
this.removeMovieClip();
}
};
}
function globalsave() {
_root.slitz_data.data.volume_efx = _global.volume_efx;
_root.slitz_data.data.volume_music = _global.volume_music;
_root.slitz_data.data.music_type = _global.music_type;
_root.slitz_data.data.music_i = _global.music_i;
_root.slitz_data.data.music_radios = _global.music_radios;
_root.slitz_data.data.name_p1 = _global.name_player1;
_root.slitz_data.data.name_p2 = _global.name_player2;
_root.slitz_data.data.gdetail = _global.gdetail;
_root.slitz_data.data.aa = _global.aa;
_root.slitz_data.data.parallax = _global.parallax;
_root.slitz_data.data.effectsd = _global.effectsd;
_root.slitz_data.flush();
}
var slitz_data = SharedObject.getLocal("slitz_armorstudios", "/");
vr = "0.91";
if (slitz_data.data.version != vr) {
slitz_data.data.version = vr;
slitz_data.data.volume_efx = 100;
slitz_data.data.volume_music = 40;
slitz_data.data.music_type = "stand";
slitz_data.data.music_i = 0;
slitz_data.data.music_radios = new Array();
slitz_data.data.music_radios.push(["D.I. FM - Psy", "http://www.di.fm/", "64.236.98.50:80", "http://64.236.98.50:80/stream/1008"]);
slitz_data.data.music_radios.push(["D.I. FM - House", "http://www.di.fm/", "64.236.98.50:80", "http://64.236.98.50:80/stream/1007"]);
slitz_data.data.music_radios.push(["HBR1", "http://www.hbr1.com/", "217.64.173.227:19700", "http://217.64.173.227:19700"]);
slitz_data.data.music_radios.push(["LuxuriaMusic", "http://www.luxuriamusic.com/", "64.62.252.134:3142", "http://64.62.252.134:3142"]);
slitz_data.data.name_p1 = "Player 1";
slitz_data.data.name_p2 = "Player 2";
slitz_data.data.gdetail = 2;
slitz_data.data.aa = "LOW";
slitz_data.data.parallax = true;
slitz_data.data.effectsd = "high";
slitz_data.data.first_time = true;
trace("MESSING");
}
_global.paused = false;
_global.gdetail = slitz_data.data.gdetail;
_global.aa = slitz_data.data.aa;
_global.parallax = slitz_data.data.parallax;
_global.effectsd = slitz_data.data.effectsd;
_global.volume_efx = slitz_data.data.volume_efx;
_global.volume_music = slitz_data.data.volume_music;
_global.music_type = slitz_data.data.music_type;
_global.music_i = slitz_data.data.music_i;
_global.music_radios = slitz_data.data.music_radios;
iki = 0;
while (iki < _global.music_radios.length) {
System.security.allowDomain(_global.music_radios[iki][2]);
System.security.allowInsecureDomain(_global.music_radios[iki][2]);
iki++;
}
System.security.loadPolicyFile("http://www.armorbot.com/crossdomain.xml");
_global.name_player1 = slitz_data.data.name_p1;
_global.name_player2 = slitz_data.data.name_p2;
_global.playermode = "multi";
_global.overlord = false;
_global.devmode = false;
_global.player2_ai = true;
_global.moffset = 0;
_global.levels = new Array();
_global.levels.push([["w", 1], ["e", 1, 100, 100], ["e", 1, 900, 100], ["e", 1, 100, 900], ["w", 3], ["e", 2, 900, 900], ["w", 1]]);
_global.levels.push([["e", 1, 100, 100], ["e", 1, 900, 100], ["e", 1, 100, 900], ["e", 1, 900, 900], ["w", 2], ["e", 2, 500, 500], ["e", 1, 100, 100], ["e", 1, 900, 900]]);
_global.levels.push([["e", 2, 100, 100], ["e", 1, 900, 100], ["w", 0.5], ["e", 1, 100, 900], ["e", 2, 900, 900], ["w", 3], ["e", 3, 500, 500], ["e", 1, 100, 100], ["e", 1, 900, 900], ["e", 1, 200, 800], ["w", 1], ["e", 3, 500, 500]]);
_global.levels.push([["e", 3, 400, 600], ["w", 2], ["e", 3, 600, 400], ["w", 2], ["e", 1, 300, 300], ["e", 1, 700, 700], ["w", 3], ["e", 3, 500, 500], ["e", 1, 600, 500], ["e", 1, 400, 500], ["w", 4], ["e", 1, 500, 500], ["w", 2], ["e", 3, 500, 500]]);
_global.levels.push([["e", 1, 200, 200], ["e", 1, 800, 800], ["w", 3], ["p", 1, 500, 500], ["w", 1], ["e", 2, 400, 600], ["e", 2, 600, 400], ["e", 3, 100, 100], ["e", 3, 900, 900], ["w", 5], ["e", 4, 500, 800], ["w", 5], ["e", 1, 900, 100], ["e", 1, 100, 100], ["e", 1, 100, 900], ["e", 1, 900, 900], ["w", 4], ["p", 2, 200, 200], ["w", 2], ["e", 1, 100, 900], ["e", 1, 900, 100], ["e", 1, 400, 400], ["e", 1, 600, 600]]);
_global.levels.push([["p", 1, 500, 500], ["e", 1, 200, 100], ["e", 1, 800, 100], ["e", 1, 200, 900], ["e", 1, 800, 900], ["e", 1, 500, 500], ["w", 3], ["e", 2, 900, 100], ["w", 3], ["e", 2, 100, 900], ["w", 3], ["e", 2, 100, 100], ["w", 3], ["e", 2, 900, 900], ["w", 3], ["e", 4, 500, 500], ["w", 4], ["e", 3, 800, 500], ["e", 3, 200, 500], ["e", 1, 900, 100], ["e", 1, 100, 100], ["e", 1, 100, 900], ["e", 1, 900, 900], ["w", 5], ["e", 1, 800, 800], ["e", 1, 800, 200], ["e", 1, 200, 200], ["e", 1, 200, 800], ["w", 5], ["e", 1, 600, 600], ["e", 1, 600, 500], ["e", 1, 600, 400], ["e", 1, 500, 400], ["e", 1, 400, 400], ["e", 1, 400, 500]]);
_global.levels.push([["e", 1, 100, 100], ["e", 1, 900, 100], ["e", 1, 100, 900], ["e", 1, 900, 900], ["w", 1], ["e", 1, 200, 200], ["e", 1, 800, 200], ["e", 1, 800, 800], ["e", 1, 200, 800], ["w", 1], ["e", 1, 400, 600], ["e", 1, 600, 400], ["e", 1, 400, 400], ["e", 1, 600, 600], ["w", 7], ["e", 5, 500, 500], ["w", 4], ["e", 5, 900, 100], ["w", 5], ["e", 5, 100, 900], ["w", 5], ["e", 2, 400, 500], ["e", 2, 600, 500], ["e", 2, 500, 400], ["e", 2, 500, 600], ["w", 5], ["e", 1, 500, 500], ["e", 1, 100, 200], ["e", 1, 900, 200], ["w", 5], ["e", 1, 800, 900], ["e", 1, 700, 400], ["e", 1, 300, 700], ["w", 5], ["e", 1, 900, 400], ["e", 1, 100, 500], ["e", 1, 200, 900], ["w", 5], ["e", 4, 400, 600], ["e", 4, 400, 600], ["e", 4, 800, 800], ["p", 2, 500, 500]]);
_global.levels.push([["w", 2], ["e", 5, 100, 900], ["w", 2], ["e", 5, 100, 100], ["w", 2], ["e", 5, 900, 100], ["w", 2], ["e", 5, 900, 900], ["w", 2], ["e", 5, 500, 500], ["w", 3], ["e", 1, 200, 200], ["e", 1, 800, 200], ["e", 1, 800, 800], ["e", 1, 200, 800], ["e", 1, 900, 100], ["e", 1, 100, 100], ["e", 1, 100, 900], ["e", 1, 900, 900], ["w", 5], ["e", 1, 900, 100], ["e", 1, 800, 100], ["e", 1, 700, 100], ["e", 1, 700, 200], ["e", 1, 700, 300], ["e", 1, 800, 300], ["e", 1, 900, 300], ["e", 1, 900, 200], ["w", 1], ["e", 2, 800, 200], ["w", 5], ["e", 1, 100, 800], ["e", 1, 100, 700], ["e", 1, 200, 700], ["e", 1, 300, 700], ["e", 1, 300, 800], ["e", 1, 300, 900], ["e", 1, 200, 900], ["e", 1, 100, 900], ["w", 1], ["e", 2, 200, 800], ["w", 3], ["e", 4, 500, 500], ["w", 5], ["p", 2, 800, 200], ["w", 3], ["e", 4, 100, 100], ["e", 4, 900, 900], ["w", 3], ["e", 4, 800, 200], ["w", 5], ["e", 1, 900, 100], ["w", 5], ["e", 1, 100, 100], ["w", 5], ["e", 5, 400, 600], ["e", 5, 600, 400], ["e", 1, 400, 400], ["e", 1, 400, 400], ["e", 1, 600, 600], ["e", 1, 600, 200], ["e", 1, 400, 200], ["e", 1, 600, 800], ["e", 1, 400, 800], ["w", 5], ["e", 1, 100, 600], ["e", 1, 900, 600], ["w", 8], ["e", 4, 600, 500], ["e", 4, 400, 500]]);
_global.levels.push([["e", 2, 450, 460], ["e", 2, 550, 540], ["e", 1, 450, 540], ["e", 1, 550, 460], ["w", 1], ["e", 1, 40, 40], ["e", 1, 960, 960], ["w", 7], ["e", 4, 500, 500], ["w", 4], ["e", 4, 450, 540], ["e", 4, 550, 460], ["w", 5], ["e", 5, 40, 540], ["e", 5, 960, 460], ["w", 6], ["p", 2, 40, 40], ["p", 2, 960, 960], ["p", 2, 960, 40], ["p", 2, 40, 960], ["w", 4], ["e", 2, 40, 540], ["e", 2, 40, 460], ["e", 2, 100, 540], ["e", 2, 100, 460], ["w", 4], ["e", 2, 960, 460], ["e", 2, 960, 540], ["e", 2, 900, 460], ["e", 2, 900, 540], ["w", 4], ["w", 5], ["e", 3, 400, 400], ["e", 3, 340, 340], ["e", 3, 280, 280], ["e", 3, 220, 220], ["e", 3, 160, 160], ["e", 3, 100, 100], ["w", 5], ["e", 5, 500, 500], ["e", 4, 300, 500], ["e", 4, 700, 500], ["w", 5], ["e", 4, 500, 100], ["e", 1, 40, 960], ["e", 1, 500, 960], ["e", 1, 960, 960], ["e", 1, 340, 280], ["e", 1, 160, 460], ["e", 1, 660, 660], ["e", 1, 600, 720], ["e", 1, 500, 720], ["e", 1, 400, 660], ["w", 5], ["e", 1, 220, 900], ["w", 5], ["e", 1, 840, 340], ["w", 5], ["e", 1, 160, 220], ["w", 5], ["e", 1, 100, 160], ["w", 5], ["e", 1, 500, 500], ["w", 5], ["e", 1, 300, 500], ["w", 5], ["e", 1, 700, 500], ["w", 5], ["e", 5, 40, 40], ["e", 5, 40, 960], ["e", 5, 960, 960], ["e", 5, 960, 40], ["w", 5], ["e", 4, 500, 500]]);
_global.levels.push([["p", 1, 500, 500], ["e", 1, 340, 540], ["e", 1, 400, 600], ["e", 1, 450, 660], ["e", 1, 500, 720], ["e", 1, 550, 660], ["e", 1, 600, 600], ["e", 1, 660, 540], ["e", 1, 660, 460], ["e", 1, 600, 400], ["e", 1, 550, 340], ["e", 1, 500, 280], ["e", 1, 450, 340], ["e", 1, 400, 400], ["e", 1, 340, 460], ["w", 5], ["e", 2, 300, 500], ["e", 2, 700, 500], ["w", 5], ["e", 2, 220, 540], ["e", 2, 220, 460], ["e", 2, 780, 460], ["e", 2, 780, 540], ["w", 5], ["e", 3, 500, 500], ["w", 5], ["e", 3, 500, 500], ["w", 5], ["e", 3, 500, 500], ["w", 5], ["e", 3, 500, 500], ["w", 5], ["e", 3, 40, 40], ["e", 3, 40, 960], ["e", 3, 960, 40], ["e", 3, 960, 960], ["e", 1, 40, 540], ["e", 1, 40, 460], ["e", 1, 100, 460], ["e", 1, 100, 540], ["e", 1, 960, 460], ["e", 1, 960, 540], ["e", 1, 900, 540], ["e", 1, 900, 460], ["e", 1, 160, 340], ["e", 1, 220, 340], ["e", 1, 280, 340], ["e", 1, 340, 340], ["e", 1, 280, 780], ["e", 1, 340, 720], ["e", 1, 400, 660], ["w", 5], ["e", 1, 40, 960], ["e", 1, 500, 960], ["e", 1, 960, 960], ["e", 1, 960, 40], ["e", 1, 500, 40], ["e", 1, 40, 40], ["w", 5], ["e", 5, 500, 500], ["w", 5], ["e", 5, 500, 500], ["w", 5], ["e", 5, 500, 500], ["e", 5, 300, 500], ["e", 5, 700, 500], ["w", 5], ["e", 1, 40, 460], ["e", 1, 40, 540], ["e", 1, 960, 460], ["e", 1, 960, 540], ["w", 5], ["e", 1, 340, 160], ["e", 1, 500, 160], ["e", 1, 660, 160], ["w", 5], ["e", 1, 450, 960], ["e", 1, 450, 900], ["e", 1, 450, 840], ["e", 1, 450, 780], ["e", 1, 450, 720], ["e", 1, 450, 660], ["e", 1, 450, 600], ["e", 1, 450, 540], ["w", 5], ["e", 2, 100, 460], ["w", 5], ["p", 1, 160, 160], ["p", 1, 960, 960], ["w", 5], ["e", 1, 500, 500], ["e", 1, 300, 500], ["e", 1, 700, 500], ["w", 5]]);
_global.levels.push([["e", 1, 40, 540], ["e", 1, 40, 600], ["e", 1, 40, 660], ["e", 1, 40, 720], ["e", 1, 40, 780], ["e", 1, 40, 840], ["e", 1, 40, 900], ["e", 1, 40, 960], ["e", 1, 100, 960], ["e", 1, 160, 960], ["e", 1, 220, 960], ["e", 1, 280, 960], ["e", 1, 340, 960], ["e", 1, 400, 960], ["e", 1, 450, 960], ["w", 5], ["w", 5], ["e", 1, 550, 40], ["e", 1, 600, 40], ["e", 1, 660, 40], ["e", 1, 720, 40], ["e", 1, 780, 40], ["e", 1, 840, 40], ["e", 1, 900, 40], ["e", 1, 960, 40], ["e", 1, 960, 100], ["e", 1, 960, 160], ["e", 1, 960, 220], ["e", 1, 960, 280], ["e", 1, 960, 340], ["e", 1, 960, 400], ["e", 1, 960, 460], ["w", 5], ["w", 5], ["w", 5], ["e", 1, 500, 500], ["e", 1, 300, 500], ["e", 1, 700, 500], ["e", 1, 900, 900], ["e", 1, 840, 840], ["e", 1, 780, 780], ["e", 1, 720, 720], ["e", 1, 660, 660], ["e", 1, 600, 600], ["e", 1, 550, 540], ["e", 5, 160, 280], ["e", 5, 220, 220], ["e", 5, 280, 160], ["w", 5], ["e", 5, 500, 500], ["w", 5], ["e", 5, 700, 500], ["e", 5, 300, 500], ["w", 5], ["e", 5, 40, 960], ["e", 5, 960, 40], ["w", 5], ["e", 1, 40, 460], ["e", 1, 100, 460], ["e", 1, 160, 460], ["e", 1, 220, 460], ["e", 1, 280, 460], ["e", 1, 340, 460], ["e", 1, 400, 460], ["e", 1, 450, 460], ["e", 1, 500, 460], ["w", 5], ["e", 1, 550, 540], ["e", 1, 600, 540], ["e", 1, 660, 540], ["e", 1, 720, 540], ["e", 1, 780, 540], ["e", 1, 840, 540], ["e", 1, 900, 540], ["e", 1, 960, 540], ["w", 5], ["e", 1, 40, 40], ["e", 1, 100, 40], ["e", 1, 160, 40], ["e", 1, 220, 40], ["e", 1, 280, 40], ["e", 1, 340, 40], ["e", 1, 400, 40], ["e", 1, 450, 40], ["e", 1, 500, 40], ["w", 5], ["e", 1, 960, 40], ["e", 1, 900, 100], ["e", 1, 840, 160], ["e", 1, 780, 220], ["e", 1, 720, 280], ["e", 1, 660, 340], ["e", 1, 600, 400], ["e", 1, 550, 460], ["e", 1, 500, 500], ["e", 1, 450, 540], ["e", 1, 400, 600], ["e", 1, 340, 660], ["e", 1, 280, 720], ["e", 1, 220, 780], ["e", 1, 160, 840], ["e", 1, 100, 900], ["e", 1, 40, 960], ["w", 5], ["w", 5], ["e", 2, 100, 400], ["e", 2, 840, 720], ["e", 3, 600, 280], ["e", 4, 400, 600], ["w", 5], ["e", 4, 400, 280], ["w", 5], ["e", 4, 280, 400], ["w", 5], ["e", 4, 720, 400], ["w", 5], ["e", 4, 660, 720], ["e", 4, 160, 780], ["e", 4, 160, 540], ["w", 5], ["e", 4, 160, 400], ["e", 4, 660, 220], ["e", 4, 780, 100], ["e", 4, 900, 280], ["e", 4, 840, 840], ["e", 4, 600, 720], ["e", 4, 400, 280], ["w", 5], ["e", 5, 400, 460], ["e", 5, 40, 40], ["e", 5, 960, 40], ["w", 5], ["e", 5, 450, 960], ["e", 5, 550, 960], ["w", 5], ["p", 2, 300, 500], ["p", 2, 700, 500], ["p", 2, 500, 500], ["w", 5], ["e", 1, 100, 340], ["e", 1, 100, 400], ["e", 1, 100, 460], ["e", 1, 100, 600], ["e", 1, 100, 660], ["e", 1, 960, 960], ["e", 1, 960, 900], ["e", 1, 960, 840], ["e", 1, 960, 780], ["e", 1, 960, 720], ["e", 1, 960, 660], ["e", 1, 960, 600], ["e", 1, 960, 540], ["w", 5], ["e", 5, 500, 500]]);
_global.levels.push([["e", 1, 500, 540], ["e", 1, 450, 540], ["e", 1, 450, 460], ["e", 1, 500, 460], ["e", 1, 550, 460], ["e", 1, 550, 540], ["e", 1, 40, 40], ["e", 1, 40, 100], ["e", 1, 100, 40], ["e", 1, 900, 40], ["e", 1, 960, 40], ["e", 1, 960, 100], ["e", 1, 960, 900], ["e", 1, 960, 960], ["e", 1, 900, 960], ["e", 1, 100, 960], ["e", 1, 40, 960], ["e", 1, 40, 900], ["e", 1, 40, 540], ["e", 1, 40, 460], ["e", 1, 960, 460], ["e", 1, 960, 540], ["e", 1, 700, 500], ["e", 1, 300, 500], ["e", 5, 500, 500], ["e", 2, 340, 340], ["e", 2, 660, 340], ["e", 2, 340, 660], ["e", 2, 660, 660], ["w", 10], ["e", 2, 300, 500], ["e", 2, 700, 500], ["e", 1, 160, 400], ["e", 1, 160, 460], ["e", 1, 160, 540], ["e", 1, 160, 600], ["e", 1, 840, 400], ["e", 1, 840, 460], ["e", 1, 840, 540], ["e", 1, 840, 600], ["e", 1, 500, 960], ["e", 1, 500, 900], ["e", 1, 500, 840], ["e", 1, 500, 780], ["e", 1, 500, 40], ["e", 1, 500, 100], ["e", 1, 500, 160], ["e", 1, 500, 220], ["p", 2, 500, 500], ["w", 10], ["e", 5, 300, 500], ["e", 5, 700, 500], ["e", 5, 500, 500], ["e", 1, 40, 40], ["e", 1, 100, 100], ["e", 1, 160, 160], ["e", 1, 220, 220], ["e", 1, 280, 280], ["e", 1, 340, 340], ["e", 1, 400, 400], ["e", 1, 450, 460], ["e", 1, 550, 540], ["e", 1, 600, 600], ["e", 1, 660, 660], ["e", 1, 720, 720], ["e", 1, 780, 780], ["e", 1, 840, 840], ["e", 1, 900, 900], ["e", 1, 960, 960], ["e", 1, 450, 540], ["e", 1, 400, 600], ["e", 1, 340, 660], ["e", 1, 280, 720], ["e", 1, 220, 780], ["e", 1, 160, 840], ["e", 1, 100, 900], ["e", 1, 40, 960], ["e", 1, 550, 460], ["e", 1, 600, 400], ["e", 1, 660, 340], ["e", 1, 720, 280], ["e", 1, 780, 220], ["e", 1, 840, 160], ["e", 1, 900, 100], ["e", 1, 960, 40], ["w", 10], ["e", 1, 40, 540], ["e", 1, 40, 600], ["e", 1, 40, 460], ["e", 1, 40, 400], ["e", 1, 960, 400], ["e", 1, 960, 460], ["e", 1, 960, 540], ["e", 1, 960, 600], ["e", 2, 100, 460], ["e", 2, 100, 540], ["e", 2, 900, 460], ["e", 2, 900, 540], ["e", 2, 500, 40], ["e", 2, 500, 960], ["e", 3, 40, 40], ["e", 3, 40, 960], ["e", 3, 960, 40], ["e", 3, 960, 960], ["e", 4, 160, 160], ["e", 4, 840, 840], ["w", 10], ["e", 4, 450, 540], ["e", 4, 550, 460], ["e", 4, 450, 460], ["e", 4, 550, 540], ["e", 4, 500, 540], ["e", 4, 500, 500], ["e", 4, 500, 460], ["w", 10], ["e", 4, 300, 500], ["e", 4, 700, 500], ["e", 5, 500, 500], ["p", 2, 100, 100], ["e", 1, 40, 40], ["e", 1, 40, 100], ["e", 1, 40, 160], ["e", 1, 100, 160], ["e", 1, 160, 160], ["e", 1, 160, 100], ["e", 1, 160, 40], ["e", 1, 100, 40], ["e", 1, 220, 540], ["e", 1, 280, 540], ["e", 1, 340, 540], ["e", 1, 340, 460], ["e", 1, 280, 460], ["e", 1, 220, 460], ["e", 1, 660, 780], ["e", 1, 660, 720], ["e", 1, 720, 720], ["e", 1, 780, 720], ["e", 1, 780, 780], ["e", 1, 780, 840], ["e", 1, 720, 840], ["e", 1, 660, 840], ["e", 4, 720, 780], ["w", 10], ["e", 1, 400, 720], ["e", 1, 400, 780], ["e", 1, 400, 840], ["e", 1, 450, 840], ["e", 1, 500, 840], ["e", 1, 550, 840], ["e", 1, 600, 840], ["e", 1, 600, 780], ["e", 1, 600, 720], ["e", 1, 600, 660], ["e", 1, 600, 600], ["e", 1, 550, 600], ["e", 1, 500, 600], ["e", 1, 450, 600], ["e", 1, 400, 600], ["e", 1, 400, 660], ["e", 5, 500, 720]]);
_global.levels.push([["e", 1, 160, 160], ["e", 1, 220, 160], ["e", 1, 280, 160], ["e", 1, 340, 160], ["e", 1, 400, 160], ["e", 1, 450, 160], ["e", 1, 500, 160], ["e", 1, 550, 160], ["e", 1, 600, 160], ["e", 1, 660, 160], ["e", 1, 720, 160], ["e", 1, 780, 160], ["e", 1, 840, 160], ["e", 1, 840, 220], ["e", 1, 840, 280], ["e", 1, 840, 340], ["e", 1, 840, 400], ["e", 1, 840, 460], ["e", 1, 840, 540], ["e", 1, 840, 600], ["e", 1, 840, 660], ["e", 1, 840, 720], ["e", 1, 840, 780], ["e", 1, 840, 840], ["e", 1, 780, 840], ["e", 1, 720, 840], ["e", 1, 660, 840], ["e", 1, 600, 840], ["e", 1, 550, 840], ["e", 1, 500, 840], ["e", 1, 450, 840], ["e", 1, 400, 840], ["e", 1, 340, 840], ["e", 1, 280, 840], ["e", 1, 220, 840], ["e", 1, 160, 840], ["e", 1, 160, 780], ["e", 1, 160, 720], ["e", 1, 160, 660], ["e", 1, 160, 600], ["e", 1, 160, 540], ["e", 1, 160, 460], ["e", 1, 160, 400], ["e", 1, 160, 340], ["e", 1, 160, 280], ["e", 1, 160, 220], ["p", 1, 500, 500], ["w", 15], ["e", 1, 40, 40], ["e", 1, 40, 960], ["e", 1, 960, 960], ["e", 1, 960, 40], ["e", 2, 300, 500], ["e", 2, 700, 500], ["w", 9], ["e", 2, 220, 540], ["e", 2, 220, 660], ["e", 2, 220, 460], ["e", 2, 220, 340], ["e", 3, 220, 400], ["e", 3, 220, 600], ["e", 4, 160, 340], ["e", 4, 160, 400], ["e", 4, 160, 460], ["e", 4, 160, 540], ["e", 4, 160, 600], ["e", 4, 160, 660], ["w", 9], ["e", 5, 300, 500], ["e", 5, 500, 500], ["e", 5, 700, 500], ["w", 9], ["e", 1, 40, 960], ["e", 1, 100, 960], ["e", 1, 160, 960], ["e", 1, 220, 960], ["e", 1, 280, 960], ["e", 1, 340, 960], ["e", 1, 400, 960], ["e", 1, 450, 960], ["e", 1, 500, 960], ["e", 1, 550, 960], ["e", 1, 600, 960], ["e", 1, 660, 960], ["e", 1, 720, 960], ["e", 1, 780, 960], ["e", 1, 840, 960], ["e", 1, 900, 960], ["e", 1, 960, 960], ["e", 1, 960, 40], ["e", 1, 900, 40], ["e", 1, 840, 40], ["e", 1, 780, 40], ["e", 1, 720, 40], ["e", 1, 660, 40], ["e", 1, 600, 40], ["e", 1, 550, 40], ["e", 1, 500, 40], ["e", 1, 450, 40], ["e", 1, 400, 40], ["e", 1, 340, 40], ["e", 1, 280, 40], ["e", 1, 220, 40], ["e", 1, 160, 40], ["e", 1, 100, 40], ["e", 1, 40, 40], ["e", 1, 300, 500], ["e", 1, 700, 500], ["e", 4, 500, 500], ["w", 12], ["e", 5, 500, 500], ["w", 10], ["e", 1, 300, 500], ["e", 1, 340, 460], ["e", 1, 400, 400], ["e", 1, 450, 340], ["e", 1, 500, 280], ["e", 1, 550, 340], ["e", 1, 600, 400], ["e", 1, 660, 460], ["e", 1, 700, 500], ["e", 1, 280, 540], ["e", 1, 280, 600], ["e", 1, 280, 660], ["e", 1, 280, 720], ["e", 1, 280, 780], ["e", 1, 340, 720], ["e", 1, 400, 780], ["e", 1, 450, 720], ["e", 1, 500, 660], ["e", 1, 550, 720], ["e", 1, 600, 780], ["e", 1, 660, 720], ["e", 1, 720, 780], ["e", 1, 720, 720], ["e", 1, 720, 660], ["e", 1, 720, 600], ["e", 1, 720, 540], ["e", 2, 500, 340], ["e", 2, 450, 400], ["e", 2, 500, 400], ["e", 2, 550, 400], ["e", 5, 500, 500], ["p", 1, 400, 460], ["p", 1, 600, 460], ["p", 2, 450, 460], ["p", 2, 500, 460], ["p", 2, 550, 460], ["w", 10], ["e", 4, 300, 500], ["e", 4, 280, 540], ["e", 4, 280, 460], ["e", 4, 700, 500], ["e", 4, 720, 460], ["e", 4, 720, 540], ["e", 3, 40, 960], ["e", 3, 100, 900], ["e", 3, 40, 840], ["e", 3, 160, 960], ["e", 3, 840, 960], ["e", 3, 900, 900], ["e", 3, 960, 840], ["e", 3, 960, 960], ["e", 2, 40, 40], ["e", 2, 960, 40], ["e", 1, 500, 460], ["e", 1, 500, 500], ["e", 1, 450, 540], ["e", 1, 500, 540], ["e", 1, 550, 540], ["e", 1, 550, 460], ["e", 1, 450, 460], ["e", 1, 500, 400], ["e", 1, 500, 600], ["e", 1, 500, 660], ["e", 1, 500, 340], ["e", 1, 450, 280], ["e", 1, 550, 280], ["e", 1, 450, 720], ["e", 1, 550, 720], ["w", 10], ["e", 1, 280, 460], ["e", 1, 300, 500], ["e", 1, 280, 540], ["e", 1, 720, 460], ["e", 1, 700, 500], ["e", 1, 720, 540], ["e", 5, 40, 40], ["e", 5, 40, 960], ["e", 5, 960, 960], ["e", 5, 960, 40], ["e", 4, 500, 500], ["e", 4, 500, 400], ["e", 4, 500, 600], ["e", 4, 500, 40], ["e", 4, 500, 960], ["w", 3], ["p", 2, 40, 40], ["p", 2, 40, 960], ["p", 2, 960, 960], ["p", 2, 960, 40]]);
_global.levels.push([["e", 5, 500, 500], ["w", 0.5], ["e", 5, 300, 500], ["w", 0.5], ["e", 5, 700, 500], ["w", 0.5], ["e", 5, 40, 40], ["w", 0.5], ["e", 5, 960, 40], ["w", 0.5], ["e", 5, 40, 960], ["w", 0.5], ["e", 5, 960, 960], ["w", 0.5], ["w", 8], ["e", 1, 40, 540], ["e", 1, 40, 460], ["e", 1, 960, 460], ["e", 1, 960, 540], ["e", 1, 700, 500], ["e", 1, 300, 500], ["w", 1], ["e", 1, 500, 500], ["w", 1], ["e", 1, 400, 460], ["w", 1], ["e", 1, 220, 340], ["w", 1], ["e", 1, 780, 780], ["w", 1], ["e", 1, 500, 900], ["w", 1], ["e", 2, 220, 660], ["w", 1.5], ["e", 2, 780, 340], ["w", 1.5], ["e", 2, 280, 280], ["w", 1.5], ["e", 2, 160, 840], ["w", 1.5], ["e", 2, 340, 840], ["w", 1.5], ["e", 2, 500, 960], ["w", 1.5], ["e", 2, 780, 720], ["w", 1.5], ["e", 2, 840, 220], ["w", 1.5], ["e", 2, 220, 220], ["w", 1.5], ["e", 2, 160, 160], ["w", 1.5], ["e", 2, 40, 40], ["w", 1.5], ["e", 2, 100, 600], ["w", 1.5], ["e", 1, 500, 460], ["e", 1, 450, 460], ["e", 1, 450, 540], ["e", 1, 500, 540], ["e", 1, 550, 540], ["e", 1, 550, 460], ["w", 1], ["e", 1, 400, 400], ["e", 1, 600, 400], ["e", 1, 400, 600], ["e", 1, 600, 600], ["w", 1], ["e", 1, 300, 500], ["e", 1, 700, 500], ["w", 1], ["e", 1, 280, 460], ["e", 1, 280, 540], ["e", 1, 720, 460], ["e", 1, 720, 540], ["w", 1], ["e", 1, 280, 400], ["e", 1, 720, 400], ["e", 1, 720, 600], ["e", 1, 280, 600], ["w", 1], ["e", 1, 280, 660], ["e", 1, 280, 340], ["e", 1, 720, 340], ["e", 1, 720, 660], ["w", 1], ["e", 1, 450, 460], ["w", 1], ["e", 1, 550, 540], ["w", 1], ["e", 1, 550, 460], ["w", 1], ["e", 1, 450, 540], ["w", 1], ["e", 4, 300, 500], ["e", 4, 700, 500], ["w", 1], ["e", 4, 40, 40], ["e", 4, 960, 40], ["e", 4, 960, 960], ["e", 4, 40, 960], ["w", 1], ["e", 4, 450, 540], ["e", 4, 550, 460], ["w", 1], ["e", 3, 220, 540], ["w", 1], ["e", 3, 280, 280], ["w", 1], ["e", 3, 840, 160], ["w", 1], ["e", 3, 720, 840], ["w", 1], ["e", 3, 280, 780], ["w", 1], ["e", 3, 400, 600], ["w", 1], ["e", 3, 500, 500], ["w", 1], ["e", 3, 450, 460], ["w", 1], ["e", 2, 40, 460], ["e", 2, 40, 540], ["e", 2, 960, 460], ["e", 2, 960, 540], ["e", 2, 900, 160], ["e", 2, 840, 160], ["e", 2, 780, 160], ["e", 2, 720, 160], ["e", 2, 660, 160], ["e", 2, 600, 160], ["e", 2, 600, 220], ["e", 2, 660, 220], ["e", 2, 720, 220], ["e", 2, 780, 220], ["e", 2, 840, 220], ["e", 2, 900, 220], ["e", 2, 720, 280], ["e", 2, 780, 280], ["e", 2, 720, 340], ["e", 2, 780, 340], ["w", 13], ["e", 1, 500, 500], ["e", 1, 450, 460], ["e", 1, 400, 460], ["e", 1, 400, 400], ["e", 1, 400, 340], ["e", 1, 450, 340], ["e", 1, 500, 340], ["e", 1, 500, 400], ["e", 1, 550, 460], ["e", 1, 600, 460], ["e", 1, 600, 400], ["e", 1, 600, 340], ["e", 1, 550, 340], ["e", 1, 550, 280], ["e", 1, 500, 280], ["e", 1, 450, 280], ["e", 1, 340, 400], ["e", 1, 340, 460], ["e", 1, 660, 400], ["e", 1, 660, 460], ["e", 1, 600, 540], ["e", 1, 550, 600], ["e", 1, 500, 600], ["e", 1, 450, 600], ["e", 1, 450, 660], ["e", 1, 500, 660], ["e", 1, 550, 660], ["e", 1, 400, 540], ["e", 1, 500, 540], ["w", 10], ["e", 1, 40, 960], ["e", 1, 100, 900], ["e", 1, 100, 960], ["e", 1, 40, 900], ["e", 1, 960, 960], ["e", 1, 960, 900], ["e", 1, 900, 900], ["e", 1, 900, 960], ["e", 1, 900, 40], ["e", 1, 900, 100], ["e", 1, 960, 100], ["e", 1, 960, 40], ["e", 1, 40, 40], ["e", 1, 40, 100], ["e", 1, 100, 100], ["e", 1, 100, 40], ["w", 10], ["e", 5, 500, 500], ["w", 10], ["p", 2, 500, 500], ["w", 1], ["p", 2, 100, 100], ["w", 1], ["p", 2, 900, 900], ["w", 1], ["e", 1, 300, 500], ["e", 1, 700, 500], ["e", 1, 500, 500], ["e", 1, 500, 460], ["e", 1, 500, 540], ["w", 1], ["e", 1, 280, 460], ["e", 1, 280, 540], ["e", 1, 720, 460], ["e", 1, 720, 540], ["w", 1], ["e", 1, 500, 460], ["e", 1, 550, 460], ["e", 1, 450, 460], ["e", 1, 450, 540], ["e", 1, 500, 540], ["e", 1, 550, 540], ["w", 1], ["e", 1, 100, 900], ["e", 1, 900, 100], ["e", 1, 100, 100], ["e", 1, 900, 900], ["w", 1], ["e", 1, 160, 160], ["e", 1, 840, 160], ["e", 1, 840, 840], ["e", 1, 160, 840], ["w", 1], ["e", 2, 300, 500], ["w", 2], ["e", 2, 700, 500], ["w", 2], ["e", 2, 500, 500], ["w", 2], ["e", 5, 40, 960], ["e", 5, 40, 40], ["e", 5, 960, 40], ["e", 5, 960, 960], ["w", 2], ["e", 5, 300, 500], ["e", 5, 700, 500], ["e", 5, 500, 460], ["e", 5, 500, 540], ["w", 2], ["e", 1, 220, 460], ["e", 1, 220, 540], ["e", 1, 160, 460], ["e", 1, 160, 540], ["e", 1, 100, 540], ["e", 1, 100, 460], ["e", 1, 40, 460], ["e", 1, 40, 540], ["w", 2], ["e", 1, 960, 460], ["e", 1, 960, 540], ["e", 1, 900, 540], ["e", 1, 900, 460], ["e", 1, 840, 460], ["e", 1, 840, 540], ["e", 1, 780, 540], ["e", 1, 780, 460], ["w", 2], ["e", 1, 500, 100], ["e", 1, 500, 900], ["w", 2], ["e", 1, 500, 660], ["e", 1, 500, 340], ["w", 2], ["e", 1, 40, 540], ["e", 1, 40, 460], ["w", 2], ["e", 1, 960, 460], ["e", 1, 960, 540], ["w", 2], ["e", 3, 300, 500], ["e", 3, 700, 500], ["w", 2], ["e", 3, 500, 500], ["w", 2], ["e", 3, 40, 600], ["w", 2], ["e", 3, 840, 160], ["w", 2], ["e", 3, 500, 500], ["w", 5], ["e", 1, 40, 540], ["e", 1, 40, 600], ["e", 1, 40, 660], ["e", 1, 40, 720], ["e", 1, 40, 780], ["e", 1, 40, 840], ["e", 1, 40, 900], ["e", 1, 40, 960], ["e", 1, 100, 960], ["e", 1, 160, 960], ["e", 1, 220, 960], ["e", 1, 280, 960], ["e", 1, 340, 960], ["e", 1, 400, 960], ["e", 1, 450, 960], ["e", 1, 450, 900], ["e", 1, 450, 840], ["e", 1, 450, 780], ["e", 1, 450, 720], ["e", 1, 450, 660], ["e", 1, 450, 600], ["e", 1, 450, 540], ["e", 1, 400, 540], ["e", 1, 340, 540], ["e", 1, 280, 540], ["e", 1, 220, 540], ["e", 1, 160, 540], ["e", 1, 100, 540], ["e", 1, 100, 600], ["e", 1, 400, 900], ["e", 1, 100, 900], ["e", 1, 400, 600], ["e", 2, 220, 720], ["e", 2, 280, 780], ["e", 3, 220, 780], ["e", 4, 280, 720], ["e", 5, 900, 100], ["p", 2, 160, 840]]);
_global.levels.push([["e", 1, 40, 100], ["e", 1, 40, 160], ["e", 1, 100, 40], ["e", 1, 160, 40], ["e", 1, 40, 840], ["e", 1, 40, 900], ["e", 1, 100, 960], ["e", 1, 160, 960], ["e", 1, 900, 960], ["e", 1, 840, 960], ["e", 1, 960, 900], ["e", 1, 960, 840], ["e", 1, 960, 100], ["e", 1, 960, 160], ["e", 1, 900, 40], ["e", 1, 840, 40], ["e", 5, 40, 40], ["e", 5, 960, 40], ["e", 5, 960, 960], ["e", 5, 40, 960], ["p", 2, 500, 500], ["p", 1, 300, 500], ["p", 1, 700, 500], ["w", 6], ["e", 2, 280, 540], ["e", 2, 280, 460], ["e", 2, 720, 460], ["e", 2, 720, 540], ["e", 2, 450, 600], ["e", 2, 500, 600], ["e", 2, 550, 600], ["e", 2, 450, 400], ["e", 2, 500, 400], ["e", 2, 550, 400], ["w", 6], ["e", 3, 100, 900], ["e", 3, 160, 900], ["e", 3, 220, 900], ["e", 3, 100, 840], ["e", 3, 100, 780], ["e", 4, 100, 160], ["e", 4, 100, 100], ["e", 4, 160, 100], ["e", 4, 220, 100], ["e", 4, 100, 220], ["e", 5, 900, 900], ["e", 5, 900, 100], ["w", 6], ["e", 5, 40, 40], ["e", 5, 40, 960], ["e", 5, 40, 540], ["e", 5, 40, 460], ["w", 6], ["e", 5, 40, 460], ["e", 5, 40, 540], ["w", 6], ["e", 5, 40, 460], ["e", 5, 40, 540], ["w", 6], ["e", 5, 960, 460], ["e", 5, 500, 40], ["e", 5, 500, 960], ["w", 6], ["e", 1, 500, 100], ["e", 1, 450, 160], ["e", 1, 550, 160], ["e", 1, 400, 220], ["e", 1, 600, 220], ["e", 1, 340, 280], ["e", 1, 660, 280], ["e", 1, 280, 340], ["e", 1, 720, 340], ["e", 1, 220, 400], ["e", 1, 780, 400], ["e", 1, 160, 460], ["e", 1, 840, 460], ["e", 1, 160, 540], ["e", 1, 840, 540], ["e", 1, 280, 540], ["e", 1, 720, 540], ["e", 1, 400, 540], ["e", 1, 600, 540], ["e", 1, 500, 540], ["e", 1, 500, 500], ["e", 1, 500, 460], ["p", 2, 500, 160], ["e", 2, 500, 220], ["e", 2, 450, 220], ["e", 2, 550, 220], ["w", 15], ["e", 3, 100, 900], ["e", 3, 900, 900], ["e", 3, 900, 100], ["e", 3, 100, 100], ["e", 2, 500, 500], ["e", 1, 450, 540], ["e", 1, 550, 460], ["e", 1, 450, 460], ["e", 1, 550, 540], ["e", 1, 40, 460], ["e", 1, 40, 540], ["e", 1, 960, 460], ["e", 1, 960, 540], ["e", 5, 500, 540], ["e", 5, 500, 460], ["w", 15], ["e", 5, 40, 40], ["e", 5, 100, 100], ["e", 5, 960, 40], ["e", 5, 900, 100], ["e", 4, 40, 960], ["e", 4, 40, 900], ["e", 4, 100, 900], ["e", 4, 100, 960], ["e", 4, 900, 960], ["e", 4, 900, 900], ["e", 4, 960, 900], ["e", 4, 960, 960], ["p", 1, 500, 500], ["w", 9], ["e", 3, 220, 780], ["e", 3, 160, 720], ["e", 3, 100, 660], ["e", 3, 40, 600], ["e", 3, 280, 840], ["e", 3, 340, 900], ["e", 3, 400, 960], ["e", 2, 40, 660], ["e", 2, 100, 720], ["e", 2, 160, 780], ["e", 2, 220, 840], ["e", 2, 280, 900], ["e", 2, 340, 960], ["e", 1, 40, 720], ["e", 1, 100, 780], ["e", 1, 160, 840], ["e", 1, 220, 900], ["e", 1, 280, 960], ["e", 1, 220, 960], ["e", 1, 160, 900], ["e", 1, 100, 840], ["e", 1, 40, 780], ["e", 1, 40, 840], ["e", 1, 100, 900], ["e", 1, 160, 960], ["e", 1, 100, 960], ["e", 1, 40, 900], ["e", 1, 40, 960], ["e", 5, 280, 720], ["w", 15], ["e", 5, 500, 500], ["w", 3], ["e", 5, 500, 500], ["w", 3], ["e", 5, 300, 500], ["w", 3], ["e", 5, 700, 500], ["w", 3], ["e", 5, 500, 500], ["p", 1, 300, 500], ["p", 1, 700, 500], ["w", 3], ["e", 1, 40, 40], ["e", 1, 40, 100], ["e", 1, 100, 100], ["e", 1, 100, 40], ["e", 1, 900, 40], ["e", 1, 900, 100], ["e", 1, 960, 100], ["e", 1, 960, 40], ["e", 1, 900, 960], ["e", 1, 900, 900], ["e", 1, 960, 900], ["e", 1, 960, 960], ["e", 5, 40, 960], ["e", 5, 100, 900], ["e", 5, 40, 900], ["e", 5, 100, 960], ["w", 3], ["e", 5, 500, 540], ["w", 3], ["e", 5, 500, 460], ["w", 3], ["e", 5, 500, 280], ["w", 3], ["e", 5, 500, 780], ["w", 3], ["e", 5, 160, 780], ["w", 3], ["e", 5, 840, 160], ["w", 3], ["e", 5, 780, 840], ["w", 3], ["e", 1, 340, 400], ["e", 1, 500, 400], ["e", 1, 660, 400], ["w", 3], ["e", 1, 280, 660], ["e", 1, 500, 660], ["e", 1, 550, 660], ["e", 1, 450, 660], ["e", 1, 720, 660], ["w", 3], ["e", 1, 40, 960], ["e", 1, 100, 960], ["e", 1, 160, 960], ["e", 1, 960, 960], ["e", 1, 900, 960], ["e", 1, 840, 960], ["w", 3], ["e", 1, 500, 40], ["e", 1, 450, 100], ["e", 1, 500, 100], ["e", 1, 550, 100], ["e", 3, 500, 160], ["e", 4, 500, 500], ["w", 3], ["e", 4, 500, 500], ["e", 4, 450, 460], ["e", 4, 550, 540], ["e", 4, 550, 460], ["e", 4, 450, 540], ["w", 3], ["e", 4, 500, 500], ["w", 3], ["e", 4, 450, 540], ["e", 4, 500, 500], ["e", 4, 550, 460], ["e", 4, 450, 460], ["e", 4, 550, 540], ["w", 3], ["e", 4, 500, 500], ["w", 3], ["e", 1, 100, 280], ["e", 1, 100, 220], ["e", 1, 100, 160], ["e", 1, 100, 100], ["e", 1, 160, 100], ["e", 1, 220, 160], ["e", 1, 160, 220], ["e", 1, 220, 280], ["e", 1, 160, 340], ["e", 1, 100, 340], ["e", 1, 340, 340], ["e", 1, 340, 280], ["e", 1, 340, 220], ["e", 1, 340, 160], ["e", 1, 340, 100], ["e", 1, 400, 100], ["e", 1, 450, 100], ["e", 1, 450, 160], ["e", 1, 450, 220], ["e", 1, 450, 280], ["e", 1, 450, 340], ["e", 1, 400, 340], ["e", 1, 550, 100], ["e", 1, 600, 100], ["e", 1, 660, 100], ["e", 1, 550, 160], ["e", 1, 600, 220], ["e", 1, 660, 220], ["e", 1, 660, 280], ["e", 1, 660, 340], ["e", 1, 600, 340], ["e", 1, 550, 340], ["e", 1, 550, 220], ["e", 1, 780, 100], ["e", 1, 840, 100], ["e", 1, 900, 100], ["e", 1, 780, 160], ["e", 1, 780, 220], ["e", 1, 840, 220], ["e", 1, 900, 220], ["e", 1, 900, 280], ["e", 1, 900, 340], ["e", 1, 840, 340], ["e", 1, 780, 340], ["w", 10], ["e", 1, 300, 500], ["e", 1, 340, 460], ["e", 1, 400, 400], ["e", 1, 450, 340], ["e", 1, 500, 280], ["e", 1, 550, 340], ["e", 1, 600, 400], ["e", 1, 660, 460], ["e", 1, 700, 500], ["e", 1, 660, 540], ["e", 1, 600, 600], ["e", 1, 550, 660], ["e", 1, 500, 720], ["e", 1, 450, 660], ["e", 1, 340, 540], ["e", 1, 400, 600], ["e", 6, 500, 500], ["p", 2, 160, 840], ["p", 2, 840, 160], ["w", 25], ["p", 1, 500, 500]]);
Frame 4 (1.34 KiB) ●
function givescale(distance) {
newscale = (((distance - 120) * 115) / -120) + 20;
if (newscale < 20) {
newscale = 20;
}
return(newscale);
}
stop();
_root._quality = "HIGH";
if (nplays == undefined) {
nplays = false;
}
cframe = this._currentframe;
stardelay = 3;
sdelay = 0;
sspeedmin = 10;
sspeedmax = 18;
sspeedmin2 = 3;
sspeedmax2 = 6;
stari = 0;
mainsound = new Sound(_root.snd_music);
mainsound.attachSound("NG66453");
mainsound.setVolume(_global.volume_music);
mainsound.start(_global.moffset, 9999);
_root.onEnterFrame = function () {
if (cframe == this._currentframe) {
sdelay--;
if (sdelay < 0) {
stari++;
_root.starhold.attachMovie("m_efx_star", "star_" + stari, stari, {_x:-20, _y:random(481), spd:sspeedmin + random(sspeedmax - sspeedmin), _rotation:random(361)});
_root.starhold["star_" + stari].onEnterFrame = function () {
this._x = this._x + this.spd;
if (this._x > 700) {
this.removeMovieClip();
}
};
sdelay = stardelay;
}
p = 1;
while (p < 6) {
_root["p" + p]._xscale = _root["p" + p]._xscale + ((givescale(Math.abs(_root["p" + p]._y - _root._ymouse)) - _root["p" + p]._xscale) / 10);
_root["p" + p]._yscale = _root["p" + p]._yscale + ((givescale(Math.abs(_root["p" + p]._y - _root._ymouse)) - _root["p" + p]._yscale) / 10);
p++;
}
}
};
Frame 5 (1.41 KiB) ●
stop();
mainsound = new Sound(_root.snd_music);
mainsound.attachSound("NG66453");
mainsound.setVolume(_global.volume_music);
mainsound.start(_global.moffset, 9999);
var slitz_data = SharedObject.getLocal("slitz_armorstudios", "/");
switch (_global.gdetail) {
case 1 :
dt1.gotoAndStop(2);
break;
case 2 :
dt2.gotoAndStop(2);
break;
case 3 :
dt3.gotoAndStop(2);
break;
case 4 :
dt4.gotoAndStop(2);
break;
default :
trace("NO GDETAIL");
}
switch (_global.aa) {
case "LOW" :
aa1.gotoAndStop(2);
break;
case "MEDIUM" :
aa2.gotoAndStop(2);
break;
case "HIGH" :
aa3.gotoAndStop(2);
break;
}
if (_global.parallax) {
pa2.gotoAndStop(2);
} else {
pa1.gotoAndStop(2);
}
if (_global.effectsd == "high") {
ef2.gotoAndStop(2);
} else {
ef1.gotoAndStop(2);
}
if (_global.music_type == "stand") {
mt1.gotoAndStop(2);
} else {
mt2.gotoAndStop(2);
}
var mprops = [0, 25, 40, 50, 60, 70, 75, 85, 100];
u = 0;
while (u < 9) {
if (slitz_data.data.volume_music == mprops[u]) {
_root["m" + mprops[u]].gotoAndStop(2);
}
if (slitz_data.data.volume_efx == mprops[u]) {
_root["e" + mprops[u]].gotoAndStop(2);
}
u++;
}
if (_global.gdetail < 4) {
aa1._visible = false;
aa2._visible = false;
aa3._visible = false;
pa1._visible = false;
pa2._visible = false;
ef1._visible = false;
ef2._visible = false;
customize._alpha = 40;
}
Frame 6 (169 B)
stop();
mainsound = new Sound(_root.snd_music);
mainsound.attachSound("NG66453");
mainsound.setVolume(_global.volume_music);
mainsound.start(_global.moffset, 9999);
Frame 7 (169 B)
stop();
mainsound = new Sound(_root.snd_music);
mainsound.attachSound("NG66453");
mainsound.setVolume(_global.volume_music);
mainsound.start(_global.moffset, 9999);
Frame 8 (175 B)
stop();
p1box.text = _global.name_player1;
p2box.text = _global.name_player2;
if (_global.playermode == "single") {
multi1._visible = false;
p2box._visible = false;
}
Frame 9 (105.64 KiB) ● ● ● ●
function addbullet(xpos, ypos, angle, author) {
_root.lvl_bullets++;
_root.game.arena.attachMovie("game_bullet", "blt_" + _root.lvl_bullets, _root.lvl_bullets, {_x:xpos, _y:ypos, _rotation:angle, langle:angle, spd:11, dad:author});
_root.game.arena["blt_" + _root.lvl_bullets].onEnterFrame = function () {
if (!_global.paused) {
this._x = this._x + (this.spd * Math.cos(this.langle * (Math.PI/180)));
this._y = this._y + (this.spd * Math.sin(this.langle * (Math.PI/180)));
this.p1dist = Math.sqrt(Math.pow(_root.game.arena.p_ship._x - this._x, 2) + Math.pow(_root.game.arena.p_ship._y - this._y, 2));
if (this.p1dist < 24) {
this.ncalc3x = this.p1dist * Math.cos(this.langle * (Math.PI/180));
this.ncalc3y = this.p1dist * Math.sin(this.langle * (Math.PI/180));
if (((this._x + this.ncalc3x) != _root.game.arena.p_ship._x) || ((this._y + this.ncalc3y) != _root.game.arena.p_ship._y)) {
this.diffangle = 0;
this.diffangle = Math.atan2((-this._y) + _root.game.arena.p_ship._y, (-this._x) + _root.game.arena.p_ship._x) * 57.2957795130823;
if (((this.diffangle - this.langle) < 0) || ((this.diffangle - this.langle) > 180)) {
this.toturn = -Math.abs(((this.langle - 180) - this.diffangle) / 180);
if (this.toturn < -5) {
this.toturn = -5;
}
_root.player1.speed_angle = _root.player1.speed_angle + this.toturn;
} else {
this.toturn = Math.abs(((this.langle - 180) - this.diffangle) / 180);
if (this.toturn > 5) {
this.toturn = 5;
}
_root.player1.speed_angle = _root.player1.speed_angle + this.toturn;
}
}
_root.player1.speed_x = _root.player1.speed_x + ((this.spd * Math.cos(this.langle * (Math.PI/180))) / 4);
_root.player1.speed_y = _root.player1.speed_y + ((this.spd * Math.sin(this.langle * (Math.PI/180))) / 4);
this.removeMovieClip();
}
if (_root.game.arena.p2_ship._x != undefined) {
this.p2dist = Math.sqrt(Math.pow(_root.game.arena.p2_ship._x - this._x, 2) + Math.pow(_root.game.arena.p2_ship._y - this._y, 2));
if (this.p2dist < 24) {
this.ncalc3x = this.p2dist * Math.cos(this.langle * (Math.PI/180));
this.ncalc3y = this.p2dist * Math.sin(this.langle * (Math.PI/180));
if (((this._x + this.ncalc3x) != _root.game.arena.p2_ship._x) || ((this._y + this.ncalc3y) != _root.game.arena.p2_ship._y)) {
this.diffangle = 0;
this.diffangle = Math.atan2((-this._y) + _root.game.arena.p2_ship._y, (-this._x) + _root.game.arena.p2_ship._x) * 57.2957795130823;
if (((this.diffangle - this.langle) < 0) || ((this.diffangle - this.langle) > 180)) {
this.toturn = -Math.abs(((this.langle - 180) - this.diffangle) / 180);
if (this.toturn < -5) {
this.toturn = -5;
}
_root.player2.speed_angle = _root.player2.speed_angle + this.toturn;
} else {
this.toturn = Math.abs(((this.langle - 180) - this.diffangle) / 180);
if (this.toturn > 5) {
this.toturn = 5;
}
_root.player2.speed_angle = _root.player2.speed_angle + this.toturn;
}
}
_root.player2.speed_x = _root.player2.speed_x + ((this.spd * Math.cos(this.langle * (Math.PI/180))) / 4);
_root.player2.speed_y = _root.player2.speed_y + ((this.spd * Math.sin(this.langle * (Math.PI/180))) / 4);
this.removeMovieClip();
}
}
this.enII = 0;
while (this.enII < _root.enemies_array.length) {
if (_root.game.arena["enemy_" + _root.enemies_array[this.enII]]._x != undefined) {
this.endist = Math.sqrt(Math.pow(this._x - _root.game.arena["enemy_" + _root.enemies_array[this.enII]]._x, 2) + Math.pow(this._y - _root.game.arena["enemy_" + _root.enemies_array[this.enII]]._y, 2));
if ((this.endist < 40) && (_root.game.arena["enemy_" + _root.enemies_array[this.enII]].boss == true)) {
this.ncalc3x = this.endist * Math.cos(this.langle * (Math.PI/180));
this.ncalc3y = this.endist * Math.sin(this.langle * (Math.PI/180));
if (((this._x + this.ncalc3x) != _root.game.arena["enemy_" + _root.enemies_array[this.enII]]._x) || ((this._y + this.ncalc3y) != _root.game.arena["enemy_" + _root.enemies_array[this.enII]]._y)) {
this.diffangle = 0;
this.diffangle = Math.atan2((-this._y) + _root.game.arena["enemy_" + _root.enemies_array[this.enII]]._y, (-this._x) + _root.game.arena["enemy_" + _root.enemies_array[this.enII]]._x) * 57.2957795130823;
if (((this.diffangle - this.langle) < 0) || ((this.diffangle - this.langle) > 180)) {
this.toturn = -Math.abs(((this.langle - 180) - this.diffangle) / 180);
if (this.toturn < -5) {
this.toturn = -5;
}
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].langle_speed = _root.game.arena["enemy_" + _root.enemies_array[this.enII]].langle_speed + this.toturn;
} else {
this.toturn = Math.abs(((this.langle - 180) - this.diffangle) / 180);
if (this.toturn > 5) {
this.toturn = 5;
}
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].langle_speed = _root.game.arena["enemy_" + _root.enemies_array[this.enII]].langle_speed + this.toturn;
}
}
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].ad_x = _root.game.arena["enemy_" + _root.enemies_array[this.enII]].ad_x + ((this.spd * Math.cos(this.langle * (Math.PI/180))) / 35);
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].ad_y = _root.game.arena["enemy_" + _root.enemies_array[this.enII]].ad_y + ((this.spd * Math.sin(this.langle * (Math.PI/180))) / 35);
if (!_root.game.arena["enemy_" + _root.enemies_array[this.enII]].shield) {
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].life--;
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].frag = this.dad;
}
this.removeMovieClip();
} else if (this.endist < 22) {
this.ncalc3x = this.endist * Math.cos(this.langle * (Math.PI/180));
this.ncalc3y = this.endist * Math.sin(this.langle * (Math.PI/180));
if (((this._x + this.ncalc3x) != _root.game.arena["enemy_" + _root.enemies_array[this.enII]]._x) || ((this._y + this.ncalc3y) != _root.game.arena["enemy_" + _root.enemies_array[this.enII]]._y)) {
this.diffangle = 0;
this.diffangle = Math.atan2((-this._y) + _root.game.arena["enemy_" + _root.enemies_array[this.enII]]._y, (-this._x) + _root.game.arena["enemy_" + _root.enemies_array[this.enII]]._x) * 57.2957795130823;
if (((this.diffangle - this.langle) < 0) || ((this.diffangle - this.langle) > 180)) {
this.toturn = -Math.abs(((this.langle - 180) - this.diffangle) / 180);
if (this.toturn < -5) {
this.toturn = -5;
}
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].langle_speed = _root.game.arena["enemy_" + _root.enemies_array[this.enII]].langle_speed + this.toturn;
} else {
this.toturn = Math.abs(((this.langle - 180) - this.diffangle) / 180);
if (this.toturn > 5) {
this.toturn = 5;
}
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].langle_speed = _root.game.arena["enemy_" + _root.enemies_array[this.enII]].langle_speed + this.toturn;
}
}
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].ad_x = _root.game.arena["enemy_" + _root.enemies_array[this.enII]].ad_x + ((this.spd * Math.cos(this.langle * (Math.PI/180))) / 3);
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].ad_y = _root.game.arena["enemy_" + _root.enemies_array[this.enII]].ad_y + ((this.spd * Math.sin(this.langle * (Math.PI/180))) / 3);
if (_root.game.arena["enemy_" + _root.enemies_array[this.enII]].isenergy) {
_root.lvl_sounds++;
_root.bouncefactor = 1 + random(2);
_root.game.sounds["s_" + _root.lvl_sounds] = new Sound(_root.snd_efx);
_root.game.sounds["s_" + _root.lvl_sounds].setVolume(_global.volume_efx);
_root.game.sounds["s_" + _root.lvl_sounds].attachSound("energy_bounce" + _root.bouncefactor);
_root.game.sounds["s_" + _root.lvl_sounds].start(0, 0);
if (_root.lvl_sounds > _root.lvl_sounds_max) {
_root.lvl_sounds = 0;
}
} else {
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].life--;
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].frag = this.dad;
}
this.removeMovieClip();
}
}
this.enII++;
}
if ((((this._x < 0) || (this._y < 0)) || (this._x > 1000)) || (this._y > 1000)) {
this.removeMovieClip();
}
}
};
if (_root.lvl_bullets >= _root.lvl_bullets_max) {
_root.lvl_bullets = 3000;
}
}
function enemybullet(xpos, ypos, angle) {
_root.lvl_bullets++;
_root.game.arena.attachMovie("game_bullet2", "eblt_" + _root.lvl_bullets, _root.lvl_bullets, {_x:xpos, _y:ypos, _rotation:angle, langle:angle, spd:7});
_root.game.arena["eblt_" + _root.lvl_bullets].onEnterFrame = function () {
if (!_global.paused) {
this._x = this._x + (this.spd * Math.cos(this.langle * (Math.PI/180)));
this._y = this._y + (this.spd * Math.sin(this.langle * (Math.PI/180)));
this.p1dist = Math.sqrt(Math.pow(_root.game.arena.p_ship._x - this._x, 2) + Math.pow(_root.game.arena.p_ship._y - this._y, 2));
if (this.p1dist < 24) {
this.ncalc3x = this.p1dist * Math.cos(this.langle * (Math.PI/180));
this.ncalc3y = this.p1dist * Math.sin(this.langle * (Math.PI/180));
if (((this._x + this.ncalc3x) != _root.game.arena.p_ship._x) || ((this._y + this.ncalc3y) != _root.game.arena.p_ship._y)) {
this.diffangle = 0;
this.diffangle = Math.atan2((-this._y) + _root.game.arena.p_ship._y, (-this._x) + _root.game.arena.p_ship._x) * 57.2957795130823;
if (((this.diffangle - this.langle) < 0) || ((this.diffangle - this.langle) > 180)) {
this.toturn = -Math.abs(((this.langle - 180) - this.diffangle) / 180);
if (this.toturn < -5) {
this.toturn = -5;
}
_root.player1.speed_angle = _root.player1.speed_angle + this.toturn;
} else {
this.toturn = Math.abs(((this.langle - 180) - this.diffangle) / 180);
if (this.toturn > 5) {
this.toturn = 5;
}
_root.player1.speed_angle = _root.player1.speed_angle + this.toturn;
}
}
_root.player1.speed_x = _root.player1.speed_x + ((this.spd * Math.cos(this.langle * (Math.PI/180))) / 4);
_root.player1.speed_y = _root.player1.speed_y + ((this.spd * Math.sin(this.langle * (Math.PI/180))) / 4);
if (!_root.player1.fainted) {
_root.player1.health = _root.player1.health - 5;
}
this.removeMovieClip();
}
if (_root.game.arena.p2_ship._x != undefined) {
this.p2dist = Math.sqrt(Math.pow(_root.game.arena.p2_ship._x - this._x, 2) + Math.pow(_root.game.arena.p2_ship._y - this._y, 2));
if (this.p2dist < 24) {
this.ncalc3x = this.p2dist * Math.cos(this.langle * (Math.PI/180));
this.ncalc3y = this.p2dist * Math.sin(this.langle * (Math.PI/180));
if (((this._x + this.ncalc3x) != _root.game.arena.p2_ship._x) || ((this._y + this.ncalc3y) != _root.game.arena.p2_ship._y)) {
this.diffangle = 0;
this.diffangle = Math.atan2((-this._y) + _root.game.arena.p2_ship._y, (-this._x) + _root.game.arena.p2_ship._x) * 57.2957795130823;
if (((this.diffangle - this.langle) < 0) || ((this.diffangle - this.langle) > 180)) {
this.toturn = -Math.abs(((this.langle - 180) - this.diffangle) / 180);
if (this.toturn < -5) {
this.toturn = -5;
}
_root.player2.speed_angle = _root.player2.speed_angle + this.toturn;
} else {
this.toturn = Math.abs(((this.langle - 180) - this.diffangle) / 180);
if (this.toturn > 5) {
this.toturn = 5;
}
_root.player2.speed_angle = _root.player2.speed_angle + this.toturn;
}
}
_root.player2.speed_x = _root.player2.speed_x + ((this.spd * Math.cos(this.langle * (Math.PI/180))) / 4);
_root.player2.speed_y = _root.player2.speed_y + ((this.spd * Math.sin(this.langle * (Math.PI/180))) / 4);
if (!_root.player2.fainted) {
_root.player2.health = _root.player2.health - 5;
}
this.removeMovieClip();
}
}
this.enII = 0;
while (this.enII < _root.enemies_array.length) {
if (_root.game.arena["enemy_" + _root.enemies_array[this.enII]]._x != undefined) {
this.endist = Math.sqrt(Math.pow(this._x - _root.game.arena["enemy_" + _root.enemies_array[this.enII]]._x, 2) + Math.pow(this._y - _root.game.arena["enemy_" + _root.enemies_array[this.enII]]._y, 2));
if (this.endist < 22) {
if (_root.game.arena["enemy_" + _root.enemies_array[this.enII]].isenergy) {
if (_root.game.arena["enemy_" + _root.enemies_array[this.enII]]._x < this._x) {
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].ad_x--;
} else {
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].ad_x++;
}
if (_root.game.arena["enemy_" + _root.enemies_array[this.enII]]._y < this._y) {
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].ad_y--;
} else {
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].ad_y++;
}
_root.lvl_sounds++;
_root.bouncefactor = 1 + random(2);
_root.game.sounds["s_" + _root.lvl_sounds] = new Sound(_root.snd_efx);
_root.game.sounds["s_" + _root.lvl_sounds].setVolume(_global.volume_efx);
_root.game.sounds["s_" + _root.lvl_sounds].attachSound("energy_bounce" + _root.bouncefactor);
_root.game.sounds["s_" + _root.lvl_sounds].start(0, 0);
if (_root.lvl_sounds > _root.lvl_sounds_max) {
_root.lvl_sounds = 0;
}
}
this.removeMovieClip();
}
}
this.enII++;
}
if ((((this._x < 0) || (this._y < 0)) || (this._x > 1000)) || (this._y > 1000)) {
this.removeMovieClip();
}
}
};
if (_root.lvl_bullets >= _root.lvl_bullets_max) {
_root.lvl_bullets = 3000;
}
}
function addenemy(xpos, ypos, type) {
_root.lvl_enemies++;
_root.enemies_online++;
_root.enemies_array.push(_root.lvl_enemies);
_root.radar.radar.attachMovie("game_radar_enemy", "r_" + _root.lvl_enemies, _root.lvl_enemies, {_x:xpos * 0.14, _y:ypos * 0.14});
switch (type) {
case 1 :
_root.game.arena.attachMovie("game_enemy1", "enemy_" + lvl_enemies, lvl_enemies, {_x:xpos, _y:ypos, spd:2, spd_max:4, langle:(-random(181)) + random(181), target:"p_ship", delay:200, delay_max:500, life:1, id:_root.lvl_enemies});
_root.game.arena["enemy_" + lvl_enemies].onEnterFrame = function () {
if (!_global.paused) {
_root.radar.radar["r_" + this.getDepth()]._x = this._x * 0.14;
_root.radar.radar["r_" + this.getDepth()]._y = this._y * 0.14;
this.delay--;
if (this.delay <= 0) {
this.spd = 1 + random(this.spd_max);
this.langle = (-random(181)) + random(181);
this.delay = this.delay_max;
}
this.gofor = 1;
if (_root.game.arena.p_ship._x != undefined) {
this.dist_player1 = Math.sqrt(Math.pow(_root.game.arena.p_ship._x - this._x, 2) + Math.pow(_root.game.arena.p_ship._y - this._y, 2));
} else {
this.dist_player1 = 11000;
}
if (_root.game.arena.p2_ship._x != undefined) {
this.dist_player2 = Math.sqrt(Math.pow(_root.game.arena.p2_ship._x - this._x, 2) + Math.pow(_root.game.arena.p2_ship._y - this._y, 2));
} else {
this.dist_player2 = 10000;
}
if (this.dist_player2 < this.dist_player1) {
this.gofor = 2;
}
if (this.gofor == 1) {
if (this.dist_player1 < 330) {
if (!_root.player1.fainted) {
this.langle = 57.2957795130823 * Math.atan2((-this._y) + _root.game.arena.p_ship._y, (-this._x) + _root.game.arena.p_ship._x);
}
if (this.dist_player1 < 30) {
if ((this.life > 0) && (!_root.player1.fainted)) {
_root.player1.health = _root.player1.health - 7;
}
_root.player1.speed_x = _root.player1.speed_x + (this.spd * Math.cos(this.langle * (Math.PI/180)));
_root.player1.speed_y = _root.player1.speed_y + (this.spd * Math.sin(this.langle * (Math.PI/180)));
}
}
} else if (this.dist_player2 < 330) {
if (!_root.player2.fainted) {
this.langle = 57.2957795130823 * Math.atan2((-this._y) + _root.game.arena.p2_ship._y, (-this._x) + _root.game.arena.p2_ship._x);
}
if (this.dist_player2 < 30) {
if ((this.life > 0) && (!_root.player2.fainted)) {
_root.player2.health = _root.player2.health - 7;
}
_root.player2.speed_x = _root.player2.speed_x + (this.spd * Math.cos(this.langle * (Math.PI/180)));
_root.player2.speed_y = _root.player2.speed_y + (this.spd * Math.sin(this.langle * (Math.PI/180)));
}
}
if (this.life <= 0) {
this.explfactor = 1 + random(3);
_root.lvl_sounds++;
_root.game.sounds["s_" + _root.lvl_sounds] = new Sound(_root.snd_efx);
_root.game.sounds["s_" + _root.lvl_sounds].setVolume(_global.volume_efx);
_root.game.sounds["s_" + _root.lvl_sounds].attachSound("expld" + this.explfactor);
_root.game.sounds["s_" + _root.lvl_sounds].start(0, 0);
if (_root.lvl_sounds > _root.lvl_sounds_max) {
_root.lvl_sounds = 0;
}
_root.lvl_partsfx++;
_root.game.arena.attachMovie("game_efx_explode1", "efx_" + _root.lvl_partsfx, _root.lvl_partsfx, {_x:this._x, _y:this._y});
if (_root.lvl_partsfx > _root.lvl_partsfx_max) {
_root.lvl_partsfx = 8000;
}
this.find_id = 0;
while (this.find_id < _root.enemies_array.length) {
if (_root.enemies_array[this.find_id] == this.id) {
this.arstart = _root.enemies_array.slice(0, this.find_id);
this.arend = _root.enemies_array.slice(this.find_id + 1);
_root.enemies_array = new Array();
if (this.arstart.length > 0) {
_root.enemies_array = _root.enemies_array.concat(this.arstart);
}
if (this.arend.length > 0) {
_root.enemies_array = _root.enemies_array.concat(this.arend);
}
break;
}
this.find_id++;
}
if (this.frag == 1) {
_root.player1.score = _root.player1.score + 25;
} else if (this.frag == 2) {
_root.player2.score = _root.player2.score + 25;
}
_root.enemies_online--;
_root.radar.radar["r_" + this.getDepth()].removeMovieClip();
this.removeMovieClip();
}
this._rotation = this.langle;
if ((this._x - 18) < 0) {
this.langle = this.langle + 5;
this._x = this._x + this.spd;
}
if ((this._x + 18) > 1000) {
this.langle = this.langle + 5;
this._x = this._x - this.spd;
}
if ((this._y - 18) < 0) {
this.langle = this.langle + 5;
this._y = this._y + this.spd;
}
if ((this._y + 18) > 1000) {
this.langle = this.langle + 5;
this._y = this._y - this.spd;
}
this._x = this._x + (this.spd * Math.cos(this.langle * (Math.PI/180)));
this._y = this._y + (this.spd * Math.sin(this.langle * (Math.PI/180)));
}
};
break;
case 2 :
_root.game.arena.attachMovie("game_enemy2", "enemy_" + lvl_enemies, lvl_enemies, {_x:xpos, _y:ypos, spd:3, spd_max:3, langle:(-random(181)) + random(181), dangle:(-random(181)) + random(181), langle_speed:0, langle_speed_max:4, target:"p2_ship", delay:200, delay_max:300, life:3 + random(2), id:_root.lvl_enemies, gundelay:0, gundelay_max:17, ad_x:0, ad_y:0});
_root.game.arena["enemy_" + lvl_enemies].onEnterFrame = function () {
if (!_global.paused) {
_root.radar.radar["r_" + this.getDepth()]._x = this._x * 0.14;
_root.radar.radar["r_" + this.getDepth()]._y = this._y * 0.14;
this.delay--;
this.gundelay--;
if (this.delay <= 0) {
this.spd = 2 + random(this.spd_max - 1);
this.dangle = (-random(181)) + random(181);
this.delay = this.delay_max;
}
this.gofor = 1;
if (_root.game.arena.p_ship._x != undefined) {
this.dist_player1 = Math.sqrt(Math.pow(_root.game.arena.p_ship._x - this._x, 2) + Math.pow(_root.game.arena.p_ship._y - this._y, 2));
} else {
this.dist_player1 = 11000;
}
if (_root.game.arena.p2_ship._x != undefined) {
this.dist_player2 = Math.sqrt(Math.pow(_root.game.arena.p2_ship._x - this._x, 2) + Math.pow(_root.game.arena.p2_ship._y - this._y, 2));
} else {
this.dist_player2 = 10000;
}
if (this.dist_player2 < this.dist_player1) {
this.gofor = 2;
}
if (this.gofor == 1) {
if (this.dist_player1 < 190) {
if ((!_root.player1.fainted) && (this.dist_player1 > 110)) {
this.dangle = 57.2957795130823 * Math.atan2((-this._y) + _root.game.arena.p_ship._y, (-this._x) + _root.game.arena.p_ship._x);
}
if (((this.gundelay <= 0) && ((this._rotation - 5) < this.dangle)) && ((this._rotation + 5) > this.dangle)) {
this.xxdx = ((this.spd * Math.cos(this.langle * (Math.PI/180))) + this._x) + (40 * Math.cos(this._rotation * (Math.PI/180)));
this.yydy = ((this.spd * Math.sin(this.langle * (Math.PI/180))) + this._y) + (40 * Math.sin(this._rotation * (Math.PI/180)));
_root.lvl_sounds++;
_root.game.sounds["s_" + _root.lvl_sounds] = new Sound(_root.snd_efx);
_root.game.sounds["s_" + _root.lvl_sounds].setVolume(_global.volume_efx);
_root.game.sounds["s_" + _root.lvl_sounds].attachSound("shoot_enemy");
_root.game.sounds["s_" + _root.lvl_sounds].start(0, 0);
if (_root.lvl_sounds > _root.lvl_sounds_max) {
_root.lvl_sounds = 0;
}
_root.enemybullet(this.xxdx, this.yydy, this._rotation);
this.gundelay = this.gundelay_max;
}
if (this.dist_player1 < 100) {
this.dangle++;
}
if (this.dist_player1 < 70) {
if (this.spd > (-this.spd_max)) {
this.spd--;
}
}
if (this.dist_player1 < 35) {
if ((this.life > 0) && (!_root.player1.fainted)) {
_root.player1.health = _root.player1.health - 3;
this.life--;
}
_root.player1.speed_x = _root.player1.speed_x + ((this.spd * 3) * Math.cos(this.langle * (Math.PI/180)));
_root.player1.speed_y = _root.player1.speed_y + ((this.spd * 3) * Math.sin(this.langle * (Math.PI/180)));
}
}
} else if (this.dist_player2 < 190) {
if ((!_root.player2.fainted) && (this.dist_player2 > 110)) {
this.dangle = 57.2957795130823 * Math.atan2((-this._y) + _root.game.arena.p2_ship._y, (-this._x) + _root.game.arena.p2_ship._x);
}
if (((this.gundelay <= 0) && ((this._rotation - 5) < this.dangle)) && ((this._rotation + 5) > this.dangle)) {
this.xxdx = ((this.spd * Math.cos(this.langle * (Math.PI/180))) + this._x) + (40 * Math.cos(this._rotation * (Math.PI/180)));
this.yydy = ((this.spd * Math.sin(this.langle * (Math.PI/180))) + this._y) + (40 * Math.sin(this._rotation * (Math.PI/180)));
_root.enemybullet(this.xxdx, this.yydy, this._rotation);
this.gundelay = this.gundelay_max;
}
if (this.dist_player2 < 100) {
this.dangle++;
}
if (this.dist_player2 < 70) {
if (this.spd > (-this.spd_max)) {
this.spd--;
}
}
if (this.dist_player2 < 35) {
if ((this.life > 0) && (!_root.player2.fainted)) {
_root.player2.health = _root.player2.health - 3;
this.life--;
}
_root.player2.speed_x = _root.player2.speed_x + ((this.spd * 3) * Math.cos(this.langle * (Math.PI/180)));
_root.player2.speed_y = _root.player2.speed_y + ((this.spd * 3) * Math.sin(this.langle * (Math.PI/180)));
}
}
if (this.dangle > 0) {
if (this._rotation > 0) {
if (this.dangle > this._rotation) {
if (this.langle_speed < this.langle_speed_max) {
this.langle_speed = this.langle_speed + 1;
}
} else if (this.dangle < this._rotation) {
if (this.langle_speed > (-this.langle_speed_max)) {
this.langle_speed = this.langle_speed - 1;
}
}
} else if (this.langle_speed < this.langle_speed_max) {
this.langle_speed = this.langle_speed + 1;
}
} else if (this._rotation < 0) {
if (this.dangle > this._rotation) {
if (this.langle_speed < this.langle_speed_max) {
this.langle_speed = this.langle_speed + 1;
}
} else if (this.dangle < this._rotation) {
if (this.langle_speed > (-this.langle_speed_max)) {
this.langle_speed = this.langle_speed - 1;
}
}
} else if (this.dangle <= -90) {
if (this.langle_speed < this.langle_speed_max) {
this.langle_speed = this.langle_speed + 1;
}
} else if (this.langle_speed > (-this.langle_speed_max)) {
this.langle_speed = this.langle_speed - 1;
}
if (this.life <= 0) {
_root.enemies_online--;
this.explfactor = 1 + random(3);
_root.lvl_sounds++;
_root.game.sounds["s_" + _root.lvl_sounds] = new Sound(_root.snd_efx);
_root.game.sounds["s_" + _root.lvl_sounds].setVolume(_global.volume_efx);
_root.game.sounds["s_" + _root.lvl_sounds].attachSound("expld" + this.explfactor);
_root.game.sounds["s_" + _root.lvl_sounds].start(0, 0);
if (_root.lvl_sounds > _root.lvl_sounds_max) {
_root.lvl_sounds = 0;
}
_root.lvl_partsfx++;
_root.game.arena.attachMovie("game_efx_explode1", "efx_" + _root.lvl_partsfx, _root.lvl_partsfx, {_x:this._x, _y:this._y});
if (_root.lvl_partsfx > _root.lvl_partsfx_max) {
_root.lvl_partsfx = 8000;
}
this.find_id = 0;
while (this.find_id < _root.enemies_array.length) {
if (_root.enemies_array[this.find_id] == this.id) {
this.arstart = _root.enemies_array.slice(0, this.find_id);
this.arend = _root.enemies_array.slice(this.find_id + 1);
_root.enemies_array = new Array();
if (this.arstart.length > 0) {
_root.enemies_array = _root.enemies_array.concat(this.arstart);
}
if (this.arend.length > 0) {
_root.enemies_array = _root.enemies_array.concat(this.arend);
}
break;
}
this.find_id++;
}
if (this.frag == 1) {
_root.player1.score = _root.player1.score + 81;
} else if (this.frag == 2) {
_root.player2.score = _root.player2.score + 81;
}
_root.radar.radar["r_" + this.getDepth()].removeMovieClip();
this.removeMovieClip();
}
this._rotation = this.langle;
if ((this._x - 20) < 0) {
this.langle = this.langle + 5;
this.dangle = this.dangle + 5;
this._x = this._x + 5;
}
if ((this._x + 20) > 1000) {
this.langle = this.langle + 5;
this.dangle = this.dangle + 5;
this._x = this._x - 5;
}
if ((this._y - 20) < 0) {
this.langle = this.langle + 5;
this.dangle = this.dangle + 5;
this._y = this._y + 5;
}
if ((this._y + 20) > 1000) {
this.langle = this.langle + 5;
this.dangle = this.dangle + 5;
this._y = this._y - 5;
}
this.langle = this.langle + this.langle_speed;
this.langle_speed = this.langle_speed * 0.9;
this.ad_x = this.ad_x * 0.9;
this.ad_y = this.ad_y * 0.9;
if (Math.abs(this.langle_speed) < 0.01) {
this.langle_speed = 0;
}
if (Math.abs(this.ad_x) < 0.01) {
this.ad_x = 0;
}
if (Math.abs(this.ad_y) < 0.01) {
this.ad_y = 0;
}
this._x = this._x + ((this.spd * Math.cos(this.langle * (Math.PI/180))) + this.ad_x);
this._y = this._y + ((this.spd * Math.sin(this.langle * (Math.PI/180))) + this.ad_y);
}
};
break;
case 3 :
_root.game.arena.attachMovie("game_enemy3", "enemy_" + lvl_enemies, lvl_enemies, {_x:xpos, _y:ypos, spd:4, spd_max:5, langle:(-random(181)) + random(181), dangle:(-random(181)) + random(181), langle_speed:0, langle_speed_max:6, target:"p2_ship", delay:200, delay_max:300, life:4 + random(2), id:_root.lvl_enemies, gundelay:0, gundelay_max:13, ad_x:0, ad_y:0});
_root.game.arena["enemy_" + lvl_enemies].onEnterFrame = function () {
if (!_global.paused) {
_root.radar.radar["r_" + this.getDepth()]._x = this._x * 0.14;
_root.radar.radar["r_" + this.getDepth()]._y = this._y * 0.14;
this.delay--;
this.gundelay--;
if (this.delay <= 0) {
this.spd = 2 + random(this.spd_max - 1);
this.dangle = (-random(181)) + random(181);
this.delay = this.delay_max;
}
this.gofor = 1;
if (_root.game.arena.p_ship._x != undefined) {
this.dist_player1 = Math.sqrt(Math.pow(_root.game.arena.p_ship._x - this._x, 2) + Math.pow(_root.game.arena.p_ship._y - this._y, 2));
} else {
this.dist_player1 = 11000;
}
if (_root.game.arena.p2_ship._x != undefined) {
this.dist_player2 = Math.sqrt(Math.pow(_root.game.arena.p2_ship._x - this._x, 2) + Math.pow(_root.game.arena.p2_ship._y - this._y, 2));
} else {
this.dist_player2 = 10000;
}
if (this.dist_player2 < this.dist_player1) {
this.gofor = 2;
}
if (this.gofor == 1) {
if (this.dist_player1 < 190) {
if ((!_root.player1.fainted) && (this.dist_player1 > 110)) {
this.dangle = 57.2957795130823 * Math.atan2((-this._y) + _root.game.arena.p_ship._y, (-this._x) + _root.game.arena.p_ship._x);
}
if (((this.gundelay <= 0) && ((this._rotation - 5) < this.dangle)) && ((this._rotation + 5) > this.dangle)) {
this.xxdx = ((this.spd * Math.cos(this.langle * (Math.PI/180))) + this._x) + (40 * Math.cos(this._rotation * (Math.PI/180)));
this.yydy = ((this.spd * Math.sin(this.langle * (Math.PI/180))) + this._y) + (40 * Math.sin(this._rotation * (Math.PI/180)));
_root.lvl_sounds++;
_root.game.sounds["s_" + _root.lvl_sounds] = new Sound(_root.snd_efx);
_root.game.sounds["s_" + _root.lvl_sounds].setVolume(_global.volume_efx);
_root.game.sounds["s_" + _root.lvl_sounds].attachSound("shoot_enemy");
_root.game.sounds["s_" + _root.lvl_sounds].start(0, 0);
if (_root.lvl_sounds > _root.lvl_sounds_max) {
_root.lvl_sounds = 0;
}
_root.enemybullet(this.xxdx, this.yydy, this._rotation);
this.gundelay = this.gundelay_max;
}
if (this.dist_player1 < 100) {
this.dangle++;
}
if (this.dist_player1 < 70) {
if (this.spd > (-this.spd_max)) {
this.spd--;
}
}
if (this.dist_player1 < 35) {
if ((this.life > 0) && (!_root.player1.fainted)) {
_root.player1.health = _root.player1.health - 3;
this.life--;
}
_root.player1.speed_x = _root.player1.speed_x + ((this.spd * 3) * Math.cos(this.langle * (Math.PI/180)));
_root.player1.speed_y = _root.player1.speed_y + ((this.spd * 3) * Math.sin(this.langle * (Math.PI/180)));
}
}
} else if (this.dist_player2 < 190) {
if ((!_root.player2.fainted) && (this.dist_player2 > 110)) {
this.dangle = 57.2957795130823 * Math.atan2((-this._y) + _root.game.arena.p2_ship._y, (-this._x) + _root.game.arena.p2_ship._x);
}
if (((this.gundelay <= 0) && ((this._rotation - 5) < this.dangle)) && ((this._rotation + 5) > this.dangle)) {
this.xxdx = ((this.spd * Math.cos(this.langle * (Math.PI/180))) + this._x) + (40 * Math.cos(this._rotation * (Math.PI/180)));
this.yydy = ((this.spd * Math.sin(this.langle * (Math.PI/180))) + this._y) + (40 * Math.sin(this._rotation * (Math.PI/180)));
_root.enemybullet(this.xxdx, this.yydy, this._rotation);
this.gundelay = this.gundelay_max;
}
if (this.dist_player2 < 100) {
this.dangle++;
}
if (this.dist_player2 < 70) {
if (this.spd > (-this.spd_max)) {
this.spd--;
}
}
if (this.dist_player2 < 35) {
if ((this.life > 0) && (!_root.player2.fainted)) {
_root.player2.health = _root.player2.health - 3;
this.life--;
}
_root.player2.speed_x = _root.player2.speed_x + ((this.spd * 3) * Math.cos(this.langle * (Math.PI/180)));
_root.player2.speed_y = _root.player2.speed_y + ((this.spd * 3) * Math.sin(this.langle * (Math.PI/180)));
}
}
if (this.dangle > 0) {
if (this._rotation > 0) {
if (this.dangle > this._rotation) {
if (this.langle_speed < this.langle_speed_max) {
this.langle_speed = this.langle_speed + 1;
}
} else if (this.dangle < this._rotation) {
if (this.langle_speed > (-this.langle_speed_max)) {
this.langle_speed = this.langle_speed - 1;
}
}
} else if (this.langle_speed < this.langle_speed_max) {
this.langle_speed = this.langle_speed + 1;
}
} else if (this._rotation < 0) {
if (this.dangle > this._rotation) {
if (this.langle_speed < this.langle_speed_max) {
this.langle_speed = this.langle_speed + 1;
}
} else if (this.dangle < this._rotation) {
if (this.langle_speed > (-this.langle_speed_max)) {
this.langle_speed = this.langle_speed - 1;
}
}
} else if (this.dangle <= -90) {
if (this.langle_speed < this.langle_speed_max) {
this.langle_speed = this.langle_speed + 1;
}
} else if (this.langle_speed > (-this.langle_speed_max)) {
this.langle_speed = this.langle_speed - 1;
}
if (this.life <= 0) {
_root.enemies_online--;
this.explfactor = 1 + random(3);
_root.lvl_sounds++;
_root.game.sounds["s_" + _root.lvl_sounds] = new Sound(_root.snd_efx);
_root.game.sounds["s_" + _root.lvl_sounds].setVolume(_global.volume_efx);
_root.game.sounds["s_" + _root.lvl_sounds].attachSound("expld" + this.explfactor);
_root.game.sounds["s_" + _root.lvl_sounds].start(0, 0);
if (_root.lvl_sounds > _root.lvl_sounds_max) {
_root.lvl_sounds = 0;
}
_root.lvl_partsfx++;
_root.game.arena.attachMovie("game_efx_explode1", "efx_" + _root.lvl_partsfx, _root.lvl_partsfx, {_x:this._x, _y:this._y});
if (_root.lvl_partsfx > _root.lvl_partsfx_max) {
_root.lvl_partsfx = 8000;
}
this.find_id = 0;
while (this.find_id < _root.enemies_array.length) {
if (_root.enemies_array[this.find_id] == this.id) {
this.arstart = _root.enemies_array.slice(0, this.find_id);
this.arend = _root.enemies_array.slice(this.find_id + 1);
_root.enemies_array = new Array();
if (this.arstart.length > 0) {
_root.enemies_array = _root.enemies_array.concat(this.arstart);
}
if (this.arend.length > 0) {
_root.enemies_array = _root.enemies_array.concat(this.arend);
}
break;
}
this.find_id++;
}
if (this.frag == 1) {
_root.player1.score = _root.player1.score + 227;
} else if (this.frag == 2) {
_root.player2.score = _root.player2.score + 227;
}
_root.radar.radar["r_" + this.getDepth()].removeMovieClip();
this.removeMovieClip();
}
this._rotation = this.langle;
if ((this._x - 20) < 0) {
this.langle = this.langle + 5;
this.dangle = this.dangle + 5;
this._x = this._x + 5;
}
if ((this._x + 20) > 1000) {
this.langle = this.langle + 5;
this.dangle = this.dangle + 5;
this._x = this._x - 5;
}
if ((this._y - 20) < 0) {
this.langle = this.langle + 5;
this.dangle = this.dangle + 5;
this._y = this._y + 5;
}
if ((this._y + 20) > 1000) {
this.langle = this.langle + 5;
this.dangle = this.dangle + 5;
this._y = this._y - 5;
}
this.langle = this.langle + this.langle_speed;
this.langle_speed = this.langle_speed * 0.9;
this.ad_x = this.ad_x * 0.9;
this.ad_y = this.ad_y * 0.9;
if (Math.abs(this.langle_speed) < 0.01) {
this.langle_speed = 0;
}
if (Math.abs(this.ad_x) < 0.01) {
this.ad_x = 0;
}
if (Math.abs(this.ad_y) < 0.01) {
this.ad_y = 0;
}
this._x = this._x + ((this.spd * Math.cos(this.langle * (Math.PI/180))) + this.ad_x);
this._y = this._y + ((this.spd * Math.sin(this.langle * (Math.PI/180))) + this.ad_y);
}
};
break;
case 4 :
_root.game.arena.attachMovie("game_enemy4", "enemy_" + lvl_enemies, lvl_enemies, {_x:xpos, _y:ypos, spd:4, spd_max:6, langle:(-random(181)) + random(181), dangle:(-random(181)) + random(181), langle_speed:0, langle_speed_max:7, target:"p2_ship", delay:400, delay_max:100, life:6 + random(2), id:_root.lvl_enemies, gundelay:0, gundelay_max:10, ad_x:0, ad_y:0});
_root.game.arena["enemy_" + lvl_enemies].onEnterFrame = function () {
if (!_global.paused) {
_root.radar.radar["r_" + this.getDepth()]._x = this._x * 0.14;
_root.radar.radar["r_" + this.getDepth()]._y = this._y * 0.14;
this.delay--;
this.gundelay--;
if (this.delay <= 0) {
this.spd = 2 + random(this.spd_max - 1);
this.dangle = (-random(181)) + random(181);
this.delay = this.delay_max;
}
this.gofor = 1;
if (_root.game.arena.p_ship._x != undefined) {
this.dist_player1 = Math.sqrt(Math.pow(_root.game.arena.p_ship._x - this._x, 2) + Math.pow(_root.game.arena.p_ship._y - this._y, 2));
} else {
this.dist_player1 = 11000;
}
if (_root.game.arena.p2_ship._x != undefined) {
this.dist_player2 = Math.sqrt(Math.pow(_root.game.arena.p2_ship._x - this._x, 2) + Math.pow(_root.game.arena.p2_ship._y - this._y, 2));
} else {
this.dist_player2 = 10000;
}
if (this.dist_player2 < this.dist_player1) {
this.gofor = 2;
}
if (this.gofor == 1) {
if (this.dist_player1 < 210) {
if ((!_root.player1.fainted) && (this.dist_player1 > 110)) {
this.dangle = 57.2957795130823 * Math.atan2((-this._y) + _root.game.arena.p_ship._y, (-this._x) + _root.game.arena.p_ship._x);
}
if (((this.gundelay <= 0) && ((this._rotation - 5) < this.dangle)) && ((this._rotation + 5) > this.dangle)) {
this.xxdx = ((this.spd * Math.cos(this.langle * (Math.PI/180))) + this._x) + (40 * Math.cos(this._rotation * (Math.PI/180)));
this.yydy = ((this.spd * Math.sin(this.langle * (Math.PI/180))) + this._y) + (40 * Math.sin(this._rotation * (Math.PI/180)));
_root.lvl_sounds++;
_root.game.sounds["s_" + _root.lvl_sounds] = new Sound(_root.snd_efx);
_root.game.sounds["s_" + _root.lvl_sounds].setVolume(_global.volume_efx);
_root.game.sounds["s_" + _root.lvl_sounds].attachSound("shoot_enemy");
_root.game.sounds["s_" + _root.lvl_sounds].start(0, 0);
if (_root.lvl_sounds > _root.lvl_sounds_max) {
_root.lvl_sounds = 0;
}
_root.enemybullet(this.xxdx, this.yydy, this._rotation);
this.gundelay = this.gundelay_max;
}
if (this.dist_player1 < 100) {
this.dangle++;
}
if (this.dist_player1 < 70) {
if (this.spd > (-this.spd_max)) {
this.spd--;
}
}
if (this.dist_player1 < 35) {
if ((this.life > 0) && (!_root.player1.fainted)) {
_root.player1.health = _root.player1.health - 3;
this.life--;
}
_root.player1.speed_x = _root.player1.speed_x + ((this.spd * 3) * Math.cos(this.langle * (Math.PI/180)));
_root.player1.speed_y = _root.player1.speed_y + ((this.spd * 3) * Math.sin(this.langle * (Math.PI/180)));
}
}
} else if (this.dist_player2 < 210) {
if ((!_root.player2.fainted) && (this.dist_player2 > 110)) {
this.dangle = 57.2957795130823 * Math.atan2((-this._y) + _root.game.arena.p2_ship._y, (-this._x) + _root.game.arena.p2_ship._x);
}
if (((this.gundelay <= 0) && ((this._rotation - 5) < this.dangle)) && ((this._rotation + 5) > this.dangle)) {
this.xxdx = ((this.spd * Math.cos(this.langle * (Math.PI/180))) + this._x) + (40 * Math.cos(this._rotation * (Math.PI/180)));
this.yydy = ((this.spd * Math.sin(this.langle * (Math.PI/180))) + this._y) + (40 * Math.sin(this._rotation * (Math.PI/180)));
_root.enemybullet(this.xxdx, this.yydy, this._rotation);
this.gundelay = this.gundelay_max;
}
if (this.dist_player2 < 100) {
this.dangle++;
}
if (this.dist_player2 < 70) {
if (this.spd > (-this.spd_max)) {
this.spd--;
}
}
if (this.dist_player2 < 35) {
if ((this.life > 0) && (!_root.player2.fainted)) {
_root.player2.health = _root.player2.health - 3;
this.life--;
}
_root.player2.speed_x = _root.player2.speed_x + ((this.spd * 3) * Math.cos(this.langle * (Math.PI/180)));
_root.player2.speed_y = _root.player2.speed_y + ((this.spd * 3) * Math.sin(this.langle * (Math.PI/180)));
}
}
if (this.dangle > 0) {
if (this._rotation > 0) {
if (this.dangle > this._rotation) {
if (this.langle_speed < this.langle_speed_max) {
this.langle_speed = this.langle_speed + 1;
}
} else if (this.dangle < this._rotation) {
if (this.langle_speed > (-this.langle_speed_max)) {
this.langle_speed = this.langle_speed - 1;
}
}
} else if (this.langle_speed < this.langle_speed_max) {
this.langle_speed = this.langle_speed + 1;
}
} else if (this._rotation < 0) {
if (this.dangle > this._rotation) {
if (this.langle_speed < this.langle_speed_max) {
this.langle_speed = this.langle_speed + 1;
}
} else if (this.dangle < this._rotation) {
if (this.langle_speed > (-this.langle_speed_max)) {
this.langle_speed = this.langle_speed - 1;
}
}
} else if (this.dangle <= -90) {
if (this.langle_speed < this.langle_speed_max) {
this.langle_speed = this.langle_speed + 1;
}
} else if (this.langle_speed > (-this.langle_speed_max)) {
this.langle_speed = this.langle_speed - 1;
}
if (this.life <= 0) {
_root.enemies_online--;
this.explfactor = 1 + random(3);
_root.lvl_sounds++;
_root.game.sounds["s_" + _root.lvl_sounds] = new Sound(_root.snd_efx);
_root.game.sounds["s_" + _root.lvl_sounds].setVolume(_global.volume_efx);
_root.game.sounds["s_" + _root.lvl_sounds].attachSound("expld" + this.explfactor);
_root.game.sounds["s_" + _root.lvl_sounds].start(0, 0);
if (_root.lvl_sounds > _root.lvl_sounds_max) {
_root.lvl_sounds = 0;
}
_root.lvl_partsfx++;
_root.game.arena.attachMovie("game_efx_explode1", "efx_" + _root.lvl_partsfx, _root.lvl_partsfx, {_x:this._x, _y:this._y});
if (_root.lvl_partsfx > _root.lvl_partsfx_max) {
_root.lvl_partsfx = 8000;
}
this.find_id = 0;
while (this.find_id < _root.enemies_array.length) {
if (_root.enemies_array[this.find_id] == this.id) {
this.arstart = _root.enemies_array.slice(0, this.find_id);
this.arend = _root.enemies_array.slice(this.find_id + 1);
_root.enemies_array = new Array();
if (this.arstart.length > 0) {
_root.enemies_array = _root.enemies_array.concat(this.arstart);
}
if (this.arend.length > 0) {
_root.enemies_array = _root.enemies_array.concat(this.arend);
}
break;
}
this.find_id++;
}
if (this.frag == 1) {
_root.player1.score = _root.player1.score + 325;
} else if (this.frag == 2) {
_root.player2.score = _root.player2.score + 325;
}
_root.radar.radar["r_" + this.getDepth()].removeMovieClip();
this.removeMovieClip();
}
this._rotation = this.langle;
if ((this._x - 20) < 0) {
this.langle = this.langle + 5;
this.dangle = this.dangle + 5;
this._x = this._x + 5;
}
if ((this._x + 20) > 1000) {
this.langle = this.langle + 5;
this.dangle = this.dangle + 5;
this._x = this._x - 5;
}
if ((this._y - 20) < 0) {
this.langle = this.langle + 5;
this.dangle = this.dangle + 5;
this._y = this._y + 5;
}
if ((this._y + 20) > 1000) {
this.langle = this.langle + 5;
this.dangle = this.dangle + 5;
this._y = this._y - 5;
}
this.langle = this.langle + this.langle_speed;
this.langle_speed = this.langle_speed * 0.9;
this.ad_x = this.ad_x * 0.9;
this.ad_y = this.ad_y * 0.9;
if (Math.abs(this.langle_speed) < 0.01) {
this.langle_speed = 0;
}
if (Math.abs(this.ad_x) < 0.01) {
this.ad_x = 0;
}
if (Math.abs(this.ad_y) < 0.01) {
this.ad_y = 0;
}
this._x = this._x + ((this.spd * Math.cos(this.langle * (Math.PI/180))) + this.ad_x);
this._y = this._y + ((this.spd * Math.sin(this.langle * (Math.PI/180))) + this.ad_y);
}
};
break;
case 5 :
_root.game.arena.attachMovie("game_enemy5", "enemy_" + lvl_enemies, lvl_enemies, {_x:xpos, _y:ypos, spd:4, spd_max:4, langle:(-random(181)) + random(181), langle_speed:0, langle_speed_max:7, target:"p2_ship", delay:150, delay_max:150, life:6 + random(2), id:_root.lvl_enemies, gundelay:0, gundelay_max:160, ad_x:0, ad_y:0});
_root.game.arena["enemy_" + lvl_enemies].onEnterFrame = function () {
if (!_global.paused) {
_root.radar.radar["r_" + this.getDepth()]._x = this._x * 0.14;
_root.radar.radar["r_" + this.getDepth()]._y = this._y * 0.14;
this.gundelay--;
this.delay--;
if (this.delay <= 0) {
this.spd = 1 + random(this.spd_max);
this.langle = (-random(181)) + random(181);
this.delay = this.delay_max;
}
this.gofor = 1;
if (_root.game.arena.p_ship._x != undefined) {
this.dist_player1 = Math.sqrt(Math.pow(_root.game.arena.p_ship._x - this._x, 2) + Math.pow(_root.game.arena.p_ship._y - this._y, 2));
} else {
this.dist_player1 = 11000;
}
if (_root.game.arena.p2_ship._x != undefined) {
this.dist_player2 = Math.sqrt(Math.pow(_root.game.arena.p2_ship._x - this._x, 2) + Math.pow(_root.game.arena.p2_ship._y - this._y, 2));
} else {
this.dist_player2 = 10000;
}
if (this.dist_player2 < this.dist_player1) {
this.gofor = 2;
}
if (this.gofor == 1) {
if (this.dist_player1 < 330) {
if (this.gundelay <= 0) {
_root.addplasma(this._x - 26, this._y - 26, -135);
_root.addplasma(this._x + 26, this._y - 26, -45);
_root.addplasma(this._x - 26, this._y + 26, 135);
_root.addplasma(this._x + 26, this._y + 26, 45);
this.gundelay = this.gundelay_max;
}
if (!_root.player1.fainted) {
this.langle = 57.2957795130823 * Math.atan2((-this._y) + _root.game.arena.p_ship._y, (-this._x) + _root.game.arena.p_ship._x);
}
if (this.dist_player1 < 30) {
if ((this.life > 0) && (!_root.player1.fainted)) {
_root.player1.health = _root.player1.health - 10;
}
_root.player1.speed_x = _root.player1.speed_x + ((this.spd * 2) * Math.cos(this.langle * (Math.PI/180)));
_root.player1.speed_y = _root.player1.speed_y + ((this.spd * 2) * Math.sin(this.langle * (Math.PI/180)));
}
}
} else if (this.dist_player2 < 330) {
if (this.gundelay <= 0) {
_root.addplasma(this._x - 26, this._y - 26, -135);
_root.addplasma(this._x + 26, this._y - 26, -45);
_root.addplasma(this._x - 26, this._y + 26, 135);
_root.addplasma(this._x + 26, this._y + 26, 45);
this.gundelay = this.gundelay_max;
}
if (!_root.player2.fainted) {
this.langle = 57.2957795130823 * Math.atan2((-this._y) + _root.game.arena.p2_ship._y, (-this._x) + _root.game.arena.p2_ship._x);
}
if (this.dist_player2 < 30) {
if ((this.life > 0) && (!_root.player2.fainted)) {
_root.player2.health = _root.player2.health - 10;
}
_root.player2.speed_x = _root.player2.speed_x + ((this.spd * 2) * Math.cos(this.langle * (Math.PI/180)));
_root.player2.speed_y = _root.player2.speed_y + ((this.spd * 2) * Math.sin(this.langle * (Math.PI/180)));
}
}
if (this.life <= 0) {
_root.enemies_online--;
this.explfactor = 1 + random(3);
_root.lvl_sounds++;
_root.game.sounds["s_" + _root.lvl_sounds] = new Sound(_root.snd_efx);
_root.game.sounds["s_" + _root.lvl_sounds].setVolume(_global.volume_efx);
_root.game.sounds["s_" + _root.lvl_sounds].attachSound("expld" + this.explfactor);
_root.game.sounds["s_" + _root.lvl_sounds].start(0, 0);
if (_root.lvl_sounds > _root.lvl_sounds_max) {
_root.lvl_sounds = 0;
}
_root.lvl_partsfx++;
_root.game.arena.attachMovie("game_efx_explode1", "efx_" + _root.lvl_partsfx, _root.lvl_partsfx, {_x:this._x, _y:this._y});
if (_root.lvl_partsfx > _root.lvl_partsfx_max) {
_root.lvl_partsfx = 8000;
}
this.find_id = 0;
while (this.find_id < _root.enemies_array.length) {
if (_root.enemies_array[this.find_id] == this.id) {
this.arstart = _root.enemies_array.slice(0, this.find_id);
this.arend = _root.enemies_array.slice(this.find_id + 1);
_root.enemies_array = new Array();
if (this.arstart.length > 0) {
_root.enemies_array = _root.enemies_array.concat(this.arstart);
}
if (this.arend.length > 0) {
_root.enemies_array = _root.enemies_array.concat(this.arend);
}
break;
}
this.find_id++;
}
if (this.frag == 1) {
_root.player1.score = _root.player1.score + 325;
} else if (this.frag == 2) {
_root.player2.score = _root.player2.score + 325;
}
_root.radar.radar["r_" + this.getDepth()].removeMovieClip();
this.removeMovieClip();
}
if ((this._x - 18) < 0) {
this.langle = this.langle + 5;
this._x = this._x + this.spd;
}
if ((this._x + 18) > 1000) {
this.langle = this.langle + 5;
this._x = this._x - this.spd;
}
if ((this._y - 18) < 0) {
this.langle = this.langle + 5;
this._y = this._y + this.spd;
}
if ((this._y + 18) > 1000) {
this.langle = this.langle + 5;
this._y = this._y - this.spd;
}
this.ad_x = this.ad_x * 0.9;
this.ad_y = this.ad_y * 0.9;
if (Math.abs(this.ad_x) < 0.01) {
this.ad_x = 0;
}
if (Math.abs(this.ad_y) < 0.01) {
this.ad_y = 0;
}
this._x = this._x + ((this.spd * Math.cos(this.langle * (Math.PI/180))) + this.ad_x);
this._y = this._y + ((this.spd * Math.sin(this.langle * (Math.PI/180))) + this.ad_y);
}
};
break;
case 6 :
_root.game.arena.attachMovie("game_enemy6", "enemy_" + lvl_enemies, lvl_enemies, {_x:xpos, _y:ypos, shield:false, spd:0, spd_max:3, langle:(-random(181)) + random(181), dangle:(-random(181)) + random(181), langle_speed:0, langle_speed_max:4.8, target:"p2_ship", delay:0, gundelay:0, gundelay_max:8, plasmadelay:0, plasmadelay_max:60, list_i:0, list:[["shield", true], ["walk", 300, 300], ["shield", false], ["shoot", 1, 3], ["shield", true], ["walk", 700, 300], ["shield", false], ["shoot", 2, 3], ["shield", true], ["walk", 500, 500], ["shield", false], ["plasma", 5], ["shield", true], ["walk", 300, 700], ["shield", false], ["pods", 2], ["shield", true], ["walk", 700, 700], ["shield", false], ["pods", 2]], life:800, id:_root.lvl_enemies, gundelay:0, gundelay_max:10, ad_x:0, ad_y:0, aux:false, boss:true});
_root.game.arena["enemy_" + lvl_enemies].onEnterFrame = function () {
if (!_global.paused) {
_root.radar.radar["r_" + this.getDepth()]._x = this._x * 0.14;
_root.radar.radar["r_" + this.getDepth()]._y = this._y * 0.14;
if (this.shield) {
if (this.life < 150) {
this.gundelay_max = 4;
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
switch (this.list[this.list_i][0]) {
case "shield" :
this.shield = this.list[this.list_i][1];
this.list_i++;
break;
case "walk" :
this.dangle = Math.atan2(this.list[this.list_i][2] - this._y, this.list[this.list_i][1] - this._x) * 57.2957795130823;
this.ldistance = Math.sqrt(Math.pow(this.list[this.list_i][1] - this._x, 2) + Math.pow(this.list[this.list_i][2] - this._y, 2));
if (this.spd < this.spd_max) {
this.spd = this.spd + 1;
}
if (this.ldistance < 60) {
this.list_i++;
}
break;
case "shoot" :
if (!this.aux) {
this.delay = 45 * this.list[this.list_i][2];
this.aux = true;
}
this.delay--;
if ((this.list[this.list_i][1] == 1) && (_root.game.arena.p_ship._x != undefined)) {
this.entarget = 1;
} else if ((this.list[this.list_i][1] == 2) && (_root.game.arena.p2_ship._x != undefined)) {
this.entarget = 2;
} else if (((this.list[this.list_i][1] != 1) && (_root.game.arena.p2_ship._x == undefined)) && (_root.game.arena.p_ship._x != undefined)) {
this.entarget = 1;
} else if (((this.list[this.list_i][1] != 2) && (_root.game.arena.p_ship._x == undefined)) && (_root.game.arena.p2_ship._x != undefined)) {
this.entarget = 2;
} else {
this.list_i++;
}
if (this.entarget == 1) {
this.dangle = Math.atan2(_root.game.arena.p_ship._y - this._y, _root.game.arena.p_ship._x - this._x) * 57.2957795130823;
} else if (this.entarget == 2) {
this.dangle = Math.atan2(_root.game.arena.p2_ship._y - this._y, _root.game.arena.p2_ship._x - this._x) * 57.2957795130823;
}
this.gundelay--;
if (this.gundelay <= 0) {
this.xxdx = ((this.spd * Math.cos(this.langle * (Math.PI/180))) + this._x) + (50 * Math.cos(this._rotation * (Math.PI/180)));
this.yydy = ((this.spd * Math.sin(this.langle * (Math.PI/180))) + this._y) + (50 * Math.sin(this._rotation * (Math.PI/180)));
_root.lvl_sounds++;
_root.game.sounds["s_" + _root.lvl_sounds] = new Sound(_root.snd_efx);
_root.game.sounds["s_" + _root.lvl_sounds].setVolume(_global.volume_efx);
_root.game.sounds["s_" + _root.lvl_sounds].attachSound("shoot_enemy");
_root.game.sounds["s_" + _root.lvl_sounds].start(0, 0);
if (_root.lvl_sounds > _root.lvl_sounds_max) {
_root.lvl_sounds = 0;
}
_root.enemybullet(this.xxdx, this.yydy, this._rotation);
this.gundelay = this.gundelay_max;
}
if (this.delay <= 0) {
this.list_i++;
this.aux = false;
}
break;
case "plasma" :
if (!this.aux) {
this.delay = 45 * this.list[this.list_i][1];
this.aux = true;
}
this.delay--;
this.plasmadelay--;
if (this.plasmadelay <= 0) {
_root.addplasma(this._x - 80, this._y - 80, -135);
_root.addplasma(this._x + 80, this._y - 80, -45);
_root.addplasma(this._x - 80, this._y + 80, 135);
_root.addplasma(this._x + 80, this._y + 80, 45);
this.plasmadelay = this.plasmadelay_max;
}
if (this.delay <= 0) {
this.list_i++;
this.aux = false;
}
break;
case "pods" :
if (!this.aux) {
this.delay = 45 * this.list[this.list_i][1];
this.aux = true;
}
this.delay--;
this.plasmadelay--;
if (this.plasmadelay <= 0) {
_root.addenemy(this._x - 80, this._y - 80, 2);
_root.addenemy(this._x + 80, this._y - 80, 1);
_root.addenemy(this._x - 80, this._y + 80, 1);
_root.addenemy(this._x + 80, this._y + 80, 1);
this.plasmadelay = this.plasmadelay_max;
}
if (this.delay <= 0) {
this.list_i++;
this.aux = false;
}
break;
}
if (this.list_i >= this.list.length) {
this.list_i = 0;
}
if (this.dangle > 0) {
if (this._rotation > 0) {
if (this.dangle > this._rotation) {
if (this.langle_speed < this.langle_speed_max) {
this.langle_speed = this.langle_speed + 1.6;
}
} else if (this.dangle < this._rotation) {
if (this.langle_speed > (-this.langle_speed_max)) {
this.langle_speed = this.langle_speed - 1.6;
}
}
} else if (this.langle_speed < this.langle_speed_max) {
this.langle_speed = this.langle_speed + 1.6;
}
} else if (this._rotation < 0) {
if (this.dangle > this._rotation) {
if (this.langle_speed < this.langle_speed_max) {
this.langle_speed = this.langle_speed + 1.6;
}
} else if (this.dangle < this._rotation) {
if (this.langle_speed > (-this.langle_speed_max)) {
this.langle_speed = this.langle_speed - 1.6;
}
}
} else if (this.dangle <= -90) {
if (this.langle_speed < this.langle_speed_max) {
this.langle_speed = this.langle_speed + 1.6;
}
} else if (this.langle_speed > (-this.langle_speed_max)) {
this.langle_speed = this.langle_speed - 1.6;
}
if (_root.game.arena.p_ship._x != undefined) {
this.dist_player1 = Math.sqrt(Math.pow(_root.game.arena.p_ship._x - this._x, 2) + Math.pow(_root.game.arena.p_ship._y - this._y, 2));
} else {
this.dist_player1 = 11000;
}
if (_root.game.arena.p2_ship._x != undefined) {
this.dist_player2 = Math.sqrt(Math.pow(_root.game.arena.p2_ship._x - this._x, 2) + Math.pow(_root.game.arena.p2_ship._y - this._y, 2));
} else {
this.dist_player2 = 10000;
}
if (this.dist_player1 < 50) {
if ((this.life > 0) && (!_root.player1.fainted)) {
_root.player1.health = _root.player1.health - 10;
}
if (Math.abs(this.spd) > 1) {
_root.player1.speed_x = _root.player1.speed_x + ((this.spd * 2) * Math.cos(this.langle * (Math.PI/180)));
_root.player1.speed_y = _root.player1.speed_y + ((this.spd * 2) * Math.sin(this.langle * (Math.PI/180)));
} else {
_root.player1.speed_x = (-_root.player1.speed_x) * 2;
_root.player1.speed_y = (-_root.player1.speed_y) * 2;
}
}
if (this.dist_player2 < 50) {
if ((this.life > 0) && (!_root.player2.fainted)) {
_root.player2.health = _root.player2.health - 10;
}
if (Math.abs(this.spd) > 1) {
_root.player2.speed_x = _root.player2.speed_x + ((this.spd * 2) * Math.cos(this.langle * (Math.PI/180)));
_root.player2.speed_y = _root.player2.speed_y + ((this.spd * 2) * Math.sin(this.langle * (Math.PI/180)));
} else {
_root.player2.speed_x = (-_root.player2.speed_x) * 2;
_root.player2.speed_y = (-_root.player2.speed_y) * 2;
}
}
if (this.life <= 0) {
this.explfactor = 1 + random(3);
_root.lvl_sounds++;
_root.game.sounds["s_" + _root.lvl_sounds] = new Sound(_root.snd_efx);
_root.game.sounds["s_" + _root.lvl_sounds].setVolume(_global.volume_efx);
_root.game.sounds["s_" + _root.lvl_sounds].attachSound("expld" + this.explfactor);
_root.game.sounds["s_" + _root.lvl_sounds].start(0, 0);
if (_root.lvl_sounds > _root.lvl_sounds_max) {
_root.lvl_sounds = 0;
}
_root.lvl_partsfx++;
_root.game.arena.attachMovie("game_efx_explode1", "efx_" + _root.lvl_partsfx, _root.lvl_partsfx, {_x:this._x, _y:this._y});
if (_root.lvl_partsfx > _root.lvl_partsfx_max) {
_root.lvl_partsfx = 8000;
}
this.find_id = 0;
while (this.find_id < _root.enemies_array.length) {
if (_root.enemies_array[this.find_id] == this.id) {
this.arstart = _root.enemies_array.slice(0, this.find_id);
this.arend = _root.enemies_array.slice(this.find_id + 1);
_root.enemies_array = new Array();
if (this.arstart.length > 0) {
_root.enemies_array = _root.enemies_array.concat(this.arstart);
}
if (this.arend.length > 0) {
_root.enemies_array = _root.enemies_array.concat(this.arend);
}
break;
}
this.find_id++;
}
if (this.frag == 1) {
_root.player1.score = _root.player1.score + 3560;
} else if (this.frag == 2) {
_root.player2.score = _root.player2.score + 3560;
}
_root.enemies_online--;
_root.radar.radar["r_" + this.getDepth()].removeMovieClip();
this.removeMovieClip();
}
this._rotation = this.langle;
if ((this._x - 20) < 0) {
this.langle = this.langle + 5;
this.dangle = this.dangle + 5;
this._x = this._x + 5;
}
if ((this._x + 20) > 1000) {
this.langle = this.langle + 5;
this.dangle = this.dangle + 5;
this._x = this._x - 5;
}
if ((this._y - 20) < 0) {
this.langle = this.langle + 5;
this.dangle = this.dangle + 5;
this._y = this._y + 5;
}
if ((this._y + 20) > 1000) {
this.langle = this.langle + 5;
this.dangle = this.dangle + 5;
this._y = this._y - 5;
}
this.langle = this.langle + this.langle_speed;
this.langle_speed = this.langle_speed * 0.9;
this.ad_x = this.ad_x * 0.9;
this.ad_y = this.ad_y * 0.9;
this.spd = this.spd * 0.9;
if (Math.abs(this.langle_speed) < 0.01) {
this.langle_speed = 0;
}
if (Math.abs(this.ad_x) < 0.01) {
this.ad_x = 0;
}
if (Math.abs(this.ad_y) < 0.01) {
this.ad_y = 0;
}
if (Math.abs(this.spd) < 0.01) {
this.spd = 0;
}
this._x = this._x + ((this.spd * Math.cos(this.langle * (Math.PI/180))) + this.ad_x);
this._y = this._y + ((this.spd * Math.sin(this.langle * (Math.PI/180))) + this.ad_y);
}
};
break;
}
if (_root.lvl_enemies >= _root.lvl_enemies_max) {
_root.lvl_enemies = 500;
}
}
function addplasma(xpos, ypos, dirangle) {
_root.lvl_enemies++;
_root.enemies_online++;
_root.enemies_array.push(_root.lvl_enemies);
_root.radar.radar.attachMovie("game_radar_plasma", "r_" + _root.lvl_enemies, _root.lvl_enemies, {_x:xpos * 0.14, _y:ypos * 0.14});
_root.game.arena.attachMovie("game_plasma", "enemy_" + lvl_enemies, lvl_enemies, {_x:xpos, _y:ypos, spd:2.5, spd_max:2.5, langle:dirangle, target:"p2_ship", life:1, id:_root.lvl_enemies, ad_x:0, ad_y:0, stang:false, isenergy:true, lifey:450});
_root.game.arena["enemy_" + lvl_enemies].onEnterFrame = function () {
if (!_global.paused) {
_root.radar.radar["r_" + this.getDepth()]._x = this._x * 0.14;
_root.radar.radar["r_" + this.getDepth()]._y = this._y * 0.14;
if (!this.stang) {
this.ad_x = this.spd * Math.cos(this.langle * (Math.PI/180));
this.ad_y = this.spd * Math.sin(this.langle * (Math.PI/180));
this.stang = true;
}
this.lifey--;
if (this.lifey <= 0) {
this.life--;
}
this.gofor = 1;
if (_root.game.arena.p_ship._x != undefined) {
this.dist_player1 = Math.sqrt(Math.pow(_root.game.arena.p_ship._x - this._x, 2) + Math.pow(_root.game.arena.p_ship._y - this._y, 2));
} else {
this.dist_player1 = 11000;
}
if (_root.game.arena.p2_ship._x != undefined) {
this.dist_player2 = Math.sqrt(Math.pow(_root.game.arena.p2_ship._x - this._x, 2) + Math.pow(_root.game.arena.p2_ship._y - this._y, 2));
} else {
this.dist_player2 = 10000;
}
if (this.dist_player2 < this.dist_player1) {
this.gofor = 2;
}
if (this.dist_player1 < 30) {
if (this.life > 0) {
this.life--;
if (!_root.player1.fainted) {
_root.player1.health = _root.player1.health - 25;
}
}
if (_root.game.arena.p_ship._x < this._x) {
_root.player1.speed_x = _root.player1.speed_x - 15;
} else {
_root.player1.speed_x = _root.player1.speed_x + 15;
}
if (_root.game.arena.p_ship._y < this._y) {
_root.player1.speed_y = _root.player1.speed_y - 15;
} else {
_root.player1.speed_y = _root.player1.speed_y + 15;
}
}
if (this.dist_player2 < 30) {
if (this.life > 0) {
this.life--;
if (!_root.player2.fainted) {
_root.player2.health = _root.player2.health - 25;
}
}
if (_root.game.arena.p2_ship._x < this._x) {
_root.player2.speed_x = _root.player2.speed_x - 15;
} else {
_root.player2.speed_x = _root.player2.speed_x + 15;
}
if (_root.game.arena.p2_ship._y < this._y) {
_root.player2.speed_y = _root.player2.speed_y - 15;
} else {
_root.player2.speed_y = _root.player2.speed_y + 15;
}
}
if (this.life <= 0) {
_root.enemies_online--;
_root.lvl_sounds++;
_root.game.sounds["s_" + _root.lvl_sounds] = new Sound(_root.snd_efx);
_root.game.sounds["s_" + _root.lvl_sounds].setVolume(_global.volume_efx);
_root.game.sounds["s_" + _root.lvl_sounds].attachSound("energy_explosion");
_root.game.sounds["s_" + _root.lvl_sounds].start(0, 0);
if (_root.lvl_sounds > _root.lvl_sounds_max) {
_root.lvl_sounds = 0;
}
_root.lvl_partsfx++;
_root.game.arena.attachMovie("game_efx_explode1", "efx_" + _root.lvl_partsfx, _root.lvl_partsfx, {_x:this._x, _y:this._y});
if (_root.lvl_partsfx > _root.lvl_partsfx_max) {
_root.lvl_partsfx = 8000;
}
this.find_id = 0;
while (this.find_id < _root.enemies_array.length) {
if (_root.enemies_array[this.find_id] == this.id) {
this.arstart = _root.enemies_array.slice(0, this.find_id);
this.arend = _root.enemies_array.slice(this.find_id + 1);
_root.enemies_array = new Array();
if (this.arstart.length > 0) {
_root.enemies_array = _root.enemies_array.concat(this.arstart);
}
if (this.arend.length > 0) {
_root.enemies_array = _root.enemies_array.concat(this.arend);
}
break;
}
this.find_id++;
}
if (this.frag == 1) {
_root.player1.score = _root.player1.score + 3;
} else if (this.frag == 2) {
_root.player2.score = _root.player2.score + 3;
}
_root.radar.radar["r_" + this.getDepth()].removeMovieClip();
this.removeMovieClip();
}
this.enII = 0;
while (this.enII < _root.enemies_array.length) {
if (_root.game.arena["enemy_" + _root.enemies_array[this.enII]]._x != undefined) {
this.endist = Math.sqrt(Math.pow(this._x - _root.game.arena["enemy_" + _root.enemies_array[this.enII]]._x, 2) + Math.pow(this._y - _root.game.arena["enemy_" + _root.enemies_array[this.enII]]._y, 2));
if ((this.endist < 45) && (_root.game.arena["enemy_" + _root.enemies_array[this.enII]].boss == true)) {
if (_root.game.arena["enemy_" + _root.enemies_array[this.enII]]._x < this._x) {
this.ad_x = Math.abs(this.ad_x);
} else {
this.ad_x = -Math.abs(this.ad_x);
}
if (_root.game.arena["enemy_" + _root.enemies_array[this.enII]]._y < this._y) {
this.ad_y = Math.abs(this.ad_y);
} else {
this.ad_y = -Math.abs(this.ad_y);
}
} else if ((this.endist < 22) && (_root.game.arena["enemy_" + _root.enemies_array[this.enII]]._name != this._name)) {
this.ncalc3x = this.endist * Math.cos(this.langle * (Math.PI/180));
this.ncalc3y = this.endist * Math.sin(this.langle * (Math.PI/180));
if (((this._x + this.ncalc3x) != _root.game.arena["enemy_" + _root.enemies_array[this.enII]]._x) || ((this._y + this.ncalc3y) != _root.game.arena["enemy_" + _root.enemies_array[this.enII]]._y)) {
this.diffangle = 0;
this.diffangle = Math.atan2((-this._y) + _root.game.arena["enemy_" + _root.enemies_array[this.enII]]._y, (-this._x) + _root.game.arena["enemy_" + _root.enemies_array[this.enII]]._x) * 57.2957795130823;
if (((this.diffangle - this.langle) < 0) || ((this.diffangle - this.langle) > 180)) {
this.toturn = -Math.abs(((this.langle - 180) - this.diffangle) / 180);
if (this.toturn < -5) {
this.toturn = -5;
}
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].langle_speed = _root.game.arena["enemy_" + _root.enemies_array[this.enII]].langle_speed + this.toturn;
} else {
this.toturn = Math.abs(((this.langle - 180) - this.diffangle) / 180);
if (this.toturn > 5) {
this.toturn = 5;
}
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].langle_speed = _root.game.arena["enemy_" + _root.enemies_array[this.enII]].langle_speed + this.toturn;
}
}
if (_root.game.arena["enemy_" + _root.enemies_array[this.enII]]._x < this._x) {
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].ad_x = _root.game.arena["enemy_" + _root.enemies_array[this.enII]].ad_x - 10;
} else {
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].ad_x = _root.game.arena["enemy_" + _root.enemies_array[this.enII]].ad_x + 10;
}
if (_root.game.arena["enemy_" + _root.enemies_array[this.enII]]._y < this._y) {
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].ad_y = _root.game.arena["enemy_" + _root.enemies_array[this.enII]].ad_y - 10;
} else {
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].ad_y = _root.game.arena["enemy_" + _root.enemies_array[this.enII]].ad_y + 10;
}
this.dad = "none";
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].life--;
_root.game.arena["enemy_" + _root.enemies_array[this.enII]].frag = this.dad;
this.life--;
}
}
this.enII++;
}
if ((this._x - 18) < 0) {
this.ad_x = Math.abs(this.ad_x);
this._x = this._x + this.spd;
_root.lvl_sounds++;
_root.bouncefactor = 1 + random(2);
_root.game.sounds["s_" + _root.lvl_sounds] = new Sound(_root.snd_efx);
_root.game.sounds["s_" + _root.lvl_sounds].setVolume(_global.volume_efx);
_root.game.sounds["s_" + _root.lvl_sounds].attachSound("energy_bounce" + _root.bouncefactor);
_root.game.sounds["s_" + _root.lvl_sounds].start(0, 0);
if (_root.lvl_sounds > _root.lvl_sounds_max) {
_root.lvl_sounds = 0;
}
}
if ((this._x + 18) > 1000) {
this.ad_x = -Math.abs(this.ad_x);
this._x = this._x - this.spd;
_root.lvl_sounds++;
_root.bouncefactor = 1 + random(2);
_root.game.sounds["s_" + _root.lvl_sounds] = new Sound(_root.snd_efx);
_root.game.sounds["s_" + _root.lvl_sounds].setVolume(_global.volume_efx);
_root.game.sounds["s_" + _root.lvl_sounds].attachSound("energy_bounce" + _root.bouncefactor);
_root.game.sounds["s_" + _root.lvl_sounds].start(0, 0);
if (_root.lvl_sounds > _root.lvl_sounds_max) {
_root.lvl_sounds = 0;
}
}
if ((this._y - 18) < 0) {
this.ad_y = Math.abs(this.ad_y);
this._y = this._y + this.spd;
_root.lvl_sounds++;
_root.bouncefactor = 1 + random(2);
_root.game.sounds["s_" + _root.lvl_sounds] = new Sound(_root.snd_efx);
_root.game.sounds["s_" + _root.lvl_sounds].setVolume(_global.volume_efx);
_root.game.sounds["s_" + _root.lvl_sounds].attachSound("energy_bounce" + _root.bouncefactor);
_root.game.sounds["s_" + _root.lvl_sounds].start(0, 0);
if (_root.lvl_sounds > _root.lvl_sounds_max) {
_root.lvl_sounds = 0;
}
}
if ((this._y + 18) > 1000) {
this.ad_y = -Math.abs(this.ad_y);
this._y = this._y - this.spd;
_root.lvl_sounds++;
_root.bouncefactor = 1 + random(2);
_root.game.sounds["s_" + _root.lvl_sounds] = new Sound(_root.snd_efx);
_root.game.sounds["s_" + _root.lvl_sounds].setVolume(_global.volume_efx);
_root.game.sounds["s_" + _root.lvl_sounds].attachSound("energy_bounce" + _root.bouncefactor);
_root.game.sounds["s_" + _root.lvl_sounds].start(0, 0);
if (_root.lvl_sounds > _root.lvl_sounds_max) {
_root.lvl_sounds = 0;
}
}
if (Math.abs(this.ad_x) < 0.01) {
this.ad_x = 0;
}
if (Math.abs(this.ad_y) < 0.01) {
this.ad_y = 0;
}
this._x = this._x + this.ad_x;
this._y = this._y + this.ad_y;
}
};
if (_root.lvl_enemies >= _root.lvl_enemies_max) {
_root.lvl_enemies = 500;
}
}
function addpowerup(xpos, ypos, type) {
_root.ai2_event = true;
_root.ai2_event_x = xpos;
_root.ai2_event_y = ypos;
_root.lvl_partsfx++;
_root.game.arena.attachMovie("game_efx_pwup" + type, "efx_" + _root.lvl_partsfx, _root.lvl_partsfx, {_x:xpos, _y:ypos, life:450});
_root.radar.radar.attachMovie("game_radar_powerup", "r_" + _root.lvl_partsfx, _root.lvl_partsfx, {_x:xpos * 0.14, _y:ypos * 0.14});
switch (type) {
case 1 :
_root.game.arena["efx_" + _root.lvl_partsfx].onEnterFrame = function () {
if (!_global.paused) {
_root.radar.radar["r_" + this.getDepth()]._x = this._x * 0.14;
_root.radar.radar["r_" + this.getDepth()]._y = this._y * 0.14;
this.life--;
if (this.life < 0) {
_root.radar.radar["r_" + this.getDepth()].removeMovieClip();
this.removeMovieClip();
}
if (_root.game.arena.p_ship._x != undefined) {
this.dist_player1 = Math.sqrt(Math.pow(_root.game.arena.p_ship._x - this._x, 2) + Math.pow(_root.game.arena.p_ship._y - this._y, 2));
} else {
this.dist_player1 = 11000;
}
if (_root.game.arena.p2_ship._x != undefined) {
this.dist_player2 = Math.sqrt(Math.pow(_root.game.arena.p2_ship._x - this._x, 2) + Math.pow(_root.game.arena.p2_ship._y - this._y, 2));
} else {
this.dist_player2 = 10000;
}
if (this.dist_player1 < this.dist_player2) {
if (this.dist_player1 < 36) {
if (_root.player1.gunpower < 3) {
_root.player1.gunpower++;
}
_root.radar.radar["r_" + this.getDepth()].removeMovieClip();
this.removeMovieClip();
}
} else if (this.dist_player2 < 36) {
if (_root.player2.gunpower < 3) {
_root.player2.gunpower++;
}
_root.radar.radar["r_" + this.getDepth()].removeMovieClip();
this.removeMovieClip();
}
}
};
break;
case 2 :
_root.game.arena["efx_" + _root.lvl_partsfx].onEnterFrame = function () {
if (!_global.paused) {
_root.radar.radar["r_" + this.getDepth()]._x = this._x * 0.14;
_root.radar.radar["r_" + this.getDepth()]._y = this._y * 0.14;
this.life--;
if (this.life < 0) {
_root.radar.radar["r_" + this.getDepth()].removeMovieClip();
this.removeMovieClip();
}
if (_root.game.arena.p_ship._x != undefined) {
this.dist_player1 = Math.sqrt(Math.pow(_root.game.arena.p_ship._x - this._x, 2) + Math.pow(_root.game.arena.p_ship._y - this._y, 2));
} else {
this.dist_player1 = 11000;
}
if (_root.game.arena.p2_ship._x != undefined) {
this.dist_player2 = Math.sqrt(Math.pow(_root.game.arena.p2_ship._x - this._x, 2) + Math.pow(_root.game.arena.p2_ship._y - this._y, 2));
} else {
this.dist_player2 = 10000;
}
if (this.dist_player1 < this.dist_player2) {
if (this.dist_player1 < 36) {
if (_root.player1.lives < 5) {
_root.player1.lives++;
_root.player1.health = 100;
} else {
_root.player1.health = 100;
}
_root.radar.radar["r_" + this.getDepth()].removeMovieClip();
this.removeMovieClip();
}
} else if (this.dist_player2 < 36) {
if (_root.player2.lives < 5) {
_root.player2.lives++;
_root.player2.health = 100;
} else {
_root.player2.health = 100;
}
_root.radar.radar["r_" + this.getDepth()].removeMovieClip();
this.removeMovieClip();
}
}
};
break;
}
if (_root.lvl_partsfx > _root.lvl_partsfx_max) {
_root.lvl_partsfx = 8000;
}
}
function normalizevar(variable) {
if (Math.abs(variable) < 0.01) {
variable = 0;
}
}
stop();
var sentscreen = false;
var backie = false;
game.attachMovie("game_parallax", "parallax", 1, {_x:240, _y:240});
if (!_global.parallax) {
game.parallax.gotoAndStop(2);
}
game.attachMovie("game_parallax2", "parallax2", 2, {_x:240, _y:240});
game.attachMovie("empty", "arena", 3);
game.attachMovie("empty", "sounds", 4);
var lvl_hero = 5000;
var lvl_hero2 = 5001;
var lvl_border = 4999;
var lvl_enemies_start = 500;
var lvl_enemies = lvl_enemies_start;
var lvl_enemies_max = 1000;
var lvl_bullets_start = 3000;
var lvl_bullets = lvl_bullets_start;
var lvl_bullets_max = 4000;
var lvl_partsfx_start = 8000;
var lvl_partsfx = lvl_partsfx_start;
var lvl_partsfx_max = 8999;
var lvl_sounds_start = 0;
var lvl_sounds = lvl_sounds_start;
var lvl_sounds_max = 40;
var player1 = {speed:0, speed_angle:0, speed_angle_max:5, speed_x:0, speed_y:0, speed_max:5, angle:180, accel:0.15, accel_angle:0.5, startx:470, starty:500, gundelay:0, gundelay_max:5, gunpower:1, lives:5, health:100, fainted:false, faint_time:0, score:0};
if (_global.playermode == "multi") {
var player2 = {speed:0, speed_angle:0, speed_angle_max:5, speed_x:0, speed_y:0, speed_max:5, angle:0, accel:0.15, accel_angle:0.5, startx:530, starty:500, gundelay:0, gundelay_max:5, gunpower:1, lives:5, health:100, fainted:false, faint_time:0, score:0};
}
var a_limit = 1000;
game.arena.attachMovie("game_spaceship", "p_ship", lvl_hero, {_x:player1.startx, _y:player1.starty});
radar.radar.attachMovie("game_radar_p1", "r_" + lvl_hero, lvl_hero, {_x:player1.startx * 0.14, _y:player1.starty * 0.14});
if (_global.playermode == "multi") {
game.arena.attachMovie("game_spaceship2", "p2_ship", lvl_hero2, {_x:player2.startx, _y:player2.starty});
radar.radar.attachMovie("game_radar_p2", "r_" + lvl_hero2, lvl_hero2, {_x:player2.startx * 0.14, _y:player2.starty * 0.14});
}
game.arena.attachMovie("game_background", "background", 100, {_x:500, _y:500});
game.arena.createEmptyMovieClip("lborder", lvl_border);
game.arena.lborder.lineStyle(1, 16777215);
game.arena.lborder.moveTo(0, 0);
game.arena.lborder.lineTo(a_limit, 0);
game.arena.lborder.lineTo(a_limit, a_limit);
game.arena.lborder.lineTo(0, a_limit);
game.arena.lborder.lineTo(0, 0);
var key_forward = 38;
var key_left = 37;
var key_right = 39;
var key_backward = 40;
var key_shoot = 16;
var keykey_shoot = 45;
var key_forward2 = 87;
var key_left2 = 65;
var key_right2 = 68;
var key_backward2 = 83;
var key_shoot2 = 81;
var key_pause = 80;
if (_global.playermode == "multi") {
var pan_mode = "double";
} else {
var pan_mode = "player1";
}
var pan_x = ((-game.arena.p_ship._x) + 240);
var pan_y = ((-game.arena.p_ship._y) + 240);
var m_decay = 0.9;
var m_decay_space = 0.95;
var m_decay_s = 0.7;
var calcdelay = 3;
var calcd = 3;
var friendly_fire = false;
var spacedown = false;
var enemies_online = 0;
var enemies_array = new Array();
p1n.text = _global.name_player1;
if (game.arena.p2_ship._x != undefined) {
p2n.text = _global.name_player2;
}
var level = 1;
var level_delay = 100;
var level_delay_max = 0;
var level_imax = _global.levels[level - 1].length;
var level_ic = 0;
var temps = new Object();
if (_global.player2_ai) {
var ai2_action = "waypoints";
var ai2_waypoints = [[800, 200], [800, 800], [200, 800], [500, 500], [800, 500], [200, 500], [200, 200]];
var ai2_wpi = 0;
var ai2_event = false;
var ai2_event_x = 0;
var ai2_event_y = 0;
var ai2_huntenemy = false;
}
if (_global.music_type == "radio") {
_root.radio.gotoAndPlay(2);
} else {
mainsound = new Sound(_root.snd_music);
mainsound.attachSound("NG63058");
mainsound.setVolume(_global.volume_music);
mainsound.start(0, 9999);
}
_root.onEnterFrame = function () {
if (!_global.paused) {
if (game.arena.p_ship._x != undefined) {
radar.radar["r_" + lvl_hero]._x = game.arena.p_ship._x * 0.14;
radar.radar["r_" + lvl_hero]._y = game.arena.p_ship._y * 0.14;
}
if (game.arena.p2_ship._x != undefined) {
radar.radar["r_" + lvl_hero2]._x = game.arena.p2_ship._x * 0.14;
radar.radar["r_" + lvl_hero2]._y = game.arena.p2_ship._y * 0.14;
}
player1.gundelay--;
player2.gundelay--;
level_delay--;
if (level_ic < level_imax) {
if (level_delay <= 0) {
if (level_ic == 0) {
_root.attachMovie("game_efx_levelz", "levelchange", 18000, {_x:400, _y:240});
trace(_root.levelchange._x);
_root.levelchange.lvl.text = level;
}
if (_global.levels[level - 1][level_ic][0] == "e") {
_root.lvl_partsfx++;
_root.game.arena.attachMovie("game_efx_spawn" + _global.levels[level - 1][level_ic][1], "efx_" + _root.lvl_partsfx, _root.lvl_partsfx, {_x:_global.levels[level - 1][level_ic][2], _y:_global.levels[level - 1][level_ic][3]});
if (_root.lvl_partsfx > _root.lvl_partsfx_max) {
_root.lvl_partsfx = 8000;
}
} else if (_global.levels[level - 1][level_ic][0] == "w") {
level_delay = 45 * _global.levels[level - 1][level_ic][1];
} else if (_global.levels[level - 1][level_ic][0] == "p") {
addpowerup(_global.levels[level - 1][level_ic][2], _global.levels[level - 1][level_ic][3], _global.levels[level - 1][level_ic][1]);
}
level_ic++;
}
} else if (level_ic >= level_imax) {
if (level < _global.levels.length) {
if (enemies_online == 0) {
enemies_array = new Array();
level++;
level_ic = 0;
level_imax = _global.levels[level - 1].length;
lvl_enemies = lvl_enemies_start;
lvl_bullets = lvl_bullets_start;
lvl_partsfx = lvl_partsfx_start;
lvl_sounds = lvl_sounds_start;
}
} else if ((!sentscreen) && (enemies_online < 1)) {
gwon.play();
sentscreen = true;
}
}
if (player1.health <= 0) {
if (!player1.fainted) {
player1.faint_time = 315;
player1.gunpower = 1;
player1.lives--;
if (player1.lives < 0) {
explfactor = 1 + random(3);
_root.lvl_sounds++;
_root.game.sounds["s_" + _root.lvl_sounds] = new Sound(_root.snd_efx);
_root.game.sounds["s_" + _root.lvl_sounds].setVolume(_global.volume_efx);
_root.game.sounds["s_" + _root.lvl_sounds].attachSound("expld" + explfactor);
_root.game.sounds["s_" + _root.lvl_sounds].start(0, 0);
if (_root.lvl_sounds > _root.lvl_sounds_max) {
_root.lvl_sounds = 0;
}
_root.lvl_partsfx++;
_root.game.arena.attachMovie("game_efx_explode1", "efx_" + _root.lvl_partsfx, _root.lvl_partsfx, {_x:game.arena.p_ship._x, _y:game.arena.p_ship._y});
if (_root.lvl_partsfx > _root.lvl_partsfx_max) {
_root.lvl_partsfx = 8000;
}
if (game.arena.p2_ship._x != undefined) {
pan_mode = "player2";
if (_global.player2_ai && (!backie)) {
backback.gotoAndStop(2);
backie = true;
}
} else {
pan_mode = "death";
if (!sentscreen) {
gover.play();
sentscreen = true;
}
}
game.arena.p_ship.removeMovieClip();
radar.radar["r_" + lvl_hero].removeMovieClip();
}
player1.health = 100;
game.arena.p_ship.gotoAndPlay("fainted");
player1.fainted = true;
}
}
if (player1.fainted) {
player1.faint_time--;
if (player1.faint_time <= 0) {
game.arena.p_ship.gotoAndPlay("normal");
player1.fainted = false;
}
}
if (player2.health <= 0) {
if (!player2.fainted) {
player2.faint_time = 315;
player2.gunpower = 1;
player2.lives--;
if (player2.lives < 0) {
explfactor = 1 + random(3);
_root.lvl_sounds++;
_root.game.sounds["s_" + _root.lvl_sounds] = new Sound(_root.snd_efx);
_root.game.sounds["s_" + _root.lvl_sounds].setVolume(_global.volume_efx);
_root.game.sounds["s_" + _root.lvl_sounds].attachSound("expld" + explfactor);
_root.game.sounds["s_" + _root.lvl_sounds].start(0, 0);
if (_root.lvl_sounds > _root.lvl_sounds_max) {
_root.lvl_sounds = 0;
}
_root.lvl_partsfx++;
_root.game.arena.attachMovie("game_efx_explode1", "efx_" + _root.lvl_partsfx, _root.lvl_partsfx, {_x:game.arena.p2_ship._x, _y:game.arena.p2_ship._y});
if (_root.lvl_partsfx > _root.lvl_partsfx_max) {
_root.lvl_partsfx = 8000;
}
if (game.arena.p_ship._x != undefined) {
pan_mode = "player1";
} else {
pan_mode = "death";
if (!sentscreen) {
gover.play();
sentscreen = true;
}
}
game.arena.p2_ship.removeMovieClip();
radar.radar["r_" + lvl_hero2].removeMovieClip();
}
player2.health = 100;
game.arena.p2_ship.gotoAndPlay("fainted");
player2.fainted = true;
}
}
if (player2.fainted) {
player2.faint_time--;
if (player2.faint_time <= 0) {
game.arena.p2_ship.gotoAndPlay("normal");
player2.fainted = false;
}
}
pp1s = player1.score;
pp2s = player2.score;
if (player1.lives < 0) {
p1b.bar._xscale = 0;
} else if (player1.health > 0) {
p1b.bar._xscale = player1.health;
} else {
p1b.bar._xscale = 0;
}
if (player2.lives < 0) {
p2b.bar._xscale = 0;
} else if (player2.health > 0) {
p2b.bar._xscale = player2.health;
} else {
p2b.bar._xscale = 0;
}
p1l.gotoAndStop(player1.lives + 1);
p2l.gotoAndStop(player2.lives + 1);
if (Key.isDown(key_forward)) {
if (player1.speed < player1.speed_max) {
player1.speed = player1.speed + player1.accel;
}
}
if (Key.isDown(key_backward)) {
if (player1.speed > (-player1.speed_max)) {
player1.speed = player1.speed - player1.accel;
}
}
if ((_global.playermode == "multi") && (!_global.player2_ai)) {
if (Key.isDown(key_forward2)) {
if (player2.speed < player2.speed_max) {
player2.speed = player2.speed + player2.accel;
}
}
if (Key.isDown(key_backward2)) {
if (player2.speed > (-player2.speed_max)) {
player2.speed = player2.speed - player2.accel;
}
}
}
if (Key.isDown(key_left)) {
if (player1.speed_angle > (-player1.speed_angle_max)) {
player1.speed_angle = player1.speed_angle - player1.accel_angle;
}
}
if ((_global.playermode == "multi") && (!_global.player2_ai)) {
if (Key.isDown(key_left2)) {
if (player2.speed_angle > (-player2.speed_angle_max)) {
player2.speed_angle = player2.speed_angle - player2.accel_angle;
}
}
}
if (Key.isDown(key_right)) {
if (player1.speed_angle < player1.speed_angle_max) {
player1.speed_angle = player1.speed_angle + player1.accel_angle;
}
}
if ((_global.playermode == "multi") && (!_global.player2_ai)) {
if (Key.isDown(key_right2)) {
if (player2.speed_angle < player2.speed_angle_max) {
player2.speed_angle = player2.speed_angle + player2.accel_angle;
}
}
}
if (player1.gundelay <= 0) {
if (Key.isDown(keykey_shoot) || (Key.isDown(key_shoot))) {
if (player1.gunpower == 1) {
b1x = (player1.speed_x + game.arena.p_ship._x) + (40 * Math.cos(player1.angle * (Math.PI/180)));
b1y = (player1.speed_y + game.arena.p_ship._y) + (40 * Math.sin(player1.angle * (Math.PI/180)));
addbullet(b1x, b1y, player1.angle, 1);
} else if (player1.gunpower == 2) {
b1x = (player1.speed_x + game.arena.p_ship._x) + (40 * Math.cos(player1.angle * (Math.PI/180)));
b1y = (player1.speed_y + game.arena.p_ship._y) + (40 * Math.sin(player1.angle * (Math.PI/180)));
addbullet(b1x, b1y, player1.angle, 1);
b1x2 = (player1.speed_x + game.arena.p_ship._x) + (38 * Math.cos(player1.angle * (Math.PI/180)));
b1y2 = (player1.speed_y + game.arena.p_ship._y) + (38 * Math.sin(player1.angle * (Math.PI/180)));
addbullet(b1x2, b1y2, player1.angle - 3, 1);
addbullet(b1x2, b1y2, player1.angle + 3, 1);
} else if (player1.gunpower == 3) {
b1x = (player1.speed_x + game.arena.p_ship._x) + (40 * Math.cos(player1.angle * (Math.PI/180)));
b1y = (player1.speed_y + game.arena.p_ship._y) + (40 * Math.sin(player1.angle * (Math.PI/180)));
addbullet(b1x, b1y, player1.angle, 1);
addbullet(b1x, b1y, player1.angle - 3, 1);
addbullet(b1x, b1y, player1.angle + 3, 1);
addbullet(b1x, b1y, player1.angle - 7, 1);
addbullet(b1x, b1y, player1.angle + 7, 1);
}
_root.lvl_sounds++;
_root.game.sounds["s_" + _root.lvl_sounds] = new Sound(_root.snd_efx);
_root.game.sounds["s_" + _root.lvl_sounds].setVolume(_global.volume_efx);
_root.game.sounds["s_" + _root.lvl_sounds].attachSound("shoot_player");
_root.game.sounds["s_" + _root.lvl_sounds].start(0, 0);
if (_root.lvl_sounds > _root.lvl_sounds_max) {
_root.lvl_sounds = 0;
}
player1.gundelay = player1.gundelay_max;
}
}
if ((_global.playermode == "multi") && (!_global.player2_ai)) {
if (Key.isDown(key_shoot2) && (player2.gundelay <= 0)) {
if (player2.gunpower == 1) {
b2x = (player2.speed_x + game.arena.p2_ship._x) + (40 * Math.cos(player2.angle * (Math.PI/180)));
b2y = (player2.speed_y + game.arena.p2_ship._y) + (40 * Math.sin(player2.angle * (Math.PI/180)));
addbullet(b2x, b2y, player2.angle, 2);
} else if (player2.gunpower == 2) {
b2x = (player2.speed_x + game.arena.p2_ship._x) + (40 * Math.cos(player2.angle * (Math.PI/180)));
b2y = (player2.speed_y + game.arena.p2_ship._y) + (40 * Math.sin(player2.angle * (Math.PI/180)));
addbullet(b2x, b2y, player2.angle, 2);
b2x2 = (player2.speed_x + game.arena.p2_ship._x) + (38 * Math.cos(player2.angle * (Math.PI/180)));
b2y2 = (player2.speed_y + game.arena.p2_ship._y) + (38 * Math.sin(player2.angle * (Math.PI/180)));
addbullet(b2x2, b2y2, player2.angle - 3, 2);
addbullet(b2x2, b2y2, player2.angle + 3, 2);
} else if (player2.gunpower == 3) {
b2x = (player2.speed_x + game.arena.p2_ship._x) + (40 * Math.cos(player2.angle * (Math.PI/180)));
b2y = (player2.speed_y + game.arena.p2_ship._y) + (40 * Math.sin(player2.angle * (Math.PI/180)));
addbullet(b2x, b2y, player2.angle, 2);
addbullet(b2x, b2y, player2.angle - 3, 2);
addbullet(b2x, b2y, player2.angle + 3, 2);
addbullet(b2x, b2y, player2.angle - 7, 2);
addbullet(b2x, b2y, player2.angle + 7, 2);
}
_root.lvl_sounds++;
_root.game.sounds["s_" + _root.lvl_sounds] = new Sound(_root.snd_efx);
_root.game.sounds["s_" + _root.lvl_sounds].setVolume(_global.volume_efx);
_root.game.sounds["s_" + _root.lvl_sounds].attachSound("shoot_player");
_root.game.sounds["s_" + _root.lvl_sounds].start(0, 0);
if (_root.lvl_sounds > _root.lvl_sounds_max) {
_root.lvl_sounds = 0;
}
player2.gundelay = player2.gundelay_max;
}
}
if (Key.isDown(32) && (!spacedown)) {
for (d in _root.game.arena) {
trace(_root.game.arena[d]._name);
}
spacedown = true;
} else if ((!Key.isDown(32)) && (spacedown)) {
spacedown = false;
}
if (_global.player2_ai && (game.arena.p2_ship._x != undefined)) {
ai2_huntenemy = false;
temps.closerang = 0;
temps.ninidist = 10000;
temps.enII = 0;
while (temps.enII < _root.enemies_array.length) {
if (_root.game.arena["enemy_" + _root.enemies_array[temps.enII]]._x != undefined) {
temps.endist = Math.sqrt(Math.pow(game.arena.p2_ship._x - game.arena["enemy_" + enemies_array[temps.enII]]._x, 2) + Math.pow(game.arena.p2_ship._y - game.arena["enemy_" + enemies_array[temps.enII]]._y, 2));
if (temps.endist < 285) {
ai2_huntenemy = true;
temps.dest_angle = Math.atan2(game.arena["enemy_" + enemies_array[temps.enII]]._y - game.arena.p2_ship._y, game.arena["enemy_" + enemies_array[temps.enII]]._x - game.arena.p2_ship._x) * 57.2957795130823;
if (temps.endist < temps.ninidist) {
temps.closerang = temps.dest_angle;
temps.ninidist = temps.endist;
}
}
}
temps.enII++;
}
if (ai2_huntenemy) {
temps.dest_angle = temps.closerang;
if (temps.ninidist < 65) {
if (player2.speed > (-player2.speed_max)) {
player2.speed = player2.speed - player2.accel;
}
}
if (_global.devmode) {
game.arena.createEmptyMovieClip("test_line1", 15000);
game.arena.test_line1.lineStyle(2, 16777215);
game.arena.test_line1.moveTo(game.arena.p2_ship._x, game.arena.p2_ship._y);
game.arena.test_line1.lineTo(game.arena.p2_ship._x + (temps.endist * Math.cos(temps.dest_angle * (Math.PI/180))), game.arena.p2_ship._y + (temps.endist * Math.sin(temps.dest_angle * (Math.PI/180))));
}
if (player2.gundelay <= 0) {
_root.lvl_sounds++;
_root.game.sounds["s_" + _root.lvl_sounds] = new Sound(_root.snd_efx);
_root.game.sounds["s_" + _root.lvl_sounds].setVolume(_global.volume_efx);
_root.game.sounds["s_" + _root.lvl_sounds].attachSound("shoot_player");
_root.game.sounds["s_" + _root.lvl_sounds].start(0, 0);
if (_root.lvl_sounds > _root.lvl_sounds_max) {
_root.lvl_sounds = 0;
}
if (player2.gunpower == 1) {
b2x = (player2.speed_x + game.arena.p2_ship._x) + (40 * Math.cos(player2.angle * (Math.PI/180)));
b2y = (player2.speed_y + game.arena.p2_ship._y) + (40 * Math.sin(player2.angle * (Math.PI/180)));
addbullet(b2x, b2y, player2.angle, 2);
} else if (player2.gunpower == 2) {
b2x = (player2.speed_x + game.arena.p2_ship._x) + (40 * Math.cos(player2.angle * (Math.PI/180)));
b2y = (player2.speed_y + game.arena.p2_ship._y) + (40 * Math.sin(player2.angle * (Math.PI/180)));
addbullet(b2x, b2y, player2.angle, 2);
b2x2 = (player2.speed_x + game.arena.p2_ship._x) + (38 * Math.cos(player2.angle * (Math.PI/180)));
b2y2 = (player2.speed_y + game.arena.p2_ship._y) + (38 * Math.sin(player2.angle * (Math.PI/180)));
addbullet(b2x2, b2y2, player2.angle - 3, 2);
addbullet(b2x2, b2y2, player2.angle + 3, 2);
} else if (player2.gunpower == 3) {
b2x = (player2.speed_x + game.arena.p2_ship._x) + (40 * Math.cos(player2.angle * (Math.PI/180)));
b2y = (player2.speed_y + game.arena.p2_ship._y) + (40 * Math.sin(player2.angle * (Math.PI/180)));
addbullet(b2x, b2y, player2.angle, 2);
addbullet(b2x, b2y, player2.angle - 3, 2);
addbullet(b2x, b2y, player2.angle + 3, 2);
addbullet(b2x, b2y, player2.angle - 7, 2);
addbullet(b2x, b2y, player2.angle + 7, 2);
}
player2.gundelay = player2.gundelay_max;
}
} else if (ai2_action == "waypoints") {
if (ai2_event) {
temps.dest_angle = Math.atan2(ai2_event_y - game.arena.p2_ship._y, ai2_event_x - game.arena.p2_ship._x) * 57.2957795130823;
temps.waydistance = Math.sqrt(Math.pow(ai2_event_x - game.arena.p2_ship._x, 2) + Math.pow(ai2_event_y - game.arena.p2_ship._y, 2));
} else {
temps.dest_angle = Math.atan2(ai2_waypoints[ai2_wpi][1] - game.arena.p2_ship._y, ai2_waypoints[ai2_wpi][0] - game.arena.p2_ship._x) * 57.2957795130823;
temps.waydistance = Math.sqrt(Math.pow(ai2_waypoints[ai2_wpi][0] - game.arena.p2_ship._x, 2) + Math.pow(ai2_waypoints[ai2_wpi][1] - game.arena.p2_ship._y, 2));
}
if (_global.devmode) {
game.arena.createEmptyMovieClip("test_line1", 15000);
game.arena.test_line1.lineStyle(2, 16711680);
game.arena.test_line1.moveTo(game.arena.p2_ship._x, game.arena.p2_ship._y);
game.arena.test_line1.lineTo(game.arena.p2_ship._x + (temps.waydistance * Math.cos(temps.dest_angle * (Math.PI/180))), game.arena.p2_ship._y + (temps.waydistance * Math.sin(temps.dest_angle * (Math.PI/180))));
}
if (ai2_event && (temps.waydistance < 36)) {
ai2_event = false;
} else if (temps.waydistance < 120) {
ai2_wpi++;
if (ai2_wpi >= ai2_waypoints.length) {
ai2_wpi = 0;
}
}
if (player2.speed < player2.speed_max) {
player2.speed = player2.speed + player2.accel;
}
}
if (temps.dest_angle > 0) {
if (game.arena.p2_ship._rotation > 0) {
if (temps.dest_angle > game.arena.p2_ship._rotation) {
if (player2.speed_angle < player2.speed_angle_max) {
player2.speed_angle = player2.speed_angle + player2.accel_angle;
}
} else if (temps.dest_angle < game.arena.p2_ship._rotation) {
if (player2.speed_angle > (-player2.speed_angle_max)) {
player2.speed_angle = player2.speed_angle - player2.accel_angle;
}
}
} else if (player2.speed_angle < player2.speed_angle_max) {
player2.speed_angle = player2.speed_angle + player2.accel_angle;
}
} else if (game.arena.p2_ship._rotation < 0) {
if (temps.dest_angle > game.arena.p2_ship._rotation) {
if (player2.speed_angle < player2.speed_angle_max) {
player2.speed_angle = player2.speed_angle + player2.accel_angle;
}
} else if (temps.dest_angle < game.arena.p2_ship._rotation) {
if (player2.speed_angle > (-player2.speed_angle_max)) {
player2.speed_angle = player2.speed_angle - player2.accel_angle;
}
}
} else if (temps.dest_angle <= -90) {
if (player2.speed_angle < player2.speed_angle_max) {
player2.speed_angle = player2.speed_angle + player2.accel_angle;
}
} else if (player2.speed_angle > (-player2.speed_angle_max)) {
player2.speed_angle = player2.speed_angle - player2.accel_angle;
}
}
if (game.arena.p_ship._x < 10) {
player1.speed_x = Math.abs(player1.speed_x);
player1.speed_x++;
}
if (game.arena.p2_ship._x < 10) {
player2.speed_x = Math.abs(player2.speed_x);
player2.speed_x++;
}
if (game.arena.p_ship._y < 10) {
player1.speed_y = Math.abs(player1.speed_y);
player1.speed_y++;
}
if (game.arena.p2_ship._y < 10) {
player2.speed_y = Math.abs(player2.speed_y);
player2.speed_y++;
}
if (game.arena.p_ship._x > (a_limit - 10)) {
player1.speed_x = -Math.abs(player1.speed_x);
player1.speed_x--;
}
if (game.arena.p2_ship._x > (a_limit - 10)) {
player2.speed_x = -Math.abs(player2.speed_x);
player2.speed_x--;
}
if (game.arena.p_ship._y > (a_limit - 10)) {
player1.speed_y = -Math.abs(player1.speed_y);
player1.speed_y--;
}
if (game.arena.p2_ship._y > (a_limit - 10)) {
player2.speed_y = -Math.abs(player2.speed_y);
player2.speed_y--;
}
distance_between_ships = Math.sqrt(Math.pow(game.arena.p_ship._x - game.arena.p2_ship._x, 2) + Math.pow(game.arena.p_ship._y - game.arena.p2_ship._y, 2));
if (distance_between_ships < 40) {
psytemp = player2.speed_y;
psxtemp = player2.speed_x;
player2.speed_y = player1.speed_y;
player2.speed_x = player1.speed_x;
player1.speed_y = psytemp;
player1.speed_x = psxtemp;
if (player1.speed_x == player2.speed_x) {
if (player1.speed_x > 0) {
if (game.arena.p_ship._x < game.arena.p2_ship._x) {
player1.speed_x = 0;
game.arena.p_ship._x--;
} else {
player2.speed_x = 0;
game.arena.p2_ship._x--;
}
} else if (game.arena.p_ship._x < game.arena.p2_ship._x) {
player1.speed_x = 0;
game.arena.p_ship._x++;
} else {
player2.speed_x = 0;
game.arena.p2_ship._x++;
}
}
if (player1.speed_y == player2.speed_y) {
if (player1.speed_y > 0) {
if (game.arena.p_ship._y < game.arena.p2_ship._y) {
player1.speed_y = 0;
game.arena.p_ship._y--;
} else {
player2.speed_y = 0;
game.arena.p2_ship._y--;
}
} else if (game.arena.p_ship._y < game.arena.p2_ship._y) {
player1.speed_y = 0;
game.arena.p_ship._y++;
} else {
player2.speed_y = 0;
game.arena.p2_ship._y++;
}
}
if (player1.speed_x > 0) {
game.arena.p_ship._x = game.arena.p_ship._x + 2;
} else {
game.arena.p_ship._x = game.arena.p_ship._x - 2;
}
if (player1.speed_y > 0) {
game.arena.p_ship._y = game.arena.p_ship._y + 2;
} else {
game.arena.p_ship._y = game.arena.p_ship._y - 2;
}
if (player2.speed_x > 0) {
game.arena.p2_ship._x = game.arena.p2_ship._x + 2;
} else {
game.arena.p2_ship._x = game.arena.p2_ship._x - 2;
}
if (player2.speed_y > 0) {
game.arena.p2_ship._y = game.arena.p2_ship._y + 2;
} else {
game.arena.p2_ship._y = game.arena.p2_ship._y - 2;
}
}
player1.speed_x = player1.speed_x + (player1.speed * Math.cos(player1.angle * (Math.PI/180)));
player1.speed_y = player1.speed_y + (player1.speed * Math.sin(player1.angle * (Math.PI/180)));
player1.angle = player1.angle + player1.speed_angle;
player2.speed_x = player2.speed_x + (player2.speed * Math.cos(player2.angle * (Math.PI/180)));
player2.speed_y = player2.speed_y + (player2.speed * Math.sin(player2.angle * (Math.PI/180)));
player2.angle = player2.angle + player2.speed_angle;
game.arena.p_ship._rotation = player1.angle;
game.arena.p_ship._x = game.arena.p_ship._x + player1.speed_x;
game.arena.p_ship._y = game.arena.p_ship._y + player1.speed_y;
game.arena.p2_ship._rotation = player2.angle;
game.arena.p2_ship._x = game.arena.p2_ship._x + player2.speed_x;
game.arena.p2_ship._y = game.arena.p2_ship._y + player2.speed_y;
player1.speed = player1.speed * m_decay_s;
normalizevar(player1.speed);
player1.speed_angle = player1.speed_angle * m_decay;
normalizevar(player1.speed_angle);
player1.speed_x = player1.speed_x * m_decay_space;
normalizevar(player1.speed_x);
player1.speed_y = player1.speed_y * m_decay_space;
normalizevar(player1.speed_y);
if (player1.angle > 360) {
player1.angle = player1.angle - 360;
}
if (player1.angle < -360) {
player1.angle = player1.angle + 360;
}
player2.speed = player2.speed * m_decay_s;
normalizevar(player2.speed);
player2.speed_angle = player2.speed_angle * m_decay;
normalizevar(player2.speed_angle);
player2.speed_x = player2.speed_x * m_decay_space;
normalizevar(player2.speed_x);
player2.speed_y = player2.speed_y * m_decay_space;
normalizevar(player2.speed_y);
if (player2.angle > 360) {
player2.angle = player2.angle - 360;
}
if (player2.angle < -360) {
player2.angle = player2.angle + 360;
}
if (!_global.overlord) {
if (pan_mode == "player1") {
pan_x = pan_x + ((((-game.arena.p_ship._x) + 240) - pan_x) / 6);
pan_y = pan_y + ((((-game.arena.p_ship._y) + 240) - pan_y) / 6);
game.arena._xscale = 100;
game.arena._yscale = 100;
} else if (pan_mode == "player2") {
pan_x = pan_x + ((((-game.arena.p2_ship._x) + 240) - pan_x) / 6);
pan_y = pan_y + ((((-game.arena.p2_ship._y) + 240) - pan_y) / 6);
game.arena._xscale = 100;
game.arena._yscale = 100;
} else if (pan_mode == "death") {
game.arena._xscale = 48;
game.arena._yscale = 48;
nnm = 2.08333333333333;
centerpanx = 500 / nnm;
centerpany = 500 / nnm;
pan_x = pan_x + ((((-centerpanx) + 240) - pan_x) / 6);
pan_y = pan_y + ((((-centerpany) + 240) - pan_y) / 6);
} else {
distx = Math.abs(game.arena.p2_ship._x - game.arena.p_ship._x);
disty = Math.abs(game.arena.p2_ship._y - game.arena.p_ship._y);
if (game.arena.p2_ship._x < game.arena.p_ship._x) {
goposx = game.arena.p2_ship._x;
} else {
goposx = game.arena.p_ship._x;
}
if (game.arena.p2_ship._y < game.arena.p_ship._y) {
goposy = game.arena.p2_ship._y;
} else {
goposy = game.arena.p_ship._y;
}
globdist = Math.sqrt((distx * distx) + (disty * disty));
if (globdist < 360) {
game.arena._xscale = 100;
game.arena._yscale = 100;
centerpanx = goposx + (distx / 2);
centerpany = goposy + (disty / 2);
} else {
nscale = (((globdist - 360) * -95) / 840) + 100;
if (nscale < 38) {
nscale = 38;
}
game.arena._xscale = nscale;
game.arena._yscale = nscale;
nnm = 100 / nscale;
centerpanx = (goposx + (distx / 2)) / nnm;
centerpany = (goposy + (disty / 2)) / nnm;
}
pan_x = pan_x + ((((-centerpanx) + 240) - pan_x) / 4);
pan_y = pan_y + ((((-centerpany) + 240) - pan_y) / 4);
}
} else {
game.arena._xscale = 48;
game.arena._yscale = 48;
nnm = 2.08333333333333;
centerpanx = 500 / nnm;
centerpany = 500 / nnm;
pan_x = pan_x + ((((-centerpanx) + 240) - pan_x) / 6);
pan_y = pan_y + ((((-centerpany) + 240) - pan_y) / 6);
}
game.arena._x = pan_x;
game.arena._y = pan_y;
game.parallax._x = (pan_x / 4) + 240;
game.parallax._y = (pan_y / 4) + 240;
game.parallax._xscale = game.arena._xscale;
game.parallax._yscale = game.arena._yscale;
game.parallax2._x = (pan_x / 2) + 240;
game.parallax2._y = (pan_y / 2) + 240;
game.parallax2._xscale = game.arena._xscale;
game.parallax2._yscale = game.arena._yscale;
}
if (Key.isDown(key_pause) && (!pdown)) {
if (_global.paused) {
_root.pausepause.gotoAndStop(1);
_global.paused = false;
} else {
_root.pausepause.gotoAndStop(2);
_global.paused = true;
}
pdown = true;
} else if (!Key.isDown(key_pause)) {
pdown = false;
}
};
_root._quality = _global.aa;
Instance of Symbol 4 MovieClip in Frame 9 (65 B)
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Instance of Symbol 18 MovieClip in Frame 9 (65 B)
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Frame 10 (249 B)
_root._quality = "HIGH";
ab20_09 = new LoadVars();
ab20_09.z = _global.name_player1 + " (p1)";
ab20_09.x = ab20.encodeNum(_global.score1);
ab20_09.c = 729;
ab20_09.v = "IVYXDZ";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
Frame 129 (413 B)
if (_global.playermode == "multi") {
if (_global.player2_ai) {
adtext = " (AI bot)";
} else {
adtext = " (p2)";
}
ab20_09 = new LoadVars();
ab20_09.z = _global.name_player2 + adtext;
ab20_09.x = ab20.encodeNum(_global.score2);
ab20_09.c = 729;
ab20_09.v = "IVYXDZ";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
} else {
_root.gotoAndPlay(_root._totalframes - 1);
}
Frame 259 (43 B)
_root.gotoAndPlay(_root._totalframes - 1);
Frame 260 (782 B)
stop();
mainsound = new Sound(_root.snd_music);
mainsound.attachSound("NG66453");
mainsound.setVolume(_global.volume_music);
mainsound.start(_global.moffset, 9999);
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
__top10_send__.hid = 729;
__top10_send__.kid = "IVYXDZ";
__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);
}
};
Instance of Symbol 480 MovieClip in Frame 260 (63 B)
on (release) {
getURL ("http://www.armorbot.com", "_blank");
}
Frame 261 (169 B)
stop();
mainsound = new Sound(_root.snd_music);
mainsound.attachSound("NG66453");
mainsound.setVolume(_global.volume_music);
mainsound.start(_global.moffset, 9999);
Symbol 24 MovieClip Frame 1 (314 B)
_root.stop();
Stage.showMenu = false;
this.onEnterFrame = function () {
var _local4 = _root.getBytesLoaded();
var _local2 = _root.getBytesTotal();
var _local3 = Math.ceil((_local4 / _local2) * 100);
bar._yscale = _local3;
ntex.text = _local3 + "%";
if (_local4 == _local2) {
_root.play();
}
};
Symbol 486 MovieClip [__Packages.ab20] Frame 0 (5.89 KiB) ● ●
class ab20
{
function ab20 () {
}
static function fr(str, find, replace, limit) {
var _local2 = str;
var _local3;
var _local4;
var _local9;
if (!(typeof(find) === "string")) {
if (replace === undefined) {
replace = [""];
} else if (typeof(replace) === "string") {
replace = [replace];
}
} else {
find = [find];
replace = [replace];
}
_local9 = find.length;
var _local1 = 0;
var _local5 = 0;
while (_local1 < _local9) {
while (_local4 = _local2.indexOf(find[_local1]) , !(_local4 === -1)) {
if ((!(limit === undefined)) && (_local5 >= limit)) {
break;
}
_local3 = new Array(_local2.substring(0, _local4), _local2.substr(_local4, find[_local1].length), _local2.substr(_local4 + find[_local1].length));
_local3[1] = ((replace[_local1] === undefined) ? "" : (replace[_local1]));
_local2 = (_local3[0] + _local3[1]) + _local3[2];
_local5++;
}
_local1++;
_local5 = 0;
}
return(_local2);
}
static function encodeNum(num) {
var _local11 = getTimer();
var _local6 = ["aZ", "Zy", "Zx"];
var _local7 = ["zH", "jY", "uH"];
var _local4 = ["Ah", "Xh", "hO"];
var _local5 = ["Ub", "Bu", "Cb"];
var _local8 = ["Qc", "Pc", "Pe"];
var _local9 = ["Ei", "Ie", "Ef"];
var _local3 = ["Fk", "kG", "Kg"];
var _local13 = ["Jl", "Lm", "Mn"];
var _local12 = ["No", "Np", "Qp"];
var _local2 = ["Rs", "St", "Sw"];
var _local14 = random(3);
num = String(num);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
if (_local14 == 1) {
num = fr(num, "5", _local8[0]);
} else {
num = fr(num, "5", _local8[random(3)]);
}
num = fr(num, "4", _local9[random(3)]);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "2", _local13[random(3)]);
num = fr(num, "1", _local12[random(3)]);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
var _local10 = getTimer() - _local11;
num = (num + "Dd") + _local10;
return(num);
}
static function encodeStr8bytes(str) {
var _local1 = 0;
var _local4 = str.length;
var _local3 = "%";
var _local2 = ["%", "$", "#", "@"];
while (_local1 < _local4) {
_local3 = _local3 + (str.charCodeAt(_local1) + _local2[random(_local2.length)]);
_local1++;
}
return(_local3);
}
static function decodeStr8bytes(str) {
str = ("PIE" + str) + "PIE";
str = fr(str, "%", "D");
str = fr(str, "$", "D");
str = fr(str, "#", "D");
str = fr(str, "@", "D");
str = fr(str, "PIED", "");
str = fr(str, "DPIE", "");
var _local3 = str.split("D");
var _local4 = "";
var _local1 = 0;
var _local5 = _local3.length;
while (_local1 < _local5) {
_local4 = _local4 + String(String.fromCharCode(_local3[_local1]));
_local1++;
}
return(_local4);
}
static function decodeNum(str) {
var _local2 = ["aZ", "Zy", "Zx", "zH", "jY", "uH", "Ah", "Xh", "hO", "Ub", "Bu", "Cb", "Qc", "Pc", "Pe", "Ei", "Ie", "Ef", "Fk", "kG", "Kg", "Jl", "Lm", "Mn", "No", "Np", "Qp", "Rs", "St", "Sw"];
str = String(str);
str = str.split("Dd");
str = str[0];
str = fr(str, _local2[0], "9");
str = fr(str, _local2[1], "9");
str = fr(str, _local2[2], "9");
str = fr(str, _local2[3], "8");
str = fr(str, _local2[4], "8");
str = fr(str, _local2[5], "8");
str = fr(str, _local2[6], "7");
str = fr(str, _local2[7], "7");
str = fr(str, _local2[8], "7");
str = fr(str, _local2[9], "6");
str = fr(str, _local2[10], "6");
str = fr(str, _local2[11], "6");
str = fr(str, _local2[12], "5");
str = fr(str, _local2[13], "5");
str = fr(str, _local2[14], "5");
str = fr(str, _local2[15], "4");
str = fr(str, _local2[16], "4");
str = fr(str, _local2[17], "4");
str = fr(str, _local2[18], "3");
str = fr(str, _local2[19], "3");
str = fr(str, _local2[20], "3");
str = fr(str, _local2[21], "2");
str = fr(str, _local2[22], "2");
str = fr(str, _local2[23], "2");
str = fr(str, _local2[24], "1");
str = fr(str, _local2[25], "1");
str = fr(str, _local2[26], "1");
str = fr(str, _local2[27], "0");
str = fr(str, _local2[28], "0");
str = fr(str, _local2[29], "0");
var _local3 = Number(str);
return(_local3);
}
}
Symbol 33 MovieClip Frame 1 (75 B)
if (_global.paused) {
_parent.gotoAndPlay(_parent._currentframe - 1);
}
Symbol 35 MovieClip [game_spaceship] Frame 1 (8 B)
stop();
Symbol 35 MovieClip [game_spaceship] Frame 2 (8 B)
stop();
Symbol 58 MovieClip Frame 1 (14 B)
_root.stop();
Symbol 58 MovieClip Frame 355 (23 B)
stop();
_root.play();
Symbol 60 MovieClip [game_spaceship2] Frame 1 (8 B)
stop();
Symbol 60 MovieClip [game_spaceship2] Frame 2 (8 B)
stop();
Symbol 67 MovieClip Frame 30 (36 B)
stop();
_parent.removeMovieClip();
Symbol 71 MovieClip Frame 30 (36 B)
stop();
_parent.removeMovieClip();
Symbol 72 MovieClip [game_efx_explode1] Frame 1 (47 B)
if (_global.effectsd == "high") {
stop();
}
Symbol 72 MovieClip [game_efx_explode1] Frame 2 (8 B)
stop();
Symbol 94 MovieClip [game_efx_levelz] Frame 1 (218 B)
this.delay = 30;
this.onEnterFrame = function () {
if (!_global.paused) {
this.delay--;
if (this.delay <= 0) {
this._alpha--;
}
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
};
Symbol 98 MovieClip [game_efx_spawn2] Frame 60 (37 B)
_root.addenemy(this._x, this._y, 2);
Symbol 98 MovieClip [game_efx_spawn2] Frame 90 (24 B)
this.removeMovieClip();
Symbol 99 MovieClip [game_efx_spawn3] Frame 60 (37 B)
_root.addenemy(this._x, this._y, 3);
Symbol 99 MovieClip [game_efx_spawn3] Frame 90 (24 B)
this.removeMovieClip();
Symbol 106 MovieClip [game_efx_spawn4] Frame 60 (37 B)
_root.addenemy(this._x, this._y, 4);
Symbol 106 MovieClip [game_efx_spawn4] Frame 90 (24 B)
this.removeMovieClip();
Symbol 107 MovieClip [game_efx_spawn5] Frame 60 (37 B)
_root.addenemy(this._x, this._y, 5);
Symbol 107 MovieClip [game_efx_spawn5] Frame 90 (24 B)
this.removeMovieClip();
Symbol 110 MovieClip [game_background] Frame 1 (8 B)
stop();
Symbol 111 MovieClip [game_efx_spawn1] Frame 60 (37 B)
_root.addenemy(this._x, this._y, 1);
Symbol 111 MovieClip [game_efx_spawn1] Frame 90 (24 B)
this.removeMovieClip();
Symbol 115 MovieClip [game_parallax] Frame 1 (8 B)
stop();
Symbol 135 MovieClip [game_enemy6] Frame 1 (8 B)
stop();
Symbol 136 MovieClip [game_efx_spawn6] Frame 60 (37 B)
_root.addenemy(this._x, this._y, 6);
Symbol 136 MovieClip [game_efx_spawn6] Frame 90 (24 B)
this.removeMovieClip();
Symbol 144 MovieClip Frame 2 (26 B)
stop();
stopAllSounds();
Symbol 153 Button (66 B)
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 156 Button (150 B)
on (release) {
_global.moffset = _root.mainsound.position / 1000;
stopAllSounds();
_root.transitionefx();
_root.gotoAndPlay(_root._totalframes);
}
Symbol 159 Button (135 B)
on (release) {
_global.moffset = _root.mainsound.position / 1000;
stopAllSounds();
_root.transitionefx();
_root.settingsscreen();
}
Symbol 162 Button (139 B)
on (release) {
_global.moffset = _root.mainsound.position / 1000;
stopAllSounds();
_root.transitionefx();
_root.instructionsscreen();
}
Symbol 165 Button (131 B)
on (release) {
_global.moffset = _root.mainsound.position / 1000;
stopAllSounds();
_root.transitionefx();
_root.playscreen();
}
Instance of Symbol 168 MovieClip in Symbol 170 MovieClip Frame 1 (66 B)
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 182 Button (154 B)
on (release) {
_global.moffset = _root.mainsound.position / 1000;
stopAllSounds();
_root.transitionefx();
_root.gotoAndPlay(_root._totalframes - 1);
}
Symbol 190 Button (83 B)
on (release) {
getURL ("http://slitz.armorstudios.com/download.html", "_blank");
}
Symbol 199 Button (128 B)
on (release) {
_global.moffset = _root.mainsound.position / 1000;
stopAllSounds();
_root.transitionefx();
gotoAndPlay (4);
}
Symbol 213 MovieClip Frame 1 (8 B)
stop();
Symbol 219 MovieClip Frame 1 (8 B)
stop();
Symbol 230 MovieClip Frame 1 (8 B)
stop();
Symbol 231 MovieClip Frame 1 (8 B)
stop();
Symbol 237 Button (658 B)
on (release) {
_global.gdetail = 1;
_global.aa = "LOW";
_root.aa1.gotoAndStop(2);
_root.aa2.gotoAndStop(1);
_root.aa3.gotoAndStop(1);
_global.parallax = false;
_root.pa1.gotoAndStop(2);
_root.pa2.gotoAndStop(1);
_global.effectsd = "low";
_root.ef1.gotoAndStop(2);
_root.ef2.gotoAndStop(1);
_root.globalsave();
_root.dt1.gotoAndStop(2);
_root.dt2.gotoAndStop(1);
_root.dt3.gotoAndStop(1);
_root.dt4.gotoAndStop(1);
_root.aa1._visible = false;
_root.aa2._visible = false;
_root.aa3._visible = false;
_root.pa1._visible = false;
_root.pa2._visible = false;
_root.ef1._visible = false;
_root.ef2._visible = false;
customize._alpha = 40;
}
Symbol 239 MovieClip Frame 1 (8 B)
stop();
Symbol 241 Button (658 B)
on (release) {
_global.gdetail = 2;
_global.aa = "LOW";
_root.aa1.gotoAndStop(2);
_root.aa2.gotoAndStop(1);
_root.aa3.gotoAndStop(1);
_global.parallax = true;
_root.pa1.gotoAndStop(1);
_root.pa2.gotoAndStop(2);
_global.effectsd = "high";
_root.ef1.gotoAndStop(1);
_root.ef2.gotoAndStop(2);
_root.globalsave();
_root.dt1.gotoAndStop(1);
_root.dt2.gotoAndStop(2);
_root.dt3.gotoAndStop(1);
_root.dt4.gotoAndStop(1);
_root.aa1._visible = false;
_root.aa2._visible = false;
_root.aa3._visible = false;
_root.pa1._visible = false;
_root.pa2._visible = false;
_root.ef1._visible = false;
_root.ef2._visible = false;
customize._alpha = 40;
}
Symbol 243 MovieClip Frame 1 (8 B)
stop();
Symbol 245 Button (661 B)
on (release) {
_global.gdetail = 3;
_global.aa = "MEDIUM";
_root.aa1.gotoAndStop(1);
_root.aa2.gotoAndStop(2);
_root.aa3.gotoAndStop(1);
_global.parallax = true;
_root.pa1.gotoAndStop(1);
_root.pa2.gotoAndStop(2);
_global.effectsd = "high";
_root.ef1.gotoAndStop(1);
_root.ef2.gotoAndStop(2);
_root.globalsave();
_root.dt1.gotoAndStop(1);
_root.dt2.gotoAndStop(1);
_root.dt3.gotoAndStop(2);
_root.dt4.gotoAndStop(1);
_root.aa1._visible = false;
_root.aa2._visible = false;
_root.aa3._visible = false;
_root.pa1._visible = false;
_root.pa2._visible = false;
_root.ef1._visible = false;
_root.ef2._visible = false;
customize._alpha = 40;
}
Symbol 247 MovieClip Frame 1 (8 B)
stop();
Symbol 249 Button (388 B)
on (release) {
_global.gdetail = 4;
_root.globalsave();
_root.dt1.gotoAndStop(1);
_root.dt2.gotoAndStop(1);
_root.dt3.gotoAndStop(1);
_root.dt4.gotoAndStop(2);
_root.aa1._visible = true;
_root.aa2._visible = true;
_root.aa3._visible = true;
_root.pa1._visible = true;
_root.pa2._visible = true;
_root.ef1._visible = true;
_root.ef2._visible = true;
customize._alpha = 100;
}
Symbol 251 MovieClip Frame 1 (8 B)
stop();
Symbol 257 Button (139 B)
on (release) {
_global.aa = "LOW";
_root.aa1.gotoAndStop(2);
_root.aa2.gotoAndStop(1);
_root.aa3.gotoAndStop(1);
_root.globalsave();
}
Symbol 259 MovieClip Frame 1 (8 B)
stop();
Symbol 261 Button (142 B)
on (release) {
_global.aa = "MEDIUM";
_root.aa1.gotoAndStop(1);
_root.aa2.gotoAndStop(2);
_root.aa3.gotoAndStop(1);
_root.globalsave();
}
Symbol 263 MovieClip Frame 1 (8 B)
stop();
Symbol 265 Button (140 B)
on (release) {
_global.aa = "HIGH";
_root.aa1.gotoAndStop(1);
_root.aa2.gotoAndStop(1);
_root.aa3.gotoAndStop(2);
_root.globalsave();
}
Symbol 267 MovieClip Frame 1 (8 B)
stop();
Symbol 269 Button (118 B)
on (release) {
_global.parallax = false;
_root.pa1.gotoAndStop(2);
_root.pa2.gotoAndStop(1);
_root.globalsave();
}
Symbol 271 MovieClip Frame 1 (8 B)
stop();
Symbol 273 Button (117 B)
on (release) {
_global.parallax = true;
_root.pa1.gotoAndStop(1);
_root.pa2.gotoAndStop(2);
_root.globalsave();
}
Symbol 275 MovieClip Frame 1 (8 B)
stop();
Symbol 277 Button (118 B)
on (release) {
_global.effectsd = "low";
_root.ef1.gotoAndStop(2);
_root.ef2.gotoAndStop(1);
_root.globalsave();
}
Symbol 279 MovieClip Frame 1 (8 B)
stop();
Symbol 281 Button (119 B)
on (release) {
_global.effectsd = "high";
_root.ef1.gotoAndStop(1);
_root.ef2.gotoAndStop(2);
_root.globalsave();
}
Symbol 283 MovieClip Frame 1 (8 B)
stop();
Symbol 285 Button (122 B)
on (release) {
_global.music_type = "stand";
_root.globalsave();
_root.mt1.gotoAndStop(2);
_root.mt2.gotoAndStop(1);
}
Symbol 287 MovieClip Frame 1 (8 B)
stop();
Symbol 289 Button (122 B)
on (release) {
_global.music_type = "radio";
_root.globalsave();
_root.mt1.gotoAndStop(1);
_root.mt2.gotoAndStop(2);
}
Symbol 291 MovieClip Frame 1 (8 B)
stop();
Symbol 293 Button (357 B)
on (release) {
_global.volume_music = 0;
_root.m0.gotoAndStop(2);
_root.m25.gotoAndStop(1);
_root.m40.gotoAndStop(1);
_root.m50.gotoAndStop(1);
_root.m60.gotoAndStop(1);
_root.m70.gotoAndStop(1);
_root.m75.gotoAndStop(1);
_root.m85.gotoAndStop(1);
_root.m100.gotoAndStop(1);
_root.globalsave();
_root.mainsound.setVolume(_global.volume_music);
}
Symbol 295 MovieClip Frame 1 (8 B)
stop();
Symbol 297 Button (358 B)
on (release) {
_global.volume_music = 25;
_root.m0.gotoAndStop(1);
_root.m25.gotoAndStop(2);
_root.m40.gotoAndStop(1);
_root.m50.gotoAndStop(1);
_root.m60.gotoAndStop(1);
_root.m70.gotoAndStop(1);
_root.m75.gotoAndStop(1);
_root.m85.gotoAndStop(1);
_root.m100.gotoAndStop(1);
_root.globalsave();
_root.mainsound.setVolume(_global.volume_music);
}
Symbol 299 MovieClip Frame 1 (8 B)
stop();
Symbol 301 Button (358 B)
on (release) {
_global.volume_music = 40;
_root.m0.gotoAndStop(1);
_root.m25.gotoAndStop(1);
_root.m40.gotoAndStop(2);
_root.m50.gotoAndStop(1);
_root.m60.gotoAndStop(1);
_root.m70.gotoAndStop(1);
_root.m75.gotoAndStop(1);
_root.m85.gotoAndStop(1);
_root.m100.gotoAndStop(1);
_root.globalsave();
_root.mainsound.setVolume(_global.volume_music);
}
Symbol 303 MovieClip Frame 1 (8 B)
stop();
Symbol 305 Button (358 B)
on (release) {
_global.volume_music = 50;
_root.m0.gotoAndStop(1);
_root.m25.gotoAndStop(1);
_root.m40.gotoAndStop(1);
_root.m50.gotoAndStop(2);
_root.m60.gotoAndStop(1);
_root.m70.gotoAndStop(1);
_root.m75.gotoAndStop(1);
_root.m85.gotoAndStop(1);
_root.m100.gotoAndStop(1);
_root.globalsave();
_root.mainsound.setVolume(_global.volume_music);
}
Symbol 307 MovieClip Frame 1 (8 B)
stop();
Symbol 309 Button (358 B)
on (release) {
_global.volume_music = 60;
_root.m0.gotoAndStop(1);
_root.m25.gotoAndStop(1);
_root.m40.gotoAndStop(1);
_root.m50.gotoAndStop(1);
_root.m60.gotoAndStop(2);
_root.m70.gotoAndStop(1);
_root.m75.gotoAndStop(1);
_root.m85.gotoAndStop(1);
_root.m100.gotoAndStop(1);
_root.globalsave();
_root.mainsound.setVolume(_global.volume_music);
}
Symbol 311 MovieClip Frame 1 (8 B)
stop();
Symbol 313 Button (358 B)
on (release) {
_global.volume_music = 70;
_root.m0.gotoAndStop(1);
_root.m25.gotoAndStop(1);
_root.m40.gotoAndStop(1);
_root.m50.gotoAndStop(1);
_root.m60.gotoAndStop(1);
_root.m70.gotoAndStop(2);
_root.m75.gotoAndStop(1);
_root.m85.gotoAndStop(1);
_root.m100.gotoAndStop(1);
_root.globalsave();
_root.mainsound.setVolume(_global.volume_music);
}
Symbol 315 MovieClip Frame 1 (8 B)
stop();
Symbol 317 Button (358 B)
on (release) {
_global.volume_music = 75;
_root.m0.gotoAndStop(1);
_root.m25.gotoAndStop(1);
_root.m40.gotoAndStop(1);
_root.m50.gotoAndStop(1);
_root.m60.gotoAndStop(1);
_root.m70.gotoAndStop(1);
_root.m75.gotoAndStop(2);
_root.m85.gotoAndStop(1);
_root.m100.gotoAndStop(1);
_root.globalsave();
_root.mainsound.setVolume(_global.volume_music);
}
Symbol 319 MovieClip Frame 1 (8 B)
stop();
Symbol 321 Button (358 B)
on (release) {
_global.volume_music = 85;
_root.m0.gotoAndStop(1);
_root.m25.gotoAndStop(1);
_root.m40.gotoAndStop(1);
_root.m50.gotoAndStop(1);
_root.m60.gotoAndStop(1);
_root.m70.gotoAndStop(1);
_root.m75.gotoAndStop(1);
_root.m85.gotoAndStop(2);
_root.m100.gotoAndStop(1);
_root.globalsave();
_root.mainsound.setVolume(_global.volume_music);
}
Symbol 323 MovieClip Frame 1 (8 B)
stop();
Symbol 325 Button (359 B)
on (release) {
_global.volume_music = 100;
_root.m0.gotoAndStop(1);
_root.m25.gotoAndStop(1);
_root.m40.gotoAndStop(1);
_root.m50.gotoAndStop(1);
_root.m60.gotoAndStop(1);
_root.m70.gotoAndStop(1);
_root.m75.gotoAndStop(1);
_root.m85.gotoAndStop(1);
_root.m100.gotoAndStop(2);
_root.globalsave();
_root.mainsound.setVolume(_global.volume_music);
}
Symbol 327 MovieClip Frame 1 (8 B)
stop();
Symbol 328 Button (305 B)
on (release) {
_global.volume_efx = 0;
_root.e0.gotoAndStop(2);
_root.e25.gotoAndStop(1);
_root.e40.gotoAndStop(1);
_root.e50.gotoAndStop(1);
_root.e60.gotoAndStop(1);
_root.e70.gotoAndStop(1);
_root.e75.gotoAndStop(1);
_root.e85.gotoAndStop(1);
_root.e100.gotoAndStop(1);
_root.globalsave();
}
Symbol 329 MovieClip Frame 1 (8 B)
stop();
Symbol 330 Button (306 B)
on (release) {
_global.volume_efx = 25;
_root.e0.gotoAndStop(1);
_root.e25.gotoAndStop(2);
_root.e40.gotoAndStop(1);
_root.e50.gotoAndStop(1);
_root.e60.gotoAndStop(1);
_root.e70.gotoAndStop(1);
_root.e75.gotoAndStop(1);
_root.e85.gotoAndStop(1);
_root.e100.gotoAndStop(1);
_root.globalsave();
}
Symbol 331 MovieClip Frame 1 (8 B)
stop();
Symbol 332 Button (306 B)
on (release) {
_global.volume_efx = 40;
_root.e0.gotoAndStop(1);
_root.e25.gotoAndStop(1);
_root.e40.gotoAndStop(2);
_root.e50.gotoAndStop(1);
_root.e60.gotoAndStop(1);
_root.e70.gotoAndStop(1);
_root.e75.gotoAndStop(1);
_root.e85.gotoAndStop(1);
_root.e100.gotoAndStop(1);
_root.globalsave();
}
Symbol 333 MovieClip Frame 1 (8 B)
stop();
Symbol 334 Button (306 B)
on (release) {
_global.volume_efx = 50;
_root.e0.gotoAndStop(1);
_root.e25.gotoAndStop(1);
_root.e40.gotoAndStop(1);
_root.e50.gotoAndStop(2);
_root.e60.gotoAndStop(1);
_root.e70.gotoAndStop(1);
_root.e75.gotoAndStop(1);
_root.e85.gotoAndStop(1);
_root.e100.gotoAndStop(1);
_root.globalsave();
}
Symbol 335 MovieClip Frame 1 (8 B)
stop();
Symbol 336 Button (306 B)
on (release) {
_global.volume_efx = 60;
_root.e0.gotoAndStop(1);
_root.e25.gotoAndStop(1);
_root.e40.gotoAndStop(1);
_root.e50.gotoAndStop(1);
_root.e60.gotoAndStop(2);
_root.e70.gotoAndStop(1);
_root.e75.gotoAndStop(1);
_root.e85.gotoAndStop(1);
_root.e100.gotoAndStop(1);
_root.globalsave();
}
Symbol 337 MovieClip Frame 1 (8 B)
stop();
Symbol 338 Button (306 B)
on (release) {
_global.volume_efx = 70;
_root.e0.gotoAndStop(1);
_root.e25.gotoAndStop(1);
_root.e40.gotoAndStop(1);
_root.e50.gotoAndStop(1);
_root.e60.gotoAndStop(1);
_root.e70.gotoAndStop(2);
_root.e75.gotoAndStop(1);
_root.e85.gotoAndStop(1);
_root.e100.gotoAndStop(1);
_root.globalsave();
}
Symbol 339 MovieClip Frame 1 (8 B)
stop();
Symbol 340 Button (306 B)
on (release) {
_global.volume_efx = 75;
_root.e0.gotoAndStop(1);
_root.e25.gotoAndStop(1);
_root.e40.gotoAndStop(1);
_root.e50.gotoAndStop(1);
_root.e60.gotoAndStop(1);
_root.e70.gotoAndStop(1);
_root.e75.gotoAndStop(2);
_root.e85.gotoAndStop(1);
_root.e100.gotoAndStop(1);
_root.globalsave();
}
Symbol 341 MovieClip Frame 1 (8 B)
stop();
Symbol 342 Button (306 B)
on (release) {
_global.volume_efx = 85;
_root.e0.gotoAndStop(1);
_root.e25.gotoAndStop(1);
_root.e40.gotoAndStop(1);
_root.e50.gotoAndStop(1);
_root.e60.gotoAndStop(1);
_root.e70.gotoAndStop(1);
_root.e75.gotoAndStop(1);
_root.e85.gotoAndStop(2);
_root.e100.gotoAndStop(1);
_root.globalsave();
}
Symbol 343 MovieClip Frame 1 (8 B)
stop();
Symbol 344 Button (307 B)
on (release) {
_global.volume_efx = 100;
_root.e0.gotoAndStop(1);
_root.e25.gotoAndStop(1);
_root.e40.gotoAndStop(1);
_root.e50.gotoAndStop(1);
_root.e60.gotoAndStop(1);
_root.e70.gotoAndStop(1);
_root.e75.gotoAndStop(1);
_root.e85.gotoAndStop(1);
_root.e100.gotoAndStop(2);
_root.globalsave();
}
Symbol 345 MovieClip Frame 1 (8 B)
stop();
Symbol 366 MovieClip Frame 1 (40 B)
stop();
_global.playermode = "single";
Symbol 366 MovieClip Frame 2 (68 B)
stop();
_global.playermode = "multi";
_global.player2_ai = false;
Symbol 366 MovieClip Frame 3 (67 B)
stop();
_global.playermode = "multi";
_global.player2_ai = true;
Symbol 369 Button (132 B)
on (release) {
if (ptype._currentframe == 1) {
ptype.gotoAndStop(3);
} else {
ptype.gotoAndStop(ptype._currentframe - 1);
}
}
Symbol 370 Button (132 B)
on (release) {
if (ptype._currentframe == 3) {
ptype.gotoAndStop(1);
} else {
ptype.gotoAndStop(ptype._currentframe + 1);
}
}
Symbol 371 Button (34 B)
on (release) {
gotoAndPlay (8);
}
Symbol 374 Button (166 B)
on (release) {
stopAllSounds();
_global.name_player1 = p1box.text;
_global.name_player2 = p2box.text;
globalsave();
_root.gotoAndPlay(_root._currentframe + 1);
}
Symbol 404 MovieClip Frame 1 (8 B)
stop();
Symbol 422 Button (339 B)
on (release) {
_root.musicstream.stop();
_global.music_i++;
if (_global.music_i >= _global.music_radios.length) {
_global.music_i = 0;
}
_root.musicstream.loadSound(_global.music_radios[_global.music_i][3], true);
station_name.text = _global.music_radios[_global.music_i][0];
clink = _global.music_radios[_global.music_i][1];
}
Symbol 424 Button (342 B)
on (release) {
_root.musicstream.stop();
_global.music_i--;
if (_global.music_i < 0) {
_global.music_i = _global.music_radios.length - 1;
}
_root.musicstream.loadSound(_global.music_radios[_global.music_i][3], true);
station_name.text = _global.music_radios[_global.music_i][0];
clink = _global.music_radios[_global.music_i][1];
}
Symbol 426 Button (127 B)
on (release) {
_root.musicstream.loadSound(_global.music_radios[_global.music_i][3], true);
_parent._parent.playing = true;
}
Symbol 428 Button (77 B)
on (release) {
_root.musicstream.stop();
_parent._parent.playing = false;
}
Symbol 429 MovieClip Frame 1 (8 B)
stop();
Symbol 431 Button (43 B)
on (release) {
getURL (clink, "_blank");
}
Symbol 432 MovieClip Frame 1 (330 B)
var timer = 9000;
this.onEnterFrame = function () {
if (_parent.playing) {
ps.gotoAndStop(2);
} else {
ps.gotoAndStop(1);
}
timer--;
if (timer < 0) {
if (_parent.playing) {
trace("RELOADED");
_root.musicstream.loadSound(_global.music_radios[_global.music_i][3], true);
}
timer = 9000;
}
};
Symbol 433 MovieClip Frame 1 (8 B)
stop();
Symbol 433 MovieClip Frame 2 (500 B)
stop();
var playing = true;
if (_global.volume_music == 0) {
playing = false;
}
var tries = 0;
_root.musicstream = new Sound(_root.snd_music);
_root.musicstream.setVolume(_global.volume_music);
if (_global.volume_music > 0) {
_root.musicstream.loadSound(_global.music_radios[_global.music_i][3], true);
}
rcomps.station_name.text = _global.music_radios[_global.music_i][0];
rcomps.clink = _global.music_radios[_global.music_i][1];
_root.musicstream.setVolume(_global.volume_music);
Symbol 438 MovieClip Frame 1 (8 B)
stop();
Symbol 438 MovieClip Frame 121 (188 B)
stop();
stopAllSounds();
_root.transitionefx();
_global.score1 = _root.player1.score;
if (_root.player2.score != undefined) {
_global.score2 = _root.player2.score;
}
_root.play();
Symbol 441 MovieClip Frame 1 (8 B)
stop();
Symbol 441 MovieClip Frame 45 (146 B)
_root.player1.score = _root.player1.score + 5000;
if (_root.player2.score != undefined) {
_root.player2.score = _root.player2.score + 5000;
}
Symbol 441 MovieClip Frame 90 (146 B)
_root.player1.score = _root.player1.score + 5000;
if (_root.player2.score != undefined) {
_root.player2.score = _root.player2.score + 5000;
}
Symbol 441 MovieClip Frame 135 (146 B)
_root.player1.score = _root.player1.score + 5000;
if (_root.player2.score != undefined) {
_root.player2.score = _root.player2.score + 5000;
}
Symbol 441 MovieClip Frame 160 (188 B)
stop();
stopAllSounds();
_root.transitionefx();
_global.score1 = _root.player1.score;
if (_root.player2.score != undefined) {
_global.score2 = _root.player2.score;
}
_root.play();
Symbol 446 Button (57 B)
on (release) {
stopAllSounds();
_root.gotoAndPlay(4);
}
Symbol 447 MovieClip Frame 1 (8 B)
stop();
Symbol 450 MovieClip Frame 1 (8 B)
stop();