Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("5be89837", this, 10301, true);
_global.crapX = 0;
_global.crapY = 0;
_global.myMusicPlayer = new Music();
_global.SoundManager = new SoundPlayer();
_global.musicOn = true;
_global.soundOn = true;
_global.hotKey_up = 87;
_global.hotKey_down = 83;
_global.hotKey_left = 65;
_global.hotKey_right = 68;
_global.gotHere = false;
_global.timeToFade = false;
_global.tested = false;
_global.changedKeys = false;
_global.userScore = 0;
stop();
Instance of Symbol 13 MovieClip in Frame 1
onClipEvent (load) {
myFlag = 0;
Counter = -1;
totalFileSize = _root.getBytesTotal();
startBytes = _root.getBytesLoaded();
}
onClipEvent (enterFrame) {
if (Counter == -1) {
bytesLoaded = _root.getBytesLoaded();
amountLoaded = bytesLoaded / totalFileSize;
myPercentLoaded = int(100 * amountLoaded);
_root.load_txt.text = myPercentLoaded + "%";
_root.loaderBar.gotoAndStop(myPercentLoaded);
if ((amountLoaded >= 1) && (myFlag == 0)) {
myFlag = 1;
Counter = 30;
}
} else if (Counter == 0) {
okToPlay = true;
siteURL = "http://www.herointeractive.com";
siteURL2 = "http://herointeractive.com";
if ((_url.substr(0, siteURL.length) == siteURL) || (_url.substr(0, siteURL2.length) == siteURL2)) {
okToPlay = true;
}
if (okToPlay) {
_root.gotoAndPlay("loadSounds");
}
} else {
Counter--;
}
}
Frame 4
stop();
Instance of Symbol 13 MovieClip in Frame 4
onClipEvent (load) {
}
Frame 7
function Setup() {
arrMenuTriangles = new Array();
minCounter = 20;
maxCounter = 30;
counter = 0;
triangleDepth = 1000;
}
function Run() {
ControlMenu();
}
function ControlMenu() {
var _local5;
var _local4;
var _local3 = new Object({x:_xmouse, y:_ymouse});
_root.navi.detectIt.boxer.globalToLocal(_local3);
if (_root.navi.detectIt.boxer.hitTest(_xmouse, _ymouse, true)) {
_local5 = _local3.y;
_local4 = Math.round(_local5);
_root.navi.detectIt.gotoAndStop(_local4 + 46);
} else if (_global.gotHere) {
_root.navi.detectIt.gotoAndStop(46);
}
}
var minCounter;
var maxCounter;
var fallingSpeed;
var counter;
var triangleDepth;
var arrMenuTriangles;
stop();
Instance of Symbol 13 MovieClip in Frame 7
onClipEvent (load) {
_root.Setup();
if (_global.musicOn == true) {
_global.myMusicPlayer.SetTrack("title");
_global.myMusicPlayer.SetMaxVolume(100);
_global.myMusicPlayer.PlayWithCrossFade(4);
}
}
onClipEvent (enterFrame) {
_root.ControlMenu();
_global.myMusicPlayer.RunPlayer();
}
Frame 8
stop();
Frame 9
function OutputValue(fieldName, keyCode) {
var textRef = eval ("this." + fieldName);
var returnValue = "";
switch (keyCode) {
case 8 :
returnValue = "BACKSPACE";
break;
case 20 :
returnValue = "CAPSLOCK";
break;
case 17 :
returnValue = "CONTROL";
break;
case 46 :
returnValue = "DELETE";
break;
case 40 :
returnValue = "DOWN";
break;
case 35 :
returnValue = "END";
break;
case 13 :
returnValue = "ENTER";
break;
case 27 :
returnValue = "ESCAPE";
break;
case 36 :
returnValue = "HOME";
break;
case 45 :
returnValue = "INSERT";
break;
case 37 :
returnValue = "LEFT";
break;
case 34 :
returnValue = "PGDN";
break;
case 33 :
returnValue = "PGUP";
break;
case 39 :
returnValue = "RIGHT";
break;
case 16 :
returnValue = "SHIFT";
break;
case 32 :
returnValue = "SPACE";
break;
case 9 :
returnValue = "TAB";
break;
case 38 :
returnValue = "UP";
break;
case 186 :
returnValue = ";";
break;
case 187 :
returnValue = "=";
break;
case 189 :
returnValue = "-";
break;
case 191 :
returnValue = "/";
break;
case 192 :
returnValue = "`";
break;
case 219 :
returnValue = "[";
break;
case 220 :
returnValue = "\\";
break;
case 221 :
returnValue = "]";
break;
case 222 :
returnValue = "'";
break;
case 188 :
returnValue = ",";
break;
case 190 :
returnValue = ".";
break;
case 96 :
returnValue = "NUMPAD 0";
break;
case 97 :
returnValue = "NUMPAD 1";
break;
case 98 :
returnValue = "NUMPAD 2";
break;
case 99 :
returnValue = "NUMPAD 3";
break;
case 100 :
returnValue = "NUMPAD 4";
break;
case 101 :
returnValue = "NUMPAD 5";
break;
case 102 :
returnValue = "NUMPAD 6";
break;
case 103 :
returnValue = "NUMPAD 7";
break;
case 104 :
returnValue = "NUMPAD 8";
break;
case 105 :
returnValue = "NUMPAD 9";
break;
case 106 :
returnValue = "MULTIPLY";
break;
case 107 :
returnValue = "ADD";
break;
case 109 :
returnValue = "SUBTRACT";
break;
case 110 :
returnValue = "DECIMAL";
break;
case 111 :
returnValue = "DIVIDE";
break;
default :
returnValue = chr(keyCode);
returnValue.toUpperCase();
}
textRef.text = returnValue;
}
function UnselectOthers(myName) {
if (myName != "upClip") {
this.upClip.gotoAndStop(1);
} else {
hasFocus = myName;
}
if (myName != "downClip") {
this.downClip.gotoAndStop(1);
} else {
hasFocus = myName;
}
if (myName != "leftClip") {
this.leftClip.gotoAndStop(1);
} else {
hasFocus = myName;
}
if (myName != "rightClip") {
this.rightClip.gotoAndStop(1);
} else {
hasFocus = myName;
}
}
stop();
var hasFocus = "";
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (hasFocus == "upClip") {
_global.hotKey_up = Key.getCode();
OutputValue("up_txt", _global.hotKey_up);
_global.changedKeys = true;
}
if (hasFocus == "downClip") {
_global.hotKey_down = Key.getCode();
OutputValue("down_txt", _global.hotKey_down);
_global.changedKeys = true;
}
if (hasFocus == "leftClip") {
_global.hotKey_left = Key.getCode();
OutputValue("left_txt", _global.hotKey_left);
_global.changedKeys = true;
}
if (hasFocus == "rightClip") {
_global.hotKey_right = Key.getCode();
OutputValue("right_txt", _global.hotKey_right);
_global.changedKeys = true;
}
};
Key.addListener(keyListener);
OutputValue("up_txt", _global.hotKey_up);
OutputValue("down_txt", _global.hotKey_down);
OutputValue("left_txt", _global.hotKey_left);
OutputValue("right_txt", _global.hotKey_right);
Instance of Symbol 85 MovieClip "upClip" in Frame 9
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 85 MovieClip "downClip" in Frame 9
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 85 MovieClip "leftClip" in Frame 9
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 85 MovieClip "rightClip" in Frame 9
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Frame 10
stop();
Frame 32
function Setup() {
if (_global.musicOn == true) {
_global.myMusicPlayer.SetTrack("slow");
_global.myMusicPlayer.SetMaxVolume(100);
_global.myMusicPlayer.PlayWithCrossFade(4);
}
_root.timer._visible = false;
arrRightTriangles = new Array();
arrLeftTriangles = new Array();
arrLeftPower = new Array();
arrRightPower = new Array();
maxSpeed = 5;
friction = 0.1;
numSensitivity = 0.4;
counter = 0;
counter2 = 0;
_global.up = _global.hotKey_up;
_global.down = _global.hotKey_down;
_global.rightward = _global.hotKey_right;
_global.leftward = _global.hotKey_left;
effectLength = 10;
triangleDepth = 1000;
triangleDepth2 = 2000;
powerDepth = 3000;
powerDepth2 = 4000;
minCounter4 = 500;
maxCounter4 = 900;
minCounter3 = 500;
maxCounter3 = 900;
startTime = getTimer();
myTime = getTimer();
lastSampleTime = startTime;
currentScore = 0;
blnDouble = false;
_global.timeToFade = false;
_global.tested = false;
_global.rotated = false;
_global.rotTest = false;
_global.god = false;
_global.alreadyOut = false;
_global.getRidOf = false;
increm = 1;
stageState = 0;
}
function Run() {
_global.myMusicPlayer.RunPlayer();
ControlGameSettings();
myTime = getTimer();
getTimeString(myTime);
GetAndDisplayScore();
KeepMouseInside();
KeepKeyboardInside();
KeyboardListener();
MoveKeyboardPointer();
GenerateFallingTriangles();
GenerateSlidingTriangles();
MoveTrianglesDownAndCollide();
MoveTrianglesRightAndCollide();
RunTimer();
GeneratePowerUp();
GeneratePowerUp2();
PowerCollideLeft();
PowerCollideRight();
}
function RotateScreensClockwise() {
if (increm <= 90) {
increm++;
_root.wholeLeft._rotation++;
_root.wholeRight._rotation++;
} else {
trace(_root.wholeLeft._rotation);
trace(_root.wholeRight._rotation);
RotateKeysCounterClockwise();
_global.rotated = true;
}
}
function RotateKeysCounterClockwise() {
var _local3 = _global.up;
var _local2 = _global.down;
var _local5 = _global.leftward;
var _local4 = _global.rightward;
_global.up = _local4;
_global.down = _local5;
_global.leftward = _local3;
_global.rightward = _local2;
}
function Rotator() {
minCounter = 100;
maxCounter = 100;
fallingSpeed = 0;
minCounter2 = 100;
maxCounter2 = 100;
slidingSpeed = 0;
if (!_global.rotTest) {
_root.rotatePopUp.gotoAndPlay(2);
_global.rotTest = true;
}
RotateScreensClockwise();
}
function ControlGameSettings() {
var _local3 = Math.round(myTime - startTime) / 1000;
switch (stageState) {
case 0 :
_root.wholeRight._rotation = 0;
_root.wholeLeft._rotation = 0;
_root.inst.gotoAndPlay(2);
_root.inst2.gotoAndPlay(2);
minCounter = 100;
maxCounter = 100;
fallingSpeed = -8;
minCounter2 = 100;
maxCounter2 = 100;
slidingSpeed = -8;
stageState = 1;
break;
case 1 :
if (_local3 >= 6) {
minCounter = 50;
maxCounter = 50;
fallingSpeed = 3;
minCounter2 = 50;
maxCounter2 = 50;
slidingSpeed = 3;
counter3 = 0;
stageState = 2;
}
break;
case 2 :
if (_local3 >= 30) {
if (!_global.rotated) {
Rotator();
} else {
minCounter = 40;
maxCounter = 50;
fallingSpeed = 3;
minCounter2 = 40;
maxCounter2 = 50;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 3;
break;
}
}
break;
case 3 :
if (_local3 >= 60) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 30;
maxCounter = 40;
fallingSpeed = 3;
minCounter2 = 30;
maxCounter2 = 40;
slidingSpeed = 3;
counter4 = 0;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 4;
} else {
break;
if (_local3 >= 90) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 25;
maxCounter = 35;
fallingSpeed = 3;
minCounter2 = 25;
maxCounter2 = 35;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 5;
} else {
break;
if (_local3 >= 120) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 20;
maxCounter = 30;
fallingSpeed = 3;
minCounter2 = 20;
maxCounter2 = 30;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 6;
} else {
break;
if (_local3 >= 150) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 15;
maxCounter = 25;
fallingSpeed = 3;
minCounter2 = 15;
maxCounter2 = 25;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 7;
} else {
break;
if (_local3 >= 180) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 13;
maxCounter = 23;
fallingSpeed = 3;
minCounter2 = 13;
maxCounter2 = 23;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 8;
} else {
break;
if (_local3 >= 210) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 10;
maxCounter = 20;
fallingSpeed = 3;
minCounter2 = 10;
maxCounter2 = 20;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 9;
} else {
break;
if (_local3 >= 240) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 10;
maxCounter = 15;
fallingSpeed = 3;
minCounter2 = 10;
maxCounter2 = 15;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 10;
} else {
break;
if (_local3 >= 270) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 10;
maxCounter = 10;
fallingSpeed = 3;
minCounter2 = 10;
maxCounter2 = 10;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 11;
} else {
break;
if (_local3 >= 300) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 9;
maxCounter = 10;
fallingSpeed = 3.2;
minCounter2 = 9;
maxCounter2 = 10;
slidingSpeed = 3.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 12;
} else {
break;
if (_local3 >= 330) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 8;
maxCounter = 9;
fallingSpeed = 3.3;
minCounter2 = 8;
maxCounter2 = 9;
slidingSpeed = 3.3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 13;
} else {
break;
if (_local3 >= 360) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 7;
maxCounter = 8;
fallingSpeed = 3.5;
minCounter2 = 7;
maxCounter2 = 8;
slidingSpeed = 3.5;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 14;
} else {
break;
if (_local3 >= 390) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 6;
maxCounter = 7;
fallingSpeed = 3.7;
minCounter2 = 6;
maxCounter2 = 7;
slidingSpeed = 3.7;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 15;
} else {
break;
if (_local3 >= 420) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 5;
maxCounter = 6;
fallingSpeed = 3.8;
minCounter2 = 5;
maxCounter2 = 6;
slidingSpeed = 3.8;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 16;
} else {
break;
if (_local3 >= 450) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 4;
maxCounter = 5;
fallingSpeed = 3.9;
minCounter2 = 4;
maxCounter2 = 5;
slidingSpeed = 3.9;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 17;
} else {
break;
if (_local3 >= 480) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 3;
maxCounter = 4;
fallingSpeed = 4;
minCounter2 = 3;
maxCounter2 = 4;
slidingSpeed = 4;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 18;
} else {
break;
if (_local3 >= 510) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 2;
maxCounter = 2;
fallingSpeed = 4.1;
minCounter2 = 2;
maxCounter2 = 2;
slidingSpeed = 4.1;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 19;
} else {
break;
if (_local3 >= 540) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 1;
maxCounter = 1;
fallingSpeed = 4.2;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 4.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 20;
} else {
break;
minCounter = 1;
maxCounter = 1;
fallingSpeed = 5;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 5;
stageState = 20;
break;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
case 4 :
if (_local3 >= 90) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 25;
maxCounter = 35;
fallingSpeed = 3;
minCounter2 = 25;
maxCounter2 = 35;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 5;
} else {
break;
if (_local3 >= 120) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 20;
maxCounter = 30;
fallingSpeed = 3;
minCounter2 = 20;
maxCounter2 = 30;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 6;
} else {
break;
if (_local3 >= 150) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 15;
maxCounter = 25;
fallingSpeed = 3;
minCounter2 = 15;
maxCounter2 = 25;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 7;
} else {
break;
if (_local3 >= 180) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 13;
maxCounter = 23;
fallingSpeed = 3;
minCounter2 = 13;
maxCounter2 = 23;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 8;
} else {
break;
if (_local3 >= 210) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 10;
maxCounter = 20;
fallingSpeed = 3;
minCounter2 = 10;
maxCounter2 = 20;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 9;
} else {
break;
if (_local3 >= 240) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 10;
maxCounter = 15;
fallingSpeed = 3;
minCounter2 = 10;
maxCounter2 = 15;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 10;
} else {
break;
if (_local3 >= 270) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 10;
maxCounter = 10;
fallingSpeed = 3;
minCounter2 = 10;
maxCounter2 = 10;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 11;
} else {
break;
if (_local3 >= 300) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 9;
maxCounter = 10;
fallingSpeed = 3.2;
minCounter2 = 9;
maxCounter2 = 10;
slidingSpeed = 3.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 12;
} else {
break;
if (_local3 >= 330) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 8;
maxCounter = 9;
fallingSpeed = 3.3;
minCounter2 = 8;
maxCounter2 = 9;
slidingSpeed = 3.3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 13;
} else {
break;
if (_local3 >= 360) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 7;
maxCounter = 8;
fallingSpeed = 3.5;
minCounter2 = 7;
maxCounter2 = 8;
slidingSpeed = 3.5;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 14;
} else {
break;
if (_local3 >= 390) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 6;
maxCounter = 7;
fallingSpeed = 3.7;
minCounter2 = 6;
maxCounter2 = 7;
slidingSpeed = 3.7;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 15;
} else {
break;
if (_local3 >= 420) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 5;
maxCounter = 6;
fallingSpeed = 3.8;
minCounter2 = 5;
maxCounter2 = 6;
slidingSpeed = 3.8;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 16;
} else {
break;
if (_local3 >= 450) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 4;
maxCounter = 5;
fallingSpeed = 3.9;
minCounter2 = 4;
maxCounter2 = 5;
slidingSpeed = 3.9;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 17;
} else {
break;
if (_local3 >= 480) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 3;
maxCounter = 4;
fallingSpeed = 4;
minCounter2 = 3;
maxCounter2 = 4;
slidingSpeed = 4;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 18;
} else {
break;
if (_local3 >= 510) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 2;
maxCounter = 2;
fallingSpeed = 4.1;
minCounter2 = 2;
maxCounter2 = 2;
slidingSpeed = 4.1;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 19;
} else {
break;
if (_local3 >= 540) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 1;
maxCounter = 1;
fallingSpeed = 4.2;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 4.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 20;
} else {
break;
minCounter = 1;
maxCounter = 1;
fallingSpeed = 5;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 5;
stageState = 20;
break;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
case 5 :
if (_local3 >= 120) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 20;
maxCounter = 30;
fallingSpeed = 3;
minCounter2 = 20;
maxCounter2 = 30;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 6;
} else {
break;
if (_local3 >= 150) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 15;
maxCounter = 25;
fallingSpeed = 3;
minCounter2 = 15;
maxCounter2 = 25;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 7;
} else {
break;
if (_local3 >= 180) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 13;
maxCounter = 23;
fallingSpeed = 3;
minCounter2 = 13;
maxCounter2 = 23;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 8;
} else {
break;
if (_local3 >= 210) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 10;
maxCounter = 20;
fallingSpeed = 3;
minCounter2 = 10;
maxCounter2 = 20;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 9;
} else {
break;
if (_local3 >= 240) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 10;
maxCounter = 15;
fallingSpeed = 3;
minCounter2 = 10;
maxCounter2 = 15;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 10;
} else {
break;
if (_local3 >= 270) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 10;
maxCounter = 10;
fallingSpeed = 3;
minCounter2 = 10;
maxCounter2 = 10;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 11;
} else {
break;
if (_local3 >= 300) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 9;
maxCounter = 10;
fallingSpeed = 3.2;
minCounter2 = 9;
maxCounter2 = 10;
slidingSpeed = 3.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 12;
} else {
break;
if (_local3 >= 330) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 8;
maxCounter = 9;
fallingSpeed = 3.3;
minCounter2 = 8;
maxCounter2 = 9;
slidingSpeed = 3.3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 13;
} else {
break;
if (_local3 >= 360) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 7;
maxCounter = 8;
fallingSpeed = 3.5;
minCounter2 = 7;
maxCounter2 = 8;
slidingSpeed = 3.5;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 14;
} else {
break;
if (_local3 >= 390) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 6;
maxCounter = 7;
fallingSpeed = 3.7;
minCounter2 = 6;
maxCounter2 = 7;
slidingSpeed = 3.7;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 15;
} else {
break;
if (_local3 >= 420) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 5;
maxCounter = 6;
fallingSpeed = 3.8;
minCounter2 = 5;
maxCounter2 = 6;
slidingSpeed = 3.8;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 16;
} else {
break;
if (_local3 >= 450) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 4;
maxCounter = 5;
fallingSpeed = 3.9;
minCounter2 = 4;
maxCounter2 = 5;
slidingSpeed = 3.9;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 17;
} else {
break;
if (_local3 >= 480) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 3;
maxCounter = 4;
fallingSpeed = 4;
minCounter2 = 3;
maxCounter2 = 4;
slidingSpeed = 4;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 18;
} else {
break;
if (_local3 >= 510) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 2;
maxCounter = 2;
fallingSpeed = 4.1;
minCounter2 = 2;
maxCounter2 = 2;
slidingSpeed = 4.1;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 19;
} else {
break;
if (_local3 >= 540) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 1;
maxCounter = 1;
fallingSpeed = 4.2;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 4.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 20;
} else {
break;
minCounter = 1;
maxCounter = 1;
fallingSpeed = 5;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 5;
stageState = 20;
break;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
case 6 :
if (_local3 >= 150) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 15;
maxCounter = 25;
fallingSpeed = 3;
minCounter2 = 15;
maxCounter2 = 25;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 7;
} else {
break;
if (_local3 >= 180) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 13;
maxCounter = 23;
fallingSpeed = 3;
minCounter2 = 13;
maxCounter2 = 23;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 8;
} else {
break;
if (_local3 >= 210) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 10;
maxCounter = 20;
fallingSpeed = 3;
minCounter2 = 10;
maxCounter2 = 20;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 9;
} else {
break;
if (_local3 >= 240) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 10;
maxCounter = 15;
fallingSpeed = 3;
minCounter2 = 10;
maxCounter2 = 15;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 10;
} else {
break;
if (_local3 >= 270) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 10;
maxCounter = 10;
fallingSpeed = 3;
minCounter2 = 10;
maxCounter2 = 10;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 11;
} else {
break;
if (_local3 >= 300) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 9;
maxCounter = 10;
fallingSpeed = 3.2;
minCounter2 = 9;
maxCounter2 = 10;
slidingSpeed = 3.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 12;
} else {
break;
if (_local3 >= 330) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 8;
maxCounter = 9;
fallingSpeed = 3.3;
minCounter2 = 8;
maxCounter2 = 9;
slidingSpeed = 3.3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 13;
} else {
break;
if (_local3 >= 360) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 7;
maxCounter = 8;
fallingSpeed = 3.5;
minCounter2 = 7;
maxCounter2 = 8;
slidingSpeed = 3.5;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 14;
} else {
break;
if (_local3 >= 390) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 6;
maxCounter = 7;
fallingSpeed = 3.7;
minCounter2 = 6;
maxCounter2 = 7;
slidingSpeed = 3.7;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 15;
} else {
break;
if (_local3 >= 420) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 5;
maxCounter = 6;
fallingSpeed = 3.8;
minCounter2 = 5;
maxCounter2 = 6;
slidingSpeed = 3.8;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 16;
} else {
break;
if (_local3 >= 450) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 4;
maxCounter = 5;
fallingSpeed = 3.9;
minCounter2 = 4;
maxCounter2 = 5;
slidingSpeed = 3.9;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 17;
} else {
break;
if (_local3 >= 480) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 3;
maxCounter = 4;
fallingSpeed = 4;
minCounter2 = 3;
maxCounter2 = 4;
slidingSpeed = 4;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 18;
} else {
break;
if (_local3 >= 510) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 2;
maxCounter = 2;
fallingSpeed = 4.1;
minCounter2 = 2;
maxCounter2 = 2;
slidingSpeed = 4.1;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 19;
} else {
break;
if (_local3 >= 540) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 1;
maxCounter = 1;
fallingSpeed = 4.2;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 4.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 20;
} else {
break;
minCounter = 1;
maxCounter = 1;
fallingSpeed = 5;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 5;
stageState = 20;
break;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
case 7 :
if (_local3 >= 180) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 13;
maxCounter = 23;
fallingSpeed = 3;
minCounter2 = 13;
maxCounter2 = 23;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 8;
} else {
break;
if (_local3 >= 210) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 10;
maxCounter = 20;
fallingSpeed = 3;
minCounter2 = 10;
maxCounter2 = 20;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 9;
} else {
break;
if (_local3 >= 240) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 10;
maxCounter = 15;
fallingSpeed = 3;
minCounter2 = 10;
maxCounter2 = 15;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 10;
} else {
break;
if (_local3 >= 270) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 10;
maxCounter = 10;
fallingSpeed = 3;
minCounter2 = 10;
maxCounter2 = 10;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 11;
} else {
break;
if (_local3 >= 300) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 9;
maxCounter = 10;
fallingSpeed = 3.2;
minCounter2 = 9;
maxCounter2 = 10;
slidingSpeed = 3.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 12;
} else {
break;
if (_local3 >= 330) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 8;
maxCounter = 9;
fallingSpeed = 3.3;
minCounter2 = 8;
maxCounter2 = 9;
slidingSpeed = 3.3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 13;
} else {
break;
if (_local3 >= 360) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 7;
maxCounter = 8;
fallingSpeed = 3.5;
minCounter2 = 7;
maxCounter2 = 8;
slidingSpeed = 3.5;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 14;
} else {
break;
if (_local3 >= 390) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 6;
maxCounter = 7;
fallingSpeed = 3.7;
minCounter2 = 6;
maxCounter2 = 7;
slidingSpeed = 3.7;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 15;
} else {
break;
if (_local3 >= 420) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 5;
maxCounter = 6;
fallingSpeed = 3.8;
minCounter2 = 5;
maxCounter2 = 6;
slidingSpeed = 3.8;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 16;
} else {
break;
if (_local3 >= 450) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 4;
maxCounter = 5;
fallingSpeed = 3.9;
minCounter2 = 4;
maxCounter2 = 5;
slidingSpeed = 3.9;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 17;
} else {
break;
if (_local3 >= 480) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 3;
maxCounter = 4;
fallingSpeed = 4;
minCounter2 = 3;
maxCounter2 = 4;
slidingSpeed = 4;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 18;
} else {
break;
if (_local3 >= 510) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 2;
maxCounter = 2;
fallingSpeed = 4.1;
minCounter2 = 2;
maxCounter2 = 2;
slidingSpeed = 4.1;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 19;
} else {
break;
if (_local3 >= 540) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 1;
maxCounter = 1;
fallingSpeed = 4.2;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 4.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 20;
} else {
break;
minCounter = 1;
maxCounter = 1;
fallingSpeed = 5;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 5;
stageState = 20;
break;
}
}
}
}
}
}
}
}
}
}
}
}
}
case 8 :
if (_local3 >= 210) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 10;
maxCounter = 20;
fallingSpeed = 3;
minCounter2 = 10;
maxCounter2 = 20;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 9;
} else {
break;
if (_local3 >= 240) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 10;
maxCounter = 15;
fallingSpeed = 3;
minCounter2 = 10;
maxCounter2 = 15;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 10;
} else {
break;
if (_local3 >= 270) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 10;
maxCounter = 10;
fallingSpeed = 3;
minCounter2 = 10;
maxCounter2 = 10;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 11;
} else {
break;
if (_local3 >= 300) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 9;
maxCounter = 10;
fallingSpeed = 3.2;
minCounter2 = 9;
maxCounter2 = 10;
slidingSpeed = 3.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 12;
} else {
break;
if (_local3 >= 330) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 8;
maxCounter = 9;
fallingSpeed = 3.3;
minCounter2 = 8;
maxCounter2 = 9;
slidingSpeed = 3.3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 13;
} else {
break;
if (_local3 >= 360) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 7;
maxCounter = 8;
fallingSpeed = 3.5;
minCounter2 = 7;
maxCounter2 = 8;
slidingSpeed = 3.5;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 14;
} else {
break;
if (_local3 >= 390) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 6;
maxCounter = 7;
fallingSpeed = 3.7;
minCounter2 = 6;
maxCounter2 = 7;
slidingSpeed = 3.7;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 15;
} else {
break;
if (_local3 >= 420) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 5;
maxCounter = 6;
fallingSpeed = 3.8;
minCounter2 = 5;
maxCounter2 = 6;
slidingSpeed = 3.8;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 16;
} else {
break;
if (_local3 >= 450) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 4;
maxCounter = 5;
fallingSpeed = 3.9;
minCounter2 = 4;
maxCounter2 = 5;
slidingSpeed = 3.9;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 17;
} else {
break;
if (_local3 >= 480) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 3;
maxCounter = 4;
fallingSpeed = 4;
minCounter2 = 3;
maxCounter2 = 4;
slidingSpeed = 4;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 18;
} else {
break;
if (_local3 >= 510) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 2;
maxCounter = 2;
fallingSpeed = 4.1;
minCounter2 = 2;
maxCounter2 = 2;
slidingSpeed = 4.1;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 19;
} else {
break;
if (_local3 >= 540) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 1;
maxCounter = 1;
fallingSpeed = 4.2;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 4.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 20;
} else {
break;
minCounter = 1;
maxCounter = 1;
fallingSpeed = 5;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 5;
stageState = 20;
break;
}
}
}
}
}
}
}
}
}
}
}
}
case 9 :
if (_local3 >= 240) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 10;
maxCounter = 15;
fallingSpeed = 3;
minCounter2 = 10;
maxCounter2 = 15;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 10;
} else {
break;
if (_local3 >= 270) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 10;
maxCounter = 10;
fallingSpeed = 3;
minCounter2 = 10;
maxCounter2 = 10;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 11;
} else {
break;
if (_local3 >= 300) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 9;
maxCounter = 10;
fallingSpeed = 3.2;
minCounter2 = 9;
maxCounter2 = 10;
slidingSpeed = 3.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 12;
} else {
break;
if (_local3 >= 330) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 8;
maxCounter = 9;
fallingSpeed = 3.3;
minCounter2 = 8;
maxCounter2 = 9;
slidingSpeed = 3.3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 13;
} else {
break;
if (_local3 >= 360) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 7;
maxCounter = 8;
fallingSpeed = 3.5;
minCounter2 = 7;
maxCounter2 = 8;
slidingSpeed = 3.5;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 14;
} else {
break;
if (_local3 >= 390) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 6;
maxCounter = 7;
fallingSpeed = 3.7;
minCounter2 = 6;
maxCounter2 = 7;
slidingSpeed = 3.7;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 15;
} else {
break;
if (_local3 >= 420) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 5;
maxCounter = 6;
fallingSpeed = 3.8;
minCounter2 = 5;
maxCounter2 = 6;
slidingSpeed = 3.8;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 16;
} else {
break;
if (_local3 >= 450) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 4;
maxCounter = 5;
fallingSpeed = 3.9;
minCounter2 = 4;
maxCounter2 = 5;
slidingSpeed = 3.9;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 17;
} else {
break;
if (_local3 >= 480) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 3;
maxCounter = 4;
fallingSpeed = 4;
minCounter2 = 3;
maxCounter2 = 4;
slidingSpeed = 4;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 18;
} else {
break;
if (_local3 >= 510) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 2;
maxCounter = 2;
fallingSpeed = 4.1;
minCounter2 = 2;
maxCounter2 = 2;
slidingSpeed = 4.1;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 19;
} else {
break;
if (_local3 >= 540) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 1;
maxCounter = 1;
fallingSpeed = 4.2;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 4.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 20;
} else {
break;
minCounter = 1;
maxCounter = 1;
fallingSpeed = 5;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 5;
stageState = 20;
break;
}
}
}
}
}
}
}
}
}
}
}
case 10 :
if (_local3 >= 270) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 10;
maxCounter = 10;
fallingSpeed = 3;
minCounter2 = 10;
maxCounter2 = 10;
slidingSpeed = 3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 11;
} else {
break;
if (_local3 >= 300) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 9;
maxCounter = 10;
fallingSpeed = 3.2;
minCounter2 = 9;
maxCounter2 = 10;
slidingSpeed = 3.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 12;
} else {
break;
if (_local3 >= 330) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 8;
maxCounter = 9;
fallingSpeed = 3.3;
minCounter2 = 8;
maxCounter2 = 9;
slidingSpeed = 3.3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 13;
} else {
break;
if (_local3 >= 360) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 7;
maxCounter = 8;
fallingSpeed = 3.5;
minCounter2 = 7;
maxCounter2 = 8;
slidingSpeed = 3.5;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 14;
} else {
break;
if (_local3 >= 390) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 6;
maxCounter = 7;
fallingSpeed = 3.7;
minCounter2 = 6;
maxCounter2 = 7;
slidingSpeed = 3.7;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 15;
} else {
break;
if (_local3 >= 420) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 5;
maxCounter = 6;
fallingSpeed = 3.8;
minCounter2 = 5;
maxCounter2 = 6;
slidingSpeed = 3.8;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 16;
} else {
break;
if (_local3 >= 450) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 4;
maxCounter = 5;
fallingSpeed = 3.9;
minCounter2 = 4;
maxCounter2 = 5;
slidingSpeed = 3.9;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 17;
} else {
break;
if (_local3 >= 480) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 3;
maxCounter = 4;
fallingSpeed = 4;
minCounter2 = 3;
maxCounter2 = 4;
slidingSpeed = 4;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 18;
} else {
break;
if (_local3 >= 510) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 2;
maxCounter = 2;
fallingSpeed = 4.1;
minCounter2 = 2;
maxCounter2 = 2;
slidingSpeed = 4.1;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 19;
} else {
break;
if (_local3 >= 540) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 1;
maxCounter = 1;
fallingSpeed = 4.2;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 4.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 20;
} else {
break;
minCounter = 1;
maxCounter = 1;
fallingSpeed = 5;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 5;
stageState = 20;
break;
}
}
}
}
}
}
}
}
}
}
case 11 :
if (_local3 >= 300) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 9;
maxCounter = 10;
fallingSpeed = 3.2;
minCounter2 = 9;
maxCounter2 = 10;
slidingSpeed = 3.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 12;
} else {
break;
if (_local3 >= 330) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 8;
maxCounter = 9;
fallingSpeed = 3.3;
minCounter2 = 8;
maxCounter2 = 9;
slidingSpeed = 3.3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 13;
} else {
break;
if (_local3 >= 360) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 7;
maxCounter = 8;
fallingSpeed = 3.5;
minCounter2 = 7;
maxCounter2 = 8;
slidingSpeed = 3.5;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 14;
} else {
break;
if (_local3 >= 390) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 6;
maxCounter = 7;
fallingSpeed = 3.7;
minCounter2 = 6;
maxCounter2 = 7;
slidingSpeed = 3.7;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 15;
} else {
break;
if (_local3 >= 420) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 5;
maxCounter = 6;
fallingSpeed = 3.8;
minCounter2 = 5;
maxCounter2 = 6;
slidingSpeed = 3.8;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 16;
} else {
break;
if (_local3 >= 450) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 4;
maxCounter = 5;
fallingSpeed = 3.9;
minCounter2 = 4;
maxCounter2 = 5;
slidingSpeed = 3.9;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 17;
} else {
break;
if (_local3 >= 480) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 3;
maxCounter = 4;
fallingSpeed = 4;
minCounter2 = 3;
maxCounter2 = 4;
slidingSpeed = 4;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 18;
} else {
break;
if (_local3 >= 510) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 2;
maxCounter = 2;
fallingSpeed = 4.1;
minCounter2 = 2;
maxCounter2 = 2;
slidingSpeed = 4.1;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 19;
} else {
break;
if (_local3 >= 540) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 1;
maxCounter = 1;
fallingSpeed = 4.2;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 4.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 20;
} else {
break;
minCounter = 1;
maxCounter = 1;
fallingSpeed = 5;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 5;
stageState = 20;
break;
}
}
}
}
}
}
}
}
}
case 12 :
if (_local3 >= 330) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 8;
maxCounter = 9;
fallingSpeed = 3.3;
minCounter2 = 8;
maxCounter2 = 9;
slidingSpeed = 3.3;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 13;
} else {
break;
if (_local3 >= 360) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 7;
maxCounter = 8;
fallingSpeed = 3.5;
minCounter2 = 7;
maxCounter2 = 8;
slidingSpeed = 3.5;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 14;
} else {
break;
if (_local3 >= 390) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 6;
maxCounter = 7;
fallingSpeed = 3.7;
minCounter2 = 6;
maxCounter2 = 7;
slidingSpeed = 3.7;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 15;
} else {
break;
if (_local3 >= 420) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 5;
maxCounter = 6;
fallingSpeed = 3.8;
minCounter2 = 5;
maxCounter2 = 6;
slidingSpeed = 3.8;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 16;
} else {
break;
if (_local3 >= 450) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 4;
maxCounter = 5;
fallingSpeed = 3.9;
minCounter2 = 4;
maxCounter2 = 5;
slidingSpeed = 3.9;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 17;
} else {
break;
if (_local3 >= 480) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 3;
maxCounter = 4;
fallingSpeed = 4;
minCounter2 = 3;
maxCounter2 = 4;
slidingSpeed = 4;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 18;
} else {
break;
if (_local3 >= 510) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 2;
maxCounter = 2;
fallingSpeed = 4.1;
minCounter2 = 2;
maxCounter2 = 2;
slidingSpeed = 4.1;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 19;
} else {
break;
if (_local3 >= 540) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 1;
maxCounter = 1;
fallingSpeed = 4.2;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 4.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 20;
} else {
break;
minCounter = 1;
maxCounter = 1;
fallingSpeed = 5;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 5;
stageState = 20;
break;
}
}
}
}
}
}
}
}
case 13 :
if (_local3 >= 360) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 7;
maxCounter = 8;
fallingSpeed = 3.5;
minCounter2 = 7;
maxCounter2 = 8;
slidingSpeed = 3.5;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 14;
} else {
break;
if (_local3 >= 390) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 6;
maxCounter = 7;
fallingSpeed = 3.7;
minCounter2 = 6;
maxCounter2 = 7;
slidingSpeed = 3.7;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 15;
} else {
break;
if (_local3 >= 420) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 5;
maxCounter = 6;
fallingSpeed = 3.8;
minCounter2 = 5;
maxCounter2 = 6;
slidingSpeed = 3.8;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 16;
} else {
break;
if (_local3 >= 450) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 4;
maxCounter = 5;
fallingSpeed = 3.9;
minCounter2 = 4;
maxCounter2 = 5;
slidingSpeed = 3.9;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 17;
} else {
break;
if (_local3 >= 480) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 3;
maxCounter = 4;
fallingSpeed = 4;
minCounter2 = 3;
maxCounter2 = 4;
slidingSpeed = 4;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 18;
} else {
break;
if (_local3 >= 510) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 2;
maxCounter = 2;
fallingSpeed = 4.1;
minCounter2 = 2;
maxCounter2 = 2;
slidingSpeed = 4.1;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 19;
} else {
break;
if (_local3 >= 540) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 1;
maxCounter = 1;
fallingSpeed = 4.2;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 4.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 20;
} else {
break;
minCounter = 1;
maxCounter = 1;
fallingSpeed = 5;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 5;
stageState = 20;
break;
}
}
}
}
}
}
}
case 14 :
if (_local3 >= 390) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 6;
maxCounter = 7;
fallingSpeed = 3.7;
minCounter2 = 6;
maxCounter2 = 7;
slidingSpeed = 3.7;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 15;
} else {
break;
if (_local3 >= 420) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 5;
maxCounter = 6;
fallingSpeed = 3.8;
minCounter2 = 5;
maxCounter2 = 6;
slidingSpeed = 3.8;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 16;
} else {
break;
if (_local3 >= 450) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 4;
maxCounter = 5;
fallingSpeed = 3.9;
minCounter2 = 4;
maxCounter2 = 5;
slidingSpeed = 3.9;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 17;
} else {
break;
if (_local3 >= 480) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 3;
maxCounter = 4;
fallingSpeed = 4;
minCounter2 = 3;
maxCounter2 = 4;
slidingSpeed = 4;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 18;
} else {
break;
if (_local3 >= 510) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 2;
maxCounter = 2;
fallingSpeed = 4.1;
minCounter2 = 2;
maxCounter2 = 2;
slidingSpeed = 4.1;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 19;
} else {
break;
if (_local3 >= 540) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 1;
maxCounter = 1;
fallingSpeed = 4.2;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 4.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 20;
} else {
break;
minCounter = 1;
maxCounter = 1;
fallingSpeed = 5;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 5;
stageState = 20;
break;
}
}
}
}
}
}
case 15 :
if (_local3 >= 420) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 5;
maxCounter = 6;
fallingSpeed = 3.8;
minCounter2 = 5;
maxCounter2 = 6;
slidingSpeed = 3.8;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 16;
} else {
break;
if (_local3 >= 450) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 4;
maxCounter = 5;
fallingSpeed = 3.9;
minCounter2 = 4;
maxCounter2 = 5;
slidingSpeed = 3.9;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 17;
} else {
break;
if (_local3 >= 480) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 3;
maxCounter = 4;
fallingSpeed = 4;
minCounter2 = 3;
maxCounter2 = 4;
slidingSpeed = 4;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 18;
} else {
break;
if (_local3 >= 510) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 2;
maxCounter = 2;
fallingSpeed = 4.1;
minCounter2 = 2;
maxCounter2 = 2;
slidingSpeed = 4.1;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 19;
} else {
break;
if (_local3 >= 540) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 1;
maxCounter = 1;
fallingSpeed = 4.2;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 4.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 20;
} else {
break;
minCounter = 1;
maxCounter = 1;
fallingSpeed = 5;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 5;
stageState = 20;
break;
}
}
}
}
}
case 16 :
if (_local3 >= 450) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 4;
maxCounter = 5;
fallingSpeed = 3.9;
minCounter2 = 4;
maxCounter2 = 5;
slidingSpeed = 3.9;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 17;
} else {
break;
if (_local3 >= 480) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 3;
maxCounter = 4;
fallingSpeed = 4;
minCounter2 = 3;
maxCounter2 = 4;
slidingSpeed = 4;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 18;
} else {
break;
if (_local3 >= 510) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 2;
maxCounter = 2;
fallingSpeed = 4.1;
minCounter2 = 2;
maxCounter2 = 2;
slidingSpeed = 4.1;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 19;
} else {
break;
if (_local3 >= 540) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 1;
maxCounter = 1;
fallingSpeed = 4.2;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 4.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 20;
} else {
break;
minCounter = 1;
maxCounter = 1;
fallingSpeed = 5;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 5;
stageState = 20;
break;
}
}
}
}
case 17 :
if (_local3 >= 480) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 3;
maxCounter = 4;
fallingSpeed = 4;
minCounter2 = 3;
maxCounter2 = 4;
slidingSpeed = 4;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 18;
} else {
break;
if (_local3 >= 510) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 2;
maxCounter = 2;
fallingSpeed = 4.1;
minCounter2 = 2;
maxCounter2 = 2;
slidingSpeed = 4.1;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 19;
} else {
break;
if (_local3 >= 540) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 1;
maxCounter = 1;
fallingSpeed = 4.2;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 4.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 20;
} else {
break;
minCounter = 1;
maxCounter = 1;
fallingSpeed = 5;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 5;
stageState = 20;
break;
}
}
}
case 18 :
if (_local3 >= 510) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 2;
maxCounter = 2;
fallingSpeed = 4.1;
minCounter2 = 2;
maxCounter2 = 2;
slidingSpeed = 4.1;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 19;
} else {
break;
if (_local3 >= 540) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 1;
maxCounter = 1;
fallingSpeed = 4.2;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 4.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 20;
} else {
break;
minCounter = 1;
maxCounter = 1;
fallingSpeed = 5;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 5;
stageState = 20;
break;
}
}
case 19 :
if (_local3 >= 540) {
if (!_global.rotated) {
Rotator();
// unexpected jump
}
minCounter = 1;
maxCounter = 1;
fallingSpeed = 4.2;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 4.2;
_global.rotTest = false;
_global.rotated = false;
increm = 1;
stageState = 20;
} else {
break;
minCounter = 1;
maxCounter = 1;
fallingSpeed = 5;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 5;
stageState = 20;
break;
}
case 20 :
minCounter = 1;
maxCounter = 1;
fallingSpeed = 5;
minCounter2 = 1;
maxCounter2 = 1;
slidingSpeed = 5;
stageState = 20;
break;
}
}
function HideTimer() {
blnDouble = false;
_root.timer._visible = false;
}
function StartTimer() {
blnDouble = true;
_root.timer._visible = true;
effectTimer = getTimer() + (effectLength * 1000);
}
function RunTimer() {
if (_root.timer._visible == true) {
var _local2 = Math.round(((effectTimer - getTimer()) / (effectLength * 1000)) * 100);
_root.timer.inside._xscale = _local2;
if (_local2 <= 0) {
HideTimer();
}
}
}
function GetAndDisplayScore() {
var _local3 = getTimeString(myTime - startTime);
if ((getTimer() - startTime) >= 6000) {
if (blnDouble == true) {
currentScore = currentScore + (((getTimer() - lastSampleTime) / 1000) * 150);
} else {
currentScore = currentScore + (((getTimer() - lastSampleTime) / 1000) * 75);
}
} else {
currentScore = 0;
}
if (currentScore < 0) {
currentScore = 0;
}
_root.time_txt.text = "Time: " + _local3;
_root.score_txt.text = "Score: " + Math.round(currentScore);
_global.userScore = Math.round(currentScore);
_global.userTime = _root.time_txt.text;
lastSampleTime = getTimer();
}
function getTimeString(myTime) {
var _local4 = Math.floor(myTime / 1000);
if (_local4 > 60) {
var _local1 = myTime / 1000;
var _local3 = _local1 / 60;
if (_local1 > 59) {
_local1 = _local1 - (Math.floor(_local3) * 60);
}
var _local5;
var _local2;
if (_local3 < 10) {
_local2 = "0" + Math.floor(_local3);
} else {
_local2 = "" + Math.floor(_local3);
}
if (_local1 < 10) {
_local5 = (_local2 + ":0") + Math.floor(_local1);
} else if (_local1 == 0) {
_local5 = _local2 + ":00";
} else {
_local5 = (_local2 + ":") + Math.floor(_local1);
}
return(_local5);
}
if (_local4 < 10) {
var _local5 = "00:0" + Math.floor(_local4);
} else {
var _local5 = "00:" + Math.floor(_local4);
}
return(_local5);
}
function ResetGame() {
ResetArrays();
_global.userScore = 0;
_root.gotoAndPlay("game");
}
function ResetArrays() {
var i = 0;
while (i < arrRightTriangles.length) {
var triangleRef = eval ("_root.wholeRight.rightScreen." + arrRightTriangles[i]);
triangleRef.removeMovieClip();
i++;
}
var i = 0;
while (i < arrLeftTriangles.length) {
var triangleRef2 = eval ("_root.wholeLeft.leftScreen." + arrLeftTriangles[i]);
triangleRef2.removeMovieClip();
i++;
}
var i = 0;
while (i < arrLeftPower.length) {
var powerRef3 = eval ("_root.wholeLeft.leftScreen." + arrLeftPower[i]);
powerRef3.removeMovieClip();
i++;
}
var i = 0;
while (i < arrRightPower.length) {
var powerRef4 = eval ("_root.wholeRight.rightScreen." + arrRightPower[i]);
powerRef4.removeMovieClip();
i++;
}
delete arrRightTriangles;
delete arrLeftTriangles;
delete arrLeftPower;
delete arrRightPower;
arrRightTriangles = new Array();
arrLeftTriangles = new Array();
arrLeftPower = new Array();
arrRightPower = new Array();
_global.reset = false;
}
function GeneratePowerUp2() {
if ((!_global.alreadyOut) && (!_root.timer._visible)) {
if (counter4 == 0) {
var startX = (Math.random() * _root.rmask._width);
var startY = (Math.random() * _root.rmask._height);
var tempName4 = ("slidingPowerUp_" + powerDepth2);
_root.wholeRight.rightScreen.attachMovie("powerUp", tempName4, powerDepth2);
arrRightPower.push(tempName4);
var powerRef4 = eval ("_root.wholeRight.rightScreen." + tempName4);
powerRef4._y = startX;
powerRef4._x = startY;
powerRef4._rotation = Math.random() * 360;
counter4 = Math.round(Math.random() * (maxCounter4 - minCounter4)) + minCounter4;
powerDepth2++;
} else {
counter4--;
}
}
}
function GeneratePowerUp() {
if ((!_global.alreadyOut) && (!_root.timer._visible)) {
if (counter3 == 0) {
var startX = (Math.random() * _root.lmask._width);
var startY = (Math.random() * _root.lmask._height);
var tempName3 = ("slidingPowerUp_" + powerDepth);
_root.wholeLeft.leftScreen.attachMovie("powerUp", tempName3, powerDepth);
arrLeftPower.push(tempName3);
var powerRef3 = eval ("_root.wholeLeft.leftScreen." + tempName3);
powerRef3._y = startX;
powerRef3._x = startY;
powerRef3._rotation = Math.random() * 360;
counter3 = Math.round(Math.random() * (maxCounter3 - minCounter3)) + minCounter3;
powerDepth++;
} else {
counter3--;
}
}
}
function PowerCollideRight() {
var i = 0;
while (i < arrRightPower.length) {
_global.alreadyOut = true;
var powerRef4 = eval ("_root.wholeRight.rightScreen." + arrRightPower[i]);
var powerPoint = (new flash.geom.Point(powerRef4._x, powerRef4._y));
var pointerPoint4 = (new flash.geom.Point(_root.wholeRight.rightScreen.pointer._x, _root.wholeRight.rightScreen.pointer._y));
if (flash.geom.Point.distance(powerPoint, pointerPoint4) < (powerRef4._width - (powerRef4._width / 2))) {
_root.pText.gotoAndPlay(2);
StartTimer();
_global.alreadyOut = false;
powerRef4.removeMovieClip();
arrRightPower.splice(i, 1);
i--;
}
if (_global.getRidOf) {
powerRef4.removeMovieClip();
arrRightPower.splice(i, 1);
_global.getRidOf = false;
_global.alreadyOut = false;
}
i++;
}
}
function PowerCollideLeft() {
var i = 0;
while (i < arrLeftPower.length) {
_global.alreadyOut = true;
var powerRef3 = eval ("_root.wholeLeft.leftScreen." + arrLeftPower[i]);
var powerPoint = (new flash.geom.Point(powerRef3._x, powerRef3._y));
var pointerPoint3 = (new flash.geom.Point(_root.wholeLeft.leftScreen.pointer._x, _root.wholeLeft.leftScreen.pointer._y));
if (flash.geom.Point.distance(powerPoint, pointerPoint3) < (powerRef3._width - (powerRef3._width / 2))) {
_root.pText.gotoAndPlay(2);
StartTimer();
_global.alreadyOut = false;
powerRef3.removeMovieClip();
arrLeftPower.splice(i, 1);
i--;
}
if (_global.getRidOf) {
powerRef3.removeMovieClip();
arrLeftPower.splice(i, 1);
_global.getRidOf = false;
_global.alreadyOut = false;
}
i++;
}
}
function GenerateSlidingTriangles() {
if (counter2 == 0) {
var startY = (Math.random() * _root.lmask._height);
var tempName2 = ("slidingTriangle_" + triangleDepth2);
_root.wholeLeft.leftScreen.attachMovie("triangle", tempName2, triangleDepth2);
arrLeftTriangles.push(tempName2);
var triangleRef2 = eval ("_root.wholeLeft.leftScreen." + tempName2);
triangleRef2._y = startY;
triangleRef2._x = -(triangleRef2._height / 2);
triangleRef2._rotation = Math.random() * 360;
counter2 = Math.round(Math.random() * (maxCounter2 - minCounter2)) + minCounter2;
triangleDepth2++;
} else {
counter2--;
}
}
function GenerateFallingTriangles() {
if (counter == 0) {
var startX = (Math.random() * _root.rmask._width);
var tempName = ("fallingTriangle_" + triangleDepth);
_root.wholeRight.rightScreen.attachMovie("triangle", tempName, triangleDepth);
arrRightTriangles.push(tempName);
var triangleRef = eval ("_root.wholeRight.rightScreen." + tempName);
triangleRef._x = startX;
triangleRef._y = -(triangleRef._height / 2);
triangleRef._rotation = Math.random() * 360;
counter = Math.round(Math.random() * (maxCounter - minCounter)) + minCounter;
triangleDepth++;
} else {
counter--;
}
}
function MoveTrianglesRightAndCollide() {
var i = 0;
while (i < arrLeftTriangles.length) {
var triangleRef2 = eval ("_root.wholeLeft.leftScreen." + arrLeftTriangles[i]);
triangleRef2._x = triangleRef2._x + slidingSpeed;
var trianglePoint = (new flash.geom.Point(triangleRef2._x, triangleRef2._y));
var pointerPoint = (new flash.geom.Point(_root.wholeLeft.leftScreen.pointer._x, _root.wholeLeft.leftScreen.pointer._y));
if (flash.geom.Point.distance(trianglePoint, pointerPoint) < (triangleRef2._width - (triangleRef2._width / 2))) {
var crapPoint = new Object({x:_root.wholeLeft.leftScreen.pointer._x, y:_root.wholeLeft.leftScreen.pointer._y});
_root.wholeLeft.leftScreen.localToGlobal(crapPoint);
_global.crapX = crapPoint.x;
_global.crapY = crapPoint.y;
_root.gotoAndStop("dead");
}
if (triangleRef2._x > (_root.lmask._width + (triangleRef2._width / 2))) {
triangleRef2.removeMovieClip();
arrLeftTriangles.splice(i, 1);
i--;
}
i++;
}
}
function MoveTrianglesDownAndCollide() {
var i = 0;
while (i < arrRightTriangles.length) {
var triangleRef = eval ("_root.wholeRight.rightScreen." + arrRightTriangles[i]);
triangleRef._y = triangleRef._y + fallingSpeed;
var trianglePoint2 = (new flash.geom.Point(triangleRef._x, triangleRef._y));
var pointerPoint2 = (new flash.geom.Point(_root.wholeRight.rightScreen.pointer._x, _root.wholeRight.rightScreen.pointer._y));
if (flash.geom.Point.distance(trianglePoint2, pointerPoint2) < (triangleRef._height - (triangleRef._height / 2))) {
var crapPoint = new Object({x:_root.wholeRight.rightScreen.pointer._x, y:_root.wholeRight.rightScreen.pointer._y});
_root.wholeRight.rightScreen.localToGlobal(crapPoint);
_global.crapX = crapPoint.x;
_global.crapY = crapPoint.y;
_root.gotoAndStop("dead");
}
if (triangleRef._y > (_root.rmask._height + (triangleRef._height / 2))) {
triangleRef.removeMovieClip();
arrRightTriangles.splice(i, 1);
i--;
}
i++;
}
}
function MoveKeyboardPointer() {
_root.wholeLeft.leftScreen.pointer._x = _root.wholeLeft.leftScreen.pointer._x + vecMomentum._x;
_root.wholeLeft.leftScreen.pointer._y = _root.wholeLeft.leftScreen.pointer._y + vecMomentum._y;
}
function KeyboardListener() {
if (((Key.isDown(76) && (Key.isDown(73))) && (Key.isDown(86))) && (Key.isDown(69))) {
_global.god = true;
} else {
_global.god = false;
}
if (Key.isDown(_global.up)) {
vecMomentum._y = vecMomentum._y - numSensitivity;
if (vecMomentum._y < (-1 * maxSpeed)) {
vecMomentum._y = -1 * maxSpeed;
}
} else if (Key.isDown(_global.down)) {
vecMomentum._y = vecMomentum._y + numSensitivity;
if (vecMomentum._y > maxSpeed) {
vecMomentum._y = maxSpeed;
}
} else if (vecMomentum._y > 0) {
vecMomentum._y = vecMomentum._y - friction;
if (Math.abs(vecMomentum._y) < 0.5) {
vecMomentum._y = 0;
}
} else {
vecMomentum._y = vecMomentum._y + friction;
if (Math.abs(vecMomentum._y) < 0.5) {
vecMomentum._y = 0;
}
}
if (Key.isDown(_global.leftward)) {
vecMomentum._x = vecMomentum._x - numSensitivity;
if (vecMomentum._x < (-1 * maxSpeed)) {
vecMomentum._x = -1 * maxSpeed;
}
} else if (Key.isDown(_global.rightward)) {
vecMomentum._x = vecMomentum._x + numSensitivity;
if (vecMomentum._x > maxSpeed) {
vecMomentum._x = maxSpeed;
}
} else if (vecMomentum._x > 0) {
vecMomentum._x = vecMomentum._x - friction;
if (Math.abs(vecMomentum._x) < 0.5) {
vecMomentum._x = 0;
}
} else {
vecMomentum._x = vecMomentum._x + friction;
if (Math.abs(vecMomentum._x) < 0.5) {
vecMomentum._x = 0;
}
}
}
function KeepKeyboardInside() {
if (_root.wholeLeft.leftScreen.pointer._x <= 5) {
_root.wholeLeft.leftScreen.pointer._x = 5;
if (_root.wholeLeft.leftScreen.pointer._y <= 5) {
_root.wholeLeft.leftScreen.pointer._y = 5;
} else if (_root.wholeLeft.leftScreen.pointer._y >= (_root.rmask._height - 5)) {
_root.wholeLeft.leftScreen.pointer._y = _root.rmask._height - 5;
}
} else if (_root.wholeLeft.leftScreen.pointer._x >= (_root.rmask._width - 5)) {
_root.wholeLeft.leftScreen.pointer._x = _root.rmask._width - 5;
if (_root.wholeLeft.leftScreen.pointer._y <= 5) {
_root.wholeLeft.leftScreen.pointer._y = 5;
} else if (_root.wholeLeft.leftScreen.pointer._y >= (_root.rmask._height - 5)) {
_root.wholeLeft.leftScreen.pointer._y = _root.rmask._height - 5;
}
} else if (_root.wholeLeft.leftScreen.pointer._y <= 5) {
_root.wholeLeft.leftScreen.pointer._y = 5;
} else if (_root.wholeLeft.leftScreen.pointer._y >= (_root.rmask._height - 5)) {
_root.wholeLeft.leftScreen.pointer._y = _root.rmask._height - 5;
}
}
function KeepMouseInside() {
var _local2 = new Object({x:_xmouse, y:_ymouse});
_root.wholeRight.rightScreen.globalToLocal(_local2);
_root.wholeRight.rightScreen.pointer._x = _local2.x;
_root.wholeRight.rightScreen.pointer._y = _local2.y;
if (_root.wholeRight.rightScreen.pointer._x <= 0) {
_root.wholeRight.rightScreen.pointer._x = 0;
if (_root.wholeRight.rightScreen.pointer._y <= 0) {
_root.wholeRight.rightScreen.pointer._y = 0;
} else if (_root.wholeRight.rightScreen.pointer._y >= _root.rmask._height) {
_root.wholeRight.rightScreen.pointer._y = _root.rmask._height;
}
} else if (_root.wholeRight.rightScreen.pointer._x >= _root.rmask._width) {
_root.wholeRight.rightScreen.pointer._x = _root.rmask._width;
if (_root.wholeRight.rightScreen.pointer._y <= 0) {
_root.wholeRight.rightScreen.pointer._y = 0;
} else if (_root.wholeRight.rightScreen.pointer._y >= _root.rmask._height) {
_root.wholeRight.rightScreen.pointer._y = _root.rmask._height;
}
} else if (_root.wholeRight.rightScreen.pointer._y <= 0) {
_root.wholeRight.rightScreen.pointer._y = 0;
} else if (_root.wholeRight.rightScreen.pointer._y >= _root.rmask._height) {
_root.wholeRight.rightScreen.pointer._y = _root.rmask._height;
}
}
stop();
var vecMomentum = new Vector();
var maxSpeed;
var friction;
var numSensitivity;
var minCounter;
var maxCounter;
var minCounter2;
var minCounter3;
var minCounter4;
var maxCounter2;
var maxCounter3;
var maxCounter4;
var fallingSpeed;
var fallingSpeed2;
var slidingSpeed;
var slidingSpeed2;
var counter;
var counter2;
var counter3;
var counter4;
var triangleDepth;
var triangleDepth2;
var powerDepth;
var arrRightTriangles;
var arrLeftTriangles;
var effectTimer;
var effectLength;
var arrLeftPower;
var arrRightPower;
var myTime;
var startTime;
var myScore;
var currentScore;
var lastSampleTime;
var blnDouble;
var stageState;
var increm;
stop();
Instance of Symbol 13 MovieClip in Frame 32
onClipEvent (load) {
_root.Setup();
}
onClipEvent (enterFrame) {
_root.Run();
}
Frame 37
_root.circle._x = _global.crapX;
_root.circle._y = _global.crapY;
_global.gotHere = false;
stop();
Instance of Symbol 13 MovieClip in Frame 37
onClipEvent (enterFrame) {
_root.navi2.score_txt.text = "Your Score: " + _global.userScore;
if (!_global.tested) {
if (_global.timeToFade) {
_root.circle.gotoAndPlay(2);
_global.tested = true;
}
}
}
Frame 42
trace("loaded");
gotoAndPlay ("doneLoading");
Frame 43
gotoAndPlay ("doneLoading");
Frame 46
trace("fart");
Frame 52
gotoAndPlay ("intro");
Symbol 3 MovieClip [powerUp] Frame 516
_global.getRidOf = true;
stop();
Symbol 5 MovieClip [menuTriangle] Frame 1
stop();
Symbol 5 MovieClip [menuTriangle] Frame 2
stop();
Symbol 5 MovieClip [menuTriangle] Frame 100
stop();
Symbol 159 MovieClip [__Packages.SoundPlayer] Frame 0
class SoundPlayer
{
var channelsAvailable, channel1, channel2, channel3, externalSoundVolume;
function SoundPlayer () {
channelsAvailable = new Array(true, true, true);
channel1 = new Sound();
channel2 = new Sound();
channel3 = new Sound();
externalSoundVolume = 100;
}
function CleanSounds(intIndex) {
channelsAvailable[intIndex] = true;
}
function PlaySound(linkIdentifier) {
if (_global.soundOn == true) {
var thisRef = this;
if (channelsAvailable[0] == true) {
channelsAvailable[0] = false;
delete channel1;
channel1 = new Sound();
channel1.attachSound(linkIdentifier);
channel1.setVolume(100);
channel1.start(0, 0);
channel1.onSoundComplete = function () {
thisRef.CleanSounds(0);
};
} else if (channelsAvailable[1] == true) {
channelsAvailable[1] = false;
delete channel2;
channel2 = new Sound();
channel2.attachSound(linkIdentifier);
channel2.setVolume(70);
channel2.start(0, 0);
channel2.onSoundComplete = function () {
thisRef.CleanSounds(1);
};
} else {
channelsAvailable[0] = false;
delete channel1;
channel1 = new Sound();
channel1.attachSound(linkIdentifier);
channel1.setVolume(70);
channel1.start(0, 0);
channel1.onSoundComplete = function () {
thisRef.CleanSounds(0);
};
}
}
}
function PlayBubbleSound(linkIdentifier) {
if (_global.soundOn == true) {
var thisRef = this;
if (channelsAvailable[2] == true) {
channelsAvailable[2] = false;
delete channel3;
channel3 = new Sound();
channel3.attachSound(linkIdentifier);
channel3.setVolume(100);
channel3.start(0, 0);
channel3.onSoundComplete = function () {
thisRef.CleanSounds(2);
};
}
}
}
function PlayExternalSound(urlPath) {
var thisRef = this;
if (channelsAvailable[0] == true) {
channelsAvailable[0] = false;
delete channel1;
channel1 = new Sound();
channel1.loadSound(urlPath, false);
channel1.setVolume(externalSoundVolume);
channel1.onLoad = function (loadedOK) {
if (loadedOK) {
this.start();
}
};
channel1.onSoundComplete = function () {
thisRef.CleanSounds(0);
};
} else if (channelsAvailable[1] == true) {
channelsAvailable[1] = false;
delete channel2;
channel2 = new Sound();
channel2.loadSound(urlPath, false);
channel2.setVolume(externalSoundVolume);
channel2.onLoad = function (loadedOK) {
if (loadedOK) {
this.start();
}
};
channel2.onSoundComplete = function () {
thisRef.CleanSounds(1);
};
} else {
channelsAvailable[0] = false;
delete channel1;
channel1 = new Sound();
channel1.loadSound(urlPath, false);
channel1.setVolume(externalSoundVolume);
channel1.onLoad = function (loadedOK) {
if (loadedOK) {
this.start();
}
};
channel1.onSoundComplete = function () {
thisRef.CleanSounds(0);
};
}
}
}
Symbol 160 MovieClip [__Packages.Music] Frame 0
class Music
{
var mySound, volume, currentTrack, inCrossfade, state, changeSongs, maxVolume, targetVolume, volumeSpeed;
function Music () {
mySound = new Sound();
volume = 100;
currentTrack = "";
inCrossfade = false;
state = false;
changeSongs = true;
maxVolume = 60;
}
function StartFastSound() {
currentTrack = "fast";
mySound.stop();
mySound.attachSound(currentTrack);
volume = maxVolume;
mySound.setVolume(volume);
mySound.start(0, 2000);
state = true;
}
function SetMaxVolume(vol) {
maxVolume = vol;
}
function SetTrack(setMusic) {
if (setMusic == currentTrack) {
changeSongs = false;
} else {
changeSongs = true;
currentTrack = setMusic;
}
}
function Play() {
mySound.stop();
mySound.attachSound(currentTrack);
volume = maxVolume;
mySound.setVolume(volume);
mySound.start(0, 2000);
state = true;
}
function Stop() {
mySound.stop();
state = false;
}
function PlayWithCrossFade(secondDuration) {
if (changeSongs == true) {
if (state == true) {
inCrossfade = true;
targetVolume = 0;
var _local2 = secondDuration * 30;
volumeSpeed = (targetVolume - volume) / (_local2 / 2);
} else {
mySound.stop();
mySound.attachSound(currentTrack);
if (currentTrack != "slow") {
trace(currentTrack);
trace("looped");
mySound.start(0, 2000);
} else {
trace("no loop");
mySound.start(0, 0);
var thisRef = this;
mySound.onSoundComplete = function () {
thisRef.StartFastSound();
};
}
state = true;
inCrossfade = false;
targetVolume = maxVolume;
volume = 0;
mySound.setVolume(0);
var _local2 = secondDuration * 30;
volumeSpeed = (targetVolume - volume) / _local2;
}
}
}
function RunPlayer() {
if (targetVolume != volume) {
var _local2;
_local2 = volume + volumeSpeed;
if ((volumeSpeed < 0) && (_local2 < 0)) {
_local2 = 0;
} else if ((volumeSpeed > 0) && (_local2 > targetVolume)) {
_local2 = targetVolume;
}
volume = _local2;
mySound.setVolume(_local2);
}
if (inCrossfade == true) {
var thisMusic = this;
if (volume <= 0) {
volumeSpeed = volumeSpeed * -1;
inCrossfade = false;
targetVolume = maxVolume;
mySound.stop();
mySound.attachSound(currentTrack);
mySound.setVolume(0);
if (currentTrack != "slow") {
trace(currentTrack);
trace("looped");
mySound.start(0, 2000);
} else {
trace("no loop");
mySound.start(0, 0);
mySound.onSoundComplete = function () {
thisMusic.StartFastSound();
};
}
state = true;
}
}
}
}
Symbol 161 MovieClip [__Packages.Vector] Frame 0
class Vector
{
var _x, _y;
function Vector () {
_x = 0;
_y = 0;
}
}
Symbol 162 MovieClip [__Packages.ab20] Frame 0
class ab20
{
function ab20 () {
}
static function fr(str, find, replace, limit) {
var _local2 = str;
var _local3;
var _local4;
var _local9;
if (!(typeof(find) === "string")) {
if (replace === undefined) {
replace = [""];
} else if (typeof(replace) === "string") {
replace = [replace];
}
} else {
find = [find];
replace = [replace];
}
_local9 = find.length;
var _local1 = 0;
var _local5 = 0;
while (_local1 < _local9) {
while (_local4 = _local2.indexOf(find[_local1]) , !(_local4 === -1)) {
if ((!(limit === undefined)) && (_local5 >= limit)) {
break;
}
_local3 = new Array(_local2.substring(0, _local4), _local2.substr(_local4, find[_local1].length), _local2.substr(_local4 + find[_local1].length));
_local3[1] = ((replace[_local1] === undefined) ? "" : (replace[_local1]));
_local2 = (_local3[0] + _local3[1]) + _local3[2];
_local5++;
}
_local1++;
_local5 = 0;
}
return(_local2);
}
static function encodeNum(num) {
var _local11 = getTimer();
var _local6 = ["aZ", "Zy", "Zx"];
var _local7 = ["zH", "jY", "uH"];
var _local4 = ["Ah", "Xh", "hO"];
var _local5 = ["Ub", "Bu", "Cb"];
var _local8 = ["Qc", "Pc", "Pe"];
var _local9 = ["Ei", "Ie", "Ef"];
var _local3 = ["Fk", "kG", "Kg"];
var _local13 = ["Jl", "Lm", "Mn"];
var _local12 = ["No", "Np", "Qp"];
var _local2 = ["Rs", "St", "Sw"];
var _local14 = random(3);
num = String(num);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
if (_local14 == 1) {
num = fr(num, "5", _local8[0]);
} else {
num = fr(num, "5", _local8[random(3)]);
}
num = fr(num, "4", _local9[random(3)]);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "2", _local13[random(3)]);
num = fr(num, "1", _local12[random(3)]);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
var _local10 = getTimer() - _local11;
num = (num + "Dd") + _local10;
return(num);
}
static function encodeStr8bytes(str) {
var _local1 = 0;
var _local4 = str.length;
var _local3 = "%";
var _local2 = ["%", "$", "#", "@"];
while (_local1 < _local4) {
_local3 = _local3 + (str.charCodeAt(_local1) + _local2[random(_local2.length)]);
_local1++;
}
return(_local3);
}
static function decodeStr8bytes(str) {
str = ("PIE" + str) + "PIE";
str = fr(str, "%", "D");
str = fr(str, "$", "D");
str = fr(str, "#", "D");
str = fr(str, "@", "D");
str = fr(str, "PIED", "");
str = fr(str, "DPIE", "");
var _local3 = str.split("D");
var _local4 = "";
var _local1 = 0;
var _local5 = _local3.length;
while (_local1 < _local5) {
_local4 = _local4 + String(String.fromCharCode(_local3[_local1]));
_local1++;
}
return(_local4);
}
static function decodeNum(str) {
var _local2 = ["aZ", "Zy", "Zx", "zH", "jY", "uH", "Ah", "Xh", "hO", "Ub", "Bu", "Cb", "Qc", "Pc", "Pe", "Ei", "Ie", "Ef", "Fk", "kG", "Kg", "Jl", "Lm", "Mn", "No", "Np", "Qp", "Rs", "St", "Sw"];
str = String(str);
str = str.split("Dd");
str = str[0];
str = fr(str, _local2[0], "9");
str = fr(str, _local2[1], "9");
str = fr(str, _local2[2], "9");
str = fr(str, _local2[3], "8");
str = fr(str, _local2[4], "8");
str = fr(str, _local2[5], "8");
str = fr(str, _local2[6], "7");
str = fr(str, _local2[7], "7");
str = fr(str, _local2[8], "7");
str = fr(str, _local2[9], "6");
str = fr(str, _local2[10], "6");
str = fr(str, _local2[11], "6");
str = fr(str, _local2[12], "5");
str = fr(str, _local2[13], "5");
str = fr(str, _local2[14], "5");
str = fr(str, _local2[15], "4");
str = fr(str, _local2[16], "4");
str = fr(str, _local2[17], "4");
str = fr(str, _local2[18], "3");
str = fr(str, _local2[19], "3");
str = fr(str, _local2[20], "3");
str = fr(str, _local2[21], "2");
str = fr(str, _local2[22], "2");
str = fr(str, _local2[23], "2");
str = fr(str, _local2[24], "1");
str = fr(str, _local2[25], "1");
str = fr(str, _local2[26], "1");
str = fr(str, _local2[27], "0");
str = fr(str, _local2[28], "0");
str = fr(str, _local2[29], "0");
var _local3 = Number(str);
return(_local3);
}
}
Symbol 22 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 29 MovieClip Frame 140
stop();
Instance of Symbol 33 MovieClip in Symbol 34 MovieClip Frame 150
on (release) {
getURL ("http://www.herointeractive.com", "_blank");
}
Instance of Symbol 33 MovieClip in Symbol 34 MovieClip Frame 179
on (release) {
getURL ("http://www.herointeractive.com", "_blank");
}
Symbol 34 MovieClip Frame 328
_root.gotoAndPlay("main");
Symbol 36 MovieClip Frame 1
function StartTriangles() {
arrMenuTriangles = new Array();
minCounter = 20;
maxCounter = 30;
counter = 0;
triangleDepth = 1000;
}
function RunTriangles() {
GenerateFallingTriangles();
MoveTrianglesDownAndCollide();
}
function GenerateFallingTriangles() {
if (counter == 0) {
var startX = (Math.random() * Stage.width);
var tempName = ("fallingTriangle_" + triangleDepth);
var myFallSpeed = (Math.round(Math.random() * 4) + 1);
_root.faller.attachMovie("menuTriangle", tempName, triangleDepth);
arrMenuTriangles.push({name:tempName, speed:myFallSpeed});
var triangleRef = eval ("this." + tempName);
triangleRef._x = startX;
triangleRef._y = -(triangleRef._height / 2);
triangleRef._rotation = Math.random() * 360;
triangleRef._yscale = (triangleRef._xscale = (myFallSpeed * 15) + 25);
counter = Math.round(Math.random() * (maxCounter - minCounter)) + minCounter;
triangleDepth++;
} else {
counter--;
}
}
function MoveTrianglesDownAndCollide() {
var i = 0;
while (i < arrMenuTriangles.length) {
var triangleRef = eval ("this." + arrMenuTriangles[i].name);
triangleRef._y = triangleRef._y + arrMenuTriangles[i].speed;
if (triangleRef._y > (Stage.height + (triangleRef._height / 2))) {
triangleRef.removeMovieClip();
arrMenuTriangles.splice(i, 1);
i--;
}
i++;
}
}
var minCounter;
var maxCounter;
var fallingSpeed;
var counter;
var triangleDepth;
var arrMenuTriangles;
stop();
Instance of Symbol 13 MovieClip in Symbol 36 MovieClip Frame 1
onClipEvent (load) {
this._parent.StartTriangles()();
}
onClipEvent (enterFrame) {
this._parent.RunTriangles();
}
Symbol 38 MovieClip Frame 30
stop();
Symbol 51 MovieClip Frame 45
_global.gotHere = true;
stop();
Symbol 52 Button
on (release) {
_global.SoundManager.PlaySound("button");
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 53 Button
on (release) {
_global.SoundManager.PlaySound("button");
_root.gotoAndPlay("credits");
}
Symbol 54 Button
on (release) {
_global.SoundManager.PlaySound("button");
_root.gotoAndPlay("settings");
}
Symbol 55 Button
on (release) {
_global.SoundManager.PlaySound("button");
_root.gotoAndPlay("game");
}
Symbol 56 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 45
stop();
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 2
stop();
Instance of Symbol 61 MovieClip "low" in Symbol 62 MovieClip Frame 1
onClipEvent (load) {
if (_quality == "LOW") {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_quality != "LOW") {
this.gotoAndStop("off");
}
}
on (release) {
_quality = "LOW";
_global.SoundManager.PlaySound("button");
this._parent.high.gotoAndStop("off");
this._parent.med.gotoAndStop("off");
}
Instance of Symbol 61 MovieClip "med" in Symbol 62 MovieClip Frame 1
onClipEvent (load) {
if (_quality == "MEDIUM") {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_quality != "MEDIUM") {
this.gotoAndStop("off");
}
}
on (release) {
_quality = "MEDIUM";
_global.SoundManager.PlaySound("button");
this._parent.high.gotoAndStop("off");
this._parent.low.gotoAndStop("off");
}
Instance of Symbol 61 MovieClip "high" in Symbol 62 MovieClip Frame 1
onClipEvent (load) {
if (_quality == "HIGH") {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_quality != "HIGH") {
this.gotoAndStop("off");
}
}
on (release) {
_quality = "HIGH";
_global.SoundManager.PlaySound("button");
this._parent.low.gotoAndStop("off");
this._parent.med.gotoAndStop("off");
}
Instance of Symbol 61 MovieClip "musicOn" in Symbol 62 MovieClip Frame 1
onClipEvent (load) {
if (_global.musicOn == true) {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_global.musicOn != true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.SoundManager.PlaySound("button");
_global.musicOn = true;
this._parent.musicOff.gotoAndStop("off");
_global.myMusicPlayer.SetTrack("titleMusic");
_global.myMusicPlayer.SetMaxVolume(100);
_global.myMusicPlayer.Play();
}
Instance of Symbol 61 MovieClip "musicOff" in Symbol 62 MovieClip Frame 1
onClipEvent (load) {
if (_global.musicOn == false) {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_global.musicOn == true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.SoundManager.PlaySound("button");
_global.musicOn = false;
this._parent.musicOn.gotoAndStop("off");
_global.myMusicPlayer.Stop();
}
Instance of Symbol 61 MovieClip "soundsOn" in Symbol 62 MovieClip Frame 1
onClipEvent (load) {
if (_global.soundOn == true) {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_global.soundOn != true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.soundOn = true;
this._parent.soundsOff.gotoAndStop("off");
_global.SoundManager.PlaySound("button");
}
Instance of Symbol 61 MovieClip "soundsOff" in Symbol 62 MovieClip Frame 1
onClipEvent (load) {
if (_global.soundOn == false) {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_global.soundOn == true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.soundOn = false;
this._parent.soundsOn.gotoAndStop("off");
}
Symbol 64 MovieClip Frame 44
stop();
Symbol 69 Button
on (rollOver) {
gotoAndPlay (30);
}
on (rollOut) {
gotoAndPlay (41);
}
on (release) {
_global.SoundManager.PlaySound("button");
_root.gotoAndPlay("main");
}
Symbol 70 Button
on (rollOver) {
gotoAndPlay (51);
}
on (rollOut) {
gotoAndPlay (62);
}
on (release) {
_global.SoundManager.PlaySound("button");
_root.gotoAndPlay("settings2");
}
Symbol 71 MovieClip Frame 29
stop();
Symbol 71 MovieClip Frame 40
stop();
Symbol 71 MovieClip Frame 50
gotoAndStop (29);
Symbol 71 MovieClip Frame 61
stop();
Symbol 71 MovieClip Frame 71
gotoAndStop (29);
Symbol 72 Button
on (rollOver) {
gotoAndPlay (30);
}
on (rollOut) {
gotoAndPlay (41);
}
on (release) {
_root.gotoAndPlay("main");
}
Symbol 73 MovieClip Frame 29
stop();
Symbol 73 MovieClip Frame 40
stop();
Symbol 73 MovieClip Frame 50
gotoAndStop (29);
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
stop();
Symbol 88 MovieClip Frame 1
this._alpha = 0;
Symbol 89 Button
on (rollOver) {
gotoAndPlay (31);
}
on (rollOut) {
gotoAndPlay (42);
}
on (release) {
_global.SoundManager.PlaySound("button");
_root.gotoAndPlay("main");
}
Instance of Symbol 88 MovieClip in Symbol 90 MovieClip Frame 16
on (release) {
getURL ("http://www.herointeractive.com/", "_blank");
}
Symbol 90 MovieClip Frame 30
stop();
Symbol 90 MovieClip Frame 41
stop();
Symbol 90 MovieClip Frame 51
gotoAndStop (30);
Symbol 95 MovieClip Frame 60
stop();
Symbol 96 MovieClip Frame 20
stop();
Symbol 99 MovieClip Frame 20
stop();
Symbol 103 MovieClip Frame 100
stop();
Symbol 104 MovieClip Frame 20
stop();
Instance of Symbol 104 MovieClip "rightScreen" in Symbol 105 MovieClip Frame 1
/* no clip actions */
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 2
stop();
Symbol 111 MovieClip Frame 1
stop();
if (_global.changedKeys == true) {
this.inside.gotoAndStop(2);
} else {
this.inside.gotoAndStop(1);
}
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 266
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 266
stop();
Symbol 117 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 84
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 77
stop();
Symbol 128 MovieClip Frame 20
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 15
stop();
Symbol 139 MovieClip Frame 1
this.score_txt.text = "Score: " + _global.userScore;
this.time_txt.text = _global.userTime;
stop();
Symbol 140 Button
on (rollOver) {
gotoAndPlay (16);
}
on (rollOut) {
gotoAndPlay (26);
}
on (release) {
_global.SoundManager.PlaySound("button");
_root.gotoAndPlay("main");
}
Symbol 141 Button
on (rollOver) {
gotoAndPlay (36);
}
on (rollOut) {
gotoAndPlay (47);
}
on (release) {
_global.SoundManager.PlaySound("button");
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 142 Button
on (rollOver) {
gotoAndPlay (57);
}
on (rollOut) {
gotoAndPlay (68);
}
on (release) {
_global.SoundManager.PlaySound("button");
gotoAndPlay (78);
}
Symbol 143 Button
on (rollOver) {
gotoAndPlay (142);
}
on (rollOut) {
gotoAndPlay (153);
}
on (release) {
_global.SoundManager.PlaySound("button");
_root.ResetGame();
}
Symbol 149 Button
on (rollOver) {
gotoAndPlay (122);
}
on (rollOut) {
gotoAndPlay (132);
}
on (press) {
_global.SoundManager.PlaySound("button");
_root.gotoAndPlay("main");
}
Symbol 150 Button
on (rollOver) {
gotoAndPlay (101);
}
on (rollOut) {
gotoAndPlay (112);
}
on (release) {
_global.SoundManager.PlaySound("button");
trace("submitted Score");
var userName = name_txt.text;
ab20_09 = new LoadVars();
ab20_09.z = userName;
ab20_09.x = ab20.encodeNum(_global.userScore);
ab20_09.c = 1418;
ab20_09.v = "WPZKES";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
getURL ("http://www.armorbot.com/mytable/?id=1418", "_blank");
_root.gotoAndPlay("main");
}
Symbol 151 Button
on (rollOver) {
gotoAndPlay (142);
}
on (rollOut) {
gotoAndPlay (153);
}
on (release) {
_root.ResetGame();
}
Symbol 152 MovieClip Frame 15
stop();
Symbol 152 MovieClip Frame 25
stop();
Symbol 152 MovieClip Frame 35
gotoAndStop (15);
Symbol 152 MovieClip Frame 46
stop();
Symbol 152 MovieClip Frame 56
gotoAndStop (15);
Symbol 152 MovieClip Frame 67
stop();
Symbol 152 MovieClip Frame 77
gotoAndStop (15);
Symbol 152 MovieClip Frame 78
_global.timeToFade = true;
Symbol 152 MovieClip Frame 100
stop();
Symbol 152 MovieClip Frame 111
stop();
Symbol 152 MovieClip Frame 121
gotoAndStop (100);
Symbol 152 MovieClip Frame 131
stop();
Symbol 152 MovieClip Frame 141
gotoAndStop (100);
Symbol 152 MovieClip Frame 152
stop();
Symbol 152 MovieClip Frame 162
gotoAndStop (15);