Frame 1
this.stop();
Frame 5
this.stop();
Frame 10
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
_quality = "LOW";
this.clearFlg = false;
Frame 14
this.stageNum = 1;
this.LastPlayerNum = 8;
this.hardFlg = false;
this.stop();
Frame 20
_root.lifeMC.gotoAndStop(_root.lastPlayerNum + 10);
this.stop();
Instance of Symbol 245 MovieClip "playerMC" in Frame 20
onClipEvent (mouseDown) {
if (this.autoSHotFlg) {
this.autoShotFlg = false;
} else {
this.autoShotFlg = true;
}
}
Instance of Symbol 260 MovieClip in Frame 20
//component parameters
onClipEvent (initialize) {
graFlg = false;
baseFps = 30;
}
Frame 30
this.fcolorList = new Object();
this.fcolorList.ra = 0;
this.fcolorList.ga = 0;
this.fcolorList.ba = 0;
this.fcolorList.rb = 255;
this.fcolorList.gb = 255;
this.fcolorList.bb = 255;
this.fcolorList.aa = 100;
this.fcolorList.ab = 0;
this.ncolorList = new Object();
this.ncolorList.ra = 100;
this.ncolorList.ga = 100;
this.ncolorList.ba = 100;
this.ncolorList.rb = 0;
this.ncolorList.gb = 0;
this.ncolorList.bb = 0;
this.ncolorList.aa = 100;
this.ncolorList.ab = 0;
idName = "EntryManagerSt" + String(this.stageNum);
newName = "manageMC";
depth = 1;
this.attachMovie(idName, newName, depth);
this.stageBGM = new Sound(this);
var bgmName = "";
switch (this.stageNum) {
case 1 :
bgmName = "bit163-2";
break;
case 2 :
bgmName = "bit196-2";
break;
case 3 :
bgmName = "bit163-2";
}
this.stageBGM.attachSound(bgmName);
this.stageBGM.start(0, 10000);
Frame 32
this.stop();
Frame 40
this.attachMovie("stageClear", "stageClearMC", 1000000);
this.stageClearMC._x = 275;
this.stageClearMC._y = 200;
this.manageMC.removeMovieClip();
this.stop();
Frame 50
this.attachMovie("gameover", "gameoverMC", 1000000);
this.gameoverMC._x = 275;
this.gameoverMC._y = 200;
this.manageMC.stop();
this.stageBGM.stop();
this.stop();
Frame 60
this.attachMovie("ending", "endingMC", 1000000);
this.endingMC._x = 275;
this.endingMC._y = 200;
this.clearFlg = true;
this.stop();
Symbol 24 MovieClip [number] Frame 1
this.stop();
Symbol 24 MovieClip [number] Frame 2
this.stop();
Symbol 24 MovieClip [number] Frame 3
this.stop();
Symbol 24 MovieClip [number] Frame 4
this.stop();
Symbol 24 MovieClip [number] Frame 5
this.stop();
Symbol 24 MovieClip [number] Frame 6
this.stop();
Symbol 24 MovieClip [number] Frame 7
this.stop();
Symbol 24 MovieClip [number] Frame 8
this.stop();
Symbol 24 MovieClip [number] Frame 9
this.stop();
Symbol 24 MovieClip [number] Frame 10
this.stop();
Symbol 26 MovieClip [playerTAMA] Frame 1
function entry(npx, npy, ndx, ndy) {
this.px = npx;
this.py = npy;
this.dx = ndx;
this.dy = ndy;
this._visible = true;
this.entryFlg = true;
}
function unEntry() {
this._x = 0;
this._y = -1000;
this.px = 0;
this.py = -1000;
this._visible = false;
this.entryFlg = false;
}
function main() {
this.hitCheck();
this.px = this.px + this.dx;
this.py = this.py + this.dy;
if (this.py < 0) {
this.unEntry();
}
}
function hitCheck() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (_parent.manageMC.enemyEntryList[i].hitTest(this)) {
_parent.manageMC.enemyEntryList[i].hit(i);
this.unEntry();
}
i++;
}
}
this.entryFlg = false;
Symbol 26 MovieClip [playerTAMA] Frame 3
if (this.entryFlg) {
this.main();
}
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 29 MovieClip Frame 1
_parent.entryEnemy("enemy2", this._x, this._y);
Symbol 31 MovieClip Frame 1
_parent.entryEnemy("enemy9", this._x, this._y);
Symbol 33 MovieClip Frame 1
_parent.entryEnemy("enemy10", this._x, this._y);
Symbol 35 MovieClip Frame 1
_parent.entryEnemy("enemy1", this._x, this._y);
Symbol 36 MovieClip [EntryManagerSt3] Frame 1
function entryEnemy(enemyName, nx, ny, ndataList) {
var name = ("e" + String(this.enemyNum));
_parent.attachMovie(enemyName, name, this.enemyDepth);
_parent[name]._x = nx;
_parent[name]._y = ny;
if (ndataList != null) {
_parent[name].initDataList = ndataList;
}
this.enemyNum++;
this.enemyDepth++;
return(_parent[name]);
}
function entryEnemyTama(tamaName, nx, ny, ndataList) {
var name = ("et" + String(this.enemyTamaNum));
_parent.attachMovie(tamaName, name, this.enemyTamaDepth);
_parent[name]._x = nx;
_parent[name]._y = ny;
if (ndataList != null) {
_parent[name].initDataList = ndataList;
}
this.enemyTamaNum++;
this.enemyTamaDepth++;
}
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
this._name = "manageMC";
this.enemydepth = 10000;
this.enemyNum = 0;
this.enemyEntryList = [];
this.enemyTamaDepth = 200000 /* 0x030D40 */;
this.enemyTamaNum = 0;
this._visible = false;
Symbol 36 MovieClip [EntryManagerSt3] Frame 5
_root.nomissFlg = true;
Symbol 36 MovieClip [EntryManagerSt3] Frame 890
_root.bgMC.stopScr();
_root.bg2MC.stopScr();
Symbol 36 MovieClip [EntryManagerSt3] Frame 900
this.entryEnemy("boss2", 275, -100);
this.stop();
Symbol 36 MovieClip [EntryManagerSt3] Frame 910
this.stop();
Symbol 38 MovieClip Frame 1
_parent.entryEnemy("enemy7", this._x, this._y);
Symbol 40 MovieClip Frame 1
_parent.entryEnemy("enemy8", this._x, this._y);
Symbol 41 MovieClip [EntryManagerSt2] Frame 1
function entryEnemy(enemyName, nx, ny, ndataList) {
var name = ("e" + String(this.enemyNum));
_parent.attachMovie(enemyName, name, this.enemyDepth);
_parent[name]._x = nx;
_parent[name]._y = ny;
if (ndataList != null) {
_parent[name].initDataList = ndataList;
}
this.enemyNum++;
this.enemyDepth++;
return(_parent[name]);
}
function entryEnemyTama(tamaName, nx, ny, ndataList) {
var name = ("et" + String(this.enemyTamaNum));
_parent.attachMovie(tamaName, name, this.enemyTamaDepth);
_parent[name]._x = nx;
_parent[name]._y = ny;
if (ndataList != null) {
_parent[name].initDataList = ndataList;
}
this.enemyTamaNum++;
this.enemyTamaDepth++;
}
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
this._name = "manageMC";
this.enemydepth = 10000;
this.enemyNum = 0;
this.enemyEntryList = [];
this.enemyTamaDepth = 200000 /* 0x030D40 */;
this.enemyTamaNum = 0;
this._visible = false;
Symbol 41 MovieClip [EntryManagerSt2] Frame 5
_root.nomissFlg = true;
Symbol 41 MovieClip [EntryManagerSt2] Frame 890
_root.bgMC.stopScr();
_root.bg2MC.stopScr();
Symbol 41 MovieClip [EntryManagerSt2] Frame 900
this.entryEnemy("boss3", 275, -100);
this.stop();
Symbol 41 MovieClip [EntryManagerSt2] Frame 910
this.stop();
Symbol 43 MovieClip Frame 1
_parent.entryEnemy("enemy3", this._x, this._y);
Symbol 45 MovieClip Frame 1
_parent.entryEnemy("enemy4", this._x, this._y);
Symbol 46 MovieClip [EntryManagerSt1] Frame 1
function entryEnemy(enemyName, nx, ny, ndataList) {
var name = ("e" + String(this.enemyNum));
_parent.attachMovie(enemyName, name, this.enemyDepth);
_parent[name]._x = nx;
_parent[name]._y = ny;
if (ndataList != null) {
_parent[name].initDataList = ndataList;
}
this.enemyNum++;
this.enemyDepth++;
return(_parent[name]);
}
function entryEnemyTama(tamaName, nx, ny, ndataList) {
var name = ("et" + String(this.enemyTamaNum));
_parent.attachMovie(tamaName, name, this.enemyTamaDepth);
_parent[name]._x = nx;
_parent[name]._y = ny;
if (ndataList != null) {
_parent[name].initDataList = ndataList;
}
this.enemyTamaNum++;
this.enemyTamaDepth++;
}
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
this._name = "manageMC";
this.enemydepth = 10000;
this.enemyNum = 0;
this.enemyEntryList = [];
this.enemyTamaDepth = 200000 /* 0x030D40 */;
this.enemyTamaNum = 0;
this._visible = false;
Symbol 46 MovieClip [EntryManagerSt1] Frame 5
_root.nomissFlg = true;
Symbol 46 MovieClip [EntryManagerSt1] Frame 651
i = 0;
while (i < 2) {
rx = this.randomInt(550);
ry = this.randomInt(400);
this.entryEnemy("enemy2", rx, ry);
i++;
}
Symbol 46 MovieClip [EntryManagerSt1] Frame 681
i = 0;
while (i < 2) {
rx = this.randomInt(550);
ry = this.randomInt(400);
this.entryEnemy("enemy2", rx, ry);
i++;
}
Symbol 46 MovieClip [EntryManagerSt1] Frame 711
i = 0;
while (i < 4) {
rx = this.randomInt(550);
ry = this.randomInt(400);
this.entryEnemy("enemy2", rx, ry);
i++;
}
Symbol 46 MovieClip [EntryManagerSt1] Frame 736
i = 0;
while (i < 6) {
rx = this.randomInt(500);
ry = this.randomInt(400);
this.entryEnemy("enemy2", rx, ry);
i++;
}
Symbol 46 MovieClip [EntryManagerSt1] Frame 760
i = 0;
while (i < 8) {
rx = this.randomInt(500);
ry = this.randomInt(400);
this.entryEnemy("enemy2", rx, ry);
i++;
}
Symbol 46 MovieClip [EntryManagerSt1] Frame 890
_root.bgMC.stopScr();
_root.bg2MC.stopScr();
Symbol 46 MovieClip [EntryManagerSt1] Frame 900
this.entryEnemy("boss1", 300, 0);
this.stop();
Symbol 46 MovieClip [EntryManagerSt1] Frame 910
this.stop();
Symbol 55 MovieClip Frame 1
if (_root.hardFlg) {
var dx = (_root.playerMC._x - _parent._parent._x);
var dy = (_root.playerMC._y - _parent._parent._y);
var r = Math.atan2(dy, dx);
var k = (r / (Math.PI/180));
var ndx = (Math.cos((k * Math.PI) / 180) * 10);
var ndy = (Math.sin((k * Math.PI) / 180) * 10);
ndata = [ndx, ndy];
_root.manageMC.entryEnemyTama("Tama_std", _parent._parent._x, _parent._parent._y, ndata);
}
Symbol 55 MovieClip Frame 9
if (_root.hardFlg) {
var dx = (_root.playerMC._x - _parent._parent._x);
var dy = (_root.playerMC._y - _parent._parent._y);
var r = Math.atan2(dy, dx);
var k = (r / (Math.PI/180));
var ndx = (Math.cos((k * Math.PI) / 180) * 10);
var ndy = (Math.sin((k * Math.PI) / 180) * 10);
ndata = [ndx, ndy];
_root.manageMC.entryEnemyTama("Tama_std", _parent._parent._x, _parent._parent._y, ndata);
}
Symbol 55 MovieClip Frame 11
this.stop();
Symbol 56 MovieClip Frame 1
this.stop();
Symbol 56 MovieClip Frame 40
_parent.removeMovieClip();
Symbol 57 MovieClip [boss2] Frame 1
function main() {
switch (this.algNum) {
case 1 :
this.alg1();
break;
case 2 :
this.alg2();
break;
case 3 :
this.alg3();
break;
case 4 :
this.alg4();
break;
case 5 :
this.alg5();
break;
case 6 :
this.alg6();
break;
case 7 :
this.alg7();
break;
case 8 :
this.alg8();
break;
case 9 :
this.alg9();
break;
case 10 :
this.alg10();
break;
case 11 :
this.alg11();
break;
case 12 :
this.alg12();
break;
case 13 :
this.alg13();
break;
case 14 :
this.alg14();
}
if (this.flashCnt > 0) {
this.theColor.setTransform(_root.ncolorList);
this.flashCnt = 0;
}
if (this.algNum != 0) {
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
}
function alg1() {
initData = [this, 2, 2];
var childThis = _parent.manageMC.entryEnemy("boss2Fu", 0, 1000, initData);
this.childThisList.push(childThis);
initData = [this, 1, 2];
var childThis = _parent.manageMC.entryEnemy("boss2Fu", 0, 1000, initData);
this.childThisList.push(childThis);
initData = [this, 0, 2];
var childThis = _parent.manageMC.entryEnemy("boss2Fu", 0, 1000, initData);
this.childThisList.push(childThis);
initData = [this, 2, 1];
var childThis = _parent.manageMC.entryEnemy("boss2Kin", 0, 1000, initData);
this.childThisList.push(childThis);
initData = [this, 1, 1];
var childThis = _parent.manageMC.entryEnemy("boss2Gin", 0, 1000, initData);
this.childThisList.push(childThis);
initData = [this, 0, 1];
var childThis = _parent.manageMC.entryEnemy("boss2Ko", 0, 1000, initData);
this.childThisList.push(childThis);
initData = [this, 2, 0];
var childThis = _parent.manageMC.entryEnemy("boss2Kin", 0, 1000, initData);
this.childThisList.push(childThis);
initData = [this, 1, 0];
var childThis = _parent.manageMC.entryEnemy("boss2Kei", 0, 1000, initData);
this.childThisList.push(childThis);
this.algNum = 2;
}
function alg2() {
this.ady++;
this.px = this.px + this.adx;
this.py = this.py + this.ady;
if (this.py > 300) {
this.algNum = 3;
this.ady = -26;
}
}
function alg3() {
this.ady++;
this.py = this.py + this.ady;
if (this.ady == 8) {
this.algNum = 4;
}
}
function alg4() {
if (this.dCnt >= 10) {
this.dCnt = 0;
this.algNum = 5;
}
this.dCnt++;
}
function alg5() {
this.px = this.px - ((this.px - 550) / 10);
if (_root.hardFlg) {
var ndx = (_root.randomInt(20) - 10);
var ndy = (_root.randomInt(10) + 10);
ndata = [ndx, ndy, this.pAngle];
_parent.manageMC.entryEnemyTama("Tama_std", this.px, this.py, ndata);
}
if (this.px > 500) {
this.SEanaguma.start();
this.px = 500;
this.algNum = 6;
this.dCnt = 0;
i = 0;
while (i < this.childThisList.length) {
this.childThisList[i].entry(this._x, this._y);
i++;
}
}
}
function alg6() {
if (this.dCnt >= 200) {
i = 0;
while (i < this.childThisList.length) {
this.childThisList[i].anagumaOff(this._x, this._y);
i++;
}
this.algNum = 7;
this.lifeCheck();
}
this.dCnt++;
}
function alg7() {
this.px = this.px - ((this.px - 0) / 10);
if (_root.hardFlg) {
var ndx = (_root.randomInt(20) - 10);
var ndy = (_root.randomInt(10) + 10);
ndata = [ndx, ndy, this.pAngle];
_parent.manageMC.entryEnemyTama("Tama_std", this.px, this.py, ndata);
}
if (this.px < 50) {
this.SEanaguma.start();
this.px = 50;
this.algNum = 8;
this.dCnt = 0;
i = 0;
while (i < this.childThisList.length) {
this.childThisList[i].entry(this._x, this._y);
i++;
}
}
}
function alg8() {
if (this.dCnt >= 200) {
i = 0;
while (i < this.childThisList.length) {
this.childThisList[i].anagumaOff(this._x, this._y);
i++;
}
this.algNum = 5;
this.lifeCheck();
}
this.dCnt++;
}
function alg9() {
var d = (275 - this.px);
this.px = this.px + (d / 10);
this.py = this.py - this.ady;
this.ady++;
if (this.ady > 20) {
this.ady = 0;
_root.bgMC.startScr();
_root.bg2MC.startScr();
_root.bgMC.setScrSpeed(1);
_root.bg2MC.setScrSpeed(1);
this.scrSpeed = 1;
this.algNum = 10;
this.life = 80;
}
this.dCnt++;
}
function alg10() {
_root.bgMC.setScrSpeed(this.scrSpeed);
_root.bg2MC.setScrSpeed(this.scrSpeed);
this.scrSpeed = this.scrSpeed + 0.5;
if (scrSpeed > 20) {
this.algNum = 11;
this.bossBGM.stop();
this.bossBGM.attachSound("bit147-1");
this.bossBGM.start(0, 10000);
}
}
function alg11() {
var d = (_parent.playerMC._x - this.px);
var d2 = (80 - this.py);
this.px = this.px + (d / 20);
this.py = this.py + (d2 / 10);
if (Math.abs(d2) < 1) {
this.dCnt = 0;
this.algNum = 12;
}
this.dCnt++;
}
function alg12() {
ndata = [5, 5];
_parent.manageMC.entryEnemyTama("Tama_gin", this.px, this.py, ndata);
ndata = [-5, -5];
_parent.manageMC.entryEnemyTama("Tama_gin", this.px, this.py, ndata);
ndata = [-5, 5];
_parent.manageMC.entryEnemyTama("Tama_gin", this.px, this.py, ndata);
ndata = [5, -5];
_parent.manageMC.entryEnemyTama("Tama_gin", this.px, this.py, ndata);
ndata = [10, 3];
_parent.manageMC.entryEnemyTama("Tama_gin", this.px, this.py, ndata);
ndata = [-10, -3];
_parent.manageMC.entryEnemyTama("Tama_gin", this.px, this.py, ndata);
ndata = [-10, 3];
_parent.manageMC.entryEnemyTama("Tama_gin", this.px, this.py, ndata);
ndata = [10, -3];
_parent.manageMC.entryEnemyTama("Tama_gin", this.px, this.py, ndata);
this.thsSEhebi.start(0, 0);
this.algNum = 13;
}
function alg13() {
var d = (275 - this.px);
var d2 = (150 - this.py);
this.px = this.px + (d / 10);
this.py = this.py + (d2 / 20);
if (Math.abs(d2) < 1) {
this.dCnt = 0;
this.Angle = 0;
this.algNum = 14;
this.SEkakuL.start();
}
this.dCnt++;
}
function alg14() {
var ndx = (Math.cos((this.Angle * Math.PI) / 180) * 10);
var ndy = (Math.sin((this.Angle * Math.PI) / 180) * 10);
ndata = [ndx, ndy, this.pAngle];
_parent.manageMC.entryEnemyTama("Tama_std", this.px, this.py, ndata);
ndata = [-ndx, -ndy, this.pAngle];
_parent.manageMC.entryEnemyTama("Tama_std", this.px, this.py, ndata);
var ndx = (Math.cos(this.Angle + 0.174532925199433) * 5);
var ndy = (Math.sin(this.Angle + 0.174532925199433) * 5);
ndata = [ndx, ndy, this.pAngle];
_parent.manageMC.entryEnemyTama("Tama_std", this.px, this.py, ndata);
ndata = [-ndx, -ndy, this.pAngle];
_parent.manageMC.entryEnemyTama("Tama_std", this.px, this.py, ndata);
this.Angle = this.Angle + 20;
this.dCnt++;
if (this.dCnt == 64) {
this.dCnt = 0;
this.algNum = 11;
}
}
function lifeCheck() {
if (this.life < 50) {
this.ady = 0;
this.dCnt = 0;
this.algNum = 9;
i = 0;
while (i < this.childThisList.length) {
this.childThisList[i].papaDeath();
i++;
}
}
}
function hit(ptr) {
this.life--;
if (this.life <= 0) {
i = 0;
while (i < this.childThisList.length) {
this.childThisList[i].papaDeath();
i++;
}
this.algNum = 0;
this.anmMC.gotoAndPlay("explode");
this.bossBGM.stop();
this.theSEexp02.start();
_parent.manageMC.enemyEntryList.splice(ptr, 1);
_root.gotoAndPlay("stageClear");
} else {
this.flashCnt = 1;
this.theColor.setTransform(_root.fcolorList);
this.SEhit.start();
if (_root.hardFlg && (this.algNum == 13)) {
var dx = (_parent.playerMC._x - this.px);
var dy = (_parent.playerMC._y - this.py);
var r = Math.atan2(dy, dx);
k = r / (Math.PI/180);
var ndx = (Math.cos((k * Math.PI) / 180) * 15);
var ndy = (Math.sin((k * Math.PI) / 180) * 15);
ndata = [ndx, ndy];
_parent.manageMC.entryEnemyTama("Tama_std", this.px, this.py, ndata);
}
}
}
function unEntry() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
break;
}
i++;
}
this.removeMovieClip();
}
function clearMC() {
this.bossBGM.stop();
this.removeMovieClip();
}
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
function deathChild() {
this.deathChildCnt++;
if (this.deathChildCnt == 8) {
this.ady = 0;
this.algNum = 9;
this.dCnt = 0;
}
}
this.theColor = new color(this);
this.px = this._x;
this.py = this._y;
this.adx = 0;
this.ady = 5;
this.algNum = 1;
_parent.manageMC.enemyEntryList.push(this);
this.life = 100;
this.angle = 0;
this.childThisList = [];
this.dCnt = 0;
this.flashCnt = 0;
this.deathChildCnt = 0;
theSEexp02 = new Sound();
theSEexp02.attachSound("SE_exp02");
theSEhebi = new Sound();
theSEhebi.attachSound("SE_hebi");
this.SEhit = new Sound();
this.SEhit.attachSound("SE_hit");
this.SEanaguma = new Sound();
this.SEanaguma.attachSound("SE_anaguma");
this.SEkakuL = new Sound();
this.SEkakuL.attachSound("SE_kakuL");
_root.stageBGM.stop();
this.bossBGM = new Sound();
this.bossBGM.attachSound("bit163-1");
this.bossBGM.start(0, 10000);
Symbol 57 MovieClip [boss2] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 58 MovieClip [boss3] Frame 1
function main() {
switch (this.algNum) {
case 1 :
this.alg1();
break;
case 2 :
this.alg2();
break;
case 3 :
this.alg3();
break;
case 4 :
this.alg4();
break;
case 5 :
this.alg5();
}
if (this.flashCnt > 0) {
this.theColor.setTransform(_root.ncolorList);
this.flashCnt = 0;
}
if (this.algNum != 0) {
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
}
function snake() {
this.px = this.gSplineLocList[this.pPtr][0];
this.py = this.gSplineLocList[this.pPtr][1];
var dx = (this.oldpx - this.px);
var dy = (this.oldpy - this.py);
var r = Math.atan2(dy, dx);
k = r / (Math.PI/180);
this._rotation = k + 90;
this.pPtr++;
this.oldpx = this.px;
this.oldpy = this.py;
this.locList.shift();
this.locList.push([this.px, this.py, this._rotation]);
}
function alg1() {
i = 1;
while (i < 15) {
var initData = [this, i];
var childThis = _parent.manageMC.entryEnemy("boss3fu", 250, -50, initData);
this.childThisList.push(childThis);
i++;
}
var initData = [this, 0];
var childThis = _parent.manageMC.entryEnemy("boss3ryu", 250, -50, initData);
this.childThisList.push(childThis);
this.swapDepths(_parent.manageMC.enemyDepth++);
this.dCnt = 0;
this.algNum = 2;
}
function alg2() {
if (this.pPtr > 9) {
this.reNewSpLine();
this.pPtr = 0;
this.snakePtnList.push([this.px, this.py]);
}
this.snake();
if (this.dCnt > 240) {
this.ptnPtr = 1;
this.dCnt = 0;
this.algNum = 3;
}
this.dCnt++;
}
function alg3() {
if (this.pPtr > 9) {
this.reNewSpLine2();
this.pPtr = 0;
this.ptnPtr++;
if (this.ptnPtr > (this.snakePtnList.length - 1)) {
this.dCnt = 0;
this.snakePtrList = [];
this.outx = 275;
if (this.px > 275) {
this.outdx = -40;
} else {
this.outdx = 40;
}
this.outy = 275;
this.algNum = 4;
}
}
this.snake();
}
function alg4() {
if (this.pPtr > 9) {
this.reNewSpLine3();
this.pPtr = 0;
this.outy = this.outy - 100;
if (this.outy < -100) {
this.outy = -100;
}
this.outx = this.outx + this.outdx;
}
this.dCnt++;
if (this.dCnt > 120) {
this.dCnt = 0;
this.algNum = 5;
this.dx = _root.playerMC._x - this.outx;
this.dy = _root.playerMC._y - this.outy;
this.outx = this.px + (dx / 2);
this.outy = (this.py + (dy / 2)) + 50;
}
this.snake();
}
function alg5() {
if (this.pPtr > 9) {
this.reNewSpLine3();
this.pPtr = 0;
this.outy = this.outy + ((this.dy / 2) + 50);
this.outx = this.outx + (this.dx / 2);
}
if (this.dCnt > 60) {
this.dCnt = 180;
this.algNum = 2;
}
this.dCnt++;
this.snake();
}
function hit(ptr) {
this.life--;
if (this.life <= 0) {
i = 0;
while (i < this.childThisList.length) {
this.childThisList[i].papaDeath();
i++;
}
this.algNum = 0;
this.anmMC.gotoAndPlay("explode");
this.bossBGM.stop();
this.theSEexp02.start();
_parent.manageMC.enemyEntryList.splice(ptr, 1);
_root.gotoAndPlay("stageClear");
} else {
this.flashCnt = 1;
this.theColor.setTransform(_root.fcolorList);
this.SEhit.start();
if (_root.hardFlg) {
var dx = (_root.playerMC._x - this._x);
var dy = (_root.playerMC._y - this._y);
var r = Math.atan2(dy, dx);
var k = (r / (Math.PI/180));
var ndx = (Math.cos((k * Math.PI) / 180) * 15);
var ndy = (Math.sin((k * Math.PI) / 180) * 15);
ndata = [ndx, ndy];
_root.manageMC.entryEnemyTama("Tama_std", this._x, this._y, ndata);
}
}
}
function unEntry() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
break;
}
i++;
}
this.removeMovieClip();
}
function clearMC() {
this.bossBGM.stop();
this.removeMovieClip();
}
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
function initSpline() {
this.pCheckCnt = 0;
this.gLocXList = [0, 0, 0, 0];
this.gLocYList = [0, 0, 0, 0];
this.gSplineLocList = [];
this.gSplineLocList = [];
this.pPtr = 0;
}
function reNewSpLine() {
this.gLocXList.shift();
this.gLocYList.shift();
this.gLocXList.push(_root._xmouse);
this.gLocYList.push(_root._ymouse);
this.calcBspline();
}
function reNewSpLine2() {
this.gLocXList.shift();
this.gLocYList.shift();
this.gLocXList.push(this.snakePtnList[this.ptnPtr][0]);
this.gLocYList.push(this.snakePtnList[this.ptnPtr][1]);
this.calcBspline();
}
function reNewSpLine3() {
this.gLocXList.shift();
this.gLocYList.shift();
this.gLocXList.push(this.outx);
this.gLocYList.push(this.outy);
this.calcBspline();
}
function calcBspline() {
this.gSpLineLocList = [];
var t = 0;
var i = 0;
h = 0;
while (h < 10) {
var b1 = ((((1 - t) * (1 - t)) * (1 - t)) / 6);
var b2 = (((((t * t) * t) / 2) - (t * t)) + 0.666666666666667);
var b3 = (((((-((t * t) * t)) / 2) + ((t * t) / 2)) + (t / 2)) + 0.166666666666667);
var b4 = (((t * t) * t) / 6);
t = t + 0.1;
var cx = ((((b1 * this.gLocXList[i]) + (b2 * this.gLocXList[i + 1])) + (b3 * this.gLocXList[i + 2])) + (b4 * this.gLocXList[i + 3]));
var cy = ((((b1 * this.gLocYList[i]) + (b2 * this.gLocYList[i + 1])) + (b3 * this.gLocYList[i + 2])) + (b4 * this.gLocYList[i + 3]));
this.gSplineLocList.push([cx, cy]);
h++;
}
}
this.theColor = new color(this);
this.px = this._x;
this.py = this._y;
this.oldpx = this.px;
this.oldpy = this.py;
this.adx = 0;
this.ady = 5;
this.algNum = 1;
_parent.manageMC.enemyEntryList.push(this);
this.life = 100;
this.angle = 0;
this.childThisList = [];
this.dCnt = 0;
this.flashCnt = 0;
this.initSpline();
this.locList = [];
i = 0;
while (i < 46) {
this.locList.push([0, -100]);
i++;
}
this.snakePtnList = [];
theSEexp02 = new Sound();
theSEexp02.attachSound("SE_exp02");
this.SEhit = new Sound();
this.SEhit.attachSound("SE_hit");
_root.stageBGM.stop();
this.bossBGM = new Sound();
this.bossBGM.attachSound("bit196-1");
this.bossBGM.start(0, 10000);
Symbol 58 MovieClip [boss3] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 59 MovieClip [boss1] Frame 1
function main() {
switch (this.algNum) {
case 1 :
this.alg1();
break;
case 2 :
this.alg2();
break;
case 3 :
this.alg3();
break;
case 4 :
this.alg4();
break;
case 5 :
this.alg5();
break;
case 6 :
this.alg6();
break;
case 7 :
this.alg7();
break;
case 8 :
this.alg8();
break;
case 9 :
this.alg9();
break;
case 10 :
this.alg10();
break;
case 11 :
this.alg11();
break;
case 12 :
this.alg12();
break;
case 13 :
this.alg13();
break;
case 14 :
this.alg14();
}
if (this.flashCnt > 0) {
this.theColor.setTransform(_root.ncolorList);
this.flashCnt = 0;
}
if (this.algNum != 0) {
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
}
function alg1() {
this.px = this.px + ((_parent.playerMC._x - this.px) / 100);
if (this.py > 120) {
this.algNum = 2;
}
this.py = this.py + this.ady;
}
function alg2() {
this.px = this.px + ((_parent.playerMC._x - this.px) / 100);
this.py = 120 + (Math.sin((this.angle * Math.PI) / 180) * 10);
this.angle = this.angle + 10;
if (this.dCnt >= 10) {
this.dCnt = 0;
this.algNum = 3;
}
this.dCnt++;
}
function alg3() {
initData = [this, 1];
var childThis = _parent.manageMC.entryEnemy("boss1h", 250, -50, initData);
this.childThisList.push(childThis);
initData = [this, -1];
var childThis = _parent.manageMC.entryEnemy("boss1k", 250, -50, initData);
this.childThisList.push(childThis);
this.dCnt = 0;
this.algNum = 4;
}
function alg4() {
this.px = this.px + ((_parent.playerMC._x - this.px) / 100);
this.py = 120 + (Math.sin((this.angle * Math.PI) / 180) * 10);
this.angle = this.angle + 10;
if (this.dCnt >= 60) {
this.dCnt = 0;
this.algNum = 5;
}
this.dCnt++;
}
function alg5() {
var angle = 0;
i = 0;
while (i < 12) {
var dx = (Math.cos((angle * Math.PI) / 180) * 10);
var dy = (Math.sin((angle * Math.PI) / 180) * 10);
var ndata = [dx, dy];
_parent.manageMC.entryEnemyTama("Tama_std", this.px, this.py, ndata);
angle = angle + 30;
i++;
}
this.theSEhebi.start();
this.dCnt = 0;
if (_root.hardFlg) {
this.algNum = 7;
} else {
this.algNum = 4;
}
}
function alg6() {
}
function alg7() {
var childThis = _parent.manageMC.entryEnemy("enemy1", 50, -50);
var childThis = _parent.manageMC.entryEnemy("enemy1", 500, -50);
var childThis = _parent.manageMC.entryEnemy("enemy1", 150, -50);
var childThis = _parent.manageMC.entryEnemy("enemy1", 400, -50);
this.dCnt = 0;
this.algNum = 4;
}
function alg8() {
}
function alg9() {
}
function alg10() {
}
function hit(ptr) {
this.life--;
if (this.life <= 0) {
i = 0;
while (i < this.childThisList.length) {
this.childThisList[i].papaDeath();
i++;
}
this.algNum = 0;
this.anmMC.gotoAndPlay("explode");
this.bossBGM.stop();
this.theSEexp02.start();
_parent.manageMC.enemyEntryList.splice(ptr, 1);
_root.gotoAndPlay("stageClear");
} else {
this.flashCnt = 1;
this.theColor.setTransform(_root.fcolorList);
this.SEhit.start();
}
}
function unEntry() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
break;
}
i++;
}
this.removeMovieClip();
}
function clearMC() {
this.bossBGM.stop();
this.removeMovieClip();
}
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
this.theColor = new color(this);
this.px = this._x;
this.py = this._y;
this.adx = 0;
this.ady = 5;
this.algNum = 1;
_parent.manageMC.enemyEntryList.push(this);
this.life = 70;
this.angle = 0;
this.childThisList = [];
this.dCnt = 0;
this.flashCnt = 0;
theSEexp02 = new Sound();
theSEexp02.attachSound("SE_exp02");
theSEhebi = new Sound();
theSEhebi.attachSound("SE_hebi");
this.SEhit = new Sound();
this.SEhit.attachSound("SE_hit");
_root.stageBGM.stop();
this.bossBGM = new Sound();
this.bossBGM.attachSound("bit163-1");
this.bossBGM.start(0, 10000);
Symbol 59 MovieClip [boss1] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 77 MovieClip Frame 1
this.stop();
Symbol 77 MovieClip Frame 31
this.stop();
Symbol 77 MovieClip Frame 60
_parent.removeMovieClip();
Symbol 78 MovieClip [boss1s3] Frame 1
function main() {
if (this.algNum == 1) {
this.alg1();
}
if (this.algNum == 2) {
this.alg2();
}
if (this.algNum == 3) {
this.alg3();
}
if (this.algNum == 4) {
this.alg4();
}
if (this.algNum == 5) {
this.alg5();
}
if (this.algNum == 6) {
this.alg6();
}
this.px = this.initDataList[0]._x + this.ofs;
this.py = this.initDataList[0]._y - 70;
}
function alg1() {
if (this.dCnt >= 30) {
this.algNum = 2;
this.dCnt = 0;
}
this.dCnt++;
this.ofs = this.ofs + (((30 - this.dCnt) * this.sign) / 3);
}
function alg2() {
ndata = [0, 20];
_parent.manageMC.entryEnemyTama("Tama_laser", this.px, this.py, ndata);
this.algNum = 3;
}
function alg3() {
if (this.dCnt >= 2) {
this.algNum = 4;
this.dCnt = 0;
}
this.dCnt++;
}
function alg4() {
if (this.dCnt <= 4) {
this.ofs = Math.sin((this.angle * Math.PI) / 180) * 50;
this.angle = this.angle + 10;
this.dCnt++;
} else {
this.dCnt = 0;
this.algNum = 5;
}
}
function alg5() {
if (this.dCnt >= 2) {
this.algNum = 2;
this.dCnt = 0;
}
this.dCnt++;
}
function papaDeath() {
this.jibaku();
}
function hit(ptr) {
this.life--;
if (this.life <= 0) {
this.anmMC.gotoAndPlay("explode");
_parent.manageMC.enemyEntryList.splice(ptr, 1);
}
}
function jibaku() {
this.anmMC.gotoAndPlay("explode");
this.clearEnemyEntryList();
}
function unEntry() {
this.clearEnemyEntryList();
this.clearMC();
}
function clearEnemyEntryList() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
return;
}
i++;
}
}
function clearMC() {
this.removeMovieClip();
}
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
this.px = this._x;
this.py = this._y;
this.adx = 0;
this.ady = 0;
this.life = 20;
this.algNum = 1;
_parent.manageMC.enemyEntryList.push(this);
this.sign = this.initDataList[1];
this.ofs = this.sign * 100;
this.dCnt = 0;
if (this.sign == 1) {
this.angle = 0;
} else {
this.angle = 180;
}
Symbol 78 MovieClip [boss1s3] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 79 MovieClip [boss1s2] Frame 1
function main() {
if (this.algNum == 1) {
this.alg1();
}
if (this.algNum == 2) {
this.alg2();
}
if (this.algNum == 3) {
this.alg3();
}
this.px = this.initDataList[0]._x + this.ofs;
this.py = this.initDataList[0]._y - 80;
}
function alg1() {
if (this.dCnt >= 30) {
this.algNum = 2;
this.dCnt = 0;
}
this.dCnt++;
this.ofs = this.ofs + (((30 - this.dCnt) * this.sign) / 3.5);
}
function alg2() {
var sdx = (_parent.playerMC._x - this.px);
var sdy = (_parent.playerMC._y - this.py);
var r = Math.atan2(sdy, sdx);
var k = (r / (Math.PI/180));
var dx = (Math.cos(((k + 5) * Math.PI) / 180) * 10);
var dy = (Math.sin(((k + 5) * Math.PI) / 180) * 10);
ndata = [dx, dy];
_parent.manageMC.entryEnemyTama("Tama_std", this.px, this.py, ndata);
var dx = (Math.cos(((k - 5) * Math.PI) / 180) * 10);
var dy = (Math.sin(((k - 5) * Math.PI) / 180) * 10);
ndata = [dx, dy];
_parent.manageMC.entryEnemyTama("Tama_std", this.px, this.py, ndata);
this.algNum = 3;
}
function alg3() {
if (this.dCnt >= 20) {
this.algNum = 2;
this.dCnt = 0;
}
this.dCnt++;
}
function papaDeath() {
this.jibaku();
}
function hit(ptr) {
this.life--;
if (this.life <= 0) {
this.anmMC.gotoAndPlay("explode");
_parent.manageMC.enemyEntryList.splice(ptr, 1);
}
}
function jibaku() {
this.anmMC.gotoAndPlay("explode");
this.clearEnemyEntryList();
}
function unEntry() {
this.clearEnemyEntryList();
this.clearMC();
}
function clearEnemyEntryList() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
return;
}
i++;
}
}
function clearMC() {
this.removeMovieClip();
}
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
this.px = this._x;
this.py = this._y;
this.adx = 0;
this.ady = 0;
this.life = 20;
this.algNum = 1;
_parent.manageMC.enemyEntryList.push(this);
this.sign = this.initDataList[1];
this.ofs = this.sign * 100;
this.dCnt = 0;
this.bCnt = 0;
if (this.sign == 1) {
this.angle = 0;
} else {
this.angle = 180;
}
Symbol 79 MovieClip [boss1s2] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 96 MovieClip Frame 1
this.stop();
Symbol 96 MovieClip Frame 25
this.stop();
Symbol 96 MovieClip Frame 40
_parent.removeMovieClip();
Symbol 97 MovieClip [boss1k] Frame 1
function main() {
switch (this.algNum) {
case 1 :
this.alg1();
break;
case 2 :
this.alg2();
break;
case 3 :
this.alg3();
break;
case 4 :
this.alg4();
break;
case 5 :
this.alg5();
}
if (this.flashCnt > 0) {
this.theColor.setTransform(_root.ncolorList);
this.flashCnt = 0;
}
if (this.algNum != 0) {
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
}
function alg1() {
this.px = this.px + this.adx;
this.py = this.py + this.ady;
if (this.px > 490) {
this.px = 490;
this.algNum = 2;
this.adx = -this.adx;
}
this.pCnt = 0;
}
function alg2() {
this.adx = this.adx * 1.5;
this.ady = this.ady * 1.5;
if (this.adx > this.maxSpeed) {
this.adx = this.maxSpeed;
}
if (this.adx < (-this.maxSpeed)) {
this.adx = -this.maxSpeed;
}
if (this.ady > this.maxSpeed) {
this.ady = this.maxSpeed;
}
if (this.ady < (-this.maxSpeed)) {
this.ady = -this.maxSpeed;
}
this.px = this.px + this.adx;
this.py = this.py + this.ady;
if (this.px > 490) {
this.px = 490;
this.adx = -this.adx;
}
if (this.px < 10) {
this.px = 10;
this.adx = -this.adx;
}
if (this.py < 170) {
this.py = 170;
this.ady = -this.ady;
}
if (this.py > 390) {
this.py = 390;
this.ady = -this.ady;
}
if (this.adx < 0) {
this.anmMC.gotoAndStop(2);
} else {
this.anmMC.gotoAndStop(3);
}
this.pCnt++;
if (this.pCnt == 50) {
this.algNum = 3;
}
}
function alg3() {
this.adx = this.adx * 0.95;
this.ady = this.ady * 0.95;
if (Math.abs(this.adx) < 2) {
this.algNum = 4;
}
}
function alg4() {
this.anmMC.gotoAndStop(1);
var speed = 2;
i = 1;
while (i <= 3) {
ndata = [i * speed, i * speed];
_parent.manageMC.entryEnemyTama("Tama_kaku", this.px, this.py, ndata);
ndata = [(-i) * speed, i * speed];
_parent.manageMC.entryEnemyTama("Tama_kaku", this.px, this.py, ndata);
ndata = [i * speed, (-i) * speed];
_parent.manageMC.entryEnemyTama("Tama_kaku", this.px, this.py, ndata);
ndata = [(-i) * speed, (-i) * speed];
_parent.manageMC.entryEnemyTama("Tama_kaku", this.px, this.py, ndata);
i++;
}
this.theSEkakuL.start();
this.algNum = 5;
this.dCnt = 0;
}
function alg5() {
this.dCnt++;
if (this.dCnt == 30) {
this.pCnt = 0;
this.algNum = 2;
}
}
function papaDeath() {
this.jibaku();
}
function hit(ptr) {
this.life--;
if (this.life <= 0) {
this.anmMC.gotoAndPlay("explode");
this.algNum = 0;
this.theSEexp01.start();
_parent.manageMC.enemyEntryList.splice(ptr, 1);
} else {
this.flashCnt = 1;
this.theColor.setTransform(_root.fcolorList);
this.SEhit.start();
}
}
function jibaku() {
this.algNum = 0;
this.anmMC.gotoAndPlay("explode");
this.clearEnemyEntryList();
}
function unEntry() {
this.clearEnemyEntryList();
this.clearMC();
}
function clearEnemyEntryList() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
return;
}
i++;
}
}
function clearMC() {
this.removeMovieClip();
}
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
this.theColor = new color(this);
this.px = this._x;
this.py = this._y;
this.maxSpeed = 5;
this.adx = this.maxSpeed;
this.ady = this.maxSpeed;
this.life = 50;
this.algNum = 1;
_parent.manageMC.enemyEntryList.push(this);
this.sign = this.initDataList[1];
this.ofs = this.sign;
this.dCnt = 0;
this.pCnt = 0;
if (this.sign == 1) {
this.angle = 0;
} else {
this.angle = 180;
}
theSEexp01 = new Sound();
theSEexp01.attachSound("SE_exp01");
theSEkakuL = new Sound();
theSEkakuL.attachSound("SE_kakuL");
this.SEhit = new Sound();
this.SEhit.attachSound("SE_hit");
Symbol 97 MovieClip [boss1k] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 101 MovieClip Frame 1
this.stop();
Symbol 101 MovieClip Frame 40
_parent.removeMovieClip();
Symbol 102 MovieClip [boss2Kei] Frame 1
function main() {
if (this.algNum == 1) {
this.alg1();
}
if (this.algNum == 2) {
this.alg2();
}
if (this.algNum == 3) {
this.alg3();
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
if (this.algNum == 4) {
this.alg4();
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
if (this.flashCnt > 0) {
this.theColor.setTransform(_root.ncolorList);
this.flashCnt = 0;
}
}
function entry(nx, ny) {
if (nx < 275) {
this.px = nx + ((this.initDataList[1] * 80) * 4);
this.py = ny + ((this.initDataList[2] * 80) * 4);
this.setpx = nx + (this.initDataList[1] * 80);
this.setpy = ny + (this.initDataList[2] * 80);
} else {
this.px = nx - ((this.initDataList[1] * 80) * 4);
this.py = ny + ((this.initDataList[2] * 80) * 4);
this.setpx = nx - (this.initDataList[1] * 80);
this.setpy = ny + (this.initDataList[2] * 80);
}
this.alphaRate = 0;
this._alpha = 0;
this.algNum = 2;
}
function anagumaOff(nx, ny) {
if (nx < 275) {
this.setpx = nx + ((this.initDataList[1] * 80) * 4);
this.setpy = ny + ((this.initDataList[2] * 80) * 4);
} else {
this.setpx = nx - ((this.initDataList[1] * 80) * 4);
this.setpy = ny + ((this.initDataList[2] * 80) * 4);
}
this._rotation = 0;
this.alphaRate = 100;
this.algNum = 1;
}
function alg1() {
var ndx = (this.setpx - this.px);
var ndy = (this.setpy - this.py);
this.px = this.px + (ndx / 10);
this.py = this.py + (ndy / 10);
this.alphaRate = this.alphaRate - 10;
if (this.alphaRate < 0) {
this.alphaRate = 0;
}
this._alpha = this.alphaRate;
if ((Math.abs(ndx) <= 1) && (Math.abs(ndy) <= 1)) {
this.algNum = 0;
this._alpha = 0;
this.py = 1000;
}
}
function alg2() {
var ndx = (this.px - this.setpx);
var ndy = (this.py - this.setpy);
this.px = this.px - (ndx / 10);
this.py = this.py - (ndy / 10);
this.alphaRate = this.alphaRate + 10;
if (this.alphaRate > 100) {
this.alphaRate = 100;
}
this._alpha = this.alphaRate;
if ((Math.abs(ndx) <= 1) && (Math.abs(ndy) <= 1)) {
this.algNum = 3;
this._alpha = 100;
}
}
function alg3() {
this.dCnt++;
if (this.dCnt > this.waitCnt) {
this.algNum = 4;
}
}
function alg4() {
ndata = [-1];
_parent.manageMC.entryEnemyTama("Tama_kei", this.px, this.py, ndata);
ndata = [1];
_parent.manageMC.entryEnemyTama("Tama_kei", this.px, this.py, ndata);
this.algNum = 3;
this.dCnt = 0;
this.waitCnt = _root.randomInt(40) + 30;
this.SEhebi.start();
}
function alg5() {
}
function papaDeath() {
this.jibaku();
}
function hit(ptr) {
if (this.algNum <= 2) {
return(undefined);
}
this.life--;
if (this.life <= 0) {
var bossThis = this.initDataList[0];
bossThis.deathChild();
this.anmMC.gotoAndPlay("explode");
this.algNum = 0;
this.theSEexp01.start();
_parent.manageMC.enemyEntryList.splice(ptr, 1);
} else {
this.flashCnt = 1;
this.theColor.setTransform(_root.fcolorList);
this.SEhit.start();
}
}
function jibaku() {
this.algNum = 0;
this.anmMC.gotoAndPlay("explode");
this.clearEnemyEntryList();
}
function unEntry() {
this.clearEnemyEntryList();
this.clearMC();
}
function clearEnemyEntryList() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
return;
}
i++;
}
}
function clearMC() {
this.removeMovieClip();
}
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
this.theColor = new color(this);
this.px = this._x;
this.py = this._y;
this.adx = 1;
this.ady = 13;
this.life = 5;
this.algNum = 0;
_parent.manageMC.enemyEntryList.push(this);
this.sign = this.initDataList[1];
this.ofs = this.sign;
this.dCnt = 0;
this.pCnt = 0;
this.alphaRate = 0;
theSEexp01 = new Sound();
theSEexp01.attachSound("SE_exp01");
this.SEhit = new Sound();
this.SEhit.attachSound("SE_hit");
this.SEhebi = new Sound();
this.SEhebi.attachSound("SE_hebi");
Symbol 102 MovieClip [boss2Kei] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 106 MovieClip Frame 1
this.stop();
Symbol 106 MovieClip Frame 12
this.stop();
Symbol 106 MovieClip Frame 40
_parent.removeMovieClip();
Symbol 107 MovieClip [boss2Gin] Frame 1
function main() {
if (this.algNum == 1) {
this.alg1();
}
if (this.algNum == 2) {
this.alg2();
}
if (this.algNum == 3) {
this.alg3();
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
if (this.algNum == 4) {
this.alg4();
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
if (this.flashCnt > 0) {
this.theColor.setTransform(_root.ncolorList);
this.flashCnt = 0;
}
}
function entry(nx, ny) {
if (nx < 275) {
this.px = nx + ((this.initDataList[1] * 80) * 4);
this.py = ny + ((this.initDataList[2] * 80) * 4);
this.setpx = nx + (this.initDataList[1] * 80);
this.setpy = ny + (this.initDataList[2] * 80);
} else {
this.px = nx - ((this.initDataList[1] * 80) * 4);
this.py = ny + ((this.initDataList[2] * 80) * 4);
this.setpx = nx - (this.initDataList[1] * 80);
this.setpy = ny + (this.initDataList[2] * 80);
}
this.alphaRate = 0;
this._alpha = 0;
this.algNum = 2;
}
function anagumaOff(nx, ny) {
if (nx < 275) {
this.setpx = nx + ((this.initDataList[1] * 80) * 4);
this.setpy = ny + ((this.initDataList[2] * 80) * 4);
} else {
this.setpx = nx - ((this.initDataList[1] * 80) * 4);
this.setpy = ny + ((this.initDataList[2] * 80) * 4);
}
this._rotation = 0;
this.alphaRate = 100;
this.algNum = 1;
}
function alg1() {
var ndx = (this.setpx - this.px);
var ndy = (this.setpy - this.py);
this.px = this.px + (ndx / 10);
this.py = this.py + (ndy / 10);
this.alphaRate = this.alphaRate - 10;
if (this.alphaRate < 0) {
this.alphaRate = 0;
}
this._alpha = this.alphaRate;
if ((Math.abs(ndx) <= 1) && (Math.abs(ndy) <= 1)) {
this.algNum = 0;
this._alpha = 0;
this.py = 1000;
}
}
function alg2() {
var ndx = (this.px - this.setpx);
var ndy = (this.py - this.setpy);
this.px = this.px - (ndx / 10);
this.py = this.py - (ndy / 10);
this.alphaRate = this.alphaRate + 10;
if (this.alphaRate > 100) {
this.alphaRate = 100;
}
this._alpha = this.alphaRate;
if ((Math.abs(ndx) <= 1) && (Math.abs(ndy) <= 1)) {
this.algNum = 3;
this._alpha = 100;
}
}
function alg3() {
this.dCnt++;
if (this.dCnt > this.waitCnt) {
this.algNum = 4;
}
}
function alg4() {
ndata = [5, 5];
_parent.manageMC.entryEnemyTama("Tama_gin", this.px, this.py, ndata);
ndata = [-5, -5];
_parent.manageMC.entryEnemyTama("Tama_gin", this.px, this.py, ndata);
ndata = [-5, 5];
_parent.manageMC.entryEnemyTama("Tama_gin", this.px, this.py, ndata);
ndata = [5, -5];
_parent.manageMC.entryEnemyTama("Tama_gin", this.px, this.py, ndata);
this.algNum = 3;
this.dCnt = 0;
this.waitCnt = 60;
this.SEhebi.start();
}
function alg5() {
}
function papaDeath() {
this.jibaku();
}
function hit(ptr) {
if (this.algNum <= 2) {
return(undefined);
}
this.life--;
if (this.life <= 0) {
var bossThis = this.initDataList[0];
bossThis.deathChild();
this.anmMC.gotoAndPlay("explode");
this.algNum = 0;
this.theSEexp01.start();
_parent.manageMC.enemyEntryList.splice(ptr, 1);
} else {
this.flashCnt = 1;
this.theColor.setTransform(_root.fcolorList);
this.SEhit.start();
}
}
function jibaku() {
this.algNum = 0;
this.anmMC.gotoAndPlay("explode");
this.clearEnemyEntryList();
}
function unEntry() {
this.clearEnemyEntryList();
this.clearMC();
}
function clearEnemyEntryList() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
return;
}
i++;
}
}
function clearMC() {
this.removeMovieClip();
}
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
this.theColor = new color(this);
this.px = this._x;
this.py = this._y;
this.adx = 1;
this.ady = 13;
this.life = 10;
this.algNum = 0;
_parent.manageMC.enemyEntryList.push(this);
this.sign = this.initDataList[1];
this.ofs = this.sign;
this.dCnt = 0;
this.pCnt = 0;
if (this.sign == 1) {
this.angle = 0;
} else {
this.angle = 180;
}
theSEexp01 = new Sound();
theSEexp01.attachSound("SE_exp01");
this.SEhit = new Sound();
this.SEhit.attachSound("SE_hit");
this.SEhebi = new Sound();
this.SEhebi.attachSound("SE_hebi");
Symbol 107 MovieClip [boss2Gin] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 111 MovieClip Frame 1
this.stop();
Symbol 111 MovieClip Frame 40
_parent.removeMovieClip();
Symbol 112 MovieClip [boss2Kin] Frame 1
function main() {
if (this.algNum == 1) {
this.alg1();
}
if (this.algNum == 2) {
this.alg2();
}
if (this.algNum == 3) {
this.alg3();
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
if (this.algNum == 4) {
this.alg4();
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
if (this.flashCnt > 0) {
this.theColor.setTransform(_root.ncolorList);
this.flashCnt = 0;
}
}
function entry(nx, ny) {
if (nx < 275) {
this.px = nx + ((this.initDataList[1] * 80) * 4);
this.py = ny + ((this.initDataList[2] * 80) * 4);
this.setpx = nx + (this.initDataList[1] * 80);
this.setpy = ny + (this.initDataList[2] * 80);
} else {
this.px = nx - ((this.initDataList[1] * 80) * 4);
this.py = ny + ((this.initDataList[2] * 80) * 4);
this.setpx = nx - (this.initDataList[1] * 80);
this.setpy = ny + (this.initDataList[2] * 80);
}
this.alphaRate = 0;
this._alpha = 0;
this.algNum = 2;
}
function anagumaOff(nx, ny) {
if (nx < 275) {
this.setpx = nx + ((this.initDataList[1] * 80) * 4);
this.setpy = ny + ((this.initDataList[2] * 80) * 4);
} else {
this.setpx = nx - ((this.initDataList[1] * 80) * 4);
this.setpy = ny + ((this.initDataList[2] * 80) * 4);
}
this._rotation = 0;
this.alphaRate = 100;
this.algNum = 1;
}
function alg1() {
var ndx = (this.setpx - this.px);
var ndy = (this.setpy - this.py);
this.px = this.px + (ndx / 10);
this.py = this.py + (ndy / 10);
this.alphaRate = this.alphaRate - 10;
if (this.alphaRate < 0) {
this.alphaRate = 0;
}
this._alpha = this.alphaRate;
if ((Math.abs(ndx) <= 1) && (Math.abs(ndy) <= 1)) {
this.algNum = 0;
this._alpha = 0;
this.py = 1000;
}
}
function alg2() {
var ndx = (this.px - this.setpx);
var ndy = (this.py - this.setpy);
this.px = this.px - (ndx / 10);
this.py = this.py - (ndy / 10);
this.alphaRate = this.alphaRate + 10;
if (this.alphaRate > 100) {
this.alphaRate = 100;
}
this._alpha = this.alphaRate;
if ((Math.abs(ndx) <= 1) && (Math.abs(ndy) <= 1)) {
this.algNum = 3;
this._alpha = 100;
}
}
function alg3() {
var dx = (_parent.playerMC._x - this.px);
var dy = (_parent.playerMC._y - this.py);
var r = Math.atan2(dy, dx);
k = r / (Math.PI/180);
this.pAngle = k - 90;
this._rotation = this.pAngle;
this.dCnt++;
if (this.dCnt > this.waitCnt) {
this.algNum = 4;
}
}
function alg4() {
var ndx = (Math.cos((k * Math.PI) / 180) * 4);
var ndy = (Math.sin((k * Math.PI) / 180) * 4);
ndata = [ndx, ndy, this.pAngle];
_parent.manageMC.entryEnemyTama("Tama_kaku2", this.px, this.py, ndata);
var ndx = (Math.cos(((k + 20) * Math.PI) / 180) * 15);
var ndy = (Math.sin(((k + 20) * Math.PI) / 180) * 15);
ndata = [ndx, ndy, this.pAngle];
_parent.manageMC.entryEnemyTama("Tama_std", this.px, this.py, ndata);
var ndx = (Math.cos(((k - 20) * Math.PI) / 180) * 15);
var ndy = (Math.sin(((k - 20) * Math.PI) / 180) * 15);
ndata = [ndx, ndy, this.pAngle];
_parent.manageMC.entryEnemyTama("Tama_std", this.px, this.py, ndata);
this.algNum = 3;
this.dCnt = 0;
this.waitCnt = _root.randomInt(30) + 30;
this.theSEhebi.start();
}
function alg5() {
}
function papaDeath() {
this.jibaku();
}
function hit(ptr) {
if (this.algNum <= 2) {
return(undefined);
}
this.life--;
if (this.life <= 0) {
var bossThis = this.initDataList[0];
bossThis.deathChild();
this.anmMC.gotoAndPlay("explode");
this.algNum = 0;
this.theSEexp01.start();
_parent.manageMC.enemyEntryList.splice(ptr, 1);
} else {
this.flashCnt = 1;
this.theColor.setTransform(_root.fcolorList);
this.SEhit.start();
}
}
function jibaku() {
this.algNum = 0;
this.anmMC.gotoAndPlay("explode");
this.clearEnemyEntryList();
}
function unEntry() {
this.clearEnemyEntryList();
this.clearMC();
}
function clearEnemyEntryList() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
return;
}
i++;
}
}
function clearMC() {
this.removeMovieClip();
}
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
this.theColor = new color(this);
this.px = this._x;
this.py = this._y;
this.adx = 1;
this.ady = 13;
this.life = 10;
this.algNum = 0;
_parent.manageMC.enemyEntryList.push(this);
this.sign = this.initDataList[1];
this.ofs = this.sign;
this.dCnt = 0;
this.pCnt = 0;
if (this.sign == 1) {
this.angle = 0;
} else {
this.angle = 180;
}
theSEexp01 = new Sound();
theSEexp01.attachSound("SE_exp01");
theSEhebi = new Sound();
theSEhebi.attachSound("SE_hebi");
this.SEhit = new Sound();
this.SEhit.attachSound("SE_hit");
Symbol 112 MovieClip [boss2Kin] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 114 MovieClip Frame 1
this.stop();
Symbol 114 MovieClip Frame 41
_parent.removeMovieClip();
Symbol 115 MovieClip [boss2Ko] Frame 1
function main() {
if (this.algNum == 1) {
this.alg1();
}
if (this.algNum == 2) {
this.alg2();
}
if (this.algNum == 3) {
this.alg3();
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
if (this.algNum == 4) {
this.alg4();
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
if (this.algNum == 5) {
this.alg5();
}
if (this.flashCnt > 0) {
this.theColor.setTransform(_root.ncolorList);
this.flashCnt = 0;
}
}
function entry(nx, ny) {
if (nx < 275) {
this.px = nx + ((this.initDataList[1] * 80) * 4);
this.py = ny + ((this.initDataList[2] * 80) * 4);
this.setpx = nx + (this.initDataList[1] * 80);
this.setpy = ny + (this.initDataList[2] * 80);
} else {
this.px = nx - ((this.initDataList[1] * 80) * 4);
this.py = ny + ((this.initDataList[2] * 80) * 4);
this.setpx = nx - (this.initDataList[1] * 80);
this.setpy = ny + (this.initDataList[2] * 80);
}
this.alphaRate = 0;
this._alpha = 0;
this.algNum = 2;
}
function anagumaOff(nx, ny) {
if (nx < 275) {
this.setpx = nx + ((this.initDataList[1] * 80) * 4);
this.setpy = ny + ((this.initDataList[2] * 80) * 4);
} else {
this.setpx = nx - ((this.initDataList[1] * 80) * 4);
this.setpy = ny + ((this.initDataList[2] * 80) * 4);
}
this._rotation = 0;
this.alphaRate = 100;
this.algNum = 1;
}
function alg1() {
var ndx = (this.setpx - this.px);
var ndy = (this.setpy - this.py);
this.px = this.px + (ndx / 10);
this.py = this.py + (ndy / 10);
this.alphaRate = this.alphaRate - 10;
if (this.alphaRate < 0) {
this.alphaRate = 0;
}
this._alpha = this.alphaRate;
if ((Math.abs(ndx) <= 1) && (Math.abs(ndy) <= 1)) {
this.algNum = 0;
this._alpha = 0;
this.py = 1000;
}
}
function alg2() {
var ndx = (this.px - this.setpx);
var ndy = (this.py - this.setpy);
this.px = this.px - (ndx / 10);
this.py = this.py - (ndy / 10);
this.alphaRate = this.alphaRate + 10;
if (this.alphaRate > 100) {
this.alphaRate = 100;
}
this._alpha = this.alphaRate;
if ((Math.abs(ndx) <= 1) && (Math.abs(ndy) <= 1)) {
this.algNum = 3;
this._alpha = 100;
}
}
function alg3() {
this.dCnt++;
if (this.dCnt > 60) {
this.algNum = 4;
}
}
function alg4() {
var ndata = [0, 10];
_parent.manageMC.entryEnemyTama("Tama_laser", this.px, this.py, ndata);
var ndata = [0, 15];
_parent.manageMC.entryEnemyTama("Tama_laser", this.px, this.py, ndata);
var ndata = [0, 20];
_parent.manageMC.entryEnemyTama("Tama_laser", this.px, this.py, ndata);
var ndata = [0, 25];
_parent.manageMC.entryEnemyTama("Tama_laser", this.px, this.py, ndata);
this.algNum = 3;
this.dCnt = 0;
this.SEkakuL.start();
}
function alg5() {
}
function papaDeath() {
this.jibaku();
}
function hit(ptr) {
if (this.algNum <= 2) {
return(undefined);
}
this.life--;
if (this.life <= 0) {
var bossThis = this.initDataList[0];
bossThis.deathChild();
this.anmMC.gotoAndPlay("explode");
this.algNum = 0;
this.theSEexp01.start();
_parent.manageMC.enemyEntryList.splice(ptr, 1);
} else {
this.flashCnt = 1;
this.theColor.setTransform(_root.fcolorList);
this.SEhit.start();
}
}
function jibaku() {
this.algNum = 0;
this.anmMC.gotoAndPlay("explode");
this.clearEnemyEntryList();
}
function unEntry() {
this.clearEnemyEntryList();
this.clearMC();
}
function clearEnemyEntryList() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
return;
}
i++;
}
}
function clearMC() {
this.removeMovieClip();
}
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
this.theColor = new color(this);
this.px = this._x;
this.py = this._y;
this.adx = 1;
this.ady = 13;
this.life = 10;
this.algNum = 0;
_parent.manageMC.enemyEntryList.push(this);
this.sign = this.initDataList[1];
this.ofs = this.sign;
this.dCnt = 0;
this.pCnt = 0;
if (this.sign == 1) {
this.angle = 0;
} else {
this.angle = 180;
}
theSEexp01 = new Sound();
theSEexp01.attachSound("SE_exp01");
this.SEhit = new Sound();
this.SEhit.attachSound("SE_hit");
this.SEkakuL = new Sound();
this.SEkakuL.attachSound("SE_kakuL");
Symbol 115 MovieClip [boss2Ko] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 116 MovieClip [boss2Fu] Frame 1
function main() {
if (this.algNum == 1) {
this.alg1();
}
if (this.algNum == 2) {
this.alg2();
}
if (this.algNum == 3) {
this.alg3();
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
if (this.algNum == 4) {
this.alg4();
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
if (this.flashCnt > 0) {
this.theColor.setTransform(_root.ncolorList);
this.flashCnt = 0;
}
}
function entry(nx, ny) {
if (nx < 275) {
this.px = nx + ((this.initDataList[1] * 80) * 4);
this.py = ny + ((this.initDataList[2] * 80) * 4);
this.setpx = nx + (this.initDataList[1] * 80);
this.setpy = ny + (this.initDataList[2] * 80);
} else {
this.px = nx - ((this.initDataList[1] * 80) * 4);
this.py = ny + ((this.initDataList[2] * 80) * 4);
this.setpx = nx - (this.initDataList[1] * 80);
this.setpy = ny + (this.initDataList[2] * 80);
}
this.alphaRate = 0;
this._alpha = 0;
this.algNum = 2;
}
function anagumaOff(nx, ny) {
if (nx < 275) {
this.setpx = nx + ((this.initDataList[1] * 80) * 4);
this.setpy = ny + ((this.initDataList[2] * 80) * 4);
} else {
this.setpx = nx - ((this.initDataList[1] * 80) * 4);
this.setpy = ny + ((this.initDataList[2] * 80) * 4);
}
this._rotation = 0;
this.alphaRate = 100;
this.algNum = 1;
}
function alg1() {
var ndx = (this.setpx - this.px);
var ndy = (this.setpy - this.py);
this.px = this.px + (ndx / 10);
this.py = this.py + (ndy / 10);
this.alphaRate = this.alphaRate - 10;
if (this.alphaRate < 0) {
this.alphaRate = 0;
}
this._alpha = this.alphaRate;
if ((Math.abs(ndx) <= 1) && (Math.abs(ndy) <= 1)) {
this.algNum = 0;
this._alpha = 0;
this.py = 1000;
}
}
function alg2() {
var ndx = (this.px - this.setpx);
var ndy = (this.py - this.setpy);
this.px = this.px - (ndx / 10);
this.py = this.py - (ndy / 10);
this.alphaRate = this.alphaRate + 10;
if (this.alphaRate > 100) {
this.alphaRate = 100;
}
this._alpha = this.alphaRate;
if ((Math.abs(ndx) <= 1) && (Math.abs(ndy) <= 1)) {
this.algNum = 3;
this._alpha = 100;
}
}
function alg3() {
var dx = (_parent.playerMC._x - this.px);
var dy = (_parent.playerMC._y - this.py);
var r = Math.atan2(dy, dx);
k = r / (Math.PI/180);
this.pAngle = k - 90;
this._rotation = this.pAngle;
this.dCnt++;
if (this.dCnt > this.waitCnt) {
this.algNum = 4;
}
}
function alg4() {
var ndx = (Math.cos((k * Math.PI) / 180) * 5);
var ndy = (Math.sin((k * Math.PI) / 180) * 5);
ndata = [ndx, ndy, this.pAngle];
_parent.manageMC.entryEnemyTama("Tama_kaku2", this.px, this.py, ndata);
this.algNum = 3;
this.dCnt = 0;
this.waitCnt = _root.randomInt(30) + 30;
this.theSEhebi.start();
}
function alg5() {
}
function papaDeath() {
this.jibaku();
}
function hit(ptr) {
if (this.algNum <= 2) {
return(undefined);
}
this.life--;
if (this.life <= 0) {
var bossThis = this.initDataList[0];
bossThis.deathChild();
this.anmMC.gotoAndPlay("explode");
this.algNum = 0;
this.theSEexp01.start();
_parent.manageMC.enemyEntryList.splice(ptr, 1);
} else {
this.flashCnt = 1;
this.theColor.setTransform(_root.fcolorList);
this.SEhit.start(0, 0);
}
}
function jibaku() {
this.algNum = 0;
this.anmMC.gotoAndPlay("explode");
this.clearEnemyEntryList();
}
function unEntry() {
this.clearEnemyEntryList();
this.clearMC();
}
function clearEnemyEntryList() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
return;
}
i++;
}
}
function clearMC() {
this.removeMovieClip();
}
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
this.theColor = new color(this);
this.px = this._x;
this.py = this._y;
this.adx = 1;
this.ady = 13;
this.life = 5;
this.algNum = 0;
_parent.manageMC.enemyEntryList.push(this);
this.dCnt = 0;
this.pCnt = 0;
this.pAngle = 0;
this.waitCnt = _root.randomInt(30);
theSEexp01 = new Sound();
theSEexp01.attachSound("SE_exp01");
theSEhebi = new Sound();
theSEhebi.attachSound("SE_hebi");
this.SEhit = new Sound();
this.SEhit.attachSound("SE_hit");
Symbol 116 MovieClip [boss2Fu] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 117 MovieClip [boss3ryu] Frame 1
function main() {
if (this.algNum == 1) {
this.alg1();
}
if (this.algNum == 2) {
this.alg2();
}
if (this.flashCnt > 0) {
this.theColor.setTransform(_root.ncolorList);
this.flashCnt = 0;
}
this.px = this.papa.locList[this.myNum][0];
this.py = this.papa.locList[this.myNum][1];
this._rotation = this.papa.locList[this.myNum][2] + 180;
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
function alg1() {
if (dCnt > 120) {
this.algNum = 2;
}
this.dCnt++;
}
function alg2() {
var nAngle = (this._rotation + 45);
i = 0;
while (i < 4) {
nAngle = nAngle + 90;
var ndx = (Math.sin((nAngle * Math.PI) / 180) * 6);
var ndy = (Math.cos((nAngle * Math.PI) / 180) * 6);
ndata = [ndx, ndy];
_parent.manageMC.entryEnemyTama("Tama_std", this.px, this.py, ndata);
i++;
}
this.theSEhebi.start();
this.dCnt = 0;
this.algNum = 1;
}
function alg3() {
}
function alg4() {
}
function alg5() {
}
function papaDeath() {
this.jibaku();
}
function hit(ptr) {
this.flashCnt = 1;
this.theColor.setTransform(_root.fcolorList);
this.papa.life--;
this.SEhit.start();
if (_root.hardFlg) {
var dx = (_root.playerMC._x - this._x);
var dy = (_root.playerMC._y - this._y);
var r = Math.atan2(dy, dx);
var k = (r / (Math.PI/180));
var ndx = (Math.cos((k * Math.PI) / 180) * 15);
var ndy = (Math.sin((k * Math.PI) / 180) * 15);
ndata = [ndx, ndy];
_root.manageMC.entryEnemyTama("Tama_std", this._x, this._y, ndata);
}
}
function jibaku() {
this.algNum = 0;
this.anmMC.gotoAndPlay("explode");
this.clearEnemyEntryList();
}
function unEntry() {
this.clearEnemyEntryList();
this.clearMC();
}
function clearEnemyEntryList() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
return;
}
i++;
}
}
function clearMC() {
this.removeMovieClip();
}
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
this.theColor = new color(this);
this.px = this._x;
this.py = this._y;
this.adx = 0;
this.ady = 0;
this.life = 10000;
this.algNum = 1;
_parent.manageMC.enemyEntryList.push(this);
this.papa = this.initDataList[0];
this.myNum = this.initDataList[1] * 3;
this.dCnt = 0;
this.pCnt = 0;
theSEhebi = new Sound();
theSEhebi.attachSound("SE_hebi");
this.SEhit = new Sound();
this.SEhit.attachSound("SE_hit");
Symbol 117 MovieClip [boss3ryu] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 118 MovieClip [boss3Fu] Frame 1
function main() {
if (this.algNum == 1) {
this.alg1();
}
if (this.flashCnt > 0) {
this.theColor.setTransform(_root.ncolorList);
this.flashCnt = 0;
}
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
function alg1() {
this.px = this.papa.locList[this.myNum][0];
this.py = this.papa.locList[this.myNum][1];
this._rotation = this.papa.locList[this.myNum][2];
}
function alg2() {
}
function alg3() {
}
function alg4() {
}
function alg5() {
}
function papaDeath() {
this.jibaku();
}
function hit(ptr) {
this.flashCnt = 1;
this.theColor.setTransform(_root.fcolorList);
this.papa.life--;
this.SEhit.start();
if (_root.hardFlg) {
var dx = (_root.playerMC._x - this._x);
var dy = (_root.playerMC._y - this._y);
var r = Math.atan2(dy, dx);
var k = (r / (Math.PI/180));
var ndx = (Math.cos((k * Math.PI) / 180) * 15);
var ndy = (Math.sin((k * Math.PI) / 180) * 15);
ndata = [ndx, ndy];
_root.manageMC.entryEnemyTama("Tama_std", this._x, this._y, ndata);
}
}
function jibaku() {
this.algNum = 0;
this.anmMC.gotoAndPlay("explode");
this.clearEnemyEntryList();
}
function unEntry() {
this.clearEnemyEntryList();
this.clearMC();
}
function clearEnemyEntryList() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
return;
}
i++;
}
}
function clearMC() {
this.removeMovieClip();
}
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
this.theColor = new color(this);
this.px = this._x;
this.py = this._y;
this.adx = 0;
this.ady = 0;
this.life = 10000;
this.algNum = 1;
_parent.manageMC.enemyEntryList.push(this);
this.papa = this.initDataList[0];
this.myNum = this.initDataList[1] * 3;
this.dCnt = 0;
this.pCnt = 0;
this.SEhit = new Sound();
this.SEhit.attachSound("SE_hit");
Symbol 118 MovieClip [boss3Fu] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 122 MovieClip Frame 1
this.stop();
Symbol 122 MovieClip Frame 38
_parent.removeMovieClip();
Symbol 123 MovieClip [boss2h] Frame 1
function main() {
switch (this.algNum) {
case 1 :
this.alg1();
break;
case 2 :
this.alg2();
break;
case 3 :
this.alg3();
break;
case 4 :
this.alg4();
break;
case 5 :
this.alg5();
}
if (this.flashCnt > 0) {
this.theColor.setTransform(_root.ncolorList);
this.flashCnt = 0;
}
if (this.algNum != 0) {
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
}
function entry(nx, ny) {
}
function anagumaOff(nx, ny) {
}
function alg1() {
var dx = (_parent.playerMC._x - this.px);
this.px = this.px + (dx / 10);
this.py = this.py + this.ady;
this.ady = this.ady - 1;
if (this.ady == 0) {
this.algNum = 2;
this.pCnt = 0;
}
}
function alg2() {
var dx = (_parent.playerMC._x - this.px);
this.px = this.px + (dx / 10);
if (this.adx < -4) {
this.anmMC.gotoAndStop(2);
} else if (this.adx > 4) {
this.anmMC.gotoAndStop(3);
} else {
this.anmMC.gotoAndStop(1);
}
this.pCnt++;
if (this.pCnt == 50) {
this.anmMC.gotoAndStop(1);
this.algNum = 3;
this.dCnt = 0;
}
}
function alg3() {
this.dCnt++;
if (this.dCnt == 30) {
this.pCnt = 0;
this.algNum = 4;
}
}
function alg4() {
this.anmMC.gotoAndStop(1);
var speed = 2;
i = 1;
while (i <= 12) {
ndata = [0, i * speed];
_parent.manageMC.entryEnemyTama("Tama_kaku", this.px, this.py, ndata);
i++;
}
this.algNum = 5;
this.dCnt = 0;
}
function alg5() {
this.dCnt++;
if (this.dCnt == 30) {
this.pCnt = 0;
this.algNum = 2;
if (this.adx > 0) {
this.adx = 1;
} else {
this.adx = -1;
}
}
}
function papaDeath() {
this.jibaku();
}
function hit(ptr) {
this.life--;
if (this.life <= 0) {
this.anmMC.gotoAndPlay("explode");
this.algNum = 0;
this.theSEexp01.start();
_parent.manageMC.enemyEntryList.splice(ptr, 1);
} else {
this.flashCnt = 1;
this.theColor.setTransform(_root.fcolorList);
}
}
function jibaku() {
this.algNum = 0;
this.anmMC.gotoAndPlay("explode");
this.clearEnemyEntryList();
}
function unEntry() {
this.clearEnemyEntryList();
this.clearMC();
}
function clearEnemyEntryList() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
return;
}
i++;
}
}
function clearMC() {
this.removeMovieClip();
}
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
this.theColor = new color(this);
this.px = this._x;
this.py = this._y;
this.adx = 1;
this.ady = 20;
this.life = 100;
this.algNum = 1;
_parent.manageMC.enemyEntryList.push(this);
this.sign = this.initDataList[1];
this.ofs = this.sign;
this.dCnt = 0;
this.pCnt = 0;
if (this.sign == 1) {
this.angle = 0;
} else {
this.angle = 180;
}
theSEexp01 = new Sound();
theSEexp01.attachSound("SE_exp01");
Symbol 123 MovieClip [boss2h] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 124 MovieClip [boss1h] Frame 1
function main() {
switch (this.algNum) {
case 1 :
this.alg1();
break;
case 2 :
this.alg2();
break;
case 3 :
this.alg3();
break;
case 4 :
this.alg4();
break;
case 5 :
this.alg5();
}
if (this.flashCnt > 0) {
this.theColor.setTransform(_root.ncolorList);
this.flashCnt = 0;
}
if (this.algNum != 0) {
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
}
function alg1() {
var dx = (_parent.playerMC._x - this.px);
this.px = this.px + (dx / 10);
this.py = this.py + this.ady;
this.ady = this.ady - 1;
if (this.ady == 0) {
this.algNum = 2;
this.pCnt = 0;
}
}
function alg2() {
this.adx = this.adx * 1.05;
this.px = this.px + this.adx;
if (this.px < 100) {
this.px = 100;
this.adx = 1;
}
if (this.px > 450) {
this.px = 450;
this.adx = -1;
}
if (this.adx < -4) {
this.anmMC.gotoAndStop(2);
} else if (this.adx > 4) {
this.anmMC.gotoAndStop(3);
} else {
this.anmMC.gotoAndStop(1);
}
this.pCnt++;
if (this.pCnt == 50) {
this.anmMC.gotoAndStop(1);
this.algNum = 3;
this.dCnt = 0;
}
}
function alg3() {
this.dCnt++;
if (this.dCnt == 30) {
this.pCnt = 0;
this.algNum = 4;
}
}
function alg4() {
this.anmMC.gotoAndStop(1);
var speed = 2;
i = 1;
while (i <= 12) {
ndata = [0, i * speed];
_parent.manageMC.entryEnemyTama("Tama_kaku", this.px, this.py, ndata);
i++;
}
this.theSEkakuL.start();
this.algNum = 5;
this.dCnt = 0;
}
function alg5() {
this.dCnt++;
if (this.dCnt == 30) {
this.pCnt = 0;
this.algNum = 2;
if (this.adx > 0) {
this.adx = 1;
} else {
this.adx = -1;
}
}
}
function papaDeath() {
this.jibaku();
}
function hit(ptr) {
this.life--;
if (this.life <= 0) {
this.anmMC.gotoAndPlay("explode");
this.algNum = 0;
this.theSEexp01.start();
_parent.manageMC.enemyEntryList.splice(ptr, 1);
} else {
this.flashCnt = 1;
this.theColor.setTransform(_root.fcolorList);
this.SEhit.start();
}
}
function jibaku() {
this.algNum = 0;
this.anmMC.gotoAndPlay("explode");
this.clearEnemyEntryList();
}
function unEntry() {
this.clearEnemyEntryList();
this.clearMC();
}
function clearEnemyEntryList() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
return;
}
i++;
}
}
function clearMC() {
this.removeMovieClip();
}
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
this.theColor = new color(this);
this.px = this._x;
this.py = this._y;
this.adx = 1;
this.ady = 13;
this.life = 50;
this.algNum = 1;
_parent.manageMC.enemyEntryList.push(this);
this.sign = this.initDataList[1];
this.ofs = this.sign;
this.dCnt = 0;
this.pCnt = 0;
if (this.sign == 1) {
this.angle = 0;
} else {
this.angle = 180;
}
theSEexp01 = new Sound();
theSEexp01.attachSound("SE_exp01");
theSEkakuL = new Sound();
theSEkakuL.attachSound("SE_kakuL");
this.SEhit = new Sound();
this.SEhit.attachSound("SE_hit");
Symbol 124 MovieClip [boss1h] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 125 MovieClip [boss1s] Frame 1
function main() {
if (this.algNum == 1) {
this.alg1();
}
if (this.algNum == 2) {
this.alg2();
}
if (this.algNum == 3) {
this.alg3();
}
this.px = this.initDataList[0]._x + this.ofs;
this.py = this.initDataList[0]._y - 50;
}
function alg1() {
if (this.dCnt >= 30) {
this.algNum = 2;
this.dCnt = 0;
}
this.dCnt++;
this.ofs = this.ofs + (((30 - this.dCnt) * this.sign) / 4);
}
function alg2() {
var dx = (Math.cos((this.Angle * Math.PI) / 180) * 15);
var dy = (Math.sin((this.Angle * Math.PI) / 180) * 15);
ndata = [dx, dy];
_parent.manageMC.entryEnemyTama("Tama_std", this.px, this.py, ndata);
this.Angle = this.Angle + (10 * this.sign);
if (this.bCnt == 74) {
this.algNum = 1;
this.bCnt = 0;
this.sign = -this.sign;
if (this.sign == 1) {
this.angle = 0;
} else {
this.angle = 180;
}
}
this.bCnt++;
}
function alg3() {
}
function papaDeath() {
this.jibaku();
}
function hit(ptr) {
this.life--;
if (this.life <= 0) {
this.anmMC.gotoAndPlay("explode");
_parent.manageMC.enemyEntryList.splice(ptr, 1);
}
}
function jibaku() {
this.anmMC.gotoAndPlay("explode");
this.clearEnemyEntryList();
}
function unEntry() {
this.clearEnemyEntryList();
this.clearMC();
}
function clearEnemyEntryList() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
return;
}
i++;
}
}
function clearMC() {
this.removeMovieClip();
}
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
this.px = this._x;
this.py = this._y;
this.adx = 0;
this.ady = 0;
this.life = 20;
this.algNum = 1;
_parent.manageMC.enemyEntryList.push(this);
this.sign = this.initDataList[1];
this.ofs = this.sign;
this.dCnt = 0;
this.bCnt = 0;
if (this.sign == 1) {
this.angle = 0;
} else {
this.angle = 180;
}
Symbol 125 MovieClip [boss1s] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 126 MovieClip [enemy4s] Frame 1
function main() {
if (this.algNum == 0) {
return(undefined);
}
if (this.algNum == 1) {
this.alg1();
}
if (this.algNum == 2) {
this.alg2();
}
if (this.algNum == 3) {
this.alg3();
}
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
this.px = this.px + this.adx;
this.py = this.py + this.ady;
if (this.flashCnt > 0) {
this.theColor.setTransform(_root.ncolorList);
this.flashCnt = 0;
}
}
function alg1() {
var r = ((Math.cos((this.angle2 * Math.PI) / 180) * 20) + 80);
this.px = this.initDataList[0]._x + (Math.cos((this.angle * Math.PI) / 180) * r);
this.py = this.initDataList[0]._y + (Math.sin((this.angle * Math.PI) / 180) * r);
this.angle = this.angle + 5;
this.angle2 = this.angle2 + 5;
if (this.randomInt(120) == 1) {
var ndata = [0, 10];
_parent.manageMC.entryEnemyTama("Tama_laser", this.px, this.py, ndata);
this.theSEkoL.start();
}
}
function alg2() {
}
function alg3() {
}
function papaDeath() {
this.jibaku();
}
function hit(ptr) {
this.life--;
if (this.life <= 0) {
this.algNum = 0;
this.theSEexp01.start();
this.anmMC.gotoAndPlay("explode");
this.papa.deathChild();
_parent.manageMC.enemyEntryList.splice(ptr, 1);
} else {
this.flashCnt = 1;
this.theColor.setTransform(_root.fcolorList);
}
}
function jibaku() {
this.anmMC.gotoAndPlay("explode");
this.clearEnemyEntryList();
}
function unEntry() {
this.clearEnemyEntryList();
this.clearMC();
}
function clearEnemyEntryList() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
return;
}
i++;
}
}
function clearMC() {
this.removeMovieClip();
}
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
this.theColor = new color(this);
this.px = this._x;
this.py = this._y;
this.adx = 0;
this.ady = 0;
this.life = 3;
this.algNum = 1;
_parent.manageMC.enemyEntryList.push(this);
this.angle = this.initDataList[1] * 45;
this.papa = this.initDataList[0];
this.angle2 = 0;
theSEexp01 = new Sound();
theSEexp01.attachSound("SE_exp01");
theSEkoL = new Sound();
theSEkoL.attachSound("SE_koL");
Symbol 126 MovieClip [enemy4s] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 127 MovieClip [enemy4] Frame 1
function main() {
if (this.algNum == 0) {
return(undefined);
}
if (this.algNum == 1) {
this.alg1();
}
if (this.algNum == 2) {
this.alg2();
}
if (this.algNum == 3) {
this.alg3();
}
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
this.px = this.px + this.adx;
this.py = this.py + this.ady;
if (this.flashCnt > 0) {
this.theColor.setTransform(_root.ncolorList);
this.flashCnt = 0;
}
}
function alg1() {
this.px = this.px + ((_parent.playerMC._x - this.px) / 12);
if (this.py > 100) {
this.algNum = 2;
}
}
function alg2() {
var dx = ((_parent.playerMC._x - this.px) / 12);
this.px = this.px + dx;
this.py = 100 + (Math.sin((this.angle * Math.PI) / 180) * 10);
if (dx < -4) {
this.anmMC.gotoAndStop(2);
} else if (this.dx > 4) {
this.anmMC.gotoAndStop(3);
} else {
this.anmMC.gotoAndStop(1);
}
this.angle = this.angle + 10;
if (this.childCnt == 0) {
if (this.dCnt > 10) {
this.algNum = 3;
}
this.dCnt++;
}
}
function alg3() {
ndata = [0, 10];
_parent.manageMC.entryEnemyTama("Tama_std", this.px, this.py, ndata);
ndata = [2, 9];
_parent.manageMC.entryEnemyTama("Tama_std", this.px, this.py, ndata);
ndata = [-2, 9];
_parent.manageMC.entryEnemyTama("Tama_std", this.px, this.py, ndata);
this.dCnt = 0;
this.algNum = 2;
}
function deathChild() {
this.childCnt--;
}
function hit(ptr) {
this.life--;
if (this.life <= 0) {
this.algNum = 0;
this.theSEexp01.start();
i = 0;
while (i < this.childThisList.length) {
this.childThisList[i].papaDeath();
i++;
}
this.anmMC.gotoAndPlay("explode");
_parent.manageMC.enemyEntryList.splice(ptr, 1);
} else {
this.flashCnt = 1;
this.theColor.setTransform(_root.fcolorList);
this.SEhit.start();
}
}
function unEntry() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
break;
}
i++;
}
this.removeMovieClip();
}
function clearMC() {
this.removeMovieClip();
}
this.theColor = new color(this);
this.px = this._x;
this.py = this._y;
this.adx = 0;
this.ady = 5;
this.algNum = 1;
_parent.manageMC.enemyEntryList.push(this);
this.life = 15;
this.angle = 0;
this.dCnt = 0;
this.childThisList = [];
i = 0;
while (i < 8) {
initData = [this, i];
var childThis = _parent.manageMC.entryEnemy("enemy4s", 0, 0, initData);
this.childThisList.push(childThis);
i++;
}
this.childCnt = 8;
theSEexp01 = new Sound();
theSEexp01.attachSound("SE_exp01");
this.SEhit = new Sound();
this.SEhit.attachSound("SE_hit");
Symbol 127 MovieClip [enemy4] Frame 3
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 128 MovieClip [enemy3] Frame 1
function main() {
if (this.algNum == 1) {
this.alg1();
}
if (this.algNum == 2) {
this.alg2();
}
if (this.algNum == 3) {
this.alg3();
}
if (this.algNum != 0) {
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
this.px = this.px + this.adx;
this.py = this.py + this.ady;
}
if (this.flashCnt > 0) {
this.theColor.setTransform(_root.ncolorList);
this.flashCnt = 0;
}
}
function alg1() {
this.ady = this.ady + 1;
if (this.ady == 12) {
this.adx = 0;
this.ady = 0;
this.algNum = 2;
}
if ((this.py < -100) || (this.py > 400)) {
this.unEntry();
}
}
function alg2() {
this.ady = this.ady + 1;
if (this.ady == 12) {
this.adx = 0;
this.ady = 0;
this.algNum = 3;
dx = _parent.playerMC._x - this.px;
if (dx < 0) {
this.direct = -1;
this.anmMC.gotoAndStop(3);
} else {
this.direct = 1;
this.anmMC.gotoAndStop(2);
}
}
if ((this.py < -100) || (this.py > 400)) {
this.unEntry();
}
}
function alg3() {
this.ady = this.ady + 1;
this.adx = this.adx + this.direct;
if (this.ady == 12) {
this.ady = 0;
this.adx = 0;
this.algNum = 1;
this.anmMC.gotoAndStop(1);
}
}
function hit(ptr) {
this.life--;
this.flashCnt = 1;
this.theColor.setTransform(_root.fcolorList);
if (this.life < 0) {
this.anmMC.gotoAndPlay("explode");
this.algNum = 0;
this.theSEexp01.start();
var angle = 0;
i = 0;
while (i < 12) {
var dx = (Math.cos((angle * Math.PI) / 180) * 10);
var dy = (Math.sin((angle * Math.PI) / 180) * 10);
var ndata = [dx, dy];
_parent.manageMC.entryEnemyTama("Tama_std", this.px, this.py, ndata);
angle = angle + 30;
i++;
}
_parent.manageMC.enemyEntryList.splice(ptr, 1);
}
}
function unEntry() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
break;
}
i++;
}
this.removeMovieClip();
}
function clearMC() {
this.removeMovieClip();
}
this.theColor = new color(this);
this.px = this._x;
this.py = this._y;
this.adx = 0;
this.ady = 0;
this.life = 3;
this.algNum = 1;
_parent.manageMC.enemyEntryList.push(this);
theSEexp01 = new Sound();
theSEexp01.attachSound("SE_exp01");
this.direct = 1;
Symbol 128 MovieClip [enemy3] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 129 MovieClip [enemy7] Frame 1
function main() {
if (this.algNum == 1) {
this.alg1();
}
if (this.algNum == 2) {
this.alg2();
}
if (this.algNum == 3) {
this.alg3();
}
if (this.algNum != 0) {
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
if (this.flashCnt > 0) {
this.theColor.setTransform(_root.ncolorList);
this.flashCnt = 0;
}
if (this.py > 500) {
this.unEntry();
}
}
function alg1() {
this.ady++;
this.px = this.px + this.adx;
this.py = this.py + this.ady;
if (this.py > 350) {
this.algNum = 2;
this.ady = -25;
}
}
function alg2() {
this.ady++;
this.px = this.px - ((this.px - _parent.playerMC._x) / 16);
this.py = this.py + this.ady;
if (this.ady == 0) {
this.algNum = 3;
}
}
function alg3() {
this.ady++;
this.px = this.px - ((this.px - _parent.playerMC._x) / 32);
this.py = this.py + this.ady;
}
function hit(ptr) {
this.life--;
this.flashCnt = 1;
this.theColor.setTransform(_root.fcolorList);
if (this.life < 0) {
this.anmMC.gotoAndPlay("explode");
this.algNum = 0;
this.theSEexp01.start();
var ndata = [5, 10];
_parent.manageMC.entryEnemyTama("Tama_std", this.px, this.py, ndata);
var ndata = [-5, 10];
_parent.manageMC.entryEnemyTama("Tama_std", this.px, this.py, ndata);
_parent.manageMC.enemyEntryList.splice(ptr, 1);
}
}
function unEntry() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
break;
}
i++;
}
this.removeMovieClip();
}
function clearMC() {
this.removeMovieClip();
}
this.theColor = new color(this);
this.px = this._x;
this.py = this._y;
this.adx = 0;
this.ady = 0;
this.life = 2;
this.algNum = 1;
_parent.manageMC.enemyEntryList.push(this);
theSEexp01 = new Sound();
theSEexp01.attachSound("SE_exp01");
this.dCnt = 0;
this.myAngle = 0;
Symbol 129 MovieClip [enemy7] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this._alpha = this.alpha;
this.gotoAndPlay(_currentframe - 1);
Symbol 142 MovieClip Frame 12
this.stop();
Symbol 142 MovieClip Frame 40
_parent.removeMovieClip();
Symbol 143 MovieClip [enemy2] Frame 1
function main() {
if (this.algNum == 1) {
this.alg1();
}
if (this.algNum == 2) {
this.alg2();
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
if (this.algNum == 3) {
this.alg3();
}
if (this.flashCnt > 0) {
this.theColor.setTransform(_root.ncolorList);
this.flashCnt = 0;
}
}
function alg1() {
if (this.alpha >= 100) {
_parent.manageMC.enemyEntryList.push(this);
this.algNum = 2;
}
this.alpha = this.alpha + 5;
}
function alg2() {
this.px = this.px + this.adx;
this.py = this.py + this.ady;
this.adx = this.adx * 1.05;
this.ady = this.ady * 1.05;
if ((this.px < -10) || (this.px > 600)) {
this.unEntry();
}
if ((this.py < -10) || (this.py > 400)) {
this.unEntry();
}
}
function alg3() {
}
function hit(ptr) {
this.flashCnt = 1;
this.theColor.setTransform(_root.fcolorList);
this.anmMC.gotoAndPlay("explode");
this.algNum = 0;
this.theSEexp01.start();
_parent.manageMC.enemyEntryList.splice(ptr, 1);
}
function unEntry() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
break;
}
i++;
}
this.removeMovieClip();
}
function clearMC() {
this.removeMovieClip();
}
this.theColor = new color(this);
this.px = this._x;
this.py = this._y;
this.adx = 0;
this.ady = 0;
this.algNum = 1;
theSEexp01 = new Sound();
theSEexp01.attachSound("SE_exp01");
this._alpha = 0;
var dx = (_parent.playerMC._x - this.px);
var dy = (_parent.playerMC._y - this.py);
var r = Math.atan2(dy, dx);
k = r / (Math.PI/180);
this.adx = Math.cos((k * Math.PI) / 180) * 5;
this.ady = Math.sin((k * Math.PI) / 180) * 5;
this._rotation = k - 90;
Symbol 143 MovieClip [enemy2] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this._alpha = this.alpha;
this.gotoAndPlay(_currentframe - 1);
Symbol 144 MovieClip [enemy9] Frame 1
function main() {
switch (this.algNum) {
case 1 :
this.alg1();
break;
case 2 :
this.alg2();
break;
case 3 :
this.alg3();
break;
case 4 :
this.alg4();
break;
case 5 :
this.alg5();
}
if (this.algNum != 0) {
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
if (this.flashCnt > 0) {
this.theColor.setTransform(_root.ncolorList);
this.flashCnt = 0;
}
}
function alg1() {
this.px = this.px + this.adx;
this.py = this.py + this.ady;
if (this.px < 50) {
this.px = 50;
this.adx = -this.adx;
}
if (this.px > 500) {
this.px = 500;
this.adx = -this.adx;
}
if (this.py > 300) {
this.algNum = 2;
}
}
function alg2() {
this.anmMC.gotoAndPlay("nari");
if (this.px > 275) {
this.adx = -15;
} else {
this.adx = 15;
}
this.ady = -15;
this.algNum = 3;
}
function alg3() {
this.px = this.px + this.adx;
this.py = this.py + this.ady;
if (this.px < 50) {
this.px = 50;
this.adx = -this.adx;
}
if (this.px > 500) {
this.px = 500;
this.adx = -this.adx;
}
this.adx = this.adx * 0.95;
this.ady = this.ady * 0.95;
if (Math.abs(this.adx) < 1) {
this.pAngle = 0;
this.algNum = 4;
}
}
function alg4() {
this.pAngle = this.pAngle + 25;
var ndx = (Math.sin((this.pAngle * Math.PI) / 180) * 6);
var ndy = (Math.cos((this.pAngle * Math.PI) / 180) * 2);
ndata = [ndx, Math.abs(ndy) + 4];
_parent.manageMC.entryEnemyTama("Tama_kaku3", this.px, this.py, ndata);
this.pCnt++;
this._rotation = this.pAngle;
if (this.pCnt > 20) {
this.algNum = 5;
this.ady = -1;
this._rotation = 0;
}
}
function alg5() {
this.ady = this.ady * 1.01;
this.py = this.py + this.ady;
if ((this.px < -10) || (this.px > 560)) {
this.unEntry();
}
if ((this.py < -100) || (this.py > 560)) {
this.unEntry();
}
}
function alg10() {
}
function hit(ptr) {
this.life--;
if (this.algNum == 1) {
this.py = this.py - 20;
}
if (this.life < 0) {
this.theSEexp01.start();
this.anmMC.gotoAndPlay("explode");
this.algNum = 0;
_parent.manageMC.enemyEntryList.splice(ptr, 1);
} else {
this.flashCnt = 1;
this.theColor.setTransform(_root.fcolorList);
this.SEhit.start();
}
}
function unEntry() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
break;
}
i++;
}
this.removeMovieClip();
}
function clearMC() {
this.removeMovieClip();
}
this.theColor = new color(this);
this.px = this._x;
this.py = this._y;
this.ady = 5;
this.life = 30;
if (this.px > 275) {
this.adx = -5;
} else {
this.adx = 5;
}
this.algNum = 1;
_parent.manageMC.enemyEntryList.push(this);
theSEexp01 = new Sound();
theSEexp01.attachSound("SE_exp01");
this.SEhit = new Sound();
this.SEhit.attachSound("SE_hit");
this.pCnt = 0;
this.pCnt2 = 0;
this.pAnlge = 0;
Symbol 144 MovieClip [enemy9] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 154 MovieClip Frame 1
this.stop();
Symbol 154 MovieClip Frame 30
this.stop();
Symbol 154 MovieClip Frame 60
_parent.removeMovieClip();
Symbol 155 MovieClip [enemy8] Frame 1
function main() {
if (this.algNum == 1) {
this.alg1();
}
if (this.algNum == 2) {
this.alg2();
}
if (this.algNum == 3) {
this.alg3();
}
if (this.algNum == 4) {
this.alg4();
}
if (this.algNum != 0) {
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
this.px = this.px + this.adx;
this.py = this.py + this.ady;
}
if (this.flashCnt > 0) {
this.theColor.setTransform(_root.ncolorList);
this.flashCnt = 0;
}
}
function alg1() {
var dx = (_parent.playerMC._x - this.px);
var dy = (_parent.playerMC._y - this.py);
var r = Math.atan2(dy, dx);
k = r / (Math.PI/180);
this.adx = Math.cos((k * Math.PI) / 180) * 30;
this.ady = Math.sin((k * Math.PI) / 180) * 30;
this.algNum = 2;
this.pAngle = k - 90;
this._rotation = this.pAngle;
this.pCnt2++;
if (this.pCnt2 > 5) {
this.algNum = 4;
}
}
function alg2() {
this.adx = this.adx * 0.9;
this.ady = this.ady * 0.9;
if ((Math.abs(this.adx) < 1) && (Math.abs(this.ady) < 1)) {
this.algNum = 3;
this.pCnt = 0;
this.theSEkakuL.start();
}
}
function alg3() {
this.pAngle = this.pAngle + 30;
var ndx = ((-Math.sin((this.pAngle * Math.PI) / 180)) * 5);
var ndy = (Math.cos((this.pAngle * Math.PI) / 180) * 5);
ndata = [ndx, ndy, this.pAngle];
_parent.manageMC.entryEnemyTama("Tama_kaku2", this.px, this.py, ndata);
this.pCnt++;
this._rotation = this.pAngle;
if (this.pCnt > 11) {
this.algNum = 1;
}
}
function alg4() {
this.adx = this.adx * 1.01;
this.ady = this.ady * 1.01;
if ((this.px < -10) || (this.px > 560)) {
this.unEntry();
}
if ((this.py < -100) || (this.py > 560)) {
this.unEntry();
}
}
function hit(ptr) {
this.life--;
if (this.life < 0) {
this.anmMC.gotoAndPlay("explode");
this.algNum = 0;
this.theSEexp01.start();
_parent.manageMC.enemyEntryList.splice(ptr, 1);
_parent.manageMC.gotoAndPlay(505);
} else {
this.flashCnt = 1;
this.theColor.setTransform(_root.fcolorList);
this.SEhit.start();
}
}
function unEntry() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
break;
}
i++;
}
this.removeMovieClip();
}
function clearMC() {
this.removeMovieClip();
}
this.theColor = new color(this);
this.px = this._x;
this.py = this._y;
this.adx = 0;
this.ady = 0;
this.life = 20;
this.algNum = 1;
_parent.manageMC.enemyEntryList.push(this);
theSEexp01 = new Sound();
theSEexp01.attachSound("SE_exp01");
theSEkakuL = new Sound();
theSEkakuL.attachSound("SE_kakuL");
this.SEhit = new Sound();
this.SEhit.attachSound("SE_hit");
this.pCnt = 0;
this.pCnt2 = 0;
this.pAnlge = 0;
Symbol 155 MovieClip [enemy8] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 167 MovieClip Frame 33
this.gotoAndPlay(1);
Symbol 167 MovieClip Frame 63
_parent.removeMovieClip();
Symbol 168 MovieClip [enemy10] Frame 1
function main() {
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
this.py = this.py + this.ady;
if (this.py > 450) {
this.unEntry();
}
if (this.flashCnt > 0) {
this.theColor.setTransform(_root.ncolorList);
this.flashCnt = 0;
}
}
function alg1() {
}
function hit(ptr) {
this.life--;
this.py = this.py - 8;
this.flashCnt = 1;
this.theColor.setTransform(_root.fcolorList);
this.SEhit.start();
if (_root.hardFlg) {
var dx = (_root.playerMC._x - this._x);
var dy = (_root.playerMC._y - this._y);
var r = Math.atan2(dy, dx);
var k = (r / (Math.PI/180));
var ndx = (Math.cos((k * Math.PI) / 180) * 15);
var ndy = (Math.sin((k * Math.PI) / 180) * 15);
ndata = [ndx, ndy];
_root.manageMC.entryEnemyTama("Tama_std", this._x, this._y, ndata);
}
if (this.life < 0) {
this.theSEexp01.start();
this.anmMC.gotoAndPlay("explode");
this.algNum = 0;
_parent.manageMC.enemyEntryList.splice(ptr, 1);
}
}
function unEntry() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
break;
}
i++;
}
this.removeMovieClip();
}
function clearMC() {
this.removeMovieClip();
}
this.theColor = new color(this);
this.px = this._x;
this.py = this._y;
this.adx = 0;
this.ady = 3;
this.algNum = 1;
this.life = 256;
_parent.manageMC.enemyEntryList.push(this);
theSEexp01 = new Sound();
theSEexp01.attachSound("SE_exp01");
this.SEhit = new Sound();
this.SEhit.attachSound("SE_hit");
Symbol 168 MovieClip [enemy10] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 169 MovieClip [enemy1] Frame 1
function main() {
if (this.algNum == 1) {
this.alg1();
}
if (this.algNum == 2) {
this.alg2();
}
if (this.algNum == 3) {
this.alg3();
}
if (this.algNum == 4) {
this.alg4();
}
if (this.algNum != 0) {
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
this.px = this.px + this.adx;
this.py = this.py + this.ady;
}
if (this.flashCnt > 0) {
this.theColor.setTransform(_root.ncolorList);
this.flashCnt = 0;
}
}
function alg1() {
this.ady = (this.btmLineY - this.py) / 10;
if (Math.abs(this.py - this.btmLineY) < 20) {
this.ady = 0;
this.algNum = 2;
}
}
function alg2() {
this.anmMC.gotoAndPlay("nari");
this.algNum = 3;
}
function alg3() {
var dx = (_parent.playerMC._x - this.px);
var dy = (_parent.playerMC._y - this.py);
var r = Math.atan2(dy, dx);
k = r / (Math.PI/180);
this.adx = Math.cos((k * Math.PI) / 180) * 5;
this.ady = Math.sin((k * Math.PI) / 180) * 5;
this.algNum = 4;
this._rotation = k - 90;
}
function alg4() {
this.adx = this.adx * 1.05;
this.ady = this.ady * 1.05;
if (this.py < -10) {
this.unEntry();
}
if ((this.px < -10) || (this.px > 560)) {
this.unEntry();
}
if ((this.py < -100) || (this.py > 560)) {
this.unEntry();
}
}
function hit(ptr) {
this.flashCnt = 1;
this.theColor.setTransform(_root.fcolorList);
this.anmMC.gotoAndPlay("explode");
this.algNum = 0;
this.theSEexp01.start();
_parent.manageMC.enemyEntryList.splice(ptr, 1);
}
function unEntry() {
i = 0;
while (i < _parent.manageMC.enemyEntryList.length) {
if (this == _parent.manageMC.enemyEntryList[i]) {
_parent.manageMC.enemyEntryList.splice(i, 1);
break;
}
i++;
}
this.removeMovieClip();
}
function clearMC() {
this.removeMovieClip();
}
this.theColor = new color(this);
this.px = this._x;
this.py = this._y;
this.adx = 0;
this.ady = 0;
this.algNum = 1;
_parent.manageMC.enemyEntryList.push(this);
theSEexp01 = new Sound();
theSEexp01.attachSound("SE_exp01");
this.btmLineY = 250;
Symbol 169 MovieClip [enemy1] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 171 MovieClip [Tama_kei] Frame 1
function main() {
this.hitCheckPlayer();
this.unEntryCheck();
switch (this.algNum) {
case 1 :
this.alg1();
break;
case 2 :
this.alg2();
break;
case 3 :
this.alg3();
}
this.px = this.px + this.adx;
this.py = this.py + this.ady;
}
function alg1() {
this.ady = this.ady + 1;
if (this.ady == 12) {
this.adx = 0;
this.ady = 0;
this.algNum = 2;
}
}
function alg2() {
this.ady = this.ady + 1;
if (this.ady == 12) {
this.adx = 0;
this.ady = 0;
this.algNum = 3;
}
}
function alg3() {
this.ady = this.ady + 1;
this.adx = this.adx + this.direct;
if (this.ady == 12) {
this.ady = 0;
this.adx = 0;
this.algNum = 1;
}
}
function unEntryCheck() {
if ((this.px < -10) || (this.px > 600)) {
this.unEntry();
}
if ((this.py < -10) || (this.py > 450)) {
this.unEntry();
}
}
function hitCheckPlayer() {
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
function unEntry() {
this.removeMovieClip();
}
function clearMC() {
this.removeMovieClip();
}
this.px = this._x;
this.py = this._y;
this.adx = 0;
this.ady = 0;
this.algNum = 1;
this.dCnt = 0;
this.direct = this.initDataList[0];
Symbol 171 MovieClip [Tama_kei] Frame 3
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 172 MovieClip [Tama_gin] Frame 1
function main() {
this.hitCheckPlayer();
this.unEntryCheck();
switch (this.algNum) {
case 1 :
this.alg1();
return;
case 2 :
this.alg2();
return;
case 3 :
this.alg3();
}
}
function alg1() {
this.px = this.px + this.adx;
this.py = this.py + this.ady;
this.adx = this.adx * 0.95;
this.ady = this.ady * 0.95;
if ((Math.abs(this.adx) < 1) && (Math.abs(this.ady) < 1)) {
this.algNum = 2;
}
}
function alg2() {
var dx = (_parent.playerMC._x - this.px);
var dy = (_parent.playerMC._y - this.py);
var r = Math.atan2(dy, dx);
k = r / (Math.PI/180);
this.pAngle = k - 90;
this._rotation = this.pAngle;
this.adx = Math.cos((k * Math.PI) / 180) * 20;
this.ady = Math.sin((k * Math.PI) / 180) * 20;
this.algNum = 3;
}
function alg3() {
this.px = this.px + this.adx;
this.py = this.py + this.ady;
}
function unEntryCheck() {
if ((this.px < -150) || (this.px > 700)) {
this.unEntry();
}
if ((this.py < -10) || (this.py > 450)) {
this.unEntry();
}
}
function hitCheckPlayer() {
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
function unEntry() {
this.removeMovieClip();
}
function clearMC() {
this.removeMovieClip();
}
this.px = this._x;
this.py = this._y;
this.adx = this.initDataList[0];
this.ady = this.initDataList[1];
this.algNum = 1;
this.dCnt = 0;
Symbol 172 MovieClip [Tama_gin] Frame 3
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 174 MovieClip [Tama_kaku3] Frame 1
function main() {
this.hitCheckPlayer();
this.unEntryCheck();
this.px = this.px + this.adx;
this.py = this.py + this.ady;
this._rotation = this._rotation + 30;
}
function unEntryCheck() {
if (this.px < 20) {
this.px = 20;
this.adx = -this.adx;
}
if (this.px > 530) {
this.px = 530;
this.adx = -this.adx;
}
if ((this.py < -10) || (this.py > 410)) {
this.unEntry();
}
}
function hitCheckPlayer() {
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
function unEntry() {
this.removeMovieClip();
}
function clearMC() {
this.removeMovieClip();
}
this.px = this._x;
this.py = this._y;
this.adx = this.initDataList[0];
this.ady = this.initDataList[1];
Symbol 174 MovieClip [Tama_kaku3] Frame 3
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 175 MovieClip [Tama_kaku2] Frame 1
function main() {
this.hitCheckPlayer();
this.unEntryCheck();
this.px = this.px + this.adx;
this.py = this.py + this.ady;
this.adx = this.adx * 1.05;
this.ady = this.ady * 1.05;
}
function unEntryCheck() {
if ((this.px < -10) || (this.px > 560)) {
this.unEntry();
}
if ((this.py < -10) || (this.py > 410)) {
this.unEntry();
}
}
function hitCheckPlayer() {
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
function unEntry() {
this.removeMovieClip();
}
function clearMC() {
this.removeMovieClip();
}
this.px = this._x;
this.py = this._y;
this.adx = this.initDataList[0];
this.ady = this.initDataList[1];
this._rotation = this.initDataList[2];
Symbol 175 MovieClip [Tama_kaku2] Frame 3
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 177 MovieClip [Tama_kaku] Frame 1
function main() {
this.hitCheckPlayer();
this.unEntryCheck();
this.px = this.px + this.adx;
this.py = this.py + this.ady;
this.adx = this.adx * 1.05;
this.ady = this.ady * 1.05;
}
function unEntryCheck() {
if ((this.px < -10) || (this.px > 560)) {
this.unEntry();
}
if ((this.py < -10) || (this.py > 410)) {
this.unEntry();
}
}
function hitCheckPlayer() {
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
function unEntry() {
this.removeMovieClip();
}
function clearMC() {
this.removeMovieClip();
}
this.px = this._x;
this.py = this._y;
this.adx = this.initDataList[0];
this.ady = this.initDataList[1];
Symbol 177 MovieClip [Tama_kaku] Frame 3
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 179 MovieClip [Tama_laser] Frame 1
function main() {
this.hitCheckPlayer();
this.unEntryCheck();
this.px = this.px + this.adx;
this.py = this.py + this.ady;
}
function unEntryCheck() {
if ((this.px < -10) || (this.px > 600)) {
this.unEntry();
}
if ((this.py < -10) || (this.py > 450)) {
this.unEntry();
}
}
function hitCheckPlayer() {
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
function unEntry() {
this.removeMovieClip();
}
function clearMC() {
this.removeMovieClip();
}
this.px = this._x;
this.py = this._y;
this.adx = this.initDataList[0];
this.ady = this.initDataList[1];
Symbol 179 MovieClip [Tama_laser] Frame 3
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 181 MovieClip [Tama_sin] Frame 1
function main() {
this.hitCheckPlayer();
this.unEntryCheck();
this.adx = Math.cos((this.angle * Math.PI) / 180) * this.r;
this.r++;
this.angle = this.angle + 10;
this.px = this.px + this.adx;
this.py = this.py + this.ady;
}
function unEntryCheck() {
if ((this.px < -10) || (this.px > 600)) {
this.unEntry();
}
if ((this.py < -10) || (this.py > 400)) {
this.unEntry();
}
}
function hitCheckPlayer() {
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
function unEntry() {
this.removeMovieClip();
}
function clearMC() {
this.removeMovieClip();
}
this.px = this._x;
this.py = this._y;
this.adx = this.initDataList[0];
this.ady = this.initDataList[1];
this.angle = this.initDataList[2];
Symbol 181 MovieClip [Tama_sin] Frame 3
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 183 MovieClip [Tama_std] Frame 1
function main() {
this.hitCheckPlayer();
this.unEntryCheck();
this.px = this.px + this.adx;
this.py = this.py + this.ady;
}
function unEntryCheck() {
if ((this.px < -10) || (this.px > 560)) {
this.unEntry();
}
if ((this.py < -10) || (this.py > 410)) {
this.unEntry();
}
}
function hitCheckPlayer() {
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
function unEntry() {
this.removeMovieClip();
}
function clearMC() {
this.removeMovieClip();
}
this.px = this._x;
this.py = this._y;
this.adx = this.initDataList[0];
this.ady = this.initDataList[1];
Symbol 183 MovieClip [Tama_std] Frame 3
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 184 MovieClip [Tama_nerau] Frame 1
function main() {
this.hitCheckPlayer();
this.unEntryCheck();
this.px = this.px + this.adx;
this.py = this.py + this.ady;
}
function unEntryCheck() {
if ((this.px < -10) || (this.px > 600)) {
this.unEntry();
}
if ((this.py < -10) || (this.py > 450)) {
this.unEntry();
}
}
function hitCheckPlayer() {
if (this.hitTest(_parent.playerMC._x, _parent.playerMC._y)) {
_parent.playerMC.hit();
}
}
function unEntry() {
this.removeMovieClip();
}
function clearMC() {
this.removeMovieClip();
}
this.px = this._x;
this.py = this._y;
var dx = (_parent.playerMC._x - this.px);
var dy = (_parent.playerMC._y - this.py);
var r = Math.atan2(dy, dx);
k = r / (Math.PI/180);
this.adx = Math.cos((k * Math.PI) / 180) * 5;
this.ady = Math.sin((k * Math.PI) / 180) * 5;
Symbol 184 MovieClip [Tama_nerau] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 191 MovieClip Frame 1
_parent.stop();
this.startTime = getTimer();
Symbol 191 MovieClip Frame 3
if (this.stayTime <= (getTimer() - this.startTime)) {
_parent.play();
this.stop();
} else {
this.gotoAndPlay(_currentframe - 1);
}
Symbol 192 MovieClip [gameover] Frame 61
i = 0;
while (i < _root.manageMC.enemyEntryList.length) {
nThis = _root.manageMC.enemyEntryList[i];
nThis.clearMC();
i++;
}
Instance of Symbol 191 MovieClip in Symbol 192 MovieClip [gameover] Frame 62
//component parameters
onClipEvent (initialize) {
stayTime = 2000;
}
Symbol 192 MovieClip [gameover] Frame 63
this.manageMC.removeMovieClip();
_root.gotoAndPlay("title");
this.removeMovieClip();
this.stop();
Symbol 203 MovieClip [ending] Frame 1
if (_root.hardFlg) {
this.gotoAndPlay("endHard");
}
Symbol 203 MovieClip [ending] Frame 11
this.scrMC._y--;
if (this.scrMC._y > -520) {
this.gotoAndPlay(_currentframe - 1);
}
Instance of Symbol 191 MovieClip in Symbol 203 MovieClip [ending] Frame 12
//component parameters
onClipEvent (initialize) {
stayTime = 2000;
}
Symbol 203 MovieClip [ending] Frame 31
_root.stageNum = 1;
_root.LastPlayerNum = 8;
_root.hardFlg = true;
_root.gotoAndPlay("stageDisp");
this.removeMovieClip();
this.stop();
Symbol 203 MovieClip [ending] Frame 50
this.scrMC._y--;
if (this.scrMC._y > -520) {
this.gotoAndPlay(_currentframe - 1);
}
Instance of Symbol 191 MovieClip in Symbol 203 MovieClip [ending] Frame 51
//component parameters
onClipEvent (initialize) {
stayTime = 2000;
}
Instance of Symbol 191 MovieClip in Symbol 203 MovieClip [ending] Frame 86
//component parameters
onClipEvent (initialize) {
stayTime = 2000;
}
Instance of Symbol 191 MovieClip in Symbol 203 MovieClip [ending] Frame 108
//component parameters
onClipEvent (initialize) {
stayTime = 3000;
}
Symbol 203 MovieClip [ending] Frame 130
_root.gotoAndPlay("title");
this.removeMovieClip();
this.stop();
Symbol 206 MovieClip [stageClear] Frame 60
_root.playerMC.gotoAndPlay("clear");
Symbol 206 MovieClip [stageClear] Frame 110
_root.StageNum++;
if (_root.StageNum > 3) {
_root.gotoAndPlay("ending");
} else {
_root.gotoAndPlay("stageDisp");
_root.playerMC.gotoAndPlay("in");
_root.bgMC.startScr();
_root.bg2MC.startScr();
}
this.removeMovieClip();
this.stop();
Symbol 212 MovieClip Frame 9
var versionNum = getVersion().slice(4, 5);
if (Number(versionNum) >= 6) {
this.gotoAndPlay("ok");
} else {
this.gotoAndPlay("ng");
}
Symbol 212 MovieClip Frame 19
this.stop();
_parent.gotoAndPlay("loading");
Symbol 212 MovieClip Frame 25
this.stop();
Symbol 218 MovieClip Frame 1
loadedSize = _root.getBytesLoaded();
totalSize = _root.getBytesTotal();
if (loadedSize >= totalSize) {
this.gotoAndPlay("ok");
} else {
parcent = (loadedsize / totalsize) * 100;
gDownloaded = Math.round(parcent);
this.bar._width = 300 * (gDownloaded / 100);
_root.stop();
}
Symbol 218 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 218 MovieClip Frame 5
this.bar._width = 300;
Symbol 218 MovieClip Frame 19
_root.gotoAndPlay("init");
Symbol 224 Button
on (press) {
_root.gotoAndPlay("StageDisp");
}
Symbol 227 Button
on (press) {
_root.hardFlg = true;
_root.gotoAndPlay("StageDisp");
}
Symbol 228 MovieClip Frame 1
if (_root.clearFlg) {
this.gotoAndStop(10);
} else {
this.gotoAndStop(5);
}
Symbol 230 MovieClip Frame 1
function scr(n) {
this._y = this._y + n;
if (this._y > 600) {
d = this._y - 600;
this._y = -200 + d;
}
}
function stopScr() {
this.scrStopFlg = true;
}
function startScr() {
this.scrStopFlg = false;
this.play();
}
function setScrSpeed(n) {
this.scrSpeed = n;
}
this.scrSpeed = 4;
this.scrStopFlg = false;
Symbol 230 MovieClip Frame 3
if (this.scrStopFlg) {
this.scrSpeed = ths.scrSpeed * 0.95;
}
this.scr(this.scrSpeed);
if (Math.abs(scrSpeed) < 1) {
this.stop();
} else {
this.gotoAndPlay(_currentframe - 1);
}
Symbol 237 MovieClip Frame 1
function main() {
switch (this.stat) {
case 1 :
this.fadeIn();
return;
case 2 :
this.stayFrame();
return;
case 3 :
this.fadeOut();
}
}
function fadeIn() {
this.alphaRate = this.alphaRate + 10;
if (this.alphaRate > 100) {
this.alphaRate = 100;
this.stat = 2;
}
this._alpha = this.alphaRate;
}
function stayFrame() {
this.dCnt++;
if (this.dCnt == 50) {
this.stat = 3;
_root.playerMC.gotoAndPlay("drive");
}
}
function fadeOut() {
this.alphaRate = this.alphaRate - 10;
if (this.alphaRate < 0) {
this.alphaRate = 0;
this.stat = 0;
_root.gotoAndPlay(30);
}
this._alpha = this.alphaRate;
}
this.alphaRate = 0;
this._alpha = 0;
this.stat = 1;
this.dCnt = 0;
switch (_root.stageNum) {
case 1 :
gotoAndPlay (10);
break;
case 2 :
gotoAndPlay (20);
break;
case 3 :
gotoAndPlay (30);
}
Symbol 237 MovieClip Frame 15
this.main();
this.gotoAndPlay(_currentframe - 1);
Symbol 237 MovieClip Frame 25
this.main();
this.gotoAndPlay(_currentframe - 1);
Symbol 237 MovieClip Frame 35
this.main();
this.gotoAndPlay(_currentframe - 1);
Symbol 244 MovieClip Frame 1
this.stop();
Symbol 244 MovieClip Frame 10
_root.lastPlayerNum--;
_root.lifeMC.gotoAndStop(_root.lastPlayerNum + 10);
if (_root.lastPlayerNum > 0) {
_parent.mutekiCnt = 20;
this.gotoAndPlay("muteki");
} else {
_parent.mutekiCnt = 20;
_root.gotoAndStop("gameover");
}
Symbol 244 MovieClip Frame 19
this.stop();
Symbol 244 MovieClip Frame 25
if (_parent.mutekiCnt > 0) {
_parent.mutekiCnt--;
this.gotoAndPlay("muteki");
} else {
_parent.explodeFlg = false;
this.gotoAndStop(1);
}
Symbol 245 MovieClip Frame 1
function setTamaMC(nSetcnt) {
i = 0;
while (i < nSetCnt) {
tName = "t" + String(i);
_root.attachMovie("playerTAMA", tName, i);
_root[tName]._y = 0;
_root[tName]._x = 0;
i++;
}
}
function main() {
this.px = _root._xmouse;
this.py = _root._ymouse;
if (this.px < 20) {
this.px = 20;
}
if (this.px > 530) {
this.px = 540;
}
if (this.py < 0) {
this.py = 0;
}
if (this.py > 380) {
this.py = 380;
}
dx = this.px - this.oldpx;
if (this.explodeFlg) {
return(undefined);
}
if (Math.abs(dx) < 4) {
this.anmMC.gotoAndStop(1);
} else if (dx < 0) {
if (dx < -8) {
this.anmMC.gotoAndStop(3);
} else {
this.anmMC.gotoAndStop(2);
}
} else if (dx > 8) {
this.anmMC.gotoAndStop(5);
} else {
this.anmMC.gotoAndStop(4);
}
this.oldpx = this.px;
}
function autoShot() {
if (this.shotCnt > 2) {
this.shot();
this.shotCnt = 0;
}
this.shotCnt++;
}
function shot() {
var tName = ("t" + String(this.tNum));
_root[tName].entry(this.px, this.py, 0, -20);
this.tNum++;
if (this.tNum > this.tMaxCnt) {
this.tNum = 0;
}
}
function hit() {
if (this.mutekiCnt == 0) {
this.SEhit.start();
_root.nomissFlg = false;
this.explodeFlg = true;
this.anmMC.gotoAndPlay("explode");
}
}
function clearAutoMove() {
this.py = this.py + this.ady;
this.ady = this.ady - 2;
this._x = this.px;
this._y = this.py;
}
function inAutoMove() {
this.ady = this.ady + 1;
this._x = this.px;
this._y = this.py;
if (this.ady < 13) {
this.py = this.py + this.ady;
}
}
this._name = "playerMC";
this.px = 300;
this.py = 200;
this.mutekiCnt = 0;
this.explodeFlg = false;
this.tMaxCnt = 9;
this.tNum = 0;
this.shotCnt = 0;
this.oldpx = this.px;
this.oldpy = this.py;
this.autoShotFlg = false;
this.SEhit = new Sound();
this.SEhit.attachSound("SE_hit");
this.setTamaMC(this.tMaxCnt);
this.gotoAndPlay("in");
Symbol 245 MovieClip Frame 5
if (_root.lastPlayerNum > 0) {
this.main();
if (this.autoShotFlg) {
this.autoShot();
}
this._x = this.px;
this._y = this.py;
} else {
this.px = 275;
}
this.gotoAndPlay(_currentframe - 1);
Symbol 245 MovieClip Frame 15
this.ady = -25;
this.px = 275;
this.py = 500;
Symbol 245 MovieClip Frame 20
this.inAutoMove();
this.gotoAndPlay(_currentframe - 1);
Symbol 245 MovieClip Frame 30
this.ady = 8;
Symbol 245 MovieClip Frame 35
this.clearAutoMove();
this.gotoAndPlay(_currentframe - 1);
Symbol 255 MovieClip Frame 1
this.stop();
Symbol 260 MovieClip Frame 1
if (this.graFlg == true) {
this.gotoAndPlay("gra");
}
Symbol 260 MovieClip Frame 2
d = getTimer() - this.preTime;
this.fps = Math.round(1000 / d);
this.preTime = getTimer();
this.gotoAndPlay(_currentframe - 1);
Symbol 260 MovieClip Frame 11
d = getTimer() - this.preTime;
this.fps = Math.round(1000 / d);
this.preTime = getTimer();
this.gotoAndPlay(_currentframe - 1);
this.gBarMC._width = 100 * (this.fps / this.basefps);