Frame 1
function setObj(x, y, z) {
var obj;
obj = new Object();
obj.x = x;
obj.y = y;
obj.z = z;
return(obj);
}
function backVal(val, incr, dif) {
var temp = (val + incr);
if (temp > dif) {
temp = temp - dif;
} else if (temp < 0) {
temp = temp + dif;
}
return(temp);
}
function backVal2(val, incr, dif, ypos) {
if (((ypos > 90) && (ypos < 270)) && (_root.repair == true)) {
var temp = (val - incr);
} else {
var temp = (val + incr);
}
if (temp > dif) {
temp = temp - dif;
} else if (temp < 0) {
temp = temp + dif;
}
return(temp);
}
function BombCheck(code, myNum) {
if (_root.main["bomb" + myNum] == true) {
cost = 999;
} else {
cost = 0;
this.checkcode = code;
pas = this.checkcode.indexOf("/");
while (pas != -1) {
if (_root.main["bomb" + (this.checkcode.substr(0, pas) * 1)] == true) {
cost++;
}
this.checkcode = this.checkcode.substr(pas + 1);
pas = this.checkcode.indexOf("/");
}
if (_root.main["bomb" + (this.checkcode * 1)] == true) {
cost++;
}
}
return(cost);
}
function bombset(bom, pan, nowP) {
cou = 0;
while (cou < bom) {
j = Math.floor(Math.random() * (pan + 1));
if (((_root.main["bomb" + j] != true) && (j != 10)) && (j != nowP)) {
_root.main["bomb" + j] = true;
cou++;
}
}
cou = 0;
}
function bomber(cou) {
_root.main.triangle0.cap = "bomb";
_root.main.triangle0.cou.count = "";
_root.main.triangle0._x = _root.main.triangle0._x + _root.main.clash_out;
i = 1;
while (i <= cou) {
_root.main["triangle" + i].cap = "bomb";
_root.main["triangle" + i].cou.count = "";
_root.main["triangle" + i]._x = _root.main["triangle" + i]._x + (Math.cos((((360 / cou) * i) * Math.PI) / 180) * _root.main.clash_out);
_root.main["triangle" + i]._y = _root.main["triangle" + i]._y + (Math.sin((((360 / cou) * i) * Math.PI) / 180) * _root.main.clash_out);
i++;
}
_root.main.clash_out = _root.main.clash_out / 2;
if ((_root.main.clash_out < 1) && (_root.main.clash_out != 0)) {
_root.scene_board.gotoAndPlay("failed");
_root.main.clash_out = 0;
}
}
bgm1 = new Sound();
bgm1.attachSound("melody1");
bgm2 = new Sound();
bgm2.attachSound("melody2");
se1 = new Sound();
se1.attachSound("effect1");
se2 = new Sound();
se2.attachSound("effect2");
se3 = new Sound();
se3.attachSound("effect3");
se4 = new Sound();
se4.attachSound("effect4");
bgm1.onSoundComplete = function () {
bgm2.start(0, 20);
};
bgm2.onSoundComplete = function () {
bgm1.start(0, 1);
};
System.usecodepage = true;
Stage.showMenu = false;
mission = 1;
maxspeed = 20;
Rspeed = "low";
downspeed = 5;
menu_mode = "visible";
repair = true;
Trance = 100;
Hdisp = true;
volume = 100;
_root.cursor_mode = "open";
_root.hiscore = 0;
_root.gametime = 0;
_root.miss_count = 0;
Frame 3
if (_root._framesloaded > 670) {
_root.gotoAndPlay("skt");
} else {
_root.gotoAndPlay(2);
}
Frame 4
stop();
bgm1.stop();
bgm2.stop();
Frame 9
Frame 16
if (_root.Hdisp == false) {
_root.haikei._visible = false;
}
_root.cursor_mode = "open";
_root.cursor_disp.gotoAndStop("open");
_root.gametime = 0;
_root.timermove = false;
Instance of Symbol 10 MovieClip in Frame 16
onClipEvent (keyDown) {
keycode = String.fromCharCode(Key.getCode());
if (keycode == "M") {
if (_root.menu_mode == "visible") {
_root.menu.gotoAndPlay("visible_out");
_root.menu_mode = "none";
_root.opt.check11.gotoAndStop("none");
_root.opt.check12.gotoAndStop("checked");
} else if (_root.menu_mode == "hidden") {
_root.menu.gotoAndPlay("hidden_out");
_root.menu_mode = "none";
_root.opt.check11.gotoAndStop("checked");
_root.opt.check12.gotoAndStop("none");
}
}
if (keycode == "C") {
if (_root.repair == true) {
_root.repair = false;
_root.opt.check13.gotoAndStop("none");
_root.opt.check14.gotoAndStop("checked");
} else {
_root.repair = true;
_root.opt.check13.gotoAndStop("checked");
_root.opt.check14.gotoAndStop("none");
}
}
if (keycode == "R") {
if (_root.Rspeed == "low") {
_root.Rspeed = "mid";
_root.maxspeed = 30;
_root.opt.check06.gotoAndStop("none");
_root.opt.check07.gotoAndStop("checked");
_root.opt.check08.gotoAndStop("none");
} else if (_root.Rspeed == "mid") {
_root.Rspeed = "hi";
_root.maxspeed = 50;
_root.opt.check06.gotoAndStop("none");
_root.opt.check07.gotoAndStop("none");
_root.opt.check08.gotoAndStop("checked");
} else if (_root.Rspeed == "hi") {
_root.Rspeed = "low";
_root.maxspeed = 20;
_root.opt.check06.gotoAndStop("checked");
_root.opt.check07.gotoAndStop("none");
_root.opt.check08.gotoAndStop("none");
}
}
if (keycode == "T") {
if (_root.Trance == 100) {
_root.Trance = 90;
_root.opt.check03.gotoAndStop("none");
_root.opt.check04.gotoAndStop("checked");
_root.opt.check05.gotoAndStop("none");
} else if (_root.Trance == 90) {
_root.Trance = 70;
_root.opt.check03.gotoAndStop("none");
_root.opt.check04.gotoAndStop("none");
_root.opt.check05.gotoAndStop("checked");
} else if (_root.Trance == 70) {
_root.Trance = 100;
_root.opt.check03.gotoAndStop("checked");
_root.opt.check04.gotoAndStop("none");
_root.opt.check05.gotoAndStop("none");
}
}
if (keycode == "B") {
if (_root.Hdisp == true) {
_root.Hdisp = false;
_root.haikei._visible = false;
_root.opt.check09.gotoAndStop("none");
_root.opt.check10.gotoAndStop("checked");
} else {
_root.Hdisp = true;
_root.haikei._visible = true;
_root.opt.check09.gotoAndStop("checked");
_root.opt.check10.gotoAndStop("none");
}
}
if (keycode == "S") {
if (_root.volume == 100) {
_root.volume = 0;
_root.opt.check01.gotoAndStop("none");
_root.opt.check02.gotoAndStop("checked");
} else {
_root.volume = 100;
_root.opt.check01.gotoAndStop("checked");
_root.opt.check02.gotoAndStop("none");
}
_root.bgm1.setVolume(_root.volume);
}
if (Key.isDown(38)) {
if (_root.main.nowSize == _root.main.SizeMid) {
_root.main.nowSize = _root.main.SizeLar;
_root.main.setpoint();
_root.opt.check15.gotoAndStop("none");
_root.opt.check16.gotoAndStop("none");
_root.opt.check17.gotoAndStop("checked");
} else if (_root.main.nowSize == _root.main.SizeLar) {
_root.main.nowSize = _root.main.SizeLow;
_root.main.setpoint();
_root.opt.check15.gotoAndStop("checked");
_root.opt.check16.gotoAndStop("none");
_root.opt.check17.gotoAndStop("none");
} else if (_root.main.nowSize == _root.main.SizeLow) {
_root.main.nowSize = _root.main.SizeMid;
_root.main.setpoint();
_root.opt.check15.gotoAndStop("none");
_root.opt.check16.gotoAndStop("checked");
_root.opt.check17.gotoAndStop("none");
}
}
if (Key.isDown(40)) {
if (_root.main.nowSize == _root.main.SizeMid) {
_root.main.nowSize = _root.main.SizeLow;
_root.main.setpoint();
_root.opt.check15.gotoAndStop("checked");
_root.opt.check16.gotoAndStop("none");
_root.opt.check17.gotoAndStop("none");
} else if (_root.main.nowSize == _root.main.SizeLar) {
_root.main.nowSize = _root.main.SizeMid;
_root.main.setpoint();
_root.opt.check15.gotoAndStop("none");
_root.opt.check16.gotoAndStop("checked");
_root.opt.check17.gotoAndStop("none");
} else if (_root.main.nowSize == _root.main.SizeLow) {
_root.main.nowSize = _root.main.SizeLar;
_root.main.setpoint();
_root.opt.check15.gotoAndStop("none");
_root.opt.check16.gotoAndStop("none");
_root.opt.check17.gotoAndStop("checked");
}
}
if (Key.isDown(32)) {
if (_root.cursor_mode == "bomb") {
_root.cursor_mode = "open";
_root.cursor_disp.gotoAndStop("open");
} else {
_root.cursor_mode = "bomb";
_root.cursor_disp.gotoAndStop("bomb");
}
}
if (Key.isDown(17)) {
if (_root.cursor_mode == "lock") {
_root.cursor_mode = "open";
_root.cursor_disp.gotoAndStop("open");
} else {
_root.cursor_mode = "lock";
_root.cursor_disp.gotoAndStop("lock");
}
}
}
Frame 17
_root.game_stop = true;
if (_root.menu_mode == "hidden") {
_root.menu.gotoAndStop("hidden");
}
stop();
Instance of Symbol 10 MovieClip "main" in Frame 17
onClipEvent (load) {
function setPoint() {
Point = new Array();
gr = this.nowSize;
fX = 1.61803398874989;
fS = ((fX + 1) / 2) * gr;
sin72 = 0.951056516295154;
sin36 = 0.587785252292473;
cos72 = 0.309016994374947;
cos36 = 0.809016994374947;
point[0] = _root.setObj(gr, 0, -fS);
point[1] = _root.setObj(cos72 * gr, sin72 * gr, -fS);
point[2] = _root.setObj((cos36 * -1) * gr, sin36 * gr, -fS);
point[3] = _root.setObj((cos36 * -1) * gr, (sin36 * -1) * gr, -fS);
point[4] = _root.setObj(cos72 * gr, (sin72 * -1) * gr, -fS);
point[5] = _root.setObj(fX * gr, 0, gr - fS);
point[7] = _root.setObj((fX * cos72) * gr, (fX * sin72) * gr, gr - fS);
point[9] = _root.setObj(((fX * cos36) * -1) * gr, (fX * sin36) * gr, gr - fS);
point[11] = _root.setObj(((fX * cos36) * -1) * gr, ((fX * sin36) * -1) * gr, gr - fS);
point[13] = _root.setObj((fX * cos72) * gr, ((fX * sin72) * -1) * gr, gr - fS);
point[6] = _root.setObj((fX * cos36) * gr, (fX * sin36) * gr, (fX * gr) - fS);
point[8] = _root.setObj(((fX * cos72) * -1) * gr, (fX * sin72) * gr, (fX * gr) - fS);
point[10] = _root.setObj((fX * -1) * gr, 0, (fX * gr) - fS);
point[12] = _root.setObj(((fX * cos72) * -1) * gr, ((fX * sin72) * -1) * gr, (fX * gr) - fS);
point[14] = _root.setObj((fX * cos36) * gr, ((fX * sin36) * -1) * gr, (fX * gr) - fS);
point[15] = _root.setObj(-1 * gr, 0, ((fX + 1) * gr) - fS);
point[16] = _root.setObj((-1 * cos72) * gr, (-1 * sin72) * gr, ((fX + 1) * gr) - fS);
point[17] = _root.setObj(cos36 * gr, (-1 * sin36) * gr, ((fX + 1) * gr) - fS);
point[18] = _root.setObj(cos36 * gr, sin36 * gr, ((fX + 1) * gr) - fS);
point[19] = _root.setObj((-1 * cos72) * gr, sin72 * gr, ((fX + 1) * gr) - fS);
}
function followMatrix(old) {
var old;
var obj = new Object();
obj.x = _root._xmouse;
obj.y = _root._ymouse;
if ((typeof(old.x) == "undefined") && (typeof(old.y) == "undefined")) {
old = new Object();
old.x = obj.x;
old.y = obj.y;
}
var checkX = (obj.x - old.x);
var checkY = (obj.y - old.y);
if (sPress or ((checkX != 0) and (checkY != 0))) {
if (_root.game_stop == false) {
obj.difX = (old.x - obj.x) / 2;
obj.difY = (obj.y - old.y) / 2;
}
if ((obj.difX > _root.maxspeed) && (obj.difX > 0)) {
obj.difX = _root.maxspeed;
} else if ((obj.difX < (_root.maxspeed * -1)) && (obj.difX < 0)) {
obj.difX = _root.maxspeed * -1;
}
if ((obj.difY > _root.maxspeed) && (obj.difY > 0)) {
obj.difY = _root.maxspeed;
} else if ((obj.difY < (_root.maxspeed * -1)) && (obj.difY < 0)) {
obj.difY = _root.maxspeed * -1;
}
}
if ((!sPress) or ((checkX == 0) and (checkY == 0))) {
obj.difX = old.difX - (old.difX / _root.downspeed);
obj.difY = old.difY - (old.difY / _root.downspeed);
}
obj.angY = _root.backVal(old.angY, obj.difY, 360);
obj.angX = _root.backVal2(old.angX, obj.difX, 360, obj.angY);
CoordPoint = launch3D("Point", obj.angY, obj.angX, d);
return(obj);
}
function launch3D(object3D, xAng, yAng, d) {
var xRad = ((Math.PI/180) * xAng);
var yRad = ((Math.PI/180) * yAng);
var sinX = Math.sin(xRad);
var cosX = Math.cos(xRad);
var sinY = Math.sin(yRad);
var cosY = Math.cos(yRad);
var source = eval (object3D);
var obj = new Array();
var u = source.length;
var i = 0;
while (i < u) {
obj[i] = new Object();
var tempz = ((source[i].z * cosY) - (source[i].x * sinY));
obj[i].z = (source[i].y * sinX) + (tempz * cosX);
obj[i].x = (source[i].z * sinY) + (source[i].x * cosY);
obj[i].y = (source[i].y * cosX) - (tempz * sinX);
var scalar = (1 / ((obj[i].z / d) + 1));
obj[i].x = (obj[i].x * scalar) + 0;
obj[i].y = (obj[i].y * scalar) + 0;
i = i + 1;
}
for (i in obj) {
}
return(obj);
}
function Triangle_Write(TA, TB, TC, TD, TE, TN) {
trdepth = Math.floor(Math.max(Math.max(Math.max(Math.max(CoordPoint[TA].z, CoordPoint[TB].z), CoordPoint[TC].z), CoordPoint[TD].z), CoordPoint[TE].z)) + 250;
trdepth = trdepth + Math.floor(((((CoordPoint[TA].z + CoordPoint[TB].z) + CoordPoint[TC].z) + CoordPoint[TD].z) + CoordPoint[TE].z) / 5);
trdepth = 10000 - (trdepth * 10);
with (this["triangle" + TN]) {
clear();
linestyle(1, 0, 100);
if (this["triangle" + TN].cap == "bomb") {
beginFill(this.bombcolor, _root.Trance);
} else if (this["triangle" + TN].cap == "open") {
beginFill(this.opencolor, _root.Trance);
} else if (this["triangle" + TN].overfacer == true) {
beginFill(this.overcolor, _root.Trance);
} else {
beginFill(this.outcolor, _root.Trance);
}
moveTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
lineTo(this.CoordPoint[TB].x, this.CoordPoint[TB].y);
lineTo(this.CoordPoint[TC].x, this.CoordPoint[TC].y);
lineTo(this.CoordPoint[TD].x, this.CoordPoint[TD].y);
lineTo(this.CoordPoint[TE].x, this.CoordPoint[TE].y);
lineTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
swapDepths(trdepth + TN);
}
trmaxX = Math.floor(Math.max(Math.max(Math.max(Math.max(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x), CoordPoint[TD].x), CoordPoint[TE].x));
trminX = Math.floor(Math.min(Math.min(Math.min(Math.min(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x), CoordPoint[TD].x), CoordPoint[TE].x));
trmaxY = Math.floor(Math.max(Math.max(Math.max(Math.max(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y), CoordPoint[TD].y), CoordPoint[TE].y));
trminY = Math.floor(Math.min(Math.min(Math.min(Math.min(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y), CoordPoint[TD].y), CoordPoint[TE].y));
ptcenterX = (trmaxX + trminX) / 2;
ptcenterY = (trmaxY + trminY) / 2;
this["triangle" + TN].cou._x = ptcenterX;
this["triangle" + TN].cou._y = ptcenterY;
}
this.outcolor = "0xFFF4FF";
this.overcolor = "0xF5E0F6";
this.bombcolor = "0xFF3333";
this.opencolor = "0x777777";
this.SizeMid = 50;
this.SizeLar = 60;
this.SizeLow = 40;
this.nowSize = this.SizeMid;
this.st_bomcount = 2;
this.bomcount = 0;
this.st_panel = 12;
this.joint0 = "1/2/3/4/5";
this.joint1 = "0/2/5/9/11";
this.joint2 = "0/1/3/11/12";
this.joint3 = "0/2/4/7/12";
this.joint4 = "0/3/5/7/8";
this.joint5 = "0/1/4/8/9";
this.joint6 = "7/8/9/11/12";
this.joint7 = "3/4/6/8/12";
this.joint8 = "4/5/6/7/9";
this.joint9 = "1/5/6/8/11";
this.joint11 = "1/2/6/9/12";
this.joint12 = "2/3/6/7/11";
bomcount = 0;
panel = 0;
clash_out = 40;
var d = 10000;
setPoint();
CoordPoint = _root.launch3D("point", 5, 5);
trai = 0;
while (trai <= 12) {
this.attachMovie("facer", "triangle" + trai, trai + 1);
trai++;
}
}
onClipEvent (enterFrame) {
if (bomb_out != true) {
if ((_root.timermove == true) && (_root.gametime < 30000)) {
_root.gametime++;
}
tempFollow = followMatrix(tempFollow);
} else {
_root.bomber(12);
}
Triangle_Write(0, 1, 2, 3, 4, 0);
Triangle_Write(1, 0, 5, 6, 7, 1);
Triangle_Write(2, 1, 7, 8, 9, 2);
Triangle_Write(3, 2, 9, 10, 11, 3);
Triangle_Write(4, 3, 11, 12, 13, 4);
Triangle_Write(0, 4, 13, 14, 5, 5);
Triangle_Write(15, 16, 17, 18, 19, 6);
Triangle_Write(16, 15, 10, 11, 12, 7);
Triangle_Write(17, 16, 12, 13, 14, 8);
Triangle_Write(18, 17, 14, 5, 6, 9);
Triangle_Write(19, 18, 6, 7, 8, 11);
Triangle_Write(15, 19, 8, 9, 10, 12);
if (_root.menu_mode == "visible") {
_root.menu.menubase.timecounter = _root.gametime;
_root.menu.menubase.bombcounter = (_root.main.bomcount + "/") + _root.main.st_bomcount;
_root.menu.menubase.panelcounter = (_root.main.panel + "/") + _root.main.st_panel;
}
}
onClipEvent (mouseDown) {
sPress = true;
}
onClipEvent (mouseUp) {
sPress = false;
}
Frame 26
if (_root.Hdisp == false) {
_root.haikei._visible = false;
}
_root.cursor_mode = "open";
_root.cursor_disp.gotoAndStop("open");
_root.gametime = 0;
Frame 27
_root.game_stop = true;
if (_root.menu_mode == "hidden") {
_root.menu.gotoAndStop("hidden");
}
stop();
Instance of Symbol 10 MovieClip "main" in Frame 27
onClipEvent (load) {
function setPoint() {
Point = new Array();
gr = this.nowSize;
fa = 0.447213595499958;
fb = (1 - fa) / 2;
fc = (1 + fa) / 2;
fd = Math.sqrt(fb);
fe = Math.sqrt(fc);
point[0] = _root.setObj(0, gr, 0);
point[11] = _root.setObj(0, gr * -1, 0);
point[1] = _root.setObj(0, gr * fa, (2 * fa) * gr);
point[2] = _root.setObj(gr * fe, gr * fa, gr * fb);
point[3] = _root.setObj(fd * gr, gr * fa, (-1 * fc) * gr);
point[4] = _root.setObj((-1 * fd) * gr, fa * gr, (-1 * fc) * gr);
point[5] = _root.setObj((-1 * fe) * gr, gr * fa, gr * fb);
point[6] = _root.setObj(fd * gr, (-1 * fa) * gr, gr * fc);
point[7] = _root.setObj(fe * gr, (fa * -1) * gr, (-1 * fb) * gr);
point[8] = _root.setObj(0, (fa * -1) * gr, (-2 * fa) * gr);
point[9] = _root.setObj((-1 * fe) * gr, (-1 * fa) * gr, (-1 * fb) * gr);
point[10] = _root.setObj((fd * -1) * gr, (fa * -1) * gr, fc * gr);
}
function followMatrix(old) {
var old;
var obj = new Object();
obj.x = _root._xmouse;
obj.y = _root._ymouse;
if ((typeof(old.x) == "undefined") && (typeof(old.y) == "undefined")) {
old = new Object();
old.x = obj.x;
old.y = obj.y;
}
var checkX = (obj.x - old.x);
var checkY = (obj.y - old.y);
if (sPress or ((checkX != 0) and (checkY != 0))) {
if (_root.game_stop == false) {
obj.difX = (old.x - obj.x) / 2;
obj.difY = (obj.y - old.y) / 2;
}
if ((obj.difX > _root.maxspeed) && (obj.difX > 0)) {
obj.difX = _root.maxspeed;
} else if ((obj.difX < (_root.maxspeed * -1)) && (obj.difX < 0)) {
obj.difX = _root.maxspeed * -1;
}
if ((obj.difY > _root.maxspeed) && (obj.difY > 0)) {
obj.difY = _root.maxspeed;
} else if ((obj.difY < (_root.maxspeed * -1)) && (obj.difY < 0)) {
obj.difY = _root.maxspeed * -1;
}
}
if ((!sPress) or ((checkX == 0) and (checkY == 0))) {
obj.difX = old.difX - (old.difX / _root.downspeed);
obj.difY = old.difY - (old.difY / _root.downspeed);
}
obj.angY = _root.backVal(old.angY, obj.difY, 360);
obj.angX = _root.backVal2(old.angX, obj.difX, 360, obj.angY);
CoordPoint = launch3D("Point", obj.angY, obj.angX, d);
return(obj);
}
function launch3D(object3D, xAng, yAng, d) {
var xRad = ((Math.PI/180) * xAng);
var yRad = ((Math.PI/180) * yAng);
var sinX = Math.sin(xRad);
var cosX = Math.cos(xRad);
var sinY = Math.sin(yRad);
var cosY = Math.cos(yRad);
var source = eval (object3D);
var obj = new Array();
var u = source.length;
var i = 0;
while (i < u) {
obj[i] = new Object();
var tempz = ((source[i].z * cosY) - (source[i].x * sinY));
obj[i].z = (source[i].y * sinX) + (tempz * cosX);
obj[i].x = (source[i].z * sinY) + (source[i].x * cosY);
obj[i].y = (source[i].y * cosX) - (tempz * sinX);
var scalar = (1 / ((obj[i].z / d) + 1));
obj[i].x = (obj[i].x * scalar) + 0;
obj[i].y = (obj[i].y * scalar) + 0;
i = i + 1;
}
for (i in obj) {
}
return(obj);
}
function Triangle_Write(TA, TB, TC, TN) {
trdepth = Math.floor(Math.max(Math.max(CoordPoint[TA].z, CoordPoint[TB].z), CoordPoint[TC].z)) + 250;
trdepth = trdepth + Math.floor(((CoordPoint[TA].z + CoordPoint[TB].z) + CoordPoint[TC].z) / 3);
trdepth = 10000 - (trdepth * 10);
with (this["triangle" + TN]) {
clear();
linestyle(1, 0, 100);
if (this["triangle" + TN].cap == "bomb") {
beginFill(this.bombcolor, _root.Trance);
} else if (this["triangle" + TN].cap == "open") {
beginFill(this.opencolor, _root.Trance);
} else if (this["triangle" + TN].overfacer == true) {
beginFill(this.overcolor, _root.Trance);
} else {
beginFill(this.outcolor, _root.Trance);
}
moveTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
lineTo(this.CoordPoint[TB].x, this.CoordPoint[TB].y);
lineTo(this.CoordPoint[TC].x, this.CoordPoint[TC].y);
lineTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
swapDepths(trdepth + TN);
}
trmaxX = Math.floor(Math.max(Math.max(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x));
trminX = Math.floor(Math.min(Math.min(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x));
trmaxY = Math.floor(Math.max(Math.max(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y));
trminY = Math.floor(Math.min(Math.min(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y));
ptcenterX = (trmaxX + trminX) / 2;
ptcenterY = (trmaxY + trminY) / 2;
this["triangle" + TN].cou._x = ptcenterX;
this["triangle" + TN].cou._y = ptcenterY;
}
this.outcolor = "0xF3FFD8";
this.overcolor = "0xD7E8AA";
this.bombcolor = "0xFF3333";
this.opencolor = "0x777777";
this.SizeMid = 90;
this.SizeLar = 110;
this.SizeLow = 70;
this.nowSize = this.SizeMid;
this.st_bomcount = 6 - _root.cold_down;
this.bomcount = 0;
this.st_panel = 20;
this.joint0 = "1/4/5";
this.joint1 = "0/2/6";
this.joint2 = "1/3/7";
this.joint3 = "2/4/8";
this.joint4 = "0/3/9";
this.joint5 = "0/11/15";
this.joint6 = "1/11/12";
this.joint7 = "2/12/13";
this.joint8 = "3/13/14";
this.joint9 = "4/14/15";
this.joint11 = "5/6/16";
this.joint12 = "6/7/17";
this.joint13 = "7/8/18";
this.joint14 = "8/9/19";
this.joint15 = "5/9/20";
this.joint16 = "11/17/20";
this.joint17 = "12/16/18";
this.joint18 = "13/17/19";
this.joint19 = "14/18/20";
this.joint20 = "15/16/19";
bomcount = 0;
panel = 0;
clash_out = 40;
var d = 10000;
setPoint();
CoordPoint = _root.launch3D("point", 5, 5);
trai = 0;
while (trai <= 20) {
this.attachMovie("facer", "triangle" + trai, trai + 1);
trai++;
}
}
onClipEvent (enterFrame) {
if (bomb_out != true) {
tempFollow = followMatrix(tempFollow);
if ((_root.timermove == true) && (_root.gametime < 30000)) {
_root.gametime++;
}
} else {
_root.bomber(20);
}
Triangle_Write(0, 1, 2, 0);
Triangle_Write(0, 2, 3, 1);
Triangle_Write(0, 3, 4, 2);
Triangle_Write(0, 4, 5, 3);
Triangle_Write(0, 5, 1, 4);
Triangle_Write(1, 2, 6, 5);
Triangle_Write(2, 3, 7, 6);
Triangle_Write(3, 4, 8, 7);
Triangle_Write(4, 5, 9, 8);
Triangle_Write(5, 1, 10, 9);
Triangle_Write(6, 7, 2, 11);
Triangle_Write(7, 8, 3, 12);
Triangle_Write(8, 9, 4, 13);
Triangle_Write(9, 10, 5, 14);
Triangle_Write(10, 6, 1, 15);
Triangle_Write(11, 6, 7, 16);
Triangle_Write(11, 7, 8, 17);
Triangle_Write(11, 8, 9, 18);
Triangle_Write(11, 9, 10, 19);
Triangle_Write(11, 10, 6, 20);
if (_root.menu_mode == "visible") {
_root.menu.menubase.timecounter = _root.gametime;
_root.menu.menubase.bombcounter = (_root.main.bomcount + "/") + _root.main.st_bomcount;
_root.menu.menubase.panelcounter = (_root.main.panel + "/") + _root.main.st_panel;
}
}
onClipEvent (mouseDown) {
sPress = true;
}
onClipEvent (mouseUp) {
sPress = false;
}
Frame 36
if (_root.Hdisp == false) {
_root.haikei._visible = false;
}
_root.cursor_mode = "open";
_root.cursor_disp.gotoAndStop("open");
_root.gametime = 0;
Frame 37
_root.game_stop = true;
if (_root.menu_mode == "hidden") {
_root.menu.gotoAndStop("hidden");
}
stop();
Instance of Symbol 10 MovieClip "main" in Frame 37
onClipEvent (load) {
function setPoint() {
Point = new Array();
gr = this.nowSize;
point[0] = _root.setObj(gr, gr, gr);
point[1] = _root.setObj(gr * -1, gr, gr);
point[5] = _root.setObj(gr * -1, gr * -1, gr);
point[4] = _root.setObj(gr, gr * -1, gr);
point[3] = _root.setObj(gr, gr, gr * -1);
point[2] = _root.setObj(gr * -1, gr, gr * -1);
point[6] = _root.setObj(gr * -1, gr * -1, gr * -1);
point[7] = _root.setObj(gr, gr * -1, gr * -1);
point[8] = _root.setObj(0, gr, gr);
point[9] = _root.setObj(gr * -1, gr, 0);
point[10] = _root.setObj(0, gr, gr * -1);
point[11] = _root.setObj(gr, gr, 0);
point[12] = _root.setObj(0, gr * -1, gr);
point[13] = _root.setObj(gr * -1, gr * -1, 0);
point[14] = _root.setObj(0, gr * -1, gr * -1);
point[15] = _root.setObj(gr, gr * -1, 0);
point[16] = _root.setObj(gr, 0, gr);
point[17] = _root.setObj(gr * -1, 0, gr);
point[18] = _root.setObj(gr * -1, 0, gr * -1);
point[19] = _root.setObj(gr, 0, gr * -1);
point[20] = _root.setObj(0, gr, 0);
point[21] = _root.setObj(0, gr * -1, 0);
point[22] = _root.setObj(gr, 0, 0);
point[23] = _root.setObj(gr * -1, 0, 0);
point[24] = _root.setObj(0, 0, gr);
point[25] = _root.setObj(0, 0, gr * -1);
}
function followMatrix(old) {
var old;
var obj = new Object();
obj.x = _root._xmouse;
obj.y = _root._ymouse;
if ((typeof(old.x) == "undefined") && (typeof(old.y) == "undefined")) {
old = new Object();
old.x = obj.x;
old.y = obj.y;
old.angX = 30;
old.angY = 10;
obj.difX = 0;
obj.difY = 0;
}
var checkX = (obj.x - old.x);
var checkY = (obj.y - old.y);
if (sPress or ((checkX != 0) and (checkY != 0))) {
if (_root.game_stop == false) {
obj.difX = (old.x - obj.x) / 2;
obj.difY = (obj.y - old.y) / 2;
}
if ((obj.difX > _root.maxspeed) && (obj.difX > 0)) {
obj.difX = _root.maxspeed;
} else if ((obj.difX < (_root.maxspeed * -1)) && (obj.difX < 0)) {
obj.difX = _root.maxspeed * -1;
}
if ((obj.difY > _root.maxspeed) && (obj.difY > 0)) {
obj.difY = _root.maxspeed;
} else if ((obj.difY < (_root.maxspeed * -1)) && (obj.difY < 0)) {
obj.difY = _root.maxspeed * -1;
}
}
if ((!sPress) or ((checkX == 0) and (checkY == 0))) {
obj.difX = old.difX - (old.difX / _root.downspeed);
obj.difY = old.difY - (old.difY / _root.downspeed);
}
obj.angY = _root.backVal(old.angY, obj.difY, 360);
obj.angX = _root.backVal2(old.angX, obj.difX, 360, obj.angY);
CoordPoint = launch3D("Point", obj.angY, obj.angX, d);
return(obj);
}
function launch3D(object3D, xAng, yAng, d) {
var xRad = ((Math.PI/180) * xAng);
var yRad = ((Math.PI/180) * yAng);
var sinX = Math.sin(xRad);
var cosX = Math.cos(xRad);
var sinY = Math.sin(yRad);
var cosY = Math.cos(yRad);
var source = eval (object3D);
var obj = new Array();
var u = source.length;
var i = 0;
while (i < u) {
obj[i] = new Object();
var tempz = ((source[i].z * cosY) - (source[i].x * sinY));
obj[i].z = (source[i].y * sinX) + (tempz * cosX);
obj[i].x = (source[i].z * sinY) + (source[i].x * cosY);
obj[i].y = (source[i].y * cosX) - (tempz * sinX);
var scalar = (1 / ((obj[i].z / d) + 1));
obj[i].x = (obj[i].x * scalar) + 0;
obj[i].y = (obj[i].y * scalar) + 0;
i = i + 1;
}
for (i in obj) {
}
return(obj);
}
function Triangle_Write(TA, TB, TC, TD, TN) {
trdepth = Math.floor(Math.max(Math.max(Math.max(CoordPoint[TA].z, CoordPoint[TB].z), CoordPoint[TC].z), CoordPoint[TD].z)) + 250;
trdepth = trdepth + Math.floor((((CoordPoint[TA].z + CoordPoint[TB].z) + CoordPoint[TC].z) + CoordPoint[TD].z) / 4);
trdepth = 10000 - (trdepth * 10);
with (this["triangle" + TN]) {
clear();
linestyle(1, 0, 100);
if (this["triangle" + TN].cap == "bomb") {
beginFill(this.bombcolor, _root.Trance);
} else if (this["triangle" + TN].cap == "open") {
beginFill(this.opencolor, _root.Trance);
} else if (this["triangle" + TN].overfacer == true) {
beginFill(this.overcolor, _root.Trance);
} else {
beginFill(this.outcolor, _root.Trance);
}
moveTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
lineTo(this.CoordPoint[TB].x, this.CoordPoint[TB].y);
lineTo(this.CoordPoint[TC].x, this.CoordPoint[TC].y);
lineTo(this.CoordPoint[TD].x, this.CoordPoint[TD].y);
lineTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
swapDepths(trdepth + TN);
}
trmaxX = Math.floor(Math.max(Math.max(Math.max(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x), CoordPoint[TD].x));
trminX = Math.floor(Math.min(Math.min(Math.min(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x), CoordPoint[TD].x));
trmaxY = Math.floor(Math.max(Math.max(Math.max(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y), CoordPoint[TD].y));
trminY = Math.floor(Math.min(Math.min(Math.min(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y), CoordPoint[TD].y));
ptcenterX = (trmaxX + trminX) / 2;
ptcenterY = (trmaxY + trminY) / 2;
this["triangle" + TN].cou._x = ptcenterX;
this["triangle" + TN].cou._y = ptcenterY;
}
this.outcolor = "0xFDF1E2";
this.overcolor = "0xFDD7C5";
this.bombcolor = "0xFF3333";
this.opencolor = "0x777777";
this.SizeMid = 60;
this.SizeLar = 70;
this.SizeLow = 50;
this.nowSize = this.SizeMid;
this.st_bomcount = 7 - _root.cold_down;
this.bomcount = 0;
this.st_panel = 24;
this.joint0 = "1/3/8/17";
this.joint1 = "0/2/13/18";
this.joint2 = "1/3/5/14";
this.joint3 = "0/2/4/9";
this.joint4 = "3/5/7/9";
this.joint5 = "2/4/6/14";
this.joint6 = "5/7/15/22";
this.joint7 = "4/6/11/23";
this.joint8 = "0/9/12/17";
this.joint9 = "3/4/8/11";
this.joint11 = "7/9/12/23";
this.joint12 = "8/11/20/24";
this.joint13 = "1/14/16/18";
this.joint14 = "2/5/13/15";
this.joint15 = "6/14/16/22";
this.joint16 = "13/15/19/21";
this.joint17 = "0/8/18/20";
this.joint18 = "1/13/17/19";
this.joint19 = "16/18/20/21";
this.joint20 = "12/17/19/24";
this.joint21 = "16/19/22/24";
this.joint22 = "6/15/21/23";
this.joint23 = "7/11/22/24";
this.joint24 = "12/20/21/23";
bomcount = 0;
panel = 0;
clash_out = 40;
var d = 10000;
setPoint();
CoordPoint = _root.launch3D("point", 5, 5);
trai = 0;
while (trai <= 24) {
this.attachMovie("facer", "triangle" + trai, trai + 1);
trai++;
}
}
onClipEvent (enterFrame) {
if (bomb_out != true) {
tempFollow = followMatrix(tempFollow);
if ((_root.timermove == true) && (_root.gametime < 30000)) {
_root.gametime++;
}
} else {
_root.bomber(24);
}
Triangle_Write(0, 8, 20, 11, 0);
Triangle_Write(8, 1, 9, 20, 1);
Triangle_Write(20, 9, 2, 10, 2);
Triangle_Write(20, 10, 3, 11, 3);
Triangle_Write(3, 10, 25, 19, 4);
Triangle_Write(10, 2, 18, 25, 5);
Triangle_Write(25, 18, 6, 14, 6);
Triangle_Write(25, 14, 7, 19, 7);
Triangle_Write(0, 11, 22, 16, 8);
Triangle_Write(11, 3, 19, 22, 9);
Triangle_Write(22, 19, 7, 15, 11);
Triangle_Write(22, 15, 4, 16, 12);
Triangle_Write(1, 9, 23, 17, 13);
Triangle_Write(9, 2, 18, 23, 14);
Triangle_Write(23, 18, 6, 13, 15);
Triangle_Write(17, 23, 13, 5, 16);
Triangle_Write(0, 8, 24, 16, 17);
Triangle_Write(8, 1, 17, 24, 18);
Triangle_Write(24, 17, 5, 12, 19);
Triangle_Write(16, 24, 12, 4, 20);
Triangle_Write(5, 13, 21, 12, 21);
Triangle_Write(6, 14, 21, 13, 22);
Triangle_Write(7, 14, 21, 15, 23);
Triangle_Write(4, 12, 21, 15, 24);
if (_root.menu_mode == "visible") {
_root.menu.menubase.timecounter = _root.gametime;
_root.menu.menubase.bombcounter = (_root.main.bomcount + "/") + _root.main.st_bomcount;
_root.menu.menubase.panelcounter = (_root.main.panel + "/") + _root.main.st_panel;
}
}
onClipEvent (mouseDown) {
sPress = true;
}
onClipEvent (mouseUp) {
sPress = false;
}
Frame 46
if (_root.Hdisp == false) {
_root.haikei._visible = false;
}
_root.cursor_mode = "open";
_root.cursor_disp.gotoAndStop("open");
_root.gametime = 0;
Frame 47
_root.game_stop = true;
if (_root.menu_mode == "hidden") {
_root.menu.gotoAndStop("hidden");
}
stop();
Instance of Symbol 10 MovieClip "main" in Frame 47
onClipEvent (load) {
function setPoint() {
Point = new Array();
gr = this.nowSize;
point[0] = _root.setObj(gr, gr, gr);
point[1] = _root.setObj(gr * -1, gr, gr);
point[5] = _root.setObj(gr * -1, gr * -1, gr);
point[4] = _root.setObj(gr, gr * -1, gr);
point[3] = _root.setObj(gr, gr, gr * -1);
point[2] = _root.setObj(gr * -1, gr, gr * -1);
point[6] = _root.setObj(gr * -1, gr * -1, gr * -1);
point[7] = _root.setObj(gr, gr * -1, gr * -1);
point[8] = _root.setObj(0, gr, gr);
point[9] = _root.setObj(gr * -1, gr, 0);
point[10] = _root.setObj(0, gr, gr * -1);
point[11] = _root.setObj(gr, gr, 0);
point[12] = _root.setObj(0, gr * -1, gr);
point[13] = _root.setObj(gr * -1, gr * -1, 0);
point[14] = _root.setObj(0, gr * -1, gr * -1);
point[15] = _root.setObj(gr, gr * -1, 0);
point[16] = _root.setObj(gr, 0, gr);
point[17] = _root.setObj(gr * -1, 0, gr);
point[18] = _root.setObj(gr * -1, 0, gr * -1);
point[19] = _root.setObj(gr, 0, gr * -1);
}
function followMatrix(old) {
var old;
var obj = new Object();
obj.x = _root._xmouse;
obj.y = _root._ymouse;
if ((typeof(old.x) == "undefined") && (typeof(old.y) == "undefined")) {
old = new Object();
old.x = obj.x;
old.y = obj.y;
old.angX = 40;
old.angY = 40;
obj.difX = 0;
obj.difY = 0;
}
var checkX = (obj.x - old.x);
var checkY = (obj.y - old.y);
if (sPress or ((checkX != 0) and (checkY != 0))) {
if (_root.game_stop == false) {
obj.difX = (old.x - obj.x) / 2;
obj.difY = (obj.y - old.y) / 2;
}
if ((obj.difX > _root.maxspeed) && (obj.difX > 0)) {
obj.difX = _root.maxspeed;
} else if ((obj.difX < (_root.maxspeed * -1)) && (obj.difX < 0)) {
obj.difX = _root.maxspeed * -1;
}
if ((obj.difY > _root.maxspeed) && (obj.difY > 0)) {
obj.difY = _root.maxspeed;
} else if ((obj.difY < (_root.maxspeed * -1)) && (obj.difY < 0)) {
obj.difY = _root.maxspeed * -1;
}
}
if ((!sPress) or ((checkX == 0) and (checkY == 0))) {
obj.difX = old.difX - (old.difX / _root.downspeed);
obj.difY = old.difY - (old.difY / _root.downspeed);
}
obj.angY = _root.backVal(old.angY, obj.difY, 360);
obj.angX = _root.backVal2(old.angX, obj.difX, 360, obj.angY);
CoordPoint = launch3D("Point", obj.angY, obj.angX, d);
return(obj);
}
function launch3D(object3D, xAng, yAng, d) {
var xRad = ((Math.PI/180) * xAng);
var yRad = ((Math.PI/180) * yAng);
var sinX = Math.sin(xRad);
var cosX = Math.cos(xRad);
var sinY = Math.sin(yRad);
var cosY = Math.cos(yRad);
var source = eval (object3D);
var obj = new Array();
var u = source.length;
var i = 0;
while (i < u) {
obj[i] = new Object();
var tempz = ((source[i].z * cosY) - (source[i].x * sinY));
obj[i].z = (source[i].y * sinX) + (tempz * cosX);
obj[i].x = (source[i].z * sinY) + (source[i].x * cosY);
obj[i].y = (source[i].y * cosX) - (tempz * sinX);
var scalar = (1 / ((obj[i].z / d) + 1));
obj[i].x = (obj[i].x * scalar) + 0;
obj[i].y = (obj[i].y * scalar) + 0;
i = i + 1;
}
for (i in obj) {
}
return(obj);
}
function Triangle_Write(TA, TB, TC, TD, TN) {
trdepth = Math.floor(Math.max(Math.max(Math.max(CoordPoint[TA].z, CoordPoint[TB].z), CoordPoint[TC].z), CoordPoint[TD].z)) + 250;
trdepth = trdepth + Math.floor((((CoordPoint[TA].z + CoordPoint[TB].z) + CoordPoint[TC].z) + CoordPoint[TD].z) / 4);
trdepth = 10000 - (trdepth * 10);
with (this["triangle" + TN]) {
clear();
linestyle(1, 0, 100);
if (this["triangle" + TN].cap == "bomb") {
beginFill(this.bombcolor, _root.Trance);
} else if (this["triangle" + TN].cap == "open") {
beginFill(this.opencolor, _root.Trance);
} else if (this["triangle" + TN].overfacer == true) {
beginFill(this.overcolor, _root.Trance);
} else {
beginFill(this.outcolor, _root.Trance);
}
moveTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
lineTo(this.CoordPoint[TB].x, this.CoordPoint[TB].y);
lineTo(this.CoordPoint[TC].x, this.CoordPoint[TC].y);
lineTo(this.CoordPoint[TD].x, this.CoordPoint[TD].y);
lineTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
swapDepths(trdepth + TN);
}
trmaxX = Math.floor(Math.max(Math.max(Math.max(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x), CoordPoint[TD].x));
trminX = Math.floor(Math.min(Math.min(Math.min(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x), CoordPoint[TD].x));
trmaxY = Math.floor(Math.max(Math.max(Math.max(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y), CoordPoint[TD].y));
trminY = Math.floor(Math.min(Math.min(Math.min(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y), CoordPoint[TD].y));
ptcenterX = (trmaxX + trminX) / 2;
ptcenterY = (trmaxY + trminY) / 2;
this["triangle" + TN].cou._x = ptcenterX;
this["triangle" + TN].cou._y = ptcenterY;
}
function Triangle_Write3(TA, TB, TC, TN) {
trdepth = Math.floor(Math.max(Math.max(CoordPoint[TA].z, CoordPoint[TB].z), CoordPoint[TC].z)) + 250;
trdepth = trdepth + Math.floor(((CoordPoint[TA].z + CoordPoint[TB].z) + CoordPoint[TC].z) / 3);
trdepth = 10000 - (trdepth * 10);
with (this["triangle" + TN]) {
clear();
linestyle(1, 0, 100);
if (this["triangle" + TN].cap == "bomb") {
beginFill(this.bombcolor, _root.Trance);
} else if (this["triangle" + TN].cap == "open") {
beginFill(this.opencolor, _root.Trance);
} else if (this["triangle" + TN].overfacer == true) {
beginFill(this.overcolor, _root.Trance);
} else {
beginFill(this.outcolor, _root.Trance);
}
moveTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
lineTo(this.CoordPoint[TB].x, this.CoordPoint[TB].y);
lineTo(this.CoordPoint[TC].x, this.CoordPoint[TC].y);
lineTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
swapDepths(trdepth + TN);
}
trmaxX = Math.floor(Math.max(Math.max(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x));
trminX = Math.floor(Math.min(Math.min(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x));
trmaxY = Math.floor(Math.max(Math.max(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y));
trminY = Math.floor(Math.min(Math.min(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y));
ptcenterX = (trmaxX + trminX) / 2;
ptcenterY = (trmaxY + trminY) / 2;
this["triangle" + TN].cou._x = ptcenterX;
this["triangle" + TN].cou._y = ptcenterY;
}
this.outcolor = "0xEDF3FF";
this.overcolor = "0xCDE5FE";
this.bombcolor = "0xFF3333";
this.opencolor = "0x777777";
this.SizeMid = 60;
this.SizeLar = 70;
this.SizeLow = 50;
this.nowSize = this.SizeMid;
this.st_bomcount = 3;
this.bomcount = 0;
this.st_panel = 14;
this.joint0 = "6/7/8/9";
this.joint1 = "6/7/11/12";
this.joint2 = "11/12/13/14";
this.joint3 = "8/9/13/14";
this.joint4 = "6/8/11/14";
this.joint5 = "7/9/12/13";
this.joint6 = "0/1/4";
this.joint7 = "0/1/5";
this.joint8 = "0/3/4";
this.joint9 = "0/3/5";
this.joint11 = "1/2/4";
this.joint12 = "1/2/5";
this.joint13 = "2/3/5";
this.joint14 = "2/3/4";
bomcount = 0;
panel = 0;
clash_out = 40;
var d = 10000;
setPoint();
CoordPoint = _root.launch3D("point", 5, 5);
trai = 0;
while (trai <= this.st_panel) {
this.attachMovie("facer", "triangle" + trai, trai + 1);
trai++;
}
}
onClipEvent (enterFrame) {
if (bomb_out != true) {
tempFollow = followMatrix(tempFollow);
if ((_root.timermove == true) && (_root.gametime < 30000)) {
_root.gametime++;
}
} else {
_root.bomber(this.st_panel);
}
Triangle_Write(8, 9, 10, 11, 0);
Triangle_Write(9, 18, 13, 17, 1);
Triangle_Write(12, 13, 14, 15, 2);
Triangle_Write(11, 19, 15, 16, 3);
Triangle_Write(8, 17, 12, 16, 4);
Triangle_Write(10, 18, 14, 19, 5);
Triangle_Write3(8, 9, 17, 6);
Triangle_Write3(9, 10, 18, 7);
Triangle_Write3(8, 11, 16, 8);
Triangle_Write3(10, 11, 19, 9);
Triangle_Write3(12, 13, 17, 11);
Triangle_Write3(13, 14, 18, 12);
Triangle_Write3(14, 15, 19, 13);
Triangle_Write3(12, 15, 16, 14);
if (_root.menu_mode == "visible") {
_root.menu.menubase.timecounter = _root.gametime;
_root.menu.menubase.bombcounter = (_root.main.bomcount + "/") + _root.main.st_bomcount;
_root.menu.menubase.panelcounter = (_root.main.panel + "/") + _root.main.st_panel;
}
}
onClipEvent (mouseDown) {
sPress = true;
}
onClipEvent (mouseUp) {
sPress = false;
}
Frame 56
if (_root.Hdisp == false) {
_root.haikei._visible = false;
}
_root.cursor_mode = "open";
_root.cursor_disp.gotoAndStop("open");
_root.gametime = 0;
Frame 57
_root.game_stop = true;
if (_root.menu_mode == "hidden") {
_root.menu.gotoAndStop("hidden");
}
stop();
Instance of Symbol 10 MovieClip "main" in Frame 57
onClipEvent (load) {
function setPoint() {
Point = new Array();
gr = this.nowSize;
fa = 1.20710678118655;
fb = 0.5;
point[0] = _root.setObj(fa * gr, fb * gr, fb * gr);
point[1] = _root.setObj(fa * gr, fb * gr, (fb * gr) * -1);
point[2] = _root.setObj(fa * gr, (fb * gr) * -1, fb * gr);
point[3] = _root.setObj(fa * gr, (fb * gr) * -1, (fb * gr) * -1);
point[4] = _root.setObj((fa * gr) * -1, fb * gr, fb * gr);
point[5] = _root.setObj((fa * gr) * -1, fb * gr, (fb * gr) * -1);
point[6] = _root.setObj((fa * gr) * -1, (fb * gr) * -1, fb * gr);
point[7] = _root.setObj((fa * gr) * -1, (fb * gr) * -1, (fb * gr) * -1);
point[8] = _root.setObj(fb * gr, fa * gr, fb * gr);
point[9] = _root.setObj(fb * gr, fa * gr, (fb * gr) * -1);
point[10] = _root.setObj((fb * gr) * -1, fa * gr, fb * gr);
point[11] = _root.setObj((fb * gr) * -1, fa * gr, (fb * gr) * -1);
point[12] = _root.setObj(fb * gr, (fa * gr) * -1, fb * gr);
point[13] = _root.setObj(fb * gr, (fa * gr) * -1, (fb * gr) * -1);
point[14] = _root.setObj((fb * gr) * -1, (fa * gr) * -1, fb * gr);
point[15] = _root.setObj((fb * gr) * -1, (fa * gr) * -1, (fb * gr) * -1);
point[16] = _root.setObj(fb * gr, fb * gr, fa * gr);
point[17] = _root.setObj(fb * gr, (fb * gr) * -1, fa * gr);
point[18] = _root.setObj((fb * gr) * -1, fb * gr, fa * gr);
point[19] = _root.setObj((fb * gr) * -1, (fb * gr) * -1, fa * gr);
point[20] = _root.setObj(fb * gr, fb * gr, (fa * gr) * -1);
point[21] = _root.setObj(fb * gr, (fb * gr) * -1, (fa * gr) * -1);
point[22] = _root.setObj((fb * gr) * -1, fb * gr, (fa * gr) * -1);
point[23] = _root.setObj((fb * gr) * -1, (fb * gr) * -1, (fa * gr) * -1);
}
function followMatrix(old) {
var old;
var obj = new Object();
obj.x = _root._xmouse;
obj.y = _root._ymouse;
if ((typeof(old.x) == "undefined") && (typeof(old.y) == "undefined")) {
old = new Object();
old.x = obj.x;
old.y = obj.y;
old.angX = 30;
old.angY = 15;
obj.difX = 0;
obj.difY = 0;
}
var checkX = (obj.x - old.x);
var checkY = (obj.y - old.y);
if (sPress or ((checkX != 0) and (checkY != 0))) {
if (_root.game_stop == false) {
obj.difX = (old.x - obj.x) / 2;
obj.difY = (obj.y - old.y) / 2;
}
if ((obj.difX > _root.maxspeed) && (obj.difX > 0)) {
obj.difX = _root.maxspeed;
} else if ((obj.difX < (_root.maxspeed * -1)) && (obj.difX < 0)) {
obj.difX = _root.maxspeed * -1;
}
if ((obj.difY > _root.maxspeed) && (obj.difY > 0)) {
obj.difY = _root.maxspeed;
} else if ((obj.difY < (_root.maxspeed * -1)) && (obj.difY < 0)) {
obj.difY = _root.maxspeed * -1;
}
}
if ((!sPress) or ((checkX == 0) and (checkY == 0))) {
obj.difX = old.difX - (old.difX / _root.downspeed);
obj.difY = old.difY - (old.difY / _root.downspeed);
}
obj.angY = _root.backVal(old.angY, obj.difY, 360);
obj.angX = _root.backVal2(old.angX, obj.difX, 360, obj.angY);
CoordPoint = launch3D("Point", obj.angY, obj.angX, d);
return(obj);
}
function launch3D(object3D, xAng, yAng, d) {
var xRad = ((Math.PI/180) * xAng);
var yRad = ((Math.PI/180) * yAng);
var sinX = Math.sin(xRad);
var cosX = Math.cos(xRad);
var sinY = Math.sin(yRad);
var cosY = Math.cos(yRad);
var source = eval (object3D);
var obj = new Array();
var u = source.length;
var i = 0;
while (i < u) {
obj[i] = new Object();
var tempz = ((source[i].z * cosY) - (source[i].x * sinY));
obj[i].z = (source[i].y * sinX) + (tempz * cosX);
obj[i].x = (source[i].z * sinY) + (source[i].x * cosY);
obj[i].y = (source[i].y * cosX) - (tempz * sinX);
var scalar = (1 / ((obj[i].z / d) + 1));
obj[i].x = (obj[i].x * scalar) + 0;
obj[i].y = (obj[i].y * scalar) + 0;
i = i + 1;
}
for (i in obj) {
}
return(obj);
}
function Triangle_Write(TA, TB, TC, TD, TN) {
trdepth = Math.floor(Math.max(Math.max(Math.max(CoordPoint[TA].z, CoordPoint[TB].z), CoordPoint[TC].z), CoordPoint[TD].z)) + 250;
trdepth = trdepth + Math.floor((((CoordPoint[TA].z + CoordPoint[TB].z) + CoordPoint[TC].z) + CoordPoint[TD].z) / 4);
trdepth = 10000 - (trdepth * 10);
with (this["triangle" + TN]) {
clear();
linestyle(1, 0, 100);
if (this["triangle" + TN].cap == "bomb") {
beginFill(this.bombcolor, _root.Trance);
} else if (this["triangle" + TN].cap == "open") {
beginFill(this.opencolor, _root.Trance);
} else if (this["triangle" + TN].overfacer == true) {
beginFill(this.overcolor, _root.Trance);
} else {
beginFill(this.outcolor, _root.Trance);
}
moveTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
lineTo(this.CoordPoint[TB].x, this.CoordPoint[TB].y);
lineTo(this.CoordPoint[TC].x, this.CoordPoint[TC].y);
lineTo(this.CoordPoint[TD].x, this.CoordPoint[TD].y);
lineTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
swapDepths(trdepth + TN);
}
trmaxX = Math.floor(Math.max(Math.max(Math.max(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x), CoordPoint[TD].x));
trminX = Math.floor(Math.min(Math.min(Math.min(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x), CoordPoint[TD].x));
trmaxY = Math.floor(Math.max(Math.max(Math.max(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y), CoordPoint[TD].y));
trminY = Math.floor(Math.min(Math.min(Math.min(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y), CoordPoint[TD].y));
ptcenterX = (trmaxX + trminX) / 2;
ptcenterY = (trmaxY + trminY) / 2;
this["triangle" + TN].cou._x = ptcenterX;
this["triangle" + TN].cou._y = ptcenterY;
}
function Triangle_Write3(TA, TB, TC, TN) {
trdepth = Math.floor(Math.max(Math.max(CoordPoint[TA].z, CoordPoint[TB].z), CoordPoint[TC].z)) + 250;
trdepth = trdepth + Math.floor(((CoordPoint[TA].z + CoordPoint[TB].z) + CoordPoint[TC].z) / 3);
trdepth = 10000 - (trdepth * 10);
with (this["triangle" + TN]) {
clear();
linestyle(1, 0, 100);
if (this["triangle" + TN].cap == "bomb") {
beginFill(this.bombcolor, _root.Trance);
} else if (this["triangle" + TN].cap == "open") {
beginFill(this.opencolor, _root.Trance);
} else if (this["triangle" + TN].overfacer == true) {
beginFill(this.overcolor, _root.Trance);
} else {
beginFill(this.outcolor, _root.Trance);
}
moveTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
lineTo(this.CoordPoint[TB].x, this.CoordPoint[TB].y);
lineTo(this.CoordPoint[TC].x, this.CoordPoint[TC].y);
lineTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
swapDepths(trdepth + TN);
}
trmaxX = Math.floor(Math.max(Math.max(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x));
trminX = Math.floor(Math.min(Math.min(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x));
trmaxY = Math.floor(Math.max(Math.max(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y));
trminY = Math.floor(Math.min(Math.min(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y));
ptcenterX = (trmaxX + trminX) / 2;
ptcenterY = (trmaxY + trminY) / 2;
this["triangle" + TN].cou._x = ptcenterX;
this["triangle" + TN].cou._y = ptcenterY;
}
this.outcolor = "0xFFF6E1";
this.overcolor = "0xFFE3C2";
this.bombcolor = "0xFF3333";
this.opencolor = "0x777777";
this.SizeMid = 60;
this.SizeLar = 70;
this.SizeLow = 50;
this.nowSize = this.SizeMid;
this.st_bomcount = 8 - _root.cold_down;
this.bomcount = 0;
this.st_panel = 26;
this.joint0 = "6/7/11/13";
this.joint1 = "8/9/12/14";
this.joint2 = "6/9/15/16";
this.joint3 = "7/8/17/18";
this.joint4 = "11/12/15/17";
this.joint5 = "13/14/16/18";
this.joint6 = "0/2/19/20";
this.joint7 = "0/3/21/22";
this.joint8 = "1/3/25/26";
this.joint9 = "1/2/23/24";
this.joint11 = "0/4/19/21";
this.joint12 = "1/4/23/25";
this.joint13 = "0/5/20/22";
this.joint14 = "1/5/24/26";
this.joint15 = "2/4/19/23";
this.joint16 = "2/5/20/24";
this.joint17 = "3/4/21/25";
this.joint18 = "3/5/22/26";
this.joint19 = "6/11/15";
this.joint20 = "6/13/16";
this.joint21 = "7/11/17";
this.joint22 = "7/13/18";
this.joint23 = "9/12/15";
this.joint24 = "9/14/16";
this.joint25 = "8/12/17";
this.joint26 = "8/14/18";
bomcount = 0;
panel = 0;
clash_out = 40;
var d = 10000;
setPoint();
CoordPoint = _root.launch3D("point", 5, 5);
trai = 0;
while (trai <= this.st_panel) {
this.attachMovie("facer", "triangle" + trai, trai + 1);
trai++;
}
}
onClipEvent (enterFrame) {
if (bomb_out != true) {
tempFollow = followMatrix(tempFollow);
if ((_root.timermove == true) && (_root.gametime < 30000)) {
_root.gametime++;
}
} else {
_root.bomber(this.st_panel);
}
Triangle_Write(0, 1, 3, 2, 0);
Triangle_Write(4, 5, 7, 6, 1);
Triangle_Write(8, 9, 11, 10, 2);
Triangle_Write(12, 13, 15, 14, 3);
Triangle_Write(16, 17, 19, 18, 4);
Triangle_Write(20, 21, 23, 22, 5);
Triangle_Write(0, 1, 9, 8, 6);
Triangle_Write(2, 3, 13, 12, 7);
Triangle_Write(6, 7, 15, 14, 8);
Triangle_Write(4, 5, 11, 10, 9);
Triangle_Write(0, 2, 17, 16, 11);
Triangle_Write(4, 6, 19, 18, 12);
Triangle_Write(1, 3, 21, 20, 13);
Triangle_Write(5, 7, 23, 22, 14);
Triangle_Write(8, 10, 18, 16, 15);
Triangle_Write(9, 11, 22, 20, 16);
Triangle_Write(12, 14, 19, 17, 17);
Triangle_Write(13, 15, 23, 21, 18);
Triangle_Write3(0, 8, 16, 19);
Triangle_Write3(1, 9, 20, 20);
Triangle_Write3(2, 12, 17, 21);
Triangle_Write3(3, 13, 21, 22);
Triangle_Write3(4, 10, 18, 23);
Triangle_Write3(5, 11, 22, 24);
Triangle_Write3(6, 14, 19, 25);
Triangle_Write3(7, 15, 23, 26);
if (_root.menu_mode == "visible") {
_root.menu.menubase.timecounter = _root.gametime;
_root.menu.menubase.bombcounter = (_root.main.bomcount + "/") + _root.main.st_bomcount;
_root.menu.menubase.panelcounter = (_root.main.panel + "/") + _root.main.st_panel;
}
}
onClipEvent (mouseDown) {
sPress = true;
}
onClipEvent (mouseUp) {
sPress = false;
}
Frame 66
if (_root.Hdisp == false) {
_root.haikei._visible = false;
}
_root.cursor_mode = "open";
_root.cursor_disp.gotoAndStop("open");
_root.gametime = 0;
Frame 67
_root.game_stop = true;
if (_root.menu_mode == "hidden") {
_root.menu.gotoAndStop("hidden");
}
stop();
Instance of Symbol 10 MovieClip "main" in Frame 67
onClipEvent (load) {
function setPoint() {
Point = new Array();
gr = this.nowSize;
fa = 3;
point[0] = _root.setObj(fa * gr, gr, gr);
point[1] = _root.setObj(fa * gr, gr, gr * -1);
point[2] = _root.setObj(fa * gr, gr * -1, gr);
point[3] = _root.setObj(fa * gr, gr * -1, gr * -1);
point[4] = _root.setObj((fa * gr) * -1, gr, gr);
point[5] = _root.setObj((fa * gr) * -1, gr, gr * -1);
point[6] = _root.setObj((fa * gr) * -1, gr * -1, gr);
point[7] = _root.setObj((fa * gr) * -1, gr * -1, gr * -1);
point[8] = _root.setObj(gr, fa * gr, gr);
point[9] = _root.setObj(gr, fa * gr, gr * -1);
point[10] = _root.setObj(gr * -1, fa * gr, gr);
point[11] = _root.setObj(gr * -1, fa * gr, gr * -1);
point[12] = _root.setObj(gr, (fa * gr) * -1, gr);
point[13] = _root.setObj(gr, (fa * gr) * -1, gr * -1);
point[14] = _root.setObj(gr * -1, (fa * gr) * -1, gr);
point[15] = _root.setObj(gr * -1, (fa * gr) * -1, gr * -1);
point[16] = _root.setObj(gr, gr, fa * gr);
point[17] = _root.setObj(gr, gr * -1, fa * gr);
point[18] = _root.setObj(gr * -1, gr, fa * gr);
point[19] = _root.setObj(gr * -1, gr * -1, fa * gr);
point[20] = _root.setObj(gr, gr, (fa * gr) * -1);
point[21] = _root.setObj(gr, gr * -1, (fa * gr) * -1);
point[22] = _root.setObj(gr * -1, gr, (fa * gr) * -1);
point[23] = _root.setObj(gr * -1, gr * -1, (fa * gr) * -1);
point[24] = _root.setObj(gr, gr, gr);
point[25] = _root.setObj(gr, gr, gr * -1);
point[26] = _root.setObj(gr * -1, gr, gr);
point[27] = _root.setObj(gr * -1, gr, gr * -1);
point[28] = _root.setObj(gr, gr * -1, gr);
point[29] = _root.setObj(gr, gr * -1, gr * -1);
point[30] = _root.setObj(gr * -1, gr * -1, gr);
point[31] = _root.setObj(gr * -1, gr * -1, gr * -1);
}
function followMatrix(old) {
var old;
var obj = new Object();
obj.x = _root._xmouse;
obj.y = _root._ymouse;
if ((typeof(old.x) == "undefined") && (typeof(old.y) == "undefined")) {
old = new Object();
old.x = obj.x;
old.y = obj.y;
old.angX = 40;
old.angY = 20;
obj.difX = 0;
obj.difY = 0;
}
var checkX = (obj.x - old.x);
var checkY = (obj.y - old.y);
if (sPress or ((checkX != 0) and (checkY != 0))) {
if (_root.game_stop == false) {
obj.difX = (old.x - obj.x) / 2;
obj.difY = (obj.y - old.y) / 2;
}
if ((obj.difX > _root.maxspeed) && (obj.difX > 0)) {
obj.difX = _root.maxspeed;
} else if ((obj.difX < (_root.maxspeed * -1)) && (obj.difX < 0)) {
obj.difX = _root.maxspeed * -1;
}
if ((obj.difY > _root.maxspeed) && (obj.difY > 0)) {
obj.difY = _root.maxspeed;
} else if ((obj.difY < (_root.maxspeed * -1)) && (obj.difY < 0)) {
obj.difY = _root.maxspeed * -1;
}
}
if ((!sPress) or ((checkX == 0) and (checkY == 0))) {
obj.difX = old.difX - (old.difX / _root.downspeed);
obj.difY = old.difY - (old.difY / _root.downspeed);
}
obj.angY = _root.backVal(old.angY, obj.difY, 360);
obj.angX = _root.backVal2(old.angX, obj.difX, 360, obj.angY);
CoordPoint = launch3D("Point", obj.angY, obj.angX, d);
return(obj);
}
function launch3D(object3D, xAng, yAng, d) {
var xRad = ((Math.PI/180) * xAng);
var yRad = ((Math.PI/180) * yAng);
var sinX = Math.sin(xRad);
var cosX = Math.cos(xRad);
var sinY = Math.sin(yRad);
var cosY = Math.cos(yRad);
var source = eval (object3D);
var obj = new Array();
var u = source.length;
var i = 0;
while (i < u) {
obj[i] = new Object();
var tempz = ((source[i].z * cosY) - (source[i].x * sinY));
obj[i].z = (source[i].y * sinX) + (tempz * cosX);
obj[i].x = (source[i].z * sinY) + (source[i].x * cosY);
obj[i].y = (source[i].y * cosX) - (tempz * sinX);
var scalar = (1 / ((obj[i].z / d) + 1));
obj[i].x = (obj[i].x * scalar) + 0;
obj[i].y = (obj[i].y * scalar) + 0;
i = i + 1;
}
for (i in obj) {
}
return(obj);
}
function Triangle_Write(TA, TB, TC, TD, TN) {
trdepth = Math.floor(Math.max(Math.max(Math.max(CoordPoint[TA].z, CoordPoint[TB].z), CoordPoint[TC].z), CoordPoint[TD].z)) + 250;
trdepth = trdepth + Math.floor((((CoordPoint[TA].z + CoordPoint[TB].z) + CoordPoint[TC].z) + CoordPoint[TD].z) / 4);
trdepth = 10000 - (trdepth * 10);
with (this["triangle" + TN]) {
clear();
linestyle(1, 0, 100);
if (this["triangle" + TN].cap == "bomb") {
beginFill(this.bombcolor, _root.Trance);
} else if (this["triangle" + TN].cap == "open") {
beginFill(this.opencolor, _root.Trance);
} else if (this["triangle" + TN].overfacer == true) {
beginFill(this.overcolor, _root.Trance);
} else {
beginFill(this.outcolor, _root.Trance);
}
moveTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
lineTo(this.CoordPoint[TB].x, this.CoordPoint[TB].y);
lineTo(this.CoordPoint[TC].x, this.CoordPoint[TC].y);
lineTo(this.CoordPoint[TD].x, this.CoordPoint[TD].y);
lineTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
swapDepths(trdepth + TN);
}
trmaxX = Math.floor(Math.max(Math.max(Math.max(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x), CoordPoint[TD].x));
trminX = Math.floor(Math.min(Math.min(Math.min(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x), CoordPoint[TD].x));
trmaxY = Math.floor(Math.max(Math.max(Math.max(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y), CoordPoint[TD].y));
trminY = Math.floor(Math.min(Math.min(Math.min(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y), CoordPoint[TD].y));
ptcenterX = (trmaxX + trminX) / 2;
ptcenterY = (trmaxY + trminY) / 2;
this["triangle" + TN].cou._x = ptcenterX;
this["triangle" + TN].cou._y = ptcenterY;
}
this.outcolor = "0xEEEEEE";
this.overcolor = "0xDFDFDF";
this.bombcolor = "0xFF3333";
this.opencolor = "0x777777";
this.SizeMid = 30;
this.SizeLar = 35;
this.SizeLow = 25;
this.nowSize = this.SizeMid;
this.st_bomcount = 9 - _root.cold_down;
this.bomcount = 0;
this.st_panel = 30;
this.joint0 = "6/8/15/19";
this.joint1 = "11/13/17/21";
this.joint2 = "7/14/23/25";
this.joint3 = "9/12/27/29";
this.joint4 = "16/18/24/28";
this.joint5 = "20/22/26/30";
this.joint6 = "0/7/15/19";
this.joint7 = "2/6/23/25";
this.joint8 = "0/9/15/19";
this.joint9 = "3/8/27/29";
this.joint11 = "1/12/17/21";
this.joint12 = "3/11/27/29";
this.joint13 = "1/14/17/21";
this.joint14 = "2/13/23/25";
this.joint15 = "0/6/8/16";
this.joint16 = "4/15/24/28";
this.joint17 = "1/11/13/18";
this.joint18 = "4/17/24/28";
this.joint19 = "0/6/8/20";
this.joint20 = "5/19/26/30";
this.joint21 = "1/11/13/22";
this.joint22 = "5/21/26/30";
this.joint23 = "2/7/14/24";
this.joint24 = "4/16/18/23";
this.joint25 = "2/7/14/26";
this.joint26 = "5/20/22/25";
this.joint27 = "3/9/12/28";
this.joint28 = "4/16/18/27";
this.joint29 = "3/9/12/30";
this.joint30 = "5/20/22/29";
bomcount = 0;
panel = 0;
clash_out = 40;
var d = 10000;
setPoint();
CoordPoint = _root.launch3D("point", 5, 5);
trai = 0;
while (trai <= this.st_panel) {
this.attachMovie("facer", "triangle" + trai, trai + 1);
trai++;
}
}
onClipEvent (enterFrame) {
if (bomb_out != true) {
tempFollow = followMatrix(tempFollow);
if ((_root.timermove == true) && (_root.gametime < 30000)) {
_root.gametime++;
}
} else {
_root.bomber(this.st_panel);
}
Triangle_Write(0, 1, 3, 2, 0);
Triangle_Write(4, 5, 7, 6, 1);
Triangle_Write(8, 9, 11, 10, 2);
Triangle_Write(12, 13, 15, 14, 3);
Triangle_Write(16, 17, 19, 18, 4);
Triangle_Write(20, 21, 23, 22, 5);
Triangle_Write(0, 1, 25, 24, 6);
Triangle_Write(9, 8, 24, 25, 7);
Triangle_Write(2, 3, 29, 28, 8);
Triangle_Write(13, 12, 28, 29, 9);
Triangle_Write(6, 7, 31, 30, 11);
Triangle_Write(15, 14, 30, 31, 12);
Triangle_Write(4, 5, 27, 26, 13);
Triangle_Write(11, 10, 26, 27, 14);
Triangle_Write(0, 2, 28, 24, 15);
Triangle_Write(17, 16, 24, 28, 16);
Triangle_Write(4, 6, 30, 26, 17);
Triangle_Write(19, 18, 26, 30, 18);
Triangle_Write(1, 3, 29, 25, 19);
Triangle_Write(21, 20, 25, 29, 20);
Triangle_Write(5, 7, 31, 27, 21);
Triangle_Write(23, 22, 27, 31, 22);
Triangle_Write(8, 10, 26, 24, 23);
Triangle_Write(18, 16, 24, 26, 24);
Triangle_Write(9, 11, 27, 25, 25);
Triangle_Write(22, 20, 25, 27, 26);
Triangle_Write(12, 14, 30, 28, 27);
Triangle_Write(19, 17, 28, 30, 28);
Triangle_Write(13, 15, 31, 29, 29);
Triangle_Write(23, 21, 29, 31, 30);
if (_root.menu_mode == "visible") {
_root.menu.menubase.timecounter = _root.gametime;
_root.menu.menubase.bombcounter = (_root.main.bomcount + "/") + _root.main.st_bomcount;
_root.menu.menubase.panelcounter = (_root.main.panel + "/") + _root.main.st_panel;
}
}
onClipEvent (mouseDown) {
sPress = true;
}
onClipEvent (mouseUp) {
sPress = false;
}
Frame 76
if (_root.Hdisp == false) {
_root.haikei._visible = false;
}
_root.cursor_mode = "open";
_root.cursor_disp.gotoAndStop("open");
_root.gametime = 0;
Frame 77
_root.game_stop = true;
if (_root.menu_mode == "hidden") {
_root.menu.gotoAndStop("hidden");
}
stop();
Instance of Symbol 10 MovieClip "main" in Frame 77
onClipEvent (load) {
function setPoint() {
Point = new Array();
gr = this.nowSize;
cos51 = 0.629320391049838;
cos103 = -0.224951054343865;
cos154 = -0.898794046299167;
cos206 = -0.898794046299167;
cos257 = -0.224951054343865;
cos309 = 0.629320391049838;
sin51 = 0.777145961456971;
sin103 = 0.974370064785235;
sin154 = 0.438371146789077;
sin206 = -0.438371146789077;
sin257 = -0.974370064785235;
sin309 = -0.777145961456971;
fa = 0.5;
point[0] = _root.setObj(gr, (fa * 3) * gr, 0);
point[1] = _root.setObj(cos51 * gr, (fa * 3) * gr, sin51 * gr);
point[2] = _root.setObj(cos103 * gr, (fa * 3) * gr, sin103 * gr);
point[3] = _root.setObj(cos154 * gr, (fa * 3) * gr, sin154 * gr);
point[4] = _root.setObj(cos206 * gr, (fa * 3) * gr, sin206 * gr);
point[5] = _root.setObj(cos257 * gr, (fa * 3) * gr, sin257 * gr);
point[6] = _root.setObj(cos309 * gr, (fa * 3) * gr, sin309 * gr);
point[7] = _root.setObj(gr, fa * gr, 0);
point[8] = _root.setObj(cos51 * gr, fa * gr, sin51 * gr);
point[9] = _root.setObj(cos103 * gr, fa * gr, sin103 * gr);
point[10] = _root.setObj(cos154 * gr, fa * gr, sin154 * gr);
point[11] = _root.setObj(cos206 * gr, fa * gr, sin206 * gr);
point[12] = _root.setObj(cos257 * gr, fa * gr, sin257 * gr);
point[13] = _root.setObj(cos309 * gr, fa * gr, sin309 * gr);
point[14] = _root.setObj(gr, (fa * -1) * gr, 0);
point[15] = _root.setObj(cos51 * gr, (fa * -1) * gr, sin51 * gr);
point[16] = _root.setObj(cos103 * gr, (fa * -1) * gr, sin103 * gr);
point[17] = _root.setObj(cos154 * gr, (fa * -1) * gr, sin154 * gr);
point[18] = _root.setObj(cos206 * gr, (fa * -1) * gr, sin206 * gr);
point[19] = _root.setObj(cos257 * gr, (fa * -1) * gr, sin257 * gr);
point[20] = _root.setObj(cos309 * gr, (fa * -1) * gr, sin309 * gr);
point[21] = _root.setObj(gr, (fa * -3) * gr, 0);
point[22] = _root.setObj(cos51 * gr, (fa * -3) * gr, sin51 * gr);
point[23] = _root.setObj(cos103 * gr, (fa * -3) * gr, sin103 * gr);
point[24] = _root.setObj(cos154 * gr, (fa * -3) * gr, sin154 * gr);
point[25] = _root.setObj(cos206 * gr, (fa * -3) * gr, sin206 * gr);
point[26] = _root.setObj(cos257 * gr, (fa * -3) * gr, sin257 * gr);
point[27] = _root.setObj(cos309 * gr, (fa * -3) * gr, sin309 * gr);
}
function followMatrix(old) {
var old;
var obj = new Object();
obj.x = _root._xmouse;
obj.y = _root._ymouse;
if ((typeof(old.x) == "undefined") && (typeof(old.y) == "undefined")) {
old = new Object();
old.x = obj.x;
old.y = obj.y;
old.angX = 0;
old.angY = 20;
obj.difX = 0;
obj.difY = 0;
}
var checkX = (obj.x - old.x);
var checkY = (obj.y - old.y);
if (sPress or ((checkX != 0) and (checkY != 0))) {
if (_root.game_stop == false) {
obj.difX = (old.x - obj.x) / 2;
obj.difY = (obj.y - old.y) / 2;
}
if ((obj.difX > _root.maxspeed) && (obj.difX > 0)) {
obj.difX = _root.maxspeed;
} else if ((obj.difX < (_root.maxspeed * -1)) && (obj.difX < 0)) {
obj.difX = _root.maxspeed * -1;
}
if ((obj.difY > _root.maxspeed) && (obj.difY > 0)) {
obj.difY = _root.maxspeed;
} else if ((obj.difY < (_root.maxspeed * -1)) && (obj.difY < 0)) {
obj.difY = _root.maxspeed * -1;
}
}
if ((!sPress) or ((checkX == 0) and (checkY == 0))) {
obj.difX = old.difX - (old.difX / _root.downspeed);
obj.difY = old.difY - (old.difY / _root.downspeed);
}
obj.angY = _root.backVal(old.angY, obj.difY, 360);
obj.angX = _root.backVal2(old.angX, obj.difX, 360, obj.angY);
CoordPoint = launch3D("Point", obj.angY, obj.angX, d);
return(obj);
}
function launch3D(object3D, xAng, yAng, d) {
var xRad = ((Math.PI/180) * xAng);
var yRad = ((Math.PI/180) * yAng);
var sinX = Math.sin(xRad);
var cosX = Math.cos(xRad);
var sinY = Math.sin(yRad);
var cosY = Math.cos(yRad);
var source = eval (object3D);
var obj = new Array();
var u = source.length;
var i = 0;
while (i < u) {
obj[i] = new Object();
var tempz = ((source[i].z * cosY) - (source[i].x * sinY));
obj[i].z = (source[i].y * sinX) + (tempz * cosX);
obj[i].x = (source[i].z * sinY) + (source[i].x * cosY);
obj[i].y = (source[i].y * cosX) - (tempz * sinX);
var scalar = (1 / ((obj[i].z / d) + 1));
obj[i].x = (obj[i].x * scalar) + 0;
obj[i].y = (obj[i].y * scalar) + 0;
i = i + 1;
}
for (i in obj) {
}
return(obj);
}
function Triangle_Write(TA, TB, TC, TD, TN) {
trdepth = Math.floor(Math.max(Math.max(Math.max(CoordPoint[TA].z, CoordPoint[TB].z), CoordPoint[TC].z), CoordPoint[TD].z)) + 250;
trdepth = trdepth + Math.floor((((CoordPoint[TA].z + CoordPoint[TB].z) + CoordPoint[TC].z) + CoordPoint[TD].z) / 4);
trdepth = 10000 - (trdepth * 20);
with (this["triangle" + TN]) {
clear();
linestyle(1, 0, 100);
if (this["triangle" + TN].cap == "bomb") {
beginFill(this.bombcolor, _root.Trance);
} else if (this["triangle" + TN].cap == "open") {
beginFill(this.opencolor, _root.Trance);
} else if (this["triangle" + TN].overfacer == true) {
beginFill(this.overcolor, _root.Trance);
} else {
beginFill(this.outcolor, _root.Trance);
}
moveTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
lineTo(this.CoordPoint[TB].x, this.CoordPoint[TB].y);
lineTo(this.CoordPoint[TC].x, this.CoordPoint[TC].y);
lineTo(this.CoordPoint[TD].x, this.CoordPoint[TD].y);
lineTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
swapDepths(trdepth + TN);
}
trmaxX = Math.floor(Math.max(Math.max(Math.max(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x), CoordPoint[TD].x));
trminX = Math.floor(Math.min(Math.min(Math.min(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x), CoordPoint[TD].x));
trmaxY = Math.floor(Math.max(Math.max(Math.max(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y), CoordPoint[TD].y));
trminY = Math.floor(Math.min(Math.min(Math.min(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y), CoordPoint[TD].y));
ptcenterX = (trmaxX + trminX) / 2;
ptcenterY = (trmaxY + trminY) / 2;
this["triangle" + TN].cou._x = ptcenterX;
this["triangle" + TN].cou._y = ptcenterY;
}
function Triangle_Write7(TA, TB, TC, TD, TE, TF, TG, TN) {
trdepth = Math.floor(Math.max(Math.max(Math.max(Math.max(Math.max(Math.max(CoordPoint[TA].z, CoordPoint[TB].z), CoordPoint[TC].z), CoordPoint[TD].z), CoordPoint[TE].z), CoordPoint[TF].z), CoordPoint[TG].z)) + 250;
trdepth = trdepth + Math.floor(((((((CoordPoint[TA].z + CoordPoint[TB].z) + CoordPoint[TC].z) + CoordPoint[TD].z) + CoordPoint[TE].z) + CoordPoint[TF].z) + CoordPoint[TG].z) / 7);
trdepth = 10000 - (trdepth * 20);
with (this["triangle" + TN]) {
clear();
linestyle(1, 0, 100);
if (this["triangle" + TN].cap == "bomb") {
beginFill(this.bombcolor, _root.Trance);
} else if (this["triangle" + TN].cap == "open") {
beginFill(this.opencolor, _root.Trance);
} else if (this["triangle" + TN].overfacer == true) {
beginFill(this.overcolor, _root.Trance);
} else {
beginFill(this.outcolor, _root.Trance);
}
moveTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
lineTo(this.CoordPoint[TB].x, this.CoordPoint[TB].y);
lineTo(this.CoordPoint[TC].x, this.CoordPoint[TC].y);
lineTo(this.CoordPoint[TD].x, this.CoordPoint[TD].y);
lineTo(this.CoordPoint[TE].x, this.CoordPoint[TE].y);
lineTo(this.CoordPoint[TF].x, this.CoordPoint[TF].y);
lineTo(this.CoordPoint[TG].x, this.CoordPoint[TG].y);
lineTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
swapDepths(trdepth + TN);
}
trmaxX = Math.floor(Math.max(Math.max(Math.max(Math.max(Math.max(Math.max(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x), CoordPoint[TD].x), CoordPoint[TE].x), CoordPoint[TF].x), CoordPoint[TG].x));
trminX = Math.floor(Math.min(Math.min(Math.min(Math.min(Math.min(Math.min(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x), CoordPoint[TD].x), CoordPoint[TE].x), CoordPoint[TF].x), CoordPoint[TG].x));
trmaxY = Math.floor(Math.max(Math.max(Math.max(Math.max(Math.max(Math.max(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y), CoordPoint[TD].y), CoordPoint[TE].y), CoordPoint[TF].y), CoordPoint[TG].y));
trminY = Math.floor(Math.min(Math.min(Math.min(Math.min(Math.min(Math.min(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y), CoordPoint[TD].y), CoordPoint[TE].y), CoordPoint[TF].y), CoordPoint[TG].y));
ptcenterX = (trmaxX + trminX) / 2;
ptcenterY = (trmaxY + trminY) / 2;
this["triangle" + TN].cou._x = ptcenterX;
this["triangle" + TN].cou._y = ptcenterY;
}
this.outcolor = "0xEEEEEE";
this.overcolor = "0xDFDFDF";
this.bombcolor = "0xFF3333";
this.opencolor = "0x777777";
this.SizeMid = 50;
this.SizeLar = 60;
this.SizeLow = 40;
this.nowSize = this.SizeMid;
this.st_bomcount = 6 - _root.cold_down;
this.bomcount = 0;
this.st_panel = 23;
this.joint0 = "2/3/4/5/6/7/8";
this.joint1 = "17/18/19/20/21/22/23";
this.joint2 = "0/3/8/9";
this.joint3 = "0/2/4/11";
this.joint4 = "0/3/5/12";
this.joint5 = "0/4/6/13";
this.joint6 = "0/5/7/14";
this.joint7 = "0/6/8/15";
this.joint8 = "0/2/7/16";
this.joint9 = "2/11/16/17";
this.joint11 = "3/9/12/18";
this.joint12 = "4/11/13/19";
this.joint13 = "5/12/14/20";
this.joint14 = "6/13/15/21";
this.joint15 = "7/14/16/22";
this.joint16 = "8/9/15/23";
this.joint17 = "1/9/18/23";
this.joint18 = "1/11/17/19";
this.joint19 = "1/12/18/20";
this.joint20 = "1/13/19/21";
this.joint21 = "1/14/20/22";
this.joint22 = "1/15/21/23";
this.joint23 = "1/16/17/22";
bomcount = 0;
panel = 0;
clash_out = 40;
var d = 10000;
setPoint();
CoordPoint = _root.launch3D("point", 5, 5);
trai = 0;
while (trai <= this.st_panel) {
this.attachMovie("facer", "triangle" + trai, trai + 1);
trai++;
}
}
onClipEvent (enterFrame) {
if (bomb_out != true) {
tempFollow = followMatrix(tempFollow);
if ((_root.timermove == true) && (_root.gametime < 30000)) {
_root.gametime++;
}
} else {
_root.bomber(this.st_panel);
}
Triangle_Write7(0, 1, 2, 3, 4, 5, 6, 0);
Triangle_Write7(21, 22, 23, 24, 25, 26, 27, 1);
Triangle_Write(0, 1, 8, 7, 2);
Triangle_Write(1, 2, 9, 8, 3);
Triangle_Write(2, 3, 10, 9, 4);
Triangle_Write(3, 4, 11, 10, 5);
Triangle_Write(4, 5, 12, 11, 6);
Triangle_Write(5, 6, 13, 12, 7);
Triangle_Write(6, 0, 7, 13, 8);
Triangle_Write(8, 7, 14, 15, 9);
Triangle_Write(9, 8, 15, 16, 11);
Triangle_Write(10, 9, 16, 17, 12);
Triangle_Write(11, 10, 17, 18, 13);
Triangle_Write(12, 11, 18, 19, 14);
Triangle_Write(13, 12, 19, 20, 15);
Triangle_Write(7, 13, 20, 14, 16);
Triangle_Write(14, 15, 22, 21, 17);
Triangle_Write(15, 16, 23, 22, 18);
Triangle_Write(16, 17, 24, 23, 19);
Triangle_Write(17, 18, 25, 24, 20);
Triangle_Write(18, 19, 26, 25, 21);
Triangle_Write(19, 20, 27, 26, 22);
Triangle_Write(20, 14, 21, 27, 23);
if (_root.menu_mode == "visible") {
_root.menu.menubase.timecounter = _root.gametime;
_root.menu.menubase.bombcounter = (_root.main.bomcount + "/") + _root.main.st_bomcount;
_root.menu.menubase.panelcounter = (_root.main.panel + "/") + _root.main.st_panel;
}
}
onClipEvent (mouseDown) {
sPress = true;
}
onClipEvent (mouseUp) {
sPress = false;
}
Frame 86
if (_root.Hdisp == false) {
_root.haikei._visible = false;
}
_root.cursor_mode = "open";
_root.cursor_disp.gotoAndStop("open");
_root.gametime = 0;
Frame 87
_root.game_stop = true;
if (_root.menu_mode == "hidden") {
_root.menu.gotoAndStop("hidden");
}
stop();
Instance of Symbol 10 MovieClip "main" in Frame 87
onClipEvent (load) {
function setPoint() {
Point = new Array();
gr = this.nowSize;
cos60 = 0.5;
cos120 = -0.5;
cos180 = -1;
cos240 = -0.5;
cos300 = 0.5;
sin60 = 0.866025403784439;
sin120 = 0.866025403784439;
sin180 = 1.22460635382238E-16;
sin240 = -0.866025403784438;
sin300 = -0.866025403784439;
fa = 0.5;
point[0] = _root.setObj(gr * 3, fa * gr, 0);
point[1] = _root.setObj((cos60 * 3) * gr, fa * gr, (sin60 * 3) * gr);
point[2] = _root.setObj((cos120 * 3) * gr, fa * gr, (sin120 * 3) * gr);
point[3] = _root.setObj((cos180 * 3) * gr, fa * gr, (sin180 * 3) * gr);
point[4] = _root.setObj((cos240 * 3) * gr, fa * gr, (sin240 * 3) * gr);
point[5] = _root.setObj((cos300 * 3) * gr, fa * gr, (sin300 * 3) * gr);
point[6] = _root.setObj(gr * 2, fa * gr, 0);
point[7] = _root.setObj((cos60 * 2) * gr, fa * gr, (sin60 * 2) * gr);
point[8] = _root.setObj((cos120 * 2) * gr, fa * gr, (sin120 * 2) * gr);
point[9] = _root.setObj((cos180 * 2) * gr, fa * gr, (sin180 * 2) * gr);
point[10] = _root.setObj((cos240 * 2) * gr, fa * gr, (sin240 * 2) * gr);
point[11] = _root.setObj((cos300 * 2) * gr, fa * gr, (sin300 * 2) * gr);
point[12] = _root.setObj(gr * 3, (fa * -1) * gr, 0);
point[13] = _root.setObj((cos60 * 3) * gr, (fa * -1) * gr, (sin60 * 3) * gr);
point[14] = _root.setObj((cos120 * 3) * gr, (fa * -1) * gr, (sin120 * 3) * gr);
point[15] = _root.setObj((cos180 * 3) * gr, (fa * -1) * gr, (sin180 * 3) * gr);
point[16] = _root.setObj((cos240 * 3) * gr, (fa * -1) * gr, (sin240 * 3) * gr);
point[17] = _root.setObj((cos300 * 3) * gr, (fa * -1) * gr, (sin300 * 3) * gr);
point[18] = _root.setObj(gr * 2, (fa * -1) * gr, 0);
point[19] = _root.setObj((cos60 * 2) * gr, (fa * -1) * gr, (sin60 * 2) * gr);
point[20] = _root.setObj((cos120 * 2) * gr, (fa * -1) * gr, (sin120 * 2) * gr);
point[21] = _root.setObj((cos180 * 2) * gr, (fa * -1) * gr, (sin180 * 2) * gr);
point[22] = _root.setObj((cos240 * 2) * gr, (fa * -1) * gr, (sin240 * 2) * gr);
point[23] = _root.setObj((cos300 * 2) * gr, (fa * -1) * gr, (sin300 * 2) * gr);
}
function followMatrix(old) {
var old;
var obj = new Object();
obj.x = _root._xmouse;
obj.y = _root._ymouse;
if ((typeof(old.x) == "undefined") && (typeof(old.y) == "undefined")) {
old = new Object();
old.x = obj.x;
old.y = obj.y;
old.angX = 0;
old.angY = 20;
obj.difX = 0;
obj.difY = 0;
}
var checkX = (obj.x - old.x);
var checkY = (obj.y - old.y);
if (sPress or ((checkX != 0) and (checkY != 0))) {
if (_root.game_stop == false) {
obj.difX = (old.x - obj.x) / 2;
obj.difY = (obj.y - old.y) / 2;
}
if ((obj.difX > _root.maxspeed) && (obj.difX > 0)) {
obj.difX = _root.maxspeed;
} else if ((obj.difX < (_root.maxspeed * -1)) && (obj.difX < 0)) {
obj.difX = _root.maxspeed * -1;
}
if ((obj.difY > _root.maxspeed) && (obj.difY > 0)) {
obj.difY = _root.maxspeed;
} else if ((obj.difY < (_root.maxspeed * -1)) && (obj.difY < 0)) {
obj.difY = _root.maxspeed * -1;
}
}
if ((!sPress) or ((checkX == 0) and (checkY == 0))) {
obj.difX = old.difX - (old.difX / _root.downspeed);
obj.difY = old.difY - (old.difY / _root.downspeed);
}
obj.angY = _root.backVal(old.angY, obj.difY, 360);
obj.angX = _root.backVal2(old.angX, obj.difX, 360, obj.angY);
CoordPoint = launch3D("Point", obj.angY, obj.angX, d);
return(obj);
}
function launch3D(object3D, xAng, yAng, d) {
var xRad = ((Math.PI/180) * xAng);
var yRad = ((Math.PI/180) * yAng);
var sinX = Math.sin(xRad);
var cosX = Math.cos(xRad);
var sinY = Math.sin(yRad);
var cosY = Math.cos(yRad);
var source = eval (object3D);
var obj = new Array();
var u = source.length;
var i = 0;
while (i < u) {
obj[i] = new Object();
var tempz = ((source[i].z * cosY) - (source[i].x * sinY));
obj[i].z = (source[i].y * sinX) + (tempz * cosX);
obj[i].x = (source[i].z * sinY) + (source[i].x * cosY);
obj[i].y = (source[i].y * cosX) - (tempz * sinX);
var scalar = (1 / ((obj[i].z / d) + 1));
obj[i].x = (obj[i].x * scalar) + 0;
obj[i].y = (obj[i].y * scalar) + 0;
i = i + 1;
}
for (i in obj) {
}
return(obj);
}
function Triangle_Write(TA, TB, TC, TD, TN) {
trdepth = Math.floor(Math.max(Math.max(Math.max(CoordPoint[TA].z, CoordPoint[TB].z), CoordPoint[TC].z), CoordPoint[TD].z)) + 250;
trdepth = trdepth + Math.floor((((CoordPoint[TA].z + CoordPoint[TB].z) + CoordPoint[TC].z) + CoordPoint[TD].z) / 4);
trdepth = 10000 - (trdepth * 20);
with (this["triangle" + TN]) {
clear();
linestyle(1, 0, 100);
if (this["triangle" + TN].cap == "bomb") {
beginFill(this.bombcolor, _root.Trance);
} else if (this["triangle" + TN].cap == "open") {
beginFill(this.opencolor, _root.Trance);
} else if (this["triangle" + TN].overfacer == true) {
beginFill(this.overcolor, _root.Trance);
} else {
beginFill(this.outcolor, _root.Trance);
}
moveTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
lineTo(this.CoordPoint[TB].x, this.CoordPoint[TB].y);
lineTo(this.CoordPoint[TC].x, this.CoordPoint[TC].y);
lineTo(this.CoordPoint[TD].x, this.CoordPoint[TD].y);
lineTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
swapDepths(trdepth + TN);
}
trmaxX = Math.floor(Math.max(Math.max(Math.max(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x), CoordPoint[TD].x));
trminX = Math.floor(Math.min(Math.min(Math.min(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x), CoordPoint[TD].x));
trmaxY = Math.floor(Math.max(Math.max(Math.max(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y), CoordPoint[TD].y));
trminY = Math.floor(Math.min(Math.min(Math.min(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y), CoordPoint[TD].y));
ptcenterX = (trmaxX + trminX) / 2;
ptcenterY = (trmaxY + trminY) / 2;
this["triangle" + TN].cou._x = ptcenterX;
this["triangle" + TN].cou._y = ptcenterY;
}
this.outcolor = "0xFFF3F9";
this.overcolor = "0xF4D5DF";
this.bombcolor = "0xFF3333";
this.opencolor = "0x777777";
this.SizeMid = 30;
this.SizeLar = 35;
this.SizeLow = 25;
this.nowSize = this.SizeMid;
this.st_bomcount = 7 - _root.cold_down;
this.bomcount = 0;
this.st_panel = 24;
this.joint0 = "1/5/13/19";
this.joint1 = "0/2/14/20";
this.joint2 = "1/3/15/21";
this.joint3 = "2/4/16/22";
this.joint4 = "3/5/17/23";
this.joint5 = "0/4/18/24";
this.joint6 = "7/12/13/19";
this.joint7 = "6/8/14/20";
this.joint8 = "7/9/15/21";
this.joint9 = "8/11/16/22";
this.joint11 = "9/12/17/23";
this.joint12 = "6/11/18/24";
this.joint13 = "0/6/14/18";
this.joint14 = "1/7/13/15";
this.joint15 = "2/8/14/16";
this.joint16 = "3/9/15/17";
this.joint17 = "4/11/16/18";
this.joint18 = "5/12/13/17";
this.joint19 = "0/6/20/24";
this.joint20 = "1/7/19/21";
this.joint21 = "2/8/20/22";
this.joint22 = "3/9/21/23";
this.joint23 = "4/11/22/24";
this.joint24 = "5/12/19/23";
bomcount = 0;
panel = 0;
clash_out = 40;
var d = 10000;
setPoint();
CoordPoint = _root.launch3D("point", 5, 5);
trai = 0;
while (trai <= this.st_panel) {
this.attachMovie("facer", "triangle" + trai, trai + 1);
trai++;
}
}
onClipEvent (enterFrame) {
if (bomb_out != true) {
tempFollow = followMatrix(tempFollow);
if ((_root.timermove == true) && (_root.gametime < 30000)) {
_root.gametime++;
}
} else {
_root.bomber(this.st_panel);
}
Triangle_Write(0, 1, 7, 6, 0);
Triangle_Write(1, 2, 8, 7, 1);
Triangle_Write(2, 3, 9, 8, 2);
Triangle_Write(3, 4, 10, 9, 3);
Triangle_Write(4, 5, 11, 10, 4);
Triangle_Write(5, 0, 6, 11, 5);
Triangle_Write(12, 13, 19, 18, 6);
Triangle_Write(13, 14, 20, 19, 7);
Triangle_Write(14, 15, 21, 20, 8);
Triangle_Write(15, 16, 22, 21, 9);
Triangle_Write(16, 17, 23, 22, 11);
Triangle_Write(17, 12, 18, 23, 12);
Triangle_Write(0, 1, 13, 12, 13);
Triangle_Write(1, 2, 14, 13, 14);
Triangle_Write(2, 3, 15, 14, 15);
Triangle_Write(3, 4, 16, 15, 16);
Triangle_Write(4, 5, 17, 16, 17);
Triangle_Write(5, 0, 12, 17, 18);
Triangle_Write(6, 7, 19, 18, 19);
Triangle_Write(7, 8, 20, 19, 20);
Triangle_Write(8, 9, 21, 20, 21);
Triangle_Write(9, 10, 22, 21, 22);
Triangle_Write(10, 11, 23, 22, 23);
Triangle_Write(11, 6, 18, 23, 24);
if (_root.menu_mode == "visible") {
_root.menu.menubase.timecounter = _root.gametime;
_root.menu.menubase.bombcounter = (_root.main.bomcount + "/") + _root.main.st_bomcount;
_root.menu.menubase.panelcounter = (_root.main.panel + "/") + _root.main.st_panel;
}
}
onClipEvent (mouseDown) {
sPress = true;
}
onClipEvent (mouseUp) {
sPress = false;
}
Frame 96
if (_root.Hdisp == false) {
_root.haikei._visible = false;
}
_root.cursor_mode = "open";
_root.cursor_disp.gotoAndStop("open");
_root.gametime = 0;
Frame 97
_root.game_stop = true;
if (_root.menu_mode == "hidden") {
_root.menu.gotoAndStop("hidden");
}
stop();
Instance of Symbol 10 MovieClip "main" in Frame 97
onClipEvent (load) {
function setPoint() {
Point = new Array();
gr = this.nowSize;
fa = (gr * 1.73205080756888) / 2;
fb = (gr * 1.73205080756888) / 4;
fc = gr / 3;
fd = (3 * gr) / 4;
fe = -1;
point[0] = _root.setObj(0, 0, gr);
point[1] = _root.setObj(fa, 0, fc * -1);
point[2] = _root.setObj(fb * -1, fd * -1, fc * -1);
point[3] = _root.setObj(fb * -1, fd, fc * -1);
point[4] = _root.setObj(fa / 2, 0, ((fc * -1) + gr) / 2);
point[5] = _root.setObj((fb * -1) / 2, (fd * -1) / 2, ((fc * -1) + gr) / 2);
point[6] = _root.setObj((fb * -1) / 2, fd / 2, ((fc * -1) + gr) / 2);
point[7] = _root.setObj((fa + (fb * -1)) / 2, (fd * -1) / 2, ((fc * -1) + (fc * -1)) / 2);
point[8] = _root.setObj((fa + (fb * -1)) / 2, fd / 2, ((fc * -1) + (fc * -1)) / 2);
point[9] = _root.setObj(((fb * -1) + (fb * -1)) / 2, ((fd * -1) + fd) / 2, ((fc * -1) + (fc * -1)) / 2);
}
function followMatrix(old) {
var old;
var obj = new Object();
obj.x = _root._xmouse;
obj.y = _root._ymouse;
if ((typeof(old.x) == "undefined") && (typeof(old.y) == "undefined")) {
old = new Object();
old.x = obj.x;
old.y = obj.y;
}
var checkX = (obj.x - old.x);
var checkY = (obj.y - old.y);
if (sPress or ((checkX != 0) and (checkY != 0))) {
if (_root.game_stop == false) {
obj.difX = (old.x - obj.x) / 2;
obj.difY = (obj.y - old.y) / 2;
}
if ((obj.difX > _root.maxspeed) && (obj.difX > 0)) {
obj.difX = _root.maxspeed;
} else if ((obj.difX < (_root.maxspeed * -1)) && (obj.difX < 0)) {
obj.difX = _root.maxspeed * -1;
}
if ((obj.difY > _root.maxspeed) && (obj.difY > 0)) {
obj.difY = _root.maxspeed;
} else if ((obj.difY < (_root.maxspeed * -1)) && (obj.difY < 0)) {
obj.difY = _root.maxspeed * -1;
}
}
if ((!sPress) or ((checkX == 0) and (checkY == 0))) {
obj.difX = old.difX - (old.difX / _root.downspeed);
obj.difY = old.difY - (old.difY / _root.downspeed);
}
obj.angY = _root.backVal(old.angY, obj.difY, 360);
obj.angX = _root.backVal2(old.angX, obj.difX, 360, obj.angY);
CoordPoint = launch3D("Point", obj.angY, obj.angX, d);
return(obj);
}
function launch3D(object3D, xAng, yAng, d) {
var xRad = ((Math.PI/180) * xAng);
var yRad = ((Math.PI/180) * yAng);
var sinX = Math.sin(xRad);
var cosX = Math.cos(xRad);
var sinY = Math.sin(yRad);
var cosY = Math.cos(yRad);
var source = eval (object3D);
var obj = new Array();
var u = source.length;
var i = 0;
while (i < u) {
obj[i] = new Object();
var tempz = ((source[i].z * cosY) - (source[i].x * sinY));
obj[i].z = (source[i].y * sinX) + (tempz * cosX);
obj[i].x = (source[i].z * sinY) + (source[i].x * cosY);
obj[i].y = (source[i].y * cosX) - (tempz * sinX);
var scalar = (1 / ((obj[i].z / d) + 1));
obj[i].x = (obj[i].x * scalar) + 0;
obj[i].y = (obj[i].y * scalar) + 0;
i = i + 1;
}
for (i in obj) {
}
return(obj);
}
function Triangle_Write3(TA, TB, TC, TN) {
trdepth = Math.floor(Math.max(Math.max(CoordPoint[TA].z, CoordPoint[TB].z), CoordPoint[TC].z)) + 250;
trdepth = trdepth + Math.floor(((CoordPoint[TA].z + CoordPoint[TB].z) + CoordPoint[TC].z) / 3);
trdepth = 10000 - (trdepth * 10);
with (this["triangle" + TN]) {
clear();
linestyle(1, 0, 100);
if (this["triangle" + TN].cap == "bomb") {
beginFill(this.bombcolor, _root.Trance);
} else if (this["triangle" + TN].cap == "open") {
beginFill(this.opencolor, _root.Trance);
} else if (this["triangle" + TN].overfacer == true) {
beginFill(this.overcolor, _root.Trance);
} else {
beginFill(this.outcolor, _root.Trance);
}
moveTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
lineTo(this.CoordPoint[TB].x, this.CoordPoint[TB].y);
lineTo(this.CoordPoint[TC].x, this.CoordPoint[TC].y);
lineTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
swapDepths(trdepth + TN);
}
trmaxX = Math.floor(Math.max(Math.max(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x));
trminX = Math.floor(Math.min(Math.min(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x));
trmaxY = Math.floor(Math.max(Math.max(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y));
trminY = Math.floor(Math.min(Math.min(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y));
ptcenterX = (trmaxX + trminX) / 2;
ptcenterY = (trmaxY + trminY) / 2;
this["triangle" + TN].cou._x = ptcenterX;
this["triangle" + TN].cou._y = ptcenterY;
}
this.outcolor = "0xE5F3FE";
this.overcolor = "0xCEE5F3";
this.bombcolor = "0xFF3333";
this.opencolor = "0x777777";
this.SizeMid = 100;
this.SizeLar = 120;
this.SizeLow = 80;
this.nowSize = this.SizeMid;
this.st_bomcount = 3;
this.bomcount = 0;
this.st_panel = 16;
this.joint0 = "1/2/5";
this.joint1 = "0/2/8";
this.joint2 = "0/1/12";
this.joint3 = "5/6/13";
this.joint4 = "5/11/15";
this.joint5 = "0/3/4";
this.joint6 = "3/8/13";
this.joint7 = "8/9/14";
this.joint8 = "1/6/7";
this.joint9 = "7/12/14";
this.joint11 = "4/12/15";
this.joint12 = "2/9/11";
this.joint13 = "3/6/16";
this.joint14 = "7/9/16";
this.joint15 = "4/11/16";
this.joint16 = "13/14/15";
bomcount = 0;
panel = 0;
clash_out = 40;
var d = 10000;
setPoint();
CoordPoint = _root.launch3D("point", 5, 5);
trai = 0;
while (trai <= this.st_panel) {
this.attachMovie("facer", "triangle" + trai, trai + 1);
trai++;
}
}
onClipEvent (enterFrame) {
if (bomb_out != true) {
tempFollow = followMatrix(tempFollow);
if ((_root.timermove == true) && (_root.gametime < 30000)) {
_root.gametime++;
}
} else {
_root.bomber(this.st_panel);
}
Triangle_Write3(0, 4, 6, 0);
Triangle_Write3(0, 5, 4, 1);
Triangle_Write3(0, 6, 5, 2);
Triangle_Write3(1, 8, 4, 3);
Triangle_Write3(6, 3, 8, 4);
Triangle_Write3(4, 6, 8, 5);
Triangle_Write3(1, 4, 7, 6);
Triangle_Write3(2, 5, 7, 7);
Triangle_Write3(4, 5, 7, 8);
Triangle_Write3(2, 5, 9, 9);
Triangle_Write3(9, 6, 3, 11);
Triangle_Write3(5, 6, 9, 12);
Triangle_Write3(1, 7, 8, 13);
Triangle_Write3(2, 7, 9, 14);
Triangle_Write3(3, 8, 9, 15);
Triangle_Write3(7, 8, 9, 16);
if (_root.menu_mode == "visible") {
_root.menu.menubase.timecounter = _root.gametime;
_root.menu.menubase.bombcounter = (_root.main.bomcount + "/") + _root.main.st_bomcount;
_root.menu.menubase.panelcounter = (_root.main.panel + "/") + _root.main.st_panel;
}
}
onClipEvent (mouseDown) {
sPress = true;
}
onClipEvent (mouseUp) {
sPress = false;
}
Frame 106
if (_root.Hdisp == false) {
_root.haikei._visible = false;
}
_root.cursor_mode = "open";
_root.cursor_disp.gotoAndStop("open");
_root.gametime = 0;
Frame 107
_root.game_stop = true;
if (_root.menu_mode == "hidden") {
_root.menu.gotoAndStop("hidden");
}
stop();
Instance of Symbol 10 MovieClip "main" in Frame 107
onClipEvent (load) {
function setPoint() {
Point = new Array();
gr = this.nowSize;
fX = 1.61803398874989;
fS = ((fX + 1) / 2) * gr;
sin72 = 0.951056516295154;
sin36 = 0.587785252292473;
cos72 = 0.309016994374947;
cos36 = 0.809016994374947;
point[0] = _root.setObj(((cos72 * gr) + gr) / 2, (sin72 * gr) / 2, -fS);
point[1] = _root.setObj(((cos72 * gr) + ((cos36 * -1) * gr)) / 2, ((sin72 * gr) + (sin36 * gr)) / 2, -fS);
point[2] = _root.setObj((cos36 * -1) * gr, ((sin36 * gr) + ((sin36 * -1) * gr)) / 2, -fS);
point[3] = _root.setObj((((cos36 * -1) * gr) + (cos72 * gr)) / 2, (((sin36 * -1) * gr) + ((sin72 * -1) * gr)) / 2, -fS);
point[4] = _root.setObj(((cos72 * gr) + gr) / 2, ((sin72 * -1) * gr) / 2, -fS);
point[5] = _root.setObj(((fX * gr) + gr) / 2, 0, ((gr - fS) + (-fS)) / 2);
point[6] = _root.setObj(((fX * gr) + ((fX * cos36) * gr)) / 2, ((fX * sin36) * gr) / 2, ((gr - fS) + ((fX * gr) - fS)) / 2);
point[7] = _root.setObj((((fX * cos36) * gr) + ((fX * cos72) * gr)) / 2, (((fX * sin36) * gr) + ((fX * sin72) * gr)) / 2, ((gr - fS) + ((fX * gr) - fS)) / 2);
point[8] = _root.setObj((((fX * cos72) * gr) + (cos72 * gr)) / 2, (((fX * sin72) * gr) + (sin72 * gr)) / 2, ((gr - fS) + (-fS)) / 2);
point[9] = _root.setObj((((fX * cos72) * gr) + (((fX * cos72) * -1) * gr)) / 2, (fX * sin72) * gr, ((gr - fS) + ((fX * gr) - fS)) / 2);
point[10] = _root.setObj(((((fX * cos72) * -1) * gr) + (((fX * cos36) * -1) * gr)) / 2, (((fX * sin72) * gr) + ((fX * sin36) * gr)) / 2, (((fX * gr) - fS) + (gr - fS)) / 2);
point[11] = _root.setObj((((cos36 * -1) * gr) + (((fX * cos36) * -1) * gr)) / 2, ((sin36 * gr) + ((fX * sin36) * gr)) / 2, ((-fS) + (gr - fS)) / 2);
point[12] = _root.setObj(((((fX * cos36) * -1) * gr) + ((fX * -1) * gr)) / 2, ((fX * sin36) * gr) / 2, ((gr - fS) + ((fX * gr) - fS)) / 2);
point[13] = _root.setObj((((fX * -1) * gr) + (((fX * cos36) * -1) * gr)) / 2, (((fX * sin36) * -1) * gr) / 2, (((fX * gr) - fS) + (gr - fS)) / 2);
point[14] = _root.setObj(((((fX * cos36) * -1) * gr) + ((cos36 * -1) * gr)) / 2, ((((fX * sin36) * -1) * gr) + ((sin36 * -1) * gr)) / 2, ((gr - fS) + (-fS)) / 2);
point[15] = _root.setObj(((((fX * cos36) * -1) * gr) + (((fX * cos72) * -1) * gr)) / 2, ((((fX * sin36) * -1) * gr) + (((fX * sin72) * -1) * gr)) / 2, ((gr - fS) + ((fX * gr) - fS)) / 2);
point[16] = _root.setObj(((((fX * cos72) * -1) * gr) + ((fX * cos72) * gr)) / 2, ((((fX * sin72) * -1) * gr) + (((fX * sin72) * -1) * gr)) / 2, (((fX * gr) - fS) + (gr - fS)) / 2);
point[17] = _root.setObj((((fX * cos72) * gr) + (cos72 * gr)) / 2, ((((fX * sin72) * -1) * gr) + ((sin72 * -1) * gr)) / 2, ((gr - fS) + (-fS)) / 2);
point[18] = _root.setObj((((fX * cos72) * gr) + ((fX * cos36) * gr)) / 2, ((((fX * sin72) * -1) * gr) + (((fX * sin36) * -1) * gr)) / 2, ((gr - fS) + ((fX * gr) - fS)) / 2);
point[19] = _root.setObj((((fX * cos36) * gr) + (fX * gr)) / 2, (((fX * sin36) * -1) * gr) / 2, (((fX * gr) - fS) + (gr - fS)) / 2);
point[20] = _root.setObj(((-1 * gr) + ((-1 * cos72) * gr)) / 2, ((-1 * sin72) * gr) / 2, ((fX + 1) * gr) - fS);
point[21] = _root.setObj((((-1 * cos72) * gr) + (cos36 * gr)) / 2, (((-1 * sin72) * gr) + ((-1 * sin36) * gr)) / 2, ((fX + 1) * gr) - fS);
point[22] = _root.setObj(((cos36 * gr) + (cos36 * gr)) / 2, (((-1 * sin36) * gr) + (sin36 * gr)) / 2, ((fX + 1) * gr) - fS);
point[23] = _root.setObj(((cos36 * gr) + ((-1 * cos72) * gr)) / 2, ((sin36 * gr) + (sin72 * gr)) / 2, ((fX + 1) * gr) - fS);
point[24] = _root.setObj((((-1 * cos72) * gr) + (-1 * gr)) / 2, (sin72 * gr) / 2, ((fX + 1) * gr) - fS);
point[25] = _root.setObj(((-1 * gr) + ((fX * -1) * gr)) / 2, 0, ((((fX + 1) * gr) - fS) + ((fX * gr) - fS)) / 2);
point[26] = _root.setObj((((-1 * cos72) * gr) + (((fX * cos72) * -1) * gr)) / 2, (((-1 * sin72) * gr) + (((fX * sin72) * -1) * gr)) / 2, ((((fX + 1) * gr) - fS) + ((fX * gr) - fS)) / 2);
point[27] = _root.setObj(((cos36 * gr) + ((fX * cos36) * gr)) / 2, (((-1 * sin36) * gr) + (((fX * sin36) * -1) * gr)) / 2, ((((fX + 1) * gr) - fS) + ((fX * gr) - fS)) / 2);
point[28] = _root.setObj(((cos36 * gr) + ((fX * cos36) * gr)) / 2, ((sin36 * gr) + ((fX * sin36) * gr)) / 2, ((((fX + 1) * gr) - fS) + ((fX * gr) - fS)) / 2);
point[29] = _root.setObj((((-1 * cos72) * gr) + (((fX * cos72) * -1) * gr)) / 2, ((sin72 * gr) + ((fX * sin72) * gr)) / 2, ((((fX + 1) * gr) - fS) + ((fX * gr) - fS)) / 2);
}
function followMatrix(old) {
var old;
var obj = new Object();
obj.x = _root._xmouse;
obj.y = _root._ymouse;
if ((typeof(old.x) == "undefined") && (typeof(old.y) == "undefined")) {
old = new Object();
old.x = obj.x;
old.y = obj.y;
}
var checkX = (obj.x - old.x);
var checkY = (obj.y - old.y);
if (sPress or ((checkX != 0) and (checkY != 0))) {
if (_root.game_stop == false) {
obj.difX = (old.x - obj.x) / 2;
obj.difY = (obj.y - old.y) / 2;
}
if ((obj.difX > _root.maxspeed) && (obj.difX > 0)) {
obj.difX = _root.maxspeed;
} else if ((obj.difX < (_root.maxspeed * -1)) && (obj.difX < 0)) {
obj.difX = _root.maxspeed * -1;
}
if ((obj.difY > _root.maxspeed) && (obj.difY > 0)) {
obj.difY = _root.maxspeed;
} else if ((obj.difY < (_root.maxspeed * -1)) && (obj.difY < 0)) {
obj.difY = _root.maxspeed * -1;
}
}
if ((!sPress) or ((checkX == 0) and (checkY == 0))) {
obj.difX = old.difX - (old.difX / _root.downspeed);
obj.difY = old.difY - (old.difY / _root.downspeed);
}
obj.angY = _root.backVal(old.angY, obj.difY, 360);
obj.angX = _root.backVal2(old.angX, obj.difX, 360, obj.angY);
CoordPoint = launch3D("Point", obj.angY, obj.angX, d);
return(obj);
}
function launch3D(object3D, xAng, yAng, d) {
var xRad = ((Math.PI/180) * xAng);
var yRad = ((Math.PI/180) * yAng);
var sinX = Math.sin(xRad);
var cosX = Math.cos(xRad);
var sinY = Math.sin(yRad);
var cosY = Math.cos(yRad);
var source = eval (object3D);
var obj = new Array();
var u = source.length;
var i = 0;
while (i < u) {
obj[i] = new Object();
var tempz = ((source[i].z * cosY) - (source[i].x * sinY));
obj[i].z = (source[i].y * sinX) + (tempz * cosX);
obj[i].x = (source[i].z * sinY) + (source[i].x * cosY);
obj[i].y = (source[i].y * cosX) - (tempz * sinX);
var scalar = (1 / ((obj[i].z / d) + 1));
obj[i].x = (obj[i].x * scalar) + 0;
obj[i].y = (obj[i].y * scalar) + 0;
i = i + 1;
}
for (i in obj) {
}
return(obj);
}
function Triangle_Write5(TA, TB, TC, TD, TE, TN) {
trdepth = Math.floor(Math.max(Math.max(Math.max(Math.max(CoordPoint[TA].z, CoordPoint[TB].z), CoordPoint[TC].z), CoordPoint[TD].z), CoordPoint[TE].z)) + 250;
trdepth = trdepth + Math.floor(((((CoordPoint[TA].z + CoordPoint[TB].z) + CoordPoint[TC].z) + CoordPoint[TD].z) + CoordPoint[TE].z) / 5);
trdepth = 10000 - (trdepth * 10);
with (this["triangle" + TN]) {
clear();
linestyle(1, 0, 100);
if (this["triangle" + TN].cap == "bomb") {
beginFill(this.bombcolor, _root.Trance);
} else if (this["triangle" + TN].cap == "open") {
beginFill(this.opencolor, _root.Trance);
} else if (this["triangle" + TN].overfacer == true) {
beginFill(this.overcolor, _root.Trance);
} else {
beginFill(this.outcolor, _root.Trance);
}
moveTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
lineTo(this.CoordPoint[TB].x, this.CoordPoint[TB].y);
lineTo(this.CoordPoint[TC].x, this.CoordPoint[TC].y);
lineTo(this.CoordPoint[TD].x, this.CoordPoint[TD].y);
lineTo(this.CoordPoint[TE].x, this.CoordPoint[TE].y);
lineTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
swapDepths(trdepth + TN);
}
trmaxX = Math.floor(Math.max(Math.max(Math.max(Math.max(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x), CoordPoint[TD].x), CoordPoint[TE].x));
trminX = Math.floor(Math.min(Math.min(Math.min(Math.min(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x), CoordPoint[TD].x), CoordPoint[TE].x));
trmaxY = Math.floor(Math.max(Math.max(Math.max(Math.max(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y), CoordPoint[TD].y), CoordPoint[TE].y));
trminY = Math.floor(Math.min(Math.min(Math.min(Math.min(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y), CoordPoint[TD].y), CoordPoint[TE].y));
ptcenterX = (trmaxX + trminX) / 2;
ptcenterY = (trmaxY + trminY) / 2;
this["triangle" + TN].cou._x = ptcenterX;
this["triangle" + TN].cou._y = ptcenterY;
}
function Triangle_Write3(TA, TB, TC, TN) {
trdepth = Math.floor(Math.max(Math.max(CoordPoint[TA].z, CoordPoint[TB].z), CoordPoint[TC].z)) + 250;
trdepth = trdepth + Math.floor(((CoordPoint[TA].z + CoordPoint[TB].z) + CoordPoint[TC].z) / 3);
trdepth = 10000 - (trdepth * 10);
with (this["triangle" + TN]) {
clear();
linestyle(1, 0, 100);
if (this["triangle" + TN].cap == "bomb") {
beginFill(this.bombcolor, _root.Trance);
} else if (this["triangle" + TN].cap == "open") {
beginFill(this.opencolor, _root.Trance);
} else if (this["triangle" + TN].overfacer == true) {
beginFill(this.overcolor, _root.Trance);
} else {
beginFill(this.outcolor, _root.Trance);
}
moveTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
lineTo(this.CoordPoint[TB].x, this.CoordPoint[TB].y);
lineTo(this.CoordPoint[TC].x, this.CoordPoint[TC].y);
lineTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
swapDepths(trdepth + TN);
}
trmaxX = Math.floor(Math.max(Math.max(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x));
trminX = Math.floor(Math.min(Math.min(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x));
trmaxY = Math.floor(Math.max(Math.max(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y));
trminY = Math.floor(Math.min(Math.min(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y));
ptcenterX = (trmaxX + trminX) / 2;
ptcenterY = (trmaxY + trminY) / 2;
this["triangle" + TN].cou._x = ptcenterX;
this["triangle" + TN].cou._y = ptcenterY;
}
this.outcolor = "0xF3FFFF";
this.overcolor = "0xE6F2FF";
this.bombcolor = "0xFF3333";
this.opencolor = "0x777777";
this.SizeMid = 60;
this.SizeLar = 70;
this.SizeLow = 50;
this.nowSize = this.SizeMid;
this.st_bomcount = 7 - _root.cold_down;
this.bomcount = 0;
this.st_panel = 32;
this.joint0 = "13/14/15/16/17";
this.joint1 = "13/14/23/24/25";
this.joint2 = "13/15/25/26/27";
this.joint3 = "15/16/26/28/29";
this.joint4 = "16/17/28/30/32";
this.joint5 = "14/17/23/30/31";
this.joint6 = "18/19/20/21/22";
this.joint7 = "18/22/28/29/32";
this.joint8 = "18/19/30/31/32";
this.joint9 = "19/20/23/24/31";
this.joint11 = "20/21/24/25/27";
this.joint12 = "21/22/26/27/29";
this.joint13 = "0/1/2";
this.joint14 = "0/1/5";
this.joint15 = "0/2/3";
this.joint16 = "0/3/4";
this.joint17 = "0/4/5";
this.joint18 = "6/7/8";
this.joint19 = "6/8/9";
this.joint20 = "6/9/11";
this.joint21 = "6/11/12";
this.joint22 = "6/7/12";
this.joint23 = "1/5/9";
this.joint24 = "1/9/11";
this.joint25 = "1/2/11";
this.joint26 = "2/3/12";
this.joint27 = "2/11/12";
this.joint28 = "3/4/7";
this.joint29 = "3/7/12";
this.joint30 = "4/5/8";
this.joint31 = "5/8/9";
this.joint32 = "4/7/8";
bomcount = 0;
panel = 0;
clash_out = 40;
var d = 10000;
setPoint();
CoordPoint = _root.launch3D("point", 5, 5);
trai = 0;
while (trai <= this.st_panel) {
this.attachMovie("facer", "triangle" + trai, trai + 1);
trai++;
}
}
onClipEvent (enterFrame) {
if (bomb_out != true) {
tempFollow = followMatrix(tempFollow);
if ((_root.timermove == true) && (_root.gametime < 30000)) {
_root.gametime++;
}
} else {
_root.bomber(this.st_panel);
}
Triangle_Write5(0, 1, 2, 3, 4, 0);
Triangle_Write5(0, 5, 6, 7, 8, 1);
Triangle_Write5(1, 8, 9, 10, 11, 2);
Triangle_Write5(2, 11, 12, 13, 14, 3);
Triangle_Write5(3, 14, 15, 16, 17, 4);
Triangle_Write5(4, 17, 18, 19, 5, 5);
Triangle_Write5(20, 21, 22, 23, 24, 6);
Triangle_Write5(20, 25, 13, 15, 26, 7);
Triangle_Write5(21, 26, 16, 18, 27, 8);
Triangle_Write5(22, 27, 19, 6, 28, 9);
Triangle_Write5(23, 28, 7, 9, 29, 11);
Triangle_Write5(24, 29, 10, 12, 25, 12);
Triangle_Write3(0, 1, 8, 13);
Triangle_Write3(4, 0, 5, 14);
Triangle_Write3(1, 2, 11, 15);
Triangle_Write3(2, 3, 14, 16);
Triangle_Write3(3, 4, 17, 17);
Triangle_Write3(20, 21, 26, 18);
Triangle_Write3(21, 22, 27, 19);
Triangle_Write3(22, 23, 28, 20);
Triangle_Write3(23, 24, 29, 21);
Triangle_Write3(24, 20, 25, 22);
Triangle_Write3(5, 6, 19, 23);
Triangle_Write3(6, 7, 28, 24);
Triangle_Write3(7, 8, 9, 25);
Triangle_Write3(11, 12, 10, 26);
Triangle_Write3(9, 10, 29, 27);
Triangle_Write3(14, 15, 13, 28);
Triangle_Write3(13, 25, 12, 29);
Triangle_Write3(17, 18, 16, 30);
Triangle_Write3(18, 27, 19, 31);
Triangle_Write3(15, 26, 16, 32);
if (_root.menu_mode == "visible") {
_root.menu.menubase.timecounter = _root.gametime;
_root.menu.menubase.bombcounter = (_root.main.bomcount + "/") + _root.main.st_bomcount;
_root.menu.menubase.panelcounter = (_root.main.panel + "/") + _root.main.st_panel;
}
}
onClipEvent (mouseDown) {
sPress = true;
}
onClipEvent (mouseUp) {
sPress = false;
}
Frame 116
if (_root.Hdisp == false) {
_root.haikei._visible = false;
}
_root.cursor_mode = "open";
_root.cursor_disp.gotoAndStop("open");
_root.gametime = 0;
Frame 117
_root.game_stop = true;
if (_root.menu_mode == "hidden") {
_root.menu.gotoAndStop("hidden");
}
stop();
Instance of Symbol 10 MovieClip "main" in Frame 117
onClipEvent (load) {
function setPoint() {
Point = new Array();
gr = this.nowSize;
fa = 0.447213595499958;
fb = (1 - fa) / 2;
fc = (1 + fa) / 2;
fd = Math.sqrt(fb);
fe = Math.sqrt(fc);
ff = -1;
point[0] = _root.setObj(0, gr + (((gr * fa) - gr) / 3), ((2 * fa) * gr) / 3);
point[1] = _root.setObj((gr * fe) / 3, gr + (((gr * fa) - gr) / 3), (gr * fb) / 3);
point[2] = _root.setObj((fd * gr) / 3, gr + (((gr * fa) - gr) / 3), ((ff * fc) * gr) / 3);
point[3] = _root.setObj(((ff * fd) * gr) / 3, gr + (((fa * gr) - gr) / 3), ((ff * fc) * gr) / 3);
point[4] = _root.setObj(((ff * fe) * gr) / 3, gr + (((fa * gr) - gr) / 3), (gr * fb) / 3);
point[5] = _root.setObj(0, (gr * fa) + ((gr - (gr * fa)) / 3), ((2 * fa) * gr) + ((-((2 * fa) * gr)) / 3));
point[6] = _root.setObj((gr * fe) / 3, gr * fa, ((2 * fa) * gr) + (((gr * fb) - ((2 * fa) * gr)) / 3));
point[7] = _root.setObj(((ff * fe) * gr) / 3, gr * fa, ((2 * fa) * gr) + (((gr * fb) - ((2 * fa) * gr)) / 3));
point[8] = _root.setObj((fd * gr) / 3, (gr * fa) + ((((ff * fa) * gr) - (gr * fa)) / 3), ((2 * fa) * gr) + (((gr * fc) - ((2 * fa) * gr)) / 3));
point[9] = _root.setObj(((fd * ff) * gr) / 3, (gr * fa) + ((((fa * ff) * gr) - (gr * fa)) / 3), ((2 * fa) * gr) + (((fc * gr) - ((2 * fa) * gr)) / 3));
point[10] = _root.setObj((gr * fe) - ((gr * fe) / 3), (gr * fa) + ((gr - (gr * fa)) / 3), (gr * fb) - ((gr * fb) / 3));
point[11] = _root.setObj((gr * fe) - ((gr * fe) / 3), gr * fa, (gr * fb) + ((((2 * fa) * gr) - (gr * fb)) / 3));
point[12] = _root.setObj((gr * fe) + (((fd * gr) - (gr * fe)) / 3), gr * fa, (gr * fb) + ((((ff * fc) * gr) - (gr * fb)) / 3));
point[13] = _root.setObj((gr * fe) + (((fd * gr) - (gr * fe)) / 3), (gr * fa) + ((((ff * fa) * gr) - (gr * fa)) / 3), (gr * fb) + (((gr * fc) - (gr * fb)) / 3));
point[14] = _root.setObj(gr * fe, (gr * fa) + ((((fa * ff) * gr) - (gr * fa)) / 3), (gr * fb) + ((((ff * fb) * gr) - (gr * fb)) / 3));
point[15] = _root.setObj((fd * gr) - ((fd * gr) / 3), (gr * fa) + ((gr - (gr * fa)) / 3), ((ff * fc) * gr) - (((ff * fc) * gr) / 3));
point[16] = _root.setObj((fd * gr) + (((gr * fe) - (fd * gr)) / 3), gr * fa, ((ff * fc) * gr) + (((gr * fb) - ((ff * fc) * gr)) / 3));
point[17] = _root.setObj((fd * gr) + ((((ff * fd) * gr) - (fd * gr)) / 3), gr * fa, (ff * fc) * gr);
point[18] = _root.setObj((fd * gr) + (((fe * gr) - (fd * gr)) / 3), (gr * fa) + ((((fa * ff) * gr) - (gr * fa)) / 3), ((ff * fc) * gr) + ((((ff * fb) * gr) - ((ff * fc) * gr)) / 3));
point[19] = _root.setObj((fd * gr) - ((fd * gr) / 3), (gr * fa) + ((((fa * ff) * gr) - (gr * fa)) / 3), ((ff * fc) * gr) + (((((ff * 2) * fa) * gr) - ((ff * fc) * gr)) / 3));
point[20] = _root.setObj(((ff * fd) * gr) - (((ff * fd) * gr) / 3), (fa * gr) + ((gr - (fa * gr)) / 3), ((ff * fc) * gr) - (((ff * fc) * gr) / 3));
point[21] = _root.setObj(((ff * fd) * gr) + (((fd * gr) - ((ff * fd) * gr)) / 3), fa * gr, (ff * fc) * gr);
point[22] = _root.setObj(((ff * fd) * gr) + ((((ff * fe) * gr) - ((ff * fd) * gr)) / 3), (fa * gr) + (((gr * fa) - (fa * gr)) / 3), ((ff * fc) * gr) + (((gr * fb) - ((ff * fc) * gr)) / 3));
point[23] = _root.setObj(((ff * fd) * gr) - (((ff * fd) * gr) / 3), (fa * gr) + ((((fa * ff) * gr) - (fa * gr)) / 3), ((ff * fc) * gr) + (((((ff * 2) * fa) * gr) - ((ff * fc) * gr)) / 3));
point[24] = _root.setObj(((ff * fd) * gr) + ((((ff * fe) * gr) - ((ff * fd) * gr)) / 3), (fa * gr) + ((((ff * fa) * gr) - (fa * gr)) / 3), ((ff * fc) * gr) + ((((ff * fb) * gr) - ((ff * fc) * gr)) / 3));
point[25] = _root.setObj(((ff * fe) * gr) - (((ff * fe) * gr) / 3), (gr * fa) + ((gr - (gr * fa)) / 3), (gr * fb) - ((gr * fb) / 3));
point[26] = _root.setObj(((ff * fe) * gr) - (((ff * fe) * gr) / 3), (gr * fa) + (((gr * fa) - (gr * fa)) / 3), (gr * fb) + ((((2 * fa) * gr) - (gr * fb)) / 3));
point[27] = _root.setObj(((ff * fe) * gr) + ((((ff * fd) * gr) - ((ff * fe) * gr)) / 3), gr * fa, (gr * fb) + ((((ff * fc) * gr) - (gr * fb)) / 3));
point[28] = _root.setObj((ff * fe) * gr, (gr * fa) + ((((ff * fa) * gr) - (gr * fa)) / 3), (gr * fb) + ((((ff * fb) * gr) - (gr * fb)) / 3));
point[29] = _root.setObj(((ff * fe) * gr) + ((((fd * ff) * gr) - ((ff * fe) * gr)) / 3), (gr * fa) + ((((fa * ff) * gr) - (gr * fa)) / 3), (gr * fb) + (((fc * gr) - (gr * fb)) / 3));
point[30] = _root.setObj((fd * gr) - ((fd * gr) / 3), ((ff * fa) * gr) + (((gr * fa) - ((ff * fa) * gr)) / 3), (gr * fc) + ((((2 * fa) * gr) - (gr * fc)) / 3));
point[31] = _root.setObj((fd * gr) + (((gr * fe) - (fd * gr)) / 3), ((ff * fa) * gr) + (((gr * fa) - ((ff * fa) * gr)) / 3), (gr * fc) + (((gr * fb) - (gr * fc)) / 3));
point[32] = _root.setObj((fd * gr) + (((fe * gr) - (fd * gr)) / 3), (ff * fa) * gr, (gr * fc) + ((((ff * fb) * gr) - (gr * fc)) / 3));
point[33] = _root.setObj((fd * gr) + ((((fd * ff) * gr) - (fd * gr)) / 3), (ff * fa) * gr, gr * fc);
point[34] = _root.setObj((fd * gr) - ((fd * gr) / 3), ((ff * fa) * gr) + (((gr * ff) - ((ff * fa) * gr)) / 3), (gr * fc) - ((gr * fc) / 3));
point[35] = _root.setObj(fe * gr, ((fa * ff) * gr) + (((gr * fa) - ((fa * ff) * gr)) / 3), ((ff * fb) * gr) + (((gr * fb) - ((ff * fb) * gr)) / 3));
point[36] = _root.setObj((fe * gr) + (((fd * gr) - (fe * gr)) / 3), ((fa * ff) * gr) + (((gr * fa) - ((fa * ff) * gr)) / 3), ((ff * fb) * gr) + ((((ff * fc) * gr) - ((ff * fb) * gr)) / 3));
point[37] = _root.setObj((fe * gr) + (((fd * gr) - (fe * gr)) / 3), (fa * ff) * gr, ((ff * fb) * gr) + (((gr * fc) - ((ff * fb) * gr)) / 3));
point[38] = _root.setObj((fe * gr) - ((fe * gr) / 3), (fa * ff) * gr, ((ff * fb) * gr) + (((((ff * 2) * fa) * gr) - ((ff * fb) * gr)) / 3));
point[39] = _root.setObj((fe * gr) - ((fe * gr) / 3), ((fa * ff) * gr) + (((gr * ff) - ((fa * ff) * gr)) / 3), ((ff * fb) * gr) - (((ff * fb) * gr) / 3));
point[40] = _root.setObj((fd * gr) / 3, ((fa * ff) * gr) + (((gr * fa) - ((fa * ff) * gr)) / 3), (((ff * 2) * fa) * gr) + ((((ff * fc) * gr) - (((ff * 2) * fa) * gr)) / 3));
point[41] = _root.setObj(((ff * fd) * gr) / 3, ((fa * ff) * gr) + (((fa * gr) - ((fa * ff) * gr)) / 3), (((ff * 2) * fa) * gr) + ((((ff * fc) * gr) - (((ff * 2) * fa) * gr)) / 3));
point[42] = _root.setObj((fe * gr) / 3, (fa * ff) * gr, (((ff * 2) * fa) * gr) + ((((ff * fb) * gr) - (((ff * 2) * fa) * gr)) / 3));
point[43] = _root.setObj(((ff * fe) * gr) / 3, (fa * ff) * gr, (((ff * 2) * fa) * gr) + ((((ff * fb) * gr) - (((ff * 2) * fa) * gr)) / 3));
point[44] = _root.setObj(0, ((fa * ff) * gr) + (((gr * ff) - ((fa * ff) * gr)) / 3), (((ff * 2) * fa) * gr) - ((((ff * 2) * fa) * gr) / 3));
point[45] = _root.setObj(((ff * fe) * gr) + ((((ff * fd) * gr) - ((ff * fe) * gr)) / 3), ((ff * fa) * gr) + (((fa * gr) - ((ff * fa) * gr)) / 3), ((ff * fb) * gr) + ((((ff * fc) * gr) - ((ff * fb) * gr)) / 3));
point[46] = _root.setObj((ff * fe) * gr, ((ff * fa) * gr) + (((gr * fa) - ((ff * fa) * gr)) / 3), ((ff * fb) * gr) + (((gr * fb) - ((ff * fb) * gr)) / 3));
point[47] = _root.setObj(((ff * fe) * gr) - (((ff * fe) * gr) / 3), (ff * fa) * gr, ((ff * fb) * gr) + (((((ff * 2) * fa) * gr) - ((ff * fb) * gr)) / 3));
point[48] = _root.setObj(((ff * fe) * gr) + ((((fd * ff) * gr) - ((ff * fe) * gr)) / 3), (ff * fa) * gr, ((ff * fb) * gr) + (((fc * gr) - ((ff * fb) * gr)) / 3));
point[49] = _root.setObj(((ff * fe) * gr) - (((ff * fe) * gr) / 3), ((ff * fa) * gr) + (((gr * ff) - ((ff * fa) * gr)) / 3), ((ff * fb) * gr) - (((ff * fb) * gr) / 3));
point[50] = _root.setObj(((fd * ff) * gr) - (((fd * ff) * gr) / 3), ((fa * ff) * gr) + (((gr * fa) - ((fa * ff) * gr)) / 3), (fc * gr) + ((((2 * fa) * gr) - (fc * gr)) / 3));
point[51] = _root.setObj(((fd * ff) * gr) + ((((ff * fe) * gr) - ((fd * ff) * gr)) / 3), ((fa * ff) * gr) + (((gr * fa) - ((fa * ff) * gr)) / 3), (fc * gr) + (((gr * fb) - (fc * gr)) / 3));
point[52] = _root.setObj(((fd * ff) * gr) + (((fd * gr) - ((fd * ff) * gr)) / 3), (fa * ff) * gr, fc * gr);
point[53] = _root.setObj(((fd * ff) * gr) + ((((ff * fe) * gr) - ((fd * ff) * gr)) / 3), (fa * ff) * gr, (fc * gr) + ((((ff * fb) * gr) - (fc * gr)) / 3));
point[54] = _root.setObj(((fd * ff) * gr) - (((fd * ff) * gr) / 3), ((fa * ff) * gr) + (((gr * ff) - ((fa * ff) * gr)) / 3), (fc * gr) - ((fc * gr) / 3));
point[55] = _root.setObj((fd * gr) / 3, (gr * ff) + ((((ff * fa) * gr) - (gr * ff)) / 3), (gr * fc) / 3);
point[56] = _root.setObj((fe * gr) / 3, (gr * ff) + ((((fa * ff) * gr) - (gr * ff)) / 3), ((ff * fb) * gr) / 3);
point[57] = _root.setObj(0, (gr * ff) + ((((fa * ff) * gr) - (gr * ff)) / 3), (((ff * 2) * fa) * gr) / 3);
point[58] = _root.setObj(((ff * fe) * gr) / 3, (gr * ff) + ((((ff * fa) * gr) - (gr * ff)) / 3), ((ff * fb) * gr) / 3);
point[59] = _root.setObj(((fd * ff) * gr) / 3, (gr * ff) + ((((fa * ff) * gr) - (gr * ff)) / 3), (fc * gr) / 3);
}
function followMatrix(old) {
var old;
var obj = new Object();
obj.x = _root._xmouse;
obj.y = _root._ymouse;
if ((typeof(old.x) == "undefined") && (typeof(old.y) == "undefined")) {
old = new Object();
old.x = obj.x;
old.y = obj.y;
}
var checkX = (obj.x - old.x);
var checkY = (obj.y - old.y);
if (sPress or ((checkX != 0) and (checkY != 0))) {
if (_root.game_stop == false) {
obj.difX = (old.x - obj.x) / 2;
obj.difY = (obj.y - old.y) / 2;
}
if ((obj.difX > _root.maxspeed) && (obj.difX > 0)) {
obj.difX = _root.maxspeed;
} else if ((obj.difX < (_root.maxspeed * -1)) && (obj.difX < 0)) {
obj.difX = _root.maxspeed * -1;
}
if ((obj.difY > _root.maxspeed) && (obj.difY > 0)) {
obj.difY = _root.maxspeed;
} else if ((obj.difY < (_root.maxspeed * -1)) && (obj.difY < 0)) {
obj.difY = _root.maxspeed * -1;
}
}
if ((!sPress) or ((checkX == 0) and (checkY == 0))) {
obj.difX = old.difX - (old.difX / _root.downspeed);
obj.difY = old.difY - (old.difY / _root.downspeed);
}
obj.angY = _root.backVal(old.angY, obj.difY, 360);
obj.angX = _root.backVal2(old.angX, obj.difX, 360, obj.angY);
CoordPoint = launch3D("Point", obj.angY, obj.angX, d);
return(obj);
}
function launch3D(object3D, xAng, yAng, d) {
var xRad = ((Math.PI/180) * xAng);
var yRad = ((Math.PI/180) * yAng);
var sinX = Math.sin(xRad);
var cosX = Math.cos(xRad);
var sinY = Math.sin(yRad);
var cosY = Math.cos(yRad);
var source = eval (object3D);
var obj = new Array();
var u = source.length;
var i = 0;
while (i < u) {
obj[i] = new Object();
var tempz = ((source[i].z * cosY) - (source[i].x * sinY));
obj[i].z = (source[i].y * sinX) + (tempz * cosX);
obj[i].x = (source[i].z * sinY) + (source[i].x * cosY);
obj[i].y = (source[i].y * cosX) - (tempz * sinX);
var scalar = (1 / ((obj[i].z / d) + 1));
obj[i].x = (obj[i].x * scalar) + 0;
obj[i].y = (obj[i].y * scalar) + 0;
i = i + 1;
}
for (i in obj) {
}
return(obj);
}
function Triangle_Write5(TA, TB, TC, TD, TE, TN) {
trdepth = Math.floor(Math.max(Math.max(Math.max(Math.max(CoordPoint[TA].z, CoordPoint[TB].z), CoordPoint[TC].z), CoordPoint[TD].z), CoordPoint[TE].z)) + 250;
trdepth = trdepth + Math.floor(((((CoordPoint[TA].z + CoordPoint[TB].z) + CoordPoint[TC].z) + CoordPoint[TD].z) + CoordPoint[TE].z) / 5);
trdepth = 10000 - (trdepth * 10);
with (this["triangle" + TN]) {
clear();
linestyle(1, 0, 100);
if (this["triangle" + TN].cap == "bomb") {
beginFill(this.bombcolor, _root.Trance);
} else if (this["triangle" + TN].cap == "open") {
beginFill(this.opencolor, _root.Trance);
} else if (this["triangle" + TN].overfacer == true) {
beginFill(this.overcolor, _root.Trance);
} else {
beginFill(this.outcolor, _root.Trance);
}
moveTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
lineTo(this.CoordPoint[TB].x, this.CoordPoint[TB].y);
lineTo(this.CoordPoint[TC].x, this.CoordPoint[TC].y);
lineTo(this.CoordPoint[TD].x, this.CoordPoint[TD].y);
lineTo(this.CoordPoint[TE].x, this.CoordPoint[TE].y);
lineTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
swapDepths(trdepth + TN);
}
trmaxX = Math.floor(Math.max(Math.max(Math.max(Math.max(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x), CoordPoint[TD].x), CoordPoint[TE].x));
trminX = Math.floor(Math.min(Math.min(Math.min(Math.min(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x), CoordPoint[TD].x), CoordPoint[TE].x));
trmaxY = Math.floor(Math.max(Math.max(Math.max(Math.max(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y), CoordPoint[TD].y), CoordPoint[TE].y));
trminY = Math.floor(Math.min(Math.min(Math.min(Math.min(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y), CoordPoint[TD].y), CoordPoint[TE].y));
ptcenterX = (trmaxX + trminX) / 2;
ptcenterY = (trmaxY + trminY) / 2;
this["triangle" + TN].cou._x = ptcenterX;
this["triangle" + TN].cou._y = ptcenterY;
}
function Triangle_Write6(TA, TB, TC, TD, TE, TF, TN) {
trdepth = Math.floor(Math.max(Math.max(Math.max(Math.max(Math.max(CoordPoint[TA].z, CoordPoint[TB].z), CoordPoint[TC].z), CoordPoint[TD].z), CoordPoint[TE].z), CoordPoint[TF].z)) + 250;
trdepth = trdepth + Math.floor((((((CoordPoint[TA].z + CoordPoint[TB].z) + CoordPoint[TC].z) + CoordPoint[TD].z) + CoordPoint[TE].z) + CoordPoint[TF].z) / 6);
trdepth = 10000 - (trdepth * 10);
with (this["triangle" + TN]) {
clear();
linestyle(1, 0, 100);
if (this["triangle" + TN].cap == "bomb") {
beginFill(this.bombcolor, _root.Trance);
} else if (this["triangle" + TN].cap == "open") {
beginFill(this.opencolor, _root.Trance);
} else if (this["triangle" + TN].overfacer == true) {
beginFill(this.overcolor, _root.Trance);
} else {
beginFill(this.outcolor, _root.Trance);
}
moveTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
lineTo(this.CoordPoint[TB].x, this.CoordPoint[TB].y);
lineTo(this.CoordPoint[TC].x, this.CoordPoint[TC].y);
lineTo(this.CoordPoint[TD].x, this.CoordPoint[TD].y);
lineTo(this.CoordPoint[TE].x, this.CoordPoint[TE].y);
lineTo(this.CoordPoint[TF].x, this.CoordPoint[TF].y);
lineTo(this.CoordPoint[TA].x, this.CoordPoint[TA].y);
swapDepths(trdepth + TN);
}
trmaxX = Math.floor(Math.max(Math.max(Math.max(Math.max(Math.max(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x), CoordPoint[TD].x), CoordPoint[TE].x), CoordPoint[TF].x));
trminX = Math.floor(Math.min(Math.min(Math.min(Math.min(Math.min(CoordPoint[TA].x, CoordPoint[TB].x), CoordPoint[TC].x), CoordPoint[TD].x), CoordPoint[TE].x), CoordPoint[TF].x));
trmaxY = Math.floor(Math.max(Math.max(Math.max(Math.max(Math.max(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y), CoordPoint[TD].y), CoordPoint[TE].y), CoordPoint[TF].y));
trminY = Math.floor(Math.min(Math.min(Math.min(Math.min(Math.min(CoordPoint[TA].y, CoordPoint[TB].y), CoordPoint[TC].y), CoordPoint[TD].y), CoordPoint[TE].y), CoordPoint[TF].y));
ptcenterX = (trmaxX + trminX) / 2;
ptcenterY = (trmaxY + trminY) / 2;
this["triangle" + TN].cou._x = ptcenterX;
this["triangle" + TN].cou._y = ptcenterY;
}
this.outcolor = "0xFBF2EA";
this.overcolor = "0xF3E1D7";
this.bombcolor = "0xFF3333";
this.opencolor = "0x777777";
this.SizeMid = 100;
this.SizeLar = 120;
this.SizeLow = 80;
this.nowSize = this.SizeMid;
this.st_bomcount = 8 - _root.cold_down;
this.bomcount = 0;
this.st_panel = 32;
this.joint0 = "13/14/15/16/17";
this.joint1 = "13/17/18/25/26";
this.joint2 = "13/14/22/24/25";
this.joint3 = "14/15/22/28/29";
this.joint4 = "15/16/23/28/32";
this.joint5 = "16/17/23/26/27";
this.joint6 = "18/19/20/24/25";
this.joint7 = "20/22/24/29/30";
this.joint8 = "28/29/30/31/32";
this.joint9 = "21/23/27/31/32";
this.joint11 = "18/19/21/26/27";
this.joint12 = "19/20/21/30/31";
this.joint13 = "0/1/2/14/17/25";
this.joint14 = "0/2/3/13/15/22";
this.joint15 = "0/3/4/14/16/28";
this.joint16 = "0/4/5/15/17/23";
this.joint17 = "0/1/5/13/16/26";
this.joint18 = "1/6/11/19/25/26";
this.joint19 = "6/11/12/18/20/21";
this.joint20 = "6/7/12/19/24/30";
this.joint21 = "9/11/12/19/27/31";
this.joint22 = "2/3/7/14/24/29";
this.joint23 = "4/5/9/16/27/32";
this.joint24 = "2/6/7/20/22/25";
this.joint25 = "1/2/6/13/18/24";
this.joint26 = "1/5/11/17/18/27";
this.joint27 = "5/9/11/21/23/26";
this.joint28 = "3/4/8/15/29/32";
this.joint29 = "3/7/8/22/28/30";
this.joint30 = "7/8/12/20/29/31";
this.joint31 = "8/9/12/21/30/32";
this.joint32 = "4/8/9/23/28/31";
bomcount = 0;
panel = 0;
clash_out = 40;
var d = 10000;
setPoint();
CoordPoint = _root.launch3D("point", 5, 5);
trai = 0;
while (trai <= this.st_panel) {
this.attachMovie("facer", "triangle" + trai, trai + 1);
trai++;
}
}
onClipEvent (enterFrame) {
if (bomb_out != true) {
tempFollow = followMatrix(tempFollow);
if ((_root.timermove == true) && (_root.gametime < 30000)) {
_root.gametime++;
}
} else {
_root.bomber(this.st_panel);
}
Triangle_Write5(0, 1, 2, 3, 4, 0);
Triangle_Write5(5, 6, 8, 9, 7, 1);
Triangle_Write5(10, 11, 13, 14, 12, 2);
Triangle_Write5(15, 16, 18, 19, 17, 3);
Triangle_Write5(20, 21, 23, 24, 22, 4);
Triangle_Write5(26, 25, 27, 28, 29, 5);
Triangle_Write5(30, 31, 32, 34, 33, 6);
Triangle_Write5(36, 35, 37, 39, 38, 7);
Triangle_Write5(41, 40, 42, 44, 43, 8);
Triangle_Write5(46, 45, 47, 49, 48, 9);
Triangle_Write5(51, 50, 52, 54, 53, 11);
Triangle_Write5(55, 56, 57, 58, 59, 12);
Triangle_Write6(1, 0, 5, 6, 11, 10, 13);
Triangle_Write6(2, 1, 10, 12, 16, 15, 14);
Triangle_Write6(3, 2, 15, 17, 21, 20, 15);
Triangle_Write6(4, 3, 20, 22, 27, 25, 16);
Triangle_Write6(0, 4, 25, 26, 7, 5, 17);
Triangle_Write6(9, 8, 30, 33, 52, 50, 18);
Triangle_Write6(34, 33, 52, 54, 59, 55, 19);
Triangle_Write6(34, 32, 37, 39, 56, 55, 20);
Triangle_Write6(49, 48, 53, 54, 59, 58, 21);
Triangle_Write6(14, 12, 16, 18, 36, 35, 22);
Triangle_Write6(24, 22, 27, 28, 46, 45, 23);
Triangle_Write6(14, 13, 31, 32, 37, 35, 24);
Triangle_Write6(8, 6, 11, 13, 31, 30, 25);
Triangle_Write6(7, 9, 50, 51, 29, 26, 26);
Triangle_Write6(29, 51, 53, 48, 46, 28, 27);
Triangle_Write6(40, 41, 23, 21, 17, 19, 28);
Triangle_Write6(18, 19, 40, 42, 38, 36, 29);
Triangle_Write6(42, 44, 57, 56, 39, 38, 30);
Triangle_Write6(44, 43, 47, 49, 58, 57, 31);
Triangle_Write6(41, 43, 47, 45, 24, 23, 32);
if (_root.menu_mode == "visible") {
_root.menu.menubase.timecounter = _root.gametime;
_root.menu.menubase.bombcounter = (_root.main.bomcount + "/") + _root.main.st_bomcount;
_root.menu.menubase.panelcounter = (_root.main.panel + "/") + _root.main.st_panel;
}
}
onClipEvent (mouseDown) {
sPress = true;
}
onClipEvent (mouseUp) {
sPress = false;
}
Frame 128
_root.gotoAndPlay("mission" + _root.mission);
Frame 156
if (_root.skt != 1) {
_root.getURL("http://www.skt-products.com", "_blank");
}
Frame 165
_root.gotoAndStop("title");
Frame 166
_root.score = Math.floor(_root.score);
bgm1.stop();
bgm2.stop();
Instance of Symbol 10 MovieClip in Frame 295
onClipEvent (mouseDown) {
if (_root.score > _root.hiscore) {
_root.hiscore = _root.score;
_root.gotoAndStop("entry");
} else {
_root.gotoAndStop("title");
}
}
Frame 601
if (_root.hiscore < _root.score) {
_root.hiscore = _root.score;
_root.gotoAndStop("entry");
} else {
_root.gotoAndStop("title");
}
Frame 602
scoredisp = hiscore;
stop();
Instance of Symbol 10 MovieClip in Frame 602
onClipEvent (enterFrame) {
aa = this._parent.nameinput.length;
if (aa < 2) {
this._parent.sendBtn.enabled = false;
this._parent.sendBtn._alpha = 40;
} else {
this._parent.sendBtn.enabled = true;
this._parent.sendBtn._alpha = 100;
}
}
Frame 611
this.postman.name = this.name;
this.postman.score = this.hiscore;
this.postman.dif = this.all_miss_count;
this.postman.cginum = "bomb_sw";
this.postman.loadVariables("../cgi-bin/account.cgi", "GET");
Frame 668
_root.gotoAndStop("title");
Frame 673
stop();
Instance of Symbol 10 MovieClip in Frame 673
onClipEvent (mouseDown) {
_root.gotoAndStop(_root._currentframe + 1);
}
Frame 693
_root.gotoAndStop("title");
Frame 694
if (_root.menu_mode == "visible") {
this.check11.gotoAndStop("checked");
} else if (_root.menu_mode == "hidden") {
this.check12.gotoAndStop("checked");
}
if (_root.repair == true) {
this.check13.gotoAndStop("checked");
} else {
this.check14.gotoAndStop("checked");
}
if (_root.Rspeed == "low") {
this.check06.gotoAndStop("checked");
} else if (_root.Rspeed == "mid") {
this.check07.gotoAndStop("checked");
} else if (_root.Rspeed == "hi") {
this.check08.gotoAndStop("checked");
}
if (_root.Trance == 100) {
this.check03.gotoAndStop("checked");
} else if (_root.Trance == 90) {
this.check04.gotoAndStop("checked");
} else if (_root.Trance == 70) {
this.check05.gotoAndStop("checked");
}
if (_root.Hdisp == true) {
this.check09.gotoAndStop("checked");
} else {
this.check10.gotoAndStop("checked");
}
if (_root.volume == 100) {
this.check01.gotoAndStop("checked");
} else {
this.check02.gotoAndStop("checked");
}
Symbol 11 MovieClip [facer] Frame 1
this.myNum = this._name.substr(8, 2);
this.cou.count = "";
this.cap = "close";
this.useHandCursor = false;
this.onRollOver = function () {
if (this.cap == "close") {
this.overfacer = true;
_root.se1.start(0.1, 1);
}
};
this.onRollOut = function () {
if (this.cap == "close") {
this.overfacer = false;
}
};
this.onPress = function () {
if (_root.game_stop == false) {
if (((this.cap == "close") && (_root.cursor_mode != "lock")) && (this._name != "triangle10")) {
if (this._parent.panel == 0) {
_root.se2.start(0.05, 1);
_root.bombset(this._parent.st_bomcount, this._parent.st_panel, this.myNum);
}
if (_root.cursor_mode == "bomb") {
if (_root.main["bomb" + this.myNum] == true) {
_root.se3.start(0.05, 1);
_root.main.panel++;
_root.main.bomcount++;
this.cap = "bomb";
} else {
_root.se4.start(0, 1);
this._parent.bomb_out = true;
_root.timermove = false;
_root.miss_count++;
_root.all_miss_count++;
}
} else {
this.cou.count = _root.BombCheck(_root.main["joint" + this.myNum], this.myNum);
if (cou.count == 999) {
_root.se4.start(0, 1);
this._parent.bomb_out = true;
_root.timermove = false;
_root.miss_count++;
if (_root.miss_count < 4) {
_root.cold_down = 0;
} else if (_root.miss_count > 11) {
_root.cold_down = 3;
} else if (_root.miss_count < 8) {
_root.cold_down = 1;
} else {
_root.cold_down = 2;
}
_root.all_miss_count++;
} else if (cou.count == 0) {
cou._visible = false;
}
_root.se2.start(0.05, 1);
_root.main.panel++;
this.cap = "open";
}
if (_root.main.panel >= _root.main.st_panel) {
_root.scene_board.gotoAndPlay("completion");
_root.game_stop = true;
_root.timermove = false;
}
}
}
};
this.onReleaseOutside = function () {
if (this.cap == "close") {
this.overfacer = false;
}
};
Instance of Symbol 10 MovieClip in Symbol 11 MovieClip [facer] Frame 1
onClipEvent (keyDown) {
if (Key.isDown(39)) {
if (this._parent.cou._xscale == 100) {
this._parent.cou._xscale = 120;
this._parent.cou._yscale = 120;
_root.opt.check18.gotoAndStop("none");
_root.opt.check19.gotoAndStop("none");
_root.opt.check20.gotoAndStop("checked");
} else if (this._parent.cou._xscale == 80) {
this._parent.cou._xscale = 100;
this._parent.cou._yscale = 100;
_root.opt.check18.gotoAndStop("none");
_root.opt.check19.gotoAndStop("checked");
_root.opt.check20.gotoAndStop("none");
} else if (this._parent.cou._xscale == 120) {
this._parent.cou._xscale = 80;
this._parent.cou._yscale = 80;
_root.opt.check18.gotoAndStop("checked");
_root.opt.check19.gotoAndStop("none");
_root.opt.check20.gotoAndStop("none");
}
}
if (Key.isDown(37)) {
if (this._parent.cou._xscale == 100) {
this._parent.cou._xscale = 80;
this._parent.cou._yscale = 80;
_root.opt.check18.gotoAndStop("checked");
_root.opt.check19.gotoAndStop("none");
_root.opt.check20.gotoAndStop("none");
} else if (this._parent.cou._xscale == 80) {
this._parent.cou._xscale = 120;
this._parent.cou._yscale = 120;
_root.opt.check18.gotoAndStop("none");
_root.opt.check19.gotoAndStop("none");
_root.opt.check20.gotoAndStop("checked");
} else if (this._parent.cou._xscale == 120) {
this._parent.cou._xscale = 100;
this._parent.cou._yscale = 100;
_root.opt.check18.gotoAndStop("none");
_root.opt.check19.gotoAndStop("checked");
_root.opt.check20.gotoAndStop("none");
}
}
}
Symbol 24 MovieClip Frame 9
stop();
Symbol 26 Button
on (press) {
_root.mission = 1;
_root.score = 0;
_root.area_score = 0;
_root.miss_count = 0;
_root.all_miss_count = 0;
_root.gametime = 0;
_root.cold_down = 0;
_root.gotoAndPlay("mission1");
_root.bgm1.start(0, 1);
}
Symbol 29 Button
on (press) {
_root.gotoAndStop("option");
}
Symbol 32 Button
on (press) {
_root.gotoAndPlay("howtoplay");
}
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 15
_root.menu_mode = "hidden";
this.gotoAndStop("hidden");
Symbol 60 MovieClip Frame 20
stop();
Symbol 60 MovieClip Frame 35
_root.menu_mode = "visible";
this.gotoAndStop("visible");
Symbol 64 Button
on (press) {
_root.game_stop = true;
this.gotoAndPlay("open");
}
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 11
stop();
Symbol 98 Button
on (press) {
this.gotoAndPlay("close");
}
Symbol 100 Button
on (press) {
_root.Trance = 100;
this.check03.gotoAndStop("checked");
this.check04.gotoAndStop("none");
this.check05.gotoAndStop("none");
}
Symbol 101 Button
on (press) {
_root.Trance = 90;
this.check03.gotoAndStop("none");
this.check04.gotoAndStop("checked");
this.check05.gotoAndStop("none");
}
Symbol 102 Button
on (press) {
_root.Trance = 70;
this.check03.gotoAndStop("none");
this.check04.gotoAndStop("none");
this.check05.gotoAndStop("checked");
}
Symbol 103 Button
on (press) {
_root.Rspeed = "low";
_root.maxspeed = 20;
_root.opt.check06.gotoAndStop("checked");
_root.opt.check07.gotoAndStop("none");
_root.opt.check08.gotoAndStop("none");
}
Symbol 104 Button
on (press) {
_root.Rspeed = "mid";
_root.maxspeed = 30;
_root.opt.check06.gotoAndStop("none");
_root.opt.check07.gotoAndStop("checked");
_root.opt.check08.gotoAndStop("none");
}
Symbol 105 Button
on (press) {
_root.Rspeed = "hi";
_root.maxspeed = 50;
_root.opt.check06.gotoAndStop("none");
_root.opt.check07.gotoAndStop("none");
_root.opt.check08.gotoAndStop("checked");
}
Symbol 106 Button
on (press) {
_root.Hdisp = true;
_root.haikei._visible = true;
_root.opt.check09.gotoAndStop("checked");
_root.opt.check10.gotoAndStop("none");
}
Symbol 107 Button
on (press) {
_root.Hdisp = false;
_root.haikei._visible = false;
_root.opt.check09.gotoAndStop("none");
_root.opt.check10.gotoAndStop("checked");
}
Symbol 108 Button
on (press) {
_root.menu.gotoAndPlay("hidden_out");
_root.menu_mode = "none";
_root.opt.check11.gotoAndStop("checked");
_root.opt.check12.gotoAndStop("none");
}
Symbol 109 Button
on (press) {
_root.menu.gotoAndPlay("visible_out");
_root.menu_mode = "none";
_root.opt.check11.gotoAndStop("none");
_root.opt.check12.gotoAndStop("checked");
}
Symbol 110 Button
on (press) {
_root.repair = true;
_root.opt.check13.gotoAndStop("checked");
_root.opt.check14.gotoAndStop("none");
}
Symbol 111 Button
on (press) {
_root.repair = false;
_root.opt.check13.gotoAndStop("none");
_root.opt.check14.gotoAndStop("checked");
}
Symbol 112 Button
on (press) {
_root.main.nowSize = _root.main.SizeLar;
_root.main.setpoint();
_root.opt.check15.gotoAndStop("none");
_root.opt.check16.gotoAndStop("none");
_root.opt.check17.gotoAndStop("checked");
}
Symbol 113 Button
on (press) {
_root.main.nowSize = _root.main.SizeMid;
_root.main.setpoint();
_root.opt.check15.gotoAndStop("none");
_root.opt.check16.gotoAndStop("checked");
_root.opt.check17.gotoAndStop("none");
}
Symbol 114 Button
on (press) {
_root.main.nowSize = _root.main.SizeLow;
_root.main.setpoint();
_root.opt.check15.gotoAndStop("checked");
_root.opt.check16.gotoAndStop("none");
_root.opt.check17.gotoAndStop("none");
}
Symbol 115 Button
on (press) {
ei = 0;
while (ei <= _root.main.st_panel) {
if (ei != 10) {
_root.main["triangle" + ei].cou._xscale = 80;
_root.main["triangle" + ei].cou._yscale = 80;
}
ei++;
}
_root.opt.check18.gotoAndStop("checked");
_root.opt.check19.gotoAndStop("none");
_root.opt.check20.gotoAndStop("none");
}
Symbol 116 Button
on (press) {
ei = 0;
while (ei <= _root.main.st_panel) {
if (ei != 10) {
_root.main["triangle" + ei].cou._xscale = 100;
_root.main["triangle" + ei].cou._yscale = 100;
}
ei++;
}
_root.opt.check18.gotoAndStop("none");
_root.opt.check19.gotoAndStop("checked");
_root.opt.check20.gotoAndStop("none");
}
Symbol 117 Button
on (press) {
ei = 0;
while (ei <= _root.main.st_panel) {
if (ei != 10) {
_root.main["triangle" + ei].cou._xscale = 120;
_root.main["triangle" + ei].cou._yscale = 120;
}
ei++;
}
_root.opt.check18.gotoAndStop("none");
_root.opt.check19.gotoAndStop("none");
_root.opt.check20.gotoAndStop("checked");
}
Symbol 124 Button
on (press) {
bgm1.stop();
bgm2.stop();
_root.gotoAndStop("title");
}
Symbol 125 Button
on (press) {
_root.volume = 100;
this.check01.gotoAndStop("checked");
this.check02.gotoAndStop("none");
_root.bgm1.setVolume(_root.volume);
}
Symbol 126 Button
on (press) {
_root.volume = 0;
this.check01.gotoAndStop("none");
this.check02.gotoAndStop("checked");
_root.bgm1.setVolume(_root.volume);
}
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 15
this.gotoAndStop("visible");
Symbol 127 MovieClip Frame 20
if (_root.menu_mode == "visible") {
this.check11.gotoAndStop("checked");
} else if (_root.menu_mode == "hidden") {
this.check12.gotoAndStop("checked");
}
if (_root.repair == true) {
this.check13.gotoAndStop("checked");
} else {
this.check14.gotoAndStop("checked");
}
if (_root.Rspeed == "low") {
this.check06.gotoAndStop("checked");
} else if (_root.Rspeed == "mid") {
this.check07.gotoAndStop("checked");
} else if (_root.Rspeed == "hi") {
this.check08.gotoAndStop("checked");
}
if (_root.Trance == 100) {
this.check03.gotoAndStop("checked");
} else if (_root.Trance == 90) {
this.check04.gotoAndStop("checked");
} else if (_root.Trance == 70) {
this.check05.gotoAndStop("checked");
}
if (_root.Hdisp == true) {
this.check09.gotoAndStop("checked");
} else {
this.check10.gotoAndStop("checked");
}
if (_root.main.nowSize == _root.main.SizeMid) {
this.check16.gotoAndStop("checked");
} else if (_root.main.nowSize == _root.main.SizeLar) {
this.check17.gotoAndStop("checked");
} else if (_root.main.nowSize == _root.main.SizeLow) {
this.check15.gotoAndStop("checked");
}
if (_root.main.triangle1.cou._xscale == 80) {
this.check18.gotoAndStop("checked");
} else if (_root.main.triangle1.cou._xscale == 100) {
this.check19.gotoAndStop("checked");
} else if (_root.main.triangle1.cou._xscale == 120) {
this.check20.gotoAndStop("checked");
}
if (_root.volume == 100) {
this.check01.gotoAndStop("checked");
} else {
this.check02.gotoAndStop("checked");
}
stop();
Symbol 127 MovieClip Frame 35
_root.game_stop = false;
this.gotoAndStop("hidden");
Symbol 145 MovieClip Frame 1
if (_root.mission == 1) {
stop();
} else {
this.gotoAndStop(_root.mission);
}
Instance of Symbol 10 MovieClip in Symbol 159 MovieClip Frame 2
onClipEvent (mouseDown) {
this._parent.gotoAndPlay("cut1");
}
Symbol 159 MovieClip Frame 44
_root.game_stop = false;
_root.timermove = true;
stop();
Instance of Symbol 10 MovieClip in Symbol 159 MovieClip Frame 46
onClipEvent (mouseDown) {
_root.gotoAndPlay("jump");
}
Symbol 159 MovieClip Frame 83
_root.gotoAndPlay("jump");
Symbol 159 MovieClip Frame 127
_root.area_score = 30000 - _root.gametime;
switch (_root.miss_count) {
case 0 :
_root.area_score = _root.area_score * 1.3;
break;
case 1 :
_root.area_score = _root.area_score * 1.2;
break;
case 2 :
_root.area_score = _root.area_score * 1.1;
}
_root.area_score = _root.area_score + ((3 - _root.cold_down) * 1000);
_root.score = _root.score + _root.area_score;
_root.miss_count = 0;
_root.area_score = 0;
_root.cold_down = 0;
_root.mission++;
if (_root.mission >= 12) {
_root.gotoAndPlay("clear");
} else {
_root.gotoAndPlay("mission" + _root.mission);
}
Symbol 162 MovieClip Frame 1
this.stopDrag();
stop();
Symbol 162 MovieClip Frame 6
this.startDrag(true);
Symbol 162 MovieClip Frame 15
this.startDrag(true);
Symbol 198 MovieClip Frame 5
stop();
Symbol 273 Button
on (press) {
_root.name = _root.nameinput;
_root.gotoAndPlay("sousin");
}
Symbol 279 Button
on (press) {
_root.gotoAndStop("title");
}
Symbol 289 Button
on (press) {
_root.gotoAndStop("title");
}
Symbol 386 Button
on (press) {
_root.Rspeed = "low";
_root.maxspeed = 20;
this.check06.gotoAndStop("checked");
this.check07.gotoAndStop("none");
this.check08.gotoAndStop("none");
}
Symbol 387 Button
on (press) {
_root.Rspeed = "mid";
_root.maxspeed = 30;
this.check06.gotoAndStop("none");
this.check07.gotoAndStop("checked");
this.check08.gotoAndStop("none");
}
Symbol 388 Button
on (press) {
_root.Rspeed = "hi";
_root.maxspeed = 50;
this.check06.gotoAndStop("none");
this.check07.gotoAndStop("none");
this.check08.gotoAndStop("checked");
}
Symbol 389 Button
on (press) {
_root.Hdisp = true;
this.check09.gotoAndStop("checked");
this.check10.gotoAndStop("none");
}
Symbol 390 Button
on (press) {
_root.Hdisp = false;
this.check09.gotoAndStop("none");
this.check10.gotoAndStop("checked");
}
Symbol 391 Button
on (press) {
_root.menu_mode = "visible";
this.check11.gotoAndStop("checked");
this.check12.gotoAndStop("none");
}
Symbol 392 Button
on (press) {
_root.menu_mode = "hidden";
this.check11.gotoAndStop("none");
this.check12.gotoAndStop("checked");
}
Symbol 393 Button
on (press) {
_root.repair = true;
this.check13.gotoAndStop("checked");
this.check14.gotoAndStop("none");
}
on (rollOver) {
_root.guide_msg.gotoAndStop("st2");
}
on (rollOut) {
_root.guide_msg.gotoAndStop("st1");
}
Symbol 394 Button
on (press) {
_root.repair = false;
this.check13.gotoAndStop("none");
this.check14.gotoAndStop("checked");
}
on (rollOver) {
_root.guide_msg.gotoAndStop("st2");
}
on (rollOut) {
_root.guide_msg.gotoAndStop("st1");
}
Symbol 397 MovieClip Frame 1
stop();