Frame 1
var loadedSize = _root.getBytesLoaded();
var totalSize = _root.getBytesTotal();
if (totalSize <= loadedSize) {
_root.gGage._width = (loadedSize / totalSize) * 224;
_root.gotoAndPlay("loaded");
} else {
_root.gGage._width = (loadedSize / totalSize) * 224;
}
Frame 5
this.gotoAndPlay("loading");
Frame 20
_root.gotoAndPlay("title");
Instance of Symbol 30 MovieClip in Frame 21
onClipEvent (load) {
if (_root.gMuteFlag) {
this.gotoAndPlay("on");
} else {
this.gotoAndPlay("off");
}
}
Frame 44
gotoAndPlay ("kanban0");
Frame 68
gotoAndPlay ("kanban1");
Frame 92
gotoAndPlay ("kanban2");
Frame 116
gotoAndPlay ("kanban3");
Frame 165
gotoAndPlay ("cutBack");
Instance of Symbol 30 MovieClip in Frame 166
onClipEvent (load) {
if (_root.gMuteFlag) {
this.gotoAndPlay("on");
} else {
this.gotoAndPlay("off");
}
}
Frame 187
gotoAndPlay ("buta1");
Frame 209
gotoAndPlay ("buta2");
Frame 231
gotoAndPlay ("buta3");
Frame 253
gotoAndPlay ("buta4");
Frame 254
_root.gSound0 = new Sound();
_root.gSound1 = new Sound();
_root.gSound2 = new Sound();
_root.gSound3 = new Sound();
_root.gSound4 = new Sound();
_root.gHighScore = 0;
_root.gMuteFlag = false;
_root.gSound0.stop();
_root.gSound0.attachSound("bgmButa");
_root.gSound0.start(0, 4);
gotoAndPlay ("buta0");
Frame 264
_root.gSound0.stop();
_root.gSound0.attachSound("bgmCutBack");
_root.gSound0.start(0, 99);
Instance of Symbol 64 MovieClip in Frame 264
onClipEvent (mouseUp) {
_root.gotoAndPlay("titleScreen");
}
Instance of Symbol 30 MovieClip in Frame 264
onClipEvent (load) {
if (_root.gMuteFlag) {
this.gotoAndPlay("on");
} else {
this.gotoAndPlay("off");
}
}
Frame 298
stop();
Frame 299
stop();
Instance of Symbol 30 MovieClip in Frame 299
onClipEvent (load) {
if (_root.gMuteFlag) {
this.gotoAndPlay("on");
} else {
this.gotoAndPlay("off");
}
}
Frame 300
stop();
Instance of Symbol 153 MovieClip "gHero" in Frame 301
onClipEvent (load) {
pState = "VOID";
}
onClipEvent (mouseDown) {
this.pMouseTrigger = true;
}
onClipEvent (mouseUp) {
this.pMouseRelease = true;
}
Instance of Symbol 154 MovieClip "gCrane" in Frame 301
onClipEvent (load) {
pState = "VOID";
}
Instance of Symbol 156 MovieClip "gGround0" in Frame 301
onClipEvent (load) {
this.pX = -100;
this.pY = -100;
this.pHalfWidth = 64;
}
Instance of Symbol 156 MovieClip "gGround1" in Frame 301
onClipEvent (load) {
this.pX = -100;
this.pY = -100;
this.pHalfWidth = 64;
}
Instance of Symbol 156 MovieClip "gGround2" in Frame 301
onClipEvent (load) {
this.pX = -100;
this.pY = -100;
this.pHalfWidth = 64;
}
Instance of Symbol 156 MovieClip "gGround3" in Frame 301
onClipEvent (load) {
this.pX = -100;
this.pY = -100;
this.pHalfWidth = 64;
}
Instance of Symbol 176 MovieClip "gEnemy0" in Frame 301
onClipEvent (load) {
pState = "VOID";
}
Instance of Symbol 176 MovieClip "gEnemy1" in Frame 301
onClipEvent (load) {
pState = "VOID";
}
Instance of Symbol 176 MovieClip "gEnemy2" in Frame 301
onClipEvent (load) {
pState = "VOID";
}
Instance of Symbol 176 MovieClip "gEnemy3" in Frame 301
onClipEvent (load) {
pState = "VOID";
}
Instance of Symbol 176 MovieClip "gEnemy4" in Frame 301
onClipEvent (load) {
pState = "VOID";
}
Instance of Symbol 176 MovieClip "gEnemy5" in Frame 301
onClipEvent (load) {
pState = "VOID";
}
Instance of Symbol 176 MovieClip "gEnemy6" in Frame 301
onClipEvent (load) {
pState = "VOID";
}
Instance of Symbol 176 MovieClip "gEnemy7" in Frame 301
onClipEvent (load) {
pState = "VOID";
}
Instance of Symbol 176 MovieClip "gEnemy8" in Frame 301
onClipEvent (load) {
pState = "VOID";
}
Instance of Symbol 176 MovieClip "gEnemy9" in Frame 301
onClipEvent (load) {
pState = "VOID";
}
Instance of Symbol 180 MovieClip "gAx0" in Frame 301
onClipEvent (load) {
pState = "VOID";
}
Instance of Symbol 180 MovieClip "gAx1" in Frame 301
onClipEvent (load) {
pState = "VOID";
}
Instance of Symbol 180 MovieClip "gAx2" in Frame 301
onClipEvent (load) {
pState = "VOID";
}
Instance of Symbol 180 MovieClip "gAx3" in Frame 301
onClipEvent (load) {
pState = "VOID";
}
Instance of Symbol 180 MovieClip "gAx4" in Frame 301
onClipEvent (load) {
pState = "VOID";
}
Instance of Symbol 180 MovieClip "gAx5" in Frame 301
onClipEvent (load) {
pState = "VOID";
}
Instance of Symbol 180 MovieClip "gAx6" in Frame 301
onClipEvent (load) {
pState = "VOID";
}
Instance of Symbol 180 MovieClip "gAx7" in Frame 301
onClipEvent (load) {
pState = "VOID";
}
Instance of Symbol 180 MovieClip "gAx8" in Frame 301
onClipEvent (load) {
pState = "VOID";
}
Instance of Symbol 180 MovieClip "gAx9" in Frame 301
onClipEvent (load) {
pState = "VOID";
}
Instance of Symbol 30 MovieClip in Frame 301
onClipEvent (load) {
if (_root.gMuteFlag) {
this.gotoAndPlay("on");
} else {
this.gotoAndPlay("off");
}
}
Frame 302
_root.gStageWidth = 480;
_root.gStageHeight = 360;
_root.gCraneMaxSpeed = 20;
_root.gGroundNum = 5;
_root.gEnemyNum = 10;
_root.gAxNum = 10;
_root.gScore.clear();
_root.gStageNum = 1;
Frame 306
if (_root.gStageNum == 1) {
gGround0.pX = 64;
gGround0.pY = 190;
gGround0._x = gGround0.pX;
gGround0._y = gGround0.pY;
_root.gGroundNum = 1;
} else if (_root.gStageNum == 2) {
gGround0.pX = _root.gStageWidth / 2;
gGround0.pY = 190;
gGround0._x = gGround0.pX;
gGround0._y = gGround0.pY;
_root.gGroundNum = 1;
} else if (_root.gStageNum == 3) {
gGround0.pX = 64;
gGround0.pY = 190;
gGround0._x = gGround0.pX;
gGround0._y = gGround0.pY;
gGround1.pX = _root.gStageWidth - 64;
gGround1.pY = 180;
gGround1._x = gGround1.pX;
gGround1._y = gGround1.pY;
_root.gGroundNum = 2;
}
_root.gCrane.born();
_root.gHero.born();
i = 0;
while (i < _root.gEnemyNum) {
var name = "gEnemy";
name = name + i;
_root[name].clear();
i++;
}
_root.gBg.gotoAndStop(_root.gStageNum);
_root.gState = 0;
_root.gotoAndPlay("play");
Frame 311
if (_root.gState == 0) {
_root.gState = 1;
_root.gTimer = 1;
i = 0;
while (i < _root.gAxNum) {
var name = "gAx";
name = name + i;
_root[name].clear();
i++;
}
_root.gQuota.init();
_root.gMessage.gotoAndPlay("stageStart");
_root.gSound0.stop();
var soundname = ("Bgm" + _root.gStageNum);
_root.gSound0.attachSound(soundname);
_root.gSound0.start(0, 99);
if (_root.gStageNum == 1) {
_root.gEnemyTemp = 0;
_root.gEnemyTempMax = 4;
_root.gEnemyBorn = 0;
_root.gEnemyBornMax = 15;
_root.gEnemyDead = 0;
_root.gEnemyInterval = 50;
} else if (_root.gStageNum == 2) {
_root.gEnemyTemp = 0;
_root.gEnemyTempMax = 6;
_root.gEnemyBorn = 0;
_root.gEnemyBornMax = 20;
_root.gEnemyDead = 0;
_root.gEnemyInterval = 35;
} else {
_root.gEnemyTemp = 0;
_root.gEnemyTempMax = 8;
_root.gEnemyBorn = 0;
_root.gEnemyBornMax = 25;
_root.gEnemyDead = 0;
_root.gEnemyInterval = 30;
}
} else if (_root.gState == 1) {
if (_root.gEnemyBorn < _root.gEnemyBornMax) {
if (_root.gEnemyTemp < _root.gEnemyTempMax) {
if ((_root.gTimer % _root.gEnemyInterval) == 0) {
var flag = false;
i = 0;
while (i < _root.gEnemyNum) {
if (!flag) {
var name = "gEnemy";
name = name + i;
if (_root[name].pState == "VOID") {
_root[name].born();
flag = true;
_root.gEnemyTemp++;
_root.gEnemyBorn++;
}
}
i++;
}
}
}
}
}
_root.gTimer++;
_root.gCrane.move();
_root.gHero.move();
i = 0;
while (i < _root.gEnemyNum) {
var name = "gEnemy";
name = name + i;
_root[name].move();
i++;
}
i = 0;
while (i < _root.gAxNum) {
var name = "gAx";
name = name + i;
_root[name].move();
i++;
}
_root.gQuota.move();
_root.gScore.move();
i = 0;
while (i < _root.gEnemyNum) {
var name = "gEnemy";
name = name + i;
if (_root[name].pFlagAtari) {
var xKyori = (_root[name].pX - _root.gHero.pX);
var yKyori = (_root[name].pY - _root.gHero.pY);
var xHaba = (_root[name].pHalfWidth + _root.gHero.pHalfWidth);
var yHaba = (_root[name].pHalfHeight + _root.gHero.pHalfHeight);
if (_root.gHero.pFlagWireAttack) {
if (Math.abs(xKyori) <= xHaba) {
if (Math.abs(yKyori) <= yHaba) {
_root[name].futtobu();
_root.gSound2.attachSound("seFly");
_root.gSound2.start(0, 1);
}
}
} else if (_root.gHero.pFlagGroundAttack) {
var xFlag = false;
if (_root.gHero.pMuki == 1) {
if ((0 <= xKyori) && (xKyori < (xHaba + 8))) {
xFlag = true;
}
} else if ((((-xHaba) - 16) < xKyori) && (xKyori <= 0)) {
xFlag = true;
}
if (xFlag) {
if (Math.abs(yKyori) <= yHaba) {
_root[name].die();
_root.gScore.addScore(100);
_root.gSound1.attachSound("sePunch");
_root.gSound1.start(0, 1);
_root.gSound2.attachSound("seHimei");
_root.gSound2.start(0, 1);
}
}
} else if (_root[name].pFlagAttack) {
if (_root.gHero.pFlagAtari) {
xFlag = false;
if (_root[name].pMuki == 1) {
if (((-xHaba) < xKyori) && (xKyori <= 0)) {
xFlag = true;
}
} else if ((0 <= xKyori) && (xKyori < xHaba)) {
xFlag = true;
}
if (xFlag) {
if (Math.abs(yKyori) <= yHaba) {
_root.gHero.damage();
_root.gSound1.attachSound("sePunch");
_root.gSound1.start(0, 1);
_root.gSound2.attachSound("seHimei");
_root.gSound2.start(0, 1);
}
}
}
}
}
i++;
}
i = 0;
while (i < _root.gAxNum) {
if (_root.gHero.pFlagAtari) {
var name = "gAx";
name = name + i;
if (_root[name].pMode == "FLY") {
var xKyori = Math.abs(_root[name].pX - _root.gHero.pX);
if (xKyori <= (_root[name].pR + _root.gHero.pHalfWidth)) {
var yKyori = Math.abs(_root[name].pY - _root.gHero.pY);
if (yKyori <= (_root[name].pR + _root.gHero.pHalfHeight)) {
_root.gHero.damage();
_root.gSound2.attachSound("seHimei");
_root.gSound2.start(0, 1);
}
}
}
}
i++;
}
var nokori = (_root.gEnemyBornMax - _root.gEnemyDead);
if (_root.gQuota.pValue != nokori) {
_root.gQuota.setQuota(nokori);
}
if (nokori <= 0) {
_root.gState = 0;
_root.gotoAndPlay("clear");
}
Frame 312
_root.gotoAndPlay(_currentframe - 1);
Frame 316
if (_root.gState == 0) {
_root.gState = 1;
_root.gTimer = 0;
_root.gMessage.gotoAndPlay("stageClear");
_root.gSound0.stop();
_root.gSound0.attachSound("bgmClear");
if (_root.gStageNum < 3) {
_root.gSound0.start(0, 1);
} else {
_root.gSound0.start(0, 99);
}
} else if (_root.gState == 1) {
if (60 < _root.gTimer) {
_root.gStageNum++;
if (3 < _root.gStageNum) {
_root.gotoAndPlay("cm");
} else {
_root.gotoAndPlay("stageInit");
}
}
}
_root.gQuota.move();
_root.gScore.move();
_root.gTimer++;
Frame 317
_root.gotoAndPlay(_currentframe - 1);
Frame 321
if (_root.gState == 0) {
_root.gState = 1;
_root.gTimer = 0;
_root.gMessage.gotoAndPlay("stageLose");
_root.gSound0.stop();
_root.gSound0.attachSound("bgmLose");
_root.gSound0.start(0, 1);
} else if (_root.gState == 1) {
}
_root.gQuota.move();
_root.gScore.move();
_root.gTimer++;
Frame 322
_root.gotoAndPlay(_currentframe - 1);
Instance of Symbol 30 MovieClip in Frame 326
onClipEvent (load) {
if (_root.gMuteFlag) {
this.gotoAndPlay("on");
} else {
this.gotoAndPlay("off");
}
}
Frame 415
_root.gotoAndPlay(_currentframe - 1);
Symbol 19 Button
on (release) {
_root.gotoAndPlay("cutBack");
}
Symbol 26 Button
on (release) {
_root.gSound0.setVolume(0);
_root.gSound1.setVolume(0);
_root.gSound2.setVolume(0);
_root.gMuteFlag = true;
this.gotoAndPlay("on");
}
Symbol 29 Button
on (release) {
_root.gSound0.setVolume(100);
_root.gSound1.setVolume(100);
_root.gSound2.setVolume(100);
_root.gMuteFlag = false;
this.gotoAndPlay("off");
}
Symbol 30 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 30 MovieClip Frame 7
this.gotoAndPlay(_currentframe - 1);
Symbol 62 MovieClip Frame 6
stop();
Symbol 71 MovieClip Frame 6
stop();
Symbol 77 MovieClip Frame 6
stop();
Symbol 84 MovieClip Frame 6
stop();
Symbol 99 Button
on (release) {
_root.gSound0.stop();
_root.gotoAndPlay("gameInit");
}
Symbol 102 Button
on (release) {
_root.gSound0.stop();
_root.gotoAndPlay("howTo");
}
Symbol 107 Button
on (release) {
_root.gotoAndPlay("title");
}
Symbol 108 Button
on (release) {
_root.gotoAndPlay("gameInit");
}
Symbol 117 Button
on (release) {
_root.gotoAndPlay("howTo2");
}
Symbol 129 Button
on (release) {
_root.gotoAndPlay("howTo");
}
Symbol 153 MovieClip Frame 1
function born() {
this.pWireR = 128;
this.pAccelTheta = 0.1;
this.pHalfHeight = 32;
this.pHalfWidth = 16;
this.pWalkSpeed = 8;
this.createEmptyMovieClip("pWireMC", 1);
this.pFlagWireAttack = false;
this.pFlagGroundAttack = false;
this.pState = "EXIST";
this.pWired = true;
this.pWiredInit = false;
this.pMode = "JUMP";
this.pOneTimeInit = false;
this.pTimer = 0;
this.pX = _root.gStageWidth / 2;
this.pY = (_root.gStageHeight - 16) - this.pHalfHeight;
this.pDirection = -1;
this.pMuki = 1;
this.pAnimeLabel = "";
this.pLife = 3;
_root.gLifeGage.gotoAndPlay("full");
}
function damage() {
this.pFlagAtari = false;
this.pLife--;
if (this.pLife < 0) {
this.pLife = 0;
}
var _local3 = "to" + this.pLife;
_root.gLifeGage.gotoAndPlay(_local3);
this.pOneTimeInit = false;
if (this.pLife == 0) {
this.pMode = "DIE";
} else {
this.pMode = "DAMAGE";
}
}
function move() {
if (pState == "VOID") {
} else {
this.pTimer++;
if (pWired) {
if (this.pMouseTrigger) {
this.pMouseTrigger = false;
}
if (this.pMouseRelease) {
this.pMouseRelease = false;
}
if (!this.pWiredInit) {
this.pWiredInit = true;
this.pOneTimeInit = true;
var _local6 = this.pX - _root.gCrane.pX;
var _local11 = this.pY - _root.gCrane.pY;
this.pTheta = Math.atan2(_local11, _local6);
this.pTheta = this.pTheta - (Math.PI/2);
this.pVTheta = 0;
if (_root.gCrane.pX <= this.pX) {
this.pDirection = 1;
} else {
this.pDirection = -1;
}
this.pAnimeLabel = "jump";
_root.gSound1.attachSound("seFly");
_root.gSound1.start(0, 1);
}
if (this.pMode == "JUMP") {
if (!pOneTimeInit) {
pOneTimeInit = true;
this.pAnimeLabel = "jump";
}
} else if (this.pMode == "DAMAGE") {
if (!pOneTimeInit) {
pOneTimeInit = true;
this.pAnimeLabel = "damage";
this.pTimer = 0;
}
if (15 <= this.pTimer) {
this.pOneTimeInit = false;
this.pMode = "JUMP";
}
} else if (this.pMode == "DIE") {
if (!pOneTimeInit) {
pOneTimeInit = true;
this.pAnimeLabel = "die";
}
}
while (pTheta < -3.14159265358979) {
pTheta = pTheta + (Math.PI*2);
}
while (Math.PI < pTheta) {
pTheta = pTheta - (Math.PI*2);
}
if ((0 <= pTheta) && (pTheta < Math.PI)) {
if (pDirection == 1) {
pVTheta = pVTheta - pAccelTheta;
if (pVTheta <= 0) {
pVTheta = 0;
pDirection = -1;
}
} else {
pVTheta = pVTheta - (pAccelTheta / 2);
}
} else if (pDirection == -1) {
pVTheta = pVTheta + pAccelTheta;
if (0 <= pVTheta) {
pVTheta = 0;
pDirection = 1;
}
} else {
pVTheta = pVTheta + (pAccelTheta / 2);
}
var _local9 = _root.gCrane.pAccelX;
_local9 = _local9 / 200;
if (_local9 <= -0.1) {
_local9 = -0.1;
} else if (0.1 <= _local9) {
_local9 = 0.1;
}
if ((-1.5707963267949 <= pTheta) && (pTheta < (Math.PI/2))) {
pVTheta = pVTheta + _local9;
if (0 < pVTheta) {
pDirection = 1;
}
} else {
pVTheta = pVTheta - _local9;
if (pVTheta < 0) {
pDirection = -1;
}
}
var _local7 = _root.gCrane.pAccelY;
_local7 = _local7 / 200;
if (_local7 <= -0.1) {
_local7 = -0.1;
} else if (0.1 <= _local7) {
_local7 = 0.1;
}
if ((0 <= pTheta) && (pTheta < Math.PI)) {
pVTheta = pVTheta + _local7;
if (0 < pVTheta) {
pDirection = 1;
}
} else {
pVTheta = pVTheta - _local7;
if (pVTheta < 0) {
pDirection = -1;
}
}
pTheta = pTheta + pVTheta;
if (0 < pVTheta) {
pMuki = -1;
} else {
pMuki = 1;
}
this.pX = _root.gCrane.pX + (Math.cos(this.pTheta + (Math.PI/2)) * this.pWireR);
this.pY = _root.gCrane.pY + (Math.sin(this.pTheta + (Math.PI/2)) * this.pWireR);
i = 0;
while (i < _root.gGroundNum) {
var _local3 = "gGround";
_local3 = _local3 + i;
var _local12 = pY + pHalfHeight;
if (Math.abs(_root[_local3].pY - _local12) <= 8) {
if (Math.abs(_root[_local3].pX - pX) <= _root[_local3].pHalfWidth) {
this.pY = (_root[_local3].pY - 8) - pHalfHeight;
this.pWired = false;
this.pOneTimeInit = false;
this.pMode = "STAND";
this.pPlatformNum = i;
}
}
i++;
}
var _local8 = _root.gStageHeight - 16;
var _local12 = pY + pHalfHeight;
if (_local8 <= _local12) {
this.pY = (_root.gStageHeight - 16) - pHalfHeight;
this.pWired = false;
this.pOneTimeInit = false;
this.pMode = "STAND";
this.pPlatformNum = 999;
}
} else {
if (this.pMouseTrigger) {
this.pMouseTrigger = false;
if (this.pFlagAtari) {
if (this.pMode != "ATTACKA") {
if (this.pMode != "FALL") {
this.pOneTimeInit = false;
this.pMode = "ATTACKA";
}
}
}
}
if (this.pMouseRelease) {
this.pMouseRelease = false;
}
if (this.pMode == "STAND") {
if (!pOneTimeInit) {
pOneTimeInit = true;
this.pAnimeLabel = "stand";
}
if (8 < Math.abs(_root.gCrane.pX - pX)) {
this.pOneTimeInit = false;
this.pMode = "WALK";
}
if (this.pWireR < Math.abs(_root.gCrane.pY - pY)) {
this.pWiredInit = false;
this.pWired = true;
}
} else if (this.pMode == "WALK") {
if (!pOneTimeInit) {
pOneTimeInit = true;
this.pAnimeLabel = "walk";
}
var _local4 = _root.gCrane.pX - this.pX;
var _local11 = _root.gCrane.pY - this.pY;
var _local5 = this.pWireR;
_local4 = Math.pow(_local4, 2);
_local11 = Math.pow(_local11, 2);
_local5 = Math.pow(_local5, 2);
if (_local5 < (_local4 + _local11)) {
_local4 = Math.sqrt(Math.abs(_local5 - _local11));
if (this.pX < _root.gCrane.pX) {
this.pX = _root.gCrane.pX - _local4;
this.pX = this.pX + 2;
this.pMuki = 1;
} else {
this.pX = _root.gCrane.pX + _local4;
this.pX = this.pX - 2;
this.pMuki = -1;
}
} else if (this.pX < _root.gCrane.pX) {
this.pX = this.pX + pWalkSpeed;
this.pMuki = 1;
} else {
this.pX = this.pX - pWalkSpeed;
this.pMuki = -1;
}
if (Math.abs(_root.gCrane.pX - pX) <= 8) {
this.pOneTimeInit = false;
this.pMode = "STAND";
}
if (this.pPlatformNum < 100) {
var _local3 = "gGround" + this.pPlatformNum;
var _local10 = Math.abs(_root[_local3].pX - this.pX);
if (_root[_local3].pHalfWidth < _local10) {
if (_root[_local3].pX < pX) {
this.pDirection = 1;
} else {
this.pDirection = -1;
}
this.pPlatformNum = 999;
this.pOneTimeInit = false;
this.pMode = "FALL";
}
}
if (this.pWireR < Math.abs(_root.gCrane.pY - pY)) {
this.pWiredInit = false;
this.pWired = true;
}
} else if (this.pMode == "FALL") {
if (!pOneTimeInit) {
pOneTimeInit = true;
this.pAnimeLabel = "fall";
this.pVY = 0;
}
this.pX = this.pX + (pWalkSpeed * pDirection);
this.pVY = this.pVY + 1.5;
this.pY = this.pY + this.pVY;
i = 0;
while (i < _root.gGroundNum) {
var _local3 = "gGround";
_local3 = _local3 + i;
var _local12 = pY + pHalfHeight;
if (Math.abs(_root[_local3].pY - _local12) <= 8) {
if (Math.abs(_root[_local3].pX - pX) <= _root[_local3].pHalfWidth) {
this.pY = (_root[_local3].pY - 8) - pHalfHeight;
this.pWired = false;
this.pOneTimeInit = false;
this.pMode = "STAND";
this.pPlatformNum = i;
}
}
i++;
}
var _local8 = _root.gStageHeight - 16;
var _local12 = pY + pHalfHeight;
if (_local8 <= _local12) {
this.pY = (_root.gStageHeight - 16) - pHalfHeight;
this.pWired = false;
this.pOneTimeInit = false;
this.pMode = "STAND";
this.pPlatformNum = 999;
}
var _local9 = Math.pow(_root.gCrane.pX - this.pX, 2) + Math.pow(_root.gCrane.pY - this.pY, 2);
var _local7 = Math.pow(this.pWireR, 2);
if (_local7 <= _local9) {
this.pWiredInit = false;
this.pWired = true;
}
} else if (this.pMode == "ATTACKA") {
if (!pOneTimeInit) {
pOneTimeInit = true;
this.pAnimeLabel = "attackA";
_root.gCrane.tomare();
this.pAttackFlag = true;
_root.gSound1.attachSound("seFist");
_root.gSound1.start(0, 1);
}
if (!this.pAttackFlag) {
_root.gCrane.ugoke();
this.pOneTimeInit = false;
this.pMode = "STAND";
}
} else if (this.pMode == "DAMAGE") {
if (!pOneTimeInit) {
pOneTimeInit = true;
this.pAnimeLabel = "damage";
this.pVX = 10;
this.pTimer = 0;
}
var _local4 = _root.gCrane.pX - this.pX;
var _local11 = _root.gCrane.pY - this.pY;
var _local5 = this.pWireR;
_local4 = Math.pow(_local4, 2);
_local11 = Math.pow(_local11, 2);
_local5 = Math.pow(_local5, 2);
if (_local5 < (_local4 + _local11)) {
_local4 = Math.sqrt(Math.abs(_local5 - _local11));
if (this.pX < _root.gCrane.pX) {
this.pX = _root.gCrane.pX - _local4;
this.pX = this.pX + 2;
this.pMuki = 1;
} else {
this.pX = _root.gCrane.pX + _local4;
this.pX = this.pX - 2;
this.pMuki = -1;
}
} else {
this.pX = this.pX - (this.pVX * this.pMuki);
this.pVX = this.pVX - 1;
}
if (this.pWireR < Math.abs(_root.gCrane.pY - pY)) {
this.pWiredInit = false;
this.pWired = true;
}
if (15 <= this.pTimer) {
this.pOneTimeInit = false;
this.pMode = "STAND";
}
} else if (this.pMode == "DIE") {
if (!pOneTimeInit) {
pOneTimeInit = true;
this.pAnimeLabel = "die";
}
}
}
this._x = pX;
this._y = pY;
if (this._xscale < 0) {
if (pMuki == 1) {
this._xscale = this._xscale * -1;
}
} else if (pMuki == -1) {
this._xscale = this._xscale * -1;
}
if (this.pAnimeLabel != "") {
this.gotoAndPlay(this.pAnimeLabel);
this.pAnimeLabel = "";
}
pWireMC.clear();
this.createEmptyMovieClip("pWireMC", 1);
pWireMC.lineStyle(1);
pWireMC.moveTo(0, 0);
var _local6 = _root.gCrane.pX - this.pX;
_local6 = _local6 * this.pMuki;
var _local11 = _root.gCrane.pY - this.pY;
pWireMC.lineTo(_local6, _local11);
if (pWired) {
this.pFlagWireAttack = true;
} else {
this.pFlagWireAttack = false;
}
if (pMode != "ATTACKA") {
this.pFlagGroundAttack = false;
}
if (pMode == "DAMAGE") {
this.pFlagAtari = false;
} else if (pMode == "DIE") {
this.pFlagAtari = false;
} else {
this.pFlagAtari = true;
}
}
}
Symbol 153 MovieClip Frame 20
this.gotoAndPlay("stand");
Symbol 153 MovieClip Frame 33
this.gotoAndPlay("walk");
Symbol 153 MovieClip Frame 38
this.gotoAndPlay("fall");
Symbol 153 MovieClip Frame 39
stop();
Symbol 153 MovieClip Frame 45
this.pFlagGroundAttack = true;
Symbol 153 MovieClip Frame 50
this.pAttackFlag = false;
Symbol 153 MovieClip Frame 52
this.pAttackFlag = false;
pFlagGroundAttack = false;
this.gotoAndPlay("stand");
Symbol 153 MovieClip Frame 57
stop();
Symbol 153 MovieClip Frame 70
stop();
_root.gState = 0;
_root.gotoAndPlay("lose");
Symbol 154 MovieClip Frame 1
function born() {
pState = "EXIST";
this.pX = _root.gStageWidth / 2;
this.pY = (_root.gStageHeight - 16) - this.pHalfHeight;
this.pLastX = this.pX;
this.pLastY = this.pY;
this.pVX = pX - pLastX;
this.pVY = pY - pLastY;
this.pLastVX = pVX;
this.pLastVY = pVY;
this.pAccelX = pVX - pLastVX;
this.pAccelY = pVY - pLastVY;
}
function tomare() {
pState = "VOID";
}
function ugoke() {
pState = "EXIST";
}
function move() {
if (pState == "VOID") {
} else {
this.pLastX = this.pX;
this.pLastY = this.pY;
var _local3 = _root._xmouse - this.pLastX;
if (Math.abs(_local3) <= _root.gCraneMaxSpeed) {
this.pX = _root._xmouse;
} else if (0 < _local3) {
this.pX = this.pX + _root.gCraneMaxSpeed;
} else {
this.pX = this.pX - _root.gCraneMaxSpeed;
}
if (this.pX <= 0) {
this.pX = 0;
} else if (_root.gStageWidth <= this.pX) {
this.pX = _root.gStageWidth;
}
var _local4 = _root._ymouse - this.pLastY;
if (Math.abs(_local4) <= _root.gCraneMaxSpeed) {
this.pY = _root._ymouse;
} else if (0 < _local4) {
this.pY = this.pY + _root.gCraneMaxSpeed;
} else {
this.pY = this.pY - _root.gCraneMaxSpeed;
}
if (this.pY <= 0) {
this.pY = 0;
} else if (_root.gStageHeight <= this.pY) {
this.pY = _root.gStageHeight;
}
pLastVX = pVX;
pLastVY = pVY;
pVX = pX - pLastX;
pVY = pY - pLastY;
pAccelX = pVX - pLastVX;
pAccelY = pVY - pLastVY;
this._x = pX;
this._y = pY;
}
}
Symbol 176 MovieClip Frame 1
function born() {
this.pHalfHeight = 32;
this.pHalfWidth = 16;
this.pWalkSpeed = 4;
this.pState = "EXIST";
this.pOneTimeInit = false;
this.pMode = "STAND";
this.pAnimeLabel = "";
this.pPlatformNum = 999;
this.pFlagAttack = false;
var _local3 = Math.random();
this.pY = (_root.gStageHeight - 16) - this.pHalfHeight;
if (_local3 < 0.5) {
this.pX = -36;
this.pMuki = 1;
} else {
this.pX = _root.gStageWidth + 36;
this.pMuki = -1;
}
this._visible = true;
}
function clear() {
this.pState = "VOID";
this.pX = -1000;
this._x = this.pX;
this._visible = false;
this.pFlagAttack = false;
}
function futtobu() {
this.pOneTimeInit = false;
this.pMode = "FUTTOBI";
}
function die() {
this.pOneTimeInit = false;
this.pMode = "YARARE";
}
function move() {
if (pState == "VOID") {
} else {
if (this.pMode == "STAND") {
if (!pOneTimeInit) {
pOneTimeInit = true;
this.pAnimeLabel = "stand";
}
if (this.pX <= _root.gHero.pX) {
this.pMuki = 1;
} else {
this.pMuki = -1;
}
var _local3 = _root.gStageNum * 0.005;
var _local4 = Math.random();
if (_local4 <= _local3) {
if ((0 < pX) && (pX < _root.gStageWidth)) {
this.pOneTimeInit = false;
this.pMode = "ATTACKB";
}
} else {
_local3 = _root.gStageNum * 0.02;
_local4 = Math.random();
if (_local4 <= _local3) {
this.pOneTimeInit = false;
this.pMode = "WALK";
}
}
} else if (this.pMode == "WALK") {
if (!pOneTimeInit) {
pOneTimeInit = true;
this.pAnimeLabel = "walk";
}
if (pMuki == 1) {
this.pX = this.pX + this.pWalkSpeed;
if (!_root.gHero.pWired) {
var _local7 = _root.gHero.pX - this.pX;
if ((0 < _local7) && (_local7 < 32)) {
this.pOneTimeInit = false;
pMode = "ATTACKA";
}
}
if (_root.gHero.pX < this.pX) {
var _local4 = Math.random();
if (_local4 < 0.1) {
pOneTimeInit = false;
pMode = "STAND";
}
}
} else {
this.pX = this.pX - this.pWalkSpeed;
if (!_root.gHero.pWired) {
var _local7 = this.pX - _root.gHero.pX;
if ((0 < _local7) && (_local7 < 32)) {
this.pOneTimeInit = false;
pMode = "ATTACKA";
}
}
if (this.pX < _root.gHero.pX) {
var _local4 = Math.random();
if (_local4 < 0.1) {
pOneTimeInit = false;
pMode = "STAND";
}
}
}
if (this.pPlatformNum < 100) {
var _local5 = "gGround" + this.pPlatformNum;
var _local7 = Math.abs(_root[_local5].pX - this.pX);
if (_root[_local5].pHalfWidth < _local7) {
if (_root[_local5].pX < pX) {
this.pDirection = 1;
} else {
this.pDirection = -1;
}
this.pPlatformNum = 999;
this.pOneTimeInit = false;
this.pMode = "FALL";
}
}
if (this.pPlatformNum == 999) {
i = 0;
while (i < _root.gGroundNum) {
var _local5 = "gGround";
_local5 = _local5 + i;
if (Math.abs(_root[_local5].pX - pX) <= _root[_local5].pHalfWidth) {
var _local4 = Math.random();
var _local3 = _root.gStageNum * 0.03;
if (_local4 < _local3) {
this.pOneTimeInit = false;
this.pMode = "JUMP";
this.pPlatformNum = i;
}
}
i++;
}
}
} else if (this.pMode == "JUMP") {
if (!pOneTimeInit) {
pOneTimeInit = true;
this.pAnimeLabel = "jump";
this.pVY = 20;
}
this.pY = this.pY - pVY;
this.pVY = this.pVY - 0.5;
var _local8 = pY + pHalfHeight;
var _local5 = "gGround" + this.pPlatformNum;
if (_local8 <= (_root[_local5].pY - 8)) {
this.pY = (_root[_local5].pY - 8) - pHalfHeight;
this.pOneTimeInit = false;
this.pMode = "STAND";
}
} else if (this.pMode == "FALL") {
if (!pOneTimeInit) {
pOneTimeInit = true;
this.pAnimeLabel = "fall";
this.pVY = 0;
}
this.pX = this.pX + (pWalkSpeed * pDirection);
this.pVY = this.pVY + 1.5;
this.pY = this.pY + this.pVY;
var _local6 = _root.gStageHeight - 16;
var _local8 = pY + pHalfHeight;
if (_local6 <= _local8) {
this.pY = (_root.gStageHeight - 16) - pHalfHeight;
this.pOneTimeInit = false;
this.pMode = "STAND";
this.pPlatformNum = 999;
}
} else if (this.pMode == "ATTACKA") {
if (!pOneTimeInit) {
pOneTimeInit = true;
this.pAnimeLabel = "attackA";
}
} else if (this.pMode == "ATTACKB") {
if (!pOneTimeInit) {
pOneTimeInit = true;
this.pAnimeLabel = "attackB";
}
} else if (this.pMode == "FUTTOBI") {
if (!pOneTimeInit) {
pOneTimeInit = true;
this.pAnimeLabel = "futtobi";
this.pVX = Math.random() * 10;
this.pVX = this.pVX + 10;
this.pVY = 0;
}
if (this.pMuki == 1) {
this.pX = this.pX - this.pVX;
this.pVX = this.pVX - 1;
if (this.pVX <= 0) {
this.pOneTimeInit = false;
this.pMode = "WALK";
}
} else {
this.pX = this.pX + this.pVX;
this.pVX = this.pVX - 1;
if (this.pVX <= 0) {
this.pOneTimeInit = false;
this.pMode = "WALK";
}
}
if (this.pPlatformNum < 100) {
var _local5 = "gGround" + this.pPlatformNum;
var _local8 = pY + pHalfHeight;
if ((_root[_local5].pY - 8) < _local8) {
this.pDirection = this.pMuki * -1;
this.pPlatformNum = 999;
this.pOneTimeInit = false;
this.pMode = "FALL";
}
var _local7 = Math.abs(_root[_local5].pX - this.pX);
if (_root[_local5].pHalfWidth < _local7) {
if (_root[_local5].pX < pX) {
this.pDirection = 1;
} else {
this.pDirection = -1;
}
this.pPlatformNum = 999;
this.pOneTimeInit = false;
this.pMode = "FALL";
}
} else {
var _local6 = _root.gStageHeight - 16;
var _local8 = pY + pHalfHeight;
if (_local6 > _local8) {
this.pOneTimeInit = false;
this.pMode = "FALL";
rakka = true;
}
}
} else if (this.pMode == "YARARE") {
if (!pOneTimeInit) {
pOneTimeInit = true;
this.pAnimeLabel = "yarare";
this.pVX = Math.random() * 20;
this.pVX = this.pVX + 5;
this.pVY = (-Math.random()) * 20;
this.pVY = this.pVY - 10;
}
if (this.pMuki == 1) {
this.pX = this.pX - this.pVX;
} else {
this.pX = this.pX + this.pVX;
}
this.pVX = this.pVX - 1;
if (this.pVX <= 0) {
this.pVX = 0;
}
this.pY = this.pY + this.pVY;
this.pVY = this.pVY + 2.5;
var _local6 = _root.gStageHeight - 16;
var _local8 = pY + pHalfHeight;
if (_local6 < _local8) {
this.pY = _local6 - pHalfHeight;
this.pOneTimeInit = false;
this.pMode = "DIE";
}
} else if (this.pMode == "DIE") {
if (!pOneTimeInit) {
pOneTimeInit = true;
this.pAnimeLabel = "die";
}
}
if (this.pMode == "FUTTOBI") {
this.pFlagAtari = false;
} else if (this.pMode == "YARARE") {
this.pFlagAtari = false;
} else if (this.pMode == "DIE") {
this.pFlagAtari = false;
} else {
this.pFlagAtari = true;
}
if (this.pMode != "ATTACKA") {
this.pFlagAttack = false;
}
this._x = pX;
this._y = pY;
if (this._xscale < 0) {
if (pMuki == 1) {
this._xscale = this._xscale * -1;
}
} else if (pMuki == -1) {
this._xscale = this._xscale * -1;
}
if (this.pAnimeLabel != "") {
this.gotoAndPlay(this.pAnimeLabel);
this.pAnimeLabel = "";
}
}
}
Symbol 176 MovieClip Frame 20
this.gotoAndPlay("stand");
Symbol 176 MovieClip Frame 33
this.gotoAndPlay("walk");
Symbol 176 MovieClip Frame 36
stop();
Symbol 176 MovieClip Frame 41
stop();
Symbol 176 MovieClip Frame 48
this.pFlagAttack = true;
Symbol 176 MovieClip Frame 55
this.pOneTimeInit = false;
this.pMode = "WALK";
Symbol 176 MovieClip Frame 66
var flag = false;
i = 0;
while (i < _root.gAxNum) {
if (!flag) {
var name = "gAx";
name = name + i;
if (_root[name].pState == "VOID") {
_root[name].born(this.pX, this.pY - 20);
flag = true;
}
}
i++;
}
Symbol 176 MovieClip Frame 70
this.pOneTimeInit = false;
this.pMode = "STAND";
Symbol 176 MovieClip Frame 71
stop();
Symbol 176 MovieClip Frame 81
stop();
Symbol 176 MovieClip Frame 97
_root.gEnemyTemp--;
_root.gEnemyDead++;
this.clear();
stop();
Symbol 180 MovieClip Frame 1
function born(x, y) {
this.pR = 8;
this.pState = "EXIST";
this.pOneTimeInit = false;
this.pMode = "FLY";
this.pX = x;
this.pY = y;
var _local3 = _root.gHero.pX - this.pX;
var _local5 = (_root.gHero.pY - 64) - this.pY;
var _local4 = Math.atan2(_local5, _local3);
this.pVX = Math.cos(_local4) * 10;
this.pVY = Math.sin(_local4) * 10;
if (_local3 < 0) {
this.pKaitenMuki = -1;
} else {
this.pKaitenMuki = 1;
}
this._visible = true;
}
function clear() {
this.pState = "VOID";
this.pMode = "VOID";
this.pX = -1000;
this._x = this.pX;
this._visible = false;
}
function move() {
if (pState == "VOID") {
} else {
if (this.pMode == "FLY") {
if (!pOneTimeInit) {
pOneTimeInit = true;
}
this.pX = this.pX + this.pVX;
if ((_root.gStageWidth + 32) < this.pX) {
this.clear();
} else if (this.pX < -32) {
this.clear();
}
this.pY = this.pY + this.pVY;
this.pVY = this.pVY + 0.3;
if (this.pY < -32) {
this.clear();
} else if ((_root.gStageHeight + 32) < this.pY) {
this.clear();
}
this._rotation = this._rotation + (20 * this.pKaitenMuki);
} else if (this.pMode == "WALK") {
}
this._x = pX;
this._y = pY;
}
}
Symbol 220 Button
on (release) {
_root.gScore.clear();
_root.gotoAndPlay("stageInit");
}
Symbol 221 MovieClip Frame 1
this.stop();
Symbol 221 MovieClip Frame 6
this.pMesNum.gotoAndStop(_root.gStageNum);
Symbol 221 MovieClip Frame 40
this.gotoAndStop("default");
Symbol 221 MovieClip Frame 41
this.pMesNum.gotoAndStop(_root.gStageNum);
Symbol 221 MovieClip Frame 75
this.stop();
Symbol 221 MovieClip Frame 110
this.stop();
Symbol 232 MovieClip Frame 10
stop();
Symbol 232 MovieClip Frame 25
stop();
Symbol 232 MovieClip Frame 40
stop();
Symbol 232 MovieClip Frame 55
stop();
Symbol 252 MovieClip Frame 1
stop();
function setQuota(value) {
this.pValue = value;
display();
}
function subQuota(value) {
this.pValue = this.pValue - value;
if (this.pValue < 0) {
this.pValue = 0;
}
display();
}
function display() {
var _local4 = this.pValue % 10;
var _local3 = _local4 + 10;
this.pKeta0.gotoAndStop(_local3);
var _local2 = this.pValue - _local4;
if (_local2 <= 0) {
this.pKeta1.gotoAndStop(20);
} else {
_local2 = _local2 / 10;
if (10 <= _local2) {
_local2 = 9;
}
_local3 = _local2 + 10;
this.pKeta1.gotoAndStop(_local3);
}
}
function move() {
}
Symbol 253 MovieClip Frame 1
function setQuota(value) {
this.pValue = value;
display();
shake();
}
function display() {
var _local4 = this.pValue % 10;
var _local3 = _local4 + 10;
this.pKeta0.gotoAndStop(_local3);
var _local2 = this.pValue - _local4;
if (_local2 <= 0) {
this.pKeta1.gotoAndStop(20);
} else {
_local2 = _local2 / 10;
if (10 <= _local2) {
_local2 = 9;
}
_local3 = _local2 + 10;
this.pKeta1.gotoAndStop(_local3);
}
}
function init() {
this.pVTheta = 0;
this.pTheta = 0;
this.pTheta = 0;
this.pDirection = 1;
this.pMode = "STILL";
}
function shake() {
this.pVTheta = this.pVTheta + (0.25 * this.pDirection);
this.pMode = "SHAKE";
}
function move() {
if (this.pMode == "SHAKE") {
if (0 <= pTheta) {
if (pDirection == 1) {
pVTheta = pVTheta - 0.05;
if (pVTheta <= 0) {
pVTheta = 0;
pDirection = -1;
}
} else {
pVTheta = pVTheta - 0.02;
}
} else if (pDirection == -1) {
pVTheta = pVTheta + 0.05;
if (0 <= pVTheta) {
pVTheta = 0;
pDirection = 1;
}
} else {
pVTheta = pVTheta + 0.02;
}
this.pTheta = this.pTheta + this.pVTheta;
if ((-0.1 < this.pTheta) && (this.pTheta < 0.1)) {
if (Math.abs(pVTheta) < 0.02) {
this.pTheta = 0;
this.pMode = "STILL";
}
}
this._rotation = (pTheta / Math.PI) * 180;
}
}
Symbol 258 MovieClip Frame 1
function clear() {
this.pDispValue = 0;
this.pValue = 0;
}
function addScore(value) {
this.pValue = this.pValue + value;
}
function move() {
if (this.pDispValue < this.pValue) {
this.pDispValue = this.pDispValue + 7;
if (this.pValue < pDispValue) {
this.pDispValue = this.pValue;
}
}
}
Symbol 308 MovieClip Frame 46
gotoAndPlay (16);