Frame 1
magm = 0;
namae = "";
okuta = 0;
scoresend = 0;
stop();
Instance of Symbol 163 MovieClip "onryo" in Frame 1
onClipEvent (load) {
var min = 0;
var max = 100;
if (value == undefined) {
value = 70;
}
dead = new Sound();
hits = new Sound();
mokori = new Sound();
bgm = new Sound();
dead.attachSound("dead");
hits.attachSound("hits");
mokori.attachSound("mokori");
bgm.attachSound("bgm");
var floor = true;
var change = function () {
dead.setVolume(value);
hits.setVolume(value);
mokori.setVolume(value);
bgm.setVolume(value);
};
change();
}
Instance of Symbol 171 MovieClip "tenko" in Frame 2
onClipEvent (load) {
nando = 0;
mdm = 0;
nc = 0;
ts = [1, 0, 0, 0, 0, 0, 0, 0, 0];
tp = 0;
ds = 1;
hai = 1;
hc2 = 1600;
time = 0;
count1 = 120;
max = 0;
mag = 3.99;
magk = 0;
var haic = (new flash.geom.ColorTransform(0.4, 0.4, 0.4, 1, 22, 88, 22, 0));
_root.map.transform.colorTransform = haic;
_root.attachMovie("startm", "startmm", 1000);
_root.startmm._x = 6.2;
_root.startmm._y = 85;
}
onClipEvent (enterFrame) {
count1++;
time++;
hc2++;
if (hai == 1) {
haic.redMultiplier = haic.redMultiplier + 0.000125;
haic.greenMultiplier = haic.greenMultiplier + 0.000125;
haic.blueMultiplier = haic.blueMultiplier + 0.000125;
haic.redOffset = haic.redOffset + 0.00625;
haic.greenOffset = haic.greenOffset + 0.025;
haic.blueOffset = haic.blueOffset + 0.00625;
} else {
haic.redMultiplier = haic.redMultiplier - 0.000125;
haic.greenMultiplier = haic.greenMultiplier - 0.000125;
haic.blueMultiplier = haic.blueMultiplier - 0.000125;
haic.redOffset = haic.redOffset - 0.00625;
haic.greenOffset = haic.greenOffset - 0.025;
haic.blueOffset = haic.blueOffset - 0.00625;
}
_root.haiku = haic.redMultiplier;
_root.haiku2 = (hc2 + " ") + time;
if (hc2 > 3200) {
hc2 = 0;
if (hai == 1) {
hai = 0;
} else {
hai = 1;
}
}
_root.map.transform.colorTransform = haic;
if (time > 800) {
if (nando < 28) {
nando = nando + 2;
}
ds = ds + 0.01;
time = 0;
nc++;
switch (nc) {
case 1 :
case 2 :
case 3 :
do {
tp = random(6) + 2;
} while (ts[tp] == 1);
ts[tp] = 1;
break;
case 4 :
tp = 1;
ts[1] = 1;
break;
case 5 :
case 6 :
case 7 :
do {
tp = random(6) + 2;
} while (ts[tp] == 1);
ts[tp] = 1;
break;
case 8 :
tp = 8;
break;
case 9 :
tp = 9;
}
}
if ((count1 > (50 - nando)) and (nc != 10)) {
mag = mag + 0.01;
count1 = 0;
ids = 0;
while (_root.emap["e" + ids]._x != undefined) {
ids++;
}
if (max < ids) {
max = ids;
}
_root.emap.attachMovie("enemy", "e" + ids, ids + 10000);
_root.emap["e" + ids].death = 0;
switch (tp) {
case 0 :
_root.emap["e" + ids].ch = random(8) + 1;
break;
case 1 :
_root.emap["e" + ids].ch = random(7) + 9;
break;
case 2 :
_root.emap["e" + ids].ch = random(7) + 16;
break;
case 3 :
_root.emap["e" + ids].ch = random(8) + 23;
break;
case 4 :
_root.emap["e" + ids].ch = random(6) + 31;
break;
case 5 :
_root.emap["e" + ids].ch = random(6) + 37;
break;
case 6 :
_root.emap["e" + ids].ch = random(7) + 43;
break;
case 7 :
_root.emap["e" + ids].ch = random(6) + 50;
break;
case 8 :
_root.emap["e" + ids].ch = random(7) + 56;
break;
case 9 :
_root.emap["e" + ids].ch = 63;
break;
default :
_root.emap["e" + ids].ch = random(62) + 1;
}
k1 = (Math.random() * Math.PI) * 2;
if (nc == 9) {
nc = 10;
_root.emap["e" + ids]._x = (Math.cos(k1) * 840) + 275;
_root.emap["e" + ids]._y = (Math.sin(k1) * 840) + 225;
} else {
_root.emap["e" + ids]._x = (Math.cos(k1) * 390) + 275;
_root.emap["e" + ids]._y = (Math.sin(k1) * 390) + 225;
}
switch (_root.emap["e" + ids].ch) {
case 5 :
case 9 :
case 10 :
case 11 :
case 28 :
case 34 :
case 38 :
case 49 :
case 45 :
case 50 :
case 55 :
case 62 :
case 63 :
_root.emap["e" + ids].mv = 2;
break;
case 6 :
case 15 :
case 17 :
case 19 :
case 33 :
case 41 :
case 48 :
case 59 :
_root.emap["e" + ids].mv = 1;
break;
case 18 :
case 43 :
case 46 :
_root.emap["e" + ids].mv = 2.5;
break;
default :
_root.emap["e" + ids].mv = 1.5;
}
switch (_root.emap["e" + ids].ch) {
case 6 :
case 14 :
case 17 :
case 19 :
case 21 :
case 26 :
case 29 :
case 35 :
case 36 :
case 40 :
case 41 :
case 42 :
case 48 :
case 54 :
case 55 :
case 56 :
case 59 :
case 60 :
case 61 :
case 62 :
_root.emap["e" + ids].hp = 2;
break;
case 15 :
case 63 :
_root.emap["e" + ids].hp = 3;
break;
default :
_root.emap["e" + ids].hp = 1;
}
_root.emap["e" + ids].gotoAndStop(_root.emap["e" + ids].ch);
}
if (this._currentframe < 6) {
ids = 0;
while (max >= ids) {
if (_root.emap["e" + ids]._x != undefined) {
if (_root.emap["e" + ids].death == 0) {
if ((Math.abs(_root.emap["e" + ids]._x - _x) < 16) and (Math.abs(_root.emap["e" + ids]._y - _y) < 16)) {
this.gotoAndPlay(6);
_root.magm = mag;
_root.namae = "";
_root.okuta = 0;
_root.scoresend = 0;
_root.onryo.dead.start();
}
k1 = Math.atan2(_y - _root.emap["e" + ids]._y, _x - _root.emap["e" + ids]._x);
_root.emap["e" + ids]._x = _root.emap["e" + ids]._x + (Math.cos(k1) * _root.emap["e" + ids].mv);
_root.emap["e" + ids]._y = _root.emap["e" + ids]._y + (Math.sin(k1) * _root.emap["e" + ids].mv);
} else if (_root.emap["e" + ids].hp <= 0) {
if (_root.emap["e" + ids].ch == 63) {
nc = 11;
tp = 10;
}
_root.emap["e" + ids].removeMovieClip();
} else if (_root.emap["e" + ids].death == 14) {
_root.emap["e" + ids].hp--;
_root.emap["e" + ids].death--;
_root.onryo.hits.start();
} else {
if ((_root.emap["e" + ids].death % 2) == 0) {
_root.emap["e" + ids]._alpha = 50;
} else {
_root.emap["e" + ids]._alpha = 100;
}
_root.emap["e" + ids].death--;
}
}
ids++;
}
}
if (magk < mag) {
magk = magk + ((mag - magk) / 30);
magk = Math.round((magk * 100) + 1) / 100;
}
_root.mag1 = "M" + magk;
if (_root.mag1.substr(-2, 1) == ".") {
_root.mag1 = _root.mag1 + "0";
} else if (_root.mag1.substr(-3, 1) != ".") {
_root.mag1 = _root.mag1 + ".00";
}
_root.mag2 = _root.mag1;
if (mdm == 1) {
if (_root.geji._xscale == 100) {
_root.geji._xscale = 0;
mag = mag + 0.05;
this.play();
ids = 0;
while (_root.map["m" + ids]._x != undefined) {
ids++;
}
_root.map.attachMovie("moko", "m" + ids, ids);
_root.map["m" + ids].k1 = Math.atan2(_root.mato._y - _y, _root.mato._x - _x);
_root.map["m" + ids]._x = (Math.cos(_root.map["m" + ids].k1) * 48) + 275;
_root.map["m" + ids]._y = (Math.sin(_root.map["m" + ids].k1) * 48) + 225;
}
}
}
onClipEvent (mouseDown) {
mdm = 1;
}
onClipEvent (mouseUp) {
mdm = 0;
}
Instance of Symbol 174 MovieClip "geji" in Frame 2
onClipEvent (load) {
this._xscale = 0;
}
onClipEvent (enterFrame) {
if (this._xscale < 100) {
this._xscale = this._xscale + (4.8 / _root.tenko.ds);
if (this._xscale >= 100) {
this.play();
}
} else {
this._xscale = 100;
}
}
Instance of Symbol 176 MovieClip "mato" in Frame 2
onClipEvent (enterFrame) {
if ((Math.abs(_root._xmouse - _x) < 5.5) and (Math.abs(_root._ymouse - _y) < 5.5)) {
_x = _root._xmouse;
_y = _root._ymouse;
} else {
k1 = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
_x = (_x + (Math.cos(k1) * 5));
_y = (_y + (Math.sin(k1) * 5));
}
}
Instance of Symbol 157 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.scoresend == 1) {
_root.scoresend = 2;
System.useCodepage = true;
name = _root.namae;
score = Number(Math.round(_root.magm * 100) / 100);
shori = "rankingwrite";
this.loadVariables("http://maru9.saikyou.biz/tenko/ranking.cgi", "POST");
System.useCodepage = false;
}
}
onClipEvent (data) {
_root.okuta = 1;
shori = "";
_root.namae = "\u9001\u4FE1\u3057\u307E\u3057\u305F";
getURL ("http://maru9.saikyou.biz/tenko/ranking.cgi", "_blank");
}
Symbol 131 MovieClip [enemy] Frame 1
stop();
Symbol 141 MovieClip [moko] Frame 2
_root.onryo.mokori.start();
Instance of Symbol 136 MovieClip in Symbol 141 MovieClip [moko] Frame 2
onClipEvent (enterFrame) {
ids = 0;
while (_root.tenko.max >= ids) {
if (((_root.emap["e" + ids].death == 0) and (Math.abs(_root.emap["e" + ids]._x - _parent._x) < 48)) and (Math.abs(_root.emap["e" + ids]._y - _parent._y) < 36)) {
_root.emap["e" + ids].death = 15;
k1 = Math.atan2(_root.tenko._y - _root.emap["e" + ids]._y, _root.tenko._x - _root.emap["e" + ids]._x);
_root.emap["e" + ids]._x = _root.emap["e" + ids]._x - (Math.cos(k1) * 10);
_root.emap["e" + ids]._y = _root.emap["e" + ids]._y - (Math.sin(k1) * 10);
}
ids++;
}
}
Symbol 141 MovieClip [moko] Frame 5
if ((((_x < 550) and (_x > 0)) and (_y > 0)) and (_y < 450)) {
ids = 0;
while (_root.map["m" + ids]._x != undefined) {
ids++;
}
_root.map.attachMovie("moko", "m" + ids, ids);
_root.map["m" + ids].k1 = k1;
_root.map["m" + ids]._x = _x + (Math.cos(k1) * 48);
_root.map["m" + ids]._y = _y + (Math.sin(k1) * 48);
}
Symbol 141 MovieClip [moko] Frame 10
this.removeMovieClip();
Symbol 153 MovieClip [startm] Frame 2
if (_root.tenko.magk < 2.5) {
gotoAndPlay (1);
}
Symbol 153 MovieClip [startm] Frame 47
this.removeMovieClip();
Symbol 159 MovieClip Frame 2
if (random(25) == 1) {
gotoAndStop (4);
}
Symbol 159 MovieClip Frame 3
stop();
Instance of Symbol 157 MovieClip in Symbol 159 MovieClip Frame 3
onClipEvent (mouseUp) {
stopAllSounds();
_root.onryo.bgm.start(0, 65535);
_root.gotoAndStop(2);
}
Symbol 163 MovieClip Frame 1
var cen = (((max - min) / 2) + min);
cursor._x = ((value - min) / (max - min)) * 60;
var update = function () {
value = ((max - min) * (cursor._x / 60)) + min;
};
Instance of Symbol 162 MovieClip "cursor" in Symbol 163 MovieClip Frame 1
onClipEvent (mouseDown) {
drag = false;
if (_parent._xmouse < -5) {
} else if (_parent._xmouse > 65) {
} else if (_parent._ymouse < -5) {
} else if (_parent._ymouse > 5) {
} else {
this._x = _parent._xmouse;
if (this._x < 0) {
this._x = 0;
}
if (this._x > 60) {
this._x = 60;
}
this.startDrag(true, 0, 0, 60, 0);
_parent.update();
_parent.change();
drag = true;
}
}
onClipEvent (mouseMove) {
if (drag) {
_parent.update();
_parent.change();
}
}
onClipEvent (mouseUp) {
drag = false;
this.stopDrag();
_parent.update();
_parent.change();
}
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 5
gotoAndStop (1);
Symbol 171 MovieClip Frame 16
_root.gotoAndStop(3);
Symbol 174 MovieClip Frame 1
stop();
Symbol 188 Button
on (release) {
if (okuta == 0) {
if (namae.length > 14) {
namae = "\u540D\u524D\u304C\u306A\u304C\u3044\u3067\u3059";
} else if (scoresend == 0) {
scoresend = 1;
}
} else {
namae = "\u65E2\u306B\u9001\u4FE1\u3055\u308C\u3066\u3044\u307E\u3059";
}
}
Symbol 191 Button
on (release) {
stopAllSounds();
gotoAndStop (1);
}