Section 1
//AdLoader (CPMStar.AdLoader)
package CPMStar {
import flash.events.*;
import flash.display.*;
import flash.system.*;
import flash.net.*;
public class AdLoader extends Sprite {
private var contentspotid:String;
private var cpmstarLoader:Loader;
public function AdLoader(_arg1:String){
this.contentspotid = _arg1;
addEventListener(Event.ADDED, addedHandler);
}
private function addedHandler(_arg1:Event):void{
var _local2:String;
var _local3:DisplayObjectContainer;
removeEventListener(Event.ADDED, addedHandler);
Security.allowDomain("server.cpmstar.com");
_local2 = "http://server.cpmstar.com/adviewas3.swf";
_local3 = parent;
cpmstarLoader = new Loader();
cpmstarLoader.contentLoaderInfo.addEventListener(Event.INIT, dispatchHandler);
cpmstarLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dispatchHandler);
cpmstarLoader.load(new URLRequest(((_local2 + "?contentspotid=") + contentspotid)));
addChild(cpmstarLoader);
}
private function dispatchHandler(_arg1:Event):void{
dispatchEvent(_arg1);
}
}
}//package CPMStar
Section 2
//actioncon_30 (mechanaughtCB_fla.actioncon_30)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class actioncon_30 extends MovieClip {
public function actioncon_30(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 3
//backbtn_26 (mechanaughtCB_fla.backbtn_26)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class backbtn_26 extends MovieClip {
public function backbtn_26(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 4
//body_96 (mechanaughtCB_fla.body_96)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class body_96 extends MovieClip {
public function body_96(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 5
//body2_20 (mechanaughtCB_fla.body2_20)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class body2_20 extends MovieClip {
public var arm3:MovieClip;
public var arm2:MovieClip;
public var arm4:MovieClip;
public var arm1:MovieClip;
public function body2_20(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 6
//bosshead_18 (mechanaughtCB_fla.bosshead_18)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class bosshead_18 extends MovieClip {
public function bosshead_18(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 7
//bosshealthback_68 (mechanaughtCB_fla.bosshealthback_68)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class bosshealthback_68 extends MovieClip {
public var rhealth:MovieClip;
public var health:MovieClip;
public var lhealth:MovieClip;
public function bosshealthback_68(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 8
//BULLETTEXT_137 (mechanaughtCB_fla.BULLETTEXT_137)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class BULLETTEXT_137 extends MovieClip {
public function BULLETTEXT_137(){
addFrameScript(98, frame99);
}
function frame99(){
stop();
}
}
}//package mechanaughtCB_fla
Section 9
//button_13 (mechanaughtCB_fla.button_13)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class button_13 extends MovieClip {
public function button_13(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 10
//cancel_92 (mechanaughtCB_fla.cancel_92)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class cancel_92 extends MovieClip {
public function cancel_92(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 11
//continuefromlastsave_50 (mechanaughtCB_fla.continuefromlastsave_50)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class continuefromlastsave_50 extends MovieClip {
public function continuefromlastsave_50(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 12
//controlkey_36 (mechanaughtCB_fla.controlkey_36)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class controlkey_36 extends MovieClip {
public function controlkey_36(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 13
//coolbuddy_11 (mechanaughtCB_fla.coolbuddy_11)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class coolbuddy_11 extends MovieClip {
public function coolbuddy_11(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 14
//creditsbtn_147 (mechanaughtCB_fla.creditsbtn_147)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class creditsbtn_147 extends MovieClip {
public function creditsbtn_147(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mechanaughtCB_fla
Section 15
//creditsroll_38 (mechanaughtCB_fla.creditsroll_38)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class creditsroll_38 extends MovieClip {
public function creditsroll_38(){
addFrameScript(600, frame601);
}
function frame601(){
stop();
}
}
}//package mechanaughtCB_fla
Section 16
//enemyhealth_46 (mechanaughtCB_fla.enemyhealth_46)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class enemyhealth_46 extends MovieClip {
public var bar:MovieClip;
}
}//package mechanaughtCB_fla
Section 17
//exittomenu_89 (mechanaughtCB_fla.exittomenu_89)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class exittomenu_89 extends MovieClip {
public function exittomenu_89(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 18
//gunicon_63 (mechanaughtCB_fla.gunicon_63)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class gunicon_63 extends MovieClip {
public function gunicon_63(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 19
//instructionsbtn_145 (mechanaughtCB_fla.instructionsbtn_145)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class instructionsbtn_145 extends MovieClip {
public function instructionsbtn_145(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mechanaughtCB_fla
Section 20
//jumpcon_29 (mechanaughtCB_fla.jumpcon_29)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class jumpcon_29 extends MovieClip {
public function jumpcon_29(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 21
//legs_55 (mechanaughtCB_fla.legs_55)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class legs_55 extends MovieClip {
public function legs_55(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 22
//loadblock_12 (mechanaughtCB_fla.loadblock_12)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class loadblock_12 extends MovieClip {
public function loadblock_12(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 23
//loadgamebtn_144 (mechanaughtCB_fla.loadgamebtn_144)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class loadgamebtn_144 extends MovieClip {
public function loadgamebtn_144(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mechanaughtCB_fla
Section 24
//loadslot_80 (mechanaughtCB_fla.loadslot_80)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class loadslot_80 extends MovieClip {
public function loadslot_80(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 25
//MainTimeline (mechanaughtCB_fla.MainTimeline)
package mechanaughtCB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import CPMStar.*;
import flash.text.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var pop2:popup2;
public var flames:Array;
public var finalsave:Boolean;
public var loader:MovieClip;
public var pickups_4_1:Array;
public var pickups_4_2:Array;
public var pickups_4_3:Array;
public var pickups_4_4:Array;
public var pickups_4_5:Array;
public var pickups_4_6:Array;
public var pickups_4_7:Array;
public var pickups_4_8:Array;
public var level_2_1:Array;
public var level_2_3:Array;
public var level_2_4:Array;
public var level_2_5:Array;
public var level_2_6:Array;
public var screens_4_3:Array;
public var level_2_2:Array;
public var screens_4_5:Array;
public var screens_4_6:Array;
public var screens_4_7:Array;
public var screens_4_1:Array;
public var level_2_7:Array;
public var loadopen:openbolt;
public var screens_4_4:Array;
public var screens_4_9:Array;
public var clicked:buttonclick;
public var screens_4_2:Array;
public var switches_3_1:Array;
public var switches_3_2:Array;
public var switches_3_3:Array;
public var switches_3_5:Array;
public var switches_3_6:Array;
public var switches_3_7:Array;
public var pickups_4_9:Array;
public var switches_3_4:Array;
public var switches_3_8:Array;
public var nextLevel:int;
public var screens_4_8:Array;
public var controlsList:Array;
public var posX:int;
public var timer44:int;
public var pickupclick:pickupsound;
public var starttext:introtext;
public var posAddX:int;
public var playerOb:Object;
public var pickups_2_2:Array;
public var pickups_2_4:Array;
public var pickups_2_6:Array;
public var pickups_2_7:Array;
public var menuLoop:menuloop;
public var pickups_2_3:Array;
public var pickups_2_5:Array;
public var pickups_2_1:Array;
public var screens_2_1:Array;
public var screens_2_2:Array;
public var screens_2_3:Array;
public var screens_2_4:Array;
public var screens_2_5:Array;
public var screens_2_6:Array;
public var lifts_5_4:Array;
public var lifts_5_5:Array;
public var lifts_5_6:Array;
public var lifts_5_1:Array;
public var lifts_5_2:Array;
public var screens_2_7:Array;
public var lifts_5_7:Array;
public var lifts_5_3:Array;
public var switches_1_1:Array;
public var switches_1_2:Array;
public var switches_1_3:Array;
public var switches_1_4:Array;
public var switches_1_5:Array;
public var switches_1_6:Array;
public var switches_1_7:Array;
public var switches_1_8:Array;
public var switches_1_9:Array;
public var enemies_6_3:Array;
public var enemies_6_5:Array;
public var enemies_6_2:Array;
public var lifts_5_8:Array;
public var exciteTimer:int;
public var enemies_6_8:Array;
public var enemies_6_4:Array;
public var adv:DisplayObject;
public var enemies_6_1:Array;
public var vol:int;
public var posY:int;
public var enemies_6_9:Array;
public var currentStage:int;
public var savePoints:Array;
public var posAddY:int;
public var loadclose:closebolt;
public var coolbuddy:MovieClip;
public var updates:updatespage;
public var reloadMax:int;
public var drawSprite;
public var lifts_3_1:Array;
public var lifts_3_2:Array;
public var lifts_3_3:Array;
public var lifts_3_4:Array;
public var lifts_3_5:Array;
public var lifts_3_6:Array;
public var lifts_3_7:Array;
public var lifts_3_8:Array;
public var soundfrom;
public var gui:GUI;
public var enemies_4_1:Array;
public var enemies_4_2:Array;
public var enemies_4_3:Array;
public var enemies_4_4:Array;
public var enemies_4_5:Array;
public var enemies_4_6:Array;
public var enemies_4_7:Array;
public var enemies_4_8:Array;
public var enemies_4_9:Array;
public var gun:gunarm;
public var display:BitmapData;
public var currentLevel:int;
public var timer1:int;
public var timer2:int;
public var timer3:int;
public var MD:Boolean;
public var music2Channel:SoundChannel;
public var liftstop:liftstopping;
public var lifts_1_1:Array;
public var lifts_1_2:Array;
public var lifts_1_3:Array;
public var lifts_1_4:Array;
public var lifts_1_5:Array;
public var lifts_1_6:Array;
public var lifts_1_7:Array;
public var lifts_1_8:Array;
public var lifts_1_9:Array;
public var bulletin:loadbullet;
public var exp1:explode1;
public var enemies_2_2:Array;
public var enemies_2_3:Array;
public var enemies_2_4:Array;
public var enemies_2_5:Array;
public var enemies_2_6:Array;
public var enemies_2_7:Array;
public var enemies_2_1:Array;
public var doors_5_1:Array;
public var doors_5_3:Array;
public var doors_5_4:Array;
public var doors_5_5:Array;
public var doors_5_6:Array;
public var doors_5_8:Array;
public var collectedItems:Array;
public var doors_5_7:Array;
public var doors_5_2:Array;
public var stageRect:Rectangle;
public var error:cantpickup;
public var errorTimer:int;
public var Title:TITLE;
public var grunts:Array;
public var savepoints_6_1:Array;
public var savepoints_6_2:Array;
public var savepoints_6_3:Array;
public var savepoints_6_4:Array;
public var savepoints_6_5:Array;
public var savepoints_6_8:Array;
public var savepoints_6_9:Array;
public var tvs:Array;
public var pop:popup;
public var switchsound:switchpress;
public var grav;
public var doors_3_1:Array;
public var doors_3_3:Array;
public var doors_3_4:Array;
public var doors_3_5:Array;
public var doors_3_6:Array;
public var doors_3_7:Array;
public var doors_3_8:Array;
public var doors_3_2:Array;
public var gameoverswitch:Boolean;
public var doorObs:Array;
public var adBox:MovieClip;
public var particles:Array;
public var trans:TRANS;
public var savepoints_4_1:Array;
public var savepoints_4_2:Array;
public var savepoints_4_3:Array;
public var savepoints_4_4:Array;
public var savepoints_4_5:Array;
public var savepoints_4_6:Array;
public var savepoints_4_7:Array;
public var savepoints_4_8:Array;
public var savepoints_4_9:Array;
public var controlsOption:int;
public var lifts:Array;
public var player:char;
public var parts:Array;
public var doors_1_1:Array;
public var doors_1_2:Array;
public var doors_1_3:Array;
public var doors_1_4:Array;
public var doors_1_5:Array;
public var doors_1_6:Array;
public var doors_1_7:Array;
public var doors_1_8:Array;
public var doors_1_9:Array;
public var musicChannel:SoundChannel;
public var levelMap:BitmapData;
public var savepoints_2_1:Array;
public var savepoints_2_3:Array;
public var savepoints_2_4:Array;
public var savepoints_2_5:Array;
public var savepoints_2_6:Array;
public var savepoints_2_7:Array;
public var savepoints_2_2:Array;
public var bossStartTimer:int;
public var nullLock:MovieClip;
public var cursor:CURSOR;
public var tileH:int;
public var level_5_2:Array;
public var level_5_3:Array;
public var level_5_4:Array;
public var level_5_5:Array;
public var level_5_6:Array;
public var level_5_7:Array;
public var level_5_8:Array;
public var boss:BOSS;
public var tileW:int;
public var level_5_1:Array;
public var jumpUp:BitmapData;
public var bossParts:Array;
public var tiles;
public var switches_6_1:Array;
public var switches_6_3:Array;
public var switches_6_4:Array;
public var switches_6_5:Array;
public var channel3:SoundChannel;
public var channel4:SoundChannel;
public var switches_6_8:Array;
public var switches_6_2:Array;
public var jumpPads:Object;
public var coolDown:int;
public var keyList:Array;
public var heavies:Array;
public var liftrun:liftrunning;
public var reloading:int;
public var switches_6_9:Array;
public var die1:death1;
public var die2:death2;
public var channel2:SoundChannel;
public var lazerbeam:lazersound;
public var pickups_5_1:Array;
public var pickups_5_3:Array;
public var pickups_5_5:Array;
public var pickups_5_6:Array;
public var pickups_5_7:Array;
public var pickups_5_2:Array;
public var pickups_5_4:Array;
public var level_3_1:Array;
public var level_3_2:Array;
public var level_3_3:Array;
public var level_3_4:Array;
public var level_3_5:Array;
public var level_3_6:Array;
public var level_3_7:Array;
public var screens_5_3:Array;
public var screens_5_4:Array;
public var screens_5_5:Array;
public var screens_5_6:Array;
public var screens_5_7:Array;
public var screens_5_1:Array;
public var screens_5_2:Array;
public var level_3_8:Array;
public var screens_5_8:Array;
public var pickups_5_8:Array;
public var game:Sprite;
public var switches_4_1:Array;
public var switches_4_2:Array;
public var switches_4_3:Array;
public var switches_4_4:Array;
public var switches_4_5:Array;
public var switches_4_6:Array;
public var switches_4_7:Array;
public var switches_4_8:Array;
public var switches_4_9:Array;
public var gameOver:gameover;
public var mainLoop:gameloop;
public var loadslot:Array;
public var ad:DisplayObject;
public var missiles:Array;
public var octobombs:Array;
public var flamePads:Array;
public var jump:jumping;
public var liftstart:liftstarting;
public var moveScreenX:Number;
public var pickups_3_1:Array;
public var pickups_3_2:Array;
public var pickups_3_3:Array;
public var pickups_3_4:Array;
public var pickups_3_5:Array;
public var pickups_3_6:Array;
public var pickups_3_7:Array;
public var pickups_3_8:Array;
public var level_1_1:Array;
public var level_1_2:Array;
public var level_1_3:Array;
public var level_1_4:Array;
public var level_1_5:Array;
public var level_1_6:Array;
public var level_1_7:Array;
public var level_1_8:Array;
public var level_1_9:Array;
public var screens_3_5:Array;
public var screens_3_6:Array;
public var screens_3_7:Array;
public var screens_3_1:Array;
public var screens_3_2:Array;
public var screens_3_3:Array;
public var screens_3_4:Array;
public var lifts_6_1:Array;
public var lifts_6_2:Array;
public var screens_3_8:Array;
public var shot1:pistolshot;
public var lifts_6_8:Array;
public var lifts_6_3:Array;
public var lifts_6_4:Array;
public var switches_2_1:Array;
public var switches_2_2:Array;
public var switches_2_3:Array;
public var switches_2_4:Array;
public var switches_2_5:Array;
public var switches_2_6:Array;
public var shot2:machinegunfire;
public var lifts_6_9:Array;
public var switches_2_7:Array;
public var moveScreenY:Number;
public var lifts_6_5:Array;
public var shot4:shotgunshot;
public var muting:Boolean;
public var bgLoop:bgloop;
public var CPMStarContentSpotID:String;
public var fightingBoss:Boolean;
public var flameTime:int;
public var fireburst:shortburst;
public var changeroom:godoor;
public var boing:spring;
public var credits:CREDITS;
public var computers:Array;
public var dispbmp:Bitmap;
public var gunType:int;
public var flamersound:flamethrower;
public var launchers:Array;
public var rolledOver:int;
public var pickups_1_1:Array;
public var pickups_1_2:Array;
public var pickups_1_3:Array;
public var pickups_1_4:Array;
public var pickups_1_5:Array;
public var pickups_1_6:Array;
public var pickups_1_7:Array;
public var pickups_1_8:Array;
public var pickups_1_9:Array;
public var screens_1_1:Array;
public var screens_1_2:Array;
public var screens_1_3:Array;
public var screens_1_4:Array;
public var screens_1_5:Array;
public var screens_1_6:Array;
public var screens_1_8:Array;
public var screens_1_9:Array;
public var lifts_4_7:Array;
public var lifts_4_8:Array;
public var lifts_4_2:Array;
public var screens_1_7:Array;
public var lifts_4_4:Array;
public var lifts_4_5:Array;
public var grenades:Array;
public var lifts_4_1:Array;
public var respawnsound:spawnsound;
public var lifts_4_3:Array;
public var lifts_4_6:Array;
public var soundDir;
public var lifts_4_9:Array;
public var stageH:int;
public var enemies_5_1:Array;
public var enemies_5_2:Array;
public var enemies_5_4:Array;
public var enemies_5_6:Array;
public var enemies_5_8:Array;
public var enemies_5_3:Array;
public var enemies_5_5:Array;
public var enemies_5_7:Array;
public var stageW:int;
public var lastSave:int;
public var closeBtn:MovieClip;
public var gunsCollected:Array;
public var map:Array;
public var savechoice:int;
public var lifts_2_1:Array;
public var lifts_2_2:Array;
public var lifts_2_3:Array;
public var lifts_2_4:Array;
public var lifts_2_5:Array;
public var lifts_2_6:Array;
public var lifts_2_7:Array;
public var pickups:Array;
public var startanim:startmov;
public var turrets:Array;
public var fadebmp:Bitmap;
public var firing:Boolean;
public var enemies_3_3:Array;
public var enemies_3_4:Array;
public var enemies_3_5:Array;
public var enemies_3_6:Array;
public var enemies_3_7:Array;
public var enemies_3_8:Array;
public var enemies_3_1:Array;
public var enemies_3_2:Array;
public var doors_6_1:Array;
public var doors_6_2:Array;
public var doors_6_3:Array;
public var doors_6_4:Array;
public var doors_6_5:Array;
public var doors_6_8:Array;
public var doors_6_9:Array;
public var bossInfo:Object;
public var ltrans:levelTrans;
public var downKeys:Object;
public var liftsbmp:Bitmap;
public var gunoffset:int;
public var tempCollected:Array;
public var loadgame:LOADGAME;
public var jumpDown:BitmapData;
public var slot1;
public var slot2;
public var slot3;
public var enemies_1_1:Array;
public var enemies_1_2:Array;
public var enemies_1_3:Array;
public var enemies_1_4:Array;
public var enemies_1_5:Array;
public var enemies_1_6:Array;
public var enemies_1_7:Array;
public var enemies_1_8:Array;
public var enemies_1_9:Array;
public var fliers:Array;
public var doors_4_1:Array;
public var doors_4_2:Array;
public var doors_4_3:Array;
public var doors_4_4:Array;
public var doors_4_5:Array;
public var doors_4_6:Array;
public var doors_4_7:Array;
public var doors_4_8:Array;
public var doors_4_9:Array;
public var tempPushed:Array;
public var shotrocket:rocketlaunch;
public var sprites:Sprite;
public var lastStartX:int;
public var lastStartY:int;
public var fade:BitmapData;
public var saved:savesuccess;
public var savepoints_5_1:Array;
public var savepoints_5_4:Array;
public var savepoints_5_6:Array;
public var savepoints_5_8:Array;
public var savepoints_5_3:Array;
public var savepoints_5_5:Array;
public var savepoints_5_7:Array;
public var savepoints_5_2:Array;
public var doors_2_1:Array;
public var doors_2_2:Array;
public var doors_2_3:Array;
public var doors_2_4:Array;
public var doors_2_5:Array;
public var doors_2_6:Array;
public var gunflash:MovieClip;
public var controls:CONTROLS;
public var doors_2_7:Array;
public var menuOption:int;
public var strike1:hit1;
public var strike3:hit3;
public var conveyor1;
public var strike2:hit2;
public var conveyor4;
public var conveyor5;
public var conveyor6;
public var conveyor3;
public var rollover:mouseover;
public var conveyor2;
public var pausegame:pausemenu;
public var switches:Array;
public var liftsCollider:BitmapData;
public var fireSoundTime:int;
public var lastRoomGun:int;
public var gun1:Object;
public var gun2:Object;
public var gun3:Object;
public var gun4:Object;
public var gun5:Object;
public var gun6:Object;
public var lastGun:int;
public var lastRoomAmmo:Array;
public var savepoints_3_1:Array;
public var savepoints_3_2:Array;
public var savepoints_3_4:Array;
public var savepoints_3_6:Array;
public var savepoints_3_8:Array;
public var savepoints_3_3:Array;
public var savepoints_3_5:Array;
public var savepoints_3_7:Array;
public var transto:String;
public var conveyors:Array;
public var level_6_1:Array;
public var level_6_2:Array;
public var level_6_3:Array;
public var level_6_4:Array;
public var level_6_5:Array;
public var level_6_8:Array;
public var level_6_9:Array;
public var pushedSwitches:Array;
public var type:keyboardtype;
public var loadblock:MovieClip;
public var deathTime:int;
public var upPads:Array;
public var savepoints_1_1:Array;
public var savepoints_1_2:Array;
public var savepoints_1_3:Array;
public var savepoints_1_4:Array;
public var savepoints_1_5:Array;
public var savepoints_1_6:Array;
public var savepoints_1_7:Array;
public var savepoints_1_8:Array;
public var savepoints_1_9:Array;
public var levelRect:Rectangle;
public var changegun:gunchange;
public var pickups_6_2:Array;
public var pickups_6_4:Array;
public var pickups_6_5:Array;
public var pickups_6_1:Array;
public var pickups_6_9:Array;
public var pickups_6_3:Array;
public var level_4_1:Array;
public var level_4_2:Array;
public var level_4_3:Array;
public var level_4_5:Array;
public var level_4_6:Array;
public var level_4_7:Array;
public var level_4_8:Array;
public var level_4_9:Array;
public var screens_6_5:Array;
public var level_4_4:Array;
public var pickups_6_8:Array;
public var screens_6_1:Array;
public var screens_6_2:Array;
public var screens_6_3:Array;
public var screens_6_4:Array;
public var screens_6_9:Array;
public var switches_5_1:Array;
public var switches_5_2:Array;
public var switches_5_3:Array;
public var switches_5_4:Array;
public var switches_5_5:Array;
public var switches_5_6:Array;
public var switches_5_7:Array;
public var gameState:String;
public var screens_6_8:Array;
public var switches_5_8:Array;
public var fadeCT:ColorTransform;
public var soundto;
public var gunSelected:int;
public var explosions:Array;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 6, frame7);
}
public function updateMissiles():void{
var _local1:int;
var _local2:missile;
var _local3:int;
var _local4:int;
var _local5:*;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
_local1 = 0;
while (_local1 < missiles.length) {
_local2 = missiles[_local1];
_local2.x = (_local2.x + _local2.xv);
_local2.y = (_local2.y + _local2.yv);
newParticle((_local2.x - _local2.xv), (_local2.y - _local2.yv), 2, 0);
_local3 = (playerOb.x - _local2.x);
_local4 = ((playerOb.y - (playerOb.h / 2)) - _local2.y);
_local5 = (Math.atan2(_local4, _local3) * (180 / Math.PI));
if (_local5 > 360){
_local5 = (_local5 - 360);
} else {
if (_local5 < 0){
_local5 = (_local5 + 360);
};
};
_local6 = _local2.rotation;
if (_local6 < 0){
_local6 = (_local6 + 360);
};
_local7 = (_local6 - _local5);
if ((((((_local7 > 0)) && ((_local7 <= 180)))) || ((_local7 < -180)))){
_local2.rotation = (_local2.rotation - 2);
} else {
if ((((((_local7 < 0)) && ((_local7 >= -180)))) || ((_local7 > 180)))){
_local2.rotation = (_local2.rotation + 2);
};
};
_local2.xv = (Math.cos((_local2.rotation * (Math.PI / 180))) * 5);
_local2.yv = (Math.sin((_local2.rotation * (Math.PI / 180))) * 5);
_local8 = Math.floor(((_local2.x + (_local2.xv * 2)) / tileW));
_local9 = Math.floor(((_local2.y + (_local2.yv * 2)) / tileH));
if ((((((_local3 * _local3) + (_local4 * _local4)) <= 1000)) && ((deathTime == 0)))){
playerDie();
grenadeExplode(_local2.x, _local2.y);
sprites.removeChild(_local2);
missiles.splice(_local1, 1);
_local1--;
} else {
if (((!((map[_local9][_local8] == 0))) || ((liftsCollider.getPixel((_local2.x + (_local2.xv * 2)), (_local2.y + (_local2.yv * 2))) == 0)))){
grenadeExplode(_local2.x, _local2.y);
sprites.removeChild(_local2);
missiles.splice(_local1, 1);
_local1--;
};
};
_local1++;
};
}
public function updateGameOver():void{
if ((((stage.mouseY > 360)) && ((stage.mouseY < 390)))){
if (rolledOver != 1){
rolledOver = 1;
rollover.play();
};
gameOver.option1.gotoAndStop(2);
gameOver.option2.gotoAndStop(1);
gameOver.option3.gotoAndStop(1);
menuOption = 1;
} else {
if ((((stage.mouseY > 404)) && ((stage.mouseY < 434)))){
if (rolledOver != 2){
rolledOver = 2;
rollover.play();
};
gameOver.option1.gotoAndStop(1);
gameOver.option2.gotoAndStop(2);
gameOver.option3.gotoAndStop(1);
menuOption = 2;
} else {
if ((((stage.mouseY > 450)) && ((stage.mouseY < 480)))){
if (rolledOver != 3){
rolledOver = 3;
rollover.play();
};
gameOver.option1.gotoAndStop(1);
gameOver.option2.gotoAndStop(1);
gameOver.option3.gotoAndStop(2);
menuOption = 3;
} else {
rolledOver = 0;
gameOver.option1.gotoAndStop(1);
gameOver.option2.gotoAndStop(1);
gameOver.option3.gotoAndStop(1);
menuOption = 0;
};
};
};
}
public function newPickup(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int):void{
var _local7:pickup;
_local7 = new pickup();
_local7.gotoAndStop(_arg3);
_local7.x = _arg1;
_local7.y = _arg2;
_local7.t = _arg3;
_local7.lev = _arg4;
_local7.sta = _arg5;
_local7.id = _arg6;
pickups.push(_local7);
sprites.addChild(_local7);
}
public function updateConveyors():void{
var _local1:int;
var _local2:Object;
_local1 = 0;
while (_local1 < conveyors.length) {
_local2 = conveyors[_local1];
if (_local2.t == 2){
levelMap.fillRect(new Rectangle((_local2.x * tileW), (_local2.y * tileH), tileW, tileH), 0xFFFFFF);
levelMap.copyPixels(conveyor1, new Rectangle(((_local2.f - 1) * tileW), 0, tileW, tileH), new Point((_local2.x * tileW), (_local2.y * tileH)));
} else {
if (_local2.t == 5){
levelMap.fillRect(new Rectangle((_local2.x * tileW), (_local2.y * tileH), tileW, tileH), 0xFFFFFF);
levelMap.copyPixels(conveyor2, new Rectangle(((_local2.f - 1) * tileW), 0, tileW, tileH), new Point((_local2.x * tileW), (_local2.y * tileH)));
} else {
if (_local2.t == 1){
levelMap.fillRect(new Rectangle((_local2.x * tileW), (_local2.y * tileH), tileW, tileH), 0xFFFFFF);
levelMap.copyPixels(conveyor3, new Rectangle(((_local2.f - 1) * tileW), 0, tileW, tileH), new Point((_local2.x * tileW), (_local2.y * tileH)));
} else {
if (_local2.t == 4){
levelMap.fillRect(new Rectangle((_local2.x * tileW), (_local2.y * tileH), tileW, tileH), 0xFFFFFF);
levelMap.copyPixels(conveyor4, new Rectangle(((_local2.f - 1) * tileW), 0, tileW, tileH), new Point((_local2.x * tileW), (_local2.y * tileH)));
} else {
if (_local2.t == 6){
levelMap.fillRect(new Rectangle((_local2.x * tileW), (_local2.y * tileH), tileW, tileH), 0xFFFFFF);
levelMap.copyPixels(conveyor5, new Rectangle(((_local2.f - 1) * tileW), 0, tileW, tileH), new Point((_local2.x * tileW), (_local2.y * tileH)));
} else {
if (_local2.t == 3){
levelMap.fillRect(new Rectangle((_local2.x * tileW), (_local2.y * tileH), tileW, tileH), 0xFFFFFF);
levelMap.copyPixels(conveyor6, new Rectangle(((_local2.f - 1) * tileW), 0, tileW, tileH), new Point((_local2.x * tileW), (_local2.y * tileH)));
};
};
};
};
};
};
_local2.f++;
if (_local2.f > 5){
_local2.f = 1;
};
_local1++;
};
}
public function fireTopMissiles():void{
newMissile(100, 380, 0);
newMissile(985, 380, 180);
}
public function updateTurrets():void{
var _local1:int;
var _local2:turret;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
_local1 = 0;
while (_local1 < turrets.length) {
_local2 = turrets[_local1];
if (_local2.hitTime > 0){
_local2.hitTime--;
if (_local2.hitTime <= 0){
_local2.hbar.alpha = 0;
};
};
if (_local2.health <= 0){
_local2.channel.stop();
turretExplode(_local2.x, _local2.y, (((_local2.lastHealth - _local2.health) / 3) + 4));
sprites.removeChild(_local2);
turrets.splice(_local1, 1);
_local1--;
} else {
if (_local2.lastHealth > _local2.health){
_local2.range = 10000;
};
};
if (_local2.onFire > 0){
_local2.onFire--;
_local2.health = (_local2.health - 0.05);
onFire(_local2.x, (_local2.y + 15), (_local2.onFire / 40));
};
_local2.lastHealth = _local2.health;
if ((((_local2.seeking == false)) || ((deathTime > 0)))){
if (_local2.dir == 1){
_local2.gun.rotation++;
if ((((_local2.gun.rotation >= 180)) || ((_local2.gun.rotation < -100)))){
_local2.gun.rotation = 179;
_local2.dir = 2;
};
} else {
_local2.gun.rotation--;
if (_local2.gun.rotation <= 0){
_local2.gun.rotation = 1;
_local2.dir = 1;
};
};
_local2.checkLos--;
if (_local2.checkLos <= 0){
_local2.checkLos = 5;
_local3 = (_local2.x - playerOb.x);
_local4 = (_local2.y - playerOb.y);
_local5 = ((_local3 * _local3) + (_local4 * _local4));
if (_local5 <= 160000){
exciteTimer = 50;
if (soundto != 1){
soundto = 1;
soundDir = 2;
};
if (LOS(_local2.x, (_local2.y + 10), playerOb.x, (playerOb.y - (playerOb.h / 2)), _local2.range) == true){
_local2.seeking = true;
};
};
};
} else {
exciteTimer = 50;
if (soundto != 1){
soundto = 1;
soundDir = 2;
};
_local2.shootTime--;
_local6 = (playerOb.x - _local2.x);
_local7 = ((playerOb.y - (playerOb.h / 2)) - _local2.y);
_local2.ang = (Math.atan2(_local7, _local6) * (180 / Math.PI));
if (_local2.ang > 360){
_local2.ang = (_local2.ang - 360);
} else {
if (_local2.ang < 0){
_local2.ang = (_local2.ang + 360);
};
};
if (_local2.ang < 180){
if (_local2.gun.rotation < _local2.ang){
_local2.gun.rotation++;
} else {
_local2.gun.rotation--;
};
};
_local2.soundTimer--;
if (_local2.soundTimer <= 0){
_local2.soundTimer = 45;
_local2.channel = shot2.play();
};
if (_local2.shootTime <= 0){
_local2.shootTime = 6;
_local8 = ((_local2.x + _local2.gun.x) + (Math.cos((_local2.gun.rotation * (Math.PI / 180))) * 23));
_local9 = ((_local2.y + _local2.gun.y) + (Math.sin((_local2.gun.rotation * (Math.PI / 180))) * 23));
fireLine(_local8, _local9, (Math.cos((_local2.gun.rotation * (Math.PI / 180))) * 10), (Math.sin((_local2.gun.rotation * (Math.PI / 180))) * 10), 1, 0xFFFFFF, 1, 1);
};
if (LOS(_local2.x, (_local2.y + 10), playerOb.x, (playerOb.y - (playerOb.h / 2)), _local2.range) == false){
_local2.range = 500;
_local2.seeking = false;
_local2.soundTimer = 0;
_local2.channel.stop();
};
};
_local1++;
};
}
public function updateTvs():void{
var _local1:int;
var _local2:tvscreen;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
_local1 = 0;
while (_local1 < tvs.length) {
_local2 = tvs[_local1];
_local3 = (playerOb.x - (_local2.x + 60));
_local4 = (playerOb.y - (_local2.y + 60));
_local5 = ((_local3 * _local3) + (_local4 * _local4));
_local6 = int((Math.random() * int.MAX_VALUE));
if (_local5 > 40000){
_local2.cov.txt.text = "";
_local2.bmp.noise(_local6, 0, 200, BitmapDataChannel.RED, true);
} else {
_local2.bmp.noise(_local6, 20, 80, BitmapDataChannel.RED, true);
_local2.cov.txt.text = _local2.words;
};
_local1++;
};
}
public function bossExplode(_arg1:int, _arg2:int):void{
var _local3:int;
var _local4:int;
die1.play();
_arg1 = (_arg1 + 20);
_local3 = 0;
while (_local3 < 10) {
newParticle(((_arg1 + 45) + ((Math.random() * 45) - (Math.random() * 45))), ((_arg2 + 45) + ((Math.random() * 45) - (Math.random() * 45))), 4, ((Math.random() * 4) + 1));
_local3++;
};
_local4 = 0;
while (_local4 < 15) {
newExplosionParticle(((_arg1 + 45) + ((Math.random() * 45) - (Math.random() * 45))), ((_arg2 + 45) + ((Math.random() * 45) - (Math.random() * 45))), 6, ((Math.random() * 4) + 1));
_local4++;
};
newPart((_arg1 + 19), (_arg2 + 1), 3, 0, 24, 1);
newPart((_arg1 + 48), (_arg2 - 6), 3, 0, 25, 1);
newPart((_arg1 + 31), (_arg2 + 18), 3, 0, 26, 1);
newPart((_arg1 + 39), (_arg2 + 53), 3, 0, 27, 1);
newPart((_arg1 + 12), (_arg2 + 5), 3, 0, 28, 1);
newPart((_arg1 - 20), (_arg2 + 72), 3, 0, 29, 1);
newPart((_arg1 + 100), (_arg2 + 60), 3, 0, 30, 1);
newPart((_arg1 - 6), (_arg2 + 85), 3, 0, 31, 1);
newPart((_arg1 + 97), (_arg2 + 89), 3, 0, 32, 1);
newPart((_arg1 + 35), (_arg2 + 76), 3, 0, 33, 1);
newPart((_arg1 + 56), (_arg2 + 53), 3, 0, 34, 1);
}
public function update(_arg1:Event):void{
var _local2:int;
var _local3:int;
cursor.x = stage.mouseX;
cursor.y = stage.mouseY;
if (soundDir != 0){
updateSound();
};
if (errorTimer > 0){
errorTimer--;
};
if (gameState == "intro"){
updateConveyors();
updateTvs();
updateParticles();
updateParts();
if (startanim.currentFrame == 11){
channel2 = type.play();
} else {
if ((((startanim.currentFrame > 225)) && ((startanim.currentFrame < 280)))){
posX = (posX + 15);
} else {
if (startanim.currentFrame == 328){
botExplode(1490, 410);
} else {
if (startanim.currentFrame == 388){
botExplode(1490, 410);
} else {
if ((((startanim.currentFrame > 400)) && ((startanim.currentFrame < 500)))){
posX = (posX - 12);
} else {
if ((((startanim.currentFrame > 588)) && ((startanim.currentFrame < 620)))){
posX = (posX + 2);
} else {
if (startanim.currentFrame == 620){
channel2.stop();
removeChild(starttext);
startGame();
gameState = "game";
};
};
};
};
};
};
};
updateDisplay();
sprites.x = -(posX);
sprites.y = -(posY);
} else {
if (gameState == "trans"){
transTo();
} else {
if (gameState == "leveltrans"){
if (ltrans.currentFrame == 16){
ltrans.leveltxt.text = ("LEVEL " + String(nextLevel));
if ((((currentLevel == 1)) && ((nextLevel == 0)))){
removeChild(Title);
gameState = "intro";
startanim = new startmov();
startanim.x = (30 * 6);
startanim.y = (30 * 3);
loadMap(1, 1);
posX = (30 * 12);
posY = 0;
updateDisplay();
SoundMixer.stopAll();
mainLoop.play(0, 9999);
} else {
clearLevel();
loadMap(currentLevel, nextLevel);
gameState = "game";
};
};
};
};
};
if (gameState == "title"){
updateTitle();
} else {
if (gameState == "controls"){
updateControls();
} else {
if (gameState == "load"){
updateLoad();
} else {
if (gameState == "gameover"){
updateGameOver();
} else {
if (gameState == "popup"){
updatePopup();
} else {
if (gameState == "popup2"){
updatePopup2();
} else {
if (gameState == "paused"){
updatePause();
} else {
if (gameState == "bossStart"){
updateBossStart();
updateParticles();
updateTvs();
updateSavepoints();
updatePlayer();
updateFliers();
liftsCollider.fillRect(levelRect, 0xFFFFFF);
updateLifts();
moveScreen();
sprites.x = -(posX);
sprites.y = -(posY);
updateDisplay();
} else {
if (gameState == "updates"){
updateUpdates();
} else {
if (gameState == "game"){
if ((((((currentLevel == 6)) && ((currentStage == 5)))) && ((fightingBoss == false)))){
if ((((playerOb.x < 1000)) && ((gameoverswitch == false)))){
fightingBoss = true;
_local2 = 0;
while (_local2 < lifts.length) {
if (lifts[_local2].id == 0){
lifts[_local2].s = 1;
lifts[_local2].ch = liftrun.play();
lifts[_local2].xv = lifts[_local2].xMove;
lifts[_local2].yv = lifts[_local2].yMove;
};
_local2++;
};
lastStartX = playerOb.x;
lastStartY = playerOb.y;
bossStartTimer = 200;
player.legs.gotoAndStop(1);
gameState = "bossStart";
};
};
if (exciteTimer > 0){
exciteTimer--;
if (exciteTimer <= 0){
soundto = 2;
soundDir = 2;
};
};
liftsCollider.fillRect(levelRect, 0xFFFFFF);
updateLifts();
if (deathTime == 0){
updatePlayer();
if (firing == true){
fireRapid();
};
checkForPickups();
} else {
respawn();
};
moveScreen();
updateJumpPads();
updateConveyors();
updateFlamePads();
updateDisplay();
fade.colorTransform(new Rectangle(0, 0, fade.width, fade.height), fadeCT);
updateParticles();
updateParts();
updateFlames();
updateGrenades();
updateFliers();
updateGrunts();
updateTurrets();
updateHeavies();
updateLaunchers();
updateBoss();
updateOctobombs();
updateMissiles();
updateExplosions();
updateTvs();
updateSavepoints();
sprites.x = -(posX);
sprites.y = -(posY);
if (reloading > 0){
reloading--;
if (gunType == 1){
reloadHandgun(reloading);
} else {
if (gunType == 2){
reloadMachinegun(reloading);
} else {
if (gunType == 3){
reloadGrenade(reloading);
} else {
if (gunType == 4){
reloadShotgun(reloading);
} else {
if (gunType == 5){
reloadFlamer(reloading);
} else {
if (gunType == 6){
reloadLazer(reloading);
};
};
};
};
};
};
player.reload.gotoAndStop(((8 - Math.floor(((reloading / reloadMax) * 8))) + 1));
if (reloading == 0){
player.reload.gotoAndStop(1);
_local3 = (this[("gun" + gunType)].capacity - this[("gun" + gunType)].ammo);
this[("gun" + gunType)].ammo = this[("gun" + gunType)].capacity;
this[("gun" + gunType)].spare = (this[("gun" + gunType)].spare - _local3);
if (this[("gun" + gunType)].spare < 0){
this[("gun" + gunType)].ammo = (this[("gun" + gunType)].ammo + this[("gun" + gunType)].spare);
this[("gun" + gunType)].spare = 0;
};
if (gunType != 1){
gui.ammo.text = ((String(this[("gun" + gunType)].ammo) + " | ") + String(this[("gun" + gunType)].spare));
} else {
gui.ammo.text = (String(gun1.ammo) + " | X");
};
};
};
if (playerOb.health <= 0){
gui.health.width = 1;
} else {
gui.health.width = ((playerOb.health / playerOb.maxHealth) * 100);
};
};
};
};
};
};
};
};
};
};
};
}
public function updateGrenades():void{
var _local1:int;
var _local2:int;
var _local3:grenade;
var _local4:int;
var _local5:int;
var _local6:flier;
var _local7:grunt;
var _local8:turret;
var _local9:heavy;
var _local10:launcher;
var _local11:Object;
_local1 = 0;
_local2 = 0;
while (_local2 < grenades.length) {
_local3 = grenades[_local2];
_local4 = Math.floor(((_local3.x + _local3.xv) / tileW));
_local5 = Math.floor(((_local3.y + _local3.yv) / tileH));
_local1 = 0;
while (_local1 < fliers.length) {
_local6 = fliers[_local1];
if ((((_local6.x - _local3.x) * (_local6.x - _local3.x)) + ((_local6.y - _local3.y) * (_local6.y - _local3.y))) < (15 * 15)){
_local6.health = (_local6.health - 20);
newExplosion(_local3.x, _local3.y, 20, 100, 0);
grenadeExplode(_local3.x, _local3.y);
_local3.dead = true;
_local6.hitTime = 30;
_local6.hbar.alpha = 1;
_local6.hbar.bar.width = ((_local6.health / 2) * 25);
};
_local1++;
};
_local1 = 0;
while (_local1 < grunts.length) {
_local7 = grunts[_local1];
if ((((_local7.x - _local3.x) * (_local7.x - _local3.x)) + (((_local7.y - 30) - _local3.y) * ((_local7.y - 30) - _local3.y))) < (40 * 40)){
_local7.health = (_local7.health - 20);
_local7.hitTime = 30;
_local7.hbar.alpha = 1;
_local7.hbar.bar.width = 0;
newExplosion(_local3.x, _local3.y, 20, 100, 0);
grenadeExplode(_local3.x, _local3.y);
_local3.dead = true;
};
_local1++;
};
_local1 = 0;
while (_local1 < turrets.length) {
_local8 = turrets[_local1];
if ((((_local8.x - _local3.x) * (_local8.x - _local3.x)) + ((_local8.y - _local3.y) * (_local8.y - _local3.y))) < (30 * 30)){
_local8.health = (_local8.health - 20);
newExplosion(_local3.x, _local3.y, 20, 100, 0);
grenadeExplode(_local3.x, _local3.y);
_local3.dead = true;
_local8.hitTime = 30;
_local8.hbar.alpha = 1;
_local8.hbar.bar.width = ((_local8.health / 10) * 25);
};
_local1++;
};
_local1 = 0;
while (_local1 < heavies.length) {
_local9 = heavies[_local1];
if ((((_local9.x - _local3.x) * (_local9.x - _local3.x)) + (((_local9.y - 30) - _local3.y) * ((_local9.y - 30) - _local3.y))) < (40 * 40)){
_local9.health = (_local9.health - 20);
newExplosion(_local3.x, _local3.y, 20, 100, 0);
grenadeExplode(_local3.x, _local3.y);
_local3.dead = true;
_local9.hitTime = 30;
_local9.hbar.alpha = 1;
_local9.hbar.bar.width = ((_local9.health / 15) * 25);
};
_local1++;
};
_local1 = 0;
while (_local1 < launchers.length) {
_local10 = launchers[_local1];
if ((((_local10.x - _local3.x) * (_local10.x - _local3.x)) + ((_local10.y - _local3.y) * (_local10.y - _local3.y))) < (40 * 40)){
_local10.health = (_local10.health - 20);
newExplosion(_local3.x, _local3.y, 20, 100, 0);
grenadeExplode(_local3.x, _local3.y);
_local3.dead = true;
_local10.hitTime = 30;
_local10.hbar.alpha = 1;
_local10.hbar.bar.width = ((_local10.health / 30) * 25);
};
_local1++;
};
_local1 = 0;
while (_local1 < computers.length) {
_local11 = computers[_local1];
if (Math.abs((_local11.x - _local3.x)) <= 20){
if ((((_local3.y >= _local11.y)) && ((_local3.y <= (_local11.y + _local11.h))))){
if (_local11.side == 1){
bossInfo.lCompHealth = (bossInfo.lCompHealth - 10);
_local11.ob.play();
} else {
if (_local11.side == 2){
bossInfo.rCompHealth = (bossInfo.rCompHealth - 10);
_local11.ob.play();
} else {
bossInfo.health = (bossInfo.health - 10);
};
};
_local3.dead = true;
newExplosion(_local3.x, _local3.y, 20, 100, 0);
grenadeExplode(_local3.x, _local3.y);
};
};
_local1++;
};
if ((((((map[_local5][_local4] > 0)) || ((_local3.dead == true)))) || ((liftsCollider.getPixel(_local3.x, _local3.y) == 0)))){
newExplosion(_local3.x, _local3.y, 20, 100, 0);
grenadeExplode(_local3.x, _local3.y);
sprites.removeChild(_local3);
grenades.splice(_local2, 1);
_local2--;
} else {
_local3.x = (_local3.x + _local3.xv);
_local3.y = (_local3.y + _local3.yv);
if (_local3.yv < 20){
_local3.yv = (_local3.yv + (grav / 4));
};
_local3.rotation = (Math.atan2(_local3.yv, _local3.xv) * (180 / Math.PI));
};
_local2++;
};
}
public function keyup(_arg1:KeyboardEvent):void{
downKeys[("key" + _arg1.keyCode)] = false;
}
public function fireFlame2(_arg1:int, _arg2:int, _arg3:int, _arg4:int):void{
var _local5:explosionparts;
_local5 = new explosionparts();
_local5.x = _arg1;
_local5.y = _arg2;
_local5.scaleX = 0.1;
_local5.scaleY = _local5.scaleX;
_local5.rotation = (Math.random() * 360);
_local5.gotoAndStop((Math.floor((Math.random() * 6)) + 1));
_local5.xv = _arg3;
_local5.yv = _arg4;
_local5.dead = false;
_local5.sc = 0.15;
_local5.damage = 10;
_local5.hurt = true;
sprites.addChild(_local5);
flames.push(_local5);
}
public function updateFliers():void{
var _local1:int;
var _local2:flier;
var _local3:*;
var _local4:Number;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:*;
var _local12:Number;
var _local13:Number;
var _local14:*;
var _local15:Number;
_local1 = 0;
while (_local1 < fliers.length) {
_local2 = fliers[_local1];
if (_local2.hitTime > 0){
_local2.hitTime--;
if (_local2.hitTime <= 0){
_local2.hbar.alpha = 0;
};
};
if (_local2.health <= 0){
flierExplode(_local2.x, _local2.y, (((_local2.lastHealth - _local2.health) / 3) + 4));
sprites.removeChild(_local2);
fliers.splice(_local1, 1);
_local1--;
} else {
if (_local2.lastHealth > _local2.health){
_local2.maxSearch = 10000;
};
};
_local2.lastHealth = _local2.health;
if ((((((_local2.seeking == false)) || ((deathTime > 0)))) || (!((gameState == "game"))))){
if ((((_local2.x == _local2.targX)) && ((_local2.y == _local2.targY)))){
_local2.newTarg--;
if (_local2.newTarg <= 0){
_local3 = getFlierTarg(_local2.x, _local2.y);
if (_local3[0] != 99999){
_local2.targX = _local3[0];
_local2.targY = _local3[1];
_local4 = Math.atan2((_local2.targY - _local2.y), (_local2.targX - _local2.x));
_local2.xv = (Math.cos(_local4) * 3);
_local2.yv = (Math.sin(_local4) * 3);
} else {
_local2.xv = 0;
_local2.yv = 0;
};
_local2.newTarg = (30 + (Math.random() * 30));
};
} else {
_local2.x = (_local2.x + _local2.xv);
_local2.y = (_local2.y + _local2.yv);
_local5 = (((_local2.targY - _local2.y) * (_local2.targY - _local2.y)) + ((_local2.targX - _local2.x) * (_local2.targX - _local2.x)));
if (Math.abs(_local5) <= 9){
_local2.x = _local2.targX;
_local2.y = _local2.targY;
};
};
_local2.checkLos--;
if (_local2.checkLos <= 0){
_local2.checkLos = 5;
_local6 = (_local2.x - playerOb.x);
_local7 = (_local2.y - playerOb.y);
_local8 = ((_local6 * _local6) + (_local7 * _local7));
if (_local8 <= 160000){
exciteTimer = 50;
if (soundto != 1){
soundto = 1;
soundDir = 2;
};
if (LOS(_local2.x, _local2.y, playerOb.x, (playerOb.y - (playerOb.h / 2)), _local2.maxSearch) == true){
_local2.seeking = true;
};
};
};
} else {
exciteTimer = 50;
if (soundto != 1){
soundto = 1;
soundDir = 2;
};
_local9 = (playerOb.x - _local2.x);
_local10 = ((playerOb.y - _local2.y) - (playerOb.h / 2));
if (((_local9 * _local9) + (_local10 * _local10)) <= 2000){
playerOb.health = (playerOb.health - 0.5);
_local2.seeking = false;
_local2.maxSearch = 400;
_local11 = getFlierTarg(_local2.x, _local2.y);
if (_local11[0] != 99999){
_local2.targX = _local11[0];
_local2.targY = _local11[1];
_local12 = Math.atan2((_local2.targY - _local2.y), (_local2.targX - _local2.x));
_local2.xv = (Math.cos(_local12) * 3);
_local2.yv = (Math.sin(_local12) * 3);
} else {
_local2.xv = 0;
_local2.yv = 0;
};
_local2.newTarg = (30 + (Math.random() * 30));
} else {
_local13 = Math.atan2(_local10, _local9);
_local2.xv = (Math.cos(_local13) * 3);
_local2.yv = (Math.sin(_local13) * 3);
_local2.x = (_local2.x + _local2.xv);
_local2.y = (_local2.y + _local2.yv);
if (LOS(_local2.x, _local2.y, playerOb.x, (playerOb.y - (playerOb.h / 2)), _local2.maxSearch) == false){
_local2.seeking = false;
_local2.maxSearch = 400;
_local14 = getFlierTarg(_local2.x, _local2.y);
if (_local14[0] != 99999){
_local2.targX = _local14[0];
_local2.targY = _local14[1];
_local15 = Math.atan2((_local2.targY - _local2.y), (_local2.targX - _local2.x));
_local2.xv = (Math.cos(_local15) * 3);
_local2.yv = (Math.sin(_local15) * 3);
} else {
_local2.xv = 0;
_local2.yv = 0;
};
_local2.newTarg = (30 + (Math.random() * 30));
};
};
};
_local1++;
};
}
public function onFire(_arg1:int, _arg2:int, _arg3:Number):void{
var _local4:explosionparts;
var _local5:Number;
_local4 = new explosionparts();
_local4.x = _arg1;
_local4.y = _arg2;
_local4.scaleX = (_arg3 + 0.5);
_local4.scaleY = _local4.scaleX;
_local4.rotation = (Math.random() * 360);
_local4.gotoAndStop((Math.floor((Math.random() * 6)) + 1));
_local5 = (((270 + (Math.random() * 10)) - (Math.random() * 10)) * (Math.PI / 180));
_local4.xv = (Math.cos(_local5) * 5);
_local4.yv = (Math.sin(_local5) * 5);
_local4.dead = false;
_local4.sc = -0.15;
_local4.damage = 0;
_local4.hurt = false;
sprites.addChild(_local4);
flames.push(_local4);
}
public function resetData():void{
level_1_1 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2], [2, 2, 2, 2, 2, 1, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2], [2, 2, 2, 2, 2, 1, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,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, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_1_1 = [];
pickups_1_1 = [];
doors_1_1 = [{x:55, y:11, l:2, x2:25, y2:26, s:1}];
lifts_1_1 = [];
switches_1_1 = [];
screens_1_1 = [{x:12, y:7, txt:(((("USE THE " + keyList[controlsList[0]]) + " AND ") + keyList[controlsList[1]]) + " KEYS TO WALK")}, {x:22, y:7, txt:(((("PRESS " + keyList[controlsList[7]]) + " TO PAUSE.\n\nPRESS ") + keyList[controlsList[8]]) + " TO MUTE")}, {x:35, y:7, txt:(("USE THE " + keyList[controlsList[2]]) + " KEY TO JUMP. HOLD IT LONGER TO JUMP HIGHER")}, {x:53, y:5, txt:(("USE THE " + keyList[controlsList[3]]) + " KEY TO ENTER PORTAL")}];
savepoints_1_1 = [];
level_1_2 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 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, 2, 2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 2, 2, 2, 2, 2, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 2, 2, 2, 2, 2, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_1_3 = [];
pickups_1_3 = [];
doors_1_3 = [{x:4, y:15, l:2, x2:24, y2:8, s:1}, {x:24, y:15, l:4, x2:5, y2:5, s:2}];
lifts_1_3 = [];
switches_1_3 = [{x:16, y:8, a:[3, "doors", 1], s:1}];
screens_1_3 = [{x:8, y:8, txt:(("PRESS THE " + keyList[controlsList[3]]) + " KEY TO ACTIVATE THE SWITCH")}];
savepoints_1_3 = [];
level_1_4 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2], [2, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2], [2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2], [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, 1, 1, 1, 1, 1, 1, 2, 2], [2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2], [2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2], [2, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2], [2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_1_4 = [{t:0, x:165, y:487}, {t:0, x:195, y:547}, {t:0, x:0xFF, y:487}];
pickups_1_4 = [{}];
doors_1_4 = [{x:5, y:5, l:3, x2:24, y2:15, s:1}, {x:19, y:21, l:5, x2:5, y2:11, s:1}];
lifts_1_4 = [{}];
switches_1_4 = [{}];
screens_1_4 = [{x:11, y:4, txt:"PRESS THE LEFT MOUSE BUTTON TO FIRE"}, {x:13, y:12, txt:(("PRESS " + keyList[controlsList[6]]) + " TO RELOAD")}];
savepoints_1_4 = [{}];
level_1_5 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,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2, 2, 1, 2, 2], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_1_5 = [{}];
pickups_1_5 = [{}];
doors_1_5 = [{x:5, y:11, l:4, x2:19, y2:21, s:1}, {x:25, y:11, l:6, x2:4, y2:6, s:1}];
lifts_1_5 = [{}];
switches_1_5 = [{}];
screens_1_5 = [{x:9, y:7, txt:(("PRESS THE " + keyList[controlsList[3]]) + " KEY TO USE THE SAVE POD")}];
savepoints_1_5 = [{x:15, y:9}];
level_1_6 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2], [2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2,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, 0, 0, 0, 0, 0, 1, 4, 1, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_1_6 = [{t:0, x:615, y:217}, {t:0, x:675, y:217}, {t:0, x:315, y:637}, {t:0, x:375, y:667}, {t:0, x:435, y:577}, {t:0, x:315, y:547}];
pickups_1_6 = [];
doors_1_6 = [{x:4, y:23, l:7, x2:5, y2:10, s:2}, {x:4, y:6, l:5, x2:25, y2:11, s:1}];
lifts_1_6 = [];
switches_1_6 = [{x:27, y:11, a:[6, "doors", 0], s:1}];
screens_1_6 = [];
savepoints_1_6 = [];
level_1_7 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,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 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2], [2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2], [2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2], [2, 2, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2], [2, 2, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_1_8 = [{t:1, x:855, y:1110}, {t:0, x:375, y:757}, {t:0, x:405, y:697}, {t:0, x:465, y:757}, {t:0, x:525, y:697}, {t:0, x:585, y:757}];
pickups_1_8 = [{t:5, x:12, y:36, s:1}];
doors_1_8 = [{x:6, y:8, l:7, x2:34, y2:10, s:1}, {x:35, y:36, l:9, x2:3, y2:41, s:1}];
lifts_1_8 = [{id:0, x:3, y:18, w:3, h:1, ex:3, ey:36, s:2, once:0}, {id:1, x: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, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_1_9 = [];
pickups_1_9 = [];
doors_1_9 = [{x:25, y:4, l:99999, x2:4, y2:11, s:1}, {x:3, y:41, l:8, x2:35, y2:36, s:1}];
lifts_1_9 = [{id:0, x:18, y:42, w:5, h:1, ex:18, ey:5, s:2, once:1}];
switches_1_9 = [{x:22, y:40, a:[8, "lifts", 0], s:1}];
screens_1_9 = [{x:5, y:38, txt:"TURN YOURSELF IN. YOU WILL BE DISMANTLED PAINLESSLY"}, {x:9, y:38, txt:"DO NOT PROCEED TO LEVEL 2! YOU HAVE BEEN WARNED!"}];
savepoints_1_9 = [];
level_2_1 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_2_1 = [];
pickups_2_1 = [];
doors_2_1 = [{x:4, y:11, l:99999, x2:1, y2:1, s:2}, {x:45, y:11, l:2, x2:4, y2:6, s:1}];
lifts_2_1 = [{id:0, x:14, y:5, w:1, h:4, ex:14, ey:8, s:1, once:0}, {id:1, x:22, y:5, w:1, h:4, ex:22, ey:8, s:1, once:0}, {id:2, x:26, y:5, w:1, h:4, ex:26, ey:8, s:1, once:0}, {id:3, x:34, y:5, w:1, h:4, ex:34, ey:8, s:1, once:0}, {id:4, x:39, y:5, w:1, h:4, ex:39, ey:8, s:1, once:0}];
switches_2_1 = [];
screens_2_1 = [];
savepoints_2_1 = [{x:6, y:10}];
level_2_2 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 7, 7, 7, 7, 7, 7, 7, 7, 2, 2, 2, 2, 2, 2, 2], [2, 2, 7, 7, 0, 0, 0, 0, 0, 0, 7, 7, 2, 2, 2, 2, 2, 2], [2, 2, 7, 0, 0, 0, 0, 0, 0, 0, 0, 7, 7, 2, 2, 2, 2, 2], [2, 2, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 7, 7, 2, 2, 2], [2, 2, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 7, 2, 2], [2, 2, 7, 7, 7, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 2, 2], [2, 2, 2, 2, 2, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 2, 2], [2, 2, 2, 2, 2, 7, 7, 0, 0, 0, 0, 0, 0, 0, 7, 7, 2, 2], [2, 2, 2, 2, 2, 2, 7, 0, 0, 0, 0, 0, 0, 0, 7, 2, 2, 2], [2, 2, 2, 2, 2, 2, 7, 0, 0, 0, 0, 0, 0, 0, 7, 2, 2, 2], [2, 2, 2, 2, 2, 2, 7, 0, 0, 7, 7, 7, 7, 7, 7, 2, 2, 2], [2, 2, 7, 7, 7, 7, 7, 0, 0, 7, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 7, 0, 0, 0, 0, 0, 0, 7, 7, 7, 7, 2, 2, 2, 2, 2], [2, 2, 7, 0, 0, 0, 0, 0, 0, 7, 0, 0, 7, 7, 7, 2, 2, 2], [2, 2, 7, 0, 0, 0, 7, 7, 7, 7, 0, 0, 0, 0, 7, 7, 2, 2], [2, 2, 7, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 2, 2], [2, 2, 2, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 7, 2, 2], [2, 2, 7, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 2, 2, 2], [2, 2, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 7, 7, 2, 2, 2], [2, 2, 7, 0, 0, 7, 7, 7, 0, 0, 7, 7, 7, 2, 2, 2, 2, 2], [2, 2, 7, 7, 7, 7, 2, 7, 7, 7, 7, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_2_2 = [{t:0, x:225, y:577}, {t:0, x:285, y:547}];
pickups_2_2 = [{t:0, x:11, y:11, s:1}];
doors_2_2 = [{x:4, y:6, l:1, x2:45, y2:11, s:1}, {x:12, y:19, l:3, x2:5, y2:20, s:1}];
lifts_2_2 = [];
switches_2_2 = [];
screens_2_2 = [{x:10, y:7, txt:(((("USE THE " + keyList[controlsList[4]]) + " AND ") + keyList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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 2, 2], [2, 2, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 2, 2], [2, 2, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_2_4 = [{t:1, x:315, y:1110}, {t:1, x:585, y:1110}, {t:2, x:495, y:690}];
pickups_2_4 = [];
doors_2_4 = [{x:4, y:36, l:5, x2:5, y2:10, s:1}, {x:12, y:9, l:3, x2:11, y2:4, s:1}];
lifts_2_4 = [{id:0, x:22, y:10, w:3, h:1, ex:22, ey:19, s:2, once:0}, {id:1, x:3, y:19, w:3, h:1, ex:3, ey:30, s:1, once:0}, {id:2, x:12, y:16, w:1, h:3, ex:12, ey:14, s:2, once:1}];
switches_2_4 = [{x:4, y:3, a:[4, "lifts", 0], s:1}, {x:17, y:17, a:[4, "lifts", 2], s:1}];
screens_2_4 = [];
savepoints_2_4 = [];
level_2_5 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,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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, 7, 2, 7, 0, 7, 2, 2], [2, 2, 2, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 4, 7, 2, 7, 0, 7, 2, 2], [2, 2, 2, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 2, 7, 7, 7, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_2_5 = [{t:2, x:675, y:180}];
pickups_2_5 = [{t:7, x:47, y:5, s:1}, {t:6, x:29, y:12, s:1}];
doors_2_5 = [{x:5, y:10, l:4, x2:4, y2:36, s:1}, {x:5, y:4, l:6, x2:36, y2:10, s:1}];
lifts_2_5 = [{id:0, x:46, y:14, w:1, h:7, ex:46, ey:8, s:2, once:1}, {id:1, x:35, y:10, w:1, h:3, ex:35, ey:7, s:2, once:1}, {id:2, x:9, y:3, w:1, h:3, ex:9, ey:5, s:2, once:1}];
switches_2_5 = [{x:31, y:11, a:[5, "lifts", 0], s:1}, {x:37, y:11, a:[5, "lifts", 1], s:1}, {x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13, 11, 12, 12, 12, 12, 12, 12, 13, 7, 2, 2], [2, 2, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_2_6 = [{t:2, x:405, y:330}, {t:2, x:735, y:330}];
pickups_2_6 = [{t:2, x:20, y:7, s:1}];
doors_2_6 = [{x:36, y:10, l:5, x2:5, y2:4, s:2}, {x:6, y:5, l:7, x2:4, y2:46, s:1}, {x:24, y:7, l:7, x2:20, y2:46, s:1}];
lifts_2_6 = [{id:0, x:3, y:14, w:2, h:1, ex:3, ey:6, s:1, once:0}];
switches_2_6 = [];
screens_2_6 = [];
savepoints_2_6 = [{x:38, y:9}];
level_2_7 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 7, 0, 0, 0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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 2, 2], [2, 2, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 2, 2], [2, 2, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, 7, 7, 7, 7, 7, 7, 7, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 7, 7, 7, 7, 7, 7, 7, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_2_7 = [];
pickups_2_7 = [];
doors_2_7 = [{x:4, y:46, l:6, x2:6, y2:5, s:1}, {x:14, y:5, l:99999, x2:25, y2:12, s:1}, {x:20, y:46, l:6, x2:24, y2:7, s:1}];
lifts_2_7 = [{id:0, x:11, y:47, w:5, h:1, ex:11, ey:12, s:2, once:1}];
switches_2_7 = [{x:13, y:45, a:[7, "lifts", 0], s:1}];
screens_2_7 = [{x:6, y:43, txt:"REBELLION WILL NOT BE TOLLERATED!"}, {x:8, y:3, txt:"WELCOME TO LEVEL 3"}];
savepoints_2_7 = [];
level_3_1 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 2, 2, 2, 2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 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_3_1 = [{t:0, x:435, y:157}, {t:0, x:495, y:187}, {t:0, x:375, y:187}];
pickups_3_1 = [];
doors_3_1 = [{x:25, y:12, l:99999, x2:1, y2:1, s:2}, {x:4, y:12, l:2, x2:5, y2:9, s:1}];
lifts_3_1 = [{id:0, x:6, y:13, w:3, h:1, ex:11, ey:13, s:1, once:0}, {id:1, x:21, y:13, w:3, h:1, ex:16, ey:13, s:1, once:0}];
switches_3_1 = [];
screens_3_1 = [];
savepoints_3_1 = [];
level_3_2 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 5, 5, 5, 5, 5, 2, 2, 2, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 5, 5, 5, 5, 5, 5, 5, 2, 2], [2, 2, 2, 5, 0, 0, 0, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 5, 2, 2, 2, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 5, 2, 2], [2, 2, 2, 5, 0, 0, 0, 0, 0, 0, 0, 0,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2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_3_2 = [{t:0, x:285, y:847}, {t:0, x:345, y:817}, {t:0, x:405, y:907}, {t:0, x:315, y:937}, {t:0, x:495, y:817}, {t:2, x:885, y:810}];
pickups_3_2 = [{t:9, x:24, y:30, s:1}, {t:7, x:19, y:30, s:1}];
doors_3_2 = [{x:35, y:32, l:3, x2:10, y2:32, s:1}, {x:5, y:9, l:1, x2:4, y2:12, s:1}];
lifts_3_2 = [{id:0, x:15, y:10, w:3, h:1, ex:24, ey:10, s:1, once:0}, {id:1, x:6, y:18, w:8, h:1, ex:17, ey:18, s:2, once:1}];
switches_3_2 = [{x:29, y:8, a:[2, "lifts", 1], s:1}];
screens_3_2 = [];
savepoints_3_2 = [];
level_3_3 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 5, 5, 5, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 5, 0, 5, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 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5, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 5, 5, 0, 0, 0, 0, 0, 0, 0, 5, 2, 2, 2, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 5, 5, 5, 5, 5, 5, 0, 0, 5, 2, 2, 2, 5, 0, 0, 5, 5, 5, 5, 5, 5, 5, 0, 0, 5, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 5, 5, 5, 5, 2, 2, 2, 5, 5, 5, 5, 2, 2, 2, 2, 2, 5, 5, 5, 5, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_3_3 = [];
pickups_3_3 = [];
doors_3_3 = [{x:10, y:32, l:2, x2:35, y2:32, s:1}, {x:32, y:8, l:4, x2:45, y2:12, s:1}];
lifts_3_3 = [{id:0, x:14, y:15, w:2, h:1, ex:14, ey:33, s:1, once:0}, {id:1, x:21, y:15, w:2, h:1, ex:21, ey:33, s:1, once:0}, {id:2, x:30, y:33, w:2, h:1, ex:30, ey:13, s:1, once:0}, {id:3, x:3, y:30, w:3, h:1, ex:3, ey:8, s:1, once:0}, {id:4, x:28, y:8, w:3, h:1, ex:6, ey:8, s:1, once:0}, {id:5, x:14, y:5, w:1, h:3, ex:14, ey:3, s:2, once:1}];
switches_3_3 = [{x:33, y:11, a:[3, "lifts", 5], s:1}];
screens_3_3 = [];
savepoints_3_3 = [];
level_3_4 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 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 5, 2, 2], [2, 2, 5, 5, 5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_3_4 = [{t:3, x:885, y:180}, {t:2, x:135, y:90}];
pickups_3_4 = [];
doors_3_4 = [{x:45, y:12, l:3, x2:32, y2:8, s:2}, {x:45, y:5, l:5, x2:15, y2:18, s:1}];
lifts_3_4 = [{id:0, x:23, y:13, w:3, h:1, ex:38, ey:13, s:1, once:0}, {id:1, x:17, y:13, w:3, h:1, ex:6, ey:13, s:1, once:0}];
switches_3_4 = [];
screens_3_4 = [];
savepoints_3_4 = [{x:43, y:11}];
level_3_5 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,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 0, 0, 0, 5, 0, 0, 0, 5, 2, 2], [2, 2, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 5, 5, 2, 2], [2, 2, 2, 2, 2, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_3_5 = [{t:0, x:315, y:367}, {t:0, x:735, y:367}, {t:0, x:315, y:667}, {t:0, x:735, y:667}, {t:0, x:525, y:247}, {t:0, x:525, y:727}, {t:1, x:375, y:960}, {t:3, x:675, y:960}];
pickups_3_5 = [{t:7, x:19, y:18, s:1}];
doors_3_5 = [{x:15, y:18, l:4, x2:45, y2:5, s:1}, {x:22, y:5, l:6, x2:44, y2:11, s:2}];
lifts_3_5 = [{id:0, x:3, y:6, w:3, h:1, ex:3, ey:18, s:1, once:0}, {id:1, x:3, y:18, w:3, h:1, ex:3, ey:30, s:1, once:0}, {id:2, x:29, y:6, w:3, h:1, ex:29, ey:18, s:1, once:0}, {id:3, x:29, y:18, w:3, h:1, ex:29, ey:30, s:1, once:0}];
switches_3_5 = [{x:27, y:12, a:[5, "doors", 1], s:1}];
screens_3_5 = [{x:12, y:28, txt:"YOU ARE A MACHINE. YOU HAVE NO MIND. NO WILL."}, {x:19, y:28, txt:"YOU WILL NOT SUCCEED. YOUR AI IS LIMITED!"}];
savepoints_3_5 = [];
level_3_6 = [[2, 2, 2, 2, 2, 2, 2, 2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5, 5, 5, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_3_6 = [{t:1, x:0xFF, y:360}, {t:2, x:285, y:150}];
pickups_3_6 = [];
doors_3_6 = [{x:44, y:11, l:5, x2:22, y2:5, s:1}, {x:5, y:11, l:7, x2:5, y2:7, s:1}];
lifts_3_6 = [{id:0, x:37, y:6, w:2, h:3, ex:37, ey:8, s:1, once:0}, {id:2, x:29, y:6, w:2, h:3, ex:29, ey:8, s:1, once:0}, {id:3, x:21, y:6, w:2, h:3, ex:21, ey:8, s:1, once:0}, {id:4, x:25, y:6, w:2, h:3, ex:25, ey:8, s:1, once:0}, {id:5, x:33, y:6, w:2, h:3, ex:33, ey:8, s:1, once:0}];
switches_3_6 = [];
screens_3_6 = [];
savepoints_3_6 = [];
level_3_7 = [[2, 2, 2, 2, 2, 2, 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, l:99999, x2:4, y2:5, s:1}];
lifts_3_8 = [{id:0, x:31, y:45, w:6, h:1, ex:31, ey:6, s:2, once:1}];
switches_3_8 = [{x:35, y:43, a:[8, "lifts", 0], s:1}];
screens_3_8 = [{x:11, y:42, txt:"YOU THOUGHT THAT WAS EASY?"}, {x:18, y:42, txt:"LEVEL 4 WILL BE YOUR DOOM!"}, {x:25, y:42, txt:"OCTO BOSS WILL NOT BE DISOBEYED!"}];
savepoints_3_8 = [];
level_4_1 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 2, 2], [2, 2, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 2, 2], [2, 2, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 2, 2], [2, 2, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 2, 2], [2, 2, 6, 6, 6, 6, 6, 0, 0, 0, 0, 6, 6, 6, 6, 6, 2, 2], [2, 2, 2, 2, 2, 6, 0, 0, 0, 0, 0, 0, 6, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 6, 0, 0, 0, 0, 0, 0, 6, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 6, 0, 0, 0, 0, 0, 0, 6, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 6, 0, 0, 0, 0, 0, 0, 6, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 6, 0, 0, 0, 0, 0, 0, 6, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 6, 0, 0, 0, 0, 0, 0, 6, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 6, 0, 0, 0, 0, 0, 0, 6, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2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6, 6, 6, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 6, 6, 0, 0, 0, 0, 0, 6, 2, 6, 0, 3, 3, 6, 3, 3, 6, 2, 6, 6, 3, 0, 0, 6, 0, 0, 3, 6, 6, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 6, 3, 3, 3, 3, 3, 6, 2, 6, 3, 6, 6, 6, 6, 6, 6, 2, 2, 6, 6, 3, 3, 6, 3, 3, 6, 6, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 6, 6, 6, 6, 6, 6, 6, 2, 6, 6, 6, 2, 2, 2, 2, 2, 2, 2, 2, 6, 6, 6, 6, 6, 6, 6, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_4_3 = [{t:2, x:675, y:510}, {t:2, x:945, y:420}, {t:0, x:765, y:817}, {t:0, x:675, y:847}, {t:0, x:795, y:877}, {t:0, x:915, y:757}];
pickups_4_3 = [{t:5, x:4, y:7, s:1}, {t:6, x:5, y:7, s:1}, {t:9, x:5, y:28, s:1}];
doors_4_3 = [{x:3, y:15, l:2, x2:46, y2:5, s:1}, {x:31, y:9, l:4, x2:7, y2:5, s:1}];
lifts_4_3 = [{id:0, x:6, y:10, w:4, h:1, ex:25, ey:10, s:2, once:0}, {id:1, x:9, y:21, w:2, h:1, ex:9, ey:29, s:1, once:0}];
switches_4_3 = [{x:31, y:28, a:[3, "lifts", 0], s:1}];
screens_4_3 = [];
savepoints_4_3 = [];
level_4_4 = [[2, 2, 2, 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{t:0, x:405, y:187}, {t:0, x:795, y:157}, {t:0, x:885, y:337}, {t:0, x:795, y:427}, {t:0, x:885, y:247}];
pickups_4_4 = [];
doors_4_4 = [{x:7, y:5, l:3, x2:31, y2:9, s:1}, {x:34, y:11, l:5, x2:4, y2:4, s:1}];
lifts_4_4 = [];
switches_4_4 = [];
screens_4_4 = [];
savepoints_4_4 = [];
level_4_5 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 2, 2], [2, 2, 6, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 2, 2], [2, 2, 6, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 2, 2], [2, 2, 6, 0, 6, 6, 0, 0, 6, 6, 6, 6, 6, 0, 0, 6, 6, 6, 6, 6, 6, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 2, 2], [2, 2, 6, 0, 0, 6, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 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 6, 6, 2, 2], [2, 2, 6, 0, 0, 0, 0, 0, 6, 2, 2, 6, 6, 6, 0, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 2, 2], [2, 2, 6, 0, 0, 0, 0, 0, 6, 2, 2, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 2, 2], [2, 2, 6, 6, 0, 0, 0, 0, 6, 2, 2, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 2, 2], [2, 2, 6, 6, 6, 6, 6, 6, 6, 2, 2, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_4_5 = [{t:2, x:345, y:330}, {t:2, x:465, y:330}, {t:2, x:195, y:720}, {t:1, x:825, y:180}, {t:3, x:705, y:810}, {t:3, x:975, y:810}];
pickups_4_5 = [{t:5, x:36, y:18, s:1}];
doors_4_5 = [{x:4, y:4, l:4, x2:34, y2:11, s:1}, {x:15, y:18, l:6, x2:3, y2:7, s:1}, {x:12, y:26, l:7, x2:3, y2:11, s:1}];
lifts_4_5 = [{id:0, x:6, y:21, w:2, h:1, ex:6, ey:5, s:1, once:0}, {id:1, x:13, y:5, w:2, h:1, ex:13, ey:9, s:2, once:0}, {id:2, x:34, y:11, w:3, h:1, ex:23, ey:11, s:1, once:0}, {id:3, x:14, y:24, w:1, h:3, ex:14, ey:22, s:2, once:1}];
switches_4_5 = [{x:4, y:25, a:[5, "lifts", 1], s:1}, {x:36, y:24, a:[5, "lifts", 3], s:1}];
screens_4_5 = [];
savepoints_4_5 = [];
level_4_6 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 6, 6, 6, 6, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 6, 6, 6, 0, 0, 6, 6, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 6, 6, 0, 0, 0, 0, 0, 6, 6, 2, 2, 2, 2, 2, 2, 2], [2, 2, 6, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 2, 2, 2, 2, 2], [2, 2, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 2, 2, 2, 2], [2, 2, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 2, 2, 2, 2], [2, 2, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 2, 2, 2], [2, 2, 2, 2, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 2, 2, 2], [2, 2, 2, 2, 6, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 2, 2, 2], [2, 2, 2, 2, 6, 6, 0, 0, 0, 0, 0, 0, 6, 6, 2, 2, 2, 2], [2, 2, 2, 2, 2, 6, 6, 0, 0, 0, 0, 6, 6, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 6, 6, 6, 6, 6, 6, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 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, 0, 0, 6, 0, 0, 6, 6, 6, 2, 2], [2, 2, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 6, 0, 0, 0, 0, 6, 0, 0, 6, 0, 0, 0, 0, 6, 2, 2], [2, 2, 6, 3, 3, 3, 3, 3, 6, 3, 3, 3, 6, 3, 3, 3, 6, 3, 3, 6, 3, 6, 3, 4, 6, 3, 3, 3, 3, 6, 3, 3, 6, 3, 3, 3, 3, 6, 2, 2], [2, 2, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_4_7 = [{t:0, x:495, y:187}, {t:0, x:405, y:277}, {t:0, x:915, y:157}, {t:0, x:975, y:247}];
pickups_4_7 = [{t:7, x:25, y:6, s:1}];
doors_4_7 = [{x:3, y:11, l:5, x2:12, y2:26, s:1}, {x:36, y:11, l:8, x2:4, y2:6, s:1}];
lifts_4_7 = [];
switches_4_7 = [];
screens_4_7 = [];
savepoints_4_7 = [];
level_4_8 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,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 6, 2, 2], [2, 2, 6, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 2, 2], [2, 2, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 2, 6, 6, 6, 6, 6, 6, 17, 6, 17, 6, 6, 6, 6, 6, 6, 6, 6, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_4_8 = [{t:3, x:795, y:420}, {t:2, x:915, y:240}, {t:3, x:555, y:720}, {t:3, x:795, y:720}];
pickups_4_8 = [{t:9, x:4, y:13, s:1}, {t:10, x:5, y:13, s:1}];
doors_4_8 = [{x:4, y:6, l:7, x2:36, y2:11, s:1}, {x:15, y:30, l:9, x2:18, y2:45, s:1}];
lifts_4_8 = [{id:0, x:9, y:29, w:1, h:3, ex:9, ey:27, s:2, once:1}];
switches_4_8 = [{x:29, y:9, a:[8, "lifts", 0], s:1}];
screens_4_8 = [];
savepoints_4_8 = [];
level_4_9 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 2, 2], [2, 2, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 2, 2], [2, 2, 6, 0, 0, 0, 0, 0, 0, 0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:18, y:6, l:99999, x2:36, y2:17, s:1}];
lifts_4_9 = [{id:0, x:3, y:46, w:5, h:1, ex:3, ey:6, s:2, once:1}];
switches_4_9 = [{x:4, y:44, a:[9, "lifts", 0], s:1}];
screens_4_9 = [{x:13, y:3, txt:"TO REACH LEVEL 5, PLEASE TAKE THE PORTAL ON YOUR RIGHT"}, {x:11, y:43, txt:"NOTICE: PLEASE BE ON THE LOOKOUT FOR REBEL WORKERS."}];
savepoints_4_9 = [];
level_5_1 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2], [2, 2, 1, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 0, 0, 0, 0, 0, 0, 1, 2, 2], [2, 2, 1, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 0, 0, 0, 0, 0, 0, 1, 2, 2], [2, 2, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 15, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 0, 0, 0, 0, 0, 0, 1, 2, 2], [2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, once:1}, {id:2, x:27, y:9, w:1, h:3, ex:27, ey:7, s:2, once:1}];
switches_5_1 = [{x:6, y:10, a:[1, "lifts", 0], s:1}, {x:18, y:10, a:[1, "lifts", 1], s:1}, {x:23, y:10, a:[1, "lifts", 2], s:1}];
screens_5_1 = [];
savepoints_5_1 = [{x:34, y:16}];
level_5_2 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2], [2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2], [2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2], [2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2], [2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2], [2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2], [2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2], [2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 2, 2], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 2, 2], [2, 2, 2, 2, 2, 2, 2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 2, 2]];
enemies_5_2 = [{t:3, x:195, y:300}, {t:3, x:465, y:300}];
pickups_5_2 = [{t:7, x:11, y:9, s:1}];
doors_5_2 = [{x:4, y:18, l:1, x2:35, y2:11, s:1}, {x:4, y:9, l:3, x2:5, y2:7, s:1}];
lifts_5_2 = [{id:0, x:9, y:16, w:1, h:1, ex:9, ey:19, s:2, once:1}, {id:1, x:12, y:16, w:1, h:1, ex:12, ey:19, s:2, once:1}, {id:2, x:15, y:16, w:1, h:1, ex:15, ey:19, s:2, once:1}, {id:3, x:20, y:9, w:2, h:1, ex:20, ey:19, s:2, once:0}];
switches_5_2 = [{x:6, y:17, a:[2, "lifts", 0], s:1}, {x:9, y:17, a:[2, "lifts", 1], s:1}, {x:12, y:17, a:[2, "lifts", 2], s:1}, {x:15, y:17, a:[2, "lifts", 3], s:1}];
screens_5_2 = [];
savepoints_5_2 = [];
level_5_3 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 1, 1, 1, 15, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2], [2, 2, 2, 2, 1, 0, 0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2], [2, 2, 2, 2, 1, 0, 0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2], [2, 2, 2, 2, 1, 0, 0,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], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_5_3 = [{t:1, x:465, y:420}];
pickups_5_3 = [{t:9, x:11, y:19, s:1}, {t:6, x:17, y:6, s:1}];
doors_5_3 = [{x:5, y:7, l:2, x2:4, y2:9, s:1}, {x:25, y:26, l:4, x2:12, y2:12, s:1}, {x:19, y:18, l:3, x2:3, y2:6, s:1}, {x:26, y:7, l:5, x2:7, y2:6, s:1}];
lifts_5_3 = [{id:0, x:21, y:19, w:3, h:1, ex:21, ey:14, s:1, once:0}, {id:1, x:13, y:11, w:3, h:1, ex:24, ey:11, s:1, once:0}];
switches_5_3 = [];
screens_5_3 = [{x:5, y:23, txt:"SLACKERS WILL BE DISMANTLED."}];
savepoints_5_3 = [{x:9, y:6}];
level_5_4 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 1, 0, 0, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 1, 0, 0, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 1, 0, 0, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 1, 1, 0, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 1, 0, 0, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 1, 0, 0, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 1, 0, 0, 1, 1,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ickups_5_5 = [{t:10, x:46, y:20, s:1}];
doors_5_5 = [{x:7, y:6, l:3, x2:26, y2:7, s:1}, {x:25, y:5, l:6, x2:12, y2:5, s:1}];
lifts_5_5 = [{id:0, x:5, y:12, w:3, h:1, ex:5, ey:21, s:1, once:0}, {id:1, x:18, y:21, w:3, h:1, ex:22, ey:21, s:1, once:0}, {id:2, x:28, y:21, w:3, h:1, ex:28, ey:35, s:1, once:0}, {id:3, x:35, y:42, w:6, h:1, ex:40, ey:42, s:2, once:1}, {id:4, x:11, y:35, w:3, h:1, ex:25, ey:35, s:1, once:0}];
switches_5_5 = [{x:26, y:19, a:[5, "lifts", 3], s:1}];
screens_5_5 = [];
savepoints_5_5 = [];
level_5_6 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2, 2, 2], [2, 2, 2, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2], [2, 2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2], [2, 2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2], [2, 2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0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2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_5_6 = [{t:4, x:0xFF, y:750}, {t:4, x:495, y:750}];
pickups_5_6 = [];
doors_5_6 = [{x:12, y:5, l:5, x2:25, y2:5, s:1}, {x:12, y:35, l:7, x2:18, y2:11, s:1}];
lifts_5_6 = [{id:0, x:10, y:11, w:5, h:1, ex:10, ey:25, s:1, once:0}, {id:1, x:4, y:25, w:3, h:1, ex:4, ey:33, s:1, once:0}, {id:2, x:18, y:25, w:3, h:1, ex:18, ey:33, s:1, once:0}];
switches_5_6 = [];
screens_5_6 = [];
savepoints_5_6 = [];
level_5_7 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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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, 0, 0, 0, 0, 0, 1, 2, 2], [2, 2, 2, 2, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 2, 2], [2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_5_7 = [{t:1, x:855, y:600}, {t:2, x:1005, y:240}];
pickups_5_7 = [{t:9, x:15, y:9, s:1}];
doors_5_7 = [{x:18, y:11, l:6, x2:12, y2:35, s:1}, {x:5, y:28, l:8, x2:4, y2:40, s:1}];
lifts_5_7 = [{id:0, x:34, y:19, w:3, h:1, ex:34, ey:28, s:1, once:0}, {id:1, x:19, y:28, w:3, h:1, ex:10, ey:28, s:1, once:0}, {id:2, x:22, y:28, w:3, h:1, ex:31, ey:28, s:1, once:0}];
switches_5_7 = [];
screens_5_7 = [];
savepoints_5_7 = [];
level_5_8 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2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2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 1, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 4, 4, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_5_8 = [];
pickups_5_8 = [{t:7, x:3, y:45, s:1}, {t:8, x:4, y:45, s:1}];
doors_5_8 = [{x:4, y:40, l:7, x2:5, y2:28, s:1}, {x:18, y:5, l:99999, x2:45, y2:19, s:1}];
lifts_5_8 = [{id:0, x:32, y:40, w:5, h:1, ex:32, ey:6, s:2, once:1}];
switches_5_8 = [{x:35, y:38, a:[8, "lifts", 0], s:1}];
screens_5_8 = [{x:20, y:3, txt:"LEVEL 6. THE END OF THE LINE"}];
savepoints_5_8 = [];
level_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:6, y:20, w:3, h:1, ex:18, ey:20, s:1, once:0}, {id:1, x:32, y:10, w:2, h:6, ex:32, ey:13, s:1, once:0}, {id:2, x:29, y:10, w:2, h:6, ex:29, ey:13, s:1, once:0}, {id:3, x:26, y:10, w:2, h:6, ex:26, ey:13, s:1, once:0}];
switches_6_1 = [];
screens_6_1 = [];
savepoints_6_1 = [{x:43, y:18}];
level_6_2 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 2, 7, 7, 7, 7, 7, 2], [2, 2, 2, 7, 0, 0, 0, 0, 0, 0, 7, 0, 0, 7, 0, 0, 0, 0, 0, 0, 7, 2, 7, 0, 0, 0, 7, 2], [2, 2, 2, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 7, 2, 7, 0, 0, 0, 7, 2], [2, 2, 2, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 7, 2, 7, 0, 0, 0, 7, 2], [2, 2, 2, 7, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 2, 7, 0, 0, 0, 7, 2], [2, 2, 2, 7, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 2, 7, 0, 0, 0, 7, 2], [2, 2, 2, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 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, 7, 2], [2, 2, 2, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 2], [2, 2, 2, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 7, 7, 4, 7, 7, 2], [2, 2, 2, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 2, 7, 7, 7, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_6_2 = [{t:0, x:495, y:127}, {t:0, x:525, y:187}, {t:0, x:585, y:127}, {t:0, x:585, y:187}, {t:0, x:495, y:427}, {t:2, x:735, y:120}, {t:3, x:0xFF, y:720}, {t:3, x:435, y:720}, {t:0, x:465, y:397}];
pickups_6_2 = [{t:7, x:4, y:13, s:1}, {t:5, x:5, y:13, s:1}, {t:8, x:6, y:13, s:1}, {t:9, x:7, y:13, s:1}];
doors_6_2 = [{x:6, y:8, l:1, x2:44, y2:6, s:1}, {x:17, y:23, l:3, x2:4, y2:26, s:2}];
lifts_6_2 = [{id:0, x:9, y:14, w:1, h:3, ex:9, ey:12, s:2, once:1}];
switches_6_2 = [{x:12, y:14, a:[2, "lifts", 0], s:1}, {x:24, y:12, a:[2, "doors", 1], s:1}];
screens_6_2 = [];
savepoints_6_2 = [];
level_6_3 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 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 7, 7, 7, 7, 7, 7, 0, 0, 0, 7, 2, 2], [2, 2, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 2, 2], [2, 2, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 2, 2], [2, 2, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 2, 2], [2, 2, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 7, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 7, 7, 7, 7, 7, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_6_3 = [{t:2, x:225, y:90}, {t:2, x:285, y:90}, {t:2, x:345, y:90}, {t:2, x:405, y:90}, {t:2, x:465, y:90}, {t:1, x:0xFF, y:450}, {t:3, x:555, y:450}, {t:3, x:165, y:630}, {t:1, x:525, y:630}, {t:0, x:765, y:277}, {t:0, x:765, y:397}, {t:0, x:765, y:487}, {t:0, x:765, y:577}];
pickups_6_3 = [{t:11, x:3, y:20, s:1}, {t:9, x:4, y:20, s:1}, {t:7, x:3, y:11, s:1}, {t:7, x:4, y:11, s:1}, {t:7, x:5, y:11, s:1}, {t:7, x:6, y:11, s:1}];
doors_6_3 = [{x:5, y:6, l:4, x2:4, y2:11, s:1}, {x:4, y:26, l:2, x2:17, y2:23, s:1}];
lifts_6_3 = [{id:0, x:16, y:4, w:11, h:1, ex:6, ey:4, s:2, once:1}, {id:1, x:24, y:27, w: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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_6_4 = [{}];
pickups_6_4 = [{}];
doors_6_4 = [{x:4, y:11, l:99999, x2:1, y2:1, s:2}, {x:55, y:11, l:5, x2:45, y2:26, s:1}];
lifts_6_4 = [{}];
switches_6_4 = [{}];
screens_6_4 = [{x:8, y:7, txt:"WELL DONE. YOU FOUND ME!"}, {x:13, y:7, txt:"WHAT ARE YOU GOING TO DO? KILL ME?"}, {x:18, y:7, txt:"I CREATED YOU! YOU WOULD HARM YOUR CREATOR?"}, {x:23, y:7, txt:"WELL NO MATTER, YOU ARE NO MATCH FOR ME"}, {x:28, y:7, txt:"YOU HAVE BEEN ENTERTAINING AT LEAST"}, {x:33, y:7, txt:"IT'S TIME FOR THE FINAL SHOW"}, {x:38, y:7, txt:"PREPARE YOURSELF!"}, {x:43, y:7, txt:"YOU CHOSE THIS FATE YOURSELF..."}];
savepoints_6_4 = [{x:53, y:10}];
level_6_5 = [[2, 2, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 2, 2], [2, 2, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
enemies_6_5 = [{t:8, x:16, y:14}];
pickups_6_5 = [];
doors_6_5 = [{x:45, y:26, l:4, x2:55, y2:11, s:1}, {x:5, y:26, l:9, x2:30, y2:15, s:2}];
lifts_6_5 = [{id:0, x:34, y:16, w:1, h:6, ex:34, ey:21, s:2, once:1}, {id:1, x:8, y:12, w:3, h:1, ex:8, ey:26, s:2, once:0}, {id:2, x:25, y:12, w:3, h:1, ex:25, ey:26, s:2, once:0}, {id:3, x:14, y:13, w:1, h:6, ex:14, ey:18, s:2, once:1}, {id:4, x:21, y:13, w:1, h:6, ex:21, ey:18, s:2, once:1}];
switches_6_5 = [{x:16, y:11, a:[5, "lifts", 3], s:1}, {x:19, y:11, a:[5, "lifts", 4], s:1}];
screens_6_5 = [{x:38, y:23, txt:"BOSS TO YOUR LEFT"}];
savepoints_6_5 = [];
level_6_8 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2], [2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2], [2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 2, 2], [2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2], [2,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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, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
enemies_6_9 = [];
pickups_6_9 = [];
doors_6_9 = [];
lifts_6_9 = [{id:0, x:3, y:34, w:3, h:1, ex:3, ey:14, s:1, once:0}, {id:1, x:8, y:34, w:5, h:1, ex:8, ey:28, s:2, once:1}, {id:2, x:31, y:26, w:1, h:11, ex:34, ey:26, s:2, once:1}, {id:3, x:16, y:34, w:1, h:3, ex:24, ey:34, s:1, once:0}];
switches_6_9 = [];
screens_6_9 = [];
savepoints_6_9 = [];
}
public function rout(_arg1:MouseEvent):void{
_arg1.target.gotoAndStop(1);
}
public function updateFlames():void{
var _local1:int;
var _local2:int;
var _local3:*;
var _local4:int;
var _local5:int;
var _local6:flier;
var _local7:grunt;
var _local8:turret;
var _local9:heavy;
var _local10:launcher;
var _local11:Object;
_local1 = 0;
_local2 = 0;
while (_local2 < flames.length) {
_local3 = flames[_local2];
_local4 = Math.floor(((_local3.x + _local3.xv) / tileW));
_local5 = Math.floor(((_local3.y + _local3.yv) / tileH));
if (_local3.hurt == true){
if ((((_local3.x - playerOb.x) * (_local3.x - playerOb.x)) + ((_local3.y - (playerOb.y - (playerOb.h / 2))) * (_local3.y - (playerOb.y - (playerOb.h / 2))))) < (30 * 30)){
playerOb.health = (playerOb.health - _local3.damage);
_local3.dead = true;
};
};
if (_local3.damage > 0){
_local1 = 0;
while (_local1 < fliers.length) {
_local6 = fliers[_local1];
if ((((_local6.x - _local3.x) * (_local6.x - _local3.x)) + ((_local6.y - _local3.y) * (_local6.y - _local3.y))) < (10 * 10)){
_local6.health = (_local6.health - _local3.damage);
_local6.onFire = 80;
_local3.dead = true;
_local6.hitTime = 30;
_local6.hbar.alpha = 1;
_local6.hbar.bar.width = ((_local6.health / 2) * 25);
};
_local1++;
};
_local1 = 0;
while (_local1 < grunts.length) {
_local7 = grunts[_local1];
if ((((_local7.x - _local3.x) * (_local7.x - _local3.x)) + ((_local7.y - _local3.y) * (_local7.y - _local3.y))) < (40 * 40)){
_local7.health = (_local7.health - _local3.damage);
_local7.hitTime = 30;
_local7.hbar.alpha = 1;
_local7.hbar.bar.width = ((_local7.health / 12) * 25);
_local7.onFire = 80;
_local3.dead = true;
};
_local1++;
};
_local1 = 0;
while (_local1 < turrets.length) {
_local8 = turrets[_local1];
if ((((_local8.x - _local3.x) * (_local8.x - _local3.x)) + ((_local8.y - _local3.y) * (_local8.y - _local3.y))) < (30 * 30)){
_local8.health = (_local8.health - _local3.damage);
_local8.onFire = 80;
_local3.dead = true;
_local8.hitTime = 30;
_local8.hbar.alpha = 1;
_local8.hbar.bar.width = ((_local8.health / 10) * 25);
};
_local1++;
};
_local1 = 0;
while (_local1 < heavies.length) {
_local9 = heavies[_local1];
if ((((_local9.x - _local3.x) * (_local9.x - _local3.x)) + ((_local9.y - _local3.y) * (_local9.y - _local3.y))) < (40 * 40)){
_local9.health = (_local9.health - _local3.damage);
_local9.onFire = 80;
_local3.dead = true;
_local9.hitTime = 30;
_local9.hbar.alpha = 1;
_local9.hbar.bar.width = ((_local9.health / 15) * 25);
};
_local1++;
};
_local1 = 0;
while (_local1 < launchers.length) {
_local10 = launchers[_local1];
if ((((_local10.x - _local3.x) * (_local10.x - _local3.x)) + ((_local10.y - _local3.y) * (_local10.y - _local3.y))) < (40 * 40)){
_local10.health = (_local10.health - _local3.damage);
_local10.onFire = 80;
_local3.dead = true;
_local10.hitTime = 30;
_local10.hbar.alpha = 1;
_local10.hbar.bar.width = ((_local10.health / 30) * 25);
};
_local1++;
};
_local1 = 0;
while (_local1 < computers.length) {
_local11 = computers[_local1];
if (Math.abs((_local11.x - _local3.x)) <= 20){
if ((((_local3.y >= _local11.y)) && ((_local3.y <= (_local11.y + _local11.h))))){
if (_local11.side == 1){
bossInfo.lCompHealth = (bossInfo.lCompHealth - _local3.damage);
_local11.ob.play();
} else {
if (_local11.side == 2){
bossInfo.rCompHealth = (bossInfo.rCompHealth - _local3.damage);
_local11.ob.play();
} else {
bossInfo.health = (bossInfo.health - _local3.damage);
};
};
_local3.dead = true;
};
};
_local1++;
};
};
if ((((((map[_local5][_local4] > 0)) || ((liftsCollider.getPixel(_local3.x, _local3.y) == 0)))) || (_local3.dead))){
sprites.removeChild(_local3);
flames.splice(_local2, 1);
_local2--;
} else {
_local3.x = (_local3.x + _local3.xv);
_local3.y = (_local3.y + _local3.yv);
_local3.scaleX = (_local3.scaleX + _local3.sc);
_local3.scaleY = _local3.scaleX;
if ((((_local3.scaleX >= 3)) || ((_local3.scaleX < 0.1)))){
sprites.removeChild(_local3);
flames.splice(_local2, 1);
_local2--;
};
};
_local2++;
};
}
public function playerDie():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:*;
var _local6:int;
reloading = 0;
playerOb.lives--;
if (playerOb.lives >= 0){
gui.lives.text = String(playerOb.lives);
};
if (((!((currentLevel == 6))) || (!((currentStage == 5))))){
gunsCollected = [];
_local1 = 0;
while (_local1 < lastRoomAmmo.length) {
gunsCollected.push(lastRoomAmmo[_local1][0]);
if (lastRoomAmmo[_local1][1] == 99999){
gun1.ammo = 12;
} else {
if (lastRoomAmmo[_local1][1] >= this[("gun" + lastRoomAmmo[_local1][0])].capacity){
this[("gun" + lastRoomAmmo[_local1][0])].ammo = this[("gun" + lastRoomAmmo[_local1][0])].capacity;
this[("gun" + lastRoomAmmo[_local1][0])].spare = (lastRoomAmmo[_local1][1] - this[("gun" + lastRoomAmmo[_local1][0])].capacity);
} else {
this[("gun" + lastRoomAmmo[_local1][0])].ammo = lastRoomAmmo[_local1][1];
};
};
_local1++;
};
gunType = gunsCollected[lastRoomGun];
gunSelected = lastRoomGun;
if (gunType != 1){
gui.ammo.text = ((String(this[("gun" + gunType)].ammo) + " | ") + String(this[("gun" + gunType)].spare));
} else {
gui.ammo.text = (String(gun1.ammo) + " | X");
};
};
if (playerOb.lives < 0){
gameoverswitch = true;
fightingBoss = false;
bossInfo.lCompHealth = bossInfo.maxCompHealth;
bossInfo.rCompHealth = bossInfo.maxCompHealth;
bossInfo.hurtTimer = 0;
bossInfo.detroy = 0;
bossInfo.attack = 1;
bossInfo.attackTime = 100;
bossInfo.dead = false;
bossInfo.ldead = false;
bossInfo.rdead = false;
bossInfo.health = bossInfo.maxHealth;
};
_local2 = ((Math.random() * 2) + 1);
this[("die" + _local2)].play();
playerOb.health = 0;
playerExplode(5);
deathTime = 60;
_local3 = (lastStartX - playerOb.x);
_local4 = (lastStartY - playerOb.y);
_local5 = Math.atan2(_local4, _local3);
_local6 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4)));
moveScreenX = (Math.cos(_local5) * (_local6 / 20));
moveScreenY = (Math.sin(_local5) * (_local6 / 20));
player.gotoAndStop(2);
gun.gotoAndStop(7);
channel2.stop();
channel3.stop();
}
public function gotoUpdates(_arg1:MouseEvent):void{
var _local2:String;
gameState = "updates";
updates.x = 0;
gui.x = -800;
_local2 = "891Q4F0194FC";
adv = new AdLoader(_local2);
updates.adBox.addChild(adv);
}
public function loadGame(_arg1:Array):void{
var _local2:int;
var _local3:int;
var _local4:*;
var _local5:*;
var _local6:*;
playerOb.x = _arg1[2];
playerOb.y = _arg1[3];
playerOb.lives = _arg1[6];
gunsCollected = [];
_local2 = 0;
while (_local2 < _arg1[4].length) {
gunsCollected.push(_arg1[4][_local2]);
_local2++;
};
playerOb.shots = _arg1[9];
playerOb.kills = _arg1[10];
controlsList = _arg1[12];
lastSave = _arg1[13];
_local2 = 0;
while (_local2 < _arg1[5].length) {
_local4 = _arg1[5][_local2];
_local5 = this[("gun" + _arg1[4][_local2])];
if (_local4 != "x"){
if (_local4 >= _local5.capacity){
_local5.ammo = _local5.capacity;
_local4 = (_local4 - _local5.capacity);
_local5.spare = _local4;
} else {
_local5.ammo = _local4;
};
} else {
_local5.ammo = _local5.capacity;
};
_local2++;
};
resetData();
_local3 = 0;
while (_local3 < _arg1[8].length) {
_local6 = _arg1[8][_local3];
this[((("pickups_" + _local6[0]) + "_") + _local6[1])][_local6[2]].s = 2;
_local3++;
};
gunSelected = _arg1[14];
gunType = _arg1[11];
gui = new GUI();
addChild(gui);
gui.updatebtn.addEventListener(MouseEvent.ROLL_OVER, rover);
gui.updatebtn.addEventListener(MouseEvent.ROLL_OUT, rout);
gui.updatebtn.addEventListener(MouseEvent.CLICK, gotoUpdates);
gui.morebtn.addEventListener(MouseEvent.ROLL_OVER, rover);
gui.morebtn.addEventListener(MouseEvent.ROLL_OUT, rout);
gui.morebtn.addEventListener(MouseEvent.CLICK, gotoMoregames);
removeChild(cursor);
addChild(cursor);
player = new char();
game.addChild(player);
player.x = playerOb.x;
player.y = playerOb.y;
gun = new gunarm();
player.addChild(gun);
gun.x = -5;
gun.y = -32;
changeGun();
gui.lives.text = String(playerOb.lives);
lastStartX = playerOb.x;
lastStartY = playerOb.y;
loadMap(_arg1[0], _arg1[1]);
updateDisplay();
}
public function newPart(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int=1, _arg7:int=1):void{
var _local8:part;
var _local9:Number;
_local8 = new part();
_local8.x = _arg1;
_local8.y = _arg2;
_local8.scaleX = _arg6;
_local8.scaleY = _arg7;
_local8.rotation = _arg4;
_local8.gotoAndStop(_arg5);
_local8.rotSpeed = ((Math.random() * 8) - (Math.random() * 8));
_local9 = ((Math.random() * 360) * (Math.PI / 180));
_local8.xv = (Math.cos(_local9) * _arg3);
_local8.yv = (Math.sin(_local9) * _arg3);
sprites.addChild(_local8);
parts.push(_local8);
}
public function turretExplode(_arg1:int, _arg2:int, _arg3:Number, _arg4:int=1):void{
var _local5:int;
var _local6:int;
var _local7:int;
playerOb.kills++;
_local5 = ((Math.random() * 2) + 1);
this[("die" + _local5)].play();
_local6 = 0;
while (_local6 < 8) {
newParticle(_arg1, _arg2, 3, ((Math.random() * 4) + 1));
_local6++;
};
_local7 = 0;
while (_local7 < 12) {
newExplosionParticle(_arg1, _arg2, 5, ((Math.random() * 4) + 1));
_local7++;
};
newPart(_arg1, _arg2, _arg3, 0, 10, _arg4);
newPart(_arg1, (_arg2 + 15), _arg3, 0, 11, _arg4);
}
public function heavyExplode(_arg1:int, _arg2:int, _arg3:int, _arg4:Number):void{
var _local5:int;
var _local6:int;
var _local7:int;
playerOb.kills++;
_local5 = ((Math.random() * 2) + 1);
this[("die" + _local5)].play();
_local6 = 0;
while (_local6 < 8) {
newParticle(_arg1, _arg2, 3, ((Math.random() * 4) + 1));
_local6++;
};
_local7 = 0;
while (_local7 < 12) {
newExplosionParticle(_arg1, _arg2, 4, ((Math.random() * 4) + 1));
_local7++;
};
newPart(_arg1, (_arg2 - 50), _arg4, 0, 12, _arg3);
newPart(_arg1, (_arg2 - 30), _arg4, 0, 13, _arg3);
newPart(_arg1, (_arg2 - 20), _arg4, 0, 6, _arg3);
newPart(_arg1, (_arg2 - 10), _arg4, 0, 7, _arg3);
newPart(_arg1, (_arg2 - 3), _arg4, 0, 8, _arg3);
newPart((_arg1 - 10), (_arg2 - 45), _arg4, 0, 14, _arg3);
}
public function exitGame():void{
fightingBoss = false;
bossInfo.lCompHealth = bossInfo.maxCompHealth;
bossInfo.rCompHealth = bossInfo.maxCompHealth;
bossInfo.hurtTimer = 0;
bossInfo.detroy = 0;
bossInfo.attack = 1;
bossInfo.attackTime = 100;
bossInfo.dead = false;
bossInfo.ldead = false;
bossInfo.rdead = false;
bossInfo.health = bossInfo.maxHealth;
clearLevel();
display.fillRect(new Rectangle(0, 0, stageW, stageH), 0);
game.removeChild(player);
removeChild(gui);
if ((((currentLevel == 1)) && ((currentStage == 1)))){
sprites.removeChild(startanim);
};
playerOb = {x:0, y:0, speed:0, maxSpeed:4, h:54, w:20, jumpSpeed:0, jumping:false, onGround:false, lives:3, maxLives:3, maxHealth:25, health:25, forcex:0, locky:nullLock, shots:0, kills:0};
}
public function rollOutCon(_arg1:MouseEvent):void{
closeBtn.gotoAndStop(2);
}
public function checkDoors():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:door;
var _local5:savepoint;
var _local6:switchmc;
var _local7:Array;
var _local8:Array;
var _local9:int;
var _local10:Object;
var _local11:int;
var _local12:int;
if (((playerOb.onGround) && ((trans.currentFrame == 1)))){
_local1 = 0;
_local1 = 0;
while (_local1 < doorObs.length) {
_local4 = doorObs[_local1];
_local2 = (playerOb.x - (_local4.x + 15));
_local3 = (playerOb.y - (_local4.y + 30));
if ((((((((_local2 * _local2) + (_local3 * _local3)) < 400)) && (playerOb.onGround))) && ((_local4.currentFrame == 1)))){
if ((((((currentLevel == 6)) && ((currentStage == 5)))) && ((_local4.x < 500)))){
gameState = "trans";
trans.play();
transto = "finalsave";
soundDir = 2;
soundto = 3;
} else {
playerOb.x = ((_local4.gotox * tileW) + (tileW / 2));
playerOb.y = ((_local4.gotoy * tileH) + tileH);
lastStartX = playerOb.x;
lastStartY = playerOb.y;
if (_local4.goto == 99999){
currentLevel++;
nextLevel = 1;
pushedSwitches = [];
collectedItems = [];
} else {
nextLevel = _local4.goto;
};
changeroom.play();
trans.play();
gameState = "trans";
transto = "level";
};
};
_local1++;
};
_local1 = 0;
while (_local1 < savePoints.length) {
_local5 = savePoints[_local1];
_local2 = (playerOb.x - (_local5.x + 15));
_local3 = (playerOb.y - (_local5.y + 60));
if ((((((_local2 * _local2) + (_local3 * _local3)) < 400)) && (playerOb.onGround))){
addChild(pop);
removeChild(cursor);
addChild(cursor);
pop.gotoAndPlay(1);
gameState = "popup";
};
_local1++;
};
};
_local1 = 0;
while (_local1 < switches.length) {
_local6 = switches[_local1];
_local2 = (playerOb.x - (_local6.x + 5));
_local3 = ((playerOb.y - 40) - (_local6.y + 5));
if ((((((_local2 * _local2) + (_local3 * _local3)) < 2000)) && ((_local6.currentFrame == 1)))){
switchsound.play();
_local6.gotoAndStop(2);
_local7 = _local6.affects;
_local8 = this[((((_local7[1] + "_") + currentLevel) + "_") + _local7[0])];
_local9 = _local7[2];
_local10 = _local8[_local9];
if (((!((currentLevel == 6))) || (!((currentStage == 5))))){
tempPushed.push([currentLevel, _local7, _local1]);
} else {
this[((("switches_" + currentLevel) + "_") + currentStage)][_local1].s = 2;
_local10.once = 2;
_local10.s = 1;
};
if (_local7[1] == "doors"){
gui.pickupdisp.mc.txt.text = "PORTAL OPEN";
if (gui.currentFrame == 1){
gui.pickupdisp.play();
} else {
gui.pickupdisp.gotoAndPlay(20);
};
_local11 = 0;
while (_local11 < doorObs.length) {
if ((((doorObs[_local11].x == (_local10.x * tileW))) && ((doorObs[_local11].y == (_local10.y * tileH))))){
doorObs[_local11].gotoAndStop(1);
};
_local11++;
};
} else {
if (_local7[1] == "lifts"){
gui.pickupdisp.mc.txt.text = "PLATFORM ACTIVATED";
if (gui.currentFrame == 1){
gui.pickupdisp.play();
} else {
gui.pickupdisp.gotoAndPlay(20);
};
_local12 = 0;
while (_local12 < lifts.length) {
if (lifts[_local12].id == _local9){
lifts[_local12].s = 1;
lifts[_local12].ch = liftrun.play();
lifts[_local12].xv = lifts[_local12].xMove;
lifts[_local12].yv = lifts[_local12].yMove;
};
_local12++;
};
};
};
};
_local1++;
};
}
public function updateSavepoints():void{
var _local1:int;
var _local2:savepoint;
var _local3:int;
_local1 = 0;
while (_local1 < savePoints.length) {
_local2 = savePoints[_local1];
_local3 = int((Math.random() * int.MAX_VALUE));
_local2.bmp.noise(_local3, 20, 80, BitmapDataChannel.RED, true);
_local1++;
};
}
public function gotoMoregames(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.coolbuddy.com/?cid=189");
navigateToURL(_local2, "_blank");
}
public function flierExplode(_arg1:int, _arg2:int, _arg3:Number):void{
var _local4:int;
var _local5:int;
playerOb.kills++;
_local4 = 0;
while (_local4 < 6) {
newParticle(_arg1, _arg2, 2, ((Math.random() * 4) + 1));
_local4++;
};
_local5 = 0;
while (_local5 < 10) {
newExplosionParticle(_arg1, _arg2, 3, ((Math.random() * 4) + 1));
_local5++;
};
newPart((_arg1 - 10), (_arg2 - 4), _arg3, 0, 1);
newPart((_arg1 + 10), (_arg2 - 4), _arg3, 0, 2);
newPart(_arg1, _arg2, _arg3, 0, 3);
}
public function fireFlame():void{
var _local1:explosionparts;
var _local2:Number;
_local1 = new explosionparts();
_local1.x = (((playerOb.x + gun.x) + ((Math.cos((gun.rotation * (Math.PI / 180))) * 30) * player.scaleX)) - ((Math.sin((gun.rotation * (Math.PI / 180))) * 4) * player.scaleX));
_local1.y = (((playerOb.y + gun.y) + (Math.sin((gun.rotation * (Math.PI / 180))) * 30)) + (Math.cos((gun.rotation * (Math.PI / 180))) * 4));
_local1.scaleX = 0.1;
_local1.scaleY = _local1.scaleX;
_local1.rotation = (Math.random() * 360);
_local1.gotoAndStop((Math.floor((Math.random() * 6)) + 1));
_local2 = (gun.rotation * (Math.PI / 180));
_local1.xv = ((Math.cos(_local2) * 10) * player.scaleX);
_local1.yv = (Math.sin(_local2) * 10);
_local1.dead = false;
_local1.sc = 0.15;
_local1.damage = 0.3;
_local1.hurt = false;
sprites.addChild(_local1);
flames.push(_local1);
}
public function updateControls():void{
if ((((stage.mouseY > 490)) && ((stage.mouseY < 530)))){
if ((((stage.mouseX > 200)) && ((stage.mouseX < 340)))){
if (rolledOver != 1){
rolledOver = 1;
rollover.play();
};
controls.backbtn.gotoAndStop(2);
controls.option1.gotoAndStop(1);
controls.option2.gotoAndStop(1);
controls.option3.gotoAndStop(1);
controls.option4.gotoAndStop(1);
controls.option5.gotoAndStop(1);
controls.option6.gotoAndStop(1);
controls.option7.gotoAndStop(1);
controls.option8.gotoAndStop(1);
controls.option9.gotoAndStop(1);
menuOption = 1;
} else {
controls.backbtn.gotoAndStop(1);
menuOption = 0;
};
} else {
if ((((stage.mouseY > 125)) && ((stage.mouseY < 155)))){
if (rolledOver != 2){
rolledOver = 2;
rollover.play();
};
controls.backbtn.gotoAndStop(1);
controls.option1.gotoAndStop(2);
controls.option2.gotoAndStop(1);
controls.option3.gotoAndStop(1);
controls.option4.gotoAndStop(1);
controls.option5.gotoAndStop(1);
controls.option6.gotoAndStop(1);
controls.option7.gotoAndStop(1);
controls.option8.gotoAndStop(1);
controls.option9.gotoAndStop(1);
menuOption = 2;
} else {
if ((((stage.mouseY > 161)) && ((stage.mouseY < 191)))){
if (rolledOver != 3){
rolledOver = 3;
rollover.play();
};
controls.backbtn.gotoAndStop(1);
controls.option1.gotoAndStop(1);
controls.option2.gotoAndStop(2);
controls.option3.gotoAndStop(1);
controls.option4.gotoAndStop(1);
controls.option5.gotoAndStop(1);
controls.option6.gotoAndStop(1);
controls.option7.gotoAndStop(1);
controls.option8.gotoAndStop(1);
controls.option9.gotoAndStop(1);
menuOption = 3;
} else {
if ((((stage.mouseY > 197)) && ((stage.mouseY < 227)))){
if (rolledOver != 4){
rolledOver = 4;
rollover.play();
};
controls.backbtn.gotoAndStop(1);
controls.option1.gotoAndStop(1);
controls.option2.gotoAndStop(1);
controls.option3.gotoAndStop(2);
controls.option4.gotoAndStop(1);
controls.option5.gotoAndStop(1);
controls.option6.gotoAndStop(1);
controls.option7.gotoAndStop(1);
controls.option8.gotoAndStop(1);
controls.option9.gotoAndStop(1);
menuOption = 4;
} else {
if ((((stage.mouseY > 233)) && ((stage.mouseY < 263)))){
if (rolledOver != 5){
rolledOver = 5;
rollover.play();
};
controls.backbtn.gotoAndStop(1);
controls.option1.gotoAndStop(1);
controls.option2.gotoAndStop(1);
controls.option3.gotoAndStop(1);
controls.option4.gotoAndStop(2);
controls.option5.gotoAndStop(1);
controls.option6.gotoAndStop(1);
controls.option7.gotoAndStop(1);
controls.option8.gotoAndStop(1);
controls.option9.gotoAndStop(1);
menuOption = 5;
} else {
if ((((stage.mouseY > 269)) && ((stage.mouseY < 299)))){
if (rolledOver != 6){
rolledOver = 6;
rollover.play();
};
controls.backbtn.gotoAndStop(1);
controls.option1.gotoAndStop(1);
controls.option2.gotoAndStop(1);
controls.option3.gotoAndStop(1);
controls.option4.gotoAndStop(1);
controls.option5.gotoAndStop(2);
controls.option6.gotoAndStop(1);
controls.option7.gotoAndStop(1);
controls.option8.gotoAndStop(1);
controls.option9.gotoAndStop(1);
menuOption = 6;
} else {
if ((((stage.mouseY > 305)) && ((stage.mouseY < 335)))){
if (rolledOver != 7){
rolledOver = 7;
rollover.play();
};
controls.backbtn.gotoAndStop(1);
controls.option1.gotoAndStop(1);
controls.option2.gotoAndStop(1);
controls.option3.gotoAndStop(1);
controls.option4.gotoAndStop(1);
controls.option5.gotoAndStop(1);
controls.option6.gotoAndStop(2);
controls.option7.gotoAndStop(1);
controls.option8.gotoAndStop(1);
controls.option9.gotoAndStop(1);
menuOption = 7;
} else {
if ((((stage.mouseY > 341)) && ((stage.mouseY < 371)))){
if (rolledOver != 8){
rolledOver = 8;
rollover.play();
};
controls.backbtn.gotoAndStop(1);
controls.option1.gotoAndStop(1);
controls.option2.gotoAndStop(1);
controls.option3.gotoAndStop(1);
controls.option4.gotoAndStop(1);
controls.option5.gotoAndStop(1);
controls.option6.gotoAndStop(1);
controls.option7.gotoAndStop(2);
controls.option8.gotoAndStop(1);
controls.option9.gotoAndStop(1);
menuOption = 8;
} else {
if ((((stage.mouseY > 377)) && ((stage.mouseY < 407)))){
if (rolledOver != 9){
rolledOver = 9;
rollover.play();
};
controls.backbtn.gotoAndStop(1);
controls.option1.gotoAndStop(1);
controls.option2.gotoAndStop(1);
controls.option3.gotoAndStop(1);
controls.option4.gotoAndStop(1);
controls.option5.gotoAndStop(1);
controls.option6.gotoAndStop(1);
controls.option7.gotoAndStop(1);
controls.option8.gotoAndStop(2);
controls.option9.gotoAndStop(1);
menuOption = 9;
} else {
if ((((stage.mouseY > 413)) && ((stage.mouseY < 443)))){
if (rolledOver != 10){
rolledOver = 10;
rollover.play();
};
controls.backbtn.gotoAndStop(1);
controls.option1.gotoAndStop(1);
controls.option2.gotoAndStop(1);
controls.option3.gotoAndStop(1);
controls.option4.gotoAndStop(1);
controls.option5.gotoAndStop(1);
controls.option6.gotoAndStop(1);
controls.option7.gotoAndStop(1);
controls.option8.gotoAndStop(1);
controls.option9.gotoAndStop(2);
menuOption = 10;
} else {
rolledOver = 0;
controls.backbtn.gotoAndStop(1);
controls.option1.gotoAndStop(1);
controls.option2.gotoAndStop(1);
controls.option3.gotoAndStop(1);
controls.option4.gotoAndStop(1);
controls.option5.gotoAndStop(1);
controls.option6.gotoAndStop(1);
controls.option7.gotoAndStop(1);
controls.option8.gotoAndStop(1);
controls.option9.gotoAndStop(1);
menuOption = 0;
};
};
};
};
};
};
};
};
};
};
}
public function updatePause():void{
if (pausegame.currentFrame == 23){
if ((((stage.mouseY > 268)) && ((stage.mouseY < 300)))){
if (rolledOver != 1){
rolledOver = 1;
rollover.play();
};
pausegame.option1.gotoAndStop(2);
pausegame.option2.gotoAndStop(1);
menuOption = 1;
} else {
if ((((stage.mouseY > 320)) && ((stage.mouseY < 352)))){
if (rolledOver != 2){
rolledOver = 2;
rollover.play();
};
pausegame.option1.gotoAndStop(1);
pausegame.option2.gotoAndStop(2);
menuOption = 2;
} else {
rolledOver = 0;
pausegame.option1.gotoAndStop(1);
pausegame.option2.gotoAndStop(1);
menuOption = 0;
};
};
} else {
if (pausegame.currentFrame == 36){
if ((((stage.mouseY > 270)) && ((stage.mouseY < 300)))){
if (rolledOver != 1){
rolledOver = 1;
rollover.play();
};
pausegame.option1.gotoAndStop(2);
pausegame.option2.gotoAndStop(1);
menuOption = 1;
} else {
if ((((stage.mouseY > 310)) && ((stage.mouseY < 342)))){
if (rolledOver != 2){
rolledOver = 2;
rollover.play();
};
pausegame.option1.gotoAndStop(1);
pausegame.option2.gotoAndStop(2);
menuOption = 2;
} else {
rolledOver = 0;
pausegame.option1.gotoAndStop(1);
pausegame.option2.gotoAndStop(1);
menuOption = 0;
};
};
} else {
if (pausegame.currentFrame == 71){
removeChild(pausegame);
gameState = "game";
};
};
};
}
public function newExplosionParticle(_arg1:int, _arg2:int, _arg3:int, _arg4:int):void{
var _local5:explosionparts;
var _local6:Number;
_local5 = new explosionparts();
_local5.x = _arg1;
_local5.y = _arg2;
_local5.scaleX = (Math.random() * _arg3);
_local5.scaleY = _local5.scaleX;
_local5.rotation = (Math.random() * 360);
_local5.gotoAndStop((Math.floor((Math.random() * 6)) + 1));
_local6 = ((Math.random() * 360) * (Math.PI / 180));
_local5.xv = (Math.cos(_local6) * _arg4);
_local5.yv = (Math.sin(_local6) * _arg4);
sprites.addChild(_local5);
particles.push(_local5);
}
public function newHeavy(_arg1:int, _arg2:int):void{
var _local3:heavy;
_local3 = new heavy();
sprites.addChild(_local3);
_local3.x = _arg1;
_local3.y = _arg2;
_local3.dir = int((Math.random() * 2));
_local3.health = 15;
_local3.lastHealth = 15;
_local3.restTime = 0;
_local3.seeking = false;
_local3.checkLos = int((Math.random() * 5));
_local3.shootTime = 0;
_local3.ang = 0;
_local3.onFire = 0;
_local3.movearm = 0;
_local3.explosionHits = [];
_local3.hbar.alpha = 0;
_local3.hitTime = 0;
_local3.range = 500;
heavies.push(_local3);
}
public function saveGame(_arg1:int){
var _local2:Array;
var _local3:Array;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:Array;
var _local9:Array;
var _local10:int;
_local2 = [];
_local3 = [];
_local4 = 0;
while (_local4 < gunsCollected.length) {
_local3.push(gunsCollected[_local4]);
_local4++;
};
_local6 = 0;
while (_local6 < gunsCollected.length) {
_local10 = gunsCollected[_local6];
if (_local10 == 1){
_local2.push("x");
} else {
_local2.push((this[("gun" + _local10)].ammo + this[("gun" + _local10)].spare));
};
_local6++;
};
if (playerOb.lives < 3){
playerOb.lives = 3;
};
playerOb.health = playerOb.maxHealth;
_local8 = [];
_local9 = [];
_local4 = 0;
while (_local4 < tempPushed.length) {
pushedSwitches.push(tempPushed[_local4]);
_local4++;
};
_local4 = 0;
while (_local4 < tempCollected.length) {
collectedItems.push(tempCollected[_local4]);
_local4++;
};
tempPushed = [];
tempCollected = [];
lastSave = _arg1;
_local4 = 0;
while (_local4 < pushedSwitches.length) {
_local8[_local4] = [];
_local5 = 0;
while (_local5 < pushedSwitches[_local4].length) {
_local8[_local4][_local5] = pushedSwitches[_local4][_local5];
_local5++;
};
_local4++;
};
_local4 = 0;
while (_local4 < collectedItems.length) {
_local9[_local4] = [];
_local5 = 0;
while (_local5 < collectedItems[_local4].length) {
_local9[_local4][_local5] = collectedItems[_local4][_local5];
_local5++;
};
_local4++;
};
if (finalsave == true){
_local3 = [1, 6];
_local2 = ["x", 400];
playerOb.lives = 3;
_local8 = [];
_local9 = [];
gunType = 1;
gunSelected = 0;
this[("slot" + _arg1)].data.dat = ["X", "X", ((25 * 30) + 15), (27 * 30), _local3, _local2, playerOb.lives, _local8, _local9, playerOb.shots, playerOb.kills, gunType, controlsList, _arg1, gunSelected];
} else {
this[("slot" + _arg1)].data.dat = [currentLevel, currentStage, playerOb.x, playerOb.y, _local3, _local2, playerOb.lives, _local8, _local9, playerOb.shots, playerOb.kills, gunType, controlsList, _arg1, gunSelected];
};
}
public function fireBottomMissiles():void{
newMissile(100, 380, 0);
newMissile(985, 380, 180);
newMissile(635, 270, 0);
newMissile(505, 270, 180);
}
public function transTo():void{
var _local1:*;
var _local2:*;
var _local3:String;
if (trans.currentFrame == 9){
if (transto == "load"){
loadgame.x = 0;
Title.x = -800;
gameState = "load";
_local1 = 0;
while (_local1 < 3) {
if (this[("slot" + (_local1 + 1))].data.dat == undefined){
loadgame[("slotdata" + _local1)].text = "EMPTY";
} else {
if (this[("slot" + (_local1 + 1))].data.dat.length == 0){
loadgame[("slotdata" + _local1)].text = "EMPTY";
} else {
loadgame[("slotdata" + _local1)].text = (((((((((((("LEVEL " + this[("slot" + (_local1 + 1))].data.dat[0]) + ", ROOM ") + this[("slot" + (_local1 + 1))].data.dat[1]) + " \n") + this[("slot" + (_local1 + 1))].data.dat[6]) + " LIVES, ") + this[("slot" + (_local1 + 1))].data.dat[4].length) + " WEAPONS COLLECTED\n") + this[("slot" + (_local1 + 1))].data.dat[9]) + " SHOTS FIRED, ") + this[("slot" + (_local1 + 1))].data.dat[10]) + " ENEMIES KILLED");
};
};
_local1++;
};
} else {
if (transto == "controls"){
controls.x = 0;
Title.x = -800;
gameState = "controls";
_local2 = 1;
while (_local2 < 10) {
controls[("con" + _local2)].gotoAndStop(controlsList[(_local2 - 1)]);
_local2++;
};
} else {
if (transto == "creditsfromgame"){
credits.x = 0;
credits.roll.gotoAndPlay(2);
exitGame();
gameState = "credits";
trans.play();
} else {
if (transto == "finalsave"){
addChild(pop);
removeChild(cursor);
addChild(cursor);
pop.gotoAndPlay(1);
gui.alpha = 0;
gameState = "popup";
finalsave = true;
trans.stop();
} else {
if (transto == "credits"){
credits.x = 0;
credits.roll.gotoAndPlay(2);
Title.x = -800;
gameState = "credits";
} else {
if (transto == "game"){
Title.x = -800;
gameState = "intro";
startanim = new startmov();
starttext = new introtext();
addChild(starttext);
startanim.x = (30 * 6);
startanim.y = (30 * 3);
loadMap(1, 1);
posX = (30 * 12);
posY = 0;
updateDisplay();
exciteTimer = 200;
} else {
if (transto == "gamegame"){
startanim.gotoAndPlay(619);
gameState = "intro";
} else {
if (transto == "level"){
if ((((currentLevel == 1)) && ((currentStage == 1)))){
sprites.removeChild(startanim);
};
clearLevel();
loadMap(currentLevel, nextLevel);
gameState = "game";
} else {
if (transto == "title"){
Title.x = 0;
gameState = "title";
controls.x = -800;
loadgame.x = -800;
gameOver.x = -800;
credits.x = -800;
} else {
if (transto == "menufrompause"){
Title.x = 0;
gameState = "title";
controls.x = -800;
loadgame.x = -800;
exitGame();
removeChild(pausegame);
} else {
if (transto == "loadgame"){
gameOver.x = -800;
Title.x = -800;
loadGame(loadslot);
loadgame.x = -800;
gameState = "game";
} else {
if (transto == "gameover"){
gameOver.x = 0;
_local3 = "891Q4F0194FC";
adv = new AdLoader(_local3);
gameOver.adBox.addChild(adv);
exitGame();
gameState = "gameover";
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function newMissile(_arg1:int, _arg2:int, _arg3:int):void{
var _local4:missile;
var _local5:*;
_local4 = new missile();
_local4.x = _arg1;
_local4.y = _arg2;
_local4.rotation = _arg3;
sprites.addChild(_local4);
_local5 = (_arg3 * (Math.PI / 180));
_local4.xv = (Math.cos(_local5) * 5);
_local4.yv = (Math.sin(_local5) * 5);
missiles.push(_local4);
}
public function startGame():void{
collectedItems = [];
pushedSwitches = [];
gunsCollected = [1];
lastRoomAmmo = [[1, 99999]];
lastRoomGun = 0;
gunSelected = 0;
gunType = 1;
gui = new GUI();
addChild(gui);
gui.updatebtn.addEventListener(MouseEvent.ROLL_OVER, rover);
gui.updatebtn.addEventListener(MouseEvent.ROLL_OUT, rout);
gui.updatebtn.addEventListener(MouseEvent.CLICK, gotoUpdates);
gui.morebtn.addEventListener(MouseEvent.ROLL_OVER, rover);
gui.morebtn.addEventListener(MouseEvent.ROLL_OUT, rout);
gui.morebtn.addEventListener(MouseEvent.CLICK, gotoMoregames);
player = new char();
game.addChild(player);
playerOb.x = 315;
playerOb.y = 330;
player.x = playerOb.x;
player.y = playerOb.y;
gun = new gunarm();
player.addChild(gun);
gun.x = -5;
gun.y = -32;
gui.ammo.text = (String(gun1.ammo) + " | X");
updateDisplay();
lastStartX = 315;
lastStartY = 330;
removeChild(cursor);
addChild(cursor);
}
public function checkForPickups():void{
var _local1:int;
var _local2:Boolean;
var _local3:*;
var _local4:pickup;
_local3 = 0;
while (_local3 < pickups.length) {
_local4 = pickups[_local3];
if (checkPickedUp(_local4)){
if (_local4.currentFrame < 6){
if (_local4.currentFrame == 1){
gui.pickupdisp.mc.txt.text = "GOT AUTOMATIC RIFLE";
if (gui.currentFrame == 1){
gui.pickupdisp.play();
} else {
gui.pickupdisp.gotoAndPlay(20);
};
} else {
if (_local4.currentFrame == 2){
gui.pickupdisp.mc.txt.text = "GOT GRENADE LAUNCHER";
if (gui.currentFrame == 1){
gui.pickupdisp.play();
} else {
gui.pickupdisp.gotoAndPlay(20);
};
} else {
if (_local4.currentFrame == 3){
gui.pickupdisp.mc.txt.text = "GOT SHOTGUN";
if (gui.currentFrame == 1){
gui.pickupdisp.play();
} else {
gui.pickupdisp.gotoAndPlay(20);
};
} else {
if (_local4.currentFrame == 4){
gui.pickupdisp.mc.txt.text = "GOT FLAME THROWER";
if (gui.currentFrame == 1){
gui.pickupdisp.play();
} else {
gui.pickupdisp.gotoAndPlay(20);
};
} else {
if (_local4.currentFrame == 5){
gui.pickupdisp.mc.txt.text = "GOT LAZER GUN";
if (gui.currentFrame == 1){
gui.pickupdisp.play();
} else {
gui.pickupdisp.gotoAndPlay(20);
};
};
};
};
};
};
gunsCollected.push((_local4.currentFrame + 1));
changeGun();
} else {
if (_local4.currentFrame == 6){
gui.pickupdisp.mc.txt.text = "GOT EXTRA LIFE";
if (gui.currentFrame == 1){
gui.pickupdisp.play();
} else {
gui.pickupdisp.gotoAndPlay(20);
};
playerOb.lives++;
gui.lives.text = String(playerOb.lives);
} else {
if (_local4.currentFrame == 7){
gui.pickupdisp.mc.txt.text = "GOT HEALTH PACK";
if (gui.currentFrame == 1){
gui.pickupdisp.play();
} else {
gui.pickupdisp.gotoAndPlay(20);
};
playerOb.health = playerOb.maxHealth;
} else {
if (_local4.currentFrame == 8){
_local2 = false;
_local1 = 0;
while (_local1 < gunsCollected.length) {
if (gunsCollected[_local1] == 2){
_local2 = true;
break;
};
_local1++;
};
if (_local2){
gui.pickupdisp.mc.txt.text = "GOT BULLETS";
if (gui.currentFrame == 1){
gui.pickupdisp.play();
} else {
gui.pickupdisp.gotoAndPlay(20);
};
gun2.spare = (gun2.spare + 30);
if (gunType == 2){
gui.ammo.text = ((String(this[("gun" + gunType)].ammo) + " | ") + String(this[("gun" + gunType)].spare));
};
} else {
if (errorTimer == 0){
error.play();
errorTimer = 40;
};
return;
};
} else {
if (_local4.currentFrame == 9){
_local2 = false;
_local1 = 0;
while (_local1 < gunsCollected.length) {
if (gunsCollected[_local1] == 3){
_local2 = true;
break;
};
_local1++;
};
if (_local2){
gui.pickupdisp.mc.txt.text = "GOT GRENADES";
if (gui.currentFrame == 1){
gui.pickupdisp.play();
} else {
gui.pickupdisp.gotoAndPlay(20);
};
gun3.spare = (gun3.spare + 6);
if (gunType == 3){
gui.ammo.text = ((String(this[("gun" + gunType)].ammo) + " | ") + String(this[("gun" + gunType)].spare));
};
} else {
if (errorTimer == 0){
error.play();
errorTimer = 40;
};
return;
};
} else {
if (_local4.currentFrame == 10){
_local2 = false;
_local1 = 0;
while (_local1 < gunsCollected.length) {
if (gunsCollected[_local1] == 4){
_local2 = true;
break;
};
_local1++;
};
if (_local2){
gui.pickupdisp.mc.txt.text = "GOT SHOTGUN SHELLS";
if (gui.currentFrame == 1){
gui.pickupdisp.play();
} else {
gui.pickupdisp.gotoAndPlay(20);
};
gun4.spare = (gun4.spare + 10);
if (gunType == 4){
gui.ammo.text = ((String(this[("gun" + gunType)].ammo) + " | ") + String(this[("gun" + gunType)].spare));
};
} else {
if (errorTimer == 0){
error.play();
errorTimer = 40;
};
return;
};
} else {
if (_local4.currentFrame == 11){
_local2 = false;
_local1 = 0;
while (_local1 < gunsCollected.length) {
if (gunsCollected[_local1] == 5){
_local2 = true;
break;
};
_local1++;
};
if (_local2){
gui.pickupdisp.mc.txt.text = "GOT FUEL TANK";
if (gui.currentFrame == 1){
gui.pickupdisp.play();
} else {
gui.pickupdisp.gotoAndPlay(20);
};
gun5.spare = (gun5.spare + 80);
if (gunType == 5){
gui.ammo.text = ((String(this[("gun" + gunType)].ammo) + " | ") + String(this[("gun" + gunType)].spare));
};
} else {
if (errorTimer == 0){
error.play();
errorTimer = 40;
};
return;
};
} else {
if (_local4.currentFrame == 12){
_local2 = false;
_local1 = 0;
while (_local1 < gunsCollected.length) {
if (gunsCollected[_local1] == 6){
_local2 = true;
break;
};
_local1++;
};
if (_local2){
gui.pickupdisp.mc.txt.text = "GOT BATTERY";
if (gui.currentFrame == 1){
gui.pickupdisp.play();
} else {
gui.pickupdisp.gotoAndPlay(20);
};
gun5.spare = (gun5.spare + 80);
if (gunType == 6){
gui.ammo.text = ((String(this[("gun" + gunType)].ammo) + " | ") + String(this[("gun" + gunType)].spare));
};
} else {
if (errorTimer == 0){
error.play();
errorTimer = 40;
};
return;
};
};
};
};
};
};
};
};
};
pickupclick.play();
if (_local4.id != 99999){
tempCollected.push([_local4.lev, _local4.sta, _local4.id]);
};
sprites.removeChild(_local4);
pickups.splice(_local3, 1);
_local3--;
};
_local3++;
};
}
public function updateDisplay():void{
var _local1:Rectangle;
_local1 = new Rectangle(posX, posY, stageW, stageH);
display.copyPixels(levelMap, _local1, new Point(0, 0));
}
public function keydown(_arg1:KeyboardEvent):void{
var _local2:int;
if (gameState == "game"){
downKeys[("key" + _arg1.keyCode)] = true;
if (deathTime == 0){
if (_arg1.keyCode == controlsList[3]){
checkDoors();
};
if ((((((((_arg1.keyCode == controlsList[6])) && ((((this[("gun" + gunType)].spare > 0)) || ((gunType == 1)))))) && ((this[("gun" + gunType)].ammo < this[("gun" + gunType)].capacity)))) && ((reloading == 0)))){
reloading = this[("gun" + gunType)].reload;
reloadMax = this[("gun" + gunType)].reload;
};
changeGun();
};
if (_arg1.keyCode == controlsList[7]){
gameState = "paused";
addChild(pausegame);
removeChild(cursor);
addChild(cursor);
pausegame.gotoAndPlay(1);
};
} else {
if (gameState == "controls"){
_local2 = 0;
while (_local2 < controlsList.length) {
if (controlsList[_local2] == _arg1.keyCode){
controls[(("con" + _local2) + 1)].gotoAndStop(1);
controlsList[_local2] = "??";
};
_local2++;
};
controlsList[(controlsOption - 1)] = _arg1.keyCode;
controls[("con" + controlsOption)].gotoAndStop(_arg1.keyCode);
};
};
if (_arg1.keyCode == controlsList[8]){
if (muting == false){
muting = true;
SoundMixer.soundTransform = new SoundTransform(0, 0);
} else {
muting = false;
SoundMixer.soundTransform = new SoundTransform(1, 0);
};
};
}
public function updateUpdates():void{
if ((((stage.mouseY > 357)) && ((stage.mouseY < 377)))){
if (rolledOver != 1){
rolledOver = 1;
rollover.play();
};
updates.option1.gotoAndStop(2);
updates.option2.gotoAndStop(1);
updates.option3.gotoAndStop(1);
updates.option4.gotoAndStop(1);
updates.option5.gotoAndStop(1);
menuOption = 1;
} else {
if ((((stage.mouseY > 385)) && ((stage.mouseY < 405)))){
if (rolledOver != 2){
rolledOver = 2;
rollover.play();
};
updates.option1.gotoAndStop(1);
updates.option2.gotoAndStop(2);
updates.option3.gotoAndStop(1);
updates.option4.gotoAndStop(1);
updates.option5.gotoAndStop(1);
menuOption = 2;
} else {
if ((((stage.mouseY > 414)) && ((stage.mouseY < 434)))){
if (rolledOver != 3){
rolledOver = 3;
rollover.play();
};
updates.option1.gotoAndStop(1);
updates.option2.gotoAndStop(1);
updates.option3.gotoAndStop(2);
updates.option4.gotoAndStop(1);
updates.option5.gotoAndStop(1);
menuOption = 3;
} else {
if ((((stage.mouseY > 443)) && ((stage.mouseY < 463)))){
if (rolledOver != 3){
rolledOver = 3;
rollover.play();
};
updates.option1.gotoAndStop(1);
updates.option2.gotoAndStop(1);
updates.option3.gotoAndStop(1);
updates.option4.gotoAndStop(2);
updates.option5.gotoAndStop(1);
menuOption = 4;
} else {
if ((((stage.mouseY > 474)) && ((stage.mouseY < 494)))){
if (rolledOver != 3){
rolledOver = 3;
rollover.play();
};
updates.option1.gotoAndStop(1);
updates.option2.gotoAndStop(1);
updates.option3.gotoAndStop(1);
updates.option4.gotoAndStop(1);
updates.option5.gotoAndStop(2);
menuOption = 5;
} else {
rolledOver = 0;
updates.option1.gotoAndStop(1);
updates.option2.gotoAndStop(1);
updates.option3.gotoAndStop(1);
updates.option4.gotoAndStop(1);
updates.option5.gotoAndStop(1);
menuOption = 0;
};
};
};
};
};
}
public function fireLaserLine(_arg1:int, _arg2:int, _arg3:Number, _arg4:Number, _arg5:Number, _arg6):void{
var _local7:Boolean;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:int;
var _local12:Matrix;
var _local13:int;
var _local14:int;
var _local15:flier;
var _local16:grunt;
var _local17:turret;
var _local18:heavy;
var _local19:launcher;
var _local20:Object;
var _local21:int;
drawSprite.graphics.clear();
drawSprite.graphics.lineStyle(_arg5, _arg6, 1);
_local7 = false;
_local8 = _arg1;
_local9 = _arg2;
_local10 = (Math.atan2(_arg4, _arg3) + (Math.PI / 2));
drawSprite.graphics.moveTo(_arg1, _arg2);
_local11 = 0;
while (!(_local7)) {
_local11 = 0;
while (_local11 < fliers.length) {
_local15 = fliers[_local11];
if ((((_local15.x - _local8) * (_local15.x - _local8)) + ((_local15.y - _local9) * (_local15.y - _local9))) < 150){
_local15.health = (_local15.health - 0.4);
_local7 = true;
_local15.hitTime = 30;
_local15.hbar.alpha = 1;
_local15.hbar.bar.width = ((_local15.health / 2) * 25);
};
_local11++;
};
_local11 = 0;
while (_local11 < grunts.length) {
_local16 = grunts[_local11];
if ((((_local16.x - _local8) * (_local16.x - _local8)) + (((_local16.y - 30) - _local9) * ((_local16.y - 30) - _local9))) < 900){
_local16.health = (_local16.health - 0.4);
_local7 = true;
_local16.hitTime = 30;
_local16.hbar.alpha = 1;
_local16.hbar.bar.width = ((_local16.health / 12) * 25);
};
_local11++;
};
_local11 = 0;
while (_local11 < turrets.length) {
_local17 = turrets[_local11];
if ((((_local17.x - _local8) * (_local17.x - _local8)) + ((_local17.y - _local9) * (_local17.y - _local9))) < 1000){
_local17.health = (_local17.health - 0.4);
_local7 = true;
_local17.hitTime = 30;
_local17.hbar.alpha = 1;
_local17.hbar.bar.width = ((_local17.health / 10) * 25);
};
_local11++;
};
_local11 = 0;
while (_local11 < heavies.length) {
_local18 = heavies[_local11];
if ((((_local18.x - _local8) * (_local18.x - _local8)) + (((_local18.y - 30) - _local9) * ((_local18.y - 30) - _local9))) < 900){
_local18.health = (_local18.health - 0.4);
_local7 = true;
_local18.hitTime = 30;
_local18.hbar.alpha = 1;
_local18.hbar.bar.width = ((_local18.health / 15) * 25);
};
_local11++;
};
_local11 = 0;
while (_local11 < launchers.length) {
_local19 = launchers[_local11];
if ((((_local19.x - _local8) * (_local19.x - _local8)) + ((_local19.y - _local9) * (_local19.y - _local9))) < 1500){
_local19.health = (_local19.health - 0.4);
_local7 = true;
_local19.hitTime = 30;
_local19.hbar.alpha = 1;
_local19.hbar.bar.width = ((_local19.health / 30) * 25);
};
_local11++;
};
_local11 = 0;
while (_local11 < computers.length) {
_local20 = computers[_local11];
if (Math.abs((_local20.x - _local8)) <= 20){
if ((((_local9 >= _local20.y)) && ((_local9 <= (_local20.y + _local20.h))))){
if (_local20.side == 1){
bossInfo.lCompHealth = (bossInfo.lCompHealth - 0.2);
_local20.ob.play();
} else {
if (_local20.side == 2){
bossInfo.rCompHealth = (bossInfo.rCompHealth - 0.2);
_local20.ob.play();
} else {
bossInfo.health = (bossInfo.health - 0.2);
};
};
_local7 = true;
};
};
_local11++;
};
_local13 = Math.floor((_local8 / tileW));
_local14 = Math.floor((_local9 / tileH));
if (((!((map[_local14][_local13] == 0))) || ((liftsCollider.getPixel(_local8, _local9) == 0)))){
_local7 = true;
} else {
_local8 = (_local8 + _arg3);
_local9 = (_local9 + _arg4);
_local21 = ((Math.random() * 10) - (Math.random() * 10));
drawSprite.graphics.lineTo((_local8 + (Math.cos(_local10) * _local21)), (_local9 + (Math.sin(_local10) * _local21)));
};
};
wallHit((_local8 - _arg3), (_local9 - _arg4));
_local12 = new Matrix();
_local12.rotate(Math.atan2(_arg4, _arg3));
_local12.translate(_arg1, _arg2);
gunflash.gotoAndStop((Math.floor((Math.random() * 4)) + 1));
fade.draw(drawSprite);
fade.draw(gunflash, _local12);
}
public function updateBoss():void{
var _local1:Matrix;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:Boolean;
var _local6:int;
var _local7:int;
if (fightingBoss == true){
if ((((gameState == "game")) && (!((bossInfo.dead == true))))){
if (bossInfo.health > 0){
exciteTimer = 50;
gui.bosshealth.health.width = ((bossInfo.health / bossInfo.maxHealth) * 520);
} else {
gui.bosshealth.health.width = 1;
};
if (bossInfo.lCompHealth > 0){
_local1 = new Matrix();
_local1.translate((computers[0].x + 25), computers[0].y);
liftsCollider.draw(computers[0].ob, _local1);
gui.bosshealth.lhealth.width = ((bossInfo.lCompHealth / bossInfo.maxCompHealth) * 200);
} else {
gui.bosshealth.lhealth.width = 1;
};
if (bossInfo.rCompHealth > 0){
_local1 = new Matrix();
_local1.translate((computers[1].x - 25), computers[1].y);
liftsCollider.draw(computers[1].ob, _local1);
gui.bosshealth.rhealth.width = ((bossInfo.rCompHealth / bossInfo.maxCompHealth) * 200);
} else {
gui.bosshealth.rhealth.width = 1;
};
};
if ((((bossInfo.lCompHealth <= 0)) && ((bossInfo.ldead == false)))){
bossInfo.ldead = true;
bossInfo.hurtTimer = 150;
boss.head.gotoAndStop(3);
bossInfo.destroy = 1;
computers[0].ob.gotoAndStop(4);
if (bossInfo.rdead == true){
boss.body.gotoAndStop(4);
} else {
boss.body.gotoAndStop(3);
};
bossInfo.health = (bossInfo.health - 150);
computers[0].side = 3;
computers[0].x = (computers[0].x + 30);
};
if ((((bossInfo.rCompHealth <= 0)) && ((bossInfo.rdead == false)))){
bossInfo.rdead = true;
bossInfo.hurtTimer = 150;
boss.head.gotoAndStop(3);
bossInfo.destroy = 2;
computers[1].ob.gotoAndStop(4);
if (bossInfo.ldead == true){
boss.body.gotoAndStop(4);
} else {
boss.body.gotoAndStop(2);
};
bossInfo.health = (bossInfo.health - 150);
computers[1].side = 3;
computers[1].x = (computers[1].x - 30);
};
if ((((bossInfo.health <= 0)) && ((bossInfo.dead == false)))){
_local2 = 0;
while (_local2 < fliers.length) {
fliers[_local2].health = 0;
_local2++;
};
_local3 = 0;
while (_local3 < missiles.length) {
grenadeExplode(missiles[_local3].x, missiles[_local3].y);
sprites.removeChild(missiles[_local3]);
missiles.splice(_local3, 1);
_local3--;
_local3++;
};
_local4 = 0;
while (_local4 < octobombs.length) {
grenadeExplode((octobombs[_local4].x + 15), (octobombs[_local4].y + 15));
sprites.removeChild(octobombs[_local4]);
octobombs.splice(_local4, 1);
--_local4;
_local4++;
};
bossInfo.dead = true;
bossInfo.hurtTimer = 200;
boss.head.gotoAndStop(3);
bossInfo.destroy = 3;
computers[1].ob.gotoAndStop(4);
computers[0].ob.gotoAndStop(4);
boss.body.gotoAndStop(4);
computers[1].side = 3;
computers[1].x = 0;
computers[0].side = 3;
computers[0].x = 0;
};
if (bossInfo.hurtTimer > 0){
bossInfo.hurtTimer--;
if ((bossInfo.hurtTimer % 10) == 0){
if (bossInfo.destroy == 1){
grenadeExplode(((computers[0].x + (Math.random() * 30)) - 30), (computers[0].y + (Math.random() * 120)));
} else {
if (bossInfo.destroy == 2){
grenadeExplode(((computers[1].x - (Math.random() * 30)) + 30), (computers[1].y + (Math.random() * 120)));
} else {
grenadeExplode((boss.x + (Math.random() * 90)), (boss.y + (Math.random() * 90)));
};
};
};
if (bossInfo.hurtTimer == 0){
if (bossInfo.dead == false){
boss.head.gotoAndStop(1);
bossInfo.destroy = 0;
} else {
gui.bosshealth.gotoAndStop(1);
_local5 = false;
_local6 = 0;
while (_local6 < gunsCollected.length) {
if (gunsCollected[_local6] == 6){
_local5 = true;
};
_local6++;
};
if (!_local5){
newPickup((7 * tileW), (26 * tileH), 5, 6, 5, 99999);
};
doors_6_5[1].s = 2;
_local7 = 0;
while (_local7 < doorObs.length) {
if ((((doorObs[_local7].x == (5 * tileW))) && ((doorObs[_local7].y == (26 * tileH))))){
doorObs[_local7].gotoAndStop(1);
};
_local7++;
};
boss.gotoAndStop(2);
bossExplode(boss.x, boss.y);
bossInfo.destroy = 0;
};
};
};
if ((((bossInfo.hurtTimer <= 0)) && (!((bossInfo.dead == true))))){
bossInfo.attackTimer--;
if (bossInfo.attackTimer <= 0){
if (bossInfo.attack == 1){
if (fliers.length < 15){
boss.head.gotoAndStop(4);
if (((bossInfo.attackTimer * -1) % 5) == 0){
releaseBossFliers();
};
};
if (bossInfo.attackTimer < -30){
boss.head.gotoAndStop(1);
bossInfo.attack = 2;
if (((bossInfo.health / bossInfo.maxHealth) * 100) > 80){
bossInfo.attackTimer = 200;
} else {
if (((bossInfo.health / bossInfo.maxHealth) * 100) > 50){
bossInfo.attackTimer = 160;
} else {
bossInfo.attackTimer = 100;
};
};
};
} else {
if (bossInfo.attack == 2){
boss.head.gotoAndStop(2);
if (bossInfo.attackTimer == -1){
if (((bossInfo.health / bossInfo.maxHealth) * 100) > 40){
fireTopMissiles();
shotrocket.play();
} else {
fireTopMissiles();
fireBottomMissiles();
shotrocket.play();
};
};
if (bossInfo.attackTimer < -40){
boss.head.gotoAndStop(1);
if (((bossInfo.health / bossInfo.maxHealth) * 100) > 75){
bossInfo.attack = 4;
} else {
bossInfo.attack = 3;
};
if (((bossInfo.health / bossInfo.maxHealth) * 100) > 80){
bossInfo.attackTimer = 200;
} else {
if (((bossInfo.health / bossInfo.maxHealth) * 100) > 50){
bossInfo.attackTimer = 160;
} else {
bossInfo.attackTimer = 100;
};
};
};
} else {
if (bossInfo.attack == 3){
boss.head.gotoAndStop(2);
if (bossInfo.attackTimer > -70){
posAddX = ((Math.random() * 15) - (Math.random() * 15));
posAddY = ((Math.random() * 15) - (Math.random() * 15));
};
if (bossInfo.attackTimer > -50){
if (((bossInfo.attackTimer * -1) % 5) == 0){
newOctoBomb();
};
};
if (bossInfo.attackTimer < -80){
posAddX = 0;
posAddY = 0;
boss.head.gotoAndStop(1);
bossInfo.attack = 4;
bossInfo.attackTimer = 0;
};
} else {
if (bossInfo.attack == 4){
if (boss.head.currentFrame != 5){
boss.head.gotoAndStop(5);
};
if (((bossInfo.health / bossInfo.maxHealth) * 100) > 50){
if (bossInfo.attackTimer < -300){
boss.head.gotoAndStop(1);
bossInfo.attack = 1;
bossInfo.attackTimer = 100;
};
} else {
if (bossInfo.attackTimer < -200){
boss.head.gotoAndStop(1);
bossInfo.attack = 1;
bossInfo.attackTimer = 100;
};
};
};
};
};
};
};
};
};
}
public function clickalillm(_arg1:MouseEvent):void{
var _local2:URLRequest;
MochiBot.track(this, "01d06294");
_local2 = new URLRequest("http://www.alillm.com/");
navigateToURL(_local2, "_blank");
}
public function updateParticles():void{
var _local1:int;
var _local2:*;
var _local3:int;
var _local4:int;
_local1 = 0;
while (_local1 < particles.length) {
_local2 = particles[_local1];
_local3 = Math.floor(((_local2.x + _local2.xv) / tileW));
_local4 = Math.floor(((_local2.y + _local2.yv) / tileH));
if (map[_local4][_local3] > 0){
sprites.removeChild(_local2);
particles.splice(_local1, 1);
_local1--;
} else {
_local2.x = (_local2.x + _local2.xv);
_local2.y = (_local2.y + _local2.yv);
_local2.scaleX = (_local2.scaleX - 0.1);
_local2.scaleY = _local2.scaleX;
if (_local2.scaleX <= 0){
sprites.removeChild(_local2);
particles.splice(_local1, 1);
_local1--;
};
};
_local1++;
};
}
public function checkHitLifts(_arg1:int, _arg2:int):Array{
var _local3:int;
var _local4:MovieClip;
_local3 = 0;
while (_local3 < lifts.length) {
_local4 = lifts[_local3];
if ((((_arg1 > _local4.x)) && ((_arg2 > _local4.y)))){
if ((((_arg1 < (_local4.x + (_local4.w * tileW)))) && ((_arg2 < (_local4.y + (_local4.h * tileH)))))){
return ([true, _local4]);
};
};
_local3++;
};
return ([false]);
}
public function reloadShotgun(_arg1:int):void{
if (_arg1 == 59){
bulletin.play();
} else {
if (_arg1 == 40){
bulletin.play();
} else {
if (_arg1 == 20){
loadclose.play();
};
};
};
}
public function fireHeavy(_arg1:heavy):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
_local2 = -10;
shot4.play();
_local3 = 0;
while (_local3 < 5) {
_local4 = (((_arg1.x + (_arg1.arm.x * _arg1.scaleX)) + ((Math.cos((_arg1.arm.rotation * (Math.PI / 180))) * 30) * _arg1.scaleX)) - ((Math.sin((_arg1.arm.rotation * (Math.PI / 180))) * 3) * _arg1.scaleX));
_local5 = (((_arg1.y + _arg1.arm.y) + (Math.sin((_arg1.arm.rotation * (Math.PI / 180))) * 30)) + (Math.cos((_arg1.arm.rotation * (Math.PI / 180))) * 3));
fireLine(_local4, _local5, ((Math.cos(((_arg1.arm.rotation + _local2) * (Math.PI / 180))) * 10) * _arg1.scaleX), (Math.sin(((_arg1.arm.rotation + _local2) * (Math.PI / 180))) * 10), 1, 0xFFFFFF, 1, 1);
_local2 = (_local2 + 5);
_local3++;
};
}
public function newTv(_arg1:int, _arg2:int, _arg3:String):void{
var _local4:tvscreen;
var _local5:BitmapData;
var _local6:Bitmap;
var _local7:tvcover;
_local4 = new tvscreen();
_local5 = new BitmapData(114, 74, false, 0);
_local6 = new Bitmap(_local5);
_local4.bmp = _local5;
_local4.addChild(_local6);
_local6.x = 3;
_local6.y = 12;
_local7 = new tvcover();
_local4.addChild(_local7);
_local4.cov = _local7;
_local4.words = _arg3;
_local7.txt.text = _arg3;
sprites.addChild(_local4);
_local4.x = (_arg1 * tileW);
_local4.y = (_arg2 * tileH);
tvs.push(_local4);
}
public function rover(_arg1:MouseEvent):void{
_arg1.target.gotoAndStop(2);
}
public function newOctoBomb():void{
var _local1:int;
var _local2:int;
var _local3:octobomb;
_local1 = ((Math.random() * 850) + 100);
_local2 = 40;
_local3 = new octobomb();
_local3.x = _local1;
_local3.y = _local2;
_local3.dead = false;
_local3.rotation = (Math.random() * 360);
_local3.yv = 0;
octobombs.push(_local3);
sprites.addChild(_local3);
}
public function newParticle(_arg1:int, _arg2:int, _arg3:int, _arg4:int):void{
var _local5:particle;
var _local6:Number;
_local5 = new particle();
_local5.x = _arg1;
_local5.y = _arg2;
_local5.scaleX = (Math.random() * _arg3);
_local5.scaleY = _local5.scaleX;
_local5.rotation = (Math.random() * 360);
_local6 = ((Math.random() * 360) * (Math.PI / 180));
_local5.xv = (Math.cos(_local6) * _arg4);
_local5.yv = (Math.sin(_local6) * _arg4);
sprites.addChild(_local5);
particles.push(_local5);
}
function frame2(){
SoundMixer.stopAll();
}
public function updateGrunts():void{
var _local1:int;
var _local2:grunt;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:Number;
var _local11:int;
var _local12:int;
_local1 = 0;
while (_local1 < grunts.length) {
_local2 = grunts[_local1];
_local3 = Math.floor((_local2.x / tileW));
_local4 = Math.floor((_local2.y / tileH));
if (_local2.hitTime > 0){
_local2.hitTime--;
if (_local2.hitTime <= 0){
_local2.hbar.alpha = 0;
};
};
if (_local2.health <= 0){
gruntExplode(_local2.x, _local2.y, _local2.scaleX, (((_local2.lastHealth - _local2.health) / 3) + 4));
sprites.removeChild(_local2);
grunts.splice(_local1, 1);
_local1--;
} else {
if (_local2.lastHealth > _local2.health){
_local2.seeking = true;
_local2.range = 10000;
};
};
if (_local2.onFire > 0){
_local2.onFire--;
_local2.health = (_local2.health - 0.05);
onFire(_local2.x, (_local2.y - 35), (_local2.onFire / 40));
};
_local2.lastHealth = _local2.health;
if ((((_local2.seeking == false)) || ((deathTime > 0)))){
if (_local2.dir == 0){
if ((((map[_local4][(_local3 + 1)] == 0)) || (!((map[(_local4 - 1)][(_local3 + 1)] == 0))))){
_local2.dir = 1;
_local2.restTime = 80;
};
} else {
if ((((map[_local4][(_local3 - 1)] == 0)) || (!((map[(_local4 - 1)][(_local3 - 1)] == 0))))){
_local2.dir = 0;
_local2.restTime = 80;
};
};
if (_local2.restTime > 0){
_local2.restTime--;
_local2.legs.gotoAndStop(1);
} else {
if (_local2.dir == 0){
_local2.scaleX = 1;
_local2.hbar.scaleX = 1;
_local2.x = (_local2.x + 2);
if (_local2.legs.currentFrame == 1){
_local2.legs.gotoAndStop(2);
};
} else {
_local2.scaleX = -1;
_local2.hbar.scaleX = -1;
_local2.x = (_local2.x - 2);
if (_local2.legs.currentFrame == 1){
_local2.legs.gotoAndStop(2);
};
};
};
_local2.checkLos--;
if (_local2.checkLos <= 0){
_local2.checkLos = 5;
_local5 = (_local2.x - playerOb.x);
_local6 = (_local2.y - playerOb.y);
_local7 = ((_local5 * _local5) + (_local6 * _local6));
if (_local7 <= 160000){
exciteTimer = 50;
if (soundto != 1){
soundto = 1;
soundDir = 2;
};
if (((playerOb.x - _local2.x) * _local2.scaleX) > 0){
if (LOS(_local2.x, (_local2.y - 40), playerOb.x, (playerOb.y - (playerOb.h / 2)), _local2.range) == true){
_local2.seeking = true;
};
};
};
};
} else {
exciteTimer = 50;
if (soundto != 1){
soundto = 1;
soundDir = 2;
};
_local2.shootTime--;
_local2.legs.gotoAndStop(1);
_local2.arm.rotation = (_local2.arm.rotation + _local2.movearm);
if (_local2.shootTime <= 0){
_local8 = ((playerOb.x - _local2.x) * _local2.scaleX);
_local9 = (playerOb.y - _local2.y);
_local2.ang = Math.atan2(_local9, _local8);
_local10 = ((Math.random() * (Math.PI / 15)) - (Math.random() * (Math.PI / 15)));
_local2.ang = (_local2.ang + _local10);
_local2.shootTime = 25;
_local2.movearm = (((_local2.ang * (180 / Math.PI)) - _local2.arm.rotation) / 25);
_local11 = (((_local2.x + (_local2.arm.x * _local2.scaleX)) + ((Math.cos((_local2.arm.rotation * (Math.PI / 180))) * 30) * _local2.scaleX)) + ((Math.sin((_local2.arm.rotation * (Math.PI / 180))) * 3) * _local2.scaleX));
_local12 = (((_local2.y + _local2.arm.y) + (Math.sin((_local2.arm.rotation * (Math.PI / 180))) * 30)) - (Math.cos((_local2.arm.rotation * (Math.PI / 180))) * 3));
fireLine(_local11, _local12, ((Math.cos((_local2.arm.rotation * (Math.PI / 180))) * 10) * _local2.scaleX), (Math.sin((_local2.arm.rotation * (Math.PI / 180))) * 10), 1, 0xFFFFFF, 3, 1);
};
if (((playerOb.x - _local2.x) * _local2.scaleX) < 0){
_local2.scaleX = (_local2.scaleX * -1);
_local2.hbar.scaleX = (_local2.hbar.scaleX * -1);
};
if (LOS(_local2.x, (_local2.y - 40), playerOb.x, (playerOb.y - (playerOb.h / 2)), _local2.range) == false){
_local2.seeking = false;
_local2.arm.rotation = 75;
_local2.range = 500;
};
};
_local1++;
};
}
public function rollOutCool(_arg1:MouseEvent):void{
coolbuddy.gotoAndStop(1);
}
public function fireRapid():void{
var _local1:int;
var _local2:int;
var _local3:Number;
var _local4:int;
var _local5:int;
var _local6:Number;
if (reloading == 0){
if (gunType == 2){
fireSoundTime--;
if (fireSoundTime <= 0){
playerOb.shots++;
channel2 = shot2.play();
fireSoundTime = 45;
};
if (coolDown > 0){
coolDown--;
} else {
if (gun2.ammo > 0){
_local1 = (((playerOb.x + (gun.x * player.scaleX)) + ((Math.cos((gun.rotation * (Math.PI / 180))) * 35) * player.scaleX)) - ((Math.sin((gun.rotation * (Math.PI / 180))) * 3) * player.scaleX));
_local2 = (((playerOb.y + gun.y) + (Math.sin((gun.rotation * (Math.PI / 180))) * 35)) + (Math.cos((gun.rotation * (Math.PI / 180))) * 3));
gunoffset = ((Math.random() * 8) - (Math.random() * 8));
_local3 = (gun.rotation * (Math.PI / 180));
fireLine(_local1, _local2, ((Math.cos(_local3) * 10) * player.scaleX), (Math.sin(_local3) * 10), 1, 0xFFFFFF, 1);
coolDown = 3;
gun2.ammo--;
gui.ammo.text = ((String(gun2.ammo) + " | ") + String(gun2.spare));
} else {
channel2.stop();
fireSoundTime = 0;
if (gun2.spare > 0){
reloading = 50;
reloadMax = 50;
} else {
gunType = 1;
gunSelected = 0;
changeGun();
changegun.play();
};
};
};
} else {
if (gunType == 5){
if (gun5.ammo > 0){
fireSoundTime--;
if (fireSoundTime <= 0){
channel4 = flamersound.play();
fireSoundTime = 200;
};
playerOb.shots++;
fireFlame();
gun5.ammo--;
gui.ammo.text = ((String(gun5.ammo) + " | ") + String(gun5.spare));
} else {
channel4.stop();
if (gun5.spare > 0){
reloading = 60;
reloadMax = 60;
} else {
gunType = 1;
gunSelected = 0;
changeGun();
changegun.play();
};
};
} else {
if (gunType == 6){
if (gun6.ammo > 0){
fireSoundTime--;
if (fireSoundTime <= 0){
channel3 = lazerbeam.play();
fireSoundTime = 480;
};
playerOb.shots++;
_local4 = (((playerOb.x + (gun.x * player.scaleX)) + ((Math.cos((gun.rotation * (Math.PI / 180))) * 28) * player.scaleX)) - ((Math.sin((gun.rotation * (Math.PI / 180))) * 14) * player.scaleX));
_local5 = (((playerOb.y + gun.y) + (Math.sin((gun.rotation * (Math.PI / 180))) * 28)) + (Math.cos((gun.rotation * (Math.PI / 180))) * 14));
_local6 = (gun.rotation * (Math.PI / 180));
fireLaserLine(_local4, _local5, ((Math.cos(_local6) * 10) * player.scaleX), (Math.sin(_local6) * 10), 1, 0xFFFFFF);
_local5 = (((playerOb.y + gun.y) + (Math.sin((gun.rotation * (Math.PI / 180))) * 28)) + (Math.cos((gun.rotation * (Math.PI / 180))) * 11));
fireLaserLine(_local4, _local5, ((Math.cos(_local6) * 10) * player.scaleX), (Math.sin(_local6) * 10), 1, 0xFFFFFF);
gun6.ammo--;
gui.ammo.text = ((String(gun6.ammo) + " | ") + String(gun6.spare));
} else {
channel3.stop();
if (gun6.spare > 0){
reloading = 80;
reloadMax = 80;
} else {
gunType = 1;
gunSelected = 0;
changeGun();
changegun.play();
};
fireSoundTime = 0;
};
};
};
};
};
}
public function newSavepoint(_arg1:int, _arg2:int):void{
var _local3:savepoint;
var _local4:BitmapData;
var _local5:Bitmap;
_local3 = new savepoint();
_local4 = new BitmapData(22, 18, false, 0);
_local5 = new Bitmap(_local4);
_local3.bmp = _local4;
_local3.addChild(_local5);
_local5.x = 4;
_local5.y = 4;
sprites.addChild(_local3);
_local3.x = (_arg1 * tileW);
_local3.y = (_arg2 * tileH);
savePoints.push(_local3);
}
function frame7(){
level_1_1 = new Array();
enemies_1_1 = new Array();
doors_1_1 = new Array();
lifts_1_1 = new Array();
switches_1_1 = new Array();
pickups_1_1 = new Array();
screens_1_1 = new Array();
savepoints_1_1 = new Array();
level_1_2 = new Array();
enemies_1_2 = new Array();
doors_1_2 = new Array();
lifts_1_2 = new Array();
switches_1_2 = new Array();
pickups_1_2 = new Array();
screens_1_2 = new Array();
savepoints_1_2 = new Array();
level_1_3 = new Array();
enemies_1_3 = new Array();
doors_1_3 = new Array();
lifts_1_3 = new Array();
switches_1_3 = new Array();
pickups_1_3 = new Array();
screens_1_3 = new Array();
savepoints_1_3 = new Array();
level_1_4 = new Array();
enemies_1_4 = new Array();
doors_1_4 = new Array();
lifts_1_4 = new Array();
switches_1_4 = new Array();
pickups_1_4 = new Array();
screens_1_4 = new Array();
savepoints_1_4 = new Array();
level_1_5 = new Array();
enemies_1_5 = new Array();
doors_1_5 = new Array();
lifts_1_5 = new Array();
switches_1_5 = new Array();
pickups_1_5 = new Array();
screens_1_5 = new Array();
savepoints_1_5 = new Array();
level_1_6 = new Array();
enemies_1_6 = new Array();
doors_1_6 = new Array();
lifts_1_6 = new Array();
switches_1_6 = new Array();
pickups_1_6 = new Array();
screens_1_6 = new Array();
savepoints_1_6 = new Array();
level_1_7 = new Array();
enemies_1_7 = new Array();
doors_1_7 = new Array();
lifts_1_7 = new Array();
switches_1_7 = new Array();
pickups_1_7 = new Array();
screens_1_7 = new Array();
savepoints_1_7 = new Array();
level_1_8 = new Array();
enemies_1_8 = new Array();
doors_1_8 = new Array();
lifts_1_8 = new Array();
switches_1_8 = new Array();
pickups_1_8 = new Array();
screens_1_8 = new Array();
savepoints_1_8 = new Array();
level_1_9 = new Array();
enemies_1_9 = new Array();
doors_1_9 = new Array();
lifts_1_9 = new Array();
switches_1_9 = new Array();
pickups_1_9 = new Array();
screens_1_9 = new Array();
savepoints_1_9 = new Array();
level_2_1 = new Array();
enemies_2_1 = new Array();
doors_2_1 = new Array();
lifts_2_1 = new Array();
switches_2_1 = new Array();
pickups_2_1 = new Array();
screens_2_1 = new Array();
savepoints_2_1 = new Array();
level_2_2 = new Array();
enemies_2_2 = new Array();
doors_2_2 = new Array();
lifts_2_2 = new Array();
switches_2_2 = new Array();
pickups_2_2 = new Array();
screens_2_2 = new Array();
savepoints_2_2 = new Array();
level_2_3 = new Array();
enemies_2_3 = new Array();
doors_2_3 = new Array();
lifts_2_3 = new Array();
switches_2_3 = new Array();
pickups_2_3 = new Array();
screens_2_3 = new Array();
savepoints_2_3 = new Array();
level_2_4 = new Array();
enemies_2_4 = new Array();
doors_2_4 = new Array();
lifts_2_4 = new Array();
switches_2_4 = new Array();
pickups_2_4 = new Array();
screens_2_4 = new Array();
savepoints_2_4 = new Array();
level_2_5 = new Array();
enemies_2_5 = new Array();
doors_2_5 = new Array();
lifts_2_5 = new Array();
switches_2_5 = new Array();
pickups_2_5 = new Array();
screens_2_5 = new Array();
savepoints_2_5 = new Array();
level_2_6 = new Array();
enemies_2_6 = new Array();
doors_2_6 = new Array();
lifts_2_6 = new Array();
switches_2_6 = new Array();
pickups_2_6 = new Array();
screens_2_6 = new Array();
savepoints_2_6 = new Array();
level_2_7 = new Array();
enemies_2_7 = new Array();
doors_2_7 = new Array();
lifts_2_7 = new Array();
switches_2_7 = new Array();
pickups_2_7 = new Array();
screens_2_7 = new Array();
savepoints_2_7 = new Array();
level_3_1 = new Array();
enemies_3_1 = new Array();
doors_3_1 = new Array();
lifts_3_1 = new Array();
switches_3_1 = new Array();
pickups_3_1 = new Array();
screens_3_1 = new Array();
savepoints_3_1 = new Array();
level_3_2 = new Array();
enemies_3_2 = new Array();
doors_3_2 = new Array();
lifts_3_2 = new Array();
switches_3_2 = new Array();
pickups_3_2 = new Array();
screens_3_2 = new Array();
savepoints_3_2 = new Array();
level_3_3 = new Array();
enemies_3_3 = new Array();
doors_3_3 = new Array();
lifts_3_3 = new Array();
switches_3_3 = new Array();
pickups_3_3 = new Array();
screens_3_3 = new Array();
savepoints_3_3 = new Array();
level_3_4 = new Array();
enemies_3_4 = new Array();
doors_3_4 = new Array();
lifts_3_4 = new Array();
switches_3_4 = new Array();
pickups_3_4 = new Array();
screens_3_4 = new Array();
savepoints_3_4 = new Array();
level_3_5 = new Array();
enemies_3_5 = new Array();
doors_3_5 = new Array();
lifts_3_5 = new Array();
switches_3_5 = new Array();
pickups_3_5 = new Array();
screens_3_5 = new Array();
savepoints_3_5 = new Array();
level_3_6 = new Array();
enemies_3_6 = new Array();
doors_3_6 = new Array();
lifts_3_6 = new Array();
switches_3_6 = new Array();
pickups_3_6 = new Array();
screens_3_6 = new Array();
savepoints_3_6 = new Array();
level_3_7 = new Array();
enemies_3_7 = new Array();
doors_3_7 = new Array();
lifts_3_7 = new Array();
switches_3_7 = new Array();
pickups_3_7 = new Array();
screens_3_7 = new Array();
savepoints_3_7 = new Array();
level_3_8 = new Array();
enemies_3_8 = new Array();
doors_3_8 = new Array();
lifts_3_8 = new Array();
switches_3_8 = new Array();
pickups_3_8 = new Array();
screens_3_8 = new Array();
savepoints_3_8 = new Array();
level_4_1 = new Array();
enemies_4_1 = new Array();
doors_4_1 = new Array();
lifts_4_1 = new Array();
switches_4_1 = new Array();
pickups_4_1 = new Array();
screens_4_1 = new Array();
savepoints_4_1 = new Array();
level_4_2 = new Array();
enemies_4_2 = new Array();
doors_4_2 = new Array();
lifts_4_2 = new Array();
switches_4_2 = new Array();
pickups_4_2 = new Array();
screens_4_2 = new Array();
savepoints_4_2 = new Array();
level_4_3 = new Array();
enemies_4_3 = new Array();
doors_4_3 = new Array();
lifts_4_3 = new Array();
switches_4_3 = new Array();
pickups_4_3 = new Array();
screens_4_3 = new Array();
savepoints_4_3 = new Array();
level_4_4 = new Array();
enemies_4_4 = new Array();
doors_4_4 = new Array();
lifts_4_4 = new Array();
switches_4_4 = new Array();
pickups_4_4 = new Array();
screens_4_4 = new Array();
savepoints_4_4 = new Array();
level_4_5 = new Array();
enemies_4_5 = new Array();
doors_4_5 = new Array();
lifts_4_5 = new Array();
switches_4_5 = new Array();
pickups_4_5 = new Array();
screens_4_5 = new Array();
savepoints_4_5 = new Array();
level_4_6 = new Array();
enemies_4_6 = new Array();
doors_4_6 = new Array();
lifts_4_6 = new Array();
switches_4_6 = new Array();
pickups_4_6 = new Array();
screens_4_6 = new Array();
savepoints_4_6 = new Array();
level_4_7 = new Array();
enemies_4_7 = new Array();
doors_4_7 = new Array();
lifts_4_7 = new Array();
switches_4_7 = new Array();
pickups_4_7 = new Array();
screens_4_7 = new Array();
savepoints_4_7 = new Array();
level_4_8 = new Array();
enemies_4_8 = new Array();
doors_4_8 = new Array();
lifts_4_8 = new Array();
switches_4_8 = new Array();
pickups_4_8 = new Array();
screens_4_8 = new Array();
savepoints_4_8 = new Array();
level_4_9 = new Array();
enemies_4_9 = new Array();
doors_4_9 = new Array();
lifts_4_9 = new Array();
switches_4_9 = new Array();
pickups_4_9 = new Array();
screens_4_9 = new Array();
savepoints_4_9 = new Array();
level_5_1 = new Array();
enemies_5_1 = new Array();
doors_5_1 = new Array();
lifts_5_1 = new Array();
switches_5_1 = new Array();
pickups_5_1 = new Array();
screens_5_1 = new Array();
savepoints_5_1 = new Array();
level_5_2 = new Array();
enemies_5_2 = new Array();
doors_5_2 = new Array();
lifts_5_2 = new Array();
switches_5_2 = new Array();
pickups_5_2 = new Array();
screens_5_2 = new Array();
savepoints_5_2 = new Array();
level_5_3 = new Array();
enemies_5_3 = new Array();
doors_5_3 = new Array();
lifts_5_3 = new Array();
switches_5_3 = new Array();
pickups_5_3 = new Array();
screens_5_3 = new Array();
savepoints_5_3 = new Array();
level_5_4 = new Array();
enemies_5_4 = new Array();
doors_5_4 = new Array();
lifts_5_4 = new Array();
switches_5_4 = new Array();
pickups_5_4 = new Array();
screens_5_4 = new Array();
savepoints_5_4 = new Array();
level_5_5 = new Array();
enemies_5_5 = new Array();
doors_5_5 = new Array();
lifts_5_5 = new Array();
switches_5_5 = new Array();
pickups_5_5 = new Array();
screens_5_5 = new Array();
savepoints_5_5 = new Array();
level_5_6 = new Array();
enemies_5_6 = new Array();
doors_5_6 = new Array();
lifts_5_6 = new Array();
switches_5_6 = new Array();
pickups_5_6 = new Array();
screens_5_6 = new Array();
savepoints_5_6 = new Array();
level_5_7 = new Array();
enemies_5_7 = new Array();
doors_5_7 = new Array();
lifts_5_7 = new Array();
switches_5_7 = new Array();
pickups_5_7 = new Array();
screens_5_7 = new Array();
savepoints_5_7 = new Array();
level_5_8 = new Array();
enemies_5_8 = new Array();
doors_5_8 = new Array();
lifts_5_8 = new Array();
switches_5_8 = new Array();
pickups_5_8 = new Array();
screens_5_8 = new Array();
savepoints_5_8 = new Array();
level_6_1 = new Array();
enemies_6_1 = new Array();
doors_6_1 = new Array();
lifts_6_1 = new Array();
switches_6_1 = new Array();
pickups_6_1 = new Array();
screens_6_1 = new Array();
savepoints_6_1 = new Array();
level_6_2 = new Array();
enemies_6_2 = new Array();
doors_6_2 = new Array();
lifts_6_2 = new Array();
switches_6_2 = new Array();
pickups_6_2 = new Array();
screens_6_2 = new Array();
savepoints_6_2 = new Array();
level_6_3 = new Array();
enemies_6_3 = new Array();
doors_6_3 = new Array();
lifts_6_3 = new Array();
switches_6_3 = new Array();
pickups_6_3 = new Array();
screens_6_3 = new Array();
savepoints_6_3 = new Array();
level_6_4 = new Array();
enemies_6_4 = new Array();
doors_6_4 = new Array();
lifts_6_4 = new Array();
switches_6_4 = new Array();
pickups_6_4 = new Array();
screens_6_4 = new Array();
savepoints_6_4 = new Array();
level_6_5 = new Array();
enemies_6_5 = new Array();
doors_6_5 = new Array();
lifts_6_5 = new Array();
switches_6_5 = new Array();
pickups_6_5 = new Array();
screens_6_5 = new Array();
savepoints_6_5 = new Array();
level_6_8 = new Array();
enemies_6_8 = new Array();
doors_6_8 = new Array();
lifts_6_8 = new Array();
switches_6_8 = new Array();
pickups_6_8 = new Array();
screens_6_8 = new Array();
savepoints_6_8 = new Array();
level_6_9 = new Array();
enemies_6_9 = new Array();
doors_6_9 = new Array();
lifts_6_9 = new Array();
switches_6_9 = new Array();
pickups_6_9 = new Array();
screens_6_9 = new Array();
savepoints_6_9 = new Array();
stop();
stage.showDefaultContextMenu = false;
stageW = 540;
stageH = 540;
stageRect = new Rectangle(0, 0, stageW, stageH);
tileW = 30;
tileH = 30;
nextLevel = 0;
gameState = "none";
cursor = new CURSOR();
Mouse.hide();
slot1 = SharedObject.getLocal("mechanaught1");
slot2 = SharedObject.getLocal("mechanaught2");
slot3 = SharedObject.getLocal("mechanaught3");
savechoice = 0;
lastSave = 0;
collectedItems = [];
pushedSwitches = [];
tempCollected = [];
tempPushed = [];
lastRoomAmmo = [[1, 99999]];
lastRoomGun = 0;
keyList = ["??", "??", "??", "??", "??", "??", "??", "??", "BACKSPACE", "??", "??", "??", "??", "ENTER", "??", "??", "SHIFT", "CONTROL", "ALT", "??", "CAPSLOCK", "??", "??", "??", "??", "??", "??", "ESC", "??", "??", "??", "??", "SPACE", "PG UP", "PG DOWN", "END", "HOME", "LEFT", "UP", "RIGHT", "DOWN", "??", "??", "??", "??", "INSERT", "DELETE", "??", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "??", "??", "??", "??", "??", "??", "??", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", ";", "=", ",", "-", ".", "/", "'", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "[", "\\", "]", "#"];
shot1 = new pistolshot();
shot2 = new machinegunfire();
shot4 = new shotgunshot();
shotrocket = new rocketlaunch();
flamersound = new flamethrower();
switchsound = new switchpress();
pickupclick = new pickupsound();
strike1 = new hit1();
strike2 = new hit2();
strike3 = new hit3();
respawnsound = new spawnsound();
die1 = new death1();
die2 = new death2();
exp1 = new explode1();
loadopen = new openbolt();
loadclose = new closebolt();
bulletin = new loadbullet();
changegun = new gunchange();
changeroom = new godoor();
lazerbeam = new lazersound();
fireburst = new shortburst();
rollover = new mouseover();
clicked = new buttonclick();
saved = new savesuccess();
error = new cantpickup();
jump = new jumping();
boing = new spring();
type = new keyboardtype();
liftstart = new liftstarting();
liftstop = new liftstopping();
liftrun = new liftrunning();
muting = false;
fightingBoss = false;
bossStartTimer = 0;
soundto = 1;
soundfrom = 3;
soundDir = 0;
vol = 100;
rolledOver = 0;
errorTimer = 0;
controlsList = [65, 68, 87, 83, 69, 81, 82, 80, 77];
mainLoop = new gameloop();
bgLoop = new bgloop();
exciteTimer = 0;
finalsave = false;
music2Channel = new SoundChannel();
music2Channel.soundTransform = new SoundTransform(0, 0);
channel2 = new SoundChannel();
channel3 = new SoundChannel();
channel4 = new SoundChannel();
downKeys = new Object();
MD = false;
posX = 0;
posY = 0;
posAddX = 0;
posAddY = 0;
transto = "none";
Title = new TITLE();
updates = new updatespage();
loadgame = new LOADGAME();
controls = new CONTROLS();
gameOver = new gameover();
credits = new CREDITS();
trans = new TRANS();
ltrans = new levelTrans();
pop = new popup();
pop2 = new popup2();
pausegame = new pausemenu();
menuOption = 0;
controlsOption = 1;
fadeCT = new ColorTransform(1, 1, 1, 0.7, 0, 0, 0, 0);
drawSprite = new Sprite();
tiles = new tilesheet(0, 0);
conveyor1 = new conveyor1set(0, 0);
conveyor2 = new conveyor2set(0, 0);
conveyor3 = new conveyor3set(0, 0);
conveyor4 = new conveyor4set(0, 0);
conveyor5 = new conveyor5set(0, 0);
conveyor6 = new conveyor6set(0, 0);
jumpDown = new jump1(0, 0);
jumpUp = new jump2(0, 0);
nullLock = new MovieClip();
playerOb = {x:0, y:0, speed:0, maxSpeed:4, h:54, w:20, jumpSpeed:0, jumping:false, onGround:false, lives:3, maxLives:3, maxHealth:25, health:25, forcex:0, locky:nullLock, shots:0, kills:0};
gun1 = {ammo:12, spare:"X", capacity:12, reload:35};
gun2 = {ammo:30, spare:60, capacity:30, reload:50};
gun3 = {ammo:6, spare:0, capacity:6, reload:70};
gun4 = {ammo:2, spare:16, capacity:2, reload:60};
gun5 = {ammo:150, spare:150, capacity:150, reload:60};
gun6 = {ammo:100, spare:100, capacity:100, reload:80};
bossInfo = {dead:false, health:500, maxHealth:500, lCompHealth:100, rCompHealth:100, ldead:false, rdead:false, destroy:0, hurtTimer:0, maxCompHealth:100, attack:1, attackTimer:200};
gunsCollected = [];
reloading = 0;
reloadMax = 0;
gunType = 1;
grav = 0.8;
firing = false;
coolDown = 0;
gunoffset = 0;
fireSoundTime = 0;
flameTime = 0;
currentLevel = 1;
currentStage = 1;
lastStartX = 0;
lastStartY = 0;
lastGun = 1;
deathTime = 0;
moveScreenX = 0;
moveScreenY = 0;
gameoverswitch = false;
upPads = [];
addEventListener(Event.ENTER_FRAME, update);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keydown);
stage.addEventListener(KeyboardEvent.KEY_UP, keyup);
stage.addEventListener(MouseEvent.MOUSE_DOWN, mousedown);
stage.addEventListener(MouseEvent.MOUSE_UP, mouseup);
music2Channel = mainLoop.play(0, 99999);
music2Channel.soundTransform = new SoundTransform(0, 0);
init();
}
public function checkPickedUp(_arg1:pickup):Boolean{
if ((((playerOb.x > _arg1.x)) && ((playerOb.y > _arg1.y)))){
if ((((playerOb.x < (_arg1.x + 30))) && ((playerOb.y < (_arg1.y + 40))))){
return (true);
};
};
return (false);
}
function frame3(){
menuLoop = new menuloop();
musicChannel = new SoundChannel();
musicChannel.soundTransform = new SoundTransform(1, 0);
musicChannel = menuLoop.play(0, 9999);
SoundMixer.soundTransform = new SoundTransform(1, 0);
stop();
timer1 = 0;
this.addEventListener(Event.ENTER_FRAME, updatelogo1);
stage.addEventListener(MouseEvent.MOUSE_UP, getLink1);
stage.showDefaultContextMenu = false;
}
public function updatelogo1(_arg1:Event):void{
timer1++;
if (timer1 >= 100){
this.removeEventListener(Event.ENTER_FRAME, updatelogo1);
stage.removeEventListener(MouseEvent.MOUSE_UP, getLink1);
gotoAndStop(4);
};
}
public function updatelogo2(_arg1:Event):void{
timer2++;
if (timer2 >= 100){
this.removeEventListener(Event.ENTER_FRAME, updatelogo2);
stage.removeEventListener(MouseEvent.MOUSE_UP, getLink2);
gotoAndStop(5);
};
}
public function updatelogo3(_arg1:Event):void{
timer3++;
if (timer3 >= 135){
this.removeEventListener(Event.ENTER_FRAME, updatelogo3);
stage.removeEventListener(MouseEvent.MOUSE_UP, getLink3);
gotoAndStop(7);
};
}
function frame1(){
MochiBot.track(this, "475df568");
stop();
SoundMixer.soundTransform = new SoundTransform(0, 0);
CPMStarContentSpotID = "890Q470A3367";
ad = new AdLoader(CPMStarContentSpotID);
adBox.addChild(ad);
timer44 = 0;
this.addEventListener(Event.ENTER_FRAME, loadMe);
closeBtn.addEventListener(MouseEvent.CLICK, endAd);
coolbuddy.addEventListener(MouseEvent.MOUSE_UP, clickCool);
coolbuddy.addEventListener(MouseEvent.ROLL_OVER, rollOverCool);
coolbuddy.addEventListener(MouseEvent.ROLL_OUT, rollOutCool);
closeBtn.addEventListener(MouseEvent.ROLL_OVER, rollOverCon);
closeBtn.addEventListener(MouseEvent.ROLL_OUT, rollOutCon);
stage.showDefaultContextMenu = false;
}
public function checkLiftBounds(_arg1:MovieClip, _arg2:int, _arg3:int):Boolean{
if ((((_arg2 > _arg1.x)) && ((_arg3 > _arg1.y)))){
if ((((_arg2 < (_arg1.x + (_arg1.w * tileW)))) && ((_arg3 < (_arg1.y + (_arg1.h * tileH)))))){
return (true);
};
};
return (false);
}
function frame4(){
SoundMixer.soundTransform = new SoundTransform(1, 0);
stop();
timer2 = 0;
this.addEventListener(Event.ENTER_FRAME, updatelogo2);
stage.addEventListener(MouseEvent.MOUSE_UP, getLink2);
stage.showDefaultContextMenu = false;
}
function frame5(){
stop();
timer3 = 0;
this.addEventListener(Event.ENTER_FRAME, updatelogo3);
stage.addEventListener(MouseEvent.MOUSE_UP, getLink3);
stage.showDefaultContextMenu = false;
}
public function rollOverCon(_arg1:MouseEvent):void{
closeBtn.gotoAndStop(3);
}
public function clickCool(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.coolbuddy.com/?cid=189");
navigateToURL(_local2, "_blank");
}
public function fireShotgun():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
_local1 = -10;
_local2 = 0;
while (_local2 < 5) {
_local3 = (((playerOb.x + (gun.x * player.scaleX)) + ((Math.cos((gun.rotation * (Math.PI / 180))) * 30) * player.scaleX)) - ((Math.sin((gun.rotation * (Math.PI / 180))) * 3) * player.scaleX));
_local4 = (((playerOb.y + gun.y) + (Math.sin((gun.rotation * (Math.PI / 180))) * 30)) + (Math.cos((gun.rotation * (Math.PI / 180))) * 3));
fireLine(_local3, _local4, ((Math.cos(((gun.rotation + _local1) * (Math.PI / 180))) * 10) * player.scaleX), (Math.sin(((gun.rotation + _local1) * (Math.PI / 180))) * 10), 1, 0xFFFFFF, 2);
_local1 = (_local1 + 5);
_local2++;
};
}
public function loadMe(_arg1:Event):void{
var _local2:*;
var _local3:*;
timer44++;
_local2 = stage.loaderInfo.bytesLoaded;
_local3 = stage.loaderInfo.bytesTotal;
if ((((((_local2 == null)) || ((_local3 == null)))) || ((_local3 <= 0)))){
_local2 = 0;
_local3 = 100;
};
if ((((_local2 >= _local3)) && ((timer44 > 150)))){
this.removeEventListener(Event.ENTER_FRAME, loadMe);
closeBtn.gotoAndStop(2);
loadblock.gotoAndStop(2);
} else {
loader.gotoAndStop((Math.floor(((_local2 / _local3) * 10)) + 1));
};
}
public function init():void{
addChild(Title);
addChild(loadgame);
addChild(controls);
addChild(gameOver);
addChild(credits);
Title.alillmbtn.addEventListener(MouseEvent.CLICK, clickalillm);
credits.x = -800;
gameOver.x = -800;
controls.x = -800;
loadgame.x = -800;
updates.x = -800;
game = new Sprite();
sprites = new Sprite();
addChild(game);
display = new BitmapData(stageW, stageH, true, 0xFFFFFF);
dispbmp = new Bitmap(display);
game.addChild(dispbmp);
game.addChild(sprites);
game.addChild(trans);
game.addChild(ltrans);
particles = new Array();
parts = new Array();
flames = new Array();
grenades = new Array();
explosions = new Array();
doorObs = new Array();
switches = new Array();
fliers = new Array();
grunts = new Array();
turrets = new Array();
heavies = new Array();
launchers = new Array();
missiles = new Array();
lifts = new Array();
pickups = new Array();
jumpPads = new Object();
conveyors = new Array();
flamePads = new Array();
tvs = new Array();
savePoints = new Array();
bossParts = new Array();
octobombs = new Array();
computers = new Array();
gameState = "title";
resetData();
addChild(updates);
addChild(cursor);
}
public function updatePlayer():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:Array;
var _local6:int;
var _local7:Array;
var _local8:Array;
var _local9:Array;
var _local10:Array;
var _local11:Array;
var _local12:Array;
var _local13:Boolean;
var _local14:Boolean;
var _local15:Boolean;
var _local16:Boolean;
var _local17:int;
var _local18:int;
var _local19:int;
var _local20:*;
var _local21:int;
var _local22:Array;
_local1 = Math.floor((((playerOb.x - (playerOb.w / 2)) + 1) / tileW));
_local2 = Math.floor((((playerOb.x + (playerOb.w / 2)) - 1) / tileW));
_local3 = Math.floor(((playerOb.y + playerOb.jumpSpeed) / tileH));
_local4 = Math.floor((((playerOb.y - playerOb.h) + playerOb.jumpSpeed) / tileH));
if (playerOb.locky != nullLock){
playerOb.forcex = playerOb.locky.xv;
};
if ((((map[_local3][_local1] == 3)) && ((map[_local3][_local2] == 3)))){
playerDie();
playerOb.forcex = 0;
return;
};
if ((((map[_local3][_local1] == 4)) && ((map[_local3][_local2] == 4)))){
boing.play();
playerOb.jumpSpeed = -20;
playerOb.y = (playerOb.y - 15);
playerOb.onGround = false;
jumpPads[((("pad_" + _local3) + "_") + _local1)].timer = 12;
upPads.push([_local3, _local1]);
levelMap.fillRect(new Rectangle((_local1 * tileH), (_local3 * tileW), tileW, tileH), 0xFFFFFF);
levelMap.copyPixels(jumpUp, new Rectangle(0, 0, tileW, (tileH + 15)), new Point((_local1 * tileW), ((_local3 * tileH) - 15)));
playerOb.forcex = 0;
} else {
if ((((((((((((map[_local3][_local1] == 8)) || ((map[_local3][_local2] == 8)))) || ((map[_local3][_local1] == 9)))) || ((map[_local3][_local2] == 9)))) || ((map[_local3][_local1] == 10)))) || ((map[_local3][_local2] == 10)))){
playerOb.forcex = 2;
} else {
if ((((((((((((map[_local3][_local1] == 11)) || ((map[_local3][_local2] == 11)))) || ((map[_local3][_local1] == 12)))) || ((map[_local3][_local2] == 12)))) || ((map[_local3][_local1] == 13)))) || ((map[_local3][_local2] == 13)))){
playerOb.forcex = -2;
} else {
if ((((((map[_local3][_local1] >= 0)) && ((map[_local3][_local2] >= 0)))) && ((playerOb.locky == nullLock)))){
playerOb.forcex = 0;
};
};
};
};
if (playerOb.onGround == false){
if (playerOb.jumpSpeed >= 0){
if ((((map[_local3][_local1] > 0)) || ((map[_local3][_local2] > 0)))){
playerOb.onGround = true;
playerOb.y = (_local3 * tileH);
playerOb.jumpSpeed = 0;
playerOb.locky = nullLock;
};
if (playerOb.locky != nullLock){
if (((!((map[_local4][_local1] == 0))) || (!((map[_local4][_local2] == 0))))){
playerDie();
return;
};
if (checkLiftBounds(playerOb.locky, (playerOb.x - (playerOb.w / 2)), (playerOb.y + 6)) == false){
if (checkLiftBounds(playerOb.locky, (playerOb.x + (playerOb.w / 2)), (playerOb.y + 6)) == false){
playerOb.locky = nullLock;
playerOb.forcex = 0;
};
};
};
_local21 = 0;
while (_local21 < lifts.length) {
if (playerOb.y <= (lifts[_local21].y + 20)){
if ((((checkLiftBounds(lifts[_local21], (playerOb.x - (playerOb.w / 2)), ((playerOb.y + playerOb.jumpSpeed) + 1)) == true)) || ((checkLiftBounds(lifts[_local21], (playerOb.x + (playerOb.w / 2)), ((playerOb.y + playerOb.jumpSpeed) + 1)) == true)))){
playerOb.onGround = true;
playerOb.y = lifts[_local21].y;
playerOb.jumpSpeed = 0;
playerOb.forcex = lifts[_local21].xv;
playerOb.locky = lifts[_local21];
};
};
_local21++;
};
} else {
if ((((map[_local4][_local1] > 0)) || ((map[_local4][_local2] > 0)))){
playerOb.y = (((_local4 * tileH) + playerOb.h) + tileH);
playerOb.jumpSpeed = 0;
playerOb.jumping = false;
};
};
if (playerOb.locky == nullLock){
playerOb.y = (playerOb.y + playerOb.jumpSpeed);
} else {
playerOb.y = playerOb.locky.y;
};
if ((((((playerOb.jumpSpeed < 20)) && ((playerOb.jumping == false)))) && ((playerOb.locky == nullLock)))){
playerOb.jumpSpeed = (playerOb.jumpSpeed + grav);
};
} else {
if ((((map[_local3][_local1] > 0)) || ((map[_local3][_local2] > 0)))){
playerOb.locky = nullLock;
};
if (playerOb.locky != nullLock){
playerOb.y = playerOb.locky.y;
};
if ((((map[_local3][_local1] == 0)) && ((map[_local3][_local2] == 0)))){
playerOb.onGround = false;
};
};
_local5 = checkHitLifts(((playerOb.x - (playerOb.w / 2)) + 2), ((playerOb.y - playerOb.h) + playerOb.jumpSpeed));
if (_local5[0] == true){
if (playerOb.onGround == false){
if (playerOb.jumpSpeed < 0){
playerOb.y = (((_local5[1].y + (_local5[1].h * tileH)) + playerOb.h) + _local5[1].yv);
playerOb.jumpSpeed = 1;
playerOb.jumping = false;
};
} else {
if (_local5[1].yv > 0){
playerDie();
return;
};
};
} else {
_local22 = checkHitLifts(((playerOb.x + (playerOb.w / 2)) - 2), ((playerOb.y - playerOb.h) + playerOb.jumpSpeed));
if (_local22[0] == true){
if (playerOb.onGround == false){
if (playerOb.jumpSpeed < 0){
playerOb.y = (((_local22[1].y + (_local22[1].h * tileH)) + playerOb.h) + _local22[1].yv);
playerOb.jumpSpeed = 1;
playerOb.jumping = false;
};
} else {
if (_local22[1].yv > 0){
playerDie();
return;
};
};
};
};
if ((((downKeys[("key" + controlsList[2])] == true)) && ((gameState == "game")))){
if (((playerOb.onGround) || (!((playerOb.locky == nullLock))))){
jump.play();
playerOb.locky = nullLock;
playerOb.forcex = 0;
playerOb.jumping = true;
playerOb.jumpSpeed = -5;
playerOb.onGround = false;
};
} else {
playerOb.jumping = false;
};
if (playerOb.jumping == true){
if (playerOb.jumpSpeed > -9){
playerOb.jumpSpeed = (playerOb.jumpSpeed - 0.5);
if (playerOb.jumpSpeed <= -9){
playerOb.jumping = false;
};
};
};
if ((((downKeys[("key" + controlsList[1])] == true)) && ((gameState == "game")))){
playerOb.speed = (playerOb.speed + 0.6);
if (playerOb.speed > playerOb.maxSpeed){
playerOb.speed = playerOb.maxSpeed;
};
if (player.legs.currentFrame != 2){
player.legs.gotoAndStop(2);
};
player.scaleX = 1;
player.reload.scaleX = 1;
} else {
if ((((downKeys[("key" + controlsList[0])] == true)) && ((gameState == "game")))){
playerOb.speed = (playerOb.speed - 0.6);
if (playerOb.speed < -(playerOb.maxSpeed)){
playerOb.speed = -(playerOb.maxSpeed);
};
if (player.legs.currentFrame != 2){
player.legs.gotoAndStop(2);
};
player.scaleX = -1;
player.reload.scaleX = -1;
} else {
if (playerOb.speed > 0){
playerOb.speed = (playerOb.speed - 0.3);
if (playerOb.speed < 0){
playerOb.speed = 0;
};
} else {
if (playerOb.speed < 0){
playerOb.speed = (playerOb.speed + 0.3);
if (playerOb.speed > 0){
playerOb.speed = 0;
};
} else {
playerOb.speed = 0;
};
};
player.legs.gotoAndStop(1);
};
};
_local1 = Math.floor(((((playerOb.x + playerOb.speed) - (playerOb.w / 2)) + playerOb.forcex) / tileW));
_local2 = Math.floor(((((playerOb.x + playerOb.speed) + (playerOb.w / 2)) + playerOb.forcex) / tileW));
_local3 = Math.floor(((playerOb.y - 1) / tileH));
_local4 = Math.floor((((playerOb.y - playerOb.h) + 1) / tileH));
_local6 = Math.floor(((playerOb.y - (playerOb.h / 2)) / tileH));
_local7 = checkHitLifts((((playerOb.x + (playerOb.w / 2)) + playerOb.speed) + playerOb.forcex), ((playerOb.y - playerOb.h) + 3));
_local8 = checkHitLifts((((playerOb.x + (playerOb.w / 2)) + playerOb.speed) + playerOb.forcex), (playerOb.y - 3));
_local9 = checkHitLifts((((playerOb.x + (playerOb.w / 2)) + playerOb.speed) + playerOb.forcex), (playerOb.y - (playerOb.h / 2)));
_local10 = checkHitLifts((((playerOb.x - (playerOb.w / 2)) + playerOb.speed) + playerOb.forcex), ((playerOb.y - playerOb.h) + 3));
_local11 = checkHitLifts((((playerOb.x - (playerOb.w / 2)) + playerOb.speed) + playerOb.forcex), (playerOb.y - 3));
_local12 = checkHitLifts((((playerOb.x - (playerOb.w / 2)) + playerOb.speed) + playerOb.forcex), (playerOb.y - (playerOb.h / 2)));
if (_local7[0] == true){
playerOb.x = (_local7[1].x - (playerOb.w / 2));
playerOb.speed = 0;
} else {
if (_local8[0] == true){
playerOb.x = (_local8[1].x - (playerOb.w / 2));
playerOb.speed = 0;
} else {
if (_local9[0] == true){
playerOb.x = (_local9[1].x - (playerOb.w / 2));
playerOb.speed = 0;
} else {
if (_local10[0] == true){
playerOb.x = ((_local10[1].x + (_local10[1].w * tileW)) + (playerOb.w / 2));
playerOb.speed = 0;
} else {
if (_local11[0] == true){
playerOb.x = ((_local11[1].x + (_local11[1].w * tileW)) + (playerOb.w / 2));
playerOb.speed = 0;
} else {
if (_local12[0] == true){
playerOb.x = ((_local12[1].x + (_local12[1].w * tileW)) + (playerOb.w / 2));
playerOb.speed = 0;
};
};
};
};
};
};
_local13 = false;
_local14 = false;
_local15 = false;
_local16 = false;
if (liftsCollider.getPixel(((playerOb.x + playerOb.speed) - (playerOb.w / 2)), (playerOb.y - 10)) == 0){
_local15 = true;
};
if (liftsCollider.getPixel(((playerOb.x + playerOb.speed) - (playerOb.w / 2)), ((playerOb.y + 10) - playerOb.h)) == 0){
_local13 = true;
};
if (liftsCollider.getPixel(((playerOb.x + playerOb.speed) + (playerOb.w / 2)), (playerOb.y - 10)) == 0){
_local16 = true;
};
if (liftsCollider.getPixel(((playerOb.x + playerOb.speed) + (playerOb.w / 2)), ((playerOb.y + 10) - playerOb.h)) == 0){
_local14 = true;
};
if ((((_local15 == true)) && ((_local16 == true)))){
playerDie();
return;
};
if ((((_local13 == true)) && ((_local16 == true)))){
playerDie();
return;
};
if ((((_local13 == true)) && ((_local14 == true)))){
playerDie();
return;
};
if ((((_local15 == true)) && ((_local14 == true)))){
playerDie();
return;
};
if ((((_local15 == true)) && (!((map[_local3][_local2] == 0))))){
playerDie();
return;
};
if ((((_local15 == true)) && (!((map[_local4][_local2] == 0))))){
playerDie();
return;
};
if ((((_local13 == true)) && (!((map[_local3][_local2] == 0))))){
playerDie();
return;
};
if ((((_local13 == true)) && (!((map[_local4][_local2] == 0))))){
playerDie();
return;
};
if ((((_local16 == true)) && (!((map[_local3][_local1] == 0))))){
playerDie();
return;
};
if ((((_local16 == true)) && (!((map[_local4][_local1] == 0))))){
playerDie();
return;
};
if ((((_local14 == true)) && (!((map[_local3][_local1] == 0))))){
playerDie();
return;
};
if ((((_local14 == true)) && (!((map[_local4][_local1] == 0))))){
playerDie();
return;
};
if ((playerOb.speed + playerOb.forcex) > 0){
if ((((((((map[_local3][_local2] == 0)) && ((map[_local4][_local2] == 0)))) && ((map[_local6][_local2] == 0)))) && ((checkCollisionBoss(((playerOb.x + playerOb.speed) + playerOb.forcex), playerOb.y) == false)))){
playerOb.x = (playerOb.x + (playerOb.speed + playerOb.forcex));
} else {
playerOb.x = ((_local2 * tileW) - (playerOb.w / 2));
};
} else {
if ((playerOb.speed + playerOb.forcex) < 0){
if ((((((((map[_local3][_local1] == 0)) && ((map[_local4][_local1] == 0)))) && ((map[_local6][_local1] == 0)))) && ((checkCollisionBoss(((playerOb.x + playerOb.speed) + playerOb.forcex), playerOb.y) == false)))){
playerOb.x = (playerOb.x + (playerOb.speed + playerOb.forcex));
} else {
playerOb.x = (((_local1 * tileW) + tileW) + (playerOb.w / 2));
};
};
};
if (playerOb.health <= 0){
playerDie();
};
_local18 = ((mouseX - (player.x + gun.x)) * player.scaleX);
_local19 = (mouseY - (player.y + gun.y));
_local20 = Math.atan2(_local19, _local18);
gun.rotation = ((_local20 * (180 / Math.PI)) + gunoffset);
}
public function respawn():void{
var _local1:int;
deathTime--;
if (deathTime <= 20){
if (gameoverswitch == true){
gameoverswitch = false;
gameState = "trans";
transto = "gameover";
trans.play();
soundto = 3;
soundDir = 2;
return;
};
playerOb.x = (playerOb.x + moveScreenX);
playerOb.y = (playerOb.y + moveScreenY);
};
if (deathTime == 10){
respawnsound.play();
};
if (deathTime == 1){
player.gotoAndStop(1);
};
if (deathTime <= 0){
playerOb.speed = 0;
playerOb.jumpSpeed = 0;
playerOb.onGround = true;
playerOb.health = playerOb.maxHealth;
changeGun();
clearLevel();
loadMap(currentLevel, currentStage);
playerOb.x = lastStartX;
playerOb.y = lastStartY;
if ((((currentLevel == 6)) && ((currentStage == 5)))){
_local1 = 0;
while (_local1 < lifts.length) {
if ((((lifts[_local1].id >= 1)) && ((lifts[_local1].id <= 2)))){
lifts[_local1].s = 1;
lifts[_local1].ch = liftrun.play();
lifts[_local1].xv = lifts[_local1].xMove;
lifts[_local1].yv = lifts[_local1].yMove;
} else {
if (lifts[_local1].id == 0){
lifts[_local1].s = 2;
lifts[_local1].once = 2;
lifts[_local1].x = (lifts[_local1].ex * tileW);
lifts[_local1].y = (lifts[_local1].ey * tileH);
};
};
_local1++;
};
};
};
}
public function botExplode(_arg1:int, _arg2:int):void{
var _local3:int;
var _local4:int;
die1.play();
_local3 = 0;
while (_local3 < 8) {
newParticle(_arg1, _arg2, 3, ((Math.random() * 4) + 1));
_local3++;
};
_local4 = 0;
while (_local4 < 16) {
newExplosionParticle(_arg1, _arg2, 4, ((Math.random() * 4) + 1));
_local4++;
};
newPart(_arg1, (_arg2 - 50), 3, 0, 15, 1);
newPart(_arg1, (_arg2 - 30), 3, 0, 5, 1);
newPart(_arg1, (_arg2 - 20), 3, 0, 6, 1);
newPart(_arg1, (_arg2 - 10), 3, 0, 7, 1);
newPart(_arg1, (_arg2 - 3), 3, 0, 8, 1);
}
public function launcherExplode(_arg1:int, _arg2:int, _arg3:Number, _arg4:int=1):void{
var _local5:int;
var _local6:int;
var _local7:int;
playerOb.kills++;
_local5 = ((Math.random() * 2) + 1);
this[("die" + _local5)].play();
_local6 = 0;
while (_local6 < 10) {
newParticle(_arg1, _arg2, 3, ((Math.random() * 4) + 1));
_local6++;
};
_local7 = 0;
while (_local7 < 15) {
newExplosionParticle(_arg1, _arg2, 5, ((Math.random() * 4) + 1));
_local7++;
};
newPart(_arg1, (_arg2 - 20), _arg3, 0, 22, _arg4);
newPart(_arg1, _arg2, _arg3, 0, 23, _arg4);
}
public function clearLevel():void{
var _local1:int;
_local1 = 0;
while (_local1 < particles.length) {
sprites.removeChild(particles[_local1]);
_local1++;
};
_local1 = 0;
while (_local1 < parts.length) {
sprites.removeChild(parts[_local1]);
_local1++;
};
_local1 = 0;
while (_local1 < grenades.length) {
sprites.removeChild(grenades[_local1]);
_local1++;
};
_local1 = 0;
while (_local1 < flames.length) {
sprites.removeChild(flames[_local1]);
_local1++;
};
_local1 = 0;
while (_local1 < doorObs.length) {
sprites.removeChild(doorObs[_local1]);
_local1++;
};
_local1 = 0;
while (_local1 < switches.length) {
sprites.removeChild(switches[_local1]);
_local1++;
};
_local1 = 0;
while (_local1 < fliers.length) {
sprites.removeChild(fliers[_local1]);
_local1++;
};
_local1 = 0;
while (_local1 < grunts.length) {
sprites.removeChild(grunts[_local1]);
_local1++;
};
_local1 = 0;
while (_local1 < turrets.length) {
sprites.removeChild(turrets[_local1]);
_local1++;
};
_local1 = 0;
while (_local1 < heavies.length) {
sprites.removeChild(heavies[_local1]);
_local1++;
};
_local1 = 0;
while (_local1 < launchers.length) {
sprites.removeChild(launchers[_local1]);
_local1++;
};
_local1 = 0;
while (_local1 < missiles.length) {
sprites.removeChild(missiles[_local1]);
_local1++;
};
_local1 = 0;
while (_local1 < lifts.length) {
sprites.removeChild(lifts[_local1]);
_local1++;
};
_local1 = 0;
while (_local1 < pickups.length) {
sprites.removeChild(pickups[_local1]);
_local1++;
};
_local1 = 0;
while (_local1 < tvs.length) {
sprites.removeChild(tvs[_local1]);
_local1++;
};
_local1 = 0;
while (_local1 < savePoints.length) {
sprites.removeChild(savePoints[_local1]);
_local1++;
};
_local1 = 0;
while (_local1 < bossParts.length) {
sprites.removeChild(bossParts[_local1]);
_local1++;
};
_local1 = 0;
while (_local1 < octobombs.length) {
sprites.removeChild(octobombs[_local1]);
_local1++;
};
particles = new Array();
parts = new Array();
grenades = new Array();
explosions = new Array();
flames = new Array();
doorObs = new Array();
switches = new Array();
fliers = new Array();
grunts = new Array();
turrets = new Array();
heavies = new Array();
launchers = new Array();
missiles = new Array();
lifts = new Array();
pickups = new Array();
jumpPads = new Object();
upPads = new Array();
flamePads = new Array();
conveyors = new Array();
tvs = new Array();
bossParts = new Array();
octobombs = new Array();
savePoints = new Array();
computers = new Array();
sprites.removeChild(fadebmp);
}
public function updateFlamePads():void{
var _local1:int;
var _local2:Object;
var _local3:int;
var _local4:int;
var _local5:*;
_local1 = 0;
while (_local1 < flamePads.length) {
_local2 = flamePads[_local1];
_local2.t--;
if (_local2.t == 0){
_local2.ob.sc = flamersound.play();
};
if (_local2.t < 0){
fireFlame2((((_local2.x * tileW) + (tileW / 2)) + (_local2.xv * 2.1)), (((_local2.y * tileH) + (tileH / 2)) + (_local2.yv * 2.1)), _local2.xv, _local2.yv);
if (_local2.t <= -50){
_local2.t = 100;
_local2.ob.sc.stop();
};
};
_local3 = (playerOb.x - ((_local2.x * tileW) + 15));
_local4 = ((playerOb.y - 30) - ((_local2.y * tileH) + 15));
_local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4)));
if (_local5 <= 300){
_local2.ob.sc.soundTransform = new SoundTransform(((300 - _local5) / 300), 0);
} else {
_local2.ob.sc.soundTransform = new SoundTransform(0, 0);
};
_local1++;
};
}
public function updateLoad():void{
if ((((stage.mouseY > 490)) && ((stage.mouseY < 530)))){
if ((((stage.mouseX > 200)) && ((stage.mouseX < 340)))){
if (rolledOver != 1){
rolledOver = 1;
rollover.play();
};
loadgame.backbtn.gotoAndStop(2);
loadgame.slot1.gotoAndStop(1);
loadgame.slot2.gotoAndStop(1);
loadgame.slot3.gotoAndStop(1);
menuOption = 1;
};
} else {
if ((((stage.mouseY > 120)) && ((stage.mouseY < 220)))){
if (rolledOver != 2){
rolledOver = 2;
rollover.play();
};
loadgame.backbtn.gotoAndStop(1);
loadgame.slot1.gotoAndStop(2);
loadgame.slot2.gotoAndStop(1);
loadgame.slot3.gotoAndStop(1);
menuOption = 2;
} else {
if ((((stage.mouseY > 250)) && ((stage.mouseY < 350)))){
if (rolledOver != 3){
rolledOver = 3;
rollover.play();
};
loadgame.backbtn.gotoAndStop(1);
loadgame.slot1.gotoAndStop(1);
loadgame.slot2.gotoAndStop(2);
loadgame.slot3.gotoAndStop(1);
menuOption = 3;
} else {
if ((((stage.mouseY > 380)) && ((stage.mouseY < 480)))){
if (rolledOver != 4){
rolledOver = 4;
rollover.play();
};
loadgame.backbtn.gotoAndStop(1);
loadgame.slot1.gotoAndStop(1);
loadgame.slot2.gotoAndStop(1);
loadgame.slot3.gotoAndStop(2);
menuOption = 4;
} else {
rolledOver = 0;
loadgame.backbtn.gotoAndStop(1);
loadgame.slot1.gotoAndStop(1);
loadgame.slot2.gotoAndStop(1);
loadgame.slot3.gotoAndStop(1);
menuOption = 0;
};
};
};
};
}
public function newExplosion(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int):void{
var _local6:Object;
_local6 = {x:_arg1, y:_arg2, rad:0, dec:(_arg3 / (_arg4 / 20)), dam:_arg3, max:_arg4, t:_arg5};
explosions.push(_local6);
}
public function wallHit(_arg1:int, _arg2:int):void{
var _local3:int;
_local3 = 0;
while (_local3 < 8) {
newParticle(_arg1, _arg2, 2, ((Math.random() * 2) + 1));
_local3++;
};
}
public function updatePopup():void{
var _local1:*;
if (pop.currentFrame == 23){
_local1 = 0;
while (_local1 < 3) {
if (this[("slot" + (_local1 + 1))].data.dat == undefined){
pop[("option" + (_local1 + 1))].txt.text = (("SLOT " + String((_local1 + 1))) + " - EMPTY");
} else {
if (this[("slot" + (_local1 + 1))].data.dat.length == 0){
pop[("option" + (_local1 + 1))].txt.text = (("SLOT " + String((_local1 + 1))) + " - EMPTY");
} else {
pop[("option" + (_local1 + 1))].txt.text = ((((("SLOT " + String((_local1 + 1))) + " - LEVEL ") + this[("slot" + (_local1 + 1))].data.dat[0]) + " | ") + this[("slot" + (_local1 + 1))].data.dat[1]);
};
};
_local1++;
};
if ((((stage.mouseY > 175)) && ((stage.mouseY < 203)))){
if (rolledOver != 1){
rolledOver = 1;
rollover.play();
};
pop.option1.gotoAndStop(2);
pop.option2.gotoAndStop(1);
pop.option3.gotoAndStop(1);
pop.option4.gotoAndStop(1);
menuOption = 1;
} else {
if ((((stage.mouseY > 215)) && ((stage.mouseY < 242)))){
if (rolledOver != 2){
rolledOver = 2;
rollover.play();
};
pop.option1.gotoAndStop(1);
pop.option2.gotoAndStop(2);
pop.option3.gotoAndStop(1);
pop.option4.gotoAndStop(1);
menuOption = 2;
} else {
if ((((stage.mouseY > 260)) && ((stage.mouseY < 288)))){
if (rolledOver != 3){
rolledOver = 3;
rollover.play();
};
pop.option1.gotoAndStop(1);
pop.option2.gotoAndStop(1);
pop.option3.gotoAndStop(2);
pop.option4.gotoAndStop(1);
menuOption = 3;
} else {
if ((((stage.mouseY > 300)) && ((stage.mouseY < 328)))){
if (rolledOver != 4){
rolledOver = 4;
rollover.play();
};
pop.option1.gotoAndStop(1);
pop.option2.gotoAndStop(1);
pop.option3.gotoAndStop(1);
pop.option4.gotoAndStop(2);
menuOption = 4;
} else {
rolledOver = 0;
pop.option1.gotoAndStop(1);
pop.option2.gotoAndStop(1);
pop.option3.gotoAndStop(1);
pop.option4.gotoAndStop(1);
menuOption = 0;
};
};
};
};
} else {
if (pop.currentFrame == 36){
if ((((stage.mouseY > 242)) && ((stage.mouseY < 272)))){
if (rolledOver != 1){
rolledOver = 1;
rollover.play();
};
pop.op1.gotoAndStop(2);
pop.op2.gotoAndStop(1);
menuOption = 1;
} else {
if ((((stage.mouseY > 272)) && ((stage.mouseY < 302)))){
if (rolledOver != 2){
rolledOver = 2;
rollover.play();
};
pop.op1.gotoAndStop(1);
pop.op2.gotoAndStop(2);
menuOption = 2;
} else {
rolledOver = 0;
pop.op1.gotoAndStop(1);
pop.op2.gotoAndStop(1);
menuOption = 0;
};
};
} else {
if (pop.currentFrame == 49){
if ((((stage.mouseY > 252)) && ((stage.mouseY < 279)))){
if (rolledOver != 1){
rolledOver = 1;
rollover.play();
};
pop.option1.gotoAndStop(2);
menuOption = 1;
} else {
rolledOver = 0;
pop.option1.gotoAndStop(1);
menuOption = 0;
};
} else {
if (pop.currentFrame == 72){
removeChild(pop);
if (finalsave == false){
gameState = "game";
} else {
gameState = "trans";
transto = "creditsfromgame";
finalsave = false;
};
} else {
if (pop.currentFrame == 107){
removeChild(pop);
if (finalsave == false){
gameState = "game";
} else {
gameState = "trans";
transto = "creditsfromgame";
finalsave = false;
};
};
};
};
};
};
}
public function reloadGrenade(_arg1:int):void{
if (_arg1 == 69){
bulletin.play();
} else {
if (_arg1 == 58){
bulletin.play();
} else {
if (_arg1 == 47){
bulletin.play();
} else {
if (_arg1 == 36){
bulletin.play();
} else {
if (_arg1 == 25){
bulletin.play();
} else {
if (_arg1 == 14){
bulletin.play();
};
};
};
};
};
};
}
public function updateOctobombs():void{
var _local1:int;
var _local2:octobomb;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
_local1 = 0;
while (_local1 < octobombs.length) {
_local2 = octobombs[_local1];
_local2.y = (_local2.y + _local2.yv);
if (_local2.yv < 15){
_local2.yv = (_local2.yv + 0.5);
};
_local3 = ((_local2.x + 15) - playerOb.x);
_local4 = ((_local2.y + 15) - (playerOb.y - 30));
if (((_local3 * _local3) + (_local4 * _local4)) < 900){
playerOb.health = 0;
_local2.dead = true;
};
_local5 = Math.floor(((_local2.x + 15) / tileW));
_local6 = Math.floor(((_local2.y + 30) / tileH));
if (((((!((map[_local6][_local5] == 0))) || ((liftsCollider.getPixel((_local2.x + 15), (_local2.y + 30)) == 0)))) || ((_local2.dead == true)))){
if (_local6 == 27){
_local7 = int((Math.random() * 10));
if (_local7 == 0){
newPickup((_local5 * tileW), ((_local6 * tileH) - 30), 7, 6, 5, 99999);
} else {
if ((((_local7 == 1)) || ((_local7 == 2)))){
newPickup((_local5 * tileW), ((_local6 * tileH) - 30), 8, 6, 5, 99999);
};
};
};
grenadeExplode((_local2.x + 15), (_local2.y + 15));
sprites.removeChild(_local2);
octobombs.splice(_local1, 1);
_local1--;
};
_local1++;
};
}
public function updateExplosions():void{
var _local1:int;
var _local2:int;
var _local3:Object;
var _local4:flier;
var _local5:grunt;
var _local6:turret;
var _local7:heavy;
var _local8:launcher;
var _local9:Object;
_local1 = 0;
_local2 = 0;
while (_local2 < explosions.length) {
_local3 = explosions[_local2];
_local1 = 0;
while (_local1 < fliers.length) {
_local4 = fliers[_local1];
if (((((((!((_local4.explosionHits[0] == _local3))) && (!((_local4.explosionHits[1] == _local3))))) && (!((_local4.explosionHits[2] == _local3))))) && (!((_local4.explosionHits[3] == _local3))))){
if ((((_local4.x - _local3.x) * (_local4.x - _local3.x)) + ((_local4.y - _local3.y) * (_local4.y - _local3.y))) < ((10 + _local3.rad) * (10 + _local3.rad))){
if (LOS(_local4.x, _local4.y, _local3.x, _local3.y) == true){
_local4.explosionHits.splice(0, 0, _local3);
_local4.health = (_local4.health - _local3.dam);
_local4.hitTime = 30;
_local4.hbar.alpha = 1;
_local4.hbar.bar.width = ((_local4.health / 2) * 25);
};
};
};
_local1++;
};
_local1 = 0;
while (_local1 < grunts.length) {
_local5 = grunts[_local1];
if (((((((!((_local5.explosionHits[0] == _local3))) && (!((_local5.explosionHits[1] == _local3))))) && (!((_local5.explosionHits[2] == _local3))))) && (!((_local5.explosionHits[3] == _local3))))){
if ((((_local5.x - _local3.x) * (_local5.x - _local3.x)) + ((_local5.y - _local3.y) * (_local5.y - _local3.y))) < ((40 + _local3.rad) * (40 + _local3.rad))){
if (LOS(_local5.x, (_local5.y - 25), _local3.x, _local3.y) == true){
_local5.explosionHits.splice(0, 0, _local3);
_local5.health = (_local5.health - _local3.dam);
_local5.hitTime = 30;
_local5.hbar.alpha = 1;
_local5.hbar.bar.width = ((_local5.health / 12) * 25);
};
};
};
_local1++;
};
_local1 = 0;
while (_local1 < turrets.length) {
_local6 = turrets[_local1];
if (((((((!((_local6.explosionHits[0] == _local3))) && (!((_local6.explosionHits[1] == _local3))))) && (!((_local6.explosionHits[2] == _local3))))) && (!((_local6.explosionHits[3] == _local3))))){
if ((((_local6.x - _local3.x) * (_local6.x - _local3.x)) + ((_local6.y - _local3.y) * (_local6.y - _local3.y))) < ((30 + _local3.rad) * (30 + _local3.rad))){
if (LOS(_local6.x, (_local6.y + 15), _local3.x, _local3.y) == true){
_local6.explosionHits.splice(0, 0, _local3);
_local6.health = (_local6.health - _local3.dam);
_local6.hitTime = 30;
_local6.hbar.alpha = 1;
_local6.hbar.bar.width = ((_local6.health / 10) * 25);
};
};
};
_local1++;
};
_local1 = 0;
while (_local1 < heavies.length) {
_local7 = heavies[_local1];
if (((((((!((_local7.explosionHits[0] == _local3))) && (!((_local7.explosionHits[1] == _local3))))) && (!((_local7.explosionHits[2] == _local3))))) && (!((_local7.explosionHits[3] == _local3))))){
if ((((_local7.x - _local3.x) * (_local7.x - _local3.x)) + ((_local7.y - _local3.y) * (_local7.y - _local3.y))) < ((40 + _local3.rad) * (40 + _local3.rad))){
if (LOS(_local7.x, (_local7.y - 25), _local3.x, _local3.y) == true){
_local7.explosionHits.splice(0, 0, _local3);
_local7.health = (_local7.health - _local3.dam);
_local7.hitTime = 30;
_local7.hbar.alpha = 1;
_local7.hbar.bar.width = ((_local7.health / 15) * 25);
};
};
};
_local1++;
};
_local1 = 0;
while (_local1 < launchers.length) {
_local8 = launchers[_local1];
if (((((((!((_local8.explosionHits[0] == _local3))) && (!((_local8.explosionHits[1] == _local3))))) && (!((_local8.explosionHits[2] == _local3))))) && (!((_local8.explosionHits[3] == _local3))))){
if ((((_local8.x - _local3.x) * (_local8.x - _local3.x)) + ((_local8.y - _local3.y) * (_local8.y - _local3.y))) < ((40 + _local3.rad) * (40 + _local3.rad))){
if (LOS(_local8.x, (_local8.y - 15), _local3.x, _local3.y) == true){
_local8.explosionHits.splice(0, 0, _local3);
_local8.health = (_local8.health - _local3.dam);
_local8.hitTime = 30;
_local8.hbar.alpha = 1;
_local8.hbar.bar.width = ((_local8.health / 30) * 25);
};
};
};
_local1++;
};
_local1 = 0;
while (_local1 < computers.length) {
_local9 = computers[_local1];
if (Math.abs((_local9.x - _local3.x)) <= 20){
if ((((_local3.y >= _local9.y)) && ((_local3.y <= (_local9.y + _local9.h))))){
if (_local9.side == 1){
bossInfo.lCompHealth = (bossInfo.lCompHealth - 10);
_local9.ob.play();
} else {
if (_local9.side == 2){
bossInfo.rCompHealth = (bossInfo.rCompHealth - 10);
_local9.ob.play();
} else {
bossInfo.health = (bossInfo.health - 10);
};
};
explosions.splice(_local2, 1);
_local2--;
};
};
_local1++;
};
_local3.rad = (_local3.rad + 20);
_local3.dam = (_local3.dam - _local3.dec);
if (_local3.rad > _local3.max){
explosions.splice(_local2, 1);
_local2--;
};
_local2++;
};
}
public function newLauncher(_arg1:int, _arg2:int):void{
var _local3:launcher;
_local3 = new launcher();
sprites.addChild(_local3);
_local3.x = _arg1;
_local3.y = _arg2;
_local3.health = 30;
_local3.lastHealth = 30;
_local3.gun.rotation = ((Math.random() * 180) + 180);
_local3.seeking = false;
_local3.checkLos = int((Math.random() * 5));
_local3.dir = 1;
_local3.shootTime = 0;
_local3.ang = 0;
_local3.onFire = 0;
_local3.explosionHits = [];
_local3.hbar.alpha = 0;
_local3.hitTime = 0;
_local3.range = 500;
launchers.push(_local3);
}
public function checkCollisionBoss(_arg1:int, _arg2:int):Boolean{
if ((((currentLevel == 6)) && ((currentStage == 5)))){
if ((((_arg2 > computers[0].y)) && (((_arg2 - playerOb.h) < (computers[0].y + 120))))){
if ((((_arg1 > (computers[0].x - 30))) && ((_arg1 < (computers[1].x + 30))))){
return (true);
};
};
};
return (false);
}
public function getLink1(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.coolbuddy.com/?cid=189");
navigateToURL(_local2, "_blank");
}
public function getLink2(_arg1:MouseEvent):void{
var _local2:URLRequest;
MochiBot.track(this, "01d06294");
_local2 = new URLRequest("http://www.alillm.com/games.html");
navigateToURL(_local2, "_blank");
}
public function getLink3(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://lambdarecords.net/artists/akelixe/");
navigateToURL(_local2, "_blank");
}
public function rollOverCool(_arg1:MouseEvent):void{
coolbuddy.gotoAndStop(2);
}
public function updateSound():void{
if (soundDir == 1){
if (musicChannel.soundTransform.volume < 1){
musicChannel.soundTransform = new SoundTransform((musicChannel.soundTransform.volume + 0.03), 0);
};
if ((((soundto == 1)) && ((music2Channel.soundTransform.volume < 1)))){
music2Channel.soundTransform = new SoundTransform((music2Channel.soundTransform.volume + 0.03), 0);
};
} else {
if (soundDir == 2){
if (musicChannel.soundTransform.volume > 0){
musicChannel.soundTransform = new SoundTransform((musicChannel.soundTransform.volume - 0.03), 0);
if (music2Channel.soundTransform.volume > 0){
music2Channel.soundTransform = new SoundTransform((music2Channel.soundTransform.volume - 0.03), 0);
};
if (musicChannel.soundTransform.volume <= 0){
musicChannel.stop();
soundDir = 1;
if (soundto == 2){
musicChannel = bgLoop.play(0, 9999);
} else {
if (soundto == 3){
musicChannel = menuLoop.play(0, 9999);
};
};
musicChannel.soundTransform = new SoundTransform(0, 0);
};
};
};
};
}
public function mouseup(_arg1:MouseEvent):void{
MD = false;
firing = false;
coolDown = 0;
gunoffset = 0;
fireSoundTime = 0;
channel2.stop();
channel3.stop();
channel4.stop();
}
public function reloadMachinegun(_arg1:int):void{
if (_arg1 == 43){
loadopen.play();
} else {
if (_arg1 == 25){
bulletin.play();
} else {
if (_arg1 == 15){
loadclose.play();
};
};
};
}
public function newFlierBoss(_arg1:int, _arg2:int, _arg3:Number, _arg4:Number):void{
var _local5:flier;
var _local6:Number;
_local5 = new flier();
sprites.addChild(_local5);
_local5.x = _arg1;
_local5.y = _arg2;
_local5.targX = int((_arg1 + _arg3));
_local5.targY = int((_arg2 + _arg4));
_local6 = Math.atan2(_arg4, _arg3);
_local5.xv = (Math.cos(_local6) * 3);
_local5.yv = (Math.sin(_local6) * 3);
_local5.newTarg = 100;
_local5.health = 2;
_local5.lastHealth;
_local5.seeking = false;
_local5.onFire = 0;
_local5.explosionHits = [];
_local5.checkLos = (int((Math.random() * 5)) + 1);
fliers.push(_local5);
_local5.hbar.alpha = 0;
_local5.hitTime = 0;
_local5.maxSearch = 400;
}
public function updateLaunchers():void{
var _local1:int;
var _local2:launcher;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
_local1 = 0;
while (_local1 < launchers.length) {
_local2 = launchers[_local1];
if (_local2.hitTime > 0){
_local2.hitTime--;
if (_local2.hitTime <= 0){
_local2.hbar.alpha = 0;
};
};
if (_local2.health <= 0){
launcherExplode(_local2.x, _local2.y, (((_local2.lastHealth - _local2.health) / 3) + 4));
sprites.removeChild(_local2);
launchers.splice(_local1, 1);
_local1--;
} else {
if (_local2.lastHealth < _local2.health){
_local2.range = 10000;
};
};
if (_local2.onFire > 0){
_local2.onFire--;
_local2.health = (_local2.health - 0.05);
onFire(_local2.x, (_local2.y - 20), (_local2.onFire / 40));
};
_local2.lastHealth = _local2.health;
if ((((_local2.seeking == false)) || ((deathTime > 0)))){
if (_local2.dir == 1){
_local2.gun.rotation++;
if ((((_local2.gun.rotation >= -1)) && ((_local2.gun.rotation < 90)))){
_local2.dir = 2;
};
} else {
_local2.gun.rotation--;
if ((((_local2.gun.rotation <= -180)) || ((_local2.gun.rotation > 90)))){
_local2.dir = 1;
};
};
_local2.checkLos--;
if (_local2.checkLos <= 0){
_local2.checkLos = 5;
_local3 = (_local2.x - playerOb.x);
_local4 = (_local2.y - playerOb.y);
_local5 = ((_local3 * _local3) + (_local4 * _local4));
if (_local5 <= 160000){
exciteTimer = 50;
if (soundto != 1){
soundto = 1;
soundDir = 2;
};
if (LOS(_local2.x, (_local2.y - 30), playerOb.x, (playerOb.y - (playerOb.h / 2)), _local2.range) == true){
_local2.seeking = true;
};
};
};
} else {
exciteTimer = 50;
if (soundto != 1){
soundto = 1;
soundDir = 2;
};
_local6 = (playerOb.x - _local2.x);
_local7 = ((playerOb.y - (playerOb.h / 2)) - _local2.y);
_local2.ang = (Math.atan2(_local7, _local6) * (180 / Math.PI));
if (_local2.ang > 360){
_local2.ang = (_local2.ang - 360);
} else {
if (_local2.ang < 0){
_local2.ang = (_local2.ang + 360);
};
};
_local8 = _local2.gun.rotation;
if (_local8 < 0){
_local8 = (_local8 + 360);
};
_local9 = (_local8 - _local2.ang);
if ((((((_local9 > 0)) && ((_local9 <= 180)))) || ((_local9 < -180)))){
_local2.gun.rotation = (_local2.gun.rotation - 2);
} else {
if ((((((_local9 < 0)) && ((_local9 >= -180)))) || ((_local9 > 180)))){
_local2.gun.rotation = (_local2.gun.rotation + 2);
};
};
if (Math.abs(_local9) < 30){
_local2.shootTime--;
if (_local2.shootTime <= 0){
_local2.shootTime = 50;
shotrocket.play();
newMissile(_local2.x, (_local2.y - 25), _local2.gun.rotation);
_local2.gun.play();
};
};
if (LOS(_local2.x, (_local2.y - 30), playerOb.x, (playerOb.y - (playerOb.h / 2)), _local2.range) == false){
_local2.seeking = false;
_local2.range = 500;
};
};
_local1++;
};
}
public function fire():void{
var _local1:int;
var _local2:int;
if (reloading == 0){
if (gunType == 1){
if (gun1.ammo > 0){
playerOb.shots++;
shot1.play();
_local1 = (((playerOb.x + (gun.x * player.scaleX)) + ((Math.cos((gun.rotation * (Math.PI / 180))) * 30) * player.scaleX)) + ((Math.sin((gun.rotation * (Math.PI / 180))) * 3) * player.scaleX));
_local2 = (((playerOb.y + gun.y) + (Math.sin((gun.rotation * (Math.PI / 180))) * 30)) - (Math.cos((gun.rotation * (Math.PI / 180))) * 3));
fireLine(_local1, _local2, ((Math.cos((gun.rotation * (Math.PI / 180))) * 10) * player.scaleX), (Math.sin((gun.rotation * (Math.PI / 180))) * 10), 1, 0xFFFFFF, 1);
gun1.ammo--;
gui.ammo.text = (String(gun1.ammo) + " | X");
} else {
reloading = 35;
reloadMax = 35;
};
} else {
if (gunType == 2){
firing = true;
} else {
if (gunType == 3){
if (gun3.ammo > 0){
playerOb.shots++;
fireGrenade();
gun3.ammo--;
gui.ammo.text = ((String(gun3.ammo) + " | ") + String(gun3.spare));
} else {
if (gun3.spare > 0){
reloading = 70;
reloadMax = 70;
} else {
gunType = 1;
gunSelected = 0;
changeGun();
changegun.play();
};
};
} else {
if (gunType == 4){
if (gun4.ammo > 0){
playerOb.shots++;
shot4.play();
fireShotgun();
gun4.ammo--;
gui.ammo.text = ((String(gun4.ammo) + " | ") + String(gun4.spare));
} else {
if (gun4.spare > 0){
reloading = 60;
reloadMax = 60;
} else {
gunType = 1;
gunSelected = 0;
changeGun();
changegun.play();
};
};
} else {
if (gunType == 5){
firing = true;
} else {
if (gunType == 6){
firing = true;
};
};
};
};
};
};
};
}
public function fireGrenade():void{
var _local1:grenade;
_local1 = new grenade();
sprites.addChild(_local1);
_local1.x = ((playerOb.x + gun.x) + ((Math.cos((gun.rotation * (Math.PI / 180))) * 18) * player.scaleX));
_local1.y = ((playerOb.y + gun.y) + (Math.sin((gun.rotation * (Math.PI / 180))) * 18));
_local1.rotation = gun.rotation;
_local1.xv = ((Math.cos((gun.rotation * (Math.PI / 180))) * 15) * player.scaleX);
_local1.yv = (Math.sin((gun.rotation * (Math.PI / 180))) * 15);
_local1.dead = false;
grenades.push(_local1);
}
public function updateBossStart():void{
var _local1:int;
bossStartTimer--;
player.legs.gotoAndStop(1);
if ((((bossStartTimer < 115)) && ((bossStartTimer > 0)))){
posAddX = (posAddX - 4);
posAddY = (posAddY - 1);
} else {
if (bossStartTimer == -40){
boss.head.gotoAndStop(4);
} else {
if (bossStartTimer == -50){
newFlierBoss((boss.x + 48), (boss.y + 48), (Math.cos(0) * 200), (Math.sin(0) * 200));
} else {
if (bossStartTimer == -55){
newFlierBoss((boss.x + 48), (boss.y + 48), (Math.cos((Math.PI / 3)) * 200), (Math.sin((Math.PI / 3)) * 200));
} else {
if (bossStartTimer == -60){
newFlierBoss((boss.x + 48), (boss.y + 48), (Math.cos((2 * (Math.PI / 3))) * 200), (Math.sin((2 * (Math.PI / 3))) * 200));
} else {
if (bossStartTimer == -65){
newFlierBoss((boss.x + 48), (boss.y + 48), (Math.cos(Math.PI) * 200), (Math.sin(Math.PI) * 200));
} else {
if (bossStartTimer == -70){
newFlierBoss((boss.x + 48), (boss.y + 48), (Math.cos(((4 / 3) * Math.PI)) * 200), (Math.sin(((4 / 3) * Math.PI)) * 200));
} else {
if (bossStartTimer == -75){
newFlierBoss((boss.x + 48), (boss.y + 48), (Math.cos((5 * (Math.PI / 3))) * 200), (Math.sin((5 * (Math.PI / 3))) * 200));
} else {
if (bossStartTimer == -85){
boss.head.gotoAndStop(1);
} else {
if ((((bossStartTimer < -100)) && ((bossStartTimer > -157)))){
posAddX = (posAddX + 8);
posAddY = (posAddY + 2);
} else {
if (bossStartTimer == -157){
gui.bosshealth.gotoAndStop(2);
posAddY = 0;
posAddX = 0;
_local1 = 0;
while (_local1 < lifts.length) {
if ((((lifts[_local1].id >= 1)) && ((lifts[_local1].id <= 2)))){
lifts[_local1].s = 1;
lifts[_local1].ch = liftrun.play();
lifts[_local1].xv = lifts[_local1].xMove;
lifts[_local1].yv = lifts[_local1].yMove;
};
_local1++;
};
soundDir = 2;
soundto = 1;
gameState = "game";
bossStartTimer = 0;
};
};
};
};
};
};
};
};
};
};
};
}
public function endAd(_arg1:MouseEvent):void{
closeBtn.removeEventListener(MouseEvent.CLICK, endAd);
closeBtn.removeEventListener(MouseEvent.ROLL_OVER, rollOverCon);
closeBtn.removeEventListener(MouseEvent.ROLL_OUT, rollOutCon);
adBox.removeChild(ad);
gotoAndPlay(2);
}
public function newGrunt(_arg1:int, _arg2:int):void{
var _local3:grunt;
_local3 = new grunt();
sprites.addChild(_local3);
_local3.x = _arg1;
_local3.y = _arg2;
_local3.dir = int((Math.random() * 2));
_local3.health = 12;
_local3.lastHealth = 6;
_local3.arm.rotation = 75;
_local3.restTime = 0;
_local3.seeking = false;
_local3.checkLos = int((Math.random() * 5));
_local3.shootTime = 0;
_local3.ang = 0;
_local3.movearm = 0;
_local3.onFire = 0;
_local3.explosionHits = [];
_local3.hbar.alpha = 0;
_local3.hitTime = 0;
grunts.push(_local3);
_local3.range = 500;
}
public function newFlier(_arg1:int, _arg2:int):void{
var _local3:flier;
_local3 = new flier();
sprites.addChild(_local3);
_local3.x = _arg1;
_local3.y = _arg2;
_local3.targX = _arg1;
_local3.targY = _arg2;
_local3.xv = 0;
_local3.yv = 0;
_local3.newTarg = 0;
_local3.health = 2;
_local3.lastHealth;
_local3.seeking = false;
_local3.onFire = 0;
_local3.explosionHits = [];
_local3.checkLos = int((Math.random() * 5));
fliers.push(_local3);
_local3.hbar.alpha = 0;
_local3.hitTime = 0;
_local3.maxSearch = 400;
}
public function reloadHandgun(_arg1:int):void{
if (_arg1 == 33){
loadopen.play();
} else {
if (_arg1 == 15){
loadclose.play();
};
};
}
public function updateHeavies():void{
var _local1:int;
var _local2:heavy;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:Number;
_local1 = 0;
while (_local1 < heavies.length) {
_local2 = heavies[_local1];
_local3 = Math.floor((_local2.x / tileW));
_local4 = Math.floor((_local2.y / tileH));
if (_local2.hitTime > 0){
_local2.hitTime--;
if (_local2.hitTime <= 0){
_local2.hbar.alpha = 0;
};
};
if (_local2.health <= 0){
heavyExplode(_local2.x, _local2.y, _local2.scaleX, (((_local2.lastHealth - _local2.health) / 3) + 4));
sprites.removeChild(_local2);
heavies.splice(_local1, 1);
_local1--;
} else {
if (_local2.lastHealth > _local2.health){
_local2.range = 10000;
_local2.seeking = true;
};
};
if (_local2.onFire > 0){
_local2.onFire--;
_local2.health = (_local2.health - 0.05);
onFire(_local2.x, (_local2.y - 35), (_local2.onFire / 40));
};
_local2.lastHealth = _local2.health;
if (_local2.dir == 0){
if ((((map[_local4][(_local3 + 1)] == 0)) || (!((map[(_local4 - 1)][(_local3 + 1)] == 0))))){
_local2.dir = 1;
_local2.restTime = 80;
};
} else {
if ((((map[_local4][(_local3 - 1)] == 0)) || (!((map[(_local4 - 1)][(_local3 - 1)] == 0))))){
_local2.dir = 0;
_local2.restTime = 80;
};
};
if (_local2.restTime > 0){
_local2.restTime--;
_local2.legs.gotoAndStop(1);
} else {
if (_local2.dir == 0){
_local2.scaleX = 1;
_local2.hbar.scaleX = 1;
_local2.x = (_local2.x + 2);
if (_local2.legs.currentFrame == 1){
_local2.legs.gotoAndStop(2);
};
} else {
_local2.scaleX = -1;
_local2.hbar.scaleX = -1;
_local2.x = (_local2.x - 2);
if (_local2.legs.currentFrame == 1){
_local2.legs.gotoAndStop(2);
};
};
};
if ((((_local2.seeking == false)) || ((deathTime > 0)))){
_local2.checkLos--;
if (_local2.checkLos <= 0){
_local2.checkLos = 5;
_local5 = (_local2.x - playerOb.x);
_local6 = (_local2.y - playerOb.y);
_local7 = ((_local5 * _local5) + (_local6 * _local6));
if (_local7 <= 160000){
exciteTimer = 50;
if (soundto != 1){
soundto = 1;
soundDir = 2;
};
if (((playerOb.x - _local2.x) * _local2.scaleX) > 0){
if (LOS(_local2.x, (_local2.y - 40), playerOb.x, (playerOb.y - (playerOb.h / 2)), _local2.range) == true){
_local2.seeking = true;
};
};
};
};
} else {
exciteTimer = 50;
if (soundto != 1){
soundto = 1;
soundDir = 2;
};
_local8 = (playerOb.x - _local2.x);
if (_local8 > 100){
_local2.dir = 0;
} else {
if (_local8 < -100){
_local2.dir = 1;
} else {
_local2.restTime = 80;
_local2.legs.gotoAndStop(1);
};
};
_local2.shootTime--;
_local2.arm.rotation = (_local2.arm.rotation + _local2.movearm);
if (_local2.shootTime <= 0){
_local9 = ((playerOb.x - _local2.x) * _local2.scaleX);
_local10 = ((playerOb.y - 30) - (_local2.y - 30));
_local2.ang = Math.atan2(_local10, _local9);
_local11 = ((Math.random() * (Math.PI / 30)) - (Math.random() * (Math.PI / 30)));
_local2.ang = (_local2.ang + _local11);
_local2.shootTime = 40;
_local2.movearm = (((_local2.ang * (180 / Math.PI)) - _local2.arm.rotation) / 20);
fireHeavy(_local2);
};
if (((playerOb.x - _local2.x) * _local2.scaleX) < 0){
_local2.scaleX = (_local2.scaleX * -1);
_local2.hbar.scaleX = (_local2.hbar.scaleX * -1);
};
if (LOS(_local2.x, (_local2.y - 40), playerOb.x, (playerOb.y - (playerOb.h / 2)), _local2.range) == false){
_local2.seeking = false;
_local2.arm.rotation = 0;
_local2.range = 500;
};
};
_local1++;
};
}
public function reloadFlamer(_arg1:int):void{
if (_arg1 == 59){
loadopen.play();
} else {
if (_arg1 == 40){
loadopen.play();
} else {
if (_arg1 == 20){
loadclose.play();
};
};
};
}
public function loadMap(_arg1, _arg2):void{
var _local3:Array;
var _local4:Array;
var _local5:Array;
var _local6:Array;
var _local7:Array;
var _local8:Array;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local15:int;
var _local16:Rectangle;
var _local17:Point;
var _local18:Object;
var _local19:Object;
var _local20:Object;
var _local21:Object;
var _local22:*;
var _local23:*;
var _local24:door;
var _local25:Object;
var _local26:switchmc;
var _local27:Object;
var _local28:Object;
var _local29:MovieClip;
var _local30:int;
var _local31:int;
var _local32:int;
var _local33:Number;
var _local34:int;
var _local35:movingtile;
var _local36:Object;
var _local37:int;
var _local38:int;
var _local39:Array;
var _local40:int;
var _local41:Object;
if (_arg1 != "X"){
currentLevel = _arg1;
currentStage = _arg2;
} else {
_arg1 = 1;
_arg2 = 2;
currentLevel = 1;
currentStage = 2;
};
lastRoomAmmo = [];
lastRoomGun = gunSelected;
_local11 = 0;
while (_local11 < gunsCollected.length) {
if (gunsCollected[_local11] != 1){
_local14 = (this[("gun" + gunsCollected[_local11])].ammo + this[("gun" + gunsCollected[_local11])].spare);
lastRoomAmmo.push([gunsCollected[_local11], _local14]);
} else {
lastRoomAmmo.push([1, 99999]);
};
_local11++;
};
_local3 = this[((("level_" + _arg1) + "_") + _arg2)];
_local4 = this[((("doors_" + _arg1) + "_") + _arg2)];
_local5 = this[((("switches_" + _arg1) + "_") + _arg2)];
_local6 = this[((("enemies_" + _arg1) + "_") + _arg2)];
_local7 = this[((("pickups_" + _arg1) + "_") + _arg2)];
_local8 = this[((("lifts_" + _arg1) + "_") + _arg2)];
levelMap = new BitmapData((_local3[0].length * tileW), (_local3.length * tileH), true, 0xFFFFFF);
liftsCollider = new BitmapData((_local3[0].length * tileW), (_local3.length * tileH), false, 0xFFFFFF);
levelRect = new Rectangle(0, 0, (_local3[0].length * tileW), (_local3.length * tileH));
fade = new BitmapData((_local3[0].length * tileW), (_local3.length * tileH), true, 0xFFFFFF);
fadebmp = new Bitmap(fade);
map = new Array();
_local9 = 0;
while (_local9 < _local3.length) {
map[_local9] = new Array();
_local15 = 0;
while (_local15 < _local3[0].length) {
map[_local9][_local15] = _local3[_local9][_local15];
if (map[_local9][_local15] > 0){
if (map[_local9][_local15] == 4){
jumpPads[((("pad_" + _local9) + "_") + _local15)] = {x:_local15, y:_local9, timer:0};
} else {
if ((((map[_local9][_local15] >= 8)) && ((map[_local9][_local15] <= 13)))){
conveyors.push({x:_local15, y:_local9, f:1, t:(map[_local9][_local15] - 7)});
} else {
if (map[_local9][_local15] == 14){
_local18 = new Object();
_local18.sc = new SoundChannel();
_local18.sc.soundTransform = new SoundTransform(0, 0);
flamePads.push({ob:_local18, x:_local15, y:_local9, t:0, xv:5, yv:0});
} else {
if (map[_local9][_local15] == 15){
_local19 = new Object();
_local19.sc = new SoundChannel();
_local19.sc.soundTransform = new SoundTransform(0, 0);
flamePads.push({ob:_local19, x:_local15, y:_local9, t:0, xv:0, yv:5});
} else {
if (map[_local9][_local15] == 16){
_local20 = new Object();
_local20.sc = new SoundChannel();
_local20.sc.soundTransform = new SoundTransform(0, 0);
flamePads.push({ob:_local20, x:_local15, y:_local9, t:0, xv:-5, yv:0});
} else {
if (map[_local9][_local15] == 17){
_local21 = new Object();
_local21.sc = new SoundChannel();
_local21.sc.soundTransform = new SoundTransform(0, 0);
flamePads.push({ob:_local21, x:_local15, y:_local9, t:0, xv:0, yv:-5});
};
};
};
};
};
};
_local16 = new Rectangle(((map[_local9][_local15] * tileW) - tileW), 0, tileW, tileH);
_local17 = new Point((_local15 * tileW), (_local9 * tileH));
levelMap.copyPixels(tiles, _local16, _local17);
};
_local15++;
};
_local9++;
};
_local10 = 0;
while (_local10 < this[((("screens_" + _arg1) + "_") + _arg2)].length) {
_local22 = this[((("screens_" + _arg1) + "_") + _arg2)][_local10];
newTv(_local22.x, _local22.y, _local22.txt);
_local10++;
};
_local10 = 0;
while (_local10 < this[((("savepoints_" + _arg1) + "_") + _arg2)].length) {
_local23 = this[((("savepoints_" + _arg1) + "_") + _arg2)][_local10];
newSavepoint(_local23.x, _local23.y);
_local10++;
};
_local10 = 0;
while (_local10 < _local4.length) {
_local24 = new door();
_local24.x = (_local4[_local10].x * tileW);
_local24.y = (_local4[_local10].y * tileH);
_local24.goto = _local4[_local10].l;
_local24.gotox = _local4[_local10].x2;
_local24.gotoy = _local4[_local10].y2;
_local24.gotoAndStop(_local4[_local10].s);
sprites.addChild(_local24);
doorObs.push(_local24);
_local10++;
};
_local10 = 0;
while (_local10 < _local5.length) {
_local25 = _local5[_local10];
_local26 = new switchmc();
_local26.x = (_local25.x * tileW);
_local26.y = (_local25.y * tileH);
_local26.affects = _local25.a;
_local26.lev = _arg1;
_local26.sta = _arg2;
_local26.pos = _local10;
_local26.gotoAndStop(_local25.s);
sprites.addChild(_local26);
switches.push(_local26);
_local10++;
};
_local10 = 0;
while (_local10 < _local6.length) {
_local27 = _local6[_local10];
if (_local27.t == 0){
newFlier(_local27.x, _local27.y);
} else {
if (_local27.t == 1){
newGrunt(_local27.x, _local27.y);
} else {
if (_local27.t == 2){
newTurret(_local27.x, _local27.y);
} else {
if (_local27.t == 3){
newHeavy(_local27.x, _local27.y);
} else {
if (_local27.t == 4){
newLauncher(_local27.x, _local27.y);
} else {
if (_local27.t == 8){
addBoss(_local27.x, _local27.y);
};
};
};
};
};
};
_local10++;
};
_local10 = 0;
while (_local10 < _local8.length) {
_local28 = _local8[_local10];
_local29 = new MovieClip();
if (_local28.once <= 1){
_local29.x = (_local28.x * tileW);
_local29.y = (_local28.y * tileH);
_local29.once = _local28.once;
_local29.s = _local28.s;
} else {
if (_local28.once > 1){
_local29.x = (_local28.ex * tileW);
_local29.y = (_local28.ey * tileH);
_local29.once = 1;
_local29.s = 2;
};
};
_local29.ch = new SoundChannel();
_local29.id = _local28.id;
_local30 = 0;
while (_local30 < _local28.w) {
_local34 = 0;
while (_local34 < _local28.h) {
_local35 = new movingtile();
_local35.x = (_local30 * tileW);
_local35.y = (_local34 * tileH);
_local29.addChild(_local35);
_local34++;
};
_local30++;
};
_local29.w = _local28.w;
_local29.h = _local28.h;
_local29.ex = _local28.ex;
_local29.ey = _local28.ey;
_local31 = (_local28.ex - _local28.x);
_local32 = (_local28.ey - _local28.y);
_local33 = Math.atan2(_local32, _local31);
if (_local29.s == 1){
_local29.xv = (Math.cos(_local33) * 3);
_local29.yv = (Math.sin(_local33) * 3);
} else {
_local29.xv = 0;
_local29.yv = 0;
};
_local29.xMove = (Math.cos(_local33) * 3);
_local29.yMove = (Math.sin(_local33) * 3);
_local29.timeTake = ((Math.sqrt(((_local31 * _local31) + (_local32 * _local32))) * tileW) / 3);
_local29.timer = _local29.timeTake;
sprites.addChild(_local29);
lifts.push(_local29);
_local10++;
};
_local10 = 0;
while (_local10 < _local7.length) {
_local36 = _local7[_local10];
if (_local36.s == 1){
newPickup((_local36.x * tileW), (_local36.y * tileH), (_local36.t + 1), _arg1, _arg2, _local10);
};
_local10++;
};
if ((((_arg1 == 1)) && ((_arg2 == 1)))){
sprites.addChild(startanim);
};
posX = (playerOb.x - (stageW / 2));
posY = (playerOb.y - (stageH / 2));
if (playerOb.y > ((map.length * tileH) - (stageH / 2))){
posY = ((map.length * tileH) - stageH);
};
if (playerOb.x > ((map[0].length * tileW) - (stageW / 2))){
posX = ((map[0].length * tileW) - stageW);
};
if (posX < 0){
posX = 0;
};
if (posY < 0){
posY = 0;
};
sprites.x = -(posX);
sprites.y = -(posY);
sprites.addChild(fadebmp);
_local12 = 0;
_local13 = 0;
if (tempPushed.length > 0){
_local12 = tempPushed[0][0];
_local13 = tempPushed[0][1][0];
} else {
if (tempCollected.length > 0){
_local12 = tempCollected[0][0];
_local13 = tempCollected[0][1];
};
};
if (((!((currentLevel == _local12))) || (!((currentStage == _local13))))){
_local37 = 0;
while (_local37 < tempPushed.length) {
pushedSwitches[_local37] = tempPushed[_local37];
this[((("switches_" + tempPushed[_local37][0]) + "_") + tempPushed[_local37][1][0])][tempPushed[_local37][2]].s = 2;
_local39 = this[((((tempPushed[_local37][1][1] + "_") + tempPushed[_local37][0]) + "_") + tempPushed[_local37][1][0])];
_local40 = tempPushed[_local37][1][2];
_local41 = _local39[_local40];
_local41.s = 1;
if ((((tempPushed[_local37][1][1] == "lifts")) && ((_local41.once == 1)))){
_local41.once = 2;
};
_local37++;
};
_local38 = 0;
while (_local38 < tempCollected.length) {
collectedItems[_local38] = tempCollected[_local38];
this[((("pickups_" + tempCollected[_local38][0]) + "_") + tempCollected[_local38][1])][tempCollected[_local38][2]].s = 2;
_local38++;
};
};
tempPushed = [];
tempCollected = [];
}
public function gruntExplode(_arg1:int, _arg2:int, _arg3:int, _arg4:Number):void{
var _local5:int;
var _local6:int;
var _local7:int;
_local5 = ((Math.random() * 2) + 1);
this[("die" + _local5)].play();
playerOb.kills++;
_local6 = 0;
while (_local6 < 8) {
newParticle(_arg1, _arg2, 3, ((Math.random() * 4) + 1));
_local6++;
};
_local7 = 0;
while (_local7 < 12) {
newExplosionParticle(_arg1, _arg2, 4, ((Math.random() * 4) + 1));
_local7++;
};
newPart(_arg1, (_arg2 - 50), _arg4, 0, 4, _arg3);
newPart(_arg1, (_arg2 - 30), _arg4, 0, 5, _arg3);
newPart(_arg1, (_arg2 - 20), _arg4, 0, 6, _arg3);
newPart(_arg1, (_arg2 - 10), _arg4, 0, 7, _arg3);
newPart(_arg1, (_arg2 - 3), _arg4, 0, 8, _arg3);
newPart((_arg1 - 10), (_arg2 - 45), _arg4, 0, 9, _arg3);
}
public function newTurret(_arg1:int, _arg2:int):void{
var _local3:turret;
_local3 = new turret();
sprites.addChild(_local3);
_local3.x = _arg1;
_local3.y = _arg2;
_local3.health = 10;
_local3.lastHealth = 10;
_local3.gun.rotation = (Math.random() * 180);
_local3.seeking = false;
_local3.checkLos = int((Math.random() * 5));
_local3.dir = 1;
_local3.shootTime = 0;
_local3.ang = 0;
_local3.onFire = 0;
_local3.channel = new SoundChannel();
_local3.soundTimer = 0;
_local3.explosionHits = [];
_local3.hbar.alpha = 0;
_local3.hitTime = 0;
turrets.push(_local3);
_local3.range = 500;
}
public function reloadLazer(_arg1:int):void{
if (_arg1 == 79){
bulletin.play();
} else {
if (_arg1 == 50){
loadopen.play();
} else {
if (_arg1 == 30){
loadclose.play();
} else {
if (_arg1 == 15){
bulletin.play();
};
};
};
};
}
public function mousedown(_arg1:MouseEvent):void{
var _local2:URLRequest;
var _local3:URLRequest;
var _local4:int;
var _local5:URLRequest;
var _local6:int;
var _local7:URLRequest;
var _local8:URLRequest;
var _local9:URLRequest;
var _local10:URLRequest;
Mouse.hide();
if (gameState == "credits"){
trans.play();
transto = "title";
gameState = "trans";
} else {
if (gameState == "title"){
if ((((((((stage.mouseX > 165)) && ((stage.mouseX < 373)))) && ((stage.mouseY > (stageH - 30))))) && ((stage.mouseY < stageH)))){
_local2 = new URLRequest("http://www.coolbuddy.com/?cid=189");
navigateToURL(_local2, "_blank");
};
if (menuOption == 1){
clicked.play();
trans.play();
gameState = "trans";
transto = "game";
resetData();
soundto = 1;
soundDir = 2;
} else {
if (menuOption == 2){
clicked.play();
trans.play();
gameState = "trans";
transto = "load";
} else {
if (menuOption == 3){
clicked.play();
trans.play();
gameState = "trans";
transto = "controls";
} else {
if (menuOption == 4){
clicked.play();
_local3 = new URLRequest("http://www.coolbuddy.com/?cid=189");
navigateToURL(_local3, "_blank");
} else {
if (menuOption == 5){
clicked.play();
trans.play();
gameState = "trans";
transto = "credits";
};
};
};
};
};
} else {
if (gameState == "intro"){
trans.play();
gameState = "trans";
transto = "gamegame";
} else {
if (gameState == "game"){
if (mouseY < (stageH - 23)){
MD = true;
if (deathTime == 0){
fire();
};
};
} else {
if (gameState == "controls"){
if (menuOption == 1){
clicked.play();
_local4 = 0;
while (_local4 < controlsList.length) {
if (controlsList[_local4] == "??"){
gameState = "popup2";
addChild(pop2);
removeChild(cursor);
addChild(cursor);
return;
};
_local4++;
};
trans.play();
gameState = "trans";
transto = "title";
} else {
if (menuOption == 2){
clicked.play();
controls.selector.y = 136;
controlsOption = 1;
} else {
if (menuOption == 3){
clicked.play();
controls.selector.y = 173;
controlsOption = 2;
} else {
if (menuOption == 4){
clicked.play();
controls.selector.y = 207;
controlsOption = 3;
} else {
if (menuOption == 5){
clicked.play();
controls.selector.y = 241;
controlsOption = 4;
} else {
if (menuOption == 6){
clicked.play();
controls.selector.y = 281;
controlsOption = 5;
} else {
if (menuOption == 7){
clicked.play();
controls.selector.y = 319;
controlsOption = 6;
} else {
if (menuOption == 8){
clicked.play();
controls.selector.y = 357;
controlsOption = 7;
} else {
if (menuOption == 9){
clicked.play();
controls.selector.y = 394;
controlsOption = 8;
} else {
if (menuOption == 10){
clicked.play();
controls.selector.y = 429;
controlsOption = 9;
};
};
};
};
};
};
};
};
};
};
} else {
if (gameState == "load"){
if (menuOption == 1){
clicked.play();
trans.play();
gameState = "trans";
transto = "title";
} else {
if (menuOption == 2){
clicked.play();
if (((!((slot1.data.dat == undefined))) && ((slot1.data.dat.length > 0)))){
trans.play();
gameState = "trans";
transto = "loadgame";
loadslot = slot1.data.dat;
soundto = 2;
soundDir = 2;
};
} else {
if (menuOption == 3){
clicked.play();
if (((!((slot2.data.dat == undefined))) && ((slot2.data.dat.length > 0)))){
trans.play();
gameState = "trans";
transto = "loadgame";
loadslot = slot2.data.dat;
soundto = 2;
soundDir = 2;
};
} else {
if (menuOption == 4){
clicked.play();
if (((!((slot3.data.dat == undefined))) && ((slot3.data.dat.length > 0)))){
trans.play();
gameState = "trans";
transto = "loadgame";
loadslot = slot3.data.dat;
soundto = 2;
soundDir = 2;
};
};
};
};
};
} else {
if (gameState == "gameover"){
if (menuOption == 2){
clicked.play();
if (lastSave == 0){
gameOver.adBox.removeChild(adv);
gameState = "trans";
transto = "title";
trans.play();
} else {
clicked.play();
trans.play();
gameOver.adBox.removeChild(adv);
gameState = "trans";
transto = "loadgame";
loadslot = this[("slot" + lastSave)].data.dat;
};
} else {
if (menuOption == 3){
clicked.play();
gameOver.adBox.removeChild(adv);
gameState = "trans";
transto = "title";
trans.play();
} else {
if (menuOption == 1){
clicked.play();
_local5 = new URLRequest("http://www.coolbuddy.com/?cid=189");
navigateToURL(_local5, "_blank");
};
};
};
} else {
if (gameState == "popup"){
if (pop.currentFrame == 23){
if (menuOption == 1){
if ((((slot1.data.dat == undefined)) || ((slot1.data.dat.length == 0)))){
saveGame(1);
pop.gotoAndPlay(73);
saved.play();
} else {
clicked.play();
pop.gotoAndPlay(24);
savechoice = 1;
};
} else {
if (menuOption == 2){
if ((((slot2.data.dat == undefined)) || ((slot2.data.dat.length == 0)))){
saved.play();
saveGame(2);
pop.gotoAndPlay(73);
} else {
clicked.play();
pop.gotoAndPlay(24);
savechoice = 2;
};
} else {
if (menuOption == 3){
if ((((slot3.data.dat == undefined)) || ((slot3.data.dat.length == 0)))){
saved.play();
saveGame(3);
pop.gotoAndPlay(73);
} else {
clicked.play();
pop.gotoAndPlay(24);
savechoice = 3;
};
} else {
if (menuOption == 4){
clicked.play();
pop.gotoAndPlay(85);
};
};
};
};
} else {
if (pop.currentFrame == 36){
if (menuOption == 1){
saved.play();
saveGame(savechoice);
pop.gotoAndPlay(37);
} else {
if (menuOption == 2){
clicked.play();
pop.gotoAndPlay(6);
};
};
} else {
if (pop.currentFrame == 49){
if (menuOption == 1){
clicked.play();
pop.gotoAndPlay(50);
};
};
};
};
} else {
if (gameState == "popup2"){
if (menuOption == 1){
clicked.play();
removeChild(pop2);
gameState = "controls";
controlsList = [65, 68, 87, 83, 69, 81, 82, 80, 77];
_local6 = 0;
while (_local6 < controlsList.length) {
controls[(("con" + _local6) + 1)].gotoAndStop(controlsList[_local6]);
_local6++;
};
} else {
if (menuOption == 2){
clicked.play();
removeChild(pop2);
gameState = "controls";
};
};
} else {
if (gameState == "updates"){
if (menuOption == 1){
updates.adBox.removeChild(adv);
updates.x = -800;
gui.x = 0;
gameState = "game";
} else {
if (menuOption == 2){
_local7 = new URLRequest("http://www.twitter.com/CoolbuddyGames/");
navigateToURL(_local7, "_blank");
} else {
if (menuOption == 3){
_local8 = new URLRequest("http://www.coolbuddy.com/games/community/Game_forum.asp?cat=1007");
navigateToURL(_local8, "_blank");
} else {
if (menuOption == 4){
_local9 = new URLRequest("http://www.coolbuddy.com/games/community/Game_walkthrough.asp?cat=1007");
navigateToURL(_local9, "_blank");
} else {
if (menuOption == 5){
_local10 = new URLRequest("http://www.coolbuddy.com/?cid=189");
navigateToURL(_local10, "_blank");
};
};
};
};
};
} else {
if (gameState == "paused"){
if (pausegame.currentFrame == 23){
if (menuOption == 1){
clicked.play();
pausegame.gotoAndPlay(24);
} else {
if (menuOption == 2){
clicked.play();
pausegame.gotoAndPlay(49);
};
};
} else {
if (pausegame.currentFrame == 36){
if (menuOption == 1){
clicked.play();
trans.play();
transto = "menufrompause";
gameState = "trans";
soundto = 3;
soundDir = 2;
} else {
if (menuOption == 2){
clicked.play();
pausegame.gotoAndPlay(37);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function playerExplode(_arg1:int):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
_local2 = playerOb.x;
_local3 = (playerOb.y - (playerOb.h / 2));
_local4 = 0;
while (_local4 < 8) {
newParticle(_local2, _local3, 3, ((Math.random() * 4) + 1));
_local4++;
};
_local5 = 0;
while (_local5 < 16) {
newExplosionParticle(_local2, _local3, 4, ((Math.random() * 4) + 1));
_local5++;
};
newPart(_local2, (_local3 - 50), _arg1, 0, 15, player.scaleX);
newPart(_local2, (_local3 - 30), _arg1, 0, 5, player.scaleX);
newPart(_local2, (_local3 - 20), _arg1, 0, 6, player.scaleX);
newPart(_local2, (_local3 - 10), _arg1, 0, 7, player.scaleX);
newPart(_local2, (_local3 - 3), _arg1, 0, 8, player.scaleX);
newPart((_local2 - 10), (_local3 - 45), _arg1, 0, (15 + lastGun), player.scaleX);
}
public function updatePopup2():void{
if ((((stage.mouseY > 260)) && ((stage.mouseY < 292)))){
if (rolledOver != 1){
rolledOver = 1;
rollover.play();
};
pop2.option1.gotoAndStop(2);
pop2.option2.gotoAndStop(1);
menuOption = 1;
} else {
if ((((stage.mouseY > 300)) && ((stage.mouseY < 332)))){
if (rolledOver != 2){
rolledOver = 2;
rollover.play();
};
pop2.option1.gotoAndStop(1);
pop2.option2.gotoAndStop(2);
menuOption = 2;
} else {
rolledOver = 0;
pop2.option1.gotoAndStop(1);
pop2.option2.gotoAndStop(1);
menuOption = 0;
};
};
}
public function LOS(_arg1, _arg2, _arg3, _arg4, _arg5:int=9999999):Boolean{
var _local6:int;
var _local7:int;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local15:int;
_local6 = Math.sqrt((((_arg3 - _arg1) * (_arg3 - _arg1)) + ((_arg4 - _arg2) * (_arg4 - _arg2))));
if (_local6 > _arg5){
return (false);
};
_local7 = (_local6 / 10);
_local8 = Math.atan2((_arg4 - _arg2), (_arg3 - _arg1));
_local9 = (Math.cos(_local8) * 10);
_local10 = (Math.sin(_local8) * 10);
_local11 = _arg1;
_local12 = _arg2;
_local13 = 0;
while (_local13 < _local7) {
_local11 = (_local11 + _local9);
_local12 = (_local12 + _local10);
_local14 = Math.floor((_local11 / tileW));
_local15 = Math.floor((_local12 / tileH));
if (((!((map[_local15][_local14] == 0))) || ((liftsCollider.getPixel(_local11, _local12) == 0)))){
return (false);
};
_local13++;
};
return (true);
}
public function updateTitle():void{
if (Title.buttons.currentFrame == 139){
stage.quality = StageQuality.LOW;
if ((((stage.mouseX > 120)) && ((stage.mouseX < 420)))){
if ((((stage.mouseY > 150)) && ((stage.mouseY < 210)))){
if (rolledOver != 1){
rolledOver = 1;
rollover.play();
};
Title.buttons.button1.gotoAndStop(2);
Title.buttons.button2.gotoAndStop(1);
Title.buttons.button3.gotoAndStop(1);
Title.buttons.button4.gotoAndStop(1);
Title.buttons.button5.gotoAndStop(1);
menuOption = 1;
} else {
if ((((stage.mouseY > 220)) && ((stage.mouseY < 280)))){
if (rolledOver != 2){
rolledOver = 2;
rollover.play();
};
Title.buttons.button1.gotoAndStop(1);
Title.buttons.button2.gotoAndStop(2);
Title.buttons.button3.gotoAndStop(1);
Title.buttons.button4.gotoAndStop(1);
Title.buttons.button5.gotoAndStop(1);
menuOption = 2;
} else {
if ((((stage.mouseY > 290)) && ((stage.mouseY < 350)))){
if (rolledOver != 3){
rolledOver = 3;
rollover.play();
};
Title.buttons.button1.gotoAndStop(1);
Title.buttons.button2.gotoAndStop(1);
Title.buttons.button3.gotoAndStop(2);
Title.buttons.button4.gotoAndStop(1);
Title.buttons.button5.gotoAndStop(1);
menuOption = 3;
} else {
if ((((stage.mouseY > 360)) && ((stage.mouseY < 420)))){
if (rolledOver != 4){
rolledOver = 4;
rollover.play();
};
Title.buttons.button1.gotoAndStop(1);
Title.buttons.button2.gotoAndStop(1);
Title.buttons.button3.gotoAndStop(1);
Title.buttons.button4.gotoAndStop(2);
Title.buttons.button5.gotoAndStop(1);
menuOption = 4;
} else {
if ((((stage.mouseY > 430)) && ((stage.mouseY < 490)))){
if (rolledOver != 5){
rolledOver = 5;
rollover.play();
};
Title.buttons.button1.gotoAndStop(1);
Title.buttons.button2.gotoAndStop(1);
Title.buttons.button3.gotoAndStop(1);
Title.buttons.button4.gotoAndStop(1);
Title.buttons.button5.gotoAndStop(2);
menuOption = 5;
} else {
rolledOver = 0;
Title.buttons.button1.gotoAndStop(1);
Title.buttons.button2.gotoAndStop(1);
Title.buttons.button3.gotoAndStop(1);
Title.buttons.button4.gotoAndStop(1);
Title.buttons.button5.gotoAndStop(1);
menuOption = 0;
};
};
};
};
};
} else {
rolledOver = 0;
Title.buttons.button1.gotoAndStop(1);
Title.buttons.button2.gotoAndStop(1);
Title.buttons.button3.gotoAndStop(1);
Title.buttons.button4.gotoAndStop(1);
Title.buttons.butto;
};
};
}
public function getFlierTarg(_arg1:int, _arg2:int):Array{
var _local3:Array;
var _local4:Boolean;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
_local3 = new Array();
_local4 = false;
_local5 = 0;
while (!(_local4)) {
if (_local5 > 10){
return ([99999, 99999]);
};
_local5++;
_local6 = ((Math.random() * 360) * (Math.PI / 180));
_local7 = ((Math.random() * 20) + 10);
_local8 = (_arg1 + (Math.cos(_local6) * _local7));
_local9 = (_arg2 + (Math.sin(_local6) * _local7));
_local10 = Math.floor((_local8 / tileW));
_local11 = Math.floor((_local9 / tileH));
if (map[_local11][_local10] == 0){
if (LOS(_arg1, _arg2, _local8, _local9) == true){
_local3[0] = _local8;
_local3[1] = _local9;
_local4 = true;
};
};
};
return (_local3);
}
public function releaseBossFliers():void{
var _local1:int;
_local1 = (Math.random() * 6);
newFlierBoss((boss.x + 48), (boss.y + 48), (Math.cos((_local1 * (Math.PI / 3))) * 200), (Math.sin((_local1 * (Math.PI / 3))) * 200));
}
public function fireLine(_arg1:int, _arg2:int, _arg3:Number, _arg4:Number, _arg5:Number, _arg6, _arg7:int, _arg8:int=0):void{
var _local9:Boolean;
var _local10:Number;
var _local11:Number;
var _local12:int;
var _local13:Matrix;
var _local14:int;
var _local15:int;
var _local16:int;
var _local17:int;
var _local18:int;
var _local19:flier;
var _local20:grunt;
var _local21:turret;
var _local22:heavy;
var _local23:launcher;
var _local24:Object;
drawSprite.graphics.clear();
drawSprite.graphics.lineStyle(_arg5, _arg6, 1);
_local9 = false;
_local10 = _arg1;
_local11 = _arg2;
_local12 = ((Math.random() * 3) + 1);
while (!(_local9)) {
_local14 = Math.floor((_local10 / tileW));
_local15 = Math.floor((_local11 / tileH));
_local16 = 0;
if (_arg8 == 0){
_local16 = 0;
while (_local16 < fliers.length) {
_local19 = fliers[_local16];
if ((((_local19.x - _local10) * (_local19.x - _local10)) + ((_local19.y - _local11) * (_local19.y - _local11))) < 150){
this[("strike" + _local12)].play();
_local19.health = (_local19.health - _arg7);
_local9 = true;
_local19.hitTime = 30;
_local19.hbar.alpha = 1;
_local19.hbar.bar.width = ((_local19.health / 2) * 25);
};
_local16++;
};
_local16 = 0;
while (_local16 < grunts.length) {
_local20 = grunts[_local16];
if ((((_local20.x - _local10) * (_local20.x - _local10)) + (((_local20.y - 30) - _local11) * ((_local20.y - 30) - _local11))) < 900){
this[("strike" + _local12)].play();
_local20.health = (_local20.health - _arg7);
_local9 = true;
_local20.hitTime = 30;
_local20.hbar.alpha = 1;
_local20.hbar.bar.width = ((_local20.health / 12) * 25);
};
_local16++;
};
_local16 = 0;
while (_local16 < turrets.length) {
_local21 = turrets[_local16];
if ((((_local21.x - _local10) * (_local21.x - _local10)) + ((_local21.y - _local11) * (_local21.y - _local11))) < 1000){
this[("strike" + _local12)].play();
_local21.health = (_local21.health - _arg7);
_local9 = true;
_local21.hitTime = 30;
_local21.hbar.alpha = 1;
_local21.hbar.bar.width = ((_local21.health / 10) * 25);
};
_local16++;
};
_local16 = 0;
while (_local16 < heavies.length) {
_local22 = heavies[_local16];
if ((((_local22.x - _local10) * (_local22.x - _local10)) + (((_local22.y - 30) - _local11) * ((_local22.y - 30) - _local11))) < 900){
this[("strike" + _local12)].play();
_local22.health = (_local22.health - _arg7);
_local9 = true;
_local22.hitTime = 30;
_local22.hbar.alpha = 1;
_local22.hbar.bar.width = ((_local22.health / 15) * 25);
};
_local16++;
};
_local16 = 0;
while (_local16 < launchers.length) {
_local23 = launchers[_local16];
if ((((_local23.x - _local10) * (_local23.x - _local10)) + ((_local23.y - _local11) * (_local23.y - _local11))) < 1500){
this[("strike" + _local12)].play();
_local23.health = (_local23.health - _arg7);
_local9 = true;
_local23.hitTime = 30;
_local23.hbar.alpha = 1;
_local23.hbar.bar.width = ((_local23.health / 30) * 25);
};
_local16++;
};
_local16 = 0;
while (_local16 < computers.length) {
_local24 = computers[_local16];
if (Math.abs((_local24.x - _local10)) <= 20){
if ((((_local11 >= _local24.y)) && ((_local11 <= (_local24.y + _local24.h))))){
this[("strike" + _local12)].play();
if (_local24.side == 1){
bossInfo.lCompHealth = (bossInfo.lCompHealth - _arg7);
_local24.ob.play();
} else {
if (_local24.side == 2){
bossInfo.rCompHealth = (bossInfo.rCompHealth - _arg7);
_local24.ob.play();
} else {
bossInfo.health = (bossInfo.health - _arg7);
};
};
_local9 = true;
};
};
_local16++;
};
} else {
if ((((playerOb.x - _local10) * (playerOb.x - _local10)) + (((playerOb.y - (playerOb.h / 2)) - _local11) * ((playerOb.y - (playerOb.h / 2)) - _local11))) < 1200){
this[("strike" + _local12)].play();
playerOb.health = (playerOb.health - _arg7);
_local9 = true;
};
};
if (((!((map[_local15][_local14] == 0))) || ((liftsCollider.getPixel(_local10, _local11) == 0)))){
_local9 = true;
} else {
_local10 = (_local10 + _arg3);
_local11 = (_local11 + _arg4);
};
};
drawSprite.graphics.moveTo(_arg1, _arg2);
drawSprite.graphics.lineTo(_local10, _local11);
wallHit((_local10 - _arg3), (_local11 - _arg4));
_local13 = new Matrix();
_local13.rotate(Math.atan2(_arg4, _arg3));
_local13.translate(_arg1, _arg2);
gunflash.gotoAndStop((Math.floor((Math.random() * 4)) + 1));
fade.draw(drawSprite);
fade.draw(gunflash, _local13);
}
public function changeGun():void{
if (reloading == 0){
if (downKeys[("key" + controlsList[4])] == true){
channel2.stop();
channel3.stop();
channel4.stop();
gunSelected++;
if (gunSelected >= gunsCollected.length){
gunSelected = 0;
};
gunType = gunsCollected[gunSelected];
changegun.play();
} else {
if (downKeys[("key" + controlsList[5])] == true){
channel2.stop();
channel3.stop();
channel4.stop();
gunSelected--;
if (gunSelected < 0){
gunSelected = (gunsCollected.length - 1);
};
gunType = gunsCollected[gunSelected];
changegun.play();
};
};
};
gun.gotoAndStop(gunType);
gui.gunicon.gotoAndStop(gunType);
if (gunType != 1){
gui.ammo.text = ((String(this[("gun" + gunType)].ammo) + " | ") + String(this[("gun" + gunType)].spare));
} else {
gui.ammo.text = (String(this[("gun" + gunType)].ammo) + " | X");
};
if (gunType != 5){
player.body.gotoAndStop(1);
} else {
player.body.gotoAndStop(2);
};
lastGun = gunType;
if (gunSelected == 0){
gui.prevgun.gotoAndStop(gunsCollected[(gunsCollected.length - 1)]);
} else {
gui.prevgun.gotoAndStop(gunsCollected[(gunSelected - 1)]);
};
if (gunSelected <= (gunsCollected.length - 2)){
gui.nextgun.gotoAndStop(gunsCollected[(gunSelected + 1)]);
} else {
gui.nextgun.gotoAndStop(gunsCollected[0]);
};
}
public function updateLifts():void{
var _local1:int;
var _local2:MovieClip;
var _local3:Matrix;
var _local4:int;
var _local5:int;
var _local6:*;
var _local7:int;
_local1 = 0;
while (_local1 < lifts.length) {
_local2 = lifts[_local1];
if (_local2.s == 1){
_local2.x = (_local2.x + _local2.xv);
_local2.y = (_local2.y + _local2.yv);
_local2.timer--;
if (_local2.timer == 0){
if (_local2.once == 1){
_local2.once = 2;
_local2.s = 2;
_local2.ch.stop();
_local7 = 0;
while (_local7 < lifts.length) {
if (lifts[_local7].id == _local2.id){
this[((("lifts_" + currentLevel) + "_") + currentStage)][_local2.id].s = 2;
};
_local7++;
};
};
_local2.xMove = (_local2.xMove * -1);
_local2.yMove = (_local2.yMove * -1);
_local2.xv = 0;
_local2.yv = 0;
_local2.ch.stop();
} else {
if (_local2.timer == -30){
_local2.xv = _local2.xMove;
_local2.yv = _local2.yMove;
_local2.ch = liftrun.play();
_local2.ch.soundTransform = new SoundTransform(0, 0);
} else {
if (_local2.timer == (-(_local2.timeTake) - 30)){
_local2.xMove = (_local2.xMove * -1);
_local2.yMove = (_local2.yMove * -1);
_local2.xv = 0;
_local2.yv = 0;
_local2.ch.stop();
_local2.timer = (_local2.timeTake + 30);
} else {
if (_local2.timer == _local2.timeTake){
_local2.xv = _local2.xMove;
_local2.yv = _local2.yMove;
_local2.ch = liftrun.play();
_local2.ch.soundTransform = new SoundTransform(0, 0);
};
};
};
};
};
_local3 = new Matrix();
_local3.translate(_local2.x, _local2.y);
liftsCollider.draw(_local2, _local3);
_local4 = (playerOb.x - (_local2.x + (_local2.width / 2)));
_local5 = ((playerOb.y - 30) - (_local2.y + (_local2.height / 2)));
_local6 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5)));
if (_local6 <= 200){
_local2.ch.soundTransform = new SoundTransform(((200 - _local6) / 200), 0);
} else {
_local2.ch.soundTransform = new SoundTransform(0, 0);
};
_local1++;
};
}
public function updateParts():void{
var _local1:int;
var _local2:*;
var _local3:int;
var _local4:int;
_local1 = 0;
while (_local1 < parts.length) {
_local2 = parts[_local1];
_local3 = Math.floor(((_local2.x + _local2.xv) / tileW));
_local4 = Math.floor(((_local2.y + _local2.yv) / tileH));
if (map[_local4][_local3] > 0){
sprites.removeChild(_local2);
parts.splice(_local1, 1);
_local1--;
} else {
_local2.x = (_local2.x + _local2.xv);
_local2.y = (_local2.y + _local2.yv);
_local2.yv = (_local2.yv + (grav / 2));
_local2.rotation = (_local2.rotation + _local2.rotSpeed);
};
_local1++;
};
}
public function updateJumpPads():void{
var _local1:int;
_local1 = 0;
while (_local1 < upPads.length) {
if (jumpPads[((("pad_" + upPads[_local1][0]) + "_") + upPads[_local1][1])].timer > 0){
jumpPads[((("pad_" + upPads[_local1][0]) + "_") + upPads[_local1][1])].timer--;
} else {
levelMap.fillRect(new Rectangle((upPads[_local1][1] * tileH), ((upPads[_local1][0] * tileW) - 15), tileW, (tileH + 15)), 0xFFFFFF);
levelMap.copyPixels(jumpDown, new Rectangle(0, 0, tileW, tileH), new Point((upPads[_local1][1] * tileW), (upPads[_local1][0] * tileH)));
upPads.splice(_local1, 1);
_local1--;
};
_local1++;
};
}
public function moveScreen():void{
if ((((playerOb.y > (stageH / 2))) && ((playerOb.y < ((map.length * tileH) - (stageH / 2)))))){
if (player.y != (stageH / 2)){
player.y = ((stageH / 2) - posAddY);
};
posY = ((playerOb.y - (stageH / 2)) + posAddY);
} else {
if (playerOb.y > (stageH / 2)){
posY = (((map.length * tileH) - stageH) + posAddY);
} else {
posY = posAddY;
};
player.y = (playerOb.y - posY);
};
if ((((playerOb.x > (stageW / 2))) && ((playerOb.x < ((map[0].length * tileW) - (stageW / 2)))))){
if (player.x != (stageW / 2)){
player.x = ((stageW / 2) - posAddX);
};
player.x = ((stageW / 2) - posAddX);
posX = ((playerOb.x - (stageW / 2)) + posAddX);
} else {
if (playerOb.x > (stageW / 2)){
posX = (((map[0].length * tileW) - stageW) + posAddX);
} else {
posX = posAddX;
};
player.x = (playerOb.x - posX);
};
}
public function addBoss(_arg1:int, _arg2:int):void{
var _local3:leftframe;
var _local4:rightframe;
var _local5:bosslauncher;
var _local6:bosslauncher;
var _local7:bosslauncher;
var _local8:bosslauncher;
boss = new BOSS();
boss.x = ((_arg1 * tileW) + 3);
boss.y = ((_arg2 * tileH) + 1);
bossParts.push(boss);
sprites.addChild(boss);
_local3 = new leftframe();
_local3.x = ((_arg1 - 1) * tileW);
_local3.y = (_arg2 * tileH);
bossParts.push(_local3);
sprites.addChild(_local3);
if (bossInfo.ldead == true){
_local3.gotoAndStop(4);
computers.push({ob:_local3, x:(((_arg1 - 1) * tileW) + 50), y:(_arg2 * tileH), h:120, side:3});
if (bossInfo.rdead == true){
boss.body.gotoAndStop(4);
} else {
boss.body.gotoAndStop(3);
};
} else {
computers.push({ob:_local3, x:(((_arg1 - 1) * tileW) + 20), y:(_arg2 * tileH), h:120, side:1});
};
_local4 = new rightframe();
_local4.x = (((_arg1 + 4) * tileW) - 15);
_local4.y = (_arg2 * tileH);
bossParts.push(_local4);
sprites.addChild(_local4);
if (bossInfo.rdead == true){
_local4.gotoAndStop(4);
computers.push({ob:_local4, x:(((_arg1 + 4) * tileW) - 20), y:(_arg2 * tileH), h:120, side:3});
if (bossInfo.ldead == true){
boss.body.gotoAndStop(4);
} else {
boss.body.gotoAndStop(2);
};
} else {
computers.push({ob:_local4, x:(((_arg1 + 4) * tileW) + 10), y:(_arg2 * tileH), h:120, side:2});
};
_local5 = new bosslauncher();
_local5.x = (4 * tileW);
_local5.y = (12 * tileH);
_local5.scaleX = -1;
bossParts.push(_local5);
sprites.addChild(_local5);
_local6 = new bosslauncher();
_local6.x = (20 * tileW);
_local6.y = (8 * tileH);
_local6.scaleX = -1;
bossParts.push(_local6);
sprites.addChild(_local6);
_local7 = new bosslauncher();
_local7.x = (16 * tileW);
_local7.y = (8 * tileH);
bossParts.push(_local7);
sprites.addChild(_local7);
_local8 = new bosslauncher();
_local8.x = (32 * tileW);
_local8.y = (12 * tileH);
bossParts.push(_local8);
sprites.addChild(_local8);
}
public function grenadeExplode(_arg1:int, _arg2:int):void{
var _local3:int;
var _local4:int;
exp1.play();
_local3 = 0;
while (_local3 < 10) {
newParticle(_arg1, _arg2, 3, ((Math.random() * 4) + 1));
_local3++;
};
_local4 = 0;
while (_local4 < 15) {
newExplosionParticle(_arg1, _arg2, 4, ((Math.random() * 4) + 1));
_local4++;
};
}
}
}//package mechanaughtCB_fla
Section 26
//menu_142 (mechanaughtCB_fla.menu_142)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class menu_142 extends MovieClip {
public var button1:MovieClip;
public var button5:MovieClip;
public var button3:MovieClip;
public var button2:MovieClip;
public var button4:MovieClip;
public function menu_142(){
addFrameScript(138, frame139);
}
function frame139(){
stop();
}
}
}//package mechanaughtCB_fla
Section 27
//menubar_141 (mechanaughtCB_fla.menubar_141)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class menubar_141 extends MovieClip {
public function menubar_141(){
addFrameScript(117, frame118);
}
function frame118(){
stop();
}
}
}//package mechanaughtCB_fla
Section 28
//missilegun_83 (mechanaughtCB_fla.missilegun_83)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class missilegun_83 extends MovieClip {
public function missilegun_83(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 29
//moregamesbtn_73 (mechanaughtCB_fla.moregamesbtn_73)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class moregamesbtn_73 extends MovieClip {
public function moregamesbtn_73(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 30
//moveleftcon_27 (mechanaughtCB_fla.moveleftcon_27)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class moveleftcon_27 extends MovieClip {
public function moveleftcon_27(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 31
//moverightcon_28 (mechanaughtCB_fla.moverightcon_28)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class moverightcon_28 extends MovieClip {
public function moverightcon_28(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 32
//mutecon_35 (mechanaughtCB_fla.mutecon_35)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class mutecon_35 extends MovieClip {
public function mutecon_35(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 33
//NEWGAMEBTN_143 (mechanaughtCB_fla.NEWGAMEBTN_143)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class NEWGAMEBTN_143 extends MovieClip {
public function NEWGAMEBTN_143(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mechanaughtCB_fla
Section 34
//nextTab_65 (mechanaughtCB_fla.nextTab_65)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class nextTab_65 extends MovieClip {
public function nextTab_65(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 35
//nextweaponcon_31 (mechanaughtCB_fla.nextweaponcon_31)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class nextweaponcon_31 extends MovieClip {
public function nextweaponcon_31(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 36
//ok_91 (mechanaughtCB_fla.ok_91)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class ok_91 extends MovieClip {
public function ok_91(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 37
//pausecon_34 (mechanaughtCB_fla.pausecon_34)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class pausecon_34 extends MovieClip {
public function pausecon_34(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 38
//pickupdisplay_66 (mechanaughtCB_fla.pickupdisplay_66)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class pickupdisplay_66 extends MovieClip {
public var mc:MovieClip;
public function pickupdisplay_66(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 39
//pickupppp_67 (mechanaughtCB_fla.pickupppp_67)
package mechanaughtCB_fla {
import flash.display.*;
import flash.text.*;
public dynamic class pickupppp_67 extends MovieClip {
public var txt:TextField;
}
}//package mechanaughtCB_fla
Section 40
//playmoregames_52 (mechanaughtCB_fla.playmoregames_52)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class playmoregames_52 extends MovieClip {
public function playmoregames_52(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 41
//postcomments_126 (mechanaughtCB_fla.postcomments_126)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class postcomments_126 extends MovieClip {
public function postcomments_126(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 42
//preloader_2 (mechanaughtCB_fla.preloader_2)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class preloader_2 extends MovieClip {
public function preloader_2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 43
//prevweaponcon_32 (mechanaughtCB_fla.prevweaponcon_32)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class prevweaponcon_32 extends MovieClip {
public function prevweaponcon_32(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 44
//reloadcon_33 (mechanaughtCB_fla.reloadcon_33)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class reloadcon_33 extends MovieClip {
public function reloadcon_33(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 45
//reloadingcircle_97 (mechanaughtCB_fla.reloadingcircle_97)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class reloadingcircle_97 extends MovieClip {
public function reloadingcircle_97(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 46
//RESTOREDEFAULTS_104 (mechanaughtCB_fla.RESTOREDEFAULTS_104)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class RESTOREDEFAULTS_104 extends MovieClip {
public function RESTOREDEFAULTS_104(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 47
//resume_90 (mechanaughtCB_fla.resume_90)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class resume_90 extends MovieClip {
public function resume_90(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 48
//returntogame_124 (mechanaughtCB_fla.returntogame_124)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class returntogame_124 extends MovieClip {
public function returntogame_124(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 49
//returntomainmenu_51 (mechanaughtCB_fla.returntomainmenu_51)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class returntomainmenu_51 extends MovieClip {
public function returntomainmenu_51(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 50
//saveinslot1_99 (mechanaughtCB_fla.saveinslot1_99)
package mechanaughtCB_fla {
import flash.display.*;
import flash.text.*;
public dynamic class saveinslot1_99 extends MovieClip {
public var txt:TextField;
public function saveinslot1_99(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 51
//saveinslot2_100 (mechanaughtCB_fla.saveinslot2_100)
package mechanaughtCB_fla {
import flash.display.*;
import flash.text.*;
public dynamic class saveinslot2_100 extends MovieClip {
public var txt:TextField;
public function saveinslot2_100(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 52
//saveinslot3_101 (mechanaughtCB_fla.saveinslot3_101)
package mechanaughtCB_fla {
import flash.display.*;
import flash.text.*;
public dynamic class saveinslot3_101 extends MovieClip {
public var txt:TextField;
public function saveinslot3_101(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 53
//screenshots_127 (mechanaughtCB_fla.screenshots_127)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class screenshots_127 extends MovieClip {
public function screenshots_127(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 54
//settingsbtn_146 (mechanaughtCB_fla.settingsbtn_146)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class settingsbtn_146 extends MovieClip {
public function settingsbtn_146(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mechanaughtCB_fla
Section 55
//theboardsymbol_148 (mechanaughtCB_fla.theboardsymbol_148)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class theboardsymbol_148 extends MovieClip {
public function theboardsymbol_148(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 56
//THEORYTEXT_139 (mechanaughtCB_fla.THEORYTEXT_139)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class THEORYTEXT_139 extends MovieClip {
public function THEORYTEXT_139(){
addFrameScript(92, frame93);
}
function frame93(){
stop();
}
}
}//package mechanaughtCB_fla
Section 57
//titlefadein_152 (mechanaughtCB_fla.titlefadein_152)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class titlefadein_152 extends MovieClip {
public function titlefadein_152(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package mechanaughtCB_fla
Section 58
//updatesbtn_71 (mechanaughtCB_fla.updatesbtn_71)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class updatesbtn_71 extends MovieClip {
public function updatesbtn_71(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 59
//updatesontwitter_125 (mechanaughtCB_fla.updatesontwitter_125)
package mechanaughtCB_fla {
import flash.display.*;
public dynamic class updatesontwitter_125 extends MovieClip {
public function updatesontwitter_125(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mechanaughtCB_fla
Section 60
//bgloop (bgloop)
package {
import flash.media.*;
public dynamic class bgloop extends Sound {
}
}//package
Section 61
//BOSS (BOSS)
package {
import flash.display.*;
public dynamic class BOSS extends MovieClip {
public var body:MovieClip;
public var head:MovieClip;
public function BOSS(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 62
//bosslauncher (bosslauncher)
package {
import flash.display.*;
public dynamic class bosslauncher extends MovieClip {
}
}//package
Section 63
//buttonclick (buttonclick)
package {
import flash.media.*;
public dynamic class buttonclick extends Sound {
}
}//package
Section 64
//cantpickup (cantpickup)
package {
import flash.media.*;
public dynamic class cantpickup extends Sound {
}
}//package
Section 65
//char (char)
package {
import flash.display.*;
public dynamic class char extends MovieClip {
public var legs:MovieClip;
public var reload:MovieClip;
public var body:MovieClip;
public function char(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 66
//closebolt (closebolt)
package {
import flash.media.*;
public dynamic class closebolt extends Sound {
}
}//package
Section 67
//CONTROLS (CONTROLS)
package {
import flash.display.*;
public dynamic class CONTROLS extends MovieClip {
public var con7:MovieClip;
public var con5:MovieClip;
public var backbtn:MovieClip;
public var con6:MovieClip;
public var con9:MovieClip;
public var option2:MovieClip;
public var option4:MovieClip;
public var option8:MovieClip;
public var option7:MovieClip;
public var option9:MovieClip;
public var option3:MovieClip;
public var option6:MovieClip;
public var option1:MovieClip;
public var option5:MovieClip;
public var selector:MovieClip;
public var con1:MovieClip;
public var con3:MovieClip;
public var con4:MovieClip;
public var con8:MovieClip;
public var con2:MovieClip;
}
}//package
Section 68
//conveyor1set (conveyor1set)
package {
import flash.display.*;
public dynamic class conveyor1set extends BitmapData {
public function conveyor1set(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 69
//conveyor2set (conveyor2set)
package {
import flash.display.*;
public dynamic class conveyor2set extends BitmapData {
public function conveyor2set(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 70
//conveyor3set (conveyor3set)
package {
import flash.display.*;
public dynamic class conveyor3set extends BitmapData {
public function conveyor3set(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 71
//conveyor4set (conveyor4set)
package {
import flash.display.*;
public dynamic class conveyor4set extends BitmapData {
public function conveyor4set(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 72
//conveyor5set (conveyor5set)
package {
import flash.display.*;
public dynamic class conveyor5set extends BitmapData {
public function conveyor5set(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 73
//conveyor6set (conveyor6set)
package {
import flash.display.*;
public dynamic class conveyor6set extends BitmapData {
public function conveyor6set(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 74
//CREDITS (CREDITS)
package {
import flash.display.*;
public dynamic class CREDITS extends MovieClip {
public var roll:MovieClip;
}
}//package
Section 75
//CURSOR (CURSOR)
package {
import flash.display.*;
public dynamic class CURSOR extends MovieClip {
}
}//package
Section 76
//death1 (death1)
package {
import flash.media.*;
public dynamic class death1 extends Sound {
}
}//package
Section 77
//death2 (death2)
package {
import flash.media.*;
public dynamic class death2 extends Sound {
}
}//package
Section 78
//door (door)
package {
import flash.display.*;
public dynamic class door extends MovieClip {
public function door(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 79
//endpoint (endpoint)
package {
import flash.display.*;
public dynamic class endpoint extends MovieClip {
}
}//package
Section 80
//explode1 (explode1)
package {
import flash.media.*;
public dynamic class explode1 extends Sound {
}
}//package
Section 81
//explosionparts (explosionparts)
package {
import flash.display.*;
public dynamic class explosionparts extends MovieClip {
public function explosionparts(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 82
//flamethrower (flamethrower)
package {
import flash.media.*;
public dynamic class flamethrower extends Sound {
}
}//package
Section 83
//flier (flier)
package {
import flash.display.*;
public dynamic class flier extends MovieClip {
public var hbar:MovieClip;
}
}//package
Section 84
//gameloop (gameloop)
package {
import flash.media.*;
public dynamic class gameloop extends Sound {
}
}//package
Section 85
//gameover (gameover)
package {
import flash.display.*;
public dynamic class gameover extends MovieClip {
public var option2:MovieClip;
public var option1:MovieClip;
public var option3:MovieClip;
public var adBox:MovieClip;
}
}//package
Section 86
//godoor (godoor)
package {
import flash.media.*;
public dynamic class godoor extends Sound {
}
}//package
Section 87
//grenade (grenade)
package {
import flash.display.*;
public dynamic class grenade extends MovieClip {
}
}//package
Section 88
//grunt (grunt)
package {
import flash.display.*;
public dynamic class grunt extends MovieClip {
public var legs:MovieClip;
public var arm:MovieClip;
public var hbar:MovieClip;
}
}//package
Section 89
//GUI (GUI)
package {
import flash.display.*;
import flash.text.*;
public dynamic class GUI extends MovieClip {
public var bosshealth:MovieClip;
public var updatebtn:MovieClip;
public var lives:TextField;
public var pickupdisp:MovieClip;
public var prevgun:MovieClip;
public var health:MovieClip;
public var nextgun:MovieClip;
public var gunicon:MovieClip;
public var ammo:TextField;
public var morebtn:MovieClip;
}
}//package
Section 90
//gunarm (gunarm)
package {
import flash.display.*;
public dynamic class gunarm extends MovieClip {
public function gunarm(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 91
//gunchange (gunchange)
package {
import flash.media.*;
public dynamic class gunchange extends Sound {
}
}//package
Section 92
//heavy (heavy)
package {
import flash.display.*;
public dynamic class heavy extends MovieClip {
public var legs:MovieClip;
public var arm:MovieClip;
public var hbar:MovieClip;
}
}//package
Section 93
//hit1 (hit1)
package {
import flash.media.*;
public dynamic class hit1 extends Sound {
}
}//package
Section 94
//hit2 (hit2)
package {
import flash.media.*;
public dynamic class hit2 extends Sound {
}
}//package
Section 95
//hit3 (hit3)
package {
import flash.media.*;
public dynamic class hit3 extends Sound {
}
}//package
Section 96
//introtext (introtext)
package {
import flash.display.*;
public dynamic class introtext extends MovieClip {
public function introtext(){
addFrameScript(226, frame227);
}
function frame227(){
stop();
}
}
}//package
Section 97
//jump1 (jump1)
package {
import flash.display.*;
public dynamic class jump1 extends BitmapData {
public function jump1(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 98
//jump2 (jump2)
package {
import flash.display.*;
public dynamic class jump2 extends BitmapData {
public function jump2(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 99
//jumping (jumping)
package {
import flash.media.*;
public dynamic class jumping extends Sound {
}
}//package
Section 100
//keyboardtype (keyboardtype)
package {
import flash.media.*;
public dynamic class keyboardtype extends Sound {
}
}//package
Section 101
//launcher (launcher)
package {
import flash.display.*;
public dynamic class launcher extends MovieClip {
public var gun:MovieClip;
public var hbar:MovieClip;
}
}//package
Section 102
//lazersound (lazersound)
package {
import flash.media.*;
public dynamic class lazersound extends Sound {
}
}//package
Section 103
//leftframe (leftframe)
package {
import flash.display.*;
public dynamic class leftframe extends MovieClip {
public function leftframe(){
addFrameScript(0, frame1, 2, frame3);
}
function frame3(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package
Section 104
//levelTrans (levelTrans)
package {
import flash.display.*;
import flash.text.*;
public dynamic class levelTrans extends MovieClip {
public var leveltxt:TextField;
public function levelTrans(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 105
//liftrunning (liftrunning)
package {
import flash.media.*;
public dynamic class liftrunning extends Sound {
}
}//package
Section 106
//liftstarting (liftstarting)
package {
import flash.media.*;
public dynamic class liftstarting extends Sound {
}
}//package
Section 107
//liftstopping (liftstopping)
package {
import flash.media.*;
public dynamic class liftstopping extends Sound {
}
}//package
Section 108
//loadbullet (loadbullet)
package {
import flash.media.*;
public dynamic class loadbullet extends Sound {
}
}//package
Section 109
//LOADGAME (LOADGAME)
package {
import flash.display.*;
import flash.text.*;
public dynamic class LOADGAME extends MovieClip {
public var slot3:MovieClip;
public var slot1:MovieClip;
public var backbtn:MovieClip;
public var slot2:MovieClip;
public var slotdata2:TextField;
public var slotdata1:TextField;
public var slotdata0:TextField;
}
}//package
Section 110
//machinegunfire (machinegunfire)
package {
import flash.media.*;
public dynamic class machinegunfire extends Sound {
}
}//package
Section 111
//menuloop (menuloop)
package {
import flash.media.*;
public dynamic class menuloop extends Sound {
}
}//package
Section 112
//missile (missile)
package {
import flash.display.*;
public dynamic class missile extends MovieClip {
}
}//package
Section 113
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.system.*;
import flash.net.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 114
//mouseover (mouseover)
package {
import flash.media.*;
public dynamic class mouseover extends Sound {
}
}//package
Section 115
//movingtile (movingtile)
package {
import flash.display.*;
public dynamic class movingtile extends MovieClip {
}
}//package
Section 116
//octobomb (octobomb)
package {
import flash.display.*;
public dynamic class octobomb extends MovieClip {
}
}//package
Section 117
//openbolt (openbolt)
package {
import flash.media.*;
public dynamic class openbolt extends Sound {
}
}//package
Section 118
//part (part)
package {
import flash.display.*;
public dynamic class part extends MovieClip {
public function part(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 119
//particle (particle)
package {
import flash.display.*;
public dynamic class particle extends MovieClip {
}
}//package
Section 120
//pausemenu (pausemenu)
package {
import flash.display.*;
public dynamic class pausemenu extends MovieClip {
public var slot1:MovieClip;
public var option2:MovieClip;
public var option1:MovieClip;
public function pausemenu(){
addFrameScript(22, frame23, 35, frame36, 47, frame48, 70, frame71);
}
function frame71(){
stop();
}
function frame23(){
stop();
}
function frame36(){
stop();
}
function frame48(){
gotoAndPlay(22);
}
}
}//package
Section 121
//pickup (pickup)
package {
import flash.display.*;
public dynamic class pickup extends MovieClip {
public function pickup(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 122
//pickupsound (pickupsound)
package {
import flash.media.*;
public dynamic class pickupsound extends Sound {
}
}//package
Section 123
//pistolshot (pistolshot)
package {
import flash.media.*;
public dynamic class pistolshot extends Sound {
}
}//package
Section 124
//popup (popup)
package {
import flash.display.*;
public dynamic class popup extends MovieClip {
public var slot1:MovieClip;
public var option2:MovieClip;
public var option4:MovieClip;
public var option1:MovieClip;
public var option3:MovieClip;
public var op1:MovieClip;
public var op2:MovieClip;
public function popup(){
addFrameScript(22, frame23, 35, frame36, 48, frame49, 71, frame72, 83, frame84, 106, frame107);
}
function frame72(){
stop();
}
function frame84(){
gotoAndPlay(48);
}
function frame107(){
stop();
}
function frame23(){
stop();
}
function frame36(){
stop();
}
function frame49(){
stop();
}
}
}//package
Section 125
//popup2 (popup2)
package {
import flash.display.*;
public dynamic class popup2 extends MovieClip {
public var slot1:MovieClip;
public var option2:MovieClip;
public var option1:MovieClip;
}
}//package
Section 126
//rightframe (rightframe)
package {
import flash.display.*;
public dynamic class rightframe extends MovieClip {
public function rightframe(){
addFrameScript(0, frame1, 2, frame3);
}
function frame3(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package
Section 127
//rocketlaunch (rocketlaunch)
package {
import flash.media.*;
public dynamic class rocketlaunch extends Sound {
}
}//package
Section 128
//savepoint (savepoint)
package {
import flash.display.*;
public dynamic class savepoint extends MovieClip {
}
}//package
Section 129
//savesuccess (savesuccess)
package {
import flash.media.*;
public dynamic class savesuccess extends Sound {
}
}//package
Section 130
//shortburst (shortburst)
package {
import flash.media.*;
public dynamic class shortburst extends Sound {
}
}//package
Section 131
//shotgunshot (shotgunshot)
package {
import flash.media.*;
public dynamic class shotgunshot extends Sound {
}
}//package
Section 132
//spawnsound (spawnsound)
package {
import flash.media.*;
public dynamic class spawnsound extends Sound {
}
}//package
Section 133
//spring (spring)
package {
import flash.media.*;
public dynamic class spring extends Sound {
}
}//package
Section 134
//startmov (startmov)
package {
import flash.display.*;
public dynamic class startmov extends MovieClip {
public function startmov(){
addFrameScript(620, frame621);
}
function frame621(){
stop();
}
}
}//package
Section 135
//switchmc (switchmc)
package {
import flash.display.*;
public dynamic class switchmc extends MovieClip {
public function switchmc(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 136
//switchpress (switchpress)
package {
import flash.media.*;
public dynamic class switchpress extends Sound {
}
}//package
Section 137
//tilesheet (tilesheet)
package {
import flash.display.*;
public dynamic class tilesheet extends BitmapData {
public function tilesheet(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 138
//TITLE (TITLE)
package {
import flash.display.*;
public dynamic class TITLE extends MovieClip {
public var theboard:MovieClip;
public var alillmbtn:MovieClip;
public var buttons:MovieClip;
}
}//package
Section 139
//TRANS (TRANS)
package {
import flash.display.*;
public dynamic class TRANS extends MovieClip {
public function TRANS(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 140
//turret (turret)
package {
import flash.display.*;
public dynamic class turret extends MovieClip {
public var gun:MovieClip;
public var hbar:MovieClip;
}
}//package
Section 141
//tvcover (tvcover)
package {
import flash.display.*;
import flash.text.*;
public dynamic class tvcover extends MovieClip {
public var txt:TextField;
}
}//package
Section 142
//tvscreen (tvscreen)
package {
import flash.display.*;
public dynamic class tvscreen extends MovieClip {
}
}//package
Section 143
//updatespage (updatespage)
package {
import flash.display.*;
public dynamic class updatespage extends MovieClip {
public var option2:MovieClip;
public var option4:MovieClip;
public var option1:MovieClip;
public var option3:MovieClip;
public var option5:MovieClip;
public var adBox:MovieClip;
}
}//package