Frame 1
fscommand ("showmenu", "false");
Stage.scaleMode = "noScale";
_root.gameID_str = "1674";
_root.main_link = "http://www.2DPlay.com/index.php?gameid=" + gameID_str;
_root.scores_link = ("http://www.2Dplay.com/highscores.php?gameid=" + gameID_str) + "&hiscore=";
_root.viewscores_link = "http://www.2dplay.com/showscores.php?gameid=" + gameID_str;
_root.download_link = "http://www.2dplay.com/downloadgame.php?gameid=" + gameID_str;
_root.free_link = "http://www.2dplay.com/freecontent.htm";
stopAllSounds();
Frame 2
stop();
function SetButtonStr() {
switch (_quality) {
case "HIGH" :
_root.quality_str = "GRAPHICS QUALITY: HIGH";
break;
case "MEDIUM" :
_root.quality_str = "GRAPHICS QUALITY: MEDIUM";
break;
case "LOW" :
_root.quality_str = "GRAPHICS QUALITY: LOW";
}
}
function SetFXStr() {
switch (_root.game.fx) {
case false :
_root.fx_str = "FX: OFF";
break;
case true :
_root.fx_str = "FX: ON";
}
}
function hex_md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * chrsz)));
}
function b64_md5(s) {
return(binl2b64(core_md5(str2binl(s), s.length * chrsz)));
}
function str_md5(s) {
return(binl2str(core_md5(str2binl(s), s.length * chrsz)));
}
function hex_hmac_md5(key, data) {
return(binl2hex(core_hmac_md5(key, data)));
}
function b64_hmac_md5(key, data) {
return(binl2b64(core_hmac_md5(key, data)));
}
function str_hmac_md5(key, data) {
return(binl2str(core_hmac_md5(key, data)));
}
function md5_vm_test() {
return(hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72");
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local4 = 1732584193 /* 0x67452301 */;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var _local5 = 0;
while (_local5 < x.length) {
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
var _local7 = _local1;
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 9], 21, -343485551);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local1 = safe_add(_local1, _local7);
_local5 = _local5 + 16;
}
return(Array(_local4, _local3, _local2, _local1));
}
function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function core_hmac_md5(key, data) {
var _local2 = str2binl(key);
if (_local2.length > 16) {
_local2 = core_md5(_local2, key.length * chrsz);
}
var _local3 = Array(16);
var _local4 = Array(16);
var _local1 = 0;
while (_local1 < 16) {
_local3[_local1] = _local2[_local1] ^ 909522486;
_local4[_local1] = _local2[_local1] ^ 1549556828;
_local1++;
}
var _local5 = core_md5(_local3.concat(str2binl(data)), 512 + (data.length * chrsz));
return(core_md5(_local4.concat(_local5), 640));
}
function safe_add(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local3 = Array();
var _local4 = (1 << chrsz) - 1;
var _local1 = 0;
while (_local1 < (str.length * chrsz)) {
_local3[_local1 >> 5] = _local3[_local1 >> 5] | ((str.charCodeAt(_local1 / chrsz) & _local4) << (_local1 % 32));
_local1 = _local1 + chrsz;
}
return(_local3);
}
function binl2str(bin) {
var _local3 = "";
var _local4 = (1 << chrsz) - 1;
var _local1 = 0;
while (_local1 < (bin.length * 32)) {
_local3 = _local3 + String.fromCharCode((bin[_local1 >> 5] >>> (_local1 % 32)) & _local4);
_local1 = _local1 + chrsz;
}
return(_local3);
}
function binl2hex(binarray) {
var _local3 = (hexcase ? "0123456789ABCDEF" : "0123456789abcdef");
var _local4 = "";
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
function binl2b64(binarray) {
var _local6 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local4 = "";
var _local2 = 0;
while (_local2 < (binarray.length * 4)) {
var _local5 = ((((binarray[_local2 >> 2] >> (8 * (_local2 % 4))) & 255) << 16) | (((binarray[(_local2 + 1) >> 2] >> (8 * ((_local2 + 1) % 4))) & 255) << 8)) | ((binarray[(_local2 + 2) >> 2] >> (8 * ((_local2 + 2) % 4))) & 255);
var _local1 = 0;
while (_local1 < 4) {
if (((_local2 * 8) + (_local1 * 6)) > (binarray.length * 32)) {
_local4 = _local4 + b64pad;
} else {
_local4 = _local4 + _local6.charAt((_local5 >> (6 * (3 - _local1))) & 63);
}
_local1++;
}
_local2 = _local2 + 3;
}
return(_local4);
}
_root.mainmenu = true;
var hexcase = 0;
var b64pad = "";
var chrsz = 8;
stop();
Instance of Symbol 286 MovieClip [TMPix0hemklz] in Frame 2
//component parameters
onClipEvent (construct) {
flashVersion = 8;
gameID = 1674;
movieFramerate = 36;
skipPreloader = false;
startFrameLabel = "startgame";
}
Frame 3
if (_root.mainmenu) {
stop();
} else {
play();
}
Frame 4
stop();
Frame 312
stop();
Frame 313
function pulse() {
if (game.pulse) {
game.pulse = false;
clearInterval(_root.pulseTimer);
_root.pulseTimer = setInterval(this, "pulse", 50);
} else {
game.pulse = true;
clearInterval(_root.pulseTimer);
_root.pulseTimer = setInterval(this, "pulse", 1);
}
}
function pulse2() {
if (game.pulse2) {
game.pulse2 = false;
clearInterval(_root.pulseTimer2);
_root.pulseTimer2 = setInterval(this, "pulse2", 3000);
} else {
game.pulse2 = true;
clearInterval(_root.pulseTimer2);
_root.pulseTimer2 = setInterval(this, "pulse2", 1);
}
}
function weaponTopUp() {
if (Key.isDown(32)) {
char.weapons[char.bulletType][1] = 100;
_root.hud.bullets._xscale = char.weapons[char.bulletType][1];
_root.hud.amount = char.weapons[char.bulletType][1];
}
if (Key.isDown(9)) {
_root.hud.energy._xscale = 100;
_root.hud.health = 100;
char.strength = 100;
}
}
function shooting() {
armAngle();
ob = char;
if (char.mouseDown and ob.shoot) {
char.shoot = false;
if (game.destructor) {
sounds[char.weapons[8][5]].start();
shoot(char, 1, true, 8, char.shootAngle, 30, 10);
if (!char.rocketShooting) {
shootRocket(char, 1, -90, true, 10, 40);
char.rocketTimer = setInterval(this, "rocketTime", 300, ob);
char.rocketShooting = true;
}
char.shoot = false;
char.shootTimer = setInterval(this, "shootTime", char.weapons[8][4], ob);
} else if (char.weapons[char.bulletType][1] > 0) {
sounds[char.weapons[char.bulletType][5]].start();
shoot(char, 1, true, char.weapons[char.bulletType][6], char.shootAngle, 30, 10);
char.shoot = false;
char.shootTimer = setInterval(this, "shootTime", char.weapons[char.bulletType][4], ob);
if (char.bulletType != 1) {
char.weapons[char.bulletType][1] = char.weapons[char.bulletType][1] - 1;
if (char.weapons[char.bulletType][1] <= 0) {
char.weapons[char.bulletType][1] = 0;
_root.hud.changeweapon.play();
}
_root.hud.bullets._xscale = char.weapons[char.bulletType][1];
_root.hud.weapons.amount = char.weapons[char.bulletType][1];
}
}
}
if (game.destructor) {
_root.hud.destructor._visible = true;
_root.hud.destructor.bar._xscale = _root.hud.destructor.bar._xscale - 0.5;
if (_root.hud.destructor.bar._xscale <= 0) {
game.destructor = false;
_root.hud.lightning._visible = false;
_root.hud.destructor._visible = false;
_root.hud.destructor._xscale = 100;
}
}
changeWeaponsKey();
moveBullets();
moveRockets();
trailFade();
moveSparks();
flareGrow();
c4grow();
checkItems();
deadEnemyFall();
checkEmbers();
}
function armAngle() {
cy = char.clip._y - 30;
adjside = game.clip._xmouse - char.clip._x;
oppside = -1 * (game.clip._ymouse - cy);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
char.shootAngle = -1 * angle;
if (game.clip._xmouse > char.clip._x) {
char.clip._xscale = 100;
dir = 1;
} else if (game.clip._xmouse < char.clip._x) {
char.clip._xscale = -100;
dir = -1;
angle = angle - 180;
}
if (char.jump) {
char.clip.char.arm._rotation = (-1 * angle) * dir;
char.clip.char.head._rotation = (-1 * angle) * dir;
} else {
char.clip.char.arm._rotation = (-1 * angle) * dir;
char.clip.char.head._rotation = (-1 * angle) * dir;
char.clip.char.arm._x = char.clip.char.magneta._x;
char.clip.char.arm._y = char.clip.char.magneta._y;
char.clip.char.head._x = char.clip.char.magnet._x;
char.clip.char.head._y = char.clip.char.magnet._y;
}
}
function changeWeaponsKey() {
if (Key.isDown(49) && (char.bulletTypes > 0)) {
char.bulletType = 1;
setWeapons();
} else if (Key.isDown(50) && (char.bulletTypes > 1)) {
char.bulletType = 2;
setWeapons();
} else if (Key.isDown(51) && (char.bulletTypes > 2)) {
char.bulletType = 3;
setWeapons();
} else if (Key.isDown(52) && (char.bulletTypes > 3)) {
char.bulletType = 4;
setWeapons();
} else if (Key.isDown(53) && (char.bulletTypes > 4)) {
char.bulletType = 5;
setWeapons();
} else if (Key.isDown(54) && (char.bulletTypes > 5)) {
char.bulletType = 6;
setWeapons();
}
}
function changeWeaponsWheel(d) {
if ((d > 0) and (char.bulletType < (char.bulletTypes + 1))) {
char.bulletType = char.bulletType + 1;
if (char.bulletType == (char.bulletTypes + 1)) {
char.bulletType = 1;
}
} else if ((d < 0) and (char.bulletType > 0)) {
char.bulletType = char.bulletType - 1;
if (char.bulletType == 0) {
char.bulletType = char.bulletTypes;
}
}
setWeapons();
}
function setWeapons() {
_root.hud.weapons.weapon = char.weapons[char.bulletType][0];
_root.hud.weapons.amount = char.weapons[char.bulletType][1];
_root.hud.bullets._xscale = char.weapons[char.bulletType][1];
}
function mTime() {
game.mouseScroll = true;
clearInterval(mouseTimer);
}
function getDistance(x1, x2, y1, y2) {
getDistance_delta_x = x1 - x2;
getDistance_delta_y = y1 - y2;
getDistance_distance = Math.sqrt((getDistance_delta_x * getDistance_delta_x) + (getDistance_delta_y * getDistance_delta_y));
return(getDistance_distance);
}
function shoot(ob, dirx, origin, type, angle, yminus, armlength, xminus) {
game.bulletcounter++;
if (game.bulletcounter > 200) {
game.bulletcounter = 1;
}
j = 0;
while (j < game.bullets.length) {
if (game["bullet" + game.bulletcounter].alive) {
game.bulletcounter++;
} else {
break;
}
j++;
}
game.bullets.push(game.bulletcounter);
var _local1 = "bullet" + game.bulletcounter;
game[_local1] = new game.Bullet();
game[_local1].alive = true;
game[_local1].dirx = dirx;
game[_local1].type = type;
if (origin) {
game[_local1].strength = char.weapons[char.bulletType][2];
game[_local1].speed = char.weapons[char.bulletType][3];
} else {
game[_local1].strength = ob.bulletStrength;
game[_local1].speed = ob.bullSpeed;
if (type == 26) {
game[_local1].speed = 4;
game[_local1].strength = 1;
}
}
if (!game.destructor) {
if (type == 6) {
game[_local1].blacksun = true;
}
if ((type == 3) or (type == 22)) {
game[_local1].c4 = true;
game[_local1].gravity = 0;
}
if (type == 2) {
game[_local1].laser = true;
}
}
game[_local1].clip = game.clip[_local1];
game[_local1].origin = origin;
if (xminus == null) {
xminus = 0;
}
x = ob.clip._x - xminus;
y = ob.clip._y - yminus;
speedx = game[_local1].speed * Math.cos((angle * Math.PI) / 180);
speedy = game[_local1].speed * Math.sin((angle * Math.PI) / 180);
if ((type == 5) or (type == 26)) {
x = x + (random(10) - 5);
y = y + (random(10) - 5);
game[_local1].count = 0;
}
game.clip.attachMovie("bullet", _local1, 40300 + game.bulletcounter, {_x:x, _y:y});
game[_local1].clip = game.clip[_local1];
if (type == "green") {
type = 17;
}
if (type == 6) {
name2 = _local1 + "o";
game[name2] = new game.Bullet();
game[name2].t = 0;
game[name2].d = 5;
game.bulletcounter++;
game.clip.attachMovie("bullet", name2, 42300 + game.bulletcounter, {_x:x, _y:y});
game[name2].clip = game.clip[name2];
game.clip[name2].gotoAndStop(16);
}
game.clip[_local1].gotoAndStop(type);
game.clip[_local1].Bulldir = dirx;
game.clip[_local1]._xscale = game.clip[_local1]._xscale * dirx;
if (origin) {
game.clip[_local1]._rotation = angle * dirx;
}
game[_local1].speedx = speedx * dirx;
game[_local1].speedy = speedy;
game.clip[_local1]._x = game.clip[_local1]._x + (armlength * game[_local1].speedx);
game.clip[_local1]._y = game.clip[_local1]._y + (armlength * game[_local1].speedy);
game.clip[_local1].cacheAsBitmap;
x = game.clip[_local1]._x;
y = game.clip[_local1]._y;
if (checkColour("ff0000", x, y, true)) {
if (game[_local1].c4) {
createc4(x, y, game[_local1]);
} else if (game.fx) {
addEmbers(game[_local1], "embers", true);
createSparks(_local1, "spark2", 40, 270, x, y);
}
removeBullet(_local1, game.bullets.length);
}
}
function rot(f, d, xf, yf, grow) {
game[f].t = game[f].t + (_global.theta * d);
game.clip[f]._x = _root.xfocus + (Math.sin(game[f].t) * game[f].d);
game.clip[f]._y = _root.yfocus + (Math.cos(game[f].t) * game[f].d);
if (grow) {
game[f].d = game[f].d + 0.5;
}
}
function shootTime(ob) {
ob.shoot = true;
ob.shooting = false;
clearInterval(ob.shootTimer);
}
function bounce(hole, i) {
game["bullet" + i].bounceCount++;
x = _root.screen["bullet" + i]._x;
y = _root.screen["bullet" + i]._y;
if (checkColour("ff0000", x, y, true) or checkColour("ffff00", x, y, true)) {
game["bullet" + i].speedx = game["bullet" + i].speedx * 1;
game["bullet" + i].speedy = game["bullet" + i].speedy * -1;
game.clip["bullet" + i]._x = game.clip["bullet" + i]._x + game["bullet" + i].speedx;
game.clip["bullet" + i]._y = game.clip["bullet" + i]._y + game["bullet" + i].speedy;
} else if (checkColour("990000", x, y, true)) {
game["bullet" + i].speedx = game["bullet" + i].speedx * -1;
game["bullet" + i].speedy = game["bullet" + i].speedy * 1;
game.clip["bullet" + i]._x = game.clip["bullet" + i]._x + game["bullet" + i].speedx;
game.clip["bullet" + i]._y = game.clip["bullet" + i]._y + game["bullet" + i].speedy;
}
if (game["bullet" + i].bounceCount > 50) {
removeBullet(hole);
}
}
function shootRocket(ob, dirx, angle, origin, xminus, yminus) {
sounds.rs_rocket_launcher.start();
game.rocketcounter++;
j = 0;
while (j < 15) {
if (game.rocketcounter > 15) {
game.rocketcounter = 1;
}
if (game["rocket" + game.rocketcounter].alive) {
game.rocketcounter++;
} else if (!game["rocket" + game.rocketcounter].alive) {
break;
}
j++;
}
var _local1 = "rocket" + game.rocketcounter;
game[_local1] = new game.Rocket();
game[_local1].alive = true;
game[_local1].stage = 1;
game[_local1].step = 0;
game[_local1].strength = 10;
game[_local1].speed = ob.rocketSpeed;
game[_local1].origin = origin;
x = ob.clip._x - xminus;
y = ob.clip._y - yminus;
speedx = ob.rocketSpeed * Math.cos((angle * Math.PI) / 180);
speedy = ob.rocketSpeed * Math.sin((angle * Math.PI) / 180);
game.clip.attachMovie("bullet", _local1, 10200 + game.rocketcounter, {_x:x, _y:y});
if (origin) {
game.clip[_local1].gotoAndStop(7);
} else if (ob.id != "boss") {
game.clip[_local1].gotoAndStop(23);
} else {
game.clip[_local1].gotoAndStop(25);
}
game.clip[_local1].Bulldir = dirx;
game.clip[_local1]._xscale = game.clip[_local1]._xscale * dirx;
game.clip[_local1]._rotation = angle * dirx;
game.clip[_local1].speedx = speedx * dirx;
game.clip[_local1].speedy = speedy;
game.clip[_local1]._x = game.clip[_local1]._x + game.clip[_local1].speedx;
game.clip[_local1]._y = game.clip[_local1]._y + game.clip[_local1].speedy;
game.clip[_local1].cacheAsBitmap;
}
function moveBullets() {
var _local7 = 0;
for ( ; _local7 < (game.bullets.length + 1) ; _local7++) {
var _local4 = game.bullets[_local7];
var _local3 = "bullet" + _local4;
var _local8 = game[_local3];
x = _root.screen["bullet" + _local4]._x;
y = _root.screen["bullet" + _local4]._y;
var _local9 = _root.screen.hitBox;
if (checkColour("ff0000", x, y, true) and (!game[_local3].bounce)) {
if (game[_local3].c4) {
createc4(x, y, _local8);
} else if (game.fx) {
addEmbers(_local8, "embers", true);
createSparks(name, "spark2", 40, 270, x, y);
}
removeBullet(_local3, _local7);
} else if (game[_local3].alive) {
speed = game["bullet" + _local4].speed;
game.clip["bullet" + _local4]._x = game.clip["bullet" + _local4]._x + (speed * game["bullet" + _local4].speedx);
game.clip["bullet" + _local4]._y = game.clip["bullet" + _local4]._y + (speed * game["bullet" + _local4].speedy);
if (game.fx) {
if (game.clip[_local3]._currentFrame == 2) {
} else if (game.clip[_local3]._currentFrame == 17) {
createHit(_local3, "greentrail2", game.clip[_local3]._rotation);
}
}
if ((game[_local3].type == 5) or (game[_local3].type == 26)) {
game[_local3].count++;
game.clip["bullet" + _local4]._rotation = game.clip["bullet" + _local4]._rotation + (random(20) - 10);
if (game[_local3].count > 20) {
if (game.fx) {
angle = game.clip[_local3]._rotation;
createHit(_local3, "firetrail", angle, 60);
}
removeBullet(_local3, _local7);
continue;
}
} else {
x = _root.screen["bullet" + _local4]._x;
y = _root.screen["bullet" + _local4]._y;
if (game[_local3].blacksun) {
hole2 = ("bullet" + _local4) + "o";
_root.xfocus = x;
_root.yfocus = y;
rot(hole2, game[_local3].dirx, x, y);
} else if (game[_local3].c4) {
game["bullet" + _local4].gravity = game["bullet" + _local4].gravity + 0.05;
game["bullet" + _local4].speedy = game["bullet" + _local4].speedy + game["bullet" + _local4].gravity;
}
yy = game.clip._y * -1;
if (((y < 0) or (x < (((_root.screen._x * -1) + game.xx) - 20))) or ((x > (((_root.screen._x * -1) + game.x) + 20)) and game["bullet" + _local4].alive)) {
removeBullet(_local3, _local7);
} else {
if ((game[_local3].origin && (game[_local3].alive)) && (!game[_local3].c4)) {
var _local6 = 0;
while (_local6 < game.enemies.length) {
en = game.enemies[_local6];
var name = en;
var _local5 = game[name];
if ((checkBalloonHit(_local3, name, true) or checkBalloonHit(_local3 + "o", name, true)) and _local5.active) {
metalHit();
ang = game[_local3].clip._rotation;
if (game.fx) {
createSparks(name, "spark", 40, ang, x, y);
createSparks(name, "spark", 40, ang, x, y);
createSparks(name, "spark", 40, ang, x, y);
addDebris(_local5, "shrapnel2");
addDebris(_local5, "shrapnel2");
addEmbers(_local5, "embers");
addEmbers(_local5, "embers", 3);
addEmbers(_local8, "embers", true);
}
createFlare("flare", name, 50);
if (_local5.id == "boss") {
tempob = game.boss;
} else {
tempob = _local5;
}
glow(tempob, 255, 0, 0, 100);
_local5.glowTimer = setInterval(this, "glowTime", 100, _local5);
h++;
_local5.strength = _local5.strength - game[_local3].strength;
enemyMinus(_local5, en, _local6, name);
if (!game[_local3].laser) {
removeBullet(_local3, _local7);
} else {
game[_local3].laser = false;
angle = game.clip["bullet" + _local4]._rotation + (random(90) - 45);
game.clip["bullet" + _local4]._rotation = angle;
game["bullet" + _local4].speedx = 5 * Math.cos((angle * Math.PI) / 180);
game["bullet" + _local4].speedy = 5 * Math.sin((angle * Math.PI) / 180);
game.clip["bullet" + _local4].gotoAndStop(17);
game.clip["bullet" + _local4]._x = game.clip["bullet" + _local4]._x + (speed * game["bullet" + _local4].speedx);
game.clip["bullet" + _local4]._y = game.clip["bullet" + _local4]._y + (speed * game["bullet" + _local4].speedy);
}
}
_local6++;
}
}
if (((!game["bullet" + _local4].origin) and game["bullet" + _local4].alive) && (!game[_local3].c4)) {
if (checkBalloonHit2(_local3, char, true)) {
sounds.rs_ugh.start();
metalHit();
ang = 270;
if (game.fx) {
createSparks("char", "spark", 40, ang, x, y);
createSparks("char", "spark", 40, ang, x, y);
createSparks("char", "spark", 40, ang, x, y);
addEmbers(_local8, "embers");
addEmbers(_local8, "embers", 3);
addEmbers(_local8, "embers", true);
}
createFlare("char", 50);
glow(char, 255, 0, 0, 100);
char.glowTimer = setInterval(this, "glowTime", 100, char);
minusEnergy(game["bullet" + _local4].strength);
removeBullet(_local3, _local7);
}
}
}
}
}
}
}
function minusEnergy(x) {
char.strength = char.strength - x;
_root.hud.energy._xscale = char.strength;
}
function moveRockets() {
var _local4 = 1;
for ( ; _local4 < 16 ; _local4++) {
var _local3 = "rocket" + _local4;
if (game[_local3].alive) {
if (game.clip[_local3].Bulldir == -1) {
var _local9 = game.clip[_local3]._rotation;
if (game[_local3].origin) {
trail = "trail";
} else {
trail = "trail2";
}
createHit(_local3, trail, _local9);
}
var _local14 = game.clip["rocket" + _local4]._x;
var _local13 = game.clip["rocket" + _local4]._y;
var _local10 = game["rocket" + _local4].speed;
if ((game[_local3].stage == 1) && (game[_local3].origin)) {
game[_local3].stage = 2;
rr = 0;
while (rr < game.enemies.length) {
var _local8 = game.enemies[rr];
var _local5 = _local8;
var _local6 = game[_local5];
if ((_local6.clip._x < (char.clip._x + 300)) && (_local6.clip._x > (char.clip._x - 300))) {
game.clip["rocket" + _local4].target = _local6;
break;
}
rr++;
}
} else if ((game[_local3].stage != 3) && (!game[_local3].origin)) {
game.clip["rocket" + _local4].target = char;
game[_local3].stage = 2;
}
if (game[_local3].stage == 2) {
if ((game.clip["rocker" + _local4].target.alive = false && (!game[_local3].origin))) {
rr = 0;
while (rr < game.enemies.length) {
var _local8 = game.enemies[rr];
var _local5 = _local8;
var _local6 = game[_local5];
if ((_local6.clip._x < (char.clip._x + 300)) && (_local6.clip._x > (char.clip._x - 300))) {
game.clip["rocket" + _local4].target = _local6;
break;
}
rr++;
}
}
r = random(100);
if ((r < 20) && (!game[_local5].origin)) {
game[_local3].step++;
var _local9 = rocketLook(game.clip["rocket" + _local4].target, _local3);
} else {
var _local9 = game.clip[_local3]._rotation;
}
if (game[_local3].step > 20) {
game[_local3].stage = 3;
}
}
if (game[_local3].stage == 3) {
var _local9 = game.clip[_local3]._rotation;
}
if (game.clip[_local3].Bulldir == 1) {
if (game[_local3].origin) {
trail = "trail";
} else {
trail = "trail2";
}
createHit(_local3, trail, _local9);
}
speedx = _local10 * Math.cos((_local9 * Math.PI) / 180);
speedy = _local10 * Math.sin((_local9 * Math.PI) / 180);
game.clip["rocket" + _local4]._x = game.clip["rocket" + _local4]._x + (speedx * game.clip["rocket" + _local4].Bulldir);
game.clip["rocket" + _local4]._y = game.clip["rocket" + _local4]._y + (speedy * game.clip["rocket" + _local4].Bulldir);
var _local12 = game.clip["rocket" + _local4]._x;
var _local11 = game.clip["rocket" + _local4]._y;
x = _root.screen["rocket" + _local4]._x;
y = _root.screen["rocket" + _local4]._y;
yy = game.clip._y * -1;
if (((y < -10) or (x < (((_root.screen._x * -1) + game.xx) - 50))) or ((x > (((_root.screen._x * -1) + game.x) + 50)) and game["rocket" + _local4].alive)) {
removeBullet(_local3, ii);
continue;
}
var _local15 = _root.screen.hitBox;
if (checkColour("ff0000", _local12, _local11, true)) {
sounds.rs_explosion4.start();
r = random(20);
createHit(_local3, "rockethit", 0);
if (game.fx) {
createSparks(_local3, "shrapnel", 0, 205 + r);
createSparks(_local3, "shrapnel", 0, -45 - r);
createSparks(_local3, "shrapnel", 0, 225 + r);
createSparks(_local3, "shrapnel", 0, -60 - r);
}
removeBullet(_local3);
break;
}
if (((y < -35) or (x < (char.clip._x - 600))) or ((x > (char.clip._x + 700)) and game["rocket" + _local4].alive)) {
removeBullet(_local3);
break;
}
}
if (game[_local3].origin and game[_local3].alive) {
var _local7 = 0;
while (_local7 < game.enemies.length) {
var _local8 = game.enemies[_local7];
var _local5 = _local8;
var _local6 = game[_local5];
if (checkBalloonHit(_local3, _local5, true) and _local6.active) {
sounds.bullet_hit1.start();
if (game.fx) {
createSparks(_local5, "spark", 40);
createSparks(_local5, "spark", 40);
createSparks(_local5, "spark", 40);
createSparks(_local5, "spark", 40);
}
createHit(_local3, "rockethit");
glow(_local6, 255, 0, 0, 100);
_local6.glowTimer = setInterval(this, "glowTime", 100, _local6);
h++;
_local6.strength = _local6.strength - game[_local3].strength;
enemyMinus(_local6, _local8, _local7, _local5);
removeBullet(_local3);
}
_local7++;
}
}
if ((!game["rocket" + _local4].origin) and game["rocket" + _local4].alive) {
if (checkBalloonHit2(_local3, char, true)) {
sounds.rs_ugh.start();
metalHit();
ang = 270;
createHit(_local3, "rockethit", 0);
if (game.fx) {
createSparks("char", "spark2", 40, ang, x, y);
createSparks("char", "spark2", 40, ang, x, y);
createSparks("char", "spark2", 40, ang, x, y);
addEmbers("char", "embers");
addEmbers("char", "embers", 3);
addEmbers("char", "embers", true);
addEmbers("char", "embers");
addEmbers("char", "embers", 3);
addEmbers("char", "embers", true);
}
createFlare("char", 50);
glow(char, 255, 0, 0, 100);
char.glowTimer = setInterval(this, "glowTime", 100, char);
minusEnergy(10);
removeBullet(_local3);
}
}
}
}
function createc4(x, y, ob) {
game.c4s++;
if (game.flares > 20) {
game.flares = 1;
}
var _local1 = "c4" + game.c4s;
game[_local1] = new game.Bomb();
game.c4.push(_local1);
game[_local1].angle = random(360);
game.clip.attachMovie("bullet", _local1, 30200 + game.c4s);
game[_local1].origin = ob.origin;
if (ob.origin) {
game.clip[_local1].gotoAndStop(3);
} else {
game.clip[_local1].gotoAndStop(22);
}
game.clip[_local1]._x = x;
game.clip[_local1]._y = y;
game.clip[_local1]._alpha = 100;
game.clip[_local1].cacheAsBitmap;
}
function c4grow() {
var _local2 = 0;
while (_local2 < game.c4.length) {
var _local1 = game.c4[_local2];
if (game.clip[_local1]._xscale < 150) {
game.clip[_local1]._xscale = game.clip[_local1]._xscale + 2.5;
game.clip[_local1]._yscale = game.clip[_local1]._yscale + 2.5;
game.clip[_local1]._alpha = game.clip[_local1]._alpha - 1;
} else {
sounds.rs_c4.start();
sounds.rs_explosion5.start();
checkHit(game.clip[_local1]._x, game.clip[_local1]._y, game[_local1].origin, game[_local1]);
createHit(_local1, "rockethit", 0);
game.c4.splice(_local2, 1);
game.clip[_local1].removeMovieClip();
delete game[_local1];
}
_local2++;
}
}
function checkHit(x, y, origin, obb) {
if (origin) {
var _local2 = 0;
while (_local2 < game.enemies.length) {
en = game.enemies[_local2];
var _local6 = en;
var _local9 = game[_local6];
var _local8 = _local9.clip._x;
var _local7 = _local9.clip._y;
disx = Math.abs(_local8 - x);
disy = Math.abs(_local7 - y);
var _local10 = getDistance(x, y, _local8, _local7);
if (((disx < obb.distance) and (disy < obb.distance)) and _local9.active) {
sounds.rs_explosion5.start();
metalHit();
if (game.fx) {
createSparks(_local6, "spark", 40);
createSparks(_local6, "spark", 40);
createSparks(_local6, "spark", 40);
}
createFlare("flare", _local6, 50);
_local9.strength = _local9.strength - 15;
enemyMinus(_local9, en, _local2, _local6);
}
_local2++;
}
} else {
var _local6 = "char";
var _local9 = char;
var _local8 = char.clip._x;
var _local7 = char.clip._y;
disx = Math.abs(_local8 - x);
disy = Math.abs(_local7 - y);
var _local10 = getDistance(x, y, _local8, _local7);
if ((disx < obb.distance) and (disy < obb.distance)) {
sounds.rs_explosion5.start();
sounds.rs_ugh.start();
metalHit();
if (game.fx) {
createSparks(_local6, "spark", 40);
createSparks(_local6, "spark", 40);
createSparks(_local6, "spark", 40);
}
createFlare("flare", _local6, 50);
glow(char, 255, 0, 0, 100);
char.glowTimer = setInterval(this, "glowTime", 100, char);
minusEnergy(obb.strength);
}
}
}
function returnHit(x, y, ob, xx, yy) {
obx = xx - ob.width;
obxx = xx + ob.width;
oby = yy - ob.height;
obyy = yy;
if ((((x < obxx) && (x > obx)) && (y < obyy)) && (y > oby)) {
return(true);
}
}
function enemyMinus(ob, en, e, name) {
if (ob.id == "boss") {
_root.hud.bossNRG.bar._xscale = Math.abs(ob.strength / ob.Ostrength) * 100;
if (game.pulse2) {
sounds.rs_wormscream2.start();
}
}
if (ob.strength <= 0) {
sounds.rs_explosion2.start();
sounds.rs_missile_gasfire.start();
sounds.rs_explosion1.start();
game.kills++;
ob.stage = 0;
createFlare("flare_explosion", name, 20);
if (game.fx) {
addDebris(ob, "shrapnel3");
addDebris(ob, "shrapnel3");
addDebris(ob, "shrapnel3");
addEmbers(ob, "embers");
addEmbers(ob, "embers");
addEmbers(ob, "embers");
addEmbers(ob, "embers");
addEmbers(ob, "embers");
addEmbers(ob, "embers");
addEmbers(ob, "embers");
addEmbers(ob, "embers");
}
r = random(100);
if (((r > 50) and (!ob.respawn)) or game.bossfight) {
addItems(ob, "item");
}
x = ob.clip._x;
y = ob.clip._y;
game.dying++;
if (game.dying > 100) {
game.dying = 0;
}
var _local4 = ("dying_" + name) + game.dying;
game[_local4] = new game.EnemyDying();
game.clip.attachMovie(ob.dyingType, _local4, game.dying + 300, {_x:x, _y:y});
game[_local4].clip = game.clip[_local4];
game.clip[_local4]._xscale = ob.dir * 100;
game.clip[_local4].mc._rotation = game.clip[_local4].mc._rotation + (random(60) - 30);
game.clip[_local4].cacheAsBitmap();
game.dyingEnemies.push(_local4);
if (ob.id == "boss") {
sounds.rs_wormscream2b.start();
_root.hud.bossNRG._alpha = 0;
game.clip.boss.gotoAndStop(10);
game.bossEndTimer = setInterval(this, "finishboss", 3000);
}
clearInterval(ob.glowTimer);
delete ob.glowTimer;
clearInterval(ob.shootTimer);
delete ob.shootTimer;
clearInterval(ob.shootTimer2);
delete ob.shootTimer2;
clearInterval(ob.rocketTimer);
delete ob.rocketTimer;
clearInterval(ob.elecTimer);
delete ob.elecTimer;
clearInterval(ob.eggTimer);
delete ob.eggTimer;
game.score = game.score + ob.score;
_root.hud.score = "SCORE: " + game.score;
addDebris(ob, "points", "" + ob.score);
if (ob.respawn and (!game.bossfight)) {
replaceSoldier(ob);
} else {
removeOb(en);
game.enemies.splice(e, 1);
}
}
}
function deadEnemyFall() {
i = 0;
while (i < game.dyingEnemies.length) {
en = game.dyingEnemies[i];
ob = game[en];
game.clip[en]._y = game.clip[en]._y + 10;
x = game.clip[en]._x;
y = game.clip[en]._y;
if (game.pulse && (game.fx)) {
ob.step = 0;
createHit(en, "squidjump2", 0, 100, 50);
}
if (y > 500) {
createHit(en, "rockethit", 0, 100, 100);
game.dyingEnemies.splice(i, 1);
removeMovieClip(game.clip[en]);
delete ob;
}
i++;
}
}
function addDebris(ob, type, score) {
dx = ob.clip._x;
dy = ob.clip._y - 50;
var _local1 = (("debris" + game.items.length) + "_") + random(100);
d = 20400 + game.it;
game.it++;
if (game.it > 200) {
game.it = 0;
}
game[_local1] = new game.Item();
game[_local1].jumpspeed = game[_local1].jumpstart;
game[_local1].jump = true;
game[_local1].type = type;
game.clip.attachMovie("debris", _local1, d, {_x:dx, _y:dy});
game.items.push(_local1);
game[_local1].clip = game.clip[_local1];
game[_local1].xmove = 0;
if (type == "shrapnel") {
game[_local1].type = "shrapnel";
game[_local1].clip.gotoAndStop(1);
game[_local1].clip.shrapnel.gotoAndPlay(random(20));
game[_local1].xmove = (random(100) - 50) / 10;
game[_local1].gravity = 1;
} else if (type == "shrapnel2") {
game[_local1].type = "shrapnel2";
game[_local1].clip.gotoAndStop(2);
game[_local1].clip.shrapnel.gotoAndPlay(random(20));
game[_local1].xmove = 0;
game[_local1].xmove = (random(50) - 25) / 10;
game[_local1].gravity = 0.8;
game[_local1].clip._y = game[_local1].clip._y + 50;
} else if (type == "shrapnel3") {
game[_local1].type = "shrapnel3";
game[_local1].clip.gotoAndStop(5);
game[_local1].clip.shrapnel.gotoAndPlay(random(20));
game[_local1].xmove = 0;
game[_local1].xmove = (random(50) - 25) / 5;
game[_local1].gravity = 0.7;
} else if (type == "points") {
game[_local1].type = "shrapnel2";
game[_local1].clip.gotoAndStop(4);
game[_local1].clip.points = score;
game[_local1].xmove = 0;
game[_local1].xmove = (random(50) - 25) / 10;
game[_local1].gravity = 0.3;
game[_local1].clip._y = game[_local1].clip._y + 50;
}
}
function addItems(ob, type) {
dx = ob.clip._x;
dy = ob.clip._y - 50;
var _local1 = (("item" + game.items.length) + "_") + random(100);
d = 21200 + game.it;
game.it++;
if (game.it > 500) {
game.it = 0;
}
game[_local1] = new game.Item();
game[_local1].jumpspeed = game[_local1].jumpstart;
game[_local1].jump = true;
game[_local1].type = type;
game.clip.attachMovie("items", _local1, d, {_x:dx, _y:dy});
game.items.push(_local1);
game[_local1].clip = game.clip[_local1];
game[_local1].xmove = 0;
r = random(100);
if (r < 40) {
game[_local1].type = "ammo";
game[_local1].clip.gotoAndStop(2);
} else if (r < 90) {
game[_local1].type = "health";
game[_local1].clip.gotoAndStop(1);
} else if ((!game.bossfight) && (!game.destructor)) {
game[_local1].type = "kill";
game[_local1].clip.gotoAndStop(3);
} else {
game[_local1].type = "health";
game[_local1].clip.gotoAndStop(1);
}
}
function addEmbers(ob, name, origin) {
if (origin) {
dx = ob.clip._x;
dy = ob.clip._y;
} else {
dx = ob.clip._x;
dy = ob.clip._y - 50;
}
var _local1 = (("ember" + game.items.length) + "_") + random(100);
d = 20400 + game.it;
game.it++;
if (game.it > 500) {
game.it = 0;
}
game[_local1] = new game.Item();
game[_local1].jumpspeed = game[_local1].jumpstart;
game[_local1].jump = true;
game[_local1].type = type;
game.clip.attachMovie(name, _local1, d, {_x:dx, _y:dy});
game.embers.push(_local1);
game[_local1].clip = game.clip[_local1];
game[_local1].xmove = (random(5) - 2.5) + 1;
game[_local1].ymove = random(5) + 1;
game[_local1].dy = dy - 20;
game[_local1].clip.chacheAsBitmap();
if (origin) {
game[_local1].clip.gotoAndStop(2);
} else if (origin == 3) {
game[_local1].clip.gotoAndStop(3);
}
}
function checkEmbers() {
r = random(100);
if (r > 90) {
game.wind = (random(50) - 25) / 10;
}
i = 0;
while (i < game.embers.length) {
name = game.embers[i];
ob = game[name];
ob.clip._y = ob.clip._y - ob.ymove;
ob.clip._x = ob.clip._x + (ob.xmove + game.wind);
if (ob.clip._y < ob.dy) {
ob.clip._alpha = ob.clip._alpha - 2;
if (ob.clip._alpha < 20) {
game.embers.splice(i, 1);
removeMovieClip(ob.clip);
delete ob;
}
}
i++;
}
}
function checkItems() {
i = 0;
for ( ; i < game.items.length ; i++) {
name = game.items[i];
ob = game[name];
if (ob.jump) {
ob.jumpspeed = ob.jumpspeed + ob.gravity;
ob.clip._y = ob.clip._y + ob.jumpspeed;
ob.clip._x = ob.clip._x + ob.xmove;
}
if (checkColour("ff0000", ob.clip._x, ob.clip._y, true)) {
ob.jumpstart = (Math.abs(ob.jumpstart) / 2) * -1;
ob.jumpspeed = ob.jumpstart;
ob.clip._y = ob.clip._y - 5;
if (((ob.jumpspeed > -0.5) or (ob.type == "shrapnel2")) or (ob.type == "shrapnel3")) {
if (((ob.type == "health") or (ob.type == "ammo")) or (ob.type == "kill")) {
addEmbers(ob, "flare_elec4", true);
addEmbers(ob, "flare_elec4", true);
addEmbers(ob, "flare_elec4", true);
addEmbers(ob, "flare_elec4", true);
}
game.items.splice(i, 1);
removeMovieClip(ob.clip);
delete ob;
continue;
}
} else {
if ((ob.type == "shrapnel3") && (game.pulse)) {
createHit(name, "hit", 0, 100, 40);
}
var _local2 = false;
if (returnHit(ob.clip._x, ob.clip._y, char, char.clip._x, char.clip._y)) {
if (((ob.type != "shrapnel") and (ob.type != "shrapnel2")) and (ob.type != "shrapnel3")) {
game.score = game.score + 50;
_root.hud.score = "SCORE: " + game.score;
addDebris(char, "points", 50);
if (ob.type == "health") {
sounds.rs_colectstuf.start();
if (char.strength < 80) {
minusEnergy(-20);
} else {
char.strength = 100;
minusEnergy(0);
}
} else if (ob.type == "ammo") {
sounds.rs_reload.start();
if (char.bulletType != 1) {
char.weapons[char.bulletType][1] = char.weapons[char.bulletType][1] + 50;
_root.hud.bullets._xscale = char.weapons[char.bulletType][1];
_root.hud.weapons.amount = char.weapons[char.bulletType][1];
}
} else if (ob.type == "kill") {
sounds.rs_colectstuf.start();
game.destructor = true;
_root.hud.lightning._visible = true;
_root.hud.destructor._visible = true;
_root.hud.destructor.bar._width = 100;
}
addEmbers(ob, "flare_elec2", true);
addEmbers(ob, "flare_elec2", true);
addEmbers(ob, "flare_elec2", true);
addEmbers(ob, "flare_elec", true);
addEmbers(ob, "flare_elec", true);
addEmbers(ob, "flare_elec", true);
addEmbers(ob, "flare_elec", true);
game.items.splice(i, 1);
removeMovieClip(ob.clip);
delete ob;
continue;
}
if (!ob.hitChar) {
ob.hitChar = true;
ob.jumpstart = (Math.abs(ob.jumpstart) / 2) * -1;
ob.jumpspeed = ob.jumpstart;
ob.clip._y = ob.clip._y - 5;
ob.xmove = ob.xmove * 2;
}
}
if (ob.clip._x < ((_root.screen._x * -1) + game.xx)) {
game.items.splice(i, 1);
removeMovieClip(ob.clip);
delete ob;
}
}
}
}
function removeBullet(id, i) {
game.bullets.splice(i, 1);
game[id].alive = false;
game.clip[id].removeMovieClip();
game.clip[id + "o"].removeMovieClip();
delete game[id];
}
function flareGrow() {
var _local2 = 0;
while (_local2 < 11) {
var _local1 = "flare" + _local2;
var _local3 = game[_local1];
if (game.clip[_local1]._alpha > -1) {
if (char.stage != 1) {
g = 10;
} else {
g = 20;
}
game.clip[_local1]._xscale = game.clip[_local1]._xscale + g;
game.clip[_local1]._yscale = game.clip[_local1]._yscale + g;
game.clip[_local1]._alpha = game.clip[_local1]._alpha - 15;
if (game.clip[_local1]._alpha < 0) {
game.clip[_local1].removeMovieClip();
}
}
_local2++;
}
}
function moveSparks() {
var _local2 = 0;
while (_local2 < 61) {
var _local1 = "spark" + _local2;
var _local5 = game[_local1];
var _local3 = game[_local1].speed;
if (game.clip[_local1]._alpha > -1) {
var _local4 = game.clip[_local1]._rotation;
speedx = _local3 * Math.cos((_local4 * Math.PI) / 180);
speedy = _local3 * Math.sin((_local4 * Math.PI) / 180);
game.clip[_local1]._x = game.clip[_local1]._x + speedx;
game.clip[_local1]._y = game.clip[_local1]._y + speedy;
if (game.clip[_local1]._currentFrame == 1) {
game.clip[_local1]._alpha = game.clip[_local1]._alpha - 15;
} else {
game.clip[_local1]._alpha = game.clip[_local1]._alpha - 10;
}
if (game.clip[_local1]._alpha < 0) {
game.clip[_local1].removeMovieClip();
}
}
_local2++;
}
}
function glowTime(ob) {
if (ob.id == "boss") {
tempob = game.boss;
} else {
tempob = ob;
}
glow(tempob, 0, 0, 0, 100);
clearInterval(ob.glowTimer);
}
function rocketTime(ob) {
ob.rocket = true;
ob.rocketShooting = false;
clearInterval(ob.rocketTimer);
}
function createFlare(name, ob, minus) {
game.flares++;
if (game.flares > 10) {
game.flares = 1;
}
var _local1 = "flare" + game.flares;
game[_local1].angle = random(360);
game.clip.attachMovie(name, _local1, 40200 + game.flares);
game.clip[_local1]._x = game.clip[ob]._x;
game.clip[_local1]._y = game.clip[ob]._y - minus;
game.clip[_local1]._rotation = game[_local1].angle;
game.clip[_local1]._alpha = 100;
game.clip[_local1].cacheAsBitmap;
}
function createFlare2(ob, minus) {
game.flares++;
if (game.flares > 10) {
game.flares = 1;
}
var _local1 = "flare" + game.flares;
game[_local1].angle = random(360);
game.clip.attachMovie("flare_explosion", _local1, 40200 + game.flares);
game.clip[_local1]._x = game.clip[ob]._x;
game.clip[_local1]._y = game.clip[ob]._y - minus;
game.clip[_local1]._rotation = game[_local1].angle;
game.clip[_local1]._alpha = 140;
game.clip[_local1].cacheAsBitmap;
}
function createSparks(ob, type, minus, ang, x, y) {
game.sparksAmount++;
if (game.sparksAmount > 60) {
game.sparksAmount = 1;
}
var _local1 = "spark" + game.sparksAmount;
game[_local1] = new game.Spark();
game[_local1].angle = ang + (random(60) - 30);
game.clip.attachMovie(type, _local1, 40000 + game.sparksAmount);
game.clip[_local1]._x = x;
game.clip[_local1]._y = y;
game.clip[_local1]._rotation = game[_local1].angle;
game.clip[_local1]._alpha = 100;
game.clip[_local1].cacheAsBitmap;
}
function createHit(ob, type, angle, alpha, scale) {
game.trailcounter++;
if (game.trailcounter > game.trails) {
game.trailcounter = 1;
}
var _local1 = "trail" + game.trailcounter;
game.clip.attachMovie(type, _local1, 20300 + game.trailcounter);
game.clip[_local1]._x = game.clip[ob]._x;
game.clip[_local1]._y = game.clip[ob]._y;
game.clip[_local1]._alpha = alpha;
game.clip[_local1]._xscale = scale;
game.clip[_local1]._yscale = scale;
game.clip[_local1]._rotation = angle;
game.clip[_local1].cacheAsBitmap;
}
function rocketLookOld(ob, rocket) {
var _local6 = game.clip[rocket]._x;
var _local4 = game.clip[rocket]._y;
var _local5 = ob.clip._x;
var _local3 = ob.clip._y - 100;
xx = _local5 - _local6;
yy = _local3 - _local4;
var _local7 = Math.floor(Math.sqrt((xx * xx) + (yy * yy)));
if (_local7 < 500) {
var _local2 = random(5) + 2;
if (game.clip[rocket].Bulldir == 1) {
if (_local3 < _local4) {
game.clip[rocket]._rotation = game.clip[rocket]._rotation - _local2;
} else {
game.clip[rocket]._rotation = game.clip[rocket]._rotation + _local2;
}
} else if (_local3 < _local4) {
game.clip[rocket]._rotation = game.clip[rocket]._rotation + _local2;
} else {
game.clip[rocket]._rotation = game.clip[rocket]._rotation - _local2;
}
}
}
function rocketLook(ob, rocket) {
var _local5 = game.clip[rocket]._x;
var _local3 = game.clip[rocket]._y;
var _local4 = ob.clip._x;
var _local2 = ob.clip._y;
adjside = _local4 - _local5;
oppside = -1 * (_local2 - _local3);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
angle = -1 * angle;
game.clip[rocket]._rotation = angle;
return(game.clip[rocket]._rotation);
}
function trailFade() {
var _local1 = 1;
while (_local1 < (game.trails + 1)) {
tname = "trail" + _local1;
if (game.clip[tname]._alpha > 0) {
game.clip[tname]._alpha = game.clip[tname]._alpha - 4;
if (game.clip[tname]._alpha < 80) {
game.clip[tname]._y = game.clip[tname]._y - 0.5;
game.clip[tname]._xscale = game.clip[tname]._xscale + 1;
game.clip[tname]._yscale = game.clip[tname]._yscale + 1;
}
}
_local1++;
}
}
function checkRocketRange(ob, bob, true) {
if (game.clip[ob]._x > (game.clip[bob]._x - 200)) {
if (game.clip[ob]._x < (game.clip[bob]._x + 200)) {
if ((game.clip[ob]._y > (game.clip[bob]._y - 150)) and (game.clip[ob]._y < (game.clip[bob]._y + 150))) {
return(true);
}
return(false);
}
}
}
function metalHit() {
r = random(2) + 1;
var _local1 = "rs_metalhit" + r;
sounds["rs_metalhit" + r].start();
}
function setUpSounds() {
game.music = new Array();
game.sounds = new Array();
this.createEmptyMovieClip("sounds_mc", getNextHighestDepth());
_root.sounds = new Sound(sounds_mc);
this.createEmptyMovieClip("music_mc", getNextHighestDepth());
_root.music = new Sound(music_mc);
music.rs_music_main = new Sound(music_mc);
music.rs_music_main.attachSound("rs_music_main");
game.music.push("rs_music_main");
music.rs_music_boss = new Sound(music_mc);
music.rs_music_boss.attachSound("rs_music_boss");
game.music.push("rs_music_boss");
music.rs_music_main.start(0, 100);
sounds.levelcomplete = new Sound(this);
sounds.levelcomplete.attachSound("levelcomplete");
sounds.levelcomplete.onSoundComplete = function () {
};
sounds.gameover = new Sound(sounds_mc);
sounds.gameover.attachSound("gameover");
sounds.INSERT4 = new Sound(sounds_mc);
sounds.INSERT4.attachSound("INSERT4");
game.sounds.push("INSERT4");
sounds.BEEPDBL = new Sound(sounds_mc);
sounds.BEEPDBL.attachSound("BEEPDBL");
game.sounds.push("BEEPDBL");
sounds.rs_dryfire = new Sound(sounds_mc);
sounds.rs_dryfire.attachSound("rs_dryfire");
game.sounds.push("rs_dryfire");
sounds.rs_electricity = new Sound(sounds_mc);
sounds.rs_electricity.attachSound("rs_electricity");
game.sounds.push("rs_electricity");
sounds.rs_rocket_launcher = new Sound(sounds_mc);
sounds.rs_rocket_launcher.attachSound("rs_rocket_launcher");
game.sounds.push("rs_rocket_launcher");
sounds.rs_missile_gassfire = new Sound(sounds_mc);
sounds.rs_missile_gassfire.attachSound("rs_missile_gassfire");
game.sounds.push("rs_missile_gassfire");
sounds.rs_saw1 = new Sound(sounds_mc);
sounds.rs_saw1.attachSound("rs_saw1");
game.sounds.push("rs_saw1");
sounds.rs_saw2 = new Sound(sounds_mc);
sounds.rs_saw2.attachSound("rs_saw2");
game.sounds.push("rs_saw2");
sounds.rs_jump = new Sound(sounds_mc);
sounds.rs_jump.attachSound("rs_jump");
game.sounds.push("rs_jump");
sounds.rs_lazer1 = new Sound(sounds_mc);
sounds.rs_lazer1.attachSound("rs_lazer1");
game.sounds.push("rs_lazer1");
sounds.rs_lazer2 = new Sound(sounds_mc);
sounds.rs_lazer2.attachSound("rs_lazer2");
game.sounds.push("rs_lazer2");
sounds.rs_bombdrop = new Sound(sounds_mc);
sounds.rs_bombdrop.attachSound("rs_bombdrop");
game.sounds.push("rs_bombdrop");
sounds.rs_pulse_shoot = new Sound(sounds_mc);
sounds.rs_pulse_shoot.attachSound("rs_pulse_shoot");
game.sounds.push("rs_pulse_shoot");
sounds.rs_flamethrower = new Sound(sounds_mc);
sounds.rs_flamethrower.attachSound("rs_flamethrower");
game.sounds.push("rs_flamethrower");
sounds.rs_metalhit1 = new Sound(sounds_mc);
sounds.rs_metalhit1.attachSound("rs_metalhit1");
game.sounds.push("rs_metalhit1");
sounds.rs_metalhit2 = new Sound(sounds_mc);
sounds.rs_metalhit2.attachSound("rs_metalhit2");
game.sounds.push("rs_metalhit2");
sounds.rs_metalhit3 = new Sound(sounds_mc);
sounds.rs_metalhit3.attachSound("rs_metalhit3");
game.sounds.push("rs_metalhit3");
sounds.rs_colectstuf = new Sound(sounds_mc);
sounds.rs_colectstuf.attachSound("rs_colectstuf");
game.sounds.push("rs_colectstuf");
sounds.rs_ugh = new Sound(sounds_mc);
sounds.rs_ugh.attachSound("rs_ugh");
game.sounds.push("rs_ugh");
sounds.rs_alarm1 = new Sound(sounds_mc);
sounds.rs_alarm1.attachSound("rs_alarm1");
game.sounds.push("rs_alarm1");
sounds.rs_reload = new Sound(sounds_mc);
sounds.rs_reload.attachSound("rs_reload");
game.sounds.push("rs_reload");
sounds.rs_c4 = new Sound(sounds_mc);
sounds.rs_c4.attachSound("rs_c4");
game.sounds.push("rs_c4");
sounds.rs_knife1 = new Sound(sounds_mc);
sounds.rs_knife1.attachSound("rs_knife1");
game.sounds.push("rs_knife1");
sounds.rs_knife2 = new Sound(sounds_mc);
sounds.rs_knife2.attachSound("rs_knife2");
game.sounds.push("rs_knife2");
sounds.rs_explosion1 = new Sound(sounds_mc);
sounds.rs_explosion1.attachSound("rs_explosion1");
game.sounds.push("rs_explosion1");
sounds.rs_explosion2 = new Sound(sounds_mc);
sounds.rs_explosion2.attachSound("rs_explosion2");
game.sounds.push("rs_explosion2");
sounds.rs_explosion3 = new Sound(sounds_mc);
sounds.rs_explosion3.attachSound("rs_explosion3");
game.sounds.push("rs_explosion3");
sounds.rs_explosion4 = new Sound(sounds_mc);
sounds.rs_explosion4.attachSound("rs_explosion4");
game.sounds.push("rs_explosion4");
sounds.rs_explosion5 = new Sound(sounds_mc);
sounds.rs_explosion5.attachSound("rs_explosion5");
game.sounds.push("rs_explosion5");
sounds.rs_missile = new Sound(sounds_mc);
sounds.rs_missile.attachSound("rs_missile");
game.sounds.push("rs_missile");
sounds.rs_wormbust = new Sound(sounds_mc);
sounds.rs_wormbust.attachSound("rs_wormbust");
game.sounds.push("rs_wormbust");
sounds.rs_wormscream1 = new Sound(sounds_mc);
sounds.rs_wormscream1.attachSound("rs_wormscream1");
game.sounds.push("rs_wormscream1");
sounds.rs_wormscream2 = new Sound(sounds_mc);
sounds.rs_wormscream2.attachSound("rs_wormscream2");
game.sounds.push("rs_wormscream2");
sounds.rs_wormscream2b = new Sound(sounds_mc);
sounds.rs_wormscream2b.attachSound("rs_wormscream2b");
game.sounds.push("rs_wormscream2b");
game.soundVolume = 6;
game.musicVolume = 7;
i = 0;
while (i < _root.game.sounds.length) {
var _local3 = _root.game.sounds[i];
_root.sounds[_local3].setVolume(_root.game.soundVolume * 10);
i++;
}
i = 0;
while (i < _root.game.music.length) {
var music = _root.game.music[i];
_root.music[music].setVolume(_root.game.musicVolume * 10);
i++;
}
}
function setVolumes(vol, s) {
s.setVolume(vol);
}
function cleanUp() {
snappy.dispose();
game.trailcounter = 0;
i = 0;
while (i < game.dyingEnemies.length) {
en = game.dyingEnemies[i];
ob = game[en];
game.dyingEnemies.splice(i, 1);
removeMovieClip(game.clip[en]);
delete ob;
i++;
}
var _local2 = 0;
while (_local2 < game.enemies.length) {
en = game.enemies[_local2];
var _local3 = en;
var ob = game[_local3];
clearInterval(ob.glowTimer);
delete ob.glowTimer;
clearInterval(ob.shootTimer);
delete ob.shootTimer;
clearInterval(ob.shootTimer2);
delete ob.shootTimer2;
clearInterval(ob.rocketTimer);
delete ob.rocketTimer;
clearInterval(ob.elecTimer);
delete ob.elecTimer;
clearInterval(ob.eggTimer);
delete ob.eggTimer;
ob.clip.removeMovieClip();
removeOb(en);
game.enemies.splice(_local2, 1);
_local2++;
}
var _local1 = 0;
while (_local1 < (game.bullets.length + 1)) {
var i = game.bullets[_local1];
var _local4 = "bullet" + i;
removeBullet(_local4, _local1);
_local1++;
}
var i = 0;
while (i < 11) {
var _local3 = "flare" + i;
var ob = game[_local3];
game.clip[_local3].removeMovieClip();
delete ob;
i++;
}
var i = 0;
while (i < game.c4.length) {
var _local3 = game.c4[i];
game.c4.splice(i, 1);
game.clip[_local3].removeMovieClip();
delete game[_local3];
i++;
}
var i = 0;
while (i < 61) {
var _local3 = "spark" + i;
var ob = game[_local3];
game.clip[_local3].removeMovieClip();
delete ob;
i++;
}
var i = 1;
while (i < (game.trails + 1)) {
tname = "trail" + i;
game.clip[tname].removeMovieClip();
i++;
}
i = 0;
while (i < game.items.length) {
var _local3 = game.items[i];
ob = game[_local3];
game.items.splice(i, 1);
removeMovieClip(ob.clip);
delete ob;
i++;
}
i = 0;
while (i < game.embers.length) {
var _local3 = game.embers[i];
ob = game[_local3];
game.embers.splice(i, 1);
removeMovieClip(ob.clip);
delete ob;
i++;
}
var i = 0;
while (i < 11) {
var _local3 = "flare" + i;
var ob = game[_local3];
game.clip[_local3].removeMovieClip();
delete ob;
i++;
}
var i = 1;
while (i < 16) {
var _local4 = "rocket" + i;
removeBullet(_local4, _local1);
i++;
}
game.clip.boss.removeMovieClip();
delete game.boss;
}
function buildMap(map) {
cleanUp();
_root["Level" + (game.level - 1)] = [];
_root.paws = false;
_root.clouds._x = 0;
_root.clouds.gotoAndStop(game.level);
_root.hud.bossNRG._alpha = 0;
if (!game.destructor) {
_root.hud.lightning._visible = false;
_root.hud.destructor._visible = false;
}
game.scrolling = true;
game.scrollstop = 0;
game.bossfight = false;
game.fightarea = null;
game.bossarea = 4000;
_root.screen._y = -100;
_root.screen.attachMovie("empty", "tileset", 4);
_root.screen.tileset.attachMovie("empty", "tiles", 4);
_root.screen.attachMovie("empty", "maskset", 3);
_root.screen.attachMovie("empty", "masktemp", 2);
_root.hud.swapDepths(700000);
var _local11 = map[0].length;
var _local12 = map.length;
_global.mapWidthActual = _local11 * 25;
_global.mapHeightActual = _local12 * 50;
d++;
_root.screen.tileset.tiles.attachMovie("backgrounds", "bkgr", d);
_root.screen.tileset.tiles.bkgr.gotoAndStop(game.level);
d++;
_root.screen.maskset.attachMovie("bkgrmask", "bkgrmask", d);
_root.screen.maskset.bkgrmask.gotoAndStop(game.level);
var _local5 = 0;
while (_local5 < _local12) {
var _local4 = 0;
while (_local4 < _local11) {
d++;
var _local10 = (("t_" + _local5) + "_") + _local4;
var _local3 = map[_local5][_local4];
var _local7 = true;
k = 0;
while (k < 11) {
if (_local3 == ("i" + k)) {
_local7 = false;
}
k++;
}
x = _local4 * 25;
y = _local5 * 50;
if (_local7) {
if (_local3 == 4) {
game.bossarea = x;
game.scrollstop = 1;
} else if (_local3 != 0) {
_root.screen.tileset.tiles.attachMovie("tiles", _local10, d);
_root.screen.tileset.tiles[_local10]._x = x;
_root.screen.tileset.tiles[_local10]._y = y;
_root.screen.maskset[_local10]._swapDepths = _root.screen.tileset[_local10]._y + _local4;
_root.screen.maskset.attachMovie("masks", _local10, d);
_root.screen.maskset[_local10]._x = x;
_root.screen.maskset[_local10]._y = y;
_root.screen.tileset.tiles[_local10].gotoAndStop(_local3);
_root.screen.maskset[_local10].gotoAndStop(_local3);
}
}
_local4++;
_local3 = map[_local5][_local4];
if (_local3 == "i3") {
k = game.enemies.length + 1;
_local10 = "enemy" + k;
game[_local10] = new game.Enemy3();
game.clip.attachMovie("squid", _local10, 10501 + k);
game[_local10].clip = game.clip[_local10];
game[_local10].clip._x = x;
game[_local10].clip._y = y;
game.enemies.push(_local10);
} else if (_local3 == "i13") {
k = game.enemies.length + 1;
_local10 = "enemy" + k;
game[_local10] = new game.Enemy7();
game.clip.attachMovie("supersquid", _local10, 10501 + k);
game[_local10].clip = game.clip[_local10];
game[_local10].clip._x = x;
game[_local10].clip._y = y;
game.enemies.push(_local10);
} else if (_local3 == "i1") {
k = game.enemies.length + 1;
_local10 = "enemy" + k;
game[_local10] = new game.Enemy1();
game[_local10].respawn = false;
game[_local10].stationary = false;
game.clip.attachMovie("enemy1", _local10, 10501 + k);
game[_local10].clip = game.clip[_local10];
game[_local10].clip._x = x;
game[_local10].clip._y = y;
game.enemies.push(_local10);
} else if (_local3 == "i2") {
k = game.enemies.length + 1;
_local10 = "enemy" + k;
game[_local10] = new game.Enemy1();
game[_local10].respawn = false;
game[_local10].stage = 0;
game[_local10].stationary = true;
game.clip.attachMovie("enemy1b", _local10, 10501 + k);
game.clip[_local10]._alha = 0;
game[_local10].clip = game.clip[_local10];
game[_local10].clip._x = x;
game[_local10].clip._y = y;
game[_local10].clip._xscale = -100;
game[_local10].dir = -1;
game[_local10].strength = 7;
game[_local10].score = 150;
game[_local10].id = "surprise";
game[_local10].clip._alpha = 0;
game.enemies.push(_local10);
} else if (_local3 == "i10") {
k = game.enemies.length + 1;
_local10 = "enemy" + k;
game[_local10] = new game.Enemy2();
game[_local10].respawn = false;
game[_local10].stationary = false;
game.clip.attachMovie("droid", _local10, 10501 + k);
game[_local10].clip = game.clip[_local10];
game[_local10].clip._x = x;
game[_local10].clip._y = y;
game[_local10].clip._xscale = -100;
game[_local10].dir = -1;
game.enemies.push(_local10);
} else if (_local3 == "i11") {
k = game.enemies.length + 1;
_local10 = "enemy" + k;
game[_local10] = new game.Enemy6();
game[_local10].respawn = false;
game[_local10].stationary = false;
game.clip.attachMovie("littlegun", _local10, 10501 + k);
game[_local10].clip = game.clip[_local10];
game[_local10].clip._x = x;
game[_local10].clip._y = y;
game[_local10].clip._xscale = -100;
game[_local10].dir = -1;
game[_local10].strength = 40;
game.enemies.push(_local10);
} else if (_local3 == "i12") {
k = game.enemies.length + 1;
_local10 = "enemy" + k;
game[_local10] = new game.Enemy6();
game[_local10].respawn = false;
game[_local10].stationary = false;
game.clip.attachMovie("littlegun2", _local10, 10501 + k);
game[_local10].clip = game.clip[_local10];
game[_local10].clip._x = x;
game[_local10].clip._y = y;
game[_local10].clip._xscale = -100;
game[_local10].dir = -1;
game[_local10].id = "little rocket";
game.enemies.push(_local10);
} else if (_local3 == "i5") {
k = game.enemies.length + 1;
_local10 = "enemy" + k;
game[_local10] = new game.Enemy5();
game[_local10].respawn = false;
game[_local10].stage = 0;
game[_local10].stationary = false;
game.clip.attachMovie("enemy5", _local10, 10501 + k);
game[_local10].clip = game.clip[_local10];
game[_local10].clip._x = x;
game[_local10].clip._y = y;
game[_local10].dir = -1;
game[_local10].active = false;
game[_local10].startY = y;
game.enemies.push(_local10);
} else if (_local3 == "i14") {
k = game.enemies.length + 1;
_local10 = "enemy" + k;
game[_local10] = new game.Enemy8();
game[_local10].respawn = false;
game[_local10].stage = 0;
game[_local10].stationary = false;
game.clip.attachMovie("flyingball", _local10, 10501 + k);
game[_local10].clip = game.clip[_local10];
game[_local10].clip._x = x;
game[_local10].clip._y = y;
game[_local10].dir = -1;
game[_local10].active = false;
game[_local10].startY = y;
game.enemies.push(_local10);
} else if (_local3 == "i15") {
k = game.enemies.length + 1;
_local10 = "enemy" + k;
game[_local10] = new game.Enemy9();
game[_local10].respawn = false;
game[_local10].stage = 0;
game[_local10].stationary = false;
game.clip.attachMovie("lighter", _local10, 10501 + k);
game[_local10].clip = game.clip[_local10];
game[_local10].clip._x = x;
game[_local10].clip._y = y;
game[_local10].active = false;
game.enemies.push(_local10);
} else if (_local3 == "i20") {
k = game.enemies.length + 1;
_local10 = "bosshit";
game[_local10] = new game.Boss1();
game[_local10].respawn = false;
game[_local10].stage = 0;
game[_local10].stationary = false;
game.boss = new game.Boss1();
game.clip.attachMovie("boss_laser", "boss", 998);
game.clip.boss._x = x;
game.clip.boss._y = y + 20;
game.boss.clip = game.clip.boss;
game.clip.boss._alpha = 0;
game.clip.boss.gotoAndStop(5);
game.clip.attachMovie("hitbox", _local10, 999);
game[_local10].clip = game.clip[_local10];
game[_local10].clip._x = game.clip.boss._x;
game[_local10].clip._y = 200;
game[_local10].dir = -1;
game[_local10].active = false;
game[_local10].startY = y;
game[_local10].Ostrength = game[_local10].strength;
game.enemies.push(_local10);
} else if (_local3 == "i21") {
k = game.enemies.length + 1;
_local10 = "bosshit";
game[_local10] = new game.Boss2();
game[_local10].respawn = false;
game[_local10].stage = 0;
game[_local10].stationary = false;
game.boss = new game.Boss2();
game.clip.attachMovie("boss_bomb", "boss", 998);
game.clip.boss._x = x;
game.clip.boss._y = y + 20;
game.boss.clip = game.clip.boss;
game.clip.boss._alpha = 0;
game.clip.boss.gotoAndStop(6);
game.clip.attachMovie("hitbox", _local10, 999);
game[_local10].clip = game.clip[_local10];
game[_local10].clip._x = game.clip.boss._x + game.clip.boss.hitbox._x;
game[_local10].clip._y = game.clip.boss._y + game.clip.boss.hitbox._y;
game[_local10].dir = -1;
game[_local10].active = false;
game[_local10].startY = y;
game[_local10].clip._width = game[_local10].width;
game[_local10].Ostrength = game[_local10].strength;
game.enemies.push(_local10);
} else if (_local3 == "i22") {
k = game.enemies.length + 1;
_local10 = "bosshit";
game[_local10] = new game.Boss3();
game[_local10].respawn = false;
game[_local10].stage = 0;
game[_local10].stationary = false;
game.boss = new game.Boss3();
game.clip.attachMovie("boss_sawblade", "boss", 998);
game.clip.boss._x = x;
game.clip.boss._y = y + 0;
game.boss.clip = game.clip.boss;
game.clip.boss._alpha = 0;
game.clip.attachMovie("hitbox", _local10, 999);
game[_local10].clip = game.clip[_local10];
game[_local10].clip._x = game.clip.boss._x + game.clip.boss.hitbox._x;
game[_local10].clip._y = game.clip.boss._y + game.clip.boss.hitbox._y;
game.boss.clip.gotoAndStop(5);
game[_local10].dir = -1;
game[_local10].active = false;
game[_local10].startY = y;
game[_local10].Ostrength = game[_local10].strength;
game.enemies.push(_local10);
} else if (_local3 == "i23") {
k = game.enemies.length + 1;
_local10 = "bosshit";
game[_local10] = new game.Boss4();
game[_local10].respawn = false;
game[_local10].stage = 0;
game[_local10].stationary = false;
game.boss = new game.Boss4();
game.clip.attachMovie("boss_orbit", "boss", 998);
game.clip.boss._x = x;
game.clip.boss._y = 150;
game.boss.clip = game.clip.boss;
game.clip.attachMovie("hitbox", _local10, 999);
game[_local10].clip = game.clip[_local10];
game[_local10].clip._x = game.clip.boss._x + game.clip.boss.hitbox._x;
game[_local10].clip._y = game.clip.boss._y + game.clip.boss.hitbox._y;
game[_local10].dir = -1;
game[_local10].active = false;
game[_local10].startY = y;
game[_local10].Ostrength = game[_local10].strength;
game.enemies.push(_local10);
var _local6 = 0;
bb = 0;
while (bb < 8) {
_local10 = "boss_mini" + bb;
game[_local10] = new game.Boss4_b();
game[_local10].active = false;
game.clip.attachMovie("orbit_boss_eye", _local10, 980 + bb);
game.clip[_local10]._x = (x + random(200)) - 100;
game.clip[_local10]._y = (200 + random(200)) - 100;
game[_local10].clip = game.clip[_local10];
game[_local10].clip._alpha = 0;
game[_local10].t = _local6;
_local6 = _local6 + 0.75;
game.enemies.push(_local10);
bb++;
}
} else if (_local3 == "i24") {
k = game.enemies.length + 1;
_local10 = "bosshit";
game[_local10] = new game.Boss5();
game[_local10].respawn = false;
game[_local10].stage = 0;
game[_local10].stationary = false;
game.boss = new game.Boss5();
game.clip.attachMovie("boss_egg", "boss", 998);
game.clip.boss._x = x;
game.clip.boss._y = y;
game.boss.clip = game.clip.boss;
game.clip.boss._alpha = 0;
game.clip.boss.gotoAndStop(6);
game.clip.attachMovie("hitbox", _local10, 999);
game[_local10].clip = game.clip[_local10];
game[_local10].clip._x = game.clip.boss._x + game.clip.boss.hitbox._x;
game[_local10].clip._y = game.clip.boss._y + game.clip.boss.hitbox._y;
game[_local10].dir = -1;
game[_local10].active = false;
game[_local10].startY = y;
game[_local10].Ostrength = game[_local10].strength;
game.enemies.push(_local10);
}
_local4++;
}
_local5++;
}
snappy.dispose();
delete _root.snapshot;
var snappy = (new flash.display.BitmapData(_global.mapWidthActual, 500));
snappy.draw(_root.screen.maskset, new flash.geom.Matrix());
_root.snapshot = snappy;
_root.screen.maskset.removeMovieClip();
_local5 = 0;
while (_local5 < game.enemies.length) {
en = game.enemies[_local5];
var _local10 = en;
var _local9 = game[_local10];
if (!_local9.active) {
_local9.clip.gotoAndStop(5);
_root.screen[en].gotoAndStop(5);
}
_local5++;
}
game.clip.boss._alpha = 0;
yy = 0;
while (yy < 200) {
if (checkColour("ff0000", char.clip._x, char.clip._y, true)) {
char.clip._y = char.clip._y - 2;
}
yy++;
}
game.enemyAmount = game.enemies.length;
if (map == _root.Level1) {
_root.hud.go.play();
}
}
function buildChars() {
_root.attachMovie("empty", "screen", 10);
game.clip = _root.screen;
game.clip.attachMovie("char", "char", 1000);
char.clip = game.clip.char;
char.clip._x = 20;
char.clip._y = 450;
char.height = 55;
char.walking = false;
Mouse.hide();
_root.attachMovie("crosshair", "crosshair", 2001);
_root.crosshair.cacheAsBitmap();
_root.crosshair.startDrag(true);
char.myColor = new Color(char.clip);
i = 0;
while (i < 3) {
var _local2 = "enemy" + i;
game[_local2] = new game.Enemy1();
game.clip.attachMovie("enemy1", _local2, 10501 + i);
game[_local2].clip = game.clip[_local2];
game[_local2].stage = 1;
game[_local2].active = true;
game[_local2].clip._x = random(100) + 600;
game[_local2].clip._y = 300;
game.enemies.push(_local2);
i++;
}
_root.hud.l = "X " + char.lives;
_root.hud.bull = char.bullType;
_root.hud.b = "X " + char.bullets;
_root.hud.r = "X " + char.rockets;
_root.hud.score = "SCORE: " + game.score;
}
function glow(obb, r, g, b, a) {
game.myColor = new Color(obb.clip);
game.myColor.setTransform({ra:a, rb:r, ga:a, gb:g, ba:a, bb:b, aa:a, ab:0});
}
function checkLevel() {
if (char.clip._x > 1960) {
if (game.level == 20) {
_root.cleanUp();
_root.crosshair.stopDrag(true);
removeMovieClip(_root.crosshair);
removeMovieClip(game.clip);
removeMovieClip(_root.hud);
i = 0;
while (i < _root.game.sounds.length) {
var _local6 = _root.game.sounds[i];
_root.sounds[_local6].setVolume(0);
i++;
}
i = 0;
while (i < _root.game.music.length) {
var _local5 = _root.game.music[i];
_root.music[_local5].setVolume(0);
i++;
}
_root.score = game.score;
game.clip.removeMovieClip();
_root.hud.removeMovieClip();
Mouse.show();
_root.gotoAndStop("win");
} else {
var _local2 = 0;
while (_local2 < game.enemies.length) {
en = game.enemies[_local2];
var _local4 = en;
var _local3 = game[_local4];
clearInterval(_local3.glowTimer);
delete _local3.glowTimer;
removeOb(en);
game.enemies.splice(_local2, 1);
_local2++;
}
game.enemies = [];
game.bullets = [];
game.c4 = [];
game.sparks = [];
game.smoke = [];
game.items = [];
game.dyingEnemies = [];
game.level++;
_root.hud.level = game.level;
buildChars();
buildMap(_root["Level" + game.level]);
}
}
}
function finishboss() {
_root.paws = true;
music.rs_music_boss.stop();
music.rs_music_main.start(0, 100);
sounds.rs_wormscream2b.start();
_root.hud.menu.gotoAndStop(4);
char.bulletTypes++;
game.bossfight = false;
_root.hud.bossNRG._alpha = 0;
game.scrollstop = 3;
game.scrolling = true;
game.kills = 20000;
clearInterval(game.bossEndTimer);
_root.hud.menu.bosswin.boss_pic.gotoAndStop(_root.bossNumber);
var _local2 = 0;
while (_local2 < game.enemies.length) {
en = game.enemies[_local2];
var _local4 = en;
var _local3 = game[_local4];
if (_local3.id != "boss") {
clearInterval(_local3.glowTimer);
game.score = game.score + _local3.score;
_root.hud.score = game.score;
delete _local3.glowTimer;
removeOb(en);
game.enemies.splice(_local2, 1);
}
_local2++;
}
}
function checkKeys() {
if ((char.strength < 0) && (!char.jump)) {
game.clip.char.gotoAndStop(10);
_root.paws = true;
if (game.cont == 0) {
game.cont++;
_root.hud.menu.gotoAndStop(5);
} else {
_root.hud.menu.gotoAndStop(6);
}
} else {
if (game.scrolling) {
if ((game.clip._x * -1) >= 1400) {
game.xstop = 1950;
game.scrolling = false;
} else if ((((game.clip._x * -1) >= game.bossarea) and (game.scrollstop != 3)) and (game.scrollstop != 4)) {
setUpBossFight();
}
}
if (game.bossfight) {
game.x = 880;
game.xx = 200;
game.xstop = 1900;
if (_root.screen._yscale != 85) {
_root.screen._xscale = 85;
_root.screen._yscale = 85;
}
} else {
game.x = 540;
game.xx = 10;
if (game.scrollstop != 3) {
game.xstop = 1950;
} else if ((game.scrollstop == 4) or (game.scrollstop == 1)) {
game.xstop = 2150;
}
if (_root.screen._yscale != 100) {
_root.screen._xscale = 100;
_root.screen._yscale = 100;
}
}
checkLevel();
var _local2 = char;
screenPos(char.clip._x, char.clip._y);
if (game.scrolling) {
game.x = 580;
game.kills = 0;
} else {
if (!game.bossfight) {
game.x = 540;
}
if (((game.enemies.length < 1) and (!game.bossfight)) and (game.scrollstop != 3)) {
game.xstop = 2050;
game.scrolling = true;
game.scrollstop = 4;
_root.hud.go.play();
}
}
var _local3 = Key.isDown(39) or Key.isDown(68);
var _local4 = Key.isDown(37) or Key.isDown(65);
var _local7 = Key.isDown(38) or Key.isDown(87);
var _local6 = Key.isDown(40) or Key.isDown(83);
var _local5 = _local7;
cheats();
if (((((!_local3) and (!_local4)) and (!_local2.jump)) and (!_local2.shooting)) and (!_local2.duck)) {
_local2.clip.gotoAndStop(1);
char.walking = false;
}
if (((_local3 and (!_local4)) and (!_local2.duck)) and (_local2.clip._x < game.xstop)) {
if ((!_local2.jump) and (!_local2.walking)) {
_local2.clip.gotoAndStop(2);
}
_local2.walking = true;
moveChar(_local2, 1, 0, 0);
} else if (((_local4 and (!_local3)) and (!_local2.duck)) and (_local2.clip._x > ((_root.screen._x * -1) + game.xx))) {
if ((!_local2.jump) and (!_local2.walking)) {
_local2.clip.gotoAndStop(2);
}
_local2.walking = true;
moveChar(_local2, -1, 0, 0);
}
if (((!_local2.jump) and _local5) and (!_local2.jumping)) {
sounds.rs_jump.start();
_local2.duck = false;
_local2.jump = true;
_local2.jumping = true;
_local2.jumpRelease = false;
_local2.jumpspeed = _local2.jumpstart;
_local2.plat = 0;
_local2.wallhit = false;
_local2.falling = false;
char.clip.gotoAndStop(7);
_local2.clip.char.char.char.stop();
}
if (_local2.jump) {
if (_local5) {
var _local8 = _local2.gravity;
_local2.clip.char.jetflame.play();
} else {
var _local8 = _local2.gravity + 2;
}
jump(_local2, _local2.jumpspeed, _local8);
}
if ((!_local2.jump) and (!_local5)) {
_local2.jumping = false;
}
if ((_local2.plat and _local6) and (!_local2.duck)) {
_local2.duck = true;
_local2.clip.gotoAndStop(4);
}
if ((_local3 and (!_local4)) and _local2.duck) {
_local2.dir = 1;
_local2.clip._xscale = 100;
} else if ((_local4 and (!_local3)) and _local2.duck) {
_local2.dir = -1;
_local2.clip._xscale = -100;
}
if (_local2.duck and (!_local6)) {
_local2.duck = false;
char.walking = false;
_local2.clip.gotoAndStop(1);
}
shooting();
enemyBrain();
}
}
function checkMenu() {
_root.hud.menu.menu_button.onRelease = function () {
sounds.INSERT4.start();
if (char.strength > 0) {
if (!_root.paws) {
Mouse.show();
_root.paws = true;
_root.hud.menu.gotoAndStop(2);
} else {
Mouse.hide();
_root.paws = false;
_root.hud.menu.gotoAndStop(1);
}
}
};
}
function setUpBossFight() {
music.rs_music_main.stop();
music.rs_music_boss.start(0, 100);
sounds.rs_wormbust.start();
_root.paws = true;
_root.hud.menu.gotoAndStop(3);
_root.hud.bossNRG.bar._xscale = 100;
_root.hud.menu.bossfight.boss_pic.gotoAndStop(game.boss.bossNumber);
_root.bossNumber = game.boss.bossNumber;
sounds.rs_alarm1.start();
game.scrolling = false;
game.killget = 1000;
_root.hud.bossNRG._alpha = 100;
_root.hud.bossNRG._xscale = 10;
_root.screen._x = (game.bossarea * 0.85) * -1;
game.bossfight = true;
game.clip.boss.gotoAndStop(1);
game.boss.active = true;
game.boss.alive = true;
focus(char.clip._x, char.clip._y);
game.bosshit.active = true;
_root.hud.bossNRG._xscale = Math.abs(game.bosshit.strength / game.bosshit.Ostrength) * 100;
if (game.bosshit.bossNumber == 2) {
game.clip.boss._x = (_root.screen._x * -1) + 700;
}
var _local2 = 0;
while (_local2 < (game.bullets.length + 1)) {
var _local4 = game.bullets[_local2];
var _local3 = "bullet" + _local4;
removeBullet(_local3, _local2);
_local2++;
}
}
function enemyNoise(n, x) {
if (x > (game.clip._x * -1)) {
}
}
function enemyBrain() {
i = 0;
while (i < game.enemies.length) {
en = game.enemies[i];
var _local4 = en;
var _local3 = game[_local4];
if (_local3.clip._y > 600) {
clearInterval(_local3.shootTimer);
replaceSoldier(_local3);
}
if (_local3.type == 1) {
if (_local3.stage == 0) {
if ((char.clip._x > (_local3.clip._x - 100)) && (_local3.id == "surprise")) {
_local3.stage = 1;
_local3.jump = true;
_local3.jumpRelease = false;
_local3.jumpspeed = -18;
_local3.plat = false;
_local3.wallhit = false;
_local3.active = true;
_local3.falling = false;
_local3.clip.gotoAndStop(7);
_local3.clip._alpha = 100;
createHit(_local4, "squidjump", 0, 100, 100);
} else if ((char.clip._x > (_local3.clip._x - 450)) && (_local3.id != "surprise")) {
_local3.stage = 1;
_local3.active = true;
_local3.clip._alpha = 100;
} else {
_local3.clip._alpha = 0;
}
}
if (_local3.stage == 1) {
if (((_local3.dir == 1) and (_local3.clip._x > (char.clip._x + 200))) and (!_local3.jump)) {
_local3.dir = -1;
_local3.clip._xscale = -100;
} else if (((_local3.dir == -1) and (_local3.clip._x < (char.clip._x - 200))) and (!_local3.jump)) {
_local3.dir = 1;
_local3.clip._xscale = 100;
}
if ((_local3.clip._x < ((_root.screen._x * -1) - 200)) and _local3.respawn) {
clearInterval(_local3.shootTimer);
replaceSoldier(_local3);
}
if ((!_local3.jump) and (!_local3.shooting)) {
_local3.clip._xscale = 100 * _local3.dir;
_local3.clip.gotoAndStop(2);
moveChar(_local3, _local3.dir, 0, 0);
if (((((r > 50) and _local3.wallhit) and (!_local3.jump)) and (!_local3.falling)) and _local3.plat) {
_local3.jump = true;
_local3.jumpRelease = false;
_local3.jumpspeed = -18;
_local3.plat = false;
_local3.wallhit = false;
_local3.falling = false;
_local3.clip.gotoAndStop(7);
} else if ((_local3.wallhit and (!_local3.jump)) and _local3.plat) {
_local3.dir = _local3.dir * -1;
_local3.clip._xscale = 100 * _local3.dir;
}
}
r = random(100);
if (((_local3.dir == 1) and (char.clip._x > (_local3.clip._x + 50))) or ((_local3.dir == -1) and (char.clip._x < (_local3.clip._x - 50)))) {
if ((_local3.clip._y - 40) > char.clip._y) {
if (_local3.dir == 1) {
_local3.shootDIR = -45;
} else {
_local3.shootDIR = -45;
}
} else {
_local3.shootDIR = 1;
}
s = true;
} else {
s = false;
}
if ((((((r > 50) and (!_local3.jump)) and (!_local3.shooting)) and _local3.plat) and _local3.shoot) and s) {
sounds.rs_lazer2.start();
_local3.shooting = true;
_local3.shoot = false;
_local3.clip.gotoAndStop(3);
shoot(_local3, _local3.dir, false, 15, _local3.shootDIR, 50, 20);
_local3.shootTimer = setInterval(this, "shootTime", 3000, _local3);
_local3.shootTimer2 = setInterval(this, "enemyTime", 500, _local3);
}
}
}
if (_local3.type == 2) {
if (_local3.stage == 0) {
if (char.clip._x > (_local3.clip._x - 300)) {
_local3.stage = 1;
_local3.active = true;
_local3.clip._alpha = 100;
} else {
_local3.clip._alpha = 0;
}
}
if (_local3.stage == 1) {
var _local8 = _local3.clip._x;
var _local6 = _local3.clip._y;
var _local7 = char.clip._x;
var _local5 = char.clip._y;
adjside = _local7 - _local8;
oppside = -1 * (_local5 - _local6);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
if (char.clip._x < _local3.clip._x) {
angle = -1 * angle;
angle = angle - 180;
}
_local3.clip.char.head._rotation = angle;
if (((_local3.dir == 1) and (_local3.clip._x > (char.clip._x + 200))) and (!_local3.jump)) {
_local3.dir = -1;
_local3.clip._xscale = -100;
} else if (((_local3.dir == -1) and (_local3.clip._x < (char.clip._x - 200))) and (!_local3.jump)) {
_local3.dir = 1;
_local3.clip._xscale = 100;
}
if ((_local3.clip._x < ((_root.screen._x * -1) - 200)) && (_local3.id == "droid")) {
removeOb(en);
game.enemies.splice(i, 1);
break;
}
if ((!_local3.jump) and (!_local3.shooting)) {
_local3.clip._xscale = 100 * _local3.dir;
_local3.clip.gotoAndStop(2);
moveChar(_local3, _local3.dir, 0, 0);
if (((((r > 50) and _local3.wallhit) and (!_local3.jump)) and (!_local3.falling)) and _local3.plat) {
_local3.jump = true;
_local3.jumpRelease = false;
_local3.jumpspeed = -18;
_local3.plat = false;
_local3.wallhit = false;
_local3.falling = false;
_local3.clip.gotoAndStop(7);
} else if ((_local3.wallhit and (!_local3.jump)) and _local3.plat) {
_local3.dir = _local3.dir * -1;
_local3.clip._xscale = 100 * _local3.dir;
}
}
r = random(100);
if (((_local3.dir == 1) and (char.clip._x > (_local3.clip._x + 50))) or ((_local3.dir == -1) and (char.clip._x < (_local3.clip._x - 50)))) {
if ((_local3.clip._y - 40) > char.clip._y) {
if (_local3.dir == 1) {
_local3.shootDIR = -45;
} else {
_local3.shootDIR = -45;
}
} else if (_local3.clip._y < (char.clip._y - 40)) {
_local3.shootDIR = 45;
} else {
_local3.shootDIR = 1;
}
s = true;
} else {
s = false;
}
if ((((((r > 50) and (!_local3.jump)) and (!_local3.shooting)) and _local3.plat) and _local3.shoot) and s) {
_local3.clip.char.head.play();
_local3.shooting = true;
_local3.shoot = false;
_local3.clip.gotoAndStop(3);
if (_local3.id == "droid") {
sounds.rs_lazer2.start();
shoot(_local3, _local3.dir, false, 15, _local3.shootDIR, 30, 10);
} else if (_local3.id == "littlegun") {
sounds.rs_lazer2.start();
shoot(_local3, _local3.dir, false, 21, _local3.shootDIR, 50, 20, 10);
} else {
shootRocket(_local3, 1, _local3.shootDIR, false, (30 * _local3.dir) * -1, 50);
}
_local3.shootTimer = setInterval(this, "shootTime", 3000, _local3);
_local3.shootTimer2 = setInterval(this, "enemyTime", 500, _local3);
}
}
}
if ((_local3.jump && (_local3.id != "boss")) && (_local3.active)) {
_local3.plat = false;
jump(_local3, _local3.jumpspeed, _local3.gravity);
moveChar(_local3, _local3.dir, 0, 0);
}
if (_local3.type == 3) {
if (_local3.stage == 0) {
if ((char.clip._x > (_local3.clip._x + 100)) or ((_local3.id == "supersquidly") && (char.clip._x > (_local3.clip._x - 400)))) {
_local3.active = true;
_local3.stage = 1;
createHit(_local4, "squidjump", 0, 100, 100);
}
}
if (_local3.stage == 1) {
if (!_local3.jump) {
if (_local3.clip._x > char.clip._x) {
_local3.dir = -1;
} else {
_local3.dir = 1;
}
}
if (((!_local3.shooting) and _local3.shoot) and _local3.falling) {
if ((_local3.clip._x < (char.clip._x - 100)) or (_local3.clip._x > (char.clip._x + 100))) {
if (_local3.dir == 1) {
_local3.shootDIR = 45;
} else {
_local3.shootDIR = 45;
}
} else {
_local3.shootDIR = 90;
}
sounds.rs_lazer2.start();
_local3.shooting = true;
_local3.shoot = false;
shoot(_local3, _local3.dir, false, _local3.bulletType, _local3.shootDIR, 10, 1);
}
if (!_local3.jump) {
_local3.shooting = false;
_local3.shoot = true;
_local3.duck = false;
_local3.jump = true;
_local3.jumping = true;
_local3.jumpRelease = false;
_local3.jumpspeed = _local3.jumpstart;
_local3.plat = 0;
_local3.wallhit = false;
_local3.falling = false;
_local3.clip.gotoAndStop(7);
}
}
}
if (_local3.type == 5) {
flyingAI(_local3);
}
if (_local3.type == 6) {
if (_local3.stage == 0) {
if (char.clip._x > (_local3.clip._x - 300)) {
_local3.stage = 1;
_local3.active = true;
_local3.clip._alpha = 100;
} else {
_local3.clip._alpha = 0;
}
}
if (_local3.clip._x < ((_root.screen._x * -1) - 10)) {
removeOb(en);
game.enemies.splice(i, 1);
break;
}
if ((!_local3.shooting) && (_local3.stage == 1)) {
_local3.clip.gotoAndStop(2);
if (_local3.clip._x < (char.clip._x + 500)) {
sounds.rs_flamethrower.start();
}
_local3.shooting = true;
_local3.shoot = false;
shoot(_local3, _local3.dir, false, 5, -90, 30, 1);
_local3.shots++;
if (_local3.shots < 20) {
_local3.shootTimer = setInterval(this, "shootTime", 50, _local3);
} else {
_local3.shootTimer = setInterval(this, "shootTime", 2000, _local3);
_local3.shots = 0;
_local3.clip.gotoAndStop(1);
}
}
}
if (((_local3.id == "boss") and _local3.active) and game.bossfight) {
bossAI(_local3.bossNumber, _local3);
} else if (((_local3.id == "boss") and (!_local3.active)) and (!game.bossfight)) {
game.clip.boss._alpha = 0;
}
i++;
}
}
function bossAI(n, ob) {
if (n == 1) {
boss_1(ob);
}
if (n == 2) {
boss_2(ob);
}
if (n == 3) {
boss_3(ob);
}
if (n == 4) {
boss_4(ob);
}
if (n == 5) {
boss_5(ob);
}
}
function boss_1(ob) {
if (ob.stage == 0) {
ob.walking = true;
game.clip.boss.gotoAndStop(2);
if (game.clip.boss._x < (((_root.screen._x * -1) + game.xx) + 200)) {
ob.dir = 1;
ob.walkStep++;
}
if (game.clip.boss._x > (((_root.screen._x * -1) + game.x) - 200)) {
ob.dir = -1;
ob.walkStep++;
}
if (ob.walkStep == 1) {
ob.stage = 1;
ob.walkStep = 0;
}
game.clip.boss._x = game.clip.boss._x + (ob.speed * ob.dir);
ob.clip._x = game.clip.boss._x;
if ((!ob.shooting) && (ob.shoot)) {
r = random(100);
if (r < 20) {
ob.shootDIR = 90;
sounds.rs_pulse_shoot.start();
ob.shooting = true;
ob.shoot = false;
ob.bulletStrength = 8;
shoot(ob, ob.dir, false, 19, ob.shootDIR, (game.clip.boss.shootbox1._y - game.clip.boss.hitbox._y) * -1, 1, (game.clip.boss.shootbox1._x - game.clip.boss.hitbox._x) * -1);
ob.shootTimer = setInterval(this, "shootTime", 1000, ob);
ob.shootTimer2 = setInterval(this, "enemyTime", 500, ob);
} else if (r > 80) {
ob.shootDIR = 90;
ob.shooting = true;
ob.shoot = false;
if (ob.clip._x < (char.clip._x - 100)) {
ob.shootDIR = 45;
} else if (ob.clip._x > (char.clip._x + 100)) {
ob.shootDIR = 45;
} else {
ob.shootDIR = 90;
}
sounds.rs_lazer2.start();
shoot(ob, ob.dir, false, 16, ob.shootDIR, (game.clip.boss.shootbox2._y - game.clip.boss.hitbox._y) * -1, 1, (game.clip.boss.shootbox2._x - game.clip.boss.hitbox._x) * -1);
shoot(ob, ob.dir, false, 16, ob.shootDIR, (game.clip.boss.shootbox3._y - game.clip.boss.hitbox._y) * -1, 1, (game.clip.boss.shootbox3._x - game.clip.boss.hitbox._x) * -1);
ob.shootTimer = setInterval(this, "shootTime", 1000, ob);
ob.shootTimer2 = setInterval(this, "enemyTime", 500, ob);
}
}
}
if ((ob.stage == 1) && (game.enemies.length < 6)) {
sounds.rs_wormscream1.start();
ob.stage = 2;
game.clip.boss.gotoAndStop(3);
x = game.clip.boss._x + game.clip.boss.octoBox._x;
y = game.clip.boss._y + game.clip.boss.octoBox._y;
game.enemyAmount++;
k = game.enemyAmount;
var _local4 = "squidjump" + k;
game[_local4] = new game.Enemy3();
game.clip.attachMovie("squid", _local4, 10501 + k);
game[_local4].clip = game.clip[_local4];
game[_local4].stage = 1;
game[_local4].clip._x = x;
game[_local4].clip._y = y;
game[_local4].active = true;
game[_local4].stage = 1;
game.enemies.push(_local4);
ob.squidTimer = setInterval(this, "squidTime", 1000, ob);
}
}
function boss_2(ob) {
if ((ob.stage == 0) or (ob.stage == 6)) {
ob.clip._x = game.clip.boss._x;
if ((!ob.shooting) && (ob.shoot)) {
if (game.clip.boss._x < (((_root.screen._x * -1) + game.xx) + 200)) {
ob.dir = 1;
} else if (game.clip.boss._x > (((_root.screen._x * -1) + game.x) - 200)) {
ob.dir = -1;
}
ob.shootDIR = 90;
ob.shooting = true;
ob.shoot = false;
if (ob.clip._x < (char.clip._x - 100)) {
ob.shootDIR = 45;
} else if (ob.clip._x > (char.clip._x + 100)) {
ob.shootDIR = 45;
} else {
ob.shootDIR = 90;
}
shoot(ob, ob.dir, false, 20, ob.shootDIR, (game.clip.boss.shootbox1._y - game.clip.boss.hitbox._y) * -1, 1, (game.clip.boss.shootbox1._x - game.clip.boss.hitbox._x) * -1);
ob.shootTimer = setInterval(this, "shootTime", 1000, ob);
ob.stage++;
}
}
if ((((ob.stage > 0) && (ob.stage < 6)) && (!ob.shooting)) && (ob.shoot)) {
n = ob.stage + 2;
var _local4 = "shootbox" + n;
eyex = (game.clip.boss[_local4]._x - game.clip.boss.hitbox._x) * -1;
eyex2 = ob.clip._x - eyex;
if (eyex2 < (char.clip._x - 100)) {
ob.dir = 1;
ob.shootDIR = 45;
} else if (eyex2 > (char.clip._x + 100)) {
ob.dir = -1;
ob.shootDIR = 45;
} else {
ob.shootDIR = 90;
}
ob.shooting = true;
ob.shoot = false;
shoot(ob, ob.dir, false, 21, ob.shootDIR, (game.clip.boss[_local4]._y - game.clip.boss.hitbox._y) * -1, 1, eyex);
ob.shootTimer = setInterval(this, "shootTime", 200, ob);
ob.stage++;
ob.walkStep = 0;
}
if (ob.stage == 7) {
if (ob.walkstep == 0) {
ob.dir = -1;
ob.walkstep = 1;
}
ob.walking = true;
game.clip.boss.gotoAndStop(2);
if (game.clip.boss._x < ((_root.screen._x * -1) + 80)) {
ob.dir = 1;
ob.walkStep++;
} else if (game.clip.boss._x > ((_root.screen._x * -1) + 700)) {
ob.dir = -1;
ob.walkStep++;
}
if (ob.walkStep == 2) {
sounds.rs_wormscream1.start();
ob.stage = 1;
ob.walkStep = 0;
}
if (!ob.shooting) {
r = random(15);
if (r > 4) {
ob.shootDIR = 90;
} else {
ob.shootDIR = 45;
}
n = random(4) + 3;
var _local4 = "shootbox" + n;
eyex = (game.clip.boss[_local4]._x - game.clip.boss.hitbox._x) * -1;
ob.shooting = true;
ob.shoot = false;
shoot(ob, ob.dir, false, 21, ob.shootDIR, (game.clip.boss[_local4]._y - game.clip.boss.hitbox._y) * -1, 1, eyex);
sounds.rs_bombdrop.start();
ob.bulletType = 4;
shoot(ob, ob.dir, false, 22, 45, (game.clip.boss.shootbox2._y - game.clip.boss.hitbox._y) * -1, 1, (game.clip.boss.shootbox2._x - game.clip.boss.hitbox._x) * -1);
ob.bulletType = 1;
ob.shootTimer = setInterval(this, "shootTime", 600, ob);
}
game.clip.boss._x = game.clip.boss._x + (ob.speed * ob.dir);
ob.clip._x = game.clip.boss._x;
}
}
function boss_3(ob) {
if (ob.stage == 0) {
if (ob.walkstep == 0) {
ob.dir = -1;
ob.walkstep = 1;
}
ob.walking = true;
if (game.pulse2) {
sounds.rs_wormscream1.start();
}
if (game.clip.boss._x < ((_root.screen._x * -1) + 80)) {
ob.dir = 1;
ob.walkStep++;
if ((ob.speed < 10) && (ob.strength < ((ob.Ostrength / 100) * 80))) {
ob.speed = ob.speed + 2;
}
} else if (game.clip.boss._x > ((_root.screen._x * -1) + 900)) {
ob.dir = -1;
ob.walkStep++;
}
if (ob.walkStep == 4) {
game.clip.boss.gotoAndStop(1);
ob.walkStep = 0;
}
if (ob.walkStep == 1) {
if (game.pulse) {
sounds.rs_saw1.start();
}
game.clip.boss.gotoAndStop(2);
x = game.clip.boss._x - 203;
y = game.clip.boss._y - 30;
r = random(10);
if (r > 4) {
spark = "spark3";
} else {
spark = "spark2";
}
createSparks(ob, spark, 0, 270, x, y);
}
if (ob.walkStep == 2) {
if (game.pulse) {
sounds.rs_saw1.start();
}
game.clip.boss.gotoAndStop(3);
x = game.clip.boss._x + 190;
y = game.clip.boss._y - 30;
r = random(10);
if (r > 4) {
spark = "spark3";
} else {
spark = "spark2";
}
createSparks(ob, spark, 0, 270, x, y);
}
if (ob.walkStep == 3) {
if (game.pulse) {
sounds.rs_saw1.start();
}
game.clip.boss.gotoAndStop(4);
x = game.clip.boss._x - 110;
y = game.clip.boss._y - 30;
x2 = game.clip.boss._x + 130;
y2 = game.clip.boss._y - 30;
r = random(10);
if (r > 4) {
spark = "spark3";
} else {
spark = "spark2";
}
createSparks(ob, spark, 0, 270, x, y);
createSparks(ob, spark, 0, 270, x2, y2);
}
if (!ob.shooting) {
r = random(15);
if (r > 4) {
ob.shootDIR = 90;
} else {
ob.shootDIR = 45;
}
sounds.rs_lazer2.start();
ob.shooting = true;
ob.shoot = false;
shoot(ob, ob.dir, false, 21, ob.shootDIR, (game.clip.boss.shootbox1._y - game.clip.boss.hitbox._y) * -1, 1, (game.clip.boss.shootbox1._x - game.clip.boss.hitbox._x) * -1);
ob.shootTimer = setInterval(this, "shootTime", 2000, ob);
}
game.clip.boss._x = game.clip.boss._x + (ob.speed * ob.dir);
ob.clip._x = game.clip.boss._x;
var _local5 = char.clip._x;
var _local4 = char.clip._y - 20;
var x2 = (game.clip.boss._x + game.clip.boss.saw1._x);
var y2 = ((game.clip.boss._y + game.clip.boss.saw1._y) - 30);
var _local6 = getDistance(_local5, x2, _local4, y2);
if (_local6 < 20) {
sawHit(char, _local5, _local4);
}
_local5 = char.clip._x;
_local4 = char.clip._y - 20;
var x2 = (game.clip.boss._x + game.clip.boss.saw2._x);
var y2 = ((game.clip.boss._y + game.clip.boss.saw2._y) - 30);
_local6 = getDistance(_local5, x2, _local4, y2);
if (_local6 < 20) {
sawHit(char, _local5, _local4);
}
}
}
function boss_4(ob) {
var _local6 = 0;
bb = 0;
while (bb < 8) {
var _local5 = "boss_mini" + bb;
if ((game[_local5].strength > 0) and game.bossfight) {
game[_local5].active = true;
game[_local5].alive = true;
_local6++;
}
bb++;
}
if ((_local6 > 0) && (ob.strength < ob.Ostrength)) {
ob.strength = ob.strength + 0.5;
_root.hud.bossNRG.bar._xscale = Math.abs(ob.strength / ob.Ostrength) * 100;
}
bb = 0;
while (bb < 8) {
var _local5 = "boss_mini" + bb;
game[_local5].clip._alpha = 100;
x = ob.clip._x;
y = ob.clip._y;
_root.xfocus = x;
_root.yfocus = y;
rot(_local5, 0.1, x, y, false);
var _local3 = game[_local5];
if (_local3.clip._x < (char.clip._x + 50)) {
_local3.shootDIR = 45;
_local3.dir = 1;
} else if (_local3.clip._x > (char.clip._x - 50)) {
_local3.shootDIR = 45;
_local3.dir = -1;
} else {
_local3.shootDIR = 90;
_local3.dir = 1;
}
if (!_local3.shooting) {
sounds.rs_lazer2.start();
_local3.shooting = true;
_local3.shoot = false;
shoot(_local3, _local3.dir, false, 21, _local3.shootDIR, 20, 1, 0);
_local3.shootTimer = setInterval(this, "shootTime", 4000, _local3);
}
bb++;
}
if (game.pulse2) {
sounds.rs_wormscream1.start();
}
ob.clip._x = game.clip.boss._x;
if ((!ob.shooting) && (ob.shoot)) {
if (game.clip.boss._x < (((_root.screen._x * -1) + game.xx) + 200)) {
ob.dir = 1;
} else if (game.clip.boss._x > (((_root.screen._x * -1) + game.x) - 200)) {
ob.dir = -1;
}
ob.shootDIR = 90;
ob.shooting = true;
ob.shoot = false;
if (ob.clip._x < (char.clip._x - 100)) {
ob.shootDIR = 45;
} else if (ob.clip._x > (char.clip._x + 100)) {
ob.shootDIR = 45;
} else {
ob.shootDIR = 90;
}
sounds.rs_pulse_shoot.start();
shoot(ob, ob.dir, false, 6, ob.shootDIR, (game.clip.boss.shootbox1._y - game.clip.boss.hitbox._y) * -1, 1, (game.clip.boss.shootbox1._x - game.clip.boss.hitbox._x) * -1);
ob.shootTimer = setInterval(this, "shootTime", ob.shootSpeed, ob);
ob.stage++;
}
if (ob.walkstep == 0) {
ob.dir = -1;
ob.walkstep = 1;
}
ob.walking = true;
game.clip.boss.gotoAndStop(2);
if (game.clip.boss._x < ((_root.screen._x * -1) + 80)) {
ob.dir = 1;
ob.walkStep++;
} else if (game.clip.boss._x > ((_root.screen._x * -1) + 700)) {
ob.dir = -1;
ob.walkStep++;
}
if (ob.walkStep == 2) {
ob.stage = 1;
ob.walkStep = 0;
}
if (_local6 < 1) {
ob.speed = 6;
ob.shootSpeed = 500;
}
game.clip.boss._x = game.clip.boss._x + (ob.speed * ob.dir);
ob.clip._x = game.clip.boss._x;
}
function boss_5(ob) {
if (ob.stage >= 6) {
sounds.rs_wormscream1.start();
ob.stage = 2;
}
if (ob.stage == 0) {
sounds.rs_wormscream1.start();
game.clip.boss.gotoAndStop(2);
ob.walking = true;
ob.stage = 2;
clearInterval(ob.eggTimer);
ob.eggTimer = setInterval(this, "eggBossTime", 2500, ob);
}
ob.clip._x = game.clip.boss._x;
ob.clip._y = game.clip.boss._y + game.clip.boss.hitbox._y;
if ((ob.stage == 3) && (game.clip.boss._currentframe != 4)) {
ob.walking = false;
game.clip.boss.gotoAndStop(4);
}
if ((ob.stage == 3.5) && (!ob.rocketShooting)) {
sounds.rs_wormscream1.start();
game.clip.boss.char.play();
ob.walking = false;
shootRocket(ob, 1, -127, false, (game.clip.boss.shootbox2._x - game.clip.boss.hitbox._x) * -1, (game.clip.boss.shootbox2._y - game.clip.boss.hitbox._y) * -1);
shootRocket(ob, 1, -45, false, (game.clip.boss.shootbox3._x - game.clip.boss.hitbox._x) * -1, (game.clip.boss.shootbox3._y - game.clip.boss.hitbox._y) * -1);
ob.rocketTimer = setInterval(this, "rocketTime", 5000, ob);
ob.rocketShooting = true;
}
if (game.clip.boss._x < (char.clip._x - 100)) {
ob.dir = 1;
} else if (game.clip.boss._x > (char.clip._x + 100)) {
ob.dir = -1;
}
if (((!ob.shooting) && (ob.shoot)) && ((((((ob.stage == 2) or (ob.stage == 2.5)) or (ob.stage == 4)) or (ob.stage == 6)) or (ob.stage == 4.5)) or (ob.stage == 6.5))) {
game.clip.boss.gotoAndStop(2);
ob.walking = true;
ob.shootDIR = 90;
ob.shooting = true;
ob.shoot = false;
if (ob.clip._x < (char.clip._x - 100)) {
ob.shootDIR = 45;
} else if (ob.clip._x > (char.clip._x + 100)) {
ob.shootDIR = 45;
} else {
ob.shootDIR = 90;
}
sounds.rs_lazer2.start();
shoot(ob, ob.dir, false, 21, ob.shootDIR, (game.clip.boss.shootbox1._y - game.clip.boss.hitbox._y) * -1, 1, (game.clip.boss.shootbox1._x - game.clip.boss.hitbox._x) * -1);
ob.shootTimer = setInterval(this, "shootTime", 1000, ob);
}
if (((ob.stage == 5) or (ob.stage == 5.5)) && (ob.shoot)) {
game.clip.boss.gotoAndStop(3);
ob.walking = true;
ob.shooting = true;
ob.shoot = false;
sounds.rs_flamethrower.start();
shoot(ob, ob.dir, false, 26, 90, 0, 0);
ob.shootTimer = setInterval(this, "shootTime", 50, ob);
}
if (ob.walking) {
game.clip.boss._x = game.clip.boss._x + (ob.speed * ob.dir);
ob.clip._x = game.clip.boss._x;
}
}
function eggBossTime(ob) {
ob.stage = ob.stage + 0.5;
}
function sawHit(ob, x, y) {
if (game.pulse) {
sounds.rs_ugh.start();
}
metalHit();
sounds.rs_saw2.start();
ang = 270;
if (game.fx) {
createSparks("char", "squidjump3", 40, ang, x, y);
createSparks("char", "sparkpoint", 40, ang, x, y);
createSparks("char", "sparkpoint", 40, ang, x, y);
addEmbers(ob, "embers");
addEmbers(ob, "embers", 3);
addEmbers(ob, "embers", true);
}
createFlare("char", 50);
glow(char, 255, 0, 0, 100);
char.glowTimer = setInterval(this, "glowTime", 100, char);
minusEnergy(3);
}
function squidTime(ob) {
ob.stage = 0;
clearInterval(ob.squidTimer);
}
function flyingAI(ob) {
if (ob.stage == 0) {
if (char.clip._x > (ob.clip._x - 400)) {
ob.active = true;
ob.stage = 1;
}
}
if (ob.stage == 1) {
if (!ob.jump) {
if (ob.clip._x > (char.clip._x + 200)) {
ob.dir = -1;
} else if (ob.clip._x < (char.clip._x - 200)) {
ob.dir = 1;
}
}
if ((ob.id == "flyingball") && (!ob.elec)) {
ob.clip.gotoAndStop(2);
ob.elec = true;
ob.elecTimer = setInterval(this, "elecTime", 1000, ob);
sounds.rs_electricity.start();
}
if (ob.elec) {
var _local4 = char.clip._x;
var _local6 = char.clip._y - 20;
var _local3 = ob.clip._x;
var _local5 = ob.clip._y;
var _local7 = getDistance(_local4, _local3, _local6, _local5);
if (_local7 < 30) {
sounds.rs_ugh.start();
metalHit();
ang = 270;
if (game.fx) {
createSparks("char", "spark", 40, ang, x, y);
createSparks("char", "spark", 40, ang, x, y);
createSparks("char", "spark", 40, ang, x, y);
addEmbers(oob, "embers");
addEmbers(oob, "embers", 3);
addEmbers(oob, "embers", true);
}
createFlare("char", 50);
glow(char, 255, 0, 0, 100);
char.glowTimer = setInterval(this, "glowTime", 100, char);
minusEnergy(2);
}
}
if ((!ob.shooting) and ob.shoot) {
if ((ob.clip._x < (char.clip._x - 100)) or (ob.clip._x > (char.clip._x + 100))) {
ob.shootDIR = 90;
ob.clip.play();
ob.shooting = true;
ob.shoot = false;
shoot(ob, ob.dir, false, ob.bulletType, ob.shootDIR, 1, 1);
ob.shootTimer = setInterval(this, "shootTime", 500, ob);
ob.shootTimer2 = setInterval(this, "enemyTime", 500, ob);
}
}
var _local4 = char.clip._x - 150;
var _local3 = char.clip._x + 150;
if (((ob.clip._x > _local4) and (ob.clip._x < _local3)) and ((ob.clip._y >= ob.startY) or (ob.clip._y <= ob.startY))) {
if (ob.clip._y < (ob.startY + 150)) {
ob.clip._y = ob.clip._y + (ob.speed / 2);
}
} else if (ob.clip._y > ob.startY) {
ob.clip._y = ob.clip._y - (ob.speed / 2);
}
if (ob.active) {
if (ob.dir == 1) {
ob.clip._xscale = 100;
moveChar(ob, ob.dir, 0, 0);
} else if (ob.dir == -1) {
ob.clip._xscale = -100;
moveChar(ob, ob.dir, 0, 0);
}
if (ob.wallhit) {
ob.clip._y = ob.clip._y - 5;
}
}
if (ob.bouncing) {
ob.clip._y = ob.clip._y - ob.bounceSpeed;
ob.bounceSpeed = ob.bounceSpeed - 1;
if (ob.bounceSpeed == -12) {
ob.speed = 6;
ob.bouncing = false;
}
}
}
}
function moveChar(ob, dirx, diry, jump) {
checkWallHit(ob, ob.clip._x + ((ob.width + ob.speed) * dirx), ob.clip._y - 20, ob.plat);
checkPlatforms(ob, ob.clip._x + (ob.speed * dirx), ob.clip._y, ob.plat);
if (!ob.wallhit) {
ob.clip._x = ob.clip._x + (ob.speed * dirx);
}
}
function checkColour(c, x, y) {
colour = snapshot.getPixel(x, y).toString(16);
if (char.falling) {
}
if (colour == c) {
return(true);
}
return(false);
}
function screenPos(x, y) {
sp = 5;
spp = 10;
startX = Math.floor(game.clip._x);
startY = Math.floor(game.clip._y);
d = 250;
endX = Math.floor(x - d) * -1;
endY = Math.floor(y - 200) * -1;
if (endX >= 0) {
endX = 0;
}
if (endY >= 0) {
endY = 0;
}
game.endX = endX * -1;
if (game.scrolling) {
screenx = _root.screen._x * -1;
if (char.clip._x > (screenx + 250)) {
if (startX != endX) {
if (endX <= -1450) {
endX = -1450;
}
game.clip._x = game.clip._x + Math.floor((endX - startX) / sp);
_root.clouds._x = _root.clouds._x + Math.floor((endX - startX) / spp);
}
}
}
if (game.bossfight) {
yamount = 500;
} else {
yamount = 400;
}
if (startY != endY) {
if (endY <= ((_global.mapHeightActual - yamount) * -1)) {
endY = (_global.mapHeightActual - yamount) * -1;
}
game.clip._y = game.clip._y + Math.floor((endY - startY) / sp);
}
}
function focus(x, y) {
sp = 15;
endX = Math.floor(x - 200) * -1;
endY = Math.floor(y - 200) * -1;
if (endX >= 0) {
endX = 0;
}
if (endY >= 0) {
endY = 0;
}
if (game.scrolling) {
if (endX <= ((_global.mapWidthActual - 700) * -1)) {
endX = (_global.mapWidthActual - 700) * -1;
}
game.clip._x = game.clip._x + (endX - startX);
}
if (game.bossfight) {
yamount = 500;
} else {
yamount = 400;
}
if (endY <= ((_global.mapHeightActual - yamount) * -1)) {
endY = (_global.mapHeightActual - yamount) * -1;
}
game.clip._y = game.clip._y + (endY - startY);
}
function mouseColour() {
colour = snapshot.getPixel(_xmouse, _ymouse).toString(16);
trace(colour);
}
function checkPlatforms(ob, obx, oby, plat) {
if (ob.plat) {
if (checkColour("ff0000", ob.clip._x, ob.clip._y, true)) {
var _local2 = 0;
while (_local2 < 10) {
if (!checkColour("ff0000", ob.clip._x, ob.clip._y - _local2, false)) {
break;
}
_local2++;
}
ob.walkfall = false;
ob.jump = false;
ob.plat = true;
ob.clip._y = ob.clip._y - _local2;
}
if (!checkColour("ff0000", ob.clip._x, ob.clip._y, true)) {
ob.clip._y = ob.clip._y + 2;
ob.walkfall = true;
if (!checkColour("ff0000", ob.clip._x, ob.clip._y, true)) {
var _local3 = random(100);
if ((((((_local3 > 70) and (!ob.wallhit)) and (ob != char)) and (!ob.jump)) and (!ob.falling)) and ob.plat) {
ob.jump = true;
ob.jumpRelease = false;
ob.jumpspeed = -16;
ob.plat = false;
ob.wallhit = false;
ob.falling = false;
ob.clip.gotoAndStop(7);
} else {
ob.jumpspeed = 6;
ob.jump = true;
ob.plat = false;
ob.falling = true;
ob.clip.gotoAndStop(7);
if (ob == char) {
_local3 = random(360);
createHit("char", "groundhit", _local3);
ob.clip.char.char.char.gotoAndStop(1);
}
}
}
}
}
if (ob.falling) {
var _local2 = 0;
while (_local2 < ob.jumpspeed) {
if ((checkColour("ff0000", ob.clip._x, ob.clip._y + _local2, true) or checkColour("ff0000", ob.clip._x + 5, ob.clip._y + _local2, true)) or checkColour("ff0000", ob.clip._x - 5, ob.clip._y + _local2, true)) {
ob.clip._y = ob.clip._y + _local2;
ob.falling = false;
ob.jump = false;
ob.plat = true;
ob.walking = false;
if (!ob.death) {
ob.clip.gotoAndStop(1);
}
break;
}
_local2++;
}
}
}
function checkWallHit(ob, obx, oby, plat) {
if (checkColour("ff0000", obx, oby, true)) {
ob.wallhit = true;
} else if (checkEnemyHit(ob, obx, oby, true)) {
ob.wallhit = true;
} else {
ob.wallhit = false;
}
}
function checkEnemyHit(ob, obx, oby) {
e = 0;
while (e < game.enemies.length) {
en2 = game.enemies[e];
var _local7 = en2;
var _local1 = game[_local7];
var _local4 = _local1.clip._x;
var _local3 = _local1.clip._y;
var _local5 = ob.clip._width / 2;
var _local6 = ob.clip._height;
if (((((_local1 != ob) && (obx > (_local4 - _local5))) && (obx < (_local4 + _local5))) && (oby < _local3)) && (oby > (_local3 - _local6))) {
if ((((_local1.ground == 1) and (ob.ground == 1)) and (ob.dir == _local1.dir)) and (!_local1.jump)) {
return(true);
}
if ((((_local1.ground == 2) and (ob.ground == 2)) and (!ob.bouncing)) and (!_local1.bouncing)) {
bounce(ob);
return(true);
}
}
e++;
}
}
function bounce(ob) {
ob.bouncing = true;
ob.bounceSpeed = 12;
ob.speed = 3;
}
function jump(ob, speed, gravity) {
if (ob.jumpspeed < 16) {
ob.jumpspeed = ob.jumpspeed + gravity;
} else {
ob.jumpspeed = 16;
}
checkPlatforms(ob, ob.clip._x, ob.clip._y + ob.jumpspeed, ob.plat);
if (ob.jump) {
ob.clip._y = ob.clip._y + ob.jumpspeed;
}
if ((((ob.jumpspeed >= 0) and (!ob.falling)) and (!ob.death)) and (!ob.hang)) {
ob.clip.gotoAndStop(8);
armAngle();
ob.falling = true;
}
}
function replaceSoldier(ob) {
var _local3 = ob;
r = random(150);
screenx = Math.floor(game.clip._x);
if (r < 50) {
obx = ((screenx * -1) - r) - 50;
if (obx > 1) {
ob.dir = 1;
ob.shootdir = 1;
} else {
obx = (screenx * -1) + 600;
ob.dir = -1;
ob.shootdir = -1;
}
ob.clip._x = obx;
} else {
obx = ((screenx * -1) + 600) + r;
if (obx < 2000) {
ob.dir = -1;
ob.shootdir = -1;
} else {
obx = (screenx * -1) - 100;
ob.dir = 1;
ob.shootdir = 1;
}
ob.clip._x = obx;
}
ob.clip._y = 400;
ob.strength = 2;
ob.falling = true;
ob.stage = 1;
ob.shoot = false;
ob.shooting = false;
ob.shootTimer = setInterval(this, "shootTime", 2000, ob);
}
function checkBalloonHit3(ob, bob, true) {
if (game.clip[ob]._x < (game.clip[bob]._x + game[bob].width)) {
if (game.clip[ob]._x > (game.clip[bob]._x - game[bob].width)) {
if (game.clip[ob]._x > (game.clip[bob]._y - 30)) {
if (game.clip[ob]._x < (game.clip[bob]._y + 5)) {
return(true);
}
return(false);
}
}
}
}
function checkBalloonHit2(ob, bob, true) {
if (char.duck) {
d = 40;
} else {
d = 55;
}
if (game.clip[ob]._x > (game.clip.char._x - (game.clip.char._width / 2))) {
if (game.clip[ob]._x < (game.clip.char._x + (game.clip.char._width / 2))) {
if ((game.clip[ob]._y > (game.clip.char._y - d)) and (game.clip[ob]._y < game.clip.char._y)) {
return(true);
}
return(false);
}
}
}
function checkBalloonHit(ob, bob, true) {
if (game.clip[ob]._x > (game[bob].clip._x - (game[bob].clip._width / 2))) {
if (game.clip[ob]._x < (game[bob].clip._x + (game[bob].clip._width / 2))) {
if ((game.clip[ob]._y > (game[bob].clip._y - game[bob].height)) and (game.clip[ob]._y < game[bob].clip._y)) {
return(true);
}
return(false);
}
}
}
function removeOb(id) {
game[id].alive = false;
game.clip[id].removeMovieClip();
delete game.clip[id];
}
function enemyTime(ob) {
ob.shooting = false;
clearInterval(ob.shootTimer2);
}
function elecTime(ob) {
ob.elec = false;
ob.clip.gotoAndStop(1);
clearInterval(ob.elecTimer);
}
stopAllSounds();
_quality = "LOW";
_root.paws = false;
_root.crosshair.swapDepth = 10000000 /* 0x989680 */;
_root.crosshair.cacheAsBitmap();
delete char;
char = null;
char = {speed:6, jumpstart:-22, gravity:1, jump:true, plat:false, falling:true, duck:false, shooting:false, shoot:true, bullSpeed:3, rocketSpeed:20, dir:1};
char.wallhit = false;
char.walking = false;
char.bomb = false;
char.rocket = true;
char.bulletType = 1;
char.reload = 100;
char.rocketDIR = -90;
char.width = 20;
char.id = "player";
char.lives = 5;
char.bullets = 99;
char.rockets = 99;
char.strength = 100;
char.invincible = false;
delete game;
game = null;
game = {tileW:50, tileH:50, alive:true, bulletcounter:0, rocketcounter:0, trailcounter:0, shrapnelcounter:0};
game.level = 1;
game.cont = 0;
game.wind = 0;
game.trails = 40;
game.fx = true;
game.score = 0;
game.scrolling = true;
game.x = 540;
game.bossfight = false;
game.Rocket = function () {
};
game.Rocket.prototype.speed = 15;
game.Rocket.prototype.origin = true;
game.Rocket.prototype.stage = 1;
game.Rocket.prototype.strength = 10;
game.Shrapnel = function () {
};
game.Shrapnel.prototype.speed = 15;
game.Shrapnel.prototype.alive = true;
game.Spark = function () {
};
game.Spark.prototype.speed = 15;
game.Spark.prototype.gravity = 0;
game.Spark.prototype.dir = 1;
game.sparksAmount = 0;
game.flares = 0;
game.Smoke = function () {
};
game.Smoke.prototype.speed = 3;
game.Smoke.prototype.dir = 1;
game.Box = function () {
};
game.Box.prototype.weight = 1;
game.Box.prototype.cnr1 = 0;
game.Box.prototype.cnr2 = 0;
game.Box.prototype.cnr3 = 0;
game.Box.prototype.cnr4 = 0;
game.DyingEnemy = function () {
};
game.DyingEnemy.prototype.speed = 2;
game.Enemy1 = function () {
};
game.Enemy1.prototype.type = 1;
game.Enemy1.prototype.respawn = false;
game.Enemy1.prototype.stationary = false;
game.Enemy1.prototype.surprise = false;
game.Enemy1.prototype.speed = 5;
game.Enemy1.prototype.bullSpeed = 2;
game.Enemy1.prototype.bulletType = 8;
game.Enemy1.prototype.bulletStrength = 5;
game.Enemy1.prototype.jump = true;
game.Enemy1.prototype.jumpstart = -22;
game.Enemy1.prototype.falling = true;
game.Enemy1.prototype.walking = false;
game.Enemy1.prototype.wallhit = false;
game.Enemy1.prototype.width = 20;
game.Enemy1.prototype.height = 80;
game.Enemy1.prototype.duck = false;
game.Enemy1.prototype.shoot = true;
game.Enemy1.prototype.shooting = false;
game.Enemy1.prototype.dir = -1;
game.Enemy1.prototype.gravity = 1;
game.Enemy1.prototype.shootDIR = -1;
game.Enemy1.prototype.id = "enemy1";
game.Enemy1.prototype.active = false;
game.Enemy1.prototype.strength = 5;
game.Enemy1.prototype.score = 100;
game.Enemy1.prototype.stage = 0;
game.Enemy1.prototype.ground = 1;
game.Enemy1.prototype.dyingType = "enemy1dying";
game.Enemy2 = function () {
};
game.Enemy2.prototype.type = 2;
game.Enemy2.prototype.respawn = false;
game.Enemy2.prototype.stationary = false;
game.Enemy2.prototype.surprise = false;
game.Enemy2.prototype.speed = 2;
game.Enemy2.prototype.bullSpeed = 2;
game.Enemy2.prototype.bulletType = 8;
game.Enemy2.prototype.bulletStrength = 5;
game.Enemy2.prototype.jump = true;
game.Enemy2.prototype.jumpstart = -22;
game.Enemy2.prototype.falling = true;
game.Enemy2.prototype.walking = false;
game.Enemy2.prototype.wallhit = false;
game.Enemy2.prototype.width = 20;
game.Enemy2.prototype.height = 40;
game.Enemy2.prototype.duck = false;
game.Enemy2.prototype.shoot = true;
game.Enemy2.prototype.shooting = false;
game.Enemy2.prototype.dir = -1;
game.Enemy2.prototype.gravity = 3;
game.Enemy2.prototype.shootDIR = -1;
game.Enemy2.prototype.id = "droid";
game.Enemy2.prototype.active = true;
game.Enemy2.prototype.strength = 15;
game.Enemy2.prototype.score = 250;
game.Enemy2.prototype.stage = 0;
game.Enemy2.prototype.ground = 1;
game.Enemy2.prototype.dyingType = "droid_dying";
game.Enemy6 = function () {
};
game.Enemy6.prototype.type = 2;
game.Enemy6.prototype.respawn = false;
game.Enemy6.prototype.stationary = false;
game.Enemy6.prototype.surprise = false;
game.Enemy6.prototype.speed = 3;
game.Enemy6.prototype.bullSpeed = 3;
game.Enemy6.prototype.bulletType = 8;
game.Enemy6.prototype.bulletStrength = 8;
game.Enemy6.prototype.jump = true;
game.Enemy6.prototype.jumpstart = -22;
game.Enemy6.prototype.falling = true;
game.Enemy6.prototype.walking = false;
game.Enemy6.prototype.wallhit = false;
game.Enemy6.prototype.width = 60;
game.Enemy6.prototype.height = 60;
game.Enemy6.prototype.duck = false;
game.Enemy6.prototype.shoot = true;
game.Enemy6.prototype.shooting = false;
game.Enemy6.prototype.dir = -1;
game.Enemy6.prototype.gravity = 1;
game.Enemy6.prototype.shootDIR = -1;
game.Enemy6.prototype.id = "littlegun";
game.Enemy6.prototype.active = false;
game.Enemy6.prototype.strength = 30;
game.Enemy6.prototype.score = 1000;
game.Enemy6.prototype.stage = 0;
game.Enemy6.prototype.ground = 1;
game.Enemy6.prototype.dyingType = "littlegun_dying";
game.Enemy6.prototype.rocketSpeed = 6;
game.Enemy3 = function () {
};
game.Enemy3.prototype.type = 3;
game.Enemy3.prototype.respawn = false;
game.Enemy3.prototype.speed = 2;
game.Enemy3.prototype.bullSpeed = 3;
game.Enemy3.prototype.bulletType = 15;
game.Enemy3.prototype.bulletStrength = 8;
game.Enemy3.prototype.jump = false;
game.Enemy3.prototype.jumpstart = -22;
game.Enemy3.prototype.falling = false;
game.Enemy3.prototype.walking = false;
game.Enemy3.prototype.wallhit = false;
game.Enemy3.prototype.width = 50;
game.Enemy3.prototype.height = 50;
game.Enemy3.prototype.duck = false;
game.Enemy3.prototype.shoot = true;
game.Enemy3.prototype.shooting = false;
game.Enemy3.prototype.dir = -1;
game.Enemy3.prototype.gravity = 1;
game.Enemy3.prototype.shootDIR = -1;
game.Enemy3.prototype.id = "squidly";
game.Enemy3.prototype.active = false;
game.Enemy3.prototype.strength = 2;
game.Enemy3.prototype.stage = 0;
game.Enemy3.prototype.score = 150;
game.Enemy3.prototype.ground = 3;
game.Enemy3.prototype.dyingType = "enemy3dying";
game.Enemy7 = function () {
};
game.Enemy7.prototype.type = 3;
game.Enemy7.prototype.respawn = false;
game.Enemy7.prototype.speed = 2;
game.Enemy7.prototype.bullSpeed = 3;
game.Enemy7.prototype.bulletType = 21;
game.Enemy7.prototype.bulletStrength = 10;
game.Enemy7.prototype.jump = false;
game.Enemy7.prototype.jumpstart = -30;
game.Enemy7.prototype.falling = false;
game.Enemy7.prototype.walking = false;
game.Enemy7.prototype.wallhit = false;
game.Enemy7.prototype.width = 100;
game.Enemy7.prototype.height = 80;
game.Enemy7.prototype.duck = false;
game.Enemy7.prototype.shoot = true;
game.Enemy7.prototype.shooting = false;
game.Enemy7.prototype.dir = -1;
game.Enemy7.prototype.gravity = 2;
game.Enemy7.prototype.shootDIR = -1;
game.Enemy7.prototype.id = "supersquidly";
game.Enemy7.prototype.active = false;
game.Enemy7.prototype.strength = 100;
game.Enemy7.prototype.stage = 0;
game.Enemy7.prototype.score = 2500;
game.Enemy7.prototype.ground = 3;
game.Enemy7.prototype.dyingType = "enemy3dying2";
game.Enemy5 = function () {
};
game.Enemy5.prototype.respawn = false;
game.Enemy5.prototype.type = 5;
game.Enemy5.prototype.speed = 6;
game.Enemy5.prototype.bullSpeed = 3;
game.Enemy5.prototype.bulletType = 18;
game.Enemy5.prototype.bulletStrength = 8;
game.Enemy5.prototype.width = 60;
game.Enemy5.prototype.height = 30;
game.Enemy5.prototype.shoot = true;
game.Enemy5.prototype.shooting = false;
game.Enemy5.prototype.dir = -1;
game.Enemy5.prototype.id = "flying";
game.Enemy5.prototype.active = false;
game.Enemy5.prototype.strength = 15;
game.Enemy5.prototype.stage = 0;
game.Enemy5.prototype.score = 1000;
game.Enemy5.prototype.ground = 2;
game.Enemy5.prototype.dyingType = "enemy5dying";
game.Enemy8 = function () {
};
game.Enemy8.prototype.respawn = false;
game.Enemy8.prototype.type = 5;
game.Enemy8.prototype.speed = 8;
game.Enemy8.prototype.bullSpeed = 3;
game.Enemy8.prototype.bulletType = 21;
game.Enemy8.prototype.bulletStrength = 8;
game.Enemy8.prototype.width = 20;
game.Enemy8.prototype.height = 20;
game.Enemy8.prototype.shoot = true;
game.Enemy8.prototype.shooting = false;
game.Enemy8.prototype.dir = -1;
game.Enemy8.prototype.id = "flyingball";
game.Enemy8.prototype.active = false;
game.Enemy8.prototype.strength = 20;
game.Enemy8.prototype.stage = 0;
game.Enemy8.prototype.score = 1500;
game.Enemy8.prototype.ground = 2;
game.Enemy8.prototype.elec = false;
game.Enemy8.prototype.dyingType = "flyingball";
game.Enemy9 = function () {
};
game.Enemy9.prototype.type = 6;
game.Enemy9.prototype.bullSpeed = 3;
game.Enemy9.prototype.bulletType5;
game.Enemy9.prototype.bulletStrength = 1;
game.Enemy9.prototype.shoot = true;
game.Enemy9.prototype.shooting = false;
game.Enemy9.prototype.id = "flying";
game.Enemy9.prototype.active = false;
game.Enemy9.prototype.stage = 0;
game.Enemy9.prototype.score = 750;
game.Enemy9.prototype.dyingType = "enemy5dying";
game.Boss1 = function () {
};
game.Boss1.prototype.respawn = false;
game.Boss1.prototype.type = 10;
game.Boss1.prototype.walking = false;
game.Boss1.prototype.walkStep = 0;
game.Boss1.prototype.speed = 2;
game.Boss1.prototype.bullSpeed = 3;
game.Boss1.prototype.bulletType = 18;
game.Boss1.prototype.bulletStrength = 8;
game.Boss1.prototype.width = 400;
game.Boss1.prototype.height = 400;
game.Boss1.prototype.shoot = true;
game.Boss1.prototype.shooting = false;
game.Boss1.prototype.dir = -1;
game.Boss1.prototype.id = "boss";
game.Boss1.prototype.active = false;
game.Boss1.prototype.alive = false;
game.Boss1.prototype.strength = 150;
game.Boss1.prototype.stage = 0;
game.Boss1.prototype.score = 10000;
game.Boss1.prototype.ground = 1;
game.Boss1.prototype.bossID = "SPINDLEY";
game.Boss1.prototype.bossNumber = 1;
game.Boss2 = function () {
};
game.Boss2.prototype.respawn = false;
game.Boss2.prototype.type = 10;
game.Boss2.prototype.walking = false;
game.Boss2.prototype.walkStep = 0;
game.Boss2.prototype.speed = 5;
game.Boss2.prototype.bullSpeed = 3;
game.Boss2.prototype.bulletType = 20;
game.Boss2.prototype.bulletStrength = 3;
game.Boss2.prototype.width = 300;
game.Boss2.prototype.height = 100;
game.Boss2.prototype.shoot = true;
game.Boss2.prototype.shooting = false;
game.Boss2.prototype.dir = -1;
game.Boss2.prototype.id = "boss";
game.Boss2.prototype.active = false;
game.Boss2.prototype.alive = false;
game.Boss2.prototype.strength = 500;
game.Boss2.prototype.stage = 0;
game.Boss2.prototype.score = 10000;
game.Boss2.prototype.ground = 1;
game.Boss2.prototype.bossID = "BOMB DROPPER";
game.Boss2.prototype.bossNumber = 2;
game.Boss3 = function () {
};
game.Boss3.prototype.respawn = false;
game.Boss3.prototype.type = 10;
game.Boss3.prototype.walking = false;
game.Boss3.prototype.walkStep = 0;
game.Boss3.prototype.speed = 5;
game.Boss3.prototype.bullSpeed = 2;
game.Boss3.prototype.bulletType = 21;
game.Boss3.prototype.bulletStrength = 3;
game.Boss3.prototype.width = 300;
game.Boss3.prototype.height = 1500;
game.Boss3.prototype.shoot = true;
game.Boss3.prototype.shooting = false;
game.Boss3.prototype.dir = -1;
game.Boss3.prototype.id = "boss";
game.Boss3.prototype.active = false;
game.Boss3.prototype.alive = false;
game.Boss3.prototype.strength = 500;
game.Boss3.prototype.stage = 0;
game.Boss3.prototype.score = 10000;
game.Boss3.prototype.ground = 1;
game.Boss3.prototype.bossID = "SAWBLADE";
game.Boss3.prototype.bossNumber = 3;
game.Boss4 = function () {
};
game.Boss4.prototype.respawn = false;
game.Boss4.prototype.type = 10;
game.Boss4.prototype.jump = false;
game.Boss4.prototype.walking = false;
game.Boss4.prototype.walkStep = 0;
game.Boss4.prototype.speed = 2;
game.Boss4.prototype.bullSpeed = 2;
game.Boss4.prototype.bulletType = 6;
game.Boss4.prototype.bulletStrength = 8;
game.Boss4.prototype.width = 70;
game.Boss4.prototype.height = 60;
game.Boss4.prototype.shoot = true;
game.Boss4.prototype.shootSpeed = 2000;
game.Boss4.prototype.shooting = false;
game.Boss4.prototype.dir = -1;
game.Boss4.prototype.id = "boss";
game.Boss4.prototype.active = false;
game.Boss1.prototype.alive = false;
game.Boss4.prototype.strength = 100;
game.Boss4.prototype.stage = 0;
game.Boss4.prototype.score = 10000;
game.Boss4.prototype.ground = 1;
game.Boss4.prototype.bossID = "ORBIT BOSS";
game.Boss4.prototype.bossNumber = 4;
game.Boss4_b = function () {
};
game.Boss4_b.prototype.respawn = false;
game.Boss4_b.prototype.type = 11;
game.Boss4_b.prototype.walking = false;
game.Boss4_b.prototype.walkStep = 0;
game.Boss4_b.prototype.speed = 2;
game.Boss4_b.prototype.bullSpeed = 2;
game.Boss4_b.prototype.bulletType = 21;
game.Boss4_b.prototype.bulletStrength = 4;
game.Boss4_b.prototype.width = 30;
game.Boss4_b.prototype.height = 30;
game.Boss4_b.prototype.shoot = true;
game.Boss4_b.prototype.shooting = false;
game.Boss4_b.prototype.dir = -1;
game.Boss4_b.prototype.id = "boss_mini";
game.Boss4_b.prototype.active = false;
game.Boss4_b.prototype.alive = false;
game.Boss4_b.prototype.strength = 50;
game.Boss4_b.prototype.stage = 0;
game.Boss4_b.prototype.score = 1000;
game.Boss4_b.prototype.ground = 1;
game.Boss4_b.prototype.bossID = "ORBIT EYES";
game.Boss4_b.prototype.bossNumber = 4.5;
game.Boss4_b.prototype.d = 160;
game.Boss4_b.prototype.t = 0;
game.Boss5 = function () {
};
game.Boss5.prototype.respawn = false;
game.Boss5.prototype.type = 10;
game.Boss5.prototype.walking = false;
game.Boss5.prototype.walkStep = 0;
game.Boss5.prototype.speed = 2;
game.Boss5.prototype.bullSpeed = 3;
game.Boss5.prototype.bulletType = 21;
game.Boss5.prototype.bulletStrength = 8;
game.Boss5.prototype.width = 70;
game.Boss5.prototype.height = 60;
game.Boss5.prototype.shoot = true;
game.Boss5.prototype.shooting = false;
game.Boss5.prototype.rocketShooting = false;
game.Boss5.prototype.dir = -1;
game.Boss5.prototype.id = "boss";
game.Boss5.prototype.active = false;
game.Boss5.prototype.alive = false;
game.Boss5.prototype.strength = 600;
game.Boss5.prototype.stage = 0;
game.Boss5.prototype.score = 100000 /* 0x0186A0 */;
game.Boss5.prototype.ground = 1;
game.Boss5.prototype.bossID = "EGG BOSS";
game.Boss5.prototype.bossNumber = 5;
game.Boss5.prototype.rocketSpeed = 5;
var weapons = new Array();
char.weapons = [["name", "ammo", "strength", "speed", "pulse_speed", "sound", "bulletFrame"], ["single shot", 100, 1, 3, 300, "rs_lazer1", 1], ["flame thrower", 100, 0.5, 3, 50, "rs_flamethrower", 5], ["laser", 100, 2, 4, 500, "rs_pulse_shoot", 2], ["C4", 100, 4, 3, 600, "c4", 3], ["sawblade", 100, 1.5, 3, 250, "rs_knife1", 4], ["orbit", 100, 3, 3, 100, "rs_pulse_shoot", 6], ["orbit", 10000, 3, 3, 100, "rs_pulse_shoot", 6], ["destructor", 1000000000, 8, 5, 500, "rs_c4"], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
game.Bullet = function () {
};
game.Bullet.prototype.speed = 10;
game.Bullet.prototype.strength = char.bullStrength;
game.Bullet.prototype.origin = true;
game.Bullet.prototype.angle = 0;
game.Bomb = function () {
};
game.Bomb.prototype.origin = true;
game.Bomb.prototype.distance = 60;
game.Bomb.prototype.strength = 20;
game.Item = function () {
};
game.Item.prototype.timer = 0;
game.Item.prototype.gravity = 0.3;
game.Item.prototype.jumpstart = -10;
game.Item.prototype.type = "health";
game.Item.prototype.width = 16;
game.Item.prototype.height = 16;
game.pulse = false;
clearInterval(_root.pulseTimer);
_root.pulseTimer = setInterval(this, "pulse", 1000);
game.pulse2 = false;
clearInterval(_root.pulseTimer2);
_root.pulseTimer2 = setInterval(this, "pulse2", 3000);
char.bulletType = 1;
char.bulletTypes = 2;
game.mouseScroll = true;
game.c4s = 0;
game.it = 0;
game.dying = 0;
game.destructor = false;
Mouse.removeListener(mouseListener);
delete mouseListener;
mouseListener = new Object();
mouseListener.onMouseWheel = function (delta) {
if (game.mouseScroll && (!_root.paws)) {
game.mouseScroll = false;
changeWeaponsWheel(delta);
mouseTimer = setInterval(_root, "mTime", 200);
}
};
mouseListener.onMouseDown = function () {
ob = char;
if ((!_root.paws) && ((char.weapons[char.bulletType][1] > 0) or game.destructor)) {
char.mouseDown = true;
} else if ((!game.destructor) and (!_root.paws)) {
_root.hud.changeweapon.play();
}
};
mouseListener.onMouseUp = function () {
clearInterval(char.shootTimer);
char.shoot = true;
char.mouseDown = false;
};
Mouse.addListener(mouseListener);
setWeapons();
game.bullets = new Array();
game.c4 = new Array();
game.items = new Array();
game.dyingEnemies = new Array();
game.embers = new Array();
_root.bullets = 100;
_global.theta = 0.3;
Level1 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "i3", 0, 0, "i3", 0, 0, "i3", 0, 0, 0, 0, 0, 0, "i3", 0, 0, 0, "i3", "i3", 0, 0, "i3", 0, 0, 0, 0, "i3", 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 21, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 22, 0, 0, 0, 0, 22, 0, 0, 37, 0, 0]];
setUpSounds();
d = 0;
buildChars();
buildMap(_root["Level" + game.level]);
Instance of Symbol 140 MovieClip [empty] in Frame 313
onClipEvent (enterFrame) {
if (!_root.paws) {
_root.checkKeys();
}
}
Frame 314
stop();
Frame 315
_root.hud.removeMovieClip();
Frame 317
stop();
Frame 326
Frame 327
stop();
Symbol 17 MovieClip Frame 1
stop();
Symbol 19 MovieClip [littlegun2] Frame 1
stop();
Symbol 20 MovieClip [littlegun_dying] Frame 1
stop();
Symbol 21 MovieClip [littlegun] Frame 1
stop();
Symbol 27 MovieClip Frame 1
stop();
Symbol 31 MovieClip [firetrail] Frame 1
stop();
Symbol 51 MovieClip Frame 14
stop();
Symbol 54 MovieClip [enemy1b] Frame 1
stop();
Symbol 58 MovieClip [enemy1] Frame 1
stop();
Symbol 91 MovieClip [hit] Frame 4
stop();
Symbol 94 MovieClip [char] Frame 1
stop();
Symbol 104 MovieClip Frame 11
stop();
Symbol 106 MovieClip Frame 5
stop();
Symbol 107 MovieClip [supersquid] Frame 1
stop();
Symbol 108 MovieClip [squid] Frame 1
stop();
Symbol 112 MovieClip [enemy5] Frame 1
stop();
Symbol 117 MovieClip [enemy3dying2] Frame 1
stop();
Symbol 118 MovieClip [enemy3dying] Frame 1
stop();
Symbol 124 MovieClip [points] Frame 6
stop();
Symbol 138 MovieClip [flyingball] Frame 1
stop();
Symbol 159 MovieClip Frame 47
stop();
Symbol 160 MovieClip [boss_sawblade] Frame 1
stop();
Symbol 173 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 17
_root.char.punch = false;
_parent.gotoAndStop(1);
Symbol 202 MovieClip [player] Frame 1
stop();
Symbol 202 MovieClip [player] Frame 5
stop();
Symbol 210 Button
on (press) {
getURL ("http://www.2DPlay.com/index.php?gameid=" + _parent.gameID, "_blank");
}
Symbol 212 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 1
_parent.showLogo();
stop();
Instance of Symbol 212 MovieClip in Symbol 280 MovieClip Frame 11
onClipEvent (load) {
_parent.sfx.stop();
_parent.sfx = new Sound(_parent);
_parent.sfx.attachSound("SCIFI.WAV");
_parent.sfx.start(0, 1);
}
Instance of Symbol 212 MovieClip in Symbol 280 MovieClip Frame 69
onClipEvent (load) {
_parent.sfx.stop();
_parent.sfx = new Sound(_parent);
_parent.sfx.attachSound("BEEPDBL.WAV");
_parent.sfx.start(0, 1);
}
Instance of Symbol 212 MovieClip in Symbol 280 MovieClip Frame 82
onClipEvent (load) {
_parent.sfx.stop();
_parent.sfx = new Sound(_parent);
_parent.sfx.attachSound("INSERT4.WAV");
_parent.sfx.start(0, 1);
}
Instance of Symbol 212 MovieClip in Symbol 280 MovieClip Frame 96
onClipEvent (load) {
_parent.sfx.stop();
_parent.sfx = new Sound(_parent);
_parent.sfx.attachSound("MSOVR2.WAV");
_parent.sfx.start(0, 1);
}
Instance of Symbol 212 MovieClip in Symbol 280 MovieClip Frame 112
onClipEvent (load) {
_parent.sfx.stop();
_parent.sfx = new Sound(_parent);
_parent.sfx.attachSound("BLOOB.WAV");
_parent.sfx.start(0, 1);
}
Symbol 286 MovieClip [TMPix0hemklz] Frame 1
function detectFlashVersion(detectVersion) {
var _local3 = System.capabilities.version;
var _local2;
var _local1 = 0;
while (_local1 < _local3.length) {
_local2 = Number(_local3.charAt(_local1));
if (!isNaN(_local2)) {
_local2 = ((!isNaN(Number(_local3.charAt(_local1 + 1)))) ? (Number(String(_local2) + _local3.charAt(_local1 + 1))) : (_local2));
break;
}
_local1++;
}
if (_local2 < detectVersion) {
gotoAndPlay (3);
} else {
gotoAndPlay (2);
}
}
function startPreload() {
this.onEnterFrame = function () {
this.preload();
};
}
function preload() {
var _local3 = _root.getBytesTotal();
var _local4 = _root.getBytesLoaded();
var _local5 = Math.floor((_local4 / _local3) * 100);
loader_bar.mask._xscale = _local5;
loader_bar._alpha = ((loader_bar._alpha < 100) ? (loader_bar._alpha + 10) : 100);
if ((_local4 >= _local3) && (_local3 > 0)) {
delete this.onEnterFrame;
_root.gotoAndPlay(startFrameLabel);
}
}
function showLogo() {
this.playbackPercent = 0;
this.onEnterFrame = function () {
this.logoFrameStep();
};
}
function logoFrameStep() {
var _local3 = 30;
var _local2 = 200;
var _local4 = Math.floor(playbackPercent * _local2) + 1;
playbackPercent = playbackPercent + ((_local3 / movieFramerate) / _local2);
logo.gotoAndStop(_local4);
if ((playbackPercent >= 1) || (skipPreloader)) {
delete this.onEnterFrame;
startPreload();
}
}
_visible = false;
_rotation = 0;
_y = 0;
_x = 0;
_yscale = 100;
_xscale = 100;
Stage.scaleMode = "noScale";
detectFlashVersion(flashVersion);
stop();
Symbol 286 MovieClip [TMPix0hemklz] Frame 2
loader_background._width = Stage.width;
loader_background._height = Stage.height;
logo._x = Stage.width / 2;
logo._y = (Stage.height / 2) + 20;
loader_bar._x = logo._x - 100;
loader_bar._y = logo._y + 30;
loader_bar.mask._xscale = 0;
loader_bar._alpha = 0;
_visible = true;
stop();
Symbol 286 MovieClip [TMPix0hemklz] Frame 3
loader_background._width = Stage.width;
loader_background._height = Stage.height;
createTextField("messageField", 1, (Stage.width - 520) / 2, (Stage.height - 120) / 2, 520, 120);
messageField.html = true;
messageField.multiline = true;
messageField.htmlText = ((("<font face='_sans' color='#FFFFFF'><p align='center'>You will need the <a href='http://www.adobe.com/go/getflashplayer'><u>Flash Player version " + flashVersion) + "</u></a> to play this game\r\r\rAlternatively you can download the game from <a href='http://www.2dplay.com'><u>2DPlay.com</u></a> by clicking <a href='http://www.2dplay.com/downloadgame.php?gameid=") + gameID) + "'><u>here</u></a></p></font>";
_visible = true;
stop();
Symbol 292 Button
on (rollOver) {
_root.green1._alpha = 100;
_root.green2._alpha = 25;
_root.green3._alpha = 25;
_root.green4._alpha = 25;
_root.green5._alpha = 25;
_root.green6._alpha = 25;
}
on (release) {
_root.mainmenu = true;
play();
}
Symbol 295 Button
on (rollOver) {
_root.green2._alpha = 100;
_root.green1._alpha = 25;
_root.green3._alpha = 25;
_root.green4._alpha = 25;
_root.green5._alpha = 25;
_root.green6._alpha = 25;
}
on (release) {
getURL (_root.viewscores_link, "_blank");
}
Symbol 298 Button
on (rollOver) {
_root.green3._alpha = 100;
_root.green2._alpha = 25;
_root.green1._alpha = 25;
_root.green4._alpha = 25;
_root.green5._alpha = 25;
_root.green6._alpha = 25;
}
on (release) {
getURL (_root.download_link, "_blank");
}
Symbol 303 Button
on (rollOver) {
_root.green5._alpha = 100;
_root.green2._alpha = 25;
_root.green3._alpha = 25;
_root.green1._alpha = 25;
_root.green4._alpha = 25;
_root.green6._alpha = 25;
}
on (release) {
getURL (_root.main_link, "_blank");
}
Symbol 308 Button
on (release) {
getURL (_root.main_link, "_blank");
}
Symbol 329 Button
on (release) {
this.nextFrame();
}
Symbol 336 Button
on (release) {
_root.play();
}
Symbol 337 MovieClip Frame 1
stop();
Symbol 342 Button
on (release) {
_root.play();
}
Symbol 351 Button
on (release) {
gotoAndStop ("controls");
}
Symbol 366 MovieClip Frame 40
stop();
Symbol 369 MovieClip Frame 40
stop();
Symbol 372 MovieClip Frame 40
stop();
Symbol 462 MovieClip Frame 30
stop();
Symbol 462 MovieClip Frame 31
stop();
Symbol 463 MovieClip [rockethit] Frame 4
stop();
Symbol 465 MovieClip Frame 41
stop();
Symbol 467 MovieClip [boss_egg] Frame 1
stop();
Symbol 479 MovieClip Frame 25
stop();
Symbol 480 MovieClip [boss_laser] Frame 1
stop();
Symbol 487 MovieClip Frame 81
stop();
Symbol 488 MovieClip [boss_bomb] Frame 1
stop();
Symbol 491 MovieClip Frame 70
stop();
Symbol 492 MovieClip [boss_orbit] Frame 1
stop();
Symbol 496 MovieClip Frame 1
stop();
Symbol 502 MovieClip Frame 4
stop();
Symbol 516 MovieClip Frame 10
stop();
Symbol 517 MovieClip [bullet] Frame 1
stop();
Symbol 517 MovieClip [bullet] Frame 3
stop();
Symbol 529 MovieClip [debris] Frame 1
stop();
Symbol 529 MovieClip [debris] Frame 2
stop();
Symbol 529 MovieClip [debris] Frame 3
stop();
Symbol 533 MovieClip [embers] Frame 1
stop();
Symbol 533 MovieClip [embers] Frame 2
stop();
Symbol 533 MovieClip [embers] Frame 3
stop();
Symbol 541 MovieClip [greentrail] Frame 1
stop();
Symbol 542 MovieClip [greentrail2] Frame 1
stop();
Symbol 543 MovieClip [greytrail] Frame 1
stop();
Symbol 544 MovieClip [groundhit] Frame 1
stop();
Symbol 549 MovieClip [shrapnel] Frame 7
stop();
Symbol 556 MovieClip [spark] Frame 1
stop();
Symbol 556 MovieClip [spark] Frame 2
stop();
Symbol 559 MovieClip [spark2] Frame 1
stop();
Symbol 559 MovieClip [spark2] Frame 2
stop();
Symbol 562 MovieClip [spark3] Frame 1
stop();
Symbol 562 MovieClip [spark3] Frame 2
stop();
Symbol 564 MovieClip [sparkpoint] Frame 1
stop();
Symbol 564 MovieClip [sparkpoint] Frame 2
stop();
Symbol 566 MovieClip [trail] Frame 10
stop();
Symbol 586 MovieClip Frame 72
stop();
Symbol 587 MovieClip [items] Frame 1
stop();
Symbol 588 MovieClip [squidjump3] Frame 10
stop();
Symbol 589 MovieClip [squidjump2] Frame 10
stop();
Symbol 663 MovieClip [masks] Frame 1
stop();
Symbol 664 MovieClip [tiles] Frame 1
stop();
Symbol 668 MovieClip [lighter] Frame 1
stop();
Symbol 703 MovieClip Frame 1
stop();
Symbol 727 Button
on (release) {
getURL (_root.main_link, "_blank");
}
Symbol 731 Button
on (rollOver) {
_root.green1._alpha = 100;
}
on (rollOut) {
_root.green1._alpha = 25;
}
on (release) {
stopAllSounds();
play();
}
Symbol 763 MovieClip Frame 1
stop();
Symbol 769 Button
on (release) {
if (_root.char.strength > 0) {
if (!_root.paws) {
Mouse.show();
_root.paws = true;
_root.hud.menu.gotoAndStop(2);
}
}
}
Symbol 789 Button
on (release) {
getURL (_root.free_link, "_blank");
}
Symbol 792 Button
on (release) {
getURL (_root.download_link, "_blank");
}
Symbol 795 Button
on (release) {
getURL (_root.main_link, "_blank");
}
Symbol 798 Button
on (release) {
switch (_quality) {
case "HIGH" :
_quality = "LOW";
break;
case "MEDIUM" :
_quality = "HIGH";
break;
case "LOW" :
_quality = "MEDIUM";
}
_root.SetButtonStr();
}
Symbol 801 Button
on (release) {
_root.cleanUp();
stopAllSounds();
_root.crosshair.stopDrag(true);
removeMovieClip(_root.crosshair);
removeMovieClip(game.clip);
removeMovieClip(_root.hud);
removeMovieClip(_root.screen);
_root.mainmenu = true;
_root.gotoAndPlay("startgame");
removeMovieClip(_root.hud);
}
Symbol 804 Button
on (release) {
Mouse.hide();
_root.paws = false;
_root.hud.menu.gotoAndStop(1);
}
Symbol 807 Button
on (release) {
getURL (_root.viewscores_link, "_blank");
}
Symbol 811 Button
on (release) {
switch (_root.game.fx) {
case true :
_root.game.fx = false;
break;
case false :
_root.game.fx = true;
}
_root.SetFXStr();
}
Symbol 827 MovieClip Frame 1
stop();
Symbol 828 Button
on (release) {
_root.game.soundVolume++;
if (_root.game.soundVolume > 10) {
_root.game.soundVolume = 0;
}
i = 0;
while (i < _root.game.sounds.length) {
var sound = _root.game.sounds[i];
_root.sounds[sound].setVolume(_root.game.soundVolume * 10);
i++;
}
if (_root.game.soundVolume > 0) {
_root.hud.menu.soundVol.gotoAndStop(_root.game.soundVolume);
} else {
_root.hud.menu.soundVol.gotoAndStop(11);
}
_root.sounds.BEEPDBL.start();
}
Symbol 829 Button
on (release) {
_root.game.soundVolume--;
if (_root.game.soundVolume < 0) {
_root.game.soundVolume = 10;
}
i = 0;
while (i < _root.game.sounds.length) {
var sound = _root.game.sounds[i];
_root.sounds[sound].setVolume(_root.game.soundVolume * 10);
i++;
}
if (_root.game.soundVolume > 0) {
_root.hud.menu.soundVol.gotoAndStop(_root.game.soundVolume);
} else {
_root.hud.menu.soundVol.gotoAndStop(11);
}
_root.sounds.BEEPDBL.start();
}
Symbol 830 Button
on (release) {
_root.game.musicVolume++;
if (_root.game.musicVolume > 10) {
_root.game.musicVolume = 0;
}
i = 0;
while (i < _root.game.music.length) {
var music = _root.game.music[i];
_root.music[music].setVolume(_root.game.musicVolume * 10);
i++;
}
if (_root.game.musicVolume > 0) {
_root.hud.menu.musicVol.gotoAndStop(_root.game.musicVolume);
} else {
_root.hud.menu.musicVol.gotoAndStop(11);
}
}
Symbol 831 Button
on (release) {
_root.game.musicVolume--;
if (_root.game.musicVolume < 0) {
_root.game.musicVolume = 10;
}
i = 0;
while (i < _root.game.music.length) {
var music = _root.game.music[i];
_root.music[music].setVolume(_root.game.musicVolume * 10);
i++;
}
if (_root.game.musicVolume > 0) {
_root.hud.menu.musicVol.gotoAndStop(_root.game.musicVolume);
} else {
_root.hud.menu.musicVol.gotoAndStop(11);
}
}
Symbol 843 MovieClip Frame 1
stop();
Symbol 853 MovieClip Frame 1
stop();
Symbol 853 MovieClip Frame 31
stop();
Symbol 855 MovieClip Frame 10
_root.game.clip.boss._alpha = 100;
Symbol 855 MovieClip Frame 89
stop();
_root.paws = false;
_root.hud.menu.gotoAndStop(1);
Symbol 866 MovieClip Frame 1
gotoAndStop(_root.bossNumber);
Instance of Symbol 866 MovieClip "boss_pic" in Symbol 872 MovieClip Frame 1
onClipEvent (load) {
keynum = _root.bossNumber;
switch (keynum) {
case 1 :
this.gotoAndStop(1);
break;
case 2 :
this.gotoAndStop(2);
break;
case 3 :
this.gotoAndStop(3);
break;
case 4 :
this.gotoAndStop(4);
break;
case 5 :
this.gotoAndStop(5);
}
}
Symbol 872 MovieClip Frame 10
_root.screen._xscale = 100;
_root.screen._yscale = 100;
stop();
Instance of Symbol 866 MovieClip "boss_pic" in Symbol 872 MovieClip Frame 10
onClipEvent (load) {
n = 0;
}
onClipEvent (enterFrame) {
keynum = _root.bossNumber;
switch (keynum) {
case 1 :
if (Key.isDown(51)) {
_root.char.bulletType = 3;
_root.setWeapons();
_parent.play();
}
break;
case 2 :
if (Key.isDown(52)) {
_root.char.bulletType = 4;
_root.setWeapons();
_parent.play();
}
break;
case 3 :
if (Key.isDown(53)) {
_root.char.bulletType = 5;
_root.setWeapons();
_parent.play();
}
break;
case 4 :
if (Key.isDown(54)) {
_root.char.bulletType = 6;
_root.setWeapons();
_parent.play();
}
break;
case 5 :
n++;
if (n <= 200) {
break;
}
_parent.play();
}
}
Symbol 872 MovieClip Frame 23
_root.game.scrollstop = 4;
_root.game.xstop = 2052;
_root.paws = false;
_root.hud.go.play();
_root.hud.menu.gotoAndStop(1);
stop();
Symbol 878 MovieClip Frame 30
stop();
Symbol 879 MovieClip Frame 166
stop();
Symbol 879 MovieClip Frame 241
_root.hud.menu.gotoAndStop(1);
Symbol 885 MovieClip Frame 1
cost = Math.round(_root.game.score / 2) + " points";
Symbol 886 Button
on (release) {
_global.goto = function () {
_root.char.clip._x = 3000;
_root.game.level--;
_root.game.score = Math.round(_root.game.score / 2);
_root.char.strength = 100;
_root.hud.energy._xscale = 100;
_root.checkLevel();
};
play();
_root.hud.menu.cont.play();
}
Symbol 887 Button
on (release) {
_global.goto = function () {
_root.cleanUp();
_root.crosshair.stopDrag(true);
removeMovieClip(_root.crosshair);
removeMovieClip(_root.game.clip);
i = 0;
while (i < _root.game.sounds.length) {
var _local3 = _root.game.sounds[i];
_root.sounds[_local3].setVolume(0);
i++;
}
i = 0;
while (i < _root.game.music.length) {
var _local2 = _root.game.music[i];
_root.music[_local2].setVolume(0);
i++;
}
_root.score = _root.game.score;
Mouse.show();
_root.gotoAndStop("gameover");
};
_root.hud.menu.cont.play();
play();
}
Symbol 888 MovieClip Frame 196
Mouse.show();
stop();
Symbol 888 MovieClip Frame 227
_root.music.rs_music_boss.stop();
_root.music.rs_music_main.start(0, 100);
stop();
_global.goto();
Symbol 889 MovieClip Frame 1
_global.goto = function () {
_root.cleanUp();
_root.crosshair.stopDrag(true);
removeMovieClip(_root.crosshair);
removeMovieClip(_root.game.clip);
i = 0;
while (i < _root.game.sounds.length) {
var _local3 = _root.game.sounds[i];
_root.sounds[_local3].setVolume(0);
i++;
}
i = 0;
while (i < _root.game.music.length) {
var _local2 = _root.game.music[i];
_root.music[_local2].setVolume(0);
i++;
}
_root.score = _root.game.score;
Mouse.show();
_root.gotoAndStop("gameover");
};
Symbol 889 MovieClip Frame 241
_global.goto();
Symbol 890 MovieClip Frame 1
stop();
Instance of Symbol 827 MovieClip "soundVol" in Symbol 890 MovieClip Frame 2
onClipEvent (load) {
if (_root.game.soundVolume > 0) {
this.gotoAndStop(_root.game.soundVolume);
} else {
this.gotoAndStop(11);
}
}
Instance of Symbol 827 MovieClip "musicVol" in Symbol 890 MovieClip Frame 2
onClipEvent (load) {
if (_root.game.musicVolume > 0) {
this.gotoAndStop(_root.game.musicVolume);
} else {
this.gotoAndStop(11);
}
}
Symbol 896 Button
on (release) {
var hashkey = _root.hex_md5(("gameid=1674&hiscore=" + score) + "2DPlay.com/");
getURL (String(((_root.scores_link + score) + "&hash=") + hashkey), "_blank");
}
Symbol 899 Button
on (release) {
_root.cleanUp();
stopAllSounds();
_root.gotoAndPlay("startgame");
}
Symbol 902 Button
on (release) {
_root.cleanUp();
_root.mainmenu = false;
stopAllSounds();
_root.setSounds(0);
_root.gotoAndPlay("startgame");
}
Symbol 913 MovieClip Frame 1
stop();
Symbol 914 Button
on (release) {
_root.cleanUp();
_root.mainmenu = false;
stopAllSounds();
_root.music.gotoAndStop(1);
_root.setSounds(0);
_root.gotoAndPlay("startgame");
}