Section 1
//BtnSs (FWG.BtnSs)
package FWG {
public dynamic class BtnSs extends SBtn {
}
}//package FWG
Section 2
//BtnSubmit (FWG.BtnSubmit)
package FWG {
public dynamic class BtnSubmit extends SBtn {
}
}//package FWG
Section 3
//BtnVh (FWG.BtnVh)
package FWG {
public dynamic class BtnVh extends SBtn {
}
}//package FWG
Section 4
//BtnX (FWG.BtnX)
package FWG {
public dynamic class BtnX extends SBtn {
}
}//package FWG
Section 5
//SBtn (FWG.SBtn)
package FWG {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
public class SBtn extends MovieClip {
public var _press:Function;
public var _rollOver:Function;
public var btn;
public var _rollOut:Function;
public var _release:Function;
public function SBtn(){
var i:int;
var child:*;
super();
btn = this.getChildAt(0);
_rollOver = function (){
};
_rollOut = function (){
};
_press = function (){
};
_release = function (){
};
if ((btn is MovieClip)){
btn.buttonMode = true;
btn.gotoAndStop(1);
};
btn.addEventListener(MouseEvent.MOUSE_OVER, _onRollOver, false, 0, true);
btn.addEventListener(MouseEvent.MOUSE_OUT, _onRollOut, false, 0, true);
btn.addEventListener(MouseEvent.MOUSE_DOWN, _onPress, false, 0, true);
btn.addEventListener(MouseEvent.MOUSE_UP, _onRelease, false, 0, true);
i = this.numChildren;
while ((i = (i - 1)), (i - 1) >= 0) {
child = this.getChildAt(i);
if ((child is InteractiveObject)){
child.mouseEnabled = false;
if ((child is DisplayObjectContainer)){
child.mouseChildren = false;
};
};
};
btn.mouseEnabled = true;
}
public function release():void{
}
public function press():void{
}
public function _onRollOut(_arg1:MouseEvent):void{
rollOut();
_rollOut();
}
public function rollOut():void{
}
public function _onRelease(_arg1:MouseEvent):void{
release();
_release();
}
public function _onRollOver(_arg1:MouseEvent):void{
rollOver();
_rollOver();
}
public function _onPress(_arg1:MouseEvent):void{
press();
_press();
}
public function rollOver():void{
}
}
}//package FWG
Section 6
//SubmitScore (FWG.SubmitScore)
package FWG {
import flash.net.*;
import flash.display.*;
import flash.events.*;
public class SubmitScore extends Sprite {
private var windowBg;
public var score:int;
private var windowBody;
public var game_name:String;
public function SubmitScore(){
GameI.submitScore = this;
windowBody = this.getChildAt(1);
windowBg = this.getChildAt(0);
windowBody.stop();
windowBody.btnSubmit._release = checkSubmit;
windowBody.btnX._release = fadeHide;
hide();
}
private function errorHandler(_arg1:IOErrorEvent):void{
trace(("error: " + _arg1));
}
public function hide():void{
this.removeChild(windowBody);
this.removeChild(windowBg);
}
public function checkSubmit():void{
var _local1:String;
var _local2:URLVariables;
_local1 = windowBody.nameTxt.text;
if (_local1 == ""){
_local1 = ("guest" + int((Math.random() * 1000)));
};
if (score > 0){
_local2 = new URLVariables();
_local2.game = game_name;
_local2.score = windowBody.scoreTxt.text;
_local2.name = _local1;
Net.sendData(_local2, "http://www.freeworldgroup.com/score/score.asp", completeHandler, errorHandler);
windowBody.gotoAndStop(2);
GameI.btnSs.visible = false;
} else {
trace("score is 0! can't submit!");
};
}
public function fadeShow():void{
show();
windowBody.nameTxt.stage.focus = windowBody.nameTxt;
windowBody.nameTxt.setSelection(0, windowBody.nameTxt.text.length);
}
private function completeHandler(_arg1:Event):void{
windowBody.gotoAndStop(3);
}
public function fadeHide():void{
hide();
}
public function show():void{
this.addChild(windowBg);
this.addChild(windowBody);
windowBody.nameTxt.maxChars = 10;
windowBody.nameTxt.text = "";
windowBody.scoreTxt.text = score;
trace(((("playerName=" + windowBody.nameTxt.text) + ",score=") + windowBody.scoreTxt.text));
}
}
}//package FWG
Section 7
//Ammo0 (game.engine.NTechBattleGrounds.Ammo0)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class Ammo0 extends NTechObject {
var engaged:Boolean;// = true
var YMovement:Number;// = 10
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:int;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
var nextShot:int;// = 0
public var DestroyGraphic:Class;
var Angle:Number;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
var numXFrames:int;// = 0
public var AttackDamage:int;// = 0
public function Ammo0(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
GameGraphic = Enemy3ID;
engaged = true;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
Movement = 10;
YMovement = 10;
SelfDestructed = false;
numXFrames = 0;
nextShot = 0;
Angle = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = LightningGraphicID;
BulletType = 0;
BulletGraphic = AmmoType1ID;
DestroyGraphic = SimpleEnemyShotDestroyID;
Type = "Enemy";
hitType = "None";
Name = "P29Z5";
hitRadius = 0;
hitCenterX = 99999;
hitCenterY = 99999;
HP = 25;
AttackDamage = 5;
ScoreValue = 50;
Angle = _arg4;
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
}
override public function main():void{
if (engaged){
X = (X - 10);
Y = (Y + Angle);
if (X <= 150){
Attack([(Y / 25)]);
};
if (X < 0){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
}
}//package game.engine.NTechBattleGrounds
Section 8
//Ammo1 (game.engine.NTechBattleGrounds.Ammo1)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class Ammo1 extends NTechObject {
var engaged:Boolean;// = true
var YMovement:Number;// = 10
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:int;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
var nextShot:int;// = 0
public var DestroyGraphic:Class;
var Angle:Number;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
var numXFrames:int;// = 0
public var AttackDamage:int;// = 0
public function Ammo1(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
GameGraphic = Enemy3ID;
engaged = true;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
Movement = 10;
YMovement = 10;
SelfDestructed = false;
numXFrames = 0;
nextShot = 0;
Angle = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = Enemy0DestroyID;
BulletType = 0;
BulletGraphic = AmmoType1ID;
DestroyGraphic = missile_explodeID;
Type = "Enemy";
hitType = "None";
Name = "P29Z5";
hitRadius = 0;
hitCenterX = 9999999;
hitCenterY = 9999999;
HP = 25;
AttackDamage = 5;
ScoreValue = 50;
Angle = _arg4;
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
}
override public function main():void{
if (engaged){
Graphic.rotation = ((Angle * (180 / Math.PI)) + 180);
X = (X + (Math.cos(Angle) * 10));
Y = (Y + (Math.sin(Angle) * 10));
if (X <= 150){
Attack([(Y / 25)]);
};
if (X <= 0){
Attack([(Y / 25), ((Y / 25) + 1), ((Y / 25) + 2), ((Y / 25) - 1), ((Y / 25) - 2)]);
TempGraphicX = X;
TempGraphicY = (Y + 25);
TempGraphic = Enemy0DestroyID;
dispatchEvent(new Event("RequestTemp"));
TempGraphicY = (Y + 50);
dispatchEvent(new Event("RequestTemp"));
TempGraphicY = (Y - 25);
dispatchEvent(new Event("RequestTemp"));
TempGraphicY = (Y - 50);
dispatchEvent(new Event("RequestTemp"));
TempGraphicY = Y;
TempGraphic = missile_explodeID;
dispatchEvent(new Event("RequestTemp"));
dispatchEvent(new Event("EnemyDestroyed"));
};
if ((((((Y < 0)) || ((Y > 465)))) || ((X > 720)))){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
}
}//package game.engine.NTechBattleGrounds
Section 9
//Ammo1Phase3 (game.engine.NTechBattleGrounds.Ammo1Phase3)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class Ammo1Phase3 extends NTechObject {
var engaged:Boolean;// = true
var YMovement:Number;// = 10
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;
var nextShot:int;// = 0
public var DestroyGraphic:Class;
var Angle:Number;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
var speedX:int;// = 0
public var AttackDamage:int;// = 0
public function Ammo1Phase3(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
GameGraphic = Enemy3ID;
engaged = true;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
Movement = 10;
YMovement = 10;
SelfDestructed = false;
speedX = 0;
nextShot = 0;
Angle = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = LightningGraphicID;
BulletType = Ammo1Phase3;
BulletGraphic = phase3ammoID;
DestroyGraphic = phase3ammoDestroyID;
Type = "Enemy";
hitType = "None";
Name = "P29Z5";
hitRadius = 0;
hitCenterX = 99999;
hitCenterY = 99999;
HP = 25;
AttackDamage = 5;
ScoreValue = 50;
Angle = _arg4;
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
}
override public function main():void{
if (engaged){
nextShot++;
if (nextShot < 10){
Y = (Y + Angle);
};
if (nextShot > 20){
X = (X - 15);
};
if ((((nextShot == 30)) && ((X > 150)))){
TempGraphicX = X;
TempGraphicY = Y;
BulletParam = 10;
dispatchEvent(new Event("RequestObject"));
BulletParam = -10;
dispatchEvent(new Event("RequestObject"));
dispatchEvent(new Event("EnemyDestroyed"));
};
if (X <= 150){
Attack([(Y / 25)]);
};
if ((((((X < 0)) || ((Y < 0)))) || ((Y > 500)))){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
}
}//package game.engine.NTechBattleGrounds
Section 10
//Ammo1Phase4 (game.engine.NTechBattleGrounds.Ammo1Phase4)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class Ammo1Phase4 extends NTechObject {
var engaged:Boolean;// = true
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
var Extended:Boolean;// = false
public var GameGraphic:Class;
public var BulletType:Class;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;
var nextShot:int;// = 0
var BeamLength:int;// = 50
public var DestroyGraphic:Class;
var Angle:Number;// = 0
var MoveOn:Boolean;// = true
var BeamSpeed:int;// = 10
var Up:Boolean;// = false
var Graphic:MovieClip;
public var AttackCells:Array;
var PointX:Number;// = 0
var PointY:Number;// = 0
var speedX:int;// = 0
public var AttackDamage:int;// = 0
public function Ammo1Phase4(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
GameGraphic = Enemy3ID;
engaged = true;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
SelfDestructed = false;
speedX = 0;
nextShot = 0;
Angle = 0;
PointX = 0;
PointY = 0;
MoveOn = true;
Extended = false;
Up = false;
BeamLength = 50;
BeamSpeed = 10;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = LightningGraphicID;
BulletType = Ammo1Phase3;
BulletGraphic = phase3ammoID;
DestroyGraphic = phase3ammoDestroyID;
Type = "Enemy";
hitType = "None";
Name = "P29Z5";
hitRadius = 0;
hitCenterX = 99999;
hitCenterY = 99999;
HP = 25;
AttackDamage = 5;
ScoreValue = 50;
Angle = _arg4;
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function drawBeam():void{
Graphic.graphics.clear();
Graphic.graphics.lineStyle(5, 0xFF0000);
Graphic.graphics.lineTo(PointX, PointY);
Graphic.graphics.lineStyle(2, 0xFFFFFF);
Graphic.graphics.lineTo(0, 0);
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
while (Graphic.numChildren > 0) {
Graphic.removeChild(Graphic.getChildAt(0));
};
Graphic.graphics.clear();
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
drawBeam();
if (MoveOn){
if (!Extended){
PointX = (PointX - BeamSpeed);
if (Math.abs(PointX) >= BeamLength){
Extended = true;
};
} else {
PointX = (PointX + BeamSpeed);
X = (X - BeamSpeed);
if (Math.abs(PointX) <= 0){
PointX = 0;
Extended = false;
MoveOn = false;
if (Player.getY() > Y){
Up = false;
} else {
if (Player.getY() <= Y){
Up = true;
};
};
};
};
} else {
if (!Extended){
if (Up){
PointY = (PointY - BeamSpeed);
} else {
PointY = (PointY + BeamSpeed);
};
if (Math.abs(PointY) >= BeamLength){
Extended = true;
};
} else {
if (Up){
PointY = (PointY + BeamSpeed);
Y = (Y - BeamSpeed);
} else {
PointY = (PointY - BeamSpeed);
Y = (Y + BeamSpeed);
};
if (Math.abs(PointY) <= 0){
PointY = 0;
Extended = false;
MoveOn = true;
};
};
};
if (X <= 150){
Attack([(Y / 25)]);
};
if ((((((X < 0)) || ((Y < 0)))) || ((Y > 500)))){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
}
}//package game.engine.NTechBattleGrounds
Section 11
//Ammo2 (game.engine.NTechBattleGrounds.Ammo2)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class Ammo2 extends NTechObject {
var engaged:Boolean;// = true
var YMovement:Number;// = 10
var Player:Object;
var SelfDestructed:Boolean;// = false
var PlayerHitted:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:int;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
var nextShot:int;// = 0
public var DestroyGraphic:Class;
var Angle:Number;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
var numXFrames:int;// = 0
public var AttackDamage:int;// = 0
public function Ammo2(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
GameGraphic = Enemy3ID;
engaged = true;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
Movement = 10;
YMovement = 10;
SelfDestructed = false;
numXFrames = 0;
nextShot = 0;
Angle = 0;
PlayerHitted = false;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = AmmoType1DestroyID;
BulletType = 0;
BulletGraphic = AmmoType1ID;
DestroyGraphic = Boss5_BeamEndID;
Type = "Enemy";
hitType = "None";
Name = "P29Z5";
hitRadius = 0;
hitCenterX = 9999999;
hitCenterY = 9999999;
HP = 25;
AttackDamage = 50;
ScoreValue = 50;
Angle = _arg4;
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
PlayerHitted = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
Graphic.width = (Graphic.width + (X - 405));
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
}
override public function main():void{
if (engaged){
if ((((Graphic.currentFrame >= 2)) && (!(PlayerHitted)))){
Attack([(Y / 25), ((Y / 25) + 1), ((Y / 25) + 2), ((Y / 25) - 1), ((Y / 25) - 2)]);
};
if (Graphic.currentLabel == "Done"){
HP = 0;
SelfDestructed = true;
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
}
}//package game.engine.NTechBattleGrounds
Section 12
//Ammo2Phase3 (game.engine.NTechBattleGrounds.Ammo2Phase3)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class Ammo2Phase3 extends NTechObject {
var engaged:Boolean;// = true
var YMovement:Number;// = 10
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
var nextShot:int;// = 0
public var DestroyGraphic:Class;
var Angle:Number;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
var speedX:int;// = 0
public var AttackDamage:int;// = 0
public function Ammo2Phase3(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
GameGraphic = Enemy3ID;
engaged = true;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
Movement = 10;
YMovement = 10;
SelfDestructed = false;
speedX = 0;
nextShot = 0;
Angle = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = LightningGraphicID;
BulletType = Ammo2Phase3;
BulletGraphic = AmmoType1ID;
DestroyGraphic = phase3ammoDestroyID;
Type = "Enemy";
hitType = "None";
Name = "P29Z5";
hitRadius = 0;
hitCenterX = 99999;
hitCenterY = 99999;
HP = 25;
AttackDamage = 5;
ScoreValue = 50;
Angle = _arg4;
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
}
override public function main():void{
if (engaged){
nextShot++;
if (nextShot < 10){
Y = (Y + Angle);
};
if (nextShot > 20){
X = (X - speedX);
speedX++;
};
if (X <= 150){
Attack([(Y / 25)]);
};
if (X < 0){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
}
}//package game.engine.NTechBattleGrounds
Section 13
//Ammo2Phase4 (game.engine.NTechBattleGrounds.Ammo2Phase4)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class Ammo2Phase4 extends NTechObject {
var engaged:Boolean;// = true
var YMovement:Number;// = 10
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
var nextShot:int;// = 0
public var DestroyGraphic:Class;
var Angle:Number;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
var numXFrames:int;// = 0
public var AttackDamage:int;// = 0
public function Ammo2Phase4(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
GameGraphic = Enemy3ID;
engaged = true;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
Movement = 10;
YMovement = 10;
SelfDestructed = false;
numXFrames = 0;
nextShot = 0;
Angle = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = AmmoType1DestroyID;
BulletType = Ammo1;
BulletGraphic = AmmoType1ID;
DestroyGraphic = Enemy0DestroyID;
Type = "Enemy";
hitType = "Circle";
Name = "Drone";
hitRadius = 1;
hitCenterX = 999999;
hitCenterY = 999999;
HP = 1;
MaxHP = 1;
AttackDamage = 5;
ScoreValue = 1;
Angle = _arg4;
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
}
override public function main():void{
if (engaged){
X = (X - (10 + Angle));
if (X <= 150){
Attack([(Y / 25)]);
};
if (X <= 0){
Attack([(Y / 25)]);
dispatchEvent(new Event("EnemyDestroyed"));
};
if ((((((Y < 0)) || ((Y > 465)))) || ((X > 720)))){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
}
}//package game.engine.NTechBattleGrounds
Section 14
//Ammo3 (game.engine.NTechBattleGrounds.Ammo3)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class Ammo3 extends NTechObject {
var engaged:Boolean;// = true
var YMovement:Number;// = 10
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
var nextShot:int;// = 0
public var DestroyGraphic:Class;
var Angle:Number;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
var numXFrames:int;// = 0
public var AttackDamage:int;// = 0
public function Ammo3(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
GameGraphic = Enemy3ID;
engaged = true;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
Movement = 10;
YMovement = 10;
SelfDestructed = false;
numXFrames = 0;
nextShot = 0;
Angle = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = AmmoType1DestroyID;
BulletType = Ammo1;
BulletGraphic = AmmoType1ID;
DestroyGraphic = Enemy0DestroyID;
Type = "Enemy";
hitType = "Circle";
Name = "Drone";
hitRadius = 22;
hitCenterX = 0;
hitCenterY = 0;
HP = 1;
MaxHP = 1;
AttackDamage = 5;
ScoreValue = 1;
Angle = _arg4;
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
}
override public function main():void{
if (engaged){
Graphic.rotation = ((Angle * (180 / Math.PI)) + 180);
X = (X + (Math.cos(Angle) * 10));
Y = (Y + (Math.sin(Angle) * 10));
if (X <= 150){
Attack([(Y / 25)]);
};
if (X <= 0){
Attack([(Y / 25)]);
TempGraphicX = X;
TempGraphicY = Y;
dispatchEvent(new Event("RequestTemp"));
dispatchEvent(new Event("EnemyDestroyed"));
};
if ((((((Y < 0)) || ((Y > 465)))) || ((X > 720)))){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
}
}//package game.engine.NTechBattleGrounds
Section 15
//Ammo3Phase4 (game.engine.NTechBattleGrounds.Ammo3Phase4)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class Ammo3Phase4 extends NTechObject {
var engaged:Boolean;// = true
var YMovement:Number;// = 10
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
var nextShot:int;// = 9000
var theta:Number;// = 0
public var DestroyGraphic:Class;
var Angle:Number;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
var numXFrames:int;// = 0
public var AttackDamage:int;// = 0
var HitIt:Boolean;// = false
public function Ammo3Phase4(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
GameGraphic = Enemy3ID;
engaged = true;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
Movement = 10;
YMovement = 10;
SelfDestructed = false;
numXFrames = 0;
nextShot = 9000;
Angle = 0;
theta = 0;
HitIt = false;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = AmmoType1DestroyID;
BulletType = Ammo1;
BulletGraphic = AmmoType1ID;
DestroyGraphic = Enemy0DestroyID;
Type = "Enemy";
hitType = "none";
Name = "Drone";
hitRadius = 1;
hitCenterX = 999999;
hitCenterY = 999999;
HP = 9999;
MaxHP = 9999;
AttackDamage = 5;
ScoreValue = 1;
Angle = _arg4;
Movement = X;
YMovement = Y;
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HitIt = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
}
override public function main():void{
if (engaged){
if (Angle != 0){
theta = (theta + (Math.PI / 25));
Y = ((Math.sin((theta + Angle)) * 75) + YMovement);
X = ((Math.cos((theta + Angle)) * 35) + Movement);
};
if (Graphic.currentLabel == "Beam"){
nextShot = Graphic.currentFrame;
};
if ((((Graphic.currentFrame >= nextShot)) && (!(HitIt)))){
Attack([(Y / 25)]);
};
if ((((Graphic.currentLabel == "Done")) || ((Graphic.currentLabel == "Done2")))){
dispatchEvent(new Event("EnemyDestroyed"));
HitIt = true;
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
}
}//package game.engine.NTechBattleGrounds
Section 16
//AmmoWallBeam (game.engine.NTechBattleGrounds.AmmoWallBeam)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class AmmoWallBeam extends NTechObject {
var engaged:Boolean;// = true
var YMovement:Number;// = 10
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:int;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
var nextShot:int;// = 0
public var DestroyGraphic:Class;
var Angle:Number;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
var numXFrames:int;// = 0
public var AttackDamage:int;// = 0
public function AmmoWallBeam(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
GameGraphic = Enemy3ID;
engaged = true;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
Movement = 10;
YMovement = 10;
SelfDestructed = false;
numXFrames = 0;
nextShot = 0;
Angle = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = LightningGraphicID;
BulletType = 0;
BulletGraphic = AmmoType1ID;
DestroyGraphic = WallBeamDestroyID;
Type = "Enemy";
hitType = "None";
Name = "P29Z5";
hitRadius = 0;
hitCenterX = 9999999;
hitCenterY = 9999999;
HP = 25;
AttackDamage = 5;
ScoreValue = 50;
Angle = _arg4;
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
}
override public function main():void{
if (engaged){
X = (X - 10);
Y = (Y + Angle);
if (X <= 150){
Attack([(Y / 25), ((Y / 25) + 1), ((Y / 25) + 2), ((Y / 25) + 3), ((Y / 25) + 4), ((Y / 25) + 5), ((Y / 25) + 15), ((Y / 25) + 6), ((Y / 25) + 7), ((Y / 25) + 8), ((Y / 25) + 9), ((Y / 25) + 10), ((Y / 25) + 11), ((Y / 25) + 12), ((Y / 25) + 13), ((Y / 25) + 14), ((Y / 25) + 16)]);
};
if (X < 0){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
}
}//package game.engine.NTechBattleGrounds
Section 17
//Boss11 (game.engine.NTechBattleGrounds.Boss11)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Boss11 extends NTechObject {
var screenDur:int;// = 0
var YCenter:Number;// = 0
var engaged:Boolean;// = false
var MazeNum:int;// = 0
var MazeIndex:int;// = 0
var Player:Object;
var SelfDestructed:Boolean;// = false
var MazeWall:Array;
public var TempGraphic:Class;
public var BulletGraphic:Class;
var CycleDur:int;// = 0
var shotSpeed:int;// = 6
public var GameGraphic:Class;
public var BulletType:Class;
var transition2:Boolean;// = false
var transition1:Boolean;// = false
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;// = 0
var nextShot:int;// = 0
var MazeLength:int;// = 400
public var DestroyGraphic:Class;
var SoundVar:int;// = 0
var transNum:int;// = 0
var Cycle:int;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var XCenter:Number;// = 0
var transitionPause:Boolean;// = false
var moveSpeed:int;// = 8
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
public function Boss11(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
XCenter = 0;
YCenter = 0;
SelfDestructed = false;
nextShot = 0;
moveSpeed = 8;
shotSpeed = 6;
screenDur = 0;
Cycle = 0;
CycleDur = 0;
transition1 = false;
transition2 = false;
transNum = 0;
transitionPause = false;
MazeWall = new Array();
MazeLength = 400;
MazeIndex = 0;
MazeNum = 0;
SoundVar = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = Enemy0DestroyID;
BulletType = Boss11Ammo2;
BulletGraphic = Boss11_Ammo1ID;
IntroGraphic = Boss11IntroID;
DestroyGraphic = Boss11DestroyID;
GameGraphic = Boss11ID;
Type = "Enemy";
hitType = "Circle";
Name = "PhaseGen";
hitRadius = 95;
hitCenterX = 5;
hitCenterY = -4;
hitWidth = 150;
hitHeight = 150;
HP = 1800;
MaxHP = 1800;
AttackDamage = 10;
ScoreValue = 50;
XCenter = X;
YCenter = Y;
addEventListener("Engaged", Engage_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionlarge1FX, Player.SFXVol);
engaged = false;
CycleDur = 0;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function genWall(_arg1:int):void{
var _local2:*;
_local2 = 0;
while (_local2 < MazeWall[_arg1].length) {
if (MazeWall[_arg1][_local2]){
TempGraphicX = (X - 95);
TempGraphicY = ((_local2 * 25) + 12.5);
dispatchEvent(new Event("RequestObject"));
};
_local2++;
};
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
Graphic.gotoAndPlay("Shoot1");
engaged = true;
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
if (!transitionPause){
CycleDur++;
if (X < (XCenter - moveSpeed)){
X = (X + moveSpeed);
} else {
if (X > (XCenter + moveSpeed)){
X = (X - moveSpeed);
};
};
if (Y < (YCenter - moveSpeed)){
Y = (Y + moveSpeed);
} else {
if (Y > (YCenter + moveSpeed)){
Y = (Y - moveSpeed);
};
};
if ((((((Cycle == 0)) || ((Cycle == 4)))) || ((Cycle == 5)))){
nextShot++;
if ((CycleDur % 20) == 0){
if (Y > 250){
XCenter = 550;
YCenter = ((Math.random() * 100) + 50);
} else {
XCenter = 550;
YCenter = ((Math.random() * 100) + 350);
};
};
if (CycleDur < 240){
if ((((((Graphic.currentLabel == "EndSubShoot1")) || ((Graphic.currentLabel == "EndSubShoot2")))) || ((Graphic.currentLabel == "EndSubShoot3")))){
Graphic.gotoAndPlay((Graphic.currentFrame - 5));
};
if (nextShot == shotSpeed){
nextShot = 0;
TempGraphicX = (X + 5);
TempGraphicY = (Y - 130);
BulletParam = Math.PI;
dispatchEvent(new Event("RequestObject"));
TempGraphicX = (X + 5);
TempGraphicY = (Y + 130);
BulletParam = Math.PI;
dispatchEvent(new Event("RequestObject"));
};
};
} else {
if (Cycle == 1){
XCenter = 650;
Y = (Math.random() * 460);
nextShot++;
if (MazeNum == 0){
if (MazeIndex != 382){
CycleDur = 100;
} else {
CycleDur = 250;
};
};
if (nextShot >= 4){
genWall(MazeIndex);
nextShot = 0;
MazeIndex++;
};
} else {
if (Cycle == 2){
XCenter = 600;
YCenter = 250;
nextShot++;
if (nextShot == 20){
makeSound(chargedownlargeFX, Player.SFXVol);
dispatchEvent(new Event("RequestObject"));
};
if (nextShot == 350){
CycleDur = 250;
} else {
CycleDur = 100;
};
} else {
if (Cycle == 3){
CycleDur = 100;
if ((((Graphic.currentLabel == "EndWarpRest1")) && (!((nextShot == 2))))){
nextShot++;
Graphic.gotoAndPlay("WarpRest1");
} else {
if ((((Graphic.currentLabel == "EndWarpRest1")) && ((nextShot == 2)))){
CycleDur = 250;
};
};
if ((((Graphic.currentLabel == "EndWarpRest2")) && (!((nextShot == 2))))){
nextShot++;
Graphic.gotoAndPlay("WarpRest2");
} else {
if ((((Graphic.currentLabel == "EndWarpRest2")) && ((nextShot == 2)))){
CycleDur = 250;
};
};
if ((((Graphic.currentLabel == "EndWarpRest3")) && (!((nextShot == 2))))){
nextShot++;
Graphic.gotoAndPlay("WarpRest3");
} else {
if ((((Graphic.currentLabel == "EndWarpRest3")) && ((nextShot == 2)))){
CycleDur = 250;
};
};
};
};
};
};
};
if (CycleDur >= 250){
Cycle++;
if (Cycle > 5){
Cycle = Math.floor((Math.random() * 5));
};
if ((((((Cycle == 0)) || ((Cycle == 4)))) || ((Cycle == 5)))){
if ((getHP() / MaxHP) > 0.6){
Graphic.gotoAndPlay("Shoot1");
moveSpeed = 8;
} else {
if (((((getHP() / MaxHP) < 0.6)) && (((getHP() / MaxHP) > 0.4)))){
Graphic.gotoAndPlay("Shoot2");
moveSpeed = 10;
} else {
Graphic.gotoAndPlay("Shoot3");
moveSpeed = 12;
};
};
nextShot = 0;
BulletType = Boss11Ammo2;
BulletGraphic = Boss11_Ammo1ID;
hitType = "Circle";
hitRadius = 95;
hitCenterX = 5;
hitCenterY = -4;
} else {
if (Cycle == 1){
MazeIndex = 0;
BulletParam = Math.PI;
loadMaze(MazeNum);
if ((getHP() / MaxHP) > 0.6){
Graphic.gotoAndPlay("Wall1");
} else {
if (((((getHP() / MaxHP) < 0.6)) && (((getHP() / MaxHP) > 0.4)))){
Graphic.gotoAndPlay("Wall2");
} else {
Graphic.gotoAndPlay("Wall3");
};
};
nextShot = 0;
BulletType = Boss11Ammo2;
BulletGraphic = Boss11_Ammo2ID;
BulletParam = 0;
hitType = "Circle";
hitRadius = 95;
hitCenterX = 5;
hitCenterY = -4;
} else {
if (Cycle == 2){
MazeIndex = 0;
if ((getHP() / MaxHP) > 0.6){
Graphic.gotoAndPlay("Wall1");
} else {
if (((((getHP() / MaxHP) < 0.6)) && (((getHP() / MaxHP) > 0.4)))){
Graphic.gotoAndPlay("Wall2");
} else {
Graphic.gotoAndPlay("Wall3");
};
};
nextShot = 0;
BulletType = Boss11Ammo1;
BulletGraphic = AmmoType2ID;
BulletParam = 90210;
hitType = "Circle";
hitRadius = 95;
hitCenterX = 5;
hitCenterY = -4;
} else {
if (Cycle == 3){
MazeIndex = 0;
if ((getHP() / MaxHP) > 0.6){
Graphic.gotoAndPlay("WarpRest1");
} else {
if (((((getHP() / MaxHP) < 0.6)) && (((getHP() / MaxHP) > 0.4)))){
Graphic.gotoAndPlay("WarpRest2");
} else {
Graphic.gotoAndPlay("WarpRest3");
};
};
nextShot = 0;
BulletType = Boss11Ammo1;
BulletGraphic = AmmoType2ID;
BulletParam = 90210;
hitType = "Circle";
hitRadius = 95;
hitCenterX = 5;
hitCenterY = -4;
};
};
};
};
CycleDur = 0;
};
if (((((((getHP() / MaxHP) < 0.6)) && (((getHP() / MaxHP) > 0.4)))) && ((CycleDur <= 25)))){
if (((!(transition1)) && ((transNum < 25)))){
transNum++;
TempGraphicX = (((Math.random() * 200) - 100) + X);
TempGraphicY = (((Math.random() * 200) - 100) + Y);
transitionPause = true;
dispatchEvent(new Event("RequestTemp"));
} else {
transition1 = true;
transitionPause = false;
transNum = 0;
};
} else {
if (((((getHP() / MaxHP) < 0.4)) && ((CycleDur <= 25)))){
if (((!(transition2)) && ((transNum < 25)))){
transNum++;
TempGraphicX = (((Math.random() * 200) - 100) + X);
TempGraphicY = (((Math.random() * 200) - 100) + Y);
transitionPause = true;
dispatchEvent(new Event("RequestTemp"));
} else {
transition2 = true;
transitionPause = false;
transNum = 0;
};
};
};
if (Graphic.currentLabel == "EndWall1"){
Graphic.gotoAndPlay("Wall1");
} else {
if (Graphic.currentLabel == "EndWall2"){
Graphic.gotoAndPlay("Wall2");
} else {
if (Graphic.currentLabel == "EndWall3"){
Graphic.gotoAndPlay("Wall3");
} else {
if (Graphic.currentLabel == "EndHole1"){
Graphic.gotoAndPlay("Hole1");
} else {
if (Graphic.currentLabel == "EndHole2"){
Graphic.gotoAndPlay("Hole2");
} else {
if (Graphic.currentLabel == "EndHole3"){
Graphic.gotoAndPlay("Hole3");
};
};
};
};
};
};
};
if (Destroyed){
CycleDur++;
if (CycleDur < 75){
Y++;
TempGraphicX = (((Math.random() * 200) - 100) + X);
TempGraphicY = (((Math.random() * 200) - 100) + Y);
dispatchEvent(new Event("RequestTemp"));
Graphic.gotoAndStop(1);
} else {
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
} else {
Graphic.play();
};
};
};
}
public function Beam_Handler(_arg1:Event):void{
if (Cycle == 3){
addHit(1);
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
};
}
public function loadMaze(_arg1:int):void{
var _local2:*;
MazeWall = new Array();
_local2 = 0;
while (_local2 < MazeLength) {
MazeWall[_local2] = new Array();
_local2++;
};
if (_arg1 == 0){
MazeWall[0][0] = true;
MazeWall[0][1] = true;
MazeWall[0][2] = true;
MazeWall[0][3] = true;
MazeWall[0][4] = true;
MazeWall[0][5] = true;
MazeWall[0][6] = true;
MazeWall[0][11] = true;
MazeWall[0][12] = true;
MazeWall[0][13] = true;
MazeWall[0][14] = true;
MazeWall[0][15] = true;
MazeWall[0][16] = true;
MazeWall[0][17] = true;
MazeWall[1][5] = true;
MazeWall[1][6] = true;
MazeWall[1][11] = true;
MazeWall[1][12] = true;
MazeWall[2][5] = true;
MazeWall[2][6] = true;
MazeWall[2][11] = true;
MazeWall[2][12] = true;
MazeWall[3][5] = true;
MazeWall[3][6] = true;
MazeWall[3][11] = true;
MazeWall[3][12] = true;
MazeWall[4][5] = true;
MazeWall[4][6] = true;
MazeWall[4][11] = true;
MazeWall[4][12] = true;
MazeWall[5][5] = true;
MazeWall[5][6] = true;
MazeWall[5][11] = true;
MazeWall[5][12] = true;
MazeWall[6][5] = true;
MazeWall[6][6] = true;
MazeWall[6][11] = true;
MazeWall[6][12] = true;
MazeWall[7][5] = true;
MazeWall[7][6] = true;
MazeWall[7][11] = true;
MazeWall[7][12] = true;
MazeWall[8][0] = true;
MazeWall[8][1] = true;
MazeWall[8][2] = true;
MazeWall[8][3] = true;
MazeWall[8][4] = true;
MazeWall[8][5] = true;
MazeWall[8][6] = true;
MazeWall[8][11] = true;
MazeWall[8][12] = true;
MazeWall[8][13] = true;
MazeWall[8][14] = true;
MazeWall[8][15] = true;
MazeWall[8][16] = true;
MazeWall[8][17] = true;
MazeWall[9][6] = true;
MazeWall[9][11] = true;
MazeWall[10][6] = true;
MazeWall[10][11] = true;
MazeWall[11][6] = true;
MazeWall[11][11] = true;
MazeWall[12][5] = true;
MazeWall[12][12] = true;
MazeWall[13][5] = true;
MazeWall[13][12] = true;
MazeWall[14][5] = true;
MazeWall[14][12] = true;
MazeWall[15][5] = true;
MazeWall[15][12] = true;
MazeWall[16][0] = true;
MazeWall[16][1] = true;
MazeWall[16][2] = true;
MazeWall[16][3] = true;
MazeWall[16][4] = true;
MazeWall[16][13] = true;
MazeWall[16][14] = true;
MazeWall[16][15] = true;
MazeWall[16][16] = true;
MazeWall[16][17] = true;
MazeWall[17][4] = true;
MazeWall[17][8] = true;
MazeWall[17][9] = true;
MazeWall[17][13] = true;
MazeWall[18][4] = true;
MazeWall[18][8] = true;
MazeWall[18][9] = true;
MazeWall[18][13] = true;
MazeWall[19][4] = true;
MazeWall[19][8] = true;
MazeWall[19][9] = true;
MazeWall[19][13] = true;
MazeWall[20][3] = true;
MazeWall[20][8] = true;
MazeWall[20][9] = true;
MazeWall[20][14] = true;
MazeWall[21][3] = true;
MazeWall[21][8] = true;
MazeWall[21][9] = true;
MazeWall[21][14] = true;
MazeWall[22][3] = true;
MazeWall[22][7] = true;
MazeWall[22][8] = true;
MazeWall[22][9] = true;
MazeWall[22][10] = true;
MazeWall[22][14] = true;
MazeWall[23][3] = true;
MazeWall[23][7] = true;
MazeWall[23][8] = true;
MazeWall[23][9] = true;
MazeWall[23][10] = true;
MazeWall[23][14] = true;
MazeWall[24][0] = true;
MazeWall[24][1] = true;
MazeWall[24][2] = true;
MazeWall[24][7] = true;
MazeWall[24][8] = true;
MazeWall[24][9] = true;
MazeWall[24][10] = true;
MazeWall[24][15] = true;
MazeWall[24][16] = true;
MazeWall[24][17] = true;
MazeWall[25][2] = true;
MazeWall[25][7] = true;
MazeWall[25][8] = true;
MazeWall[25][9] = true;
MazeWall[25][10] = true;
MazeWall[25][15] = true;
MazeWall[26][2] = true;
MazeWall[26][6] = true;
MazeWall[26][8] = true;
MazeWall[26][9] = true;
MazeWall[26][11] = true;
MazeWall[26][15] = true;
MazeWall[27][2] = true;
MazeWall[27][6] = true;
MazeWall[27][8] = true;
MazeWall[27][9] = true;
MazeWall[27][11] = true;
MazeWall[27][15] = true;
MazeWall[28][2] = true;
MazeWall[28][6] = true;
MazeWall[28][8] = true;
MazeWall[28][9] = true;
MazeWall[28][11] = true;
MazeWall[28][15] = true;
MazeWall[29][2] = true;
MazeWall[29][6] = true;
MazeWall[29][8] = true;
MazeWall[29][9] = true;
MazeWall[29][11] = true;
MazeWall[29][15] = true;
MazeWall[30][2] = true;
MazeWall[30][6] = true;
MazeWall[30][8] = true;
MazeWall[30][9] = true;
MazeWall[30][11] = true;
MazeWall[30][15] = true;
MazeWall[31][0] = true;
MazeWall[31][1] = true;
MazeWall[31][2] = true;
MazeWall[31][6] = true;
MazeWall[31][8] = true;
MazeWall[31][9] = true;
MazeWall[31][11] = true;
MazeWall[31][15] = true;
MazeWall[31][16] = true;
MazeWall[31][17] = true;
MazeWall[32][1] = true;
MazeWall[32][5] = true;
MazeWall[32][8] = true;
MazeWall[32][9] = true;
MazeWall[32][11] = true;
MazeWall[32][16] = true;
MazeWall[33][1] = true;
MazeWall[33][5] = true;
MazeWall[33][6] = true;
MazeWall[33][7] = true;
MazeWall[33][8] = true;
MazeWall[33][9] = true;
MazeWall[33][10] = true;
MazeWall[33][11] = true;
MazeWall[33][16] = true;
MazeWall[34][1] = true;
MazeWall[34][5] = true;
MazeWall[34][11] = true;
MazeWall[34][16] = true;
MazeWall[35][1] = true;
MazeWall[35][5] = true;
MazeWall[35][11] = true;
MazeWall[35][16] = true;
MazeWall[36][1] = true;
MazeWall[36][4] = true;
MazeWall[36][12] = true;
MazeWall[36][17] = true;
MazeWall[37][1] = true;
MazeWall[37][4] = true;
MazeWall[37][12] = true;
MazeWall[37][17] = true;
MazeWall[38][1] = true;
MazeWall[38][4] = true;
MazeWall[38][5] = true;
MazeWall[38][6] = true;
MazeWall[38][7] = true;
MazeWall[38][8] = true;
MazeWall[38][9] = true;
MazeWall[38][10] = true;
MazeWall[38][11] = true;
MazeWall[38][12] = true;
MazeWall[38][17] = true;
MazeWall[39][0] = true;
MazeWall[39][1] = true;
MazeWall[39][4] = true;
MazeWall[39][12] = true;
MazeWall[39][17] = true;
MazeWall[40][2] = true;
MazeWall[40][5] = true;
MazeWall[40][11] = true;
MazeWall[40][16] = true;
MazeWall[41][2] = true;
MazeWall[41][5] = true;
MazeWall[41][11] = true;
MazeWall[41][16] = true;
MazeWall[42][2] = true;
MazeWall[42][5] = true;
MazeWall[42][6] = true;
MazeWall[42][7] = true;
MazeWall[42][8] = true;
MazeWall[42][9] = true;
MazeWall[42][10] = true;
MazeWall[42][11] = true;
MazeWall[42][16] = true;
MazeWall[43][2] = true;
MazeWall[43][5] = true;
MazeWall[43][11] = true;
MazeWall[43][16] = true;
MazeWall[44][0] = true;
MazeWall[44][1] = true;
MazeWall[44][2] = true;
MazeWall[44][3] = true;
MazeWall[44][6] = true;
MazeWall[44][10] = true;
MazeWall[44][15] = true;
MazeWall[44][16] = true;
MazeWall[44][17] = true;
MazeWall[45][3] = true;
MazeWall[45][6] = true;
MazeWall[45][10] = true;
MazeWall[45][15] = true;
MazeWall[46][3] = true;
MazeWall[46][6] = true;
MazeWall[46][7] = true;
MazeWall[46][8] = true;
MazeWall[46][9] = true;
MazeWall[46][10] = true;
MazeWall[46][15] = true;
MazeWall[47][3] = true;
MazeWall[47][6] = true;
MazeWall[47][10] = true;
MazeWall[47][15] = true;
MazeWall[48][2] = true;
MazeWall[48][5] = true;
MazeWall[48][9] = true;
MazeWall[48][14] = true;
MazeWall[49][2] = true;
MazeWall[49][5] = true;
MazeWall[49][9] = true;
MazeWall[49][14] = true;
MazeWall[50][2] = true;
MazeWall[50][5] = true;
MazeWall[50][9] = true;
MazeWall[50][14] = true;
MazeWall[51][0] = true;
MazeWall[51][1] = true;
MazeWall[51][2] = true;
MazeWall[51][5] = true;
MazeWall[51][9] = true;
MazeWall[51][14] = true;
MazeWall[51][15] = true;
MazeWall[51][16] = true;
MazeWall[51][17] = true;
MazeWall[52][1] = true;
MazeWall[52][4] = true;
MazeWall[52][5] = true;
MazeWall[52][6] = true;
MazeWall[52][7] = true;
MazeWall[52][8] = true;
MazeWall[52][13] = true;
MazeWall[53][1] = true;
MazeWall[53][4] = true;
MazeWall[53][8] = true;
MazeWall[53][13] = true;
MazeWall[54][1] = true;
MazeWall[54][4] = true;
MazeWall[54][8] = true;
MazeWall[54][13] = true;
MazeWall[55][1] = true;
MazeWall[55][4] = true;
MazeWall[55][8] = true;
MazeWall[55][13] = true;
MazeWall[56][1] = true;
MazeWall[56][4] = true;
MazeWall[56][5] = true;
MazeWall[56][6] = true;
MazeWall[56][7] = true;
MazeWall[56][8] = true;
MazeWall[56][13] = true;
MazeWall[57][1] = true;
MazeWall[57][4] = true;
MazeWall[57][8] = true;
MazeWall[57][13] = true;
MazeWall[58][1] = true;
MazeWall[58][4] = true;
MazeWall[58][8] = true;
MazeWall[58][13] = true;
MazeWall[59][1] = true;
MazeWall[59][4] = true;
MazeWall[59][8] = true;
MazeWall[59][13] = true;
MazeWall[60][0] = true;
MazeWall[60][4] = true;
MazeWall[60][5] = true;
MazeWall[60][6] = true;
MazeWall[60][7] = true;
MazeWall[60][12] = true;
MazeWall[60][13] = true;
MazeWall[60][14] = true;
MazeWall[60][15] = true;
MazeWall[60][16] = true;
MazeWall[60][17] = true;
MazeWall[61][0] = true;
MazeWall[61][4] = true;
MazeWall[61][7] = true;
MazeWall[61][12] = true;
MazeWall[62][0] = true;
MazeWall[62][4] = true;
MazeWall[62][7] = true;
MazeWall[62][12] = true;
MazeWall[63][0] = true;
MazeWall[63][4] = true;
MazeWall[63][7] = true;
MazeWall[63][12] = true;
MazeWall[64][0] = true;
MazeWall[64][3] = true;
MazeWall[64][6] = true;
MazeWall[64][11] = true;
MazeWall[65][0] = true;
MazeWall[65][3] = true;
MazeWall[65][6] = true;
MazeWall[65][11] = true;
MazeWall[66][0] = true;
MazeWall[66][3] = true;
MazeWall[66][4] = true;
MazeWall[66][5] = true;
MazeWall[66][6] = true;
MazeWall[66][11] = true;
MazeWall[67][0] = true;
MazeWall[67][3] = true;
MazeWall[67][6] = true;
MazeWall[67][10] = true;
MazeWall[67][11] = true;
MazeWall[68][0] = true;
MazeWall[68][3] = true;
MazeWall[68][6] = true;
MazeWall[68][10] = true;
MazeWall[68][11] = true;
MazeWall[68][12] = true;
MazeWall[68][13] = true;
MazeWall[68][14] = true;
MazeWall[68][15] = true;
MazeWall[68][16] = true;
MazeWall[68][17] = true;
MazeWall[69][0] = true;
MazeWall[69][3] = true;
MazeWall[69][6] = true;
MazeWall[69][10] = true;
MazeWall[70][0] = true;
MazeWall[70][3] = true;
MazeWall[70][6] = true;
MazeWall[70][10] = true;
MazeWall[71][0] = true;
MazeWall[71][3] = true;
MazeWall[71][6] = true;
MazeWall[71][10] = true;
MazeWall[72][0] = true;
MazeWall[72][3] = true;
MazeWall[72][4] = true;
MazeWall[72][5] = true;
MazeWall[72][9] = true;
MazeWall[73][0] = true;
MazeWall[73][3] = true;
MazeWall[73][5] = true;
MazeWall[73][9] = true;
MazeWall[73][10] = true;
MazeWall[73][11] = true;
MazeWall[73][12] = true;
MazeWall[73][13] = true;
MazeWall[73][14] = true;
MazeWall[73][15] = true;
MazeWall[73][16] = true;
MazeWall[73][17] = true;
MazeWall[74][0] = true;
MazeWall[74][3] = true;
MazeWall[74][5] = true;
MazeWall[74][9] = true;
MazeWall[75][0] = true;
MazeWall[75][3] = true;
MazeWall[75][5] = true;
MazeWall[75][9] = true;
MazeWall[76][0] = true;
MazeWall[76][4] = true;
MazeWall[76][9] = true;
MazeWall[77][0] = true;
MazeWall[77][4] = true;
MazeWall[77][9] = true;
MazeWall[78][0] = true;
MazeWall[78][4] = true;
MazeWall[78][9] = true;
MazeWall[79][0] = true;
MazeWall[79][4] = true;
MazeWall[79][9] = true;
MazeWall[80][0] = true;
MazeWall[80][8] = true;
MazeWall[81][0] = true;
MazeWall[81][7] = true;
MazeWall[81][8] = true;
MazeWall[81][9] = true;
MazeWall[81][10] = true;
MazeWall[81][11] = true;
MazeWall[81][12] = true;
MazeWall[81][13] = true;
MazeWall[81][14] = true;
MazeWall[81][15] = true;
MazeWall[81][16] = true;
MazeWall[81][17] = true;
MazeWall[82][1] = true;
MazeWall[82][6] = true;
MazeWall[83][2] = true;
MazeWall[83][5] = true;
MazeWall[84][2] = true;
MazeWall[84][5] = true;
MazeWall[85][2] = true;
MazeWall[85][5] = true;
MazeWall[86][2] = true;
MazeWall[86][5] = true;
MazeWall[87][2] = true;
MazeWall[87][5] = true;
MazeWall[88][0] = true;
MazeWall[88][1] = true;
MazeWall[88][2] = true;
MazeWall[88][3] = true;
MazeWall[88][6] = true;
MazeWall[88][7] = true;
MazeWall[88][8] = true;
MazeWall[88][9] = true;
MazeWall[88][10] = true;
MazeWall[88][11] = true;
MazeWall[88][12] = true;
MazeWall[88][13] = true;
MazeWall[88][14] = true;
MazeWall[88][15] = true;
MazeWall[88][16] = true;
MazeWall[88][17] = true;
MazeWall[89][3] = true;
MazeWall[89][6] = true;
MazeWall[90][3] = true;
MazeWall[90][6] = true;
MazeWall[91][3] = true;
MazeWall[91][6] = true;
MazeWall[92][3] = true;
MazeWall[92][7] = true;
MazeWall[93][3] = true;
MazeWall[93][7] = true;
MazeWall[94][3] = true;
MazeWall[94][7] = true;
MazeWall[95][3] = true;
MazeWall[95][7] = true;
MazeWall[96][0] = true;
MazeWall[96][1] = true;
MazeWall[96][2] = true;
MazeWall[96][3] = true;
MazeWall[96][4] = true;
MazeWall[96][8] = true;
MazeWall[96][9] = true;
MazeWall[96][10] = true;
MazeWall[96][11] = true;
MazeWall[96][12] = true;
MazeWall[96][13] = true;
MazeWall[96][14] = true;
MazeWall[96][15] = true;
MazeWall[96][16] = true;
MazeWall[96][17] = true;
MazeWall[97][4] = true;
MazeWall[97][8] = true;
MazeWall[98][4] = true;
MazeWall[98][8] = true;
MazeWall[99][4] = true;
MazeWall[99][8] = true;
MazeWall[100][3] = true;
MazeWall[100][7] = true;
MazeWall[101][3] = true;
MazeWall[101][7] = true;
MazeWall[102][3] = true;
MazeWall[102][7] = true;
MazeWall[103][0] = true;
MazeWall[103][1] = true;
MazeWall[103][2] = true;
MazeWall[103][3] = true;
MazeWall[103][7] = true;
MazeWall[103][8] = true;
MazeWall[103][9] = true;
MazeWall[103][10] = true;
MazeWall[103][11] = true;
MazeWall[103][12] = true;
MazeWall[103][13] = true;
MazeWall[103][14] = true;
MazeWall[103][15] = true;
MazeWall[103][16] = true;
MazeWall[103][17] = true;
MazeWall[104][2] = true;
MazeWall[104][6] = true;
MazeWall[105][2] = true;
MazeWall[105][6] = true;
MazeWall[106][2] = true;
MazeWall[106][6] = true;
MazeWall[107][2] = true;
MazeWall[107][6] = true;
MazeWall[108][0] = true;
MazeWall[108][1] = true;
MazeWall[108][5] = true;
MazeWall[108][6] = true;
MazeWall[108][7] = true;
MazeWall[108][8] = true;
MazeWall[108][9] = true;
MazeWall[108][10] = true;
MazeWall[108][11] = true;
MazeWall[108][12] = true;
MazeWall[108][13] = true;
MazeWall[108][14] = true;
MazeWall[108][15] = true;
MazeWall[108][16] = true;
MazeWall[108][17] = true;
MazeWall[109][1] = true;
MazeWall[109][5] = true;
MazeWall[110][1] = true;
MazeWall[110][5] = true;
MazeWall[111][1] = true;
MazeWall[111][5] = true;
MazeWall[112][1] = true;
MazeWall[112][5] = true;
MazeWall[112][10] = true;
MazeWall[113][1] = true;
MazeWall[113][5] = true;
MazeWall[114][1] = true;
MazeWall[114][5] = true;
MazeWall[115][1] = true;
MazeWall[115][5] = true;
MazeWall[116][0] = true;
MazeWall[116][1] = true;
MazeWall[116][2] = true;
MazeWall[116][6] = true;
MazeWall[116][7] = true;
MazeWall[116][8] = true;
MazeWall[116][9] = true;
MazeWall[116][10] = true;
MazeWall[116][11] = true;
MazeWall[116][12] = true;
MazeWall[116][13] = true;
MazeWall[116][14] = true;
MazeWall[116][15] = true;
MazeWall[116][16] = true;
MazeWall[116][17] = true;
MazeWall[117][2] = true;
MazeWall[117][6] = true;
MazeWall[118][2] = true;
MazeWall[118][6] = true;
MazeWall[119][2] = true;
MazeWall[119][6] = true;
MazeWall[119][7] = true;
MazeWall[119][8] = true;
MazeWall[119][9] = true;
MazeWall[120][3] = true;
MazeWall[120][9] = true;
MazeWall[121][3] = true;
MazeWall[121][9] = true;
MazeWall[122][3] = true;
MazeWall[122][9] = true;
MazeWall[123][3] = true;
MazeWall[123][9] = true;
MazeWall[124][0] = true;
MazeWall[124][1] = true;
MazeWall[124][2] = true;
MazeWall[124][3] = true;
MazeWall[124][4] = true;
MazeWall[124][5] = true;
MazeWall[124][10] = true;
MazeWall[124][11] = true;
MazeWall[124][12] = true;
MazeWall[124][13] = true;
MazeWall[124][14] = true;
MazeWall[124][15] = true;
MazeWall[124][16] = true;
MazeWall[124][17] = true;
MazeWall[125][6] = true;
MazeWall[125][10] = true;
MazeWall[126][6] = true;
MazeWall[126][10] = true;
MazeWall[127][6] = true;
MazeWall[127][10] = true;
MazeWall[127][11] = true;
MazeWall[127][12] = true;
MazeWall[127][13] = true;
MazeWall[128][6] = true;
MazeWall[128][13] = true;
MazeWall[129][6] = true;
MazeWall[129][13] = true;
MazeWall[130][0] = true;
MazeWall[130][1] = true;
MazeWall[130][2] = true;
MazeWall[130][3] = true;
MazeWall[130][4] = true;
MazeWall[130][5] = true;
MazeWall[130][6] = true;
MazeWall[130][13] = true;
MazeWall[130][14] = true;
MazeWall[130][15] = true;
MazeWall[130][16] = true;
MazeWall[130][17] = true;
MazeWall[131][6] = true;
MazeWall[131][13] = true;
MazeWall[132][6] = true;
MazeWall[132][7] = true;
MazeWall[132][8] = true;
MazeWall[132][14] = true;
MazeWall[133][8] = true;
MazeWall[133][14] = true;
MazeWall[134][8] = true;
MazeWall[134][14] = true;
MazeWall[135][7] = true;
MazeWall[135][14] = true;
MazeWall[136][7] = true;
MazeWall[136][11] = true;
MazeWall[136][15] = true;
MazeWall[137][0] = true;
MazeWall[137][1] = true;
MazeWall[137][2] = true;
MazeWall[137][3] = true;
MazeWall[137][4] = true;
MazeWall[137][5] = true;
MazeWall[137][6] = true;
MazeWall[137][7] = true;
MazeWall[137][11] = true;
MazeWall[137][15] = true;
MazeWall[137][16] = true;
MazeWall[137][17] = true;
MazeWall[138][7] = true;
MazeWall[138][10] = true;
MazeWall[138][11] = true;
MazeWall[138][12] = true;
MazeWall[138][15] = true;
MazeWall[139][6] = true;
MazeWall[139][10] = true;
MazeWall[139][11] = true;
MazeWall[139][12] = true;
MazeWall[139][16] = true;
MazeWall[140][6] = true;
MazeWall[140][10] = true;
MazeWall[140][11] = true;
MazeWall[140][12] = true;
MazeWall[140][16] = true;
MazeWall[141][6] = true;
MazeWall[141][9] = true;
MazeWall[141][12] = true;
MazeWall[141][16] = true;
MazeWall[142][0] = true;
MazeWall[142][1] = true;
MazeWall[142][2] = true;
MazeWall[142][3] = true;
MazeWall[142][4] = true;
MazeWall[142][5] = true;
MazeWall[142][6] = true;
MazeWall[142][9] = true;
MazeWall[142][12] = true;
MazeWall[142][16] = true;
MazeWall[143][6] = true;
MazeWall[143][9] = true;
MazeWall[143][12] = true;
MazeWall[143][16] = true;
MazeWall[144][5] = true;
MazeWall[144][8] = true;
MazeWall[144][12] = true;
MazeWall[144][15] = true;
MazeWall[145][5] = true;
MazeWall[145][8] = true;
MazeWall[145][9] = true;
MazeWall[145][10] = true;
MazeWall[145][11] = true;
MazeWall[145][12] = true;
MazeWall[145][15] = true;
MazeWall[146][5] = true;
MazeWall[146][8] = true;
MazeWall[146][12] = true;
MazeWall[146][15] = true;
MazeWall[147][5] = true;
MazeWall[147][8] = true;
MazeWall[147][12] = true;
MazeWall[147][15] = true;
MazeWall[148][4] = true;
MazeWall[148][7] = true;
MazeWall[148][12] = true;
MazeWall[148][16] = true;
MazeWall[149][0] = true;
MazeWall[149][1] = true;
MazeWall[149][2] = true;
MazeWall[149][3] = true;
MazeWall[149][4] = true;
MazeWall[149][7] = true;
MazeWall[149][8] = true;
MazeWall[149][9] = true;
MazeWall[149][10] = true;
MazeWall[149][11] = true;
MazeWall[149][12] = true;
MazeWall[149][16] = true;
MazeWall[150][4] = true;
MazeWall[150][7] = true;
MazeWall[150][12] = true;
MazeWall[150][16] = true;
MazeWall[151][4] = true;
MazeWall[151][7] = true;
MazeWall[151][12] = true;
MazeWall[151][16] = true;
MazeWall[152][3] = true;
MazeWall[152][6] = true;
MazeWall[152][13] = true;
MazeWall[152][17] = true;
MazeWall[153][3] = true;
MazeWall[153][6] = true;
MazeWall[153][13] = true;
MazeWall[153][17] = true;
MazeWall[154][3] = true;
MazeWall[154][6] = true;
MazeWall[154][7] = true;
MazeWall[154][8] = true;
MazeWall[154][9] = true;
MazeWall[154][10] = true;
MazeWall[154][11] = true;
MazeWall[154][12] = true;
MazeWall[154][13] = true;
MazeWall[154][17] = true;
MazeWall[155][0] = true;
MazeWall[155][1] = true;
MazeWall[155][2] = true;
MazeWall[155][3] = true;
MazeWall[155][6] = true;
MazeWall[155][13] = true;
MazeWall[155][17] = true;
MazeWall[156][2] = true;
MazeWall[156][5] = true;
MazeWall[156][12] = true;
MazeWall[156][16] = true;
MazeWall[157][2] = true;
MazeWall[157][5] = true;
MazeWall[157][12] = true;
MazeWall[157][16] = true;
MazeWall[158][2] = true;
MazeWall[158][5] = true;
MazeWall[158][12] = true;
MazeWall[158][16] = true;
MazeWall[159][2] = true;
MazeWall[159][5] = true;
MazeWall[159][12] = true;
MazeWall[159][16] = true;
MazeWall[160][0] = true;
MazeWall[160][1] = true;
MazeWall[160][4] = true;
MazeWall[160][5] = true;
MazeWall[160][6] = true;
MazeWall[160][7] = true;
MazeWall[160][8] = true;
MazeWall[160][9] = true;
MazeWall[160][10] = true;
MazeWall[160][11] = true;
MazeWall[160][15] = true;
MazeWall[161][1] = true;
MazeWall[161][4] = true;
MazeWall[161][11] = true;
MazeWall[161][15] = true;
MazeWall[162][1] = true;
MazeWall[162][4] = true;
MazeWall[162][11] = true;
MazeWall[162][15] = true;
MazeWall[163][1] = true;
MazeWall[163][4] = true;
MazeWall[163][11] = true;
MazeWall[163][15] = true;
MazeWall[163][16] = true;
MazeWall[163][17] = true;
MazeWall[164][0] = true;
MazeWall[164][3] = true;
MazeWall[164][10] = true;
MazeWall[164][14] = true;
MazeWall[165][0] = true;
MazeWall[165][3] = true;
MazeWall[165][4] = true;
MazeWall[165][5] = true;
MazeWall[165][6] = true;
MazeWall[165][7] = true;
MazeWall[165][8] = true;
MazeWall[165][9] = true;
MazeWall[165][10] = true;
MazeWall[165][14] = true;
MazeWall[166][0] = true;
MazeWall[166][3] = true;
MazeWall[166][10] = true;
MazeWall[166][14] = true;
MazeWall[167][0] = true;
MazeWall[167][3] = true;
MazeWall[167][10] = true;
MazeWall[167][14] = true;
MazeWall[168][0] = true;
MazeWall[168][3] = true;
MazeWall[168][4] = true;
MazeWall[168][5] = true;
MazeWall[168][6] = true;
MazeWall[168][7] = true;
MazeWall[168][8] = true;
MazeWall[168][9] = true;
MazeWall[168][10] = true;
MazeWall[168][14] = true;
MazeWall[168][15] = true;
MazeWall[168][16] = true;
MazeWall[168][17] = true;
MazeWall[169][0] = true;
MazeWall[169][3] = true;
MazeWall[169][10] = true;
MazeWall[169][14] = true;
MazeWall[170][0] = true;
MazeWall[170][3] = true;
MazeWall[170][10] = true;
MazeWall[170][14] = true;
MazeWall[171][0] = true;
MazeWall[171][3] = true;
MazeWall[171][10] = true;
MazeWall[171][14] = true;
MazeWall[172][1] = true;
MazeWall[172][4] = true;
MazeWall[172][9] = true;
MazeWall[172][13] = true;
MazeWall[173][1] = true;
MazeWall[173][4] = true;
MazeWall[173][9] = true;
MazeWall[173][13] = true;
MazeWall[174][1] = true;
MazeWall[174][4] = true;
MazeWall[174][5] = true;
MazeWall[174][6] = true;
MazeWall[174][7] = true;
MazeWall[174][8] = true;
MazeWall[174][9] = true;
MazeWall[174][13] = true;
MazeWall[175][1] = true;
MazeWall[175][4] = true;
MazeWall[175][9] = true;
MazeWall[175][13] = true;
MazeWall[175][14] = true;
MazeWall[175][15] = true;
MazeWall[175][16] = true;
MazeWall[175][17] = true;
MazeWall[176][0] = true;
MazeWall[176][1] = true;
MazeWall[176][2] = true;
MazeWall[176][5] = true;
MazeWall[176][8] = true;
MazeWall[176][12] = true;
MazeWall[177][2] = true;
MazeWall[177][5] = true;
MazeWall[177][8] = true;
MazeWall[177][12] = true;
MazeWall[178][2] = true;
MazeWall[178][5] = true;
MazeWall[178][8] = true;
MazeWall[178][12] = true;
MazeWall[179][2] = true;
MazeWall[179][5] = true;
MazeWall[179][8] = true;
MazeWall[179][12] = true;
MazeWall[180][0] = true;
MazeWall[180][1] = true;
MazeWall[180][2] = true;
MazeWall[180][3] = true;
MazeWall[180][6] = true;
MazeWall[180][7] = true;
MazeWall[180][11] = true;
MazeWall[180][12] = true;
MazeWall[180][13] = true;
MazeWall[180][14] = true;
MazeWall[180][15] = true;
MazeWall[180][16] = true;
MazeWall[180][17] = true;
MazeWall[181][3] = true;
MazeWall[181][6] = true;
MazeWall[181][7] = true;
MazeWall[181][11] = true;
MazeWall[182][3] = true;
MazeWall[182][6] = true;
MazeWall[182][7] = true;
MazeWall[182][11] = true;
MazeWall[183][3] = true;
MazeWall[183][6] = true;
MazeWall[183][7] = true;
MazeWall[183][11] = true;
MazeWall[184][2] = true;
MazeWall[184][5] = true;
MazeWall[184][6] = true;
MazeWall[184][10] = true;
MazeWall[185][0] = true;
MazeWall[185][1] = true;
MazeWall[185][2] = true;
MazeWall[185][5] = true;
MazeWall[185][6] = true;
MazeWall[185][10] = true;
MazeWall[186][2] = true;
MazeWall[186][5] = true;
MazeWall[186][6] = true;
MazeWall[186][10] = true;
MazeWall[186][11] = true;
MazeWall[186][12] = true;
MazeWall[186][13] = true;
MazeWall[186][14] = true;
MazeWall[186][15] = true;
MazeWall[186][16] = true;
MazeWall[186][17] = true;
MazeWall[187][2] = true;
MazeWall[187][5] = true;
MazeWall[187][6] = true;
MazeWall[187][10] = true;
MazeWall[188][1] = true;
MazeWall[188][4] = true;
MazeWall[188][5] = true;
MazeWall[188][9] = true;
MazeWall[189][1] = true;
MazeWall[189][4] = true;
MazeWall[189][5] = true;
MazeWall[189][9] = true;
MazeWall[190][1] = true;
MazeWall[190][4] = true;
MazeWall[190][5] = true;
MazeWall[190][9] = true;
MazeWall[191][1] = true;
MazeWall[191][4] = true;
MazeWall[191][5] = true;
MazeWall[191][9] = true;
MazeWall[191][10] = true;
MazeWall[191][11] = true;
MazeWall[191][12] = true;
MazeWall[191][13] = true;
MazeWall[191][14] = true;
MazeWall[191][15] = true;
MazeWall[191][16] = true;
MazeWall[191][17] = true;
MazeWall[192][0] = true;
MazeWall[192][3] = true;
MazeWall[192][4] = true;
MazeWall[192][8] = true;
MazeWall[193][0] = true;
MazeWall[193][3] = true;
MazeWall[193][4] = true;
MazeWall[193][8] = true;
MazeWall[194][0] = true;
MazeWall[194][3] = true;
MazeWall[194][4] = true;
MazeWall[194][8] = true;
MazeWall[195][0] = true;
MazeWall[195][3] = true;
MazeWall[195][4] = true;
MazeWall[195][8] = true;
MazeWall[196][0] = true;
MazeWall[196][3] = true;
MazeWall[196][4] = true;
MazeWall[196][8] = true;
MazeWall[196][9] = true;
MazeWall[196][10] = true;
MazeWall[196][11] = true;
MazeWall[196][12] = true;
MazeWall[196][13] = true;
MazeWall[196][14] = true;
MazeWall[196][15] = true;
MazeWall[196][16] = true;
MazeWall[196][17] = true;
MazeWall[197][0] = true;
MazeWall[197][3] = true;
MazeWall[197][4] = true;
MazeWall[197][8] = true;
MazeWall[198][0] = true;
MazeWall[198][3] = true;
MazeWall[198][4] = true;
MazeWall[198][8] = true;
MazeWall[199][0] = true;
MazeWall[199][3] = true;
MazeWall[199][4] = true;
MazeWall[199][8] = true;
MazeWall[200][1] = true;
MazeWall[200][4] = true;
MazeWall[200][5] = true;
MazeWall[200][9] = true;
MazeWall[201][1] = true;
MazeWall[201][4] = true;
MazeWall[201][5] = true;
MazeWall[201][9] = true;
MazeWall[202][1] = true;
MazeWall[202][4] = true;
MazeWall[202][5] = true;
MazeWall[202][9] = true;
MazeWall[203][1] = true;
MazeWall[203][4] = true;
MazeWall[203][5] = true;
MazeWall[203][9] = true;
MazeWall[203][10] = true;
MazeWall[203][11] = true;
MazeWall[203][12] = true;
MazeWall[203][13] = true;
MazeWall[203][14] = true;
MazeWall[203][15] = true;
MazeWall[203][16] = true;
MazeWall[203][17] = true;
MazeWall[204][2] = true;
MazeWall[204][5] = true;
MazeWall[204][6] = true;
MazeWall[204][10] = true;
MazeWall[205][2] = true;
MazeWall[205][5] = true;
MazeWall[205][6] = true;
MazeWall[205][10] = true;
MazeWall[206][2] = true;
MazeWall[206][5] = true;
MazeWall[206][6] = true;
MazeWall[206][10] = true;
MazeWall[207][2] = true;
MazeWall[207][5] = true;
MazeWall[207][6] = true;
MazeWall[207][10] = true;
MazeWall[208][0] = true;
MazeWall[208][1] = true;
MazeWall[208][2] = true;
MazeWall[208][3] = true;
MazeWall[208][6] = true;
MazeWall[208][7] = true;
MazeWall[208][11] = true;
MazeWall[209][3] = true;
MazeWall[209][6] = true;
MazeWall[209][7] = true;
MazeWall[209][11] = true;
MazeWall[210][3] = true;
MazeWall[210][6] = true;
MazeWall[210][7] = true;
MazeWall[210][11] = true;
MazeWall[210][12] = true;
MazeWall[210][13] = true;
MazeWall[210][14] = true;
MazeWall[210][15] = true;
MazeWall[210][16] = true;
MazeWall[210][17] = true;
MazeWall[211][3] = true;
MazeWall[211][6] = true;
MazeWall[211][7] = true;
MazeWall[211][11] = true;
MazeWall[212][4] = true;
MazeWall[212][7] = true;
MazeWall[212][8] = true;
MazeWall[212][12] = true;
MazeWall[213][4] = true;
MazeWall[213][7] = true;
MazeWall[213][8] = true;
MazeWall[213][12] = true;
MazeWall[214][4] = true;
MazeWall[214][7] = true;
MazeWall[214][8] = true;
MazeWall[214][12] = true;
MazeWall[215][0] = true;
MazeWall[215][1] = true;
MazeWall[215][2] = true;
MazeWall[215][3] = true;
MazeWall[215][4] = true;
MazeWall[215][7] = true;
MazeWall[215][8] = true;
MazeWall[215][12] = true;
MazeWall[216][5] = true;
MazeWall[216][8] = true;
MazeWall[216][9] = true;
MazeWall[216][13] = true;
MazeWall[216][14] = true;
MazeWall[216][15] = true;
MazeWall[216][16] = true;
MazeWall[216][17] = true;
MazeWall[217][5] = true;
MazeWall[217][8] = true;
MazeWall[217][9] = true;
MazeWall[217][13] = true;
MazeWall[218][5] = true;
MazeWall[218][8] = true;
MazeWall[218][9] = true;
MazeWall[218][13] = true;
MazeWall[219][5] = true;
MazeWall[219][8] = true;
MazeWall[219][9] = true;
MazeWall[219][13] = true;
MazeWall[220][0] = true;
MazeWall[220][1] = true;
MazeWall[220][2] = true;
MazeWall[220][3] = true;
MazeWall[220][4] = true;
MazeWall[220][5] = true;
MazeWall[220][6] = true;
MazeWall[220][9] = true;
MazeWall[220][10] = true;
MazeWall[220][14] = true;
MazeWall[220][15] = true;
MazeWall[220][16] = true;
MazeWall[220][17] = true;
MazeWall[221][6] = true;
MazeWall[221][9] = true;
MazeWall[221][10] = true;
MazeWall[221][14] = true;
MazeWall[222][6] = true;
MazeWall[222][9] = true;
MazeWall[222][10] = true;
MazeWall[222][14] = true;
MazeWall[223][6] = true;
MazeWall[223][9] = true;
MazeWall[223][10] = true;
MazeWall[223][14] = true;
MazeWall[224][0] = true;
MazeWall[224][1] = true;
MazeWall[224][2] = true;
MazeWall[224][3] = true;
MazeWall[224][4] = true;
MazeWall[224][5] = true;
MazeWall[224][6] = true;
MazeWall[224][9] = true;
MazeWall[224][10] = true;
MazeWall[224][14] = true;
MazeWall[224][15] = true;
MazeWall[224][16] = true;
MazeWall[224][17] = true;
MazeWall[225][6] = true;
MazeWall[225][9] = true;
MazeWall[225][10] = true;
MazeWall[225][14] = true;
MazeWall[226][2] = true;
MazeWall[226][6] = true;
MazeWall[226][9] = true;
MazeWall[226][10] = true;
MazeWall[226][14] = true;
MazeWall[226][16] = true;
MazeWall[227][6] = true;
MazeWall[227][9] = true;
MazeWall[227][10] = true;
MazeWall[227][14] = true;
MazeWall[227][16] = true;
MazeWall[228][1] = true;
MazeWall[228][4] = true;
MazeWall[228][7] = true;
MazeWall[228][13] = true;
MazeWall[228][15] = true;
MazeWall[229][4] = true;
MazeWall[229][7] = true;
MazeWall[229][13] = true;
MazeWall[229][15] = true;
MazeWall[229][17] = true;
MazeWall[230][7] = true;
MazeWall[230][13] = true;
MazeWall[231][0] = true;
MazeWall[231][1] = true;
MazeWall[231][2] = true;
MazeWall[231][3] = true;
MazeWall[231][4] = true;
MazeWall[231][5] = true;
MazeWall[231][6] = true;
MazeWall[231][7] = true;
MazeWall[231][13] = true;
MazeWall[231][14] = true;
MazeWall[231][15] = true;
MazeWall[231][16] = true;
MazeWall[231][17] = true;
MazeWall[232][8] = true;
MazeWall[232][12] = true;
MazeWall[232][16] = true;
MazeWall[233][1] = true;
MazeWall[233][5] = true;
MazeWall[233][8] = true;
MazeWall[233][12] = true;
MazeWall[234][4] = true;
MazeWall[234][8] = true;
MazeWall[234][12] = true;
MazeWall[235][1] = true;
MazeWall[235][2] = true;
MazeWall[235][8] = true;
MazeWall[235][12] = true;
MazeWall[235][16] = true;
MazeWall[236][2] = true;
MazeWall[236][5] = true;
MazeWall[236][7] = true;
MazeWall[236][11] = true;
MazeWall[236][15] = true;
MazeWall[237][1] = true;
MazeWall[237][7] = true;
MazeWall[237][11] = true;
MazeWall[238][4] = true;
MazeWall[238][6] = true;
MazeWall[238][7] = true;
MazeWall[238][11] = true;
MazeWall[238][14] = true;
MazeWall[239][7] = true;
MazeWall[239][11] = true;
MazeWall[239][17] = true;
MazeWall[240][3] = true;
MazeWall[240][6] = true;
MazeWall[240][10] = true;
MazeWall[240][15] = true;
MazeWall[241][0] = true;
MazeWall[241][6] = true;
MazeWall[241][10] = true;
MazeWall[241][12] = true;
MazeWall[242][2] = true;
MazeWall[242][3] = true;
MazeWall[242][4] = true;
MazeWall[242][6] = true;
MazeWall[242][10] = true;
MazeWall[242][14] = true;
MazeWall[243][1] = true;
MazeWall[243][6] = true;
MazeWall[243][10] = true;
MazeWall[243][13] = true;
MazeWall[244][5] = true;
MazeWall[244][9] = true;
MazeWall[244][16] = true;
MazeWall[245][1] = true;
MazeWall[245][5] = true;
MazeWall[245][9] = true;
MazeWall[245][16] = true;
MazeWall[246][3] = true;
MazeWall[246][5] = true;
MazeWall[246][9] = true;
MazeWall[246][12] = true;
MazeWall[246][14] = true;
MazeWall[246][15] = true;
MazeWall[247][1] = true;
MazeWall[247][5] = true;
MazeWall[247][9] = true;
MazeWall[247][11] = true;
MazeWall[248][4] = true;
MazeWall[248][8] = true;
MazeWall[248][11] = true;
MazeWall[248][13] = true;
MazeWall[248][15] = true;
MazeWall[249][4] = true;
MazeWall[249][8] = true;
MazeWall[249][17] = true;
MazeWall[250][1] = true;
MazeWall[250][4] = true;
MazeWall[250][8] = true;
MazeWall[250][9] = true;
MazeWall[250][12] = true;
MazeWall[251][4] = true;
MazeWall[251][8] = true;
MazeWall[251][14] = true;
MazeWall[251][15] = true;
MazeWall[252][0] = true;
MazeWall[252][1] = true;
MazeWall[252][2] = true;
MazeWall[252][3] = true;
MazeWall[252][4] = true;
MazeWall[252][8] = true;
MazeWall[252][9] = true;
MazeWall[252][10] = true;
MazeWall[252][11] = true;
MazeWall[252][12] = true;
MazeWall[252][13] = true;
MazeWall[252][14] = true;
MazeWall[252][15] = true;
MazeWall[252][16] = true;
MazeWall[252][17] = true;
MazeWall[253][1] = true;
MazeWall[253][4] = true;
MazeWall[253][8] = true;
MazeWall[254][1] = true;
MazeWall[254][3] = true;
MazeWall[254][4] = true;
MazeWall[254][8] = true;
MazeWall[254][11] = true;
MazeWall[254][13] = true;
MazeWall[0xFF][1] = true;
MazeWall[0xFF][2] = true;
MazeWall[0xFF][4] = true;
MazeWall[0xFF][8] = true;
MazeWall[0xFF][10] = true;
MazeWall[0x0100][3] = true;
MazeWall[0x0100][9] = true;
MazeWall[0x0100][14] = true;
MazeWall[0x0100][16] = true;
MazeWall[0x0101][0] = true;
MazeWall[0x0101][3] = true;
MazeWall[0x0101][9] = true;
MazeWall[0x0101][11] = true;
MazeWall[0x0101][12] = true;
MazeWall[0x0101][13] = true;
MazeWall[258][1] = true;
MazeWall[258][3] = true;
MazeWall[258][9] = true;
MazeWall[258][11] = true;
MazeWall[259][1] = true;
MazeWall[259][3] = true;
MazeWall[259][9] = true;
MazeWall[260][0] = true;
MazeWall[260][2] = true;
MazeWall[260][10] = true;
MazeWall[260][12] = true;
MazeWall[260][14] = true;
MazeWall[261][0] = true;
MazeWall[261][2] = true;
MazeWall[261][6] = true;
MazeWall[261][10] = true;
MazeWall[261][16] = true;
MazeWall[262][2] = true;
MazeWall[262][5] = true;
MazeWall[262][6] = true;
MazeWall[262][7] = true;
MazeWall[262][10] = true;
MazeWall[262][14] = true;
MazeWall[262][15] = true;
MazeWall[263][0] = true;
MazeWall[263][2] = true;
MazeWall[263][5] = true;
MazeWall[263][6] = true;
MazeWall[263][7] = true;
MazeWall[263][10] = true;
MazeWall[264][1] = true;
MazeWall[264][5] = true;
MazeWall[264][7] = true;
MazeWall[264][11] = true;
MazeWall[264][13] = true;
MazeWall[265][1] = true;
MazeWall[265][5] = true;
MazeWall[265][7] = true;
MazeWall[265][11] = true;
MazeWall[265][14] = true;
MazeWall[265][16] = true;
MazeWall[266][0] = true;
MazeWall[266][1] = true;
MazeWall[266][5] = true;
MazeWall[266][6] = true;
MazeWall[266][7] = true;
MazeWall[266][11] = true;
MazeWall[266][13] = true;
MazeWall[267][1] = true;
MazeWall[267][5] = true;
MazeWall[267][7] = true;
MazeWall[267][11] = true;
MazeWall[267][14] = true;
MazeWall[267][16] = true;
MazeWall[268][0] = true;
MazeWall[268][5] = true;
MazeWall[268][7] = true;
MazeWall[268][12] = true;
MazeWall[268][16] = true;
MazeWall[269][0] = true;
MazeWall[269][5] = true;
MazeWall[269][6] = true;
MazeWall[269][7] = true;
MazeWall[269][12] = true;
MazeWall[270][0] = true;
MazeWall[270][5] = true;
MazeWall[270][7] = true;
MazeWall[270][12] = true;
MazeWall[270][14] = true;
MazeWall[270][15] = true;
MazeWall[271][0] = true;
MazeWall[271][5] = true;
MazeWall[271][7] = true;
MazeWall[271][12] = true;
MazeWall[271][16] = true;
MazeWall[272][0] = true;
MazeWall[272][3] = true;
MazeWall[272][4] = true;
MazeWall[272][5] = true;
MazeWall[272][6] = true;
MazeWall[272][7] = true;
MazeWall[272][13] = true;
MazeWall[272][15] = true;
MazeWall[273][0] = true;
MazeWall[273][3] = true;
MazeWall[273][4] = true;
MazeWall[273][5] = true;
MazeWall[273][7] = true;
MazeWall[273][13] = true;
MazeWall[273][16] = true;
MazeWall[274][0] = true;
MazeWall[274][3] = true;
MazeWall[274][4] = true;
MazeWall[274][5] = true;
MazeWall[274][7] = true;
MazeWall[274][13] = true;
MazeWall[275][0] = true;
MazeWall[275][3] = true;
MazeWall[275][4] = true;
MazeWall[275][5] = true;
MazeWall[275][7] = true;
MazeWall[275][13] = true;
MazeWall[275][15] = true;
MazeWall[275][17] = true;
MazeWall[276][0] = true;
MazeWall[276][4] = true;
MazeWall[276][5] = true;
MazeWall[276][6] = true;
MazeWall[276][7] = true;
MazeWall[276][10] = true;
MazeWall[276][11] = true;
MazeWall[276][12] = true;
MazeWall[276][13] = true;
MazeWall[276][16] = true;
MazeWall[276][17] = true;
MazeWall[277][0] = true;
MazeWall[277][4] = true;
MazeWall[277][5] = true;
MazeWall[277][7] = true;
MazeWall[277][10] = true;
MazeWall[277][13] = true;
MazeWall[277][14] = true;
MazeWall[277][15] = true;
MazeWall[278][0] = true;
MazeWall[278][4] = true;
MazeWall[278][5] = true;
MazeWall[278][7] = true;
MazeWall[278][10] = true;
MazeWall[278][11] = true;
MazeWall[278][12] = true;
MazeWall[278][13] = true;
MazeWall[278][14] = true;
MazeWall[278][15] = true;
MazeWall[278][17] = true;
MazeWall[279][0] = true;
MazeWall[279][4] = true;
MazeWall[279][5] = true;
MazeWall[279][7] = true;
MazeWall[279][10] = true;
MazeWall[279][13] = true;
MazeWall[279][16] = true;
MazeWall[280][0] = true;
MazeWall[280][4] = true;
MazeWall[280][5] = true;
MazeWall[280][6] = true;
MazeWall[280][7] = true;
MazeWall[280][10] = true;
MazeWall[280][11] = true;
MazeWall[280][12] = true;
MazeWall[280][13] = true;
MazeWall[280][14] = true;
MazeWall[280][15] = true;
MazeWall[280][16] = true;
MazeWall[280][17] = true;
MazeWall[281][0] = true;
MazeWall[281][4] = true;
MazeWall[281][7] = true;
MazeWall[281][10] = true;
MazeWall[282][0] = true;
MazeWall[282][4] = true;
MazeWall[282][7] = true;
MazeWall[282][10] = true;
MazeWall[283][0] = true;
MazeWall[283][4] = true;
MazeWall[283][7] = true;
MazeWall[283][10] = true;
MazeWall[283][13] = true;
MazeWall[284][1] = true;
MazeWall[284][5] = true;
MazeWall[284][8] = true;
MazeWall[284][11] = true;
MazeWall[284][15] = true;
MazeWall[285][1] = true;
MazeWall[285][5] = true;
MazeWall[285][6] = true;
MazeWall[285][7] = true;
MazeWall[285][8] = true;
MazeWall[285][11] = true;
MazeWall[285][12] = true;
MazeWall[286][1] = true;
MazeWall[286][5] = true;
MazeWall[286][8] = true;
MazeWall[286][11] = true;
MazeWall[286][14] = true;
MazeWall[286][16] = true;
MazeWall[287][0] = true;
MazeWall[287][1] = true;
MazeWall[287][5] = true;
MazeWall[287][8] = true;
MazeWall[287][11] = true;
MazeWall[288][1] = true;
MazeWall[288][2] = true;
MazeWall[288][6] = true;
MazeWall[288][9] = true;
MazeWall[288][12] = true;
MazeWall[288][15] = true;
MazeWall[289][1] = true;
MazeWall[289][2] = true;
MazeWall[289][6] = true;
MazeWall[289][9] = true;
MazeWall[289][12] = true;
MazeWall[289][17] = true;
MazeWall[290][2] = true;
MazeWall[290][6] = true;
MazeWall[290][7] = true;
MazeWall[290][8] = true;
MazeWall[290][9] = true;
MazeWall[290][12] = true;
MazeWall[291][2] = true;
MazeWall[291][6] = true;
MazeWall[291][9] = true;
MazeWall[291][12] = true;
MazeWall[292][0] = true;
MazeWall[292][1] = true;
MazeWall[292][3] = true;
MazeWall[292][7] = true;
MazeWall[292][10] = true;
MazeWall[292][13] = true;
MazeWall[292][15] = true;
MazeWall[293][3] = true;
MazeWall[293][7] = true;
MazeWall[293][10] = true;
MazeWall[293][13] = true;
MazeWall[294][3] = true;
MazeWall[294][7] = true;
MazeWall[294][8] = true;
MazeWall[294][9] = true;
MazeWall[294][10] = true;
MazeWall[294][13] = true;
MazeWall[294][16] = true;
MazeWall[295][0] = true;
MazeWall[295][1] = true;
MazeWall[295][3] = true;
MazeWall[295][7] = true;
MazeWall[295][10] = true;
MazeWall[295][13] = true;
MazeWall[296][3] = true;
MazeWall[296][7] = true;
MazeWall[296][9] = true;
MazeWall[296][12] = true;
MazeWall[296][16] = true;
MazeWall[297][0] = true;
MazeWall[297][1] = true;
MazeWall[297][2] = true;
MazeWall[297][3] = true;
MazeWall[297][7] = true;
MazeWall[297][9] = true;
MazeWall[297][12] = true;
MazeWall[297][14] = true;
MazeWall[297][15] = true;
MazeWall[298][1] = true;
MazeWall[298][3] = true;
MazeWall[298][7] = true;
MazeWall[298][9] = true;
MazeWall[298][12] = true;
MazeWall[299][3] = true;
MazeWall[299][7] = true;
MazeWall[299][9] = true;
MazeWall[299][12] = true;
MazeWall[300][1] = true;
MazeWall[300][2] = true;
MazeWall[300][6] = true;
MazeWall[300][8] = true;
MazeWall[300][11] = true;
MazeWall[300][15] = true;
MazeWall[300][16] = true;
MazeWall[301][0] = true;
MazeWall[301][1] = true;
MazeWall[301][2] = true;
MazeWall[301][6] = true;
MazeWall[301][8] = true;
MazeWall[301][11] = true;
MazeWall[301][13] = true;
MazeWall[302][2] = true;
MazeWall[302][6] = true;
MazeWall[302][8] = true;
MazeWall[302][11] = true;
MazeWall[302][14] = true;
MazeWall[302][15] = true;
MazeWall[303][0] = true;
MazeWall[303][2] = true;
MazeWall[303][6] = true;
MazeWall[303][8] = true;
MazeWall[303][11] = true;
MazeWall[303][16] = true;
MazeWall[304][1] = true;
MazeWall[304][5] = true;
MazeWall[304][9] = true;
MazeWall[304][12] = true;
MazeWall[304][15] = true;
MazeWall[305][1] = true;
MazeWall[305][5] = true;
MazeWall[305][6] = true;
MazeWall[305][7] = true;
MazeWall[305][8] = true;
MazeWall[305][9] = true;
MazeWall[305][12] = true;
MazeWall[305][14] = true;
MazeWall[306][1] = true;
MazeWall[306][5] = true;
MazeWall[306][9] = true;
MazeWall[306][12] = true;
MazeWall[306][15] = true;
MazeWall[307][1] = true;
MazeWall[307][5] = true;
MazeWall[307][9] = true;
MazeWall[307][12] = true;
MazeWall[308][1] = true;
MazeWall[308][5] = true;
MazeWall[308][6] = true;
MazeWall[308][7] = true;
MazeWall[308][8] = true;
MazeWall[308][9] = true;
MazeWall[308][12] = true;
MazeWall[308][14] = true;
MazeWall[308][15] = true;
MazeWall[309][1] = true;
MazeWall[309][5] = true;
MazeWall[309][9] = true;
MazeWall[309][12] = true;
MazeWall[309][14] = true;
MazeWall[309][15] = true;
MazeWall[310][0] = true;
MazeWall[310][1] = true;
MazeWall[310][5] = true;
MazeWall[310][9] = true;
MazeWall[310][12] = true;
MazeWall[310][13] = true;
MazeWall[310][16] = true;
MazeWall[311][1] = true;
MazeWall[311][5] = true;
MazeWall[311][9] = true;
MazeWall[311][12] = true;
MazeWall[311][14] = true;
MazeWall[311][17] = true;
MazeWall[312][1] = true;
MazeWall[312][5] = true;
MazeWall[312][9] = true;
MazeWall[312][12] = true;
MazeWall[312][15] = true;
MazeWall[313][1] = true;
MazeWall[313][5] = true;
MazeWall[313][6] = true;
MazeWall[313][7] = true;
MazeWall[313][8] = true;
MazeWall[313][9] = true;
MazeWall[313][12] = true;
MazeWall[313][17] = true;
MazeWall[314][1] = true;
MazeWall[314][5] = true;
MazeWall[314][9] = true;
MazeWall[314][12] = true;
MazeWall[314][14] = true;
MazeWall[314][16] = true;
MazeWall[315][1] = true;
MazeWall[315][5] = true;
MazeWall[315][9] = true;
MazeWall[315][12] = true;
MazeWall[315][15] = true;
MazeWall[315][16] = true;
MazeWall[316][1] = true;
MazeWall[316][5] = true;
MazeWall[316][9] = true;
MazeWall[316][12] = true;
MazeWall[317][1] = true;
MazeWall[317][5] = true;
MazeWall[317][9] = true;
MazeWall[317][12] = true;
MazeWall[317][14] = true;
MazeWall[317][15] = true;
MazeWall[318][1] = true;
MazeWall[318][5] = true;
MazeWall[318][6] = true;
MazeWall[318][7] = true;
MazeWall[318][8] = true;
MazeWall[318][9] = true;
MazeWall[318][12] = true;
MazeWall[318][17] = true;
MazeWall[319][0] = true;
MazeWall[319][1] = true;
MazeWall[319][5] = true;
MazeWall[319][9] = true;
MazeWall[319][12] = true;
MazeWall[319][14] = true;
MazeWall[319][16] = true;
MazeWall[320][1] = true;
MazeWall[320][5] = true;
MazeWall[320][9] = true;
MazeWall[320][12] = true;
MazeWall[320][15] = true;
MazeWall[320][16] = true;
MazeWall[320][17] = true;
MazeWall[321][0] = true;
MazeWall[321][1] = true;
MazeWall[321][5] = true;
MazeWall[321][9] = true;
MazeWall[321][12] = true;
MazeWall[322][1] = true;
MazeWall[322][5] = true;
MazeWall[322][9] = true;
MazeWall[322][12] = true;
MazeWall[322][13] = true;
MazeWall[322][17] = true;
MazeWall[323][0] = true;
MazeWall[323][1] = true;
MazeWall[323][5] = true;
MazeWall[323][6] = true;
MazeWall[323][7] = true;
MazeWall[323][8] = true;
MazeWall[323][9] = true;
MazeWall[323][12] = true;
MazeWall[323][14] = true;
MazeWall[323][15] = true;
MazeWall[324][1] = true;
MazeWall[324][5] = true;
MazeWall[324][9] = true;
MazeWall[324][12] = true;
MazeWall[325][1] = true;
MazeWall[325][5] = true;
MazeWall[325][9] = true;
MazeWall[325][12] = true;
MazeWall[325][15] = true;
MazeWall[325][16] = true;
MazeWall[326][0] = true;
MazeWall[326][1] = true;
MazeWall[326][5] = true;
MazeWall[326][9] = true;
MazeWall[326][12] = true;
MazeWall[326][13] = true;
MazeWall[327][1] = true;
MazeWall[327][5] = true;
MazeWall[327][9] = true;
MazeWall[327][12] = true;
MazeWall[327][15] = true;
MazeWall[328][1] = true;
MazeWall[328][5] = true;
MazeWall[328][9] = true;
MazeWall[328][12] = true;
MazeWall[328][16] = true;
MazeWall[329][0] = true;
MazeWall[329][1] = true;
MazeWall[329][5] = true;
MazeWall[329][6] = true;
MazeWall[329][7] = true;
MazeWall[329][8] = true;
MazeWall[329][9] = true;
MazeWall[329][12] = true;
MazeWall[329][14] = true;
MazeWall[330][1] = true;
MazeWall[330][5] = true;
MazeWall[330][9] = true;
MazeWall[330][12] = true;
MazeWall[331][1] = true;
MazeWall[331][5] = true;
MazeWall[331][9] = true;
MazeWall[331][12] = true;
MazeWall[331][13] = true;
MazeWall[331][15] = true;
MazeWall[331][16] = true;
MazeWall[332][0] = true;
MazeWall[332][1] = true;
MazeWall[332][5] = true;
MazeWall[332][9] = true;
MazeWall[332][12] = true;
MazeWall[333][1] = true;
MazeWall[333][5] = true;
MazeWall[333][9] = true;
MazeWall[333][12] = true;
MazeWall[333][13] = true;
MazeWall[333][14] = true;
MazeWall[333][15] = true;
MazeWall[333][16] = true;
MazeWall[334][0] = true;
MazeWall[334][1] = true;
MazeWall[334][5] = true;
MazeWall[334][6] = true;
MazeWall[334][7] = true;
MazeWall[334][8] = true;
MazeWall[334][9] = true;
MazeWall[334][12] = true;
MazeWall[335][1] = true;
MazeWall[335][5] = true;
MazeWall[335][9] = true;
MazeWall[335][12] = true;
MazeWall[335][16] = true;
MazeWall[336][1] = true;
MazeWall[336][5] = true;
MazeWall[336][9] = true;
MazeWall[336][12] = true;
MazeWall[337][0] = true;
MazeWall[337][1] = true;
MazeWall[337][5] = true;
MazeWall[337][9] = true;
MazeWall[337][12] = true;
MazeWall[337][14] = true;
MazeWall[337][17] = true;
MazeWall[338][1] = true;
MazeWall[338][5] = true;
MazeWall[338][9] = true;
MazeWall[338][12] = true;
MazeWall[338][15] = true;
MazeWall[339][0] = true;
MazeWall[339][1] = true;
MazeWall[339][5] = true;
MazeWall[339][9] = true;
MazeWall[339][12] = true;
MazeWall[339][16] = true;
MazeWall[340][1] = true;
MazeWall[340][6] = true;
MazeWall[340][8] = true;
MazeWall[340][12] = true;
MazeWall[340][14] = true;
MazeWall[340][15] = true;
MazeWall[341][0] = true;
MazeWall[341][1] = true;
MazeWall[341][7] = true;
MazeWall[341][12] = true;
MazeWall[341][13] = true;
MazeWall[341][17] = true;
MazeWall[342][1] = true;
MazeWall[342][12] = true;
MazeWall[343][0] = true;
MazeWall[343][1] = true;
MazeWall[343][12] = true;
MazeWall[343][14] = true;
MazeWall[343][16] = true;
MazeWall[344][1] = true;
MazeWall[344][12] = true;
MazeWall[344][13] = true;
MazeWall[345][0] = true;
MazeWall[345][1] = true;
MazeWall[345][12] = true;
MazeWall[345][14] = true;
MazeWall[345][16] = true;
MazeWall[346][1] = true;
MazeWall[346][12] = true;
MazeWall[347][0] = true;
MazeWall[347][1] = true;
MazeWall[347][12] = true;
MazeWall[347][13] = true;
MazeWall[347][14] = true;
MazeWall[347][15] = true;
MazeWall[347][16] = true;
MazeWall[347][17] = true;
MazeWall[348][0] = true;
MazeWall[348][17] = true;
MazeWall[349][0] = true;
MazeWall[349][17] = true;
MazeWall[350][0] = true;
MazeWall[350][17] = true;
MazeWall[351][0] = true;
MazeWall[351][14] = true;
MazeWall[351][17] = true;
MazeWall[352][0] = true;
MazeWall[352][9] = true;
MazeWall[352][17] = true;
MazeWall[353][0] = true;
MazeWall[353][17] = true;
MazeWall[354][0] = true;
MazeWall[354][2] = true;
MazeWall[354][17] = true;
MazeWall[355][0] = true;
MazeWall[355][17] = true;
MazeWall[356][0] = true;
MazeWall[356][7] = true;
MazeWall[356][14] = true;
MazeWall[356][17] = true;
MazeWall[357][0] = true;
MazeWall[357][17] = true;
MazeWall[358][0] = true;
MazeWall[358][17] = true;
MazeWall[359][0] = true;
MazeWall[359][17] = true;
MazeWall[360][0] = true;
MazeWall[360][5] = true;
MazeWall[360][13] = true;
MazeWall[360][17] = true;
MazeWall[361][0] = true;
MazeWall[361][17] = true;
MazeWall[362][0] = true;
MazeWall[362][8] = true;
MazeWall[362][17] = true;
MazeWall[363][0] = true;
MazeWall[363][17] = true;
MazeWall[364][0] = true;
MazeWall[364][17] = true;
MazeWall[365][0] = true;
MazeWall[365][2] = true;
MazeWall[365][17] = true;
MazeWall[366][0] = true;
MazeWall[366][12] = true;
MazeWall[366][17] = true;
MazeWall[367][0] = true;
MazeWall[367][17] = true;
MazeWall[368][0] = true;
MazeWall[368][6] = true;
MazeWall[368][14] = true;
MazeWall[368][17] = true;
MazeWall[369][0] = true;
MazeWall[369][3] = true;
MazeWall[369][10] = true;
MazeWall[369][16] = true;
MazeWall[369][17] = true;
MazeWall[370][0] = true;
MazeWall[370][17] = true;
MazeWall[371][0] = true;
MazeWall[371][17] = true;
MazeWall[372][0] = true;
MazeWall[372][17] = true;
MazeWall[373][0] = true;
MazeWall[373][3] = true;
MazeWall[373][17] = true;
MazeWall[374][0] = true;
MazeWall[374][7] = true;
MazeWall[374][9] = true;
MazeWall[374][17] = true;
MazeWall[375][0] = true;
MazeWall[375][17] = true;
MazeWall[376][0] = true;
MazeWall[376][13] = true;
MazeWall[376][17] = true;
MazeWall[377][0] = true;
MazeWall[377][4] = true;
MazeWall[377][17] = true;
MazeWall[378][0] = true;
MazeWall[378][17] = true;
MazeWall[379][0] = true;
MazeWall[379][1] = true;
MazeWall[379][2] = true;
MazeWall[379][3] = true;
MazeWall[379][4] = true;
MazeWall[379][5] = true;
MazeWall[379][6] = true;
MazeWall[379][7] = true;
MazeWall[379][8] = true;
MazeWall[379][9] = true;
MazeWall[379][10] = true;
MazeWall[379][11] = true;
MazeWall[379][12] = true;
MazeWall[379][13] = true;
MazeWall[379][14] = true;
MazeWall[379][15] = true;
MazeWall[379][16] = true;
MazeWall[379][17] = true;
MazeWall[380][0] = true;
MazeWall[380][1] = true;
MazeWall[380][2] = true;
MazeWall[380][3] = true;
MazeWall[380][4] = true;
MazeWall[380][5] = true;
MazeWall[380][6] = true;
MazeWall[380][7] = true;
MazeWall[380][8] = true;
MazeWall[380][9] = true;
MazeWall[380][10] = true;
MazeWall[380][11] = true;
MazeWall[380][12] = true;
MazeWall[380][13] = true;
MazeWall[380][14] = true;
MazeWall[380][15] = true;
MazeWall[380][16] = true;
MazeWall[380][17] = true;
MazeWall[381][0] = true;
MazeWall[381][1] = true;
MazeWall[381][2] = true;
MazeWall[381][3] = true;
MazeWall[381][4] = true;
MazeWall[381][5] = true;
MazeWall[381][6] = true;
MazeWall[381][7] = true;
MazeWall[381][8] = true;
MazeWall[381][9] = true;
MazeWall[381][10] = true;
MazeWall[381][11] = true;
MazeWall[381][12] = true;
MazeWall[381][13] = true;
MazeWall[381][14] = true;
MazeWall[381][15] = true;
MazeWall[381][16] = true;
MazeWall[381][17] = true;
MazeWall[382][0] = true;
MazeWall[382][1] = true;
MazeWall[382][2] = true;
MazeWall[382][3] = true;
MazeWall[382][4] = true;
MazeWall[382][5] = true;
MazeWall[382][6] = true;
MazeWall[382][7] = true;
MazeWall[382][8] = true;
MazeWall[382][9] = true;
MazeWall[382][10] = true;
MazeWall[382][11] = true;
MazeWall[382][12] = true;
MazeWall[382][13] = true;
MazeWall[382][14] = true;
MazeWall[382][15] = true;
MazeWall[382][16] = true;
MazeWall[382][17] = true;
MazeWall[383][0] = true;
MazeWall[383][1] = true;
MazeWall[383][2] = true;
MazeWall[383][3] = true;
MazeWall[383][4] = true;
MazeWall[383][5] = true;
MazeWall[383][6] = true;
MazeWall[383][7] = true;
MazeWall[383][8] = true;
MazeWall[383][9] = true;
MazeWall[383][10] = true;
MazeWall[383][11] = true;
MazeWall[383][12] = true;
MazeWall[383][13] = true;
MazeWall[383][14] = true;
MazeWall[383][15] = true;
MazeWall[383][16] = true;
MazeWall[383][17] = true;
MazeWall[384][0] = true;
MazeWall[384][1] = true;
MazeWall[384][2] = true;
MazeWall[384][3] = true;
MazeWall[384][4] = true;
MazeWall[384][5] = true;
MazeWall[384][6] = true;
MazeWall[384][7] = true;
MazeWall[384][8] = true;
MazeWall[384][9] = true;
MazeWall[384][10] = true;
MazeWall[384][11] = true;
MazeWall[384][12] = true;
MazeWall[384][13] = true;
MazeWall[384][14] = true;
MazeWall[384][15] = true;
MazeWall[384][16] = true;
MazeWall[384][17] = true;
MazeWall[385][0] = true;
MazeWall[385][1] = true;
MazeWall[385][2] = true;
MazeWall[385][3] = true;
MazeWall[385][4] = true;
MazeWall[385][5] = true;
MazeWall[385][6] = true;
MazeWall[385][7] = true;
MazeWall[385][8] = true;
MazeWall[385][9] = true;
MazeWall[385][10] = true;
MazeWall[385][11] = true;
MazeWall[385][12] = true;
MazeWall[385][13] = true;
MazeWall[385][14] = true;
MazeWall[385][15] = true;
MazeWall[385][16] = true;
MazeWall[385][17] = true;
} else {
if (_arg1 == 1){
} else {
if (_arg1 == 2){
};
};
};
}
}
}//package game.engine.NTechBattleGrounds
Section 18
//Boss11Ammo1 (game.engine.NTechBattleGrounds.Boss11Ammo1)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class Boss11Ammo1 extends NTechObject {
var engaged:Boolean;// = true
var YMovement:Number;// = 10
var numAbsorbed:int;// = 0
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;// = 0
var nextShot:int;// = 0
var ObjectList:Array;
public var DestroyGraphic:Class;
var Angle:Number;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
public var AttackDamage:int;// = 0
public function Boss11Ammo1(_arg1:Number, _arg2:Number, _arg3:Array):void{
GameGraphic = Enemy3ID;
engaged = true;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
Movement = 10;
YMovement = 10;
SelfDestructed = false;
numAbsorbed = 0;
ObjectList = new Array();
nextShot = 0;
Angle = 0;
super(_arg1, _arg2);
ObjectList = _arg3;
TempGraphic = AmmoType1DestroyID;
BulletType = Boss11Ammo3;
BulletGraphic = DarkMatterShotID;
DestroyGraphic = AmmoType2DestroyID;
Type = "Enemy";
hitType = "Circle";
Name = "Drone";
hitRadius = 100;
hitCenterX = 0;
hitCenterY = 0;
HP = 1;
MaxHP = 1;
AttackDamage = 5;
ScoreValue = 1;
X = 375;
Y = 250;
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
Graphic.width = 200;
Graphic.height = 200;
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
}
override public function main():void{
var _local1:*;
var _local2:Number;
if (engaged){
nextShot++;
_local1 = 0;
while (_local1 < ObjectList.length) {
if (((!((ObjectList[_local1] == this))) && (!((ObjectList[_local1].Name == "PhaseGen"))))){
_local2 = Math.sqrt((Math.pow((ObjectList[_local1].X - X), 2) + Math.pow((ObjectList[_local1].Y - Y), 2)));
Angle = Math.atan2((ObjectList[_local1].getY() - Y), (ObjectList[_local1].getX() - X));
ObjectList[_local1].X = (ObjectList[_local1].X - (Math.cos(Angle) * 20));
ObjectList[_local1].Y = (ObjectList[_local1].Y - (Math.sin(Angle) * 20));
if (_local2 < hitRadius){
ObjectList[_local1].dispatchEvent(new Event("EnemyDestroyed"));
};
};
_local1++;
};
if (nextShot == 105){
TempGraphicX = X;
TempGraphicY = Y;
_local1 = 0;
while (_local1 < 25) {
BulletParam = ((2 * Math.PI) * (_local1 / 25));
dispatchEvent(new Event("RequestObject"));
_local1++;
};
dispatchEvent(new Event("PlayerHit"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
}
}//package game.engine.NTechBattleGrounds
Section 19
//Boss11Ammo2 (game.engine.NTechBattleGrounds.Boss11Ammo2)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class Boss11Ammo2 extends NTechObject {
var engaged:Boolean;// = true
var YMovement:Number;// = 10
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
var nextShot:int;// = 0
public var DestroyGraphic:Class;
var Angle:Number;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
var numXFrames:int;// = 0
public var AttackDamage:int;// = 0
public function Boss11Ammo2(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
GameGraphic = Enemy3ID;
engaged = true;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
Movement = 10;
YMovement = 10;
SelfDestructed = false;
numXFrames = 0;
nextShot = 0;
Angle = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = AmmoType1DestroyID;
BulletType = Ammo1;
BulletGraphic = AmmoType1ID;
DestroyGraphic = Enemy0DestroyID;
Type = "Enemy";
hitType = "Circle";
Name = "Drone";
hitRadius = 1;
hitCenterX = 999999;
hitCenterY = 999999;
HP = 1;
MaxHP = 1;
AttackDamage = 2;
ScoreValue = 1;
Angle = _arg4;
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
}
override public function main():void{
if (engaged){
X = (X - (10 + Angle));
if (X <= 150){
Attack([(Y / 25)]);
};
if (X <= 0){
Attack([(Y / 25)]);
dispatchEvent(new Event("EnemyDestroyed"));
};
if ((((((Y < 0)) || ((Y > 465)))) || ((X > 720)))){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
}
}//package game.engine.NTechBattleGrounds
Section 20
//Boss11Ammo3 (game.engine.NTechBattleGrounds.Boss11Ammo3)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class Boss11Ammo3 extends NTechObject {
var YCenter:Number;// = 0
var engaged:Boolean;// = true
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
var nextShot:int;// = 0
var theta:Number;// = 0
public var DestroyGraphic:Class;
var Graphic:MovieClip;
public var AttackCells:Array;
var Radius:Number;// = 0
var XCenter:Number;// = 0
public var AttackDamage:int;// = 0
public function Boss11Ammo3(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
GameGraphic = Enemy3ID;
engaged = true;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
XCenter = 0;
YCenter = 0;
SelfDestructed = false;
nextShot = 0;
theta = 0;
Radius = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = AmmoType1DestroyID;
BulletType = Ammo1;
BulletGraphic = AmmoType1ID;
DestroyGraphic = DarkMatterDestroyID;
Type = "Enemy";
hitType = "Circle";
Name = "Dark Matter";
hitRadius = 22;
hitCenterX = 0;
hitCenterY = 0;
HP = 10;
MaxHP = 10;
AttackDamage = 15;
ScoreValue = 1;
XCenter = X;
YCenter = Y;
theta = _arg4;
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
X = ((Math.cos(theta) * Radius) + XCenter);
Y = ((Math.sin(theta) * Radius) + YCenter);
Radius++;
theta = (theta + (Math.PI / (Radius / 5)));
if (X <= 150){
Attack([(Y / 25)]);
if (X <= 0){
Attack([(Y / 25)]);
dispatchEvent(new Event("EnemyDestroyed"));
};
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
}
}//package game.engine.NTechBattleGrounds
Section 21
//Boss16 (game.engine.NTechBattleGrounds.Boss16)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Boss16 extends NTechObject {
var Right:Boolean;// = true
var screenDur:int;// = 0
var YCenter:Number;// = 0
var engaged:Boolean;// = false
var Top:Boolean;// = true
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
var CycleDur:int;// = 0
var shotSpeed:int;// = 6
public var GameGraphic:Class;
public var BulletType:Class;
var transition2:Boolean;// = false
var transition1:Boolean;// = false
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;// = 0
var nextShot:int;// = 0
var WebFrame:int;// = 0
public var DestroyGraphic:Class;
var transNum:int;// = 0
var Cycle:int;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var XCenter:Number;// = 0
var transitionPause:Boolean;// = false
var YReached:Boolean;// = false
var BeginCycle:Boolean;// = true
var XReached:Boolean;// = false
var moveSpeed:int;// = 8
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
var HitIt:Boolean;// = false
public function Boss16(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
XCenter = 0;
YCenter = 0;
SelfDestructed = false;
nextShot = 0;
moveSpeed = 8;
shotSpeed = 6;
screenDur = 0;
Cycle = 0;
CycleDur = 0;
Top = true;
Right = true;
HitIt = false;
XReached = false;
YReached = false;
WebFrame = 0;
BeginCycle = true;
transition1 = false;
transition2 = false;
transNum = 0;
transitionPause = false;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = Enemy12DestroyID;
BulletType = Ammo2Phase3;
BulletGraphic = Boss3AmmoID;
IntroGraphic = Boss16IntroID;
DestroyGraphic = Boss16DestroyID;
GameGraphic = Boss16ID;
Type = "Enemy";
hitType = "Rectangle";
Name = "Neutralizer";
hitRadius = 95;
hitCenterX = -85;
hitCenterY = -85;
hitWidth = 170;
hitHeight = 170;
HP = 1000;
MaxHP = 1000;
AttackDamage = 2;
ScoreValue = 50;
XCenter = 90210;
YCenter = Y;
addEventListener("Engaged", Engage_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
if (Cycle == 1){
Player.Stuck = true;
};
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionlarge1FX, Player.SFXVol);
engaged = false;
CycleDur = 0;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
Graphic.gotoAndPlay("Shoot1");
engaged = true;
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
var _local1:int;
if (engaged){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
if (!transitionPause){
CycleDur++;
if ((((Cycle == 0)) || ((Cycle == 2)))){
if (((!((Graphic.rotation == 0))) && (BeginCycle))){
Graphic.rotation = (Graphic.rotation + 10);
} else {
BeginCycle = false;
if (!HitIt){
if (Top){
if ((Graphic.rotation % 90) == 0){
Y = (Y + 10);
};
if ((Math.random() * 20) < 2){
makeSound(ThookFX, Player.SFXVol);
TempGraphicX = X;
TempGraphicY = Y;
BulletParam = 5;
dispatchEvent(new Event("RequestObject"));
BulletParam = -5;
dispatchEvent(new Event("RequestObject"));
};
if (Y >= 400){
if (XCenter == 90210){
Graphic.rotation = (Graphic.rotation - 20);
} else {
Graphic.rotation = (Graphic.rotation - 10);
};
if ((Graphic.rotation % 90) == 0){
HitIt = true;
Top = false;
XCenter = ((Math.random() * 450) + 250);
};
};
} else {
if ((Graphic.rotation % 90) == 0){
Y = (Y - 10);
};
if ((Math.random() * 20) < 1){
makeSound(ThookFX, Player.SFXVol);
TempGraphicX = X;
TempGraphicY = Y;
BulletParam = 5;
dispatchEvent(new Event("RequestObject"));
BulletParam = -5;
dispatchEvent(new Event("RequestObject"));
BulletParam = 0;
dispatchEvent(new Event("RequestObject"));
};
if (Y <= 150){
Graphic.rotation = (Graphic.rotation - 10);
if ((Graphic.rotation % 90) == 0){
HitIt = true;
Top = true;
XCenter = ((Math.random() * 450) + 250);
};
};
};
} else {
if (Top){
if ((Graphic.rotation % 90) == 0){
X = (X - 5);
};
if (X < XCenter){
Graphic.rotation = (Graphic.rotation - 10);
if ((Graphic.rotation % 90) == 0){
HitIt = false;
};
};
} else {
if (!Top){
if ((Graphic.rotation % 90) == 0){
X = (X + 5);
};
if (X > XCenter){
Graphic.rotation = (Graphic.rotation - 10);
if ((Graphic.rotation % 90) == 0){
HitIt = false;
};
};
};
};
};
};
} else {
if (Cycle == 1){
if (Graphic.rotation != 0){
Graphic.rotation = (Graphic.rotation + 10);
} else {
Graphic.play();
if ((((((Graphic.currentLabel == "Webbing1")) || ((Graphic.currentLabel == "Webbing2")))) || ((Graphic.currentLabel == "Webbing3")))){
WebFrame = Graphic.currentFrame;
};
if ((((Graphic.currentFrame >= WebFrame)) && (!((WebFrame == 0))))){
Attack([(Y / 25), ((Y / 25) - 1), ((Y / 25) + 1), ((Y / 25) - 2), ((Y / 25) + 2)]);
};
if ((((((Graphic.currentLabel == "EndWeb1")) || ((Graphic.currentLabel == "EndWeb2")))) || ((Graphic.currentLabel == "EndWeb3")))){
CycleDur = 250;
};
};
} else {
if (Cycle == 3){
CycleDur = 0;
if (Graphic.rotation != 0){
Graphic.rotation = (Graphic.rotation + 10);
} else {
X = (X - moveSpeed);
moveSpeed = (moveSpeed + 1);
if (X < -150){
moveSpeed = 8;
X = 850;
Y = (Y + 50);
if (Y > 460){
CycleDur = 250;
X = 550;
Y = 250;
};
};
if ((((X < 150)) && ((X > 0)))){
Attack([(Y / 25), ((Y / 25) - 1), ((Y / 25) + 1), ((Y / 25) - 2), ((Y / 25) + 2), ((Y / 25) + 3), ((Y / 25) - 3), ((Y / 25) + 4), ((Y / 25) - 4)]);
};
};
} else {
if (Cycle == 4){
CycleDur = 0;
if (Graphic.rotation != 0){
Graphic.rotation = (Graphic.rotation + 10);
} else {
if ((((((Graphic.currentLabel == "EndMove1")) || ((Graphic.currentLabel == "EndMove2")))) || ((Graphic.currentLabel == "EndMove3")))){
_local1 = Math.ceil((Math.random() * 4));
nextShot++;
if ((((_local1 == 1)) || ((_local1 == 4)))){
BulletType = Enemy12;
BulletGraphic = Enemy12ID;
} else {
if ((((_local1 == 2)) || ((_local1 == 3)))){
BulletType = Enemy13;
BulletGraphic = Enemy13ID;
};
};
TempGraphicX = X;
TempGraphicY = Y;
makeSound(MudSplatFX, Player.SFXVol);
dispatchEvent(new Event("RequestObject"));
dispatchEvent(new Event("RequestTemp"));
if (nextShot == 1){
CycleDur = 250;
};
};
};
};
};
};
};
};
if (CycleDur >= 250){
Cycle++;
if (Cycle > 4){
Cycle = Math.ceil((Math.random() * 2));
};
if ((((Cycle == 0)) || ((Cycle == 2)))){
Top = true;
HitIt = false;
BeginCycle = true;
XCenter = 90210;
moveSpeed = 8;
if ((getHP() / MaxHP) > 0.6){
Graphic.gotoAndPlay("Move1");
moveSpeed = 8;
} else {
if (((((getHP() / MaxHP) < 0.6)) && (((getHP() / MaxHP) > 0.4)))){
Graphic.gotoAndPlay("Move2");
moveSpeed = 10;
} else {
Graphic.gotoAndPlay("Move3");
moveSpeed = 12;
};
};
nextShot = 0;
BulletType = Ammo2Phase3;
BulletGraphic = Boss3AmmoID;
hitType = "Rectangle";
hitCenterX = -85;
hitCenterY = -85;
hitWidth = 170;
hitHeight = 170;
} else {
if (Cycle == 1){
makeSound(WebbingFX, Player.SFXVol);
moveSpeed = 8;
Y = Player.getY();
X = 250;
Graphic.rotation = 180;
if ((getHP() / MaxHP) > 0.6){
Graphic.gotoAndStop("Web1");
} else {
if (((((getHP() / MaxHP) < 0.6)) && (((getHP() / MaxHP) > 0.4)))){
Graphic.gotoAndStop("Web2");
} else {
Graphic.gotoAndStop("Web3");
};
};
nextShot = 0;
WebFrame = 0;
BulletType = Ammo2Phase3;
BulletGraphic = Boss3AmmoID;
BulletParam = 0;
hitType = "Rectangle";
hitCenterX = -85;
hitCenterY = -85;
hitWidth = 170;
hitHeight = 170;
} else {
if (Cycle == 3){
X = 850;
Y = 50;
if ((getHP() / MaxHP) > 0.6){
Graphic.gotoAndPlay("Move1");
} else {
if (((((getHP() / MaxHP) < 0.6)) && (((getHP() / MaxHP) > 0.4)))){
Graphic.gotoAndPlay("Move2");
} else {
Graphic.gotoAndPlay("Move3");
};
};
nextShot = 0;
BulletType = Ammo2Phase3;
BulletGraphic = Boss3AmmoID;
hitType = "Rectangle";
hitCenterX = -85;
hitCenterY = -85;
hitWidth = 170;
hitHeight = 170;
} else {
if (Cycle == 4){
X = 600;
Y = 250;
nextShot = 0;
if ((getHP() / MaxHP) > 0.6){
Graphic.gotoAndPlay("Move1");
} else {
if (((((getHP() / MaxHP) < 0.6)) && (((getHP() / MaxHP) > 0.4)))){
Graphic.gotoAndPlay("Move2");
} else {
Graphic.gotoAndPlay("Move3");
};
};
BulletType = Ammo2Phase3;
BulletGraphic = Boss3AmmoID;
hitType = "Rectangle";
hitCenterX = -85;
hitCenterY = -85;
hitWidth = 170;
hitHeight = 170;
};
};
};
};
CycleDur = 0;
};
if (((((((getHP() / MaxHP) < 0.6)) && (((getHP() / MaxHP) > 0.4)))) && ((CycleDur <= 25)))){
if (((!(transition1)) && ((transNum < 25)))){
transNum++;
TempGraphicX = (((Math.random() * 200) - 100) + X);
TempGraphicY = (((Math.random() * 200) - 100) + Y);
transitionPause = true;
dispatchEvent(new Event("RequestTemp"));
} else {
transition1 = true;
transitionPause = false;
transNum = 0;
};
} else {
if (((((getHP() / MaxHP) < 0.4)) && ((CycleDur <= 25)))){
if (((!(transition2)) && ((transNum < 25)))){
transNum++;
TempGraphicX = (((Math.random() * 200) - 100) + X);
TempGraphicY = (((Math.random() * 200) - 100) + Y);
transitionPause = true;
dispatchEvent(new Event("RequestTemp"));
} else {
transition2 = true;
transitionPause = false;
transNum = 0;
};
};
};
if (Graphic.currentLabel == "EndMove1"){
Graphic.gotoAndPlay("Move1");
} else {
if (Graphic.currentLabel == "EndMove2"){
Graphic.gotoAndPlay("Move2");
} else {
if (Graphic.currentLabel == "EndMove3"){
Graphic.gotoAndPlay("Move3");
} else {
if (Graphic.currentLabel == "EndWeb1"){
Graphic.gotoAndPlay("Move1");
} else {
if (Graphic.currentLabel == "EndWeb2"){
Graphic.gotoAndPlay("Move2");
} else {
if (Graphic.currentLabel == "EndWeb3"){
Graphic.gotoAndPlay("Move3");
};
};
};
};
};
};
};
if (Destroyed){
CycleDur++;
if (CycleDur < 75){
Y++;
TempGraphicX = (((Math.random() * 200) - 100) + X);
TempGraphicY = (((Math.random() * 200) - 100) + Y);
dispatchEvent(new Event("RequestTemp"));
Graphic.gotoAndStop(1);
} else {
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
} else {
Graphic.play();
};
};
};
}
public function Beam_Handler(_arg1:Event):void{
if (Cycle == 3){
addHit(1);
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
};
}
}
}//package game.engine.NTechBattleGrounds
Section 22
//Boss21 (game.engine.NTechBattleGrounds.Boss21)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.geom.*;
public class Boss21 extends NTechObject {
var YCenter:Number;// = 0
var MazeWall:Array;
public var TempGraphic:Class;
var BeamEndX2:Number;// = 0
var Move1:Number;// = 0
var MusicTime:int;// = 0
var BeamEndX1:Number;// = 0
public var GameGraphic:Class;
var Part2:Boolean;// = false
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
var Part3:Boolean;// = false
public var BulletParam:Number;// = 0
var BeamEnd:Number;// = 0
var nextShot:int;// = 0
var BeamEndY1:Number;// = 0
var BeamEndY2:Number;// = 0
var DestinationDist:Number;// = 0
var Part1MoveCycle:int;// = 0
var Cycle:int;// = 0
var Graphic:MovieClip;
var XCenter:Number;// = 0
var LaserAlive:Boolean;// = true
var ShieldPresent:Boolean;// = false
var FireCannon:Boolean;// = false
var moveSpeed:int;// = 8
var NumMoves:int;// = 0
public var IntroGraphic:Class;
var StartBeam:Boolean;// = false
var engaged:Boolean;// = false
var Player:Object;
var BugFix1:Boolean;// = false
var MusicChannel:SoundChannel;
var SelfDestructed:Boolean;// = false
var Case:Boolean;// = true
var CycleLength:int;// = 0
var CycleDur:int;// = 0
var MoveIndex:int;// = 0
var BeamEndure:int;// = 0
public var BulletGraphic:Class;
var shotSpeed:int;// = 6
var ReadyPhase2:Boolean;// = false
public var BulletType:Class;
var transition2:Boolean;// = false
var transition1:Boolean;// = false
var SnakeAttack:Boolean;// = false
var MoveToY:Number;// = 0
var SnakeAlive:Boolean;// = true
var transitionPause:Boolean;// = false
public var DestroyGraphic:Class;
var CannonAlive:Boolean;// = true
var transNum:int;// = 0
public var AttackCells:Array;
var MaxMoves:int;// = 5
var ShieldX:Number;// = 0
var ShieldY:Number;// = 0
var screenDur:int;// = 0
public var AttackDamage:int;// = 0
public function Boss21(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
XCenter = 0;
YCenter = 0;
SelfDestructed = false;
nextShot = 0;
moveSpeed = 8;
shotSpeed = 6;
screenDur = 0;
transitionPause = false;
transition1 = false;
transition2 = false;
transNum = 0;
Cycle = 0;
CycleDur = 0;
ShieldPresent = false;
ShieldX = 0;
ShieldY = 0;
Case = true;
BeamEndX1 = 0;
BeamEndY1 = 0;
BeamEndX2 = 0;
BeamEndY2 = 0;
BeamEnd = 0;
MusicTime = 0;
Part2 = false;
ReadyPhase2 = false;
MazeWall = new Array();
DestinationDist = 0;
NumMoves = 0;
MaxMoves = 5;
MoveIndex = 0;
MoveToY = 0;
BugFix1 = false;
Part1MoveCycle = 0;
Move1 = 0;
StartBeam = false;
BeamEndure = 0;
CycleLength = 0;
LaserAlive = true;
CannonAlive = true;
SnakeAlive = true;
FireCannon = false;
SnakeAttack = false;
Part3 = false;
super(_arg1, _arg2);
Music = new Phase1FX();
Player = _arg3;
TempGraphic = Enemy12DestroyID;
BulletType = Ammo2Phase3;
BulletGraphic = Boss3AmmoID;
IntroGraphic = Boss21IntroID;
DestroyGraphic = Boss21DestroyID;
GameGraphic = Boss21ID;
Type = "Enemy";
hitType = "Rectangle";
Name = "Team Delta";
hitRadius = 95;
hitCenterX = 0;
hitCenterY = -20;
hitWidth = 170;
hitHeight = 40;
HP = 2000;
MaxHP = 1400;
AttackDamage = 2;
ScoreValue = 50;
XCenter = X;
YCenter = Y;
addEventListener("Engaged", Engage_Handler);
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionlarge1FX, Player.SFXVol);
engaged = false;
ShieldPresent = false;
CycleDur = 0;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function MusicLoop(_arg1:Event):void{
MusicChannel.removeEventListener(Event.SOUND_COMPLETE, MusicLoop);
MusicChannel = Music.play(0xFA00);
MusicChannel.soundTransform = new SoundTransform(0.5);
MusicChannel.addEventListener(Event.SOUND_COMPLETE, MusicLoop);
}
public function musictrack(_arg1:Event):void{
if (MusicChannel.position >= 60000){
Part2 = true;
};
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
createShield();
Graphic.addEventListener(Event.ENTER_FRAME, musictrack);
Graphic.addEventListener(Event.UNLOAD, songStop);
MusicChannel = Music.play();
MusicChannel.addEventListener(Event.SOUND_COMPLETE, MusicLoop);
engaged = true;
}
public function songStop(_arg1:Event):void{
Graphic.removeEventListener(Event.UNLOAD, songStop);
MusicChannel.stop();
}
public function Beam_Handler(_arg1:Event):void{
if (!Case){
addHit(1);
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
};
}
public function SelfDestruct_Handler(_arg1:Event):void{
}
public function drawBeam():void{
Graphic.graphics.clear();
Graphic.graphics.lineStyle(5, 0xFF0000, 1);
Graphic.graphics.lineTo(BeamEnd, 0);
Graphic.graphics.lineStyle(2, 0xFFFFFF, 1);
Graphic.graphics.lineTo(0, 0);
}
public function drawDoubleBeam():void{
Graphic.graphics.clear();
Graphic.graphics.lineStyle(5, 0xFF0000, 1);
Graphic.graphics.moveTo(-60, 33);
Graphic.graphics.lineTo(BeamEnd, 43);
Graphic.graphics.lineStyle(2, 0xFFFFFF, 1);
Graphic.graphics.lineTo(-60, 33);
Graphic.graphics.lineStyle(5, 0xFF0000, 1);
Graphic.graphics.moveTo(-60, -20);
Graphic.graphics.lineTo(BeamEnd, -20);
Graphic.graphics.lineStyle(2, 0xFFFFFF, 1);
Graphic.graphics.lineTo(-60, -20);
}
public function createShield():void{
TempGraphic = ShieldChargeID;
TempGraphicX = (X - 90);
TempGraphicY = Y;
ShieldX = X;
ShieldY = Y;
dispatchEvent(new Event("RequestTemp"));
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
X = (X + ((XCenter - X) / 5));
Y = (Y + ((YCenter - Y) / 5));
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
if (!transitionPause){
if (((!(Part2)) && (!(Part3)))){
Case = false;
if (BeamEnd < -380){
AttackDamage = 1;
Attack([(Y / 25)]);
};
if (MusicChannel.position > 60000){
YCenter = 230;
BeamEnd = 0;
BeamEndure = 0;
Graphic.graphics.clear();
Move1 = 115;
} else {
if (Part1MoveCycle == 0){
Move1 = (Move1 + (Math.PI / 35));
YCenter = ((Math.sin(Move1) * 230) + 230);
if (((((Math.random() * 100) > 95)) && (!(StartBeam)))){
StartBeam = true;
makeSound(Shot1FX, Player.SFXVol);
};
if (StartBeam){
BeamEndure++;
BeamEnd = -600;
drawBeam();
if (BeamEndure == 20){
BeamEndure = 0;
StartBeam = false;
BeamEnd = 0;
Graphic.graphics.clear();
};
};
if (Move1 == ((Math.PI * 8) + ((Math.PI / 35) * 20))){
Part1MoveCycle++;
Move1 = 0;
StartBeam = false;
YCenter = 470;
};
} else {
if (Part1MoveCycle == 1){
if (Move1 == 0){
YCenter = (YCenter - 5);
if ((YCenter % 200) == 0){
StartBeam = true;
makeSound(Shot1FX, Player.SFXVol);
};
if (StartBeam){
BeamEndure++;
BeamEnd = -600;
drawBeam();
if (BeamEndure == 20){
BeamEndure = 0;
StartBeam = false;
BeamEnd = 0;
Graphic.graphics.clear();
};
};
if (YCenter <= 0){
Move1 = 1;
};
} else {
YCenter = (YCenter + 5);
if ((YCenter % 200) == 0){
StartBeam = true;
makeSound(Shot1FX, Player.SFXVol);
};
if (StartBeam){
BeamEndure++;
BeamEnd = -600;
drawBeam();
if (BeamEndure == 20){
BeamEndure = 0;
StartBeam = false;
BeamEnd = 0;
Graphic.graphics.clear();
};
};
if (YCenter >= 470){
Move1 = 0;
};
};
if (Move1 == 2){
BeamEnd = 0;
Graphic.graphics.clear();
Part1MoveCycle = 0;
Move1 = 0;
};
};
};
};
} else {
if (((Part2) && (!(Part3)))){
if (((!(ReadyPhase2)) || ((XCenter > 550)))){
if ((((XCenter < 710)) && (!(StartBeam)))){
XCenter = (XCenter + 10);
Case = true;
} else {
if (!StartBeam){
BeamEndure++;
if (BeamEndure == 70){
StartBeam = true;
ReadyPhase2 = true;
};
};
};
if (((StartBeam) && ((XCenter > 550)))){
XCenter = (XCenter - 3);
} else {
if (StartBeam){
Graphic.graphics.clear();
BeamEndure = 0;
Cycle = 0;
BeamEnd = 0;
StartBeam = false;
};
};
} else {
if (XCenter <= 550){
if (!BugFix1){
Graphic.graphics.clear();
BeamEndure = 0;
Cycle = 0;
BeamEnd = 0;
StartBeam = false;
BugFix1 = true;
SnakeAttack = false;
};
if (!Case){
Part3 = true;
ReadyPhase2 = false;
Graphic.graphics.clear();
BeamEndure = 0;
Cycle = 0;
BeamEnd = 0;
StartBeam = false;
SnakeAttack = false;
FireCannon = false;
BulletType = Boss21RadonFlare;
BulletGraphic = Boss21RadonFlareID;
hitType = "Rectangle";
hitCenterX = 0;
hitCenterY = -40;
hitWidth = 170;
hitHeight = 80;
};
if (BeamEnd < -380){
AttackDamage = 1;
Attack([((Y / 25) + 1), ((Y / 25) - 1)]);
};
if (Cycle == 0){
CycleLength = 560;
CycleDur++;
YCenter = ((Math.sin(((Math.PI / 20) * CycleDur)) * 115) + Move1);
if (StartBeam){
BeamEndure++;
BeamEnd = -900;
drawDoubleBeam();
if (BeamEndure == 100){
BeamEndure = 0;
StartBeam = false;
BeamEnd = 0;
Graphic.graphics.clear();
};
} else {
BeamEndure++;
if (BeamEndure == 40){
BeamEndure = 0;
StartBeam = true;
makeSound(Shot1FX, Player.SFXVol);
};
};
if ((CycleDur % 140) == 0){
if (Move1 == 115){
Move1 = 375;
} else {
Move1 = 115;
};
};
} else {
if (Cycle == 1){
CycleDur++;
CycleLength = 400;
BeamEndure++;
if (BeamEndure == 20){
BeamEndure = 0;
FireCannon = true;
makeSound(bumpFX, Player.SFXVol);
} else {
FireCannon = false;
};
if (Move1 == 0){
YCenter = (YCenter - 5);
if (YCenter <= 0){
Move1 = 1;
};
} else {
YCenter = (YCenter + 5);
if (YCenter >= 480){
Move1 = 0;
};
};
} else {
if (Cycle == 2){
if ((CycleDur % 35) == 0){
YCenter = (Player.getY() + 40);
SnakeAttack = true;
} else {
SnakeAttack = false;
};
CycleDur++;
CycleLength = 175;
} else {
if (Cycle == 3){
YCenter = 230;
CycleDur++;
CycleLength = 175;
if (CycleDur == 20){
TempGraphicX = 400;
TempGraphicY = Player.getY();
dispatchEvent(new Event("RequestObject"));
};
if (LaserAlive){
BeamEnd = -900;
drawDoubleBeam();
};
if (CannonAlive){
BeamEndure++;
if (BeamEndure == 30){
BeamEndure = 0;
FireCannon = true;
makeSound(bumpFX, Player.SFXVol);
} else {
FireCannon = false;
};
};
if (SnakeAlive){
SnakeAttack = true;
};
};
};
};
};
if (CycleDur >= CycleLength){
CycleDur = 0;
BeamEnd = 0;
BeamEndure = 0;
Graphic.graphics.clear();
FireCannon = false;
SnakeAttack = false;
Cycle++;
if (Cycle > 3){
Cycle = Math.floor((Math.random() * 4));
};
if ((((Cycle == 0)) && (LaserAlive))){
nextShot = 0;
Move1 = 115;
BulletType = Ammo2Phase3;
BulletGraphic = Boss3AmmoID;
hitType = "Rectangle";
hitCenterX = 0;
hitCenterY = -20;
hitWidth = 170;
hitHeight = 40;
} else {
if (Cycle == 0){
Cycle++;
};
};
if ((((Cycle == 1)) && (CannonAlive))){
nextShot = 0;
Move1 = 0;
YCenter = 230;
BulletType = Ammo2Phase3;
BulletGraphic = Boss3AmmoID;
hitType = "Rectangle";
hitCenterX = 0;
hitCenterY = -20;
hitWidth = 170;
hitHeight = 40;
} else {
if (Cycle == 1){
Cycle++;
};
};
if ((((Cycle == 2)) && (SnakeAlive))){
nextShot = 0;
Move1 = 0;
YCenter = 230;
BulletType = Ammo2Phase3;
BulletGraphic = Boss3AmmoID;
hitType = "Rectangle";
hitCenterX = 0;
hitCenterY = -20;
hitWidth = 170;
hitHeight = 40;
} else {
if (Cycle == 2){
Cycle++;
};
};
if (Cycle == 3){
nextShot = 0;
Move1 = 0;
YCenter = 230;
BulletType = Boss21RadonFlare;
BulletGraphic = Boss21RadonFlareID;
hitType = "Rectangle";
hitCenterX = 0;
hitCenterY = -20;
hitWidth = 170;
hitHeight = 40;
};
};
};
};
} else {
if (((Part2) && (Part3))){
YCenter = 230;
if (((!(ReadyPhase2)) || ((XCenter > 400)))){
if ((((XCenter < 710)) && (!(StartBeam)))){
XCenter = (XCenter + 10);
} else {
if (!StartBeam){
BeamEndure++;
if (BeamEndure == 70){
StartBeam = true;
ReadyPhase2 = true;
Graphic.scaleX = (Graphic.scaleY = 4);
};
};
};
if (((StartBeam) && ((XCenter > 400)))){
XCenter = (XCenter - 3);
} else {
if (StartBeam){
Graphic.graphics.clear();
BeamEndure = 0;
Cycle = 0;
BeamEnd = 0;
StartBeam = false;
};
};
} else {
if (XCenter <= 400){
CycleDur++;
if ((CycleDur % 8) == 0){
BulletType = Boss21Shot;
BulletGraphic = boss21ammoID;
BulletParam = Math.PI;
TempGraphicX = 700;
TempGraphicY = (Math.random() * 470);
dispatchEvent(new Event("RequestObject"));
};
if (CycleDur == 200){
BulletParam = 0;
BulletType = Boss21RadonFlare;
BulletGraphic = Boss21RadonFlareID;
TempGraphicX = ((Math.random() * 500) + 200);
TempGraphicY = Player.getY();
dispatchEvent(new Event("RequestObject"));
};
if (CycleDur == 205){
BulletParam = 0;
BulletType = Boss21RadonFlare;
BulletGraphic = Boss21RadonFlareID;
TempGraphicX = ((Math.random() * 500) + 200);
TempGraphicY = (Player.getY() + 30);
dispatchEvent(new Event("RequestObject"));
};
if (CycleDur == 210){
BulletParam = 0;
BulletType = Boss21RadonFlare;
BulletGraphic = Boss21RadonFlareID;
TempGraphicX = ((Math.random() * 500) + 200);
TempGraphicY = (Player.getY() - 30);
dispatchEvent(new Event("RequestObject"));
};
if (CycleDur == 215){
BulletParam = 0;
BulletType = Boss21RadonFlare;
BulletGraphic = Boss21RadonFlareID;
TempGraphicX = ((Math.random() * 500) + 200);
TempGraphicY = Player.getY();
dispatchEvent(new Event("RequestObject"));
CycleDur = 0;
};
};
};
};
};
};
};
};
if (Destroyed){
MusicChannel.stop();
if (!ShieldPresent){
makeSound(gameoverFX, 1);
ShieldPresent = true;
};
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
}
}//package game.engine.NTechBattleGrounds
Section 23
//Boss21Case (game.engine.NTechBattleGrounds.Boss21Case)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Boss21Case extends NTechObject {
var screenDur:int;// = 0
var YCenter:Number;// = 0
var engaged:Boolean;// = false
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
var CycleDur:int;// = 0
var MusicTime:int;// = 0
var shotSpeed:int;// = 6
var BeamEndX2:Number;// = 0
public var GameGraphic:Class;
public var BulletType:Class;
var transition2:Boolean;// = false
var Part2:Boolean;// = false
var transition1:Boolean;// = false
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
var SnakeAttack:Boolean;// = false
public var BulletParam:Number;// = 0
var BeamEndY1:Number;// = 0
var nextShot:int;// = 0
var BeamEnd:Number;// = 0
var BeamEndY2:Number;// = 0
public var DestroyGraphic:Class;
var transNum:int;// = 0
var Core:Object;
var Cycle:int;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var XCenter:Number;// = 0
var transitionPause:Boolean;// = false
var BeamEndX1:Number;// = 0
var moveSpeed:int;// = 8
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
public function Boss21Case(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Object):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
XCenter = 0;
YCenter = 0;
SelfDestructed = false;
nextShot = 0;
moveSpeed = 8;
shotSpeed = 6;
screenDur = 0;
transitionPause = false;
transition1 = false;
transition2 = false;
transNum = 0;
Cycle = 0;
CycleDur = 0;
SnakeAttack = false;
BeamEndX1 = 0;
BeamEndY1 = 0;
BeamEndX2 = 0;
BeamEndY2 = 0;
BeamEnd = 0;
MusicTime = 0;
Part2 = false;
super(_arg1, _arg2);
Player = _arg3;
Core = _arg4;
TempGraphic = Enemy12DestroyID;
BulletType = Boss21Shot;
BulletGraphic = Boss3AmmoID;
IntroGraphic = Boss21IntroID;
DestroyGraphic = Enemy20DestroyID;
GameGraphic = Boss21CaseID;
Type = "Enemy";
hitType = "Rectangle";
Name = "Hard Head";
hitRadius = 95;
hitCenterX = -70;
hitCenterY = -40;
hitWidth = 150;
hitHeight = 75;
HP = 600;
MaxHP = 600;
AttackDamage = 2;
ScoreValue = 50;
X = -900;
Y = -900;
addEventListener("Engaged", Engage_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
if (Cycle == 1){
Player.Stuck = true;
};
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
Graphic.addEventListener(Event.ENTER_FRAME, musictrack);
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionlarge1FX, Player.SFXVol);
engaged = false;
Core.Case = false;
CycleDur = 0;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
Core.CycleDur = Core.CycleLength;
}
public function musictrack(_arg1:Event):void{
MusicTime++;
if (MusicTime >= (64 * 35)){
Part2 = true;
};
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
Graphic.gotoAndPlay("Move");
engaged = true;
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
if (Core.Destroyed){
addHit(1000);
};
if (!transitionPause){
if (Core.ReadyPhase2){
X = (Core.getX() + 70);
Y = (Core.getY() - 10);
} else {
X = (Y = -900);
};
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
addHit(1);
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
}
}//package game.engine.NTechBattleGrounds
Section 24
//Boss21Lasers (game.engine.NTechBattleGrounds.Boss21Lasers)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Boss21Lasers extends NTechObject {
var screenDur:int;// = 0
var YCenter:Number;// = 0
var engaged:Boolean;// = false
var CellAttack1:int;// = 0
var Player:Object;
var SelfDestructed:Boolean;// = false
var CellAttack2:int;// = 18
public var TempGraphic:Class;
public var BulletGraphic:Class;
var CycleDur:int;// = 0
var draw2:Boolean;// = false
var MusicTime:int;// = 0
var shotSpeed:int;// = 6
var BeamEndX2:Number;// = 0
public var GameGraphic:Class;
public var BulletType:Class;
var transition2:Boolean;// = false
var Part2:Boolean;// = false
var transition1:Boolean;// = false
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
var SnakeAttack:Boolean;// = false
public var BulletParam:Number;// = 0
var draw1:Boolean;// = false
var BeamEndY1:Number;// = 0
var nextShot:int;// = 0
var BeamEnd:Number;// = 0
var BeamEndY2:Number;// = 0
public var DestroyGraphic:Class;
var transNum:int;// = 0
var Core:Object;
var Cycle:int;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var XCenter:Number;// = 0
var transitionPause:Boolean;// = false
var MoveDir1:Boolean;// = false
var MoveDir2:Boolean;// = true
var BeamEndX1:Number;// = 0
var moveSpeed:int;// = 8
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
public function Boss21Lasers(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Object):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
XCenter = 0;
YCenter = 0;
SelfDestructed = false;
nextShot = 0;
moveSpeed = 8;
shotSpeed = 6;
screenDur = 0;
transitionPause = false;
transition1 = false;
transition2 = false;
transNum = 0;
Cycle = 0;
CycleDur = 0;
SnakeAttack = false;
BeamEndX1 = 0;
BeamEndY1 = 0;
BeamEndX2 = 0;
BeamEndY2 = 0;
CellAttack1 = 0;
CellAttack2 = 18;
MoveDir1 = false;
MoveDir2 = true;
draw1 = false;
draw2 = false;
BeamEnd = 0;
MusicTime = 0;
Part2 = false;
super(_arg1, _arg2);
Player = _arg3;
Core = _arg4;
TempGraphic = Enemy12DestroyID;
BulletType = Ammo2Phase3;
BulletGraphic = Boss3AmmoID;
IntroGraphic = Boss21IntroID;
DestroyGraphic = Enemy20DestroyID;
GameGraphic = Boss21LasersID;
Type = "Enemy";
hitType = "Rectangle";
Name = "Cross Beam";
hitRadius = 95;
hitCenterX = -140;
hitCenterY = -30;
hitWidth = 70;
hitHeight = 110;
HP = 600;
MaxHP = 600;
AttackDamage = 1;
ScoreValue = 50;
X = -900;
Y = -900;
addEventListener("Engaged", Engage_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
if (Cycle == 1){
Player.Stuck = true;
};
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
Graphic.addEventListener(Event.ENTER_FRAME, musictrack);
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionlarge1FX, Player.SFXVol);
engaged = false;
CycleDur = 0;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
Core.LaserAlive = false;
Core.CycleDur = Core.CycleLength;
}
public function musictrack(_arg1:Event):void{
MusicTime++;
if (MusicTime >= (64 * 35)){
Part2 = true;
};
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
Graphic.gotoAndPlay("Move");
engaged = true;
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
if (Core.Destroyed){
addHit(9999);
};
if (!transitionPause){
if (Core.ReadyPhase2){
Cycle = Core.Cycle;
X = (Core.getX() + 70);
Y = (Core.getY() - 10);
if (Cycle == 0){
};
} else {
X = (Y = -900);
};
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function drawBeams():void{
if (draw1){
Graphic.graphics.clear();
Graphic.graphics.moveTo(-135, -18);
Graphic.graphics.lineStyle(5, 0xFF0000, 1);
Graphic.graphics.lineTo(BeamEndX1, BeamEndY1);
Graphic.graphics.lineStyle(2, 0xFFFFFF, 1);
Graphic.graphics.lineTo(-135, -18);
};
if (draw2){
Graphic.graphics.moveTo(-135, 40);
Graphic.graphics.lineStyle(5, 0xFF0000, 1);
Graphic.graphics.lineTo(BeamEndX2, BeamEndY2);
Graphic.graphics.lineStyle(2, 0xFFFFFF, 1);
Graphic.graphics.lineTo(-135, 40);
};
}
public function BeamCell(_arg1:int, _arg2:int):void{
if (_arg2 == 1){
if (BeamEndY1 < ((((_arg1 * 25) - 12.5) - Y) - 5)){
BeamEndY1 = (BeamEndY1 + 5);
} else {
if (BeamEndY1 > ((((_arg1 * 25) - 12.5) - Y) + 5)){
BeamEndY1 = (BeamEndY1 - 5);
} else {
BeamEndX1 = -(X);
BeamEndY1 = (((_arg1 * 25) - 12.5) - Y);
};
};
Attack([((BeamEndY1 + Y) / 25)]);
} else {
if (BeamEndY2 < ((((_arg1 * 25) - 12.5) - Y) - 5)){
BeamEndY2 = (BeamEndY2 + 5);
} else {
if (BeamEndY2 > ((((_arg1 * 25) - 12.5) - Y) + 5)){
BeamEndY2 = (BeamEndY2 - 5);
} else {
BeamEndX2 = -(X);
BeamEndY2 = (((_arg1 * 25) - 12.5) - Y);
};
};
Attack([((BeamEndY2 + Y) / 25)]);
};
drawBeams();
}
}
}//package game.engine.NTechBattleGrounds
Section 25
//Boss21RadonFlare (game.engine.NTechBattleGrounds.Boss21RadonFlare)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Boss21RadonFlare extends NTechObject {
var engaged:Boolean;// = true
var YMovement:Number;// = 10
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
var nextShot:int;// = 9000
var theta:Number;// = 0
public var DestroyGraphic:Class;
var Angle:Number;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
var numXFrames:int;// = 0
public var AttackDamage:int;// = 0
var HitIt:Boolean;// = false
public function Boss21RadonFlare(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
GameGraphic = Enemy3ID;
engaged = true;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
Movement = 10;
YMovement = 10;
SelfDestructed = false;
numXFrames = 0;
nextShot = 9000;
Angle = 0;
theta = 0;
HitIt = false;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = AmmoType1DestroyID;
BulletType = Ammo1;
BulletGraphic = AmmoType1ID;
DestroyGraphic = Enemy0DestroyID;
Type = "Enemy";
hitType = "none";
Name = "Drone";
hitRadius = 1;
hitCenterX = 999999;
hitCenterY = 999999;
HP = 9999;
MaxHP = 9999;
AttackDamage = 50;
ScoreValue = 1;
Angle = _arg4;
Movement = X;
YMovement = Y;
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HitIt = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
}
override public function main():void{
if (engaged){
if (Angle != 0){
theta = (theta + (Math.PI / 25));
Y = ((Math.sin((theta + Angle)) * 75) + YMovement);
X = ((Math.cos((theta + Angle)) * 35) + Movement);
};
if (Graphic.currentLabel == "Beam"){
nextShot = Graphic.currentFrame;
};
if ((((Graphic.currentFrame >= nextShot)) && (!(HitIt)))){
Attack([(Y / 25), ((Y / 25) + 1), ((Y / 25) - 1)]);
};
if ((((Graphic.currentLabel == "Done")) || ((Graphic.currentLabel == "Done2")))){
dispatchEvent(new Event("EnemyDestroyed"));
HitIt = true;
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
}
}//package game.engine.NTechBattleGrounds
Section 26
//Boss21shield (game.engine.NTechBattleGrounds.Boss21shield)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Boss21shield extends NTechObject {
var screenDur:int;// = 0
var YCenter:Number;// = 0
var engaged:Boolean;// = false
var chargeCol:int;// = 0
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
var CycleDur:int;// = 0
var shotSpeed:int;// = 6
public var GameGraphic:Class;
public var BulletType:Class;
var transition2:Boolean;// = false
var Part2:Boolean;// = false
var transition1:Boolean;// = false
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
var SnakeAttack:Boolean;// = false
public var BulletParam:Number;// = 0
var BeamEnd:Number;// = 0
var nextShot:int;// = 0
public var DestroyGraphic:Class;
var transNum:int;// = 0
var Core:Object;
var Cycle:int;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var XCenter:Number;// = 0
var transitionPause:Boolean;// = false
var Time:int;// = 0
var moveSpeed:int;// = 8
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
public function Boss21shield(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Object):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
XCenter = 0;
YCenter = 0;
SelfDestructed = false;
nextShot = 0;
moveSpeed = 8;
shotSpeed = 6;
screenDur = 0;
transitionPause = false;
transition1 = false;
transition2 = false;
transNum = 0;
Cycle = 0;
CycleDur = 0;
SnakeAttack = false;
BeamEnd = 0;
Time = 0;
Part2 = false;
chargeCol = 0;
super(_arg1, _arg2);
Player = _arg3;
Core = _arg4;
TempGraphic = Enemy12DestroyID;
BulletType = Boss21RadonFlare;
BulletGraphic = Boss21RadonFlareID;
IntroGraphic = Boss21IntroID;
DestroyGraphic = Enemy20DestroyID;
GameGraphic = Boss21shieldID;
Type = "Enemy";
hitType = "Circle";
Name = "Mirror";
hitRadius = 50;
hitCenterX = 0;
hitCenterY = 0;
hitWidth = 170;
hitHeight = 170;
HP = 200;
MaxHP = 200;
AttackDamage = 2;
ScoreValue = 50;
X = -900;
Y = -900;
addEventListener("Engaged", Engage_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionlarge1FX, Player.SFXVol);
engaged = false;
CycleDur = 0;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
BulletType = Ammo2Phase4;
BulletGraphic = phase4photonID;
TempGraphicX = X;
TempGraphicY = Y;
BulletParam = 10;
dispatchEvent(new Event("RequestObject"));
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
Graphic.gotoAndPlay("Move");
engaged = true;
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, chargeCol);
Time++;
if (Time == 102){
X = (Core.ShieldX - 90);
Y = Core.ShieldY;
};
if (Core.Destroyed){
addHit(9000);
};
if (chargeCol >= 254){
chargeCol = 0;
BulletType = Boss21RadonFlare;
BulletGraphic = Boss21RadonFlareID;
TempGraphicX = X;
TempGraphicY = Y;
BulletParam = 0;
dispatchEvent(new Event("RequestObject"));
};
if ((Core.getY() + 1) > Y){
Y++;
} else {
if ((Core.getY() - 1) < Y){
Y--;
};
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
}
}//package game.engine.NTechBattleGrounds
Section 27
//Boss21Shot (game.engine.NTechBattleGrounds.Boss21Shot)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class Boss21Shot extends NTechObject {
var engaged:Boolean;// = true
var YMovement:Number;// = 10
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:int;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
var nextShot:int;// = 0
public var DestroyGraphic:Class;
var Angle:Number;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
var numXFrames:int;// = 0
public var AttackDamage:int;// = 0
public function Boss21Shot(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
GameGraphic = Enemy3ID;
engaged = true;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
Movement = 10;
YMovement = 10;
SelfDestructed = false;
numXFrames = 0;
nextShot = 0;
Angle = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = Enemy0DestroyID;
BulletType = 0;
BulletGraphic = AmmoType1ID;
DestroyGraphic = Enemy0DestroyID;
Type = "Enemy";
hitType = "None";
Name = "P29Z5";
hitRadius = 0;
hitCenterX = 9999999;
hitCenterY = 9999999;
HP = 25;
AttackDamage = 5;
ScoreValue = 50;
Angle = _arg4;
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
}
override public function main():void{
if (engaged){
Graphic.rotation = ((Angle * (180 / Math.PI)) + 180);
X = (X + (Math.cos(Angle) * 10));
Y = (Y + (Math.sin(Angle) * 10));
if (X <= 150){
Attack([(Y / 25)]);
};
if (X <= 0){
dispatchEvent(new Event("EnemyDestroyed"));
};
if ((((((Y < 0)) || ((Y > 465)))) || ((X > 720)))){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
}
}//package game.engine.NTechBattleGrounds
Section 28
//Boss21Snake (game.engine.NTechBattleGrounds.Boss21Snake)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Boss21Snake extends NTechObject {
var screenDur:int;// = 0
var YCenter:Number;// = 0
var engaged:Boolean;// = false
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
var CycleDur:int;// = 0
var MusicTime:int;// = 0
var shotSpeed:int;// = 6
var BeamEndX2:Number;// = 0
public var GameGraphic:Class;
var Attacking:Boolean;// = false
public var BulletType:Class;
var transition2:Boolean;// = false
var Part2:Boolean;// = false
var transition1:Boolean;// = false
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
var SnakeAttack:Boolean;// = false
public var BulletParam:Number;// = 0
var BeamEndY1:Number;// = 0
var nextShot:int;// = 0
var BeamEnd:Number;// = 0
var BeamEndY2:Number;// = 0
public var DestroyGraphic:Class;
var transNum:int;// = 0
var Core:Object;
var Cycle:int;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var XCenter:Number;// = 0
var transitionPause:Boolean;// = false
var BeamEndX1:Number;// = 0
var moveSpeed:int;// = 8
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
public function Boss21Snake(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Object):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
XCenter = 0;
YCenter = 0;
SelfDestructed = false;
nextShot = 0;
moveSpeed = 8;
shotSpeed = 6;
screenDur = 0;
transitionPause = false;
transition1 = false;
transition2 = false;
transNum = 0;
Cycle = 0;
CycleDur = 0;
SnakeAttack = false;
BeamEndX1 = 0;
BeamEndY1 = 0;
BeamEndX2 = 0;
BeamEndY2 = 0;
BeamEnd = 0;
MusicTime = 0;
Part2 = false;
Attacking = false;
super(_arg1, _arg2);
Player = _arg3;
Core = _arg4;
TempGraphic = Enemy12DestroyID;
BulletType = Ammo2Phase3;
BulletGraphic = Boss3AmmoID;
IntroGraphic = Boss21IntroID;
DestroyGraphic = Enemy20DestroyID;
GameGraphic = Boss21SnakeID;
Type = "Enemy";
hitType = "Rectangle";
Name = "Snatch";
hitRadius = 95;
hitCenterX = -85;
hitCenterY = -85;
hitWidth = 170;
hitHeight = 170;
HP = 400;
MaxHP = 400;
AttackDamage = 20;
ScoreValue = 50;
X = -900;
Y = -900;
addEventListener("Engaged", Engage_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
if (Cycle == 1){
Player.Stuck = true;
};
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
Graphic.addEventListener(Event.ENTER_FRAME, musictrack);
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionlarge1FX, Player.SFXVol);
engaged = false;
CycleDur = 0;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
Core.SnakeAlive = false;
Core.CycleDur = Core.CycleLength;
}
public function musictrack(_arg1:Event):void{
MusicTime++;
if (MusicTime >= (64 * 35)){
Part2 = true;
};
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
Graphic.gotoAndPlay("Move");
engaged = true;
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
if (Core.Destroyed){
addHit(500);
};
if (Core.ReadyPhase2){
if (!Core.Case){
addHit(500);
};
X = (Core.getX() + 70);
Y = (Core.getY() - 10);
if (Graphic.currentLabel == "EndMove"){
Graphic.gotoAndPlay("Move");
};
if (((Core.SnakeAttack) && (!(Attacking)))){
Graphic.gotoAndPlay("Strike");
Attacking = true;
};
if (Attacking){
if (Graphic.currentFrame == 44){
Attack([((Y / 25) - 1)]);
makeSound(swoosh3FX, Player.SFXVol);
};
if (Graphic.currentLabel == "EndStrike"){
Attacking = false;
};
};
} else {
X = (Y = -900);
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
if (Cycle == 3){
addHit(1);
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
};
}
}
}//package game.engine.NTechBattleGrounds
Section 29
//Boss21Turret (game.engine.NTechBattleGrounds.Boss21Turret)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Boss21Turret extends NTechObject {
var screenDur:int;// = 0
var YCenter:Number;// = 0
var engaged:Boolean;// = false
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
var CycleDur:int;// = 0
var MusicTime:int;// = 0
var shotSpeed:int;// = 6
var BeamEndX2:Number;// = 0
public var GameGraphic:Class;
public var BulletType:Class;
var transition2:Boolean;// = false
var Part2:Boolean;// = false
var transition1:Boolean;// = false
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
var SnakeAttack:Boolean;// = false
public var BulletParam:Number;// = 0
var BeamEndY1:Number;// = 0
var nextShot:int;// = 0
var BeamEnd:Number;// = 0
var BeamEndY2:Number;// = 0
public var DestroyGraphic:Class;
var transNum:int;// = 0
var Core:Object;
var Cycle:int;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var XCenter:Number;// = 0
var transitionPause:Boolean;// = false
var BeamEndX1:Number;// = 0
var moveSpeed:int;// = 8
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
public function Boss21Turret(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Object):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
XCenter = 0;
YCenter = 0;
SelfDestructed = false;
nextShot = 0;
moveSpeed = 8;
shotSpeed = 6;
screenDur = 0;
transitionPause = false;
transition1 = false;
transition2 = false;
transNum = 0;
Cycle = 0;
CycleDur = 0;
SnakeAttack = false;
BeamEndX1 = 0;
BeamEndY1 = 0;
BeamEndX2 = 0;
BeamEndY2 = 0;
BeamEnd = 0;
MusicTime = 0;
Part2 = false;
super(_arg1, _arg2);
Player = _arg3;
Core = _arg4;
TempGraphic = Enemy12DestroyID;
BulletType = Boss21Shot;
BulletGraphic = boss21ammoID;
IntroGraphic = Boss21IntroID;
DestroyGraphic = Enemy20DestroyID;
GameGraphic = Boss21TurretID;
Type = "Enemy";
hitType = "Rectangle";
Name = "Neutralizer";
hitRadius = 95;
hitCenterX = -85;
hitCenterY = -85;
hitWidth = 170;
hitHeight = 170;
HP = 600;
MaxHP = 600;
AttackDamage = 2;
ScoreValue = 50;
X = -900;
Y = -900;
addEventListener("Engaged", Engage_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
Graphic.addEventListener(Event.ENTER_FRAME, musictrack);
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionlarge1FX, Player.SFXVol);
engaged = false;
CycleDur = 0;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
Core.CannonAlive = false;
Core.CycleDur = Core.CycleLength;
}
public function musictrack(_arg1:Event):void{
MusicTime++;
if (MusicTime >= (64 * 35)){
Part2 = true;
};
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
Graphic.gotoAndPlay("Move");
engaged = true;
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
if (Core.Destroyed){
addHit(500);
};
if (Core.ReadyPhase2){
if (!Core.Case){
addHit(5000);
};
X = (Core.getX() + 70);
Y = (Core.getY() - 10);
Cycle = Core.Cycle;
if (Core.FireCannon){
TempGraphicX = (X - 38);
TempGraphicY = (Y + 52);
BulletParam = Math.PI;
dispatchEvent(new Event("RequestObject"));
BulletParam = (Math.PI + (Math.PI / 4));
dispatchEvent(new Event("RequestObject"));
BulletParam = (Math.PI + (Math.PI / 8));
dispatchEvent(new Event("RequestObject"));
BulletParam = (Math.PI - (Math.PI / 4));
dispatchEvent(new Event("RequestObject"));
BulletParam = (Math.PI - (Math.PI / 8));
dispatchEvent(new Event("RequestObject"));
};
} else {
X = (Y = -900);
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
}
}//package game.engine.NTechBattleGrounds
Section 30
//Boss5 (game.engine.NTechBattleGrounds.Boss5)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Boss5 extends NTechObject {
var screenDur:int;// = 0
var YCenter:Number;// = 0
var engaged:Boolean;// = false
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
var CycleDur:int;// = 0
public var GameGraphic:Class;
public var BulletType:Class;
var transition2:Boolean;// = false
var transition1:Boolean;// = false
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;// = 0
var nextShot:int;// = 0
public var DestroyGraphic:Class;
var transNum:int;// = 0
var Cycle:int;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var XCenter:Number;// = 0
var moveSpeed:int;// = 18
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
public function Boss5(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
XCenter = 0;
YCenter = 0;
SelfDestructed = false;
nextShot = 0;
moveSpeed = 18;
screenDur = 0;
Cycle = 0;
CycleDur = 0;
transition1 = false;
transition2 = false;
transNum = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = Enemy0DestroyID;
BulletType = Ammo3;
BulletGraphic = Boss5_Ammo1ID;
IntroGraphic = Boss5IntroID;
DestroyGraphic = Boss5DestroyID;
GameGraphic = Boss5ID;
Type = "Enemy";
hitType = "Rectangle";
Name = "PRETZEL";
hitRadius = 10;
hitCenterX = -100;
hitCenterY = -100;
hitWidth = 150;
hitHeight = 150;
HP = 1000;
MaxHP = 1000;
AttackDamage = 10;
ScoreValue = 50;
XCenter = X;
YCenter = Y;
addEventListener("Engaged", Engage_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
CycleDur = 0;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
engaged = true;
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
var _local1:*;
if (engaged){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
CycleDur++;
nextShot++;
X = (X + ((XCenter - X) / 20));
Y = (Y + ((YCenter - Y) / 20));
if ((((((Cycle == 0)) || ((Cycle == 2)))) || ((Cycle == 4)))){
if ((CycleDur % 20) == 0){
XCenter = ((Math.random() * 500) + 200);
YCenter = ((Math.random() * 400) + 50);
};
if (nextShot == moveSpeed){
nextShot = 0;
makeSound(boss1dronesFX, Player.SFXVol);
TempGraphicX = (X - 100);
TempGraphicY = Y;
BulletParam = (Math.PI + 0.2);
dispatchEvent(new Event("RequestObject"));
TempGraphicX = (X - 100);
TempGraphicY = Y;
BulletParam = (Math.PI - 0.2);
dispatchEvent(new Event("RequestObject"));
};
} else {
if (Cycle == 1){
if (CycleDur == 70){
makeSound(gameoverFX, Player.SFXVol);
};
if (CycleDur > 140){
CycleDur = 250;
};
} else {
if (Cycle == 3){
if (CycleDur < 225){
Graphic.rotation = (Graphic.rotation + 25);
} else {
_local1 = 0;
while (_local1 < 25) {
if (Graphic.rotation < 0){
Graphic.rotation++;
} else {
if (Graphic.rotation > 0){
Graphic.rotation--;
};
};
_local1++;
};
};
if ((CycleDur % 18) == 0){
makeSound(boss1dronesFX, Player.SFXVol);
};
if (nextShot == 4){
nextShot = 0;
makeSound(boss1dronesFX, Player.SFXVol);
TempGraphicX = X;
TempGraphicY = Y;
BulletParam = (Math.random() * (2 * Math.PI));
dispatchEvent(new Event("RequestObject"));
};
} else {
if (Cycle == 5){
if (CycleDur == 70){
makeSound(gameoverFX, Player.SFXVol);
};
if (CycleDur == 120){
CycleDur = 230;
forceSound(beamwallFX, Player.SFXVol);
TempGraphicX = X;
TempGraphicY = (Y + 85);
dispatchEvent(new Event("RequestObject"));
};
};
};
};
};
if (CycleDur >= 250){
Cycle++;
if (Cycle > 5){
Cycle = Math.floor((Math.random() * 5));
};
if ((((((Cycle == 0)) || ((Cycle == 2)))) || ((Cycle == 4)))){
if ((getHP() / MaxHP) > 0.6){
Graphic.gotoAndPlay(1);
moveSpeed = 18;
} else {
if (((((getHP() / MaxHP) < 0.6)) && (((getHP() / MaxHP) > 0.4)))){
Graphic.gotoAndPlay("Move2");
moveSpeed = 13;
} else {
Graphic.gotoAndPlay("Move3");
moveSpeed = 8;
};
};
nextShot = 0;
BulletType = Ammo3;
BulletGraphic = Boss5_Ammo1ID;
hitType = "Rectangle";
hitRadius = 10;
hitCenterX = -100;
hitCenterY = -100;
hitWidth = 150;
hitHeight = 150;
} else {
if (Cycle == 1){
if ((getHP() / MaxHP) > 0.6){
Graphic.gotoAndPlay("Charge");
} else {
if (((((getHP() / MaxHP) < 0.6)) && (((getHP() / MaxHP) > 0.4)))){
Graphic.gotoAndPlay("Charge2");
} else {
Graphic.gotoAndPlay("Charge3");
};
};
XCenter = 450;
YCenter = 200;
nextShot = 0;
BulletType = Ammo3;
BulletGraphic = Boss5_Ammo1ID;
hitType = "Circle";
hitRadius = 20;
hitCenterX = 0;
hitCenterY = 85;
hitWidth = 0;
hitHeight = 0;
} else {
if (Cycle == 3){
if ((getHP() / MaxHP) > 0.6){
Graphic.gotoAndPlay(1);
} else {
if (((((getHP() / MaxHP) < 0.6)) && (((getHP() / MaxHP) > 0.4)))){
Graphic.gotoAndPlay("Move2");
} else {
Graphic.gotoAndPlay("Move3");
};
};
XCenter = 450;
YCenter = 200;
nextShot = 0;
BulletType = Ammo3;
BulletGraphic = Boss5_Ammo1ID;
hitType = "Rectangle";
hitRadius = 10;
hitCenterX = -100;
hitCenterY = -100;
hitWidth = 150;
hitHeight = 150;
} else {
if (Cycle == 5){
if ((getHP() / MaxHP) > 0.6){
Graphic.gotoAndPlay("Charge");
} else {
if (((((getHP() / MaxHP) < 0.6)) && (((getHP() / MaxHP) > 0.4)))){
Graphic.gotoAndPlay("Charge2");
} else {
Graphic.gotoAndPlay("Charge3");
};
};
XCenter = 350;
YCenter = ((Math.random() * 200) + 100);
nextShot = 0;
BulletType = Ammo2;
BulletGraphic = Boss5_Ammo2ID;
hitType = "Circle";
hitRadius = 20;
hitCenterX = 0;
hitCenterY = 85;
hitWidth = 0;
hitHeight = 0;
};
};
};
};
CycleDur = 0;
};
if (((((((getHP() / MaxHP) < 0.6)) && (((getHP() / MaxHP) > 0.4)))) && ((CycleDur <= 25)))){
if (((!(transition1)) && ((transNum < 25)))){
transNum++;
TempGraphicX = (((Math.random() * 200) - 100) + X);
TempGraphicY = (((Math.random() * 200) - 100) + Y);
dispatchEvent(new Event("RequestTemp"));
if ((transNum % 5) == 0){
makeSound(explosionmedium1FX, Player.SFXVol);
};
} else {
transition1 = true;
transNum = 0;
};
} else {
if (((((getHP() / MaxHP) < 0.4)) && ((CycleDur <= 25)))){
if (((!(transition2)) && ((transNum < 25)))){
transNum++;
TempGraphicX = (((Math.random() * 200) - 100) + X);
TempGraphicY = (((Math.random() * 200) - 100) + Y);
dispatchEvent(new Event("RequestTemp"));
if ((transNum % 5) == 0){
makeSound(explosionmedium1FX, Player.SFXVol);
};
} else {
transition2 = true;
transNum = 0;
};
};
};
if (Graphic.currentLabel == "Cycle1"){
Graphic.gotoAndPlay(1);
} else {
if (Graphic.currentLabel == "Cycle2"){
Graphic.gotoAndPlay("Charge");
} else {
if (Graphic.currentLabel == "Cycle3"){
Graphic.gotoAndPlay("Move2");
} else {
if (Graphic.currentLabel == "Cycle4"){
Graphic.gotoAndPlay("Charge2");
} else {
if (Graphic.currentLabel == "Cycle5"){
Graphic.gotoAndPlay("Move3");
} else {
if (Graphic.currentLabel == "Cycle6"){
Graphic.gotoAndPlay("Charge3");
};
};
};
};
};
};
};
if (Destroyed){
CycleDur++;
if (CycleDur < 75){
Y++;
TempGraphicX = (((Math.random() * 200) - 100) + X);
TempGraphicY = (((Math.random() * 200) - 100) + Y);
dispatchEvent(new Event("RequestTemp"));
Graphic.gotoAndStop("Move3");
if ((CycleDur % 10) == 0){
makeSound(explosionmedium1FX, Player.SFXVol);
};
} else {
if (Graphic.currentLabel == "Done"){
makeSound(explosionlarge1FX, Player.SFXVol);
dispatchEvent(new Event("EnemyDestroyed"));
} else {
Graphic.play();
};
};
};
}
public function Beam_Handler(_arg1:Event):void{
if ((((Cycle == 1)) || ((Cycle == 5)))){
addHit(1);
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
};
}
}
}//package game.engine.NTechBattleGrounds
Section 31
//ClassicShot1 (game.engine.NTechBattleGrounds.ClassicShot1)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class ClassicShot1 extends NTechObject {
var engaged:Boolean;// = true
var YMovement:Number;// = 10
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;
var nextShot:int;// = 0
var ObjectList:Array;
public var DestroyGraphic:Class;
var Angle:Number;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
var speedX:int;// = 0
public var AttackDamage:int;// = 0
var HitIt:Boolean;// = false
public function ClassicShot1(_arg1:Number, _arg2:Number, _arg3:Array, _arg4:Number):void{
GameGraphic = Enemy3ID;
engaged = true;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
Movement = 10;
YMovement = 10;
SelfDestructed = false;
speedX = 0;
nextShot = 0;
Angle = 0;
HitIt = false;
ObjectList = new Array();
super(_arg1, _arg2);
ObjectList = _arg3;
TempGraphic = LightningGraphicID;
BulletType = Ammo1Phase3;
BulletGraphic = phase3ammoID;
DestroyGraphic = phase3ammoDestroyID;
Type = "Enemy";
hitType = "Circle";
Name = "P29Z5";
hitRadius = 12;
hitCenterX = 0;
hitCenterY = 0;
HP = 25;
AttackDamage = 5;
ScoreValue = 50;
Angle = _arg4;
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
}
override public function main():void{
var _local1:*;
if (engaged){
nextShot++;
if (!HitIt){
X = (X + nextShot);
_local1 = 0;
while (_local1 < ObjectList.length) {
if (ObjectList[_local1] != this){
if (hitTest(this, ObjectList[_local1])){
HitIt = true;
ObjectList[_local1].dispatchEvent(new Event("ParticleDestroy"));
break;
};
};
_local1++;
};
} else {
Graphic.width = (Graphic.width + 10);
Graphic.height = (Graphic.height + 10);
Graphic.alpha = (Graphic.alpha - 0.05);
hitRadius = (hitRadius + 5);
_local1 = 0;
while (_local1 < ObjectList.length) {
if (ObjectList[_local1] != this){
if (hitTest(this, ObjectList[_local1])){
ObjectList[_local1].dispatchEvent(new Event("ParticleDestroy"));
};
};
_local1++;
};
if (Graphic.alpha <= 0){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
if ((((((((X < 0)) || ((X > 700)))) || ((Y < 0)))) || ((Y > 500)))){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
public function hitTest(_arg1:NTechObject, _arg2:NTechObject):Boolean{
var _local3:Boolean;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
_local3 = false;
if ((((_arg1.hitType == "Circle")) && ((_arg2.hitType == "Circle")))){
_local17 = Math.abs((((_arg1.getX() + _arg1.getHitCenterX()) - _arg2.getX()) + _arg2.getHitCenterX()));
_local18 = Math.abs((((_arg1.getY() + _arg1.getHitCenterY()) - _arg2.getY()) + _arg2.getHitCenterY()));
_local19 = Math.sqrt(((_local17 * _local17) + (_local18 * _local18)));
if (_local19 < (_arg1.getHitRadius() + _arg2.getHitRadius())){
_local3 = true;
} else {
_local3 = false;
};
} else {
if ((((_arg1.hitType == "Rectangle")) || ((_arg2.hitType == "Rectangle")))){
if (_arg1.hitType == "Circle"){
_local4 = (_arg1.getHitCenterX() + _arg1.getX());
_local5 = (_arg1.getHitCenterY() + _arg1.getY());
_local6 = (_arg2.getHitCenterX() + _arg2.getX());
_local7 = (_arg2.getHitCenterY() + _arg2.getY());
_local8 = _arg2.getHitWidth();
_local9 = _arg2.getHitHeight();
_local10 = _arg1.getHitRadius();
_local11 = _local4;
_local12 = _local5;
if (_local11 < _local6){
_local11 = _local6;
};
if (_local11 > (_local6 + _local8)){
_local11 = (_local6 + _local8);
};
if (_local12 < _local7){
_local12 = _local7;
};
if (_local12 > (_local7 + _local9)){
_local12 = (_local7 + _local9);
};
if ((((_local4 - _local11) * (_local4 - _local11)) + ((_local5 - _local12) * (_local5 - _local12))) < (_local10 * _local10)){
_local3 = true;
};
} else {
if (_arg2.hitType == "Circle"){
_local4 = (_arg2.getHitCenterX() + _arg2.getX());
_local5 = (_arg2.getHitCenterY() + _arg2.getY());
_local6 = (_arg1.getHitCenterX() + _arg1.getX());
_local7 = (_arg1.getHitCenterY() + _arg1.getY());
_local8 = _arg1.getHitWidth();
_local9 = _arg1.getHitHeight();
_local10 = _arg2.getHitRadius();
_local11 = _local4;
_local12 = _local5;
if (_local11 < _local6){
_local11 = _local6;
};
if (_local11 > (_local6 + _local8)){
_local11 = (_local6 + _local8);
};
if (_local12 < _local7){
_local12 = _local7;
};
if (_local12 > (_local7 + _local9)){
_local12 = (_local7 + _local9);
};
if ((((_local4 - _local11) * (_local4 - _local11)) + ((_local5 - _local12) * (_local5 - _local12))) < (_local10 * _local10)){
_local3 = true;
};
};
};
} else {
if ((((_arg1.hitType == "Rectangle")) && ((_arg2.hitType == "Rectangle")))){
_local6 = (_arg1.getHitCenterX() + _arg1.getX());
_local7 = (_arg1.getHitCenterY() + _arg1.getY());
_local8 = _arg1.getHitWidth();
_local9 = _arg1.getHitHeight();
_local13 = (_arg2.getHitCenterX() + _arg2.getX());
_local14 = (_arg2.getHitCenterY() + _arg2.getY());
_local15 = _arg2.getHitWidth();
_local16 = _arg2.getHitHeight();
if ((((((_local6 > (_local13 + _local15))) || (((_local6 + _local8) < _local13)))) && ((((_local7 > (_local14 + _local16))) || (((_local7 + _local9) < _local14)))))){
_local3 = false;
} else {
_local3 = true;
};
};
};
};
return (_local3);
}
}
}//package game.engine.NTechBattleGrounds
Section 32
//ClassicShot2 (game.engine.NTechBattleGrounds.ClassicShot2)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class ClassicShot2 extends NTechObject {
var engaged:Boolean;// = true
var YMovement:Number;// = 10
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;
var nextShot:int;// = 0
var ObjectList:Array;
public var DestroyGraphic:Class;
var Angle:Number;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
var speedX:int;// = 0
public var AttackDamage:int;// = 0
var HitIt:Boolean;// = false
public function ClassicShot2(_arg1:Number, _arg2:Number, _arg3:Array, _arg4:Number):void{
GameGraphic = Enemy3ID;
engaged = true;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
Movement = 10;
YMovement = 10;
SelfDestructed = false;
speedX = 0;
nextShot = 0;
Angle = 0;
HitIt = false;
ObjectList = new Array();
super(_arg1, _arg2);
ObjectList = _arg3;
TempGraphic = LightningGraphicID;
BulletType = Ammo1Phase3;
BulletGraphic = phase3ammoID;
DestroyGraphic = phase3ammoDestroyID;
Type = "Enemy";
hitType = "Circle";
Name = "P29Z5";
hitRadius = 40;
hitCenterX = 0;
hitCenterY = 0;
HP = 25;
AttackDamage = 5;
ScoreValue = 50;
Angle = _arg4;
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
Graphic.width = 80;
Graphic.height = 80;
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
}
override public function main():void{
var _local1:*;
if (engaged){
nextShot++;
Graphic.width = (Graphic.width - 20);
Graphic.height = (Graphic.height - 20);
hitRadius = (hitRadius - 10);
_local1 = 0;
while (_local1 < ObjectList.length) {
if (ObjectList[_local1] != this){
if (hitTest(this, ObjectList[_local1])){
ObjectList[_local1].addHit(1);
};
};
_local1++;
};
if (Graphic.width <= 5){
dispatchEvent(new Event("EnemyDestroyed"));
};
if ((((((((X < 0)) || ((X > 700)))) || ((Y < 0)))) || ((Y > 500)))){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
public function hitTest(_arg1:NTechObject, _arg2:NTechObject):Boolean{
var _local3:Boolean;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
_local3 = false;
if ((((_arg1.hitType == "Circle")) && ((_arg2.hitType == "Circle")))){
_local17 = Math.abs((((_arg1.getX() + _arg1.getHitCenterX()) - _arg2.getX()) + _arg2.getHitCenterX()));
_local18 = Math.abs((((_arg1.getY() + _arg1.getHitCenterY()) - _arg2.getY()) + _arg2.getHitCenterY()));
_local19 = Math.sqrt(((_local17 * _local17) + (_local18 * _local18)));
if (_local19 < (_arg1.getHitRadius() + _arg2.getHitRadius())){
_local3 = true;
} else {
_local3 = false;
};
} else {
if ((((_arg1.hitType == "Rectangle")) || ((_arg2.hitType == "Rectangle")))){
if (_arg1.hitType == "Circle"){
_local4 = (_arg1.getHitCenterX() + _arg1.getX());
_local5 = (_arg1.getHitCenterY() + _arg1.getY());
_local6 = (_arg2.getHitCenterX() + _arg2.getX());
_local7 = (_arg2.getHitCenterY() + _arg2.getY());
_local8 = _arg2.getHitWidth();
_local9 = _arg2.getHitHeight();
_local10 = _arg1.getHitRadius();
_local11 = _local4;
_local12 = _local5;
if (_local11 < _local6){
_local11 = _local6;
};
if (_local11 > (_local6 + _local8)){
_local11 = (_local6 + _local8);
};
if (_local12 < _local7){
_local12 = _local7;
};
if (_local12 > (_local7 + _local9)){
_local12 = (_local7 + _local9);
};
if ((((_local4 - _local11) * (_local4 - _local11)) + ((_local5 - _local12) * (_local5 - _local12))) < (_local10 * _local10)){
_local3 = true;
};
} else {
if (_arg2.hitType == "Circle"){
_local4 = (_arg2.getHitCenterX() + _arg2.getX());
_local5 = (_arg2.getHitCenterY() + _arg2.getY());
_local6 = (_arg1.getHitCenterX() + _arg1.getX());
_local7 = (_arg1.getHitCenterY() + _arg1.getY());
_local8 = _arg1.getHitWidth();
_local9 = _arg1.getHitHeight();
_local10 = _arg2.getHitRadius();
_local11 = _local4;
_local12 = _local5;
if (_local11 < _local6){
_local11 = _local6;
};
if (_local11 > (_local6 + _local8)){
_local11 = (_local6 + _local8);
};
if (_local12 < _local7){
_local12 = _local7;
};
if (_local12 > (_local7 + _local9)){
_local12 = (_local7 + _local9);
};
if ((((_local4 - _local11) * (_local4 - _local11)) + ((_local5 - _local12) * (_local5 - _local12))) < (_local10 * _local10)){
_local3 = true;
};
};
};
} else {
if ((((_arg1.hitType == "Rectangle")) && ((_arg2.hitType == "Rectangle")))){
_local6 = (_arg1.getHitCenterX() + _arg1.getX());
_local7 = (_arg1.getHitCenterY() + _arg1.getY());
_local8 = _arg1.getHitWidth();
_local9 = _arg1.getHitHeight();
_local13 = (_arg2.getHitCenterX() + _arg2.getX());
_local14 = (_arg2.getHitCenterY() + _arg2.getY());
_local15 = _arg2.getHitWidth();
_local16 = _arg2.getHitHeight();
if ((((((_local6 > (_local13 + _local15))) || (((_local6 + _local8) < _local13)))) && ((((_local7 > (_local14 + _local16))) || (((_local7 + _local9) < _local14)))))){
_local3 = false;
} else {
_local3 = true;
};
};
};
};
return (_local3);
}
}
}//package game.engine.NTechBattleGrounds
Section 33
//Enemy0 (game.engine.NTechBattleGrounds.Enemy0)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class Enemy0 extends NTechObject {
var engaged:Boolean;// = false
var YMovement:Number;
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:int;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var DestroyGraphic:Class;
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 0
var numXFrames:int;// = 0
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
public function Enemy0(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
var _local5:int;
var _local6:*;
IntroGraphic = Enemy0IntroID;
DestroyGraphic = Enemy0DestroyID;
GameGraphic = Enemy0ID;
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
Movement = 0;
SelfDestructed = false;
numXFrames = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = LightningGraphicID;
BulletType = 0;
BulletGraphic = SimpleEnemyShotID;
Type = "Enemy";
Name = "F777DD";
hitRadius = 20;
hitCenterX = 0;
hitCenterY = 0;
HP = 1;
AttackDamage = 10;
ScoreValue = 50;
_local5 = 0;
_local6 = X;
while (_local6 > 0) {
_local5++;
numXFrames++;
_local6 = (_local6 - _local5);
};
YMovement = ((Player.getY() - Y) / (numXFrames + 10));
addEventListener("Engaged", Engage_Handler);
makeSound(swoosh1FX, Player.SFXVol);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
Graphic.rotation = (Graphic.rotation + 10);
addHit(Player.getWeaponDamage());
makeSound(explosionsmall1FX, Player.SFXVol);
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
engaged = true;
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
Movement = (Movement + 0.5);
X = (X - Movement);
Y = (Y + YMovement);
if (X < 150){
Attack([(Y / 25), ((Y / 25) - 1), ((Y / 25) + 1)]);
};
if (X < 0){
dispatchEvent(new Event("OffScreen"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
Graphic.rotation = (Graphic.rotation + 10);
makeSound(explosionsmall1FX, Player.SFXVol);
addHit();
}
}
}//package game.engine.NTechBattleGrounds
Section 34
//Enemy1 (game.engine.NTechBattleGrounds.Enemy1)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class Enemy1 extends NTechObject {
var engaged:Boolean;// = false
var YMovement:Number;// = 5
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:int;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var DestroyGraphic:Class;
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
var numXFrames:int;// = 0
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
public function Enemy1(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
IntroGraphic = Enemy1IntroID;
DestroyGraphic = Enemy1DestroyID;
GameGraphic = Enemy1ID;
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
Movement = 10;
YMovement = 5;
SelfDestructed = false;
numXFrames = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = LightningGraphicID;
BulletType = 0;
BulletGraphic = SimpleEnemyShotID;
Type = "Enemy";
Name = "35DF8";
hitRadius = 20;
hitCenterX = 0;
hitCenterY = 0;
HP = 1;
AttackDamage = 5;
ScoreValue = 50;
addEventListener("Engaged", Engage_Handler);
makeSound(swoosh1FX, Player.SFXVol);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionsmall1FX, Player.SFXVol);
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
Graphic.rotation = (Graphic.rotation + 10);
addHit(Player.getWeaponDamage());
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
engaged = true;
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
X = (X - Movement);
if (Player.getY() > (Y + YMovement)){
Y = (Y + YMovement);
} else {
if (Player.getY() < (Y - YMovement)){
Y = (Y - YMovement);
};
};
if (X < 400){
YMovement = 0;
Movement = 25;
};
if (X < 150){
Attack([(Y / 25), ((Y / 25) - 1), ((Y / 25) + 1)]);
};
if (X < 0){
dispatchEvent(new Event("OffScreen"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
}
}//package game.engine.NTechBattleGrounds
Section 35
//Enemy10 (game.engine.NTechBattleGrounds.Enemy10)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Enemy10 extends NTechObject {
var speedY:Number;// = 10
var engaged:Boolean;// = false
var Player:Object;
var SelfDestructed:Boolean;// = false
var speed:Number;// = 10
var FlyInto:Boolean;// = true
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;// = 0
var nextShot:int;// = 0
var numShot:int;// = 0
public var DestroyGraphic:Class;
var hitPlayer:Boolean;// = false
var Graphic:MovieClip;
public var AttackCells:Array;
var FlyIn:Boolean;// = true
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
public function Enemy10(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
SelfDestructed = false;
FlyIn = true;
FlyInto = true;
nextShot = 0;
speed = 10;
speedY = 10;
numShot = 0;
hitPlayer = false;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = LightningGraphicID;
BulletType = AmmoWallBeam;
BulletGraphic = WallBeamID;
IntroGraphic = Enemy10IntroID;
DestroyGraphic = Enemy10DestroyID;
GameGraphic = Enemy10ID;
Type = "Enemy";
hitType = "Circle";
Name = "SP11T";
hitRadius = 28;
hitCenterX = 0;
hitCenterY = 0;
hitWidth = 0;
hitHeight = 0;
HP = 30;
MaxHP = 30;
AttackDamage = 10;
ScoreValue = 50;
speedY = ((Math.random() * 300) + 100);
speed = ((Math.random() * 500) + 200);
addEventListener("Engaged", Engage_Handler);
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
Graphic.gotoAndPlay("Move2");
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionmedium1FX, Player.SFXVol);
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", PlayerHit_Handler);
addEventListener("OffScreen", OffScreen_Handler);
engaged = true;
makeSound(swoosh2FX, Player.SFXVol);
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
if (FlyIn){
if (!hitPlayer){
if (X < 150){
Attack([(Y / 25), ((Y / 25) - 1), ((Y / 25) + 1)]);
};
};
if (FlyInto){
if (nextShot == 15){
X = (X - 15);
if (X <= 0){
FlyInto = false;
};
} else {
nextShot++;
};
} else {
X = (X + 15);
};
if (Graphic.currentLabel == "EndMove2"){
FlyIn = false;
Graphic.gotoAndPlay("Move1");
hitPlayer = false;
nextShot = 0;
};
} else {
if (X < (speed - 15)){
X = (X + 15);
} else {
if (X > (speed + 15)){
X = (X - 15);
};
};
if (Y < (speedY - 15)){
Y = (Y + 15);
} else {
if (Y > (speedY + 15)){
Y = (Y - 15);
};
};
nextShot++;
if ((nextShot % 10) == 0){
speedY = ((Math.random() * 300) + 100);
speed = ((Math.random() * 500) + 200);
};
if (nextShot == 150){
nextShot = 0;
FlyIn = true;
FlyInto = true;
Graphic.gotoAndPlay("Move2");
X = 175;
Y = Player.getY();
makeSound(razorFX, Player.SFXVol);
};
};
if (Graphic.currentLabel == "EndMove1"){
Graphic.gotoAndPlay("Move1");
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function PlayerHit_Handler(_arg1:Event):void{
hitPlayer = true;
}
}
}//package game.engine.NTechBattleGrounds
Section 36
//Enemy12 (game.engine.NTechBattleGrounds.Enemy12)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Enemy12 extends NTechObject {
var engaged:Boolean;// = false
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
var fader:Number;// = 0
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;// = 0
var nextShot:int;// = 0
public var DestroyGraphic:Class;
var Graphic:MovieClip;
public var AttackCells:Array;
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
var HitIt:Boolean;// = false
public function Enemy12(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
SelfDestructed = false;
nextShot = 0;
fader = 0;
HitIt = false;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = LightningGraphicID;
BulletType = Ammo1;
BulletGraphic = AmmoType1ID;
IntroGraphic = Enemy12IntroID;
DestroyGraphic = Enemy12DestroyID;
GameGraphic = Enemy12ID;
Type = "Enemy";
hitType = "Circle";
Name = "R4ZZL3";
hitRadius = 20;
hitCenterX = 0;
hitCenterY = 0;
hitWidth = 10;
hitHeight = 10;
HP = 5;
MaxHP = 5;
AttackDamage = 5;
ScoreValue = 50;
addEventListener("Engaged", Engage_Handler);
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionsmall1FX, Player.SFXVol);
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", PlayerHit_Handler);
addEventListener("OffScreen", OffScreen_Handler);
engaged = true;
makeSound(swoosh1FX, Player.SFXVol);
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
nextShot++;
fader = (fader + (Math.PI / 25));
X = ((Math.sin(fader) * 350) + 350);
if ((Player.getY() - 1) > Y){
Y++;
} else {
if ((Player.getY() + 1) < Y){
Y--;
};
};
if ((fader % Math.PI) == 0){
makeSound(DeepSwooshFX, Player.SFXVol);
};
if (X < 150){
if (!HitIt){
Attack([(Y / 25), ((Y / 25) - 1), ((Y / 25) + 1)]);
};
} else {
HitIt = false;
};
if (X < 0){
dispatchEvent(new Event("OffScreen"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function PlayerHit_Handler(_arg1:Event):void{
HitIt = true;
}
}
}//package game.engine.NTechBattleGrounds
Section 37
//Enemy13 (game.engine.NTechBattleGrounds.Enemy13)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Enemy13 extends NTechObject {
var engaged:Boolean;// = false
var Top:Boolean;// = true
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
var fader:Number;// = 0
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;// = 0
var nextShot:int;// = 0
public var DestroyGraphic:Class;
var Graphic:MovieClip;
public var AttackCells:Array;
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
var HitIt:Boolean;// = false
public function Enemy13(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
SelfDestructed = false;
nextShot = 0;
fader = 0;
HitIt = false;
Top = true;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = LightningGraphicID;
BulletType = Ammo2Phase3;
BulletGraphic = phase3ammoID;
IntroGraphic = Enemy13IntroID;
DestroyGraphic = Enemy13DestroyID;
GameGraphic = Enemy13ID;
Type = "Enemy";
hitType = "Circle";
Name = "D4ZZL3";
hitRadius = 20;
hitCenterX = 0;
hitCenterY = 0;
hitWidth = 10;
hitHeight = 10;
HP = 15;
MaxHP = 15;
AttackDamage = 5;
ScoreValue = 50;
if (Y > 250){
Top = false;
};
addEventListener("Engaged", Engage_Handler);
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionsmall1FX, Player.SFXVol);
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", PlayerHit_Handler);
addEventListener("OffScreen", OffScreen_Handler);
engaged = true;
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
if (!HitIt){
if (Top){
Y = (Y + 10);
if ((Math.random() * 20) < 2){
makeSound(ShotPopFX, Player.SFXVol);
TempGraphicX = X;
TempGraphicY = Y;
BulletParam = 5;
dispatchEvent(new Event("RequestObject"));
BulletParam = -5;
dispatchEvent(new Event("RequestObject"));
};
if (Y >= (460 - (Graphic.height / 2))){
HitIt = true;
Top = false;
};
} else {
Y = (Y - 10);
if ((Math.random() * 20) < 1){
makeSound(ShotPopFX, Player.SFXVol);
TempGraphicX = X;
TempGraphicY = Y;
BulletParam = 5;
dispatchEvent(new Event("RequestObject"));
BulletParam = -5;
dispatchEvent(new Event("RequestObject"));
};
if (Y <= (Graphic.height / 2)){
HitIt = true;
Top = true;
};
};
} else {
if (((Top) && ((X > 180)))){
X = (X - 5);
} else {
if (((!(Top)) && ((X < 650)))){
X = (X + 5);
};
};
if ((Math.random() * 50) < 2){
HitIt = false;
};
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function PlayerHit_Handler(_arg1:Event):void{
HitIt = true;
}
}
}//package game.engine.NTechBattleGrounds
Section 38
//Enemy14 (game.engine.NTechBattleGrounds.Enemy14)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Enemy14 extends NTechObject {
var engaged:Boolean;// = false
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
var fader:Number;// = 0
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;// = 0
var nextShot:int;// = 0
public var DestroyGraphic:Class;
var Graphic:MovieClip;
public var AttackCells:Array;
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
var HitIt:Boolean;// = false
public function Enemy14(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
SelfDestructed = false;
nextShot = 0;
fader = 0;
HitIt = false;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = Enemy12DestroyID;
BulletType = Enemy12;
BulletGraphic = Enemy12ID;
IntroGraphic = Enemy14IntroID;
DestroyGraphic = Enemy14DestroyID;
GameGraphic = Enemy14ID;
Type = "Enemy";
hitType = "Rectangle";
Name = "H0131N1";
hitRadius = 20;
hitCenterX = -50;
hitCenterY = -15;
hitWidth = 100;
hitHeight = 30;
HP = 20;
MaxHP = 20;
AttackDamage = 5;
ScoreValue = 50;
X = 700;
addEventListener("Engaged", Engage_Handler);
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionsmall1FX, Player.SFXVol);
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", PlayerHit_Handler);
addEventListener("OffScreen", OffScreen_Handler);
engaged = true;
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
X = (X - 10);
if (Graphic.currentFrame == 41){
makeSound(SwordFX, Player.SFXVol);
};
if (X == 200){
nextShot++;
if (nextShot >= 2){
nextShot = 0;
TempGraphicX = X;
TempGraphicY = Y;
BulletParam = 5;
makeSound(MudSplatFX, Player.SFXVol);
dispatchEvent(new Event("RequestObject"));
dispatchEvent(new Event("RequestTemp"));
};
};
if (X <= 0){
X = 700;
Y = ((Math.random() * 400) + 25);
};
if (X < 150){
if (!HitIt){
Attack([(Y / 25), ((Y / 25) - 1), ((Y / 25) + 1), ((Y / 25) - 2), ((Y / 25) + 2)]);
};
} else {
HitIt = false;
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function PlayerHit_Handler(_arg1:Event):void{
HitIt = true;
}
}
}//package game.engine.NTechBattleGrounds
Section 39
//Enemy15 (game.engine.NTechBattleGrounds.Enemy15)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Enemy15 extends NTechObject {
var Right:Boolean;// = true
var EnemyReady:int;// = 0
var engaged:Boolean;// = false
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
var CenterX:Number;// = 0
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;// = 0
var CenterY:Number;// = 0
var nextShot:int;// = 0
var theta:Number;// = 0
public var DestroyGraphic:Class;
var Graphic:MovieClip;
public var AttackCells:Array;
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
public function Enemy15(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
SelfDestructed = false;
nextShot = 0;
theta = 0;
CenterX = 0;
CenterY = 0;
Right = true;
EnemyReady = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = Enemy12DestroyID;
BulletType = Ammo1Phase3;
BulletGraphic = phase3ammoID;
IntroGraphic = Enemy15IntroID;
DestroyGraphic = Enemy15DestroyID;
GameGraphic = Enemy15ID;
Type = "Enemy";
hitType = "Rectangle";
Name = "G100P";
hitRadius = 20;
hitCenterX = -40;
hitCenterY = -85;
hitWidth = 80;
hitHeight = 170;
HP = 25;
MaxHP = 25;
AttackDamage = 5;
ScoreValue = 50;
CenterX = X;
CenterY = Y;
addEventListener("Engaged", Engage_Handler);
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionsmall1FX, Player.SFXVol);
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", PlayerHit_Handler);
addEventListener("OffScreen", OffScreen_Handler);
engaged = true;
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
nextShot++;
theta = (theta + (Math.PI / 25));
if (Right){
X = ((Math.cos((theta + Math.PI)) * 75) + (CenterX + 75));
Y = ((Math.sin(theta) * 75) + CenterY);
} else {
X = ((Math.cos(-(theta)) * 75) + (CenterX - 75));
Y = ((Math.sin(theta) * 75) + CenterY);
};
if (nextShot == 25){
makeSound(ShotPopFX, Player.SFXVol);
TempGraphicX = X;
TempGraphicY = Y;
BulletParam = 10;
dispatchEvent(new Event("RequestObject"));
BulletParam = -10;
dispatchEvent(new Event("RequestObject"));
};
if (nextShot == 50){
Right = false;
} else {
if (nextShot == 100){
theta = 0;
nextShot = 0;
Right = true;
EnemyReady++;
CenterX = ((Math.random() * 250) + 300);
CenterY = ((Math.random() * 300) + 100);
};
};
if (EnemyReady == 5){
makeSound(MudSplatFX, Player.SFXVol);
TempGraphicX = X;
TempGraphicY = Y;
BulletParam = 5;
BulletType = Enemy13;
BulletGraphic = Enemy13ID;
dispatchEvent(new Event("RequestObject"));
dispatchEvent(new Event("RequestTemp"));
BulletType = Ammo1Phase3;
BulletGraphic = phase3ammoID;
EnemyReady = 0;
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function PlayerHit_Handler(_arg1:Event):void{
}
}
}//package game.engine.NTechBattleGrounds
Section 40
//Enemy17 (game.engine.NTechBattleGrounds.Enemy17)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Enemy17 extends NTechObject {
var engaged:Boolean;// = false
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
var fader:Number;// = 0
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;// = 0
var nextShot:int;// = 0
public var DestroyGraphic:Class;
var Graphic:MovieClip;
public var AttackCells:Array;
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
var HitIt:Boolean;// = false
public function Enemy17(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
SelfDestructed = false;
nextShot = 0;
fader = 0;
HitIt = false;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = LightningGraphicID;
BulletType = Ammo1;
BulletGraphic = AmmoType1ID;
IntroGraphic = Enemy17IntroID;
DestroyGraphic = Enemy17DestroyID;
GameGraphic = Enemy17ID;
Type = "Enemy";
hitType = "Circle";
Name = "K4M1";
hitRadius = 20;
hitCenterX = 0;
hitCenterY = 0;
hitWidth = 10;
hitHeight = 10;
HP = 3;
MaxHP = 3;
AttackDamage = 5;
ScoreValue = 50;
addEventListener("Engaged", Engage_Handler);
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionsmall1FX, Player.SFXVol);
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", PlayerHit_Handler);
addEventListener("OffScreen", OffScreen_Handler);
engaged = true;
makeSound(ThookFX, (Player.SFXVol / 1.5));
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
nextShot++;
fader++;
X = (X - fader);
if (X < 150){
Attack([(Y / 25), ((Y / 25) - 1), ((Y / 25) + 1)]);
};
if ((((((X < 0)) || ((Y > 500)))) || ((Y < -50)))){
dispatchEvent(new Event("OffScreen"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function PlayerHit_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
}
}//package game.engine.NTechBattleGrounds
Section 41
//Enemy18 (game.engine.NTechBattleGrounds.Enemy18)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Enemy18 extends NTechObject {
var engaged:Boolean;// = false
var Player:Object;
var SelfDestructed:Boolean;// = false
var nextEnemy:int;// = 0
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
var fader:Number;// = 0
var CenterX:Number;// = 0
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;// = 0
var nextShot:int;// = 0
var CenterY:Number;// = 0
var theta:Number;// = 0
public var DestroyGraphic:Class;
var Up:Boolean;// = true
var Graphic:MovieClip;
public var AttackCells:Array;
var High:int;// = 100
public var AttackDamage:int;// = 0
var Wide:int;// = 50
public var IntroGraphic:Class;
var HitIt:Boolean;// = false
public function Enemy18(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
SelfDestructed = false;
nextShot = 0;
fader = 0;
HitIt = false;
theta = 0;
Wide = 50;
High = 100;
CenterY = 0;
CenterX = 0;
Up = true;
nextEnemy = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = Enemy0DestroyID;
BulletType = Ammo1Phase4;
BulletGraphic = AmmoType1ID;
IntroGraphic = Enemy18IntroID;
DestroyGraphic = Enemy18DestroyID;
GameGraphic = Enemy18ID;
Type = "Enemy";
hitType = "Rectangle";
Name = "K4Z1";
hitRadius = 20;
hitCenterX = -70;
hitCenterY = -30;
hitWidth = 140;
hitHeight = 60;
HP = 12;
MaxHP = 12;
AttackDamage = 5;
ScoreValue = 50;
CenterX = X;
CenterY = Y;
addEventListener("Engaged", Engage_Handler);
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionsmall1FX, Player.SFXVol);
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", PlayerHit_Handler);
addEventListener("OffScreen", OffScreen_Handler);
engaged = true;
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
nextShot++;
theta = (theta + (Math.PI / 50));
X = ((Math.cos(theta) * Wide) + CenterX);
Y = ((Math.sin(theta) * High) + CenterY);
if (nextShot >= 90){
if (Up){
Wide = (Wide + 5);
High = (High - 5);
} else {
Wide = (Wide - 5);
High = (High + 5);
};
};
if (nextShot == 50){
TempGraphicX = X;
TempGraphicY = Y;
dispatchEvent(new Event("RequestObject"));
makeSound(LaserShotFX, Player.SFXVol);
};
if (nextShot == 100){
theta = 0;
nextShot = 0;
if (Up){
Up = false;
} else {
Up = true;
};
};
nextEnemy++;
if (nextEnemy == 70){
nextEnemy = 0;
BulletType = Enemy17;
BulletGraphic = Enemy17ID;
TempGraphicX = ((Math.random() * 350) + 350);
TempGraphicY = (Math.random() * 460);
dispatchEvent(new Event("RequestTemp"));
dispatchEvent(new Event("RequestObject"));
BulletType = Ammo1Phase4;
BulletGraphic = AmmoType1ID;
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function PlayerHit_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
}
}//package game.engine.NTechBattleGrounds
Section 42
//Enemy19 (game.engine.NTechBattleGrounds.Enemy19)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Enemy19 extends NTechObject {
var Right:Boolean;// = true
var EnemyReady:int;// = 0
var engaged:Boolean;// = false
var Orbit:Boolean;// = false
var Player:Object;
var SelfDestructed:Boolean;// = false
var nextEnemy:int;// = 0
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
var CenterX:Number;// = 0
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;// = 0
var CenterY:Number;// = 0
var nextShot:int;// = 0
var theta:Number;// = 0
public var DestroyGraphic:Class;
var Graphic:MovieClip;
public var AttackCells:Array;
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
public function Enemy19(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
SelfDestructed = false;
nextShot = 0;
theta = 0;
CenterX = 0;
CenterY = 0;
Right = true;
EnemyReady = 0;
Orbit = false;
nextEnemy = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = Enemy0DestroyID;
BulletType = Ammo2Phase4;
BulletGraphic = phase4photonID;
IntroGraphic = Enemy19IntroID;
DestroyGraphic = Enemy19DestroyID;
GameGraphic = Enemy19ID;
Type = "Enemy";
hitType = "Rectangle";
Name = "R4WR";
hitRadius = 20;
hitCenterX = -50;
hitCenterY = -35;
hitWidth = 100;
hitHeight = 70;
HP = 20;
MaxHP = 20;
AttackDamage = 5;
ScoreValue = 50;
CenterX = X;
CenterY = Y;
addEventListener("Engaged", Engage_Handler);
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionsmall1FX, Player.SFXVol);
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", PlayerHit_Handler);
addEventListener("OffScreen", OffScreen_Handler);
engaged = true;
makeSound(swoosh1FX, Player.SFXVol);
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
if (Orbit){
nextShot++;
theta = (theta + (Math.PI / 10));
if (Right){
X = ((Math.cos((theta + Math.PI)) * 20) + (CenterX + 20));
Y = ((Math.sin(theta) * 20) + CenterY);
} else {
X = ((Math.cos(-(theta)) * 20) + (CenterX - 20));
Y = ((Math.sin(theta) * 20) + CenterY);
};
if ((Math.random() * 20) > 19){
makeSound(swoosh3FX, (Player.SFXVol / 1.5));
TempGraphicX = (X - 50);
TempGraphicY = Y;
BulletParam = 10;
dispatchEvent(new Event("RequestObject"));
};
if (((((nextShot % 20) == 0)) && (!(((nextShot % 40) == 0))))){
Right = false;
} else {
if (nextShot == 160){
theta = 0;
nextShot = 0;
Right = true;
CenterX = ((Math.random() * 250) + 300);
CenterY = ((Math.random() * 300) + 100);
Orbit = false;
} else {
if ((nextShot % 40) == 0){
theta = 0;
Right = true;
};
};
};
} else {
nextShot++;
X = (X + ((CenterX - X) / 20));
Y = (Y + ((CenterY - Y) / 20));
if (nextShot == 35){
CenterX = X;
CenterY = Y;
nextShot = 0;
Orbit = true;
};
};
nextEnemy++;
if (nextEnemy == 70){
nextEnemy = 0;
BulletType = Enemy17;
BulletGraphic = Enemy17ID;
TempGraphicX = 700;
TempGraphicY = (Math.random() * 460);
dispatchEvent(new Event("RequestTemp"));
dispatchEvent(new Event("RequestObject"));
TempGraphicY = (TempGraphicY + 100);
dispatchEvent(new Event("RequestTemp"));
dispatchEvent(new Event("RequestObject"));
BulletType = Ammo2Phase4;
BulletGraphic = phase4photonID;
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function PlayerHit_Handler(_arg1:Event):void{
}
}
}//package game.engine.NTechBattleGrounds
Section 43
//Enemy2 (game.engine.NTechBattleGrounds.Enemy2)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class Enemy2 extends NTechObject {
var engaged:Boolean;// = false
var YMovement:Number;// = 0
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
var MoveUp:Boolean;// = false
public var GameGraphic:Class;
public var BulletType:Class;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;// = 0
public var DestroyGraphic:Class;
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
var beginX:Number;// = 0
var numXFrames:int;// = 0
public var AttackDamage:int;// = 0
var shot:Boolean;// = false
public var IntroGraphic:Class;
public function Enemy2(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
var _local5:*;
IntroGraphic = Enemy2IntroID;
DestroyGraphic = Enemy2DestroyID;
GameGraphic = Enemy2ID;
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
Movement = 10;
YMovement = 0;
SelfDestructed = false;
numXFrames = 0;
MoveUp = false;
beginX = 0;
shot = false;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = LightningGraphicID;
BulletType = Ammo0;
BulletGraphic = SimpleEnemyShotID;
Type = "Enemy";
Name = "G00RK";
hitRadius = 20;
hitCenterX = 0;
hitCenterY = 0;
HP = 1;
MaxHP = 1;
AttackDamage = 5;
ScoreValue = 50;
beginX = _arg1;
_local5 = (Math.random() * 50);
if (_local5 > 25){
Y = 475;
MoveUp = true;
} else {
Y = 0;
MoveUp = false;
};
Movement = (460 / 45);
addEventListener("Engaged", Engage_Handler);
makeSound(swoosh1FX, Player.SFXVol);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionsmall1FX, Player.SFXVol);
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
Graphic.rotation = (Graphic.rotation + 10);
addHit(Player.getWeaponDamage());
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
Graphic.scaleX = (Graphic.scaleX * 0.4);
Graphic.scaleY = (Graphic.scaleY * 0.4);
Graphic.rotation = (Graphic.rotation - 15);
engaged = true;
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
X = (-((Math.sin(YMovement) * 75)) + beginX);
YMovement = (YMovement + (Math.PI / 45));
if (!MoveUp){
Y = (Y + Movement);
} else {
Y = (Y - Movement);
};
if ((((((Y > (Player.getY() - 15))) && ((Y < (Player.getY() + 15))))) && (!(shot)))){
shot = true;
TempGraphicX = X;
TempGraphicY = Y;
dispatchEvent(new Event("RequestObject"));
makeSound(Shot1FX, Player.SFXVol);
};
if ((((Y < -20)) || ((Y > 470)))){
dispatchEvent(new Event("OffScreen"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
}
}//package game.engine.NTechBattleGrounds
Section 44
//Enemy20 (game.engine.NTechBattleGrounds.Enemy20)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Enemy20 extends NTechObject {
var Right:Boolean;// = true
var EnemyReady:int;// = 0
var engaged:Boolean;// = false
var Orbit:Boolean;// = false
var Player:Object;
var SelfDestructed:Boolean;// = false
var nextEnemy:int;// = 0
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
var CenterX:Number;// = 0
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;// = 0
var CenterY:Number;// = 0
var nextShot:int;// = 0
var theta:Number;// = 0
public var DestroyGraphic:Class;
var Graphic:MovieClip;
public var AttackCells:Array;
var Mode:int;// = 0
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
public function Enemy20(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
SelfDestructed = false;
nextShot = 0;
theta = 0;
CenterX = 0;
CenterY = 0;
Right = true;
EnemyReady = 0;
Orbit = false;
nextEnemy = 0;
Mode = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = Enemy0DestroyID;
BulletType = Ammo3Phase4;
BulletGraphic = SmallRadonBeamID;
IntroGraphic = Enemy20IntroID;
DestroyGraphic = Enemy20DestroyID;
GameGraphic = Enemy20ID;
Type = "Enemy";
hitType = "Rectangle";
Name = "B1GB04";
hitRadius = 20;
hitCenterX = -160;
hitCenterY = -60;
hitWidth = 200;
hitHeight = 120;
HP = 50;
MaxHP = 50;
AttackDamage = 5;
ScoreValue = 50;
CenterX = X;
CenterY = Y;
addEventListener("Engaged", Engage_Handler);
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionmedium1FX, Player.SFXVol);
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", PlayerHit_Handler);
addEventListener("OffScreen", OffScreen_Handler);
engaged = true;
makeSound(swoosh2FX, Player.SFXVol);
}
override public function main():void{
if (engaged){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
theta = (theta + (Math.PI / 10));
Y = ((Math.sin(theta) * 20) + CenterY);
if (Mode == 0){
nextShot++;
if (nextShot == 100){
nextShot = 0;
TempGraphicX = (X - 160);
TempGraphicY = (Y + 30);
makeSound(beamwallFX, Player.SFXVol);
BulletParam = 0;
dispatchEvent(new Event("RequestObject"));
BulletParam = (Math.PI * 1.5);
dispatchEvent(new Event("RequestObject"));
BulletParam = (Math.PI / 2);
dispatchEvent(new Event("RequestObject"));
};
};
nextEnemy++;
if (nextEnemy == 70){
nextEnemy = 0;
BulletType = Enemy17;
BulletGraphic = Enemy17ID;
TempGraphicX = 700;
TempGraphicY = (Math.random() * 460);
dispatchEvent(new Event("RequestTemp"));
dispatchEvent(new Event("RequestObject"));
TempGraphicX = 750;
TempGraphicY = (TempGraphicY - 100);
dispatchEvent(new Event("RequestTemp"));
dispatchEvent(new Event("RequestObject"));
TempGraphicY = (TempGraphicY + 200);
dispatchEvent(new Event("RequestTemp"));
dispatchEvent(new Event("RequestObject"));
TempGraphicX = 800;
TempGraphicY = (TempGraphicY + 100);
dispatchEvent(new Event("RequestTemp"));
dispatchEvent(new Event("RequestObject"));
TempGraphicY = (TempGraphicY - 400);
dispatchEvent(new Event("RequestTemp"));
dispatchEvent(new Event("RequestObject"));
BulletType = Ammo3Phase4;
BulletGraphic = SmallRadonBeamID;
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function PlayerHit_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
}
}//package game.engine.NTechBattleGrounds
Section 45
//Enemy3 (game.engine.NTechBattleGrounds.Enemy3)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Enemy3 extends NTechObject {
var screenDur:int;// = 0
var engaged:Boolean;// = false
var YMovement:Number;// = 10
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;// = 0
var nextShot:int;// = 0
public var DestroyGraphic:Class;
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
var numXFrames:int;// = 0
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
public function Enemy3(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
IntroGraphic = Enemy3IntroID;
DestroyGraphic = Enemy3DestroyID;
GameGraphic = Enemy3ID;
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
Movement = 10;
YMovement = 10;
SelfDestructed = false;
numXFrames = 0;
nextShot = 0;
screenDur = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = LightningGraphicID;
BulletType = Ammo0;
BulletGraphic = SimpleEnemyShotID;
Type = "Enemy";
hitType = "Rectangle";
Name = "F40R";
hitRadius = 30;
hitCenterX = -30;
hitCenterY = -30;
hitWidth = 60;
hitHeight = 60;
HP = 25;
MaxHP = 15;
AttackDamage = 10;
ScoreValue = 50;
addEventListener("Engaged", Engage_Handler);
makeSound(swoosh2FX, Player.SFXVol);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionmedium1FX, Player.SFXVol);
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
addHit(Player.getWeaponDamage());
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
Graphic.width = 57;
Graphic.height = 62;
Graphic.rotation = (Graphic.rotation - 15);
engaged = true;
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
if (engaged){
if (screenDur < 20){
if (X < 590){
X = (X + Movement);
} else {
if (X > 610){
X = (X - Movement);
};
};
} else {
X = (X + Movement);
};
if (Y < 50){
YMovement = 5;
screenDur++;
} else {
if (Y > 400){
YMovement = -5;
screenDur++;
};
};
Y = (Y + YMovement);
nextShot++;
if (nextShot == 50){
TempGraphicX = X;
TempGraphicY = Y;
BulletParam = 0;
dispatchEvent(new Event("RequestObject"));
BulletParam = 5;
dispatchEvent(new Event("RequestObject"));
BulletParam = -5;
dispatchEvent(new Event("RequestObject"));
makeSound(Shot1FX, Player.SFXVol);
};
if (nextShot == 55){
TempGraphicX = X;
TempGraphicY = Y;
BulletParam = 0;
dispatchEvent(new Event("RequestObject"));
BulletParam = 5;
dispatchEvent(new Event("RequestObject"));
BulletParam = -5;
dispatchEvent(new Event("RequestObject"));
};
if (nextShot >= 60){
nextShot = 0;
TempGraphicX = X;
TempGraphicY = Y;
BulletParam = 0;
dispatchEvent(new Event("RequestObject"));
BulletParam = 5;
dispatchEvent(new Event("RequestObject"));
BulletParam = -5;
dispatchEvent(new Event("RequestObject"));
};
if (X > 720){
dispatchEvent(new Event("OffScreen"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
}
}//package game.engine.NTechBattleGrounds
Section 46
//Enemy4 (game.engine.NTechBattleGrounds.Enemy4)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Enemy4 extends NTechObject {
var screenDur:int;// = 0
var YCenter:Number;// = 0
var engaged:Boolean;// = false
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;// = 0
var nextShot:int;// = 0
var theta:Number;// = 0
public var DestroyGraphic:Class;
var Graphic:MovieClip;
public var AttackCells:Array;
var XCenter:Number;// = 0
var numXFrames:int;// = 0
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
public function Enemy4(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
XCenter = 0;
YCenter = 0;
SelfDestructed = false;
numXFrames = 0;
nextShot = 0;
screenDur = 0;
theta = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = LightningGraphicID;
BulletType = Ammo1;
BulletGraphic = missileAmmoID;
IntroGraphic = Enemy4IntroID;
DestroyGraphic = Enemy4DestroyID;
GameGraphic = Enemy4ID;
Type = "Enemy";
hitType = "Rectangle";
Name = "M1SL34D";
hitRadius = 20;
hitCenterX = -40;
hitCenterY = -60;
hitWidth = 80;
hitHeight = 120;
HP = 25;
MaxHP = 25;
AttackDamage = 10;
ScoreValue = 50;
XCenter = X;
YCenter = Y;
X = ((Math.cos(theta) * 150) + XCenter);
Y = ((Math.sin(theta) * 150) + YCenter);
addEventListener("Engaged", Engage_Handler);
makeSound(swoosh2FX, Player.SFXVol);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionmedium1FX, Player.SFXVol);
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
addHit(Player.getWeaponDamage());
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
Graphic.width = 82;
Graphic.height = 132;
engaged = true;
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
if (engaged){
if (nextShot < 40){
X = ((Math.cos(theta) * 150) + XCenter);
Y = ((Math.sin(theta) * 150) + YCenter);
};
theta = (theta + (Math.PI / 40));
nextShot++;
if (nextShot == 50){
TempGraphicX = X;
TempGraphicY = Y;
BulletParam = Math.PI;
dispatchEvent(new Event("RequestObject"));
makeSound(Shot1FX, Player.SFXVol);
Graphic.gotoAndPlay("Teleport");
};
if (Graphic.currentLabel == "EndMove"){
Graphic.gotoAndPlay("Move");
};
if (Graphic.currentLabel == "EndTeleport"){
Graphic.gotoAndPlay("Appear");
theta = 0;
XCenter = ((Math.random() * 400) + 300);
YCenter = (Math.random() * 400);
X = ((Math.cos(theta) * 150) + XCenter);
Y = ((Math.sin(theta) * 150) + YCenter);
};
if (Graphic.currentLabel == "EndAppear"){
nextShot = 0;
};
if (X < 0){
dispatchEvent(new Event("OffScreen"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
}
}//package game.engine.NTechBattleGrounds
Section 47
//Enemy6 (game.engine.NTechBattleGrounds.Enemy6)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Enemy6 extends NTechObject {
var engaged:Boolean;// = false
var Player:Object;
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
var fader:Number;// = 0
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;// = 0
var nextShot:int;// = 0
public var DestroyGraphic:Class;
var Graphic:MovieClip;
public var AttackCells:Array;
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
public function Enemy6(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
SelfDestructed = false;
nextShot = 0;
fader = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = LightningGraphicID;
BulletType = Ammo1;
BulletGraphic = AmmoType1ID;
IntroGraphic = Enemy6IntroID;
DestroyGraphic = Enemy6DestroyID;
GameGraphic = Enemy6ID;
Type = "Enemy";
hitType = "Circle";
Name = "G00";
hitRadius = 20;
hitCenterX = 0;
hitCenterY = 0;
hitWidth = 10;
hitHeight = 10;
HP = 2;
MaxHP = 2;
AttackDamage = 5;
ScoreValue = 50;
addEventListener("Engaged", Engage_Handler);
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionsmall1FX, Player.SFXVol);
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", PlayerHit_Handler);
addEventListener("OffScreen", OffScreen_Handler);
engaged = true;
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
nextShot++;
fader = (fader + (Math.PI / 15));
X = (X - 5);
Graphic.alpha = Math.sin(fader);
if (nextShot == 15){
makeSound(swoosh3FX, (Player.SFXVol / 2));
nextShot = 0;
fader = 0;
if (Player.getY() > Y){
Y = (Y + 50);
} else {
Y = (Y - 50);
};
};
if (X < 150){
Attack([(Y / 25), ((Y / 25) - 1), ((Y / 25) + 1)]);
};
if (X < 0){
dispatchEvent(new Event("OffScreen"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function PlayerHit_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
}
}//package game.engine.NTechBattleGrounds
Section 48
//Enemy7 (game.engine.NTechBattleGrounds.Enemy7)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Enemy7 extends NTechObject {
var speedY:int;// = 10
var Shot:Boolean;// = false
var engaged:Boolean;// = false
var Player:Object;
var SelfDestructed:Boolean;// = false
var speed:int;// = 10
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;// = 0
public var DestroyGraphic:Class;
var Graphic:MovieClip;
public var AttackCells:Array;
var FlyIn:Boolean;// = true
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
public function Enemy7(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
SelfDestructed = false;
FlyIn = true;
Shot = false;
speed = 10;
speedY = 10;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = LightningGraphicID;
BulletType = Ammo0;
BulletGraphic = SimpleEnemyShotID;
IntroGraphic = Enemy7IntroID;
DestroyGraphic = Enemy7DestroyID;
GameGraphic = Enemy7ID;
Type = "Enemy";
hitType = "Circle";
Name = "S11CK";
hitRadius = 20;
hitCenterX = 0;
hitCenterY = 0;
hitWidth = 10;
hitHeight = 10;
HP = 2;
MaxHP = 2;
AttackDamage = 5;
ScoreValue = 50;
if (Y < 250){
speedY = 10;
} else {
speedY = -10;
};
addEventListener("Engaged", Engage_Handler);
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionsmall1FX, Player.SFXVol);
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", PlayerHit_Handler);
addEventListener("OffScreen", OffScreen_Handler);
engaged = true;
makeSound(swoosh1FX, Player.SFXVol);
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
X = (X - speed);
Y = (Y + speedY);
if (FlyIn){
if (Math.abs((Y - Player.getY())) < 20){
makeSound(Shot1FX, Player.SFXVol);
TempGraphicX = X;
TempGraphicY = Y;
dispatchEvent(new Event("RequestObject"));
Shot = true;
FlyIn = false;
};
} else {
speed = -20;
};
if ((((Y < 0)) || ((Y > 500)))){
dispatchEvent(new Event("OffScreen"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function PlayerHit_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
}
}//package game.engine.NTechBattleGrounds
Section 49
//Enemy8 (game.engine.NTechBattleGrounds.Enemy8)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Enemy8 extends NTechObject {
var speedY:Number;// = 10
var engaged:Boolean;// = false
var Player:Object;
var SelfDestructed:Boolean;// = false
var speed:Number;// = 10
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;// = 0
var nextShot:int;// = 0
var numShot:int;// = 0
public var DestroyGraphic:Class;
var Graphic:MovieClip;
public var AttackCells:Array;
var FlyIn:Boolean;// = true
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
public function Enemy8(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
SelfDestructed = false;
FlyIn = true;
nextShot = 0;
speed = 10;
speedY = 10;
numShot = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = LightningGraphicID;
BulletType = Ammo0;
BulletGraphic = SimpleEnemyShotID;
IntroGraphic = Enemy8IntroID;
DestroyGraphic = Enemy8DestroyID;
GameGraphic = Enemy8ID;
Type = "Enemy";
hitType = "Circle";
Name = "T00DL3";
hitRadius = 20;
hitCenterX = 0;
hitCenterY = 0;
hitWidth = 10;
hitHeight = 10;
HP = 20;
MaxHP = 20;
AttackDamage = 5;
ScoreValue = 50;
speed = ((Math.random() * 450) + 250);
speedY = Player.getY();
addEventListener("Engaged", Engage_Handler);
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionsmall1FX, Player.SFXVol);
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", PlayerHit_Handler);
addEventListener("OffScreen", OffScreen_Handler);
engaged = true;
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
X = (X + ((speed - X) / 20));
Y = (Y + ((speedY - Y) / 20));
if (FlyIn){
if (Math.abs((Y - speedY)) < 50){
nextShot++;
if (nextShot == 11){
nextShot = 0;
TempGraphicX = (X - 25);
TempGraphicY = Y;
makeSound(Shot1FX, Player.SFXVol);
dispatchEvent(new Event("RequestObject"));
numShot++;
};
if ((((Math.abs((Y - speedY)) < 5)) && ((numShot == 4)))){
FlyIn = false;
Graphic.gotoAndPlay("Move2");
nextShot = 0;
numShot = 0;
};
};
} else {
nextShot++;
if (nextShot == 50){
makeSound(swoosh1FX, Player.SFXVol);
nextShot = 0;
speed = ((Math.random() * 450) + 250);
speedY = Player.getY();
FlyIn = true;
Graphic.gotoAndPlay("Move1");
};
};
if (Graphic.currentLabel == "EndMove1"){
Graphic.gotoAndPlay("Move1");
} else {
if (Graphic.currentLabel == "EndMove2"){
Graphic.gotoAndPlay("Move2");
};
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function PlayerHit_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
}
}//package game.engine.NTechBattleGrounds
Section 50
//Enemy9 (game.engine.NTechBattleGrounds.Enemy9)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class Enemy9 extends NTechObject {
var speedY:Number;// = 10
var engaged:Boolean;// = false
var Player:Object;
var SelfDestructed:Boolean;// = false
var speed:Number;// = 10
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;// = 0
var nextShot:int;// = 0
var numShot:int;// = 0
public var DestroyGraphic:Class;
var Graphic:MovieClip;
public var AttackCells:Array;
var FlyIn:Boolean;// = true
public var AttackDamage:int;// = 0
public var IntroGraphic:Class;
public function Enemy9(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number):void{
engaged = false;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
SelfDestructed = false;
FlyIn = true;
nextShot = 0;
speed = 10;
speedY = 10;
numShot = 0;
super(_arg1, _arg2);
Player = _arg3;
TempGraphic = LightningGraphicID;
BulletType = AmmoWallBeam;
BulletGraphic = WallBeamID;
IntroGraphic = Enemy9IntroID;
DestroyGraphic = Enemy9DestroyID;
GameGraphic = Enemy9ID;
Type = "Enemy";
hitType = "Rectangle";
Name = "W4LL";
hitRadius = 20;
hitCenterX = -20;
hitCenterY = -56;
hitWidth = 65;
hitHeight = 130;
HP = 50;
MaxHP = 50;
AttackDamage = 5;
ScoreValue = 50;
Y = ((Math.random() * 300) + 100);
addEventListener("Engaged", Engage_Handler);
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
Graphic.gotoAndPlay("Move2");
}
public function Death_Handler(_arg1:Event):void{
makeSound(explosionlarge1FX, Player.SFXVol);
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
addHit(Player.getWeaponDamage());
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
removeEventListener("Engaged", Engage_Handler);
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", PlayerHit_Handler);
addEventListener("OffScreen", OffScreen_Handler);
engaged = true;
makeSound(swoosh2FX, Player.SFXVol);
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
override public function main():void{
if (engaged){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
X = (X + ((600 - X) / 20));
if (FlyIn){
nextShot++;
if (nextShot == 45){
nextShot = 0;
TempGraphicX = (X - 25);
if (Math.floor((Math.random() * 5)) > 2){
TempGraphicY = -10;
} else {
TempGraphicY = 150;
};
makeSound(beamwallFX, Player.SFXVol);
dispatchEvent(new Event("RequestObject"));
numShot++;
};
if (numShot == 3){
FlyIn = false;
Graphic.gotoAndPlay("Move1");
nextShot = 0;
numShot = 0;
};
} else {
nextShot++;
if (nextShot == 150){
nextShot = 0;
Y = ((Math.random() * 300) + 100);
FlyIn = true;
Graphic.gotoAndPlay("Move2");
};
};
if (Graphic.currentLabel == "EndMove1"){
Graphic.gotoAndPlay("Move1");
} else {
if (Graphic.currentLabel == "EndMove2"){
Graphic.gotoAndPlay("Shoot");
};
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function PlayerHit_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
}
}//package game.engine.NTechBattleGrounds
Section 51
//MochiAd (game.engine.NTechBattleGrounds.MochiAd)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.system.*;
import flash.net.*;
public class MochiAd {
public static function getVersion():String{
return ("2.6");
}
public static function showClickAwayAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_timeout:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var sendHostProgress:Boolean;
var options = _arg1;
DEFAULTS = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{
}, ad_finished:function ():void{
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
sendHostProgress = false;
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
return;
};
_local1 = this.parent._mochiad_ctr;
_local2 = (getTimer() - this.started);
_local3 = false;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
_local3 = true;
chk.started = getTimer();
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (this.root == null){
_local3 = true;
};
if (_local3){
delete this.onEnterFrame;
};
};
doOnEnterFrame(chk);
}
public static function _isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function _allowDomains(_arg1:String):String{
var _local2:String;
_local2 = _arg1.split("/")[2].split(":")[0];
Security.allowDomain("*");
Security.allowDomain(_local2);
Security.allowInsecureDomain("*");
Security.allowInsecureDomain(_local2);
return (_local2);
}
public static function unload(_arg1:Object):Boolean{
if (((_arg1.clip) && (_arg1.clip._mochiad))){
_arg1 = _arg1.clip;
};
if (_arg1.origFrameRate != undefined){
_arg1.stage.frameRate = _arg1.origFrameRate;
};
if (!_arg1._mochiad){
return (false);
};
if (_arg1._mochiad._containerLCName != undefined){
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"});
};
if (_arg1._mochiad.onUnload){
_arg1._mochiad.onUnload();
};
delete _arg1._mochiad_loaded;
delete _arg1._mochiad;
return (true);
}
public static function showInterLevelAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
_local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object;
_local2 = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = (_arg1 - 250);
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
_local1 = this.parent._mochiad_ctr;
_local2 = (getTimer() - this.started);
_local3 = false;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (_local2 > chk.ad_msec){
_local3 = true;
};
if (_local3){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function _parseOptions(_arg1:Object, _arg2:Object):Object{
var _local3:Object;
var _local4:String;
var _local5:Array;
var _local6:Number;
var _local7:Array;
_local3 = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
if (_arg1){
for (_local4 in _arg1) {
_local3[_local4] = _arg1[_local4];
};
};
if (_local3.clip == undefined){
throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite."));
};
_arg1 = _local3.clip.loaderInfo.parameters.mochiad_options;
if (_arg1){
_local5 = _arg1.split("&");
_local6 = 0;
while (_local6 < _local5.length) {
_local7 = _local5[_local6].split("=");
_local3[unescape(_local7[0])] = unescape(_local7[1]);
_local6++;
};
};
if (_local3.id == "test"){
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
};
return (_local3);
}
public static function _cleanup(_arg1:Object):void{
var idx:Number;
var k:String;
var lc:LocalConnection;
var f:Function;
var mc = _arg1;
if (("lc" in mc)){
lc = mc.lc;
f = function ():void{
try {
lc.client = null;
lc.close();
} catch(e:Error) {
};
};
setTimeout(f, 0);
};
idx = DisplayObjectContainer(mc).numChildren;
while (idx > 0) {
idx = (idx - 1);
DisplayObjectContainer(mc).removeChildAt(idx);
};
for (k in mc) {
delete mc[k];
};
}
public static function load(_arg1:Object):MovieClip{
var DEFAULTS:Object;
var clip:Object;
var depth:Number;
var mc:MovieClip;
var wh:Array;
var lv:URLVariables;
var k:String;
var server:String;
var hostname:String;
var lc:LocalConnection;
var name:String;
var loader:Loader;
var g:Function;
var req:URLRequest;
var v:Object;
var options = _arg1;
DEFAULTS = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = MochiAd.getVersion();
clip = options.clip;
if (!MochiAd._isNetworkAvailable()){
return (null);
};
try {
if (clip._mochiad_loaded){
return (null);
};
} catch(e:Error) {
throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
depth = options.depth;
delete options.depth;
mc = createEmptyMovieClip(clip, "_mochiad", depth);
wh = MochiAd._getRes(options, clip);
options.res = ((wh[0] + "x") + wh[1]);
options.server = (options.server + options.id);
delete options.id;
clip._mochiad_loaded = true;
if (clip.loaderInfo.loaderURL.indexOf("http") == 0){
options.as3_swf = clip.loaderInfo.loaderURL;
};
lv = new URLVariables();
for (k in options) {
v = options[k];
if (!(v is Function)){
lv[k] = v;
};
};
server = lv.server;
delete lv.server;
hostname = _allowDomains(server);
lc = new LocalConnection();
lc.client = mc;
name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_");
lc.allowDomain("*", "localhost");
lc.allowInsecureDomain("*", "localhost");
lc.connect(name);
mc.lc = lc;
mc.lcName = name;
lv.lc = name;
lv.st = getTimer();
loader = new Loader();
g = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
MochiAd.unload(clip);
};
loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g);
req = new URLRequest((server + ".swf"));
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader.load(req);
mc.addChild(loader);
mc._mochiad_ctr = loader;
return (mc);
}
public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{
var _local4:Array;
var _local5:Number;
_local4 = _arg2.split(".");
_local5 = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
if (typeof(_arg1[_local4[_local5]]) == "function"){
return (_arg1[_local4[_local5]].apply(_arg1, _arg3));
};
return (undefined);
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{
var _local4:MovieClip;
_local4 = new MovieClip();
if (((false) && (_arg3))){
_arg1.addChildAt(_local4, _arg3);
} else {
_arg1.addChild(_local4);
};
_arg1[_arg2] = _local4;
_local4["_name"] = _arg2;
return (_local4);
}
public static function _getRes(_arg1:Object, _arg2:Object):Array{
var _local3:Object;
var _local4:Number;
var _local5:Number;
var _local6:Array;
_local3 = _arg2.getBounds(_arg2.root);
_local4 = 0;
_local5 = 0;
if (typeof(_arg1.res) != "undefined"){
_local6 = _arg1.res.split("x");
_local4 = parseFloat(_local6[0]);
_local5 = parseFloat(_local6[1]);
} else {
_local4 = (_local3.xMax - _local3.xMin);
_local5 = (_local3.yMax - _local3.yMin);
};
if ((((_local4 == 0)) || ((_local5 == 0)))){
_local4 = _arg2.stage.stageWidth;
_local5 = _arg2.stage.stageHeight;
};
return ([_local4, _local5]);
}
public static function adShowing(_arg1:Object):void{
_arg1.origFrameRate = _arg1.stage.frameRate;
_arg1.stage.frameRate = 30;
}
public static function getValue(_arg1:Object, _arg2:String):Object{
var _local3:Array;
var _local4:Number;
_local3 = _arg2.split(".");
_local4 = 0;
while (_local4 < (_local3.length - 1)) {
if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local3[_local4]];
_local4++;
};
return (_arg1[_local3[_local4]]);
}
public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{
var _local4:Object;
var _local5:Object;
switch (_arg3.id){
case "setValue":
MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value);
break;
case "getValue":
_local4 = MochiAd.getValue(_arg1, _arg3.objectName);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4);
break;
case "runMethod":
_local5 = MochiAd.runMethod(_arg1, _arg3.method, _arg3.args);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5);
break;
default:
trace(("[mochiads rpc] unknown rpc id: " + _arg3.id));
};
}
public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Array;
var _local5:Number;
_local4 = _arg2.split(".");
_local5 = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return;
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
_arg1[_local4[_local5]] = _arg3;
}
public static function showPreGameAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var bar:MovieClip;
var bar_color:Number;
var bar_background:Number;
var bar_outline:Number;
var backing_mc:MovieClip;
var backing:Object;
var inside_mc:MovieClip;
var inside:Object;
var outline_mc:MovieClip;
var outline:Object;
var complete:Boolean;
var unloaded:Boolean;
var f:Function;
var sendHostProgress:Boolean;
var fn:Function;
var r:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}, ad_progress:function (_arg1:Number):void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){
options.ad_started();
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
return;
};
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
var fn:Function;
MochiAd._cleanup(mc);
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.x = (w * -0.5);
chk.y = (h * -0.5);
bar = createEmptyMovieClip(chk, "_mochiad_bar", 4);
if (options.no_progress_bar){
bar.visible = false;
delete options.no_progress_bar;
} else {
bar.x = 10;
bar.y = (h - 20);
};
bar_color = options.color;
delete options.color;
bar_background = options.background;
delete options.background;
bar_outline = options.outline;
delete options.outline;
backing_mc = createEmptyMovieClip(bar, "_outline", 1);
backing = backing_mc.graphics;
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo((w - 20), 0);
backing.lineTo((w - 20), 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
inside_mc = createEmptyMovieClip(bar, "_inside", 2);
inside = inside_mc.graphics;
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo((w - 20), 0);
inside.lineTo((w - 20), 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside_mc.scaleX = 0;
outline_mc = createEmptyMovieClip(bar, "_outline", 3);
outline = outline_mc.graphics;
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo((w - 20), 0);
outline.lineTo((w - 20), 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number;
_local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
complete = false;
unloaded = false;
f = function (_arg1:Event):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
complete = true;
if (unloaded){
MochiAd.unload(clip);
};
};
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
if ((clip.root is MovieClip)){
r = (clip.root as MovieClip);
if (r.framesLoaded >= r.totalFrames){
complete = true;
};
};
mc.unloadAd = function ():void{
unloaded = true;
if (complete){
MochiAd.unload(clip);
};
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object;
_local2 = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = _arg1;
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
mc.rpcTestFn = function (_arg1:String):Object{
trace(("[MOCHIAD rpcTestFn] " + _arg1));
return (_arg1);
};
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
sendHostProgress = false;
mc.sendHostLoadProgress = function (_arg1:String):void{
sendHostProgress = true;
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Object;
var _local3:Number;
var _local4:Boolean;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Object;
var _local10:Number;
var _local11:Number;
if (((!(this.parent)) || (!(this.parent.parent)))){
delete this["onEnterFrame"];
return;
};
_local1 = this.parent.parent.root;
_local2 = this.parent._mochiad_ctr;
_local3 = (getTimer() - this.started);
_local4 = false;
_local5 = _local1.loaderInfo.bytesTotal;
_local6 = _local1.loaderInfo.bytesLoaded;
if (complete){
_local6 = Math.max(1, _local6);
_local5 = _local6;
};
_local7 = ((100 * _local6) / _local5);
_local8 = ((100 * _local3) / chk.ad_msec);
_local9 = this._mochiad_bar._inside;
_local10 = Math.min(100, Math.min(((_local7) || (0)), _local8));
_local10 = Math.max(this.last_pcnt, _local10);
this.last_pcnt = _local10;
_local9.scaleX = (_local10 * 0.01);
options.ad_progress(_local10);
if (sendHostProgress){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local7});
if (_local7 == 100){
sendHostProgress = false;
};
};
if (!chk.showing){
_local11 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local11 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if ((((_local3 > chk.ad_timeout)) && ((_local7 == 100)))){
options.ad_failed();
_local4 = true;
};
};
};
if (_local3 > chk.ad_msec){
_local4 = true;
};
if (((complete) && (_local4))){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function showPreloaderAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
MochiAd.showPreGameAd(_arg1);
}
public static function showTimedAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(_arg1);
}
public static function doOnEnterFrame(_arg1:MovieClip):void{
var f:Function;
var mc = _arg1;
f = function (_arg1:Object):void{
if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){
mc.onEnterFrame();
} else {
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
};
mc.addEventListener(Event.ENTER_FRAME, f);
}
}
}//package game.engine.NTechBattleGrounds
Section 52
//NPlayer (game.engine.NTechBattleGrounds.NPlayer)
package game.engine.NTechBattleGrounds {
import flash.display.*;
public class NPlayer extends NTechObject {
var WeaponDamage:int;// = 0
var Container:DisplayObjectContainer;
var Stuck:Boolean;// = false
var StuckDur:int;// = 0
public function NPlayer(_arg1:Number, _arg2:Number, _arg3:DisplayObjectContainer):void{
WeaponDamage = 0;
Stuck = false;
StuckDur = 0;
super(_arg1, _arg2);
HP = 200;
Container = _arg3;
}
public function trackMouse():void{
if (!Stuck){
if ((((Container.mouseY > 0)) && ((Container.mouseY < 450)))){
Y = Container.mouseY;
};
} else {
StuckDur++;
if (StuckDur == 250){
StuckDur = 0;
Stuck = false;
};
};
}
public function setWeaponDamage(_arg1:int):void{
WeaponDamage = _arg1;
}
override public function main():void{
trackMouse();
}
public function getWeaponDamage():int{
return (WeaponDamage);
}
}
}//package game.engine.NTechBattleGrounds
Section 53
//NTechBattleGrounds (game.engine.NTechBattleGrounds.NTechBattleGrounds)
package game.engine.NTechBattleGrounds {
import flash.net.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.ui.*;
import flash.geom.*;
import flash.utils.*;
import flash.system.*;
public class NTechBattleGrounds extends MovieClip {
var AreYouSure:Boolean;// = false
var keyIsDown:Array;
var MouseGreenGlow:MovieClip;
var EnemyListIndex:int;// = 0
var MusicVol:Number;// = 0.5
var MusicEnd:Number;// = 0
var CureRaise:int;// = 0
var WarnedEnergy:Boolean;// = false
var GameSkin:MovieClip;
var readyForNextPhase:Boolean;// = false
var GameMode:String;// = "Arcade"
var Channel:SoundChannel;
var Objects:ObjectHandler;
var SFXOn:Boolean;// = true
var VolControl:SoundTransform;
var AnnounceDuration:int;// = 0
var PhaseLoaded:Boolean;// = false
var AnnouncementDisplay:MovieClip;
var MusicStart:Number;// = 0
var Phase:int;// = 0
var BackVisible:Boolean;// = true
var GameDifficulty:String;// = "Normal"
var RightMenu:ContextMenu;
var OldTime:Number;// = 0
var XShake:int;// = 0
var WarnedHP:Boolean;// = false
var EnemiesSeen:Array;
var TransitionDisplay:MovieClip;
var Pause:Boolean;// = false
var GameBoard:MovieClip;
var Music:Sound;
var EffectChannel:SoundChannel;
var MusicFade:Number;// = 1
var YShake:int;// = 0
var SFXVol:Number;// = 0.3
var MusicLoaded:Boolean;// = false
var SavedData:Object;
var NumFlashHP:int;// = 0
var ScorePause:Boolean;// = false
var shakeDuration:int;// = 0
var MusicOn:Boolean;// = true
var MainMenuDisplay:MovieClip;
var PhaseTime:Number;// = 0
var shakeTime:int;// = 0
var AnnounceTime:int;// = 0
var GameBackGround:MovieClip;
var GameOvered:Boolean;// = false
var SaveGame:SharedObject;
var BugFix1:Boolean;// = false
var BugFix3:Boolean;// = false
var PlayerBackGround:MovieClip;
var BugFix2:Boolean;// = false
var NumFlashEnergy:int;// = 0
var totFrames:int;// = 0
var SoundEffect:Sound;
var AnnouncementAnnounced:Boolean;// = false
var QualityControl:Boolean;// = true
var MovieDisplay:MovieClip;
var MainMenuDisplayMain:MovieClip;
var keyWasDown:Array;
var beginShake:Boolean;// = false
var ViewEnd:Boolean;// = false
var BackLoaded:Boolean;// = false
var CodePause:Boolean;// = false
public function NTechBattleGrounds():void{
SaveGame = SharedObject.getLocal("NTECH90210");
RightMenu = new ContextMenu();
NumFlashEnergy = 0;
NumFlashHP = 0;
WarnedEnergy = false;
WarnedHP = false;
MusicFade = 1;
MusicLoaded = false;
MusicStart = 0;
MusicEnd = 0;
AnnouncementDisplay = new AnnouncementDisplayID();
BackLoaded = false;
AnnounceDuration = 0;
AnnounceTime = 0;
AnnouncementAnnounced = false;
Phase = 0;
PhaseLoaded = false;
readyForNextPhase = false;
GameOvered = false;
keyIsDown = new Array();
keyWasDown = new Array();
beginShake = false;
shakeDuration = 0;
shakeTime = 0;
XShake = 0;
YShake = 0;
MusicVol = 0.5;
MusicOn = true;
SFXVol = 0.3;
SFXOn = true;
BackVisible = true;
QualityControl = true;
GameDifficulty = "Normal";
GameMode = "Arcade";
AreYouSure = false;
OldTime = 0;
totFrames = 0;
PhaseTime = 0;
Pause = false;
EnemiesSeen = new Array();
EnemyListIndex = 0;
MouseGreenGlow = new MouseGlowerID();
SavedData = new Object();
CureRaise = 0;
BugFix3 = false;
ScorePause = false;
ViewEnd = false;
BugFix1 = false;
BugFix2 = false;
CodePause = false;
super();
SaveGame.data.game = undefined;
if (SaveGame.data.game == undefined){
SavedData.BeamData = 1;
SavedData.WeaponData = new Array();
SavedData.EasyPhases = 0;
SavedData.NormalPhases = 0;
SavedData.HardPhases = 0;
SavedData.HighScore = 0;
SavedData.Boss1 = false;
SavedData.Boss2 = false;
SavedData.Boss3 = false;
SavedData.BeatArcade = false;
SavedData.Classic = false;
SavedData.Swarm = false;
SavedData.Survival = false;
SavedData.PracticeMode = false;
SavedData.GameOvers = 0;
SavedData.SuperChallenge = false;
SavedData.EarnedCodes = new Array();
SavedData.GameBeatOnce = false;
} else {
SavedData = SaveGame.data.game;
};
addEventListener(Event.ENTER_FRAME, SponsorBuff);
removeRightDefaultItems();
contextMenu = RightMenu;
}
public function QualityLow_Off(_arg1:MouseEvent):void{
MainMenuDisplay.Low.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function EnemyList_Click(_arg1:MouseEvent):void{
initEnemyListDisplay();
MainMenuDisplayMain.getChildByName("StartGame").removeEventListener(MouseEvent.CLICK, StartGame_Click);
MainMenuDisplayMain.getChildByName("Options").removeEventListener(MouseEvent.CLICK, Options_Click);
MainMenuDisplayMain.getChildByName("Password").removeEventListener(MouseEvent.CLICK, Password_Click);
MainMenuDisplayMain.getChildByName("HowTo").removeEventListener(MouseEvent.CLICK, HowTo_Click);
MainMenuDisplayMain.getChildByName("EnemyList").removeEventListener(MouseEvent.CLICK, EnemyList_Click);
MainMenuDisplayMain.getChildByName("HighScore").removeEventListener(MouseEvent.CLICK, HighScore_Click);
}
public function ArcadeButton_Off(_arg1:MouseEvent):void{
MainMenuDisplay.ArcadeButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function RightRapids(_arg1:ContextMenuEvent):void{
Objects.initWeapon(6);
if (SavedData.SuperChallenge){
Objects.Ammo[6] = Objects.AmmoMax[6];
};
}
public function HowToSwarm_Click(_arg1:Event):void{
MainMenuDisplay.Display.text = "Swarm mode, which is another unlockable mode, is a test of your battle endurance! You will be assaulted by myriads of malicious nano-bots! There will be no particles to collect during this mode, but of which means you will not have any ammo replenishments or health regenerations! See how long you can last in this obviously unfair battle! Beat it all and surely that will mean you're the one who dominates!";
}
public function RightRadon(_arg1:ContextMenuEvent):void{
Objects.initWeapon(5);
if (SavedData.SuperChallenge){
Objects.Ammo[5] = Objects.AmmoMax[5];
};
}
public function Hard_Off(_arg1:MouseEvent):void{
MainMenuDisplay.HardButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function OptionsBackButton_Over(_arg1:MouseEvent):void{
MainMenuDisplay.BackButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50);
}
public function SFXKnob_Follow(_arg1:Event):void{
var _local2:Number;
_local2 = Math.atan2((mouseY - MainMenuDisplay.SFXKnob.y), (mouseX - MainMenuDisplay.SFXKnob.x));
MainMenuDisplay.SFXKnob.rotation = (((180 * _local2) / Math.PI) + 90);
if (SFXOn){
SFXVol = (1 - (Math.abs(MainMenuDisplay.SFXKnob.rotation) / 180));
};
if (SoundEffect == null){
makeSound(explosionsmall1FX);
EffectChannel.addEventListener(Event.SOUND_COMPLETE, SoundCheckDone);
VolControl = new SoundTransform(SFXVol, 0);
EffectChannel.soundTransform = VolControl;
};
}
public function AutoQuality():void{
var _local1:Number;
var _local2:Number;
_local1 = 0;
_local2 = getTimer();
totFrames++;
_local1 = ((_local2 - OldTime) / totFrames);
if (_local1 < (stage.frameRate - 10)){
stage.quality = "Low";
} else {
if (_local1 < (stage.frameRate - 5)){
stage.quality = "Medium";
} else {
stage.quality = "High";
};
};
if (totFrames == 1000){
OldTime = getTimer();
totFrames = 0;
};
}
public function skipIntro(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 32){
MainMenuDisplay.stop();
MainMenuDisplay.removeEventListener(Event.ENTER_FRAME, CheckMovieIntro);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, skipIntro);
initGame(Phase);
};
}
public function MusicNo_Off(_arg1:MouseEvent):void{
MainMenuDisplay.MusicNo.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function Normal_Click(_arg1:MouseEvent):void{
makeSound(explosionsmall1FX);
MainMenuDisplay.EasyButton.prevFrame();
MainMenuDisplay.NormalButton.nextFrame();
MainMenuDisplay.HardButton.prevFrame();
MainMenuDisplay.InfoBox.text = "Normal mode you will be able to find new weapons and experience the game in it's fullness. (RECOMMENDED TO PLAY FIRST)";
GameDifficulty = "Normal";
}
public function BackFadeOut():Boolean{
var _local1:Boolean;
_local1 = false;
if (BackVisible){
GameBackGround.alpha = (GameBackGround.alpha - 0.01);
if (GameBackGround.alpha <= 0){
_local1 = true;
};
} else {
_local1 = true;
};
return (_local1);
}
public function CheckMovieIntro(_arg1:Event):void{
MainMenuDisplay.x = 350;
MainMenuDisplay.y = 300;
if (MainMenuDisplay.currentLabel == "Done"){
MainMenuDisplay.stop();
MainMenuDisplay.removeEventListener(Event.ENTER_FRAME, CheckMovieIntro);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, skipIntro);
initGame(Phase);
};
}
public function HowToBackButton_Over(_arg1:MouseEvent):void{
MainMenuDisplay.BackButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50);
}
public function ValidateCode(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:Boolean;
var _local5:*;
if (MainMenuDisplay.Code.text == "-squeakytoad-"){
MainMenuDisplay.Display.text = "Unlocked Everything.";
_local2 = 0;
while (_local2 < 7) {
_local4 = false;
_local5 = 0;
while (_local5 < SavedData.WeaponData.length) {
if (SavedData.WeaponData[_local5] == _local2){
_local4 = true;
break;
};
_local5++;
};
if (!_local4){
SavedData.WeaponData.push(_local2);
};
_local2++;
};
SavedData.EasyPhases = 4;
SavedData.NormalPhases = 4;
SavedData.HardPhases = 4;
SavedData.BeamData = 4;
SavedData.SuperChallenge = true;
_local3 = 0;
while (_local3 < 21) {
EnemiesSeen.push(_local3);
_local3++;
};
};
if (MainMenuDisplay.Code.text == "n00b"){
MainMenuDisplay.Display.text = "Unlocked Blaster.";
_local4 = false;
_local5 = 0;
while (_local5 < SavedData.WeaponData.length) {
if (SavedData.WeaponData[_local5] == 0){
_local4 = true;
break;
};
_local5++;
};
if (!_local4){
SavedData.WeaponData.push(0);
};
};
if (MainMenuDisplay.Code.text == "L. Hicks"){
MainMenuDisplay.Display.text = "Unlocked All Phases for all difficulties and unlocks all modes.";
SavedData.EasyPhases = 4;
SavedData.NormalPhases = 4;
SavedData.HardPhases = 4;
};
if (MainMenuDisplay.Code.text == "B. Smith"){
MainMenuDisplay.Display.text = "Unlocked Sparky.";
_local4 = false;
_local5 = 0;
while (_local5 < SavedData.WeaponData.length) {
if (SavedData.WeaponData[_local5] == 4){
_local4 = true;
break;
};
_local5++;
};
if (!_local4){
SavedData.WeaponData.push(4);
};
};
if (MainMenuDisplay.Code.text == "B. Carrel"){
MainMenuDisplay.Display.text = "Unlocked Double Barrel.";
_local4 = false;
_local5 = 0;
while (_local5 < SavedData.WeaponData.length) {
if (SavedData.WeaponData[_local5] == 3){
_local4 = true;
break;
};
_local5++;
};
if (!_local4){
SavedData.WeaponData.push(3);
};
};
if (MainMenuDisplay.Code.text == "nyr035040"){
MainMenuDisplay.Display.text = "Unlocked Rapids.";
_local4 = false;
_local5 = 0;
while (_local5 < SavedData.WeaponData.length) {
if (SavedData.WeaponData[_local5] == 6){
_local4 = true;
break;
};
_local5++;
};
if (!_local4){
SavedData.WeaponData.push(6);
};
};
if (MainMenuDisplay.Code.text == "Wisp"){
MainMenuDisplay.Display.text = "Unlocked Black Hole Bomb.";
_local4 = false;
_local5 = 0;
while (_local5 < SavedData.WeaponData.length) {
if (SavedData.WeaponData[_local5] == 1){
_local4 = true;
break;
};
_local5++;
};
if (!_local4){
SavedData.WeaponData.push(1);
};
};
if (MainMenuDisplay.Code.text == "Gak"){
MainMenuDisplay.Display.text = "Unlocked Web Net.";
_local4 = false;
_local5 = 0;
while (_local5 < SavedData.WeaponData.length) {
if (SavedData.WeaponData[_local5] == 2){
_local4 = true;
break;
};
_local5++;
};
if (!_local4){
SavedData.WeaponData.push(2);
};
};
if (MainMenuDisplay.Code.text == "Diniden Hethro"){
MainMenuDisplay.Display.text = "Unlocked Radon Flare.";
_local4 = false;
_local5 = 0;
while (_local5 < SavedData.WeaponData.length) {
if (SavedData.WeaponData[_local5] == 5){
_local4 = true;
break;
};
_local5++;
};
if (!_local4){
SavedData.WeaponData.push(5);
};
};
if (MainMenuDisplay.Code.text == "M. Clark"){
MainMenuDisplay.Display.text = "Unlocked Enemy List";
_local3 = 0;
while (_local3 < 21) {
EnemiesSeen.push(_local3);
_local3++;
};
};
if (MainMenuDisplay.Code.text == "How To"){
System.setClipboard((((((((((((((("1. Beat Hardest without dieing once----------\n" + "2. Beat First boss on easy----------\n") + "3. Beat Hard mode----------\n") + "4. Survive Survival mode for a long time AND a longer time----------\n") + "5. Get 25,000 for a score in normal mode----------\n") + "6. Get 25,000 for a score in hard mode----------\n") + "7. Beat normal without dieing once----------\n") + "8. Fill up the enemy list----------\n") + "9. Beat boss 1 in hard----------\n") + "10. Beat boss 2 in hard----------\n") + "11. Beat boss 3 in hard----------\n") + "12. Beat last boss in hard----------\n") + "13. Beat easy mode----------\n") + "14. Get a lot of particles in classic----------\n") + "15. Beat the game in normal or hard mode without dieing once----------"));
MainMenuDisplay.Display.text = "You have hacked the system. Open up notepad or a text editor and use \"paste\" (right click and paste or hit CNTRL+V)";
_local3 = 0;
while (_local3 < 21) {
EnemiesSeen.push(_local3);
_local3++;
};
};
if (MainMenuDisplay.Code.text == "D. Hernandez"){
Phase = 1;
stage.addEventListener(Event.ENTER_FRAME, FadeToGame);
TransitionDisplay = new StartTransitionID();
addChild(TransitionDisplay);
};
if (MainMenuDisplay.Code.text == "D. Sanders"){
Phase = 3;
stage.addEventListener(Event.ENTER_FRAME, FadeToGame);
TransitionDisplay = new StartTransitionID();
addChild(TransitionDisplay);
};
if (MainMenuDisplay.Code.text == "D. Owens"){
Phase = 5;
stage.addEventListener(Event.ENTER_FRAME, FadeToGame);
TransitionDisplay = new StartTransitionID();
addChild(TransitionDisplay);
};
if (MainMenuDisplay.Code.text == "D. Greyman"){
Phase = 7;
stage.addEventListener(Event.ENTER_FRAME, FadeToGame);
TransitionDisplay = new StartTransitionID();
addChild(TransitionDisplay);
};
if (MainMenuDisplay.Code.text == "this is the end"){
Phase = 8;
ViewEnd = true;
stage.addEventListener(Event.ENTER_FRAME, FadeToGame);
TransitionDisplay = new StartTransitionID();
addChild(TransitionDisplay);
};
}
public function initEndMovie():void{
clearScreen();
Mouse.show();
MainMenuDisplay = new FullMovieEndID();
addChild(MainMenuDisplay);
MainMenuDisplay.x = 350;
MainMenuDisplay.y = 300;
MainMenuDisplay.addEventListener(Event.ENTER_FRAME, CheckMovieEnd);
}
public function ListNextButton_Over(_arg1:MouseEvent):void{
MainMenuDisplay.NextButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50);
}
public function removePauseMenu():void{
makeSound(explosionsmall1FX);
Mouse.hide();
MainMenuDisplay.MusicYes.removeEventListener(MouseEvent.CLICK, MusicYes_Click);
MainMenuDisplay.SFXYes.removeEventListener(MouseEvent.CLICK, SFXYes_Click);
MainMenuDisplay.BackgroundYes.removeEventListener(MouseEvent.CLICK, BackgroundYes_Click);
MainMenuDisplay.QualityYes.removeEventListener(MouseEvent.CLICK, QualityYes_Click);
MainMenuDisplay.MusicNo.removeEventListener(MouseEvent.CLICK, MusicNo_Click);
MainMenuDisplay.SFXNo.removeEventListener(MouseEvent.CLICK, SFXNo_Click);
MainMenuDisplay.BackgroundNo.removeEventListener(MouseEvent.CLICK, BackgroundNo_Click);
MainMenuDisplay.QualityNo.removeEventListener(MouseEvent.CLICK, QualityNo_Click);
MainMenuDisplay.EasyButton.removeEventListener(MouseEvent.MOUSE_OVER, Easy_Click);
MainMenuDisplay.NormalButton.removeEventListener(MouseEvent.MOUSE_OVER, Normal_Click);
MainMenuDisplay.HardButton.removeEventListener(MouseEvent.MOUSE_OVER, Hard_Click);
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.CLICK, OptionsBackButton_Click);
MainMenuDisplay.removeEventListener(Event.ENTER_FRAME, DropDownDisplay);
MainMenuDisplay.MusicYes.removeEventListener(MouseEvent.MOUSE_OVER, MusicYes_Over);
MainMenuDisplay.SFXYes.removeEventListener(MouseEvent.MOUSE_OVER, SFXYes_Over);
MainMenuDisplay.BackgroundYes.removeEventListener(MouseEvent.MOUSE_OVER, BackgroundYes_Over);
MainMenuDisplay.QualityYes.removeEventListener(MouseEvent.MOUSE_OVER, QualityYes_Over);
MainMenuDisplay.MusicNo.removeEventListener(MouseEvent.MOUSE_OVER, MusicNo_Over);
MainMenuDisplay.SFXNo.removeEventListener(MouseEvent.MOUSE_OVER, SFXNo_Over);
MainMenuDisplay.BackgroundNo.removeEventListener(MouseEvent.MOUSE_OVER, BackgroundNo_Over);
MainMenuDisplay.QualityNo.removeEventListener(MouseEvent.MOUSE_OVER, QualityNo_Over);
MainMenuDisplay.EasyButton.removeEventListener(MouseEvent.MOUSE_OVER, Easy_Over);
MainMenuDisplay.NormalButton.removeEventListener(MouseEvent.MOUSE_OVER, Normal_Over);
MainMenuDisplay.HardButton.removeEventListener(MouseEvent.MOUSE_OVER, Hard_Over);
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.MOUSE_OVER, OptionsBackButton_Over);
MainMenuDisplay.MusicYes.removeEventListener(MouseEvent.MOUSE_OUT, MusicYes_Off);
MainMenuDisplay.SFXYes.removeEventListener(MouseEvent.MOUSE_OUT, SFXYes_Off);
MainMenuDisplay.BackgroundYes.removeEventListener(MouseEvent.MOUSE_OUT, BackgroundYes_Off);
MainMenuDisplay.QualityYes.removeEventListener(MouseEvent.MOUSE_OUT, QualityYes_Off);
MainMenuDisplay.MusicNo.removeEventListener(MouseEvent.MOUSE_OUT, MusicNo_Off);
MainMenuDisplay.SFXNo.removeEventListener(MouseEvent.MOUSE_OUT, SFXNo_Off);
MainMenuDisplay.BackgroundNo.removeEventListener(MouseEvent.MOUSE_OUT, BackgroundNo_Off);
MainMenuDisplay.QualityNo.removeEventListener(MouseEvent.MOUSE_OUT, QualityNo_Off);
MainMenuDisplay.EasyButton.removeEventListener(MouseEvent.MOUSE_OUT, Easy_Off);
MainMenuDisplay.NormalButton.removeEventListener(MouseEvent.MOUSE_OUT, Normal_Off);
MainMenuDisplay.HardButton.removeEventListener(MouseEvent.MOUSE_OUT, Hard_Off);
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.MOUSE_OUT, OptionsBackButton_Off);
MainMenuDisplay.removeEventListener(Event.ENTER_FRAME, DropDownDisplay);
MainMenuDisplay.Low.removeEventListener(MouseEvent.CLICK, QualityLow_Click);
MainMenuDisplay.Medium.removeEventListener(MouseEvent.CLICK, QualityMedium_Click);
MainMenuDisplay.High.removeEventListener(MouseEvent.CLICK, QualityHigh_Click);
MainMenuDisplay.Low.removeEventListener(MouseEvent.MOUSE_OVER, QualityLow_Over);
MainMenuDisplay.Medium.removeEventListener(MouseEvent.MOUSE_OVER, QualityMedium_Over);
MainMenuDisplay.High.removeEventListener(MouseEvent.MOUSE_OVER, QualityHigh_Over);
MainMenuDisplay.Low.removeEventListener(MouseEvent.MOUSE_OUT, QualityLow_Off);
MainMenuDisplay.Medium.removeEventListener(MouseEvent.MOUSE_OUT, QualityMedium_Off);
MainMenuDisplay.High.removeEventListener(MouseEvent.MOUSE_OUT, QualityHigh_Off);
MainMenuDisplay.addEventListener(Event.ENTER_FRAME, RaisePauseDisplay);
}
public function skipIntroListen(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 32){
StoryBuffEnd(new Event("HAHA"));
};
}
public function BackgroundYes_Click(_arg1:MouseEvent):void{
makeSound(explosionsmall1FX);
MainMenuDisplay.BackgroundYes.nextFrame();
MainMenuDisplay.BackgroundNo.prevFrame();
BackVisible = true;
}
public function Options_Click(_arg1:MouseEvent):void{
initOptionsDisplay();
MainMenuDisplayMain.getChildByName("StartGame").removeEventListener(MouseEvent.CLICK, StartGame_Click);
MainMenuDisplayMain.getChildByName("Options").removeEventListener(MouseEvent.CLICK, Options_Click);
MainMenuDisplayMain.getChildByName("Password").removeEventListener(MouseEvent.CLICK, Password_Click);
MainMenuDisplayMain.getChildByName("HowTo").removeEventListener(MouseEvent.CLICK, HowTo_Click);
MainMenuDisplayMain.getChildByName("EnemyList").removeEventListener(MouseEvent.CLICK, EnemyList_Click);
MainMenuDisplayMain.getChildByName("HighScore").removeEventListener(MouseEvent.CLICK, HighScore_Click);
}
public function keyDownHandler(_arg1:KeyboardEvent):void{
keyIsDown[_arg1.keyCode] = true;
Objects.keyDownHandler(_arg1.keyCode);
}
public function MusicYes_Over(_arg1:MouseEvent):void{
MainMenuDisplay.MusicYes.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 200, 200, 200);
}
public function SoundCheckDone(_arg1:Event):void{
SoundEffect = null;
}
public function AnnouncementRejectHandler(_arg1:Event):void{
removeAnnouncement();
}
public function initHowToDisplay():void{
makeSound(explosionsmall1FX);
MainMenuDisplay = new HowToDisplayID();
addChild(MainMenuDisplay);
MainMenuDisplay.BackButton.addEventListener(MouseEvent.CLICK, HowToBackButton_Click);
MainMenuDisplay.BackButton.addEventListener(MouseEvent.MOUSE_OVER, HowToBackButton_Over);
MainMenuDisplay.BackButton.addEventListener(MouseEvent.MOUSE_OUT, HowToBackButton_Off);
MainMenuDisplay.Basics.addEventListener(MouseEvent.CLICK, HowToBasics_Click);
MainMenuDisplay.Particles.addEventListener(MouseEvent.CLICK, HowToParticles_Click);
MainMenuDisplay.Weapons.addEventListener(MouseEvent.CLICK, HowToWeapons_Click);
MainMenuDisplay.Unlock.addEventListener(MouseEvent.CLICK, HowToUnlock_Click);
MainMenuDisplay.Classic.addEventListener(MouseEvent.CLICK, HowToClassic_Click);
MainMenuDisplay.Survival.addEventListener(MouseEvent.CLICK, HowToSurvival_Click);
MainMenuDisplay.Swarm.addEventListener(MouseEvent.CLICK, HowToSwarm_Click);
MainMenuDisplay.Up.addEventListener(MouseEvent.CLICK, HowToUp_Click);
MainMenuDisplay.Down.addEventListener(MouseEvent.CLICK, HowToDown_Click);
MainMenuDisplay.addEventListener(Event.ENTER_FRAME, DropDownDisplay);
MainMenuDisplay.y = -700;
}
public function ModeBackButton_Click(_arg1:MouseEvent):void{
makeSound(explosionsmall1FX);
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.CLICK, BackButton_Click);
MainMenuDisplay.ArcadeButton.removeEventListener(MouseEvent.CLICK, ArcadeButton_Click);
MainMenuDisplay.SurvivalButton.removeEventListener(MouseEvent.CLICK, SurvivalButton_Click);
MainMenuDisplay.ClassicButton.removeEventListener(MouseEvent.CLICK, ClassicButton_Click);
MainMenuDisplay.SwarmButton.removeEventListener(MouseEvent.CLICK, SwarmButton_Click);
MainMenuDisplay.ArcadeButton.removeEventListener(MouseEvent.MOUSE_OVER, ArcadeButton_Over);
MainMenuDisplay.SurvivalButton.removeEventListener(MouseEvent.MOUSE_OVER, SurvivalButton_Over);
MainMenuDisplay.ClassicButton.removeEventListener(MouseEvent.MOUSE_OVER, ClassicButton_Over);
MainMenuDisplay.SwarmButton.removeEventListener(MouseEvent.MOUSE_OVER, SwarmButton_Over);
MainMenuDisplay.ArcadeButton.removeEventListener(MouseEvent.MOUSE_OUT, ArcadeButton_Off);
MainMenuDisplay.SurvivalButton.removeEventListener(MouseEvent.MOUSE_OUT, SurvivalButton_Off);
MainMenuDisplay.ClassicButton.removeEventListener(MouseEvent.MOUSE_OUT, ClassicButton_Off);
MainMenuDisplay.SwarmButton.removeEventListener(MouseEvent.MOUSE_OUT, SwarmButton_Off);
MainMenuDisplay.removeEventListener(Event.ENTER_FRAME, DropDownDisplay);
BackButton_Click(new MouseEvent("BLAH"));
}
public function keyUpHandler(_arg1:KeyboardEvent):void{
keyIsDown[_arg1.keyCode] = false;
Objects.keyUpHandler(_arg1.keyCode);
}
public function CheckMovieEnd(_arg1:Event):void{
MainMenuDisplay.x = 350;
MainMenuDisplay.y = 300;
if (MainMenuDisplay.currentLabel == "Done"){
MainMenuDisplay.stop();
MainMenuDisplay.removeEventListener(Event.ENTER_FRAME, CheckMovieEnd);
TransitionDisplay = new StartTransitionID();
addChild(TransitionDisplay);
stage.addEventListener(Event.ENTER_FRAME, FadeToMain);
};
}
public function SFXNo_Over(_arg1:MouseEvent):void{
MainMenuDisplay.SFXNo.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 200, 200, 200);
}
public function FadeToMain(_arg1:Event):void{
if (TransitionDisplay.currentLabel == "Done"){
removeChild(TransitionDisplay);
initMainMenuDisplay();
stage.removeEventListener(Event.ENTER_FRAME, FadeToMain);
};
}
public function SurvivalButton_Click(_arg1:MouseEvent):void{
GameMode = "Survival";
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.CLICK, BackButton_Click);
MainMenuDisplay.ArcadeButton.removeEventListener(MouseEvent.CLICK, ArcadeButton_Click);
MainMenuDisplay.SurvivalButton.removeEventListener(MouseEvent.CLICK, SurvivalButton_Click);
MainMenuDisplay.ClassicButton.removeEventListener(MouseEvent.CLICK, ClassicButton_Click);
MainMenuDisplay.SwarmButton.removeEventListener(MouseEvent.CLICK, SwarmButton_Click);
MainMenuDisplay.ArcadeButton.removeEventListener(MouseEvent.MOUSE_OVER, ArcadeButton_Over);
MainMenuDisplay.SurvivalButton.removeEventListener(MouseEvent.MOUSE_OVER, SurvivalButton_Over);
MainMenuDisplay.ClassicButton.removeEventListener(MouseEvent.MOUSE_OVER, ClassicButton_Over);
MainMenuDisplay.SwarmButton.removeEventListener(MouseEvent.MOUSE_OVER, SwarmButton_Over);
MainMenuDisplay.ArcadeButton.removeEventListener(MouseEvent.MOUSE_OUT, ArcadeButton_Off);
MainMenuDisplay.SurvivalButton.removeEventListener(MouseEvent.MOUSE_OUT, SurvivalButton_Off);
MainMenuDisplay.ClassicButton.removeEventListener(MouseEvent.MOUSE_OUT, ClassicButton_Off);
MainMenuDisplay.SwarmButton.removeEventListener(MouseEvent.MOUSE_OUT, SwarmButton_Off);
MainMenuDisplay.removeEventListener(Event.ENTER_FRAME, DropDownDisplay);
SoundEffect = new gameoverFX();
EffectChannel = SoundEffect.play(2500);
stage.addEventListener(Event.ENTER_FRAME, FadeToGame);
TransitionDisplay = new StartTransitionID();
addChild(TransitionDisplay);
}
public function Phase3_Click(_arg1:MouseEvent):void{
Phase = 4;
if (GameDifficulty == "Easy"){
if (SavedData.EasyPhases > 3){
MainMenuDisplay.Phase4.gotoAndStop(1);
};
if (SavedData.EasyPhases > 2){
MainMenuDisplay.Phase3.gotoAndStop(2);
};
if (SavedData.EasyPhases > 1){
MainMenuDisplay.Phase2.gotoAndStop(1);
};
if (SavedData.EasyPhases > 0){
MainMenuDisplay.Phase1.gotoAndStop(1);
};
} else {
if (GameDifficulty == "Normal"){
if (SavedData.NormalPhases > 3){
MainMenuDisplay.Phase4.gotoAndStop(1);
};
if (SavedData.NormalPhases > 2){
MainMenuDisplay.Phase3.gotoAndStop(2);
};
if (SavedData.NormalPhases > 1){
MainMenuDisplay.Phase2.gotoAndStop(1);
};
if (SavedData.NormalPhases > 0){
MainMenuDisplay.Phase1.gotoAndStop(1);
};
} else {
if (GameDifficulty == "Hard"){
if (SavedData.HardPhases > 3){
MainMenuDisplay.Phase4.gotoAndStop(1);
};
if (SavedData.HardPhases > 2){
MainMenuDisplay.Phase3.gotoAndStop(2);
};
if (SavedData.HardPhases > 1){
MainMenuDisplay.Phase2.gotoAndStop(1);
};
if (SavedData.HardPhases > 0){
MainMenuDisplay.Phase1.gotoAndStop(1);
};
};
};
};
}
public function musicFadeTo(_arg1:Class, _arg2:Number):Boolean{
var _local3:Boolean;
_local3 = false;
if (MusicOn){
if (!MusicLoaded){
Channel.soundTransform = new SoundTransform(MusicFade);
MusicFade = (MusicFade - 0.01);
if (MusicFade <= 0){
Music = new (_arg1);
MusicFade = MusicVol;
Channel.stop();
Channel = Music.play();
Channel.soundTransform = new SoundTransform(MusicVol);
Channel.addEventListener(Event.SOUND_COMPLETE, MusicLoop);
MusicStart = _arg2;
_local3 = true;
} else {
_local3 = false;
};
};
} else {
_local3 = true;
MusicLoaded = true;
};
return (_local3);
}
public function HowToDown_Click(_arg1:MouseEvent):void{
if (MainMenuDisplay.Display.scrollV < MainMenuDisplay.Display.maxScrollV){
MainMenuDisplay.Display.scrollV++;
};
}
public function BackgroundNo_Off(_arg1:MouseEvent):void{
MainMenuDisplay.BackgroundNo.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function SurvivalButton_Off(_arg1:MouseEvent):void{
MainMenuDisplay.SurvivalButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function StartGame_Click(_arg1:MouseEvent):void{
initModeDisplay();
MainMenuDisplayMain.getChildByName("StartGame").removeEventListener(MouseEvent.CLICK, StartGame_Click);
MainMenuDisplayMain.getChildByName("Options").removeEventListener(MouseEvent.CLICK, Options_Click);
MainMenuDisplayMain.getChildByName("Password").removeEventListener(MouseEvent.CLICK, Password_Click);
MainMenuDisplayMain.getChildByName("HowTo").removeEventListener(MouseEvent.CLICK, HowTo_Click);
MainMenuDisplayMain.getChildByName("EnemyList").removeEventListener(MouseEvent.CLICK, EnemyList_Click);
MainMenuDisplayMain.getChildByName("HighScore").removeEventListener(MouseEvent.CLICK, HighScore_Click);
}
public function GameOverBack_Click(_arg1:MouseEvent):void{
stage.addEventListener(Event.ENTER_FRAME, FadeToMain);
Music = null;
Channel.stop();
TransitionDisplay = new StartTransitionID();
addChild(TransitionDisplay);
}
public function BackButton_Click(_arg1:MouseEvent):void{
makeSound(explosionsmall1FX);
MainMenuDisplay.addEventListener(Event.ENTER_FRAME, RaiseDisplay);
}
public function EnemyListBackButton_Off(_arg1:MouseEvent):void{
MainMenuDisplay.BackButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function FadeToStoryMovie(_arg1:Event):void{
if (TransitionDisplay.currentLabel == "Done"){
removeChild(MainMenuDisplay);
MainMenuDisplay = null;
removeChild(TransitionDisplay);
removeEventListener(Event.ENTER_FRAME, FadeToStoryMovie);
StoryBuff();
};
}
public function BackgroundNo_Click(_arg1:MouseEvent):void{
makeSound(explosionsmall1FX);
MainMenuDisplay.BackgroundYes.prevFrame();
MainMenuDisplay.BackgroundNo.nextFrame();
BackVisible = false;
}
public function HowToSurvival_Click(_arg1:Event):void{
MainMenuDisplay.Display.text = "Survival mode, which you must unlock, is a test of your reflex and particle gathering skill! You start off with a level 4 beam (able to switch to any of the particle colors), but you have only 100 health to begin with and your energy depletes at an alarming rate!!! See how long you can survive! Glory and power to those who can live long...";
}
public function ClassicButton_Off(_arg1:MouseEvent):void{
MainMenuDisplay.ClassicButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function secretUnlocks():void{
if (GameDifficulty == "Hard"){
if ((((Objects.getScore() >= 25000)) && (!(ScorePause)))){
ScorePause = true;
pauseAnnouncement("Mischievious", "You're providing an abundance of energy! Here's a little reward:\n\nCODE:\n\n\"Gak\"", 200);
};
} else {
if (GameDifficulty == "Normal"){
if ((((Objects.getScore() >= 25000)) && (!(ScorePause)))){
ScorePause = true;
pauseAnnouncement("Mischievious", "You're providing an abundance of energy! Here's a little reward:\n\nCODE:\n\n\"Wisp\"", 200);
};
};
};
}
public function DinidenBuff(_arg1:Event):void{
PhaseTime++;
if (MainMenuDisplay == null){
MainMenuDisplay = new DinidenBufferID();
MainMenuDisplay.x = 350;
MainMenuDisplay.y = 290;
addChild(MainMenuDisplay);
};
if (PhaseTime == 105){
removeEventListener(Event.ENTER_FRAME, DinidenBuff);
PhaseTime = 0;
TransitionDisplay = new StartTransitionID();
addChild(TransitionDisplay);
addEventListener(Event.ENTER_FRAME, FadeToSqueaky);
};
}
public function EnemyListBackButton_Click(_arg1:Event):void{
makeSound(explosionsmall1FX);
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.CLICK, EnemyListBackButton_Click);
MainMenuDisplay.NextButton.removeEventListener(MouseEvent.CLICK, ListNextButton_Click);
MainMenuDisplay.removeEventListener(Event.ENTER_FRAME, DropDownDisplay);
BackButton_Click(new MouseEvent("BLAH"));
}
public function RightDouble(_arg1:ContextMenuEvent):void{
Objects.initWeapon(3);
if (SavedData.SuperChallenge){
Objects.Ammo[3] = Objects.AmmoMax[3];
};
}
public function SFXNo_Click(_arg1:MouseEvent):void{
makeSound(explosionsmall1FX);
MainMenuDisplay.SFXYes.prevFrame();
MainMenuDisplay.SFXNo.nextFrame();
SFXOn = false;
SFXVol = 0;
}
public function StoryBuffEnd(_arg1:Event):void{
MainMenuDisplay.stop();
MainMenuDisplay.removeEventListener("EndMovie", StoryBuffEnd);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, skipIntroListen);
PhaseTime = 0;
removeChild(MainMenuDisplay);
MainMenuDisplay = null;
TransitionDisplay = new StartTransitionID();
addChild(TransitionDisplay);
stage.addEventListener(Event.ENTER_FRAME, FadeToMain);
}
public function QualityLow_Over(_arg1:MouseEvent):void{
MainMenuDisplay.Low.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 200, 200, 200);
}
public function MusicKnob_Press(_arg1:Event):void{
MainMenuDisplay.MusicKnob.addEventListener(Event.ENTER_FRAME, MusicKnob_Follow);
}
public function HowToBasics_Click(_arg1:Event):void{
MainMenuDisplay.Display.text = "Congradulations on even considering the long documentation of how to play the game! For your efforts type this into the password screen:\n\nCODE:\n\n\"How To\"\n\nWelcome to N-Tech:Battlegrounds! Read these few instructions here real fast to learn how to keep your station in top-notch condition!\n\nFirst let's start with the basics. The screen you see surrounding this text is a mini-version of how your Station will look during gameplay. The roundish bubble on the top left shows how much health your station has left. The bar on the bottom left represents how much energy you have left in storage. Both of these can not reach zero or else it is GAMEOVER!!! The top right bar shows how much HP your current enemy you are attacking has left. Other displays include your score and how many particles you have collected.";
}
public function QualityMedium_Over(_arg1:MouseEvent):void{
MainMenuDisplay.Medium.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 200, 200, 200);
}
public function HighScoreBackButton_Off(_arg1:MouseEvent):void{
MainMenuDisplay.BackButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function initGame(_arg1:int):void{
Channel.stop();
EffectChannel.stop();
MainMenuDisplayMain.getChildByName("StartGame").removeEventListener(MouseEvent.CLICK, StartGame_Click);
MainMenuDisplayMain.getChildByName("Options").removeEventListener(MouseEvent.CLICK, Options_Click);
MainMenuDisplayMain.getChildByName("Password").removeEventListener(MouseEvent.CLICK, Password_Click);
MainMenuDisplayMain.getChildByName("HowTo").removeEventListener(MouseEvent.CLICK, HowTo_Click);
MainMenuDisplayMain.getChildByName("EnemyList").removeEventListener(MouseEvent.CLICK, EnemyList_Click);
MainMenuDisplayMain.getChildByName("HighScore").removeEventListener(MouseEvent.CLICK, HighScore_Click);
stage.removeEventListener(Event.ENTER_FRAME, FadeToGame);
clearScreen();
GameBoard = new MovieClip();
Objects = new ObjectHandler(GameBoard, GameMode, GameDifficulty, SFXVol, SavedData);
GameSkin = new GameSkin1ID();
GameBackGround = new BackGround1ID();
PlayerBackGround = new PlayerBackGround1ID();
AnnounceDuration = 0;
AnnounceTime = 0;
AnnouncementAnnounced = false;
Phase = _arg1;
PhaseTime = 0;
PhaseLoaded = false;
MusicLoaded = false;
BackLoaded = false;
readyForNextPhase = false;
GameOvered = false;
beginShake = false;
Pause = false;
CodePause = false;
ScorePause = false;
if (Phase > 1){
SavedData.GameOvers = 1;
} else {
SavedData.GameOvers = 0;
};
GameBoard.x = 0;
GameBoard.y = 15;
if (BackVisible){
GameBoard.addChild(GameBackGround);
};
GameBoard.addChild(PlayerBackGround);
GameBoard.addChild(Objects);
addChild(GameBoard);
addChild(GameSkin);
Objects.AssociateMouseGlow(MouseGreenGlow);
MouseGreenGlow.mouseEnabled = false;
GameSkin.SponsorButton.addEventListener(MouseEvent.CLICK, SponsorClick);
Objects.addEventListener("EnemyUpdate", EnemyStatusUpdate);
Objects.addEventListener("WeaponUpdate", updateWeaponList);
Objects.addEventListener("PhaseDone", PhaseHandler);
Objects.addEventListener("RequestAnnouncement", AnnouncementHandler);
Objects.addEventListener("RejectAnnouncement", AnnouncementRejectHandler);
Objects.addEventListener("RequestShake", Shake_Request);
Objects.addEventListener("GameOver", GameOver_Handler);
Objects.addEventListener("FreezeGame", GameFreeze);
addEventListener(Event.ENTER_FRAME, main, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
stage.addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
stage.addEventListener(MouseEvent.MOUSE_DOWN, Mouse_Press);
stage.addEventListener(MouseEvent.MOUSE_UP, Mouse_Release);
initGameRightMenu();
addChild(MouseGreenGlow);
Mouse.hide();
}
public function clearScreen():void{
while (numChildren > 0) {
removeChildAt(0);
};
}
public function OptionsBackButton_Off(_arg1:MouseEvent):void{
MainMenuDisplay.BackButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function Normal_Over(_arg1:MouseEvent):void{
MainMenuDisplay.NormalButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 200, 200, 200);
}
public function SqueakyBuff(_arg1:Event):void{
PhaseTime++;
if (MainMenuDisplay == null){
MainMenuDisplay = new SqueakyBufferID();
MainMenuDisplay.x = 350;
MainMenuDisplay.y = 300;
addChild(MainMenuDisplay);
};
if (PhaseTime == 190){
removeEventListener(Event.ENTER_FRAME, SqueakyBuff);
PhaseTime = 0;
TransitionDisplay = new StartTransitionID();
addChild(TransitionDisplay);
addEventListener(Event.ENTER_FRAME, FadeToStoryMovie);
};
}
public function Hard_Click(_arg1:MouseEvent):void{
makeSound(explosionsmall1FX);
MainMenuDisplay.EasyButton.prevFrame();
MainMenuDisplay.NormalButton.prevFrame();
MainMenuDisplay.HardButton.nextFrame();
MainMenuDisplay.InfoBox.text = "Hard mode you CAN NOT collect weapons, but you will discover hidden codes within it. Energy will deplete during boss fights.";
GameDifficulty = "Hard";
}
public function initPauseMenu():void{
if (!contains(MainMenuDisplay)){
initOptionsDisplay();
MainMenuDisplay.BackButton.nextFrame();
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.CLICK, OptionsBackButton_Click);
MainMenuDisplay.BackButton.addEventListener(MouseEvent.CLICK, PauseBackButton_Click);
MainMenuDisplay.EasyButton.removeEventListener(MouseEvent.CLICK, Easy_Click);
MainMenuDisplay.NormalButton.removeEventListener(MouseEvent.CLICK, Normal_Click);
MainMenuDisplay.HardButton.removeEventListener(MouseEvent.CLICK, Hard_Click);
Pause = true;
AreYouSure = false;
Mouse.show();
};
}
public function GameFreeze(_arg1:Event):void{
Pause = true;
}
public function musicFadeOut():Boolean{
var _local1:Boolean;
_local1 = false;
if (MusicOn){
if (!MusicLoaded){
Channel.soundTransform = new SoundTransform(MusicFade);
MusicFade = (MusicFade - 0.01);
if (MusicFade <= 0){
MusicFade = 0;
_local1 = true;
Channel.soundTransform = new SoundTransform(MusicFade);
Channel.stop();
} else {
_local1 = false;
};
};
} else {
_local1 = true;
};
return (_local1);
}
public function QualityYes_Over(_arg1:MouseEvent):void{
MainMenuDisplay.QualityYes.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 200, 200, 200);
}
public function SFXKnob_Stop(_arg1:Event):void{
MainMenuDisplay.SFXKnob.removeEventListener(Event.ENTER_FRAME, SFXKnob_Follow);
if (EffectChannel != null){
EffectChannel.stop();
EffectChannel.removeEventListener(Event.SOUND_COMPLETE, SoundCheckDone);
};
SoundEffect = null;
}
public function RumbleNoise_Continue(_arg1:Event):void{
SoundEffect = new screenrumbleentryFX();
EffectChannel = SoundEffect.play();
EffectChannel.soundTransform = new SoundTransform(SFXVol);
}
public function Phase2_Click(_arg1:MouseEvent):void{
Phase = 2;
if (GameDifficulty == "Easy"){
if (SavedData.EasyPhases > 3){
MainMenuDisplay.Phase4.gotoAndStop(1);
};
if (SavedData.EasyPhases > 2){
MainMenuDisplay.Phase3.gotoAndStop(1);
};
if (SavedData.EasyPhases > 1){
MainMenuDisplay.Phase2.gotoAndStop(2);
};
if (SavedData.EasyPhases > 0){
MainMenuDisplay.Phase1.gotoAndStop(1);
};
} else {
if (GameDifficulty == "Normal"){
if (SavedData.NormalPhases > 3){
MainMenuDisplay.Phase4.gotoAndStop(1);
};
if (SavedData.NormalPhases > 2){
MainMenuDisplay.Phase3.gotoAndStop(1);
};
if (SavedData.NormalPhases > 1){
MainMenuDisplay.Phase2.gotoAndStop(2);
};
if (SavedData.NormalPhases > 0){
MainMenuDisplay.Phase1.gotoAndStop(1);
};
} else {
if (GameDifficulty == "Hard"){
if (SavedData.HardPhases > 3){
MainMenuDisplay.Phase4.gotoAndStop(1);
};
if (SavedData.HardPhases > 2){
MainMenuDisplay.Phase3.gotoAndStop(1);
};
if (SavedData.HardPhases > 1){
MainMenuDisplay.Phase2.gotoAndStop(2);
};
if (SavedData.HardPhases > 0){
MainMenuDisplay.Phase1.gotoAndStop(1);
};
};
};
};
}
public function SwarmButton_Over(_arg1:MouseEvent):void{
MainMenuDisplay.Display.text = "";
MainMenuDisplay.Display.appendText("Swarm Mode! Don't worry about energy. Only worry about the mass of enemies coming to dominate your power station! Use whatever weapons you have collected to survive! And sorry...but the resource department ran out of powerups. So, spend ammo wisely! Unlimited enemies...");
MainMenuDisplay.SwarmButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 200, 200, 200);
}
public function PhaseHandler(_arg1:Event):void{
if (readyForNextPhase){
Phase++;
PhaseTime = 0;
readyForNextPhase = false;
PhaseLoaded = false;
};
}
public function PasswordBackButton_Click(_arg1:Event):void{
makeSound(explosionsmall1FX);
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.CLICK, BackButton_Click);
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.MOUSE_OVER, PasswordBackButton_Over);
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.MOUSE_OUT, PasswordBackButton_Off);
MainMenuDisplay.removeEventListener(Event.ENTER_FRAME, DropDownDisplay);
BackButton_Click(new MouseEvent("BLAH"));
}
public function MusicYes_Click(_arg1:MouseEvent):void{
makeSound(explosionsmall1FX);
MainMenuDisplay.MusicYes.nextFrame();
MainMenuDisplay.MusicNo.prevFrame();
if (!MusicOn){
Channel.stop();
Channel = Music.play();
Channel.addEventListener(Event.SOUND_COMPLETE, repeatFullSong);
};
MusicOn = true;
}
public function ListNextButton_Click(_arg1:MouseEvent):void{
var _local2:Boolean;
var _local3:*;
var _local4:*;
_local2 = false;
makeSound(explosionsmall1FX);
_local3 = (MainMenuDisplay.numChildren - 1);
while (_local3 > 4) {
MainMenuDisplay.removeChild(MainMenuDisplay.getChildAt(_local3));
_local3--;
};
if (EnemyListIndex > EnemiesSeen.length){
EnemyListIndex = 0;
};
_local4 = EnemyListIndex;
while ((((_local4 < EnemiesSeen.length)) && ((_local4 < (3 + EnemyListIndex))))) {
_local2 = false;
if (_local4 > 0){
_local3 = (_local4 - 1);
while (_local3 > 0) {
if (EnemiesSeen[_local3] == EnemiesSeen[_local4]){
_local2 = true;
};
_local3--;
};
};
if (!_local2){
switch (EnemiesSeen[_local4]){
case 0:
MainMenuDisplay.addChild(new EnemyListing0ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = (((_local4 + 1) - EnemyListIndex) * 90);
break;
case 1:
MainMenuDisplay.addChild(new EnemyListing1ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = (((_local4 + 1) - EnemyListIndex) * 90);
break;
case 2:
MainMenuDisplay.addChild(new EnemyListing2ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = (((_local4 + 1) - EnemyListIndex) * 90);
break;
case 3:
MainMenuDisplay.addChild(new EnemyListing3ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = (((_local4 + 1) - EnemyListIndex) * 90);
break;
case 4:
MainMenuDisplay.addChild(new EnemyListing4ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = (((_local4 + 1) - EnemyListIndex) * 90);
break;
case 5:
MainMenuDisplay.addChild(new EnemyListing5ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = (((_local4 + 1) - EnemyListIndex) * 90);
break;
case 6:
MainMenuDisplay.addChild(new EnemyListing6ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = (((_local4 + 1) - EnemyListIndex) * 90);
break;
case 7:
MainMenuDisplay.addChild(new EnemyListing7ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = (((_local4 + 1) - EnemyListIndex) * 90);
break;
case 8:
MainMenuDisplay.addChild(new EnemyListing8ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = (((_local4 + 1) - EnemyListIndex) * 90);
break;
case 9:
MainMenuDisplay.addChild(new EnemyListing9ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = (((_local4 + 1) - EnemyListIndex) * 90);
break;
case 10:
MainMenuDisplay.addChild(new EnemyListing10ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = (((_local4 + 1) - EnemyListIndex) * 90);
break;
case 11:
MainMenuDisplay.addChild(new EnemyListing11ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = (((_local4 + 1) - EnemyListIndex) * 90);
break;
case 12:
MainMenuDisplay.addChild(new EnemyListing12ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = (((_local4 + 1) - EnemyListIndex) * 90);
break;
case 13:
MainMenuDisplay.addChild(new EnemyListing13ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = (((_local4 + 1) - EnemyListIndex) * 90);
break;
case 14:
MainMenuDisplay.addChild(new EnemyListing14ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = (((_local4 + 1) - EnemyListIndex) * 90);
break;
case 15:
MainMenuDisplay.addChild(new EnemyListing15ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = (((_local4 + 1) - EnemyListIndex) * 90);
break;
case 16:
MainMenuDisplay.addChild(new EnemyListing16ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = (((_local4 + 1) - EnemyListIndex) * 90);
break;
case 17:
MainMenuDisplay.addChild(new EnemyListing17ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = (((_local4 + 1) - EnemyListIndex) * 90);
break;
case 18:
MainMenuDisplay.addChild(new EnemyListing18ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = (((_local4 + 1) - EnemyListIndex) * 90);
break;
case 19:
MainMenuDisplay.addChild(new EnemyListing19ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = (((_local4 + 1) - EnemyListIndex) * 90);
break;
case 20:
MainMenuDisplay.addChild(new EnemyListing20ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = (((_local4 + 1) - EnemyListIndex) * 90);
break;
case 21:
MainMenuDisplay.addChild(new EnemyListing21ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = (((_local4 + 1) - EnemyListIndex) * 90);
break;
};
};
_local4++;
};
EnemyListIndex = (EnemyListIndex + 3);
}
public function PracticeButton_Over(_arg1:MouseEvent):void{
MainMenuDisplay.PracticeButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 200, 200, 200);
MainMenuDisplay.Display.text = "";
MainMenuDisplay.Display.appendText("Quickly learn the basics with some practice. Do well and EARN AN EXTRA BLASTER!");
}
public function initOptionsDisplay():void{
makeSound(explosionsmall1FX);
MainMenuDisplay = new OptionsDisplayID();
addChild(MainMenuDisplay);
if (BackVisible){
MainMenuDisplay.BackgroundYes.nextFrame();
} else {
MainMenuDisplay.BackgroundNo.nextFrame();
};
if (QualityControl){
MainMenuDisplay.QualityYes.nextFrame();
} else {
MainMenuDisplay.QualityNo.nextFrame();
};
if (MusicOn){
MainMenuDisplay.MusicYes.nextFrame();
} else {
MainMenuDisplay.MusicNo.nextFrame();
};
if (SFXOn){
MainMenuDisplay.SFXYes.nextFrame();
} else {
MainMenuDisplay.SFXNo.nextFrame();
};
MainMenuDisplay.SFXKnob.rotation = (-((SFXVol - 1)) * 180);
MainMenuDisplay.MusicKnob.rotation = (-((MusicVol - 1)) * 180);
if (GameDifficulty == "Easy"){
MainMenuDisplay.EasyButton.nextFrame();
} else {
if (GameDifficulty == "Normal"){
MainMenuDisplay.NormalButton.nextFrame();
} else {
if (GameDifficulty == "Hard"){
MainMenuDisplay.HardButton.nextFrame();
};
};
};
if (stage.quality == "low"){
MainMenuDisplay.Low.nextFrame();
MainMenuDisplay.Medium.prevFrame();
MainMenuDisplay.High.prevFrame();
} else {
if (stage.quality == "medium"){
MainMenuDisplay.Low.prevFrame();
MainMenuDisplay.Medium.nextFrame();
MainMenuDisplay.High.prevFrame();
} else {
if (stage.quality == "high"){
MainMenuDisplay.Low.prevFrame();
MainMenuDisplay.Medium.prevFrame();
MainMenuDisplay.High.nextFrame();
};
};
};
MainMenuDisplay.MusicYes.addEventListener(MouseEvent.CLICK, MusicYes_Click);
MainMenuDisplay.SFXYes.addEventListener(MouseEvent.CLICK, SFXYes_Click);
MainMenuDisplay.BackgroundYes.addEventListener(MouseEvent.CLICK, BackgroundYes_Click);
MainMenuDisplay.QualityYes.addEventListener(MouseEvent.CLICK, QualityYes_Click);
MainMenuDisplay.MusicNo.addEventListener(MouseEvent.CLICK, MusicNo_Click);
MainMenuDisplay.SFXNo.addEventListener(MouseEvent.CLICK, SFXNo_Click);
MainMenuDisplay.BackgroundNo.addEventListener(MouseEvent.CLICK, BackgroundNo_Click);
MainMenuDisplay.QualityNo.addEventListener(MouseEvent.CLICK, QualityNo_Click);
MainMenuDisplay.EasyButton.addEventListener(MouseEvent.CLICK, Easy_Click);
MainMenuDisplay.NormalButton.addEventListener(MouseEvent.CLICK, Normal_Click);
MainMenuDisplay.HardButton.addEventListener(MouseEvent.CLICK, Hard_Click);
MainMenuDisplay.MusicKnob.addEventListener(MouseEvent.MOUSE_DOWN, MusicKnob_Press);
MainMenuDisplay.MusicKnob.addEventListener(MouseEvent.MOUSE_UP, MusicKnob_Stop);
MainMenuDisplay.MusicKnob.addEventListener(MouseEvent.MOUSE_OUT, MusicKnob_Stop);
MainMenuDisplay.SFXKnob.addEventListener(MouseEvent.MOUSE_DOWN, SFXKnob_Press);
MainMenuDisplay.SFXKnob.addEventListener(MouseEvent.MOUSE_UP, SFXKnob_Stop);
MainMenuDisplay.SFXKnob.addEventListener(MouseEvent.MOUSE_OUT, SFXKnob_Stop);
MainMenuDisplay.BackButton.addEventListener(MouseEvent.CLICK, OptionsBackButton_Click);
MainMenuDisplay.MusicYes.addEventListener(MouseEvent.MOUSE_OVER, MusicYes_Over);
MainMenuDisplay.SFXYes.addEventListener(MouseEvent.MOUSE_OVER, SFXYes_Over);
MainMenuDisplay.BackgroundYes.addEventListener(MouseEvent.MOUSE_OVER, BackgroundYes_Over);
MainMenuDisplay.QualityYes.addEventListener(MouseEvent.MOUSE_OVER, QualityYes_Over);
MainMenuDisplay.MusicNo.addEventListener(MouseEvent.MOUSE_OVER, MusicNo_Over);
MainMenuDisplay.SFXNo.addEventListener(MouseEvent.MOUSE_OVER, SFXNo_Over);
MainMenuDisplay.BackgroundNo.addEventListener(MouseEvent.MOUSE_OVER, BackgroundNo_Over);
MainMenuDisplay.QualityNo.addEventListener(MouseEvent.MOUSE_OVER, QualityNo_Over);
MainMenuDisplay.EasyButton.addEventListener(MouseEvent.MOUSE_OVER, Easy_Over);
MainMenuDisplay.NormalButton.addEventListener(MouseEvent.MOUSE_OVER, Normal_Over);
MainMenuDisplay.HardButton.addEventListener(MouseEvent.MOUSE_OVER, Hard_Over);
MainMenuDisplay.BackButton.addEventListener(MouseEvent.MOUSE_OVER, OptionsBackButton_Over);
MainMenuDisplay.MusicYes.addEventListener(MouseEvent.MOUSE_OUT, MusicYes_Off);
MainMenuDisplay.SFXYes.addEventListener(MouseEvent.MOUSE_OUT, SFXYes_Off);
MainMenuDisplay.BackgroundYes.addEventListener(MouseEvent.MOUSE_OUT, BackgroundYes_Off);
MainMenuDisplay.QualityYes.addEventListener(MouseEvent.MOUSE_OUT, QualityYes_Off);
MainMenuDisplay.MusicNo.addEventListener(MouseEvent.MOUSE_OUT, MusicNo_Off);
MainMenuDisplay.SFXNo.addEventListener(MouseEvent.MOUSE_OUT, SFXNo_Off);
MainMenuDisplay.BackgroundNo.addEventListener(MouseEvent.MOUSE_OUT, BackgroundNo_Off);
MainMenuDisplay.QualityNo.addEventListener(MouseEvent.MOUSE_OUT, QualityNo_Off);
MainMenuDisplay.EasyButton.addEventListener(MouseEvent.MOUSE_OUT, Easy_Off);
MainMenuDisplay.NormalButton.addEventListener(MouseEvent.MOUSE_OUT, Normal_Off);
MainMenuDisplay.HardButton.addEventListener(MouseEvent.MOUSE_OUT, Hard_Off);
MainMenuDisplay.Low.addEventListener(MouseEvent.CLICK, QualityLow_Click);
MainMenuDisplay.Medium.addEventListener(MouseEvent.CLICK, QualityMedium_Click);
MainMenuDisplay.High.addEventListener(MouseEvent.CLICK, QualityHigh_Click);
MainMenuDisplay.Low.addEventListener(MouseEvent.MOUSE_OVER, QualityLow_Over);
MainMenuDisplay.Medium.addEventListener(MouseEvent.MOUSE_OVER, QualityMedium_Over);
MainMenuDisplay.High.addEventListener(MouseEvent.MOUSE_OVER, QualityHigh_Over);
MainMenuDisplay.Low.addEventListener(MouseEvent.MOUSE_OUT, QualityLow_Off);
MainMenuDisplay.Medium.addEventListener(MouseEvent.MOUSE_OUT, QualityMedium_Off);
MainMenuDisplay.High.addEventListener(MouseEvent.MOUSE_OUT, QualityHigh_Off);
MainMenuDisplay.BackButton.addEventListener(MouseEvent.MOUSE_OUT, OptionsBackButton_Off);
MainMenuDisplay.addEventListener(Event.ENTER_FRAME, DropDownDisplay);
MainMenuDisplay.y = -700;
}
public function EnemyListBackButton_Over(_arg1:MouseEvent):void{
MainMenuDisplay.BackButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50);
}
public function shakeGameBoard():void{
if (beginShake){
if (shakeTime > 75){
if (EffectChannel.position >= 2000){
EffectChannel.stop();
SoundEffect = new screenrumbleentryFX();
EffectChannel = SoundEffect.play(500);
EffectChannel.soundTransform = new SoundTransform(SFXVol);
};
};
if (shakeTime != shakeDuration){
if (GameBoard.x == 0){
GameBoard.x = (Math.random() * XShake);
} else {
GameBoard.x = 0;
};
if (GameBoard.y == 15){
GameBoard.y = ((Math.random() * YShake) + 15);
} else {
GameBoard.y = 15;
};
shakeDuration++;
} else {
beginShake = false;
GameBoard.x = 0;
GameBoard.y = 15;
if (EffectChannel != null){
EffectChannel.removeEventListener(Event.SOUND_COMPLETE, RumbleNoise_Continue);
};
};
};
}
public function HowToBackButton_Click(_arg1:Event):void{
makeSound(explosionsmall1FX);
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.CLICK, BackButton_Click);
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.MOUSE_OVER, HowToBackButton_Over);
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.MOUSE_OUT, HowToBackButton_Off);
MainMenuDisplay.Basics.removeEventListener(MouseEvent.CLICK, HowToBasics_Click);
MainMenuDisplay.Particles.removeEventListener(MouseEvent.CLICK, HowToParticles_Click);
MainMenuDisplay.Weapons.removeEventListener(MouseEvent.CLICK, HowToWeapons_Click);
MainMenuDisplay.Unlock.removeEventListener(MouseEvent.CLICK, HowToUnlock_Click);
MainMenuDisplay.Classic.removeEventListener(MouseEvent.CLICK, HowToClassic_Click);
MainMenuDisplay.Survival.removeEventListener(MouseEvent.CLICK, HowToSurvival_Click);
MainMenuDisplay.Swarm.removeEventListener(MouseEvent.CLICK, HowToSwarm_Click);
MainMenuDisplay.removeEventListener(Event.ENTER_FRAME, DropDownDisplay);
BackButton_Click(new MouseEvent("BLAH"));
}
public function main(_arg1:Event):void{
var _local2:*;
var _local3:*;
if (GameBoard.contains(GameBackGround)){
if (GameBackGround.currentLabel == "Done"){
GameBackGround.gotoAndPlay("Loop");
};
};
if (!Pause){
Mouse.hide();
Objects.main();
updateDisplays();
phaseControl();
shakeGameBoard();
if (QualityControl){
AutoQuality();
};
} else {
_local3 = 0;
while (_local3 < Objects.ObjectList.length) {
if (Objects.ObjectList[_local3].Type == "Enemy"){
if (Objects.ObjectList[_local3].Graphic != null){
Objects.ObjectList[_local3].Graphic.stop();
};
if (Objects.ObjectList[_local3].Destroyed){
Objects.removeObject(_local3);
};
};
_local3++;
};
if (((GameBoard.contains(AnnouncementDisplay)) && (!(contains(MainMenuDisplay))))){
Announce_SpaceOut();
};
};
if (((((keyIsDown[80]) && (!(keyWasDown[80])))) && (!(Pause)))){
initPauseMenu();
} else {
if (((((((keyIsDown[80]) && (!(keyWasDown[80])))) && (Pause))) && (contains(MainMenuDisplay)))){
removePauseMenu();
Pause = false;
_local3 = 0;
while (_local3 < Objects.ObjectList.length) {
if (Objects.ObjectList[_local3].Type == "Enemy"){
if (Objects.ObjectList[_local3].Graphic != null){
Objects.ObjectList[_local3].Graphic.play();
};
};
_local3++;
};
Objects.setSFXVol(SFXVol);
if (!BackVisible){
if (GameBoard.contains(GameBackGround)){
GameBoard.removeChild(GameBackGround);
};
} else {
if (!GameBoard.contains(GameBackGround)){
if ((((Phase == 0)) || ((Phase == 1)))){
GameBackGround = new BackGround1ID();
} else {
if ((((Phase == 2)) || ((Phase == 3)))){
GameBackGround = new BackGround2ID();
};
};
GameBoard.addChild(GameBackGround);
while (GameBoard.getChildIndex(GameBackGround) > 0) {
GameBoard.swapChildren(GameBoard.getChildAt((GameBoard.getChildIndex(GameBackGround) - 1)), GameBackGround);
};
};
};
};
};
_local2 = 0;
while (_local2 < 90) {
if (keyIsDown[_local2]){
keyWasDown[_local2] = true;
} else {
keyWasDown[_local2] = false;
};
_local2++;
};
}
public function initHighScoreDisplay():void{
MainMenuDisplay = new HighScoreDisplayID();
addChild(MainMenuDisplay);
MainMenuDisplay.BackButton.addEventListener(MouseEvent.CLICK, HighScoreBackButton_Click);
MainMenuDisplay.BackButton.addEventListener(MouseEvent.MOUSE_OVER, HighScoreBackButton_Over);
MainMenuDisplay.BackButton.addEventListener(MouseEvent.MOUSE_OUT, HighScoreBackButton_Off);
MainMenuDisplay.addEventListener(Event.ENTER_FRAME, DropDownDisplay);
MainMenuDisplay.y = -700;
MainMenuDisplay.Display.text = String(SavedData.HighScore);
makeSound(explosionsmall1FX);
}
public function BackFadeTo(_arg1:Class):Boolean{
var _local2:Boolean;
_local2 = false;
if (BackVisible){
if (!BackLoaded){
GameBackGround.alpha = (GameBackGround.alpha - 0.01);
if (GameBackGround.alpha <= 0){
GameBoard.removeChild(GameBackGround);
GameBackGround = new (_arg1);
GameBackGround.alpha = 0;
GameBoard.addChild(GameBackGround);
while (GameBoard.getChildIndex(GameBackGround) > 0) {
GameBoard.swapChildren(GameBoard.getChildAt((GameBoard.getChildIndex(GameBackGround) - 1)), GameBackGround);
};
_local2 = true;
};
} else {
if (GameBackGround.alpha < 1){
GameBackGround.alpha = (GameBackGround.alpha + 0.01);
} else {
_local2 = true;
};
};
} else {
_local2 = true;
BackLoaded = true;
};
return (_local2);
}
public function ClassicButton_Over(_arg1:MouseEvent):void{
MainMenuDisplay.Display.text = "";
MainMenuDisplay.Display.appendText("Classic Mode! Ah the good old days when we didn't have to worry about invaders blowing us up...Play the classic mode with new graphics! Just collect energy and stay alive!\nGoals:\n60 Particles\n150 Particles\n200 Particles");
MainMenuDisplay.ClassicButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 200, 200, 200);
}
public function Shake_Request(_arg1:Event):void{
initShake(_arg1.target.ShakeDur, _arg1.target.ShakeX, _arg1.target.ShakeY);
}
public function removeRightDefaultItems():void{
var _local1:ContextMenuBuiltInItems;
RightMenu.hideBuiltInItems();
_local1 = RightMenu.builtInItems;
_local1.print = true;
contextMenu = RightMenu;
}
public function QualityYes_Off(_arg1:MouseEvent):void{
MainMenuDisplay.QualityYes.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function Normal_Off(_arg1:MouseEvent):void{
MainMenuDisplay.NormalButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function Phase1_Click(_arg1:MouseEvent):void{
Phase = 0;
if (GameDifficulty == "Easy"){
if (SavedData.EasyPhases > 3){
MainMenuDisplay.Phase4.gotoAndStop(1);
};
if (SavedData.EasyPhases > 2){
MainMenuDisplay.Phase3.gotoAndStop(1);
};
if (SavedData.EasyPhases > 1){
MainMenuDisplay.Phase2.gotoAndStop(1);
};
if (SavedData.EasyPhases > 0){
MainMenuDisplay.Phase1.gotoAndStop(2);
};
} else {
if (GameDifficulty == "Normal"){
if (SavedData.NormalPhases > 3){
MainMenuDisplay.Phase4.gotoAndStop(1);
};
if (SavedData.NormalPhases > 2){
MainMenuDisplay.Phase3.gotoAndStop(1);
};
if (SavedData.NormalPhases > 1){
MainMenuDisplay.Phase2.gotoAndStop(1);
};
if (SavedData.NormalPhases > 0){
MainMenuDisplay.Phase1.gotoAndStop(2);
};
} else {
if (GameDifficulty == "Hard"){
if (SavedData.HardPhases > 3){
MainMenuDisplay.Phase4.gotoAndStop(1);
};
if (SavedData.HardPhases > 2){
MainMenuDisplay.Phase3.gotoAndStop(1);
};
if (SavedData.HardPhases > 1){
MainMenuDisplay.Phase2.gotoAndStop(1);
};
if (SavedData.HardPhases > 0){
MainMenuDisplay.Phase1.gotoAndStop(2);
};
};
};
};
}
public function MusicYes_Off(_arg1:MouseEvent):void{
MainMenuDisplay.MusicYes.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function Mouse_Release(_arg1:MouseEvent):void{
Objects.Mouse_Release();
}
public function PasswordBackButton_Over(_arg1:MouseEvent):void{
MainMenuDisplay.BackButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50);
}
public function SwarmButton_Off(_arg1:MouseEvent):void{
MainMenuDisplay.SwarmButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function addCustomMenuItems(_arg1:String, _arg2:Function):void{
var _local3:ContextMenuItem;
_local3 = new ContextMenuItem(_arg1);
RightMenu.customItems.push(_local3);
_local3.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, _arg2);
}
public function MusicLoop(_arg1:Event):void{
Channel.removeEventListener(Event.SOUND_COMPLETE, MusicLoop);
Channel = Music.play(MusicStart);
if (MusicFade > 0){
Channel.soundTransform = new SoundTransform(MusicVol);
};
Channel.addEventListener(Event.SOUND_COMPLETE, MusicLoop);
}
public function RightSparky(_arg1:ContextMenuEvent):void{
Objects.initWeapon(4);
if (SavedData.SuperChallenge){
Objects.Ammo[4] = Objects.AmmoMax[4];
};
}
public function HighScore_Click(_arg1:MouseEvent):void{
initHighScoreDisplay();
MainMenuDisplayMain.getChildByName("StartGame").removeEventListener(MouseEvent.CLICK, StartGame_Click);
MainMenuDisplayMain.getChildByName("Options").removeEventListener(MouseEvent.CLICK, Options_Click);
MainMenuDisplayMain.getChildByName("Password").removeEventListener(MouseEvent.CLICK, Password_Click);
MainMenuDisplayMain.getChildByName("HowTo").removeEventListener(MouseEvent.CLICK, HowTo_Click);
MainMenuDisplayMain.getChildByName("EnemyList").removeEventListener(MouseEvent.CLICK, EnemyList_Click);
MainMenuDisplayMain.getChildByName("HighScore").removeEventListener(MouseEvent.CLICK, HighScore_Click);
}
public function pauseAnnouncement(_arg1:String, _arg2:String, _arg3:int):void{
var _local4:*;
Pause = true;
Objects.PlayerGraphic.graphics.clear();
_local4 = 0;
while (_local4 < Objects.GraphicList.length) {
if (Objects.contains(Objects.GraphicList[_local4])){
Objects.removeChild(Objects.GraphicList[_local4]);
};
_local4++;
};
_local4 = 0;
while (_local4 < Objects.tempGraphicList.length) {
if (Objects.contains(Objects.tempGraphicList[_local4])){
Objects.removeChild(Objects.tempGraphicList[_local4]);
Objects.tempGraphicList.splice(_local4, 1);
_local4--;
};
_local4++;
};
initAnnouncement(_arg1, _arg2, _arg3);
AnnouncementDisplay.Display.appendText("\n\n(Press Space to continue)");
Mouse.show();
}
public function Announce_Click(_arg1:MouseEvent):void{
var _local2:*;
removeAnnouncement();
AnnouncementDisplay.removeEventListener(MouseEvent.CLICK, Announce_Click);
AnnouncementDisplay.removeEventListener(Event.ENTER_FRAME, Announce_SpaceOut);
_local2 = 0;
while (_local2 < Objects.GraphicList.length) {
Objects.addChild(Objects.GraphicList[_local2]);
Objects.GraphicList[_local2].play();
_local2++;
};
Mouse.hide();
Pause = false;
}
public function SponsorBuff(_arg1:Event):void{
PhaseTime++;
if (MainMenuDisplay == null){
MainMenuDisplay = new SponsorBufferID();
MainMenuDisplay.x = 0;
MainMenuDisplay.y = 0;
addChild(MainMenuDisplay);
};
if (PhaseTime == 150){
removeEventListener(Event.ENTER_FRAME, SponsorBuff);
PhaseTime = 0;
TransitionDisplay = new StartTransitionID();
addChild(TransitionDisplay);
addEventListener(Event.ENTER_FRAME, FadeToDin);
};
}
public function initModeDisplay():void{
makeSound(explosionsmall1FX);
MainMenuDisplay = new ModeDisplayID();
addChild(MainMenuDisplay);
MainMenuDisplay.BackButton.addEventListener(MouseEvent.CLICK, ModeBackButton_Click);
MainMenuDisplay.ArcadeButton.addEventListener(MouseEvent.CLICK, ArcadeButton_Click);
MainMenuDisplay.SurvivalButton.addEventListener(MouseEvent.CLICK, SurvivalButton_Click);
MainMenuDisplay.ClassicButton.addEventListener(MouseEvent.CLICK, ClassicButton_Click);
MainMenuDisplay.SwarmButton.addEventListener(MouseEvent.CLICK, SwarmButton_Click);
MainMenuDisplay.PracticeButton.addEventListener(MouseEvent.CLICK, PracticeButton_Click);
if (GameDifficulty == "Easy"){
if (SavedData.EasyPhases > 3){
MainMenuDisplay.Phase4.addEventListener(MouseEvent.CLICK, Phase4_Click);
} else {
MainMenuDisplay.Phase4.gotoAndStop(3);
};
if (SavedData.EasyPhases > 2){
MainMenuDisplay.Phase3.addEventListener(MouseEvent.CLICK, Phase3_Click);
} else {
MainMenuDisplay.Phase3.gotoAndStop(3);
};
if (SavedData.EasyPhases > 1){
MainMenuDisplay.Phase2.addEventListener(MouseEvent.CLICK, Phase2_Click);
} else {
MainMenuDisplay.Phase2.gotoAndStop(3);
};
if (SavedData.EasyPhases > 0){
MainMenuDisplay.Phase1.addEventListener(MouseEvent.CLICK, Phase1_Click);
} else {
MainMenuDisplay.Phase1.gotoAndStop(3);
};
} else {
if (GameDifficulty == "Normal"){
if (SavedData.NormalPhases > 3){
MainMenuDisplay.Phase4.addEventListener(MouseEvent.CLICK, Phase4_Click);
} else {
MainMenuDisplay.Phase4.gotoAndStop(3);
};
if (SavedData.NormalPhases > 2){
MainMenuDisplay.Phase3.addEventListener(MouseEvent.CLICK, Phase3_Click);
} else {
MainMenuDisplay.Phase3.gotoAndStop(3);
};
if (SavedData.NormalPhases > 1){
MainMenuDisplay.Phase2.addEventListener(MouseEvent.CLICK, Phase2_Click);
} else {
MainMenuDisplay.Phase2.gotoAndStop(3);
};
if (SavedData.NormalPhases > 0){
MainMenuDisplay.Phase1.addEventListener(MouseEvent.CLICK, Phase1_Click);
} else {
MainMenuDisplay.Phase1.gotoAndStop(3);
};
} else {
if (GameDifficulty == "Hard"){
if (SavedData.HardPhases > 3){
MainMenuDisplay.Phase4.addEventListener(MouseEvent.CLICK, Phase4_Click);
} else {
MainMenuDisplay.Phase4.gotoAndStop(3);
};
if (SavedData.HardPhases > 2){
MainMenuDisplay.Phase3.addEventListener(MouseEvent.CLICK, Phase3_Click);
} else {
MainMenuDisplay.Phase3.gotoAndStop(3);
};
if (SavedData.HardPhases > 1){
MainMenuDisplay.Phase2.addEventListener(MouseEvent.CLICK, Phase2_Click);
} else {
MainMenuDisplay.Phase2.gotoAndStop(3);
};
if (SavedData.HardPhases > 0){
MainMenuDisplay.Phase1.addEventListener(MouseEvent.CLICK, Phase1_Click);
} else {
MainMenuDisplay.Phase1.gotoAndStop(3);
};
};
};
};
MainMenuDisplay.ArcadeButton.addEventListener(MouseEvent.MOUSE_OVER, ArcadeButton_Over);
MainMenuDisplay.SurvivalButton.addEventListener(MouseEvent.MOUSE_OVER, SurvivalButton_Over);
MainMenuDisplay.ClassicButton.addEventListener(MouseEvent.MOUSE_OVER, ClassicButton_Over);
MainMenuDisplay.SwarmButton.addEventListener(MouseEvent.MOUSE_OVER, SwarmButton_Over);
MainMenuDisplay.ArcadeButton.addEventListener(MouseEvent.MOUSE_OUT, ArcadeButton_Off);
MainMenuDisplay.SurvivalButton.addEventListener(MouseEvent.MOUSE_OUT, SurvivalButton_Off);
MainMenuDisplay.ClassicButton.addEventListener(MouseEvent.MOUSE_OUT, ClassicButton_Off);
MainMenuDisplay.SwarmButton.addEventListener(MouseEvent.MOUSE_OUT, SwarmButton_Off);
MainMenuDisplay.PracticeButton.addEventListener(MouseEvent.MOUSE_OVER, PracticeButton_Over);
MainMenuDisplay.PracticeButton.addEventListener(MouseEvent.MOUSE_OUT, PracticeButton_Off);
if (SavedData.NormalPhases < 2){
};
if (SavedData.NormalPhases < 3){
MainMenuDisplay.removeChild(MainMenuDisplay.SwarmButton);
};
MainMenuDisplay.addEventListener(Event.ENTER_FRAME, DropDownDisplay);
MainMenuDisplay.y = -700;
}
public function HowToClassic_Click(_arg1:Event):void{
MainMenuDisplay.Display.text = "Classic Mode is a remake of the original N-Tech (which you may or may not remember). It features the same weapons: Rocket launcher for blowing up particles, Catcher: Click to collect particles of your current beam color without fear of your beam catching other stuff, Cross Beam: Collect green particles with ease! Rules are basically the same: Collect the same color particle as your beam. Over time you will get a stronger beam and be able to change it's color. May be something good lies hidden within this mode too...";
}
public function HighScoreBackButton_Over(_arg1:MouseEvent):void{
MainMenuDisplay.BackButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50);
}
public function ListNextButton_Off(_arg1:MouseEvent):void{
MainMenuDisplay.NextButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function FadeToIntro(_arg1:Event):void{
if (TransitionDisplay.currentLabel == "Done"){
stage.removeEventListener(Event.ENTER_FRAME, FadeToIntro);
removeChild(TransitionDisplay);
initIntro();
};
}
public function initPasswordDisplay():void{
makeSound(explosionsmall1FX);
MainMenuDisplay = new PasswordDisplayID();
addChild(MainMenuDisplay);
MainMenuDisplay.BackButton.addEventListener(MouseEvent.CLICK, PasswordBackButton_Click);
MainMenuDisplay.BackButton.addEventListener(MouseEvent.MOUSE_OVER, PasswordBackButton_Over);
MainMenuDisplay.BackButton.addEventListener(MouseEvent.MOUSE_OUT, PasswordBackButton_Off);
MainMenuDisplay.Code.addEventListener(Event.CHANGE, ValidateCode);
MainMenuDisplay.Code.addEventListener(MouseEvent.CLICK, ClearPassword);
MainMenuDisplay.addEventListener(Event.ENTER_FRAME, DropDownDisplay);
MainMenuDisplay.y = -700;
}
public function MusicKnob_Follow(_arg1:Event):void{
var _local2:Number;
_local2 = Math.atan2((mouseY - MainMenuDisplay.MusicKnob.y), (mouseX - MainMenuDisplay.MusicKnob.x));
MainMenuDisplay.MusicKnob.rotation = (((180 * _local2) / Math.PI) + 90);
MusicVol = (1 - (Math.abs(MainMenuDisplay.MusicKnob.rotation) / 180));
VolControl = new SoundTransform(MusicVol, 0);
Channel.soundTransform = VolControl;
}
public function initAnnouncement(_arg1:String, _arg2:String, _arg3:int):void{
if (!AnnouncementAnnounced){
AnnouncementDisplay = new AnnouncementDisplayID();
AnnouncementDisplay.Display.text = _arg2;
AnnouncementDisplay.FaceDisplay.gotoAndStop(_arg1);
AnnouncementDisplay.x = 220;
AnnounceDuration = 0;
AnnounceTime = _arg3;
GameBoard.addChild(AnnouncementDisplay);
while (GameBoard.getChildIndex(AnnouncementDisplay) > 0) {
GameBoard.swapChildren(AnnouncementDisplay, GameBoard.getChildAt((GameBoard.getChildIndex(AnnouncementDisplay) - 1)));
};
if (BackVisible){
GameBoard.swapChildren(AnnouncementDisplay, GameBackGround);
};
AnnouncementAnnounced = true;
};
}
public function updateWeaponList(_arg1:Event):void{
var _local2:Array;
var _local3:*;
_local2 = new Array();
_local2[0] = "Blaster";
_local2[1] = "Black Hole Bomb";
_local2[2] = "Web Net";
_local2[3] = "Double Chain Gun";
_local2[4] = "Sparky";
_local2[5] = "Radon Flare";
_local2[6] = "Rapids";
_local2[7] = "Big Bertha";
_local2[99] = "void";
GameSkin.WeaponList.text = "";
_local3 = 0;
while (_local3 < Objects.getNumWeapons()) {
GameSkin.WeaponList.appendText((_local2[Objects.getAvailableWeapon(_local3)] + "\n"));
_local3++;
};
}
public function PracticeButton_Off(_arg1:MouseEvent):void{
MainMenuDisplay.PracticeButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function MusicNo_Click(_arg1:MouseEvent):void{
makeSound(explosionsmall1FX);
MainMenuDisplay.MusicYes.prevFrame();
MainMenuDisplay.MusicNo.nextFrame();
MusicOn = false;
Channel.stop();
}
public function ArcadeButton_Over(_arg1:MouseEvent):void{
MainMenuDisplay.Display.text = "";
MainMenuDisplay.Display.appendText("Arcade Mode! This mode follows the story line of N-Tech! Battle foes while trying to harvest precious energy! Use all the weapons you have collected to blast your way to victory!");
MainMenuDisplay.ArcadeButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 200, 200, 200);
}
public function SFXNo_Off(_arg1:MouseEvent):void{
MainMenuDisplay.SFXNo.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function PauseBackButton_Click(_arg1:Event):void{
var _local2:*;
var _local3:Boolean;
var _local4:*;
if (!AreYouSure){
AreYouSure = true;
MainMenuDisplay.InfoBox.text = "Are you sure you want to quit???\n(If you want to return to the game just press \"P\" again)";
} else {
AreYouSure = false;
_local2 = 0;
while (_local2 < Objects.ObjectList.length) {
if (Objects.ObjectList[_local2].Type == "Enemy"){
if (Objects.ObjectList[_local2].Graphic != null){
Objects.ObjectList[_local2].Graphic.play();
};
};
_local2++;
};
Objects.setSFXVol(SFXVol);
if (!BackVisible){
if (GameBoard.contains(GameBackGround)){
GameBoard.removeChild(GameBackGround);
};
} else {
if (!GameBoard.contains(GameBackGround)){
if ((((Phase == 0)) || ((Phase == 1)))){
GameBackGround = new BackGround1ID();
} else {
if ((((Phase == 2)) || ((Phase == 3)))){
GameBackGround = new BackGround2ID();
};
};
GameBoard.addChild(GameBackGround);
while (GameBoard.getChildIndex(GameBackGround) > 0) {
GameBoard.swapChildren(GameBoard.getChildAt((GameBoard.getChildIndex(GameBackGround) - 1)), GameBackGround);
};
};
};
GameOverBack_Click(new MouseEvent("BAHAHAHA"));
if (GameMode == "Arcade"){
SavedData.BeamData = Objects.getBeamLevel();
if (GameDifficulty == "Easy"){
if ((((((Phase == 0)) || ((Phase == 1)))) && ((SavedData.EasyPhases < 1)))){
SavedData.EasyPhases = 1;
} else {
if ((((((Phase == 2)) || ((Phase == 3)))) && ((SavedData.EasyPhases < 2)))){
SavedData.EasyPhases = 2;
} else {
if ((((((Phase == 4)) || ((Phase == 5)))) && ((SavedData.EasyPhases < 3)))){
SavedData.EasyPhases = 3;
} else {
if ((((((Phase == 6)) || ((Phase == 7)))) && ((SavedData.EasyPhases < 4)))){
SavedData.EasyPhases = 4;
};
};
};
};
};
if (GameDifficulty == "Normal"){
if ((((((Phase == 0)) || ((Phase == 1)))) && ((SavedData.NormalPhases < 1)))){
SavedData.NormalPhases = 1;
} else {
if ((((((Phase == 2)) || ((Phase == 3)))) && ((SavedData.NormalPhases < 2)))){
SavedData.NormalPhases = 2;
} else {
if ((((((Phase == 4)) || ((Phase == 5)))) && ((SavedData.NormalPhases < 3)))){
SavedData.NormalPhases = 3;
} else {
if ((((((Phase == 6)) || ((Phase == 7)))) && ((SavedData.NormalPhases < 4)))){
SavedData.NormalPhases = 4;
};
};
};
};
};
if (GameDifficulty == "Hard"){
if ((((((Phase == 0)) || ((Phase == 1)))) && ((SavedData.HardPhases < 1)))){
SavedData.HardPhases = 1;
} else {
if ((((((Phase == 2)) || ((Phase == 3)))) && ((SavedData.HardPhases < 2)))){
SavedData.HardPhases = 2;
} else {
if ((((((Phase == 4)) || ((Phase == 5)))) && ((SavedData.HardPhases < 3)))){
SavedData.HardPhases = 3;
} else {
if ((((((Phase == 6)) || ((Phase == 7)))) && ((SavedData.HardPhases < 4)))){
SavedData.HardPhases = 4;
};
};
};
};
};
};
if (GameMode != "Practice"){
_local2 = 0;
while (_local2 < Objects.getNumWeapons()) {
if (SavedData.WeaponData[_local2] != Objects.getAvailableWeapon(_local2)){
SavedData.WeaponData.push(Objects.getAvailableWeapon(_local2));
};
_local2++;
};
if (Objects.getScore() > SavedData.HighScore){
SavedData.HighScore = Objects.getScore();
};
_local3 = false;
_local4 = 0;
while (_local4 < Objects.getNumEnemiesSeen()) {
_local3 = false;
_local2 = 0;
while (_local2 < EnemiesSeen.length) {
if (EnemiesSeen[_local2] == Objects.getEnemiesSeen(_local4)){
_local3 = true;
};
_local2++;
};
if (!_local3){
EnemiesSeen.push(Objects.getEnemiesSeen(_local4));
};
_local4++;
};
};
while (Objects.ObjectList.length > 0) {
Objects.removeObject(0);
};
removeEventListener(Event.ENTER_FRAME, main);
};
}
public function initGameRightMenu():void{
var _local1:Array;
var _local2:Array;
var _local3:*;
_local1 = new Array();
_local1[0] = "Blaster";
_local1[1] = "Black Hole Bomb";
_local1[2] = "Web Net";
_local1[3] = "Double Chain Gun";
_local1[4] = "Sparky";
_local1[5] = "Radon Flare";
_local1[6] = "Rapids";
_local1[7] = "Big Bertha";
_local1[99] = "void";
_local2 = new Array();
_local2[0] = RightBlaster;
_local2[1] = RightBlackHole;
_local2[2] = RightWebNet;
_local2[3] = RightDouble;
_local2[4] = RightSparky;
_local2[5] = RightRadon;
_local2[6] = RightRapids;
_local2[7] = RightBertha;
_local3 = 0;
while (_local3 < Objects.getNumWeapons()) {
addCustomMenuItems(_local1[Objects.getAvailableWeapon(_local3)], _local2[Objects.getAvailableWeapon(_local3)]);
_local3++;
};
}
public function RightBertha(_arg1:ContextMenuEvent):void{
Objects.initWeapon(7);
if (SavedData.SuperChallenge){
Objects.Ammo[7] = Objects.AmmoMax[7];
};
}
public function QualityMedium_Click(_arg1:MouseEvent):void{
QualityControl = false;
MainMenuDisplay.QualityYes.prevFrame();
MainMenuDisplay.QualityNo.nextFrame();
MainMenuDisplay.Low.prevFrame();
MainMenuDisplay.Medium.nextFrame();
MainMenuDisplay.High.prevFrame();
stage.quality = "medium";
}
public function QualityLow_Click(_arg1:MouseEvent):void{
QualityControl = false;
MainMenuDisplay.QualityYes.prevFrame();
MainMenuDisplay.QualityNo.nextFrame();
MainMenuDisplay.Low.nextFrame();
MainMenuDisplay.Medium.prevFrame();
MainMenuDisplay.High.prevFrame();
stage.quality = "low";
}
public function PasswordBackButton_Off(_arg1:MouseEvent):void{
MainMenuDisplay.BackButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function SponsorClick(_arg1:Event):void{
navigateToURL(new URLRequest("http://www.freeworldgroup.com"), "_blank");
}
public function HowToUp_Click(_arg1:MouseEvent):void{
if (MainMenuDisplay.Display.scrollV > 0){
MainMenuDisplay.Display.scrollV--;
};
}
public function HowToBackButton_Off(_arg1:MouseEvent):void{
MainMenuDisplay.BackButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function HighScoreBackButton_Click(_arg1:Event):void{
makeSound(explosionsmall1FX);
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.CLICK, HighScoreBackButton_Click);
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.MOUSE_OVER, HighScoreBackButton_Over);
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.MOUSE_OUT, HighScoreBackButton_Off);
MainMenuDisplay.removeEventListener(Event.ENTER_FRAME, DropDownDisplay);
BackButton_Click(new MouseEvent("BLAH"));
}
public function RightBlackHole(_arg1:ContextMenuEvent):void{
Objects.initWeapon(1);
if (SavedData.SuperChallenge){
Objects.Ammo[1] = Objects.AmmoMax[1];
};
}
public function RightWebNet(_arg1:ContextMenuEvent):void{
Objects.initWeapon(2);
if (SavedData.SuperChallenge){
Objects.Ammo[2] = Objects.AmmoMax[2];
};
}
public function FadeToGame(_arg1:Event):void{
if (TransitionDisplay.currentLabel == "Done"){
removeChild(TransitionDisplay);
initGame(Phase);
};
}
public function initEnemyListDisplay():void{
var _local1:Boolean;
var _local2:*;
var _local3:*;
_local1 = false;
MainMenuDisplay = new EnemyListDisplayID();
makeSound(explosionsmall1FX);
addChild(MainMenuDisplay);
EnemiesSeen.sort(16);
EnemyListIndex = 3;
if (EnemiesSeen.length == 0){
MainMenuDisplay.Notice.text = "Enemies are added to this list as you encounter them.";
};
_local2 = 0;
while ((((_local2 < EnemiesSeen.length)) && ((_local2 < 3)))) {
_local1 = false;
if (_local2 > 0){
_local3 = (_local2 - 1);
while (_local3 > 0) {
if (EnemiesSeen[_local3] == EnemiesSeen[_local2]){
_local1 = true;
};
_local3--;
};
};
if (!_local1){
switch (EnemiesSeen[_local2]){
case 0:
MainMenuDisplay.addChild(new EnemyListing0ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = ((_local2 + 1) * 90);
break;
case 1:
MainMenuDisplay.addChild(new EnemyListing1ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = ((_local2 + 1) * 90);
break;
case 2:
MainMenuDisplay.addChild(new EnemyListing2ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = ((_local2 + 1) * 90);
break;
case 3:
MainMenuDisplay.addChild(new EnemyListing3ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = ((_local2 + 1) * 90);
break;
case 4:
MainMenuDisplay.addChild(new EnemyListing4ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = ((_local2 + 1) * 90);
break;
case 5:
MainMenuDisplay.addChild(new EnemyListing5ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = ((_local2 + 1) * 90);
break;
case 6:
MainMenuDisplay.addChild(new EnemyListing6ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = ((_local2 + 1) * 90);
break;
case 7:
MainMenuDisplay.addChild(new EnemyListing7ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = ((_local2 + 1) * 90);
break;
case 8:
MainMenuDisplay.addChild(new EnemyListing8ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = ((_local2 + 1) * 90);
break;
case 9:
MainMenuDisplay.addChild(new EnemyListing9ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = ((_local2 + 1) * 90);
break;
case 10:
MainMenuDisplay.addChild(new EnemyListing10ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = ((_local2 + 1) * 90);
break;
case 11:
MainMenuDisplay.addChild(new EnemyListing11ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = ((_local2 + 1) * 90);
break;
case 12:
MainMenuDisplay.addChild(new EnemyListing12ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = ((_local2 + 1) * 90);
break;
case 13:
MainMenuDisplay.addChild(new EnemyListing13ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = ((_local2 + 1) * 90);
break;
case 14:
MainMenuDisplay.addChild(new EnemyListing14ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = ((_local2 + 1) * 90);
break;
case 15:
MainMenuDisplay.addChild(new EnemyListing15ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = ((_local2 + 1) * 90);
break;
case 16:
MainMenuDisplay.addChild(new EnemyListing16ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = ((_local2 + 1) * 90);
break;
case 17:
MainMenuDisplay.addChild(new EnemyListing17ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = ((_local2 + 1) * 90);
break;
case 18:
MainMenuDisplay.addChild(new EnemyListing18ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = ((_local2 + 1) * 90);
break;
case 19:
MainMenuDisplay.addChild(new EnemyListing19ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = ((_local2 + 1) * 90);
break;
case 20:
MainMenuDisplay.addChild(new EnemyListing14ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = ((_local2 + 1) * 90);
break;
case 21:
MainMenuDisplay.addChild(new EnemyListing15ID());
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).x = 80;
MainMenuDisplay.getChildAt((MainMenuDisplay.numChildren - 1)).y = ((_local2 + 1) * 90);
break;
};
};
_local2++;
};
MainMenuDisplay.BackButton.addEventListener(MouseEvent.CLICK, EnemyListBackButton_Click);
MainMenuDisplay.NextButton.addEventListener(MouseEvent.CLICK, ListNextButton_Click);
MainMenuDisplay.BackButton.addEventListener(MouseEvent.MOUSE_OVER, EnemyListBackButton_Over);
MainMenuDisplay.NextButton.addEventListener(MouseEvent.MOUSE_OVER, ListNextButton_Over);
MainMenuDisplay.BackButton.addEventListener(MouseEvent.MOUSE_OUT, EnemyListBackButton_Off);
MainMenuDisplay.NextButton.addEventListener(MouseEvent.MOUSE_OUT, ListNextButton_Off);
MainMenuDisplay.addEventListener(Event.ENTER_FRAME, DropDownDisplay);
MainMenuDisplay.y = -700;
}
public function BackgroundYes_Off(_arg1:MouseEvent):void{
MainMenuDisplay.BackgroundYes.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function QualityHigh_Click(_arg1:MouseEvent):void{
QualityControl = false;
MainMenuDisplay.QualityYes.prevFrame();
MainMenuDisplay.QualityNo.nextFrame();
MainMenuDisplay.Low.prevFrame();
MainMenuDisplay.Medium.prevFrame();
MainMenuDisplay.High.nextFrame();
stage.quality = "high";
}
public function FadeToDin(_arg1:Event):void{
if (TransitionDisplay.currentLabel == "Done"){
removeChild(MainMenuDisplay);
MainMenuDisplay = null;
removeChild(TransitionDisplay);
removeEventListener(Event.ENTER_FRAME, FadeToDin);
addEventListener(Event.ENTER_FRAME, DinidenBuff);
};
}
public function QualityNo_Over(_arg1:MouseEvent):void{
MainMenuDisplay.QualityNo.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 200, 200, 200);
}
public function StoryBuff():void{
if (MainMenuDisplay == null){
MainMenuDisplay = new StoryMovieID();
MainMenuDisplay.x = 350;
MainMenuDisplay.y = 300;
addChild(MainMenuDisplay);
};
MainMenuDisplay.addEventListener("EndMovie", StoryBuffEnd);
stage.addEventListener(KeyboardEvent.KEY_DOWN, skipIntroListen);
}
public function initGameOverDisplay():void{
var _local1:*;
var _local2:Boolean;
var _local3:*;
clearScreen();
Mouse.show();
SavedData.GameOvers++;
if (GameMode == "Arcade"){
SavedData.BeamData = Objects.getBeamLevel();
if (GameDifficulty == "Easy"){
if ((((((Phase == 0)) || ((Phase == 1)))) && ((SavedData.EasyPhases < 1)))){
SavedData.EasyPhases = 1;
} else {
if ((((((Phase == 2)) || ((Phase == 3)))) && ((SavedData.EasyPhases < 2)))){
SavedData.EasyPhases = 2;
} else {
if ((((((Phase == 4)) || ((Phase == 5)))) && ((SavedData.EasyPhases < 3)))){
SavedData.EasyPhases = 3;
} else {
if ((((((Phase == 6)) || ((Phase == 7)))) && ((SavedData.EasyPhases < 4)))){
SavedData.EasyPhases = 4;
};
};
};
};
};
if (GameDifficulty == "Normal"){
if ((((((Phase == 0)) || ((Phase == 1)))) && ((SavedData.NormalPhases < 1)))){
SavedData.NormalPhases = 1;
} else {
if ((((((Phase == 2)) || ((Phase == 3)))) && ((SavedData.NormalPhases < 2)))){
SavedData.NormalPhases = 2;
} else {
if ((((((Phase == 4)) || ((Phase == 5)))) && ((SavedData.NormalPhases < 3)))){
SavedData.NormalPhases = 3;
} else {
if ((((((Phase == 6)) || ((Phase == 7)))) && ((SavedData.NormalPhases < 4)))){
SavedData.NormalPhases = 4;
};
};
};
};
};
if (GameDifficulty == "Hard"){
if ((((((Phase == 0)) || ((Phase == 1)))) && ((SavedData.HardPhases < 1)))){
SavedData.HardPhases = 1;
} else {
if ((((((Phase == 2)) || ((Phase == 3)))) && ((SavedData.HardPhases < 2)))){
SavedData.HardPhases = 2;
} else {
if ((((((Phase == 4)) || ((Phase == 5)))) && ((SavedData.HardPhases < 3)))){
SavedData.HardPhases = 3;
} else {
if ((((((Phase == 6)) || ((Phase == 7)))) && ((SavedData.HardPhases < 4)))){
SavedData.HardPhases = 4;
};
};
};
};
};
};
if (GameMode != "Practice"){
_local1 = 0;
while (_local1 < Objects.getNumWeapons()) {
if (SavedData.WeaponData[_local1] != Objects.getAvailableWeapon(_local1)){
SavedData.WeaponData.push(Objects.getAvailableWeapon(_local1));
};
_local1++;
};
if (Objects.getScore() > SavedData.HighScore){
SavedData.HighScore = Objects.getScore();
};
_local2 = false;
_local3 = 0;
while (_local3 < Objects.getNumEnemiesSeen()) {
_local2 = false;
_local1 = 0;
while (_local1 < EnemiesSeen.length) {
if (EnemiesSeen[_local1] == Objects.getEnemiesSeen(_local3)){
_local2 = true;
};
_local1++;
};
if (!_local2){
EnemiesSeen.push(Objects.getEnemiesSeen(_local3));
};
_local3++;
};
};
MainMenuDisplay = new GameOverDisplayID();
addChild(MainMenuDisplay);
MainMenuDisplay.ScoreDisplay.text = Objects.getScore();
MainMenuDisplay.MoreGamesButton.addEventListener(MouseEvent.CLICK, SponsorClick);
MainMenuDisplay.SponsorButton.addEventListener(MouseEvent.CLICK, SponsorClick);
MainMenuDisplay.MainButton.addEventListener(MouseEvent.CLICK, GameOverBack_Click);
MainMenuDisplay.TryButton.addEventListener(MouseEvent.CLICK, TryAgain_Click);
}
public function SFXYes_Over(_arg1:MouseEvent):void{
MainMenuDisplay.SFXYes.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 200, 200, 200);
}
public function Password_Click(_arg1:MouseEvent):void{
initPasswordDisplay();
MainMenuDisplayMain.getChildByName("StartGame").removeEventListener(MouseEvent.CLICK, StartGame_Click);
MainMenuDisplayMain.getChildByName("Options").removeEventListener(MouseEvent.CLICK, Options_Click);
MainMenuDisplayMain.getChildByName("Password").removeEventListener(MouseEvent.CLICK, Password_Click);
MainMenuDisplayMain.getChildByName("HowTo").removeEventListener(MouseEvent.CLICK, HowTo_Click);
MainMenuDisplayMain.getChildByName("EnemyList").removeEventListener(MouseEvent.CLICK, EnemyList_Click);
MainMenuDisplayMain.getChildByName("HighScore").removeEventListener(MouseEvent.CLICK, HighScore_Click);
}
public function BackgroundYes_Over(_arg1:MouseEvent):void{
MainMenuDisplay.BackgroundYes.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 200, 200, 200);
}
public function EnemyStatusUpdate(_arg1:Event):void{
GameSkin.EnemyIdentity.text = Objects.getEnemyName();
GameSkin.EnemyHP.text = Objects.getEnemyHP();
GameSkin.EnemyHPBar.scaleX = (Objects.getEnemyHP() / Objects.getEnemyTotHP());
}
public function MusicNo_Over(_arg1:MouseEvent):void{
MainMenuDisplay.MusicNo.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 200, 200, 200);
}
public function Easy_Over(_arg1:MouseEvent):void{
MainMenuDisplay.EasyButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 200, 200, 200);
}
public function HowTo_Click(_arg1:MouseEvent):void{
initHowToDisplay();
MainMenuDisplayMain.getChildByName("StartGame").removeEventListener(MouseEvent.CLICK, StartGame_Click);
MainMenuDisplayMain.getChildByName("Options").removeEventListener(MouseEvent.CLICK, Options_Click);
MainMenuDisplayMain.getChildByName("Password").removeEventListener(MouseEvent.CLICK, Password_Click);
MainMenuDisplayMain.getChildByName("HowTo").removeEventListener(MouseEvent.CLICK, HowTo_Click);
MainMenuDisplayMain.getChildByName("EnemyList").removeEventListener(MouseEvent.CLICK, EnemyList_Click);
MainMenuDisplayMain.getChildByName("HighScore").removeEventListener(MouseEvent.CLICK, HighScore_Click);
}
public function repeatFullSong(_arg1:Event):void{
Channel = Music.play();
Channel.addEventListener(Event.SOUND_COMPLETE, repeatFullSong);
Channel.soundTransform = new SoundTransform(MusicVol, 0);
}
public function RightBlaster(_arg1:ContextMenuEvent):void{
Objects.initWeapon(0);
if (SavedData.SuperChallenge){
Objects.Ammo[0] = Objects.AmmoMax[0];
};
}
public function Easy_Click(_arg1:MouseEvent):void{
makeSound(explosionsmall1FX);
MainMenuDisplay.EasyButton.nextFrame();
MainMenuDisplay.NormalButton.prevFrame();
MainMenuDisplay.HardButton.prevFrame();
MainMenuDisplay.InfoBox.text = "Easy mode allows you to play through the story without having to worry about your energy depleting; however, you will NOT be able to collect new weapons.";
GameDifficulty = "Easy";
}
public function HowToParticles_Click(_arg1:Event):void{
MainMenuDisplay.Display.text = "The point and goal of this game is to collect as many particles as you can to produce energy for earth and for yourself to keep the station operational. To collect particles you will have to use your beam, which follows your mouse. You start with a green beam. A green beam can collect green particles, a red beam red particles, and so on and so forth. When you obtain a stronger beam, you will be able to switch beam colors using W,A,S, or D. Your station takes considerable damage when you do not collect the right color as it creates dissonance within the molecular structure!!!";
}
public function PracticeButton_Click(_arg1:MouseEvent):void{
GameMode = "Practice";
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.CLICK, BackButton_Click);
MainMenuDisplay.ArcadeButton.removeEventListener(MouseEvent.CLICK, ArcadeButton_Click);
MainMenuDisplay.SurvivalButton.removeEventListener(MouseEvent.CLICK, SurvivalButton_Click);
MainMenuDisplay.ClassicButton.removeEventListener(MouseEvent.CLICK, ClassicButton_Click);
MainMenuDisplay.SwarmButton.removeEventListener(MouseEvent.CLICK, SwarmButton_Click);
MainMenuDisplay.ArcadeButton.removeEventListener(MouseEvent.MOUSE_OVER, ArcadeButton_Over);
MainMenuDisplay.SurvivalButton.removeEventListener(MouseEvent.MOUSE_OVER, SurvivalButton_Over);
MainMenuDisplay.ClassicButton.removeEventListener(MouseEvent.MOUSE_OVER, ClassicButton_Over);
MainMenuDisplay.SwarmButton.removeEventListener(MouseEvent.MOUSE_OVER, SwarmButton_Over);
MainMenuDisplay.ArcadeButton.removeEventListener(MouseEvent.MOUSE_OUT, ArcadeButton_Off);
MainMenuDisplay.SurvivalButton.removeEventListener(MouseEvent.MOUSE_OUT, SurvivalButton_Off);
MainMenuDisplay.ClassicButton.removeEventListener(MouseEvent.MOUSE_OUT, ClassicButton_Off);
MainMenuDisplay.SwarmButton.removeEventListener(MouseEvent.MOUSE_OUT, SwarmButton_Off);
MainMenuDisplay.removeEventListener(Event.ENTER_FRAME, DropDownDisplay);
SoundEffect = new gameoverFX();
EffectChannel = SoundEffect.play(2500);
stage.addEventListener(Event.ENTER_FRAME, FadeToGame);
TransitionDisplay = new StartTransitionID();
addChild(TransitionDisplay);
}
public function HowToUnlock_Click(_arg1:Event):void{
MainMenuDisplay.Display.text = "When you unlock something that something will be unlocked for the remainder of the game (until you navigate away from the game). Passwords will unlock things for you too, if you can find them. This game has several unlockable features. You unlock new enemies within the enemy list everytime you see a new enemy. You can unlock different modes. There are several weapons to unlock, and if you work hard enough, you may find some passwords which can do many things! You must just play and work to find these things! Score, Particles, Distance in story mode, all these things may have something to deal with the secrets found within this game.";
}
public function FadeToSqueaky(_arg1:Event):void{
if (TransitionDisplay.currentLabel == "Done"){
removeChild(MainMenuDisplay);
MainMenuDisplay = null;
removeChild(TransitionDisplay);
removeEventListener(Event.ENTER_FRAME, FadeToSqueaky);
addEventListener(Event.ENTER_FRAME, SqueakyBuff);
};
}
public function SFXYes_Click(_arg1:MouseEvent):void{
makeSound(explosionsmall1FX);
MainMenuDisplay.SFXYes.nextFrame();
MainMenuDisplay.SFXNo.prevFrame();
SFXOn = true;
SFXVol = (1 - (Math.abs(MainMenuDisplay.SFXKnob.rotation) / 180));
}
public function TryAgain_Click(_arg1:MouseEvent):void{
SoundEffect = new gameoverFX();
EffectChannel = SoundEffect.play(2500);
stage.addEventListener(Event.ENTER_FRAME, FadeToGame);
TransitionDisplay = new StartTransitionID();
addChild(TransitionDisplay);
}
public function QualityHigh_Off(_arg1:MouseEvent):void{
MainMenuDisplay.High.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function FadeToEnd(_arg1:Event):void{
if (TransitionDisplay.currentLabel == "Done"){
stage.removeEventListener(Event.ENTER_FRAME, FadeToEnd);
removeChild(TransitionDisplay);
initEndMovie();
};
}
public function DropDownDisplay(_arg1:Event):void{
MainMenuDisplay.y = (MainMenuDisplay.y + (-(MainMenuDisplay.y) / 5));
}
public function initIntro():void{
clearScreen();
Channel.stop();
Mouse.show();
MainMenuDisplay = new FullMovieIntroID();
addChild(MainMenuDisplay);
MainMenuDisplay.x = 350;
MainMenuDisplay.y = 300;
MainMenuDisplay.addEventListener(Event.ENTER_FRAME, CheckMovieIntro);
stage.addEventListener(KeyboardEvent.KEY_DOWN, skipIntro);
}
public function FadeToGameOver(_arg1:Event):void{
if (TransitionDisplay.currentLabel == "Done"){
removeChild(TransitionDisplay);
initGameOverDisplay();
stage.removeEventListener(Event.ENTER_FRAME, FadeToGameOver);
};
}
public function OptionsBackButton_Click(_arg1:Event):void{
makeSound(explosionsmall1FX);
MainMenuDisplay.MusicYes.removeEventListener(MouseEvent.CLICK, MusicYes_Click);
MainMenuDisplay.SFXYes.removeEventListener(MouseEvent.CLICK, SFXYes_Click);
MainMenuDisplay.BackgroundYes.removeEventListener(MouseEvent.CLICK, BackgroundYes_Click);
MainMenuDisplay.QualityYes.removeEventListener(MouseEvent.CLICK, QualityYes_Click);
MainMenuDisplay.MusicNo.removeEventListener(MouseEvent.CLICK, MusicNo_Click);
MainMenuDisplay.SFXNo.removeEventListener(MouseEvent.CLICK, SFXNo_Click);
MainMenuDisplay.BackgroundNo.removeEventListener(MouseEvent.CLICK, BackgroundNo_Click);
MainMenuDisplay.QualityNo.removeEventListener(MouseEvent.CLICK, QualityNo_Click);
MainMenuDisplay.EasyButton.removeEventListener(MouseEvent.MOUSE_OVER, Easy_Click);
MainMenuDisplay.NormalButton.removeEventListener(MouseEvent.MOUSE_OVER, Normal_Click);
MainMenuDisplay.HardButton.removeEventListener(MouseEvent.MOUSE_OVER, Hard_Click);
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.CLICK, OptionsBackButton_Click);
MainMenuDisplay.removeEventListener(Event.ENTER_FRAME, DropDownDisplay);
MainMenuDisplay.MusicYes.removeEventListener(MouseEvent.MOUSE_OVER, MusicYes_Over);
MainMenuDisplay.SFXYes.removeEventListener(MouseEvent.MOUSE_OVER, SFXYes_Over);
MainMenuDisplay.BackgroundYes.removeEventListener(MouseEvent.MOUSE_OVER, BackgroundYes_Over);
MainMenuDisplay.QualityYes.removeEventListener(MouseEvent.MOUSE_OVER, QualityYes_Over);
MainMenuDisplay.MusicNo.removeEventListener(MouseEvent.MOUSE_OVER, MusicNo_Over);
MainMenuDisplay.SFXNo.removeEventListener(MouseEvent.MOUSE_OVER, SFXNo_Over);
MainMenuDisplay.BackgroundNo.removeEventListener(MouseEvent.MOUSE_OVER, BackgroundNo_Over);
MainMenuDisplay.QualityNo.removeEventListener(MouseEvent.MOUSE_OVER, QualityNo_Over);
MainMenuDisplay.EasyButton.removeEventListener(MouseEvent.MOUSE_OVER, Easy_Over);
MainMenuDisplay.NormalButton.removeEventListener(MouseEvent.MOUSE_OVER, Normal_Over);
MainMenuDisplay.HardButton.removeEventListener(MouseEvent.MOUSE_OVER, Hard_Over);
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.MOUSE_OVER, OptionsBackButton_Over);
MainMenuDisplay.MusicYes.removeEventListener(MouseEvent.MOUSE_OUT, MusicYes_Off);
MainMenuDisplay.SFXYes.removeEventListener(MouseEvent.MOUSE_OUT, SFXYes_Off);
MainMenuDisplay.BackgroundYes.removeEventListener(MouseEvent.MOUSE_OUT, BackgroundYes_Off);
MainMenuDisplay.QualityYes.removeEventListener(MouseEvent.MOUSE_OUT, QualityYes_Off);
MainMenuDisplay.MusicNo.removeEventListener(MouseEvent.MOUSE_OUT, MusicNo_Off);
MainMenuDisplay.SFXNo.removeEventListener(MouseEvent.MOUSE_OUT, SFXNo_Off);
MainMenuDisplay.BackgroundNo.removeEventListener(MouseEvent.MOUSE_OUT, BackgroundNo_Off);
MainMenuDisplay.QualityNo.removeEventListener(MouseEvent.MOUSE_OUT, QualityNo_Off);
MainMenuDisplay.EasyButton.removeEventListener(MouseEvent.MOUSE_OUT, Easy_Off);
MainMenuDisplay.NormalButton.removeEventListener(MouseEvent.MOUSE_OUT, Normal_Off);
MainMenuDisplay.HardButton.removeEventListener(MouseEvent.MOUSE_OUT, Hard_Off);
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.MOUSE_OUT, OptionsBackButton_Off);
MainMenuDisplay.removeEventListener(Event.ENTER_FRAME, DropDownDisplay);
MainMenuDisplay.Low.removeEventListener(MouseEvent.CLICK, QualityLow_Click);
MainMenuDisplay.Medium.removeEventListener(MouseEvent.CLICK, QualityMedium_Click);
MainMenuDisplay.High.removeEventListener(MouseEvent.CLICK, QualityHigh_Click);
MainMenuDisplay.Low.removeEventListener(MouseEvent.MOUSE_OVER, QualityLow_Over);
MainMenuDisplay.Medium.removeEventListener(MouseEvent.MOUSE_OVER, QualityMedium_Over);
MainMenuDisplay.High.removeEventListener(MouseEvent.MOUSE_OVER, QualityHigh_Over);
MainMenuDisplay.Low.removeEventListener(MouseEvent.MOUSE_OUT, QualityLow_Off);
MainMenuDisplay.Medium.removeEventListener(MouseEvent.MOUSE_OUT, QualityMedium_Off);
MainMenuDisplay.High.removeEventListener(MouseEvent.MOUSE_OUT, QualityHigh_Off);
BackButton_Click(new MouseEvent("BLAH"));
}
public function RaiseDisplay(_arg1:Event):void{
CureRaise++;
MainMenuDisplay.y = (MainMenuDisplay.y + ((-700 - MainMenuDisplay.y) / 5));
if ((((MainMenuDisplay.y < -500)) || ((CureRaise > 120)))){
CureRaise = 0;
initMainMenuDisplay();
MainMenuDisplay.removeEventListener(Event.ENTER_FRAME, RaiseDisplay);
};
}
public function QualityHigh_Over(_arg1:MouseEvent):void{
MainMenuDisplay.High.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 200, 200, 200);
}
public function phaseControl():void{
var _local1:int;
var _local2:String;
var _local3:Boolean;
var _local4:*;
var _local5:*;
var _local6:Boolean;
var _local7:*;
var _local8:Boolean;
_local1 = Objects.getEnemyIndex();
if (GameMode == "Arcade"){
secretUnlocks();
if (Phase == 0){
if (!PhaseLoaded){
if (((!(MusicLoaded)) && (MusicOn))){
Music = new Phase1FX();
Channel = Music.play();
Channel.soundTransform = new SoundTransform(MusicVol);
Channel.addEventListener(Event.SOUND_COMPLETE, MusicLoop);
MusicStart = 0xFA00;
MusicLoaded = true;
PhaseTime = 0;
};
if (((SavedData.GameBeatOnce) && ((Channel.position < 500)))){
_local2 = "";
_local3 = false;
_local4 = 0;
while (_local4 < SavedData.EarnedCodes.length) {
_local3 = false;
_local5 = (_local4 - 1);
while (_local5 > 0) {
if (SavedData.EarnedCodes[_local5] == SavedData.EarnedCodes[_local4]){
_local3 = true;
};
_local5--;
};
if (!_local3){
_local2 = (_local2 + (SavedData.EarnedCodes[_local4] + "\n"));
};
_local4++;
};
pauseAnnouncement("Mischievious", ("Here are some codes you have earned:\n\n" + _local2), 200);
};
if ((((Channel.position > 2000)) && ((Channel.position < 2100)))){
initAnnouncement("Informative", "Here you are in the initial base machine. These microscopic gears are continually turning to transform the nanos you collect into usable energy for the station. If you keep going, they keep producing.", 200);
};
if ((((Channel.position > 10000)) && ((Channel.position < 10100)))){
initAnnouncement("Informative", "Remember to collect only particles of the same color or white ones!", 200);
};
if ((((Channel.position > 30000)) && ((Channel.position < 30100)))){
initAnnouncement("Thinking", "It's not likely you'll get attacked here in our collection; piracy on the storehouses of private stations is forbidden by law. ", 200);
};
if ((((Channel.position > 60000)) && ((Channel.position < 60100)))){
initAnnouncement("Worried", "WARNING WARNING INTRUDERS!", 100);
};
if (Channel.position > 0xFA00){
Objects.loadData((Phase + 1));
readyForNextPhase = true;
PhaseLoaded = true;
MusicLoaded = false;
initShake(200, 2, 2);
};
};
if ((((_local1 == 20)) && (!(AnnouncementAnnounced)))){
_local6 = false;
_local7 = 0;
while (_local7 < Objects.getNumWeapons()) {
if (Objects.getAvailableWeapon(_local7) == 0){
_local6 = true;
break;
};
_local7++;
};
if (!_local6){
Objects.unlockWeapon(0);
pauseAnnouncement("Mischievious", "OOoooo! Confound these heaps of junk! Here...I have installed a lousy blaster onto the station that I happened to pick up from...er...the...super market~!! Just press E or Q to equip it and blast away this vermin!", 200);
};
};
if ((((((_local1 == 26)) && (!(AnnouncementAnnounced)))) && (!(BugFix1)))){
BugFix1 = true;
pauseAnnouncement("Mischievious", "Hahaaaaa! That's what they deserved! Very good! Now just remember, when you get more devices to aid you, you can switch between them simply by pressing E or Q!", 200);
};
} else {
if (Phase == 1){
if (!PhaseLoaded){
PhaseTime++;
if (PhaseTime == 20){
initAnnouncement("Sad", "Whew! Blasted invaders, I hope they never come back!", 100);
};
if (PhaseTime == 150){
initAnnouncement("Thinking", "Strange...Now I'm detecting a lifeform...no wait, it's only partly living...", 100);
};
if (PhaseTime == 300){
initAnnouncement("Worried", "AGH! IT'S COMING! WE'RE UNDER ATTACK AGAIN!", 100);
};
if (PhaseTime == 301){
initShake(200, 4, 4);
};
if ((((PhaseTime >= 310)) && (!(MusicLoaded)))){
if (musicFadeTo(boss1FX, 0)){
MusicLoaded = true;
};
};
if ((((PhaseTime >= 310)) && (MusicLoaded))){
Objects.loadData((Phase + 1));
readyForNextPhase = true;
PhaseLoaded = true;
MusicLoaded = false;
BackLoaded = false;
PhaseTime = 0;
};
} else {
PhaseTime++;
if (PhaseTime == 1000){
pauseAnnouncement("Thinking", "Hmmm, yes! It seems whenever you construct a larger nano-bot it typically has a flaw in it! Wherever that weak point is, or whenever it shows up, I'm sure your laser beam can do some serious damage to it!", 300);
};
};
} else {
if (Phase == 2){
if (!PhaseLoaded){
if (PhaseTime == 2){
if (GameDifficulty == "Normal"){
if (Objects.getBeamLevel() <= 1){
Objects.upgradeBeam();
initAnnouncement("Informative", "OBTAINED:\n\n\"LASER UPGRADE\"", 90);
};
} else {
if (GameDifficulty == "Hard"){
pauseAnnouncement("Mischievious", "Ooo looky here! I found a powerful code~! Write it down quick!\n\nPASSWORD:\n\"D. Hernandez\"\n\nThis allows you to start from the PRETZEL boss.", 110);
} else {
pauseAnnouncement("Mischievious", "Here's a simple Hack into the computer. Have fun with it!\n\nCODE:\n\n\"n00b\"\n\n(those are two zeros)", 110);
};
};
BugFix2 = true;
};
PhaseTime++;
if (PhaseTime == 120){
initAnnouncement("Thinking", "That was a close one. I'll have to report that to the authorities. Fortunately, it was only a low class gang of thugs who composed their nanobots of old materials. Unfortunatley, much more difficult battles await you.", 200);
};
if (PhaseTime <= 250){
BackFadeOut();
musicFadeOut();
};
if (PhaseTime == 400){
initAnnouncement("Informative", "Meanwhile, you need to keep collecting. Unfortunately, we've depleted our collection of viable nanos in that battle. You're going to have to exit our base construct in order to get us more energy.", 200);
};
if ((((PhaseTime == 550)) && (!(BackLoaded)))){
if (BackFadeTo(BackGround2ID)){
BackLoaded = true;
};
};
if ((((PhaseTime >= 550)) && (BackLoaded))){
if (BackFadeTo(BackGround2ID)){
BackLoaded = false;
};
};
if (PhaseTime == 650){
initAnnouncement("Informative", "You're now entering the particle stream. In a way, you're being uploaded to the public collective of nanos. Here in the stream, some nanos seem to trickle in, so even while you're waiting to enter the main area, you can gather nanos. I can't stress how vital energy is to our base. You'll travel through this for a moment and- ", 300);
};
if (PhaseTime == 970){
initAnnouncement("Worried", "Oh no. I was afraid of this. Nanos aren't the only thing that occasionally get sucked in when a connection to the main stream is created. Someone else's nanobots have entered. And it just happens to be- oh dear. The Phase Construct, a rich corporation who experiments with immaterial phasing, matter transitions, and warping. Hang on! ", 300);
};
if ((((PhaseTime >= 1170)) && (!(MusicLoaded)))){
if (musicFadeTo(phase2FX, 4500)){
MusicLoaded = true;
};
};
if ((((PhaseTime >= 1200)) && (MusicLoaded))){
Objects.loadData((Phase + 1));
readyForNextPhase = true;
PhaseLoaded = true;
MusicLoaded = false;
BackLoaded = false;
BugFix2 = false;
};
};
if ((((_local1 == 20)) && (!(AnnouncementAnnounced)))){
initAnnouncement("Mischievious", "It seems you now have a more powerful laser at your disposal! Remember, to change your beam color use W, A, S, or D. The more powerful your beam is the more colors you can change it into. If you match the color of your beam to the color of the nano you can safely collect those nanos!", 200);
};
} else {
if (Phase == 3){
if (!PhaseLoaded){
PhaseTime++;
if (PhaseTime == 1){
initAnnouncement("Thinking", "I'm detecting a massive dimensional rift...could it be..? No they wouldn't send THAT here.", 200);
};
if (PhaseTime == 250){
initAnnouncement("Worried", "Oh goodness. Brace yourself! They did send it here! They sent their very own PhaseGenConstruct super model!", 200);
};
if (PhaseTime < 100){
BackFadeOut();
};
if ((((PhaseTime == 500)) && (!(BackLoaded)))){
if (BackFadeTo(BackGround2ID)){
BackLoaded = true;
};
};
if ((((PhaseTime >= 500)) && (BackLoaded))){
if (BackFadeTo(BackGround2ID)){
BackLoaded = false;
};
};
if ((((PhaseTime >= 500)) && (!(MusicLoaded)))){
if (musicFadeTo(boss2FX, 0)){
MusicLoaded = true;
};
};
if ((((PhaseTime >= 500)) && (MusicLoaded))){
Objects.loadData((Phase + 1));
readyForNextPhase = true;
PhaseLoaded = true;
MusicLoaded = false;
BackLoaded = false;
};
};
} else {
if (Phase == 4){
if (!PhaseLoaded){
PhaseTime++;
if (PhaseTime == 2){
if (GameDifficulty == "Normal"){
if (PhaseTime == 2){
_local7 = 0;
while (_local7 < Objects.getNumWeapons()) {
if (Objects.getAvailableWeapon(_local7) == 1){
_local6 = true;
break;
};
_local7++;
};
if (!_local6){
Objects.unlockWeapon(1);
initAnnouncement("Mischievious", "OOoooo! This is good indeed! After blowing away that menace I was able to salvage some of it's dimensional gear! This new weapon should come in handy!\n\nOBTAINED:\n\"Black Hole Bomb\"", 200);
};
};
} else {
if (GameDifficulty == "Hard"){
pauseAnnouncement("Mischievious", "Ooo looky here! I found a powerful code~! Write it down quick!\n\nPASSWORD:\n\"D. Sanders\"\n\nThis allows you to start from PhaseGenConstruct boss.", 200);
};
};
BugFix2 = true;
};
if (PhaseTime == 220){
initAnnouncement("Thinking", "Now that I think about it. Nano-bots were designed to act in a certain way, but using the blackhole device you can distort that behavior, so use this weapon wisely!", 200);
};
if (PhaseTime <= 250){
BackFadeOut();
musicFadeOut();
};
if (PhaseTime == 500){
initAnnouncement("Informative", "At any rate...Well done! You sent them packing! In just a second you'll be entering the public particle stream and- ", 200);
};
if ((((PhaseTime == 550)) && (!(BackLoaded)))){
if (BackFadeTo(BackGround3ID)){
BackLoaded = true;
};
};
if ((((PhaseTime >= 550)) && (BackLoaded))){
if (BackFadeTo(BackGround2ID)){
BackLoaded = false;
};
};
if (PhaseTime == 870){
initAnnouncement("Informative", "Here we are! Be on your guard while collecting nanos. These fields are public, and everything's fair game. Including you. ", 300);
};
if ((((PhaseTime >= 1070)) && (!(MusicLoaded)))){
if (musicFadeTo(phase3FX, 23500)){
MusicLoaded = true;
};
};
if ((((PhaseTime >= 1200)) && (MusicLoaded))){
Objects.loadData((Phase + 1));
readyForNextPhase = true;
PhaseLoaded = true;
MusicLoaded = false;
BackLoaded = false;
BugFix2 = false;
};
};
} else {
if (Phase == 5){
if (!PhaseLoaded){
PhaseTime++;
if (PhaseTime == 1){
initAnnouncement("Thinking", "Hmmmm...I think I sneezed on the radar *sniff*", 200);
};
if (PhaseTime == 250){
initAnnouncement("Worried", "Odd...this spot won't rub off...wait! That's no spot!!!", 200);
};
if (PhaseTime < 100){
BackFadeOut();
};
if ((((PhaseTime == 500)) && (!(BackLoaded)))){
if (BackFadeTo(BackGround3ID)){
BackLoaded = true;
};
};
if ((((PhaseTime >= 500)) && (BackLoaded))){
if (BackFadeTo(BackGround3ID)){
BackLoaded = false;
};
};
if ((((PhaseTime >= 500)) && (!(MusicLoaded)))){
if (musicFadeTo(boss3FX, 6000)){
MusicLoaded = true;
};
};
if ((((PhaseTime >= 500)) && (MusicLoaded))){
Objects.loadData((Phase + 1));
readyForNextPhase = true;
PhaseLoaded = true;
MusicLoaded = false;
BackLoaded = false;
};
};
} else {
if (Phase == 6){
if (!PhaseLoaded){
PhaseTime++;
if (PhaseTime == 2){
if (GameDifficulty == "Normal"){
if (PhaseTime == 2){
_local7 = 0;
while (_local7 < Objects.getNumWeapons()) {
if (Objects.getAvailableWeapon(_local7) == 2){
_local6 = true;
break;
};
_local7++;
};
if (!_local6){
Objects.unlockWeapon(2);
initAnnouncement("Mischievious", "Well, it was a bit sticky, but I was able to harvest some of the materials of that nano-bot as well!! This substance is very unique!!\n\nOBTAINED:\n\"Web Net\"", 200);
};
};
} else {
if (GameDifficulty == "Hard"){
pauseAnnouncement("Mischievious", "Ooo looky here! I found a powerful code~! Write it down quick!\n\nPASSWORD:\n\"D. Owens\"\n\nThis allows you to start from the Neutralizer boss.", 200);
};
};
};
if (PhaseTime == 220){
initAnnouncement("Mischievious", "The net weapon has the unique ability to capture particles! Not only that it does massive structural damage to nanobots~!! I DO hope you will enjoy!", 200);
};
if (PhaseTime <= 250){
BackFadeOut();
musicFadeOut();
};
if (PhaseTime == 350){
initAnnouncement("Informative", "I've pulled you out of the particle stream because I just got a message. Team Delta, one of the wealthiest stations in the city, has just been charged with multiple violations of nano tech law. ", 200);
};
if (PhaseTime == 560){
initAnnouncement("Informative", "However, the government's own nano group is quite strained at the moment. They've put out a warrant on Delta. The prize money is enough to fix up this station and keep us in business for quite some time. This is it! Our big score! ", 300);
};
if (PhaseTime == 870){
initAnnouncement("Informative", "I'll be plugging you into a special node, and hacking into Team Delta's base. Keep in mind that they're rich and powerful. Aside from their own weapons, they also have nanobots, and good ones too. ", 200);
};
if (PhaseTime == 1080){
initAnnouncement("Informative", "They're both scavengers and collectors. It's going to be a tough battle, but I'm confident you're ready for this. ", 100);
};
if ((((PhaseTime == 1100)) && (!(BackLoaded)))){
if (BackFadeTo(BackGround4ID)){
BackLoaded = true;
};
};
if ((((PhaseTime >= 1100)) && (BackLoaded))){
if (BackFadeTo(BackGround4ID)){
BackLoaded = false;
};
};
if (PhaseTime == 1200){
initAnnouncement("Informative", "Here we go! Make us all proud!", 100);
};
if ((((PhaseTime >= 1200)) && (!(MusicLoaded)))){
if (musicFadeTo(phase4FX, 23500)){
MusicLoaded = true;
};
};
if ((((PhaseTime >= 1200)) && (MusicLoaded))){
Objects.loadData((Phase + 1));
readyForNextPhase = true;
PhaseLoaded = true;
MusicLoaded = false;
BackLoaded = false;
};
};
} else {
if (Phase == 7){
if (!PhaseLoaded){
PhaseTime++;
if ((((((PhaseTime >= 100)) && ((PhaseTime <= 210)))) && (!(BackLoaded)))){
if (BackFadeTo(BackGround5ID)){
BackLoaded = true;
};
};
if ((((PhaseTime >= 1)) && (BackLoaded))){
if (BackFadeTo(BackGround5ID)){
BackLoaded = false;
};
};
if (PhaseTime == 1){
initAnnouncement("Thinking", "Holy cucumbers. I knew they were wealthy, but the`equipment they've got here outclasses ours by millions. Crime doesn't pay? Hmph. You've got to teach them that. This is it. Makes us proud. Good luck.", 250);
};
if ((((PhaseTime >= 300)) && (!(MusicLoaded)))){
if (Channel != null){
Channel.stop();
};
MusicLoaded = true;
};
if ((((PhaseTime >= 300)) && (MusicLoaded))){
Objects.loadData((Phase + 1));
readyForNextPhase = true;
PhaseLoaded = true;
MusicLoaded = false;
BackLoaded = false;
};
if (GameBackGround.currentLabel == "Done"){
GameBackGround.gotoAndPlay("Loop");
};
};
if (GameBackGround.currentLabel == "Done"){
GameBackGround.gotoAndPlay("Loop");
};
} else {
if (Phase == 8){
if (!ViewEnd){
SavedData.GameBeatOnce = true;
SavedData.EarnedCodes.push("M. Clark");
if (GameDifficulty == "Hard"){
if (PhaseTime == 1){
_local7 = 0;
while (_local7 < Objects.getNumWeapons()) {
if (Objects.getAvailableWeapon(_local7) == 5){
_local6 = true;
break;
};
_local7++;
};
if (!_local6){
Objects.unlockWeapon(5);
};
};
SavedData.EarnedCodes.push("D. Greyman");
SavedData.EarnedCodes.push("L. Hicks");
} else {
if (GameDifficulty == "Easy"){
SavedData.EarnedCodes.push("this is the end");
};
};
if (GameMode == "Arcade"){
SavedData.BeamData = Objects.getBeamLevel();
if (GameDifficulty == "Easy"){
if ((((((Phase == 0)) || ((Phase == 1)))) && ((SavedData.EasyPhases < 1)))){
SavedData.EasyPhases = 1;
} else {
if ((((((Phase == 2)) || ((Phase == 3)))) && ((SavedData.EasyPhases < 2)))){
SavedData.EasyPhases = 2;
} else {
if ((((((Phase == 4)) || ((Phase == 5)))) && ((SavedData.EasyPhases < 3)))){
SavedData.EasyPhases = 3;
} else {
if ((((((Phase == 6)) || ((Phase == 7)))) && ((SavedData.EasyPhases < 4)))){
SavedData.EasyPhases = 4;
};
};
};
};
};
if (GameDifficulty == "Normal"){
if ((((((Phase == 0)) || ((Phase == 1)))) && ((SavedData.NormalPhases < 1)))){
SavedData.NormalPhases = 1;
} else {
if ((((((Phase == 2)) || ((Phase == 3)))) && ((SavedData.NormalPhases < 2)))){
SavedData.NormalPhases = 2;
} else {
if ((((((Phase == 4)) || ((Phase == 5)))) && ((SavedData.NormalPhases < 3)))){
SavedData.NormalPhases = 3;
} else {
if ((((((Phase == 6)) || ((Phase == 7)))) && ((SavedData.NormalPhases < 4)))){
SavedData.NormalPhases = 4;
};
};
};
};
};
if (GameDifficulty == "Hard"){
if ((((((Phase == 0)) || ((Phase == 1)))) && ((SavedData.HardPhases < 1)))){
SavedData.HardPhases = 1;
} else {
if ((((((Phase == 2)) || ((Phase == 3)))) && ((SavedData.HardPhases < 2)))){
SavedData.HardPhases = 2;
} else {
if ((((((Phase == 4)) || ((Phase == 5)))) && ((SavedData.HardPhases < 3)))){
SavedData.HardPhases = 3;
} else {
if ((((((Phase == 6)) || ((Phase == 7)))) && ((SavedData.HardPhases < 4)))){
SavedData.HardPhases = 4;
};
};
};
};
};
};
if (GameMode != "Practice"){
_local5 = 0;
while (_local5 < Objects.getNumWeapons()) {
if (SavedData.WeaponData[_local5] != Objects.getAvailableWeapon(_local5)){
SavedData.WeaponData.push(Objects.getAvailableWeapon(_local5));
};
_local5++;
};
if (Objects.getScore() > SavedData.HighScore){
SavedData.HighScore = Objects.getScore();
};
_local8 = false;
_local4 = 0;
while (_local4 < Objects.getNumEnemiesSeen()) {
_local8 = false;
_local5 = 0;
while (_local5 < EnemiesSeen.length) {
if (EnemiesSeen[_local5] == Objects.getEnemiesSeen(_local4)){
_local8 = true;
};
_local5++;
};
if (!_local8){
EnemiesSeen.push(Objects.getEnemiesSeen(_local4));
};
_local4++;
};
};
if ((((SavedData.GameOvers == 0)) && ((((GameDifficulty == "Normal")) || ((GameDifficulty == "Hard")))))){
SavedData.SuperChallenge = true;
SavedData.EarnedCodes.push("Try using the right click menu to change weapons. When you do you will refill that weapons ammo.\n\n");
if (GameDifficulty == "Hard"){
SavedData.EarnedCodes.push("-squeakytoad-");
} else {
SavedData.EarnedCodes.push("Diniden Hethro");
};
};
};
Pause = true;
TransitionDisplay = new StartTransitionID();
addChild(TransitionDisplay);
stage.addEventListener(Event.ENTER_FRAME, FadeToEnd);
};
};
};
};
};
};
};
};
};
} else {
if (GameMode == "Classic"){
if (PhaseTime < 250){
BackFadeOut();
PhaseTime++;
};
if (((!(MusicLoaded)) && (MusicOn))){
Music = new ParticleBlasterFX();
Channel = Music.play();
Channel.soundTransform = new SoundTransform(MusicVol);
Channel.addEventListener(Event.SOUND_COMPLETE, MusicLoop);
MusicStart = 0;
MusicLoaded = true;
PhaseTime = 0;
};
if (Objects.getParticles() == 50){
Objects.upgradeBeam();
Objects.upgradeBeam();
initAnnouncement("Mischievious", "OOoooo! Very good job! You have now upgraded your beam! Use WASD to change you beam color to match the colors of the different particles!", 200);
};
if (Objects.getParticles() == 125){
Objects.upgradeBeam();
initAnnouncement("Informative", "Good job yet again! You can now collect all the colors of particles! But remember to change your beam color accordingly!", 200);
};
if (Objects.getParticles() == 175){
_local6 = false;
_local7 = 0;
while (_local7 < Objects.getNumWeapons()) {
if (Objects.getAvailableWeapon(_local7) == 6){
_local6 = true;
break;
};
_local7++;
};
if (!_local6){
Objects.unlockWeapon(6);
pauseAnnouncement("Mischievious", "You're doing amazing! SO good in fact, my superiors have awarded you with a new weapon!!! (You can use this weapon in other modes of play)\n\nOBTAINED:\n\n\"RAPIDS\"", 200);
};
};
if ((((Objects.getParticles() == 225)) && (!(CodePause)))){
CodePause = true;
pauseAnnouncement("Mischievious", "And here's another ingenious hack generated by the great P. Peculiar! \n\nCode:\n\n\"nyr035040\"", 200);
};
if (Objects.getParticles() == 226){
CodePause = false;
};
} else {
if (GameMode == "Swarm"){
if (!PhaseLoaded){
PhaseTime++;
if (((!(MusicLoaded)) && (MusicOn))){
Music = new phase4FX();
Channel = Music.play();
Channel.soundTransform = new SoundTransform(MusicVol);
Channel.addEventListener(Event.SOUND_COMPLETE, MusicLoop);
MusicStart = 23500;
MusicLoaded = true;
PhaseTime = 0;
};
if (PhaseTime == 1){
initAnnouncement("GirlSmile", "Initiating Battle training mode. Good luck. You're gonna need it!", 200);
};
if (PhaseTime == 210){
Objects.loadData(90210);
readyForNextPhase = true;
PhaseLoaded = true;
MusicLoaded = false;
initShake(200, 2, 2);
BugFix2 = false;
};
};
if ((((_local1 == 50)) && (!(AnnouncementAnnounced)))){
initAnnouncement("GirlInformative", "Ooooo? You think you're something special now? You got a LONG ways to go!", 200);
};
if ((((_local1 == 168)) && (!(BugFix2)))){
BugFix2 = true;
pauseAnnouncement("GirlInformative", "I absolutely can not believe you beat this mode. Here's our labs secret code we keep locked away.\n\nCODE:\n\n\"-squeakytoad-\"\n\nExit now by pausing and hitting main.", 200);
};
} else {
if (GameMode == "Survival"){
PhaseTime++;
if (((!(MusicLoaded)) && (MusicOn))){
Music = new Phase1FX();
Channel = Music.play();
Channel.soundTransform = new SoundTransform(MusicVol);
Channel.addEventListener(Event.SOUND_COMPLETE, MusicLoop);
MusicStart = 0xFA00;
MusicLoaded = true;
PhaseTime = 0;
};
if (PhaseTime == 1050){
Objects.upgradeBeam();
Objects.upgradeBeam();
initAnnouncement("Informative", "Impressive! You survived half a minute so far! Breaking a sweat yet?", 200);
};
if (PhaseTime == 2100){
Objects.upgradeBeam();
initAnnouncement("Mischievious", "One minute now! Feeling the effects of brain fatigue yet~?", 200);
};
if (PhaseTime == 4200){
_local6 = false;
_local7 = 0;
while (_local7 < Objects.getNumWeapons()) {
if (Objects.getAvailableWeapon(_local7) == 4){
_local6 = true;
break;
};
_local7++;
};
if (!_local6){
Objects.unlockWeapon(4);
pauseAnnouncement("Worried", "Incredible!!! Your show of survival has impressed the superiors enough to give you this amazing new weapon! (You can use this weapon in other modes of play)\n\nOBTAINED:\n\n\"SPARKY\"", 200);
};
};
if (PhaseTime == 6300){
pauseAnnouncement("Miscievious", "All this work you're doing has allowed my research to develope this powerful program!! \n\nCODE: \n\n\"B. Smith\"", 200);
};
} else {
if (GameMode == "Practice"){
PhaseTime = (PhaseTime + 1);
if (_local1 != 36){
if (Math.round(PhaseTime) < 250){
BackFadeOut();
};
if (((!(MusicLoaded)) && (MusicOn))){
Music = new ParticleBlasterFX();
Channel = Music.play();
Channel.soundTransform = new SoundTransform(MusicVol);
Channel.addEventListener(Event.SOUND_COMPLETE, MusicLoop);
MusicStart = 4000;
MusicLoaded = true;
PhaseTime = 0;
};
if (Math.round(PhaseTime) == 2){
pauseAnnouncement("GirlSmile", "Hello there! You must be new to operating a nano power station! Allow me to give you a run down on how to operate it!", 10);
};
if (Math.round(PhaseTime) == 3){
pauseAnnouncement("GirlInformative", "First off, see the particles floating in front of you? We refer to those as nanos. They are what keep this station operational.", 10);
};
if (Math.round(PhaseTime) == 4){
pauseAnnouncement("GirlInformative", "To collect nanos, simply move your mouse towards them to extend your beam. But be careful! Only touch the ones of the same color as your beam!", 10);
};
if (Math.round(PhaseTime) == 5){
pauseAnnouncement("GirlInformative", "If you happend to hit the wrong color nano, you will take damage. Your health meter is indicated at the top left of the screen.", 10);
};
if (Math.round(PhaseTime) == 350){
pauseAnnouncement("GirlInformative", "While looking at meters, note the stations energy is at the bottom left of the screen. If this meter reaches zero it is also gameover. Collect nanos to keep this gauge replenished.", 10);
};
if (Math.round(PhaseTime) == 351){
pauseAnnouncement("GirlInformative", "You may notice white flashing nanos float by. If you have a basic blaster equipped or no weapon, these nanos replenish your health some.", 10);
};
if (Math.round(PhaseTime) == 352){
Objects.unlockWeapon(0);
pauseAnnouncement("GirlInformative", "Here I just gave you a test blaster. Press E or Q to equip it and click your mouse to fire it. Here in a bit you will get to test it on some malicious nanobots.", 10);
};
if (Math.round(PhaseTime) == 353){
Objects.unlockWeapon(3);
pauseAnnouncement("GirlInformative", "This model gun does not require ammo. Here, i'll give you another double blaster. This ones ammo depletes as you fire it. The ammo for it is indicated by the bar on the bottom right.", 10);
};
if (Math.round(PhaseTime) == 354){
pauseAnnouncement("GirlInformative", "If you have your small blaster equipped you will notice your health go up as you collect white nanos, but if your double is equipped then only it's ammo is replenished. This is very important to remember.", 10);
};
if (Math.round(PhaseTime) == 355){
pauseAnnouncement("GirlInformative", "Here's something to consider too. Some of the larger nano-bots you will fight may have weak points available for you laser to attack them. This can help immensly as your laser is very powerful itself.", 10);
};
if (Math.round(PhaseTime) == 655){
pauseAnnouncement("GirlInformative", "Now here are some test nano bots to shoot at! Let's see how you do! This will be an easy test. Remember real time situations will be FAR more difficult than this! So practice well!", 10);
};
if (Math.round(PhaseTime) == 656){
pauseAnnouncement("GirlInformative", "If you want to return to the game simply pause the game by pressing \"P\" then clicking on MAIN twice.", 300);
};
if (Math.round(PhaseTime) == 700){
Objects.loadData(90211);
};
if ((((_local1 >= 1)) && ((_local1 <= 35)))){
PhaseTime = 0;
};
};
if (_local1 == 36){
if (PhaseTime == 10){
initAnnouncement("GirlSmile", "Very good job! You finished up the training mode rather smoothly! For such a good show I'll let you keep that double blaster for your real time fighting!", 350);
_local6 = false;
_local7 = 0;
while (_local7 < SavedData.WeaponData.length) {
if (SavedData.WeaponData[_local7] == 3){
_local6 = true;
break;
};
_local7++;
};
if (!_local6){
SavedData.WeaponData.push(3);
};
};
if (PhaseTime == 400){
pauseAnnouncement("GirlSmile", "Obtained Code for unlocking double blaster:\n\n\"B. Carrel\"", 300);
};
if (PhaseTime == 420){
Pause = true;
removeEventListener(Event.ENTER_FRAME, main);
GameOverBack_Click(new MouseEvent("BAHAHAHA"));
Mouse.show();
};
};
};
};
};
};
};
if (!Pause){
if (MusicOn){
if (Channel.position > (Music.length - 3000)){
if (musicFadeOut()){
ManualLoop();
};
};
};
if ((((AnnounceDuration == AnnounceTime)) && (GameBoard.contains(AnnouncementDisplay)))){
removeAnnouncement();
} else {
AnnounceDuration++;
};
};
}
public function SFXKnob_Press(_arg1:Event):void{
MainMenuDisplay.SFXKnob.addEventListener(Event.ENTER_FRAME, SFXKnob_Follow);
SoundEffect = null;
}
public function QualityNo_Click(_arg1:MouseEvent):void{
makeSound(explosionsmall1FX);
MainMenuDisplay.QualityNo.nextFrame();
MainMenuDisplay.QualityYes.prevFrame();
QualityControl = false;
}
public function ArcadeButton_Click(_arg1:MouseEvent):void{
GameMode = "Arcade";
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.CLICK, BackButton_Click);
MainMenuDisplay.ArcadeButton.removeEventListener(MouseEvent.CLICK, ArcadeButton_Click);
MainMenuDisplay.SurvivalButton.removeEventListener(MouseEvent.CLICK, SurvivalButton_Click);
MainMenuDisplay.ClassicButton.removeEventListener(MouseEvent.CLICK, ClassicButton_Click);
MainMenuDisplay.SwarmButton.removeEventListener(MouseEvent.CLICK, SwarmButton_Click);
MainMenuDisplay.ArcadeButton.removeEventListener(MouseEvent.MOUSE_OVER, ArcadeButton_Over);
MainMenuDisplay.SurvivalButton.removeEventListener(MouseEvent.MOUSE_OVER, SurvivalButton_Over);
MainMenuDisplay.ClassicButton.removeEventListener(MouseEvent.MOUSE_OVER, ClassicButton_Over);
MainMenuDisplay.SwarmButton.removeEventListener(MouseEvent.MOUSE_OVER, SwarmButton_Over);
MainMenuDisplay.ArcadeButton.removeEventListener(MouseEvent.MOUSE_OUT, ArcadeButton_Off);
MainMenuDisplay.SurvivalButton.removeEventListener(MouseEvent.MOUSE_OUT, SurvivalButton_Off);
MainMenuDisplay.ClassicButton.removeEventListener(MouseEvent.MOUSE_OUT, ClassicButton_Off);
MainMenuDisplay.SwarmButton.removeEventListener(MouseEvent.MOUSE_OUT, SwarmButton_Off);
MainMenuDisplay.removeEventListener(Event.ENTER_FRAME, DropDownDisplay);
SoundEffect = new gameoverFX();
EffectChannel = SoundEffect.play(2500);
if (Phase == 0){
stage.addEventListener(Event.ENTER_FRAME, FadeToIntro);
} else {
stage.addEventListener(Event.ENTER_FRAME, FadeToGame);
};
TransitionDisplay = new StartTransitionID();
addChild(TransitionDisplay);
}
public function BackgroundNo_Over(_arg1:MouseEvent):void{
MainMenuDisplay.BackgroundNo.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 200, 200, 200);
}
public function Announce_SpaceOut():void{
var _local1:*;
if (((((keyIsDown[32]) && (!(BugFix3)))) && (GameBoard.contains(AnnouncementDisplay)))){
removeAnnouncement();
_local1 = 0;
while (_local1 < Objects.GraphicList.length) {
Objects.addChild(Objects.GraphicList[_local1]);
Objects.GraphicList[_local1].play();
_local1++;
};
Mouse.hide();
Pause = false;
};
if (keyIsDown[32]){
BugFix3 = true;
} else {
BugFix3 = false;
};
}
public function QualityNo_Off(_arg1:MouseEvent):void{
MainMenuDisplay.QualityNo.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function SwarmButton_Click(_arg1:MouseEvent):void{
GameMode = "Swarm";
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.CLICK, BackButton_Click);
MainMenuDisplay.ArcadeButton.removeEventListener(MouseEvent.CLICK, ArcadeButton_Click);
MainMenuDisplay.SurvivalButton.removeEventListener(MouseEvent.CLICK, SurvivalButton_Click);
MainMenuDisplay.ClassicButton.removeEventListener(MouseEvent.CLICK, ClassicButton_Click);
MainMenuDisplay.SwarmButton.removeEventListener(MouseEvent.CLICK, SwarmButton_Click);
MainMenuDisplay.ArcadeButton.removeEventListener(MouseEvent.MOUSE_OVER, ArcadeButton_Over);
MainMenuDisplay.SurvivalButton.removeEventListener(MouseEvent.MOUSE_OVER, SurvivalButton_Over);
MainMenuDisplay.ClassicButton.removeEventListener(MouseEvent.MOUSE_OVER, ClassicButton_Over);
MainMenuDisplay.SwarmButton.removeEventListener(MouseEvent.MOUSE_OVER, SwarmButton_Over);
MainMenuDisplay.ArcadeButton.removeEventListener(MouseEvent.MOUSE_OUT, ArcadeButton_Off);
MainMenuDisplay.SurvivalButton.removeEventListener(MouseEvent.MOUSE_OUT, SurvivalButton_Off);
MainMenuDisplay.ClassicButton.removeEventListener(MouseEvent.MOUSE_OUT, ClassicButton_Off);
MainMenuDisplay.SwarmButton.removeEventListener(MouseEvent.MOUSE_OUT, SwarmButton_Off);
MainMenuDisplay.removeEventListener(Event.ENTER_FRAME, DropDownDisplay);
SoundEffect = new gameoverFX();
EffectChannel = SoundEffect.play(2500);
stage.addEventListener(Event.ENTER_FRAME, FadeToGame);
TransitionDisplay = new StartTransitionID();
addChild(TransitionDisplay);
}
public function Hard_Over(_arg1:MouseEvent):void{
MainMenuDisplay.HardButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 200, 200, 200);
}
public function SurvivalButton_Over(_arg1:MouseEvent):void{
MainMenuDisplay.Display.text = "";
MainMenuDisplay.Display.appendText("Survival Mode! Watch your energy drain before your eyes! You start with all four beam levels....but do you have enough coordination to stay alive? Stay alive long enough and something good can happen...");
MainMenuDisplay.SurvivalButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 200, 200, 200);
}
public function ClassicButton_Click(_arg1:MouseEvent):void{
GameMode = "Classic";
MainMenuDisplay.BackButton.removeEventListener(MouseEvent.CLICK, BackButton_Click);
MainMenuDisplay.ArcadeButton.removeEventListener(MouseEvent.CLICK, ArcadeButton_Click);
MainMenuDisplay.SurvivalButton.removeEventListener(MouseEvent.CLICK, SurvivalButton_Click);
MainMenuDisplay.ClassicButton.removeEventListener(MouseEvent.CLICK, ClassicButton_Click);
MainMenuDisplay.SwarmButton.removeEventListener(MouseEvent.CLICK, SwarmButton_Click);
MainMenuDisplay.ArcadeButton.removeEventListener(MouseEvent.MOUSE_OVER, ArcadeButton_Over);
MainMenuDisplay.SurvivalButton.removeEventListener(MouseEvent.MOUSE_OVER, SurvivalButton_Over);
MainMenuDisplay.ClassicButton.removeEventListener(MouseEvent.MOUSE_OVER, ClassicButton_Over);
MainMenuDisplay.SwarmButton.removeEventListener(MouseEvent.MOUSE_OVER, SwarmButton_Over);
MainMenuDisplay.ArcadeButton.removeEventListener(MouseEvent.MOUSE_OUT, ArcadeButton_Off);
MainMenuDisplay.SurvivalButton.removeEventListener(MouseEvent.MOUSE_OUT, SurvivalButton_Off);
MainMenuDisplay.ClassicButton.removeEventListener(MouseEvent.MOUSE_OUT, ClassicButton_Off);
MainMenuDisplay.SwarmButton.removeEventListener(MouseEvent.MOUSE_OUT, SwarmButton_Off);
MainMenuDisplay.removeEventListener(Event.ENTER_FRAME, DropDownDisplay);
SoundEffect = new gameoverFX();
EffectChannel = SoundEffect.play(2500);
stage.addEventListener(Event.ENTER_FRAME, FadeToGame);
TransitionDisplay = new StartTransitionID();
addChild(TransitionDisplay);
}
public function ManualLoop():void{
MusicFade = MusicVol;
Channel.removeEventListener(Event.SOUND_COMPLETE, MusicLoop);
Channel = Music.play(MusicStart);
Channel.soundTransform = new SoundTransform(MusicVol);
Channel.addEventListener(Event.SOUND_COMPLETE, MusicLoop);
}
public function Easy_Off(_arg1:MouseEvent):void{
MainMenuDisplay.EasyButton.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function initMainMenuDisplay():void{
stage.frameRate = 35;
clearScreen();
Phase = 0;
SaveGame.data.game = SavedData;
ViewEnd = false;
if (Music == null){
Music = new MenuThemeID();
Channel = Music.play();
Channel.addEventListener(Event.SOUND_COMPLETE, repeatFullSong);
Channel.soundTransform = new SoundTransform(MusicVol, 0);
};
MainMenuDisplayMain = new MainMenuDisplayID();
MainMenuDisplayMain.cacheAsBitmap = true;
MainMenuDisplayMain.getChildByName("SponsorButton").addEventListener(MouseEvent.CLICK, SponsorClick);
addChild(MainMenuDisplayMain);
MainMenuDisplayMain.getChildByName("MoreGamesButton").addEventListener(MouseEvent.CLICK, SponsorClick);
MainMenuDisplayMain.getChildByName("StartGame").addEventListener(MouseEvent.CLICK, StartGame_Click);
MainMenuDisplayMain.getChildByName("Options").addEventListener(MouseEvent.CLICK, Options_Click);
MainMenuDisplayMain.getChildByName("Password").addEventListener(MouseEvent.CLICK, Password_Click);
MainMenuDisplayMain.getChildByName("HowTo").addEventListener(MouseEvent.CLICK, HowTo_Click);
MainMenuDisplayMain.getChildByName("EnemyList").addEventListener(MouseEvent.CLICK, EnemyList_Click);
MainMenuDisplayMain.getChildByName("HighScore").addEventListener(MouseEvent.CLICK, HighScore_Click);
removeRightDefaultItems();
}
public function QualityMedium_Off(_arg1:MouseEvent):void{
MainMenuDisplay.Medium.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function MusicKnob_Stop(_arg1:Event):void{
MainMenuDisplay.MusicKnob.removeEventListener(Event.ENTER_FRAME, MusicKnob_Follow);
}
public function makeSound(_arg1:Class):void{
SoundEffect = new (_arg1);
EffectChannel = SoundEffect.play();
EffectChannel.soundTransform = new SoundTransform(SFXVol);
}
public function SFXYes_Off(_arg1:MouseEvent):void{
MainMenuDisplay.SFXYes.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
}
public function initShake(_arg1:int, _arg2:int, _arg3:int):void{
beginShake = true;
XShake = _arg2;
YShake = _arg3;
shakeDuration = 0;
if (_arg1 > 75){
SoundEffect = new screenrumbleentryFX();
EffectChannel = SoundEffect.play();
EffectChannel.soundTransform = new SoundTransform((SFXVol / 2));
EffectChannel.addEventListener(Event.SOUND_COMPLETE, RumbleNoise_Continue);
} else {
SoundEffect = new bumpFX();
EffectChannel = SoundEffect.play();
EffectChannel.soundTransform = new SoundTransform(SFXVol);
};
if ((_arg1 % 2) != 0){
_arg1--;
};
shakeTime = _arg1;
}
public function updateDisplays():void{
var _local1:Array;
_local1 = new Array();
_local1[0] = "Blaster";
_local1[1] = "Black Hole Bomb";
_local1[2] = "Web Net";
_local1[3] = "Double Chain Gun";
_local1[4] = "Sparky";
_local1[5] = "Radon Flare";
_local1[6] = "Rapids";
_local1[7] = "Big Bertha";
_local1[99] = "void";
GameSkin.CurrentWeaponName.text = _local1[Objects.getCurrentWeapon()];
GameSkin.NumParticles.text = Objects.getParticles();
GameSkin.TotalScore.text = Objects.getScore();
if (GameMode != "Classic"){
GameSkin.CurrentWeaponAmmo.scaleX = (Objects.getAmmo(Objects.getCurrentWeapon()) / Objects.getAmmoMax(Objects.getCurrentWeapon()));
} else {
GameSkin.CurrentWeaponAmmo.scaleX = (Objects.getAmmo(0) / Objects.getAmmoMax(0));
};
GameSkin.CurrentBeamType.text = Objects.getCurrentBeam();
GameSkin.BeamLevel.text = Objects.getBeamLevel();
GameSkin.Difficulty.text = GameDifficulty;
GameSkin.PlayerHP.text = Objects.getPlayerHP();
GameSkin.PlayerHPBar.gotoAndStop(Math.ceil(((Objects.getPlayerHP() / 200) / 0.125)));
if (Objects.getPlayerEnergy() < 1000){
GameSkin.EnergyLevel.scaleX = (Objects.getPlayerEnergy() / 1000);
} else {
GameSkin.EnergyLevel.scaleX = 1;
};
if ((((Objects.getPlayerHP() <= 20)) && (!(WarnedHP)))){
NumFlashHP++;
if ((NumFlashHP % 2) == 0){
GameSkin.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
} else {
GameSkin.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
};
};
if ((((Objects.getPlayerEnergy() <= 100)) && (!(WarnedEnergy)))){
NumFlashEnergy++;
if ((NumFlashEnergy % 2) == 0){
GameSkin.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF);
} else {
GameSkin.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
};
};
if ((((NumFlashHP >= 20)) && (!(WarnedHP)))){
WarnedHP = true;
NumFlashHP = 0;
GameSkin.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
initAnnouncement("Worried", "WARNING LOW HEALTH", 50);
};
if ((((NumFlashEnergy >= 20)) && (!(WarnedEnergy)))){
WarnedEnergy = true;
NumFlashEnergy = 0;
GameSkin.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
initAnnouncement("Worried", "WARNING LOW ENERGY", 50);
};
if ((PhaseTime % 120) == 0){
GameSkin.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0);
};
if (Objects.getPlayerHP() > 50){
WarnedHP = false;
};
if (Objects.getPlayerEnergy() > 300){
WarnedEnergy = false;
};
if ((((Objects.getPlayerHP() <= 0)) && (!(GameOvered)))){
Objects.dispatchEvent(new Event("PlayerDead"));
GameOvered = true;
};
if ((Objects.getPlayerEnergy() % 10) == 0){
Objects.dispatchEvent(new Event("WeaponUpdate"));
};
}
public function Phase4_Click(_arg1:MouseEvent):void{
Phase = 6;
if (GameDifficulty == "Easy"){
if (SavedData.EasyPhases > 3){
MainMenuDisplay.Phase4.gotoAndStop(2);
};
if (SavedData.EasyPhases > 2){
MainMenuDisplay.Phase3.gotoAndStop(1);
};
if (SavedData.EasyPhases > 1){
MainMenuDisplay.Phase2.gotoAndStop(1);
};
if (SavedData.EasyPhases > 0){
MainMenuDisplay.Phase1.gotoAndStop(1);
};
} else {
if (GameDifficulty == "Normal"){
if (SavedData.NormalPhases > 3){
MainMenuDisplay.Phase4.gotoAndStop(2);
};
if (SavedData.NormalPhases > 2){
MainMenuDisplay.Phase3.gotoAndStop(1);
};
if (SavedData.NormalPhases > 1){
MainMenuDisplay.Phase2.gotoAndStop(1);
};
if (SavedData.NormalPhases > 0){
MainMenuDisplay.Phase1.gotoAndStop(1);
};
} else {
if (GameDifficulty == "Hard"){
if (SavedData.HardPhases > 3){
MainMenuDisplay.Phase4.gotoAndStop(2);
};
if (SavedData.HardPhases > 2){
MainMenuDisplay.Phase3.gotoAndStop(1);
};
if (SavedData.HardPhases > 1){
MainMenuDisplay.Phase2.gotoAndStop(1);
};
if (SavedData.HardPhases > 0){
MainMenuDisplay.Phase1.gotoAndStop(1);
};
};
};
};
}
public function AnnouncementHandler(_arg1:Event):void{
}
public function RaisePauseDisplay(_arg1:Event):void{
MainMenuDisplay.y = (MainMenuDisplay.y + ((-700 - MainMenuDisplay.y) / 5));
if (MainMenuDisplay.y < -500){
MainMenuDisplay.removeEventListener(Event.ENTER_FRAME, RaisePauseDisplay);
removeChild(MainMenuDisplay);
};
}
public function Mouse_Press(_arg1:MouseEvent):void{
Objects.Mouse_Press();
}
public function removeAnnouncement():void{
if (GameBoard.contains(AnnouncementDisplay)){
GameBoard.removeChild(AnnouncementDisplay);
AnnouncementAnnounced = false;
};
}
public function ClearPassword(_arg1:MouseEvent):void{
MainMenuDisplay.Code.text = "";
}
public function QualityYes_Click(_arg1:MouseEvent):void{
makeSound(explosionsmall1FX);
MainMenuDisplay.QualityYes.nextFrame();
MainMenuDisplay.QualityNo.prevFrame();
QualityControl = true;
}
public function GameOver_Handler(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, main);
removeEventListener("GameOver", GameOver_Handler);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
stage.removeEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, Mouse_Press);
stage.removeEventListener(MouseEvent.MOUSE_UP, Mouse_Release);
initGameOverDisplay();
if (MusicOn){
Channel.stop();
Channel.removeEventListener(Event.SOUND_COMPLETE, MusicLoop);
};
}
public function HowToWeapons_Click(_arg1:Event):void{
MainMenuDisplay.Display.text = "Weapons were forbidden when nano-energy first came out, but now they are a must in order for power stations to ward off the terrible threat of malicious nano-bots! To equip and/or change your current weapon just press E or Q! You will be able to find several weapons within this game! Remember, only your primary blaster you get has infinite ammo! All the other weapons have limited ammo! To replenish ammo, collect the sparkling white particles. If your initial blaster is equipped OR you don't have a weapon equipped, the white particles restore some health (This is very important to remember).";
}
}
}//package game.engine.NTechBattleGrounds
Section 54
//NTechObject (game.engine.NTechBattleGrounds.NTechObject)
package game.engine.NTechBattleGrounds {
import flash.events.*;
import flash.media.*;
public class NTechObject extends EventDispatcher {
var hitRadius:Number;// = 0
var HP:int;// = 1
var Music:Sound;
var hitCenterX:Number;// = 0
var hitCenterY:Number;// = 0
var EffectChannel:SoundChannel;
var hitHeight:Number;// = 0
var ScoreValue:Number;// = 0
var VolControl:SoundTransform;
var Name:String;// = "NTECHOBJECT"
var SFXVol:Number;// = 0
var keyIsDown:Array;
var MaxHP:int;// = 1
var X:Number;// = 0
var Y:Number;// = 0
var Type:String;// = "Object"
var SoundEffect:Sound;
var hits:int;// = 0
var hitType:String;// = "Circle"
var hitWidth:Number;// = 0
public var Destroyed:Boolean;// = false
public function NTechObject(_arg1:Number, _arg2:Number):void{
Type = "Object";
Name = "NTECHOBJECT";
X = 0;
Y = 0;
hitCenterX = 0;
hitCenterY = 0;
hitWidth = 0;
hitHeight = 0;
hitRadius = 0;
hitType = "Circle";
hits = 0;
HP = 1;
MaxHP = 1;
keyIsDown = new Array();
ScoreValue = 0;
SFXVol = 0;
VolControl = new SoundTransform();
Destroyed = false;
super();
X = _arg1;
Y = _arg2;
keyIsDown = new Array();
}
public function getHitCenterY():Number{
return (hitCenterY);
}
public function getHitCenterX():Number{
return (hitCenterX);
}
public function getName():String{
return (Name);
}
public function keyUpHandler(_arg1:int):void{
keyIsDown[_arg1] = false;
}
public function main():void{
}
public function makeSound(_arg1:Class, _arg2:Number):void{
SoundEffect = new (_arg1);
if (EffectChannel != null){
EffectChannel.stop();
};
EffectChannel = SoundEffect.play();
EffectChannel.soundTransform = new SoundTransform(_arg2);
}
public function getX():Number{
return (X);
}
public function getY():Number{
return (Y);
}
public function getHitRadius():Number{
return (hitRadius);
}
public function addHit(_arg1:int=1):void{
hits = (hits + _arg1);
}
public function forceSound(_arg1:Class, _arg2:Number):void{
SoundEffect = new (_arg1);
if (EffectChannel != null){
EffectChannel.stop();
};
EffectChannel = SoundEffect.play();
EffectChannel.soundTransform = new SoundTransform(_arg2);
}
public function getHP():int{
return ((HP - hits));
}
public function makeSoundOnce(_arg1:Class, _arg2:Number):void{
if (Class(SoundEffect) != _arg1){
SoundEffect = new (_arg1);
EffectChannel = SoundEffect.play();
EffectChannel.soundTransform = new SoundTransform(_arg2);
};
}
public function getHitHeight():Number{
return (hitHeight);
}
public function keyDownHandler(_arg1:int):void{
keyIsDown[_arg1] = true;
}
public function getScoreValue():Number{
return (ScoreValue);
}
public function getHitWidth():Number{
return (hitWidth);
}
public function getTotHP():int{
return (MaxHP);
}
}
}//package game.engine.NTechBattleGrounds
Section 55
//ObjectHandler (game.engine.NTechBattleGrounds.ObjectHandler)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.geom.*;
public class ObjectHandler extends Sprite {
var WeaponIndex:int;// = 0
var ParticleRefs:Array;
var WeaponCharge:int;// = 0
var EffectChannel:Array;
var MouseGreenGlow:MovieClip;
var nextEnemyDelay:Array;
var ShakeX:int;// = 0
var ShakeY:int;// = 0
var SFXVol:Number;// = 1
var AmmoTypes:Array;
var EnemyIndex:int;// = 0
var curHitObject:int;// = 0
var keyIsDown:Array;
var AmmoRefs:Array;
var Score:int;// = 0
var PlayerWeapon:MovieClip;
var BeamEnd:MovieClip;
var nextEnemyLoop:Array;
var StartParticles:Boolean;// = true
var ObjectList:Array;
var nextEnemyX:Array;
var nextEnemyY:Array;
var nextShot:int;// = 0
var PlayerGraphic:MovieClip;
var nextParticle:int;
var SavedData:Object;
var keyWasPressed:Array;
var GameMode:String;// = "Arcade"
var PlayerEnergy:Number;// = 1000
var Ammo:Array;
var BeamLevel:int;// = 0
var WeaponList:Array;
var Player:NPlayer;
var StartBeam:Boolean;// = false
var VolControl:SoundTransform;
var nextEnemyType:Array;
var nextEnemyNumLoop:Array;
var ShakeDur:int;// = 0
var ClassicWeapon:int;// = 0
var CWeaponDur:int;// = 0
var tempGraphicList:Array;
var typeAmmoHit:int;// = 0
var SoundEffect:Sound;
var tempObjectList:Array;
var DelayCount:int;// = 0
var GraphicList:Array;
var WeaponType:int;// = 0
var maxEnemyPresent:Array;
var StartFire:Boolean;// = false
var AmmoMax:Array;
var EnemiesSeen:Array;
var Firing:Boolean;// = false
var BeamType:int;// = 1
var numHitPart:int;// = 0
var BeamBendDir:int;// = 0
var EnemyRefs:Array;
var numEnemyLoops:int;// = 0
var MouseIsDown:Boolean;// = false
var Difficulty:String;// = "Normal"
var CrossBeam:Sprite;
var AmmoDamage:Array;
var BeamBlock:Number;// = 0
public function ObjectHandler(_arg1:DisplayObjectContainer, _arg2:String, _arg3:String, _arg4:Number, _arg5:Object):void{
var _local6:*;
SavedData = new Object();
EffectChannel = new Array();
nextEnemyType = new Array();
nextEnemyDelay = new Array();
nextEnemyX = new Array();
nextEnemyY = new Array();
nextEnemyLoop = new Array();
nextEnemyNumLoop = new Array();
maxEnemyPresent = new Array();
numEnemyLoops = 0;
EnemiesSeen = new Array();
DelayCount = 0;
EnemyIndex = 0;
numHitPart = 0;
nextParticle = Math.ceil((Math.random() * 30));
nextShot = 0;
StartParticles = true;
Score = 0;
BeamType = 1;
StartBeam = false;
BeamLevel = 0;
BeamBlock = 0;
BeamBendDir = 0;
WeaponType = 0;
StartFire = false;
MouseIsDown = false;
Firing = false;
WeaponCharge = 0;
ClassicWeapon = 0;
CWeaponDur = 0;
CrossBeam = new Sprite();
curHitObject = 0;
typeAmmoHit = 0;
WeaponList = new Array();
WeaponIndex = 0;
Ammo = new Array();
AmmoDamage = new Array();
AmmoMax = new Array();
PlayerEnergy = 1000;
ObjectList = new Array();
GraphicList = new Array();
tempObjectList = new Array();
tempGraphicList = new Array();
ShakeDur = 0;
ShakeX = 0;
ShakeY = 0;
ParticleRefs = new Array();
EnemyRefs = new Array();
AmmoRefs = new Array();
AmmoTypes = new Array();
keyIsDown = new Array();
keyWasPressed = new Array();
GameMode = "Arcade";
Difficulty = "Normal";
SFXVol = 1;
super();
SavedData = _arg5;
Player = new NPlayer(145, 175, _arg1);
BeamEnd = new Pointer1ID();
MouseGreenGlow = new MouseGlowerID();
Player.SFXVol = _arg4;
GameMode = _arg2;
Difficulty = _arg3;
SFXVol = _arg4;
VolControl = new SoundTransform(SFXVol, 0);
initBeam();
initWeapon(999);
ParticleRefs[0] = Particle1ID;
ParticleRefs[1] = Particle2ID;
ParticleRefs[2] = Particle3ID;
ParticleRefs[3] = Particle4ID;
ParticleRefs[4] = PowerUpID;
EnemyRefs[0] = Enemy0;
EnemyRefs[1] = Enemy1;
EnemyRefs[2] = Enemy2;
EnemyRefs[3] = Enemy3;
EnemyRefs[4] = Enemy4;
EnemyRefs[5] = Boss5;
EnemyRefs[6] = Enemy6;
EnemyRefs[7] = Enemy7;
EnemyRefs[8] = Enemy8;
EnemyRefs[9] = Enemy9;
EnemyRefs[10] = Enemy10;
EnemyRefs[11] = Boss11;
EnemyRefs[12] = Enemy12;
EnemyRefs[13] = Enemy13;
EnemyRefs[14] = Enemy14;
EnemyRefs[15] = Enemy15;
EnemyRefs[16] = Boss16;
EnemyRefs[17] = Enemy17;
EnemyRefs[18] = Enemy18;
EnemyRefs[19] = Enemy19;
EnemyRefs[20] = Enemy20;
EnemyRefs[21] = Boss21;
EnemyRefs[22] = Boss21Case;
EnemyRefs[23] = Boss21Lasers;
EnemyRefs[24] = Boss21shield;
EnemyRefs[25] = Boss21Snake;
EnemyRefs[26] = Boss21Turret;
AmmoRefs[0] = AmmoType1ID;
AmmoRefs[1] = AmmoType2ID;
AmmoRefs[2] = NetAmmoID;
AmmoRefs[3] = AmmoType1ID;
AmmoRefs[4] = LightningStartID;
AmmoRefs[5] = RadonFlareID;
AmmoRefs[6] = RapidsAmmoID;
AmmoRefs[7] = BigBerthaID;
AmmoTypes[0] = PAmmo0;
AmmoTypes[1] = PAmmo1;
AmmoTypes[2] = PAmmo3;
AmmoTypes[3] = PAmmo0;
AmmoTypes[4] = PAmmo4;
AmmoTypes[5] = PAmmo5;
AmmoTypes[6] = PAmmo0;
AmmoTypes[7] = PAmmo0;
Ammo[0] = 0;
Ammo[1] = 10;
Ammo[2] = 10;
Ammo[3] = 300;
Ammo[4] = 20;
Ammo[5] = 20;
Ammo[6] = 500;
Ammo[7] = 5;
Ammo[8] = 0;
Ammo[9] = 0;
AmmoMax[0] = 1;
AmmoMax[1] = 10;
AmmoMax[2] = 10;
AmmoMax[3] = 300;
AmmoMax[4] = 20;
AmmoMax[5] = 20;
AmmoMax[6] = 500;
AmmoMax[7] = 5;
AmmoMax[8] = 0;
AmmoMax[9] = 0;
AmmoDamage[0] = 2;
AmmoDamage[1] = 1;
AmmoDamage[2] = 2;
AmmoDamage[3] = 1;
AmmoDamage[4] = 20;
AmmoDamage[5] = 10;
AmmoDamage[6] = 1;
AmmoDamage[7] = 100;
AmmoDamage[8] = 1;
AmmoDamage[9] = 1;
if (GameMode == "Arcade"){
if (SavedData.WeaponData != null){
_local6 = 0;
while (_local6 < SavedData.WeaponData.length) {
unlockWeapon(SavedData.WeaponData[_local6]);
_local6++;
};
};
if (SavedData.BeamData != null){
_local6 = 0;
while (_local6 < SavedData.BeamData) {
upgradeBeam();
_local6++;
};
};
Player.addHit(-50);
} else {
if (GameMode == "Classic"){
Player.addHit(100);
addChild(CrossBeam);
} else {
if (GameMode == "Survival"){
Player.addHit(100);
upgradeBeam();
upgradeBeam();
upgradeBeam();
upgradeBeam();
} else {
if (GameMode == "Swarm"){
if (SavedData.WeaponData != null){
_local6 = 0;
while (_local6 < SavedData.WeaponData.length) {
unlockWeapon(SavedData.WeaponData[_local6]);
_local6++;
};
};
};
};
};
};
addChild(PlayerGraphic);
addChild(BeamEnd);
addChild(MouseGreenGlow);
addEventListener("PlayerDead", GameOver_Handler);
}
private function genPowerUpCollect(_arg1:int):void{
tempGraphicList.push(new PowerUpCollectID());
tempGraphicList[(tempGraphicList.length - 1)].x = ObjectList[_arg1].getX();
tempGraphicList[(tempGraphicList.length - 1)].y = ObjectList[_arg1].getY();
addChild(tempGraphicList[(tempGraphicList.length - 1)]);
}
public function genParticle(_arg1:int, _arg2:Number, _arg3:Number):void{
ObjectList.push(new Particle(_arg2, _arg3, _arg1));
ObjectList[(ObjectList.length - 1)].addEventListener("ParticleDestroy", ParticleBlowUp);
GraphicList.push(new (ParticleRefs[_arg1]));
addChild(GraphicList[(GraphicList.length - 1)]);
}
public function getAvailableWeapon(_arg1:int):int{
return (WeaponList[_arg1]);
}
public function ChangeWeapon(_arg1:Boolean):void{
PlayerWeapon.removeEventListener("WeaponIntro", beginWeapon);
if (WeaponList.length > 0){
if (_arg1){
WeaponIndex++;
} else {
WeaponIndex--;
};
if (WeaponIndex <= -1){
initWeapon(999);
WeaponIndex = WeaponList.length;
WeaponType = 0;
} else {
if (WeaponIndex >= WeaponList.length){
initWeapon(999);
WeaponIndex = -1;
WeaponType = 0;
} else {
WeaponType = WeaponList[WeaponIndex];
initWeapon(WeaponType);
};
};
};
}
public function genEnemy(_arg1:int, _arg2:Number, _arg3:Number):void{
if (_arg1 <= 21){
ObjectList.push(new EnemyRefs[_arg1](_arg2, _arg3, Player, 0));
} else {
if (_arg1 == 26){
ObjectList.push(new EnemyRefs[_arg1](_arg2, _arg3, Player, ObjectList[(ObjectList.length - 1)]));
} else {
if (_arg1 == 23){
ObjectList.push(new EnemyRefs[_arg1](_arg2, _arg3, Player, ObjectList[(ObjectList.length - 2)]));
} else {
if (_arg1 == 24){
ObjectList.push(new EnemyRefs[_arg1](_arg2, _arg3, Player, ObjectList[(ObjectList.length - 3)]));
} else {
if (_arg1 == 25){
ObjectList.push(new EnemyRefs[_arg1](_arg2, _arg3, Player, ObjectList[(ObjectList.length - 4)]));
} else {
if (_arg1 == 22){
ObjectList.push(new EnemyRefs[_arg1](_arg2, _arg3, Player, ObjectList[(ObjectList.length - 5)]));
};
};
};
};
};
};
ObjectList[(ObjectList.length - 1)].addEventListener("EnemyAttack", enemyAttacked);
ObjectList[(ObjectList.length - 1)].addEventListener("EnemyDestroyed", FullEnemyDeath_Handler);
ObjectList[(ObjectList.length - 1)].addEventListener("RequestTemp", genEnemyTempGraphic);
ObjectList[(ObjectList.length - 1)].addEventListener("RequestObject", genEnemyObject);
GraphicList.push(new ObjectList[(ObjectList.length - 1)].IntroGraphic());
GraphicList[(GraphicList.length - 1)].addEventListener("EnemyIntro", Enemy_Engaged);
ObjectList[(ObjectList.length - 1)].AssociateGraphic(GraphicList[(GraphicList.length - 1)]);
addChild(GraphicList[(GraphicList.length - 1)]);
}
public function FireWeapon():void{
if (((((MouseIsDown) && (!(Firing)))) && (StartFire))){
WeaponCharge++;
if (WeaponType == 0){
PlayerWeapon.play();
Firing = true;
PlayerWeapon.addEventListener("Fired", Fired_Handler);
Ammo[0] = 0;
genShot(0, PlayerWeapon.x, PlayerWeapon.y, 0);
makeSound(Shot1FX);
} else {
if (Ammo[WeaponType] > 0){
if (WeaponType == 1){
PlayerWeapon.play();
Firing = true;
PlayerWeapon.addEventListener("Fired", Fired_Handler);
makeSound(gun2FX);
} else {
if (WeaponType == 2){
PlayerWeapon.play();
Firing = true;
PlayerWeapon.addEventListener("Fired", Fired_Handler);
var _local1 = Ammo;
var _local2 = 2;
var _local3 = (_local1[_local2] - 1);
_local1[_local2] = _local3;
genShot(2, PlayerWeapon.x, PlayerWeapon.y, BeamType);
} else {
if (WeaponType == 3){
PlayerWeapon.play();
Firing = true;
PlayerWeapon.addEventListener("Fired", Fired_Handler);
Ammo[3] = (Ammo[3] - 2);
genShot(0, PlayerWeapon.x, (PlayerWeapon.y - 35), 0);
genShot(0, PlayerWeapon.x, (PlayerWeapon.y + 35), 0);
} else {
if (WeaponType == 4){
PlayerWeapon.play();
Firing = true;
PlayerWeapon.addEventListener("Fired", Fired_Handler);
Ammo[4] = (Ammo[4] - 1);
genShot(4, PlayerWeapon.x, PlayerWeapon.y, 0);
} else {
if (WeaponType == 5){
PlayerWeapon.play();
Firing = true;
PlayerWeapon.addEventListener("Fired", Fired_Handler);
Ammo[5] = (Ammo[5] - 1);
genShot(5, PlayerWeapon.x, PlayerWeapon.y, BeamType);
} else {
if (WeaponType == 6){
PlayerWeapon.play();
Firing = false;
PlayerWeapon.addEventListener("Fired", Fired_Handler);
Ammo[6] = (Ammo[6] - 1);
genShot(6, (PlayerWeapon.x + 10), PlayerWeapon.y, BeamType);
} else {
if (WeaponType == 7){
PlayerWeapon.play();
Firing = false;
PlayerWeapon.addEventListener("Fired", Fired_Handler);
Ammo[7] = (Ammo[7] - 1);
genShot(7, (PlayerWeapon.x - 75), (PlayerWeapon.y - 50), BeamType);
};
};
};
};
};
};
};
};
};
} else {
WeaponCharge = 0;
};
}
public function BeamHitTest(_arg1:int):Boolean{
var _local2:Number;
var _local3:Number;
var _local4:Boolean;
_local4 = false;
_local2 = ((ObjectList[_arg1].getX() + ObjectList[_arg1].getHitCenterX()) - (parent.mouseX - BeamBlock));
_local3 = Math.abs(((ObjectList[_arg1].getY() + ObjectList[_arg1].getHitCenterY()) - parent.mouseY));
if (ObjectList[_arg1].hitType == "Circle"){
if (ObjectList[_arg1].getHitRadius() >= _local3){
if (_local2 <= ObjectList[_arg1].getHitRadius()){
_local4 = true;
};
};
} else {
if (ObjectList[_arg1].hitType == "Rectangle"){
if ((((_local3 < ObjectList[_arg1].hitHeight)) && ((parent.mouseY > (ObjectList[_arg1].getY() + ObjectList[_arg1].getHitCenterY()))))){
if (_local2 <= 0){
_local4 = true;
};
};
};
};
return (_local4);
}
public function beginWeapon(_arg1:Event):void{
PlayerWeapon.removeEventListener("WeaponIntro", beginWeapon);
removeChild(PlayerWeapon);
if (WeaponType == 0){
PlayerWeapon = new Weapon1ID();
} else {
if (WeaponType == 1){
PlayerWeapon = new Weapon2ID();
} else {
if (WeaponType == 2){
PlayerWeapon = new Weapon6ID();
} else {
if (WeaponType == 3){
PlayerWeapon = new Weapon4ID();
} else {
if (WeaponType == 4){
PlayerWeapon = new Weapon5ID();
} else {
if (WeaponType == 5){
PlayerWeapon = new Weapon7ID();
} else {
if (WeaponType == 6){
PlayerWeapon = new Weapon8ID();
} else {
if (WeaponType == 7){
PlayerWeapon = new Weapon3ID();
};
};
};
};
};
};
};
};
PlayerWeapon.x = Player.getX();
PlayerWeapon.y = Player.getY();
StartFire = true;
addChild(PlayerWeapon);
}
public function getEnemyIndex():int{
return (EnemyIndex);
}
public function Mouse_Release():void{
MouseIsDown = false;
Firing = false;
}
public function genParticleBad(_arg1:int):void{
tempGraphicList.push(new ParticleBadCollectID());
tempGraphicList[(tempGraphicList.length - 1)].x = ObjectList[_arg1].getX();
tempGraphicList[(tempGraphicList.length - 1)].y = ObjectList[_arg1].getY();
addChild(tempGraphicList[(tempGraphicList.length - 1)]);
}
public function getBeamLevel():int{
return (BeamLevel);
}
public function ParticleBlowUp(_arg1:Event):void{
var _local2:*;
addToScore(50);
_local2 = 0;
while (_local2 < ObjectList.length) {
if (_arg1.target == ObjectList[_local2]){
removeObject(_local2);
};
_local2++;
};
}
public function getEnemyHP():int{
return (ObjectList[curHitObject].getHP());
}
public function keyDownHandler(_arg1:int):void{
var _local2:*;
keyIsDown[_arg1] = true;
_local2 = 0;
while (_local2 < ObjectList.length) {
ObjectList[_local2].keyDownHandler(_arg1);
_local2++;
};
}
public function genShot(_arg1:int, _arg2:Number, _arg3:Number, _arg4:Number):void{
ObjectList.push(new AmmoTypes[_arg1](_arg2, _arg3, ObjectList, _arg4));
ObjectList[(ObjectList.length - 1)].addEventListener("EnemyAttack", enemyAttacked);
ObjectList[(ObjectList.length - 1)].addEventListener("EnemyDestroyed", FullEnemyDeath_Handler);
ObjectList[(ObjectList.length - 1)].addEventListener("RequestTemp", genEnemyTempGraphic);
ObjectList[(ObjectList.length - 1)].addEventListener("RequestObject", genEnemyObject);
ObjectList[(ObjectList.length - 1)].addEventListener("RequestHit", hitRequest);
GraphicList.push(new (AmmoRefs[_arg1]));
GraphicList[(GraphicList.length - 1)].addEventListener("EnemyIntro", Enemy_Engaged);
ObjectList[(ObjectList.length - 1)].AssociateGraphic(GraphicList[(GraphicList.length - 1)]);
addChild(GraphicList[(GraphicList.length - 1)]);
}
public function ObjectDeath():void{
var _local1:*;
_local1 = 0;
while (_local1 < ObjectList.length) {
if (ObjectList[_local1].getHP() <= 0){
if (ObjectList[_local1].Type == "Particle"){
if (ObjectList[_local1].getParticleType() != 5){
if (ObjectList[_local1].getParticleType() == BeamType){
numHitPart++;
PlayerEnergy = (PlayerEnergy + 35);
addToScore(((ObjectList[_local1].getX() * ObjectList[_local1].getX()) / 5000));
genParticleCollect(_local1);
makeSound(ParticleCollectFX);
} else {
Player.addHit(5);
genParticleBad(_local1);
makeSound(BadParticleCollectFX);
};
} else {
if (GameMode != "Classic"){
if (WeaponType == 0){
Player.addHit(-4);
} else {
if ((((WeaponType == 1)) && ((Ammo[WeaponType] < AmmoMax[WeaponType])))){
Ammo[WeaponType] = (Ammo[WeaponType] + 0.2);
} else {
if ((((WeaponType == 2)) && ((Ammo[WeaponType] < AmmoMax[WeaponType])))){
Ammo[WeaponType] = (Ammo[WeaponType] + 1);
} else {
if ((((WeaponType == 3)) && ((Ammo[WeaponType] < AmmoMax[WeaponType])))){
Ammo[WeaponType] = (Ammo[WeaponType] + 20);
} else {
if ((((WeaponType == 4)) && ((Ammo[WeaponType] < AmmoMax[WeaponType])))){
Ammo[WeaponType] = (Ammo[WeaponType] + 2);
} else {
if ((((WeaponType == 6)) && ((Ammo[WeaponType] < AmmoMax[WeaponType])))){
Ammo[WeaponType] = (Ammo[WeaponType] + 25);
} else {
if ((((WeaponType == 7)) && ((Ammo[WeaponType] < AmmoMax[WeaponType])))){
Ammo[WeaponType] = (Ammo[WeaponType] + 1);
};
};
};
};
};
};
};
} else {
WeaponType = 0;
ClassicWeapon = Math.ceil((Math.random() * 3));
if (ClassicWeapon == 1){
WeaponType = 4;
CWeaponDur = 350;
AmmoMax[0] = 350;
initWeapon(4);
} else {
if (ClassicWeapon == 2){
WeaponType = 1;
CWeaponDur = 25;
AmmoMax[0] = 25;
initWeapon(1);
} else {
if (ClassicWeapon == 3){
WeaponType = 0;
CWeaponDur = 15;
AmmoMax[0] = 15;
initWeapon(0);
};
};
};
};
genPowerUpCollect(_local1);
};
removeObject(_local1);
} else {
if ((((ObjectList[_local1].Type == "Enemy")) && (!(ObjectList[_local1].Destroyed)))){
ObjectList[_local1].Destroyed = true;
removeChild(GraphicList[_local1]);
GraphicList[_local1] = new ObjectList[_local1].DestroyGraphic();
GraphicList[_local1].x = ObjectList[_local1].getX();
GraphicList[_local1].y = ObjectList[_local1].getY();
addChild(GraphicList[_local1]);
ObjectList[_local1].AssociateGraphic(GraphicList[_local1]);
if (!ObjectList[_local1].SelfDestructed){
addToScore(ObjectList[_local1].getScoreValue());
};
ObjectList[_local1].dispatchEvent(new Event("EnemyDeath"));
} else {
if ((((ObjectList[_local1].Type == "Ammo")) && (!(ObjectList[_local1].Destroyed)))){
destroyAmmo(_local1);
};
};
};
};
_local1++;
};
}
public function AssociateMouseGlow(_arg1:MovieClip):void{
MouseGreenGlow = _arg1;
}
public function unlockWeapon(_arg1:int):void{
var _local2:Boolean;
var _local3:*;
_local2 = false;
_local3 = 0;
while (_local3 < WeaponList.length) {
if (WeaponList[_local3] == _arg1){
_local2 = true;
};
_local3++;
};
if (!_local2){
WeaponList.push(_arg1);
};
dispatchEvent(new Event("WeaponUpdate"));
}
public function enemyAttacked(_arg1:Event):void{
var _local2:*;
var _local3:*;
_local2 = Math.floor((Player.getY() / 25));
_local3 = 0;
while (_local3 < _arg1.target.AttackCells.length) {
if (_local2 == _arg1.target.AttackCells[_local3]){
Player.addHit(_arg1.target.AttackDamage);
_arg1.target.dispatchEvent(new Event("PlayerHit"));
dispatchEvent(new Event("PlayerHit"));
ShakeScreen(24, 10, 0);
PlayerGraphic.cacheAsBitmap = true;
break;
};
_local3++;
};
}
public function keyUpHandler(_arg1:int):void{
var _local2:*;
keyIsDown[_arg1] = false;
_local2 = 0;
while (_local2 < ObjectList.length) {
ObjectList[_local2].keyUpHandler(_arg1);
_local2++;
};
}
public function FireClassicWeapon():void{
if (((((MouseIsDown) && (!(Firing)))) && (StartFire))){
WeaponCharge++;
if (WeaponType == 1){
PlayerWeapon.play();
PlayerWeapon.addEventListener("Fired", Fired_Handler);
CWeaponDur--;
Firing = true;
genClassicShot(1, mouseX, mouseY);
} else {
if (WeaponType == 0){
PlayerWeapon.play();
PlayerWeapon.addEventListener("Fired", Fired_Handler);
CWeaponDur--;
Firing = true;
genClassicShot(0, PlayerWeapon.x, PlayerWeapon.y);
};
};
} else {
WeaponCharge = 0;
};
}
public function getEnemiesSeen(_arg1:int):int{
return (EnemiesSeen[_arg1]);
}
public function enemyGen():void{
var _local1:Boolean;
var _local2:int;
var _local3:Boolean;
var _local4:*;
var _local5:*;
var _local6:int;
var _local7:Boolean;
var _local8:*;
_local1 = true;
_local2 = 0;
_local3 = false;
if (EnemyIndex < nextEnemyType.length){
if (nextEnemyDelay[EnemyIndex] >= 0){
DelayCount++;
if (DelayCount >= nextEnemyDelay[EnemyIndex]){
do {
_local3 = false;
_local4 = 0;
while (_local4 < EnemiesSeen.length) {
if (nextEnemyType[EnemyIndex] == EnemiesSeen[_local4]){
_local3 = true;
break;
};
_local4++;
};
if (!_local3){
EnemiesSeen.push(nextEnemyType[EnemyIndex]);
};
genEnemy(nextEnemyType[EnemyIndex], nextEnemyX[EnemyIndex], nextEnemyY[EnemyIndex]);
EnemyIndex++;
} while (nextEnemyDelay[EnemyIndex] == 0);
DelayCount = 0;
};
} else {
if (nextEnemyDelay[EnemyIndex] == -1){
_local5 = 0;
while (_local5 < ObjectList.length) {
if (ObjectList[_local5].Type == "Enemy"){
break;
};
if (_local5 == (ObjectList.length - 1)){
_local1 = false;
};
_local5++;
};
if (ObjectList.length == 0){
_local1 = false;
};
if (!_local1){
do {
_local3 = false;
_local4 = 0;
while (_local4 < EnemiesSeen.length) {
if (nextEnemyType[EnemyIndex] == EnemiesSeen[_local4]){
_local3 = true;
break;
};
_local4++;
};
if (!_local3){
EnemiesSeen.push(nextEnemyType[EnemyIndex]);
};
genEnemy(nextEnemyType[EnemyIndex], nextEnemyX[EnemyIndex], nextEnemyY[EnemyIndex]);
EnemyIndex++;
} while (nextEnemyDelay[EnemyIndex] == 0);
DelayCount = 0;
};
} else {
if (nextEnemyDelay[EnemyIndex] == -2){
if (nextEnemyNumLoop[EnemyIndex] == 0){
do {
_local3 = false;
_local4 = 0;
while (_local4 < EnemiesSeen.length) {
if (nextEnemyType[EnemyIndex] == EnemiesSeen[_local4]){
_local3 = true;
break;
};
_local4++;
};
if (!_local3){
EnemiesSeen.push(nextEnemyType[EnemyIndex]);
};
genEnemy(nextEnemyType[EnemyIndex], nextEnemyX[EnemyIndex], nextEnemyY[EnemyIndex]);
EnemyIndex++;
} while (nextEnemyDelay[EnemyIndex] == 0);
DelayCount = 0;
} else {
numEnemyLoops++;
_local6 = 0;
if (numEnemyLoops < nextEnemyNumLoop[EnemyIndex]){
_local6 = nextEnemyLoop[EnemyIndex];
EnemyIndex = _local6;
do {
_local3 = false;
_local4 = 0;
while (_local4 < EnemiesSeen.length) {
if (nextEnemyType[EnemyIndex] == EnemiesSeen[_local4]){
_local3 = true;
break;
};
_local4++;
};
if (!_local3){
EnemiesSeen.push(nextEnemyType[EnemyIndex]);
};
genEnemy(nextEnemyType[EnemyIndex], nextEnemyX[EnemyIndex], nextEnemyY[EnemyIndex]);
EnemyIndex++;
} while (nextEnemyDelay[EnemyIndex] == 0);
DelayCount = 0;
} else {
do {
_local3 = false;
_local4 = 0;
while (_local4 < EnemiesSeen.length) {
if (nextEnemyType[EnemyIndex] == EnemiesSeen[_local4]){
_local3 = true;
break;
};
_local4++;
};
if (!_local3){
EnemiesSeen.push(nextEnemyType[EnemyIndex]);
};
genEnemy(nextEnemyType[EnemyIndex], nextEnemyX[EnemyIndex], nextEnemyY[EnemyIndex]);
EnemyIndex++;
} while (nextEnemyDelay[EnemyIndex] == 0);
numEnemyLoops = 0;
DelayCount = 0;
};
};
} else {
if (nextEnemyDelay[EnemyIndex] == -3){
_local5 = 0;
while (_local5 < ObjectList.length) {
if (ObjectList[_local5].Type == "Enemy"){
_local2++;
};
_local5++;
};
if (_local2 <= maxEnemyPresent[EnemyIndex]){
do {
_local3 = false;
_local4 = 0;
while (_local4 < EnemiesSeen.length) {
if (nextEnemyType[EnemyIndex] == EnemiesSeen[_local4]){
_local3 = true;
break;
};
_local4++;
};
if (!_local3){
EnemiesSeen.push(nextEnemyType[EnemyIndex]);
};
genEnemy(nextEnemyType[EnemyIndex], nextEnemyX[EnemyIndex], nextEnemyY[EnemyIndex]);
EnemyIndex++;
} while (nextEnemyDelay[EnemyIndex] == 0);
DelayCount = 0;
};
};
};
};
};
} else {
_local7 = false;
_local8 = 0;
while (_local8 < ObjectList.length) {
if (ObjectList[_local8].Type == "Enemy"){
_local7 = true;
};
_local8++;
};
if (!_local7){
dispatchEvent(new Event("PhaseDone"));
};
};
}
private function genParticleCollect(_arg1:int):void{
tempGraphicList.push(new ParticleCollectID());
tempGraphicList[(tempGraphicList.length - 1)].x = ObjectList[_arg1].getX();
tempGraphicList[(tempGraphicList.length - 1)].y = ObjectList[_arg1].getY();
addChild(tempGraphicList[(tempGraphicList.length - 1)]);
}
public function Fired_Handler(_arg1:Event):void{
PlayerWeapon.removeEventListener("Fired", Fired_Handler);
Firing = false;
if ((((WeaponType == 1)) && (!((GameMode == "Classic"))))){
Ammo[WeaponType] = (Ammo[WeaponType] - 1);
genShot(1, (mouseX + 100), mouseY, 0);
ShakeScreen(105, 2, 2);
} else {
PlayerWeapon.gotoAndStop(1);
};
}
public function finishedEffect(_arg1:Event):void{
var _local2:*;
_local2 = 0;
while (_local2 < EffectChannel.length) {
if (EffectChannel[_local2] == _arg1.target){
EffectChannel.splice(_local2, 1);
};
_local2++;
};
}
public function cleanUp():void{
var _local1:*;
_local1 = 0;
while (_local1 < GraphicList.length) {
if (GraphicList[_local1].currentLabel == "Done"){
ObjectList[_local1].removeEventListener("EnemyDestroyed", FullEnemyDeath_Handler);
removeObject(_local1);
};
_local1++;
};
}
public function hitTest(_arg1:NTechObject, _arg2:NTechObject):Boolean{
var _local3:Boolean;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
_local3 = false;
if ((((_arg1.hitType == "Circle")) && ((_arg2.hitType == "Circle")))){
_local17 = Math.abs((((_arg1.getX() + _arg1.getHitCenterX()) - _arg2.getX()) + _arg2.getHitCenterX()));
_local18 = Math.abs((((_arg1.getY() + _arg1.getHitCenterY()) - _arg2.getY()) + _arg2.getHitCenterY()));
_local19 = Math.sqrt(((_local17 * _local17) + (_local18 * _local18)));
if (_local19 < (_arg1.getHitRadius() + _arg2.getHitRadius())){
_local3 = true;
} else {
_local3 = false;
};
} else {
if ((((_arg1.hitType == "Rectangle")) || ((_arg2.hitType == "Rectangle")))){
if (_arg1.hitType == "Circle"){
_local4 = (_arg1.getHitCenterX() + _arg1.getX());
_local5 = (_arg1.getHitCenterY() + _arg1.getY());
_local6 = (_arg2.getHitCenterX() + _arg2.getX());
_local7 = (_arg2.getHitCenterY() + _arg2.getY());
_local8 = _arg2.getHitWidth();
_local9 = _arg2.getHitHeight();
_local10 = _arg1.getHitRadius();
_local11 = _local4;
_local12 = _local5;
if (_local11 < _local6){
_local11 = _local6;
};
if (_local11 > (_local6 + _local8)){
_local11 = (_local6 + _local8);
};
if (_local12 < _local7){
_local12 = _local7;
};
if (_local12 > (_local7 + _local9)){
_local12 = (_local7 + _local9);
};
if ((((_local4 - _local11) * (_local4 - _local11)) + ((_local5 - _local12) * (_local5 - _local12))) < (_local10 * _local10)){
_local3 = true;
};
} else {
if (_arg2.hitType == "Circle"){
_local4 = (_arg2.getHitCenterX() + _arg2.getX());
_local5 = (_arg2.getHitCenterY() + _arg2.getY());
_local6 = (_arg1.getHitCenterX() + _arg1.getX());
_local7 = (_arg1.getHitCenterY() + _arg1.getY());
_local8 = _arg1.getHitWidth();
_local9 = _arg1.getHitHeight();
_local10 = _arg2.getHitRadius();
_local11 = _local4;
_local12 = _local5;
if (_local11 < _local6){
_local11 = _local6;
};
if (_local11 > (_local6 + _local8)){
_local11 = (_local6 + _local8);
};
if (_local12 < _local7){
_local12 = _local7;
};
if (_local12 > (_local7 + _local9)){
_local12 = (_local7 + _local9);
};
if ((((_local4 - _local11) * (_local4 - _local11)) + ((_local5 - _local12) * (_local5 - _local12))) < (_local10 * _local10)){
_local3 = true;
};
};
};
};
};
if ((((_arg1.hitType == "Rectangle")) && ((_arg2.hitType == "Rectangle")))){
_local6 = (_arg1.getHitCenterX() + _arg1.getX());
_local7 = (_arg1.getHitCenterY() + _arg1.getY());
_local8 = _arg1.getHitWidth();
_local9 = _arg1.getHitHeight();
_local13 = (_arg2.getHitCenterX() + _arg2.getX());
_local14 = (_arg2.getHitCenterY() + _arg2.getY());
_local15 = _arg2.getHitWidth();
_local16 = _arg2.getHitHeight();
if ((((((_local6 > (_local13 + _local15))) || (((_local6 + _local8) < _local13)))) || ((((_local7 > (_local14 + _local16))) || (((_local7 + _local9) < _local14)))))){
_local3 = false;
} else {
_local3 = true;
};
};
return (_local3);
}
public function FullEnemyDeath_Handler(_arg1:Event):void{
var _local2:*;
_local2 = 0;
while (_local2 < ObjectList.length) {
if (ObjectList[_local2] == _arg1.target){
ObjectList[_local2].removeEventListener("EnemyDestroyed", FullEnemyDeath_Handler);
removeObject(_local2);
};
_local2++;
};
}
public function ObjectHitShot():void{
var _local1:Boolean;
var _local2:int;
var _local3:*;
var _local4:*;
_local1 = false;
_local2 = 0;
_local3 = 0;
while (_local3 < ObjectList.length) {
if (ObjectList[_local3].Type == "Ammo"){
_local4 = 0;
while (_local4 < ObjectList.length) {
if (ObjectList[_local4].Type != "Particle"){
if (_local3 != _local4){
_local1 = hitTest(ObjectList[_local3], ObjectList[_local4]);
if (_local1){
if (ObjectList[_local3].Name == "Beam"){
ObjectList[_local3].AssociateTarget(ObjectList[_local4]);
ObjectList[_local3].dispatchEvent(new Event("ObjectHit"));
ObjectList[_local4].dispatchEvent(new Event("BeamHit"));
} else {
if ((((ObjectList[_local3].Name == "Mirror")) && ((ObjectList[_local4].Name == "Beam")))){
} else {
ObjectList[_local4].dispatchEvent(new Event("ObjectHit"));
ObjectList[_local3].dispatchEvent(new Event("ObjectHit"));
};
};
if (ObjectList[_local4].Type == "Enemy"){
curHitObject = _local4;
dispatchEvent(new Event("EnemyUpdate"));
};
};
};
} else {
if (_local3 != _local4){
_local1 = hitTest(ObjectList[_local3], ObjectList[_local4]);
if (_local1){
if (ObjectList[_local3].Name == "Beam"){
ObjectList[_local3].AssociateTarget(ObjectList[_local4]);
ObjectList[_local3].dispatchEvent(new Event("ObjectHit"));
ObjectList[_local4].addHit(1);
};
};
};
};
_local4++;
};
};
_local3++;
};
_local3 = 0;
while (_local3 < ObjectList.length) {
if (ObjectList[_local3].Type == "Ammo"){
if ((((((ObjectList[_local3].getX() > 700)) || ((ObjectList[_local3].getY() < 0)))) || ((ObjectList[_local3].getY() > 460)))){
removeObject(_local3);
};
};
_local3++;
};
}
public function initBeam():void{
StartBeam = false;
if (PlayerGraphic != null){
removeChild(PlayerGraphic);
};
PlayerGraphic = new PlayerIntro1ID();
addChild(PlayerGraphic);
PlayerGraphic.addEventListener("PlayerIntro", beginBeam);
}
public function removeObject(_arg1:int):void{
if (ObjectList[_arg1].Music != null){
ObjectList[_arg1].MusicChannel.stop();
};
if (contains(GraphicList[_arg1])){
removeChild(GraphicList[_arg1]);
};
ObjectList.splice(_arg1, 1);
GraphicList.splice(_arg1, 1);
}
public function addToScore(_arg1:int):void{
Score = (Score + _arg1);
}
public function ShakeScreen(_arg1:int, _arg2:int, _arg3:int):void{
ShakeDur = _arg1;
ShakeX = _arg2;
ShakeY = _arg3;
dispatchEvent(new Event("RequestShake"));
}
private function particleGen():void{
var _local1:*;
nextShot++;
if (nextShot == nextParticle){
if (StartParticles){
nextShot = 0;
nextParticle = Math.ceil((Math.random() * 30));
if (BeamLevel <= 2){
genParticle(Math.floor((Math.random() * 3)), ((Math.random() * 550) + 150), (Math.random() * 400));
} else {
genParticle(Math.floor((Math.random() * 4)), ((Math.random() * 550) + 150), (Math.random() * 400));
};
};
if (GameMode == "Arcade"){
if ((Math.random() * 500) > 450){
genPowerUp(((Math.random() * 550) + 150), (Math.random() * 400));
};
} else {
if ((Math.random() * 500) > 450){
genPowerUp(((Math.random() * 550) + 150), (Math.random() * 400));
};
};
};
_local1 = 0;
while (_local1 < ObjectList.length) {
if (ObjectList[_local1].Type == "Particle"){
if ((((ObjectList[_local1].getY() < 0)) || ((ObjectList[_local1].getY() > 460)))){
removeObject(_local1);
};
};
_local1++;
};
}
public function setSFXVol(_arg1:Number):void{
SFXVol = _arg1;
Player.SFXVol = SFXVol;
}
public function getScore():int{
return (Score);
}
public function genPowerUp(_arg1:Number, _arg2:Number):void{
ObjectList.push(new Particle(_arg1, _arg2, 5));
GraphicList.push(new (ParticleRefs[4]));
addChild(GraphicList[(GraphicList.length - 1)]);
}
public function setWeapon():void{
if (((keyIsDown[69]) && (!(keyWasPressed[69])))){
ChangeWeapon(true);
} else {
if (((keyIsDown[81]) && (!(keyWasPressed[81])))){
ChangeWeapon(false);
};
};
}
public function getPlayerHP():int{
return (Player.getHP());
}
public function genEnemyTempGraphic(_arg1:Event):void{
tempGraphicList.push(new _arg1.target.TempGraphic());
tempGraphicList[(tempGraphicList.length - 1)].x = _arg1.target.TempGraphicX;
tempGraphicList[(tempGraphicList.length - 1)].y = _arg1.target.TempGraphicY;
addChild(tempGraphicList[(tempGraphicList.length - 1)]);
}
public function getCurrentWeapon():int{
return (WeaponType);
}
public function genClassicShot(_arg1:int, _arg2:Number, _arg3:Number):void{
if (_arg1 == 0){
ObjectList.push(new ClassicShot1(_arg2, _arg3, ObjectList, 0));
} else {
ObjectList.push(new ClassicShot2(_arg2, _arg3, ObjectList, 0));
};
ObjectList[(ObjectList.length - 1)].addEventListener("EnemyAttack", enemyAttacked);
ObjectList[(ObjectList.length - 1)].addEventListener("EnemyDestroyed", FullEnemyDeath_Handler);
ObjectList[(ObjectList.length - 1)].addEventListener("RequestTemp", genEnemyTempGraphic);
ObjectList[(ObjectList.length - 1)].addEventListener("RequestObject", genEnemyObject);
ObjectList[(ObjectList.length - 1)].addEventListener("RequestHit", hitRequest);
if (_arg1 == 0){
GraphicList.push(new AmmoType1ID());
} else {
GraphicList.push(new AmmoType1ID());
};
GraphicList[(GraphicList.length - 1)].addEventListener("EnemyIntro", Enemy_Engaged);
ObjectList[(ObjectList.length - 1)].AssociateGraphic(GraphicList[(GraphicList.length - 1)]);
addChild(GraphicList[(GraphicList.length - 1)]);
}
public function getAmmo(_arg1:int){
return (Ammo[_arg1]);
}
public function initWeapon(_arg1:int):void{
if (_arg1 != 999){
StartFire = false;
Firing = false;
MouseIsDown = false;
PlayerWeapon.removeEventListener("Fired", Fired_Handler);
if (PlayerWeapon != null){
removeChild(PlayerWeapon);
};
if (_arg1 == 0){
makeSound(gun1FX);
PlayerWeapon = new Weapon1IntroID();
Player.setWeaponDamage(AmmoDamage[_arg1]);
WeaponType = 0;
} else {
if (_arg1 == 1){
makeSound(gun1FX);
PlayerWeapon = new Weapon2IntroID();
Player.setWeaponDamage(AmmoDamage[_arg1]);
WeaponType = 1;
} else {
if (_arg1 == 2){
makeSound(gun3FX);
PlayerWeapon = new Weapon6IntroID();
Player.setWeaponDamage(AmmoDamage[_arg1]);
WeaponType = 2;
} else {
if (_arg1 == 3){
makeSound(gun5FX);
PlayerWeapon = new Weapon4IntroID();
Player.setWeaponDamage(AmmoDamage[_arg1]);
WeaponType = 3;
} else {
if (_arg1 == 4){
makeSound(gun5FX);
PlayerWeapon = new Weapon5IntroID();
Player.setWeaponDamage(AmmoDamage[_arg1]);
WeaponType = 4;
} else {
if (_arg1 == 5){
makeSound(gun5FX);
PlayerWeapon = new Weapon7IntroID();
Player.setWeaponDamage(AmmoDamage[_arg1]);
WeaponType = 5;
} else {
if (_arg1 == 6){
makeSound(gun5FX);
PlayerWeapon = new Weapon8IntroID();
Player.setWeaponDamage(AmmoDamage[_arg1]);
WeaponType = 6;
} else {
if (_arg1 == 7){
makeSound(gun5FX);
PlayerWeapon = new Weapon3IntroID();
Player.setWeaponDamage(AmmoDamage[_arg1]);
WeaponType = 7;
};
};
};
};
};
};
};
};
addChild(PlayerWeapon);
PlayerWeapon.addEventListener("WeaponIntro", beginWeapon, false, 0, true);
} else {
if (PlayerWeapon != null){
if (contains(PlayerWeapon)){
removeChild(PlayerWeapon);
};
};
PlayerWeapon = new NullWeaponID();
addChild(PlayerWeapon);
StartFire = false;
};
}
public function getPlayerEnergy():int{
return (PlayerEnergy);
}
public function getNumEnemiesSeen():int{
return (EnemiesSeen.length);
}
public function Enemy_Engaged(_arg1:Event):void{
var _local2:*;
_local2 = 0;
while (_local2 < GraphicList.length) {
if (_arg1.target == GraphicList[_local2]){
GraphicList[_local2].removeEventListener("EnemyIntro", Enemy_Engaged);
if (contains(GraphicList[_local2])){
removeChild(GraphicList[_local2]);
};
GraphicList[_local2] = new ObjectList[_local2].GameGraphic();
GraphicList[_local2].x = ObjectList[_local2].getX();
GraphicList[_local2].y = ObjectList[_local2].getY();
addChild(GraphicList[_local2]);
ObjectList[_local2].AssociateGraphic(GraphicList[_local2]);
ObjectList[_local2].dispatchEvent(new Event("Engaged"));
};
_local2++;
};
}
public function genBeam(_arg1:int):void{
PlayerGraphic.graphics.clear();
MouseGreenGlow.x = parent.mouseX;
MouseGreenGlow.y = (parent.mouseY + 15);
if (StartBeam){
if ((((((parent.mouseY < 450)) && ((parent.mouseY > 15)))) && ((parent.mouseX > 150)))){
if (!contains(BeamEnd)){
addChild(BeamEnd);
};
BeamEnd.y = parent.mouseY;
BeamEnd.x = (parent.mouseX - BeamBlock);
switch (_arg1){
case 0:
PlayerGraphic.graphics.lineStyle(5, 0xFF0000, 1);
PlayerGraphic.graphics.lineTo((PlayerGraphic.mouseX - BeamBlock), 0);
PlayerGraphic.graphics.lineStyle(2, 0xFFFFFF, 1);
PlayerGraphic.graphics.lineTo(0, 0);
BeamEnd.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0, 0);
MouseGreenGlow.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0, 0);
break;
case 1:
PlayerGraphic.graphics.lineStyle(5, 0xFF00, 1);
PlayerGraphic.graphics.lineTo((PlayerGraphic.mouseX - BeamBlock), 0);
PlayerGraphic.graphics.lineStyle(2, 0xFFFFFF, 1);
PlayerGraphic.graphics.lineTo(0, 0);
BeamEnd.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
MouseGreenGlow.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0);
break;
case 2:
PlayerGraphic.graphics.lineStyle(5, 0xFF, 1);
PlayerGraphic.graphics.lineTo((PlayerGraphic.mouseX - BeamBlock), 0);
PlayerGraphic.graphics.lineStyle(2, 0xFFFFFF, 1);
PlayerGraphic.graphics.lineTo(0, 0);
BeamEnd.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0xFF);
MouseGreenGlow.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0xFF);
break;
case 3:
PlayerGraphic.graphics.lineStyle(5, 0xCCCCCC, 1);
PlayerGraphic.graphics.lineTo((PlayerGraphic.mouseX - BeamBlock), 0);
PlayerGraphic.graphics.lineStyle(2, 0xFFFFFF, 1);
PlayerGraphic.graphics.lineTo(0, 0);
BeamEnd.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0xFF);
MouseGreenGlow.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0xFF);
break;
default:
PlayerGraphic.graphics.lineStyle(5, 0xFF00, 1);
PlayerGraphic.graphics.lineTo((PlayerGraphic.mouseX - BeamBlock), 0);
PlayerGraphic.graphics.lineStyle(2, 0xFFFFFF, 1);
PlayerGraphic.graphics.lineTo(0, 0);
break;
};
} else {
if (contains(BeamEnd)){
removeChild(BeamEnd);
};
};
};
}
public function trackTempGraphics():void{
var _local1:*;
_local1 = 0;
while (_local1 < tempGraphicList.length) {
if (tempGraphicList[_local1].currentLabel == "Done"){
removeChild(tempGraphicList[_local1]);
tempGraphicList.splice(_local1, 1);
_local1--;
};
_local1++;
};
}
public function EnergyGone():void{
if (PlayerEnergy <= 0){
Player.addHit(Player.getHP());
};
}
public function getEnemyTotHP():int{
return (ObjectList[curHitObject].getTotHP());
}
public function getNumWeapons():int{
return (WeaponList.length);
}
public function genEnemyObject(_arg1:Event):void{
if (_arg1.target.BulletParam != 90210){
ObjectList.push(new _arg1.target.BulletType(_arg1.target.TempGraphicX, _arg1.target.TempGraphicY, Player, _arg1.target.BulletParam));
} else {
ObjectList.push(new _arg1.target.BulletType(_arg1.target.TempGraphicX, _arg1.target.TempGraphicY, ObjectList));
};
ObjectList[(ObjectList.length - 1)].addEventListener("EnemyAttack", enemyAttacked);
ObjectList[(ObjectList.length - 1)].addEventListener("EnemyDestroyed", FullEnemyDeath_Handler);
ObjectList[(ObjectList.length - 1)].addEventListener("RequestTemp", genEnemyTempGraphic);
ObjectList[(ObjectList.length - 1)].addEventListener("RequestObject", genEnemyObject);
GraphicList.push(new _arg1.target.BulletGraphic());
GraphicList[(GraphicList.length - 1)].addEventListener("EnemyIntro", Enemy_Engaged);
ObjectList[(ObjectList.length - 1)].AssociateGraphic(GraphicList[(GraphicList.length - 1)]);
ObjectList[(ObjectList.length - 1)].Engage_Handler(new Event("WHOA"));
addChild(GraphicList[(GraphicList.length - 1)]);
}
public function hitRequest(_arg1:Event):void{
ObjectHitShot();
}
public function getEnemyName():String{
return (ObjectList[curHitObject].getName());
}
public function changeBeam():void{
if (((keyIsDown[87]) && ((BeamLevel >= 4)))){
BeamType = 3;
BeamBendDir = 3;
} else {
if (((keyIsDown[65]) && ((BeamLevel >= 3)))){
BeamType = 2;
BeamBendDir = 2;
} else {
if (keyIsDown[83]){
BeamType = 1;
BeamBendDir = 1;
} else {
if (((keyIsDown[68]) && ((BeamLevel >= 2)))){
BeamType = 0;
BeamBendDir = 0;
};
};
};
};
}
public function getAmmoMax(_arg1:int){
return (AmmoMax[_arg1]);
}
public function getCurrentBeam():int{
return (BeamType);
}
public function loadData(_arg1:int):void{
EnemyIndex = 0;
DelayCount = 0;
nextEnemyType = [];
nextEnemyDelay = [];
nextEnemyX = [];
nextEnemyY = [];
nextEnemyLoop = [];
nextEnemyNumLoop = [];
maxEnemyPresent = [];
if (_arg1 == 1){
nextShot = 0;
StartParticles = true;
nextEnemyType[0] = 0;
nextEnemyDelay[0] = 10;
nextEnemyX[0] = 337.5;
nextEnemyY[0] = 12.5;
nextEnemyLoop[0] = 0;
nextEnemyNumLoop[0] = 0;
maxEnemyPresent[0] = 0;
nextEnemyType[1] = 0;
nextEnemyDelay[1] = 15;
nextEnemyX[1] = 512.5;
nextEnemyY[1] = 437.5;
nextEnemyLoop[1] = 0;
nextEnemyNumLoop[1] = 0;
maxEnemyPresent[1] = 0;
nextEnemyType[2] = 0;
nextEnemyDelay[2] = 15;
nextEnemyX[2] = 587.5;
nextEnemyY[2] = 12.5;
nextEnemyLoop[2] = 0;
nextEnemyNumLoop[2] = 0;
maxEnemyPresent[2] = 0;
nextEnemyType[3] = 0;
nextEnemyDelay[3] = 20;
nextEnemyX[3] = 437.5;
nextEnemyY[3] = 12.5;
nextEnemyLoop[3] = 0;
nextEnemyNumLoop[3] = 0;
maxEnemyPresent[3] = 0;
nextEnemyType[4] = 0;
nextEnemyDelay[4] = 15;
nextEnemyX[4] = 262.5;
nextEnemyY[4] = 437.5;
nextEnemyLoop[4] = 0;
nextEnemyNumLoop[4] = 0;
maxEnemyPresent[4] = 0;
nextEnemyType[5] = 0;
nextEnemyDelay[5] = 15;
nextEnemyX[5] = 362.5;
nextEnemyY[5] = 437.5;
nextEnemyLoop[5] = 0;
nextEnemyNumLoop[5] = 0;
maxEnemyPresent[5] = 0;
nextEnemyType[6] = 0;
nextEnemyDelay[6] = 20;
nextEnemyX[6] = 687.5;
nextEnemyY[6] = 62.5;
nextEnemyLoop[6] = 0;
nextEnemyNumLoop[6] = 0;
maxEnemyPresent[6] = 0;
nextEnemyType[7] = 0;
nextEnemyDelay[7] = 20;
nextEnemyX[7] = 687.5;
nextEnemyY[7] = 212.5;
nextEnemyLoop[7] = 0;
nextEnemyNumLoop[7] = 0;
maxEnemyPresent[7] = 0;
nextEnemyType[8] = 0;
nextEnemyDelay[8] = 15;
nextEnemyX[8] = 687.5;
nextEnemyY[8] = 362.5;
nextEnemyLoop[8] = 0;
nextEnemyNumLoop[8] = 0;
maxEnemyPresent[8] = 0;
nextEnemyType[9] = 0;
nextEnemyDelay[9] = 15;
nextEnemyX[9] = 687.5;
nextEnemyY[9] = 87.5;
nextEnemyLoop[9] = 0;
nextEnemyNumLoop[9] = 0;
maxEnemyPresent[9] = 0;
nextEnemyType[10] = 0;
nextEnemyDelay[10] = 10;
nextEnemyX[10] = 287.5;
nextEnemyY[10] = 12.5;
nextEnemyLoop[10] = 0;
nextEnemyNumLoop[10] = 0;
maxEnemyPresent[10] = 0;
nextEnemyType[11] = 0;
nextEnemyDelay[11] = -2;
nextEnemyX[11] = 487.5;
nextEnemyY[11] = 12.5;
nextEnemyLoop[11] = 0;
nextEnemyNumLoop[11] = 4;
maxEnemyPresent[11] = 0;
nextEnemyType[12] = 0;
nextEnemyDelay[12] = 10;
nextEnemyX[12] = 487.5;
nextEnemyY[12] = 12.5;
nextEnemyLoop[12] = 0;
nextEnemyNumLoop[12] = 0;
maxEnemyPresent[12] = 0;
nextEnemyType[13] = 0;
nextEnemyDelay[13] = 20;
nextEnemyX[13] = 487.5;
nextEnemyY[13] = 12.5;
nextEnemyLoop[13] = 0;
nextEnemyNumLoop[13] = 0;
maxEnemyPresent[13] = 0;
nextEnemyType[14] = 0;
nextEnemyDelay[14] = 70;
nextEnemyX[14] = 487.5;
nextEnemyY[14] = 437.5;
nextEnemyLoop[14] = 0;
nextEnemyNumLoop[14] = 0;
maxEnemyPresent[14] = 0;
nextEnemyType[15] = 0;
nextEnemyDelay[15] = 10;
nextEnemyX[15] = 487.5;
nextEnemyY[15] = 437.5;
nextEnemyLoop[15] = 0;
nextEnemyNumLoop[15] = 0;
maxEnemyPresent[15] = 0;
nextEnemyType[16] = 0;
nextEnemyDelay[16] = 20;
nextEnemyX[16] = 487.5;
nextEnemyY[16] = 437.5;
nextEnemyLoop[16] = 0;
nextEnemyNumLoop[16] = 0;
maxEnemyPresent[16] = 0;
nextEnemyType[17] = 3;
nextEnemyDelay[17] = -2;
nextEnemyX[17] = 612.5;
nextEnemyY[17] = 62.5;
nextEnemyLoop[17] = 12;
nextEnemyNumLoop[17] = 3;
maxEnemyPresent[17] = 0;
nextEnemyType[18] = 1;
nextEnemyDelay[18] = 70;
nextEnemyX[18] = 687.5;
nextEnemyY[18] = 287.5;
nextEnemyLoop[18] = 0;
nextEnemyNumLoop[18] = 0;
maxEnemyPresent[18] = 0;
nextEnemyType[19] = 1;
nextEnemyDelay[19] = 10;
nextEnemyX[19] = 687.5;
nextEnemyY[19] = 287.5;
nextEnemyLoop[19] = 0;
nextEnemyNumLoop[19] = 0;
maxEnemyPresent[19] = 0;
nextEnemyType[20] = 1;
nextEnemyDelay[20] = 10;
nextEnemyX[20] = 687.5;
nextEnemyY[20] = 287.5;
nextEnemyLoop[20] = 0;
nextEnemyNumLoop[20] = 0;
maxEnemyPresent[20] = 0;
nextEnemyType[21] = 1;
nextEnemyDelay[21] = 70;
nextEnemyX[21] = 687.5;
nextEnemyY[21] = 137.5;
nextEnemyLoop[21] = 0;
nextEnemyNumLoop[21] = 0;
maxEnemyPresent[21] = 0;
nextEnemyType[22] = 1;
nextEnemyDelay[22] = 10;
nextEnemyX[22] = 687.5;
nextEnemyY[22] = 137.5;
nextEnemyLoop[22] = 0;
nextEnemyNumLoop[22] = 0;
maxEnemyPresent[22] = 0;
nextEnemyType[23] = 1;
nextEnemyDelay[23] = 10;
nextEnemyX[23] = 687.5;
nextEnemyY[23] = 137.5;
nextEnemyLoop[23] = 0;
nextEnemyNumLoop[23] = 0;
maxEnemyPresent[23] = 0;
nextEnemyType[24] = 4;
nextEnemyDelay[24] = -1;
nextEnemyX[24] = 437.5;
nextEnemyY[24] = 212.5;
nextEnemyLoop[24] = 0;
nextEnemyNumLoop[24] = 0;
maxEnemyPresent[24] = 0;
nextEnemyType[25] = 2;
nextEnemyDelay[25] = 30;
nextEnemyX[25] = 562.5;
nextEnemyY[25] = 437.5;
nextEnemyLoop[25] = 0;
nextEnemyNumLoop[25] = 0;
maxEnemyPresent[25] = 0;
nextEnemyType[26] = 2;
nextEnemyDelay[26] = 30;
nextEnemyX[26] = 437.5;
nextEnemyY[26] = 12.5;
nextEnemyLoop[26] = 0;
nextEnemyNumLoop[26] = 0;
maxEnemyPresent[26] = 0;
nextEnemyType[27] = 2;
nextEnemyDelay[27] = 30;
nextEnemyX[27] = 387.5;
nextEnemyY[27] = 437.5;
nextEnemyLoop[27] = 0;
nextEnemyNumLoop[27] = 0;
maxEnemyPresent[27] = 0;
nextEnemyType[28] = 2;
nextEnemyDelay[28] = 30;
nextEnemyX[28] = 312.5;
nextEnemyY[28] = 12.5;
nextEnemyLoop[28] = 0;
nextEnemyNumLoop[28] = 0;
maxEnemyPresent[28] = 0;
nextEnemyType[29] = 3;
nextEnemyDelay[29] = -1;
nextEnemyX[29] = 612.5;
nextEnemyY[29] = 62.5;
nextEnemyLoop[29] = 0;
nextEnemyNumLoop[29] = 0;
maxEnemyPresent[29] = 0;
nextEnemyType[30] = 3;
nextEnemyDelay[30] = 0;
nextEnemyX[30] = 612.5;
nextEnemyY[30] = 387.5;
nextEnemyLoop[30] = 0;
nextEnemyNumLoop[30] = 0;
maxEnemyPresent[30] = 0;
nextEnemyType[31] = 4;
nextEnemyDelay[31] = -1;
nextEnemyX[31] = 612.5;
nextEnemyY[31] = 62.5;
nextEnemyLoop[31] = 0;
nextEnemyNumLoop[31] = 0;
maxEnemyPresent[31] = 0;
nextEnemyType[32] = 4;
nextEnemyDelay[32] = 0;
nextEnemyX[32] = 612.5;
nextEnemyY[32] = 387.5;
nextEnemyLoop[32] = 0;
nextEnemyNumLoop[32] = 0;
maxEnemyPresent[32] = 0;
nextEnemyType[33] = 2;
nextEnemyDelay[33] = -1;
nextEnemyX[33] = 562.5;
nextEnemyY[33] = 12.5;
nextEnemyLoop[33] = 0;
nextEnemyNumLoop[33] = 0;
maxEnemyPresent[33] = 0;
nextEnemyType[34] = 2;
nextEnemyDelay[34] = 20;
nextEnemyX[34] = 587.5;
nextEnemyY[34] = 437.5;
nextEnemyLoop[34] = 0;
nextEnemyNumLoop[34] = 0;
maxEnemyPresent[34] = 0;
nextEnemyType[35] = 2;
nextEnemyDelay[35] = 30;
nextEnemyX[35] = 562.5;
nextEnemyY[35] = 12.5;
nextEnemyLoop[35] = 0;
nextEnemyNumLoop[35] = 0;
maxEnemyPresent[35] = 0;
nextEnemyType[36] = 2;
nextEnemyDelay[36] = 20;
nextEnemyX[36] = 587.5;
nextEnemyY[36] = 437.5;
nextEnemyLoop[36] = 0;
nextEnemyNumLoop[36] = 0;
maxEnemyPresent[36] = 0;
nextEnemyType[37] = 3;
nextEnemyDelay[37] = -2;
nextEnemyX[37] = 587.5;
nextEnemyY[37] = 212.5;
nextEnemyLoop[37] = 34;
nextEnemyNumLoop[37] = 5;
maxEnemyPresent[37] = 0;
nextEnemyType[38] = 3;
nextEnemyDelay[38] = 350;
nextEnemyX[38] = 587.5;
nextEnemyY[38] = 412.5;
nextEnemyLoop[38] = 0;
nextEnemyNumLoop[38] = 0;
maxEnemyPresent[38] = 0;
nextEnemyType[39] = 3;
nextEnemyDelay[39] = 350;
nextEnemyX[39] = 587.5;
nextEnemyY[39] = 37.5;
nextEnemyLoop[39] = 0;
nextEnemyNumLoop[39] = 0;
maxEnemyPresent[39] = 0;
nextEnemyType[40] = 0;
nextEnemyDelay[40] = -1;
nextEnemyX[40] = 512.5;
nextEnemyY[40] = 112.5;
nextEnemyLoop[40] = 0;
nextEnemyNumLoop[40] = 0;
maxEnemyPresent[40] = 0;
nextEnemyType[41] = 0;
nextEnemyDelay[41] = 0;
nextEnemyX[41] = 562.5;
nextEnemyY[41] = 62.5;
nextEnemyLoop[41] = 0;
nextEnemyNumLoop[41] = 0;
maxEnemyPresent[41] = 0;
nextEnemyType[42] = 0;
nextEnemyDelay[42] = 0;
nextEnemyX[42] = 562.5;
nextEnemyY[42] = 162.5;
nextEnemyLoop[42] = 0;
nextEnemyNumLoop[42] = 0;
maxEnemyPresent[42] = 0;
nextEnemyType[43] = 0;
nextEnemyDelay[43] = 0;
nextEnemyX[43] = 612.5;
nextEnemyY[43] = 112.5;
nextEnemyLoop[43] = 0;
nextEnemyNumLoop[43] = 0;
maxEnemyPresent[43] = 0;
nextEnemyType[44] = 0;
nextEnemyDelay[44] = 50;
nextEnemyX[44] = 512.5;
nextEnemyY[44] = 337.5;
nextEnemyLoop[44] = 0;
nextEnemyNumLoop[44] = 0;
maxEnemyPresent[44] = 0;
nextEnemyType[45] = 0;
nextEnemyDelay[45] = 0;
nextEnemyX[45] = 562.5;
nextEnemyY[45] = 287.5;
nextEnemyLoop[45] = 0;
nextEnemyNumLoop[45] = 0;
maxEnemyPresent[45] = 0;
nextEnemyType[46] = 0;
nextEnemyDelay[46] = 0;
nextEnemyX[46] = 562.5;
nextEnemyY[46] = 387.5;
nextEnemyLoop[46] = 0;
nextEnemyNumLoop[46] = 0;
maxEnemyPresent[46] = 0;
nextEnemyType[47] = 0;
nextEnemyDelay[47] = 0;
nextEnemyX[47] = 612.5;
nextEnemyY[47] = 337.5;
nextEnemyLoop[47] = 0;
nextEnemyNumLoop[47] = 0;
maxEnemyPresent[47] = 0;
nextEnemyType[48] = 0;
nextEnemyDelay[48] = 50;
nextEnemyX[48] = 262.5;
nextEnemyY[48] = 337.5;
nextEnemyLoop[48] = 0;
nextEnemyNumLoop[48] = 0;
maxEnemyPresent[48] = 0;
nextEnemyType[49] = 0;
nextEnemyDelay[49] = 0;
nextEnemyX[49] = 312.5;
nextEnemyY[49] = 287.5;
nextEnemyLoop[49] = 0;
nextEnemyNumLoop[49] = 0;
maxEnemyPresent[49] = 0;
nextEnemyType[50] = 0;
nextEnemyDelay[50] = 0;
nextEnemyX[50] = 312.5;
nextEnemyY[50] = 387.5;
nextEnemyLoop[50] = 0;
nextEnemyNumLoop[50] = 0;
maxEnemyPresent[50] = 0;
nextEnemyType[51] = 0;
nextEnemyDelay[51] = 0;
nextEnemyX[51] = 362.5;
nextEnemyY[51] = 337.5;
nextEnemyLoop[51] = 0;
nextEnemyNumLoop[51] = 0;
maxEnemyPresent[51] = 0;
nextEnemyType[52] = 0;
nextEnemyDelay[52] = 50;
nextEnemyX[52] = 262.5;
nextEnemyY[52] = 112.5;
nextEnemyLoop[52] = 0;
nextEnemyNumLoop[52] = 0;
maxEnemyPresent[52] = 0;
nextEnemyType[53] = 0;
nextEnemyDelay[53] = 0;
nextEnemyX[53] = 312.5;
nextEnemyY[53] = 62.5;
nextEnemyLoop[53] = 0;
nextEnemyNumLoop[53] = 0;
maxEnemyPresent[53] = 0;
nextEnemyType[54] = 0;
nextEnemyDelay[54] = 0;
nextEnemyX[54] = 312.5;
nextEnemyY[54] = 162.5;
nextEnemyLoop[54] = 0;
nextEnemyNumLoop[54] = 0;
maxEnemyPresent[54] = 0;
nextEnemyType[55] = 0;
nextEnemyDelay[55] = 0;
nextEnemyX[55] = 362.5;
nextEnemyY[55] = 112.5;
nextEnemyLoop[55] = 0;
nextEnemyNumLoop[55] = 0;
maxEnemyPresent[55] = 0;
nextEnemyType[56] = 0;
nextEnemyDelay[56] = 50;
nextEnemyX[56] = 437.5;
nextEnemyY[56] = 237.5;
nextEnemyLoop[56] = 0;
nextEnemyNumLoop[56] = 0;
maxEnemyPresent[56] = 0;
nextEnemyType[57] = 0;
nextEnemyDelay[57] = -2;
nextEnemyX[57] = 437.5;
nextEnemyY[57] = 237.5;
nextEnemyLoop[57] = 40;
nextEnemyNumLoop[57] = 4;
maxEnemyPresent[57] = 0;
nextEnemyType[58] = 1;
nextEnemyDelay[58] = 400;
nextEnemyX[58] = 687.5;
nextEnemyY[58] = 12.5;
nextEnemyLoop[58] = 0;
nextEnemyNumLoop[58] = 0;
maxEnemyPresent[58] = 0;
nextEnemyType[59] = 1;
nextEnemyDelay[59] = 0;
nextEnemyX[59] = 687.5;
nextEnemyY[59] = 212.5;
nextEnemyLoop[59] = 0;
nextEnemyNumLoop[59] = 0;
maxEnemyPresent[59] = 0;
nextEnemyType[60] = 1;
nextEnemyDelay[60] = 0;
nextEnemyX[60] = 687.5;
nextEnemyY[60] = 437.5;
nextEnemyLoop[60] = 0;
nextEnemyNumLoop[60] = 0;
maxEnemyPresent[60] = 0;
nextEnemyType[61] = 1;
nextEnemyDelay[61] = 60;
nextEnemyX[61] = 687.5;
nextEnemyY[61] = 12.5;
nextEnemyLoop[61] = 0;
nextEnemyNumLoop[61] = 0;
maxEnemyPresent[61] = 0;
nextEnemyType[62] = 1;
nextEnemyDelay[62] = 0;
nextEnemyX[62] = 687.5;
nextEnemyY[62] = 212.5;
nextEnemyLoop[62] = 0;
nextEnemyNumLoop[62] = 0;
maxEnemyPresent[62] = 0;
nextEnemyType[63] = 1;
nextEnemyDelay[63] = 0;
nextEnemyX[63] = 687.5;
nextEnemyY[63] = 437.5;
nextEnemyLoop[63] = 0;
nextEnemyNumLoop[63] = 0;
maxEnemyPresent[63] = 0;
nextEnemyType[64] = 1;
nextEnemyDelay[64] = 60;
nextEnemyX[64] = 687.5;
nextEnemyY[64] = 12.5;
nextEnemyLoop[64] = 0;
nextEnemyNumLoop[64] = 0;
maxEnemyPresent[64] = 0;
nextEnemyType[65] = 1;
nextEnemyDelay[65] = 0;
nextEnemyX[65] = 687.5;
nextEnemyY[65] = 212.5;
nextEnemyLoop[65] = 0;
nextEnemyNumLoop[65] = 0;
maxEnemyPresent[65] = 0;
nextEnemyType[66] = 1;
nextEnemyDelay[66] = 0;
nextEnemyX[66] = 687.5;
nextEnemyY[66] = 437.5;
nextEnemyLoop[66] = 0;
nextEnemyNumLoop[66] = 0;
maxEnemyPresent[66] = 0;
nextEnemyType[67] = 1;
nextEnemyDelay[67] = 60;
nextEnemyX[67] = 687.5;
nextEnemyY[67] = 12.5;
nextEnemyLoop[67] = 0;
nextEnemyNumLoop[67] = 0;
maxEnemyPresent[67] = 0;
nextEnemyType[68] = 1;
nextEnemyDelay[68] = 0;
nextEnemyX[68] = 687.5;
nextEnemyY[68] = 212.5;
nextEnemyLoop[68] = 0;
nextEnemyNumLoop[68] = 0;
maxEnemyPresent[68] = 0;
nextEnemyType[69] = 1;
nextEnemyDelay[69] = 0;
nextEnemyX[69] = 687.5;
nextEnemyY[69] = 437.5;
nextEnemyLoop[69] = 0;
nextEnemyNumLoop[69] = 0;
maxEnemyPresent[69] = 0;
nextEnemyType[70] = 3;
nextEnemyDelay[70] = 500;
nextEnemyX[70] = 612.5;
nextEnemyY[70] = 237.5;
nextEnemyLoop[70] = 0;
nextEnemyNumLoop[70] = 0;
maxEnemyPresent[70] = 0;
nextEnemyType[71] = 0;
nextEnemyDelay[71] = 60;
nextEnemyX[71] = 487.5;
nextEnemyY[71] = 12.5;
nextEnemyLoop[71] = 0;
nextEnemyNumLoop[71] = 0;
maxEnemyPresent[71] = 0;
nextEnemyType[72] = 0;
nextEnemyDelay[72] = 10;
nextEnemyX[72] = 487.5;
nextEnemyY[72] = 12.5;
nextEnemyLoop[72] = 0;
nextEnemyNumLoop[72] = 0;
maxEnemyPresent[72] = 0;
nextEnemyType[73] = 0;
nextEnemyDelay[73] = 10;
nextEnemyX[73] = 487.5;
nextEnemyY[73] = 12.5;
nextEnemyLoop[73] = 0;
nextEnemyNumLoop[73] = 0;
maxEnemyPresent[73] = 0;
nextEnemyType[74] = 0;
nextEnemyDelay[74] = 60;
nextEnemyX[74] = 487.5;
nextEnemyY[74] = 437.5;
nextEnemyLoop[74] = 0;
nextEnemyNumLoop[74] = 0;
maxEnemyPresent[74] = 0;
nextEnemyType[75] = 0;
nextEnemyDelay[75] = 10;
nextEnemyX[75] = 487.5;
nextEnemyY[75] = 437.5;
nextEnemyLoop[75] = 0;
nextEnemyNumLoop[75] = 0;
maxEnemyPresent[75] = 0;
nextEnemyType[76] = 0;
nextEnemyDelay[76] = 10;
nextEnemyX[76] = 487.5;
nextEnemyY[76] = 437.5;
nextEnemyLoop[76] = 0;
nextEnemyNumLoop[76] = 0;
maxEnemyPresent[76] = 0;
nextEnemyType[77] = 0;
nextEnemyDelay[77] = -2;
nextEnemyX[77] = 487.5;
nextEnemyY[77] = 212.5;
nextEnemyLoop[77] = 71;
nextEnemyNumLoop[77] = 5;
maxEnemyPresent[77] = 0;
nextEnemyType[78] = 4;
nextEnemyDelay[78] = 150;
nextEnemyX[78] = 387.5;
nextEnemyY[78] = 87.5;
nextEnemyLoop[78] = 0;
nextEnemyNumLoop[78] = 0;
maxEnemyPresent[78] = 0;
nextEnemyType[79] = 4;
nextEnemyDelay[79] = 0;
nextEnemyX[79] = 387.5;
nextEnemyY[79] = 362.5;
nextEnemyLoop[79] = 0;
nextEnemyNumLoop[79] = 0;
maxEnemyPresent[79] = 0;
nextEnemyType[80] = 3;
nextEnemyDelay[80] = 0;
nextEnemyX[80] = 612.5;
nextEnemyY[80] = 87.5;
nextEnemyLoop[80] = 0;
nextEnemyNumLoop[80] = 0;
maxEnemyPresent[80] = 0;
nextEnemyType[81] = 3;
nextEnemyDelay[81] = 0;
nextEnemyX[81] = 612.5;
nextEnemyY[81] = 362.5;
nextEnemyLoop[81] = 0;
nextEnemyNumLoop[81] = 0;
maxEnemyPresent[81] = 0;
} else {
if (_arg1 == 2){
if (Difficulty != "Hard"){
StartParticles = false;
};
nextEnemyType[0] = 5;
nextEnemyDelay[0] = 20;
nextEnemyX[0] = 450;
nextEnemyY[0] = 250;
nextEnemyLoop[0] = 0;
nextEnemyNumLoop[0] = 0;
maxEnemyPresent[0] = 0;
} else {
if (_arg1 == 3){
nextShot = 0;
StartParticles = true;
nextEnemyType[0] = 7;
nextEnemyDelay[0] = 35;
nextEnemyX[0] = 587.5;
nextEnemyY[0] = 12.5;
nextEnemyLoop[0] = 0;
nextEnemyNumLoop[0] = 0;
maxEnemyPresent[0] = 0;
nextEnemyType[1] = 7;
nextEnemyDelay[1] = 35;
nextEnemyX[1] = 587.5;
nextEnemyY[1] = 437.5;
nextEnemyLoop[1] = 0;
nextEnemyNumLoop[1] = 0;
maxEnemyPresent[1] = 0;
nextEnemyType[2] = 8;
nextEnemyDelay[2] = -2;
nextEnemyX[2] = 612.5;
nextEnemyY[2] = 237.5;
nextEnemyLoop[2] = 0;
nextEnemyNumLoop[2] = 10;
maxEnemyPresent[2] = 0;
nextEnemyType[3] = 6;
nextEnemyDelay[3] = 35;
nextEnemyX[3] = 687.5;
nextEnemyY[3] = 112.5;
nextEnemyLoop[3] = 0;
nextEnemyNumLoop[3] = 0;
maxEnemyPresent[3] = 0;
nextEnemyType[4] = 6;
nextEnemyDelay[4] = 0;
nextEnemyX[4] = 687.5;
nextEnemyY[4] = 312.5;
nextEnemyLoop[4] = 0;
nextEnemyNumLoop[4] = 0;
maxEnemyPresent[4] = 0;
nextEnemyType[5] = 6;
nextEnemyDelay[5] = 35;
nextEnemyX[5] = 687.5;
nextEnemyY[5] = 237.5;
nextEnemyLoop[5] = 3;
nextEnemyNumLoop[5] = 5;
maxEnemyPresent[5] = 0;
nextEnemyType[6] = 6;
nextEnemyDelay[6] = 0;
nextEnemyX[6] = 687.5;
nextEnemyY[6] = 262.5;
nextEnemyLoop[6] = 0;
nextEnemyNumLoop[6] = 0;
maxEnemyPresent[6] = 0;
nextEnemyType[7] = 7;
nextEnemyDelay[7] = -2;
nextEnemyX[7] = 612.5;
nextEnemyY[7] = 437.5;
nextEnemyLoop[7] = 3;
nextEnemyNumLoop[7] = 5;
maxEnemyPresent[7] = 0;
nextEnemyType[8] = 7;
nextEnemyDelay[8] = 35;
nextEnemyX[8] = 612.5;
nextEnemyY[8] = 12.5;
nextEnemyLoop[8] = 0;
nextEnemyNumLoop[8] = 0;
maxEnemyPresent[8] = 0;
nextEnemyType[9] = 7;
nextEnemyDelay[9] = 35;
nextEnemyX[9] = 487.5;
nextEnemyY[9] = 437.5;
nextEnemyLoop[9] = 0;
nextEnemyNumLoop[9] = 0;
maxEnemyPresent[9] = 0;
nextEnemyType[10] = 7;
nextEnemyDelay[10] = 35;
nextEnemyX[10] = 487.5;
nextEnemyY[10] = 12.5;
nextEnemyLoop[10] = 0;
nextEnemyNumLoop[10] = 0;
maxEnemyPresent[10] = 0;
nextEnemyType[11] = 7;
nextEnemyDelay[11] = 35;
nextEnemyX[11] = 387.5;
nextEnemyY[11] = 12.5;
nextEnemyLoop[11] = 0;
nextEnemyNumLoop[11] = 0;
maxEnemyPresent[11] = 0;
nextEnemyType[12] = 7;
nextEnemyDelay[12] = 35;
nextEnemyX[12] = 387.5;
nextEnemyY[12] = 437.5;
nextEnemyLoop[12] = 0;
nextEnemyNumLoop[12] = 0;
maxEnemyPresent[12] = 0;
nextEnemyType[13] = 7;
nextEnemyDelay[13] = 35;
nextEnemyX[13] = 462.5;
nextEnemyY[13] = 437.5;
nextEnemyLoop[13] = 0;
nextEnemyNumLoop[13] = 0;
maxEnemyPresent[13] = 0;
nextEnemyType[14] = 7;
nextEnemyDelay[14] = 35;
nextEnemyX[14] = 462.5;
nextEnemyY[14] = 12.5;
nextEnemyLoop[14] = 0;
nextEnemyNumLoop[14] = 0;
maxEnemyPresent[14] = 0;
nextEnemyType[15] = 7;
nextEnemyDelay[15] = 35;
nextEnemyX[15] = 537.5;
nextEnemyY[15] = 12.5;
nextEnemyLoop[15] = 0;
nextEnemyNumLoop[15] = 0;
maxEnemyPresent[15] = 0;
nextEnemyType[16] = 7;
nextEnemyDelay[16] = 35;
nextEnemyX[16] = 537.5;
nextEnemyY[16] = 437.5;
nextEnemyLoop[16] = 0;
nextEnemyNumLoop[16] = 0;
maxEnemyPresent[16] = 0;
nextEnemyType[17] = 7;
nextEnemyDelay[17] = 35;
nextEnemyX[17] = 687.5;
nextEnemyY[17] = 437.5;
nextEnemyLoop[17] = 0;
nextEnemyNumLoop[17] = 0;
maxEnemyPresent[17] = 0;
nextEnemyType[18] = 7;
nextEnemyDelay[18] = 35;
nextEnemyX[18] = 687.5;
nextEnemyY[18] = 12.5;
nextEnemyLoop[18] = 0;
nextEnemyNumLoop[18] = 0;
maxEnemyPresent[18] = 0;
nextEnemyType[19] = 9;
nextEnemyDelay[19] = 200;
nextEnemyX[19] = 237.5;
nextEnemyY[19] = 237.5;
nextEnemyLoop[19] = 0;
nextEnemyNumLoop[19] = 0;
maxEnemyPresent[19] = 0;
nextEnemyType[20] = 10;
nextEnemyDelay[20] = -1;
nextEnemyX[20] = 612.5;
nextEnemyY[20] = 237.5;
nextEnemyLoop[20] = 0;
nextEnemyNumLoop[20] = 0;
maxEnemyPresent[20] = 0;
nextEnemyType[21] = 10;
nextEnemyDelay[21] = -1;
nextEnemyX[21] = 612.5;
nextEnemyY[21] = 87.5;
nextEnemyLoop[21] = 0;
nextEnemyNumLoop[21] = 0;
maxEnemyPresent[21] = 0;
nextEnemyType[22] = 10;
nextEnemyDelay[22] = 0;
nextEnemyX[22] = 612.5;
nextEnemyY[22] = 337.5;
nextEnemyLoop[22] = 0;
nextEnemyNumLoop[22] = 0;
maxEnemyPresent[22] = 0;
nextEnemyType[23] = 10;
nextEnemyDelay[23] = -1;
nextEnemyX[23] = 487.5;
nextEnemyY[23] = 237.5;
nextEnemyLoop[23] = 0;
nextEnemyNumLoop[23] = 0;
maxEnemyPresent[23] = 0;
nextEnemyType[24] = 9;
nextEnemyDelay[24] = 0;
nextEnemyX[24] = 612.5;
nextEnemyY[24] = 237.5;
nextEnemyLoop[24] = 0;
nextEnemyNumLoop[24] = 0;
maxEnemyPresent[24] = 0;
nextEnemyType[25] = 6;
nextEnemyDelay[25] = -1;
nextEnemyX[25] = 687.5;
nextEnemyY[25] = 212.5;
nextEnemyLoop[25] = 0;
nextEnemyNumLoop[25] = 0;
maxEnemyPresent[25] = 0;
nextEnemyType[26] = 6;
nextEnemyDelay[26] = 35;
nextEnemyX[26] = 687.5;
nextEnemyY[26] = 212.5;
nextEnemyLoop[26] = 0;
nextEnemyNumLoop[26] = 0;
maxEnemyPresent[26] = 0;
nextEnemyType[27] = 7;
nextEnemyDelay[27] = 35;
nextEnemyX[27] = 512.5;
nextEnemyY[27] = 12.5;
nextEnemyLoop[27] = 0;
nextEnemyNumLoop[27] = 0;
maxEnemyPresent[27] = 0;
nextEnemyType[28] = 6;
nextEnemyDelay[28] = 35;
nextEnemyX[28] = 687.5;
nextEnemyY[28] = 237.5;
nextEnemyLoop[28] = 0;
nextEnemyNumLoop[28] = 0;
maxEnemyPresent[28] = 0;
nextEnemyType[29] = 7;
nextEnemyDelay[29] = 35;
nextEnemyX[29] = 562.5;
nextEnemyY[29] = 437.5;
nextEnemyLoop[29] = 0;
nextEnemyNumLoop[29] = 0;
maxEnemyPresent[29] = 0;
nextEnemyType[30] = 10;
nextEnemyDelay[30] = -2;
nextEnemyX[30] = 612.5;
nextEnemyY[30] = 237.5;
nextEnemyLoop[30] = 26;
nextEnemyNumLoop[30] = 5;
maxEnemyPresent[30] = 0;
nextEnemyType[31] = 8;
nextEnemyDelay[31] = 150;
nextEnemyX[31] = 587.5;
nextEnemyY[31] = 87.5;
nextEnemyLoop[31] = 0;
nextEnemyNumLoop[31] = 0;
maxEnemyPresent[31] = 0;
nextEnemyType[32] = 8;
nextEnemyDelay[32] = 150;
nextEnemyX[32] = 587.5;
nextEnemyY[32] = 362.5;
nextEnemyLoop[32] = 0;
nextEnemyNumLoop[32] = 0;
maxEnemyPresent[32] = 0;
nextEnemyType[33] = 9;
nextEnemyDelay[33] = -1;
nextEnemyX[33] = 612.5;
nextEnemyY[33] = 237.5;
nextEnemyLoop[33] = 0;
nextEnemyNumLoop[33] = 0;
maxEnemyPresent[33] = 0;
nextEnemyType[34] = 10;
nextEnemyDelay[34] = 35;
nextEnemyX[34] = 612.5;
nextEnemyY[34] = 87.5;
nextEnemyLoop[34] = 0;
nextEnemyNumLoop[34] = 0;
maxEnemyPresent[34] = 0;
nextEnemyType[35] = 10;
nextEnemyDelay[35] = 35;
nextEnemyX[35] = 612.5;
nextEnemyY[35] = 362.5;
nextEnemyLoop[35] = 0;
nextEnemyNumLoop[35] = 0;
maxEnemyPresent[35] = 0;
} else {
if (_arg1 == 4){
if (Difficulty != "Hard"){
StartParticles = false;
};
nextEnemyType[0] = 11;
nextEnemyDelay[0] = 20;
nextEnemyX[0] = 450;
nextEnemyY[0] = 250;
nextEnemyLoop[0] = 0;
nextEnemyNumLoop[0] = 0;
maxEnemyPresent[0] = 0;
} else {
if (_arg1 == 5){
nextShot = 0;
StartParticles = true;
nextEnemyType[0] = 12;
nextEnemyDelay[0] = 200;
nextEnemyX[0] = 687.5;
nextEnemyY[0] = 37.5;
nextEnemyLoop[0] = 0;
nextEnemyNumLoop[0] = 0;
maxEnemyPresent[0] = 0;
nextEnemyType[1] = 12;
nextEnemyDelay[1] = 0;
nextEnemyX[1] = 687.5;
nextEnemyY[1] = 412.5;
nextEnemyLoop[1] = 0;
nextEnemyNumLoop[1] = 0;
maxEnemyPresent[1] = 0;
nextEnemyType[2] = 12;
nextEnemyDelay[2] = 200;
nextEnemyX[2] = 687.5;
nextEnemyY[2] = 37.5;
nextEnemyLoop[2] = 0;
nextEnemyNumLoop[2] = 0;
maxEnemyPresent[2] = 0;
nextEnemyType[3] = 12;
nextEnemyDelay[3] = 0;
nextEnemyX[3] = 687.5;
nextEnemyY[3] = 412.5;
nextEnemyLoop[3] = 0;
nextEnemyNumLoop[3] = 0;
maxEnemyPresent[3] = 0;
nextEnemyType[4] = 12;
nextEnemyDelay[4] = 200;
nextEnemyX[4] = 687.5;
nextEnemyY[4] = 62.5;
nextEnemyLoop[4] = 0;
nextEnemyNumLoop[4] = 0;
maxEnemyPresent[4] = 0;
nextEnemyType[5] = 12;
nextEnemyDelay[5] = 0;
nextEnemyX[5] = 687.5;
nextEnemyY[5] = 387.5;
nextEnemyLoop[5] = 0;
nextEnemyNumLoop[5] = 0;
maxEnemyPresent[5] = 0;
nextEnemyType[6] = 12;
nextEnemyDelay[6] = 200;
nextEnemyX[6] = 687.5;
nextEnemyY[6] = 137.5;
nextEnemyLoop[6] = 0;
nextEnemyNumLoop[6] = 0;
maxEnemyPresent[6] = 0;
nextEnemyType[7] = 12;
nextEnemyDelay[7] = 0;
nextEnemyX[7] = 687.5;
nextEnemyY[7] = 337.5;
nextEnemyLoop[7] = 0;
nextEnemyNumLoop[7] = 0;
maxEnemyPresent[7] = 0;
nextEnemyType[8] = 12;
nextEnemyDelay[8] = 200;
nextEnemyX[8] = 687.5;
nextEnemyY[8] = 212.5;
nextEnemyLoop[8] = 0;
nextEnemyNumLoop[8] = 0;
maxEnemyPresent[8] = 0;
nextEnemyType[9] = 12;
nextEnemyDelay[9] = 0;
nextEnemyX[9] = 687.5;
nextEnemyY[9] = 262.5;
nextEnemyLoop[9] = 0;
nextEnemyNumLoop[9] = 0;
maxEnemyPresent[9] = 0;
nextEnemyType[10] = 13;
nextEnemyDelay[10] = 200;
nextEnemyX[10] = 687.5;
nextEnemyY[10] = 437.5;
nextEnemyLoop[10] = 0;
nextEnemyNumLoop[10] = 0;
maxEnemyPresent[10] = 0;
nextEnemyType[11] = 13;
nextEnemyDelay[11] = 50;
nextEnemyX[11] = 687.5;
nextEnemyY[11] = 12.5;
nextEnemyLoop[11] = 0;
nextEnemyNumLoop[11] = 0;
maxEnemyPresent[11] = 0;
nextEnemyType[12] = 14;
nextEnemyDelay[12] = -1;
nextEnemyX[12] = 687.5;
nextEnemyY[12] = 212.5;
nextEnemyLoop[12] = 0;
nextEnemyNumLoop[12] = 0;
maxEnemyPresent[12] = 0;
nextEnemyType[13] = 14;
nextEnemyDelay[13] = -1;
nextEnemyX[13] = 687.5;
nextEnemyY[13] = 212.5;
nextEnemyLoop[13] = 0;
nextEnemyNumLoop[13] = 0;
maxEnemyPresent[13] = 0;
nextEnemyType[14] = 14;
nextEnemyDelay[14] = -1;
nextEnemyX[14] = 687.5;
nextEnemyY[14] = 237.5;
nextEnemyLoop[14] = 0;
nextEnemyNumLoop[14] = 0;
maxEnemyPresent[14] = 0;
nextEnemyType[15] = 12;
nextEnemyDelay[15] = -1;
nextEnemyX[15] = 687.5;
nextEnemyY[15] = 87.5;
nextEnemyLoop[15] = 0;
nextEnemyNumLoop[15] = 0;
maxEnemyPresent[15] = 0;
nextEnemyType[16] = 12;
nextEnemyDelay[16] = 50;
nextEnemyX[16] = 687.5;
nextEnemyY[16] = 337.5;
nextEnemyLoop[16] = 0;
nextEnemyNumLoop[16] = 0;
maxEnemyPresent[16] = 0;
nextEnemyType[17] = 12;
nextEnemyDelay[17] = 50;
nextEnemyX[17] = 687.5;
nextEnemyY[17] = 87.5;
nextEnemyLoop[17] = 0;
nextEnemyNumLoop[17] = 0;
maxEnemyPresent[17] = 0;
nextEnemyType[18] = 12;
nextEnemyDelay[18] = 50;
nextEnemyX[18] = 687.5;
nextEnemyY[18] = 362.5;
nextEnemyLoop[18] = 0;
nextEnemyNumLoop[18] = 0;
maxEnemyPresent[18] = 0;
nextEnemyType[19] = 15;
nextEnemyDelay[19] = -2;
nextEnemyX[19] = 687.5;
nextEnemyY[19] = 212.5;
nextEnemyLoop[19] = 16;
nextEnemyNumLoop[19] = 0;
maxEnemyPresent[19] = 0;
nextEnemyType[20] = 15;
nextEnemyDelay[20] = -1;
nextEnemyX[20] = 587.5;
nextEnemyY[20] = 87.5;
nextEnemyLoop[20] = 0;
nextEnemyNumLoop[20] = 0;
maxEnemyPresent[20] = 0;
nextEnemyType[21] = 15;
nextEnemyDelay[21] = 0;
nextEnemyX[21] = 587.5;
nextEnemyY[21] = 362.5;
nextEnemyLoop[21] = 0;
nextEnemyNumLoop[21] = 0;
maxEnemyPresent[21] = 0;
nextEnemyType[22] = 14;
nextEnemyDelay[22] = -1;
nextEnemyX[22] = 462.5;
nextEnemyY[22] = 212.5;
nextEnemyLoop[22] = 0;
nextEnemyNumLoop[22] = 0;
maxEnemyPresent[22] = 0;
nextEnemyType[23] = 15;
nextEnemyDelay[23] = 0;
nextEnemyX[23] = 562.5;
nextEnemyY[23] = 212.5;
nextEnemyLoop[23] = 0;
nextEnemyNumLoop[23] = 0;
maxEnemyPresent[23] = 0;
nextEnemyType[24] = 15;
nextEnemyDelay[24] = -1;
nextEnemyX[24] = 537.5;
nextEnemyY[24] = 212.5;
nextEnemyLoop[24] = 0;
nextEnemyNumLoop[24] = 0;
maxEnemyPresent[24] = 0;
nextEnemyType[25] = 12;
nextEnemyDelay[25] = 0;
nextEnemyX[25] = 687.5;
nextEnemyY[25] = 37.5;
nextEnemyLoop[25] = 0;
nextEnemyNumLoop[25] = 0;
maxEnemyPresent[25] = 0;
nextEnemyType[26] = 12;
nextEnemyDelay[26] = 0;
nextEnemyX[26] = 687.5;
nextEnemyY[26] = 387.5;
nextEnemyLoop[26] = 0;
nextEnemyNumLoop[26] = 0;
maxEnemyPresent[26] = 0;
nextEnemyType[27] = 12;
nextEnemyDelay[27] = 0;
nextEnemyX[27] = 687.5;
nextEnemyY[27] = 212.5;
nextEnemyLoop[27] = 0;
nextEnemyNumLoop[27] = 0;
maxEnemyPresent[27] = 0;
nextEnemyType[28] = 12;
nextEnemyDelay[28] = 500;
nextEnemyX[28] = 687.5;
nextEnemyY[28] = 37.5;
nextEnemyLoop[28] = 0;
nextEnemyNumLoop[28] = 0;
maxEnemyPresent[28] = 0;
nextEnemyType[29] = 12;
nextEnemyDelay[29] = 0;
nextEnemyX[29] = 687.5;
nextEnemyY[29] = 212.5;
nextEnemyLoop[29] = 0;
nextEnemyNumLoop[29] = 0;
maxEnemyPresent[29] = 0;
nextEnemyType[30] = 12;
nextEnemyDelay[30] = 0;
nextEnemyX[30] = 687.5;
nextEnemyY[30] = 387.5;
nextEnemyLoop[30] = 0;
nextEnemyNumLoop[30] = 0;
maxEnemyPresent[30] = 0;
nextEnemyType[31] = 14;
nextEnemyDelay[31] = 250;
nextEnemyX[31] = 687.5;
nextEnemyY[31] = 212.5;
nextEnemyLoop[31] = 0;
nextEnemyNumLoop[31] = 0;
maxEnemyPresent[31] = 0;
nextEnemyType[32] = 12;
nextEnemyDelay[32] = 50;
nextEnemyX[32] = 687.5;
nextEnemyY[32] = 62.5;
nextEnemyLoop[32] = 0;
nextEnemyNumLoop[32] = 0;
maxEnemyPresent[32] = 0;
nextEnemyType[33] = 12;
nextEnemyDelay[33] = 0;
nextEnemyX[33] = 687.5;
nextEnemyY[33] = 387.5;
nextEnemyLoop[33] = 0;
nextEnemyNumLoop[33] = 0;
maxEnemyPresent[33] = 0;
} else {
if (_arg1 == 6){
if (Difficulty != "Hard"){
StartParticles = false;
};
nextEnemyType[0] = 16;
nextEnemyDelay[0] = 20;
nextEnemyX[0] = 450;
nextEnemyY[0] = 250;
nextEnemyLoop[0] = 0;
nextEnemyNumLoop[0] = 0;
maxEnemyPresent[0] = 0;
} else {
if (_arg1 == 7){
nextShot = 0;
StartParticles = true;
nextEnemyType[0] = 17;
nextEnemyDelay[0] = 20;
nextEnemyX[0] = 687.5;
nextEnemyY[0] = 12.5;
nextEnemyLoop[0] = 0;
nextEnemyNumLoop[0] = 0;
maxEnemyPresent[0] = 0;
nextEnemyType[1] = 17;
nextEnemyDelay[1] = 20;
nextEnemyX[1] = 687.5;
nextEnemyY[1] = 62.5;
nextEnemyLoop[1] = 0;
nextEnemyNumLoop[1] = 0;
maxEnemyPresent[1] = 0;
nextEnemyType[2] = 17;
nextEnemyDelay[2] = 20;
nextEnemyX[2] = 687.5;
nextEnemyY[2] = 112.5;
nextEnemyLoop[2] = 0;
nextEnemyNumLoop[2] = 0;
maxEnemyPresent[2] = 0;
nextEnemyType[3] = 17;
nextEnemyDelay[3] = 20;
nextEnemyX[3] = 687.5;
nextEnemyY[3] = 162.5;
nextEnemyLoop[3] = 0;
nextEnemyNumLoop[3] = 0;
maxEnemyPresent[3] = 0;
nextEnemyType[4] = 17;
nextEnemyDelay[4] = 20;
nextEnemyX[4] = 687.5;
nextEnemyY[4] = 212.5;
nextEnemyLoop[4] = 0;
nextEnemyNumLoop[4] = 0;
maxEnemyPresent[4] = 0;
nextEnemyType[5] = 17;
nextEnemyDelay[5] = 20;
nextEnemyX[5] = 687.5;
nextEnemyY[5] = 262.5;
nextEnemyLoop[5] = 0;
nextEnemyNumLoop[5] = 0;
maxEnemyPresent[5] = 0;
nextEnemyType[6] = 17;
nextEnemyDelay[6] = 20;
nextEnemyX[6] = 687.5;
nextEnemyY[6] = 312.5;
nextEnemyLoop[6] = 0;
nextEnemyNumLoop[6] = 0;
maxEnemyPresent[6] = 0;
nextEnemyType[7] = 17;
nextEnemyDelay[7] = 20;
nextEnemyX[7] = 687.5;
nextEnemyY[7] = 362.5;
nextEnemyLoop[7] = 0;
nextEnemyNumLoop[7] = 0;
maxEnemyPresent[7] = 0;
nextEnemyType[8] = 17;
nextEnemyDelay[8] = 20;
nextEnemyX[8] = 687.5;
nextEnemyY[8] = 412.5;
nextEnemyLoop[8] = 0;
nextEnemyNumLoop[8] = 0;
maxEnemyPresent[8] = 0;
nextEnemyType[9] = 17;
nextEnemyDelay[9] = 20;
nextEnemyX[9] = 687.5;
nextEnemyY[9] = 437.5;
nextEnemyLoop[9] = 0;
nextEnemyNumLoop[9] = 0;
maxEnemyPresent[9] = 0;
nextEnemyType[10] = 17;
nextEnemyDelay[10] = 20;
nextEnemyX[10] = 687.5;
nextEnemyY[10] = 387.5;
nextEnemyLoop[10] = 0;
nextEnemyNumLoop[10] = 0;
maxEnemyPresent[10] = 0;
nextEnemyType[11] = 17;
nextEnemyDelay[11] = 20;
nextEnemyX[11] = 687.5;
nextEnemyY[11] = 337.5;
nextEnemyLoop[11] = 0;
nextEnemyNumLoop[11] = 0;
maxEnemyPresent[11] = 0;
nextEnemyType[12] = 17;
nextEnemyDelay[12] = 20;
nextEnemyX[12] = 687.5;
nextEnemyY[12] = 287.5;
nextEnemyLoop[12] = 0;
nextEnemyNumLoop[12] = 0;
maxEnemyPresent[12] = 0;
nextEnemyType[13] = 17;
nextEnemyDelay[13] = 20;
nextEnemyX[13] = 687.5;
nextEnemyY[13] = 237.5;
nextEnemyLoop[13] = 0;
nextEnemyNumLoop[13] = 0;
maxEnemyPresent[13] = 0;
nextEnemyType[14] = 17;
nextEnemyDelay[14] = 20;
nextEnemyX[14] = 687.5;
nextEnemyY[14] = 187.5;
nextEnemyLoop[14] = 0;
nextEnemyNumLoop[14] = 0;
maxEnemyPresent[14] = 0;
nextEnemyType[15] = 17;
nextEnemyDelay[15] = 20;
nextEnemyX[15] = 687.5;
nextEnemyY[15] = 137.5;
nextEnemyLoop[15] = 0;
nextEnemyNumLoop[15] = 0;
maxEnemyPresent[15] = 0;
nextEnemyType[16] = 17;
nextEnemyDelay[16] = 20;
nextEnemyX[16] = 687.5;
nextEnemyY[16] = 87.5;
nextEnemyLoop[16] = 0;
nextEnemyNumLoop[16] = 0;
maxEnemyPresent[16] = 0;
nextEnemyType[17] = 17;
nextEnemyDelay[17] = 20;
nextEnemyX[17] = 687.5;
nextEnemyY[17] = 37.5;
nextEnemyLoop[17] = 0;
nextEnemyNumLoop[17] = 0;
maxEnemyPresent[17] = 0;
nextEnemyType[18] = 18;
nextEnemyDelay[18] = -2;
nextEnemyX[18] = 437.5;
nextEnemyY[18] = 112.5;
nextEnemyLoop[18] = 0;
nextEnemyNumLoop[18] = 3;
maxEnemyPresent[18] = 0;
nextEnemyType[19] = 18;
nextEnemyDelay[19] = 0;
nextEnemyX[19] = 437.5;
nextEnemyY[19] = 337.5;
nextEnemyLoop[19] = 0;
nextEnemyNumLoop[19] = 0;
maxEnemyPresent[19] = 0;
nextEnemyType[20] = 19;
nextEnemyDelay[20] = -1;
nextEnemyX[20] = 562.5;
nextEnemyY[20] = 62.5;
nextEnemyLoop[20] = 0;
nextEnemyNumLoop[20] = 0;
maxEnemyPresent[20] = 0;
nextEnemyType[21] = 19;
nextEnemyDelay[21] = 0;
nextEnemyX[21] = 562.5;
nextEnemyY[21] = 387.5;
nextEnemyLoop[21] = 0;
nextEnemyNumLoop[21] = 0;
maxEnemyPresent[21] = 0;
nextEnemyType[22] = 18;
nextEnemyDelay[22] = -1;
nextEnemyX[22] = 537.5;
nextEnemyY[22] = 237.5;
nextEnemyLoop[22] = 0;
nextEnemyNumLoop[22] = 0;
maxEnemyPresent[22] = 0;
nextEnemyType[23] = 19;
nextEnemyDelay[23] = 0;
nextEnemyX[23] = 562.5;
nextEnemyY[23] = 237.5;
nextEnemyLoop[23] = 0;
nextEnemyNumLoop[23] = 0;
maxEnemyPresent[23] = 0;
nextEnemyType[24] = 19;
nextEnemyDelay[24] = 0;
nextEnemyX[24] = 587.5;
nextEnemyY[24] = 237.5;
nextEnemyLoop[24] = 0;
nextEnemyNumLoop[24] = 0;
maxEnemyPresent[24] = 0;
nextEnemyType[25] = 19;
nextEnemyDelay[25] = -1;
nextEnemyX[25] = 337.5;
nextEnemyY[25] = 62.5;
nextEnemyLoop[25] = 0;
nextEnemyNumLoop[25] = 0;
maxEnemyPresent[25] = 0;
nextEnemyType[26] = 19;
nextEnemyDelay[26] = 250;
nextEnemyX[26] = 587.5;
nextEnemyY[26] = 387.5;
nextEnemyLoop[26] = 0;
nextEnemyNumLoop[26] = 0;
maxEnemyPresent[26] = 0;
nextEnemyType[27] = 19;
nextEnemyDelay[27] = 250;
nextEnemyX[27] = 587.5;
nextEnemyY[27] = 62.5;
nextEnemyLoop[27] = 0;
nextEnemyNumLoop[27] = 0;
maxEnemyPresent[27] = 0;
nextEnemyType[28] = 19;
nextEnemyDelay[28] = 250;
nextEnemyX[28] = 287.5;
nextEnemyY[28] = 387.5;
nextEnemyLoop[28] = 0;
nextEnemyNumLoop[28] = 0;
maxEnemyPresent[28] = 0;
nextEnemyType[29] = 19;
nextEnemyDelay[29] = 250;
nextEnemyX[29] = 462.5;
nextEnemyY[29] = 237.5;
nextEnemyLoop[29] = 0;
nextEnemyNumLoop[29] = 0;
maxEnemyPresent[29] = 0;
nextEnemyType[30] = 17;
nextEnemyDelay[30] = -1;
nextEnemyX[30] = 512.5;
nextEnemyY[30] = 87.5;
nextEnemyLoop[30] = 0;
nextEnemyNumLoop[30] = 0;
maxEnemyPresent[30] = 0;
nextEnemyType[31] = 17;
nextEnemyDelay[31] = 0;
nextEnemyX[31] = 537.5;
nextEnemyY[31] = 62.5;
nextEnemyLoop[31] = 0;
nextEnemyNumLoop[31] = 0;
maxEnemyPresent[31] = 0;
nextEnemyType[32] = 17;
nextEnemyDelay[32] = 0;
nextEnemyX[32] = 537.5;
nextEnemyY[32] = 112.5;
nextEnemyLoop[32] = 0;
nextEnemyNumLoop[32] = 0;
maxEnemyPresent[32] = 0;
nextEnemyType[33] = 17;
nextEnemyDelay[33] = 0;
nextEnemyX[33] = 562.5;
nextEnemyY[33] = 37.5;
nextEnemyLoop[33] = 0;
nextEnemyNumLoop[33] = 0;
maxEnemyPresent[33] = 0;
nextEnemyType[34] = 17;
nextEnemyDelay[34] = 0;
nextEnemyX[34] = 562.5;
nextEnemyY[34] = 137.5;
nextEnemyLoop[34] = 0;
nextEnemyNumLoop[34] = 0;
maxEnemyPresent[34] = 0;
nextEnemyType[35] = 17;
nextEnemyDelay[35] = 50;
nextEnemyX[35] = 512.5;
nextEnemyY[35] = 362.5;
nextEnemyLoop[35] = 0;
nextEnemyNumLoop[35] = 0;
maxEnemyPresent[35] = 0;
nextEnemyType[36] = 17;
nextEnemyDelay[36] = 0;
nextEnemyX[36] = 537.5;
nextEnemyY[36] = 337.5;
nextEnemyLoop[36] = 0;
nextEnemyNumLoop[36] = 0;
maxEnemyPresent[36] = 0;
nextEnemyType[37] = 17;
nextEnemyDelay[37] = 0;
nextEnemyX[37] = 537.5;
nextEnemyY[37] = 387.5;
nextEnemyLoop[37] = 0;
nextEnemyNumLoop[37] = 0;
maxEnemyPresent[37] = 0;
nextEnemyType[38] = 17;
nextEnemyDelay[38] = 0;
nextEnemyX[38] = 562.5;
nextEnemyY[38] = 312.5;
nextEnemyLoop[38] = 0;
nextEnemyNumLoop[38] = 0;
maxEnemyPresent[38] = 0;
nextEnemyType[39] = 17;
nextEnemyDelay[39] = 0;
nextEnemyX[39] = 562.5;
nextEnemyY[39] = 412.5;
nextEnemyLoop[39] = 0;
nextEnemyNumLoop[39] = 0;
maxEnemyPresent[39] = 0;
nextEnemyType[40] = 17;
nextEnemyDelay[40] = 50;
nextEnemyX[40] = 537.5;
nextEnemyY[40] = 262.5;
nextEnemyLoop[40] = 0;
nextEnemyNumLoop[40] = 0;
maxEnemyPresent[40] = 0;
nextEnemyType[41] = 17;
nextEnemyDelay[41] = 0;
nextEnemyX[41] = 562.5;
nextEnemyY[41] = 237.5;
nextEnemyLoop[41] = 0;
nextEnemyNumLoop[41] = 0;
maxEnemyPresent[41] = 0;
nextEnemyType[42] = 17;
nextEnemyDelay[42] = 0;
nextEnemyX[42] = 562.5;
nextEnemyY[42] = 287.5;
nextEnemyLoop[42] = 0;
nextEnemyNumLoop[42] = 0;
maxEnemyPresent[42] = 0;
nextEnemyType[43] = 17;
nextEnemyDelay[43] = 0;
nextEnemyX[43] = 587.5;
nextEnemyY[43] = 212.5;
nextEnemyLoop[43] = 0;
nextEnemyNumLoop[43] = 0;
maxEnemyPresent[43] = 0;
nextEnemyType[44] = 17;
nextEnemyDelay[44] = 0;
nextEnemyX[44] = 587.5;
nextEnemyY[44] = 312.5;
nextEnemyLoop[44] = 0;
nextEnemyNumLoop[44] = 0;
maxEnemyPresent[44] = 0;
nextEnemyType[45] = 17;
nextEnemyDelay[45] = 50;
nextEnemyX[45] = 337.5;
nextEnemyY[45] = 12.5;
nextEnemyLoop[45] = 0;
nextEnemyNumLoop[45] = 0;
maxEnemyPresent[45] = 0;
nextEnemyType[46] = 17;
nextEnemyDelay[46] = 0;
nextEnemyX[46] = 362.5;
nextEnemyY[46] = 37.5;
nextEnemyLoop[46] = 0;
nextEnemyNumLoop[46] = 0;
maxEnemyPresent[46] = 0;
nextEnemyType[47] = 17;
nextEnemyDelay[47] = 0;
nextEnemyX[47] = 387.5;
nextEnemyY[47] = 62.5;
nextEnemyLoop[47] = 0;
nextEnemyNumLoop[47] = 0;
maxEnemyPresent[47] = 0;
nextEnemyType[48] = 17;
nextEnemyDelay[48] = 0;
nextEnemyX[48] = 412.5;
nextEnemyY[48] = 87.5;
nextEnemyLoop[48] = 0;
nextEnemyNumLoop[48] = 0;
maxEnemyPresent[48] = 0;
nextEnemyType[49] = 17;
nextEnemyDelay[49] = 0;
nextEnemyX[49] = 437.5;
nextEnemyY[49] = 112.5;
nextEnemyLoop[49] = 0;
nextEnemyNumLoop[49] = 0;
maxEnemyPresent[49] = 0;
nextEnemyType[50] = 17;
nextEnemyDelay[50] = 0;
nextEnemyX[50] = 462.5;
nextEnemyY[50] = 137.5;
nextEnemyLoop[50] = 0;
nextEnemyNumLoop[50] = 0;
maxEnemyPresent[50] = 0;
nextEnemyType[51] = 17;
nextEnemyDelay[51] = 0;
nextEnemyX[51] = 462.5;
nextEnemyY[51] = 437.5;
nextEnemyLoop[51] = 0;
nextEnemyNumLoop[51] = 0;
maxEnemyPresent[51] = 0;
nextEnemyType[52] = 17;
nextEnemyDelay[52] = 0;
nextEnemyX[52] = 487.5;
nextEnemyY[52] = 162.5;
nextEnemyLoop[52] = 0;
nextEnemyNumLoop[52] = 0;
maxEnemyPresent[52] = 0;
nextEnemyType[53] = 17;
nextEnemyDelay[53] = 0;
nextEnemyX[53] = 487.5;
nextEnemyY[53] = 412.5;
nextEnemyLoop[53] = 0;
nextEnemyNumLoop[53] = 0;
maxEnemyPresent[53] = 0;
nextEnemyType[54] = 17;
nextEnemyDelay[54] = 0;
nextEnemyX[54] = 512.5;
nextEnemyY[54] = 187.5;
nextEnemyLoop[54] = 0;
nextEnemyNumLoop[54] = 0;
maxEnemyPresent[54] = 0;
nextEnemyType[55] = 17;
nextEnemyDelay[55] = 0;
nextEnemyX[55] = 512.5;
nextEnemyY[55] = 387.5;
nextEnemyLoop[55] = 0;
nextEnemyNumLoop[55] = 0;
maxEnemyPresent[55] = 0;
nextEnemyType[56] = 17;
nextEnemyDelay[56] = 0;
nextEnemyX[56] = 537.5;
nextEnemyY[56] = 362.5;
nextEnemyLoop[56] = 0;
nextEnemyNumLoop[56] = 0;
maxEnemyPresent[56] = 0;
nextEnemyType[57] = 17;
nextEnemyDelay[57] = 0;
nextEnemyX[57] = 562.5;
nextEnemyY[57] = 337.5;
nextEnemyLoop[57] = 0;
nextEnemyNumLoop[57] = 0;
maxEnemyPresent[57] = 0;
nextEnemyType[58] = 17;
nextEnemyDelay[58] = 0;
nextEnemyX[58] = 587.5;
nextEnemyY[58] = 312.5;
nextEnemyLoop[58] = 0;
nextEnemyNumLoop[58] = 0;
maxEnemyPresent[58] = 0;
nextEnemyType[59] = 17;
nextEnemyDelay[59] = 0;
nextEnemyX[59] = 612.5;
nextEnemyY[59] = 287.5;
nextEnemyLoop[59] = 0;
nextEnemyNumLoop[59] = 0;
maxEnemyPresent[59] = 0;
nextEnemyType[60] = 17;
nextEnemyDelay[60] = 0;
nextEnemyX[60] = 637.5;
nextEnemyY[60] = 262.5;
nextEnemyLoop[60] = 0;
nextEnemyNumLoop[60] = 0;
maxEnemyPresent[60] = 0;
nextEnemyType[61] = 17;
nextEnemyDelay[61] = 0;
nextEnemyX[61] = 662.5;
nextEnemyY[61] = 237.5;
nextEnemyLoop[61] = 0;
nextEnemyNumLoop[61] = 0;
maxEnemyPresent[61] = 0;
nextEnemyType[62] = 17;
nextEnemyDelay[62] = 0;
nextEnemyX[62] = 687.5;
nextEnemyY[62] = 212.5;
nextEnemyLoop[62] = 0;
nextEnemyNumLoop[62] = 0;
maxEnemyPresent[62] = 0;
nextEnemyType[63] = 17;
nextEnemyDelay[63] = 50;
nextEnemyX[63] = 337.5;
nextEnemyY[63] = 112.5;
nextEnemyLoop[63] = 0;
nextEnemyNumLoop[63] = 0;
maxEnemyPresent[63] = 0;
nextEnemyType[64] = 17;
nextEnemyDelay[64] = 0;
nextEnemyX[64] = 362.5;
nextEnemyY[64] = 87.5;
nextEnemyLoop[64] = 0;
nextEnemyNumLoop[64] = 0;
maxEnemyPresent[64] = 0;
nextEnemyType[65] = 17;
nextEnemyDelay[65] = 0;
nextEnemyX[65] = 362.5;
nextEnemyY[65] = 137.5;
nextEnemyLoop[65] = 0;
nextEnemyNumLoop[65] = 0;
maxEnemyPresent[65] = 0;
nextEnemyType[66] = 17;
nextEnemyDelay[66] = 0;
nextEnemyX[66] = 387.5;
nextEnemyY[66] = 62.5;
nextEnemyLoop[66] = 0;
nextEnemyNumLoop[66] = 0;
maxEnemyPresent[66] = 0;
nextEnemyType[67] = 17;
nextEnemyDelay[67] = 0;
nextEnemyX[67] = 387.5;
nextEnemyY[67] = 162.5;
nextEnemyLoop[67] = 0;
nextEnemyNumLoop[67] = 0;
maxEnemyPresent[67] = 0;
nextEnemyType[68] = 17;
nextEnemyDelay[68] = 0;
nextEnemyX[68] = 412.5;
nextEnemyY[68] = 87.5;
nextEnemyLoop[68] = 0;
nextEnemyNumLoop[68] = 0;
maxEnemyPresent[68] = 0;
nextEnemyType[69] = 17;
nextEnemyDelay[69] = 0;
nextEnemyX[69] = 412.5;
nextEnemyY[69] = 137.5;
nextEnemyLoop[69] = 0;
nextEnemyNumLoop[69] = 0;
maxEnemyPresent[69] = 0;
nextEnemyType[70] = 17;
nextEnemyDelay[70] = 0;
nextEnemyX[70] = 437.5;
nextEnemyY[70] = 112.5;
nextEnemyLoop[70] = 0;
nextEnemyNumLoop[70] = 0;
maxEnemyPresent[70] = 0;
nextEnemyType[71] = 17;
nextEnemyDelay[71] = 50;
nextEnemyX[71] = 337.5;
nextEnemyY[71] = 337.5;
nextEnemyLoop[71] = 0;
nextEnemyNumLoop[71] = 0;
maxEnemyPresent[71] = 0;
nextEnemyType[72] = 17;
nextEnemyDelay[72] = 0;
nextEnemyX[72] = 362.5;
nextEnemyY[72] = 312.5;
nextEnemyLoop[72] = 0;
nextEnemyNumLoop[72] = 0;
maxEnemyPresent[72] = 0;
nextEnemyType[73] = 17;
nextEnemyDelay[73] = 0;
nextEnemyX[73] = 362.5;
nextEnemyY[73] = 362.5;
nextEnemyLoop[73] = 0;
nextEnemyNumLoop[73] = 0;
maxEnemyPresent[73] = 0;
nextEnemyType[74] = 17;
nextEnemyDelay[74] = 0;
nextEnemyX[74] = 387.5;
nextEnemyY[74] = 287.5;
nextEnemyLoop[74] = 0;
nextEnemyNumLoop[74] = 0;
maxEnemyPresent[74] = 0;
nextEnemyType[75] = 17;
nextEnemyDelay[75] = 0;
nextEnemyX[75] = 387.5;
nextEnemyY[75] = 387.5;
nextEnemyLoop[75] = 0;
nextEnemyNumLoop[75] = 0;
maxEnemyPresent[75] = 0;
nextEnemyType[76] = 17;
nextEnemyDelay[76] = 0;
nextEnemyX[76] = 412.5;
nextEnemyY[76] = 312.5;
nextEnemyLoop[76] = 0;
nextEnemyNumLoop[76] = 0;
maxEnemyPresent[76] = 0;
nextEnemyType[77] = 17;
nextEnemyDelay[77] = 0;
nextEnemyX[77] = 412.5;
nextEnemyY[77] = 362.5;
nextEnemyLoop[77] = 0;
nextEnemyNumLoop[77] = 0;
maxEnemyPresent[77] = 0;
nextEnemyType[78] = 17;
nextEnemyDelay[78] = 0;
nextEnemyX[78] = 437.5;
nextEnemyY[78] = 337.5;
nextEnemyLoop[78] = 0;
nextEnemyNumLoop[78] = 0;
maxEnemyPresent[78] = 0;
nextEnemyType[79] = 20;
nextEnemyDelay[79] = 550;
nextEnemyX[79] = 487.5;
nextEnemyY[79] = 237.5;
nextEnemyLoop[79] = 0;
nextEnemyNumLoop[79] = 0;
maxEnemyPresent[79] = 0;
nextEnemyType[80] = 19;
nextEnemyDelay[80] = -1;
nextEnemyX[80] = 537.5;
nextEnemyY[80] = 37.5;
nextEnemyLoop[80] = 0;
nextEnemyNumLoop[80] = 0;
maxEnemyPresent[80] = 0;
nextEnemyType[81] = 19;
nextEnemyDelay[81] = 200;
nextEnemyX[81] = 537.5;
nextEnemyY[81] = 387.5;
nextEnemyLoop[81] = 0;
nextEnemyNumLoop[81] = 0;
maxEnemyPresent[81] = 0;
nextEnemyType[82] = 18;
nextEnemyDelay[82] = 200;
nextEnemyX[82] = 537.5;
nextEnemyY[82] = 237.5;
nextEnemyLoop[82] = 0;
nextEnemyNumLoop[82] = 0;
maxEnemyPresent[82] = 0;
nextEnemyType[83] = 18;
nextEnemyDelay[83] = -1;
nextEnemyX[83] = 587.5;
nextEnemyY[83] = 87.5;
nextEnemyLoop[83] = 0;
nextEnemyNumLoop[83] = 0;
maxEnemyPresent[83] = 0;
nextEnemyType[84] = 18;
nextEnemyDelay[84] = 0;
nextEnemyX[84] = 587.5;
nextEnemyY[84] = 237.5;
nextEnemyLoop[84] = 0;
nextEnemyNumLoop[84] = 0;
maxEnemyPresent[84] = 0;
nextEnemyType[85] = 18;
nextEnemyDelay[85] = 0;
nextEnemyX[85] = 587.5;
nextEnemyY[85] = 387.5;
nextEnemyLoop[85] = 0;
nextEnemyNumLoop[85] = 0;
maxEnemyPresent[85] = 0;
nextEnemyType[86] = 19;
nextEnemyDelay[86] = 1000;
nextEnemyX[86] = 562.5;
nextEnemyY[86] = 62.5;
nextEnemyLoop[86] = 0;
nextEnemyNumLoop[86] = 0;
maxEnemyPresent[86] = 0;
nextEnemyType[87] = 19;
nextEnemyDelay[87] = 0;
nextEnemyX[87] = 562.5;
nextEnemyY[87] = 237.5;
nextEnemyLoop[87] = 0;
nextEnemyNumLoop[87] = 0;
maxEnemyPresent[87] = 0;
nextEnemyType[88] = 19;
nextEnemyDelay[88] = 0;
nextEnemyX[88] = 562.5;
nextEnemyY[88] = 387.5;
nextEnemyLoop[88] = 0;
nextEnemyNumLoop[88] = 0;
maxEnemyPresent[88] = 0;
nextEnemyType[89] = 17;
nextEnemyDelay[89] = -1;
nextEnemyX[89] = 562.5;
nextEnemyY[89] = 212.5;
nextEnemyLoop[89] = 0;
nextEnemyNumLoop[89] = 0;
maxEnemyPresent[89] = 0;
nextEnemyType[90] = 20;
nextEnemyDelay[90] = 500;
nextEnemyX[90] = 512.5;
nextEnemyY[90] = 112.5;
nextEnemyLoop[90] = 0;
nextEnemyNumLoop[90] = 0;
maxEnemyPresent[90] = 0;
nextEnemyType[91] = 20;
nextEnemyDelay[91] = 25;
nextEnemyX[91] = 512.5;
nextEnemyY[91] = 337.5;
nextEnemyLoop[91] = 0;
nextEnemyNumLoop[91] = 0;
maxEnemyPresent[91] = 0;
nextEnemyType[92] = 20;
nextEnemyDelay[92] = -1;
nextEnemyX[92] = 412.5;
nextEnemyY[92] = 237.5;
nextEnemyLoop[92] = 0;
nextEnemyNumLoop[92] = 0;
maxEnemyPresent[92] = 0;
nextEnemyType[93] = 20;
nextEnemyDelay[93] = 25;
nextEnemyX[93] = 587.5;
nextEnemyY[93] = 62.5;
nextEnemyLoop[93] = 0;
nextEnemyNumLoop[93] = 0;
maxEnemyPresent[93] = 0;
nextEnemyType[94] = 20;
nextEnemyDelay[94] = 25;
nextEnemyX[94] = 587.5;
nextEnemyY[94] = 387.5;
nextEnemyLoop[94] = 0;
nextEnemyNumLoop[94] = 0;
maxEnemyPresent[94] = 0;
nextEnemyType[95] = 17;
nextEnemyDelay[95] = -1;
nextEnemyX[95] = 512.5;
nextEnemyY[95] = 237.5;
nextEnemyLoop[95] = 0;
nextEnemyNumLoop[95] = 0;
maxEnemyPresent[95] = 0;
nextEnemyType[96] = 20;
nextEnemyDelay[96] = 1000;
nextEnemyX[96] = 512.5;
nextEnemyY[96] = 237.5;
nextEnemyLoop[96] = 0;
nextEnemyNumLoop[96] = 0;
maxEnemyPresent[96] = 0;
nextEnemyType[97] = 18;
nextEnemyDelay[97] = 0;
nextEnemyX[97] = 537.5;
nextEnemyY[97] = 87.5;
nextEnemyLoop[97] = 0;
nextEnemyNumLoop[97] = 0;
maxEnemyPresent[97] = 0;
nextEnemyType[98] = 18;
nextEnemyDelay[98] = 0;
nextEnemyX[98] = 537.5;
nextEnemyY[98] = 362.5;
nextEnemyLoop[98] = 0;
nextEnemyNumLoop[98] = 0;
maxEnemyPresent[98] = 0;
nextEnemyType[99] = 20;
nextEnemyDelay[99] = -1;
nextEnemyX[99] = 287.5;
nextEnemyY[99] = 87.5;
nextEnemyLoop[99] = 0;
nextEnemyNumLoop[99] = 0;
maxEnemyPresent[99] = 0;
nextEnemyType[100] = 20;
nextEnemyDelay[100] = 0;
nextEnemyX[100] = 287.5;
nextEnemyY[100] = 362.5;
nextEnemyLoop[100] = 0;
nextEnemyNumLoop[100] = 0;
maxEnemyPresent[100] = 0;
nextEnemyType[101] = 20;
nextEnemyDelay[101] = -1;
nextEnemyX[101] = 412.5;
nextEnemyY[101] = 112.5;
nextEnemyLoop[101] = 0;
nextEnemyNumLoop[101] = 0;
maxEnemyPresent[101] = 0;
nextEnemyType[102] = 20;
nextEnemyDelay[102] = 0;
nextEnemyX[102] = 412.5;
nextEnemyY[102] = 337.5;
nextEnemyLoop[102] = 0;
nextEnemyNumLoop[102] = 0;
maxEnemyPresent[102] = 0;
nextEnemyType[103] = 20;
nextEnemyDelay[103] = -1;
nextEnemyX[103] = 612.5;
nextEnemyY[103] = 162.5;
nextEnemyLoop[103] = 0;
nextEnemyNumLoop[103] = 0;
maxEnemyPresent[103] = 0;
nextEnemyType[104] = 20;
nextEnemyDelay[104] = 0;
nextEnemyX[104] = 612.5;
nextEnemyY[104] = 312.5;
nextEnemyLoop[104] = 0;
nextEnemyNumLoop[104] = 0;
maxEnemyPresent[104] = 0;
} else {
if (_arg1 == 8){
if (Difficulty != "Hard"){
StartParticles = false;
};
nextEnemyType[0] = 21;
nextEnemyDelay[0] = 10;
nextEnemyX[0] = 530;
nextEnemyY[0] = 212.5;
nextEnemyLoop[0] = 0;
nextEnemyNumLoop[0] = 0;
maxEnemyPresent[0] = 0;
nextEnemyType[1] = 26;
nextEnemyDelay[1] = 0;
nextEnemyX[1] = 530;
nextEnemyY[1] = 212.5;
nextEnemyLoop[1] = 0;
nextEnemyNumLoop[1] = 0;
maxEnemyPresent[1] = 0;
nextEnemyType[2] = 23;
nextEnemyDelay[2] = 0;
nextEnemyX[2] = 530;
nextEnemyY[2] = 212.5;
nextEnemyLoop[2] = 0;
nextEnemyNumLoop[2] = 0;
maxEnemyPresent[2] = 0;
nextEnemyType[3] = 24;
nextEnemyDelay[3] = 0;
nextEnemyX[3] = 530;
nextEnemyY[3] = 212.5;
nextEnemyLoop[3] = 0;
nextEnemyNumLoop[3] = 0;
maxEnemyPresent[3] = 0;
nextEnemyType[4] = 25;
nextEnemyDelay[4] = 0;
nextEnemyX[4] = 530;
nextEnemyY[4] = 212.5;
nextEnemyLoop[4] = 0;
nextEnemyNumLoop[4] = 0;
maxEnemyPresent[4] = 0;
nextEnemyType[5] = 22;
nextEnemyDelay[5] = 0;
nextEnemyX[5] = 530;
nextEnemyY[5] = 212.5;
nextEnemyLoop[5] = 0;
nextEnemyNumLoop[5] = 0;
maxEnemyPresent[5] = 0;
} else {
if (_arg1 == 90210){
StartParticles = false;
nextEnemyType[0] = 0;
nextEnemyDelay[0] = 15;
nextEnemyX[0] = 212.5;
nextEnemyY[0] = 12.5;
nextEnemyLoop[0] = 0;
nextEnemyNumLoop[0] = 0;
maxEnemyPresent[0] = 0;
nextEnemyType[1] = 0;
nextEnemyDelay[1] = 0;
nextEnemyX[1] = 237.5;
nextEnemyY[1] = 437.5;
nextEnemyLoop[1] = 0;
nextEnemyNumLoop[1] = 0;
maxEnemyPresent[1] = 0;
nextEnemyType[2] = 0;
nextEnemyDelay[2] = 20;
nextEnemyX[2] = 287.5;
nextEnemyY[2] = 12.5;
nextEnemyLoop[2] = 0;
nextEnemyNumLoop[2] = 0;
maxEnemyPresent[2] = 0;
nextEnemyType[3] = 0;
nextEnemyDelay[3] = 0;
nextEnemyX[3] = 287.5;
nextEnemyY[3] = 437.5;
nextEnemyLoop[3] = 0;
nextEnemyNumLoop[3] = 0;
maxEnemyPresent[3] = 0;
nextEnemyType[4] = 0;
nextEnemyDelay[4] = 20;
nextEnemyX[4] = 362.5;
nextEnemyY[4] = 12.5;
nextEnemyLoop[4] = 0;
nextEnemyNumLoop[4] = 0;
maxEnemyPresent[4] = 0;
nextEnemyType[5] = 0;
nextEnemyDelay[5] = 0;
nextEnemyX[5] = 362.5;
nextEnemyY[5] = 437.5;
nextEnemyLoop[5] = 0;
nextEnemyNumLoop[5] = 0;
maxEnemyPresent[5] = 0;
nextEnemyType[6] = 0;
nextEnemyDelay[6] = 20;
nextEnemyX[6] = 412.5;
nextEnemyY[6] = 12.5;
nextEnemyLoop[6] = 0;
nextEnemyNumLoop[6] = 0;
maxEnemyPresent[6] = 0;
nextEnemyType[7] = 0;
nextEnemyDelay[7] = 0;
nextEnemyX[7] = 412.5;
nextEnemyY[7] = 437.5;
nextEnemyLoop[7] = 0;
nextEnemyNumLoop[7] = 0;
maxEnemyPresent[7] = 0;
nextEnemyType[8] = 0;
nextEnemyDelay[8] = 20;
nextEnemyX[8] = 487.5;
nextEnemyY[8] = 12.5;
nextEnemyLoop[8] = 0;
nextEnemyNumLoop[8] = 0;
maxEnemyPresent[8] = 0;
nextEnemyType[9] = 0;
nextEnemyDelay[9] = 0;
nextEnemyX[9] = 487.5;
nextEnemyY[9] = 437.5;
nextEnemyLoop[9] = 0;
nextEnemyNumLoop[9] = 0;
maxEnemyPresent[9] = 0;
nextEnemyType[10] = 0;
nextEnemyDelay[10] = 20;
nextEnemyX[10] = 562.5;
nextEnemyY[10] = 12.5;
nextEnemyLoop[10] = 0;
nextEnemyNumLoop[10] = 0;
maxEnemyPresent[10] = 0;
nextEnemyType[11] = 0;
nextEnemyDelay[11] = 0;
nextEnemyX[11] = 562.5;
nextEnemyY[11] = 437.5;
nextEnemyLoop[11] = 0;
nextEnemyNumLoop[11] = 0;
maxEnemyPresent[11] = 0;
nextEnemyType[12] = 0;
nextEnemyDelay[12] = 20;
nextEnemyX[12] = 637.5;
nextEnemyY[12] = 12.5;
nextEnemyLoop[12] = 0;
nextEnemyNumLoop[12] = 0;
maxEnemyPresent[12] = 0;
nextEnemyType[13] = 0;
nextEnemyDelay[13] = 0;
nextEnemyX[13] = 637.5;
nextEnemyY[13] = 437.5;
nextEnemyLoop[13] = 0;
nextEnemyNumLoop[13] = 0;
maxEnemyPresent[13] = 0;
nextEnemyType[14] = 0;
nextEnemyDelay[14] = 20;
nextEnemyX[14] = 687.5;
nextEnemyY[14] = 12.5;
nextEnemyLoop[14] = 0;
nextEnemyNumLoop[14] = 0;
maxEnemyPresent[14] = 0;
nextEnemyType[15] = 0;
nextEnemyDelay[15] = 0;
nextEnemyX[15] = 687.5;
nextEnemyY[15] = 437.5;
nextEnemyLoop[15] = 0;
nextEnemyNumLoop[15] = 0;
maxEnemyPresent[15] = 0;
nextEnemyType[16] = 0;
nextEnemyDelay[16] = -2;
nextEnemyX[16] = 412.5;
nextEnemyY[16] = 237.5;
nextEnemyLoop[16] = 0;
nextEnemyNumLoop[16] = 10;
maxEnemyPresent[16] = 0;
nextEnemyType[17] = 1;
nextEnemyDelay[17] = 10;
nextEnemyX[17] = 687.5;
nextEnemyY[17] = 212.5;
nextEnemyLoop[17] = 0;
nextEnemyNumLoop[17] = 0;
maxEnemyPresent[17] = 0;
nextEnemyType[18] = 1;
nextEnemyDelay[18] = 10;
nextEnemyX[18] = 687.5;
nextEnemyY[18] = 237.5;
nextEnemyLoop[18] = 0;
nextEnemyNumLoop[18] = 0;
maxEnemyPresent[18] = 0;
nextEnemyType[19] = 1;
nextEnemyDelay[19] = 10;
nextEnemyX[19] = 687.5;
nextEnemyY[19] = 187.5;
nextEnemyLoop[19] = 0;
nextEnemyNumLoop[19] = 0;
maxEnemyPresent[19] = 0;
nextEnemyType[20] = 1;
nextEnemyDelay[20] = 10;
nextEnemyX[20] = 687.5;
nextEnemyY[20] = 262.5;
nextEnemyLoop[20] = 0;
nextEnemyNumLoop[20] = 0;
maxEnemyPresent[20] = 0;
nextEnemyType[21] = 1;
nextEnemyDelay[21] = 10;
nextEnemyX[21] = 687.5;
nextEnemyY[21] = 162.5;
nextEnemyLoop[21] = 0;
nextEnemyNumLoop[21] = 0;
maxEnemyPresent[21] = 0;
nextEnemyType[22] = 1;
nextEnemyDelay[22] = 10;
nextEnemyX[22] = 687.5;
nextEnemyY[22] = 312.5;
nextEnemyLoop[22] = 0;
nextEnemyNumLoop[22] = 0;
maxEnemyPresent[22] = 0;
nextEnemyType[23] = 1;
nextEnemyDelay[23] = 10;
nextEnemyX[23] = 687.5;
nextEnemyY[23] = 112.5;
nextEnemyLoop[23] = 0;
nextEnemyNumLoop[23] = 0;
maxEnemyPresent[23] = 0;
nextEnemyType[24] = 1;
nextEnemyDelay[24] = 10;
nextEnemyX[24] = 687.5;
nextEnemyY[24] = 362.5;
nextEnemyLoop[24] = 0;
nextEnemyNumLoop[24] = 0;
maxEnemyPresent[24] = 0;
nextEnemyType[25] = 1;
nextEnemyDelay[25] = 10;
nextEnemyX[25] = 687.5;
nextEnemyY[25] = 62.5;
nextEnemyLoop[25] = 0;
nextEnemyNumLoop[25] = 0;
maxEnemyPresent[25] = 0;
nextEnemyType[26] = 1;
nextEnemyDelay[26] = 10;
nextEnemyX[26] = 687.5;
nextEnemyY[26] = 387.5;
nextEnemyLoop[26] = 0;
nextEnemyNumLoop[26] = 0;
maxEnemyPresent[26] = 0;
nextEnemyType[27] = 1;
nextEnemyDelay[27] = 10;
nextEnemyX[27] = 687.5;
nextEnemyY[27] = 12.5;
nextEnemyLoop[27] = 0;
nextEnemyNumLoop[27] = 0;
maxEnemyPresent[27] = 0;
nextEnemyType[28] = 1;
nextEnemyDelay[28] = 10;
nextEnemyX[28] = 687.5;
nextEnemyY[28] = 437.5;
nextEnemyLoop[28] = 0;
nextEnemyNumLoop[28] = 0;
maxEnemyPresent[28] = 0;
nextEnemyType[29] = 0;
nextEnemyDelay[29] = -2;
nextEnemyX[29] = 462.5;
nextEnemyY[29] = 237.5;
nextEnemyLoop[29] = 17;
nextEnemyNumLoop[29] = 10;
maxEnemyPresent[29] = 0;
nextEnemyType[30] = 2;
nextEnemyDelay[30] = 10;
nextEnemyX[30] = 637.5;
nextEnemyY[30] = 12.5;
nextEnemyLoop[30] = 0;
nextEnemyNumLoop[30] = 0;
maxEnemyPresent[30] = 0;
nextEnemyType[31] = 2;
nextEnemyDelay[31] = 10;
nextEnemyX[31] = 637.5;
nextEnemyY[31] = 437.5;
nextEnemyLoop[31] = 0;
nextEnemyNumLoop[31] = 0;
maxEnemyPresent[31] = 0;
nextEnemyType[32] = 2;
nextEnemyDelay[32] = 10;
nextEnemyX[32] = 337.5;
nextEnemyY[32] = 12.5;
nextEnemyLoop[32] = 0;
nextEnemyNumLoop[32] = 0;
maxEnemyPresent[32] = 0;
nextEnemyType[33] = 2;
nextEnemyDelay[33] = 10;
nextEnemyX[33] = 337.5;
nextEnemyY[33] = 437.5;
nextEnemyLoop[33] = 0;
nextEnemyNumLoop[33] = 0;
maxEnemyPresent[33] = 0;
nextEnemyType[34] = 0;
nextEnemyDelay[34] = -2;
nextEnemyX[34] = 537.5;
nextEnemyY[34] = 212.5;
nextEnemyLoop[34] = 30;
nextEnemyNumLoop[34] = 10;
maxEnemyPresent[34] = 0;
nextEnemyType[35] = 3;
nextEnemyDelay[35] = 10;
nextEnemyX[35] = 612.5;
nextEnemyY[35] = 37.5;
nextEnemyLoop[35] = 0;
nextEnemyNumLoop[35] = 0;
maxEnemyPresent[35] = 0;
nextEnemyType[36] = 3;
nextEnemyDelay[36] = 10;
nextEnemyX[36] = 612.5;
nextEnemyY[36] = 212.5;
nextEnemyLoop[36] = 0;
nextEnemyNumLoop[36] = 0;
maxEnemyPresent[36] = 0;
nextEnemyType[37] = 3;
nextEnemyDelay[37] = 10;
nextEnemyX[37] = 612.5;
nextEnemyY[37] = 412.5;
nextEnemyLoop[37] = 0;
nextEnemyNumLoop[37] = 0;
maxEnemyPresent[37] = 0;
nextEnemyType[38] = 0;
nextEnemyDelay[38] = -1;
nextEnemyX[38] = 537.5;
nextEnemyY[38] = 212.5;
nextEnemyLoop[38] = 0;
nextEnemyNumLoop[38] = 0;
maxEnemyPresent[38] = 0;
nextEnemyType[39] = 4;
nextEnemyDelay[39] = -2;
nextEnemyX[39] = 287.5;
nextEnemyY[39] = 62.5;
nextEnemyLoop[39] = 35;
nextEnemyNumLoop[39] = 5;
maxEnemyPresent[39] = 0;
nextEnemyType[40] = 4;
nextEnemyDelay[40] = 0;
nextEnemyX[40] = 287.5;
nextEnemyY[40] = 387.5;
nextEnemyLoop[40] = 0;
nextEnemyNumLoop[40] = 0;
maxEnemyPresent[40] = 0;
nextEnemyType[41] = 0;
nextEnemyDelay[41] = 0;
nextEnemyX[41] = 587.5;
nextEnemyY[41] = 212.5;
nextEnemyLoop[41] = 0;
nextEnemyNumLoop[41] = 0;
maxEnemyPresent[41] = 0;
nextEnemyType[42] = 4;
nextEnemyDelay[42] = 0;
nextEnemyX[42] = 612.5;
nextEnemyY[42] = 62.5;
nextEnemyLoop[42] = 0;
nextEnemyNumLoop[42] = 0;
maxEnemyPresent[42] = 0;
nextEnemyType[43] = 4;
nextEnemyDelay[43] = 0;
nextEnemyX[43] = 612.5;
nextEnemyY[43] = 387.5;
nextEnemyLoop[43] = 0;
nextEnemyNumLoop[43] = 0;
maxEnemyPresent[43] = 0;
nextEnemyType[44] = 0;
nextEnemyDelay[44] = -1;
nextEnemyX[44] = 437.5;
nextEnemyY[44] = 212.5;
nextEnemyLoop[44] = 0;
nextEnemyNumLoop[44] = 0;
maxEnemyPresent[44] = 0;
nextEnemyType[45] = 0;
nextEnemyDelay[45] = -2;
nextEnemyX[45] = 562.5;
nextEnemyY[45] = 212.5;
nextEnemyLoop[45] = 40;
nextEnemyNumLoop[45] = 5;
maxEnemyPresent[45] = 0;
nextEnemyType[46] = 4;
nextEnemyDelay[46] = 10;
nextEnemyX[46] = 287.5;
nextEnemyY[46] = 212.5;
nextEnemyLoop[46] = 0;
nextEnemyNumLoop[46] = 0;
maxEnemyPresent[46] = 0;
nextEnemyType[47] = 5;
nextEnemyDelay[47] = 0;
nextEnemyX[47] = 462.5;
nextEnemyY[47] = 212.5;
nextEnemyLoop[47] = 0;
nextEnemyNumLoop[47] = 0;
maxEnemyPresent[47] = 0;
nextEnemyType[48] = 3;
nextEnemyDelay[48] = 0;
nextEnemyX[48] = 637.5;
nextEnemyY[48] = 62.5;
nextEnemyLoop[48] = 0;
nextEnemyNumLoop[48] = 0;
maxEnemyPresent[48] = 0;
nextEnemyType[49] = 3;
nextEnemyDelay[49] = 0;
nextEnemyX[49] = 637.5;
nextEnemyY[49] = 387.5;
nextEnemyLoop[49] = 0;
nextEnemyNumLoop[49] = 0;
maxEnemyPresent[49] = 0;
nextEnemyType[50] = 0;
nextEnemyDelay[50] = -1;
nextEnemyX[50] = 562.5;
nextEnemyY[50] = 212.5;
nextEnemyLoop[50] = 0;
nextEnemyNumLoop[50] = 0;
maxEnemyPresent[50] = 0;
nextEnemyType[51] = 6;
nextEnemyDelay[51] = 5;
nextEnemyX[51] = 337.5;
nextEnemyY[51] = 12.5;
nextEnemyLoop[51] = 0;
nextEnemyNumLoop[51] = 0;
maxEnemyPresent[51] = 0;
nextEnemyType[52] = 6;
nextEnemyDelay[52] = 5;
nextEnemyX[52] = 362.5;
nextEnemyY[52] = 437.5;
nextEnemyLoop[52] = 0;
nextEnemyNumLoop[52] = 0;
maxEnemyPresent[52] = 0;
nextEnemyType[53] = 6;
nextEnemyDelay[53] = 5;
nextEnemyX[53] = 387.5;
nextEnemyY[53] = 12.5;
nextEnemyLoop[53] = 0;
nextEnemyNumLoop[53] = 0;
maxEnemyPresent[53] = 0;
nextEnemyType[54] = 6;
nextEnemyDelay[54] = 5;
nextEnemyX[54] = 412.5;
nextEnemyY[54] = 437.5;
nextEnemyLoop[54] = 0;
nextEnemyNumLoop[54] = 0;
maxEnemyPresent[54] = 0;
nextEnemyType[55] = 6;
nextEnemyDelay[55] = 5;
nextEnemyX[55] = 537.5;
nextEnemyY[55] = 12.5;
nextEnemyLoop[55] = 0;
nextEnemyNumLoop[55] = 0;
maxEnemyPresent[55] = 0;
nextEnemyType[56] = 6;
nextEnemyDelay[56] = 5;
nextEnemyX[56] = 562.5;
nextEnemyY[56] = 437.5;
nextEnemyLoop[56] = 0;
nextEnemyNumLoop[56] = 0;
maxEnemyPresent[56] = 0;
nextEnemyType[57] = 6;
nextEnemyDelay[57] = 5;
nextEnemyX[57] = 587.5;
nextEnemyY[57] = 12.5;
nextEnemyLoop[57] = 0;
nextEnemyNumLoop[57] = 0;
maxEnemyPresent[57] = 0;
nextEnemyType[58] = 6;
nextEnemyDelay[58] = 5;
nextEnemyX[58] = 612.5;
nextEnemyY[58] = 437.5;
nextEnemyLoop[58] = 0;
nextEnemyNumLoop[58] = 0;
maxEnemyPresent[58] = 0;
nextEnemyType[59] = 6;
nextEnemyDelay[59] = 5;
nextEnemyX[59] = 637.5;
nextEnemyY[59] = 12.5;
nextEnemyLoop[59] = 0;
nextEnemyNumLoop[59] = 0;
maxEnemyPresent[59] = 0;
nextEnemyType[60] = 6;
nextEnemyDelay[60] = 5;
nextEnemyX[60] = 662.5;
nextEnemyY[60] = 437.5;
nextEnemyLoop[60] = 0;
nextEnemyNumLoop[60] = 0;
maxEnemyPresent[60] = 0;
nextEnemyType[61] = 6;
nextEnemyDelay[61] = 5;
nextEnemyX[61] = 687.5;
nextEnemyY[61] = 12.5;
nextEnemyLoop[61] = 0;
nextEnemyNumLoop[61] = 0;
maxEnemyPresent[61] = 0;
nextEnemyType[62] = 0;
nextEnemyDelay[62] = -2;
nextEnemyX[62] = 487.5;
nextEnemyY[62] = 212.5;
nextEnemyLoop[62] = 51;
nextEnemyNumLoop[62] = 8;
maxEnemyPresent[62] = 0;
nextEnemyType[63] = 7;
nextEnemyDelay[63] = 5;
nextEnemyX[63] = 512.5;
nextEnemyY[63] = 12.5;
nextEnemyLoop[63] = 0;
nextEnemyNumLoop[63] = 0;
maxEnemyPresent[63] = 0;
nextEnemyType[64] = 7;
nextEnemyDelay[64] = 5;
nextEnemyX[64] = 537.5;
nextEnemyY[64] = 437.5;
nextEnemyLoop[64] = 0;
nextEnemyNumLoop[64] = 0;
maxEnemyPresent[64] = 0;
nextEnemyType[65] = 7;
nextEnemyDelay[65] = 5;
nextEnemyX[65] = 562.5;
nextEnemyY[65] = 12.5;
nextEnemyLoop[65] = 0;
nextEnemyNumLoop[65] = 0;
maxEnemyPresent[65] = 0;
nextEnemyType[66] = 7;
nextEnemyDelay[66] = 5;
nextEnemyX[66] = 612.5;
nextEnemyY[66] = 437.5;
nextEnemyLoop[66] = 0;
nextEnemyNumLoop[66] = 0;
maxEnemyPresent[66] = 0;
nextEnemyType[67] = 7;
nextEnemyDelay[67] = 5;
nextEnemyX[67] = 637.5;
nextEnemyY[67] = 12.5;
nextEnemyLoop[67] = 0;
nextEnemyNumLoop[67] = 0;
maxEnemyPresent[67] = 0;
nextEnemyType[68] = 7;
nextEnemyDelay[68] = 5;
nextEnemyX[68] = 662.5;
nextEnemyY[68] = 437.5;
nextEnemyLoop[68] = 0;
nextEnemyNumLoop[68] = 0;
maxEnemyPresent[68] = 0;
nextEnemyType[69] = 7;
nextEnemyDelay[69] = 5;
nextEnemyX[69] = 687.5;
nextEnemyY[69] = 12.5;
nextEnemyLoop[69] = 0;
nextEnemyNumLoop[69] = 0;
maxEnemyPresent[69] = 0;
nextEnemyType[70] = 0;
nextEnemyDelay[70] = -2;
nextEnemyX[70] = 512.5;
nextEnemyY[70] = 212.5;
nextEnemyLoop[70] = 63;
nextEnemyNumLoop[70] = 10;
maxEnemyPresent[70] = 0;
nextEnemyType[71] = 8;
nextEnemyDelay[71] = 10;
nextEnemyX[71] = 512.5;
nextEnemyY[71] = 137.5;
nextEnemyLoop[71] = 0;
nextEnemyNumLoop[71] = 0;
maxEnemyPresent[71] = 0;
nextEnemyType[72] = 8;
nextEnemyDelay[72] = 0;
nextEnemyX[72] = 512.5;
nextEnemyY[72] = 337.5;
nextEnemyLoop[72] = 0;
nextEnemyNumLoop[72] = 0;
maxEnemyPresent[72] = 0;
nextEnemyType[73] = 6;
nextEnemyDelay[73] = 20;
nextEnemyX[73] = 687.5;
nextEnemyY[73] = 162.5;
nextEnemyLoop[73] = 0;
nextEnemyNumLoop[73] = 0;
maxEnemyPresent[73] = 0;
nextEnemyType[74] = 6;
nextEnemyDelay[74] = 0;
nextEnemyX[74] = 687.5;
nextEnemyY[74] = 187.5;
nextEnemyLoop[74] = 0;
nextEnemyNumLoop[74] = 0;
maxEnemyPresent[74] = 0;
nextEnemyType[75] = 6;
nextEnemyDelay[75] = 0;
nextEnemyX[75] = 687.5;
nextEnemyY[75] = 212.5;
nextEnemyLoop[75] = 0;
nextEnemyNumLoop[75] = 0;
maxEnemyPresent[75] = 0;
nextEnemyType[76] = 6;
nextEnemyDelay[76] = 0;
nextEnemyX[76] = 687.5;
nextEnemyY[76] = 237.5;
nextEnemyLoop[76] = 0;
nextEnemyNumLoop[76] = 0;
maxEnemyPresent[76] = 0;
nextEnemyType[77] = 6;
nextEnemyDelay[77] = 0;
nextEnemyX[77] = 687.5;
nextEnemyY[77] = 262.5;
nextEnemyLoop[77] = 0;
nextEnemyNumLoop[77] = 0;
maxEnemyPresent[77] = 0;
nextEnemyType[78] = 6;
nextEnemyDelay[78] = 20;
nextEnemyX[78] = 687.5;
nextEnemyY[78] = 162.5;
nextEnemyLoop[78] = 0;
nextEnemyNumLoop[78] = 0;
maxEnemyPresent[78] = 0;
nextEnemyType[79] = 6;
nextEnemyDelay[79] = 0;
nextEnemyX[79] = 687.5;
nextEnemyY[79] = 187.5;
nextEnemyLoop[79] = 0;
nextEnemyNumLoop[79] = 0;
maxEnemyPresent[79] = 0;
nextEnemyType[80] = 6;
nextEnemyDelay[80] = 0;
nextEnemyX[80] = 687.5;
nextEnemyY[80] = 212.5;
nextEnemyLoop[80] = 0;
nextEnemyNumLoop[80] = 0;
maxEnemyPresent[80] = 0;
nextEnemyType[81] = 6;
nextEnemyDelay[81] = 0;
nextEnemyX[81] = 687.5;
nextEnemyY[81] = 237.5;
nextEnemyLoop[81] = 0;
nextEnemyNumLoop[81] = 0;
maxEnemyPresent[81] = 0;
nextEnemyType[82] = 6;
nextEnemyDelay[82] = 0;
nextEnemyX[82] = 687.5;
nextEnemyY[82] = 262.5;
nextEnemyLoop[82] = 0;
nextEnemyNumLoop[82] = 0;
maxEnemyPresent[82] = 0;
nextEnemyType[83] = 6;
nextEnemyDelay[83] = 50;
nextEnemyX[83] = 687.5;
nextEnemyY[83] = 112.5;
nextEnemyLoop[83] = 0;
nextEnemyNumLoop[83] = 0;
maxEnemyPresent[83] = 0;
nextEnemyType[84] = 6;
nextEnemyDelay[84] = 0;
nextEnemyX[84] = 687.5;
nextEnemyY[84] = 137.5;
nextEnemyLoop[84] = 0;
nextEnemyNumLoop[84] = 0;
maxEnemyPresent[84] = 0;
nextEnemyType[85] = 6;
nextEnemyDelay[85] = 0;
nextEnemyX[85] = 687.5;
nextEnemyY[85] = 162.5;
nextEnemyLoop[85] = 0;
nextEnemyNumLoop[85] = 0;
maxEnemyPresent[85] = 0;
nextEnemyType[86] = 6;
nextEnemyDelay[86] = 0;
nextEnemyX[86] = 687.5;
nextEnemyY[86] = 187.5;
nextEnemyLoop[86] = 0;
nextEnemyNumLoop[86] = 0;
maxEnemyPresent[86] = 0;
nextEnemyType[87] = 6;
nextEnemyDelay[87] = 0;
nextEnemyX[87] = 687.5;
nextEnemyY[87] = 212.5;
nextEnemyLoop[87] = 0;
nextEnemyNumLoop[87] = 0;
maxEnemyPresent[87] = 0;
nextEnemyType[88] = 6;
nextEnemyDelay[88] = 0;
nextEnemyX[88] = 687.5;
nextEnemyY[88] = 237.5;
nextEnemyLoop[88] = 0;
nextEnemyNumLoop[88] = 0;
maxEnemyPresent[88] = 0;
nextEnemyType[89] = 6;
nextEnemyDelay[89] = 0;
nextEnemyX[89] = 687.5;
nextEnemyY[89] = 262.5;
nextEnemyLoop[89] = 0;
nextEnemyNumLoop[89] = 0;
maxEnemyPresent[89] = 0;
nextEnemyType[90] = 6;
nextEnemyDelay[90] = 0;
nextEnemyX[90] = 687.5;
nextEnemyY[90] = 287.5;
nextEnemyLoop[90] = 0;
nextEnemyNumLoop[90] = 0;
maxEnemyPresent[90] = 0;
nextEnemyType[91] = 6;
nextEnemyDelay[91] = 0;
nextEnemyX[91] = 687.5;
nextEnemyY[91] = 312.5;
nextEnemyLoop[91] = 0;
nextEnemyNumLoop[91] = 0;
maxEnemyPresent[91] = 0;
nextEnemyType[92] = 6;
nextEnemyDelay[92] = 0;
nextEnemyX[92] = 687.5;
nextEnemyY[92] = 337.5;
nextEnemyLoop[92] = 0;
nextEnemyNumLoop[92] = 0;
maxEnemyPresent[92] = 0;
nextEnemyType[93] = 0;
nextEnemyDelay[93] = -1;
nextEnemyX[93] = 512.5;
nextEnemyY[93] = 212.5;
nextEnemyLoop[93] = 0;
nextEnemyNumLoop[93] = 0;
maxEnemyPresent[93] = 0;
nextEnemyType[94] = 0;
nextEnemyDelay[94] = -2;
nextEnemyX[94] = 512.5;
nextEnemyY[94] = 212.5;
nextEnemyLoop[94] = 70;
nextEnemyNumLoop[94] = 5;
maxEnemyPresent[94] = 0;
nextEnemyType[95] = 9;
nextEnemyDelay[95] = 20;
nextEnemyX[95] = 562.5;
nextEnemyY[95] = 112.5;
nextEnemyLoop[95] = 0;
nextEnemyNumLoop[95] = 0;
maxEnemyPresent[95] = 0;
nextEnemyType[96] = 9;
nextEnemyDelay[96] = 20;
nextEnemyX[96] = 587.5;
nextEnemyY[96] = 337.5;
nextEnemyLoop[96] = 0;
nextEnemyNumLoop[96] = 0;
maxEnemyPresent[96] = 0;
nextEnemyType[97] = 10;
nextEnemyDelay[97] = -1;
nextEnemyX[97] = 537.5;
nextEnemyY[97] = 212.5;
nextEnemyLoop[97] = 0;
nextEnemyNumLoop[97] = 0;
maxEnemyPresent[97] = 0;
nextEnemyType[98] = 10;
nextEnemyDelay[98] = 20;
nextEnemyX[98] = 512.5;
nextEnemyY[98] = 87.5;
nextEnemyLoop[98] = 0;
nextEnemyNumLoop[98] = 0;
maxEnemyPresent[98] = 0;
nextEnemyType[99] = 10;
nextEnemyDelay[99] = 20;
nextEnemyX[99] = 487.5;
nextEnemyY[99] = 212.5;
nextEnemyLoop[99] = 0;
nextEnemyNumLoop[99] = 0;
maxEnemyPresent[99] = 0;
nextEnemyType[100] = 10;
nextEnemyDelay[100] = 20;
nextEnemyX[100] = 487.5;
nextEnemyY[100] = 412.5;
nextEnemyLoop[100] = 0;
nextEnemyNumLoop[100] = 0;
maxEnemyPresent[100] = 0;
nextEnemyType[101] = 9;
nextEnemyDelay[101] = 30;
nextEnemyX[101] = 612.5;
nextEnemyY[101] = 87.5;
nextEnemyLoop[101] = 0;
nextEnemyNumLoop[101] = 0;
maxEnemyPresent[101] = 0;
nextEnemyType[102] = 9;
nextEnemyDelay[102] = 0;
nextEnemyX[102] = 612.5;
nextEnemyY[102] = 362.5;
nextEnemyLoop[102] = 0;
nextEnemyNumLoop[102] = 0;
maxEnemyPresent[102] = 0;
nextEnemyType[103] = 0;
nextEnemyDelay[103] = -1;
nextEnemyX[103] = 537.5;
nextEnemyY[103] = 212.5;
nextEnemyLoop[103] = 0;
nextEnemyNumLoop[103] = 0;
maxEnemyPresent[103] = 0;
nextEnemyType[104] = 0;
nextEnemyDelay[104] = -2;
nextEnemyX[104] = 537.5;
nextEnemyY[104] = 212.5;
nextEnemyLoop[104] = 95;
nextEnemyNumLoop[104] = 4;
maxEnemyPresent[104] = 0;
nextEnemyType[105] = 11;
nextEnemyDelay[105] = 50;
nextEnemyX[105] = 512.5;
nextEnemyY[105] = 212.5;
nextEnemyLoop[105] = 0;
nextEnemyNumLoop[105] = 0;
maxEnemyPresent[105] = 0;
nextEnemyType[106] = 10;
nextEnemyDelay[106] = 100;
nextEnemyX[106] = 587.5;
nextEnemyY[106] = 62.5;
nextEnemyLoop[106] = 0;
nextEnemyNumLoop[106] = 0;
maxEnemyPresent[106] = 0;
nextEnemyType[107] = 10;
nextEnemyDelay[107] = 200;
nextEnemyX[107] = 612.5;
nextEnemyY[107] = 387.5;
nextEnemyLoop[107] = 0;
nextEnemyNumLoop[107] = 0;
maxEnemyPresent[107] = 0;
nextEnemyType[108] = 10;
nextEnemyDelay[108] = 300;
nextEnemyX[108] = 612.5;
nextEnemyY[108] = 62.5;
nextEnemyLoop[108] = 0;
nextEnemyNumLoop[108] = 0;
maxEnemyPresent[108] = 0;
nextEnemyType[109] = 0;
nextEnemyDelay[109] = -2;
nextEnemyX[109] = 562.5;
nextEnemyY[109] = 212.5;
nextEnemyLoop[109] = 106;
nextEnemyNumLoop[109] = 3;
maxEnemyPresent[109] = 0;
nextEnemyType[110] = 0;
nextEnemyDelay[110] = -1;
nextEnemyX[110] = 537.5;
nextEnemyY[110] = 212.5;
nextEnemyLoop[110] = 0;
nextEnemyNumLoop[110] = 0;
maxEnemyPresent[110] = 0;
nextEnemyType[111] = 12;
nextEnemyDelay[111] = 10;
nextEnemyX[111] = 637.5;
nextEnemyY[111] = 212.5;
nextEnemyLoop[111] = 0;
nextEnemyNumLoop[111] = 0;
maxEnemyPresent[111] = 0;
nextEnemyType[112] = 17;
nextEnemyDelay[112] = 10;
nextEnemyX[112] = 562.5;
nextEnemyY[112] = 437.5;
nextEnemyLoop[112] = 0;
nextEnemyNumLoop[112] = 0;
maxEnemyPresent[112] = 0;
nextEnemyType[113] = 17;
nextEnemyDelay[113] = 0;
nextEnemyX[113] = 587.5;
nextEnemyY[113] = 412.5;
nextEnemyLoop[113] = 0;
nextEnemyNumLoop[113] = 0;
maxEnemyPresent[113] = 0;
nextEnemyType[114] = 17;
nextEnemyDelay[114] = 0;
nextEnemyX[114] = 612.5;
nextEnemyY[114] = 387.5;
nextEnemyLoop[114] = 0;
nextEnemyNumLoop[114] = 0;
maxEnemyPresent[114] = 0;
nextEnemyType[115] = 17;
nextEnemyDelay[115] = 0;
nextEnemyX[115] = 637.5;
nextEnemyY[115] = 362.5;
nextEnemyLoop[115] = 0;
nextEnemyNumLoop[115] = 0;
maxEnemyPresent[115] = 0;
nextEnemyType[116] = 17;
nextEnemyDelay[116] = 0;
nextEnemyX[116] = 662.5;
nextEnemyY[116] = 337.5;
nextEnemyLoop[116] = 0;
nextEnemyNumLoop[116] = 0;
maxEnemyPresent[116] = 0;
nextEnemyType[117] = 17;
nextEnemyDelay[117] = 0;
nextEnemyX[117] = 687.5;
nextEnemyY[117] = 312.5;
nextEnemyLoop[117] = 0;
nextEnemyNumLoop[117] = 0;
maxEnemyPresent[117] = 0;
nextEnemyType[118] = 17;
nextEnemyDelay[118] = 10;
nextEnemyX[118] = 537.5;
nextEnemyY[118] = 12.5;
nextEnemyLoop[118] = 0;
nextEnemyNumLoop[118] = 0;
maxEnemyPresent[118] = 0;
nextEnemyType[119] = 17;
nextEnemyDelay[119] = 0;
nextEnemyX[119] = 562.5;
nextEnemyY[119] = 37.5;
nextEnemyLoop[119] = 0;
nextEnemyNumLoop[119] = 0;
maxEnemyPresent[119] = 0;
nextEnemyType[120] = 17;
nextEnemyDelay[120] = 0;
nextEnemyX[120] = 587.5;
nextEnemyY[120] = 62.5;
nextEnemyLoop[120] = 0;
nextEnemyNumLoop[120] = 0;
maxEnemyPresent[120] = 0;
nextEnemyType[121] = 17;
nextEnemyDelay[121] = 0;
nextEnemyX[121] = 612.5;
nextEnemyY[121] = 87.5;
nextEnemyLoop[121] = 0;
nextEnemyNumLoop[121] = 0;
maxEnemyPresent[121] = 0;
nextEnemyType[122] = 17;
nextEnemyDelay[122] = 0;
nextEnemyX[122] = 637.5;
nextEnemyY[122] = 112.5;
nextEnemyLoop[122] = 0;
nextEnemyNumLoop[122] = 0;
maxEnemyPresent[122] = 0;
nextEnemyType[123] = 17;
nextEnemyDelay[123] = 0;
nextEnemyX[123] = 662.5;
nextEnemyY[123] = 137.5;
nextEnemyLoop[123] = 0;
nextEnemyNumLoop[123] = 0;
maxEnemyPresent[123] = 0;
nextEnemyType[124] = 17;
nextEnemyDelay[124] = 0;
nextEnemyX[124] = 687.5;
nextEnemyY[124] = 162.5;
nextEnemyLoop[124] = 0;
nextEnemyNumLoop[124] = 0;
maxEnemyPresent[124] = 0;
nextEnemyType[125] = 17;
nextEnemyDelay[125] = 10;
nextEnemyX[125] = 537.5;
nextEnemyY[125] = 262.5;
nextEnemyLoop[125] = 0;
nextEnemyNumLoop[125] = 0;
maxEnemyPresent[125] = 0;
nextEnemyType[126] = 17;
nextEnemyDelay[126] = 0;
nextEnemyX[126] = 562.5;
nextEnemyY[126] = 237.5;
nextEnemyLoop[126] = 0;
nextEnemyNumLoop[126] = 0;
maxEnemyPresent[126] = 0;
nextEnemyType[127] = 17;
nextEnemyDelay[127] = 0;
nextEnemyX[127] = 562.5;
nextEnemyY[127] = 287.5;
nextEnemyLoop[127] = 0;
nextEnemyNumLoop[127] = 0;
maxEnemyPresent[127] = 0;
nextEnemyType[128] = 17;
nextEnemyDelay[128] = 0;
nextEnemyX[128] = 587.5;
nextEnemyY[128] = 212.5;
nextEnemyLoop[128] = 0;
nextEnemyNumLoop[128] = 0;
maxEnemyPresent[128] = 0;
nextEnemyType[129] = 17;
nextEnemyDelay[129] = 0;
nextEnemyX[129] = 587.5;
nextEnemyY[129] = 312.5;
nextEnemyLoop[129] = 0;
nextEnemyNumLoop[129] = 0;
maxEnemyPresent[129] = 0;
nextEnemyType[130] = 17;
nextEnemyDelay[130] = 0;
nextEnemyX[130] = 612.5;
nextEnemyY[130] = 187.5;
nextEnemyLoop[130] = 0;
nextEnemyNumLoop[130] = 0;
maxEnemyPresent[130] = 0;
nextEnemyType[131] = 17;
nextEnemyDelay[131] = 0;
nextEnemyX[131] = 612.5;
nextEnemyY[131] = 337.5;
nextEnemyLoop[131] = 0;
nextEnemyNumLoop[131] = 0;
maxEnemyPresent[131] = 0;
nextEnemyType[132] = 17;
nextEnemyDelay[132] = 0;
nextEnemyX[132] = 637.5;
nextEnemyY[132] = 212.5;
nextEnemyLoop[132] = 0;
nextEnemyNumLoop[132] = 0;
maxEnemyPresent[132] = 0;
nextEnemyType[133] = 17;
nextEnemyDelay[133] = 0;
nextEnemyX[133] = 637.5;
nextEnemyY[133] = 312.5;
nextEnemyLoop[133] = 0;
nextEnemyNumLoop[133] = 0;
maxEnemyPresent[133] = 0;
nextEnemyType[134] = 17;
nextEnemyDelay[134] = 0;
nextEnemyX[134] = 662.5;
nextEnemyY[134] = 237.5;
nextEnemyLoop[134] = 0;
nextEnemyNumLoop[134] = 0;
maxEnemyPresent[134] = 0;
nextEnemyType[135] = 17;
nextEnemyDelay[135] = 0;
nextEnemyX[135] = 662.5;
nextEnemyY[135] = 287.5;
nextEnemyLoop[135] = 0;
nextEnemyNumLoop[135] = 0;
maxEnemyPresent[135] = 0;
nextEnemyType[136] = 17;
nextEnemyDelay[136] = 0;
nextEnemyX[136] = 687.5;
nextEnemyY[136] = 262.5;
nextEnemyLoop[136] = 0;
nextEnemyNumLoop[136] = 0;
maxEnemyPresent[136] = 0;
nextEnemyType[137] = 0;
nextEnemyDelay[137] = -2;
nextEnemyX[137] = 537.5;
nextEnemyY[137] = 212.5;
nextEnemyLoop[137] = 110;
nextEnemyNumLoop[137] = 15;
maxEnemyPresent[137] = 0;
nextEnemyType[138] = 13;
nextEnemyDelay[138] = -1;
nextEnemyX[138] = 487.5;
nextEnemyY[138] = 12.5;
nextEnemyLoop[138] = 0;
nextEnemyNumLoop[138] = 0;
maxEnemyPresent[138] = 0;
nextEnemyType[139] = 18;
nextEnemyDelay[139] = 0;
nextEnemyX[139] = 487.5;
nextEnemyY[139] = 187.5;
nextEnemyLoop[139] = 0;
nextEnemyNumLoop[139] = 0;
maxEnemyPresent[139] = 0;
nextEnemyType[140] = 18;
nextEnemyDelay[140] = 0;
nextEnemyX[140] = 487.5;
nextEnemyY[140] = 262.5;
nextEnemyLoop[140] = 0;
nextEnemyNumLoop[140] = 0;
maxEnemyPresent[140] = 0;
nextEnemyType[141] = 13;
nextEnemyDelay[141] = 0;
nextEnemyX[141] = 487.5;
nextEnemyY[141] = 437.5;
nextEnemyLoop[141] = 0;
nextEnemyNumLoop[141] = 0;
maxEnemyPresent[141] = 0;
nextEnemyType[142] = 19;
nextEnemyDelay[142] = -1;
nextEnemyX[142] = 412.5;
nextEnemyY[142] = 237.5;
nextEnemyLoop[142] = 0;
nextEnemyNumLoop[142] = 0;
maxEnemyPresent[142] = 0;
nextEnemyType[143] = 19;
nextEnemyDelay[143] = 0;
nextEnemyX[143] = 512.5;
nextEnemyY[143] = 137.5;
nextEnemyLoop[143] = 0;
nextEnemyNumLoop[143] = 0;
maxEnemyPresent[143] = 0;
nextEnemyType[144] = 19;
nextEnemyDelay[144] = 0;
nextEnemyX[144] = 512.5;
nextEnemyY[144] = 337.5;
nextEnemyLoop[144] = 0;
nextEnemyNumLoop[144] = 0;
maxEnemyPresent[144] = 0;
nextEnemyType[145] = 14;
nextEnemyDelay[145] = 0;
nextEnemyX[145] = 687.5;
nextEnemyY[145] = 62.5;
nextEnemyLoop[145] = 0;
nextEnemyNumLoop[145] = 0;
maxEnemyPresent[145] = 0;
nextEnemyType[146] = 14;
nextEnemyDelay[146] = 0;
nextEnemyX[146] = 687.5;
nextEnemyY[146] = 237.5;
nextEnemyLoop[146] = 0;
nextEnemyNumLoop[146] = 0;
maxEnemyPresent[146] = 0;
nextEnemyType[147] = 14;
nextEnemyDelay[147] = 0;
nextEnemyX[147] = 687.5;
nextEnemyY[147] = 412.5;
nextEnemyLoop[147] = 0;
nextEnemyNumLoop[147] = 0;
maxEnemyPresent[147] = 0;
nextEnemyType[148] = 15;
nextEnemyDelay[148] = -1;
nextEnemyX[148] = 362.5;
nextEnemyY[148] = 87.5;
nextEnemyLoop[148] = 0;
nextEnemyNumLoop[148] = 0;
maxEnemyPresent[148] = 0;
nextEnemyType[149] = 15;
nextEnemyDelay[149] = 0;
nextEnemyX[149] = 362.5;
nextEnemyY[149] = 362.5;
nextEnemyLoop[149] = 0;
nextEnemyNumLoop[149] = 0;
maxEnemyPresent[149] = 0;
nextEnemyType[150] = 20;
nextEnemyDelay[150] = 0;
nextEnemyX[150] = 487.5;
nextEnemyY[150] = 237.5;
nextEnemyLoop[150] = 0;
nextEnemyNumLoop[150] = 0;
maxEnemyPresent[150] = 0;
nextEnemyType[151] = 15;
nextEnemyDelay[151] = 0;
nextEnemyX[151] = 612.5;
nextEnemyY[151] = 87.5;
nextEnemyLoop[151] = 0;
nextEnemyNumLoop[151] = 0;
maxEnemyPresent[151] = 0;
nextEnemyType[152] = 15;
nextEnemyDelay[152] = 0;
nextEnemyX[152] = 612.5;
nextEnemyY[152] = 362.5;
nextEnemyLoop[152] = 0;
nextEnemyNumLoop[152] = 0;
maxEnemyPresent[152] = 0;
nextEnemyType[153] = 20;
nextEnemyDelay[153] = -1;
nextEnemyX[153] = 487.5;
nextEnemyY[153] = 87.5;
nextEnemyLoop[153] = 0;
nextEnemyNumLoop[153] = 0;
maxEnemyPresent[153] = 0;
nextEnemyType[154] = 20;
nextEnemyDelay[154] = 0;
nextEnemyX[154] = 487.5;
nextEnemyY[154] = 362.5;
nextEnemyLoop[154] = 0;
nextEnemyNumLoop[154] = 0;
maxEnemyPresent[154] = 0;
nextEnemyType[155] = 15;
nextEnemyDelay[155] = 0;
nextEnemyX[155] = 612.5;
nextEnemyY[155] = 37.5;
nextEnemyLoop[155] = 0;
nextEnemyNumLoop[155] = 0;
maxEnemyPresent[155] = 0;
nextEnemyType[156] = 15;
nextEnemyDelay[156] = 0;
nextEnemyX[156] = 612.5;
nextEnemyY[156] = 212.5;
nextEnemyLoop[156] = 0;
nextEnemyNumLoop[156] = 0;
maxEnemyPresent[156] = 0;
nextEnemyType[157] = 15;
nextEnemyDelay[157] = 0;
nextEnemyX[157] = 612.5;
nextEnemyY[157] = 412.5;
nextEnemyLoop[157] = 0;
nextEnemyNumLoop[157] = 0;
maxEnemyPresent[157] = 0;
nextEnemyType[158] = 20;
nextEnemyDelay[158] = -1;
nextEnemyX[158] = 687.5;
nextEnemyY[158] = 62.5;
nextEnemyLoop[158] = 0;
nextEnemyNumLoop[158] = 0;
maxEnemyPresent[158] = 0;
nextEnemyType[159] = 20;
nextEnemyDelay[159] = 0;
nextEnemyX[159] = 687.5;
nextEnemyY[159] = 162.5;
nextEnemyLoop[159] = 0;
nextEnemyNumLoop[159] = 0;
maxEnemyPresent[159] = 0;
nextEnemyType[160] = 20;
nextEnemyDelay[160] = 0;
nextEnemyX[160] = 687.5;
nextEnemyY[160] = 262.5;
nextEnemyLoop[160] = 0;
nextEnemyNumLoop[160] = 0;
maxEnemyPresent[160] = 0;
nextEnemyType[161] = 20;
nextEnemyDelay[161] = 0;
nextEnemyX[161] = 687.5;
nextEnemyY[161] = 337.5;
nextEnemyLoop[161] = 0;
nextEnemyNumLoop[161] = 0;
maxEnemyPresent[161] = 0;
nextEnemyType[162] = 20;
nextEnemyDelay[162] = 0;
nextEnemyX[162] = 687.5;
nextEnemyY[162] = 412.5;
nextEnemyLoop[162] = 0;
nextEnemyNumLoop[162] = 0;
maxEnemyPresent[162] = 0;
nextEnemyType[163] = 0;
nextEnemyDelay[163] = -1;
nextEnemyX[163] = 512.5;
nextEnemyY[163] = 212.5;
nextEnemyLoop[163] = 0;
nextEnemyNumLoop[163] = 0;
maxEnemyPresent[163] = 0;
nextEnemyType[164] = 16;
nextEnemyDelay[164] = -1;
nextEnemyX[164] = 512.5;
nextEnemyY[164] = 62.5;
nextEnemyLoop[164] = 0;
nextEnemyNumLoop[164] = 0;
maxEnemyPresent[164] = 0;
nextEnemyType[165] = 16;
nextEnemyDelay[165] = 0;
nextEnemyX[165] = 512.5;
nextEnemyY[165] = 212.5;
nextEnemyLoop[165] = 0;
nextEnemyNumLoop[165] = 0;
maxEnemyPresent[165] = 0;
nextEnemyType[166] = 16;
nextEnemyDelay[166] = 0;
nextEnemyX[166] = 512.5;
nextEnemyY[166] = 387.5;
nextEnemyLoop[166] = 0;
nextEnemyNumLoop[166] = 0;
maxEnemyPresent[166] = 0;
nextEnemyType[167] = 0;
nextEnemyDelay[167] = -1;
nextEnemyX[167] = 537.5;
nextEnemyY[167] = 212.5;
nextEnemyLoop[167] = 0;
nextEnemyNumLoop[167] = 0;
maxEnemyPresent[167] = 0;
nextEnemyType[168] = 0;
nextEnemyDelay[168] = -1;
nextEnemyX[168] = 512.5;
nextEnemyY[168] = 212.5;
nextEnemyLoop[168] = 0;
nextEnemyNumLoop[168] = 0;
maxEnemyPresent[168] = 0;
nextEnemyType[169] = 0;
nextEnemyDelay[169] = -1;
nextEnemyX[169] = 537.5;
nextEnemyY[169] = 212.5;
nextEnemyLoop[169] = 0;
nextEnemyNumLoop[169] = 0;
maxEnemyPresent[169] = 0;
} else {
if (_arg1 == 90211){
nextShot = 0;
StartParticles = true;
nextEnemyType[0] = 1;
nextEnemyDelay[0] = 50;
nextEnemyX[0] = 687.5;
nextEnemyY[0] = 112.5;
nextEnemyLoop[0] = 0;
nextEnemyNumLoop[0] = 0;
maxEnemyPresent[0] = 0;
nextEnemyType[1] = 1;
nextEnemyDelay[1] = 50;
nextEnemyX[1] = 687.5;
nextEnemyY[1] = 362.5;
nextEnemyLoop[1] = 0;
nextEnemyNumLoop[1] = 0;
maxEnemyPresent[1] = 0;
nextEnemyType[2] = 1;
nextEnemyDelay[2] = 75;
nextEnemyX[2] = 687.5;
nextEnemyY[2] = 187.5;
nextEnemyLoop[2] = 0;
nextEnemyNumLoop[2] = 0;
maxEnemyPresent[2] = 0;
nextEnemyType[3] = 1;
nextEnemyDelay[3] = 50;
nextEnemyX[3] = 687.5;
nextEnemyY[3] = 262.5;
nextEnemyLoop[3] = 0;
nextEnemyNumLoop[3] = 0;
maxEnemyPresent[3] = 0;
nextEnemyType[4] = 1;
nextEnemyDelay[4] = 50;
nextEnemyX[4] = 687.5;
nextEnemyY[4] = 12.5;
nextEnemyLoop[4] = 0;
nextEnemyNumLoop[4] = 0;
maxEnemyPresent[4] = 0;
nextEnemyType[5] = 1;
nextEnemyDelay[5] = 50;
nextEnemyX[5] = 687.5;
nextEnemyY[5] = 437.5;
nextEnemyLoop[5] = 0;
nextEnemyNumLoop[5] = 0;
maxEnemyPresent[5] = 0;
nextEnemyType[6] = 1;
nextEnemyDelay[6] = -2;
nextEnemyX[6] = 687.5;
nextEnemyY[6] = 162.5;
nextEnemyLoop[6] = 0;
nextEnemyNumLoop[6] = 5;
maxEnemyPresent[6] = 0;
nextEnemyType[7] = 1;
nextEnemyDelay[7] = 30;
nextEnemyX[7] = 687.5;
nextEnemyY[7] = 62.5;
nextEnemyLoop[7] = 0;
nextEnemyNumLoop[7] = 0;
maxEnemyPresent[7] = 0;
nextEnemyType[8] = 1;
nextEnemyDelay[8] = 30;
nextEnemyX[8] = 687.5;
nextEnemyY[8] = 312.5;
nextEnemyLoop[8] = 0;
nextEnemyNumLoop[8] = 0;
maxEnemyPresent[8] = 0;
nextEnemyType[9] = 1;
nextEnemyDelay[9] = 30;
nextEnemyX[9] = 687.5;
nextEnemyY[9] = 12.5;
nextEnemyLoop[9] = 0;
nextEnemyNumLoop[9] = 0;
maxEnemyPresent[9] = 0;
nextEnemyType[10] = 1;
nextEnemyDelay[10] = 30;
nextEnemyX[10] = 687.5;
nextEnemyY[10] = 412.5;
nextEnemyLoop[10] = 0;
nextEnemyNumLoop[10] = 0;
maxEnemyPresent[10] = 0;
nextEnemyType[11] = 1;
nextEnemyDelay[11] = 30;
nextEnemyX[11] = 687.5;
nextEnemyY[11] = 187.5;
nextEnemyLoop[11] = 0;
nextEnemyNumLoop[11] = 0;
maxEnemyPresent[11] = 0;
nextEnemyType[12] = 1;
nextEnemyDelay[12] = 30;
nextEnemyX[12] = 687.5;
nextEnemyY[12] = 312.5;
nextEnemyLoop[12] = 0;
nextEnemyNumLoop[12] = 0;
maxEnemyPresent[12] = 0;
nextEnemyType[13] = 1;
nextEnemyDelay[13] = -2;
nextEnemyX[13] = 687.5;
nextEnemyY[13] = 112.5;
nextEnemyLoop[13] = 6;
nextEnemyNumLoop[13] = 5;
maxEnemyPresent[13] = 0;
nextEnemyType[14] = 1;
nextEnemyDelay[14] = 15;
nextEnemyX[14] = 687.5;
nextEnemyY[14] = 37.5;
nextEnemyLoop[14] = 0;
nextEnemyNumLoop[14] = 0;
maxEnemyPresent[14] = 0;
nextEnemyType[15] = 1;
nextEnemyDelay[15] = 15;
nextEnemyX[15] = 687.5;
nextEnemyY[15] = 362.5;
nextEnemyLoop[15] = 0;
nextEnemyNumLoop[15] = 0;
maxEnemyPresent[15] = 0;
nextEnemyType[16] = 1;
nextEnemyDelay[16] = 15;
nextEnemyX[16] = 687.5;
nextEnemyY[16] = 187.5;
nextEnemyLoop[16] = 0;
nextEnemyNumLoop[16] = 0;
maxEnemyPresent[16] = 0;
nextEnemyType[17] = 1;
nextEnemyDelay[17] = 15;
nextEnemyX[17] = 687.5;
nextEnemyY[17] = 287.5;
nextEnemyLoop[17] = 0;
nextEnemyNumLoop[17] = 0;
maxEnemyPresent[17] = 0;
nextEnemyType[18] = 1;
nextEnemyDelay[18] = 15;
nextEnemyX[18] = 687.5;
nextEnemyY[18] = 12.5;
nextEnemyLoop[18] = 0;
nextEnemyNumLoop[18] = 0;
maxEnemyPresent[18] = 0;
nextEnemyType[19] = 1;
nextEnemyDelay[19] = 15;
nextEnemyX[19] = 687.5;
nextEnemyY[19] = 387.5;
nextEnemyLoop[19] = 0;
nextEnemyNumLoop[19] = 0;
maxEnemyPresent[19] = 0;
nextEnemyType[20] = 1;
nextEnemyDelay[20] = 15;
nextEnemyX[20] = 687.5;
nextEnemyY[20] = 112.5;
nextEnemyLoop[20] = 0;
nextEnemyNumLoop[20] = 0;
maxEnemyPresent[20] = 0;
nextEnemyType[21] = 1;
nextEnemyDelay[21] = 15;
nextEnemyX[21] = 687.5;
nextEnemyY[21] = 262.5;
nextEnemyLoop[21] = 0;
nextEnemyNumLoop[21] = 0;
maxEnemyPresent[21] = 0;
nextEnemyType[22] = 1;
nextEnemyDelay[22] = -2;
nextEnemyX[22] = 687.5;
nextEnemyY[22] = 162.5;
nextEnemyLoop[22] = 13;
nextEnemyNumLoop[22] = 5;
maxEnemyPresent[22] = 0;
nextEnemyType[23] = 1;
nextEnemyDelay[23] = 10;
nextEnemyX[23] = 687.5;
nextEnemyY[23] = 162.5;
nextEnemyLoop[23] = 0;
nextEnemyNumLoop[23] = 0;
maxEnemyPresent[23] = 0;
nextEnemyType[24] = 1;
nextEnemyDelay[24] = 0;
nextEnemyX[24] = 687.5;
nextEnemyY[24] = 312.5;
nextEnemyLoop[24] = 0;
nextEnemyNumLoop[24] = 0;
maxEnemyPresent[24] = 0;
nextEnemyType[25] = 1;
nextEnemyDelay[25] = 10;
nextEnemyX[25] = 687.5;
nextEnemyY[25] = 62.5;
nextEnemyLoop[25] = 0;
nextEnemyNumLoop[25] = 0;
maxEnemyPresent[25] = 0;
nextEnemyType[26] = 1;
nextEnemyDelay[26] = 0;
nextEnemyX[26] = 687.5;
nextEnemyY[26] = 362.5;
nextEnemyLoop[26] = 0;
nextEnemyNumLoop[26] = 0;
maxEnemyPresent[26] = 0;
nextEnemyType[27] = 1;
nextEnemyDelay[27] = 10;
nextEnemyX[27] = 687.5;
nextEnemyY[27] = 12.5;
nextEnemyLoop[27] = 0;
nextEnemyNumLoop[27] = 0;
maxEnemyPresent[27] = 0;
nextEnemyType[28] = 1;
nextEnemyDelay[28] = 0;
nextEnemyX[28] = 687.5;
nextEnemyY[28] = 437.5;
nextEnemyLoop[28] = 0;
nextEnemyNumLoop[28] = 0;
maxEnemyPresent[28] = 0;
nextEnemyType[29] = 1;
nextEnemyDelay[29] = 10;
nextEnemyX[29] = 687.5;
nextEnemyY[29] = 212.5;
nextEnemyLoop[29] = 0;
nextEnemyNumLoop[29] = 0;
maxEnemyPresent[29] = 0;
nextEnemyType[30] = 1;
nextEnemyDelay[30] = 0;
nextEnemyX[30] = 687.5;
nextEnemyY[30] = 262.5;
nextEnemyLoop[30] = 0;
nextEnemyNumLoop[30] = 0;
maxEnemyPresent[30] = 0;
nextEnemyType[31] = 1;
nextEnemyDelay[31] = 10;
nextEnemyX[31] = 687.5;
nextEnemyY[31] = 112.5;
nextEnemyLoop[31] = 0;
nextEnemyNumLoop[31] = 0;
maxEnemyPresent[31] = 0;
nextEnemyType[32] = 1;
nextEnemyDelay[32] = 0;
nextEnemyX[32] = 687.5;
nextEnemyY[32] = 337.5;
nextEnemyLoop[32] = 0;
nextEnemyNumLoop[32] = 0;
maxEnemyPresent[32] = 0;
nextEnemyType[33] = 1;
nextEnemyDelay[33] = 10;
nextEnemyX[33] = 687.5;
nextEnemyY[33] = 212.5;
nextEnemyLoop[33] = 0;
nextEnemyNumLoop[33] = 0;
maxEnemyPresent[33] = 0;
nextEnemyType[34] = 1;
nextEnemyDelay[34] = 0;
nextEnemyX[34] = 687.5;
nextEnemyY[34] = 237.5;
nextEnemyLoop[34] = 0;
nextEnemyNumLoop[34] = 0;
maxEnemyPresent[34] = 0;
nextEnemyType[35] = 1;
nextEnemyDelay[35] = 10;
nextEnemyX[35] = 687.5;
nextEnemyY[35] = 212.5;
nextEnemyLoop[35] = 22;
nextEnemyNumLoop[35] = 10;
maxEnemyPresent[35] = 0;
};
};
};
};
};
};
};
};
};
};
}
public function main():void{
var _local1:*;
_local1 = 0;
while (_local1 < ObjectList.length) {
ObjectList[_local1].main();
_local1++;
};
if (GameMode == "Arcade"){
Player.main();
hitBeam();
changeBeam();
genBeam(BeamType);
setWeapon();
FireWeapon();
ObjectHitShot();
ObjectDeath();
particleGen();
enemyGen();
if (Difficulty != "Easy"){
if (((StartParticles) || ((Difficulty == "Hard")))){
PlayerEnergy = (PlayerEnergy - 0.3);
};
EnergyGone();
};
} else {
if (GameMode == "Survival"){
Player.main();
hitBeam();
changeBeam();
genBeam(BeamType);
ObjectDeath();
particleGen();
if (StartParticles){
PlayerEnergy = (PlayerEnergy - 1.6);
};
EnergyGone();
} else {
if (GameMode == "Classic"){
Player.main();
hitBeam();
Ammo[0] = CWeaponDur;
if (ClassicWeapon == 1){
hitCrossBeam();
} else {
CrossBeam.graphics.clear();
};
if (CWeaponDur == 0){
if (PlayerWeapon != null){
ClassicWeapon = 0;
removeChild(PlayerWeapon);
PlayerWeapon = new NullWeaponID();
addChild(PlayerWeapon);
PlayerWeapon.removeEventListener("Fired", Fired_Handler);
WeaponType = 99;
};
};
if (ClassicWeapon == 2){
StartBeam = false;
BeamEnd.x = mouseX;
BeamEnd.y = mouseY;
} else {
StartBeam = true;
};
changeBeam();
genBeam(BeamType);
ObjectDeath();
particleGen();
FireClassicWeapon();
if (StartParticles){
PlayerEnergy = (PlayerEnergy - 0.8);
};
EnergyGone();
} else {
if (GameMode == "Swarm"){
Player.main();
hitBeam();
changeBeam();
genBeam(BeamType);
setWeapon();
FireWeapon();
ObjectHitShot();
ObjectDeath();
enemyGen();
} else {
if (GameMode == "Practice"){
Player.main();
hitBeam();
changeBeam();
genBeam(BeamType);
setWeapon();
FireWeapon();
ObjectHitShot();
ObjectDeath();
particleGen();
enemyGen();
PlayerEnergy = (PlayerEnergy - 0.5);
EnergyGone();
};
};
};
};
};
_local1 = 0;
while (_local1 < 90) {
if (keyIsDown[_local1]){
keyWasPressed[_local1] = true;
} else {
keyWasPressed[_local1] = false;
};
_local1++;
};
render();
}
public function hitCrossBeam():void{
var _local1:*;
var _local2:Number;
CrossBeam.graphics.clear();
if (((((((StartBeam) && ((mouseX > 150)))) && ((mouseY > 0)))) && ((mouseY < 470)))){
CWeaponDur--;
CrossBeam.x = parent.mouseX;
CrossBeam.y = 0;
CrossBeam.graphics.lineStyle(5, 0xFFFFFF);
CrossBeam.graphics.moveTo(0, 0);
CrossBeam.graphics.lineTo(0, 470);
_local1 = 0;
while (_local1 < ObjectList.length) {
_local2 = Math.abs(((ObjectList[_local1].getX() + ObjectList[_local1].getHitCenterX()) - (parent.mouseX - BeamBlock)));
if (_local2 < ObjectList[_local1].getHitRadius()){
if ((((ObjectList[_local1].Type == "Particle")) && ((ObjectList[_local1].getParticleType() == BeamType)))){
ObjectList[_local1].addHit();
};
};
_local1++;
};
};
}
public function makeSound(_arg1:Class):void{
SoundEffect = new (_arg1);
EffectChannel.push(SoundEffect.play());
EffectChannel[(EffectChannel.length - 1)].soundTransform = new SoundTransform(SFXVol);
EffectChannel[(EffectChannel.length - 1)].addEventListener(Event.SOUND_COMPLETE, finishedEffect);
}
public function render():void{
var _local1:*;
_local1 = 0;
while (_local1 < GraphicList.length) {
GraphicList[_local1].x = ObjectList[_local1].getX();
GraphicList[_local1].y = ObjectList[_local1].getY();
_local1++;
};
PlayerGraphic.x = Player.getX();
PlayerGraphic.y = Player.getY();
PlayerWeapon.x = Player.getX();
PlayerWeapon.y = Player.getY();
if (getChildIndex(PlayerWeapon) < getChildIndex(PlayerGraphic)){
swapChildren(PlayerWeapon, PlayerGraphic);
};
trackTempGraphics();
cleanUp();
}
public function DeathDone_Handler(_arg1:Event):void{
PlayerGraphic.removeEventListener("PlayerDestroyed", DeathDone_Handler);
dispatchEvent(new Event("GameOver"));
}
public function hitBeam():void{
var _local1:Number;
var _local2:Boolean;
var _local3:Boolean;
var _local4:*;
_local2 = false;
_local3 = false;
if (StartBeam){
_local4 = 0;
while (_local4 < ObjectList.length) {
_local2 = BeamHitTest(_local4);
if (((_local2) && (!(_local3)))){
_local3 = true;
};
if (_local2){
if (ObjectList[_local4].Type == "Particle"){
ObjectList[_local4].addHit();
} else {
if (ObjectList[_local4].Type == "Enemy"){
ObjectList[_local4].dispatchEvent(new Event("BeamHit"));
curHitObject = _local4;
dispatchEvent(new Event("EnemyUpdate"));
if (ObjectList[_local4].Name == "Mirror"){
BeamBlock = (mouseX - ObjectList[_local4].getX());
};
} else {
if (ObjectList[_local4].Type == "Ammo"){
ObjectList[_local4].dispatchEvent(new Event("BeamHit"));
if (ObjectList[_local4].Name == "Mirror"){
BeamBlock = (mouseX - ObjectList[_local4].getX());
};
};
};
};
};
_local4++;
};
};
if (!_local3){
BeamBlock = 0;
};
}
public function toggleParticles():void{
if (StartParticles){
StartParticles = false;
} else {
StartParticles = true;
};
}
public function destroyAmmo(_arg1:int):void{
ObjectList[_arg1].Destroyed = true;
removeChild(GraphicList[_arg1]);
GraphicList[_arg1] = new ObjectList[_arg1].DestroyGraphic();
GraphicList[_arg1].x = ObjectList[_arg1].getX();
GraphicList[_arg1].y = ObjectList[_arg1].getY();
addChild(GraphicList[_arg1]);
ObjectList[_arg1].AssociateGraphic(GraphicList[_arg1]);
ObjectList[_arg1].dispatchEvent(new Event("EnemyDeath"));
}
public function Mouse_Press():void{
MouseIsDown = true;
}
public function upgradeBeam():void{
if (BeamLevel < 4){
BeamLevel++;
};
}
public function getParticles():int{
return (numHitPart);
}
public function GameOver_Handler(_arg1:Event):void{
makeSound(gameoverFX);
while (ObjectList.length > 0) {
removeObject(0);
};
removeChild(PlayerGraphic);
PlayerGraphic = new PlayerDeathID();
PlayerGraphic.x = Player.getX();
PlayerGraphic.y = Player.getY();
addChild(PlayerGraphic);
dispatchEvent(new Event("FreezeGame"));
PlayerGraphic.addEventListener("PlayerDestroyed", DeathDone_Handler);
}
public function beginBeam(_arg1:Event):void{
PlayerGraphic.removeEventListener("PlayerIntro", beginBeam);
removeChild(PlayerGraphic);
PlayerGraphic = new PlayerDevice1ID();
PlayerGraphic.x = Player.getX();
PlayerGraphic.y = Player.getY();
addChild(PlayerGraphic);
StartBeam = true;
}
}
}//package game.engine.NTechBattleGrounds
Section 56
//PAmmo0 (game.engine.NTechBattleGrounds.PAmmo0)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class PAmmo0 extends NTechObject {
var engaged:Boolean;// = true
var YMovement:Number;// = 10
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:int;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
var nextShot:int;// = 0
var ObjectList:Array;
public var DestroyGraphic:Class;
var Angle:Number;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
var numXFrames:int;// = 0
public var AttackDamage:int;// = 0
public function PAmmo0(_arg1:Number, _arg2:Number, _arg3:Array, _arg4:Number):void{
GameGraphic = Enemy3ID;
engaged = true;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
Movement = 10;
YMovement = 10;
SelfDestructed = false;
numXFrames = 0;
nextShot = 0;
Angle = 0;
super(_arg1, _arg2);
ObjectList = _arg3;
TempGraphic = LightningGraphicID;
BulletType = 0;
BulletGraphic = AmmoType1ID;
DestroyGraphic = AmmoType1DestroyID;
Type = "Ammo";
hitType = "Circle";
Name = "P29Z5";
hitRadius = 10;
hitCenterX = 0;
hitCenterY = 0;
HP = 25;
AttackDamage = 5;
ScoreValue = 50;
Angle = _arg4;
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
dispatchEvent(new Event("PlayerHit"));
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
}
override public function main():void{
if (engaged){
X = (X + 20);
Y = (Y + Angle);
if (X > 720){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
}
}//package game.engine.NTechBattleGrounds
Section 57
//PAmmo1 (game.engine.NTechBattleGrounds.PAmmo1)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class PAmmo1 extends NTechObject {
var engaged:Boolean;// = true
var YMovement:Number;// = 10
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:int;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
var nextShot:int;// = 0
var ObjectList:Array;
public var DestroyGraphic:Class;
var Angle:Number;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
var numXFrames:int;// = 0
public var AttackDamage:int;// = 0
public function PAmmo1(_arg1:Number, _arg2:Number, _arg3:Array, _arg4:Number):void{
GameGraphic = Enemy3ID;
engaged = true;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
Movement = 10;
YMovement = 10;
SelfDestructed = false;
numXFrames = 0;
nextShot = 0;
Angle = 0;
super(_arg1, _arg2);
ObjectList = _arg3;
TempGraphic = LightningGraphicID;
BulletType = 0;
BulletGraphic = AmmoType1ID;
DestroyGraphic = AmmoType2DestroyID;
Type = "Ammo";
hitType = "Circle";
Name = "P29Z5";
hitRadius = 50;
hitCenterX = 0;
hitCenterY = 0;
HP = 25;
AttackDamage = 5;
ScoreValue = 50;
Angle = _arg4;
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
}
override public function main():void{
var _local1:*;
if (engaged){
nextShot++;
_local1 = 0;
while (_local1 < ObjectList.length) {
if (ObjectList[_local1] != this){
Angle = Math.atan2((ObjectList[_local1].getY() - Y), (ObjectList[_local1].getX() - X));
ObjectList[_local1].X = (ObjectList[_local1].X - (Math.cos(Angle) * 12));
ObjectList[_local1].Y = (ObjectList[_local1].Y - (Math.sin(Angle) * 12));
};
_local1++;
};
if (nextShot == 105){
dispatchEvent(new Event("PlayerHit"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
}
}//package game.engine.NTechBattleGrounds
Section 58
//PAmmo3 (game.engine.NTechBattleGrounds.PAmmo3)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class PAmmo3 extends NTechObject {
var engaged:Boolean;// = true
var YMovement:Number;// = 10
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;// = 0
var nextShot:int;// = 0
var ObjectList:Array;
public var DestroyGraphic:Class;
var BeamHits:int;// = 0
var Angle:Number;// = 0
var makeBeam:Boolean;// = true
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
var numXFrames:int;// = 0
public var AttackDamage:int;// = 0
public function PAmmo3(_arg1:Number, _arg2:Number, _arg3:Array, _arg4:Number):void{
GameGraphic = Enemy3ID;
engaged = true;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
Movement = 10;
YMovement = 10;
SelfDestructed = false;
numXFrames = 0;
nextShot = 0;
Angle = 0;
BeamHits = 0;
makeBeam = true;
super(_arg1, _arg2);
ObjectList = _arg3;
TempGraphic = LightningGraphicID;
BulletType = PAmmo0;
BulletGraphic = AmmoType1ID;
DestroyGraphic = AmmoType2DestroyID;
Type = "Ammo";
hitType = "Rectangle";
Name = "Ammo";
hitRadius = 12;
hitWidth = 160;
hitHeight = 190;
hitCenterX = 0;
hitCenterY = -95;
HP = 50;
AttackDamage = 20;
ScoreValue = 50;
Angle = _arg4;
BulletParam = Angle;
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
}
public function Hit_Handler(_arg1:Event):void{
}
override public function main():void{
var _local1:*;
if (engaged){
X = (X + (550 / 18));
_local1 = 0;
while (_local1 < ObjectList.length) {
if (ObjectList[_local1] != this){
if ((((ObjectList[_local1].Type == "Particle")) && ((ObjectList[_local1].getParticleType() == Angle)))){
if (hitTest(this, ObjectList[_local1])){
ObjectList[_local1].addHit(1);
};
};
};
_local1++;
};
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
public function hitTest(_arg1:NTechObject, _arg2:NTechObject):Boolean{
var _local3:Boolean;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
_local3 = false;
if ((((_arg1.hitType == "Circle")) && ((_arg2.hitType == "Circle")))){
_local17 = Math.abs((((_arg1.getX() + _arg1.getHitCenterX()) - _arg2.getX()) + _arg2.getHitCenterX()));
_local18 = Math.abs((((_arg1.getY() + _arg1.getHitCenterY()) - _arg2.getY()) + _arg2.getHitCenterY()));
_local19 = Math.sqrt(((_local17 * _local17) + (_local18 * _local18)));
if (_local19 < (_arg1.getHitRadius() + _arg2.getHitRadius())){
_local3 = true;
} else {
_local3 = false;
};
} else {
if ((((_arg1.hitType == "Rectangle")) || ((_arg2.hitType == "Rectangle")))){
if (_arg1.hitType == "Circle"){
_local4 = (_arg1.getHitCenterX() + _arg1.getX());
_local5 = (_arg1.getHitCenterY() + _arg1.getY());
_local6 = (_arg2.getHitCenterX() + _arg2.getX());
_local7 = (_arg2.getHitCenterY() + _arg2.getY());
_local8 = _arg2.getHitWidth();
_local9 = _arg2.getHitHeight();
_local10 = _arg1.getHitRadius();
_local11 = _local4;
_local12 = _local5;
if (_local11 < _local6){
_local11 = _local6;
};
if (_local11 > (_local6 + _local8)){
_local11 = (_local6 + _local8);
};
if (_local12 < _local7){
_local12 = _local7;
};
if (_local12 > (_local7 + _local9)){
_local12 = (_local7 + _local9);
};
if ((((_local4 - _local11) * (_local4 - _local11)) + ((_local5 - _local12) * (_local5 - _local12))) < (_local10 * _local10)){
_local3 = true;
};
} else {
if (_arg2.hitType == "Circle"){
_local4 = (_arg2.getHitCenterX() + _arg2.getX());
_local5 = (_arg2.getHitCenterY() + _arg2.getY());
_local6 = (_arg1.getHitCenterX() + _arg1.getX());
_local7 = (_arg1.getHitCenterY() + _arg1.getY());
_local8 = _arg1.getHitWidth();
_local9 = _arg1.getHitHeight();
_local10 = _arg2.getHitRadius();
_local11 = _local4;
_local12 = _local5;
if (_local11 < _local6){
_local11 = _local6;
};
if (_local11 > (_local6 + _local8)){
_local11 = (_local6 + _local8);
};
if (_local12 < _local7){
_local12 = _local7;
};
if (_local12 > (_local7 + _local9)){
_local12 = (_local7 + _local9);
};
if ((((_local4 - _local11) * (_local4 - _local11)) + ((_local5 - _local12) * (_local5 - _local12))) < (_local10 * _local10)){
_local3 = true;
};
};
};
} else {
if ((((_arg1.hitType == "Rectangle")) && ((_arg2.hitType == "Rectangle")))){
_local6 = (_arg1.getHitCenterX() + _arg1.getX());
_local7 = (_arg1.getHitCenterY() + _arg1.getY());
_local8 = _arg1.getHitWidth();
_local9 = _arg1.getHitHeight();
_local13 = (_arg2.getHitCenterX() + _arg2.getX());
_local14 = (_arg2.getHitCenterY() + _arg2.getY());
_local15 = _arg2.getHitWidth();
_local16 = _arg2.getHitHeight();
if ((((((_local6 > (_local13 + _local15))) || (((_local6 + _local8) < _local13)))) && ((((_local7 > (_local14 + _local16))) || (((_local7 + _local9) < _local14)))))){
_local3 = false;
} else {
_local3 = true;
};
};
};
};
return (_local3);
}
}
}//package game.engine.NTechBattleGrounds
Section 59
//PAmmo4 (game.engine.NTechBattleGrounds.PAmmo4)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
public class PAmmo4 extends NTechObject {
var engaged:Boolean;// = true
var EnemyList:Array;
var YMovement:Number;// = 10
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:int;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
var nextShot:int;// = 0
var ObjectList:Array;
public var DestroyGraphic:Class;
var Target:int;// = 0
var Angle:Number;// = 0
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
var numXFrames:int;// = 0
public var AttackDamage:int;// = 0
public function PAmmo4(_arg1:Number, _arg2:Number, _arg3:Array, _arg4:Number):void{
var _local5:*;
GameGraphic = Enemy3ID;
engaged = true;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
Movement = 10;
YMovement = 10;
SelfDestructed = false;
numXFrames = 0;
nextShot = 0;
Angle = 0;
Target = 0;
EnemyList = new Array();
super(_arg1, _arg2);
ObjectList = _arg3;
TempGraphic = LightningGraphicID;
BulletType = 0;
BulletGraphic = AmmoType1ID;
DestroyGraphic = AmmoType1DestroyID;
Type = "Ammo";
hitType = "Circle";
Name = "P29Z5";
hitRadius = 10;
hitCenterX = 99999;
hitCenterY = 0;
HP = 25;
AttackDamage = 5;
ScoreValue = 50;
_local5 = 0;
while (_local5 < ObjectList.length) {
if ((((ObjectList[_local5].hitCenterX < 999)) && ((ObjectList[_local5].Type == "Enemy")))){
EnemyList.push(_local5);
};
_local5++;
};
Target = EnemyList[Math.floor((Math.random() * EnemyList.length))];
if (EnemyList.length != 0){
SFXVol = ObjectList[Target].Player.SFXVol;
ObjectList[Target].addHit(5);
};
Angle = _arg4;
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
var _local2:Number;
Graphic = _arg1;
if (EnemyList.length != 0){
_local2 = Math.atan2((ObjectList[Target].getY() - Y), (ObjectList[Target].getX() - X));
drawLeg(0, 0, (ObjectList[Target].getX() - X), (ObjectList[Target].getY() - Y), 40, _local2);
if (SFXVol != 0){
SoundEffect = new lightningFX();
EffectChannel = SoundEffect.play();
VolControl.volume = SFXVol;
EffectChannel.soundTransform = VolControl;
};
};
Graphic.cacheAsBitmap = true;
}
public function drawLeg(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:int, _arg6:Number):void{
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:*;
_local7 = _arg1;
_local8 = _arg2;
_local9 = Math.sqrt((Math.pow((_arg1 - _arg3), 2) + Math.pow((_arg2 - _arg4), 2)));
_local10 = 0;
_local11 = 0;
_local12 = 0;
Graphic.graphics.clear();
Graphic.graphics.moveTo(_local7, _local8);
_local13 = 0;
while (_local13 < _arg5) {
if (_local13 != 0){
_local10 = (_arg6 + ((Math.random() * (Math.PI / _local13)) - (Math.PI / (2 * _local13))));
};
_local11 = _local7;
_local12 = _local8;
_local7 = ((Math.cos(_local10) * ((_local9 / _arg5) * _local13)) + _arg1);
_local8 = ((Math.sin(_local10) * ((_local9 / _arg5) * _local13)) + _arg2);
if ((((Math.floor((Math.random() * _arg5)) > (_arg5 * 0.95))) && (!((_local13 == 0))))){
drawLeg(_local11, _local12, (_local9 / (_local13 * 10)), (_local9 / (_local13 * 10)), (_arg5 / 4), (_arg6 + ((Math.random() * Math.PI) - (Math.PI / 2))));
};
if (_local13 == (_arg5 - 1)){
_local7 = ((Math.cos(_arg6) * _local9) + _arg1);
_local8 = ((Math.sin(_arg6) * _local9) + _arg2);
};
Graphic.graphics.lineStyle(10, 10040268, 0.6);
Graphic.graphics.lineTo(_local7, _local8);
Graphic.graphics.moveTo(_local11, _local12);
Graphic.graphics.lineStyle(4, 0xFFFFFF, 1);
Graphic.graphics.lineTo(_local7, _local8);
_local13++;
};
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Hit_Handler(_arg1:Event):void{
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
}
override public function main():void{
var _local1:Number;
if (engaged){
if (((!((EnemyList.length == 0))) && (!((ObjectList[Target] == null))))){
_local1 = Math.atan2((ObjectList[Target].getY() - Y), (ObjectList[Target].getX() - X));
drawLeg(0, 0, (ObjectList[Target].getX() - X), (ObjectList[Target].getY() - Y), 40, _local1);
if (ObjectList[Target].Type != "Particle"){
ObjectList[Target].addHit(1);
};
};
Graphic.alpha = (Graphic.alpha - 0.1);
if (Graphic.alpha <= 0){
if (EffectChannel != null){
EffectChannel.stop();
};
dispatchEvent(new Event("EnemyDestroyed"));
};
};
if (Destroyed){
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
}
}//package game.engine.NTechBattleGrounds
Section 60
//PAmmo5 (game.engine.NTechBattleGrounds.PAmmo5)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class PAmmo5 extends NTechObject {
var engaged:Boolean;// = true
var YMovement:Number;// = 10
var SelfDestructed:Boolean;// = false
public var TempGraphic:Class;
public var BulletGraphic:Class;
public var GameGraphic:Class;
public var BulletType:Class;
public var TempGraphicX:Number;// = 0
public var TempGraphicY:Number;// = 0
public var BulletParam:Number;// = 0
var nextShot:int;// = 0
var ObjectList:Array;
public var DestroyGraphic:Class;
var BeamHits:int;// = 0
var Angle:Number;// = 0
var makeBeam:Boolean;// = true
var Graphic:MovieClip;
public var AttackCells:Array;
var Movement:Number;// = 10
var numXFrames:int;// = 0
public var AttackDamage:int;// = 0
public function PAmmo5(_arg1:Number, _arg2:Number, _arg3:Array, _arg4:Number):void{
GameGraphic = Enemy3ID;
engaged = true;
AttackCells = new Array();
AttackDamage = 0;
TempGraphicX = 0;
TempGraphicY = 0;
BulletParam = 0;
Movement = 10;
YMovement = 10;
SelfDestructed = false;
numXFrames = 0;
nextShot = 0;
Angle = 0;
BeamHits = 0;
makeBeam = true;
super(_arg1, _arg2);
ObjectList = _arg3;
TempGraphic = LightningGraphicID;
BulletType = PAmmo0;
BulletGraphic = AmmoType1ID;
DestroyGraphic = AmmoType2DestroyID;
Type = "Ammo";
hitType = "None";
Name = "Ammo";
hitRadius = 12;
hitWidth = 0;
hitHeight = 0;
hitCenterX = 99999;
hitCenterY = 99999;
HP = 50;
AttackDamage = 20;
ScoreValue = 50;
Angle = _arg4;
BulletParam = Angle;
addEventListener("BeamHit", Beam_Handler);
addEventListener("ObjectHit", Hit_Handler);
addEventListener("EnemyDeath", Death_Handler);
addEventListener("PlayerHit", SelfDestruct_Handler);
addEventListener("OffScreen", OffScreen_Handler);
}
public function SelfDestruct_Handler(_arg1:Event):void{
HP = 0;
SelfDestructed = true;
}
public function AssociateGraphic(_arg1:MovieClip):void{
Graphic = _arg1;
}
public function Death_Handler(_arg1:Event):void{
engaged = false;
hitRadius = 0;
hitCenterX = 999999;
hitCenterY = 999999;
}
public function Attack(_arg1:Array):void{
var _local2:*;
AttackCells = new Array();
_local2 = 0;
while (_local2 < _arg1.length) {
AttackCells[_local2] = Math.floor(_arg1[_local2]);
_local2++;
};
dispatchEvent(new Event("EnemyAttack"));
}
public function Engage_Handler(_arg1:Event):void{
}
public function Hit_Handler(_arg1:Event):void{
}
override public function main():void{
var _local1:*;
if (engaged){
if (Angle == 0){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0, 0);
} else {
if (Angle == 1){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0xFF, 0);
} else {
if (Angle == 2){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0xFF);
} else {
if (Angle == 3){
Graphic.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0xFF);
};
};
};
};
if (Graphic.currentLabel == "Beam"){
hitType = "Rectangle";
Name = "Ammo";
hitWidth = 700;
hitHeight = 50;
hitCenterX = 0;
hitCenterY = -25;
};
_local1 = 0;
while (_local1 < ObjectList.length) {
if (ObjectList[_local1] != this){
if ((((ObjectList[_local1].Type == "Particle")) && ((ObjectList[_local1].getParticleType() == Angle)))){
if (hitTest(this, ObjectList[_local1])){
ObjectList[_local1].addHit(1);
};
};
};
_local1++;
};
if (Graphic.currentLabel == "Done"){
dispatchEvent(new Event("EnemyDestroyed"));
};
};
}
public function Beam_Handler(_arg1:Event):void{
}
public function OffScreen_Handler(_arg1:Event):void{
dispatchEvent(new Event("EnemyDestroyed"));
}
public function hitTest(_arg1:NTechObject, _arg2:NTechObject):Boolean{
var _local3:Boolean;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
_local3 = false;
if ((((_arg1.hitType == "Circle")) && ((_arg2.hitType == "Circle")))){
_local17 = Math.abs((((_arg1.getX() + _arg1.getHitCenterX()) - _arg2.getX()) + _arg2.getHitCenterX()));
_local18 = Math.abs((((_arg1.getY() + _arg1.getHitCenterY()) - _arg2.getY()) + _arg2.getHitCenterY()));
_local19 = Math.sqrt(((_local17 * _local17) + (_local18 * _local18)));
if (_local19 < (_arg1.getHitRadius() + _arg2.getHitRadius())){
_local3 = true;
} else {
_local3 = false;
};
} else {
if ((((_arg1.hitType == "Rectangle")) || ((_arg2.hitType == "Rectangle")))){
if (_arg1.hitType == "Circle"){
_local4 = (_arg1.getHitCenterX() + _arg1.getX());
_local5 = (_arg1.getHitCenterY() + _arg1.getY());
_local6 = (_arg2.getHitCenterX() + _arg2.getX());
_local7 = (_arg2.getHitCenterY() + _arg2.getY());
_local8 = _arg2.getHitWidth();
_local9 = _arg2.getHitHeight();
_local10 = _arg1.getHitRadius();
_local11 = _local4;
_local12 = _local5;
if (_local11 < _local6){
_local11 = _local6;
};
if (_local11 > (_local6 + _local8)){
_local11 = (_local6 + _local8);
};
if (_local12 < _local7){
_local12 = _local7;
};
if (_local12 > (_local7 + _local9)){
_local12 = (_local7 + _local9);
};
if ((((_local4 - _local11) * (_local4 - _local11)) + ((_local5 - _local12) * (_local5 - _local12))) < (_local10 * _local10)){
_local3 = true;
};
} else {
if (_arg2.hitType == "Circle"){
_local4 = (_arg2.getHitCenterX() + _arg2.getX());
_local5 = (_arg2.getHitCenterY() + _arg2.getY());
_local6 = (_arg1.getHitCenterX() + _arg1.getX());
_local7 = (_arg1.getHitCenterY() + _arg1.getY());
_local8 = _arg1.getHitWidth();
_local9 = _arg1.getHitHeight();
_local10 = _arg2.getHitRadius();
_local11 = _local4;
_local12 = _local5;
if (_local11 < _local6){
_local11 = _local6;
};
if (_local11 > (_local6 + _local8)){
_local11 = (_local6 + _local8);
};
if (_local12 < _local7){
_local12 = _local7;
};
if (_local12 > (_local7 + _local9)){
_local12 = (_local7 + _local9);
};
if ((((_local4 - _local11) * (_local4 - _local11)) + ((_local5 - _local12) * (_local5 - _local12))) < (_local10 * _local10)){
_local3 = true;
};
};
};
} else {
if ((((_arg1.hitType == "Rectangle")) && ((_arg2.hitType == "Rectangle")))){
_local6 = (_arg1.getHitCenterX() + _arg1.getX());
_local7 = (_arg1.getHitCenterY() + _arg1.getY());
_local8 = _arg1.getHitWidth();
_local9 = _arg1.getHitHeight();
_local13 = (_arg2.getHitCenterX() + _arg2.getX());
_local14 = (_arg2.getHitCenterY() + _arg2.getY());
_local15 = _arg2.getHitWidth();
_local16 = _arg2.getHitHeight();
if ((((((_local6 > (_local13 + _local15))) || (((_local6 + _local8) < _local13)))) && ((((_local7 > (_local14 + _local16))) || (((_local7 + _local9) < _local14)))))){
_local3 = false;
} else {
_local3 = true;
};
};
};
};
return (_local3);
}
}
}//package game.engine.NTechBattleGrounds
Section 61
//Particle (game.engine.NTechBattleGrounds.Particle)
package game.engine.NTechBattleGrounds {
public class Particle extends NTechObject {
var dir:int;// = 0
var floatSpeed:int;// = 0
var PartType:int;
public function Particle(_arg1:Number, _arg2:Number, _arg3:int):void{
dir = 0;
floatSpeed = 0;
super(_arg1, _arg2);
Type = "Particle";
hitRadius = 10;
PartType = _arg3;
if (_arg2 > 200){
dir = 1;
Y = 460;
} else {
Y = 0;
dir = 2;
};
floatSpeed = (Math.ceil((Math.random() * 4)) + 2);
}
override public function main():void{
float();
}
public function float():void{
if (dir == 1){
Y = (Y - floatSpeed);
} else {
if (dir == 2){
Y = (Y + floatSpeed);
};
};
}
public function getParticleType():int{
return (PartType);
}
}
}//package game.engine.NTechBattleGrounds
Section 62
//preloader (game.engine.NTechBattleGrounds.preloader)
package game.engine.NTechBattleGrounds {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.ui.*;
public class preloader extends MovieClip {
private var t:TextField;
private var tl:TextField;
private var l:TextField;
var RightMenu:ContextMenu;
public var Ads:MovieClip;
public static var _root:MovieClip;
public function preloader(){
var onRootLoaderComplete:Function;
RightMenu = new ContextMenu();
super();
onRootLoaderComplete = function (_arg1:Event):void{
_root.gotoAndStop("Begin");
};
addFrameScript(0, frame1, 1, frame2, 2, frame3);
MochiAd.showPreGameAd({clip:Ads, id:"8ed279dcabb96630", res:"700x600"});
this.loaderInfo.addEventListener(Event.COMPLETE, onRootLoaderComplete);
_root = this;
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
gotoAndStop(1);
}
}
}//package game.engine.NTechBattleGrounds
Section 63
//3d_376 (N_fla.3d_376)
package N_fla {
import flash.display.*;
public dynamic class 3d_376 extends MovieClip {
public function 3d_376(){
addFrameScript(101, frame102);
}
function frame102(){
stop();
}
}
}//package N_fla
Section 64
//Animation1_48 (N_fla.Animation1_48)
package N_fla {
import flash.display.*;
public dynamic class Animation1_48 extends MovieClip {
public function Animation1_48(){
addFrameScript(44, frame45);
}
function frame45(){
stop();
}
}
}//package N_fla
Section 65
//ArcadeMode_285 (N_fla.ArcadeMode_285)
package N_fla {
import flash.display.*;
public dynamic class ArcadeMode_285 extends MovieClip {
public function ArcadeMode_285(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package N_fla
Section 66
//ClassicMode_286 (N_fla.ClassicMode_286)
package N_fla {
import flash.display.*;
public dynamic class ClassicMode_286 extends MovieClip {
public function ClassicMode_286(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package N_fla
Section 67
//EasyButton_297 (N_fla.EasyButton_297)
package N_fla {
import flash.display.*;
public dynamic class EasyButton_297 extends MovieClip {
public function EasyButton_297(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package N_fla
Section 68
//EnemySwarmMode_287 (N_fla.EnemySwarmMode_287)
package N_fla {
import flash.display.*;
public dynamic class EnemySwarmMode_287 extends MovieClip {
public function EnemySwarmMode_287(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package N_fla
Section 69
//EverythingLoad_2 (N_fla.EverythingLoad_2)
package N_fla {
import flash.display.*;
public dynamic class EverythingLoad_2 extends MovieClip {
public var LoaderClip:MovieClip;
public function EverythingLoad_2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package N_fla
Section 70
//Full_46 (N_fla.Full_46)
package N_fla {
import flash.display.*;
public dynamic class Full_46 extends MovieClip {
public function Full_46(){
addFrameScript(79, frame80);
}
function frame80(){
stop();
}
}
}//package N_fla
Section 71
//FWG_202 (N_fla.FWG_202)
package N_fla {
import flash.display.*;
import FWG.*;
import flash.text.*;
public dynamic class FWG_202 extends MovieClip {
public var btnVh:BtnVh;
public var btnX:BtnX;
public var btnSubmit:BtnSubmit;
public var scoreTxt:TextField;
public var nameTxt:TextField;
public function FWG_202(){
addFrameScript(2, frame3);
}
function frame3(){
btnVh._release = function ():void{
Net.getURL(("http://www.freeworldgroup.com/score/index.asp?game=" + SubmitScore(parent).game_name));
};
}
}
}//package N_fla
Section 72
//GameOverzerSubz_198 (N_fla.GameOverzerSubz_198)
package N_fla {
import flash.display.*;
public dynamic class GameOverzerSubz_198 extends MovieClip {
public function GameOverzerSubz_198(){
addFrameScript(42, frame43);
}
function frame43(){
stop();
}
}
}//package N_fla
Section 73
//Gridzer_175 (N_fla.Gridzer_175)
package N_fla {
import flash.display.*;
public dynamic class Gridzer_175 extends MovieClip {
public function Gridzer_175(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package N_fla
Section 74
//HardButton_299 (N_fla.HardButton_299)
package N_fla {
import flash.display.*;
public dynamic class HardButton_299 extends MovieClip {
public function HardButton_299(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package N_fla
Section 75
//MainMenuButton_196 (N_fla.MainMenuButton_196)
package N_fla {
import flash.display.*;
public dynamic class MainMenuButton_196 extends MovieClip {
public function MainMenuButton_196(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package N_fla
Section 76
//NormalButton_298 (N_fla.NormalButton_298)
package N_fla {
import flash.display.*;
public dynamic class NormalButton_298 extends MovieClip {
public function NormalButton_298(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package N_fla
Section 77
//PlayAgainButton_197 (N_fla.PlayAgainButton_197)
package N_fla {
import flash.display.*;
public dynamic class PlayAgainButton_197 extends MovieClip {
public function PlayAgainButton_197(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package N_fla
Section 78
//Practice_293 (N_fla.Practice_293)
package N_fla {
import flash.display.*;
public dynamic class Practice_293 extends MovieClip {
public function Practice_293(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package N_fla
Section 79
//ProfFaces_150 (N_fla.ProfFaces_150)
package N_fla {
import flash.display.*;
public dynamic class ProfFaces_150 extends MovieClip {
public function ProfFaces_150(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package N_fla
Section 80
//QualityHigh_303 (N_fla.QualityHigh_303)
package N_fla {
import flash.display.*;
public dynamic class QualityHigh_303 extends MovieClip {
public function QualityHigh_303(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package N_fla
Section 81
//QualityLow_301 (N_fla.QualityLow_301)
package N_fla {
import flash.display.*;
public dynamic class QualityLow_301 extends MovieClip {
public function QualityLow_301(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package N_fla
Section 82
//QualityMedium_302 (N_fla.QualityMedium_302)
package N_fla {
import flash.display.*;
public dynamic class QualityMedium_302 extends MovieClip {
public function QualityMedium_302(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package N_fla
Section 83
//SoundLoads_44 (N_fla.SoundLoads_44)
package N_fla {
import flash.display.*;
public dynamic class SoundLoads_44 extends MovieClip {
public function SoundLoads_44(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package N_fla
Section 84
//StartPhase1_289 (N_fla.StartPhase1_289)
package N_fla {
import flash.display.*;
public dynamic class StartPhase1_289 extends MovieClip {
public function StartPhase1_289(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package N_fla
Section 85
//StartPhase2_290 (N_fla.StartPhase2_290)
package N_fla {
import flash.display.*;
public dynamic class StartPhase2_290 extends MovieClip {
public function StartPhase2_290(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package N_fla
Section 86
//StartPhase3_291 (N_fla.StartPhase3_291)
package N_fla {
import flash.display.*;
public dynamic class StartPhase3_291 extends MovieClip {
public function StartPhase3_291(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package N_fla
Section 87
//StartPhase4_292 (N_fla.StartPhase4_292)
package N_fla {
import flash.display.*;
public dynamic class StartPhase4_292 extends MovieClip {
public function StartPhase4_292(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package N_fla
Section 88
//SurvivalMode_288 (N_fla.SurvivalMode_288)
package N_fla {
import flash.display.*;
public dynamic class SurvivalMode_288 extends MovieClip {
public function SurvivalMode_288(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package N_fla
Section 89
//Symbol1asdgfwertewt_305 (N_fla.Symbol1asdgfwertewt_305)
package N_fla {
import flash.display.*;
public dynamic class Symbol1asdgfwertewt_305 extends MovieClip {
public function Symbol1asdgfwertewt_305(){
addFrameScript(228, frame229);
}
function frame229(){
stop();
}
}
}//package N_fla
Section 90
//HitRec (ui.HitRec)
package ui {
import flash.display.*;
public dynamic class HitRec extends MovieClip {
}
}//package ui
Section 91
//WindowBg (ui.WindowBg)
package ui {
import flash.display.*;
public dynamic class WindowBg extends MovieClip {
}
}//package ui
Section 92
//AmmoType1DestroyID (AmmoType1DestroyID)
package {
import flash.display.*;
public dynamic class AmmoType1DestroyID extends MovieClip {
}
}//package
Section 93
//AmmoType1ID (AmmoType1ID)
package {
import flash.display.*;
public dynamic class AmmoType1ID extends MovieClip {
}
}//package
Section 94
//AmmoType2DestroyID (AmmoType2DestroyID)
package {
import flash.display.*;
public dynamic class AmmoType2DestroyID extends MovieClip {
}
}//package
Section 95
//AmmoType2ID (AmmoType2ID)
package {
import flash.display.*;
public dynamic class AmmoType2ID extends MovieClip {
public function AmmoType2ID(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 96
//AnnouncementDisplayID (AnnouncementDisplayID)
package {
import flash.display.*;
import flash.text.*;
public dynamic class AnnouncementDisplayID extends MovieClip {
public var FaceDisplay:MovieClip;
public var Display:TextField;
public function AnnouncementDisplayID(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 97
//BackButtonID (BackButtonID)
package {
import flash.display.*;
public dynamic class BackButtonID extends MovieClip {
public function BackButtonID(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 98
//BackGround1ID (BackGround1ID)
package {
import flash.display.*;
public dynamic class BackGround1ID extends MovieClip {
}
}//package
Section 99
//BackGround2ID (BackGround2ID)
package {
import flash.display.*;
public dynamic class BackGround2ID extends MovieClip {
}
}//package
Section 100
//BackGround3ID (BackGround3ID)
package {
import flash.display.*;
public dynamic class BackGround3ID extends MovieClip {
}
}//package
Section 101
//BackGround4ID (BackGround4ID)
package {
import flash.display.*;
public dynamic class BackGround4ID extends MovieClip {
}
}//package
Section 102
//BackGround5ID (BackGround5ID)
package {
import flash.display.*;
public dynamic class BackGround5ID extends MovieClip {
}
}//package
Section 103
//BadParticleCollectFX (BadParticleCollectFX)
package {
import flash.media.*;
public dynamic class BadParticleCollectFX extends Sound {
}
}//package
Section 104
//BeamBender_Ammo1ID (BeamBender_Ammo1ID)
package {
import flash.display.*;
public dynamic class BeamBender_Ammo1ID extends MovieClip {
}
}//package
Section 105
//beamwallFX (beamwallFX)
package {
import flash.media.*;
public dynamic class beamwallFX extends Sound {
}
}//package
Section 106
//BerthaSmokeID (BerthaSmokeID)
package {
import flash.display.*;
public dynamic class BerthaSmokeID extends MovieClip {
}
}//package
Section 107
//BigBerthaID (BigBerthaID)
package {
import flash.display.*;
public dynamic class BigBerthaID extends MovieClip {
}
}//package
Section 108
//Boss11_Ammo1ID (Boss11_Ammo1ID)
package {
import flash.display.*;
public dynamic class Boss11_Ammo1ID extends MovieClip {
}
}//package
Section 109
//Boss11_Ammo2ID (Boss11_Ammo2ID)
package {
import flash.display.*;
public dynamic class Boss11_Ammo2ID extends MovieClip {
}
}//package
Section 110
//Boss11DestroyID (Boss11DestroyID)
package {
import flash.display.*;
public dynamic class Boss11DestroyID extends MovieClip {
}
}//package
Section 111
//Boss11ID (Boss11ID)
package {
import flash.display.*;
public dynamic class Boss11ID extends MovieClip {
}
}//package
Section 112
//Boss11IntroID (Boss11IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Boss11IntroID extends MovieClip {
public function Boss11IntroID(){
addFrameScript(65, frame66);
}
function frame66(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 113
//Boss16DestroyID (Boss16DestroyID)
package {
import flash.display.*;
public dynamic class Boss16DestroyID extends MovieClip {
}
}//package
Section 114
//Boss16ID (Boss16ID)
package {
import flash.display.*;
public dynamic class Boss16ID extends MovieClip {
}
}//package
Section 115
//Boss16IntroID (Boss16IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Boss16IntroID extends MovieClip {
public function Boss16IntroID(){
addFrameScript(65, frame66);
}
function frame66(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 116
//boss1dronesFX (boss1dronesFX)
package {
import flash.media.*;
public dynamic class boss1dronesFX extends Sound {
}
}//package
Section 117
//boss1FX (boss1FX)
package {
import flash.media.*;
public dynamic class boss1FX extends Sound {
}
}//package
Section 118
//boss21ammoID (boss21ammoID)
package {
import flash.display.*;
public dynamic class boss21ammoID extends MovieClip {
}
}//package
Section 119
//Boss21CaseID (Boss21CaseID)
package {
import flash.display.*;
public dynamic class Boss21CaseID extends MovieClip {
}
}//package
Section 120
//Boss21DestroyID (Boss21DestroyID)
package {
import flash.display.*;
public dynamic class Boss21DestroyID extends MovieClip {
}
}//package
Section 121
//Boss21ID (Boss21ID)
package {
import flash.display.*;
public dynamic class Boss21ID extends MovieClip {
public function Boss21ID(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 122
//Boss21IntroID (Boss21IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Boss21IntroID extends MovieClip {
public function Boss21IntroID(){
addFrameScript(15, frame16);
}
function frame16(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 123
//Boss21LasersID (Boss21LasersID)
package {
import flash.display.*;
public dynamic class Boss21LasersID extends MovieClip {
}
}//package
Section 124
//Boss21RadonFlareID (Boss21RadonFlareID)
package {
import flash.display.*;
public dynamic class Boss21RadonFlareID extends MovieClip {
public function Boss21RadonFlareID(){
addFrameScript(116, frame117);
}
function frame117(){
stop();
}
}
}//package
Section 125
//Boss21shieldID (Boss21shieldID)
package {
import flash.display.*;
public dynamic class Boss21shieldID extends MovieClip {
}
}//package
Section 126
//Boss21SnakeID (Boss21SnakeID)
package {
import flash.display.*;
public dynamic class Boss21SnakeID extends MovieClip {
}
}//package
Section 127
//Boss21TurretID (Boss21TurretID)
package {
import flash.display.*;
public dynamic class Boss21TurretID extends MovieClip {
}
}//package
Section 128
//boss2FX (boss2FX)
package {
import flash.media.*;
public dynamic class boss2FX extends Sound {
}
}//package
Section 129
//Boss3AmmoID (Boss3AmmoID)
package {
import flash.display.*;
public dynamic class Boss3AmmoID extends MovieClip {
}
}//package
Section 130
//boss3FX (boss3FX)
package {
import flash.media.*;
public dynamic class boss3FX extends Sound {
}
}//package
Section 131
//Boss3NetAmmoID (Boss3NetAmmoID)
package {
import flash.display.*;
public dynamic class Boss3NetAmmoID extends MovieClip {
}
}//package
Section 132
//Boss5_Ammo1ID (Boss5_Ammo1ID)
package {
import flash.display.*;
public dynamic class Boss5_Ammo1ID extends MovieClip {
}
}//package
Section 133
//Boss5_Ammo2ID (Boss5_Ammo2ID)
package {
import flash.display.*;
public dynamic class Boss5_Ammo2ID extends MovieClip {
}
}//package
Section 134
//Boss5_AmmoDestroyID (Boss5_AmmoDestroyID)
package {
import flash.display.*;
public dynamic class Boss5_AmmoDestroyID extends MovieClip {
}
}//package
Section 135
//Boss5_BeamEndID (Boss5_BeamEndID)
package {
import flash.display.*;
public dynamic class Boss5_BeamEndID extends MovieClip {
}
}//package
Section 136
//Boss5DestroyID (Boss5DestroyID)
package {
import flash.display.*;
public dynamic class Boss5DestroyID extends MovieClip {
}
}//package
Section 137
//Boss5ID (Boss5ID)
package {
import flash.display.*;
public dynamic class Boss5ID extends MovieClip {
}
}//package
Section 138
//Boss5IntroID (Boss5IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Boss5IntroID extends MovieClip {
public function Boss5IntroID(){
addFrameScript(69, frame70);
}
function frame70(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 139
//bumpFX (bumpFX)
package {
import flash.media.*;
public dynamic class bumpFX extends Sound {
}
}//package
Section 140
//chargedownlargeFX (chargedownlargeFX)
package {
import flash.media.*;
public dynamic class chargedownlargeFX extends Sound {
}
}//package
Section 141
//chargedownsmallFX (chargedownsmallFX)
package {
import flash.media.*;
public dynamic class chargedownsmallFX extends Sound {
}
}//package
Section 142
//DarkMatterDestroyID (DarkMatterDestroyID)
package {
import flash.display.*;
public dynamic class DarkMatterDestroyID extends MovieClip {
}
}//package
Section 143
//DarkMatterShotID (DarkMatterShotID)
package {
import flash.display.*;
public dynamic class DarkMatterShotID extends MovieClip {
}
}//package
Section 144
//DeepSwooshFX (DeepSwooshFX)
package {
import flash.media.*;
public dynamic class DeepSwooshFX extends Sound {
}
}//package
Section 145
//DinidenBufferID (DinidenBufferID)
package {
import flash.display.*;
public dynamic class DinidenBufferID extends MovieClip {
public function DinidenBufferID(){
addFrameScript(79, frame80);
}
function frame80(){
stop();
}
}
}//package
Section 146
//Enemy0DestroyID (Enemy0DestroyID)
package {
import flash.display.*;
public dynamic class Enemy0DestroyID extends MovieClip {
}
}//package
Section 147
//Enemy0ID (Enemy0ID)
package {
import flash.display.*;
public dynamic class Enemy0ID extends MovieClip {
}
}//package
Section 148
//Enemy0IntroID (Enemy0IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Enemy0IntroID extends MovieClip {
public function Enemy0IntroID(){
addFrameScript(14, frame15);
}
function frame15(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 149
//Enemy10DestroyID (Enemy10DestroyID)
package {
import flash.display.*;
public dynamic class Enemy10DestroyID extends MovieClip {
}
}//package
Section 150
//Enemy10ID (Enemy10ID)
package {
import flash.display.*;
public dynamic class Enemy10ID extends MovieClip {
}
}//package
Section 151
//Enemy10IntroID (Enemy10IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Enemy10IntroID extends MovieClip {
public function Enemy10IntroID(){
addFrameScript(14, frame15);
}
function frame15(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 152
//Enemy12DestroyID (Enemy12DestroyID)
package {
import flash.display.*;
public dynamic class Enemy12DestroyID extends MovieClip {
}
}//package
Section 153
//Enemy12ID (Enemy12ID)
package {
import flash.display.*;
public dynamic class Enemy12ID extends MovieClip {
}
}//package
Section 154
//Enemy12IntroID (Enemy12IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Enemy12IntroID extends MovieClip {
public function Enemy12IntroID(){
addFrameScript(14, frame15);
}
function frame15(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 155
//Enemy13DestroyID (Enemy13DestroyID)
package {
import flash.display.*;
public dynamic class Enemy13DestroyID extends MovieClip {
}
}//package
Section 156
//Enemy13ID (Enemy13ID)
package {
import flash.display.*;
public dynamic class Enemy13ID extends MovieClip {
}
}//package
Section 157
//Enemy13IntroID (Enemy13IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Enemy13IntroID extends MovieClip {
public function Enemy13IntroID(){
addFrameScript(14, frame15);
}
function frame15(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 158
//Enemy14DestroyID (Enemy14DestroyID)
package {
import flash.display.*;
public dynamic class Enemy14DestroyID extends MovieClip {
}
}//package
Section 159
//Enemy14ID (Enemy14ID)
package {
import flash.display.*;
public dynamic class Enemy14ID extends MovieClip {
}
}//package
Section 160
//Enemy14IntroID (Enemy14IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Enemy14IntroID extends MovieClip {
public function Enemy14IntroID(){
addFrameScript(14, frame15);
}
function frame15(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 161
//Enemy15DestroyID (Enemy15DestroyID)
package {
import flash.display.*;
public dynamic class Enemy15DestroyID extends MovieClip {
}
}//package
Section 162
//Enemy15ID (Enemy15ID)
package {
import flash.display.*;
public dynamic class Enemy15ID extends MovieClip {
}
}//package
Section 163
//Enemy15IntroID (Enemy15IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Enemy15IntroID extends MovieClip {
public function Enemy15IntroID(){
addFrameScript(14, frame15);
}
function frame15(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 164
//Enemy17DestroyID (Enemy17DestroyID)
package {
import flash.display.*;
public dynamic class Enemy17DestroyID extends MovieClip {
}
}//package
Section 165
//Enemy17ID (Enemy17ID)
package {
import flash.display.*;
public dynamic class Enemy17ID extends MovieClip {
}
}//package
Section 166
//Enemy17IntroID (Enemy17IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Enemy17IntroID extends MovieClip {
public function Enemy17IntroID(){
addFrameScript(14, frame15);
}
function frame15(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 167
//Enemy18DestroyID (Enemy18DestroyID)
package {
import flash.display.*;
public dynamic class Enemy18DestroyID extends MovieClip {
}
}//package
Section 168
//Enemy18ID (Enemy18ID)
package {
import flash.display.*;
public dynamic class Enemy18ID extends MovieClip {
}
}//package
Section 169
//Enemy18IntroID (Enemy18IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Enemy18IntroID extends MovieClip {
public function Enemy18IntroID(){
addFrameScript(14, frame15);
}
function frame15(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 170
//Enemy19DestroyID (Enemy19DestroyID)
package {
import flash.display.*;
public dynamic class Enemy19DestroyID extends MovieClip {
}
}//package
Section 171
//Enemy19ID (Enemy19ID)
package {
import flash.display.*;
public dynamic class Enemy19ID extends MovieClip {
}
}//package
Section 172
//Enemy19IntroID (Enemy19IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Enemy19IntroID extends MovieClip {
public function Enemy19IntroID(){
addFrameScript(14, frame15);
}
function frame15(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 173
//Enemy1DestroyID (Enemy1DestroyID)
package {
import flash.display.*;
public dynamic class Enemy1DestroyID extends MovieClip {
}
}//package
Section 174
//Enemy1ID (Enemy1ID)
package {
import flash.display.*;
public dynamic class Enemy1ID extends MovieClip {
}
}//package
Section 175
//Enemy1IntroID (Enemy1IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Enemy1IntroID extends MovieClip {
public function Enemy1IntroID(){
addFrameScript(14, frame15);
}
function frame15(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 176
//Enemy20DestroyID (Enemy20DestroyID)
package {
import flash.display.*;
public dynamic class Enemy20DestroyID extends MovieClip {
}
}//package
Section 177
//Enemy20ID (Enemy20ID)
package {
import flash.display.*;
public dynamic class Enemy20ID extends MovieClip {
}
}//package
Section 178
//Enemy20IntroID (Enemy20IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Enemy20IntroID extends MovieClip {
public function Enemy20IntroID(){
addFrameScript(14, frame15);
}
function frame15(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 179
//Enemy2DestroyID (Enemy2DestroyID)
package {
import flash.display.*;
public dynamic class Enemy2DestroyID extends MovieClip {
}
}//package
Section 180
//Enemy2ID (Enemy2ID)
package {
import flash.display.*;
public dynamic class Enemy2ID extends MovieClip {
}
}//package
Section 181
//Enemy2IntroID (Enemy2IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Enemy2IntroID extends MovieClip {
public function Enemy2IntroID(){
addFrameScript(14, frame15);
}
function frame15(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 182
//Enemy3DestroyID (Enemy3DestroyID)
package {
import flash.display.*;
public dynamic class Enemy3DestroyID extends MovieClip {
}
}//package
Section 183
//Enemy3ID (Enemy3ID)
package {
import flash.display.*;
public dynamic class Enemy3ID extends MovieClip {
}
}//package
Section 184
//Enemy3IntroID (Enemy3IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Enemy3IntroID extends MovieClip {
public function Enemy3IntroID(){
addFrameScript(14, frame15);
}
function frame15(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 185
//Enemy4DestroyID (Enemy4DestroyID)
package {
import flash.display.*;
public dynamic class Enemy4DestroyID extends MovieClip {
}
}//package
Section 186
//Enemy4ID (Enemy4ID)
package {
import flash.display.*;
public dynamic class Enemy4ID extends MovieClip {
}
}//package
Section 187
//Enemy4IntroID (Enemy4IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Enemy4IntroID extends MovieClip {
public function Enemy4IntroID(){
addFrameScript(7, frame8);
}
function frame8(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 188
//Enemy6DestroyID (Enemy6DestroyID)
package {
import flash.display.*;
public dynamic class Enemy6DestroyID extends MovieClip {
}
}//package
Section 189
//Enemy6ID (Enemy6ID)
package {
import flash.display.*;
public dynamic class Enemy6ID extends MovieClip {
}
}//package
Section 190
//Enemy6IntroID (Enemy6IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Enemy6IntroID extends MovieClip {
public function Enemy6IntroID(){
addFrameScript(14, frame15);
}
function frame15(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 191
//Enemy7DestroyID (Enemy7DestroyID)
package {
import flash.display.*;
public dynamic class Enemy7DestroyID extends MovieClip {
}
}//package
Section 192
//Enemy7ID (Enemy7ID)
package {
import flash.display.*;
public dynamic class Enemy7ID extends MovieClip {
}
}//package
Section 193
//Enemy7IntroID (Enemy7IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Enemy7IntroID extends MovieClip {
public function Enemy7IntroID(){
addFrameScript(14, frame15);
}
function frame15(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 194
//Enemy8DestroyID (Enemy8DestroyID)
package {
import flash.display.*;
public dynamic class Enemy8DestroyID extends MovieClip {
}
}//package
Section 195
//Enemy8ID (Enemy8ID)
package {
import flash.display.*;
public dynamic class Enemy8ID extends MovieClip {
}
}//package
Section 196
//Enemy8IntroID (Enemy8IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Enemy8IntroID extends MovieClip {
public function Enemy8IntroID(){
addFrameScript(14, frame15);
}
function frame15(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 197
//Enemy9DestroyID (Enemy9DestroyID)
package {
import flash.display.*;
public dynamic class Enemy9DestroyID extends MovieClip {
}
}//package
Section 198
//Enemy9ID (Enemy9ID)
package {
import flash.display.*;
public dynamic class Enemy9ID extends MovieClip {
}
}//package
Section 199
//Enemy9IntroID (Enemy9IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Enemy9IntroID extends MovieClip {
public function Enemy9IntroID(){
addFrameScript(14, frame15);
}
function frame15(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 200
//EnemyListDisplayID (EnemyListDisplayID)
package {
import flash.display.*;
import flash.text.*;
public dynamic class EnemyListDisplayID extends MovieClip {
public var NextButton:MovieClip;
public var BackButton:BackButtonID;
public var Notice:TextField;
}
}//package
Section 201
//EnemyListing0ID (EnemyListing0ID)
package {
import flash.display.*;
public dynamic class EnemyListing0ID extends MovieClip {
}
}//package
Section 202
//EnemyListing10ID (EnemyListing10ID)
package {
import flash.display.*;
public dynamic class EnemyListing10ID extends MovieClip {
}
}//package
Section 203
//EnemyListing11ID (EnemyListing11ID)
package {
import flash.display.*;
public dynamic class EnemyListing11ID extends MovieClip {
}
}//package
Section 204
//EnemyListing12ID (EnemyListing12ID)
package {
import flash.display.*;
public dynamic class EnemyListing12ID extends MovieClip {
}
}//package
Section 205
//EnemyListing13ID (EnemyListing13ID)
package {
import flash.display.*;
public dynamic class EnemyListing13ID extends MovieClip {
}
}//package
Section 206
//EnemyListing14ID (EnemyListing14ID)
package {
import flash.display.*;
public dynamic class EnemyListing14ID extends MovieClip {
}
}//package
Section 207
//EnemyListing15ID (EnemyListing15ID)
package {
import flash.display.*;
public dynamic class EnemyListing15ID extends MovieClip {
}
}//package
Section 208
//EnemyListing16ID (EnemyListing16ID)
package {
import flash.display.*;
public dynamic class EnemyListing16ID extends MovieClip {
}
}//package
Section 209
//EnemyListing17ID (EnemyListing17ID)
package {
import flash.display.*;
public dynamic class EnemyListing17ID extends MovieClip {
}
}//package
Section 210
//EnemyListing18ID (EnemyListing18ID)
package {
import flash.display.*;
public dynamic class EnemyListing18ID extends MovieClip {
}
}//package
Section 211
//EnemyListing19ID (EnemyListing19ID)
package {
import flash.display.*;
public dynamic class EnemyListing19ID extends MovieClip {
}
}//package
Section 212
//EnemyListing1ID (EnemyListing1ID)
package {
import flash.display.*;
public dynamic class EnemyListing1ID extends MovieClip {
}
}//package
Section 213
//EnemyListing20ID (EnemyListing20ID)
package {
import flash.display.*;
public dynamic class EnemyListing20ID extends MovieClip {
}
}//package
Section 214
//EnemyListing21ID (EnemyListing21ID)
package {
import flash.display.*;
public dynamic class EnemyListing21ID extends MovieClip {
}
}//package
Section 215
//EnemyListing2ID (EnemyListing2ID)
package {
import flash.display.*;
public dynamic class EnemyListing2ID extends MovieClip {
}
}//package
Section 216
//EnemyListing3ID (EnemyListing3ID)
package {
import flash.display.*;
public dynamic class EnemyListing3ID extends MovieClip {
}
}//package
Section 217
//EnemyListing4ID (EnemyListing4ID)
package {
import flash.display.*;
public dynamic class EnemyListing4ID extends MovieClip {
}
}//package
Section 218
//EnemyListing5ID (EnemyListing5ID)
package {
import flash.display.*;
public dynamic class EnemyListing5ID extends MovieClip {
}
}//package
Section 219
//EnemyListing6ID (EnemyListing6ID)
package {
import flash.display.*;
public dynamic class EnemyListing6ID extends MovieClip {
}
}//package
Section 220
//EnemyListing7ID (EnemyListing7ID)
package {
import flash.display.*;
public dynamic class EnemyListing7ID extends MovieClip {
}
}//package
Section 221
//EnemyListing8ID (EnemyListing8ID)
package {
import flash.display.*;
public dynamic class EnemyListing8ID extends MovieClip {
}
}//package
Section 222
//EnemyListing9ID (EnemyListing9ID)
package {
import flash.display.*;
public dynamic class EnemyListing9ID extends MovieClip {
}
}//package
Section 223
//explosionlarge1FX (explosionlarge1FX)
package {
import flash.media.*;
public dynamic class explosionlarge1FX extends Sound {
}
}//package
Section 224
//explosionmedium1FX (explosionmedium1FX)
package {
import flash.media.*;
public dynamic class explosionmedium1FX extends Sound {
}
}//package
Section 225
//explosionsmall1FX (explosionsmall1FX)
package {
import flash.media.*;
public dynamic class explosionsmall1FX extends Sound {
}
}//package
Section 226
//FullMovieEndID (FullMovieEndID)
package {
import flash.display.*;
public dynamic class FullMovieEndID extends MovieClip {
}
}//package
Section 227
//FullMovieIntroID (FullMovieIntroID)
package {
import flash.display.*;
public dynamic class FullMovieIntroID extends MovieClip {
}
}//package
Section 228
//GameI (GameI)
package {
import FWG.*;
public class GameI {
public static var submitScore:SubmitScore;
public static var btnSs:BtnSs;
}
}//package
Section 229
//GameOverDisplayID (GameOverDisplayID)
package {
import flash.display.*;
import FWG.*;
import flash.text.*;
public dynamic class GameOverDisplayID extends MovieClip {
public var btnSs:BtnSs;
public var MainButton:MovieClip;
public var TryButton:MovieClip;
public var SponsorButton:MovieClip;
public var MoreGamesButton:MovieClip;
public var ScoreDisplay:TextField;
public function GameOverDisplayID(){
addFrameScript(0, frame1);
}
function frame1(){
GameI.btnSs = btnSs;
GameI.submitScore.game_name = "ntech";
GameI.submitScore.score = parseInt(ScoreDisplay.text);
btnSs._release = function ():void{
GameI.submitScore.fadeShow();
removeChild(btnSs);
};
}
}
}//package
Section 230
//gameoverFX (gameoverFX)
package {
import flash.media.*;
public dynamic class gameoverFX extends Sound {
}
}//package
Section 231
//GameSkin1ID (GameSkin1ID)
package {
import flash.display.*;
import flash.text.*;
public dynamic class GameSkin1ID extends MovieClip {
public var CurrentWeaponName:TextField;
public var WeaponList:TextField;
public var BeamLevel:TextField;
public var CurrentBeamType:TextField;
public var CurrentWeaponAmmo:MovieClip;
public var EnemyHP:TextField;
public var EnemyHPBar:MovieClip;
public var PlayerHPBar:MovieClip;
public var EnemyIdentity:TextField;
public var EnergyLevel:MovieClip;
public var PlayerHP:TextField;
public var SponsorButton:MovieClip;
public var TotalScore:TextField;
public var Difficulty:TextField;
public var NumParticles:TextField;
}
}//package
Section 232
//gun1FX (gun1FX)
package {
import flash.media.*;
public dynamic class gun1FX extends Sound {
}
}//package
Section 233
//gun2FX (gun2FX)
package {
import flash.media.*;
public dynamic class gun2FX extends Sound {
}
}//package
Section 234
//gun3FX (gun3FX)
package {
import flash.media.*;
public dynamic class gun3FX extends Sound {
}
}//package
Section 235
//gun4FX (gun4FX)
package {
import flash.media.*;
public dynamic class gun4FX extends Sound {
}
}//package
Section 236
//gun5FX (gun5FX)
package {
import flash.media.*;
public dynamic class gun5FX extends Sound {
}
}//package
Section 237
//HighScoreDisplayID (HighScoreDisplayID)
package {
import flash.display.*;
import flash.text.*;
public dynamic class HighScoreDisplayID extends MovieClip {
public var BackButton:BackButtonID;
public var Display:TextField;
}
}//package
Section 238
//HowToDisplayID (HowToDisplayID)
package {
import flash.display.*;
import flash.text.*;
public dynamic class HowToDisplayID extends MovieClip {
public var Basics:MovieClip;
public var BackButton:BackButtonID;
public var Swarm:MovieClip;
public var Unlock:MovieClip;
public var Survival:MovieClip;
public var Classic:MovieClip;
public var Display:TextField;
public var Particles:MovieClip;
public var Weapons:MovieClip;
public var Up:MovieClip;
public var Down:MovieClip;
}
}//package
Section 239
//LaserShotFX (LaserShotFX)
package {
import flash.media.*;
public dynamic class LaserShotFX extends Sound {
}
}//package
Section 240
//lightningFX (lightningFX)
package {
import flash.media.*;
public dynamic class lightningFX extends Sound {
}
}//package
Section 241
//LightningGraphicID (LightningGraphicID)
package {
import flash.display.*;
public dynamic class LightningGraphicID extends MovieClip {
}
}//package
Section 242
//LightningStartID (LightningStartID)
package {
import flash.display.*;
public dynamic class LightningStartID extends MovieClip {
}
}//package
Section 243
//MainMenuDisplayID (MainMenuDisplayID)
package {
import flash.display.*;
public dynamic class MainMenuDisplayID extends MovieClip {
public var EnemyList:SimpleButton;
public var StartGame:SimpleButton;
public var MoreGamesButton:MovieClip;
public var Options:SimpleButton;
public var Password:SimpleButton;
public var SponsorButton:MovieClip;
public var HowTo:SimpleButton;
public var HighScore:SimpleButton;
}
}//package
Section 244
//MenuThemeID (MenuThemeID)
package {
import flash.media.*;
public dynamic class MenuThemeID extends Sound {
}
}//package
Section 245
//missile_explodeID (missile_explodeID)
package {
import flash.display.*;
public dynamic class missile_explodeID extends MovieClip {
}
}//package
Section 246
//missileAmmoID (missileAmmoID)
package {
import flash.display.*;
public dynamic class missileAmmoID extends MovieClip {
}
}//package
Section 247
//missilecollideFX (missilecollideFX)
package {
import flash.media.*;
public dynamic class missilecollideFX extends Sound {
}
}//package
Section 248
//ModeDisplayID (ModeDisplayID)
package {
import flash.display.*;
import flash.text.*;
public dynamic class ModeDisplayID extends MovieClip {
public var SurvivalButton:MovieClip;
public var BackButton:BackButtonID;
public var Phase1:MovieClip;
public var Phase3:MovieClip;
public var Phase2:MovieClip;
public var ClassicButton:MovieClip;
public var Phase4:MovieClip;
public var PracticeButton:MovieClip;
public var ArcadeButton:MovieClip;
public var Display:TextField;
public var SwarmButton:MovieClip;
}
}//package
Section 249
//MouseGlowerID (MouseGlowerID)
package {
import flash.display.*;
public dynamic class MouseGlowerID extends MovieClip {
}
}//package
Section 250
//MudSplatFX (MudSplatFX)
package {
import flash.media.*;
public dynamic class MudSplatFX extends Sound {
}
}//package
Section 251
//Net (Net)
package {
import flash.net.*;
import flash.events.*;
public class Net {
private static var loader:URLLoader;
private static var request:URLRequest;
public static function sendData(_arg1:URLVariables, _arg2:String, _arg3:Function, _arg4:Function):void{
request = new URLRequest(_arg2);
request.data = _arg1;
request.method = URLRequestMethod.POST;
trace(((("sendToURL: " + request.url) + "?") + request.data));
sendToURL(request);
loader = new URLLoader();
loader.addEventListener(Event.COMPLETE, _arg3, false, 0, true);
loader.addEventListener(IOErrorEvent.IO_ERROR, _arg4, false, 0, true);
loader.load(request);
}
public static function getURL(_arg1:String):void{
var url = _arg1;
try {
navigateToURL(new URLRequest(url), "_blank");
} catch(e) {
trace(("Net.getURL:e=" + e));
};
}
}
}//package
Section 252
//NetAmmoID (NetAmmoID)
package {
import flash.display.*;
public dynamic class NetAmmoID extends MovieClip {
}
}//package
Section 253
//NoButtonID (NoButtonID)
package {
import flash.display.*;
public dynamic class NoButtonID extends MovieClip {
public function NoButtonID(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 254
//NTECH_APPLICATION (NTECH_APPLICATION)
package {
import game.engine.NTechBattleGrounds.*;
public dynamic class NTECH_APPLICATION extends NTechBattleGrounds {
}
}//package
Section 255
//NullWeaponID (NullWeaponID)
package {
import flash.display.*;
public dynamic class NullWeaponID extends MovieClip {
}
}//package
Section 256
//OptionsDisplayID (OptionsDisplayID)
package {
import flash.display.*;
import flash.text.*;
public dynamic class OptionsDisplayID extends MovieClip {
public var QualityNo:NoButtonID;
public var SFXNo:NoButtonID;
public var HardButton:MovieClip;
public var EasyButton:MovieClip;
public var MusicKnob:MovieClip;
public var InfoBox:TextField;
public var NormalButton:MovieClip;
public var Low:MovieClip;
public var BackButton:BackButtonID;
public var SFXYes:YesButtonID;
public var Medium:MovieClip;
public var QualityYes:YesButtonID;
public var MusicNo:NoButtonID;
public var SFXKnob:MovieClip;
public var MusicYes:YesButtonID;
public var BackgroundNo:NoButtonID;
public var BackgroundYes:YesButtonID;
public var High:MovieClip;
}
}//package
Section 257
//Particle1ID (Particle1ID)
package {
import flash.display.*;
public dynamic class Particle1ID extends MovieClip {
}
}//package
Section 258
//Particle2ID (Particle2ID)
package {
import flash.display.*;
public dynamic class Particle2ID extends MovieClip {
}
}//package
Section 259
//Particle3ID (Particle3ID)
package {
import flash.display.*;
public dynamic class Particle3ID extends MovieClip {
}
}//package
Section 260
//Particle4ID (Particle4ID)
package {
import flash.display.*;
public dynamic class Particle4ID extends MovieClip {
}
}//package
Section 261
//ParticleBadCollectID (ParticleBadCollectID)
package {
import flash.display.*;
public dynamic class ParticleBadCollectID extends MovieClip {
}
}//package
Section 262
//ParticleBlasterFX (ParticleBlasterFX)
package {
import flash.media.*;
public dynamic class ParticleBlasterFX extends Sound {
}
}//package
Section 263
//ParticleCollectFX (ParticleCollectFX)
package {
import flash.media.*;
public dynamic class ParticleCollectFX extends Sound {
}
}//package
Section 264
//ParticleCollectID (ParticleCollectID)
package {
import flash.display.*;
public dynamic class ParticleCollectID extends MovieClip {
}
}//package
Section 265
//PasswordDisplayID (PasswordDisplayID)
package {
import flash.display.*;
import flash.text.*;
public dynamic class PasswordDisplayID extends MovieClip {
public var Code:TextField;
public var BackButton:BackButtonID;
public var Display:TextField;
}
}//package
Section 266
//Phase1FX (Phase1FX)
package {
import flash.media.*;
public dynamic class Phase1FX extends Sound {
}
}//package
Section 267
//phase2FX (phase2FX)
package {
import flash.media.*;
public dynamic class phase2FX extends Sound {
}
}//package
Section 268
//phase3ammoDestroyID (phase3ammoDestroyID)
package {
import flash.display.*;
public dynamic class phase3ammoDestroyID extends MovieClip {
}
}//package
Section 269
//phase3ammoID (phase3ammoID)
package {
import flash.display.*;
public dynamic class phase3ammoID extends MovieClip {
}
}//package
Section 270
//phase3FX (phase3FX)
package {
import flash.media.*;
public dynamic class phase3FX extends Sound {
}
}//package
Section 271
//phase4FX (phase4FX)
package {
import flash.media.*;
public dynamic class phase4FX extends Sound {
}
}//package
Section 272
//phase4photonID (phase4photonID)
package {
import flash.display.*;
public dynamic class phase4photonID extends MovieClip {
}
}//package
Section 273
//PlayerBackGround1ID (PlayerBackGround1ID)
package {
import flash.display.*;
public dynamic class PlayerBackGround1ID extends MovieClip {
}
}//package
Section 274
//PlayerDeathID (PlayerDeathID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class PlayerDeathID extends MovieClip {
public function PlayerDeathID(){
addFrameScript(94, frame95);
}
function frame95(){
dispatchEvent(new Event("PlayerDestroyed"));
}
}
}//package
Section 275
//PlayerDevice1ID (PlayerDevice1ID)
package {
import flash.display.*;
public dynamic class PlayerDevice1ID extends MovieClip {
}
}//package
Section 276
//PlayerIntro1ID (PlayerIntro1ID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class PlayerIntro1ID extends MovieClip {
public function PlayerIntro1ID(){
addFrameScript(16, frame17);
}
function frame17(){
dispatchEvent(new Event("PlayerIntro"));
}
}
}//package
Section 277
//PlayerStickyNetID (PlayerStickyNetID)
package {
import flash.display.*;
public dynamic class PlayerStickyNetID extends MovieClip {
}
}//package
Section 278
//Pointer1ID (Pointer1ID)
package {
import flash.display.*;
public dynamic class Pointer1ID extends MovieClip {
}
}//package
Section 279
//PowerUpCollectID (PowerUpCollectID)
package {
import flash.display.*;
public dynamic class PowerUpCollectID extends MovieClip {
}
}//package
Section 280
//PowerUpID (PowerUpID)
package {
import flash.display.*;
public dynamic class PowerUpID extends MovieClip {
}
}//package
Section 281
//RadonFlareID (RadonFlareID)
package {
import flash.display.*;
public dynamic class RadonFlareID extends MovieClip {
public function RadonFlareID(){
addFrameScript(115, frame116);
}
function frame116(){
stop();
}
}
}//package
Section 282
//RapidsAmmoID (RapidsAmmoID)
package {
import flash.display.*;
public dynamic class RapidsAmmoID extends MovieClip {
}
}//package
Section 283
//razorFX (razorFX)
package {
import flash.media.*;
public dynamic class razorFX extends Sound {
}
}//package
Section 284
//scififx1FX (scififx1FX)
package {
import flash.media.*;
public dynamic class scififx1FX extends Sound {
}
}//package
Section 285
//scififx2FX (scififx2FX)
package {
import flash.media.*;
public dynamic class scififx2FX extends Sound {
}
}//package
Section 286
//scififx3FX (scififx3FX)
package {
import flash.media.*;
public dynamic class scififx3FX extends Sound {
}
}//package
Section 287
//screenrumbleentryFX (screenrumbleentryFX)
package {
import flash.media.*;
public dynamic class screenrumbleentryFX extends Sound {
}
}//package
Section 288
//ShieldChargeID (ShieldChargeID)
package {
import flash.display.*;
public dynamic class ShieldChargeID extends MovieClip {
}
}//package
Section 289
//Shot1FX (Shot1FX)
package {
import flash.media.*;
public dynamic class Shot1FX extends Sound {
}
}//package
Section 290
//ShotPopFX (ShotPopFX)
package {
import flash.media.*;
public dynamic class ShotPopFX extends Sound {
}
}//package
Section 291
//SimpleEnemyShotDestroyID (SimpleEnemyShotDestroyID)
package {
import flash.display.*;
public dynamic class SimpleEnemyShotDestroyID extends MovieClip {
}
}//package
Section 292
//SimpleEnemyShotID (SimpleEnemyShotID)
package {
import flash.display.*;
public dynamic class SimpleEnemyShotID extends MovieClip {
}
}//package
Section 293
//SmallRadonBeamID (SmallRadonBeamID)
package {
import flash.display.*;
public dynamic class SmallRadonBeamID extends MovieClip {
}
}//package
Section 294
//SponsorBufferID (SponsorBufferID)
package {
import flash.display.*;
public dynamic class SponsorBufferID extends MovieClip {
}
}//package
Section 295
//SqueakyBufferID (SqueakyBufferID)
package {
import flash.display.*;
public dynamic class SqueakyBufferID extends MovieClip {
}
}//package
Section 296
//StartTransitionID (StartTransitionID)
package {
import flash.display.*;
public dynamic class StartTransitionID extends MovieClip {
}
}//package
Section 297
//StoryMovieID (StoryMovieID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class StoryMovieID extends MovieClip {
public function StoryMovieID(){
addFrameScript(3659, frame3660);
}
function frame3660(){
stop();
dispatchEvent(new Event("EndMovie"));
}
}
}//package
Section 298
//swoosh1FX (swoosh1FX)
package {
import flash.media.*;
public dynamic class swoosh1FX extends Sound {
}
}//package
Section 299
//swoosh2FX (swoosh2FX)
package {
import flash.media.*;
public dynamic class swoosh2FX extends Sound {
}
}//package
Section 300
//swoosh3FX (swoosh3FX)
package {
import flash.media.*;
public dynamic class swoosh3FX extends Sound {
}
}//package
Section 301
//SwordFX (SwordFX)
package {
import flash.media.*;
public dynamic class SwordFX extends Sound {
}
}//package
Section 302
//TestEnemyDestroyID (TestEnemyDestroyID)
package {
import flash.display.*;
public dynamic class TestEnemyDestroyID extends MovieClip {
}
}//package
Section 303
//TestEnemyID (TestEnemyID)
package {
import flash.display.*;
public dynamic class TestEnemyID extends MovieClip {
}
}//package
Section 304
//TestEnemyIntroID (TestEnemyIntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class TestEnemyIntroID extends MovieClip {
public function TestEnemyIntroID(){
addFrameScript(10, frame11);
}
function frame11(){
dispatchEvent(new Event("EnemyIntro"));
}
}
}//package
Section 305
//ThookFX (ThookFX)
package {
import flash.media.*;
public dynamic class ThookFX extends Sound {
}
}//package
Section 306
//WallBeamDestroyID (WallBeamDestroyID)
package {
import flash.display.*;
public dynamic class WallBeamDestroyID extends MovieClip {
}
}//package
Section 307
//WallBeamID (WallBeamID)
package {
import flash.display.*;
public dynamic class WallBeamID extends MovieClip {
}
}//package
Section 308
//Weapon1ID (Weapon1ID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Weapon1ID extends MovieClip {
public function Weapon1ID(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
dispatchEvent(new Event("Fired"));
}
}
}//package
Section 309
//Weapon1IntroID (Weapon1IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Weapon1IntroID extends MovieClip {
public function Weapon1IntroID(){
addFrameScript(9, frame10);
}
function frame10(){
dispatchEvent(new Event("WeaponIntro"));
}
}
}//package
Section 310
//Weapon2ID (Weapon2ID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Weapon2ID extends MovieClip {
public function Weapon2ID(){
addFrameScript(0, frame1, 18, frame19);
}
function frame1(){
stop();
}
function frame19(){
dispatchEvent(new Event("Fired"));
}
}
}//package
Section 311
//Weapon2IntroID (Weapon2IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Weapon2IntroID extends MovieClip {
public function Weapon2IntroID(){
addFrameScript(9, frame10);
}
function frame10(){
dispatchEvent(new Event("WeaponIntro"));
}
}
}//package
Section 312
//Weapon3ID (Weapon3ID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Weapon3ID extends MovieClip {
public function Weapon3ID(){
addFrameScript(0, frame1, 36, frame37);
}
function frame1(){
stop();
}
function frame37(){
dispatchEvent(new Event("Fired"));
}
}
}//package
Section 313
//Weapon3IntroID (Weapon3IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Weapon3IntroID extends MovieClip {
public function Weapon3IntroID(){
addFrameScript(36, frame37);
}
function frame37(){
dispatchEvent(new Event("WeaponIntro"));
}
}
}//package
Section 314
//Weapon4ID (Weapon4ID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Weapon4ID extends MovieClip {
public function Weapon4ID(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
dispatchEvent(new Event("Fired"));
}
}
}//package
Section 315
//Weapon4IntroID (Weapon4IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Weapon4IntroID extends MovieClip {
public function Weapon4IntroID(){
addFrameScript(9, frame10);
}
function frame10(){
dispatchEvent(new Event("WeaponIntro"));
}
}
}//package
Section 316
//Weapon5ID (Weapon5ID)
package {
import flash.display.*;
public dynamic class Weapon5ID extends MovieClip {
}
}//package
Section 317
//Weapon5IntroID (Weapon5IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Weapon5IntroID extends MovieClip {
public function Weapon5IntroID(){
addFrameScript(9, frame10);
}
function frame10(){
dispatchEvent(new Event("WeaponIntro"));
}
}
}//package
Section 318
//Weapon6ID (Weapon6ID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Weapon6ID extends MovieClip {
public function Weapon6ID(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
dispatchEvent(new Event("Fired"));
}
}
}//package
Section 319
//Weapon6IntroID (Weapon6IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Weapon6IntroID extends MovieClip {
public function Weapon6IntroID(){
addFrameScript(9, frame10);
}
function frame10(){
dispatchEvent(new Event("WeaponIntro"));
}
}
}//package
Section 320
//Weapon7ID (Weapon7ID)
package {
import flash.display.*;
public dynamic class Weapon7ID extends MovieClip {
}
}//package
Section 321
//Weapon7IntroID (Weapon7IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Weapon7IntroID extends MovieClip {
public function Weapon7IntroID(){
addFrameScript(9, frame10);
}
function frame10(){
dispatchEvent(new Event("WeaponIntro"));
}
}
}//package
Section 322
//Weapon8ID (Weapon8ID)
package {
import flash.display.*;
public dynamic class Weapon8ID extends MovieClip {
public function Weapon8ID(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 323
//Weapon8IntroID (Weapon8IntroID)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Weapon8IntroID extends MovieClip {
public function Weapon8IntroID(){
addFrameScript(9, frame10);
}
function frame10(){
dispatchEvent(new Event("WeaponIntro"));
}
}
}//package
Section 324
//WebbingFX (WebbingFX)
package {
import flash.media.*;
public dynamic class WebbingFX extends Sound {
}
}//package
Section 325
//YesButtonID (YesButtonID)
package {
import flash.display.*;
public dynamic class YesButtonID extends MovieClip {
public function YesButtonID(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package