Frame 1
this.stop();
Frame 5
this.stop();
Frame 15
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
function removeALlMC() {
i = 0;
while (i < 15) {
newName = "panel" + String(i);
this[newName].removeMovieClip();
i++;
}
this.startPanelMC.removeMovieClip();
this.goalPanelMC.removeMovieClip();
this.jellyMC.removeMovieClip();
this.playerMC.removeMovieClip();
this.bullMC.removeMovieClip();
this.waitStartMC.removeMovieClip();
}
function pauseOff() {
_root.BGM_game.setVolume(100);
this.pauseFlg = false;
this.lastSecMC.pauseOff();
this.playerMC.pauseOff();
this.bullMC.pauseOff();
this.waitStartMC.pauseOff();
this.stat = "play";
}
function pauseOn() {
_root.BGM_game.setVolume(0);
this.pauseFlg = true;
this.lastSecMC.pauseOn();
this.playerMC.pauseOn();
this.bullMC.pauseOn();
this.waitStartMC.pauseOn();
this.stat = "pause";
}
Frame 16
function initGame() {
this.stageNum = 1;
this.lastPlayerCnt = 3;
this.score = 0;
this.InstWindowFlg = false;
this.pauseWindowFlg = false;
this.pauseFlg = false;
}
function initDepth() {
this.depthPanel = 10000;
this.depthPlayer = 50000;
this.depthJelly = 51000;
this.depthItemPoint = 55000;
this.depthWindow = 100000 /* 0x0186A0 */;
}
function initPanelMapList() {
this.panelMapList = [["", "", "", "", "", ""], ["", "", "", "", "", ""], ["", "", "", "", "", ""], ["", "", "", "", "", ""], ["", "", "", "", "", ""], ["", "", "", "", "", ""]];
}
this.panelInRootList = [[0, 0, 0, 0], [3, 5, 6, 4], [0, 5, 6, 0], [3, 0, 0, 4], [1, 7, 2, 8], [1, 0, 2, 0], [0, 7, 0, 8], [11, 12, 9, 10], [0, 0, 9, 10], [11, 12, 0, 0], [13, 13, 13, 13], [14, 14, 14, 14], [15, 15, 15, 15], [16, 16, 16, 16]];
this.panelColorList = [[100, 70, 50, 0, 120, 0], [100, 100, 50, 50, 100, 0], [100, 100, 100, 60, 0, 60], [100, 100, 100, 180, 0, 100], [100, 100, 100, 0, 0, 255], [100, 80, 100, 0, 100, 255], [100, 80, -100, 255, 50, 0], [100, 100, -50, 255, 70, 0], [100, 100, 50, 0, 0, 0], [100, 100, 60, 60, 60, 0], [100, 100, 100, 0, 0, -40], [100, 100, 100, 0, 40, 0], [80, 100, 100, 50, 0, 100], [100, 80, 100, 20, 0, 70], [80, 100, 100, 0, -20, 0], [70, 100, 100, 0, 0, 0]];
this.panelColorSetList = [[0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0], [2, 3, 2, 3, 3, 2, 3, 2, 2, 3, 2, 3, 3, 2, 3, 2], [4, 5, 4, 5, 5, 4, 5, 4, 4, 5, 4, 5, 5, 4, 5, 4], [6, 7, 6, 7, 7, 6, 7, 6, 6, 7, 6, 7, 7, 6, 7, 6], [8, 9, 8, 9, 9, 8, 9, 8, 8, 9, 8, 9, 9, 8, 9, 8], [10, 11, 10, 11, 11, 10, 11, 10, 10, 11, 10, 11, 11, 10, 11, 10], [12, 13, 12, 13, 13, 12, 13, 12, 12, 13, 12, 13, 13, 12, 13, 12], [14, 15, 14, 15, 15, 14, 15, 14, 14, 15, 14, 15, 15, 14, 15, 14]];
this.SE_panel = new Sound(this);
this.SE_panel.attachSound("SE_panel");
this.SE_item = new Sound(this);
this.SE_item.attachSound("SE_item");
this.SE_bull = new Sound(this);
this.SE_bull.attachSound("SE_bull");
this.SE_clear = new Sound(this);
this.SE_clear.attachSound("SE_clear");
this.SE_gameover = new Sound(this);
this.SE_gameover.attachSound("SE_gameover");
this.SE_clock = new Sound(this);
this.SE_clock.attachSound("SE_clock");
this.SE_over = new Sound(this);
this.SE_over.attachSound("SE_over");
this.mode = "easy";
this.reNewStageFlg = true;
this.highscore = 0;
this.initDepth();
this.initGame();
this.gotoAndPlay("title");
Frame 20
if (this.score > this.highScore) {
this.highScore = this.score;
}
this.attachMovie("fadeBlackScr", "fadeMC", this.depthWindow++);
this.fadeMC._x = 320;
this.fadeMC._y = 260;
Frame 21
this.stop();
Frame 22
this.attachMovie("fadeBlackScr", "fadeMC", this.depthWindow++);
this.fadeMC._x = 320;
this.fadeMC._y = 260;
this.fadeMC.gotoAndPlay("fadeOut");
this.stop();
Frame 23
this.fadeMC.removeMovieClip();
this.gotoAndPlay("stagein");
Frame 29
this.attachMovie("fadeBlackScr", "fadeMC", this.depthWindow++);
this.fadeMC._x = 320;
this.fadeMC._y = 260;
Frame 30
this.movingY = 0;
this.movingX = 0;
this.playerSpeed = 1;
this.initDepth();
this.initPanelMapList();
this.bgMC.gotoAndStop(this.stageNum);
Frame 31
if (this.reNewStageFlg) {
var NumList = [1, 1, 1, 2, 3, 4, 4, 4, 5, 6, 7, 7, 7, 8, 9, 9];
this.panelNumList = [];
while (NumList.length > 0) {
var p = (this.randomInt(NumList.length) - 1);
var n = NumList.splice(p, 1);
this.panelNumList.push(n);
}
this.goalPosNum = 3 + this.randomInt(12);
this.startPosNum = 3 + this.randomInt(12);
if (this.startPosNum == this.goalPosNum) {
this.goalPosNum = 15;
this.startPosNum = 7;
trace("\u30B9\u30BF\u30FC\u30C8\u4F4D\u7F6E\u88DC\u6B63");
}
}
this.baseX = 160;
this.baseY = 105;
var n = 0;
var c = 0;
this.bullStartMCName = "";
iy = 1;
while (iy < 5) {
ix = 1;
while (ix < 5) {
if ((ix == 4) && (iy == 4)) {
this.empty_mx = ix;
this.empty_my = iy;
} else {
newName = "panel" + String(n++);
this.attachMovie("panel", newName, this.depthPanel++);
var colorNum = this.panelColorSetList[this.stageNum - 1][c++];
var panelNum = this.panelNumList[n];
this[newName].mx = ix;
this[newName].my = iy;
this[newName].myName = newName;
this[newName].panelNum = panelNum;
this[newName].colorNum = colorNum;
this[newName]._x = 0;
this[newName]._y = -100;
if (parseInt(panelNum) == 7) {
this.bullStartMCName = newName;
}
}
ix++;
}
iy++;
}
this.attachMovie("startPanel", "startPanelMC", this.depthPanel++);
this.startPanelMC.setPosNum = startPosNum;
this.startPanelMC.myName = "startPanelMC";
this.startPanelMC._y = -100;
this.attachMovie("startPanel", "goalPanelMC", this.depthPanel++);
this.goalPanelMC.setPosNum = goalPosNum;
this.goalPanelMC.myName = "goalPanelMC";
this.goalPanelMC._y = -100;
this.attachMovie("player", "playerMC", this.depthPlayer++);
this.playerMC.mode = "tobby";
this.attachMovie("player", "bullMC", this.depthPlayer++);
this.bullMC.mode = "bull";
var waitSecList = [10, 9, 8, 7, 6, 5, 4, 3, 2];
this.attachMovie("waitStart", "waitStartMC", this.depthWindow++);
this.waitStartMC.waitSec = waitSecList[this.stageNum - 1];
this.waitStartMC._x = 320;
this.waitStartMC._y = 240;
var lastSecList = [90, 80, 70, 60, 50, 40, 30, 30];
this.lastSecMC.setClock(lastSecList[this.stageNum - 1]);
this.stat = "play";
Frame 32
this.stop();
Instance of Symbol 272 MovieClip in Frame 32
onClipEvent (keyUp) {
var Lastkey = key.getCode();
if (LastKey == 32) {
this.skipFlg = false;
}
}
onClipEvent (keyDown) {
var Lastkey = key.getCode();
if (LastKey == 32) {
this.skipFlg = true;
}
}
onClipEvent (load) {
this.skipFlg = false;
}
onClipEvent (enterFrame) {
if (this.skipFlg) {
_root.waitStartMC.skipWaitTime();
}
}
Frame 40
this.playerMC.setStat("walk");
this.bullMC.setStat("walk");
this.BGM_game = new Sound(this);
this.BGM_game.attachSound("BGM_02");
this.BGM_game.start(0, 1000000);
this.lastSecMC.startClock();
this.stop();
Instance of Symbol 272 MovieClip in Frame 40
onClipEvent (keyUp) {
var Lastkey = key.getCode();
if (LastKey == 32) {
_root.playerSpeed = 1;
if (_root.playerSpeed < 1) {
_root.playerSpeed = 1;
}
}
}
onClipEvent (keyDown) {
var Lastkey = key.getCode();
if (LastKey == 32) {
_root.playerSpeed = 3;
}
}
Frame 50
this.attachMovie("stageClear", "stageClearMC", _root.depthWindow++);
this.stageClearMC._x = 320;
this.stageClearMC._y = 240;
this.BGM_game.stop();
this.SE_clear.start(0, 0);
this.jellyMC.gotoAndPlay("happy");
this.stop();
Frame 60
this.attachMovie("fadeBlackScr", "fadeMC", this.depthWindow++);
this.fadeMC._x = 320;
this.fadeMC._y = 260;
this.fadeMC.gotoAndPlay("fadeOut");
this.stop();
Frame 61
this.stageNum++;
_root.removeALlMC();
if (this.stageNum > 8) {
this.gotoAndPlay("ending");
} else {
this.reNewStageFlg = true;
this.fadeMC.removeMovieClip();
this.gotoAndPlay("stagein");
}
Frame 70
_root.lastSecMC.stopClock();
this.BGM_game.stop();
if (this.stat == "timeup") {
_root.attachMovie("timeup", "timeupMC", _root.depthWindow++);
_root.timeupMC._x = 320;
_root.timeupMC._y = 260;
this.SE_gameover.start(0, 0);
} else {
this.attachMovie("miss", "missMC", _root.depthWindow++);
this.missMC._x = 320;
this.missMC._y = 260;
this.SE_bull.start(0, 0);
}
this.stop();
Frame 71
this.lastPlayerCnt--;
if (this.lastPlayerCnt < 0) {
this.gotoAndPlay("continue");
} else {
this.reNewStageFlg = false;
_root.removeALlMC();
this.gotoAndPlay("stagein");
}
Frame 80
if (this.score > this.highScore) {
this.highScore = this.score;
}
this.attachMovie("continue", "continueMC", this.depthWindow++);
this.continueMC._x = 320;
this.continueMC._y = 260;
this.stop();
Frame 90
this.attachMovie("gameover", "gameoverMC", this.depthWindow++);
this.gameoverMC._x = 320;
this.gameoverMC._y = 260;
this.stop();
Frame 100
this.fadeMC.removeMovieClip();
this.stop();
Frame 110
this.stop();
Symbol 24 Button
on (press) {
_root.score = 40000;
_root.gotoAndPlay("ending");
}
Symbol 25 Button
on (press) {
_root.mode = "easy";
_root.initDepth();
_root.initGame();
_root.stageNum = 1;
_root.play();
}
Symbol 26 Button
on (press) {
_root.mode = "easy";
_root.initDepth();
_root.initGame();
_root.stageNum = 2;
_root.play();
}
Symbol 27 Button
on (press) {
_root.mode = "easy";
_root.initDepth();
_root.initGame();
_root.stageNum = 3;
_root.play();
}
Symbol 28 Button
on (press) {
_root.mode = "easy";
_root.initDepth();
_root.initGame();
_root.stageNum = 4;
_root.play();
}
Symbol 29 Button
on (press) {
_root.mode = "easy";
_root.initDepth();
_root.initGame();
_root.stageNum = 5;
_root.play();
}
Symbol 30 Button
on (press) {
_root.mode = "easy";
_root.initDepth();
_root.initGame();
_root.stageNum = 6;
_root.play();
}
Symbol 31 Button
on (press) {
_root.mode = "easy";
_root.initDepth();
_root.initGame();
_root.stageNum = 7;
_root.play();
}
Symbol 32 Button
on (press) {
_root.mode = "easy";
_root.initDepth();
_root.initGame();
_root.stageNum = 8;
_root.play();
}
Symbol 33 Button
on (press) {
_root.score = 100;
_root.gotoAndPlay("ending");
}
Symbol 34 Button
on (press) {
this.gotoAndStop("hide");
}
Symbol 36 Button
on (press) {
this.gotoAndStop("disp");
}
Symbol 37 MovieClip [debugIn] Frame 1
this.gotoAndStop("hide");
Symbol 37 MovieClip [debugIn] Frame 5
this.stop();
Symbol 37 MovieClip [debugIn] Frame 15
this.stop();
Symbol 48 MovieClip [bom] Frame 1
this.life = 45;
Symbol 48 MovieClip [bom] Frame 12
if (this.hitDummyMC.hitTest(_root.playerMC.hitDummyMC)) {
_root.playerMC.hitbom();
this.gotoAndPlay("bom");
} else {
if (_root.pauseFlg == false) {
this.life--;
}
if (this.life < 15) {
this._visible = this.life % 2;
}
if (this.life == 0) {
this.gotoAndPlay("clear");
} else {
this.gotoAndPlay(_currentframe - 1);
}
}
Symbol 48 MovieClip [bom] Frame 37
_parent.unEntryItem();
this.removeMovieClip();
Symbol 51 MovieClip [fadeBlackScr] Frame 6
this.removeMovieClip();
Symbol 51 MovieClip [fadeBlackScr] Frame 26
_root.play();
this.stop();
Symbol 70 MovieClip [panel] Frame 1
function main() {
if (!(this.stat === "move")) {
} else {
this.movePanel();
}
}
function checkMovablePanel() {
if (_root.empty_my == this.my) {
var d = (_root.empty_mx - this.mx);
if (d < 0) {
if (_root.movingX == 1) {
return(undefined);
}
_root.movingX = -1;
var mcList = [];
i = this.mx;
while (i > _root.empty_mx) {
mcList.push(_root.panelMapList[this.my][i]);
i--;
}
i = 0;
while (i < mcList.length) {
_root[mcList[i]].entryMovePanel("Left");
i++;
}
_root.empty_mx = _root.empty_mx - d;
} else {
if (_root.movingX == -1) {
return(undefined);
}
_root.movingX = 1;
var mcList = [];
i = this.mx;
while (i < _root.empty_mx) {
mcList.push(_root.panelMapList[this.my][i]);
i++;
}
i = 0;
while (i < mcList.length) {
_root[mcList[i]].entryMovePanel("Right");
i++;
}
_root.empty_mx = _root.empty_mx - d;
}
_root.panelMapList[_root.empty_my][_root.empty_mx] = "";
_root.SE_panel.start(0, 0);
return(undefined);
}
if (_root.empty_mx == this.mx) {
var d = (_root.empty_my - this.my);
if (d < 0) {
if (_root.movingY == 1) {
return(undefined);
}
_root.movingY = -1;
var mcList = [];
i = this.my;
while (i > _root.empty_my) {
mcList.push(_root.panelMapList[i][this.mx]);
i--;
}
i = 0;
while (i < mcList.length) {
_root[mcList[i]].entryMovePanel("Up");
i++;
}
_root.empty_my = _root.empty_my - d;
} else {
if (_root.movingY == -1) {
return(undefined);
}
_root.movingY = 1;
var mcList = [];
i = this.my;
while (i < _root.empty_my) {
mcList.push(_root.panelMapList[i][this.mx]);
i++;
}
i = 0;
while (i < mcList.length) {
_root[mcList[i]].entryMovePanel("Down");
i++;
}
_root.empty_my = _root.empty_my - d;
}
_root.panelMapList[_root.empty_my][_root.empty_mx] = "";
_root.SE_panel.start(0, 0);
return(undefined);
}
}
function entryMovePanel(moveDirect) {
switch (moveDirect) {
case "Right" :
this.dxList = [20, 20, 20, 20];
this.dyList = [0, 0, 0, 0];
this.mx++;
break;
case "Left" :
this.dxList = [-20, -20, -20, -20];
this.dyList = [0, 0, 0, 0];
this.mx--;
break;
case "Up" :
this.dxList = [0, 0, 0, 0];
this.dyList = [-20, -20, -20, -20];
this.my--;
break;
case "Down" :
this.dxList = [0, 0, 0, 0];
this.dyList = [20, 20, 20, 20];
this.my++;
}
this.stat = "move";
this.dListPtr = 0;
_root.panelMapList[this.my][this.mx] = this.myName;
}
function movePanel() {
this.px = this.px + this.dxList[this.dListptr];
this.py = this.py + this.dyList[this.dListptr];
this.dListPtr++;
if (this.dListPtr > this.dxList.length) {
_root.movingY = 0;
_root.movingX = 0;
this.stat = "standby";
}
}
function unEntryItem() {
this.itemEntryFlg = false;
}
function entryItem() {
if (this.itemEntryFlg == false) {
switch (parseInt(this.panelNum)) {
case 1 :
case 3 :
var nx = 50;
var ny = 30;
break;
case 2 :
var nx = 30;
var ny = 50;
break;
case 4 :
case 5 :
var nx = 30;
var ny = 30;
break;
case 6 :
var nx = 50;
var ny = 50;
break;
case 7 :
case 8 :
case 9 :
var nx = 40;
var ny = 40;
break;
default :
trace(this.panelNum + "\u306B\u30A2\u30A4\u30C6\u30E0\u30BB\u30C3\u30C8\u3057\u3088\u3046\u3068\u3057\u3066\u308B\u3057");
}
switch (_root.stageNum) {
case 1 :
var n = 256;
break;
case 2 :
var n = 32;
break;
case 3 :
var n = 16;
break;
case 4 :
var n = 8;
break;
case 5 :
var n = 4;
break;
case 6 :
var n = 2;
break;
case 7 :
var n = 1;
break;
case 8 :
var n = 1;
}
if (_root.randomInt(n) == 1) {
this.attachMovie("bom", "bomMC", this.depth++);
this.bomMC._x = nx;
this.bomMC._y = ny;
this.itemEntryFlg = true;
} else {
this.attachMovie("item", "itemMC", this.depth++);
this.itemMC.itemNum = _root.randomInt(8);
this.itemMC._x = nx;
this.itemMC._y = ny;
this.itemEntryFlg = true;
}
}
}
function getPanelNum() {
return(this.panelNum);
}
this.itemEntryFlg = false;
this.depth = 1;
this.px = ((this.mx - 1) * 80) + _root.baseX;
this.py = ((this.my - 1) * 80) + _root.baseY;
_root.panelMapList[this.my][this.mx] = this.myName;
this.stat = "standby";
var idName = ("A_" + String(this.panelNum));
this.attachMovie(idName, "gMC", this.depth++);
var cl = new Object();
cl.ra = _root.panelColorList[this.colorNum][0];
cl.rb = _root.panelColorList[this.colorNum][3];
cl.ga = _root.panelColorList[this.colorNum][1];
cl.gb = _root.panelColorList[this.colorNum][4];
cl.ba = _root.panelColorList[this.colorNum][2];
cl.bb = _root.panelColorList[this.colorNum][5];
cl.aa = 100;
cl.ab = 0;
this.ColorObj = new Color(this.gMC);
this.ColorObj.setTransform(cl);
this.onPress = function () {
if (_root.stat == "play") {
if (this.stat == "standby") {
this.checkMovablePanel();
}
}
};
this.onRelease = function () {
};
this.onReleaseOutside = function () {
};
this.onRollOver = function () {
};
this.onRollOut = function () {
};
Symbol 70 MovieClip [panel] Frame 3
this._x = this.px;
this._y = this.py;
this.main();
this.gotoAndPlay(_currentframe - 1);
Symbol 71 MovieClip [startPanel] Frame 1
var mPosList = [[1, 0], [2, 0], [3, 0], [4, 0], [5, 1], [5, 2], [5, 3], [5, 4], [4, 5], [3, 5], [2, 5], [1, 5], [0, 4], [0, 3], [0, 2], [0, 1]];
var panelNumList = [10, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 13, 13, 13, 13];
this.panelNum = panelNumList[this.setPosNum];
this.mx = mPosList[this.setPosNum][0];
this.my = mPosList[this.setPosNum][1];
_root.panelMapList[this.my][this.mx] = this.myName;
this.px = ((this.mx - 1) * 80) + _root.baseX;
this.py = ((this.my - 1) * 80) + _root.baseY;
var idName = ("A_" + String(this.panelNum));
this.attachMovie(idName, "gMC", 1);
if (this.myName == "goalPanelMC") {
switch (this.panelNum) {
case 11 :
var xScale = (-100);
var sx = 30;
var sy = 70;
break;
case 12 :
var xScale = 100;
var sx = 10;
var sy = 30;
break;
case 10 :
var xScale = (-100);
var sx = 70;
var sy = 70;
break;
case 13 :
var xScale = 100;
var sx = 50;
var sy = 70;
}
_root.attachMovie("jelly", "jellyMC", _root.depthJelly);
_root.jellyMC._xscale = xScale;
_root.jellyMC._x = sx + this.px;
_root.jellyMC._y = sy + this.py;
}
Symbol 71 MovieClip [startPanel] Frame 3
this._x = this.px;
this._y = this.py;
this.stop();
Symbol 72 MovieClip [player] Frame 1
function initStartLoc() {
var startDirectList = [[0, 1], [0, 1], [0, 1], [0, 1], [-1, 0], [-1, 0], [-1, 0], [-1, 0], [0, -1], [0, -1], [0, -1], [0, -1], [1, 0], [1, 0], [1, 0], [1, 0]];
this.moveDirectList = startDirectList[_root.startPosNum];
this.targetPanelMC = _root.startPanelMC;
var nl = [13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16];
this.makedList(nl[_root.startPosNum]);
this.dListPtr = 10;
this.px = (this.targetPanelMC.px + 40) + (this.moveDirectList[0] * 20);
this.py = (this.targetPanelMC.py + 40) + (this.moveDirectList[1] * 20);
}
function initStartLocBull() {
var r = (_root.randomInt(4) - 1);
var startDirectList = [[0, 1], [0, -1], [1, 0], [-1, 0]];
this.moveDirectList = startDirectList[r];
this.targetPanelMC = _root[_root.bullStartMCName];
var nlList = [11, 12, 9, 10];
this.makedList(nlList[r]);
this.dListPtr = 20;
this.stat = "walk";
this.px = this.targetPanelMC.px + 40;
this.py = this.targetPanelMC.py + 40;
}
function setStat(nStat) {
this.stat = nStat;
}
function pauseOn() {
this.statBak = this.stat;
this.stat = "pause";
this.AnmMC.stop();
}
function pauseOff() {
this.stat = this.statBak;
this.AnmMC.play();
}
function getDirect() {
if (this.moveDirectList[1] == 1) {
var InDirect = 0;
var hx = 40;
var hy = 0;
}
if (this.moveDirectList[1] == -1) {
var InDirect = 1;
var hx = 40;
var hy = 80;
}
if (this.moveDirectList[0] == 1) {
var InDirect = 2;
var hx = 0;
var hy = 40;
}
if (this.moveDirectList[0] == -1) {
var InDirect = 3;
var hx = 80;
var hy = 40;
}
return([InDirect, hx, hy]);
}
function inNextPanel() {
var nList = this.getDirect();
var panelNum = this.targetPanelMC.panelNum;
var n = _root.panelInRootList[panelNum][nList[0]];
if (n == 0) {
if (this.miss() == false) {
return(undefined);
}
var nList = this.getDirect();
this.targetPanelMC = this.bakTargetPanelMC;
var panelNum = this.targetPanelMC.panelNum;
var n = _root.panelInRootList[panelNum][nList[0]];
}
this.makedList(n);
this.dListPtr = 0;
this.px = this.targetPanelMC.px + nList[1];
this.py = this.targetPanelMC.py + nList[2];
this.bakTargetPanelMC = this.targetPanelMC;
}
function main() {
switch (this.stat) {
case "walk" :
this.walk();
return;
case "crash" :
this.crash();
return;
case "bom" :
this.fly();
}
}
function timeUp() {
this.AnmMC.stop();
this.stat = "timeUp";
}
function hitBom() {
if (this.stat == "walk") {
this.stat = "bom";
this.pdx = 10;
this.pdy = -20;
_root.gotoAndPlay("miss");
}
}
function walk() {
var ptr = Math.ceil(this.dListPtr);
this.px = this.targetPanelMC.px + this.dList[ptr][0];
this.py = this.targetPanelMC.py + this.dList[ptr][1];
var nvx = (this.dList[ptr][0] - this.oldvx);
var nvy = (this.dList[ptr][1] - this.oldvy);
this.oldvx = this.dList[ptr][0];
this.oldvy = this.dList[ptr][1];
if ((this.dListPtr > 0) && (this.dListPtr < this.dList.length)) {
if (Math.abs(nvx) > Math.abs(nvy)) {
if (nvx < 0) {
this.Anm = "left";
} else {
this.Anm = "right";
}
} else if (nvy < 0) {
this.Anm = "up";
} else {
this.Anm = "down";
}
}
if (this.mode == "tobby") {
this.dListPtr = this.dListPtr + _root.playerSpeed;
} else {
if (this.hitDummyMC.hitTest(_root.playerMC.hitDummyMC)) {
_root.playerMC.hitBom();
}
this.dListPtr++;
}
if (this.dListPtr >= (this.dList.length - 1)) {
if (this.mode == "tobby") {
var MCname = ("panel" + String(_root.randomInt(15) - 1));
_root[MCname].entryItem();
}
var nx = (this.targetPanelMC.mx + this.moveDirectList[0]);
var ny = (this.targetPanelMC.my + this.moveDirectList[1]);
var MCname = _root.panelMapList[ny][nx];
var ndx = Math.abs(this.targetPanelMC._x - _root[MCname]._x);
var ndy = Math.abs(this.targetPanelMC._y - _root[MCname]._y);
var nd = Math.abs((ndx + ndy) - 80);
if (nd <= 40) {
if (MCname == "") {
this.turnflg = this.miss();
} else {
this.targetPanelMC = _root[MCname];
if ((MCname == "goalPanelMC") && (this.mode == "tobby")) {
this.stat = "end";
_root.lastSecMC.stopClock();
this.AnmMC.stop();
_root.gotoAndPlay("stageClear");
}
this.turnflg = true;
}
} else {
this.turnflg = this.miss();
}
if (this.turnflg) {
this.inNextPanel();
}
} else {
if (_root.playerSpeed == 3) {
if (this.mode == "tobby") {
this.Anm = this.Anm + "Run";
}
}
this.AnmMC.changeAnm(this.Anm);
}
}
function crash() {
this.px = this.px + this.pdx;
this.py = this.py + this.pdy;
this.pdx = this.pdx * 0.8;
this.pdy = this.pdy * 0.8;
}
function fly() {
this.px = this.px + this.pdx;
this.py = this.py + this.pdy;
this.pdy = this.pdy + 4;
this._rotation = this._rotation + 120;
this.AnmMC.changeAnm("bom");
}
function miss() {
if (this.mode == "bull") {
this.moveDirectList[0] = -this.moveDirectList[0];
this.moveDirectList[1] = -this.moveDirectList[1];
return(true);
}
if (_root.mode == "easy") {
this.moveDirectList[0] = -this.moveDirectList[0];
this.moveDirectList[1] = -this.moveDirectList[1];
return(true);
}
_root.gotoAndPlay("miss");
this.stat = "crash";
_root.stat = "crash";
switch (this.Anm) {
case "right" :
this.pdx = 2;
this.pdy = 0;
break;
case "left" :
this.pdx = -2;
this.pdy = 0;
break;
case "up" :
this.pdx = 0;
this.pdy = -2;
break;
case "down" :
this.pdx = 0;
this.pdy = 2;
}
this.Anm = this.Anm + "Crash";
this.AnmMC.changeAnm(this.Anm);
return(false);
}
function makedList(n) {
this.dList = [];
var panelsize = 80;
var r = 40;
switch (n) {
case 1 :
i = 0;
while (i < 30) {
var nx = (Math.cos(((i * 3) * Math.PI) / 180) * r);
var ny = (Math.sin(((i * 3) * Math.PI) / 180) * r);
this.dList.push([nx, ny]);
i++;
}
this.moveDirectList = [-1, 0];
return;
case 2 :
i = 30;
while (i > 0) {
var nx = (Math.cos(((i * 3) * Math.PI) / 180) * r);
var ny = (Math.sin(((i * 3) * Math.PI) / 180) * r);
this.dList.push([nx, ny]);
i--;
}
this.moveDirectList = [0, -1];
return;
case 3 :
i = 0;
while (i < 30) {
var nx = (((-Math.cos(((i * 3) * Math.PI) / 180)) * r) + 80);
var ny = (Math.sin(((i * 3) * Math.PI) / 180) * r);
this.dList.push([nx, ny]);
i++;
}
this.moveDirectList = [1, 0];
return;
case 4 :
i = 30;
while (i > 0) {
var nx = (((-Math.cos(((i * 3) * Math.PI) / 180)) * r) + 80);
var ny = (Math.sin(((i * 3) * Math.PI) / 180) * r);
this.dList.push([nx, ny]);
i--;
}
this.moveDirectList = [0, -1];
return;
case 5 :
i = 0;
while (i < 30) {
var nx = (Math.cos(((i * 3) * Math.PI) / 180) * r);
var ny = (((-Math.sin(((i * 3) * Math.PI) / 180)) * r) + 80);
this.dList.push([nx, ny]);
i++;
}
this.moveDirectList = [-1, 0];
return;
case 6 :
i = 30;
while (i > 0) {
var nx = (Math.cos(((i * 3) * Math.PI) / 180) * r);
var ny = (((-Math.sin(((i * 3) * Math.PI) / 180)) * r) + 80);
this.dList.push([nx, ny]);
i--;
}
this.moveDirectList = [0, 1];
return;
case 7 :
i = 0;
while (i < 30) {
var nx = (((-Math.cos(((i * 3) * Math.PI) / 180)) * r) + 80);
var ny = (((-Math.sin(((i * 3) * Math.PI) / 180)) * r) + 80);
this.dList.push([nx, ny]);
i++;
}
this.moveDirectList = [1, 0];
return;
case 8 :
i = 30;
while (i > 0) {
var nx = (((-Math.cos(((i * 3) * Math.PI) / 180)) * r) + 80);
var ny = (((-Math.sin(((i * 3) * Math.PI) / 180)) * r) + 80);
this.dList.push([nx, ny]);
i--;
}
this.moveDirectList = [0, 1];
return;
case 9 :
i = 0;
while (i < 40) {
this.dList.push([i * 2, r]);
i++;
}
return;
case 10 :
i = 40;
while (i > 0) {
this.dList.push([i * 2, r]);
i--;
}
return;
case 11 :
i = 0;
while (i < 40) {
this.dList.push([r, i * 2]);
i++;
}
return;
case 12 :
i = 40;
while (i > 0) {
this.dList.push([r, i * 2]);
i--;
}
return;
case 13 :
i = 10;
while (i > 0) {
this.dList.push([r, (i * 2) + 60]);
i--;
}
i = 0;
while (i < 10) {
this.dList.push([r, (i * 2) + 60]);
i++;
}
this.moveDirectList = [0, 1];
return;
case 14 :
i = 0;
while (i < 10) {
this.dList.push([i * 2, r]);
i++;
}
i = 10;
while (i > 0) {
this.dList.push([i * 2, r]);
i--;
}
this.moveDirectList = [-1, 0];
return;
case 15 :
i = 0;
while (i < 10) {
this.dList.push([r, i * 2]);
i++;
}
i = 10;
while (i > 0) {
this.dList.push([r, i * 2]);
i--;
}
this.moveDirectList = [0, -1];
return;
case 16 :
i = 10;
while (i > 0) {
this.dList.push([(i * 2) + 60, r]);
i--;
}
i = 0;
while (i < 10) {
this.dList.push([(i * 2) + 60, r]);
i++;
}
this.moveDirectList = [1, 0];
}
}
this.stat = "standby";
this.statBak = this.stat;
if (this.mode == "tobby") {
this.attachMovie("tobbyAnm", "anmMC", 1);
this.initStartLoc();
} else {
this.initStartLocBull();
this.attachMovie("bullAnm", "anmMC", 1);
}
this.oldvx = 0;
this.oldvy = 0;
this.bakTargetPanelMC = this.targetPanelMC;
Symbol 72 MovieClip [player] Frame 3
this.main();
this._x = this.px;
this._y = this.py;
this.swapDepths(_root.depthPlayer + this.py);
this.gotoAndPlay(_currentframe - 1);
Symbol 83 MovieClip [waitStart] Frame 1
function startTimer() {
this.startTime = getTimer();
}
function dispTime() {
var pastTime = Math.floor((getTimer() - this.startTime) / 1000);
this.dispSec = (this.waitSec - pastTime) - this.skipSec;
}
function skipWaitTime() {
if (this.waitFlg) {
this.skipSec = this.skipSec + 1;
}
}
function pauseOn() {
if (this.waitFlg) {
this.pauseTime = getTimer() - this.startTime;
this.doFlg = false;
_root.SE_clock.setVolume(0);
} else {
this.stop();
}
}
function pauseOff() {
if (this.waitFlg) {
this.startTime = getTimer() - this.pauseTime;
this.doFlg = true;
_root.SE_clock.setVolume(100);
} else {
this.play();
}
}
this.dispSec = this.waitSec;
this.waitFlg = false;
this.skipSec = 0;
this.pauseTime = 0;
this.doFlg = true;
Symbol 83 MovieClip [waitStart] Frame 31
this.startTimer();
this.waitFlg = true;
_root.SE_clock.start(0, 1000000);
Symbol 83 MovieClip [waitStart] Frame 33
if (this.doFlg) {
this.dispTime();
}
if (this.dispSec <= 0) {
_root.SE_clock.stop();
_root.gotoAndPlay("main");
this.removeMovieClip();
} else {
this.gotoAndPlay(_currentframe - 1);
}
Symbol 85 MovieClip [miss] Frame 20
_root.play();
this.removeMovieClip();
Symbol 87 MovieClip [timeup] Frame 20
_root.play();
this.removeMovieClip();
Symbol 91 Button
on (release) {
_root.gotoAndPlay("gameover");
this.removeMovieClip();
}
on (rollOver) {
_root.SE_over.start(0, 0);
}
Symbol 93 Button
on (release) {
_root.score = 0;
_root.lastPlayerCnt = 3;
_root.reNewStageFlg = false;
_root.removeALlMC();
_root.gotoAndPlay("stagein");
this.removeMovieClip();
}
on (rollOver) {
_root.SE_over.start(0, 0);
}
Symbol 95 MovieClip [continue] Frame 1
this.stop();
Symbol 97 MovieClip [gameover] Frame 44
_root.gotoAndPlay("title");
_root.removeALlMC();
this.removeMovieClip();
Symbol 102 MovieClip [stageClear] Frame 1
var lastSec = _root.lastSecMC.getLastSec();
this.bonus = lastSec * 80;
Symbol 102 MovieClip [stageClear] Frame 10
_root.score = _root.score + this.bonus;
Symbol 102 MovieClip [stageClear] Frame 30
_root.gotoAndPlay("nextStage");
this.removeMovieClip();
Symbol 122 MovieClip [bullAnm] Frame 1
function changeAnm(nAnmName) {
if (this.anmName != nAnmName) {
this.anmName = nAnmName;
this.gotoAndPlay(this.anmName);
}
}
this.anmName = "";
this.stop();
Symbol 122 MovieClip [bullAnm] Frame 19
this.gotoAndPlay("right");
Symbol 122 MovieClip [bullAnm] Frame 22
this.gotoAndPlay("rightRun");
Symbol 122 MovieClip [bullAnm] Frame 30
this.stop();
Symbol 122 MovieClip [bullAnm] Frame 49
this.gotoAndPlay("left");
Symbol 122 MovieClip [bullAnm] Frame 52
this.gotoAndPlay("leftRun");
Symbol 122 MovieClip [bullAnm] Frame 61
this.stop();
Symbol 122 MovieClip [bullAnm] Frame 79
this.gotoAndPlay("down");
Symbol 122 MovieClip [bullAnm] Frame 82
this.gotoAndPlay("downRun");
Symbol 122 MovieClip [bullAnm] Frame 91
this.stop();
Symbol 122 MovieClip [bullAnm] Frame 109
this.gotoAndPlay("up");
Symbol 122 MovieClip [bullAnm] Frame 112
this.gotoAndPlay("upRun");
Symbol 122 MovieClip [bullAnm] Frame 121
this.stop();
Symbol 122 MovieClip [bullAnm] Frame 131
this.stop();
Symbol 145 MovieClip [tobbyAnm] Frame 1
function changeAnm(nAnmName) {
if (this.anmName != nAnmName) {
this.anmName = nAnmName;
this.gotoAndPlay(this.anmName);
}
}
this.anmName = "";
this.stop();
Symbol 145 MovieClip [tobbyAnm] Frame 19
this.gotoAndPlay("right");
Symbol 145 MovieClip [tobbyAnm] Frame 22
this.gotoAndPlay("rightRun");
Symbol 145 MovieClip [tobbyAnm] Frame 30
this.stop();
Symbol 145 MovieClip [tobbyAnm] Frame 49
this.gotoAndPlay("left");
Symbol 145 MovieClip [tobbyAnm] Frame 52
this.gotoAndPlay("leftRun");
Symbol 145 MovieClip [tobbyAnm] Frame 61
this.stop();
Symbol 145 MovieClip [tobbyAnm] Frame 79
this.gotoAndPlay("down");
Symbol 145 MovieClip [tobbyAnm] Frame 82
this.gotoAndPlay("downRun");
Symbol 145 MovieClip [tobbyAnm] Frame 91
this.stop();
Symbol 145 MovieClip [tobbyAnm] Frame 109
this.gotoAndPlay("up");
Symbol 145 MovieClip [tobbyAnm] Frame 112
this.gotoAndPlay("upRun");
Symbol 145 MovieClip [tobbyAnm] Frame 121
this.stop();
Symbol 145 MovieClip [tobbyAnm] Frame 131
this.stop();
Symbol 152 MovieClip [jelly] Frame 1
this.swapDepths(_root.depthPlayer + this._y);
this.stop();
Symbol 152 MovieClip [jelly] Frame 17
this.gotoAndPlay("happy");
Symbol 153 Button
on (release) {
_root.pauseWindowFlg = false;
_root.pauseOff();
this.removeMovieClip();
}
on (rollOver) {
_root.SE_over.start(0, 0);
}
Symbol 154 Button
on (release) {
_root.BGM_game.stop();
_root.SE_clock.stop();
_root.pauseWindowFlg = false;
_root.pauseOff();
_root.removeALlMC();
_root.gotoAndPlay("title");
this.removeMovieClip();
}
on (rollOver) {
_root.SE_over.start(0, 0);
}
Symbol 156 MovieClip [winReturn] Frame 1
this.stop();
Symbol 160 MovieClip [itempoint] Frame 1
_root.score = _root.score + this.point;
if (this.mes == "1UP") {
_root.lastPlayerMC.Up();
}
Symbol 160 MovieClip [itempoint] Frame 21
this.removeMovieClip();
Symbol 169 MovieClip Frame 1
this.stop();
Symbol 170 MovieClip [item] Frame 1
this.life = 60;
this.gMC.gotoAndStop(this.ItemNum);
switch (this.itemNum) {
case 1 :
this.point = 100;
this.mes = String(this.point);
break;
case 2 :
this.point = 200;
this.mes = String(this.point);
break;
case 3 :
this.point = 300;
this.mes = String(this.point);
break;
case 4 :
this.point = 400;
this.mes = String(this.point);
break;
case 5 :
this.point = 800;
this.mes = String(this.point);
break;
case 6 :
this.point = -100;
this.mes = String(this.point);
break;
case 7 :
this.point = -200;
this.mes = String(this.point);
break;
case 8 :
this.point = 0;
this.mes = "1UP";
}
Symbol 170 MovieClip [item] Frame 8
if (this.hitDummyMC.hitTest(_root.playerMC.hitDummyMC)) {
var mcName = ("itemPoint" + String(_root.depthItemPoint));
_root.attachMovie("itempoint", mcName, _root.depthItemPoint);
_root[mcName]._x = _root.playerMC._x;
_root[mcName]._y = _root.playerMC._y;
_root[mcName].point = this.point;
_root[mcName].mes = this.mes;
_root.SE_item.start(0, 0);
_parent.unEntryItem();
this.removeMovieClip();
} else {
if (_root.pauseFlg == false) {
this.life--;
}
if (this.life < 15) {
this._visible = this.life % 2;
}
if (this.life == 0) {
_parent.unEntryItem();
this.removeMovieClip();
} else {
this.gotoAndPlay(_currentframe - 1);
}
}
Symbol 172 MovieClip [hart] Frame 1
function main() {
this._x = this._x + (this.pdx + (Math.cos((this.angle * Math.PI) / 180) * 3));
this._y = this._y + this.pdy;
var n = (0.98 - ((100 - this.scale) / 1200));
this.pdx = this.pdx * n;
this.pdy = this.pdy * n;
this.pdy = this.pdy - 0.2;
this._xscale = this.scale;
this._yscale = this.scale;
this.scale = this.scale * 0.99;
this.angle = this.angle + 5;
}
this.pdy = -_root.randomInt(10);
this.pdx = _root.randomInt(20) - 10;
this.angle = _root.randomInt(360);
Symbol 172 MovieClip [hart] Frame 3
this.main();
if (this.scale < 10) {
this.gotoAndStop(10);
} else {
this.gotoAndPlay(_currentframe - 1);
}
Symbol 172 MovieClip [hart] Frame 10
this.stop();
Symbol 201 Button
on (press) {
_root.SE_item.start(0, 0);
_root.gotoAndPlay("title");
}
on (rollOver) {
_root.SE_over.start(0, 0);
}
Symbol 202 Button
on (press) {
_root.pauseOff();
_root.instWindowFlg = false;
_root.instMC.removeMovieClip();
}
on (rollOver) {
_root.SE_over.start(0, 0);
}
Symbol 203 MovieClip [inst] Frame 1
this.stop();
Symbol 203 MovieClip [inst] Frame 2
this.stop();
Symbol 206 MovieClip [lastPlayer] Frame 1
function reset() {
fn = _root.lastPlayerCnt + 1;
this.gotoAndStop(fn);
}
function up() {
_root.lastPlayerCnt++;
if (_root.lastPlayerCnt > 5) {
_root.lastPlayerCnt = 5;
}
this.reset();
}
this.reset();
Symbol 214 MovieClip Frame 9
var versionNum = getVersion().slice(4, 5);
trace(versionNum);
if (Number(versionNum) >= 6) {
this.gotoAndPlay("ok");
} else {
this.gotoAndPlay("ng");
}
Symbol 214 MovieClip Frame 19
_parent.gotoAndPlay("loading");
this.stop();
Symbol 214 MovieClip Frame 25
this.stop();
Symbol 224 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 224 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 224 MovieClip Frame 5
this.bar._width = 300;
Symbol 224 MovieClip Frame 19
_root.gotoAndPlay("init");
Symbol 232 Button
on (press) {
_root.SE_item.start(0, 0);
_root.gotoAndPlay("inst");
}
on (rollOver) {
_root.SE_over.start(0, 0);
}
Symbol 234 Button
on (release) {
if (this.clickStartBtnFlg) {
return(undefined);
}
_root.SE_item.start(0, 0);
this.clickStartBtnFlg = true;
_root.mode = "easy";
_root.initDepth();
_root.initGame();
_root.play();
}
on (rollOver) {
_root.SE_over.start(0, 0);
}
Symbol 236 Button
on (release) {
if (this.clickStartBtnFlg) {
return(undefined);
}
_root.SE_item.start(0, 0);
this.clickStartBtnFlg = true;
_root.mode = "hard";
_root.initDepth();
_root.initGame();
_root.play();
}
on (rollOver) {
_root.SE_over.start(0, 0);
}
Symbol 240 MovieClip Frame 1
this.clickStartBtnFlg = false;
Symbol 240 MovieClip Frame 30
this.stop();
Symbol 247 Button
on (press) {
this.gotoAndPlay("inst");
}
Symbol 262 MovieClip Frame 1
this.stop();
Symbol 266 MovieClip Frame 1
function dispTime() {
var pastTime = Math.floor((getTimer() - this.startTime) / 1000);
this.dispSec = this.lastSec - pastTime;
}
function setClock(nSec) {
this.lastSec = nSec;
this.dispSec = this.lastSec;
}
function startClock() {
this.startTime = getTimer();
this.doFlg = true;
}
function stopClock() {
this.doFlg = false;
}
function pauseOn() {
this.pauseTime = getTimer() - this.startTime;
this.doFlg = false;
}
function pauseOff() {
this.startTime = getTimer() - this.pauseTime;
this.doFlg = true;
}
function getLastSec() {
return(this.dispSec);
}
this.dispSec = 0;
this.doflg = false;
Symbol 266 MovieClip Frame 3
if (this.doFlg) {
this.dispTime();
if (this.dispSec == 0) {
_root.playerMC.timeUP();
_root.stat = "timeup";
_root.gotoAndPlay("miss");
}
}
this.gotoAndPlay(_currentframe - 1);
Symbol 273 Button
on (press) {
if (this.instWindowFlg) {
return(undefined);
}
if (this.pauseFlg) {
_root.pauseOff();
_root.winReturnMC.removeMovieClip();
this.pauseWindowFlg = false;
} else {
_root.pauseOn();
_root.attachMovie("winReturn", "winReturnMC", _root.depthWindow++);
_root.winReturnMC._x = 320;
_root.winReturnMC._y = 260;
this.pauseWindowFlg = true;
}
}
Symbol 274 Button
on (press) {
if (this.pauseWindowFlg) {
return(undefined);
}
if (this.pauseFlg) {
_root.pauseOff();
_root.instMC.removeMovieClip();
_root.instWindowFlg = false;
} else {
_root.pauseOn();
_root.attachMovie("inst", "instMC", _root.depthWindow++);
_root.instMC._x = 320;
_root.instMC._y = 260;
_root.instMC.gotoAndStop(2);
_root.instWindowFlg = true;
}
}
Symbol 282 MovieClip Frame 1
_parent.stop();
this.startTime = getTimer();
Symbol 282 MovieClip Frame 3
if (this.stayTime <= (getTimer() - this.startTime)) {
_parent.play();
this.stop();
} else {
this.gotoAndPlay(_currentframe - 1);
}
Symbol 285 MovieClip Frame 5
var cnt = Math.floor(_root.Score / 300);
if (cnt > 100) {
cnt = 100;
}
if (cnt < 10) {
cnt = 10;
}
i = 0;
while (i < cnt) {
scale = 10 + ((i * 10) % 100);
var newName = ("h" + String(i));
this.attachMovie("hart", newName, i);
this[newName]._x = 0;
this[newName]._y = 100;
this[newName].scale = scale;
i++;
}
Instance of Symbol 282 MovieClip in Symbol 285 MovieClip Frame 24
//component parameters
onClipEvent (initialize) {
stayTime = 4000;
}
Instance of Symbol 282 MovieClip in Symbol 285 MovieClip Frame 38
//component parameters
onClipEvent (initialize) {
stayTime = 2000;
}
Instance of Symbol 282 MovieClip in Symbol 285 MovieClip Frame 57
//component parameters
onClipEvent (initialize) {
stayTime = 4000;
}
Symbol 285 MovieClip Frame 75
_root.gotoAndPlay("title");
this.stop();
Symbol 286 Button
on (press) {
this.gotoAndPlay("title");
}