Frame 1
fscommand ("showmenu", false);
Loading = function () {
Loading.Load();
};
Loading.Load = function () {
var _local1 = _root;
Loading.gTotal = _local1.getBytesTotal();
Loading.gLoad = _local1.getBytesLoaded();
Loading.gPercentage = math.floor(Loading.gLoad / Loading.gTotal) * 100;
_local1.LI._alpha = (Loading.gPercentage - 100) + 10;
_local1.LI._bar._xscale = Loading.gPercentage;
_local1.LI._tload.text = ("Loading .. " + Loading.gPercentage) + "%";
if (Loading.gLoad == Loading.gTotal) {
gotoAndStop (4);
}
};
Loading();
Frame 3
gotoAndPlay (1);
Frame 4
fscommand ("showmenu", false);
Enemy = function (args_type, args_code, args_posx, args_posy) {
var _local1 = this;
_local1.LoadAttributes(args_type, args_code, args_posx, args_posy);
_local1.AttachClip();
_local1.InitialAction();
};
Enemy.prototype.LoadAttributes = function (args_type, args_code, args_posx, args_posy) {
var _local1 = this;
_local1.ob = new Object();
_local1.ob.mCode = args_code;
_local1.ob.mType = args_type;
_local1.ob.mLife = 100;
_local1.ob.mDmg = 0;
_local1.ob.mHeight = 0;
_local1.ob.mWidth = 0;
_local1.ob.cBullet = null;
_local1.ob.mBoolFire = false;
_local1.ob.mBoolAvailable = true;
_local1.ob.firet = 0;
_local1.ob.deg = 0;
_local1.ob.posx = args_posx;
_local1.ob.posy = args_posy;
_local1.ob.movx = 0;
_local1.ob.movy = 0;
_local1.ob.actt = 0;
_local1.ob.acttmax = 50;
_local1.ob.actnum = 0;
_local1.ob.mBoolBossChase = false;
_local1.ob.mBoolBossReturn = false;
_local1.ob.mBoolInvisible = false;
_local1.ob.mBossHeadfn = 1;
_local1.ob.mBossHeadfopen = 3;
_local1.ob.mBossHeadfnmax = 5;
_local1.ob.mBossHeadft = 0;
_local1.ob.mBossHeadftmax = 0;
_local1.ob.mBossHandfn = 1;
_local1.ob.mBossHandfopen = 5;
_local1.ob.mBossHandfnmax = 8;
_local1.ob.mBossHandft = 0;
_local1.ob.mBossHandftmax = 1;
_local1.ob.score = 100;
};
Enemy.prototype.AttachClip = function () {
var _local1 = this;
attachMovie("enemy_" + _local1.ob.mType, (("en" + _local1.ob.mType) + "-") + _local1.ob.mCode, 500 + _local1.ob.mCode);
_local1.ob.clip = _root[(("en" + _local1.ob.mType) + "-") + _local1.ob.mCode];
};
Enemy.prototype.RemoveClip = function () {
var _local1 = this;
_local1.ob.mBoolAvailable = false;
_local1.CBullet.ob.bool_EnemyAvailable = _local1.ob.mBoolAvailable;
_local1.ob.clip.removeMovieClip();
if (!_local1.ob.mBoolFire) {
var _local2 = _local1.ob.mCode;
Game.RemoveEnemy(_local2);
}
};
Enemy.prototype.RemoveAll = function () {
this.ob.clip.removeMovieClip();
this.cBullet.RemoveAll();
};
Enemy.prototype.RenderClip = function () {
var _local2 = this;
var _local1 = _local2.ob.clip;
_local1._x = _local2.ob.posx;
_local1._y = _local2.ob.posy;
if (!_local2.ob.mBoolInvisible) {
if (_local1._alpha < 100) {
_local1._alpha = _local1._alpha + 20;
}
}
};
Enemy.prototype.InitialAction = function () {
var _local2 = this;
var _local1 = _local2.ob.mType.substring(0, 1);
if (_local1 == "t") {
_local2.InitialEnemy();
}
if (_local1 == "i") {
_local2.InitialItem();
}
};
Enemy.prototype.InitialEnemy = function () {
var _local1 = this;
var _local2 = Number(_local1.ob.mType.substring(1, 3));
var gVAR_Code = _local1.ob.mCode;
switch (_local2) {
case 1 :
_local1.ob.posy = _local1.ob.posy + 0;
_local1.ob.movx = 0;
_local1.ob.movy = 5;
_local1.ob.mLife = 75;
_local1.ob.mHeight = 30;
_local1.ob.mWidth = 30;
_local1.ob.score = 50;
return;
case 2 :
_local1.ob.posy = _local1.ob.posy - 100;
_local1.ob.movx = 0;
_local1.ob.movy = 3;
_local1.ob.mLife = 100;
_local1.ob.mHeight = 28;
_local1.ob.mWidth = 14;
_local1.ob.score = 80;
return;
case 3 :
_local1.ob.posy = _local1.ob.posy - 50;
_local1.ob.movx = 0;
_local1.ob.movy = 5;
_local1.ob.mLife = 120;
_local1.ob.mHeight = 25;
_local1.ob.mWidth = 15;
_local1.ob.score = 100;
return;
case 4 :
_local1.ob.deg = 0;
_local1.ob.movx = 5;
_local1.ob.movy = 2;
_local1.ob.mLife = 450;
_local1.ob.mHeight = 15;
_local1.ob.mWidth = 15;
_local1.ob.score = 250;
return;
case 5 :
_local1.ob.deg = 0;
_local1.ob.movx = 5;
_local1.ob.movy = 2;
_local1.ob.mLife = 250;
_local1.ob.mHeight = 15;
_local1.ob.mWidth = 15;
_local1.ob.score = 150;
return;
case 6 :
_local1.ob.deg = 0;
_local1.ob.movx = 5;
_local1.ob.movy = 2;
_local1.ob.mLife = 250;
_local1.ob.mHeight = 15;
_local1.ob.mWidth = 15;
_local1.ob.score = 150;
return;
case 7 :
_local1.ob.deg = 180;
_local1.ob.movx = 5;
_local1.ob.movy = 2;
_local1.ob.mLife = 450;
_local1.ob.mHeight = 15;
_local1.ob.mWidth = 15;
_local1.ob.score = 250;
return;
case 8 :
_local1.ob.deg = 180;
_local1.ob.movx = 5;
_local1.ob.movy = 2;
_local1.ob.mLife = 250;
_local1.ob.mHeight = 15;
_local1.ob.mWidth = 15;
_local1.ob.score = 150;
return;
case 9 :
_local1.ob.deg = 180;
_local1.ob.movx = 5;
_local1.ob.movy = 2;
_local1.ob.mLife = 250;
_local1.ob.mHeight = 15;
_local1.ob.mWidth = 15;
_local1.ob.score = 150;
return;
case 10 :
_local1.ob.movx = 2;
_local1.ob.movy = 2;
_local1.ob.mLife = 300;
_local1.ob.mHeight = 20;
_local1.ob.mWidth = 20;
_local1.ob.score = 200;
return;
case 11 :
_local1.ob.movx = -2;
_local1.ob.movy = 2;
_local1.ob.mLife = 300;
_local1.ob.mHeight = 20;
_local1.ob.mWidth = 20;
_local1.ob.score = 200;
return;
case 12 :
_local1.ob.movx = 5;
_local1.ob.movy = 4;
_local1.ob.mLife = 500;
_local1.ob.mHeight = 25;
_local1.ob.mWidth = 25;
_local1.ob.score = 220;
return;
case 13 :
_local1.ob.deg = 90;
_local1.ob.movx = 5;
_local1.ob.movy = -5;
_local1.ob.mLife = 200;
_local1.ob.mHeight = 25;
_local1.ob.mWidth = 25;
_local1.ob.score = 250;
return;
case 14 :
_local1.ob.deg = 270;
_local1.ob.movx = 5;
_local1.ob.movy = -5;
_local1.ob.mLife = 200;
_local1.ob.mHeight = 25;
_local1.ob.mWidth = 25;
_local1.ob.score = 250;
return;
case 15 :
_local1.ob.movx = 8;
_local1.ob.movy = 0;
_local1.ob.mLife = 300;
_local1.ob.mHeight = 25;
_local1.ob.mWidth = 25;
_local1.ob.score = 300;
return;
case 16 :
_local1.ob.movx = -8;
_local1.ob.movy = 0;
_local1.ob.mLife = 300;
_local1.ob.mHeight = 25;
_local1.ob.mWidth = 25;
_local1.ob.score = 300;
return;
case 17 :
_local1.ob.movx = 0;
_local1.ob.movy = 8;
_local1.ob.mLife = 300;
_local1.ob.mHeight = 25;
_local1.ob.mWidth = 25;
_local1.ob.score = 320;
return;
case 18 :
_local1.ob.movx = 0;
_local1.ob.movy = -8;
_local1.ob.mLife = 300;
_local1.ob.mHeight = 25;
_local1.ob.mWidth = 25;
_local1.ob.score = 320;
return;
case 19 :
_local1.ob.movx = 0;
_local1.ob.movy = 2;
_local1.ob.mLife = 900;
_local1.ob.acttmax = 20;
_local1.ob.mHeight = 30;
_local1.ob.mWidth = 30;
_local1.ob.score = 500;
return;
case 20 :
_local1.ob.movx = 0;
_local1.ob.movy = 3;
_local1.ob.mLife = 700;
_local1.ob.acttmax = 20;
_local1.ob.mHeight = 30;
_local1.ob.mWidth = 30;
_local1.ob.score = 400;
return;
case 21 :
_local1.ob.deg = 0;
_local1.ob.movx = 10;
_local1.ob.movy = 10;
_local1.ob.mLife = 350;
_local1.ob.mHeight = 25;
_local1.ob.mWidth = 25;
_local1.ob.score = 350;
return;
case 22 :
_local1.ob.deg = 180;
_local1.ob.movx = 10;
_local1.ob.movy = 10;
_local1.ob.mLife = 350;
_local1.ob.mHeight = 25;
_local1.ob.mWidth = 25;
_local1.ob.score = 350;
return;
case 23 :
_local1.ob.deg = 0;
_local1.ob.movx = 0;
_local1.ob.movy = 0;
_local1.ob.acttmax = 40;
_local1.ob.mLife = 9000;
_local1.ob.mHeight = 60;
_local1.ob.mWidth = 30;
_local1.ob.score = 1000;
return;
case 24 :
_local1.ob.deg = 0;
_local1.ob.movx = 0;
_local1.ob.movy = 0;
_local1.ob.acttmax = 40;
_local1.ob.mLife = 9000;
_local1.ob.mHeight = 60;
_local1.ob.mWidth = 30;
_local1.ob.score = 1000;
return;
case 25 :
_local1.ob.deg = 0;
_local1.ob.movx = 0;
_local1.ob.movy = 0;
_local1.ob.acttmax = 75;
_local1.ob.mLife = 12000;
_local1.ob.mHeight = 60;
_local1.ob.mWidth = 75;
_local1.ob.score = 2000;
return;
}
};
Enemy.prototype.InitialItem = function () {
var _local1 = this;
var _local2 = Number(_local1.ob.mType.substring(1, 3));
var gVAR_Code = _local1.ob.mCode;
switch (_local2) {
case 1 :
_local1.ob.posx = random(200) + 100;
_local1.ob.posy = 0;
_local1.ob.movx = 3;
_local1.ob.movy = 2;
_local1.ob.mLife = 30;
_local1.ob.mHeight = 15;
_local1.ob.mWidth = 15;
return;
case 2 :
_local1.ob.posx = random(200) + 100;
_local1.ob.posy = _local1.ob.posy - random(100);
_local1.ob.movx = 5;
_local1.ob.movy = 4;
_local1.ob.mLife = 45;
_local1.ob.mHeight = 15;
_local1.ob.mWidth = 15;
return;
case 3 :
_local1.ob.posx = random(200) + 100;
_local1.ob.posy = _local1.ob.posy - random(50);
_local1.ob.movx = 0;
_local1.ob.movy = 3;
_local1.ob.mLife = 80;
_local1.ob.mHeight = 18;
_local1.ob.mWidth = 15;
return;
case 4 :
return;
}
};
Enemy.prototype.CollisionCheck = function () {
var _local2 = this;
if (!Game.bGameOver) {
var _local1 = Game.sPlayer[0];
var gVAR_MyX = _local2.ob.posx;
var gVAR_MyY = _local2.ob.posy;
var gVAR_OpX = _local1.ob.posx;
var gVAR_OpY = _local1.ob.posy;
var gVAR_DisX = math.abs(gVAR_OpX - gVAR_MyX);
var _local3 = math.abs(gVAR_OpY - gVAR_MyY);
var gVAR_Width = (_local2.ob.mWidth + _local1.ob.mWidth);
var gVAR_Height = (_local2.ob.mHeight + _local1.ob.mHeight);
if ((gVAR_DisX < gVAR_Width) && (_local3 < gVAR_Height)) {
_local2.TakeDamage(20);
_local1.TakeDamage(5);
return(null);
}
}
return(undefined);
};
Enemy.prototype.Boundary = function () {
var _local2 = this;
var _local1 = _local2.ob.mType.substring(0, 1);
if (_local1 == "t") {
_local2.BoundaryEnemy();
}
if (_local1 == "i") {
_local2.BoundaryItem();
}
};
Enemy.prototype.BoundaryEnemy = function () {
var _local1 = this;
var _local3 = Number(_local1.ob.mType.substring(1, 3));
var _local2 = _local1.ob.mCode;
switch (_local3) {
case 1 :
if (_local1.ob.posy > 490) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
case 2 :
if (_local1.ob.posy > 490) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
case 3 :
if (_local1.ob.posy > 490) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
case 4 :
if (_local1.ob.posy > 490) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
case 5 :
if (_local1.ob.posy > 490) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
case 6 :
if (_local1.ob.posy > 490) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
case 7 :
if (_local1.ob.posy > 490) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
case 8 :
if (_local1.ob.posy > 490) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
case 9 :
if (_local1.ob.posy > 490) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
case 10 :
if (_local1.ob.posx > 450) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
case 11 :
if (_local1.ob.posx < -50) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
case 12 :
if (_local1.ob.posy > 490) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
case 13 :
if (_local1.ob.posy < 0) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
case 14 :
if (_local1.ob.posy < 0) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
case 15 :
if (_local1.ob.posx > 490) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
case 16 :
if (_local1.ob.posx < -50) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
case 17 :
if (_local1.ob.posy > 490) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
case 18 :
if (_local1.ob.posy < -50) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
case 19 :
if (_local1.ob.posx < 50) {
_local1.ob.posx = 50;
}
if (_local1.ob.posx > 350) {
_local1.ob.posx = 350;
}
if (_local1.ob.posy < 50) {
_local1.ob.posy = 50;
}
if (_local1.ob.posy > 490) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
case 20 :
if (_local1.ob.posx < 50) {
_local1.ob.posx = 50;
}
if (_local1.ob.posx > 350) {
_local1.ob.posx = 350;
}
if (_local1.ob.posy < 50) {
_local1.ob.posy = 50;
}
if (_local1.ob.posy > 490) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
case 21 :
if (_local1.ob.posy > 490) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
case 22 :
if (_local1.ob.posy > 490) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
}
};
Enemy.prototype.BoundaryItem = function () {
var _local1 = this;
var _local3 = Number(_local1.ob.mType.substring(1, 3));
var _local2 = _local1.ob.mCode;
switch (_local3) {
case 1 :
if (_local1.ob.posy > 490) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
case 2 :
if (_local1.ob.posy > 490) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
case 3 :
if (_local1.ob.posy > 490) {
_local1.RemoveClip();
Game.DisactivateEnemy(_local2);
}
return;
case 4 :
return;
}
};
Enemy.prototype.Action = function () {
var _local2 = this;
var _local1 = _local2.ob.mType.substring(0, 1);
if (_local1 == "t") {
_local2.ActionEnemy();
}
if (_local1 == "i") {
_local2.ActionItem();
}
};
Enemy.prototype.OnFireTimer = function (args_tmax) {
var _local1 = this;
_local1.ob.firet++;
if (_local1.ob.firet >= args_tmax) {
_local1.ob.firet = 0;
return(true);
}
return(false);
};
Enemy.prototype.ActionEnemy = function () {
var _local1 = this;
var gVAR_Num = Number(_local1.ob.mType.substring(1, 3));
switch (gVAR_Num) {
case 1 :
if (_local1.ob.posy > 200) {
_local1.ob.movy = 10;
}
return;
case 2 :
if ((_local1.ob.posy > 50) && (!_local1.ob.mBoolFire)) {
_local1.Fire();
_local1.ob.mBoolFire = true;
}
return;
case 3 :
if (_local1.ob.posy > 100) {
_local1.ob.movy = 3;
}
if ((_local1.ob.posy > 150) && (!_local1.ob.mBoolFire)) {
_local1.Fire();
_local1.ob.mBoolFire = true;
}
return;
case 4 :
_local1.ob.deg = _local1.ob.deg + 3;
if (_local1.ob.posy > 100) {
if (!_local1.ob.mBoolFire) {
_local1.Fire();
_local1.cBullet.CaptureMultipleAngle(_local1.ob.posx, _local1.ob.posy);
_local1.ob.mBoolFire = true;
}
if (_local1.OnFireTimer(20)) {
_local1.cBullet.Fire(_local1.ob.posx, _local1.ob.posy, true);
}
}
return;
case 5 :
_local1.ob.deg = _local1.ob.deg + 3;
return;
case 6 :
_local1.ob.deg = _local1.ob.deg + 3;
return;
case 7 :
_local1.ob.deg = _local1.ob.deg + 3;
if (_local1.ob.posy > 100) {
if (!_local1.ob.mBoolFire) {
_local1.Fire();
_local1.cBullet.CaptureMultipleAngle(_local1.ob.posx, _local1.ob.posy);
_local1.ob.mBoolFire = true;
}
if (_local1.OnFireTimer(20)) {
_local1.cBullet.Fire(_local1.ob.posx, _local1.ob.posy, true);
}
}
return;
case 8 :
_local1.ob.deg = _local1.ob.deg + 3;
return;
case 9 :
_local1.ob.deg = _local1.ob.deg + 3;
return;
case 10 :
if ((_local1.ob.posx > 100) && (!_local1.ob.mBoolFire)) {
_local1.Fire();
_local1.ob.mBoolFire = true;
_local1.ob.movy = 0;
}
return;
case 11 :
if ((_local1.ob.posx < 300) && (!_local1.ob.mBoolFire)) {
_local1.Fire();
_local1.ob.mBoolFire = true;
_local1.ob.movy = 0;
}
return;
case 12 :
if ((_local1.ob.posy > 100) && (!_local1.ob.mBoolFire)) {
_local1.Fire();
_local1.ob.mBoolFire = true;
}
return;
case 13 :
if ((_local1.ob.posy < 500) && (_local1.ob.posy > 400)) {
_local1.ob.deg = _local1.ob.deg - 2;
}
if ((_local1.ob.posy <= 400) && (_local1.ob.posy > 350)) {
_local1.ob.deg = _local1.ob.deg - 5;
}
if ((_local1.ob.posy <= 350) && (_local1.ob.posy > 150)) {
_local1.ob.deg = _local1.ob.deg + 5;
}
if ((_local1.ob.posy <= 150) && (_local1.ob.posy > 50)) {
_local1.ob.deg = _local1.ob.deg + 3;
}
return;
case 14 :
if ((_local1.ob.posy < 500) && (_local1.ob.posy > 400)) {
_local1.ob.deg = _local1.ob.deg - 2;
}
if ((_local1.ob.posy <= 400) && (_local1.ob.posy > 350)) {
_local1.ob.deg = _local1.ob.deg - 5;
}
if ((_local1.ob.posy <= 350) && (_local1.ob.posy > 150)) {
_local1.ob.deg = _local1.ob.deg + 5;
}
if ((_local1.ob.posy <= 150) && (_local1.ob.posy > 50)) {
_local1.ob.deg = _local1.ob.deg + 3;
}
return;
case 15 :
_local1.ob.movx = 8;
return;
case 16 :
_local1.ob.movx = -8;
return;
case 17 :
_local1.ob.movy = 8;
return;
case 18 :
_local1.ob.movy = -8;
return;
case 19 :
_local1.ActionTimer();
if (_local1.ob.actnum > 5) {
_local1.ob.actnum = 0;
}
var _local3 = _local1.ob.actnum;
if (_local3 == 0) {
_local1.ob.movy = 2;
_local1.ob.acttmax = 20;
}
if (_local3 == 1) {
_local1.ob.movy = 0;
_local1.ob.movx = 3;
_local1.ob.acttmax = 120;
}
if (_local3 == 2) {
_local1.ob.movy = 0;
_local1.ob.movx = -3;
_local1.ob.acttmax = 120;
}
if (_local3 == 3) {
_local1.ob.movy = 0;
_local1.ob.movx = 0;
_local1.ob.acttmax = 60;
}
if (_local3 == 4) {
_local1.ob.movy = 2;
_local1.ob.acttmax = 40;
}
if (_local3 == 5) {
_local1.ob.movy = 5;
_local1.ob.acttmax = 10;
}
if (!_local1.ob.mBoolFire) {
_local1.Fire();
_local1.ob.mBoolFire = true;
}
if (_local1.ob.mBoolFire) {
var gVAR_RandFireTimer = (random(60) + 30);
if (_local1.OnFireTimer(gVAR_RandFireTimer)) {
_local1.cBullet.Fire(_local1.ob.posx, _local1.ob.posy, true);
}
}
return;
case 20 :
_local1.ActionTimer();
if (_local1.ob.actnum > 4) {
_local1.ob.actnum = 0;
}
_local3 = _local1.ob.actnum;
if (_local3 == 0) {
_local1.ob.movy = 3;
_local1.ob.acttmax = 20;
}
if (_local3 == 1) {
_local1.ob.movy = 2;
_local1.ob.movx = 4;
_local1.ob.acttmax = 30;
}
if (_local3 == 2) {
_local1.ob.movy = 2;
_local1.ob.movx = -5;
_local1.ob.acttmax = 30;
}
if (_local3 == 3) {
_local1.ob.movy = 0;
_local1.ob.movx = 5;
_local1.ob.acttmax = 30;
}
if (_local3 == 4) {
_local1.ob.movy = -1;
_local1.ob.movx = -5;
_local1.ob.acttmax = 30;
}
if (!_local1.ob.mBoolFire) {
_local1.Fire();
_local1.ob.mBoolFire = true;
}
if (_local1.ob.mBoolFire) {
if (_local1.OnFireTimer(30)) {
_local1.cBullet.Fire(_local1.ob.posx, _local1.ob.posy, true);
}
}
return;
case 21 :
if (_local1.ob.posy < 250) {
_local1.ob.deg = _local1.ob.deg + 2;
}
if (_local1.ob.posy >= 250) {
_local1.ob.movx = 0;
_local1.ob.movy = 2;
_local1.ob.deg = 90;
if (!_local1.ob.mBoolFire) {
_local1.Fire();
_local1.ob.mBoolFire = true;
}
}
if (_local1.ob.mBoolFire) {
if (_local1.OnFireTimer(60)) {
_local1.cBullet.Fire(_local1.ob.posx, _local1.ob.posy, true);
}
}
return;
case 22 :
if (_local1.ob.posy < 250) {
_local1.ob.deg = _local1.ob.deg - 2;
}
if (_local1.ob.posy >= 250) {
_local1.ob.movx = 0;
_local1.ob.movy = 2;
_local1.ob.deg = 90;
if (!_local1.ob.mBoolFire) {
_local1.Fire();
_local1.ob.mBoolFire = true;
}
}
if (_local1.ob.mBoolFire) {
if (_local1.OnFireTimer(60)) {
_local1.cBullet.Fire(_local1.ob.posx, _local1.ob.posy, true);
}
}
return;
case 23 :
if (!_local1.ob.mBoolBossChase) {
_local1.ActionTimer();
}
if (_local1.ob.actnum > 3) {
_local1.ob.actnum = 0;
}
_local3 = _local1.ob.actnum;
if (_local3 == 0) {
_local1.ob.mBoolInvisible = false;
_local1.ob.acttmax = random(380) + 20;
if (_local1.BossHandMotionTimer()) {
_local1.BossHandMotionDisplay(3);
}
}
if (_local3 == 1) {
if (!_local1.ob.mBoolFire) {
_local1.Fire();
_local1.ob.mBoolFire = true;
}
if (_local1.ob.mBoolFire) {
if (_local1.OnFireTimer(12)) {
_local1.cBullet.Fire(_local1.ob.posx, _local1.ob.posy, true);
}
}
_local1.ob.acttmax = random(180) + 50;
if (_local1.BossHandMotionTimer()) {
_local1.BossHandMotionDisplay(1);
}
}
if (_local3 == 2) {
var gARR_Target = Game.sPlayer[0];
var gVAR_MinX = 300;
var gVAR_MaxX = 400;
if (!_local1.ob.mBoolBossChase) {
if ((gARR_Target.ob.posx < gVAR_MaxX) && (gARR_Target.ob.posx > gVAR_MinX)) {
_local1.ob.movx = 10;
_local1.ob.movy = 10;
_local1.ob.mBoolBossChase = true;
}
}
_local1.ob.acttmax = random(80) + 20;
if (_local1.BossHandMotionTimer()) {
_local1.BossHandMotionDisplay(1);
}
}
if (_local1.ob.mBoolBossChase && (!_local1.ob.mBoolBossReturn)) {
var gVAR_MinY = 400;
var gVAR_MyY = _local1.ob.posy;
if (gVAR_MyY > gVAR_MinY) {
_local1.ob.mBoolBossReturn = true;
}
}
if (_local1.ob.mBoolBossReturn) {
_local1.ob.movx = -5;
_local1.ob.movy = -5;
var gVAR_MinY = 180;
var gVAR_MyY = _local1.ob.posy;
if (gVAR_MyY < gVAR_MinY) {
_local1.ob.posx = 50;
_local1.ob.posy = 180;
_local1.ob.movx = 0;
_local1.ob.movy = 0;
_local1.ob.mBoolBossChase = false;
_local1.ob.mBoolBossReturn = false;
_local1.NextActionEvent();
}
}
if (_local3 == 3) {
var gVAR_Life = _local1.ob.mLife;
if (gVAR_Life < 3000) {
_local1.ob.mBoolInvisible = true;
_local1.ob.acttmax = 120;
}
if (_local1.BossHandMotionTimer()) {
_local1.BossHandMotionDisplay(2);
}
}
if (_local1.ob.mBoolInvisible) {
var _local2 = _local1.ob.clip;
_local2._alpha = _local2._alpha - 10;
if (_local2._alpha < 0) {
_local2._alpha = 0;
}
}
if (!_local1.ob.mBoolInvisible) {
var _local2 = _local1.ob.clip;
_local2._alpha = _local2._alpha + 10;
if (_local2._alpha > 100) {
_local2._alpha = 100;
}
}
return;
case 24 :
if (!_local1.ob.mBoolBossChase) {
_local1.ActionTimer();
}
if (_local1.ob.actnum > 3) {
_local1.ob.actnum = 0;
}
_local3 = _local1.ob.actnum;
if (_local3 == 0) {
_local1.ob.mBoolInvisible = false;
_local1.ob.acttmax = random(380) + 20;
if (_local1.BossHandMotionTimer()) {
_local1.BossHandMotionDisplay(3);
}
}
if (_local3 == 1) {
if (!_local1.ob.mBoolFire) {
_local1.Fire();
_local1.ob.mBoolFire = true;
}
if (_local1.ob.mBoolFire) {
if (_local1.OnFireTimer(12)) {
_local1.cBullet.Fire(_local1.ob.posx, _local1.ob.posy, true);
}
}
_local1.ob.acttmax = random(180) + 50;
if (_local1.BossHandMotionTimer()) {
_local1.BossHandMotionDisplay(1);
}
}
if (_local3 == 2) {
var gARR_Target = Game.sPlayer[0];
var gVAR_MinX = 0;
var gVAR_MaxX = 100;
if (!_local1.ob.mBoolBossChase) {
if ((gARR_Target.ob.posx < gVAR_MaxX) && (gARR_Target.ob.posx > gVAR_MinX)) {
_local1.ob.movx = -10;
_local1.ob.movy = 10;
_local1.ob.mBoolBossChase = true;
}
}
_local1.ob.acttmax = random(80) + 20;
if (_local1.BossHandMotionTimer()) {
_local1.BossHandMotionDisplay(1);
}
}
if (_local1.ob.mBoolBossChase && (!_local1.ob.mBoolBossReturn)) {
var gVAR_MinY = 400;
var gVAR_MyY = _local1.ob.posy;
if (gVAR_MyY > gVAR_MinY) {
_local1.ob.mBoolBossReturn = true;
}
}
if (_local1.ob.mBoolBossReturn) {
_local1.ob.movx = 5;
_local1.ob.movy = -5;
var gVAR_MinY = 180;
var gVAR_MyY = _local1.ob.posy;
if (gVAR_MyY < gVAR_MinY) {
_local1.ob.posx = 350;
_local1.ob.posy = 180;
_local1.ob.movx = 0;
_local1.ob.movy = 0;
_local1.ob.mBoolBossChase = false;
_local1.ob.mBoolBossReturn = false;
_local1.NextActionEvent();
}
}
if (_local3 == 3) {
var gVAR_Life = _local1.ob.mLife;
if (gVAR_Life < 3000) {
_local1.ob.mBoolInvisible = true;
_local1.ob.acttmax = 120;
}
if (_local1.BossHandMotionTimer()) {
_local1.BossHandMotionDisplay(2);
}
}
if (_local1.ob.mBoolInvisible) {
var _local2 = _local1.ob.clip;
_local2._alpha = _local2._alpha - 10;
if (_local2._alpha < 0) {
_local2._alpha = 0;
}
}
if (!_local1.ob.mBoolInvisible) {
var _local2 = _local1.ob.clip;
_local2._alpha = _local2._alpha + 10;
if (_local2._alpha > 100) {
_local2._alpha = 100;
}
}
return;
case 25 :
if (!_local1.ob.mBoolBossChase) {
_local1.ActionTimer();
}
if (_local1.ob.actnum > 2) {
_local1.ob.actnum = 0;
}
_local3 = _local1.ob.actnum;
_local3 = _local1.ob.actnum;
if (_local3 == 0) {
_local1.ob.acttmax = 300;
_local1.BossHeadMotionDisplay(3);
}
if (_local3 == 1) {
if (!_local1.ob.mBoolFire) {
_local1.Fire();
_local1.ob.mBoolFire = true;
sWindow.CurseSound();
}
if (_local1.ob.mBoolFire) {
if (_local1.OnFireTimer(30)) {
_local1.cBullet.Fire(_local1.ob.posx, _local1.ob.posy, false);
sWindow.CurseSound();
}
}
_local1.ob.acttmax = 150;
if (_local1.BossHeadMotionTimer()) {
_local1.BossHeadMotionDisplay(1);
}
}
if (_local3 == 2) {
var gVAR_Life = _local1.ob.mLife;
if (gVAR_Life < 6000) {
var gARR_Target = Game.sPlayer[0];
var gVAR_MinX = 150;
var gVAR_MaxX = 300;
if (!_local1.ob.mBoolBossChase) {
if ((gARR_Target.ob.posx < gVAR_MaxX) && (gARR_Target.ob.posx > gVAR_MinX)) {
_local1.ob.movy = 10;
_local1.ob.mBoolBossChase = true;
}
}
_local1.ob.acttmax = random(80) + 20;
}
if (_local1.BossHeadMotionTimer()) {
_local1.BossHeadMotionDisplay(2);
}
}
if (_local1.ob.mBoolBossChase && (!_local1.ob.mBoolBossReturn)) {
var gVAR_MinY = 350;
var gVAR_MyY = _local1.ob.posy;
if (gVAR_MyY > gVAR_MinY) {
_local1.ob.mBoolBossReturn = true;
}
}
if (_local1.ob.mBoolBossReturn) {
_local1.ob.movy = -5;
var gVAR_MinY = 110;
var gVAR_MyY = _local1.ob.posy;
if (gVAR_MyY < gVAR_MinY) {
_local1.ob.posx = 200;
_local1.ob.posy = 110;
_local1.ob.movx = 0;
_local1.ob.movy = 0;
_local1.ob.mBoolBossChase = false;
_local1.ob.mBoolBossReturn = false;
_local1.NextActionEvent();
}
}
return;
}
};
Enemy.prototype.ActionItem = function () {
var _local1 = Number(this.ob.mType.substring(1, 3));
switch (_local1) {
case 1 :
return;
case 2 :
return;
case 3 :
return;
case 4 :
return;
}
};
Enemy.prototype.NextActionEvent = function () {
this.ob.actt = this.ob.acttmax;
};
Enemy.prototype.ActionTimer = function () {
var _local1 = this;
_local1.ob.actt++;
if (_local1.ob.actt > _local1.ob.acttmax) {
_local1.ob.actt = 0;
_local1.ob.actnum++;
}
};
Enemy.prototype.Fire = function () {
var _local1 = this;
var _local3 = _local1.ob.mType.substring(0, 1);
var _local2 = Number(_local1.ob.mType.substring(1, 3));
if (_local3 == "t") {
switch (_local2) {
case 1 :
return;
case 2 :
_local1.CBullet = new EBullet(_local1.ob.mCode, 1, _local1.ob.posx, _local1.ob.posy, 1, 0, 0, 0, false);
return;
case 3 :
_local1.CBullet = new EBullet(_local1.ob.mCode, 2, _local1.ob.posx, _local1.ob.posy, 0, 1, 0, 0, true);
return;
case 4 :
_local1.CBullet = new EBullet(_local1.ob.mCode, 1, _local1.ob.posx, _local1.ob.posy, 3, 0, 0, 0, true);
return;
case 5 :
return;
case 6 :
return;
case 7 :
_local1.CBullet = new EBullet(_local1.ob.mCode, 1, _local1.ob.posx, _local1.ob.posy, 3, 0, 0, 0, true);
return;
case 8 :
return;
case 9 :
return;
case 10 :
_local1.CBullet = new EBullet(_local1.ob.mCode, 3, _local1.ob.posx, _local1.ob.posy, 0, 0, 3, 0, true);
return;
case 11 :
_local1.CBullet = new EBullet(_local1.ob.mCode, 3, _local1.ob.posx, _local1.ob.posy, 0, 0, 3, 0, true);
return;
case 12 :
_local1.CBullet = new EBullet(_local1.ob.mCode, 2, _local1.ob.posx, _local1.ob.posy, 0, 1, 0, 0, true);
return;
case 13 :
return;
case 14 :
return;
case 15 :
return;
case 16 :
return;
case 17 :
return;
case 18 :
return;
case 19 :
_local1.CBullet = new EBullet(_local1.ob.mCode, 1, _local1.ob.posx, _local1.ob.posy, 2, 0, 0, 0, true);
return;
case 20 :
_local1.CBullet = new EBullet(_local1.ob.mCode, 3, _local1.ob.posx, _local1.ob.posy, 0, 0, 1, 0, true);
return;
case 21 :
_local1.CBullet = new EBullet(_local1.ob.mCode, 2, _local1.ob.posx, _local1.ob.posy, 0, 2, 0, 0, true);
return;
case 22 :
_local1.CBullet = new EBullet(_local1.ob.mCode, 2, _local1.ob.posx, _local1.ob.posy, 0, 2, 0, 0, true);
return;
case 23 :
_local1.CBullet = new EBullet(_local1.ob.mCode, 1, _local1.ob.posx, _local1.ob.posy, 4, 0, 0, 0, true);
return;
case 24 :
_local1.CBullet = new EBullet(_local1.ob.mCode, 1, _local1.ob.posx, _local1.ob.posy, 4, 0, 0, 0, true);
return;
case 25 :
_local1.CBullet = new EBullet(_local1.ob.mCode, 4, _local1.ob.posx, _local1.ob.posy, 0, 0, 0, 2, false);
return;
}
}
};
Enemy.prototype.TakeDamage = function (args_dmg) {
var _local1 = this;
if (!Game.bGameOver) {
_local1.ob.mLife = _local1.ob.mLife - args_dmg;
if (_local1.ob.mLife <= 0) {
var _local2 = _local1.ob.mType.substring(0, 1);
if (_local2 == "t") {
_local1.DamageEnemy();
}
if (_local2 == "i") {
_local1.DamageItem();
}
}
var _local3 = _local1.ob.clip;
_local3._alpha = 30;
sWindow.HurtSound();
}
};
Enemy.prototype.DamageEnemy = function () {
var _local1 = this;
_local1.RemoveClip();
var gVAR_Code = _local1.ob.mCode;
Game.DisactivateEnemy(gVAR_Code);
var _local3 = _local1.ob.posx;
var _local2 = _local1.ob.posy;
Game.LoadBurst(_local3, _local2);
Game.AddScore(_local1.ob.score);
};
Enemy.prototype.DamageItem = function () {
var _local1 = this;
var gVAR_Num = Number(_local1.ob.mType.substring(1, 3));
var _local3 = _local1.ob.posx;
var _local2 = _local1.ob.posy;
Game.LoadItem(gVAR_Num, _local3, _local2);
_local1.RemoveClip();
Game.DisactivateEnemy(gVAR_Code);
_local3 = _local1.ob.posx;
_local2 = _local1.ob.posy;
Game.LoadBurst(_local3, _local2);
Game.AddScore(50);
};
Enemy.prototype.Bullet = function () {
this.CBullet.Execute();
};
Enemy.prototype.Move = function () {
var _local2 = this;
var _local1 = _local2.ob.mType.substring(0, 1);
if (_local1 == "t") {
_local2.MoveEnemy();
}
if (_local1 == "i") {
_local2.MoveItem();
}
};
Enemy.prototype.MoveEnemy = function () {
var _local1 = this;
var gVAR_Num = Number(_local1.ob.mType.substring(1, 3));
switch (gVAR_Num) {
case 1 :
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
return;
case 2 :
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
return;
case 3 :
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
return;
case 4 :
var gVAR_VelX = (_local1.ob.movx * math.cos((_local1.ob.deg * Math.PI) / 180));
var _local3 = _local1.ob.movy;
_local1.ob.posx = _local1.ob.posx + gVAR_VelX;
_local1.ob.posy = _local1.ob.posy + _local3;
var _local2 = (math.atan2(_local3, gVAR_VelX) * 180) / Math.PI;
_local1.ob.clip._rotation = _local2;
return;
case 5 :
var gVAR_VelX = (_local1.ob.movx * math.cos((_local1.ob.deg * Math.PI) / 180));
_local3 = _local1.ob.movy;
_local1.ob.posx = _local1.ob.posx + gVAR_VelX;
_local1.ob.posy = _local1.ob.posy + _local3;
_local2 = (math.atan2(_local3, gVAR_VelX) * 180) / Math.PI;
_local1.ob.clip._rotation = _local2;
return;
case 6 :
var gVAR_VelX = (_local1.ob.movx * math.cos((_local1.ob.deg * Math.PI) / 180));
_local3 = _local1.ob.movy;
_local1.ob.posx = _local1.ob.posx + gVAR_VelX;
_local1.ob.posy = _local1.ob.posy + _local3;
_local2 = (math.atan2(_local3, gVAR_VelX) * 180) / Math.PI;
_local1.ob.clip._rotation = _local2;
return;
case 7 :
var gVAR_VelX = (_local1.ob.movx * math.cos((_local1.ob.deg * Math.PI) / 180));
_local3 = _local1.ob.movy;
_local1.ob.posx = _local1.ob.posx + gVAR_VelX;
_local1.ob.posy = _local1.ob.posy + _local3;
_local2 = (math.atan2(_local3, gVAR_VelX) * 180) / Math.PI;
_local1.ob.clip._rotation = _local2;
return;
case 8 :
var gVAR_VelX = (_local1.ob.movx * math.cos((_local1.ob.deg * Math.PI) / 180));
_local3 = _local1.ob.movy;
_local1.ob.posx = _local1.ob.posx + gVAR_VelX;
_local1.ob.posy = _local1.ob.posy + _local3;
_local2 = (math.atan2(_local3, gVAR_VelX) * 180) / Math.PI;
_local1.ob.clip._rotation = _local2;
return;
case 9 :
var gVAR_VelX = (_local1.ob.movx * math.cos((_local1.ob.deg * Math.PI) / 180));
_local3 = _local1.ob.movy;
_local1.ob.posx = _local1.ob.posx + gVAR_VelX;
_local1.ob.posy = _local1.ob.posy + _local3;
_local2 = (math.atan2(_local3, gVAR_VelX) * 180) / Math.PI;
_local1.ob.clip._rotation = _local2;
return;
case 10 :
var gVAR_DisX = (Game.sPlayer[0].ob.posx - _local1.ob.posx);
var gVAR_DisY = (Game.sPlayer[0].ob.posy - _local1.ob.posy);
_local1.ob.posx = _local1.ob.posx + _local1.ob.movx;
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
_local2 = (math.atan2(gVAR_DisY, gVAR_DisX) * 180) / Math.PI;
_local1.ob.clip._rotation = _local2 - 90;
return;
case 11 :
var gVAR_DisX = (Game.sPlayer[0].ob.posx - _local1.ob.posx);
var gVAR_DisY = (Game.sPlayer[0].ob.posy - _local1.ob.posy);
_local1.ob.posx = _local1.ob.posx + _local1.ob.movx;
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
_local2 = (math.atan2(gVAR_DisY, gVAR_DisX) * 180) / Math.PI;
_local1.ob.clip._rotation = _local2 - 90;
return;
case 12 :
var gVAR_DisX = (Game.sPlayer[0].ob.posx - _local1.ob.posx);
var gVAR_DisY = (Game.sPlayer[0].ob.posy - _local1.ob.posy);
_local2 = math.atan2(gVAR_DisY, gVAR_DisX);
_local1.ob.posx = _local1.ob.posx + (_local1.ob.movx * math.cos(_local2));
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
return;
case 13 :
_local2 = (_local1.ob.deg * Math.PI) / 180;
_local1.ob.posx = _local1.ob.posx + (_local1.ob.movx * math.cos(_local2));
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
return;
case 14 :
_local2 = (_local1.ob.deg * Math.PI) / 180;
_local1.ob.posx = _local1.ob.posx + (_local1.ob.movx * math.cos(_local2));
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
return;
case 15 :
_local1.ob.posx = _local1.ob.posx + _local1.ob.movx;
return;
case 16 :
_local1.ob.posx = _local1.ob.posx + _local1.ob.movx;
return;
case 17 :
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
return;
case 18 :
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
return;
case 19 :
_local1.ob.posx = _local1.ob.posx + _local1.ob.movx;
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
return;
case 20 :
var gVAR_DisX = (Game.sPlayer[0].ob.posx - _local1.ob.posx);
var gVAR_DisY = (Game.sPlayer[0].ob.posy - _local1.ob.posy);
_local2 = math.atan2(gVAR_DisY, gVAR_DisX);
_local1.ob.deg = (_local2 * 180) / Math.PI;
_local1.ob.posx = _local1.ob.posx + _local1.ob.movx;
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
_local1.ob.clip._rotation = _local1.ob.deg;
return;
case 21 :
_local2 = (_local1.ob.deg * Math.PI) / 180;
_local1.ob.posx = _local1.ob.posx + (_local1.ob.movx * math.cos(_local2));
_local1.ob.posy = _local1.ob.posy + (_local1.ob.movy * math.sin(_local2));
return;
case 22 :
_local2 = (_local1.ob.deg * Math.PI) / 180;
_local1.ob.posx = _local1.ob.posx + (_local1.ob.movx * math.cos(_local2));
_local1.ob.posy = _local1.ob.posy + (_local1.ob.movy * math.sin(_local2));
return;
case 23 :
_local1.ob.posx = _local1.ob.posx + _local1.ob.movx;
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
return;
case 24 :
_local1.ob.posx = _local1.ob.posx + _local1.ob.movx;
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
return;
case 25 :
_local1.ob.posx = _local1.ob.posx + _local1.ob.movx;
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
return;
}
};
Enemy.prototype.MoveItem = function () {
var _local1 = this;
var _local2 = Number(_local1.ob.mType.substring(1, 3));
switch (_local2) {
case 1 :
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
return;
case 2 :
_local1.ob.deg = _local1.ob.deg + 5;
_local1.ob.posx = _local1.ob.posx + (_local1.ob.movx * math.cos((_local1.ob.deg * Math.PI) / 180));
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
return;
case 3 :
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
return;
case 4 :
return;
}
};
Enemy.prototype.CheckGameBombStatus = function () {
var _local1 = this;
if (!_local1.ob.mBoolInvisible) {
var gSTR_BombStatus = Game.sBombStatus;
if (gSTR_BombStatus == "Bomb") {
var gARR_Target = Game.sPlayer[0].cSpecial;
var gVAR_MyX = _local1.ob.posx;
var gVAR_MyY = _local1.ob.posy;
var _local3 = gARR_Target.ob.posx;
var gVAR_OpY = gARR_Target.ob.posy;
var gVAR_DisX = (_local3 - gVAR_MyX);
var gVAR_DisY = (gVAR_OpY - gVAR_MyY);
var gVAR_DisRadius = math.sqrt((gVAR_DisY * gVAR_DisY) + (gVAR_DisX * gVAR_DisX));
if (gVAR_DisRadius < 170) {
_local1.TakeDamage(30);
return(null);
}
}
if (gSTR_BombStatus == "SingleLaser") {
var gARR_Target = Game.sPlayer[0];
var gVAR_MyX = _local1.ob.posx;
var gVAR_MyY = _local1.ob.posy;
var _local3 = gARR_Target.ob.posx;
var gVAR_OpY = gARR_Target.ob.posy;
var _local2 = 20;
if ((((gVAR_MyX > 0) && (gVAR_MyX < 400)) && (gVAR_MyY > 0)) && (gVAR_MyY < 500)) {
var gVAR_MinX = (_local3 - _local2);
var gVAR_MaxX = (_local3 + _local2);
var gVAR_CollideX = (_local2 + _local1.ob.mWidth);
var gVAR_Difx = math.abs(_local3 - gVAR_MyX);
if ((gVAR_Difx <= gVAR_CollideX) && (gVAR_MyY < gVAR_OpY)) {
_local1.TakeDamage(40);
return(null);
}
}
}
}
return(undefined);
};
Enemy.prototype.TransferData = function () {
var _local1 = this;
_local1.CBullet.ob.charposx = _local1.ob.posx;
_local1.CBullet.ob.charposy = _local1.ob.posy;
};
Enemy.prototype.BossHandMotionDisplay = function (args_status) {
var _local1 = this;
switch (args_status) {
case 1 :
_local1.ob.mBossHandfn++;
if (_local1.ob.mBossHandfn > _local1.ob.mBossHandfopen) {
_local1.ob.mBossHandfn = 1;
}
break;
case 2 :
if (_local1.ob.mBossHandfn != 1) {
_local1.ob.mBossHandfn++;
}
if (_local1.ob.mBossHandfn > _local1.ob.mBossHandfmax) {
_local1.ob.mBossHandfn = 1;
}
break;
case 3 :
_local1.ob.mBossHandfn = 1;
break;
}
var _local2 = _local1.ob.clip;
var _local3 = _local1.ob.mBossHandfn;
_local2.gotoAndStop(_local3);
};
Enemy.prototype.BossHandMotionTimer = function () {
var _local1 = this;
_local1.ob.mBossHandft++;
if (_local1.ob.mBossHandft > _local1.ob.mBossHandftmax) {
_local1.ob.mBossHandft = 0;
return(true);
}
return(false);
};
Enemy.prototype.BossHeadMotionDisplay = function (args_status) {
var _local1 = this;
switch (args_status) {
case 1 :
_local1.ob.mBossHeadfn++;
if (_local1.ob.mBossHeadfn > _local1.ob.mBossHeadfopen) {
_local1.ob.mBossHeadfn = 1;
}
break;
case 2 :
if (_local1.ob.mBossHeadfn != 1) {
_local1.ob.mBossHeadfn++;
}
if (_local1.ob.mBossHeadfn > _local1.ob.mBossHeadfmax) {
_local1.ob.mBossHeadfn = 1;
}
break;
case 3 :
_local1.ob.mBossHeadfn = 1;
break;
}
var _local2 = _local1.ob.clip;
var _local3 = _local1.ob.mBossHeadfn;
_local2.gotoAndStop(_local3);
};
Enemy.prototype.BossHeadMotionTimer = function () {
var _local1 = this;
_local1.ob.mBossHeadft++;
if (_local1.ob.mBossHeadft > _local1.ob.mBossHeadftmax) {
_local1.ob.mBossHeadft = 0;
return(true);
}
return(false);
};
Enemy.prototype.Execute = function (args_mode) {
var _local1 = this;
if (args_mode == 1) {
_local1.TransferData();
_local1.Action();
_local1.Move();
_local1.Boundary();
_local1.Bullet();
if (!Game.bGameOver) {
_local1.CollisionCheck();
}
_local1.RenderClip();
_local1.CheckGameBombStatus();
}
if (args_mode == 2) {
_local1.Bullet();
}
};
EBullet = function (args_code, args_type, args_bgnx, args_bgny, args_bul1, args_bul2, args_bul3, args_bul4, args_chase) {
this.LoadAttributes(args_code, args_type, args_bgnx, args_bgny, args_bul1, args_bul2, args_bul3, args_bul4);
this.Fire(args_bgnx, args_bgny, args_chase);
};
EBullet.prototype.LoadAttributes = function (args_code, args_type, args_bgnx, args_bgny, args_bul1, args_bul2, args_bul3, args_bul4) {
var _local1 = this;
_local1.ob = new Object();
_local1.ob.role = args_code;
_local1.ob.bsum = 4;
_local1.ob.bool_EnemyAvailable = true;
_local1.ob.m_btype = new Object();
_local1.ob.m_btype.sum1 = args_bul1;
_local1.ob.m_btype.sum2 = args_bul2;
_local1.ob.m_btype.sum3 = args_bul3;
_local1.ob.m_btype.sum4 = args_bul4;
_local1.ob.m_btype.dmg1 = 20;
_local1.ob.m_btype.dmg2 = 30;
_local1.ob.m_btype.dmg3 = 40;
_local1.ob.m_btype.dmg4 = 70;
_local1.ob.charposx = args_bgnx;
_local1.ob.charposy = args_bgny;
_local1.ob.mHeight = 0;
_local1.ob.mWidth = 0;
_local1.ob.mType = args_type;
_local1.mBullet = new Array();
_local1.mAngle = new Array();
_local1.LoadSpecialWeapon();
var _local2 = 0;
while (_local2 != _local1.ob.bsum) {
_local1.mBullet.push([]);
_local1.mAngle.push([]);
_local2++;
}
var gVAR_Length = 0;
var _local3 = 0;
var gVAR_Sum = (_local1.ob.bsum + 1);
while (_local3 != gVAR_Sum) {
_local3++;
switch (_local3) {
case 1 :
gVAR_Length = _local1.ob.m_btype.sum1;
break;
case 2 :
gVAR_Length = _local1.ob.m_btype.sum2;
break;
case 3 :
gVAR_Length = _local1.ob.m_btype.sum3;
break;
case 4 :
gVAR_Length = _local1.ob.m_btype.sum4;
break;
}
_local2 = 0;
while (_local2 != gVAR_Length) {
_local1.mBullet[_local3 - 1].push([0, 0, 0, 0, false]);
_local1.mAngle[_local3 - 1].push(0);
_local2++;
}
}
};
EBullet.prototype.LoadSpecialWeapon = function () {
var _local1 = this;
_local1.mMultiAtk = new Array();
_local1.mMultiAtk = [false, false, true, false];
_local1.bMultireuse = true;
_local1.ob.m_btype.targ_deg = (Math.PI/2);
_local1.ob.m_btype.bool_firstaim = true;
};
EBullet.prototype.InitialAction = function (args_bgnx, args_bgny) {
var _local1 = this;
var _local2 = args_bgny;
var _local3 = args_bgnx;
var gVAR_Num = _local1.ob.mType;
switch (gVAR_Num) {
case 1 :
_local1.ob.mHeight = 17;
_local1.ob.mWidth = 17;
_local1.CaptureMultipleAngle(_local3, _local2);
return;
case 2 :
_local1.ob.mHeight = 10;
_local1.ob.mWidth = 10;
_local1.CaptureMultipleAngle(_local3, _local2);
return;
case 3 :
_local1.ob.mHeight = 15;
_local1.ob.mWidth = 15;
_local1.CaptureMultipleAngle(_local3, _local2);
return;
case 4 :
_local1.ob.mHeight = 15;
_local1.ob.mWidth = 15;
_local1.CaptureMultipleAngle(_local3, _local2);
return;
}
};
EBullet.prototype.SaveCapturedAngle = function (args_id, args_num) {
var _local2 = this;
var _local3 = args_id;
var _local1 = _local2.mAngle;
switch (_local3) {
case 1 :
_local1[_local3 - 1][args_num] = _local2.ob.m_btype.targ_deg;
return;
case 2 :
_local1[_local3 - 1][args_num] = _local2.ob.m_btype.targ_deg;
return;
case 3 :
_local1[_local3 - 1][args_num] = _local2.ob.m_btype.targ_deg;
return;
case 4 :
_local1[_local3 - 1][args_num] = _local2.ob.m_btype.targ_deg;
return;
}
};
EBullet.prototype.Fire = function (args_bgnx, args_bgny, args_chase) {
var _local2 = this;
if (args_chase) {
_local2.InitialAction(args_bgnx, args_bgny);
}
var gVAR_CharPosx = _local2.ob.charposx;
var gVAR_CharPosy = _local2.ob.charposy;
var _local3 = _local2.ob.mType;
var gVAR_Length = 0;
var gVAR_Sum = (_local2.ob.bsum + 1);
switch (_local3) {
case 1 :
gVAR_Length = _local2.ob.m_btype.sum1;
break;
case 2 :
gVAR_Length = _local2.ob.m_btype.sum2;
break;
case 3 :
gVAR_Length = _local2.ob.m_btype.sum3;
break;
case 4 :
gVAR_Length = _local2.ob.m_btype.sum4;
gVAR_CharPosx = (_local2.ob.charposx + random(50)) - random(50);
break;
}
var gARR_Bullet = _local2.mBullet;
var gARR_MultiAttack = _local2.mMultiAtk;
var _local1 = 0;
while (_local1 != gVAR_Length) {
if (!gARR_MultiAttack[_local3 - 1]) {
if (!gARR_Bullet[_local3 - 1][_local1][4]) {
_local2.mBullet[_local3 - 1][_local1][0] = gVAR_CharPosx;
_local2.mBullet[_local3 - 1][_local1][1] = gVAR_CharPosy;
_local2.mBullet[_local3 - 1][_local1][2] = 5;
_local2.mBullet[_local3 - 1][_local1][3] = 5;
_local2.mBullet[_local3 - 1][_local1][4] = true;
_local2.SaveCapturedAngle(_local3, _local1);
_local2.AttachClip(_local3, _local1);
return;
}
} else if (_local2.bMultireuse) {
if (!gARR_Bullet[_local3 - 1][_local1][4]) {
_local2.mBullet[_local3 - 1][_local1][0] = gVAR_CharPosx;
_local2.mBullet[_local3 - 1][_local1][1] = gVAR_CharPosy;
_local2.mBullet[_local3 - 1][_local1][2] = 5;
_local2.mBullet[_local3 - 1][_local1][3] = 5;
_local2.mBullet[_local3 - 1][_local1][4] = true;
_local2.SaveCapturedAngle(_local3, _local1);
_local2.AttachClip(_local3, _local1);
}
if (_local1 == (_local2.ob.m_btype.sum3 - 1)) {
_local2.bMultireuse = false;
}
}
_local1++;
}
};
EBullet.prototype.CaptureMultipleAngle = function (args_bgnx, args_bgny) {
var _local1 = Game.sPlayer[0];
var gVAR_MyX = args_bgnx;
var gVAR_MyY = args_bgny;
var gVAR_OpX = _local1.ob.posx;
var gVAR_OpY = _local1.ob.posy;
var _local3 = gVAR_OpX - gVAR_MyX;
var _local2 = gVAR_OpY - gVAR_MyY;
var gVAR_Deg = math.atan2(_local2, _local3);
this.ob.m_btype.targ_deg = gVAR_Deg;
};
EBullet.prototype.AttachClip = function (args_id, args_num) {
var _local1 = args_id;
var _local2 = args_num;
var gVAR_Role = this.ob.role;
attachMovie("e_bullet" + _local1, (((("eb" + gVAR_Role) + "-") + _local1) + "-") + _local2, ((gVAR_Role * 50) + _local2) + 18000);
var _local3 = _root[(((("eb" + gVAR_Role) + "-") + _local1) + "-") + _local2];
var gVAR_PosX = this.mBullet[_local1 - 1][_local2][0];
var gVAR_PosY = this.mBullet[_local1 - 1][_local2][1];
_local3._x = gVAR_PosX;
_local3._y = gVAR_PosY;
if (_local1 == 3) {
var gARR_Ang = this.mAngle;
var gVAR_Deg = gARR_Ang[_local1 - 1][_local2];
_local3._rotation = (gVAR_Deg * 180) / Math.PI;
}
sWindow.MonsterHitSound();
};
EBullet.prototype.Move = function () {
var _local3 = this;
var _local2 = _local3.ob.mType;
var gARR_SpecialAttack = _local3.mSpecialAtk;
var gVAR_Sum = (_local3.ob.bsum + 1);
switch (_local2) {
case 1 :
gVAR_Length = _local3.ob.m_btype.sum1;
break;
case 2 :
gVAR_Length = _local3.ob.m_btype.sum2;
break;
case 3 :
gVAR_Length = _local3.ob.m_btype.sum3;
break;
case 4 :
gVAR_Length = _local3.ob.m_btype.sum4;
break;
}
var gARR_Bullet = _local3.mBullet;
var _local1 = 0;
while (_local1 != gVAR_Length) {
if (gARR_Bullet[_local2 - 1][_local1][4]) {
if (_local3.BoundaryCheck(_local2, _local1)) {
_local3.RemoveClip(_local2, _local1);
} else {
_local3.MoveIt(_local2, _local1);
_local3.RenderClip(_local2, _local1);
}
}
_local3.CollisionCheck(_local2, _local1);
_local3.CheckGameBombStatus(_local2, _local1);
_local1++;
}
};
EBullet.prototype.MoveIt = function (args_id, args_num) {
var _local2 = args_num;
var _local3 = this;
var _local1 = args_id;
var gARR_Bullet = _local3.mBullet;
switch (_local1) {
case 1 :
var gARR_Ang = _local3.mAngle;
var gVAR_Deg = gARR_Ang[_local1 - 1][_local2];
_local3.mBullet[_local1 - 1][_local2][0] = _local3.mBullet[_local1 - 1][_local2][0] + (5 * math.cos(gVAR_Deg));
_local3.mBullet[_local1 - 1][_local2][1] = _local3.mBullet[_local1 - 1][_local2][1] + (5 * math.sin(gVAR_Deg));
return;
case 2 :
var gARR_Ang = _local3.mAngle;
var gVAR_Deg = gARR_Ang[_local1 - 1][_local2];
_local3.mBullet[_local1 - 1][_local2][0] = _local3.mBullet[_local1 - 1][_local2][0] + (5 * math.cos(gVAR_Deg));
_local3.mBullet[_local1 - 1][_local2][1] = _local3.mBullet[_local1 - 1][_local2][1] + (5 * math.sin(gVAR_Deg));
return;
case 3 :
var gARR_Ang = _local3.mAngle;
var gVAR_Deg = (gARR_Ang[_local1 - 1][_local2] + (((10 * _local2) * Math.PI) / 180));
_local3.mBullet[_local1 - 1][_local2][0] = _local3.mBullet[_local1 - 1][_local2][0] + (4 * math.cos(gVAR_Deg));
_local3.mBullet[_local1 - 1][_local2][1] = _local3.mBullet[_local1 - 1][_local2][1] + (4 * math.sin(gVAR_Deg));
return;
case 4 :
var gARR_Ang = _local3.mAngle;
var gVAR_Deg = gARR_Ang[_local1 - 1][_local2];
_local3.mBullet[_local1 - 1][_local2][0] = _local3.mBullet[_local1 - 1][_local2][0] + (8 * math.cos(gVAR_Deg));
_local3.mBullet[_local1 - 1][_local2][1] = _local3.mBullet[_local1 - 1][_local2][1] + (8 * math.sin(gVAR_Deg));
return;
}
};
EBullet.prototype.CollisionCheck = function (args_id, args_num) {
var _local2 = this;
if ((!Game.bGameWin) && (!Game.bGameOver)) {
var gBOOL_GameOver = false;
var _local1 = Game.sPlayer[0];
var _local3 = _local2.mBullet;
var gVAR_Damage = _local2.ob.m_btype["dmg" + args_id];
var gVAR_MyX = _local3[args_id - 1][args_num][0];
var gVAR_MyY = _local3[args_id - 1][args_num][1];
var gVAR_OpX = _local1.ob.posx;
var gVAR_OpY = _local1.ob.posy;
var gVAR_DisX = math.abs(gVAR_OpX - gVAR_MyX);
var gVAR_DisY = math.abs(gVAR_OpY - gVAR_MyY);
var gVAR_Width = (_local2.ob.mWidth + _local1.ob.mWidth);
var gVAR_Height = (_local2.ob.mHeight + _local1.ob.mHeight);
if ((gVAR_DisX < gVAR_Width) && (gVAR_DisY < gVAR_Height)) {
_local2.RemoveClip(args_id, args_num);
_local1.takeDamage(gVAR_Damage);
return(null);
}
}
return(undefined);
};
EBullet.prototype.BoundaryCheck = function (args_id, args_num) {
var _local1 = this.mBullet;
var _local3 = _local1[args_id - 1][args_num][0];
var _local2 = _local1[args_id - 1][args_num][1];
if ((_local3 < 0) or (_local3 > 400)) {
return(true);
}
if ((_local2 < 0) or (_local2 > 490)) {
return(true);
}
return(false);
};
EBullet.prototype.MultiBulletCheck = function () {
var _local2 = this;
var _local3 = _local2.mBullet;
var gARR_MultiNum = 2;
var _local1 = 0;
while (_local1 != _local2.ob.m_btype.sum3) {
if (_local3[2][_local1][4]) {
_local2.bMultireuse = false;
return(null);
}
_local1++;
}
_local2.bMultireuse = true;
return(undefined);
};
EBullet.prototype.RemoveClip = function (args_id, args_num) {
var _local2 = this.ob.role;
var _local1 = _root[(((("eb" + _local2) + "-") + args_id) + "-") + args_num];
_local1.removeMovieClip();
this.ResetAttributes(args_id, args_num);
};
EBullet.prototype.RemoveAll = function () {
var _local3 = this.ob.role;
var gVAR_Num = this.ob.mType;
var gVAR_Length = 0;
switch (gVAR_Num) {
case 1 :
gVAR_Length = this.ob.m_btype.sum1;
break;
case 2 :
gVAR_Length = this.ob.m_btype.sum2;
break;
case 3 :
gVAR_Length = this.ob.m_btype.sum3;
break;
case 4 :
gVAR_Length = this.ob.m_btype.sum4;
break;
}
var gARR_Bullet = this.mBullet;
var _local1 = 0;
while (_local1 != gVAR_Length) {
_local3 = this.ob.role;
var _local2 = _root[(((("eb" + _local3) + "-") + gVAR_Num) + "-") + _local1];
_local2.removeMovieClip();
_local1++;
}
};
EBullet.prototype.CheckGameBombStatus = function (args_id, args_num) {
var gARR_Target = Game.sPlayer[0];
var gARR_Bullet = this.mBullet;
var _local1 = gARR_Bullet[args_id - 1][args_num][0];
var _local2 = gARR_Bullet[args_id - 1][args_num][1];
var _local3 = gARR_Target.ob.posx;
var gVAR_OpY = gARR_Target.ob.posy;
var gSTR_BombStatus = Game.sBombStatus;
if (gSTR_BombStatus == "Bomb") {
var gVAR_DisX = (_local3 - _local1);
var gVAR_DisY = (gVAR_OpY - _local2);
var gVAR_DisRadius = math.sqrt((gVAR_DisY * gVAR_DisY) + (gVAR_DisX * gVAR_DisX));
if (gVAR_DisRadius < 170) {
this.RemoveClip(args_id, args_num);
return(null);
}
}
if (gSTR_BombStatus == "SingleLaser") {
var gVAR_Range = 20;
if ((((_local1 > 0) && (_local1 < 400)) && (_local2 > 0)) && (_local2 < 500)) {
var gVAR_MinX = (_local3 - gVAR_Range);
var gVAR_MaxX = (_local3 + gVAR_Range);
if (((_local1 > gVAR_MinX) && (_local1 < gVAR_MaxX)) && (_local2 < gVAR_OpY)) {
this.RemoveClip(args_id, args_num);
return(null);
}
}
}
return(undefined);
};
EBullet.prototype.ResetAttributes = function (args_id, args_num) {
var _local1 = args_num;
var _local2 = this;
var _local3 = args_id;
_local2.mBullet[_local3 - 1][_local1][0] = 0;
_local2.mBullet[_local3 - 1][_local1][1] = 0;
_local2.mBullet[_local3 - 1][_local1][4] = false;
};
EBullet.prototype.RenderClip = function (args_id, args_num) {
var _local3 = args_num;
var gVAR_Role = this.ob.role;
var _local2 = _root[(((("eb" + gVAR_Role) + "-") + args_id) + "-") + _local3];
var _local1 = this.mBullet;
_local2._x = _local1[args_id - 1][_local3][0];
_local2._y = _local1[args_id - 1][_local3][1];
};
EBullet.prototype.AvailableCheck = function () {
var _local3 = this.ob.mType;
var _local2 = 0;
var gARR_Bullet = this.mBullet;
switch (_local3) {
case 1 :
_local2 = this.ob.m_btype.sum1;
break;
case 2 :
_local2 = this.ob.m_btype.sum2;
break;
case 3 :
_local2 = this.ob.m_btype.sum3;
break;
case 4 :
_local2 = this.ob.m_btype.sum4;
break;
}
var gARR_Bullet = this.mBullet;
var _local1 = 0;
while (_local1 != _local2) {
if (gARR_Bullet[_local3 - 1][_local1][4]) {
return(null);
}
_local1++;
}
var gVAR_Code = this.ob.role;
if (!this.ob.bool_EnemyAvailable) {
Game.RemoveEnemy(gVAR_Code);
}
return(undefined);
};
EBullet.prototype.Execute = function () {
var _local1 = this;
_local1.Move();
if (!_local1.ob.bMultiReuse) {
_local1.MultiBulletCheck();
}
_local1.AvailableCheck();
_local1.CheckGameBombStatus();
};
Bullet = function () {
this.LoadAttributes();
};
Bullet.prototype.LoadAttributes = function () {
var _local1 = this;
_local1.ob = new Object();
_local1.ob.role = 1;
_local1.ob.bsum = 4;
_local1.ob.m_btype = new Object();
_local1.ob.m_btype.sum1 = 2;
_local1.ob.m_btype.sum2 = 0;
_local1.ob.m_btype.sum3 = 0;
_local1.ob.m_btype.sum4 = 0;
_local1.ob.m_btype.max1 = 5;
_local1.ob.m_btype.max2 = 4;
_local1.ob.m_btype.max3 = 5;
_local1.ob.m_btype.max4 = 5;
_local1.ob.m_btype.dmg1 = 20;
_local1.ob.m_btype.dmg2 = 40;
_local1.ob.m_btype.dmg3 = 80;
_local1.ob.m_btype.dmg4 = 120;
_local1.ob.mHeight = [6, 5, 4, 12];
_local1.ob.mWidth = [6, 5, 4, 12];
_local1.mBullet = new Array();
_local1.mNum = new Array();
_local1.LoadSpecialWeapon();
var _local2 = 0;
while (_local2 != _local1.ob.bsum) {
_local1.mBullet.push([]);
_local1.mNum.push(0);
_local2++;
}
var _local3 = 0;
var gVAR_Num = 0;
var gVAR_Sum = (_local1.ob.bsum + 1);
while (gVAR_Num != gVAR_Sum) {
gVAR_Num++;
switch (gVAR_Num) {
case 1 :
_local3 = _local1.ob.m_btype.max1;
break;
case 2 :
_local3 = _local1.ob.m_btype.max2;
break;
case 3 :
_local3 = _local1.ob.m_btype.max3;
break;
case 4 :
_local3 = _local1.ob.m_btype.max4;
break;
}
_local2 = 0;
while (_local2 != _local3) {
_local1.mBullet[gVAR_Num - 1].push([0, 0, 0, 0, false]);
_local2++;
}
}
};
Bullet.prototype.ResetNew = function () {
var _local1 = this;
_local1.ob.m_btype.sum1 = 2;
_local1.ob.m_btype.sum2 = 0;
_local1.ob.m_btype.sum3 = 0;
_local1.ob.m_btype.sum4 = 0;
_local1.ob.mindiAngle = new Array();
_local1.ob.mindiAngle = [[], [], [], []];
};
Bullet.prototype.LoadSpecialWeapon = function () {
var _local2 = this;
_local2.mMultiAtk = new Array();
_local2.mMultiAtk = [false, false, true, false];
_local2.mPursueBullet = new Array();
var _local3 = 0;
while (_local3 != _local2.ob.m_btype.sum2) {
var gVAR_RandDeg = -90;
_local2.mPursueBullet.push(gvAR_RandDeg);
_local3++;
}
_local2.bMultireuse = true;
_local2.mTarget = new Array();
_local2.mTarget = Game.sEnemy;
_local2.mLookUp = new Array();
_local2.mTargetCode = new Array();
_local3 = 0;
while (_local3 != _local2.ob.m_btype.sum2) {
_local2.mLookUp.push(null);
_local2.mTargetCode.push(null);
_local3++;
}
_local2.mAngle_4 = new Array();
var _local1 = (Math.PI/180);
_local3 = 0;
while (_local3 != 5) {
_local2.mAngle.push([]);
switch (_local3 + 1) {
case 1 :
_local2.mAngle_4[_local3] = [270 * _local1, 0, 0, 0, 0];
break;
case 2 :
_local2.mAngle_4[_local3] = [0 * _local1, 180 * _local1, 0, 0, 0];
break;
case 3 :
_local2.mAngle_4[_local3] = [90 * _local1, 330 * _local1, 215 * _local1, 0];
break;
case 4 :
_local2.mAngle_4[_local3] = [270 * _local1, 220 * _local1, 320 * _local1, 90 * _local1, 0];
break;
case 5 :
_local2.mAngle_4[_local3] = [280 * _local1, 260 * _local1, 300 * _local1, 240 * _local1, 90 * _local1];
}
_local3++;
}
_local2.mAngle_3 = new Array();
_local3 = 0;
while (_local3 != 5) {
_local2.mAngle.push([]);
switch (_local3 + 1) {
case 1 :
_local2.mAngle_3[_local3] = [270 * _local1, 0, 0, 0, 0];
break;
case 2 :
_local2.mAngle_3[_local3] = [265 * _local1, 275 * _local1, 0, 0, 0];
break;
case 3 :
_local2.mAngle_3[_local3] = [270 * _local1, 260 * _local1, 280 * _local1, 0];
break;
case 4 :
_local2.mAngle_3[_local3] = [265 * _local1, 275 * _local1, 255 * _local1, 285 * _local1, 0];
break;
case 5 :
_local2.mAngle_3[_local3] = [270 * _local1, 260 * _local1, 280 * _local1, 250 * _local1, 290 * _local1];
}
_local3++;
}
_local2.ob.mindiAngle = new Array();
_local2.ob.mindiAngle = [[], [], [], []];
};
Bullet.prototype.ItemAddon = function (args_num) {
var _local1 = this;
switch (args_num) {
case 1 :
_local1.ob.m_btype.sum1 = _local1.ob.m_btype.sum1 + 1;
if (_local1.ob.m_btype.sum1 > _local1.ob.m_btype.max1) {
_local1.ob.m_btype.sum1 = _local1.ob.m_btype.max1;
}
return;
case 2 :
_local1.ob.m_btype.sum2 = _local1.ob.m_btype.sum2 + 1;
if (_local1.ob.m_btype.sum2 > _local1.ob.m_btype.max2) {
_local1.ob.m_btype.sum2 = _local1.ob.m_btype.max2;
}
return;
case 3 :
_local1.ob.m_btype.sum3 = _local1.ob.m_btype.sum3 + 1;
if (_local1.ob.m_btype.sum3 > _local1.ob.m_btype.max3) {
_local1.ob.m_btype.sum3 = _local1.ob.m_btype.max3;
}
return;
case 4 :
_local1.ob.m_btype.sum4 = _local1.ob.m_btype.sum4 + 1;
if (_local1.ob.m_btype.sum4 > _local1.ob.m_btype.max4) {
_local1.ob.m_btype.sum4 = _local1.ob.m_btype.max4;
}
return;
}
};
Bullet.prototype.Fire = function () {
var _local1 = this;
var _local2 = 0;
var gVAR_Length = 0;
var gVAR_Sum = (_local1.ob.bsum + 1);
while (_local2 != gVAR_Sum) {
_local2++;
switch (_local2) {
case 1 :
gVAR_Length = _local1.ob.m_btype.sum1;
break;
case 2 :
gVAR_Length = _local1.ob.m_btype.sum2;
break;
case 3 :
gVAR_Length = _local1.ob.m_btype.sum3;
break;
case 4 :
gVAR_Length = _local1.ob.m_btype.sum4;
break;
}
var gARR_Bullet = _local1.mBullet;
var gARR_MultiAttack = _local1.mMultiAtk;
if (gVAR_Length > 0) {
if (_local2 == 3) {
var _local3 = 0;
while (_local3 != gVAR_Length) {
if (gARR_MultiAttack[_local2 - 1]) {
if (_local1.bMultireuse) {
if (!gARR_Bullet[_local2 - 1][_local3][4]) {
_local1.mBullet[_local2 - 1][_local3][0] = _local1.ob.charposx;
_local1.mBullet[_local2 - 1][_local3][1] = _local1.ob.charposy;
_local1.mBullet[_local2 - 1][_local3][2] = 5;
_local1.mBullet[_local2 - 1][_local3][3] = 5;
_local1.mBullet[_local2 - 1][_local3][4] = true;
_local1.AttachClip(_local2, _local3);
_local1.setIndividualAngle(_local2, _local3);
}
if (_local3 == (_local1.ob.m_btype.sum3 - 1)) {
_local1.bMultireuse = false;
}
}
}
_local3++;
}
} else {
_local1.mNum[_local2 - 1]++;
if (_local1.mNum[_local2 - 1] > gVAR_Length) {
_local1.mNum[_local2 - 1] = 1;
}
var gVAR_Preced = _local1.mNum[_local2 - 1];
if (!gARR_MultiAttack[_local2 - 1]) {
if (!gARR_Bullet[_local2 - 1][gVAR_Preced - 1][4]) {
_local1.mBullet[_local2 - 1][gVAR_Preced - 1][0] = _local1.ob.charposx;
_local1.mBullet[_local2 - 1][gVAR_Preced - 1][1] = _local1.ob.charposy;
_local1.mBullet[_local2 - 1][gVAR_Preced - 1][2] = 5;
_local1.mBullet[_local2 - 1][gVAR_Preced - 1][3] = 5;
_local1.mBullet[_local2 - 1][gVAR_Preced - 1][4] = true;
_local1.AttachClip(_local2, gVAR_Preced - 1);
_local1.setIndividualAngle(_local2, gVAR_Preced - 1);
}
}
}
}
}
};
Bullet.prototype.setIndividualAngle = function (args_id, args_num) {
var _local1 = this;
var _local2 = args_num;
switch (args_id) {
case 3 :
var gARR_Angle = _local1.mAngle_3;
var gVAR_ANum = _local1.ob.m_btype.sum3;
var _local3 = gARR_Angle[gVAR_ANum - 1][_local2];
_local1.ob.mindiAngle[args_id - 1][_local2] = _local3;
return;
case 4 :
var gARR_Angle = _local1.mAngle_4;
var gVAR_ANum = _local1.ob.m_btype.sum4;
_local3 = gARR_Angle[gVAR_ANum - 1][_local2];
_local1.ob.mindiAngle[args_id - 1][_local2] = _local3;
}
};
Bullet.prototype.AttachClip = function (args_id, args_num) {
var _local1 = args_id;
var _local2 = args_num;
var _local3 = this.ob.role;
attachMovie("m_bullet" + _local1, (((("mb" + _local3) + "-") + _local1) + "-") + _local2, ((_local3 + (_local1 * 50)) + _local2) + 10000);
var gCLIP_Bullet = _root[(((("mb" + _local3) + "-") + _local1) + "-") + _local2];
var gARR_Bullet = this.mBullet;
gCLIP_Bullet._x = gARR_Bullet[_local1 - 1][_local2][0];
gCLIP_Bullet._y = gARR_Bullet[_local1 - 1][_local2][1];
if (_local1 == 1) {
_root.sWindow.PlayerHitSound();
}
};
Bullet.prototype.Move = function () {
var _local3 = this;
var _local2 = 0;
var gARR_SpecialAttack = _local3.mSpecialAtk;
var gVAR_Sum = (_local3.ob.bsum + 1);
while (_local2 != gVAR_Sum) {
_local2++;
switch (_local2) {
case 1 :
gVAR_Length = _local3.ob.m_btype.sum1;
break;
case 2 :
gVAR_Length = _local3.ob.m_btype.sum2;
break;
case 3 :
gVAR_Length = _local3.ob.m_btype.sum3;
break;
case 4 :
gVAR_Length = _local3.ob.m_btype.sum4;
break;
}
var gARR_Bullet = _local3.mBullet;
var _local1 = 0;
while (_local1 != gVAR_Length) {
if (gARR_Bullet[_local2 - 1][_local1][4]) {
if (_local3.BoundaryCheck(_local2, _local1)) {
_local3.RemoveClip(_local2, _local1);
} else {
_local3.MoveIt(_local2, _local1);
_local3.RenderClip(_local2, _local1);
}
_local3.CollisionCheck(_local2, _local1);
}
_local1++;
}
}
};
Bullet.prototype.CollisionCheck = function (args_id, args_num) {
var _local2 = this.mTarget;
var gARR_Bullet = this.mBullet;
var gARR_Height = this.mHeight;
var gARR_Width = this.mWidth;
var gVAR_MyX = gARR_Bullet[args_id - 1][args_num][0];
var gVAR_MyY = gARR_Bullet[args_id - 1][args_num][1];
var _local1 = 0;
while (_local1 != _local2.length) {
if (!_local2[_local1][0].ob.mBoolInvisible) {
if (_local2[_local1][1]) {
var gVAR_OpX = _local2[_local1][0].ob.posx;
var gVAR_OpY = _local2[_local1][0].ob.posy;
var gVAR_DisX = math.abs(gVAR_OpX - gVAR_MyX);
var gVAR_DisY = math.abs(gVAR_OpY - gVAR_MyY);
var gVAR_Width = (_local2[_local1][0].ob.mHeight + gARR_Width[args_id - 1]);
var gVAR_Height = (_local2[_local1][0].ob.mHeight + gARR_Height[args_id - 1]);
if ((gVAR_OpX != undefined) && (gVAR_OpY != undefined)) {
if ((gVAR_DisX < gVAR_Width) && (gVAR_DisY < gVAR_Height)) {
var _local3 = 0;
switch (args_id) {
case 1 :
_local3 = this.ob.m_btype.dmg1;
break;
case 2 :
_local3 = this.ob.m_btype.dmg2;
break;
case 3 :
_local3 = this.ob.m_btype.dmg3;
break;
case 4 :
_local3 = this.ob.m_btype.dmg4;
break;
}
_local2[_local1][0].TakeDamage(_local3);
this.RemoveClip(args_id, args_num);
return(null);
}
}
}
}
_local1++;
}
return(undefined);
};
Bullet.prototype.MoveIt = function (args_id, args_num) {
var _local2 = args_num;
var _local3 = this;
var gVAR_Role = _local3.ob.role;
switch (args_id) {
case 1 :
_local3.mBullet[args_id - 1][_local2][0] = _local3.mBullet[args_id - 1][_local2][0] + 0;
_local3.mBullet[args_id - 1][_local2][1] = _local3.mBullet[args_id - 1][_local2][1] - 30;
return;
case 2 :
var gARR_LookUp = _local3.mLookUp;
var gARR_Target = _local3.mTarget;
var gARR_TargetCode = _local3.mTargetCode;
var gARR_Bullet = _local3.mBullet;
if ((((gARR_LookUp[_local2] != null) && (gARR_LookUp[_local2] == gARR_Target[gARR_TargetCode[_local2]][0])) && (gARR_Target[gARR_TargetCode[_local2]][1])) && (!gARR_LookUp[_local2].ob.mBoolInvisible)) {
var gVAR_MyX = gARR_Bullet[args_id - 1][_local2][0];
var gVAR_MyY = gARR_Bullet[args_id - 1][_local2][1];
var gVAR_OpX = gARR_LookUp[_local2].ob.posx;
var gVAR_OpY = gARR_LookUp[_local2].ob.posy;
var gVAR_DisX = (gVAR_OpX - gVAR_MyX);
var gVAR_DisY = (gVAR_OpY - gVAR_MyY);
var gVAR_DifObjDeg = math.atan2(gVAR_DisY, gVAR_DisX);
var gARR_PursueBullet = _local3.mPursueBullet;
var gVAR_AlphaDeg = (((gVAR_DifObjDeg * 180) / Math.PI) - gARR_PursueBullet[_local2]);
if (gVAR_AlphaDeg > 9) {
gARR_PursueBullet[_local2] = gARR_PursueBullet[_local2] + 10;
}
if (gVAR_AlphaDeg < -9) {
gARR_PursueBullet[_local2] = gARR_PursueBullet[_local2] - 10;
}
var gVAR_FinDeg = ((gARR_PursueBullet[_local2] * Math.PI) / 180);
_local3.mBullet[args_id - 1][_local2][0] = _local3.mBullet[args_id - 1][_local2][0] + (8 * math.cos(gVAR_FinDeg));
_local3.mBullet[args_id - 1][_local2][1] = _local3.mBullet[args_id - 1][_local2][1] + (8 * math.sin(gVAR_FinDeg));
var gCLIP_Bullet = _root[(((("mb" + gVAR_Role) + "-") + args_id) + "-") + _local2];
gCLIP_Bullet._rotation = (gVAR_FinDeg * 180) / Math.PI;
} else {
var gARR_PursueBullet = _local3.mPursueBullet;
var gVAR_DifDeg = -1.5707963267949;
var gVAR_AlphaDeg = (((gVAR_DifDeg * 180) / Math.PI) - gARR_PursueBullet[_local2]);
if (gVAR_AlphaDeg > 9) {
gARR_PursueBullet[_local2] = gARR_PursueBullet[_local2] + 10;
}
if (gVAR_AlphaDeg < -9) {
gARR_PursueBullet[_local2] = gARR_PursueBullet[_local2] - 10;
}
var gVAR_FinDeg = ((gARR_PursueBullet[_local2] * Math.PI) / 180);
_local3.mBullet[args_id - 1][_local2][0] = _local3.mBullet[args_id - 1][_local2][0] + (8 * math.cos(gVAR_FinDeg));
_local3.mBullet[args_id - 1][_local2][1] = _local3.mBullet[args_id - 1][_local2][1] + (8 * math.sin(gVAR_FinDeg));
var gCLIP_Bullet = _root[(((("mb" + gVAR_Role) + "-") + args_id) + "-") + _local2];
gCLIP_Bullet._rotation = (gVAR_FinDeg * 180) / Math.PI;
var gBOOL_EnemyExist = false;
var gARR_Enemy = new Array();
var _local1 = 0;
while (_local1 != Game.sEnemySum) {
if (Game.sEnemy[_local1][0] && (Game.sEnemy[_local1][1])) {
if (!Game.sEnemy[_local1][0].ob.mBoolInvisible) {
gBOOL_EnemyExist = true;
gARR_Enemy.push(_local1);
}
}
_local1++;
}
var gVAR_RandNum = gARR_Enemy[random(gARR_Enemy.length)];
if (gBOOL_EnemyExist) {
_local3.mLookUp[_local2] = gARR_Target[gVAR_RandNum][0];
_local3.mTargetCode[_local2] = gVAR_RandNum;
}
}
return;
case 3 :
var gARR_Deg = _local3.ob.mindiAngle;
var gVAR_Deg = gARR_Deg[args_id - 1][_local2];
_local3.mBullet[args_id - 1][_local2][0] = _local3.mBullet[args_id - 1][_local2][0] + (10 * math.cos(gVAR_Deg));
_local3.mBullet[args_id - 1][_local2][1] = _local3.mBullet[args_id - 1][_local2][1] + (10 * math.sin(gVAR_Deg));
var gCLIP_Bullet = _root[(((("mb" + gVAR_Role) + "-") + args_id) + "-") + _local2];
return;
case 4 :
var gARR_Deg = _local3.ob.mindiAngle;
var gVAR_Deg = gARR_Deg[args_id - 1][_local2];
_local3.mBullet[args_id - 1][_local2][0] = _local3.mBullet[args_id - 1][_local2][0] + (10 * math.cos(gVAR_Deg));
_local3.mBullet[args_id - 1][_local2][1] = _local3.mBullet[args_id - 1][_local2][1] + (10 * math.sin(gVAR_Deg));
var gCLIP_Bullet = _root[(((("mb" + gVAR_Role) + "-") + args_id) + "-") + _local2];
return;
}
};
Bullet.prototype.BoundaryCheck = function (args_id, args_num) {
var _local1 = this.mBullet;
var _local3 = _local1[args_id - 1][args_num][0];
var _local2 = _local1[args_id - 1][args_num][1];
if ((_local3 < 0) or (_local3 > 400)) {
return(true);
}
if ((_local2 < 0) or (_local2 > 500)) {
return(true);
}
return(false);
};
Bullet.prototype.MultiBulletCheck = function () {
var _local2 = this;
var _local3 = _local2.mBullet;
var gARR_MultiNum = 2;
var _local1 = 0;
while (_local1 != _local2.ob.m_btype.sum3) {
if (_local3[2][_local1][4]) {
_local2.bMultireuse = false;
return(null);
}
_local1++;
}
_local2.bMultireuse = true;
return(undefined);
};
Bullet.prototype.RemoveClip = function (args_id, args_num) {
var _local2 = this.ob.role;
var _local1 = _root[(((("mb" + _local2) + "-") + args_id) + "-") + args_num];
_local1.removeMovieClip();
this.ResetAttributes(args_id, args_num);
};
Bullet.prototype.RemoveAll = function () {
var gVAR_Role = this.ob.role;
var _local3 = 0;
var gVAR_Sum = (this.ob.bsum + 1);
while (_local3 != gVAR_Sum) {
_local3++;
switch (_local3) {
case 1 :
gVAR_Length = this.ob.m_btype.max1;
break;
case 2 :
gVAR_Length = this.ob.m_btype.max2;
break;
case 3 :
gVAR_Length = this.ob.m_btype.max3;
break;
case 4 :
gVAR_Length = this.ob.m_btype.max4;
break;
}
var gARR_Bullet = this.mBullet;
var _local1 = 0;
while (_local1 != gVAR_Length) {
var _local2 = _root[(((("mb" + gVAR_Role) + "-") + _local3) + "-") + _local1];
_local2.removeMovieClip();
_local1++;
}
}
};
Bullet.prototype.ResetAttributes = function (args_id, args_num) {
var _local1 = args_num;
var _local2 = this;
var _local3 = args_id;
_local2.mBullet[_local3 - 1][_local1][0] = 0;
_local2.mBullet[_local3 - 1][_local1][1] = 0;
_local2.mBullet[_local3 - 1][_local1][4] = false;
_local2.mTargetCode[_local1] = null;
};
Bullet.prototype.RenderClip = function (args_id, args_num) {
var _local2 = args_id;
var gVAR_Role = this.ob.role;
var _local1 = _root[(((("mb" + gVAR_Role) + "-") + _local2) + "-") + args_num];
var _local3 = this.mBullet;
_local1._x = _local3[_local2 - 1][args_num][0];
_local1._y = _local3[_local2 - 1][args_num][1];
if (_local2 == 4) {
var gARR_Deg = this.ob.mindiAngle;
var gVAR_Deg = gARR_Deg[_local2 - 1][args_num];
_local1._rotation = (gVAR_Deg * 180) / Math.PI;
}
};
Bullet.prototype.TransferData = function () {
this.mTarget = Game.sEnemy;
};
Bullet.prototype.Execute = function () {
var _local1 = this;
_local1.TransferData();
_local1.Move();
if (!_local1.ob.bMultiReuse) {
_local1.MultiBulletCheck();
}
};
Item = function (args_type, args_code, args_posx, args_posy) {
this.LoadAttributes(args_type, args_code, args_posx, args_posy);
this.AttachClip();
};
Item.prototype.LoadAttributes = function (args_type, args_code, args_posx, args_posy) {
var _local1 = this;
_local1.ob = new Object();
_local1.ob.mCode = args_code;
_local1.ob.mType = args_type;
_local1.ob.mTypeNum = 0;
_local1.ob.mName = 0;
_local1.ob.mHeight = 15;
_local1.ob.mWidth = 15;
_local1.ob.movx = 0;
_local1.ob.movy = -5;
_local1.ob.dropy = 0.2;
_local1.ob.movymax = 5;
_local1.ob.posx = args_posx;
_local1.ob.posy = args_posy;
_local1.ob.clip = new Object();
};
Item.prototype.AssignYVelocity = function (args_drop) {
this.ob.movy = args_drop;
};
Item.prototype.AttachClip = function () {
var _local3 = this;
var gVAR_Type = _local3.ob.mType;
if (gVAR_Type == 1) {
var gSTR_Type = "a";
var gVAR_Num = (random(4) + 1);
}
if (gVAR_Type == 2) {
var gSTR_Type = "b";
var gVAR_Num = (random(3) + 1);
}
if (gVAR_Type == 3) {
var gSTR_Type = "h";
var gVAR_Num = 1;
}
var _local2 = _local3.ob.mCode;
var _local1 = gSTR_Type + gVAR_Num;
attachMovie("item_" + _local1, ("itm" + _local1) + _local2, 5000 + _local2);
_local3.ob.clip = _root[("itm" + _local1) + _local2];
_local3.ob.mName = _local1;
_local3.ob.mTypeNum = gVAR_Num;
};
Item.prototype.RenderClip = function () {
var _local1 = this;
var _local3 = _local1.ob.posx;
var _local2 = _local1.ob.posy;
_local1.ob.clip._x = _local3;
_local1.ob.clip._y = _local2;
};
Item.prototype.RemoveClip = function () {
this.ob.clip.removeMovieClip();
};
Item.prototype.SwapClip = function () {
var _local2 = this;
var _local1 = _local2.ob.mCode;
var _local3 = _local2.ob.mName;
_local2.ob.clip._name = ("itm" + _local3) + _local1;
_local2.ob.clip.swapDepths(5000 + _local1);
};
Item.prototype.SwapData = function (args_code) {
this.ob.mCode = args_code + 1;
this.SwapClip();
};
Item.prototype.Boundary = function () {
var _local1 = this;
var _local3 = _local1.ob.mType;
var gVAR_Posx = _local1.ob.posx;
var _local2 = _local1.ob.posy;
if (_local3 == 1) {
if (_local2 > 490) {
_local1.RemoveClip();
var gVAR_Code = _local1.ob.mCode;
Game.RemoveItem(gVAR_Code);
}
}
if (_local3 == 2) {
if (_local2 > 490) {
_local1.RemoveClip();
var gVAR_Code = _local1.ob.mCode;
Game.RemoveItem(gVAR_Code);
}
}
if (_local3 == 3) {
if (_local2 > 490) {
_local1.RemoveClip();
var gVAR_Code = _local1.ob.mCode;
Game.RemoveItem(gVAR_Code);
}
}
};
Item.prototype.CollisionCheck = function () {
var _local1 = this;
var _local2 = Game.sPlayer[0];
var gVAR_MyX = _local1.ob.posx;
var gVAR_MyY = _local1.ob.posy;
var gVAR_OpX = _local2.ob.posx;
var gVAR_OpY = _local2.ob.posy;
var gVAR_DisX = math.abs(gVAR_OpX - gVAR_MyX);
var gVAR_DisY = math.abs(gVAR_OpY - gVAR_MyY);
var gVAR_Width = (_local1.ob.mWidth + _local2.ob.mWidth);
var gVAR_Height = (_local1.ob.mHeight + _local2.ob.mHeight);
if ((gVAR_DisX < gVAR_Width) && (gVAR_DisY < gVAR_Height)) {
Game.AddScore(100);
sWindow.ItemSound(_local1.ob.mType);
_local1.LaunchEffect();
_local1.RemoveClip();
var _local3 = _local1.ob.mCode;
Game.RemoveItem(_local3);
return(null);
}
return(undefined);
};
Item.prototype.LaunchEffect = function () {
var _local2 = this;
var _local3 = _local2.ob.mType;
var _local1 = _local2.ob.mTypeNum;
if (_local3 == 1) {
_local2.LaunchAttackEffect(_local1);
}
if (_local3 == 2) {
_local2.LaunchBombEffect(_local1);
}
if (_local3 == 3) {
_local2.LaunchHealEffect(_local1);
}
};
Item.prototype.LaunchAttackEffect = function (args_num) {
Game.sPlayer[0].cBullet.ItemAddon(args_num);
};
Item.prototype.LaunchBombEffect = function (args_num) {
Game.sPlayer[0].cSpecial.SpecialAddon(args_num);
};
Item.prototype.LaunchHealEffect = function (args_num) {
Game.sPlayer[0].RecoverLife(35);
};
Item.prototype.Move = function () {
var _local1 = this;
_local1.ob.movy = _local1.ob.movy + _local1.ob.dropy;
if (_local1.ob.movy > _local1.ob.movymax) {
_local1.ob.movy = _local1.ob.movymax;
}
var _local2 = _local1.ob.mType;
switch (_local2) {
case 1 :
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
_local1.ob.clip._rotation = _local1.ob.clip._rotation + 10;
break;
case 2 :
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
_local1.ob.clip._rotation = _local1.ob.clip._rotation + 2;
break;
case 3 :
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
break;
}
_local1.RenderClip();
};
Item.prototype.Execute = function () {
var _local1 = this;
_local1.Move();
if (!Game.bGameOver) {
_local1.CollisionCheck();
}
_local1.Boundary();
};
SpecialWeapon = function (args_type) {
this.LoadAttributes(args_type);
};
SpecialWeapon.prototype.LoadAttributes = function (args_type) {
var _local1 = this;
_local1.ob = new Object();
_local1.ob.mType = args_type;
_local1.ob.posx = 0;
_local1.ob.posy = 0;
_local1.ob.movx = 0;
_local1.ob.movy = 0;
_local1.ob.fricty = 0.5;
_local1.ob.alpha = 0;
_local1.ob.maxslotnum = 5;
_local1.ob.mSlot = new Array(_local1.ob.maxslotnum);
_local1.ob.mSlot = [1, 1, null, null, null];
_local1.ob.mNum = 0;
_local1.ob.mLaserEffect = new Array(5);
_local1.ob.mLaserNum = 0;
_local1.ob.timer = 0;
_local1.ob.cooldowntimer = 20;
_local1.ob.frn = 1;
_local1.ob.mFrame = [40, 100, 20];
_local1.ob.frt = 0;
_local1.ob.frtmax = 1;
_local1.ob.boolDisplay = false;
_local1.ob.boolDisplayReady = false;
_local1.ob.mTarget = new Array();
_local1.ob.boolFire = false;
_local1.ob.boolReady = false;
_local1.InitialAction();
};
SpecialWeapon.prototype.ReassignNew = function () {
this.ob.mSlot = [random(3) + 1, random(3) + 1, null, null, null];
Game.UltimateInterfaceControl();
};
SpecialWeapon.prototype.CheatCode = function () {
this.ob.mSlot = [random(3) + 1, random(3) + 1, random(3) + 1, random(3) + 1, random(3) + 1];
Game.UltimateInterfaceControl();
};
SpecialWeapon.prototype.SpecialAddon = function (args_code) {
var _local2 = this.ob.mSlot;
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 != _local3) {
if (_local2[_local1] == null) {
_local2[_local1] = args_code;
break;
}
_local1++;
}
Game.UltimateInterfaceControl();
};
SpecialWeapon.prototype.InitialAction = function (args_posx, args_posy) {
var _local1 = this;
var _local2 = _local1.ob.mNum;
switch (_local2) {
case 1 :
_local1.ob.posx = args_posx;
_local1.ob.posy = args_posy;
_local1.ob.movy = -10;
_local1.ob.alpha = 100;
return;
case 2 :
_local1.ob.posx = args_posx;
_local1.ob.posy = args_posy - 10;
_local1.ob.alpha = 0;
return;
case 3 :
_local1.ob.posx = 200;
_local1.ob.posy = 250;
_local1.ob.alpha = 0;
return;
}
};
SpecialWeapon.prototype.Action = function () {
var _local1 = this;
var _local2 = _local1.ob.mNum;
switch (_local2) {
case 1 :
if (!_local1.ob.boolDisplay) {
if (_local1.ob.movy < 0) {
_local1.ob.movy = _local1.ob.movy + _local1.ob.fricty;
_local1.ob.boolDisplayReady = false;
}
if (_local1.ob.movy >= 0) {
_local1.ob.movy = 0;
_local1.ob.boolDisplayReady = true;
}
}
if (_local1.ob.boolDisplayReady) {
_local1.ob.clip.gotoAndStop("fire");
_local1.ob.boolDisplay = true;
_local1.ob.boolDisplayReady = false;
_local1.ob.boolBomb = true;
_root.sWindow.PlayerUltimaSound(_local1.ob.mNum);
}
if (_local1.ob.boolDisplay) {
if (_local1.FrameLatency()) {
var gVAR_Frame = _local1.FramePlay();
_local1.ob.clip.gotoAndStop(gVAR_Frame + 1);
}
}
if (_local1.ob.boolBomb) {
_local1.ob.alpha = random(100);
Game.sBombStatus = "Bomb";
}
return;
case 2 :
if (!_local1.ob.boolDisplay) {
var _local3 = _local1.ob.alpha;
if (_local3 >= 100) {
_local1.ob.alpha = 100;
_local1.ob.boolDisplayReady = true;
} else {
_local1.ob.alpha = _local1.ob.alpha + 5;
_local1.ob.boolDisplayReady = false;
}
}
if (_local1.ob.boolDisplayReady) {
_local1.ob.clip.gotoAndStop("fire");
_local1.ob.boolDisplay = true;
_local1.ob.boolDisplayReady = false;
_local1.ob.boolBomb = true;
}
if (_local1.ob.boolDisplay) {
if (_local1.FrameLatency()) {
var gVAR_Frame = _local1.FramePlay();
_local1.ob.clip.gotoAndStop(gVAR_Frame + 1);
}
}
if (_local1.ob.boolBomb) {
_local1.ob.clip._xscale = random(300);
Game.sBombStatus = "SingleLaser";
_local1.EffectSingleLaser();
}
_local1.ob.posx = Game.sPlayer[0].ob.posx;
_local1.ob.posy = Game.sPlayer[0].ob.posy - 10;
return;
case 3 :
if (!_local1.ob.boolDisplay) {
var _local3 = _local1.ob.alpha;
if (_local3 >= 100) {
_local1.ob.alpha = 100;
_local1.ob.boolDisplayReady = true;
} else {
_local1.ob.alpha = _local1.ob.alpha + 2;
_local1.ob.boolDisplayReady = false;
}
}
if (_local1.ob.boolDisplayReady) {
_local1.ob.clip.gotoAndStop("fire");
_local1.ob.boolDisplay = true;
_local1.ob.boolDisplayReady = false;
_local1.ob.boolBomb = true;
_local1.DrawMultiLaserLine();
_local1.ob.clip._xscale = 500;
_local1.ob.clip._yscale = 500;
_root.sWindow.PlayerUltimaSound(_local1.ob.mNum);
}
if (_local1.ob.boolDisplay) {
if (_local1.FrameLatency()) {
var gVAR_Frame = _local1.FramePlay();
_local1.ob.clip.gotoAndStop(gVAR_Frame + 1);
}
}
if (_local1.ob.boolBomb) {
_local1.ob.clip._xscale = _local1.ob.clip._xscale + 100;
_local1.ob.clip._yscale = _local1.ob.clip._yscale + 100;
_local1.ob.alpha = _local1.ob.alpha - 5;
_local1.ob.clip._ma.stop();
_local1.EffectMultiLaserLine();
Game.sBombStatus = null;
}
return;
}
};
SpecialWeapon.prototype.EffectSingleLaser = function () {
var _local2 = this.ob.mLaserEffect;
this.ob.mLaserNum++;
if (this.ob.mLaserNum > _local2.length) {
this.ob.mLaserNum = 1;
}
var _local3 = this.ob.mLaserNum - 1;
if (_local2[_local3] == null) {
attachMovie("ShadowWpn2", "shw" + (_local3 + 1), 3000 + (_local3 + 1));
_local2[_local3] = _root["shw" + (_local3 + 1)];
_local2[_local3]._alpha = 100;
_local2[_local3]._x = this.ob.posx;
_local2[_local3]._y = this.ob.posy - 10;
}
var _local1 = 0;
while (_local1 != _local2.length) {
if (_local2[_local1] != null) {
_local2[_local1]._alpha = _local2[_local1]._alpha - 10;
if (_local2[_local1]._alpha <= 0) {
_local2[_local1].removeMovieClip();
_local2[_local1] = null;
}
}
_local1++;
}
};
SpecialWeapon.prototype.MultiLaserCaptureTarget = function () {
var _local2 = Game.sEnemy;
var gVAR_EnemyLength = _local2.length;
var gVAR_Target = new Array();
var _local3 = 5;
var _local1 = 0;
while (_local1 != gVAR_EnemyLength) {
if (_local2[_local1][1] and (!_local2[_local1][0].ob.mBoolInvisible)) {
_local3--;
gVAR_Target.push(_local2[_local1]);
}
if (_local3 == 0) {
break;
}
_local1++;
}
this.ob.mTarget = gVAR_Target;
};
SpecialWeapon.prototype.EffectMultiLaserLine = function () {
var _local3 = 5;
var _local1 = 0;
while (_local1 != _local3) {
var _local2 = _root["line" + _local1];
_local2._alpha = _local2._alpha - 5;
_local1++;
}
};
SpecialWeapon.prototype.DrawMultiLaserLine = function () {
var gVAR_Num = 5;
var _local2 = 0;
while (_local2 != gVAR_Num) {
this.MultiLaserCaptureTarget();
var _local3 = this.ob.mTarget;
var gVAR_Length = _local3.length;
var gVAR_RandNum = random(gVAR_Length);
var gVAR_OpX = _local3[gVAR_RandNum][0].ob.posx;
var gVAR_OpY = _local3[gVAR_RandNum][0].ob.posy;
createEmptyMovieClip("line" + _local2, _local2 + 600);
var _local1 = _root["line" + _local2];
var gVAR_RandColor = (random(2) + 1);
switch (gVAR_RandColor) {
case 1 :
_local1.lineStyle(random(2) + 1, 16711680, random(100) + 50);
break;
case 2 :
_local1.lineStyle(random(2) + 1, 16776960, random(100) + 50);
break;
}
if (gVAR_Length != 0) {
_local1.moveTo(200, 250);
_local1.lineTo((gVAR_OpX + random(5)) - random(5), (gVAR_OpY + random(5)) - random(5));
if ((((gVAR_OpX > 0) && (gVAR_OpX < 400)) && (gVAR_OpY > 0)) && (gVAR_OpY < 500)) {
_local3[gVAR_RandNum][0].TakeDamage(500);
}
} else {
var gVAR_RandPosX = random(400);
var gVAR_RandPosY = random(500);
_local1.moveTo(200, 250);
_local1.lineTo(gVAR_RandPosX, gVAR_RandPosY);
}
_local2++;
}
};
SpecialWeapon.prototype.Fire = function (args_posx, args_posy) {
var _local1 = this;
if (!_local1.ob.boolFire) {
if (_local1.CheckAvailable()) {
_local1.InitialAction(args_posx, args_posy);
_local1.AttachClip();
_local1.ob.boolFire = true;
}
}
};
SpecialWeapon.prototype.Move = function () {
var _local1 = this;
var _local2 = _local1.ob.mNum;
switch (_local2) {
case 1 :
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
break;
case 2 :
break;
case 3 :
break;
}
_local1.RenderClip();
};
SpecialWeapon.prototype.CheckAvailable = function () {
var _local2 = this.ob.mSlot;
var _local3 = _local2.length;
var gVAR_Num = 0;
var _local1 = 0;
while (_local1 != _local3) {
if (_local2[_local1] != null) {
this.ob.mNum = _local2[_local1];
return(true);
}
_local1++;
}
return(false);
};
SpecialWeapon.prototype.FrameLatency = function () {
var _local1 = this;
_local1.ob.frt++;
if (_local1.ob.frt >= _local1.ob.frtmax) {
_local1.ob.frt = 0;
return(true);
}
return(false);
};
SpecialWeapon.prototype.FramePlay = function () {
var _local1 = this;
var _local2 = _local1.ob.mNum;
var gARR_Slot = _local1.ob.mSlot;
var gARR_Frame = _local1.ob.mFrame;
var _local3 = gARR_Frame[_local2 - 1];
_local1.ob.frn++;
if (_local1.ob.frn > _local3) {
_local1.RemoveClip();
_local1.ResetAttributes();
}
return(_local1.ob.frn);
};
SpecialWeapon.prototype.AttachClip = function () {
var _local2 = this;
var _local1 = _local2.ob.mNum;
var _local3 = _local2.ob.alpha;
attachMovie("SpecialWpn" + _local1, "sp" + _local1, 8000 + _local1);
_local2.ob.clip = _root["sp" + _local1];
_local2.ob.clip.gotoAndStop("ready");
_local2.ob.clip._alpha = _local3;
};
SpecialWeapon.prototype.RenderClip = function () {
var _local1 = this;
gVAR_Posx = _local1.ob.posx;
gVAR_Posy = _local1.ob.posy;
gVAR_Alpha = _local1.ob.alpha;
_local1.ob.clip._x = gVAR_Posx;
_local1.ob.clip._y = gVAR_Posy;
_local1.ob.clip._alpha = gVAR_Alpha;
};
SpecialWeapon.prototype.RemoveClip = function () {
this.ob.clip.removeMovieClip();
var gVAR_Num = this.ob.mNum;
switch (gVAR_Num) {
case 2 :
var _local3 = this.ob.mLaserEffect;
var _local1 = 0;
while (_local1 != _local3.length) {
_local3[_local1].removeMovieClip();
_local1++;
}
return;
case 3 :
var gVAR_Num = 5;
_local1 = 0;
for(;;){
if (_local1 == gVAR_Num) {
break;
}
var _local2 = _root["line" + _local1];
_local2.removeMovieClip();
_local1++;
};
}
};
SpecialWeapon.prototype.RemoveAll = function () {
this.ob.clip.removeMovieClip();
var _local3 = this.ob.mLaserEffect;
var _local1 = 0;
while (_local1 != _local3.length) {
_local3[_local1].removeMovieClip();
_local1++;
}
var gVAR_Num = 5;
_local1 = 0;
while (_local1 != gVAR_Num) {
var _local2 = _root["line" + _local1];
_local2.removeMovieClip();
_local1++;
}
};
SpecialWeapon.prototype.ResetAttributes = function () {
var _local3 = this;
var _local2 = _local3.ob.mSlot;
var gVAR_Length = _local2.length;
var _local1 = 0;
while (_local1 != gVAR_Length) {
_local2[_local1] = _local2[_local1 + 1];
_local1++;
}
var gVAR_Last = (gVAR_Length - 1);
_local2[gVAR_Last] = null;
_local3.ob.mNum = 0;
_local3.ob.posx = 0;
_local3.ob.posy = 0;
_local3.ob.movx = 0;
_local3.ob.movy = 0;
_local3.ob.frt = 0;
_local3.ob.frn = 1;
_local3.ob.boolDisplay = false;
_local3.ob.boolDisplayReady = false;
_local3.ob.boolBomb = false;
_local3.ob.boolFire = false;
Game.sBombStatus = null;
Game.UltimateInterfaceControl();
};
SpecialWeapon.prototype.Execute = function () {
var _local1 = this;
if (_local1.ob.boolFire) {
_local1.Action();
_local1.Move();
}
};
Asteroid = function (args_code) {
this.LoadAttributes(args_code);
};
Asteroid.prototype.LoadAttributes = function (args_code) {
var _local1 = this;
_local1.ob = new Object();
_local1.ob.mCode = args_code;
_local1.ob.posx = random(400);
_local1.ob.posy = -random(400);
_local1.ob.movy = random(10) + 5;
_local1.ob.clip = new Object();
_local1.AttachClip();
};
Asteroid.prototype.Move = function () {
this.ob.posy = this.ob.posy + this.ob.movy;
};
Asteroid.prototype.Boundary = function () {
var _local1 = this;
if (_local1.ob.posy > 500) {
_local1.ob.posy = -random(400);
_local1.ob.movy = random(20) + 10;
}
};
Asteroid.prototype.AttachClip = function () {
var _local2 = this;
var _local1 = _local2.ob.mCode;
attachMovie("asteroid", "ast" + _local1, 800 + _local1);
_local2.ob.clip = _root["ast" + _local1];
_local2.ob.clip._alpha = random(100);
};
Asteroid.prototype.RenderClip = function () {
var _local1 = this.ob.clip;
var _local3 = this.ob.posx;
var _local2 = this.ob.posy;
_local1._x = _local3;
_local1._y = _local2;
};
Asteroid.prototype.RemoveClip = function () {
this.ob.clip.removeMovieClip();
};
Asteroid.prototype.Execute = function () {
var _local1 = this;
_local1.Move();
_local1.RenderClip();
_local1.Boundary();
};
Burst = function (args_num, args_posx, args_posy) {
this.LoadAttributes(args_num, args_posx, args_posy);
sWindow.BurstSound();
};
Burst.prototype.LoadAttributes = function (args_num, args_posx, args_posy) {
var _local1 = this;
_local1.ob = new Object();
_local1.ob.mCode = args_num;
_local1.ob.posx = args_posx;
_local1.ob.posy = args_posy;
_local1.ob.frn = 1;
_local1.ob.frnmax = 10;
_local1.ob.frt = 0;
_local1.ob.frtmax = 0;
_local1.AttachClip();
};
Burst.prototype.AttachClip = function () {
var _local1 = this;
var _local2 = _local1.ob.mCode;
var gVAR_Posx = _local1.ob.posx;
var _local3 = _local1.ob.posy;
attachMovie("burst", "bst" + _local2, 300 + _local2);
_local1.ob.clip = _root["bst" + _local2];
_local1.ob.clip._x = gVAR_Posx;
_local1.ob.clip._y = _local3;
};
Burst.prototype.RemoveClip = function () {
this.ob.clip.removeMovieClip();
var _local1 = this.ob.mCode;
Game.RemoveBurst(_local1);
};
Burst.prototype.SwapData = function (args_code) {
var _local1 = this;
var _local2 = args_code;
_local1.ob.mCode = _local2;
_local1.ob.clip._name = "bst" + _local2;
_local1.ob.clip.swapDepths(300 + _local2);
};
Burst.prototype.FrameTimer = function () {
var _local1 = this;
_local1.ob.frt++;
if (_local1.ob.frt > _local1.ob.frtmax) {
_local1.ob.frt = 0;
return(true);
}
return(false);
};
Burst.prototype.FrameDisplay = function () {
var _local1 = this;
_local1.ob.frn++;
var gCLIP_Burst = _local1.ob.clip;
var _local2 = _local1.ob.frn;
var _local3 = _local1.ob.frnmax;
if (_local2 > _local3) {
_local1.RemoveClip();
} else {
gCLIP_Burst.gotoAndStop(_local2);
}
};
Burst.prototype.Execute = function () {
if (this.FrameTimer()) {
this.FrameDisplay();
}
};
Smoke = function (args_num, args_posx, args_posy) {
this.LoadAttributes(args_num, args_posx, args_posy);
};
Smoke.prototype.LoadAttributes = function (args_num, args_posx, args_posy) {
var _local1 = this;
_local1.ob = new Object();
_local1.ob.mCode = args_num;
_local1.ob.posx = args_posx;
_local1.ob.posy = args_posy;
_local1.AttachClip();
};
Smoke.prototype.RenderAlpha = function () {
this.ob.clip._alpha = this.ob.clip._alpha - 5;
};
Smoke.prototype.BoundaryAlpha = function () {
if (this.ob.clip._alpha < 0) {
this.RemoveClip();
return(true);
}
return(false);
};
Smoke.prototype.AttachClip = function () {
var _local1 = this;
var _local2 = _local1.ob.mCode;
var gVAR_Posx = _local1.ob.posx;
var _local3 = _local1.ob.posy;
attachMovie("smoke", "smk" + _local2, 15000 + _local2);
_local1.ob.clip = _root["smk" + _local2];
_local1.ob.clip._x = gVAR_Posx;
_local1.ob.clip._y = _local3;
};
Smoke.prototype.RemoveClip = function () {
this.ob.clip.removeMovieClip();
};
Smoke.prototype.SwapData = function (args_code) {
var _local1 = this;
var _local2 = args_code;
_local1.ob.mCode = _local2;
_local1.ob.clip._name = "smk" + _local2;
_local1.ob.clip.swapDepths(13000 + _local2);
};
Smoke.prototype.Execute = function () {
this.RenderAlpha();
};
Player = function () {
var _local1 = this;
_local1.ob = new Object();
_local1.ob.depth = 1000;
_local1.ob.posx = 200;
_local1.ob.posy = 400;
_local1.ob.movx = 0;
_local1.ob.movy = 0;
_local1.ob.maxvel = 5;
_local1.ob.acce = 1.5;
_local1.ob.mHeight = 25;
_local1.ob.mWidth = 25;
_local1.ob.mLifemax = 150;
_local1.ob.mLife = _local1.ob.mLifemax;
_local1.ob.mCredit = Option.mLives;
_local1.ob.firet = 0;
_local1.ob.firemaxt = 3;
_local1.ob.frn = 1;
_local1.ob.frmax = 2;
_local1.ob.frStatus = "middle";
_local1.ob.alphadeg = 0;
_local1.ob.apt = 0;
_local1.ob.aptmax = 60;
_local1.ob.bInvulnerable = true;
_local1.AttachClip(1);
_local1.CompositeObject();
_local1.cSmoke = new Array();
};
Player.prototype.CompositeObject = function () {
this.cBullet = new Bullet();
this.cSpecial = new SpecialWeapon();
};
Player.prototype.AttachClip = function (args_id) {
var _local1 = args_id;
attachMovie("ship", "ship" + _local1, _local1 + this.ob.depth);
this.ob.clip = _root["ship" + _local1];
};
Player.prototype.RenderClip = function () {
var _local1 = this;
_local1.ob.clip._x = _local1.ob.posx;
_local1.ob.clip._y = _local1.ob.posy;
};
Player.prototype.RemoveClip = function () {
this.ob.clip.removeMovieClip();
};
Player.prototype.RemoveAll = function () {
this.cBullet.RemoveAll();
this.cBullet = null;
};
Player.prototype.AppearEffect = function () {
var _local2 = this;
_local2.ob.alphadeg = _local2.ob.alphadeg + 1.30899693899575;
var _local1 = _local2.ob.clip;
_local1._alpha = 100 * math.cos(_local2.ob.alphadeg);
};
Player.prototype.AppearReLaunch = function () {
this.ob.apt = 0;
};
Player.prototype.AppearTrigger = function () {
var _local1 = this;
if (_local1.ob.apt <= _local1.ob.aptmax) {
_local1.AppearTimer();
}
};
Player.prototype.AppearTimer = function () {
var _local1 = this;
_local1.ob.apt++;
if (_local1.ob.apt > _local1.ob.aptmax) {
_local1.ob.bInvulnerable = false;
_local1.AppearEnd();
return(null);
}
_local1.ob.bInvulnerable = true;
_local1.AppearEffect();
return(undefined);
};
Player.prototype.AppearEnd = function () {
this.ob.alphadeg = 0;
var _local1 = this.ob.clip;
_local1._alpha = 100;
};
Player.prototype.Boundary = function () {
var _local1 = this;
if (_local1.ob.posx > 350) {
_local1.ob.posx = 350;
}
if (_local1.ob.posx < 50) {
_local1.ob.posx = 50;
}
if (_local1.ob.posy > 450) {
_local1.ob.posy = 450;
}
if (_local1.ob.posy < 50) {
_local1.ob.posy = 50;
}
};
Player.prototype.ReadData = function () {
this.ob.mTarget = new Array();
this.mTarget = Game.sEnemy;
};
Player.prototype.KeyInput = function () {
var _local1 = this;
if (!Game.bCodeInput) {
if (Key.isDown(39)) {
_local1.ob.movx = _local1.ob.movx + _local1.ob.acce;
}
if (Key.isDown(37)) {
_local1.ob.movx = _local1.ob.movx - _local1.ob.acce;
}
if (Key.isDown(38)) {
_local1.ob.movy = _local1.ob.movy - _local1.ob.acce;
}
if (Key.isDown(40)) {
_local1.ob.movy = _local1.ob.movy + _local1.ob.acce;
}
if (Key.isDown(65)) {
_local1.Fire();
_local1.DisplayShipFire();
}
if (Key.isDown(68)) {
var _local3 = _local1.ob.posx;
var _local2 = _local1.ob.posy;
_local1.cSpecial.Fire(_local3, _local2);
}
if (Key.isDown(87) && (!_local1.ob.kaccelerate)) {
_local1.ob.movy = _local1.ob.movy - (10 * _local1.ob.acce);
_local1.ob.kaccelerate = true;
_root.sWindow.AcceDecceSound();
}
if (!Key.isDown(87)) {
_local1.ob.kaccelerate = false;
}
if (Key.isDown(83) && (!_local1.ob.kdeccelerate)) {
_local1.ob.movy = _local1.ob.movy + (10 * _local1.ob.acce);
_local1.ob.kdeccelerate = true;
_root.sWindow.AcceDecceSound();
}
if (!Key.isDown(83)) {
_local1.ob.kdeccelerate = false;
}
}
if (Key.isDown(13) && (!Key.isDown(16))) {
if (Game.bCodeInput) {
Game.CheckCodeInput();
Game.bCodeInput = false;
}
return(null);
}
if (Key.isDown(16)) {
if (Key.isDown(13)) {
Game.CodeInputDisplay();
}
}
return(undefined);
};
Player.prototype.RecoverLife = function (args_life) {
var _local1 = this;
_local1.ob.mLife = _local1.ob.mLife + args_life;
if (_local1.ob.mLife > _local1.ob.mLifemax) {
_local1.ob.mLife = _local1.ob.mLifemax;
}
};
Player.prototype.DisplayShipFire = function () {
gCLIP_Char = this.ob.clip;
gCLIP_Char.m_head.play();
};
Player.prototype.Move = function () {
var _local1 = this;
_local1.ob.movx = _local1.ob.movx * 0.9;
_local1.ob.movy = _local1.ob.movy * 0.9;
gVAR_AbsMovX = math.abs(_local1.ob.movx);
if (gVAR_AbsMovX <= 0.5) {
_local1.ob.movx = 0;
}
gVAR_AbsMovY = math.abs(_local1.ob.movy);
if (gVAR_AbsMovY <= 0.5) {
_local1.ob.movy = 0;
}
_local1.ob.posx = _local1.ob.posx + _local1.ob.movx;
_local1.ob.posy = _local1.ob.posy + _local1.ob.movy;
};
Player.prototype.DirectionFrameDisplay = function (args_dir) {
var _local2 = this;
var _local3 = _local2.ob.movx;
var gVAR_RMovX = 4;
var gVAR_LMovX = -4;
if ((_local3 <= 1) && (_local3 >= -1)) {
_local2.ob.frStatus = "middle";
}
if ((_local3 <= gVAR_RMovX) && (_local3 > 1)) {
_local2.ob.frStatus = "right01";
}
if (_local3 > gVAR_RMovX) {
_local2.ob.frStatus = "right02";
}
if ((_local3 >= gVAR_LMovX) && (_local3 < -1)) {
_local2.ob.frStatus = "left01";
}
if (_local3 < gVAR_LMovX) {
_local2.ob.frStatus = "left02";
}
var gSTR_Status = _local2.ob.frStatus;
var _local1 = _local2.ob.clip;
if (gSTR_Status == "middle") {
_local1.m_wing.gotoAndStop("md");
_local1.m_tail.gotoAndStop("md");
}
if (gSTR_Status == "right01") {
_local1.m_wing.gotoAndStop("r01");
_local1.m_tail.gotoAndStop("r01");
}
if (gSTR_Status == "right02") {
_local1.m_wing.gotoAndStop("r02");
_local1.m_tail.gotoAndStop("r02");
}
if (gSTR_Status == "left01") {
_local1.m_wing.gotoAndStop("l01");
_local1.m_tail.gotoAndStop("l01");
}
if (gSTR_Status == "left02") {
_local1.m_wing.gotoAndStop("l02");
_local1.m_tail.gotoAndStop("l02");
}
var gVAR_MovY = _local2.ob.movy;
if ((gVAR_MovY < -12) || (gVAR_MovY > 12)) {
_local2.LoadSmoke();
}
};
Player.prototype.Destroy = function () {
var _local1 = this;
_local1.ob.mCredit--;
if (_local1.ob.mCredit < 0) {
var _local3 = _local1.ob.posx;
var _local2 = _local1.ob.posy;
Game.bGameOver = true;
Game.LoadBurst((_local3 + random(50)) - random(50), (_local2 + random(50)) - random(50));
Game.LoadBurst((_local3 + random(50)) - random(50), (_local2 + random(50)) - random(50));
Game.LoadBurst(_local3, _local2);
_local1.ob.mCredit = 0;
_local1.RemoveClip();
_local1.cSpecial.RemoveAll();
_local1.cSpecial = null;
_local1.ClearSmoke();
Game.sBombStatus = null;
Game.showGameOverUI();
Game.showCover();
} else {
var _local3 = _local1.ob.posx;
var _local2 = _local1.ob.posy;
Game.LoadBurst(_local3, _local2);
_local1.LoadExtraItem();
_local1.ResetSpecialWeapon();
_local1.ResetWeapon();
_local1.AppearReLaunch();
_local1.ResetLife();
_local1.ResetPosition();
}
Game.CreditInterfaceControl();
};
Player.prototype.LoadExtraItem = function () {
var _local3 = this;
var _local2 = _local3.ob.posx;
var _local1 = _local3.ob.posy;
var gVAR_TypeOne = _local3.cBullet.ob.m_btype.sum1;
var gVAR_TypeTwo = _local3.cBullet.ob.m_btype.sum2;
var gVAR_TypeThree = _local3.cBullet.ob.m_btype.sum3;
var gVAR_TypeFour = _local3.cBullet.ob.m_btype.sum4;
if (gVAR_TypeOne > 2) {
Game.LoadItem(1, (_local2 + random(50)) - random(50), _local1 - random(50));
}
if (gVAR_TypeTwo > 0) {
Game.LoadItem(1, (_local2 + random(50)) - random(50), _local1 - random(50));
}
if (gVAR_TypeThree > 0) {
Game.LoadItem(1, (_local2 + random(50)) - random(50), _local1 - random(100));
}
if (gVAR_TypeFour > 0) {
Game.LoadItem(1, (_local2 + random(50)) - random(50), _local1 - random(100));
}
};
Player.prototype.ResetWeapon = function () {
this.cBullet.RemoveAll();
this.cBullet.ResetNew();
};
Player.prototype.ResetSpecialWeapon = function () {
var _local1 = this;
_local1.cSpecial.RemoveAll();
_local1.cSpecial.ResetAttributes();
_local1.cSpecial.ReassignNew();
};
Player.prototype.ResetLife = function () {
this.ob.mLife = this.ob.mLifemax;
};
Player.prototype.ResetPosition = function () {
var _local1 = this;
_local1.ob.posx = 200;
_local1.ob.posy = 450;
_local1.ob.movy = -8;
_local1.ob.movx = 0;
};
Player.prototype.TakeDamage = function (args_dmg) {
var _local1 = this;
if ((!Game.bGameWin) && (!Game.bGameOver)) {
if (!_local1.ob.bInvulnerable) {
_local1.ob.mLife = _local1.ob.mLife - args_dmg;
}
if (_local1.ob.mLife <= 0) {
_local1.ob.mLife = 0;
_local1.Destroy();
}
_root.sWindow.HurtSound();
}
};
Player.prototype.TransferData = function () {
var _local1 = this;
_local1.cBullet.ob.charposx = _local1.ob.posx;
_local1.cBullet.ob.charposy = _local1.ob.posy;
_local1.mTarget = Game.sEnemy;
};
Player.prototype.FireLatency = function () {
var _local1 = this;
_local1.ob.firet++;
if (_local1.ob.firet > _local1.ob.firemaxt) {
_local1.ob.firet = 0;
return(true);
}
return(false);
};
Player.prototype.Fire = function () {
if (this.FireLatency()) {
this.cBullet.Fire();
}
};
Player.prototype.LoadSmoke = function () {
var _local1 = this;
var gVAR_Num = _local1.cSmoke.length;
var _local3 = _local1.ob.posx;
var _local2 = _local1.ob.posy;
var gVAR_Length = _local1.cSmoke.length;
if (gVAR_Length < 5) {
if (_local1.SmokeTimer()) {
_local1.cSmoke.push(new Smoke(gVAR_Num, _local3, _local2));
}
}
};
Player.prototype.ClearSmoke = function () {
var _local2 = this;
var _local3 = _local2.cSmoke.length;
var _local1 = 0;
while (_local1 != _local3) {
_local2.cSmoke[_local1].RemoveClip();
_local2.cSmoke[_local1] = null;
_local1++;
}
};
Player.prototype.SmokeTimer = function () {
var _local1 = this;
_local1.ob.smkt++;
if (_local1.ob.smkt > 3) {
_local1.ob.smkt = 0;
return(true);
}
return(false);
};
Player.prototype.ExecuteSmoke = function () {
var _local2 = this;
var _local3 = _local2.cSmoke.length;
var _local1 = 0;
while (_local1 != _local3) {
_local2.cSmoke[_local1].Execute();
if (_local2.cSmoke[_local1].BoundaryAlpha()) {
_local2.RemoveSmoke(_local1);
}
_local1++;
}
};
Player.prototype.RemoveSmoke = function (args_num) {
var _local2 = this;
var _local3 = _local2.cSmoke.length;
var _local1 = args_num;
while (_local1 != _local3) {
_local2.cSmoke[_local1] = _local2.cSmoke[_local1 + 1];
_local2.cSmoke[_local1].SwapData(_local1);
_local1++;
}
_local2.cSmoke.pop();
};
Player.prototype.Execute = function () {
var _local1 = this;
if (!Game.bGameOver) {
_local1.ReadData();
_local1.KeyInput();
_local1.Move();
_local1.Boundary();
_local1.RenderClip();
_local1.TransferData();
_local1.ExecuteSmoke();
_local1.AppearTrigger();
_local1.DirectionFrameDisplay();
_local1.cSpecial.Execute();
}
_local1.cBullet.Execute();
};
Game = function () {
Game.sSound = new Sound();
Game.sSound.attachSound("hit");
Game.sSound.setVolume(100);
Game.sPlayer = new Array();
Game.sPlayer.push(new Player());
Game.sEnemy = new Array();
Game.sEnemySum = 10;
Game.sEnemyNum = 0;
Game.sBombStatus = null;
Game.sItem = new Array();
Game.sAsteroid = new Array();
Game.sAsteroidSum = 15;
Game.sAsetroidt = 0;
Game.sAsteroidtmax = 15;
Game.sBurst = new Array();
Game.bCodeInput = false;
Game.mCodeSeries = ["Beginner makes sense", "String of evil", "Galaxy fall", "Your father very angry"];
Game.mtime = 0;
Game.mScenario = 0;
Game.mScenarioMax = new Array();
Game.mScenarioMax = [196, 0];
Game.mStage = 1;
Game.mScriptLength = 15;
Game.vSound = 100;
Game.gameovert = 0;
Game.gameovertmax = 200;
Game.gamevictoryt = 0;
Game.gamevictorytmax = 60;
Game.burstt = 0;
Game.bursttmax = 4;
var _local1 = 0;
while (_local1 != Game.sEnemySum) {
Game.sEnemy.push([null, false]);
_local1++;
}
Game.LoadAsteroid();
Game.LoadScript();
Game.bGameOver = false;
Game.bGameStart = true;
Game.bGamePause = false;
Game.bGameWin = false;
Game.mScore = 0;
Game.mScoreNum = 1;
Game.kPause = false;
};
Game.ResetNew = function () {
var _local1 = 0;
while (_local1 != Game.sEnemySum) {
Game.sEnemy[_local1][0].RemoveClip();
_local1++;
}
Game.sPlayer[0].RemoveClip();
};
Game.LoadItem = function (args_type, args_posx, args_posy) {
var _local2 = Game.sItem.length;
var _local1 = _local2 + 1;
Game.sItem.push(new Item(args_type, _local1, args_posx, args_posy));
};
Game.RemoveItem = function (args_code) {
args_code--;
Game.sItem[args_code] = null;
var _local3 = args_code;
var gVAR_EndNum = Game.sItem.length;
var _local1 = _local3;
while (_local1 != gVAR_EndNum) {
var _local2 = Game.sItem[_local1 + 1];
Game.sItem[_local1] = _local2;
Game.sItem[_local1].SwapData(_local1);
_local1++;
}
Game.sItem.pop();
};
Game.LoadAsteroid = function (args_code) {
var _local1 = 0;
while (_local1 != Game.sAsteroidSum) {
Game.sAsteroid.push(new Asteroid(_local1));
_local1++;
}
};
Game.RemoveAsteroid = function (args_code) {
};
Game.LoadEnemy = function (args_code, args_type) {
var _local2 = Game.sPosition[Game.mStage - 1][Game.mScenario - 1][0];
var _local1 = Game.sPosition[Game.mStage - 1][Game.mScenario - 1][1];
Game.sEnemy[args_code] = [new Enemy(args_type, args_code, _local2, _local1), true];
};
Game.RemoveEnemy = function (args_code) {
Game.sEnemy[args_code][0] = null;
Game.sEnemy[args_code][1] = false;
};
Game.LoadBurst = function (args_posx, args_posy) {
var _local1 = Game.sBurst.length;
Game.sBurst.push(new Burst(_local1, args_posx, args_posy));
};
Game.RemoveBurst = function (args_num) {
var _local2 = Game.sBurst;
_local2[args_num] = null;
gVAR_Length = _local2.length;
var _local1 = args_num;
while (_local1 != gVAR_Length) {
var _local3 = _local1 + 1;
_local2[_local1] = _local2[_local3];
_local2[_local1].SwapData(_local1);
_local1++;
}
_local2.pop();
};
Game.DisactivateEnemy = function (args_code) {
Game.sEnemy[args_code][1] = false;
};
Game.CodeInputDisplay = function () {
attachMovie("ui_code_input", "uicode", 40000);
uicode._x = 200;
uicode._y = 480;
Game.bCodeInput = true;
};
Game.CodeInputHide = function () {
uicode.removeMovieClip();
};
Game.CheckBoss = function () {
if (!Game.bGameWin) {
var gVAR_Scenario = Game.mScenario;
if (gVAR_Scenario > 192) {
var _local2 = 3;
var gARR_Boss = Game.sEnemy;
var _local3 = 3;
var _local1 = 0;
while (_local1 != _local3) {
_local2 = ((gARR_Boss[_local1][0].ob.mLife <= 0) ? (_local2 - 1) : (_local2));
_local1++;
}
}
if (_local2 == 0) {
sWindow.StopAllSound();
sWindow.VictorySound();
Game.VictoryInitialAction();
Game.bGameWin = true;
}
}
};
Game.CheckCodeInput = function () {
var gSTR_CodeInput = uicode.t_code.text;
var _local2 = Game.mCodeSeries;
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 != _local3) {
if (gSTR_CodeInput == _local2[_local1]) {
sWindow.CheatEnableSound();
Game.showCheatEneableUI();
switch (_local1 + 1) {
case 1 :
Game.sPlayer[0].ob.mCredit = 4;
Game.CreditInterfaceControl();
break;
case 2 :
if (Game.mScenario < 190) {
Game.mScenario = 190;
}
break;
case 3 :
Game.sPlayer[0].cBullet.ob.m_btype.sum1 = 5;
Game.sPlayer[0].cBullet.ob.m_btype.sum2 = 4;
Game.sPlayer[0].cBullet.ob.m_btype.sum3 = 5;
Game.sPlayer[0].cBullet.ob.m_btype.sum4 = 5;
break;
case 4 :
Game.sPlayer[0].cSpecial.CheatCode();
break;
}
}
_local1++;
}
Game.CodeInputHide();
};
Game.ReadScript = function (args_stage, args_scene) {
var _local2 = Game.sScript[args_stage - 1][args_scene - 1];
var gVAR_FuncLength = math.floor(_local2.length / Game.mScriptLength);
var _local1 = 0;
while (_local1 != gVAR_FuncLength) {
var gVAR_Head1 = (3 + (_local1 * Game.mScriptLength));
var gVAR_End1 = (7 + (_local1 * Game.mScriptLength));
var _local3 = 9 + (_local1 * Game.mScriptLength);
var gVAR_End2 = (12 + (_local1 * Game.mScriptLength));
var gVAR_Head3 = (13 + (_local1 * Game.mScriptLength));
var gVAR_End3 = (14 + (_local1 * Game.mScriptLength));
var gSTR_Parent = _local2.substring(gVAR_Head1, gVAR_End1);
var gSTR_NodeType = _local2.substring(_local3, gVAR_End2);
var gSTR_NodeQty = _local2.substring(gVAR_Head3, gVAR_End3);
Game.LaunchScript(gSTR_Parent, gSTR_NodeType, gSTR_NodeQty);
_local1++;
}
};
Game.LaunchScript = function (args_parent, args_nodetype, args_nodeqty) {
var gSTR_Parent = args_parent;
var _local2 = args_nodetype;
var _local3 = Number(args_nodeqty);
if (gSTR_Parent.length > 0) {
if (gSTR_Parent == "LdBg") {
}
if (gSTR_Parent == "LdUi") {
var gVAR_UiName = (("ui_" + _local2) + _local3);
if (_local2 == "bat") {
attachMovie(gVAR_UiName, gVAR_UiName, 50000);
var gCLIP_Ui = _root[gVAR_UiName];
gCLIP_Ui._x = 200;
gCLIP_Ui._y = 530;
gCLIP_Ui._tsc.text = Game.mScore;
Game.UltimateInterfaceControl();
Game.CreditInterfaceControl();
} else {
attachMovie(gVAR_UiName, gVAR_UiName, 30000);
var gCLIP_Ui = _root[gVAR_UiName];
gCLIP_Ui._x = 200;
gCLIP_Ui._y = 150;
}
}
if (gSTR_Parent == "LdAn") {
var gVAR_AnName = (("an_" + _local2) + _local3);
attachMovie(gVAR_AnName, gVAR_AnName, 53100);
var gCLIP_An = _root[gVAR_AnName];
gCLIP_An._x = 200;
gCLIP_An._y = 275;
}
if (gSTR_Parent == "CrEn") {
var _local1 = 0;
while (_local1 != Game.sEnemySum) {
if (Game.sEnemy[_local1][0] == null) {
Game.sEnemyNum++;
Game.LoadEnemy(_local1, _local2);
}
if (Game.sEnemyNum >= _local3) {
Game.sEnemyNum = 0;
return;
}
_local1++;
}
}
}
};
Game.LoadScript = function () {
Game.sScript = [["-- LdBg [bgp_1] + LdUi [bat_1]", "-- LdUi [rdy_1]", "a1 CrEn [t01_1]", "a2 CrEn [t01_1]", "a3 CrEn [t02_1] + CrEn [t01_1]", "a4 CrEn [t01_1]", "a5 CrEn [t02_1]", "a6 CrEn [t02_1]", "a7 CrEn [t02_1]", "a8 CrEn [t02_1]", "a9 CrEn [i01_1] + CrEn [i02_1]", "a0 CrEn [t02_1]", "b1 CrEn [t02_1] + CrEn [t01_1]", "b2 CrEn [t02_1] + CrEn [t01_1]", "b3 CrEn [i03_1]", "b4 CrEn [t03_1]", "b5 CrEn [t03_1]", "b6 CrEn [t02_1]", "b7 CrEn [i01_1]", "b8 CrEn [t03_1]", "b9 CrEn [t02_1] + CrEn [t03_1]", "b0 CrEn [t01_1] + CrEn [t02_1]", "c1 CrEn [t01_1] + CrEn [t03_1]", "c2 CrEn [t01_1] + CrEn [i01_1]", "c3 CrEn [i02_1] + CrEn [t02_1]", "c4 CrEn [t03_1]", "c5 CrEn [t02_1] + CrEn [t03_1]", "c6 CrEn [t04_1] + CrEn [t02_1]", "c7 CrEn [t05_1] + CrEn [t01_1]", "c8 CrEn [t05_1] + CrEn [t03_1]", "c9 CrEn [t06_1] + CrEn [i03_1]", "c0 CrEn [i02_1]", "d1 CrEn [t01_1] + CrEn [t03_1]", "d2 CrEn [t01_1] + CrEn [t02_1]", "d3 CrEn [t01_1] + CrEn [t03_1]", "d4 CrEn [t01_1]", "d5 CrEn [t12_1] + CrEn [t03_1]", "d6 CrEn [t01_1]", "d7 CrEn [t02_1]", "d8 CrEn [t12_1] + CrEn [t02_1]", "d9 CrEn [t12_1] + CrEn [t03_1]", "d0 CrEn [i03_1] + CrEn [i02_1]", "e1 CrEn [i01_1] + CrEn [t17_1]", "e2 CrEn [t17_1]", "e3 CrEn [t17_1] + CrEn [t03_1]", "e4 CrEn [t18_1]", "e5 CrEn [t17_1] + CrEn [i03_1]", "e6 CrEn [t18_1]", "e7 CrEn [t17_1]", "e8 CrEn [t18_1]", "e9 CrEn [t18_1]", "e0 CrEn [t17_1] + CrEn [i01_1]", "f1 CrEn [t07_1]", "f2 CrEn [t08_1]", "f3 CrEn [t08_1]", "f4 CrEn [t09_1]", "f5 CrEn [t04_1]", "f6 CrEn [t05_1]", "f7 CrEn [t05_1]", "f8 CrEn [t06_1]", "f9 CrEn [i03_1]", "f0 CrEn [i01_2]", "g1 CrEn [t07_1]", "g2 CrEn [t09_1]", "g3 CrEn [t04_1]", "g4 CrEn [t06_1]", "g5 CrEn [i02_1]", "g6 CrEn [t07_1]", "g7 CrEn [t09_1]", "g8 CrEn [t04_1]", "g9 CrEn [t06_1]", "g0 CrEn [i03_1]", "h1 CrEn [t15_1] + CrEn [t17_1]", "h2 CrEn [t16_1]", "h3 CrEn [t15_1] + CrEn [t18_1]", "h4 CrEn [t16_1]", "h5 CrEn [i17_1]", "h6 CrEn [t18_1]", "h7 CrEn [t15_1] + CrEn [t18_1]", "h8 CrEn [t16_1]", "h9 CrEn [t15_1] + CrEn [t17_1]", "h0 CrEn [i16_1]", "i1 CrEn [t07_1] + CrEn [i03_1]", "i2 CrEn [t09_1] + CrEn [t02_1]", "i3 CrEn [t10_1] + CrEn [t02_1]", "i4 CrEn [t03_1] + CrEn [i02_2]", "i5 CrEn [i01_1]", "i6 CrEn [t11_1]", "i7 CrEn [t10_1] + CrEn [t12_1]", "i8 CrEn [t11_1] + CrEn [t03_1]", "i9 CrEn [t10_1] + CrEn [t12_1]", "i0 CrEn [i03_1] + CrEn [i01_1]", "j1 CrEn [t04_1] + CrEn [i01_1]", "j2 CrEn [t06_1] + CrEn [t01_1]", "j3 CrEn [t07_1] + CrEn [t01_1]", "j4 CrEn [t09_1] + CrEn [i01_1]", "j5 CrEn [t01_1]", "j6 CrEn [t12_1]", "j7 CrEn [t02_1] + CrEn [t12_1]", "j8 CrEn [t03_1] + CrEn [t11_1]", "j9 CrEn [t02_1] + CrEn [t10_1]", "j0 CrEn [t03_1] + CrEn [t01_1]", "k1 CrEn [i01_1] + CrEn [t03_1]", "k2 CrEn [t13_1]", "k3 CrEn [t14_1]", "k4 CrEn [t10_1]", "k5 CrEn [t11_1]", "k6 CrEn [t17_1]", "k7 CrEn [t18_1]", "k8 CrEn [t13_1] + CrEn [t18_1]", "k9 CrEn [t14_1] + CrEn [t18_1]", "k0 CrEn [t19_1] + CrEn [i02_1]", "l1 CrEn [i03_1] + CrEn [t02_1]", "l2 CrEn [t03_1] + CrEn [t01_1]", "l3 CrEn [t02_1]", "l4 CrEn [t19_1]", "l5 CrEn [t02_1]", "l6 CrEn [t03_1] + CrEn [i01_1]", "l7 CrEn [t19_1]", "l8 CrEn [t03_1] + CrEn [t01_1]", "l9 CrEn [t02_1] + CrEn [t01_1]", "l0 CrEn [i03_1] + CrEn [i02_2]", "l1 CrEn [t19_1]", "l2 CrEn [t19_1]", "l3 CrEn [t04_1]", "l4 CrEn [t06_1]", "l5 CrEn [i01_2]", "l6 CrEn [t07_1]", "l7 CrEn [t09_1]", "l8 CrEn [t02_1] + CrEn [t03_1]", "l9 CrEn [t03_1] + CrEn [t01_1]", "l0 CrEn [t02_1]", "m1 CrEn [t21_1] + CrEn [t12_1]", "m2 CrEn [t19_1] + CrEn [t22_1]", "m3 CrEn [t22_1] + CrEn [t12_1]", "m4 CrEn [t02_1] + CrEn [t21_1]", "m5 CrEn [i01_2] + CrEn [t12_1]", "m6 CrEn [t21_1] + CrEn [t12_1]", "m7 CrEn [t12_1] + CrEn [t21_1]", "m8 CrEn [t22_1] + CrEn [t12_1]", "m9 CrEn [i02_1] + CrEn [t22_1]", "m0 CrEn [t03_1] + CrEn [i03_1]", "n1 CrEn [t01_1]", "n2 CrEn [t01_1]", "n3 CrEn [t01_1]", "n4 CrEn [t01_1]", "n5 CrEn [t01_1]", "n6 CrEn [t01_1] + CrEn [i01_1]", "n7 CrEn [t01_1]", "n8 CrEn [t01_1]", "n9 CrEn [t01_1]", "n0 CrEn [t01_1]", "o1 CrEn [t01_1]", "o2 CrEn [t01_1]", "o3 CrEn [t01_1]", "o4 CrEn [t01_1]", "o5 CrEn [t01_1] + CrEn [i02_1]", "o6 CrEn [t01_1]", "o7 CrEn [t01_1]", "o8 CrEn [t01_1] + CrEn [t20_1]", "o9 CrEn [t01_1]", "o0 CrEn [t01_1]", "p1 CrEn [t01_1]", "p2 CrEn [t01_1] + CrEn [t20_1]", "p3 CrEn [t01_1]", "p4 CrEn [t01_1]", "p5 CrEn [t01_1]", "p6 CrEn [t01_1]", "p7 CrEn [t01_1]", "p8 CrEn [t01_1]", "p9 CrEn [t01_1]", "p0 CrEn [t01_1] + CrEn [i03_1]", "q1 CrEn [t01_1]", "q2 CrEn [t01_1]", "q3 CrEn [t01_1]", "q4 CrEn [t01_1]", "q5 CrEn [t01_1] + CrEn [i01_2]", "q6 CrEn [t01_1]", "q7 CrEn [t01_1]", "q8 CrEn [t01_1]", "q9 CrEn [t01_1]", "q0 CrEn [t01_1]", "r1 CrEn [t01_1]", "r2 CrEn [t01_1]", "r3 CrEn [t01_1]", "r4 CrEn [t01_1]", "r5 CrEn [t01_1] + CrEn [i02_1]", "r6 CrEn [t01_1]", "r7 CrEn [i01_4]", "r8 CrEn [i03_1]", "-- LdUi [wrn_1]", "-- LdAn [bss_1]", "z1 CrEn [t23_1]", "z2 CrEn [t24_1]", "z3 CrEn [t25_1]"]];
Game.sTimer = [[0, 0, 200, 150, 40, 60, 30, 50, 70, 75, 50, 95, 40, 80, 80, 60, 70, 40, 50, 40, 55, 30, 30, 45, 100, 80, 50, 205, 5, 5, 5, 140, 20, 50, 20, 60, 70, 50, 20, 50, 45, 100, 250, 45, 70, 80, 30, 40, 60, 40, 70, 50, 225, 5, 5, 5, 250, 5, 5, 5, 200, 200, 75, 5, 100, 5, 30, 200, 5, 60, 5, 400, 105, 30, 30, 30, 30, 30, 20, 10, 30, 30, 50, 5, 120, 120, 120, 60, 70, 30, 50, 70, 60, 5, 160, 5, 140, 105, 60, 30, 100, 60, 80, 90, 5, 50, 35, 115, 5, 110, 40, 120, 200, 90, 85, 100, 250, 125, 80, 120, 135, 500, 100, 250, 85, 5, 200, 40, 5, 80, 110, 40, 60, 50, 100, 50, 120, 100, 85, 70, 130, 150, 180, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 10, 10, 10, 200, 50, 100, 0, 0]];
Game.sPosition = [[[null, null], [null, null], [150, 0], [320, 0], [200, 0], [150, -50], [250, 0], [300, 0], [100, 0], [240, 0], [400, 50], [270, 150], [235, 0], [335, -50], [65, 0], [175, 0], [110, 0], [135, 0], [235, 0], [105, 0], [200, 0], [300, -50], [320, 0], [240, 0], [105, 0], [200, 0], [100, -50], [200, 0], [200, 0], [200, 0], [200, 0], [200, 0], [135, 0], [235, -50], [65, 0], [175, 0], [240, 0], [135, 0], [335, 0], [105, 0], [240, 0], [320, -50], [205, 0], [255, -50], [125, 0], [205, 500], [310, 0], [75, 500], [245, 0], [115, 500], [310, 500], [200, 0], [150, 0], [150, 0], [150, 0], [150, 0], [300, 0], [300, 0], [300, 0], [300, 0], [310, 0], [200, 0], [100, 0], [100, 0], [300, 0], [300, 0], [200, 0], [320, 0], [320, 0], [80, 0], [80, 0], [200, 0], [50, 50], [350, 100], [100, 400], [350, 200], [150, 50], [300, 450], [70, 430], [350, 300], [50, 150], [350, 400], [300, 0], [300, 0], [70, 20], [200, 0], [200, 0], [360, 20], [60, 30], [365, 40], [70, 10], [200, 0], [260, 0], [260, 0], [120, 50], [120, 50], [240, 50], [350, 0], [60, 50], [330, 20], [60, 10], [200, 0], [160, 0], [50, 500], [350, 500], [0, 50], [400, 0], [160, 0], [240, 500], [100, 500], [300, 500], [200, 0], [310, 0], [120, 0], [240, 0], [300, 0], [250, 0], [140, 50], [200, 0], [100, 0], [200, 0], [200, 0], [200, 0], [350, 0], [300, 0], [300, 0], [280, 0], [140, 0], [140, 0], [100, 0], [300, 0], [200, 0], [0, 0], [400, 0], [400, 0], [65, 0], [280, 0], [0, 0], [0, 0], [400, 0], [335, 0], [300, 0], [50, 0], [350, 0], [100, 0], [300, 0], [150, 0], [250, 0], [75, 0], [325, 0], [125, 0], [275, 0], [200, 0], [300, 0], [100, 0], [250, 0], [150, 0], [275, 0], [125, 0], [100, 0], [300, 0], [200, 0], [70, 0], [310, 0], [130, 0], [260, 0], [160, 0], [100, 0], [205, 0], [325, 0], [105, 0], [245, 0], [120, 0], [250, 0], [100, 0], [250, 0], [110, 0], [275, 0], [105, 0], [160, 0], [310, 0], [220, 0], [70, 0], [150, 0], [100, 0], [250, 0], [300, 0], [275, 0], [105, 0], [160, 0], [200, 150], [220, 0], [50, 180], [350, 180], [200, 110]]];
Game.mScriptSum = Game.sScript[0].length;
};
Game.NextScene = function () {
Game.mScenario++;
var _local1 = Game.mScenarioMax[Game.mStage - 1] - 1;
if (Game.mScenario <= _local1) {
Game.ReadScript(Game.mStage, Game.mScenario);
}
if (Game.mScenario > _local1) {
Game.mScenario = _local1 + 1;
}
};
Game.Timer = function () {
Game.mtime++;
if (Game.mtime > Game.sTimer[Game.mStage - 1][Game.mScenario]) {
Game.NextScene();
Game.mtime = 0;
return(true);
}
return(false);
};
Game.InterfaceExecute = function () {
ui_bat1._mlife._xscale = (Game.sPlayer[0].ob.mLife / Game.sPlayer[0].ob.mLifemax) * 100;
};
Game.CreditInterfaceControl = function () {
var _local3 = Game.sPlayer[0].ob.mCredit;
var _local1 = 0;
while (_local1 != _local3) {
var _local2 = ui_bat1["_mcr" + (_local1 + 1)];
_local2.gotoAndStop(2);
_local1++;
}
_local1 = _local3;
while (_local1 != 4) {
var _local2 = ui_bat1["_mcr" + (_local1 + 1)];
_local2.gotoAndStop(1);
_local1++;
}
};
Game.UltimateInterfaceControl = function () {
var _local3 = Game.sPlayer[0].cSpecial.ob.mSlot;
var gVAR_Length = _local3.length;
var _local1 = 0;
while (_local1 != gVAR_Length) {
var _local2 = _root.ui_bat1["_msk" + (_local1 + 1)];
if (_local3[_local1]) {
_local2._alpha = 100;
_local2.gotoAndStop(_local3[_local1]);
} else {
_local2._alpha = 25;
_local2.gotoAndStop(4);
}
_local1++;
}
};
Game.showGameOverUI = function () {
attachMovie("ui_gameover", "ui_gameover", 60000);
ui_gameover._x = 200;
ui_gameover._y = 150;
};
Game.showCheatEneableUI = function () {
attachMovie("uicheatenable", "uicheatenable", 612000);
uicheatenable._x = 20;
uicheatenable._y = 420;
};
Game.clearGameOverUI = function () {
ui_gameover.removeMovieClip();
};
Game.BurstLatency = function () {
Game.burstt++;
if (Game.burstt > Game.bursttmax) {
Game.burstt = 0;
return(true);
}
return(false);
};
Game.GameOverLatency = function () {
Game.gameovert++;
if (Game.gameovert > Game.gameovertmax) {
Game.gameovert = 0;
return(true);
}
return(false);
};
Game.ClearMonster = function () {
var _local2 = Game.sEnemy.length;
var _local1 = 0;
while (_local1 != _local2) {
Game.sEnemy[_local1][0].cBullet.RemoveAll();
Game.sEnemy[_local1][0].RemoveAll();
Game.sEnemy[_local1][0] = null;
Game.sEnemy[_local1][1] = false;
_local1++;
}
};
Game.ClearPlayer = function () {
Game.sPlayer[0].RemoveAll();
Game.sPlayer.shift();
};
Game.ClearGameBattleUI = function () {
ui_bat1.removeMovieClip();
};
Game.ResetGame = function () {
Game.ClearMonster();
Game.ClearPlayer();
Game.ClearBurst();
Game.ClearItem();
Game.ClearAsteroid();
Game.ClearGameOverUI();
Game.ClearGameBattleUI();
Game.CodeInputHide();
Game.bCodeInput = false;
};
Game.ClearBurst = function () {
var _local2 = Game.sBurst.length;
var _local1 = 0;
while (_local1 != _local2) {
Game.sBurst[0].RemoveClip();
_local1++;
}
};
Game.ClearItem = function () {
var _local2 = Game.sItem.length;
var _local1 = 0;
while (_local1 != _local2) {
Game.sItem[0].RemoveClip();
Game.RemoveItem(0);
_local1++;
}
};
Game.ClearAsteroid = function () {
var _local2 = Game.sAsteroidSum;
var _local1 = 0;
while (_local1 != _local2) {
Game.sAsteroid[_local1].RemoveClip();
_local1++;
}
};
Game.FadeOutGameUI = function () {
ui_bat1._alpha = ui_bat1._alpha - 0.5;
};
Game.CutOutGameUI = function () {
ui_bat1._y = ui_bat1._y + 0.5;
};
Game.GameVictoryLatency = function () {
Game.gamevictoryt++;
if (Game.gamevictoryt >= Game.gamevictorytmax) {
Game.gamevictoryt = Game.gamevictorytmax;
return(true);
}
return(false);
};
Game.FadeInCover = function () {
uicover._alpha = uicover._alpha + 1;
if (uicover._alpha > 100) {
uicover._alpha = 100;
}
};
Game.ClearCover = function () {
uicover.removeMovieClip();
};
Game.FadeInVictory = function () {
if (uivictory._alpha != 100) {
uivictory._alpha = uivictory._alpha + 0.4;
}
if (uivictory._alpha > 100) {
uivictory._alpha = 100;
Game.ResetGame();
}
};
Game.showCover = function () {
attachMovie("uicover", "uicover", 65000);
uicover._x = 0;
uicover._y = 0;
uicover._alpha = 0;
};
Game.showVictory = function () {
attachMovie("uivictory", "uivictory", 66000);
uivictory._x = 200;
uivictory._y = 275;
uivictory._alpha = 0;
};
Game.VictoryInitialAction = function () {
Game.showCover();
Game.showVictory();
};
Game.VictoryAction = function () {
Game.FadeOutGameUI();
Game.CutOutGameUI();
Game.FadeInCover();
Game.FadeInVictory();
};
Game.showPauseUI = function () {
attachMovie("uipause", "uipause", 67000);
uipause._alpha = 50;
};
Game.clearPauseUI = function () {
uipause.removeMovieClip();
};
Game.AddScore = function (args_score) {
Game.mScore = Game.mScore + args_score;
Game.CheckScore();
};
Game.CheckScore = function () {
var gVAR_ScoreNum = Game.mScoreNum;
var _local1 = Game.mScoreNum * 10000;
if (Game.mScore >= _local1) {
Game.AddCredit();
Game.mScoreNum++;
}
ui_bat1._tsc.text = Game.mScore;
};
Game.AddCredit = function () {
Game.sPlayer[0].ob.mCredit++;
if (Game.sPlayer[0].ob.mCredit > 5) {
Game.sPlayer[0].ob.mCredit = 5;
}
Game.CreditInterfaceControl();
sWindow.CreditSound();
};
Game.KeyInput = function () {
if ((Game.bGameStart && (!Game.bGameOver)) && (!Game.bGameWin)) {
if (Key.isDown(80) && (!Game.kPause)) {
if (!Game.bGamePause) {
Game.showPauseUI();
Game.bGamePause = true;
} else {
Game.clearPauseUI();
Game.bGamePause = false;
}
Game.kPause = true;
}
if (!Key.isDown(80)) {
Game.kPause = false;
}
}
};
Game.Execute = function () {
Game.KeyInput();
if (Game.bGameStart && (!Game.bGamePause)) {
Game.Timer();
if (!Game.bGameWin) {
Game.sPlayer[0].Execute();
}
var _local1 = 0;
while (_local1 != Game.sEnemySum) {
if (Game.sEnemy[_local1][1]) {
Game.sEnemy[_local1][0].Execute(1);
} else {
Game.sEnemy[_local1][0].Execute(2);
}
_local1++;
}
Game.CheckBoss();
var gVAR_ItemLength = Game.sItem.length;
_local1 = 0;
while (_local1 != gVAR_ItemLength) {
Game.sItem[_local1].Execute();
_local1++;
}
var _local3 = Game.sAsteroidSum;
_local1 = 0;
while (_local1 != _local3) {
Game.sAsteroid[_local1].Execute();
_local1++;
}
var _local2 = Game.sBurst.length;
_local1 = 0;
while (_local1 != _local2) {
Game.sBurst[_local1].Execute();
_local1++;
}
if ((Game.bGameStart && (Game.bGameOver)) && (!Game.bGameWin)) {
if (Game.GameOverLatency()) {
Game.ResetGame();
Game.bGameStart = false;
Option();
sWindow.Music.Battling.setVolume(100);
sWindow.Music.Battling.stop(["battle"]);
sWindow.OpeningSound();
Game.ClearCover();
} else {
if (Game.BurstLatency()) {
Game.LoadBurst((random(200) - random(200)) + 100, (random(200) - random(200)) + 200);
}
Game.FadeOutGameUI();
Game.CutOutGameUI();
sWindow.Music.Battling.stop(["battle"]);
Game.FadeInCover();
}
}
if (Game.bGameWin) {
if (Game.GameVictoryLatency()) {
Game.bGameOver = false;
Game.bGamePause = false;
Game.VictoryAction();
}
sWindow.Music.Battling.stop(["battle"]);
sWindow.Music.Victory.onSoundComplete = function () {
sWindow.VictorySound();
};
}
Game.InterfaceExecute();
}
if ((!Game.bGameWin) && (Game.bGameStart)) {
sWindow.Music.Battling.onSoundComplete = function () {
sWindow.BattleSound();
};
}
};
Option = function () {
Option.bLoad = false;
Option.tLoad = 0;
Option.tLoadMax = 120;
var _local1 = _quality;
if (_local1 == "LOW") {
Option.mQuality = 1;
}
if (_local1 == "MEDIUM") {
Option.mQuality = 2;
}
if (_local1 == "HIGH") {
Option.mQuality = 3;
}
Option.mLives = 2;
Option.MainVSound = 100;
Option.showMainInterface();
Option.GraphicUIDisplay();
Option.LivesUIDisplay();
};
Option.showMainInterface = function () {
attachMovie("uimainentrance", "uimainentrance", 1);
uimainentrance._x = 200;
uimainentrance._y = 220;
uimainentrance._alpha = 0;
attachMovie("uimainoption", "uimainoption", 2);
uimainoption._x = 200;
uimainoption._y = 420;
uimainoption._alpha = 0;
};
Option.showOption = function () {
uimainoption.gotoAndStop("option");
Option.GraphicUIDisplay();
Option.LivesUIDisplay();
};
Option.showInstruction = function () {
uimainoption.gotoAndStop("instruction");
};
Option.showCredit = function () {
uimainoption.gotoAndStop("credit");
};
Option.startGame = function () {
Option.clearOption();
Option.showLoading();
};
Option.GraphicToggle = function () {
Option.mQuality++;
if (Option.mQuality > 3) {
Option.mQuality = 1;
}
switch (Option.mQuality) {
case 1 :
_quality = "LOW";
break;
case 2 :
_quality = "MEDIUM";
break;
case 3 :
_quality = "HIGH";
break;
}
Option.GraphicUIDisplay();
};
Option.GraphicUIDisplay = function () {
uimainoption._mq.gotoAndStop(Option.mQuality);
uipause._mq.gotoAndStop(Option.mQuality);
};
Option.LivesToggle = function () {
Option.mLives++;
if (Option.mLives > 4) {
Option.mLives = 1;
}
Option.LivesUIDisplay();
};
Option.LivesUIDisplay = function () {
uimainoption._ml.gotoAndStop(Option.mLives);
};
Option.OnExit = function () {
uimainoption.gotoAndStop("main");
};
Option.FadeOutInterface = function () {
uimainentrance._alpha = uimainentrance._alpha - 1.5;
uiload._alpha = uiload._alpha + 2;
if (uimainentrance._alpha < 0) {
uimainentrance._alpha = 0;
}
if (uiload._alpha > 100) {
uiload._alpha = 100;
}
};
Option.FadeInInterface = function () {
uimainentrance._alpha = uimainentrance._alpha + 1;
uimainoption._alpha = uimainoption._alpha + 1;
if (uimainentrance._alpha > 100) {
uimainentrance._alpha = 100;
}
if (uimainoption._alpha > 100) {
uimainoption._alpha = 100;
}
};
Option.clearOption = function () {
uimainoption.removeMovieClip();
};
Option.clearInterface = function () {
uimainentrance.removeMovieClip();
};
Option.showLoading = function () {
attachMovie("uiload", "uiload", 3);
uiload._x = 200;
uiload._y = 400;
uiload._alpha = 0;
Option.bLoad = true;
sWindow.AlterLoadingSound();
};
Option.clearLoading = function () {
uiload.removeMovieClip();
};
Option.LoadTimer = function () {
Option.tLoad++;
if (Option.tLoad > Option.tLoadMax) {
Option.tLoad = 0;
Option.bLoad = false;
Option.clearInterface();
Option.clearLoading();
return(true);
}
Option.FadeOutInterface();
return(false);
};
Option.Execute = function () {
if (Option.bLoad) {
var _local1 = Option.LoadTimer();
if (_local1) {
Game();
sWindow.BattleSound();
}
}
if (!Option.bLoad) {
Option.FadeInInterface();
Option.MainVSound = 100;
sWindow.Music.Opening.setVolume(Option.MainVSound);
sWindow.Music.Opening.onSoundComplete = function () {
sWindow.OpeningSound();
};
} else {
Option.MainVSound--;
sWindow.Music.Opening.setVolume(Option.MainVSound);
if (Option.MainVSound < 0) {
sWindow.Music.Opening.stop(["Opening"]);
Option.MainVSound = 0;
}
}
};
sWindow = function () {
sWindow.Music = new Object();
sWindow.Music.Opening = new Sound();
sWindow.Music.Opening.attachSound("Opening");
sWindow.Music.Opening.setVolume(100);
sWindow.Music.Battling = new Sound();
sWindow.Music.Battling.attachSound("battle");
sWindow.Music.Battling.setVolume(100);
sWindow.Music.AlterInterface = new Sound();
sWindow.Music.AlterInterface.attachSound("ui01");
sWindow.Mysic.AlterInterface.setVolume(100);
sWindow.Music.AlterLoading = new Sound();
sWindow.Music.AlterLoading.attachSound("ui02");
sWindow.Mysic.AlterLoading.setVolume(100);
sWindow.Music.Burst = new Sound();
sWindow.Music.Burst.attachSound("sburst");
sWindow.Music.Burst.setVolume(100);
sWindow.Music.Ready = new Sound();
sWindow.Music.Ready.attachSound("ready");
sWindow.Music.Ready.setVolume(100);
sWindow.Music.Bul01 = new Sound();
sWindow.Music.Bul01.attachSound("bu01");
sWindow.Music.Bul01.setVolume(100);
sWindow.Music.Click = new Sound();
sWindow.Music.Click.attachSound("click");
sWindow.Music.Click.setVolume(100);
sWindow.Music.Ulti01 = new Sound();
sWindow.Music.Ulti01.attachSound("ulti01");
sWindow.Music.Ulti01.setVolume(100);
sWindow.Music.Ulti02 = new Sound();
sWindow.Music.Ulti02.attachSound("ulti02");
sWindow.Music.Ulti02.setVolume(100);
sWindow.Music.Ulti03 = new Sound();
sWindow.Music.Ulti03.attachSound("ulti03");
sWindow.Music.Ulti03.setVolume(100);
sWindow.Music.AcceDecce = new Sound();
sWindow.Music.AcceDecce.attachSound("AcceDecce");
sWindow.Music.AcceDecce.setVolume(100);
sWindow.Music.Credit = new Sound();
sWindow.Music.Credit.attachSound("credit");
sWindow.Music.Credit.setVolume(100);
sWindow.Music.Hurt = new Sound();
sWindow.Music.Hurt.attachSound("hurt");
sWindow.Music.Hurt.setVolume(100);
sWindow.Music.Item01 = new Sound();
sWindow.Music.Item01.attachSound("it01");
sWindow.Music.Item01.setVolume(100);
sWindow.Music.Item02 = new Sound();
sWindow.Music.Item02.attachSound("it02");
sWindow.Music.Item02.setVolume(100);
sWindow.Music.Item03 = new Sound();
sWindow.Music.Item03.attachSound("it03");
sWindow.Music.Item03.setVolume(100);
sWindow.Music.Light = new Sound();
sWindow.Music.Light.attachSound("light");
sWindow.Music.Light.setVolume(100);
sWindow.Music.MBul01 = new Sound();
sWindow.Music.MBul01.attachSound("mbu01");
sWindow.Music.MBul01.setVolume(100);
sWindow.Music.Cheatenable = new Sound();
sWindow.Music.Cheatenable.attachSound("cheatenable");
sWindow.Music.Cheatenable.setVolume(100);
sWindow.Music.BossOpening = new Sound();
sWindow.Music.BossOpening.attachSound("bossopening");
sWindow.Music.BossOpening.setVolume(100);
sWindow.Music.Curse01 = new Sound();
sWindow.Music.Curse01.attachSound("curse01");
sWindow.Music.Curse01.setVolume(100);
sWindow.Music.Curse02 = new Sound();
sWindow.Music.Curse02.attachSound("curse02");
sWindow.Music.Curse02.setVolume(100);
sWindow.Music.Victory = new Sound();
sWindow.Music.Victory.attachSound("win");
sWindow.Music.Victory.setVolume(100);
sWindow.OpeningSound();
};
sWindow.OpeningSound = function () {
sWindow.Music.Opening.start();
};
sWindow.BattleSound = function () {
sWindow.Music.Battling.start();
};
sWindow.ReadySound = function () {
sWindow.Music.Ready.start();
};
sWindow.ClickSound = function () {
sWindow.Music.Click.start();
};
sWindow.AlterLoadingSound = function () {
sWindow.Music.AlterLoading.start();
};
sWindow.AlterInterfaceSound = function () {
sWindow.Music.AlterInterface.start();
};
sWindow.PlayerHitSound = function () {
sWindow.Music.Bul01.start();
};
sWindow.PlayerUltimaSound = function (args_num) {
switch (args_num) {
case 1 :
sWindow.Music.Ulti01.start();
return;
case 2 :
sWindow.Music.Ulti02.start();
return;
case 3 :
sWindow.Music.Ulti03.start();
return;
}
};
sWindow.MonsterHitSound = function () {
sWindow.Music.MBul01.start();
};
sWindow.BossOpeningSound = function () {
sWindow.Music.BossOpening.start();
};
sWindow.CheatEnableSound = function () {
sWindow.Music.Cheatenable.start();
};
sWindow.ItemSound = function (args_num) {
switch (args_num) {
case 1 :
sWindow.Music.Item01.start();
return;
case 2 :
sWindow.Music.Item02.start();
return;
case 3 :
sWindow.Music.Item03.start();
return;
}
};
sWindow.CurseSound = function () {
var _local1 = random(2) + 1;
switch (_local1) {
case 1 :
sWindow.Music.Curse01.start();
return;
case 2 :
sWindow.Music.Curse02.start();
}
};
sWindow.BurstSound = function () {
sWindow.Music.Burst.start();
};
sWindow.HurtSound = function () {
sWindow.Music.Hurt.start();
};
sWindow.MainInterfaceLightSound = function () {
sWindow.Music.Light.start();
};
sWindow.VictorySound = function () {
sWindow.Music.Victory.start();
};
sWindow.AcceDecceSound = function () {
sWindow.Music.AcceDecce.start();
};
sWindow.CreditSound = function () {
sWindow.Music.Credit.start();
};
sWindow.StopAllSound = function () {
sWindow.Music.Opening.stop(["Opening"]);
sWindow.Music.AlterInterface.stop(["ui01"]);
sWindow.Music.AlterLoading.stop(["ui02"]);
sWindow.Music.Burst.stop(["sburst"]);
sWindow.Music.Ready.stop(["ready"]);
sWindow.Music.Bul01.stop(["bu01"]);
sWindow.Music.Click.stop(["click"]);
sWindow.Music.Ulti01.stop(["ui01"]);
sWindow.Music.Ulti02.stop(["ui02"]);
sWindow.Music.Ulti03.stop(["ui03"]);
sWindow.Music.AcceDecce.stop(["AcceDecce"]);
sWindow.Music.Credit.stop(["credit"]);
sWindow.Music.Hurt.stop(["hurt"]);
sWindow.Music.Item01.stop(["it01"]);
sWindow.Music.Item02.stop(["it02"]);
sWindow.Music.Item03.stop(["it03"]);
sWindow.Music.Light.stop(["light"]);
sWindow.Music.MBul01.stop(["mbu01"]);
sWindow.Music.Cheatenable.stop(["cheatenable"]);
sWindow.Music.BossOpening.stop(["bossopening"]);
sWindow.Music.Curse01.stop(["curse01"]);
sWindow.Music.Curse02.stop(["curse02"]);
};
Option();
sWindow();
onEnterFrame = function () {
Option.Execute();
Game.Execute();
};
Symbol 26 MovieClip [Burst] Frame 1
_rotation = random(360);
Symbol 34 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 50 MovieClip [ship] Frame 1
stop();
Symbol 58 MovieClip [enemy_t02] Frame 1
onEnterFrame = function () {
if (_root.Game.bGamePause) {
this.stop();
} else {
this.play();
}
};
Symbol 82 MovieClip [enemy_i03] Frame 1
onEnterFrame = function () {
if (_root.Game.bGamePause) {
this.stop();
} else {
this.play();
}
};
Symbol 84 MovieClip [enemy_i02] Frame 1
onEnterFrame = function () {
_rotation = (_rotation + 5);
};
Symbol 94 MovieClip [enemy_i01] Frame 1
onEnterFrame = function () {
if (_root.Game.bGamePause) {
this.stop();
} else {
this.play();
}
};
Symbol 103 MovieClip [enemy_t07] Frame 1
stop();
Symbol 105 MovieClip [enemy_t04] Frame 1
stop();
Symbol 116 MovieClip [enemy_t20] Frame 1
onEnterFrame = function () {
if (_root.Game.bGamePause) {
this.stop();
} else {
this.play();
}
};
Symbol 140 MovieClip [enemy_t03] Frame 1
onEnterFrame = function () {
if (_root.Game.bGamePause) {
this.stop();
} else {
this.play();
}
};
Symbol 144 MovieClip [enemy_t01] Frame 1
onEnterFrame = function () {
if (_root.Game.bGamePause) {
this.stop();
} else {
this.play();
}
};
Symbol 146 MovieClip [m_bullet1] Frame 1
stop();
Symbol 153 MovieClip [m_bullet3] Frame 1
if (_root.Game.bGameWin) {
stop();
}
Symbol 155 MovieClip Frame 1
onEnterFrame = function () {
if (_root.Game.bGamePause) {
this.stop();
} else {
this.play();
}
};
Symbol 159 MovieClip [e_bullet4] Frame 1
gotoAndStop(random(4) + 1);
Symbol 161 MovieClip [e_bullet3] Frame 1
Symbol 168 MovieClip [e_bullet1] Frame 1
onEnterFrame = function () {
if (_root.Game.bGamePause) {
this.stop();
} else {
this.play();
}
};
Symbol 199 MovieClip [SpecialWpn2] Frame 2
_root.sWindow.PlayerUltimaSound(2);
Symbol 199 MovieClip [SpecialWpn2] Frame 11
_root.sWindow.PlayerUltimaSound(2);
Symbol 199 MovieClip [SpecialWpn2] Frame 23
_root.sWindow.PlayerUltimaSound(2);
Symbol 199 MovieClip [SpecialWpn2] Frame 35
_root.sWindow.PlayerUltimaSound(2);
Symbol 199 MovieClip [SpecialWpn2] Frame 47
_root.sWindow.PlayerUltimaSound(2);
Symbol 199 MovieClip [SpecialWpn2] Frame 59
_root.sWindow.PlayerUltimaSound(2);
Symbol 199 MovieClip [SpecialWpn2] Frame 71
_root.sWindow.PlayerUltimaSound(2);
Symbol 199 MovieClip [SpecialWpn2] Frame 83
_root.sWindow.PlayerUltimaSound(2);
Symbol 200 MovieClip [ShadowWpn2] Frame 7
stop();
Symbol 207 MovieClip [enemy_t18] Frame 1
onEnterFrame = function () {
if (_root.Game.bGamePause) {
this.stop();
} else {
this.play();
}
};
Symbol 210 MovieClip [enemy_t17] Frame 1
onEnterFrame = function () {
if (_root.Game.bGamePause) {
this.stop();
} else {
this.play();
}
};
Symbol 213 MovieClip [enemy_t16] Frame 1
onEnterFrame = function () {
if (_root.Game.bGamePause) {
this.stop();
} else {
this.play();
}
};
Symbol 216 MovieClip [enemy_t15] Frame 1
onEnterFrame = function () {
if (_root.Game.bGamePause) {
this.stop();
} else {
this.play();
}
};
Symbol 219 MovieClip [enemy_t14] Frame 1
onEnterFrame = function () {
if (_root.Game.bGamePause) {
this.stop();
} else {
this.play();
}
};
Symbol 222 MovieClip [enemy_t13] Frame 1
onEnterFrame = function () {
if (_root.Game.bGamePause) {
this.stop();
} else {
this.play();
}
};
Symbol 248 MovieClip [enemy_t11] Frame 1
onEnterFrame = function () {
if (_root.Game.bGamePause) {
this.stop();
} else {
this.play();
}
};
Symbol 257 MovieClip [enemy_t10] Frame 1
onEnterFrame = function () {
if (_root.Game.bGamePause) {
this.stop();
} else {
this.play();
}
};
Symbol 263 MovieClip [smoke] Frame 1
stop();
gotoAndStop(random(5) + 1);
Symbol 269 MovieClip [ui_wrn1] Frame 150
this.removeMovieClip();
Symbol 273 MovieClip [ui_rdy1] Frame 50
_root.sWindow.ReadySound();
Symbol 273 MovieClip [ui_rdy1] Frame 113
this.removeMovieClip();
Symbol 283 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 1
stop();
Symbol 307 MovieClip [enemy_t25] Frame 1
stop();
Symbol 314 MovieClip [enemy_t24] Frame 1
stop();
Symbol 323 MovieClip [enemy_t23] Frame 1
stop();
Symbol 330 MovieClip Frame 1
Symbol 335 MovieClip [uimainentrance] Frame 60
_root.sWindow.MainInterfaceLightSound();
Symbol 340 Button
on (press) {
_root.sWindow.AlterInterfaceSound();
_root.Option.startGame();
}
Symbol 343 Button
on (press) {
_root.Option.showOption();
_root.sWindow.AlterInterfaceSound();
}
Symbol 346 Button
on (press) {
_root.Option.showCredit();
_root.sWindow.AlterInterfaceSound();
}
Symbol 349 Button
on (press) {
_root.Option.showInstruction();
_root.sWindow.AlterInterfaceSound();
}
Symbol 352 Button
on (press) {
_root.Option.GraphicToggle();
_root.sWindow.ClickSound();
}
Symbol 355 Button
on (press) {
_root.Option.LivesToggle();
_root.sWindow.ClickSound();
}
Symbol 358 Button
on (press) {
_root.Option.OnExit();
_root.sWindow.ClickSound();
}
Symbol 362 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 1
stop();
Symbol 370 Button
on (press) {
_root.sWindow.ClickSound();
_root.Option.OnExit();
}
Symbol 371 MovieClip Frame 450
stop();
Symbol 373 MovieClip [uimainoption] Frame 1
stop();
Symbol 385 MovieClip [an_bss1] Frame 1
_root.sWindow.BossOpeningSound();
Symbol 385 MovieClip [an_bss1] Frame 20
this.removeMovieClip();
Symbol 387 Button
on (press) {
_root.Option.GraphicToggle();
_root.Window.ClickSound();
}
Symbol 391 MovieClip [uicheatenable] Frame 29
this.removeMovieClip();