Frame 1
function randomInt(maxNum) {
var _local1 = Math.random() * maxNum;
if (_local1 == 0) {
_local1 = 1;
} else {
_local1 = Math.ceil(_local1);
}
return(_local1);
}
function stopTimer(trg, sec) {
var _local1 = this;
target = trg;
target.stop();
target.createEmptyMovieClip("mcTimer", 100000);
target.mcTimer.timeOut = sec;
target.mcTimer.startTime = getTimer();
target.mcTimer.onEnterFrame = function () {
var _local1 = this;
if (getTimer() > (_local1.startTime + _local1.timeOut)) {
_local1._parent.play();
_local1.removeMovieClip();
}
};
}
function talk(trg, delay, msg) {
var _local1 = this;
target = trg;
target.stop();
target.msg = "";
target.createEmptyMovieClip("mcTalk", 100001);
target.mcTalk.msg = msg;
target.mcTalk.msgleng = target.mcTalk.msg.length;
target.mcTalk.i = 0;
target.mcTalk.delay = delay;
target.mcTalk.timeOut = 0;
target.mcTalk.startTime = getTimer();
target.mcTalk.onEnterFrame = function () {
var _local1 = this;
if (getTimer() > (_local1.startTime + _local1.timeOut)) {
_local1.mchara = _local1.msg.charAt(_local1.i);
_local1._parent.msg = _local1._parent.msg + _local1.mchara;
_local1.i++;
if (_local1.i < _local1.msgleng) {
_local1.timeOut = _local1.delay;
_local1.startTime = getTimer();
} else {
_local1._parent.play();
_local1.removeMovieClip();
}
}
};
}
function endP(X, Y) {
var _local1 = _root;
_local1.attachMovie("endPanel", "endPanel", 100002);
_local1.endPanel._x = X;
_local1.endPanel._y = Y;
}
function rankP(X, Y) {
var _local1 = _root;
_local1.attachMovie("rankPanel", "rankPanel", 100002);
_local1.rankPanel._x = X;
_local1.rankPanel._y = Y;
}
function helpP(X, Y) {
var _local1 = _root;
_local1.attachMovie("helpPanel", "helpPanel", 100002);
_local1.helpPanel._x = X;
_local1.helpPanel._y = Y;
}
function clearP(X, Y) {
var _local1 = _root;
_local1.attachMovie("clearPanel", "clearPanel", 100003);
_local1.clearPanel._x = X;
_local1.clearPanel._y = Y;
}
function allDelete() {
var _local1 = _root;
_local1.panelSet.removeMovieClip();
_local1.pSet.removeMovieClip();
_local1.kanibody.removeMovieClip();
_local1.hasami1.removeMovieClip();
_local1.hasami2.removeMovieClip();
i = 1;
while (i <= eNum) {
_local1["e" + i].removeMovieClip();
i++;
}
i = 1;
while (i <= iNum) {
_local1["i" + i].removeMovieClip();
i++;
}
}
function makeKani() {
var _local1 = _root;
_local1.attachMovie("kanibody", "kanibody", 1000);
_local1.kanibody._x = 210;
_local1.attachMovie("hasami", "hasami1", 1001);
_local1.hasami1._x = 100;
_local1.attachMovie("hasami", "hasami2", 1002);
_local1.hasami2._x = 320;
}
function deleteKani() {
var _local1 = _root;
_local1.kanibody.down();
_local1.hasami1.down();
_local1.hasami2.down();
}
function makeP() {
var _local1 = _root;
_local1.attachMovie("pSet", "pSet", 9999);
_local1.pSet._x = 210;
_local1.pSet._y = 0;
}
function makeI() {
newName2 = "i" + iNum;
_root.attachMovie("itemSet", newName2, iNum + 500);
iNum++;
}
function makeE(shu) {
newName = "e" + eNum;
mcName = shu;
_root.attachMovie(mcName, newName, eNum);
eNum++;
}
function gameOver() {
var _local1 = _root;
_local1.rootSound.stop();
_local1.badSound.start();
_local1.pSet.removeMovieClip();
delete _local1.kanibody.onEnterFrame;
delete _local1.hasami1.onEnterFrame;
delete _local1.hasami2.onEnterFrame;
i = 1;
while (i <= eNum) {
delete _local1["e" + i].onEnterFrame;
i++;
}
i = 1;
while (i <= iNum) {
delete _local1["i" + i].onEnterFrame;
i++;
}
delete _local1.land1.onEnterFrame;
delete _local1.land2.onEnterFrame;
delete _local1.shadow1.onEnterFrame;
delete _local1.shadow2.onEnterFrame;
_local1.endP(210, 210);
}
function levelUP() {
var _local1 = _root;
trace("levelUP!!");
_local1.levelNum++;
if (_local1.levelNum == 4) {
makeE("kurageSet");
} else if (_local1.levelNum == 8) {
makeE("kurageSet");
} else if (_local1.levelNum == 12) {
makeE("ikaSet");
} else if (_local1.levelNum == 16) {
makeE("ikaSet");
} else if (_local1.levelNum == 20) {
makeE("kurageSet");
} else if (_local1.levelNum == 24) {
makeE("fishSet");
} else if (_local1.levelNum == 28) {
makeE("ikaSet");
}
if ((_local1.levelNum % 5) == 0) {
makeKani();
timeOut = 30000;
startTime = getTimer();
this.onEnterFrame = function () {
if (getTimer() > (startTime + timeOut)) {
deleteKani();
}
};
}
}
System.useCodePage = true;
score = 0;
levelNum = 1;
count = 0;
oxygen = 100;
damage = 0;
dataID = "kaitei";
defurl = "http://hpcgi2.nifty.com/game-cgi/ranking_pc/score.cgi?";
allDelete();
iNum = 1;
eNum = 1;
rootSound = new Sound(_root);
rootSound.attachSound("bgm");
rootSound.setVolume(100);
_root.rootSound.stop();
badSound = new Sound(_root);
badSound.attachSound("bad");
badSound.setVolume(100);
_root.badSound.stop();
stop();
Frame 2
_root.rootSound.start(0, 10000);
makeP();
eCount = 1;
makeI();
makeE("fishSet");
timeOut = 5000;
startTime = getTimer();
this.onEnterFrame = function () {
if (getTimer() > (startTime + timeOut)) {
eCount++;
if (eCount == 4) {
delete this.onEnterFrame;
} else if (eCount == 3) {
makeI();
startTime = getTimer();
} else {
makeE("fishSet");
makeI();
startTime = getTimer();
}
}
};
_root.attachMovie("panelSet", "panelSet", 10000);
stop();
Symbol 14 MovieClip [clearPanel] Frame 1
point = 0;
Symbol 14 MovieClip [clearPanel] Frame 7
_root.stopTimer(this, 2000);
Symbol 14 MovieClip [clearPanel] Frame 8
pinSound = new Sound(this);
pinSound.attachSound("pin");
pinSound.setVolume(100);
pinSound.start(0, 1000);
this.onEnterFrame = function () {
var _local1 = _root;
var _local2 = this;
_local1.timeBar._width--;
_local2.point = _local2.point + 10;
_local1.score = _local1.score + 10;
if (_local1.timeBar._width < 1) {
_local1.timeBar._visible = false;
pinSound.stop();
_local2.play();
delete _local2.onEnterFrame;
}
};
stop();
Symbol 14 MovieClip [clearPanel] Frame 9
_root.stopTimer(this, 3000);
Symbol 14 MovieClip [clearPanel] Frame 15
_root.stageNum++;
_root.gotoAndPlay("next");
this.removeMovieClip();
Symbol 20 MovieClip [unit] Frame 1
this.rank = _root["rank" + this.ID];
this.name = _root["name" + this.ID];
this.score = _root["score" + this.ID];
Symbol 30 Button
on (press) {
_root.gotoAndStop("opening");
this.removeMovieClip();
}
Symbol 36 Button
on (release) {
_parent.pageNum--;
_parent.play();
}
Symbol 37 MovieClip Frame 1
this.onEnterFrame = function () {
if (_parent.pageNum == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
};
Symbol 38 Button
on (release) {
_parent.pageNum++;
_parent.play();
}
Symbol 39 MovieClip Frame 1
this.onEnterFrame = function () {
if (_parent.pageNum == 10) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
};
Symbol 44 MovieClip Frame 1
this.page = this.pageNum + "/10";
sNum = ((this.pageNum - 1) * 10) + 1;
mNum = sNum + 9;
pNum = 1;
i = sNum;
while (i <= mNum) {
newName = "unit" + i;
trace(newName);
this.attachMovie("unit", newName, i);
this[newName]._y = 20 * pNum;
this[newName].ID = i;
pNum++;
i++;
}
stop();
Symbol 44 MovieClip Frame 2
i = 1;
while (i <= 100) {
this["unit" + i].removeMovieClip();
i++;
}
Symbol 45 MovieClip [rankPanel] Frame 1
this.guard.useHandCursor = false;
Symbol 45 MovieClip [rankPanel] Frame 11
function loaded(result) {
loadRank(result);
}
function loadRank(list) {
var _local1 = _root;
var _local3 = list.split(newline);
_local1.rankNum = _local3.length - 1;
_local1.rank = 0;
_local1.preScore = "";
i = 0;
while (i <= (_local1.rankNum - 1)) {
var _local2 = _local3[i].split("\t");
_local1["name" + (i + 1)] = _local2[0];
_local1["score" + (i + 1)] = _local2[1];
if (_local1["score" + (i + 1)] == _local1.preScore) {
_local1["rank" + (i + 1)] = _local1.rank;
} else {
_local1.rank++;
_local1["rank" + (i + 1)] = _local1.rank;
}
_local1.preScore = _local1["score" + (i + 1)];
check = (((((i + "\u9806\u4F4D\uFF1A") + _local1["rank" + (i + 1)]) + "\u3000/\u3000\u540D\u524D\uFF1A") + _local1["name" + (i + 1)]) + "\u3000/\u3000\u30B9\u30B3\u30A2\uFF1A") + _local1["score" + (i + 1)];
trace(check);
i++;
}
this.play();
}
var SendData = new LoadVars();
var LoadData = new LoadVars();
SendData.command = "view";
SendData.id = _root.dataID;
conecturl = _root.defurl + Math.random(65536);
SendData.sendAndLoad(conecturl, LoadData, "POST");
LoadData.onData = loaded;
stop();
Symbol 45 MovieClip [rankPanel] Frame 12
stop();
Instance of Symbol 44 MovieClip in Symbol 45 MovieClip [rankPanel] Frame 12
onClipEvent (load) {
this.pageNum = 1;
}
Symbol 46 Button
on (press) {
_root.gotoAndStop("opening");
this.removeMovieClip();
}
Symbol 59 MovieClip [helpPanel] Frame 1
this.guard.useHandCursor = false;
Symbol 59 MovieClip [helpPanel] Frame 12
stop();
Symbol 60 Button
on (press) {
play();
}
Symbol 62 Button
on (press) {
_root.gotoAndStop("opening");
_parent.removeMovieClip();
}
Symbol 67 Button
on (press) {
if (this.name != "") {
play();
}
}
Symbol 77 MovieClip Frame 1
score = _root.score;
stop();
Symbol 77 MovieClip Frame 2
name = "";
stop();
Symbol 77 MovieClip Frame 3
play();
Symbol 77 MovieClip Frame 5
function loaded(result) {
_root.err = result;
play();
}
var SendData = new LoadVars();
var LoadData = new LoadVars();
SendData.command = "save";
SendData.name = this.name;
SendData.score = this.score;
SendData.id = _root.dataID;
conecturl = _root.defurl + Math.random(65536);
SendData.sendAndLoad(conecturl, LoadData, "POST");
LoadData.onData = loaded;
stop();
Symbol 77 MovieClip Frame 10
this.err = _root.err;
stop();
Symbol 78 MovieClip [endPanel] Frame 1
this.guard.useHandCursor = false;
Symbol 78 MovieClip [endPanel] Frame 11
stop();
Symbol 89 MovieClip [bomb] Frame 10
stop();
Symbol 93 MovieClip Frame 5
stop();
Symbol 100 MovieClip Frame 1
function startPika() {
flg = 0;
this.onEnterFrame = function () {
if (flg == 0) {
flg = 1;
colObj.setTransform(cNew);
} else {
flg = 0;
colObj.setTransform(cDef);
}
};
}
function stopPika() {
colObj.setTransform(cDef);
delete this.onEnterFrame;
}
colObj = new Color(_parent);
cDef = colObj.getTransform();
cNew = new Object();
cNew.ra = 50;
cNew.ga = 50;
cNew.ba = 50;
cNew.aa = 100;
cNew.rb = 128;
cNew.gb = 0;
cNew.bb = 0;
cNew.ab = 0;
Symbol 101 MovieClip [pSet] Frame 1
function jet() {
r = _rotation;
r = (r * Math.PI) / 180;
ySpeed = ySpeed - (Math.cos(r) / 5);
xSpeed = xSpeed + (Math.sin(r) / 5);
}
function pMove() {
ySpeed = ySpeed + 0.05;
xSpeed = xSpeed * 0.95;
if (ySpeed > 2) {
ySpeed = 2;
} else if (ySpeed < -2) {
ySpeed = -2;
}
if (xSpeed > 3) {
xSpeed = 3;
} else if (xSpeed < -3) {
xSpeed = -3;
}
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
_y = 0;
} else if (_y > 420) {
_y = 420;
}
if (_x < 35) {
_x = 35;
damage("R", 3);
} else if (_x > 385) {
_x = 385;
damage("L", 3);
}
}
function engine() {
flg = 0;
this.onEnterFrame = function () {
if (Key.isDown(39)) {
_rotation = (_rotation + 5);
_xscale = 100;
} else if (Key.isDown(37)) {
_rotation = (_rotation - 5);
_xscale = 100;
}
if (Key.isDown(32)) {
babbleSet._visible = true;
jet();
} else {
babbleSet._visible = false;
}
pMove();
};
}
function damage(dir, num) {
var _local1 = num;
var _local2 = this;
var _local3 = _root;
dSound.start();
flg = 1;
babbleSet._visible = false;
_local2.colorEngine.startPika();
if (dir == "R") {
xSpeed = _local1;
} else {
xSpeed = -_local1;
}
_local3.damage = _local3.damage + (_local1 * 3);
if (_local3.damage > 100) {
_local3.damage = 100;
}
_local2.onEnterFrame = function () {
_rotation = (_rotation + (xSpeed * 4));
if (Math.abs(xSpeed) < 0.5) {
this.colorEngine.stopPika();
engine();
} else {
pMove();
}
};
}
function bomb() {
trace("bomb");
gotoAndStop (2);
timeOut = 300;
startTime = getTimer();
this.onEnterFrame = function () {
if (getTimer() > (startTime + timeOut)) {
_root.gameOver();
delete this.onEnterFrame;
}
};
}
function bad() {
flg = 1;
this.onEnterFrame = function () {
ySpeed = ySpeed + 0.1;
if (ySpeed > 3) {
ySpeed = 3;
}
_y = (_y + ySpeed);
_rotation = (_rotation + (ySpeed * 3));
if (_y > 450) {
_root.gameOver();
delete this.onEnterFrame;
}
};
}
ySpeed = 0;
xSpeed = 0;
flg = 0;
dSound = new Sound(this);
dSound.attachSound("damage");
dSound.setVolume(100);
dSound.stop();
engine();
stop();
Symbol 101 MovieClip [pSet] Frame 2
stop();
Symbol 105 MovieClip [fishSet] Frame 1
function speed() {
var _local1 = _root;
if (_local1.randomInt(2) == 1) {
xSpeed = (_local1.randomInt(20) / 10) + (_local1.levelNum / 20);
} else {
xSpeed = ((-_local1.randomInt(20)) / 10) - (_local1.levelNum / 20);
}
}
function init() {
_y = 450;
_x = (70 + _root.randomInt(280));
speed();
mainEngine();
}
function mainEngine() {
var _local1 = _root;
var _local2 = this;
_local2.onEnterFrame = function () {
var _local1 = _root;
if (this.hitTest(_local1.pSet.hp) && (_local1.pSet.flg == 0)) {
if (_local1.pSet._x > _x) {
_local1.pSet.damage("R", 2);
} else {
_local1.pSet.damage("L", 2);
}
}
_y = (_y - 1);
_x = (_x + xSpeed);
if (_x > 350) {
_x = 350;
xSpeed = -xSpeed;
} else if (_x < 70) {
_x = 70;
xSpeed = -xSpeed;
} else if (_y < -50) {
this.init();
}
if (_local1.randomInt(30) == 1) {
speed();
}
if (xSpeed > 0) {
_xscale = -100;
} else {
_xscale = 100;
}
};
}
_x = 0;
_y = -100;
init();
Symbol 109 MovieClip [kurageSet] Frame 1
function speed() {
opY = (_y - 20) - _root.randomInt(20);
opX = (_x + _root.randomInt(80)) - 40;
if (opX < 70) {
opX = 70;
} else if (opX > 350) {
opX = 350;
}
}
function init() {
_y = 450;
_x = (70 + _root.randomInt(280));
speed();
mainEngine();
}
function mainEngine() {
var _local1 = _root;
this.onEnterFrame = function () {
var _local1 = _root;
if (this.hitTest(_local1.pSet.hp) && (_local1.pSet.flg == 0)) {
if (_local1.pSet._x > _x) {
_local1.pSet.damage("R", 2);
} else {
_local1.pSet.damage("L", 2);
}
}
saX = opX - _x;
saY = opY - _y;
if ((Math.abs(saX) < 2) && (Math.abs(saY) < 2)) {
speed();
} else {
_x = (_x + (saX / 10));
_y = (_y + (saY / 10));
if (_y < -30) {
init();
}
}
};
}
_x = 0;
_y = -100;
init();
Symbol 113 MovieClip [ikaSet] Frame 1
function speed() {
ySpeed = 0;
}
function init() {
_y = 450;
_x = (70 + _root.randomInt(280));
speed();
mainEngine();
}
function mainEngine() {
var _local1 = _root;
var _local2 = this;
_local2.onEnterFrame = function () {
var _local1 = _root;
if (this.hitTest(_local1.pSet.hp) && (_local1.pSet.flg == 0)) {
if (_local1.pSet._x > _x) {
_local1.pSet.damage("R", 3);
} else {
_local1.pSet.damage("L", 3);
}
}
ySpeed = ySpeed - 0.1;
_y = (_y + ySpeed);
if (_y < -50) {
this.init();
}
};
}
_x = 0;
_y = -100;
init();
Symbol 116 MovieClip [kanibody] Frame 1
function up() {
this.onEnterFrame = function () {
saY = 390 - _y;
if (saY < 0) {
_y = (_y-1);
} else {
delete this.onEnterFrame;
}
};
}
function down() {
var _local1 = this;
_local1.onEnterFrame = function () {
saY = 520 - _y;
if (saY > 0) {
_y = (_y+1);
} else {
this.removeMovieClip();
delete this.onEnterFrame;
}
};
}
_y = 520;
up();
Symbol 120 MovieClip [hasami] Frame 1
function up() {
flg = 0;
this.onEnterFrame = function () {
saY = 430 - _y;
if (saY < 0) {
_y = (_y-1);
} else {
this.wait();
}
};
}
function down() {
var _local1 = this;
flg = 1;
_local1.onEnterFrame = function () {
saY = 560 - _y;
if (saY > 0) {
_y = (_y+1);
} else {
this.removeMovieClip();
delete this.onEnterFrame;
}
};
}
function wait() {
var _local1 = this;
var _local2 = _root;
_local1.gotoAndStop("wait");
_local1.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
radian = Math.atan2(_local2.pSet._y - _local1._y, _local2.pSet._x - _local1._x);
kakudo = radian / (Math.PI/180);
_local1._rotation = _local1._rotation + (((kakudo + 90) - _rotation) / 10);
if (_local2.randomInt(150) == 1) {
attack();
}
};
}
function attack() {
this.gotoAndPlay("at");
delete this.onEnterFrame;
}
_y = 560;
up();
Instance of Symbol 99 MovieClip "hp" in Symbol 120 MovieClip [hasami] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.pSet.hp) && (_root.pSet.flg == 0)) {
if (_root.randomInt(2) == 1) {
_root.pSet.ySpeed = -3;
_root.pSet.damage("R", 3);
} else {
_root.pSet.ySpeed = -3;
_root.pSet.damage("L", 3);
}
}
}
Symbol 120 MovieClip [hasami] Frame 35
_root.stopTimer(this, 1000);
Symbol 120 MovieClip [hasami] Frame 100
if (flg == 0) {
wait();
} else {
stop();
}
Symbol 125 MovieClip Frame 1
this.onEnterFrame = function () {
var _local1 = this;
sa = _root.oxygen - _local1.bar._width;
if (sa > 0) {
_local1.bar._width++;
} else if (sa < 0) {
_local1.bar._width--;
_local1.bar._width = Math.round(_local1.bar._width);
if (_local1.bar._width <= 0) {
_root.pSet.bad();
delete _local1.onEnterFrame;
}
}
};
Symbol 127 MovieClip Frame 1
this.onEnterFrame = function () {
var _local1 = this;
sa = _root.damage - _local1.bar._width;
sa = Math.floor(sa);
if (sa > 0) {
_local1.bar._width++;
_local1.bar._width = Math.round(_local1.bar._width);
trace(_local1.bar._width);
if (_local1.bar._width >= 100) {
_root.pSet.bomb();
delete _local1.onEnterFrame;
}
} else if (sa < 0) {
_local1.bar._width--;
}
};
Symbol 131 MovieClip [panelSet] Frame 1
_x = 210;
_y = 17.5;
this.onEnterFrame = function () {
this.score = _root.score;
};
Symbol 132 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 143 MovieClip [itemSet] Frame 1
function speed() {
ySpeed = ((-_root.random(20)) / 10) - 1;
}
function init() {
var _local1 = this;
_local1.txt._alpha = 0;
_local1.item._alpha = 100;
_y = 450;
_x = (70 + _root.randomInt(280));
rnd = _root.randomInt(10);
if (((rnd == 1) || (rnd == 2)) || (rnd == 3)) {
_local1.txt.gotoAndStop(2);
_local1.item.gotoAndStop(2);
} else if ((rnd == 4) || (rnd == 5)) {
_local1.txt.gotoAndStop(3);
_local1.item.gotoAndStop(3);
} else {
_local1.txt.gotoAndStop(1);
_local1.item.gotoAndStop(1);
}
speed();
mainEngine();
}
function mainEngine() {
var _local1 = this;
var _local2 = _root;
_local1.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if ((_local1.hp.hitTest(_local2.pSet.hp) && (_local2.pSet.flg == 0)) && (_local1.txt._alpha == 0)) {
iSound.start();
_local1.txt._alpha = 100;
_local1.item._alpha = 0;
if (_local1.item._currentframe == 1) {
_local2.score = _local2.score + 300;
} else if (_local1.item._currentframe == 2) {
_local2.oxygen = _local2.oxygen + 20;
if (_local2.oxygen > 100) {
_local2.oxygen = 100;
}
} else if (_local1.item._currentframe == 3) {
_local2.damage = _local2.damage - 30;
if (_local2.damage < 0) {
_local2.damage = 0;
}
}
timeOut = 2000;
startTime = getTimer();
_local1.onEnterFrame = function () {
if (getTimer() > (startTime + timeOut)) {
init();
}
};
}
_y = (_y + ySpeed);
if (_y < -50) {
_local1.init();
}
};
}
_x = 0;
_y = -100;
iSound = new Sound(this);
iSound.attachSound("getsound");
iSound.setVolume(100);
iSound.stop();
init();
Instance of Symbol 132 MovieClip "item" in Symbol 143 MovieClip [itemSet] Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 6);
}
Symbol 151 Button
on (release) {
play();
}
Symbol 153 Button
on (release) {
_root.helpP(210, 210);
}
Symbol 155 Button
on (release) {
_root.rankP(210, 210);
}
Symbol 158 MovieClip Frame 1
this.onEnterFrame = function () {
_y = (_y - 0.5);
if (_y <= -473) {
_y = 473;
}
};
Symbol 159 MovieClip Frame 1
this.onEnterFrame = function () {
var _local1 = _root;
_y = (_y - 1);
if (_y <= -480) {
_y = 480;
}
_local1.count++;
if ((_local1.count % 10) == 0) {
_local1.score++;
}
if ((_local1.count % 50) == 0) {
_local1.oxygen--;
if (_local1.oxygen < 0) {
_local1.oxygen = 0;
}
}
if (_local1.count > 1000) {
_local1.count = 0;
_local1.levelUP();
}
};