Frame 1
function klink() {
getURL ("http://www.kabomb.net", "_blank");
}
function nlink() {
getURL ("http://www.newgrounds.com", "_blank");
}
function nothing() {
getURL ("http://bea-d.be/deseo.htm", "_blank");
}
var Newgrounds_API = new NewgroundsAPI_AS2(37);
_root.kongregateServices.connect();
sounds = true;
var date = new Date();
init_timer = date.getTime();
var cm = new ContextMenu();
cm.hideBuiltInItems();
cm.builtInItems.quality = true;
cm1 = new ContextMenuItem("*** CREDITS ***", nothing);
cm1.enabled = false;
cm2 = new ContextMenuItem("Kabomb - developer", klink);
cm3 = new ContextMenuItem("Newgrounds - sponsor", nlink);
cm.customItems.push(cm1, cm2, cm3);
_root.menu = cm;
Frame 21
ng_mc.onRelease = function () {
_global.NewgroundsAPI_DataObject.API.LoadNewgrounds();
};
Frame 31
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
kabomb_mc.onRelease = function () {
_global.NewgroundsAPI_DataObject.API.LoadMySite();
};
_root.createEmptyMovieClip("sounds_mc", _root.getNextHighestDepth());
_root.createEmptyMovieClip("music_mc", _root.getNextHighestDepth());
var theme = new Sound(music_mc);
theme.attachSound("theme");
theme.setVolume(50);
theme.start(0, 0);
theme.onSoundComplete = function () {
theme.start(0, 0);
};
__com_mochibot__("ca19f86a", this, 10301, true);
Frame 91
if (gmode == "normal") {
stats_mc._visible = false;
} else {
hs_mc._visible = false;
stats_btn.enabled = false;
stats_btn._visible = false;
}
Symbol 8 MovieClip Frame 1
stop();
Symbol 12 MovieClip Frame 1
function ease_scale() {
es_xto = 100 + (tot_speed * 1.3);
es_yto = 100 - (tot_speed * 1.3);
this._rotation = (tot_dir * 180) / Math.PI;
faicial._rotation = 360 - this._rotation;
faicial._x = _parent.limit(tot_speed, 0, 15);
faicial._x = faicial._x + ((faicial.xto - faicial._x) / 10);
es_x = es_x + ((es_xto - this._xscale) / 10);
es_y = es_y + ((es_yto - this._yscale) / 10);
es_x = es_x * 0.9;
es_y = es_y * 0.9;
this._xscale = this._xscale + es_x;
this._yscale = this._yscale + es_y;
}
function move_faic() {
if (Key.isDown(37)) {
xspeed = xspeed - xacc;
} else if (Key.isDown(39)) {
xspeed = xspeed + xacc;
} else {
xspeed = xspeed * friction;
}
}
function check_jump() {
if (Key.isDown(38)) {
action = "jump";
yspeed = -bounce;
}
}
function check_walls(i) {
if (xto > ((450 - radius) + i)) {
xspeed = (-Math.abs(xspeed)) * 0.8;
xto = xto - i;
}
if (xto < ((50 + radius) - i)) {
xspeed = Math.abs(xspeed) * 0.8;
xto = xto + i;
}
}
radius = 18;
yspeed = 0;
xspeed = 0;
xacc = 0.5;
xmax = 7;
ymax = 30;
friction = 0.9;
gravity = 0.7;
action = "fall";
bounce = 20;
xto = this._x;
yto = this._y + radius;
es_x = 0;
es_y = 0;
es_mag = 1.3;
var cjump = false;
var cfall = false;
var colour = "yellow";
onEnterFrame = function () {
cjump = false;
if (action == "fall") {
yspeed = yspeed + gravity;
}
if (action == "stand") {
if (Key.isDown(37) || (Key.isDown(39))) {
action = "move";
}
cjump = true;
cfall = true;
}
if (action == "move") {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
action = "stand";
}
cfall = true;
cjump = true;
}
if (action == "jump") {
yspeed = yspeed + gravity;
if (yspeed >= 0) {
action = "fall";
}
}
move_faic();
xspeed = _parent.limit(xspeed, -xmax, xmax);
yspeed = _parent.limit(yspeed, -ymax, ymax);
xto = xto + xspeed;
yto = yto + yspeed;
tot_dir = Math.atan2(yspeed, xspeed);
tot_speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
fxto = (Math.cos(tot_dir) * tot_speed) * 2;
fyto = (Math.sin(tot_dir) * tot_speed) - radius;
ease_scale();
if (cjump) {
check_jump();
}
if (cfall) {
if (!_parent.ground.hitTest(xto + _parent._x, yto + _parent._y, true)) {
action = "fall";
}
}
if (_parent.fheight < 10) {
i = 35;
while (i > 0) {
if (_parent.ground.hitTest(xto + _parent._x, (yto + _parent._y) - i, true)) {
yto = yto - i;
action = "stand";
yspeed = 0;
break;
}
i--;
}
}
if (xto > (450 - radius)) {
xspeed = (-Math.abs(xspeed)) * 0.8;
xto--;
}
if (xto < (50 + radius)) {
xspeed = Math.abs(xspeed) * 0.8;
xto++;
}
if (Key.isDown(65)) {
head.gotoAndStop(1);
colour = "yellow";
}
if (Key.isDown(83) && (_parent.erange > 1)) {
head.gotoAndStop(2);
colour = "green";
}
if (Key.isDown(68) && (_parent.erange > 2)) {
head.gotoAndStop(3);
colour = "purple";
}
if (Key.isDown(70) && (_parent.erange > 3)) {
head.gotoAndStop(4);
colour = "red";
}
this._x = xto;
this._y = yto - radius;
};
Symbol 31 MovieClip Frame 40
stop();
Symbol 45 Button
on (press) {
tellTarget (_root) {
nextFrame();
};
}
Symbol 46 Button
on (press) {
gotoAndStop ("end");
_root.gotoAndStop("newgrounds");
}
Instance of Symbol 21 MovieClip in Symbol 47 MovieClip Frame 1
onClipEvent (load) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop("lastframe");
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay("loaded");
}
}
Symbol 47 MovieClip Frame 101
play();
Symbol 47 MovieClip Frame 165
stop();
Symbol 53 Button
on (release) {
_global.NewgroundsAPI_DataObject.API.LoadNewgrounds();
}
Symbol 59 Button
on (release) {
_global.NewgroundsAPI_DataObject.API.LoadNewgrounds();
}
Symbol 61 MovieClip Frame 1
function startAd(ngad_url) {
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("\r::IGNORE THE FOLLOWING ERROR IF THE AD LOADS::");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
var _local1 = 731;
var _local2 = 3;
ngads_redirect.load(ngad_url);
}
_root.stop();
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
pfixEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(pfixEnd, domain.length);
if (domain != "andkon.com") {
if (_global.NewgroundsAPI_DataObject.ad_url) {
startAd(_global.NewgroundsAPI_DataObject.ad_url);
}
_global.NewgroundsAPI_DataObject.API.onAdsApproved = function () {
startAd(_global.NewgroundsAPI_DataObject.ad_url);
};
}
stop();
Symbol 438 MovieClip [__Packages.NewgroundsAPI_AS2] Frame 0
class NewgroundsAPI_AS2
{
var movie_id, error_format, header_format, normal_format, link_format, host, stat_ids, data_object, debug_mode, movie_version;
function NewgroundsAPI_AS2 (id) {
movie_id = id;
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 16711680 /* 0xFF0000 */;
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 16777215 /* 0xFFFFFF */;
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 16777215 /* 0xFFFFFF */;
link_format = new TextFormat();
link_format.color = 16776960 /* 0xFFFF00 */;
link_format.underline = true;
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
stat_ids = new Object();
stat_ids.movie_views = 1;
stat_ids.author_referrals = 2;
stat_ids.ng_referrals = 3;
stat_ids.version_referrals = 4;
if (!_global.NewgroundsAPI_DataObject) {
_global.NewgroundsAPI_DataObject = new Object();
_global.NewgroundsAPI_DataObject.API = this;
var _local3 = new Object();
_local3.id = movie_id;
_local3.host = host;
_local3.stat = stat_ids.movie_views;
sendStats(_local3);
}
data_object = _global.NewgroundsAPI_DataObject;
}
function sendStats(params, openInBrowser) {
if (debug_mode) {
params.debug = true;
}
var _local7 = "?as=2";
for (var _local4 in params) {
_local7 = _local7 + ((("&" + _local4) + "=") + escape(String(params[_local4])));
}
if (openInBrowser) {
getURL (script_url + _local7, "_blank");
} else {
var _local9 = new XML();
_local9.ignoreWhite = true;
_local9.onLoad = function (success) {
var _local7 = new Object();
var _local4 = 0;
while (_local4 < this.firstChild.childNodes.length) {
var _local5 = this.firstChild.childNodes[_local4];
var _local6 = _local5.nodeName;
var _local3 = _local5.attributes.value;
if (_local3 == Number(_local3)) {
_local3 = Number(_local3);
}
_local7[_local6] = _local3;
_local4++;
}
_global.NewgroundsAPI_DataObject.API.eventHandler(_local7);
};
_local9.load(script_url + _local7);
}
}
function setDebugMode(bool) {
debug_mode = bool;
}
function setMovieVersion(version) {
movie_version = version.toString();
}
function AddCustomLink(id, name) {
SetCustomStat(id, name);
}
function SetCustomStat(id, name) {
stat_ids[name] = Number(id) + custom_stats;
}
function LoadCustomLink(name) {
if (!stat_ids[name]) {
trace(("API ERROR: The custom link '" + name) + "' does not exist");
return(undefined);
}
var _local2 = new Object();
_local2.id = movie_id;
_local2.host = host;
_local2.stat = stat_ids[name];
if (!data_log["loaded_" + name]) {
data_log["loaded_" + name] = true;
} else {
_local2.skiplog = true;
}
sendStats(_local2, true);
}
function SendCustomStat(name) {
if (!stat_ids[name]) {
trace(("API ERROR: The custom stat '" + name) + "' does not exist");
return(undefined);
}
var _local2 = new Object();
_local2.id = movie_id;
_local2.host = host;
_local2.stat = stat_ids[name];
sendStats(_local2);
}
function LoadNewgrounds(page) {
var _local2 = new Object();
_local2.id = movie_id;
_local2.host = host;
_local2.stat = stat_ids.ng_referrals;
if (!data_log.loaded_newgrounds) {
data_log.loaded_newgrounds = true;
} else {
_local2.skiplog = 1;
}
if (page) {
_local2.page = page;
}
sendStats(_local2, true);
}
function LoadMySite() {
var _local2 = new Object();
_local2.id = movie_id;
_local2.host = host;
_local2.stat = stat_ids.author_referrals;
if (!data_log.loaded_mysite) {
data_log.loaded_mysite = true;
} else {
_local2.skiplog = 1;
}
sendStats(_local2, true);
}
function getHost() {
return(host);
}
function getMovieVersion() {
return(movie_version);
}
function eventHandler(params) {
for (var _local3 in params) {
data_object[_local3] = unescape(params[_local3]);
}
if (data_object.deny_host) {
onDenyHost(host, data_object.movie_url);
}
if (data_object.ad_url and (!stop_ad)) {
onAdsApproved();
}
if (data_object.movie_version != movie_version) {
onNewVersionAvailable(data_object.movie_version, data_object.movie_url);
}
if (data_object.request_portal_url) {
var _local4 = new Object();
_local4.id = movie_id;
_local4.portal_url = _url;
sendStats(_local4);
}
if (data_object.settings_loaded) {
onSettingsLoaded(data_object.settings_loaded);
}
}
function onAdsApproved() {
}
function onSettingsLoaded(success) {
if (success) {
trace("NG API settings have successfully been loaded");
} else {
trace("NG API settings failed to load, make sure you have the correct Movie ID");
}
}
function onNewVersionAvailable(version, url) {
if ((!url) or (url.length < 1)) {
url = "http://www.newgrounds.com";
}
trace((("VERSION " + version) + " at ") + url);
var _local3 = new Object();
_local3.x = Stage.width / 2;
_local3.y = Stage.height / 2;
_root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(_local3.x - 240, _local3.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local3.x + 240, _local3.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local3.x + 240, _local3.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local3.x - 240, _local3.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local3.x - 240, _local3.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0);
_root.NGAPI_new_version_overlay.exit.moveTo(_local3.x + 210, _local3.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local3.x + 230, _local3.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local3.x + 230, _local3.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local3.x + 210, _local3.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local3.x + 210, _local3.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(_local3.x + 214, _local3.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local3.x + 226, _local3.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(_local3.x + 226, _local3.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local3.x + 214, _local3.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var _local4 = (("Version " + version) + " is now available at:") + newline;
var _local7 = _local4.length;
_local4 = _local4 + url;
var _local6 = _local4.length;
_root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local3.x - 210, _local3.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = "New Version Available!";
_root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format);
_root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = _local4;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(normal_format);
link_format.url = (((((script_url + "?as=2&id=") + movie_id) + "&host=") + host) + "&stat=") + stat_ids.version_referrals;
_root.NGAPI_new_version_overlay.message.setTextFormat(_local7, _local6, link_format);
}
function onDenyHost(host, real_host) {
stop_ad = true;
trace("DENIED " + host);
_root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var _local3 = ((((("This movie has not been approved for use on " + host) + ".") + newline) + newline) + "For an aproved copy, please visit:") + newline;
var _local5 = _local3.length;
_local3 = _local3 + real_host;
var _local4 = _local3.length;
_root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = "ERROR!";
_root.NGAPI_deny_host_overlay.error.setTextFormat(error_format);
_root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = _local3;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format);
link_format.url = real_host;
_root.NGAPI_deny_host_overlay.message.setTextFormat(_local5, _local4, link_format);
}
var data_log = new Object();
var script_url = "http://www.ngads.com/gateway.php";
var stop_ad = false;
var custom_stats = 50;
}
Symbol 439 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 76 MovieClip [cross] Frame 45
this.removeMovieClip();
Symbol 81 MovieClip Frame 1
stop();
Symbol 95 MovieClip [enemy] Frame 1
stop();
Symbol 106 MovieClip [explosion] Frame 1
onEnterFrame = function () {
if (_parent._parent.gpause) {
stop();
} else {
play();
}
};
Symbol 106 MovieClip [explosion] Frame 17
this.removeMovieClip();
Symbol 106 MovieClip [explosion] Frame 34
this.removeMovieClip();
Symbol 106 MovieClip [explosion] Frame 51
this.removeMovieClip();
Symbol 106 MovieClip [explosion] Frame 68
this.removeMovieClip();
Symbol 106 MovieClip [explosion] Frame 85
this.removeMovieClip();
Symbol 122 MovieClip [line] Frame 1
onEnterFrame = function () {
if (_parent._parent.gpause) {
stop();
} else {
play();
}
};
Symbol 122 MovieClip [line] Frame 21
this.removeMovieClip();
Symbol 122 MovieClip [line] Frame 42
this.removeMovieClip();
Symbol 122 MovieClip [line] Frame 63
this.removeMovieClip();
Symbol 122 MovieClip [line] Frame 84
this.removeMovieClip();
Symbol 122 MovieClip [line] Frame 105
this.removeMovieClip();
Symbol 129 MovieClip Frame 11
stop();
Symbol 137 MovieClip [star] Frame 1
onEnterFrame = function () {
if (_parent._parent.gpause) {
stop();
} else {
play();
}
};
Symbol 137 MovieClip [star] Frame 31
this.removeMovieClip();
Symbol 145 MovieClip [overlay] Frame 60
_root.game_mc.removeMovieClip();
_root.gotoAndStop("gameover");
this.removeMovieClip();
Symbol 152 Button
on (release) {
_root.gotoAndStop("kabomb");
}
Symbol 157 MovieClip Frame 20
stop();
Symbol 158 MovieClip Frame 25
stop();
Symbol 195 MovieClip Frame 1
_root.stop();
Symbol 195 MovieClip Frame 265
_root.gotoAndStop("kabomb");
Symbol 204 MovieClip Frame 199
_root.gotoAndStop("menu");
Symbol 205 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 212 Button
on (release) {
_root.gotoAndStop("instructions");
}
Symbol 216 Button
on (release) {
gotoAndStop ("story");
}
Symbol 220 Button
on (release) {
gotoAndStop ("pregame");
}
Symbol 223 Button
on (release) {
getURL ("http://rankz.armorbot.com/agnry_faic_2/", "blank");
}
Symbol 236 Button
on (release) {
_global.NewgroundsAPI_DataObject.API.LoadMySite();
}
Symbol 239 Button
on (release) {
_global.NewgroundsAPI_DataObject.API.LoadNewgrounds();
}
Symbol 242 Button
on (release) {
nextFrame();
}
Symbol 243 MovieClip Frame 1
function ease_scale() {
es_xto = 100 + (tot_speed * 1.3);
es_yto = 100 - (tot_speed * 1.3);
this._rotation = (tot_dir * 180) / Math.PI;
faicial._rotation = 360 - this._rotation;
faicial._x = _parent.limit(tot_speed, 0, 15);
faicial._x = faicial._x + ((faicial.xto - faicial._x) / 10);
es_x = es_x + ((es_xto - this._xscale) / 10);
es_y = es_y + ((es_yto - this._yscale) / 10);
es_x = es_x * 0.9;
es_y = es_y * 0.9;
this._xscale = this._xscale + es_x;
this._yscale = this._yscale + es_y;
}
function move_faic() {
if (Key.isDown(37)) {
xspeed = xspeed - xacc;
} else if (Key.isDown(39)) {
xspeed = xspeed + xacc;
} else {
xspeed = xspeed * friction;
}
}
function check_jump() {
if (Key.isDown(38)) {
action = "jump";
yspeed = -bounce;
}
}
function check_walls(i) {
if (xto > ((450 - radius) + i)) {
xspeed = (-Math.abs(xspeed)) * 0.8;
xto = xto - i;
}
if (xto < ((50 + radius) - i)) {
xspeed = Math.abs(xspeed) * 0.8;
xto = xto + i;
}
}
radius = 18;
yspeed = 0;
xspeed = 0;
xacc = 0.5;
xmax = 7;
ymax = 30;
friction = 0.9;
gravity = 0.7;
action = "fall";
bounce = 20;
xto = this._x;
yto = this._y + radius;
es_x = 0;
es_y = 0;
es_mag = 1.3;
var cjump = false;
var cfall = false;
var colour = "yellow";
onEnterFrame = function () {
cjump = false;
if (action == "fall") {
yspeed = yspeed + gravity;
}
if (action == "stand") {
if (Key.isDown(37) || (Key.isDown(39))) {
action = "move";
}
cjump = true;
cfall = true;
}
if (action == "move") {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
action = "stand";
}
cfall = true;
cjump = true;
}
if (action == "jump") {
yspeed = yspeed + gravity;
if (yspeed >= 0) {
action = "fall";
}
}
move_faic();
xspeed = _parent.limit(xspeed, -xmax, xmax);
yspeed = _parent.limit(yspeed, -ymax, ymax);
xto = xto + xspeed;
yto = yto + yspeed;
tot_dir = Math.atan2(yspeed, xspeed);
tot_speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
fxto = (Math.cos(tot_dir) * tot_speed) * 2;
fyto = (Math.sin(tot_dir) * tot_speed) - radius;
ease_scale();
if (cjump) {
check_jump();
}
if (cfall) {
if (!_parent.ground.hitTest(xto + _parent._x, yto + _parent._y, true)) {
action = "fall";
}
}
if (_parent.fheight < 10) {
i = 35;
while (i > 0) {
if (_parent.ground.hitTest(xto + _parent._x, (yto + _parent._y) - i, true)) {
yto = yto - i;
action = "stand";
yspeed = 0;
break;
}
i--;
}
}
if (xto > (450 - radius)) {
xspeed = (-Math.abs(xspeed)) * 0.8;
xto--;
}
if (xto < (50 + radius)) {
xspeed = Math.abs(xspeed) * 0.8;
xto++;
}
if (Key.isDown(65)) {
head.gotoAndStop(1);
colour = "yellow";
}
if (Key.isDown(83) && (_parent.erange > 1)) {
head.gotoAndStop(2);
colour = "green";
}
if (Key.isDown(68) && (_parent.erange > 2)) {
head.gotoAndStop(3);
colour = "purple";
}
if (Key.isDown(70) && (_parent.erange > 3)) {
head.gotoAndStop(4);
colour = "red";
}
this._x = xto;
this._y = yto - radius;
};
Symbol 247 Button
on (release) {
prevFrame();
}
Symbol 260 Button
on (release) {
_root.gotoAndStop("instructions");
}
Symbol 262 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 1
stop();
Symbol 270 Button
on (release) {
_root.gotoAndStop("pregame");
}
Symbol 274 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 292 MovieClip Frame 1
stop();
Symbol 293 Button
on (release) {
_root.gotoAndStop("story");
}
Symbol 301 Button
on (release) {
gmode = "normal";
_root.gotoAndStop("game");
}
Symbol 306 Button
on (release) {
gmode = "monochrome";
_root.gotoAndStop("game");
}
Symbol 310 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 1
function ease_scale() {
es_xto = 100 + (tot_speed * 1.3);
es_yto = 100 - (tot_speed * 1.3);
this._rotation = (tot_dir * 180) / Math.PI;
faicial._rotation = 360 - this._rotation;
faicial._x = game.limit(tot_speed, 0, 15);
faicial._x = faicial._x + ((faicial.xto - faicial._x) / 10);
es_x = es_x + ((es_xto - this._xscale) / 10);
es_y = es_y + ((es_yto - this._yscale) / 10);
es_x = es_x * 0.9;
es_y = es_y * 0.9;
this._xscale = this._xscale + es_x;
this._yscale = this._yscale + es_y;
}
function move_faic() {
if (Key.isDown(37)) {
xspeed = xspeed - xacc;
} else if (Key.isDown(39)) {
xspeed = xspeed + xacc;
} else {
xspeed = xspeed * friction;
}
}
function check_jump() {
if (Key.isDown(38)) {
action = "jump";
yspeed = -bounce;
}
}
function check_walls(i) {
if (xto > ((550 - radius) + i)) {
xspeed = (-Math.abs(xspeed)) * 0.8;
xto = xto - i;
}
if (xto < ((50 + radius) - i)) {
xspeed = Math.abs(xspeed) * 0.8;
xto = xto + i;
}
}
function gyspeed() {
if (game.pu_slowmo) {
yspeed = yspeed + (gravity / 2);
} else {
yspeed = yspeed + gravity;
}
}
var game = _parent;
radius = 18;
yspeed = 0;
xspeed = 0;
xacc = 0.7;
xease = 20;
xmax = 7;
ymax = 15;
friction = 0.9;
gravity = 0.4;
action = "fall";
bounce = 20;
xto = this._x;
yto = this._y + radius;
es_x = 0;
es_y = 0;
es_mag = 1.3;
recover = 0;
recover_time = 90;
var sw = game.sw;
var sh = game.sh;
var cjump = false;
var colour = "yellow";
onEnterFrame = function () {
if (!game.gpause) {
cjump = false;
if (recover > 0) {
recover--;
if ((recover / 2) == Math.round(recover / 2)) {
if (this._alpha == 100) {
this._alpha = 50;
} else {
this._alpha = 100;
}
}
} else {
this._alpha = 100;
}
if (game.pu_speed) {
xacc = 1.5;
xmax = 14;
} else {
xacc = 0.5;
xmax = 7;
}
if (game.pu_bounce) {
bounce = 30;
} else {
bounce = 20;
}
if (action == "fall") {
gyspeed();
}
if (action == "stand") {
if (Key.isDown(37) || (Key.isDown(39))) {
action = "move";
}
cjump = true;
}
if (action == "move") {
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
action = "stand";
}
cjump = true;
}
if (action == "jump") {
gyspeed();
if (yspeed >= 0) {
action = "fall";
}
}
move_faic();
xspeed = game.limit(xspeed, -xmax, xmax);
yspeed = game.limit(yspeed, Number.NEGATIVE_INFINITY, ymax);
if (game.pu_slowmo) {
xto = xto + (xspeed / 2);
yto = yto + (yspeed / 2);
} else {
xto = xto + xspeed;
yto = yto + yspeed;
}
tot_dir = Math.atan2(yspeed, xspeed);
tot_speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
fxto = (Math.cos(tot_dir) * tot_speed) * 2;
fyto = (Math.sin(tot_dir) * tot_speed) - radius;
ease_scale();
if (cjump) {
check_jump();
}
if (yto > (sh - 20)) {
action = "stand";
yspeed = 0;
yto = sh - 20;
}
if (xto > ((sw - 50) - radius)) {
xspeed = (-Math.abs(xspeed)) * 0.8;
xto--;
}
if (xto < (50 + radius)) {
xspeed = Math.abs(xspeed) * 0.8;
xto++;
}
if (game.pu_invincible) {
head.play();
} else if (_root.gmode != "monochrome") {
if (Key.isDown(65)) {
colour = "yellow";
}
if (Key.isDown(83)) {
colour = "green";
}
if (Key.isDown(68)) {
colour = "purple";
}
if (Key.isDown(70)) {
colour = "red";
}
head.gotoAndStop(colour);
}
this._x = xto;
this._y = yto - radius;
}
};
Symbol 323 MovieClip Frame 1
function limit(variable, min, max) {
if (variable < min) {
return(min);
}
if (variable > max) {
return(max);
}
return(variable);
}
function limit_change(variable, min, max) {
if (variable < min) {
return(max);
}
if (variable > max) {
return(min);
}
return(variable);
}
function remove_enemy(enemy_mc, rMC) {
i = 0;
while (i < enemies.length) {
if (enemies[i] == enemy_mc) {
if (rMC) {
enemies[i].removeMovieClip();
} else {
enemies[i].gotoAndStop(2);
}
enemies.splice(i, 1);
}
i++;
}
}
function spawn_enemy(y, etype) {
id = enemies_mc.getNextHighestDepth();
var _local3 = enemies_mc.attachMovie("enemy", "enemy" + id, id);
enemies.push(_local3);
_local3.colour_num = etype;
_local3.colour = colours[etype - 1];
_local3.head.gotoAndStop(etype);
_local3.dir = random(2) + 1;
if (_local3.dir == 1) {
_local3._x = 15;
_local3.xspeed = (Math.random() * 3) + 1;
} else {
_local3._x = sw - 15;
_local3.xspeed = -((Math.random() * 3) + 1);
}
_local3.init_xspeed = _local3.xspeed;
_local3._y = y;
_local3.yspeed = 0;
_local3.faicial.gotoAndStop(random(_local3.faicial._totalframes) + 1);
_local3.dead = false;
_local3.mcross = false;
_local3.onEnterFrame = function () {
if (!gpause) {
if (!this.dead) {
if (pu_slowmo) {
this.xspeed = this.init_xspeed / 2;
} else {
this.xspeed = this.init_xspeed;
}
this._x = this._x + this.xspeed;
this.xdiff = faic_mc._x - this._x;
this.ydiff = faic_mc._y - this._y;
this.diff = Math.sqrt((this.xdiff * this.xdiff) + (this.ydiff * this.ydiff));
this.fdiff = game.limit(this.diff, 0, 10);
this.angle = (Math.PI*2) - Math.atan2(this.ydiff, this.xdiff);
this.faicial._x = Math.cos(this.angle) * this.fdiff;
this.faicial._y = (-Math.sin(this.angle)) * this.fdiff;
if (((this._y + game._y) > 0) && ((this._y + game._y) < sh)) {
visible_enemies++;
}
if (((this._y + game._y) > ((-sh) * 2)) && ((this._y + game._y) < 0)) {
top_enemies++;
}
if (this.dir == 1) {
if (this._x > (sw - 15)) {
remove_enemy(this, true);
}
} else if (this._x < 15) {
remove_enemy(this, true);
}
if (this.diff < 35) {
explosion(this._x, this._y, this.colour_num);
faices++;
_root.kongregateStats.submit("Faices Killed", 1);
if (this.colour == "yellow") {
y_faices++;
_root.kongregateStats.submit("Yellow Faices Killed", 1);
}
if (this.colour == "green") {
g_faices++;
_root.kongregateStats.submit("Green Faices Killed", 1);
}
if (this.colour == "purple") {
p_faices++;
_root.kongregateStats.submit("Purple Faices Killed", 1);
}
if (this.colour == "red") {
r_faices++;
_root.kongregateStats.submit("Red Faices Killed", 1);
}
if (faic_mc.colour == this.colour) {
game.power++;
combo++;
if ((combo / 10) == Math.round(combo / 10)) {
show_combo_txt(combo, this._x, this._y);
}
} else if ((!pu_invincible) && (faic_mc.recover <= 0)) {
combo = 0;
game.power = game.power - 10;
faic_mc.recover = faic_mc.recover_time;
this.mcross = true;
} else {
combo++;
if ((combo / 10) == Math.round(combo / 10)) {
show_combo_txt(combo, this._x, this._y);
}
}
if (this.mcross) {
make_cross(this._x, this._y);
}
remove_enemy(this, false);
this.dead = true;
this.tspeed = faic_mc.tot_speed;
this.xspeed = Math.cos(this.angle + Math.PI) * this.tspeed;
this.yspeed = (-Math.sin(this.angle + Math.PI)) * this.tspeed;
faic_mc.action = "jump";
faic_mc.yspeed = -faic_mc.bounce;
faic_mc.xspeed = -this.xspeed;
}
if ((this._y + game._y) > (sh * 2)) {
remove_enemy(this, true);
}
} else {
this.yspeed++;
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
this.faicial._x = this.faicial._x + this.xspeed;
this.faicial._y = this.faicial._y + this.yspeed;
this.faicial._x = game.limit_change(this.faicial._x, -35, 35);
this.faicial._y = game.limit_change(this.faicial._y, -35, 35);
if ((this._y + game._y) > (sh + 100)) {
this.removeMovieClip();
}
}
}
};
}
function make_powerup(y) {
id = powerups_mc.getNextHighestDepth();
var _local2 = powerups_mc.attachMovie("powerup", "powerup" + id, id);
_local2._x = (Math.random() * (sw - 127)) + 63.5;
_local2._y = y;
_local2.ptype = random(4) + 1;
_local2.coin.gotoAndStop(powerups[_local2.ptype - 1]);
_local2.onEnterFrame = function () {
if (!gpause) {
this.play();
if ((this._y + game._y) > (sh * 1.5)) {
this.removeMovieClip();
}
this.xdiff = faic_mc._x - this._x;
this.ydiff = faic_mc._y - this._y;
this.diff = Math.sqrt((this.xdiff * this.xdiff) + (this.ydiff * this.ydiff));
if (this.diff < 40) {
if (this.ptype == 1) {
pu_speed = true;
pu_speed_timer = pu_timer * fps;
} else if (this.ptype == 2) {
pu_bounce = true;
pu_bounce_timer = pu_timer * fps;
} else if (this.ptype == 3) {
pu_slowmo = true;
pu_slowmo_timer = pu_timer * fps;
} else if (this.ptype == 4) {
pu_invincible = true;
pu_invincible_timer = pu_timer * fps;
}
faic_mc.yspeed = -faic_mc.bounce;
faic_mc.xspeed = (faic_mc._x - this._x) * 3;
explosion(this._x, this._y, 5);
this.removeMovieClip();
}
} else {
this.stop();
}
};
}
function explosion(x, y, colour) {
id = effects_mc.getNextHighestDepth();
var _local1 = effects_mc.attachMovie("explosion", "explosion" + id, id);
make_sound("explode");
_local1._x = x;
_local1._y = y;
_local1._rotation = Math.random() * 360;
_local1.gotoAndPlay(colours[colour - 1]);
make_line(x, y, colour, 3);
make_star(x, y, 5);
}
function cloud() {
id = bg_mc.getNextHighestDepth();
var _local2 = bg_mc.attachMovie("cloud", "cloud" + id, id);
_local2.gotoAndStop(random(_local2._totalframes) + 1);
_local2.dir = random(2);
_local2._xscale = (_local2._yscale = _local2._yscale + ((Math.random() * 50) + 100));
if (random(2) == 0) {
_local2._xscale = _local2._xscale * -1;
}
if (_local2.dir == 0) {
_local2._x = (-_local2._width) / 2;
} else {
_local2._x = game.sw + (_local2._width / 2);
}
_local2.xspeed = (Math.random() * 3) + 1;
_local2._y = (((Math.random() * game.sh) * 3) - sh) - game._y;
_local2.onEnterFrame = function () {
if (!gpause) {
if (this.dir == 0) {
this._x = this._x + this.xspeed;
} else {
this._x = this._x - this.xspeed;
}
if ((this._y + game._y) > (game.sh * 2)) {
this.removeMovieClip();
}
}
};
}
function show_combo_txt(number, x, y) {
id = effects_mc.getNextHighestDepth();
var _local2 = effects_mc.attachMovie("combo_txt", "combo_txt" + id, id);
_local2._x = x;
_local2._y = y;
_local2.txt = number;
_local2.counter = 30;
_local2.onEnterFrame = function () {
if (this.counter < 0) {
this._alpha = this._alpha - 4;
if (this._alpha <= 0) {
this.removeMovieClip();
}
} else {
this.counter--;
}
};
}
function make_star(x, y, amount) {
i = 0;
while (i < amount) {
id = effects_mc.getNextHighestDepth();
var _local1 = effects_mc.attachMovie("star", "star" + id, id);
_local1._x = (x + (Math.random() * 80)) - 40;
_local1._y = (y + (Math.random() * 80)) - 40;
_local1._xscale = (_local1._yscale = (Math.random() * 50) + 50);
i++;
}
}
function make_line(x, y, colour, amount) {
i = 0;
while (i < amount) {
id = effects_mc.getNextHighestDepth();
var _local1 = effects_mc.attachMovie("line", "line" + id, id);
_local1.gotoAndPlay(colours[colour - 1]);
_local1._x = x;
_local1._y = y;
_local1._rotation = Math.random() * 360;
_local1._xscale = (_local1._yscale = (Math.random() * 50) + 50);
i++;
}
}
function make_cross(x, y) {
id = effects_mc.getNextHighestDepth();
var _local1 = effects_mc.attachMovie("cross", "cross" + id, id);
_local1._x = x;
_local1._y = y;
}
function save_data() {
var _local2 = SharedObject.getLocal("Agnry Faic 2");
_local2.data.tr_height = _root.tr_height;
_local2.data.tr_combo = _root.tr_combo;
_local2.data.tr_faices = _root.tr_faices;
_local2.data.max_height = _root.max_height;
_local2.data.max_combo = _root.max_combo;
_local2.data.max_faices = _root.max_faices;
_local2.flush();
}
function make_sound(link) {
if (_root.sounds) {
var _local2 = new Sound(_root.sounds_mc);
_local2.attachSound(link);
_local2.start(0, 0);
_local2.setVolume(200);
}
}
function game_over() {
_root.kongregateStats.submit("Highest Height Reached (Monochrome)", yheight_max);
_root.kongregateStats.submit("Highest Height Reached (Normal)", yheight_max);
_root.kongregateStats.submit("Faices Killed", 1);
_root.kongregateStats.submit("Yellow Faices Killed", 1);
_root.kongregateStats.submit("Green Faices Killed", 1);
_root.kongregateStats.submit("Purple Faices Killed", 1);
_root.kongregateStats.submit("Red Faices Killed", 1);
dead = (_root.dead = (gpause = true));
_root.hscore = yheight_max;
_root.hcombo = hcombo;
_root.combo = combo;
_root.yheight_max = yheight_max;
_root.yheight = yheight;
_root.y_faices = y_faices;
_root.g_faices = g_faices;
_root.p_faices = p_faices;
_root.r_faices = r_faices;
_root.faices = faices;
}
_root.stop();
this.createEmptyMovieClip("bg_mc", this.getNextHighestDepth());
this.attachMovie("scenery", "scenery", this.getNextHighestDepth());
this.createEmptyMovieClip("enemies_mc", this.getNextHighestDepth());
this.createEmptyMovieClip("powerups_mc", this.getNextHighestDepth());
faic_mc.swapDepths(this.getNextHighestDepth());
this.createEmptyMovieClip("effects_mc", this.getNextHighestDepth());
flags.swapDepths(this.getNextHighestDepth());
walls.swapDepths(this.getNextHighestDepth());
var game = this;
var erange = 1;
var sw = 600;
var sh = 500;
var fps = 30;
var enemies = new Array();
var colours = ["yellow", "green", "purple", "red", "blue"];
var powerups = ["speed", "bounce", "slowmo", "invincible"];
var pu_speed = false;
var pu_bounce = false;
var pu_slowmo = false;
var pu_invincible = false;
_root.clock_speed._alpha = 50;
_root.clock_bounce._alpha = 50;
_root.clock_slowmo._alpha = 50;
_root.clock_invincible._alpha = 50;
_root.clock_speed.gotoAndStop("speed");
_root.clock_bounce.gotoAndStop("bounce");
_root.clock_slowmo.gotoAndStop("slowmo");
_root.clock_invincible.gotoAndStop("invincible");
var pu_timer = 10;
var pu_speed_timer = 0;
var pu_bounce_timer = 0;
var pu_slowmo_timer = 0;
var pu_invincible_timer = 0;
timer = 0;
speed = 1;
ymax = 0;
ystop = 0;
power = 100;
visible_enemies = 0;
top_enemies = 0;
gpause = false;
dead = false;
_root.dead = false;
_root.pause_mc._visible = false;
combo = 0;
hcombo = 0;
faices = 0;
y_faices = 0;
g_faices = 0;
p_faices = 0;
r_faices = 0;
spawn_enemy(sh / 2, 1);
flags.gotoAndStop("yellow");
var date = new Date();
pt_init_time = date.getTime();
prlse = true;
onEnterFrame = function () {
if (Key.isDown(80) && (prlse)) {
prlse = false;
}
if ((!Key.isDown(80)) && (!prlse)) {
prlse = true;
if (!dead) {
if (gpause) {
gpause = false;
_root.pause_mc._visible = false;
} else {
gpause = true;
_root.pause_mc._visible = true;
}
}
}
var _local3 = new Date();
pt_timer = _local3.getTime() - _root.init_timer;
pt_tsec = pt_timer / 1000;
pt_tmin = pt_tsec / 60;
pt_min = Math.floor(pt_tmin);
pt_sec = Math.round(((pt_tmin - pt_min) * 60) * 100) / 100;
if (pt_sec < 10) {
pt_sec = "0" + pt_sec;
}
_root.time_txt = (pt_min + ":") + pt_sec;
if (!gpause) {
timer++;
if ((timer / 300) == Math.abs(timer / 300)) {
if (_root.gmode == "monochrome") {
_root.kongregateStats.submit("Highest Height Reached (Monochrome)", yheight_max);
} else {
_root.kongregateStats.submit("Highest Height Reached (Normal)", yheight_max);
}
}
scenery.fshadow._x = faic_mc._x;
if ((visible_enemies < 3) || (enemies.length < 3)) {
spawn_enemy((Math.random() * (sh - 50)) - this._y, random(erange) + 1);
}
if (top_enemies < 3) {
spawn_enemy((((Math.random() * sh) * 2) - (sh * 2)) - this._y, random(erange) + 1);
}
visible_enemies = 0;
top_enemies = 0;
if (random(50) == 0) {
if (fheight < 10000) {
cloud();
}
}
if (_root.gmode == "normal") {
if (random(500) == 0) {
make_powerup(((Math.random() * sh) - sh) - this._y);
}
if (pu_speed) {
pu_speed_timer--;
_root.clock_speed._alpha = 100;
_root.clock_speed.hand._rotation = (((pu_timer * fps) - pu_speed_timer) / (pu_timer * fps)) * 360;
if (pu_speed_timer <= 0) {
pu_speed = false;
}
} else {
_root.clock_speed._alpha = 50;
}
if (pu_bounce) {
pu_bounce_timer--;
_root.clock_bounce._alpha = 100;
_root.clock_bounce.hand._rotation = (((pu_timer * fps) - pu_bounce_timer) / (pu_timer * fps)) * 360;
if (pu_bounce_timer <= 0) {
pu_bounce = false;
}
} else {
_root.clock_bounce._alpha = 50;
}
if (pu_slowmo) {
pu_slowmo_timer--;
_root.clock_slowmo._alpha = 100;
_root.clock_slowmo.hand._rotation = (((pu_timer * fps) - pu_slowmo_timer) / (pu_timer * fps)) * 360;
if (pu_slowmo_timer <= 0) {
pu_slowmo = false;
}
} else {
_root.clock_slowmo._alpha = 50;
}
if (pu_invincible) {
pu_invincible_timer--;
_root.clock_invincible._alpha = 100;
_root.clock_invincible.hand._rotation = (((pu_timer * fps) - pu_invincible_timer) / (pu_timer * fps)) * 360;
if (pu_invincible_timer <= 0) {
pu_invincible = false;
}
} else {
_root.clock_invincible._alpha = 50;
}
}
if (hcombo < combo) {
hcombo = combo;
}
power = limit(power, 0, 100);
_root.powerbar.bar._xscale = _root.powerbar.bar._xscale + ((power - _root.powerbar.bar._xscale) / 5);
_root.scale_mc._y = this._y + faic_mc._y;
fheight = (sh - 40) - faic_mc._y;
if (ymax < fheight) {
ymax = fheight;
}
yheight_max = Math.round(ymax / 10);
yheight = Math.round(fheight / 10);
_root.max_txt = yheight_max;
ystop = (sh * 3) - ymax;
_root.scale_mc.scale_txt = yheight;
if (fheight > 1000) {
bg_mc.scenery.removeMovieClip();
}
if (_root.gmode == "monochrome") {
erange = 1;
_root.asdf._visible = false;
} else {
erange = 1;
flags._y = sh - 260;
flags.gotoAndStop("yellow");
if (fheight > (5000 - (sh * 2))) {
flags._y = (sh - 20) - 5000;
flags.gotoAndStop("green");
}
if (fheight > 5000) {
erange = 2;
}
if (fheight > (10000 - (sh * 2))) {
flags._y = (sh - 20) - 10000;
flags.gotoAndStop("purple");
}
if (fheight > 10000) {
erange = 3;
}
if (fheight > (20000 - (sh * 2))) {
flags._y = (sh - 20) - 20000;
flags.gotoAndStop("red");
}
if (fheight > 20000) {
erange = 4;
}
}
yto = (sh / 2) - faic_mc._y;
wallsy = walls._y + game._y;
if (wallsy > 40) {
wallsy = wallsy - 40;
}
if (wallsy < -40) {
wallsy = wallsy + 40;
}
walls._y = wallsy - game._y;
_root.bg.gotoAndStop(Math.round((fheight / 20000) * 100) + 1);
this._y = yto;
this._y = limit(this._y, sh - ystop);
this._y = limit(this._y, 0);
if (faic_mc.yto > ystop) {
faic_mc.yspeed = (-faic_mc.bounce) * 2;
if (faic_mc.recover <= 0) {
faic_mc.recover = faic_mc.recover_time;
power = power - 50;
combo = 0;
}
}
}
if (Math.round(power) <= 0) {
dead = true;
_root.dead = true;
gpause = true;
_root.pause_mc._visible = false;
if (_root.overlay == undefined) {
id = _root.getNextHighestDepth();
var _local4 = _root.attachMovie("overlay", "overlay", id);
game_over();
}
}
};
Symbol 341 MovieClip Frame 11
stop();
Symbol 351 Button
on (release) {
gotoAndStop (1);
}
Symbol 352 Button
on (release) {
gotoAndStop (2);
}
Symbol 353 Button
on (release) {
gotoAndStop (3);
}
Symbol 354 Button
on (release) {
gotoAndStop (5);
}
Symbol 374 MovieClip Frame 1
var mc;
onEnterFrame = function () {
if (_root.dead) {
mc = _root;
} else {
mc = _root.game_mc;
}
combo_txt = mc.hcombo;
ccombo_txt = mc.combo;
height_txt = mc.yheight_max;
cheight_txt = mc.yheight;
faic_y_txt = mc.y_faices;
faic_g_txt = mc.g_faices;
faic_p_txt = mc.p_faices;
faic_r_txt = mc.r_faices;
faic_tot_txt = mc.faices;
time_txt = _root.time_txt;
};
Symbol 385 Button
on (release) {
_root._quality = "high";
}
Symbol 388 Button
on (release) {
_root._quality = "medium";
}
Symbol 391 Button
on (release) {
_root._quality = "low";
}
Symbol 395 MovieClip Frame 1
onEnterFrame = function () {
if (_root.theme.getVolume() == 0) {
_root.sounds = false;
gotoAndStop (2);
} else {
gotoAndStop (1);
_root.sounds = true;
}
};
this.onRelease = function () {
if (_root.theme.getVolume() == 50) {
_root.theme.setVolume(0);
_root.sounds = false;
gotoAndStop (2);
} else {
_root.theme.setVolume(50);
_root.sounds = true;
gotoAndStop (1);
}
};
Symbol 398 Button
on (release) {
_root.game_mc.game_over();
_root.gotoAndStop("gameover");
}
Symbol 401 Button
on (release) {
_root.game_mc.game_over();
_root.gotoAndStop("menu");
}
Symbol 404 MovieClip Frame 1
stop();
Symbol 411 Button
on (release) {
gotoAndStop ("pregame");
}
Symbol 414 Button
on (release) {
gotoAndStop ("stats");
}
Symbol 417 Button
on (release) {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
submit_btn._alpha = 75;
submit_btn.enabled = false;
bXlnYW1lX25hbWVfdmFyaWFibGU = name_txt.text;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.yheight_max;
__rankz_send__("MjM2MWolZSVhJW4lcw==", "bWloQnduTlM=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
}
Symbol 421 Button
on (release) {
getURL ("http://rankz.armorbot.com/agnry_faic_2/", "blank");
}
Symbol 429 MovieClip Frame 1
stop();
hs_txt = _root.yheight_max;
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
pfixEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(pfixEnd, domain.length);
if (domain == "hallpass.com") {
gotoAndStop ("hallpass");
}
Symbol 429 MovieClip Frame 11
_root.HPScoreService.postScore(_root.yheight_max, _root.gmode);
Symbol 434 Button
on (release) {
if (_root.gmode == "monochrome") {
getURL ("http://rankz.armorbot.com/agnry_faic_2/", "blank");
} else {
gotoAndStop ("highscore");
}
}
Symbol 435 MovieClip Frame 1
stop();
if (_root.gmode == "monochrome") {
gotoAndStop ("stats");
}
Symbol 437 MovieClip Frame 61
stop();