Frame 2
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
Stage.showMenu = false;
_quality = "high";
Frame 3
if (_root.percentLoaded == 100) {
gotoAndStop (4);
} else {
gotoAndPlay (2);
}
Instance of Symbol 125 MovieClip in Frame 4
on (release) {
getURL ("http://armorgames.com", "_blank");
}
Frame 5
function setMusic(music) {
if (musicSwitch == true) {
stopAllSounds();
MUSIC.gotoAndStop(music);
MUSIC.gotoAndStop(1);
}
lastSound = music;
}
function loadSave(destructive) {
if (savefile.data.saveActive == undefined) {
portalButtonSwitch = false;
}
if ((savefile.data.saveActive != undefined) && (destructive != true)) {
medalArray = savefile.data.medalArray;
portalButtonSwitch = savefile.data.portalButtonSwitch;
trace("SAVE LOADED");
} else {
medalArray = [false, false, false, false, false, false, false, false, false];
trace("SAVE CREATED");
updateSave();
}
}
function updateSave() {
savefile.data.medalArray = medalArray;
savefile.data.portalButtonSwitch = portalButtonSwitch;
savefile.data.saveActive = true;
trace("SAVE UPDATED");
}
function newMedal(medal) {
if (medalArray[medal] == false) {
trace("MEDAL AWARDED" + medal);
var _local2 = MEDALS.attachMovie("MedalPrompt", "M" + medalCounter, medalCounter++);
_local2.gotoAndStop(medal);
medalArray[medal] = true;
updateSave();
} else {
trace("MEDAL INACTIVE" + medal);
}
}
function gotoFrame(ID) {
FADER._alpha = 100;
_root.gotoAndStop(ID);
}
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = par3;
par227.c2NvcmUx = par4 + "Z";
par227.c2NvcmUx = par227.c2NvcmUx.split("0").join("U");
par227.c2NvcmUx = par227.c2NvcmUx.split("").join("A");
par227.c2NvcmUx = par227.c2NvcmUx.split("AU").join("Y");
par227.c2NvcmUx = par227.c2NvcmUx.split("A1").join("B");
par227.c2NvcmUx = par227.c2NvcmUx.split(".").join("N");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/as3_v0.php", par228, "POST");
}
Color.prototype.setTint = function (r, g, b, amount) {
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = 100 - amount));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
stop();
var musicSwitch = true;
var lastSound = "";
createEmptyMovieClip("MEDALS", 10);
var medalArray;
var savefile = SharedObject.getLocal("SHIFT2SAVENORM");
loadSave(false);
var medalCounter = 0;
stop();
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
if (((domain != "") && (domain != "addictinggames.com")) && (domain != "agstage.shockwave.com")) {
_root.gotoAndStop("armorBlock");
}
Instance of Symbol 4 MovieClip "FADER" in Frame 5
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 5);
}
}
Frame 6
function onEnterFrame() {
if (resetAllActive == true) {
resetTimer++;
if (resetTimer == 40) {
mouseInverse = false;
WS_Active = false;
WC_Active = false;
FM_Active = false;
FC_Active = false;
YS_Active = false;
resetAllActive = false;
menuAdventureDone = true;
menuText.text = "AH WELL, HAVE FUN WITH THE GAME, OK? AND NEXT TIME, REMEMBER TO ALWAYS FOLLOW INSTRUCTIONS.";
}
} else if (YS_Active == true) {
if (YS_Counter > 5) {
menuText.text = "GO ON THEN, YOU DESERVE A MEDAL FOR YOUR PATIENCE.CLICK THE ANGRY FACE AGAIN TO END THIS TORTURE.";
badFace._visible = true;
}
} else if (FC_Active == true) {
FM_Menu._y = FM_Menu._y + ((40 - FM_Menu._y) / 5);
if ((FC_Counter > 12) && (FM_Menu._alpha > 0)) {
menuText.text = ("YOU HAVE CLICKED IT " + FC_Counter) + " TIMES OUT OF 40.";
}
} else if (FM_Active == true) {
if (_ymouse > 80) {
FM_Menu._y = FM_Menu._y + ((40 - FM_Menu._y) / 5);
FM_Active_Switch = false;
} else {
FM_Menu._y = _ymouse - 40;
if ((FM_Menu._y < -10) && (FM_Active_Switch == false)) {
FM_Counter++;
if (FM_Counter == 2) {
menuText.text = "LOL";
FM_Counter++;
} else if (FM_Counter == 4) {
menuText.text = "IF YOU'RE FAST ENOUGH YOU CAN CLICK IT JUST BEFORE IT VANISHES.";
FM_Counter++;
} else if (FM_Counter == 8) {
menuText.text = "KEEP TRYING!";
FM_Counter++;
} else if (FM_Counter == 12) {
menuText.text = "OK OK, I GIVE UP, I'LL LET YOU PLAY THE GAME AGAIN... IF YOU CLICK THE SETTINGS BUTTON 40 TIMES.";
FC_Active = true;
}
FM_Active_Switch = true;
}
}
}
if (WS_Active == false) {
WS._x = -800;
} else {
Mouse.show();
WS._x = 0;
}
buttonShield._visible = true;
if ((mouseInverse == true) && (WS_Active == false)) {
buttonShield._x = 250;
var _local1 = 500 - _xmouse;
var _local2 = 500 - _ymouse;
MOUSE._x = MOUSE._x + ((_local1 - MOUSE._x) / 5);
MOUSE._y = MOUSE._y + ((_local2 - MOUSE._y) / 5);
} else {
buttonShield._x = -200;
}
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
}
function flipTitleScreen() {
if (_rotation == 0) {
_rotation = 180;
_x = 500;
_y = 500;
} else {
_rotation = 0;
_x = 0;
_y = 0;
}
}
function onMouseMove() {
if (FM_Active == false) {
if ((mouseInverse == false) && (WS_Active == false)) {
MOUSE._x = _xmouse;
MOUSE._y = _ymouse;
} else if (WS_Active == false) {
Mouse.hide();
}
updateAfterEvent();
} else {
Mouse.show();
MOUSE._visible = false;
}
}
LevelNo = 0;
editorActive = false;
stop();
setMusic("title");
var playTime = 0;
buttonShield._alpha = 0;
var WS_Active = false;
var WC_Active = false;
var instLevel = 0;
var FM_Active = false;
var FM_Active_Switch = false;
var FM_Counter = 0;
var FC_Active = false;
var FC_Counter = 0;
var YS_Active = false;
var YS_Counter = 0;
var resetAllActive = false;
var resetTimer = 0;
var menuAdventureDone = false;
MS._visible = false;
MSPos = MS._x;
MS._x = 2000;
if (medalArray[7] == true) {
badFace._x = 2000;
}
var menuAdventureBegun = false;
Mouse.hide();
var mouseInverse = false;
Instance of Symbol 179 MovieClip "MS" in Frame 6
onClipEvent (mouseDown) {
if (this.hitTest(_parent.MOUSE) && (_alpha == 100)) {
_parent.WS_Active = true;
_visible = false;
_parent.MOUSE._visible = false;
}
}
Instance of Symbol 200 MovieClip "buttonShield" in Frame 6
on (release) {
_rotation = 0;
}
Instance of Symbol 179 MovieClip "FM_Menu" in Frame 6
onClipEvent (load) {
_alpha = 200;
}
on (release) {
if (_parent.FC_Active == true) {
_alpha = (_alpha - 6);
_parent.FC_Counter++;
if (_alpha <= 0) {
_parent.FC_Counter = 0;
_parent.menuText.text = "OH...WHERE DID IT GO? MAYBE YOU SHOULD TRY THOSE BUTTONS AGAIN. ARE THEY WORKING NOW? IT WOULD HAVE BEEN BETTER IF YOU'D LISTENED TO ME IN THE FIRST PLACE, RIGHT?";
_parent.YS_Active = true;
_x = 1000;
_y = 1000;
}
}
}
Instance of Symbol 4 MovieClip in Frame 6
on (release) {
getURL ("http://armorgames.com/play/751/shift", "_blank");
}
Frame 7
Mouse.show();
Instance of Symbol 209 MovieClip in Frame 7
onClipEvent (load) {
if (_root.portalButtonSwitch == true) {
_x = -2000;
}
}
Frame 8
Mouse.show();
Frame 10
var i = 0;
while (i < medalArray.length) {
if (medalArray[i] == true) {
this["med_" + i]._alpha = 100;
}
i++;
}
Frame 11
var secretCount = 0;
var i = 0;
while (i < medalArray.length) {
if (medalArray[i] == true) {
secretCount++;
}
i++;
}
if (secretCount < 4) {
itankBut._alpha = 20;
}
if (secretCount < 7) {
clasBut._alpha = 20;
}
Frame 14
stopAllSounds();
Instance of Symbol 4 MovieClip in Frame 14
onClipEvent (load) {
if (_root.lastFrame == "EXTRAS") {
_parent.outputText.text = "LOADING SHIFT-ED PLEASE WAIT...";
} else {
_parent.outputText.text = "EXITING SHIFT-ED PLEASE WAIT...";
}
var timer = (80 + random(20));
}
onClipEvent (enterFrame) {
timer--;
if (timer == 0) {
if (_root.lastFrame == "EXTRAS") {
_root.gotoFrame("EDITORTITLE");
} else {
_root.gotoFrame("EXTRAS");
}
}
}
Frame 15
stop();
editorActive = true;
Stage.scaleMode = "noScale";
Stage.showMenu = false;
_root.backTo = "";
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
domain = domain.toLowerCase();
if (((domain != "") && (domain != "armorblog.com")) && (domain != "wii-flash.com")) {
_root.gotoAndStop("block");
}
Instance of Symbol 272 MovieClip in Frame 15
on (release) {
_root.backTo = "TITLE";
_root.gotoAndStop("EDITOR");
}
Instance of Symbol 272 MovieClip in Frame 15
on (release) {
_root.backTo = "LOADER";
_root.gotoAndStop("LOADER");
}
Instance of Symbol 272 MovieClip in Frame 15
on (release) {
_root.backTo = "SAMPLES";
_root.gotoAndStop("SAMPLES");
}
Instance of Symbol 272 MovieClip in Frame 15
on (release) {
_root.lastFrame = "EDITOR";
_root.gotoFrame("EDITORLOAD");
}
Frame 16
stop();
Instance of Symbol 272 MovieClip in Frame 16
on (release) {
_root.editorLevel = _parent.LevelCodeBox.text;
_root.gotoAndStop("EDITOR");
}
Instance of Symbol 272 MovieClip in Frame 16
on (release) {
_root.gotoAndStop("EDITORTITLE");
}
Instance of Symbol 272 MovieClip in Frame 17
on (release) {
_root.editorLevel = "0Z10Z10Z10Z10Z10XX110Z10Z10Z0Z10Z10Z10Z10Z18XX110Z10Z10Z0Z10Z10Z10Z10Z10XX110Z10Z10Z0Z10Z100Z0Z10Z10Z100Z20X0Z10Z10Z0Z10Z10Z10Z10Z10Z100Z20X0Z10Z10Z00Z00Z0Z10Z10Z10XXY10Z10Z00Z00ZACZ00XXY0Z10Z00Z00ZA020Z10XXY0Z10Z00Z00ZA020Z10XX10Z10Z10Z00Z00Z00ZABXY10Z10Z10Z00Z00Z00Z00Z00Z90XX10Z10Z10Z00Z00Z00Z00Z00Z00XXXY";
_root.gotoAndStop("EDITOR");
}
Instance of Symbol 272 MovieClip in Frame 17
on (release) {
_parent.LevelCodeBox.text = "10Z10Z10Z10Z1211210Z10Z00Z9211200Z10Z10Z10Z101125011210Z1211210Z00Z10Z10Z00Z10Z10Z1011210Z10Z10Z1211200Z10Z10Z10ZC0010Z10Z10Z10Z10Z10Z00Z1211210Z10ZC0080Z10Z10Z00Z10Z10112C001211210Z10Z10ZB0Z10Z10Z00Z00Z10ZC0010Z10Z10Z10ZA010Z10Z10ZC0010ZC0050Z00Z10Z00ZA010Z10Z10ZB0ZB0ZC0010ZAB10Z10Z10Z10Z00ZC0010ZB0Z00ZA010Z10Z10ZA020Z10Z101121011210Z10Z10Z10Z10Z00ZA020Z10Z10Z10Z10Z10Z10Z10Z10Z00ZA020Z10Z5311210Z10Z10Z10Z10Z10Z";
}
Instance of Symbol 272 MovieClip in Frame 17
on (release) {
_parent.LevelCodeBox.text = "70011A080Z50012600115201102001B2001020010200112001AB10ZCZ300113001C011C11C10200110Z12001A010ZC002C122001C012C1120010200110Z1C0110011C010ZC002C122211C012C112001020011C002001ACZC002C122001C012C112001020011C002211AA002C122001C012C11200102001120Z0211C003021150211032112C122001C012C11200102001020Z0211AA002C122001C012C112001020010201102001AA002C122001C012C1120010200102011AA00432112C122001C012C11200102001020110201100211020Z3212120Z300122001C012C11200151001522110201102011020Z3212532121321222001930012C1120011C1";
}
Instance of Symbol 272 MovieClip in Frame 17
on (release) {
_parent.LevelCodeBox.text = "104Z04Z24122Z12Z12Z1234112Z12Z12Z12Z123Z02412824Z0Z52411A010Z00Z50ZA092112024120241210Z12411A010Z00ZA010Z10Z02412024Z0ZAB10Z00ZACZ53411B24Z0ZAB10Z10Z11411B0Z00311A010ZAAAA0Z0041153Z10Z10ZAAAAC0303Z21121211210ZAB00Z00ZAB504110341100Z00Z00Z00Z01411014115341201411C0011411014125341100Z00Z00Z00Z10Z10Z10Z01411C0011411414Z3Z13Z11412114121141210Z014110141101411C006141161411714125141213Z014120141101411014110141101411004116141161411";
}
Instance of Symbol 272 MovieClip in Frame 17
on (release) {
_parent.LevelCodeBox.text = "13232132320Z103Z0Z112Z12Y11BZ1C00404Z012103232C0012Z12Z13Z12Z41132B041103Z02Z1012103ZB3ZA012Y11B041103Z501121012103ZAA0012Z00411C0013Z104Z04Z01212323223232C00531210012112Z304Z3Z10Z10Z10Z13112104Y153112Y2112104Z3Z104Z0Z6211292Z521121041140312104Z041132522104Z3Z104Z0Z6211202Z4032112Z0Z10212113Z2011260312C0013Z10Z10Z10Z02Z12Z30331A02011240112BZ113Z13Z12Z02Z00332AB203221232213Z03Z0Z110Z12ZB0112AB203227Z210Z10Z10Z10Z12Z52321AA005Z12Z12Z252Z8Z140332Z11";
}
Instance of Symbol 272 MovieClip in Frame 17
on (release) {
_root.gotoAndStop("TITLE");
}
Instance of Symbol 272 MovieClip in Frame 17
on (release) {
_root.editorLevel = "12Z13Z13Z13Z13Z13Z13Z13Z13Z13Z13Z10Z12Z13Z13Z13Z13Z13Z13Z02Z13Z13Z13Z13Z12Z5Z1AA0013ZAA0010Z12ZAAB013Z92ZA082Z10Z12ZAAB013ZAA0010Z12ZA010ZAAAC10Z10Z12ZA010ZAAB010Z10Z10Z12ZA010ZAA0010Z10Z10Z10Z12ZA010ZAB10Z10Z10Z10Z10Z12ZA010ZA010Z10Z10Z10Z10Z10Z12ZA010Z53ZC0010Z10Z10Z10Z10Z10Z12ZC0050Z10ZA010Z10Z10Z10Z10Z10Z";
_root.gotoAndStop("EDITOR");
}
Instance of Symbol 272 MovieClip in Frame 17
on (release) {
_root.editorLevel = "AAB0823Z0Z10Z10Z10Z10Z10412AAAC10Z10Z10Z10Z10Z10ZAAB033Z10Z10Z10Z10Z10Z10ZAB00Z00Z00Z10Z4041210Z10Z10Z10ZAAB00343110Z10Z10Z10Z10Z10ZAAB03322110Z10Z10Z10Z10Z10ZAB00Z00Z00Z10Z10Z10Z10Z10Z10ZAAC0Z0252110Z4042210Z10Z10Z12521AAC0Z3333110Z10Z10Z10Z10Z10422ACZACZ10Z10Z10Z10Z10Z10ZB012200ZAB10Z4043210Z033Z0Z10ZB0Z00ZAB10Z10Z10Z033119231210Z";
_root.gotoAndStop("EDITOR");
}
Instance of Symbol 272 MovieClip in Frame 17
on (release) {
_root.editorLevel = "1002150032C521005262042C21C0070011600316003160031500211002110021C521002162042C21B0031600216003160031600311002110021C52100216204210021B0031600216002160031600311002110021C5210021C2110021B0031600216002160021600311002110021C5210021C2110021B0031AA001002110021C5210021C2110021AAAC1002110021C5210021C2110021AA31C00800311002110021C5210021C2110021AAAC1002110021C5210021C2110021C21AA00600Z0021100216205210051C2110021AA0160011600Z00211002162052C21C2110021AB60011600116001192052100216205270051C2170042C007002160011600116001170031";
_root.gotoAndStop("EDITOR");
}
Instance of Symbol 272 MovieClip in Frame 17
on (release) {
_root.editorLevel = "13232132320Z103Z0Z112Z12Y11BZ1C00404Z012103232C0012Z12Z13Z12Z41132B041103Z02Z1012103ZB3ZA012Y11B041103Z501121012103ZAA0012Z00411C0013Z104Z04Z01212323223232C00531210012112Z304Z3Z10Z10Z10Z13112104Y153112Y2112104Z3Z104Z0Z6211292Z521121041140312104Z041132522104Z3Z104Z0Z6211202Z4032112Z0Z10212113Z2011260312C0013Z10Z10Z10Z02Z12Z30331A02011240112BZ113Z13Z12Z02Z00332AB203221232213Z03Z0Z110Z12ZB0112AB203227Z210Z10Z10Z10Z12Z52321AA005Z12Z12Z252Z8Z140332Z11";
_root.gotoAndStop("EDITOR");
}
Frame 18
_xscale = 100;
_yscale = 100;
Frame 19
if (_root.editorLevel == "NONE") {
previewLevel._alpha = 40;
} else {
previewLevel._alpha = 100;
}
Instance of Symbol 272 MovieClip in Frame 19
on (release) {
_root.prevFrame();
}
Instance of Symbol 272 MovieClip "previewLevel" in Frame 19
on (release) {
if (_alpha == 100) {
_root.nextFrame();
}
}
Frame 20
Mouse.show();
levelText.text = "Level" + LevelNo;
Frame 21
if (_root.badEnding == true) {
_root.badEnding = false;
stopAllSounds();
gotoFrame("END_BAD");
} else if (_root.snakeRoom == true) {
_root.snakeRoom = false;
LevelNo = 18;
gotoFrame("GAME");
} else if (_root.LevelNo == 18) {
gotoFrame("ENDMOVIE");
} else {
gotoFrame("GAME");
}
trace(_root.LevelNo);
Frame 22
setMusic("ending");
Frame 23
var score = (Math.round((_root.playTime / 25) * 10) / 10);
dispText.text = score + " SECONDS";
newMedal(5);
if (score < 450) {
newMedal(4);
}
Frame 24
var score = ((Math.round((_root.playTime / 25) * 10) / 10) - 40);
dispText.text = score + " SECONDS";
newMedal(5);
if (score < 450) {
newMedal(4);
}
Symbol 4 MovieClip Frame 1
_alpha = 0;
Symbol 6 MovieClip Frame 1
stop();
Symbol 7 MovieClip [LEVEL_Block_Exit] Frame 1
if (BGColour == 2) {
_parent._parent.addBlackSpace(_x, _y);
sprite.gotoAndStop(2);
}
Symbol 10 MovieClip Frame 1
function onEnterFrame() {
_rotation = (_rotation + 2);
}
Symbol 15 MovieClip [LEVEL_Block_Door] Frame 1
function onEnterFrame() {
if (_parent._parent["doorRotate" + linkage] > 0) {
_rotation = (_rotation + _parent._parent.doorSpeed);
}
}
if (BGColour == 2) {
_parent._parent.addBlackSpace(_x, _y);
}
if (_rotation == 0) {
_x = (_x - 20);
} else if (_rotation == 90) {
_y = (_y - 20);
} else if (_rotation == 180) {
_x = (_x + 20);
} else {
_rotation = -90;
if (-90) {
_y = (_y + 20);
}
}
Symbol 17 MovieClip [LEVEL_Block_Spike] Frame 1
function onEnterFrame() {
if (hit.hitTest(_parent._parent.MAN.spikeHit)) {
_parent._parent.spikeMan();
}
}
stop();
Symbol 19 MovieClip [LEVEL_Block_Grey] Frame 1
function onEnterFrame() {
if (_parent._parent["greyRotateSwitch" + linkage] == true) {
if (_xscale > 0) {
_xscale = (_xscale - 10);
_yscale = (_yscale - 10);
}
} else if (_xscale < 100) {
_xscale = (_xscale + 10);
_yscale = (_yscale + 10);
}
}
if (BGColour == 2) {
_parent._parent.addBlackSpace(_x, _y);
}
Symbol 21 MovieClip [LEVEL_Block_Gravity] Frame 1
function onEnterFrame() {
if (this.hit.hitTest(_parent._parent.MAN.hit)) {
_parent._parent.gravityFlip(rotateDir, _x, _y);
}
}
if (BGColour == 2) {
_parent._parent.addBlackSpace(_x, _y);
}
if ((_rotation == 90) || (_rotation == -90)) {
var rotateDir = (_rotation + 180);
} else {
var rotateDir = _rotation;
}
var hitSwitch = false;
Symbol 23 MovieClip [LEVEL_Block_GreySwitch] Frame 1
function onEnterFrame() {
_rotation = (_rotation + 2);
if (this.hit.hitTest(_parent._parent.MAN.hit) && (_visible == true)) {
_parent._parent.setgrey(linkage);
_visible = false;
}
}
if (BGColour == 2) {
_parent._parent.addBlackSpace(_x, _y);
}
Symbol 25 MovieClip [LEVEL_Block_Key] Frame 1
function onEnterFrame() {
_rotation = (_rotation + 2);
if ((this.hit.hitTest(_parent._parent.MAN.hit) && (_visible == true)) && (_parent._parent.gameActive == true)) {
_parent._parent.setDoor(linkage);
_visible = false;
}
}
if (BGColour == 2) {
_parent._parent.addBlackSpace(_x, _y);
}
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 4
_visible = false;
Symbol 43 MovieClip [OBJECT_MAN] Frame 1
if (BGColour == 2) {
_parent._parent.addBlackSpace(_x, _y);
}
Symbol 53 MovieClip [Rubble] Frame 1
function onEnterFrame() {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
ySpeed++;
}
Symbol 79 MovieClip [MedalPrompt] Frame 1
function onEnterFrame() {
if (timer < 10) {
_x = (_x + 35);
} else if ((timer > 150) && (timer < 160)) {
_x = (_x - 35);
} else if (timer > 210) {
this.removeMovieClip();
}
timer++;
}
_x = (_x - 300);
var timer = 0;
Symbol 122 Button
on (release) {
_root.play();
}
Symbol 134 Button
on (release) {
_parent.gotoAndStop("TITLE");
}
Symbol 150 Button
on (release) {
getURL ("http://www.addictinggames.com", "_blank");
}
Instance of Symbol 127 MovieClip in Symbol 151 MovieClip Frame 1
on (release) {
getURL ("http://www.addictinggames.com", "_blank");
}
Symbol 151 MovieClip Frame 104
_parent.gotoAndStop("title");
Symbol 156 MovieClip Frame 1
stop();
Symbol 159 Button
on (rollOver, dragOver) {
if ((WS_Active == false) && (WC_Active == false)) {
menuText.text = "BEGIN YOUR TEST. TRAVEL THROUGH THE LAB TO EARN A REAL TROPHY WHILE WE EXAMINE THE PHENOMENON OF 'SHIFTING' - NO STRINGS ATTACHED!.";
}
}
on (rollOut, dragOut) {
if ((WS_Active == false) && (WC_Active == false)) {
menuText.text = "";
}
}
on (release) {
if ((menuAdventureBegun == false) || (menuAdventureDone == true)) {
gotoFrame("GAME");
} else if (YS_Active == true) {
if (YS_Counter <= 5) {
menuText.text = "I BET THIS IS GETTING FRUSTRATING, HUH? GO ON, CLICK THEM A FEW MORE TIMES AND I'LL GIVE YOU SOMETHING SPECIAL.";
}
YS_Counter++;
} else if (((WC_Active == true) && (FC_Active == false)) && (FM_Active == false)) {
menuText.text = "OH. NOW IT SEEMS THE BUTTONS NO LONGER WORK. OH DEAR. WANT ME TO FIX IT? ENTER THE SETTINGS MENU AT THE TOP OF THE SCREEN.";
FM_Active = true;
}
}
Symbol 167 Button
on (rollOver, dragOver) {
if (menuAdventureBegun == false) {
menuText.text = "DO NOT CLICK THIS FACE.";
}
}
on (rollOut, dragOut) {
if (menuAdventureBegun == false) {
menuText.text = "";
}
}
on (release) {
if (badFace._visible == true) {
badFace._visible = false;
if (YS_Active == true) {
resetAllActive = true;
newMedal(7);
badFace._x = 2000;
} else if (WC_Active == false) {
if ((mouseInverse != true) && (WS_Active == false)) {
menuText.text = "I TOLD YOU NOT TO CLICK THAT, NOW LOOK WHAT YOU'VE DONE TO THE POOR MOUSE. MAYBE I'LL FIX IT IN THE SETTINGS MENU.";
mouseInverse = true;
menuAdventureBegun = true;
MS._visible = true;
MS._x = MSPos;
Mouse.hide();
}
}
}
}
Symbol 170 Button
on (rollOver, dragOver) {
if ((WS_Active == false) && (WC_Active == false)) {
menuText.text = "-CREATE A LEVEL \n\n-HIGHSCORES \n\n-MEDALS \n\n-AND MORE!";
}
}
on (rollOut, dragOut) {
if ((WS_Active == false) && (WC_Active == false)) {
menuText.text = "";
}
}
on (release) {
if ((menuAdventureBegun == false) || (menuAdventureDone == true)) {
gotoFrame("EXTRAS");
} else if (YS_Active == true) {
menuText.text = "I BET THIS IS GETTING FRUSTRATING, HUH? GO ON, CLICK THEM A FEW MORE TIMES AND I'LL GIVE YOU SOMETHING SPECIAL.";
YS_Counter++;
} else if (((WC_Active == true) && (FC_Active == false)) && (FM_Active == false)) {
menuText.text = "OH. NOW IT SEEMS THE BUTTONS NO LONGER WORK. OH DEAR. WANT ME TO FIX IT? ENTER THE SETTINGS MENU AT THE TOP OF THE SCREEN.";
FM_Active = true;
}
}
Symbol 172 Button
on (rollOver, dragOver) {
if ((WS_Active == false) && (WC_Active == false)) {
menuText.text = "CHECK OUT THE ARMOR GAMES HOMEPAGE FOR TONNES MORE FREE GAMES LIKE THIS!";
}
}
on (rollOut, dragOut) {
if ((WS_Active == false) && (WC_Active == false)) {
menuText.text = "";
}
}
on (release) {
if ((menuAdventureBegun == false) || (menuAdventureDone == true)) {
getURL ("http://www.armorgames.com", "_blank");
newMedal(1);
} else if (YS_Active == true) {
menuText.text = "I BET THIS IS GETTING FRUSTRATING, HUH? GO ON, CLICK THEM A FEW MORE TIMES AND I'LL GIVE YOU SOMETHING SPECIAL.";
YS_Counter++;
} else if (((WC_Active == true) && (FC_Active == false)) && (FM_Active == false)) {
menuText.text = "OH. NOW IT SEEMS THE BUTTONS NO LONGER WORK. OH DEAR. WANT ME TO FIX IT? ENTER THE SETTINGS MENU AT THE TOP OF THE SCREEN.";
FM_Active = true;
}
}
Symbol 175 Button
on (rollOver, dragOver) {
if ((WS_Active == false) && (WC_Active == false)) {
menuText.text = "TO BE HONEST WITH YOU, THE NAMES OF THOSE WHO CREATED THIS GAME ARE A CLOSELY GUARDED SECRET. YOU'LL PROBABLY NEVER FIND OUT... YOU KNOW, UNLESS YOU CLICK HERE...";
}
}
on (rollOut, dragOut) {
if ((WS_Active == false) && (WC_Active == false)) {
menuText.text = "";
}
}
on (release) {
if ((menuAdventureBegun == false) || (menuAdventureDone == true)) {
gotoFrame("CREDITS");
newMedal(2);
} else if (YS_Active == true) {
menuText.text = "I BET THIS IS GETTING FRUSTRATING, HUH? GO ON, CLICK THEM A FEW MORE TIMES AND I'LL GIVE YOU SOMETHING SPECIAL.";
YS_Counter++;
} else if (((WC_Active == true) && (FC_Active == false)) && (FM_Active == false)) {
menuText.text = "OH. NOW IT SEEMS THE BUTTONS NO LONGER WORK. OH DEAR. WANT ME TO FIX IT? ENTER THE SETTINGS MENU AT THE TOP OF THE SCREEN.";
FM_Active = true;
}
}
Symbol 177 Button
on (rollOver, dragOver) {
if (WS_Active == false) {
menuText.text = "-PUZZLE PACK \n\n-CREATE A LEVEL \n\n-HIGHSCORES \n\n-MEDALS \n\n-SECRETS";
}
}
on (rollOut, dragOut) {
if (WS_Active == false) {
menuText.text = "";
}
}
Symbol 193 MovieClip Frame 85
stop();
Symbol 194 Button
on (release) {
getURL ("http://armorgames.com/free-website-games", "_blank");
}
Symbol 200 MovieClip Frame 1
_visible = false;
Instance of Symbol 4 MovieClip in Symbol 203 MovieClip Frame 1
on (release) {
_parent._parent.menuText.text = "TEE HEE, JUST KIDDING - WHY WOULD WE WANT TO LOOK AT YOUR UGLY MUG ANYWAY?";
_parent._parent.WS_Active = false;
_parent._parent.WC_Active = true;
_parent._parent.mouseInverse = false;
_parent._parent.MOUSE._visible = true;
Mouse.hide();
}
Symbol 205 Button
on (rollOver, dragOver) {
_parent.menuText.text = "Play the sequel to the highly popular Portal: The flash version available exclusively from this link only!";
}
on (rollOut, dragOut) {
if (_parent.dropButton == true) {
play();
}
_parent.menuText.text = "";
}
on (release) {
_parent.dropButton = true;
_root.portalButtonSwitch = true;
_root.updateSave();
_parent.menuText.text = "Ah, seems this button is broken, maybe I'll fix it one day - sorry!";
}
Symbol 208 Button
on (rollOver, dragOver) {
menuText.text = "Play the sequel to the highly popular Portal: The flash version available exclusively from this link only!";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
menuText.text = "Ah, seems this button is broken, maybe I'll fix it one day - sorry!";
}
Symbol 209 MovieClip Frame 1
stop();
Symbol 209 MovieClip Frame 43
stop();
Symbol 211 Button
on (rollOver, dragOver) {
menuText.text = "CREATE YOUR OWN SHIFT LEVELS - WHO KNOWS, MAYBE THERE WILL BE A PLAYERS LEVEL PACK RELEASED SOMEWHERE DOWN THE LINE :D";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
_root.lastFrame = "EXTRAS";
gotoFrame("EDITORLOAD");
}
Symbol 214 Button
on (rollOver, dragOver) {
menuText.text = "VIEW THE MEDALS YOU HAVE COLLECTED PLAYING SHIFT 2. CAN YOU COLLECT THEM ALL?";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
gotoFrame("MEDALS");
}
Symbol 217 Button
on (rollOver, dragOver) {
menuText.text = "RETURN TO WHEREVER YOU CAME FROM";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
gotoFrame("TITLE");
}
Symbol 221 Button
on (rollOver, dragOver) {
menuText.text = "VIEW THE BEST COMPLETION TIMES OF SHIFT 2. CAN YOU MAKE IT TO THE HIGH SCORE TABLE? AS A SIDE NOTE, TO THOSE PLANNING TO HACK THE BOARDS, NO ONE IS IMPRESSED BY YOUR SCRIPT KIDDIE WAYS. GO DO SOMETHING USEFUL.";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
getURL ("http://rankz.armorbot.com/shift2b/", "_blank");
}
Symbol 223 Button
on (rollOver, dragOver) {
menuText.text = "CLEAR YOUR SAVE DATA. YOU WILL BE ASKED IF YOU ARE SURE BEFORE ANY DATA IS LOST.";
}
on (rollOut, dragOut) {
menuText.text = "";
}
on (release) {
gotoFrame("CLEAR");
}
Symbol 229 Button
on (release) {
gotoFrame("TITLE");
}
Symbol 231 Button
on (release) {
gotoFrame("EXTRAS");
}
Symbol 234 Button
on (release) {
loadSave(true);
gotoFrame("EXTRAS");
}
Symbol 244 Button
on (release) {
gotoFrame("SECRETS");
}
Symbol 247 Button
on (release) {
gotoFrame("MEDALS");
}
Symbol 249 Button
on (release) {
if (itankBut._alpha == 100) {
gotoFrame("ITANK");
}
}
Symbol 254 Button
on (release) {
if (clasBut._alpha == 100) {
gotoFrame("CLASSICCHARACTER");
}
}
Symbol 265 MovieClip Frame 734
stop();
Symbol 330 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 3
stop();
Symbol 330 MovieClip Frame 6
_visible = false;
Symbol 335 MovieClip Frame 1
function newBoard() {
var _local7 = 0;
var _local4 = 0;
var _local3 = 0;
var _local5 = 0;
var _local6 = _root.editorLevel;
_local4 = 0;
while (_local4 < 12) {
_local3 = 0;
while (_local3 < 12) {
var _local2 = BOARD.attachMovie("EDITOR_block", "EB" + _local5, _local5++);
_local2._x = (_local4 * 40) - 220;
_local2._y = (_local3 * 40) - 220;
BlockArray.push(_local2);
BlockType.push(1);
BlockBGColour.push(0);
BlockRotation.push(0);
BlockLength.push(0);
BlockLinkage.push(0);
_local2.gotoAndStop(1);
_local3++;
}
_local4++;
}
}
function checkBlocks() {
var _local1 = 0;
while (_local1 < BlockArray.length) {
if (BlockArray[_local1].hit.hitTest(MOUSEMC.hit)) {
updateBlock(_local1);
}
_local1++;
}
}
function updateBlock(ID) {
BlockType[ID] = Data_Type;
BlockBGColour[ID] = DataBGColour;
BlockRotation[ID] = DataRotation;
BlockLength[ID] = DataLength;
BlockLinkage[ID] = DataLinkage;
BlockArray[ID].gotoAndStop(Data_Type);
BlockArray[ID].ColDisplay.gotoAndStop(DataBGColour);
BlockArray[ID]._rotation = DataRotation;
BlockArray[ID].Door._xscale = DataLength * 100;
BlockArray[ID].linkIndicator = DataLinkage;
if (Data_Type == 4) {
BlockArray[ID].swapDepths(0);
}
}
function spinBoard() {
boardRotateCurrent = boardRotateCurrent + ((boardRotate - boardRotateCurrent) / 2);
BOARD._rotation = boardRotateCurrent;
if (Key.isDown(39) && (boardRotateSwitch == false)) {
boardRotateSwitch = true;
boardRotate = boardRotate + 90;
} else if (Key.isDown(37) && (boardRotateSwitch == false)) {
boardRotateSwitch = true;
boardRotate = boardRotate - 90;
} else if ((!Key.isDown(39)) && (!Key.isDown(37))) {
boardRotateSwitch = false;
}
}
function onMouseDown() {
mousePressed = true;
}
function onMouseUp() {
mousePressed = false;
}
function onEnterFrame() {
spinBoard();
rotateTile();
PROPERTIES._x = PROPERTIES._x + ((propertiesX - PROPERTIES._x) / 3);
selectBox._x = selectBox._x + ((selectBoxLoc - selectBox._x) / 2);
MOUSEMC._rotation = BOARD._rotation;
MOUSEMC._x = Math.round(_xmouse / 40) * 40;
MOUSEMC._y = Math.round(_ymouse / 40) * 40;
MOUSEMC.Display.gotoAndStop(Data_Type);
MOUSEMC.Display.ColDisplay.gotoAndStop(DataBGColour);
MOUSEMC.Display._rotation = DataRotation;
MOUSEMC.Display.Door._xscale = DataLength * 100;
MOUSEMC.Display.linkIndicator = DataLinkage;
if (mousePressed == true) {
MOUSEMC._x = Math.round(_xmouse / 40) * 40;
MOUSEMC._y = Math.round(_ymouse / 40) * 40;
checkBlocks();
}
}
function rotateTile() {
if (Key.isDown(38) && (tileRotateSwitch == false)) {
tileRotateSwitch = true;
if (DataRotation > 0) {
DataRotation = DataRotation - 90;
} else {
DataRotation = 270;
}
} else if (Key.isDown(40) && (tileRotateSwitch == false)) {
tileRotateSwitch = true;
if (DataRotation < 270) {
DataRotation = DataRotation + 90;
} else {
DataRotation = 0;
}
} else if ((!Key.isDown(38)) && (!Key.isDown(40))) {
tileRotateSwitch = false;
}
}
function ZCRUSH(code, Target, Dest, DestNo) {
var _local1 = 0;
var _local3 = "";
var _local2 = 0;
while (_local2 < code.length) {
if (code.charAt(_local2) == Target) {
_local1++;
if (_local1 == DestNo) {
_local3 = _local3 + Dest;
_local1 = 0;
}
} else {
var _local5 = 0;
while (_local5 < _local1) {
_local3 = _local3 + Target;
_local5++;
}
_local1 = 0;
_local3 = _local3 + code.charAt(_local2);
}
_local2++;
}
var _local5 = 0;
while (_local5 < _local1) {
_local3 = _local3 + Target;
_local5++;
}
return(_local3);
}
function ZCOMPILE(code, Dest, Target, Compression) {
var _local3 = "";
var _local2 = 0;
while (_local2 < code.length) {
if (code.charAt(_local2) == Target) {
var _local1 = 0;
while (_local1 < Compression) {
_local3 = _local3 + Dest;
_local1++;
}
} else {
_local3 = _local3 + code.charAt(_local2);
}
_local2++;
}
return(_local3);
}
function loadBoard() {
var _local3 = 0;
var _local2 = ZCOMPILE(_root.editorLevel, "0", "A", 9);
_local2 = ZCOMPILE(_local2, "0", "B", 6);
_local2 = ZCOMPILE(_local2, "0", "C", 3);
_local2 = ZCOMPILE(_local2, "1", "X", 9);
_local2 = ZCOMPILE(_local2, "1", "Y", 6);
_local2 = ZCOMPILE(_local2, "1", "Z", 3);
_local2 = cleanupCode(_local2, " ");
if (_local2.length == 720) {
var _local4 = 0;
while (_local4 < 144) {
if (Number(_local2.charAt(_local3)) == " ") {
_local4--;
_local3++;
} else {
Data_Type = Number(_local2.charAt(_local3)) + 1;
DataRotation = Number(_local2.charAt(_local3 + 1)) * 90;
DataLength = Number(_local2.charAt(_local3 + 2));
DataLinkage = Number(_local2.charAt(_local3 + 3));
DataBGColour = Number(_local2.charAt(_local3 + 4));
updateBlock(_local4);
_local3 = _local3 + 5;
}
_local4++;
}
}
}
function setPropertiesBox(target) {
if (PROPERTIES._currentframe != target) {
PROPERTIES._x = PROPERTIES._x + 200;
PROPERTIES._visible = true;
PROPERTIES.gotoAndStop(target);
}
}
function cleanupCode(code, char) {
code = code.split("");
var _local1 = 0;
while (_local1 < code.length) {
if (code[_local1] == char) {
code.splice(_local1, 1);
}
_local1++;
}
var _local3 = "";
_local1 = 0;
while (_local1 < code.length) {
if (code[_local1] != ",") {
_local3 = _local3 + code[_local1];
}
_local1++;
}
return(_local3);
}
stop();
var Data_Type = 1;
var DataBGColour = 1;
var DataRotation = 0;
var DataLength = 1;
var DataLinkage = 1;
var BlockArray = new Array();
var BlockType = new Array();
var BlockBGColour = new Array();
var BlockRotation = new Array();
var BlockLength = new Array();
var BlockLinkage = new Array();
var mousePressed = false;
var boardRotate = 0;
var boardRotateCurrent = 0;
var boardRotateSwitch = false;
var selectBoxLoc = selectBox._x;
var propertiesX = PROPERTIES._x;
PROPERTIES._x = PROPERTIES._x + 200;
PROPERTIES._visible = false;
newBoard();
loadBoard();
_xscale = 80;
_yscale = 80;
EdButTypeSub.onPress = function () {
if (Data_Type > 1) {
Data_Type--;
} else {
Data_Type = 4;
}
};
EdButTypePlus.onPress = function () {
if (Data_Type < 4) {
Data_Type++;
} else {
Data_Type = 1;
}
};
PROPERTIES.EdButLenSub.onPress = function () {
if (DataLength > 1) {
DataLength--;
} else {
DataLength = 5;
}
};
PROPERTIES.EdButLenPlus.onPress = function () {
if (DataLength < 5) {
DataLength++;
} else {
DataLength = 1;
}
};
PROPERTIES.EdButLinkSub.onPress = function () {
if (DataLinkage > 1) {
DataLinkage--;
} else {
DataLinkage = 5;
}
};
PROPERTIES.EdButLinkPlus.onPress = function () {
if (DataLinkage < 5) {
DataLinkage++;
} else {
DataLinkage = 1;
}
};
EdBut_White.gotoAndStop(1);
EdBut_Black.gotoAndStop(2);
EdBut_Spike.gotoAndStop(3);
EdBut_Door_W.gotoAndStop(4);
EdBut_Door_W.ColDisplay.gotoAndStop(1);
EdBut_Door_B.gotoAndStop(4);
EdBut_Door_B.ColDisplay.gotoAndStop(2);
EdBut_Key_W.gotoAndStop(5);
EdBut_Key_W.ColDisplay.gotoAndStop(1);
EdBut_Key_B.gotoAndStop(5);
EdBut_Key_B.ColDisplay.gotoAndStop(2);
EdBut_Flip_W.gotoAndStop(6);
EdBut_Flip_W.ColDisplay.gotoAndStop(1);
EdBut_Flip_B.gotoAndStop(6);
EdBut_Flip_B.ColDisplay.gotoAndStop(2);
EdBut_Grey_W.gotoAndStop(7);
EdBut_Grey_W.ColDisplay.gotoAndStop(1);
EdBut_Grey_B.gotoAndStop(7);
EdBut_Grey_B.ColDisplay.gotoAndStop(2);
EdBut_GreySwitch_W.gotoAndStop(8);
EdBut_GreySwitch_W.ColDisplay.gotoAndStop(1);
EdBut_GreySwitch_B.gotoAndStop(8);
EdBut_GreySwitch_B.ColDisplay.gotoAndStop(2);
EdBut_Start_W.gotoAndStop(9);
EdBut_Start_W.ColDisplay.gotoAndStop(1);
EdBut_Start_B.gotoAndStop(9);
EdBut_Start_B.ColDisplay.gotoAndStop(2);
EdBut_Exit_W.gotoAndStop(10);
EdBut_Exit_W.ColDisplay.gotoAndStop(1);
EdBut_Exit_B.gotoAndStop(10);
EdBut_Exit_B.ColDisplay.gotoAndStop(2);
EdBut_White.onPress = function () {
selName = "WHITESPACE";
setPropertiesBox(6);
selectBoxLoc = EdBut_White._x;
Data_Type = 1;
};
EdBut_Black.onPress = function () {
selName = "BLACKSPACE";
setPropertiesBox(6);
selectBoxLoc = EdBut_Black._x;
Data_Type = 2;
};
EdBut_Spike.onPress = function () {
selName = "SPIKES";
setPropertiesBox(6);
selectBoxLoc = EdBut_Spike._x;
Data_Type = 3;
};
EdBut_Door_W.onPress = function () {
selName = "DOOR (WHITE BG)";
setPropertiesBox(2);
selectBoxLoc = EdBut_Door_W._x;
Data_Type = 4;
DataBGColour = 1;
};
EdBut_Door_B.onPress = function () {
selName = "DOOR (BLACK BG)";
setPropertiesBox(2);
selectBoxLoc = EdBut_Door_B._x;
Data_Type = 4;
DataBGColour = 2;
};
EdBut_Key_W.onPress = function () {
selName = "KEY (WHITE BG)";
setPropertiesBox(3);
selectBoxLoc = EdBut_Key_W._x;
Data_Type = 5;
DataBGColour = 1;
};
EdBut_Key_B.onPress = function () {
selName = "KEY (BLACK BG)";
setPropertiesBox(3);
selectBoxLoc = EdBut_Key_B._x;
Data_Type = 5;
DataBGColour = 2;
};
EdBut_Flip_W.onPress = function () {
selName = "GRAVITYFLIP (WHITE BG)";
setPropertiesBox(6);
selectBoxLoc = EdBut_Flip_W._x;
Data_Type = 6;
DataBGColour = 1;
};
EdBut_Flip_B.onPress = function () {
selName = "GRAVITYFLIP (BLACK BG)";
setPropertiesBox(6);
selectBoxLoc = EdBut_Flip_B._x;
Data_Type = 6;
DataBGColour = 2;
};
EdBut_Grey_W.onPress = function () {
selName = "CHECKSPACE (WHITE BG)";
setPropertiesBox(4);
selectBoxLoc = EdBut_Grey_W._x;
Data_Type = 7;
DataBGColour = 1;
};
EdBut_Grey_B.onPress = function () {
selName = "CHECKSPACE (BLACK BG)";
setPropertiesBox(4);
selectBoxLoc = EdBut_Grey_B._x;
Data_Type = 7;
DataBGColour = 2;
};
EdBut_GreySwitch_W.onPress = function () {
selName = "CHECKSWITCH (WHITE BG)";
setPropertiesBox(5);
selectBoxLoc = EdBut_GreySwitch_W._x;
Data_Type = 8;
DataBGColour = 1;
};
EdBut_GreySwitch_B.onPress = function () {
selName = "CHECKSWITCH (BLACK BG)";
setPropertiesBox(5);
selectBoxLoc = EdBut_GreySwitch_B._x;
Data_Type = 8;
DataBGColour = 2;
};
EdBut_Start_W.onPress = function () {
selName = "PLAYER START POINT";
setPropertiesBox(6);
selectBoxLoc = EdBut_Start_W._x;
Data_Type = 9;
DataBGColour = 1;
};
EdBut_Start_B.onPress = function () {
selName = "EXIT POINT (WHITE BG)";
setPropertiesBox(6);
selectBoxLoc = EdBut_Start_B._x;
Data_Type = 9;
DataBGColour = 2;
};
EdBut_Exit_W.onPress = function () {
selName = "EXIT POINT (BLACK BG)";
setPropertiesBox(6);
selectBoxLoc = EdBut_Exit_W._x;
Data_Type = 10;
DataBGColour = 1;
};
EdBut_Exit_B.onPress = function () {
setPropertiesBox(6);
selectBoxLoc = EdBut_Exit_B._x;
Data_Type = 10;
DataBGColour = 2;
};
BTN_COMPILE.onPress = function () {
var _local3 = "";
var _local4 = 0;
var _local5 = 0;
var _local6 = "";
var _local2 = 0;
while (_local2 < BlockArray.length) {
if (BlockType[_local2] == 9) {
_local4++;
}
if (BlockType[_local2] == 10) {
_local5++;
}
_local3 = _local3 + (BlockType[_local2] - 1);
_local3 = _local3 + (BlockRotation[_local2] / 90);
_local3 = _local3 + BlockLength[_local2];
_local3 = _local3 + BlockLinkage[_local2];
_local3 = _local3 + BlockBGColour[_local2];
_local2++;
}
if (_local4 == 0) {
_local6 = _local6 + "COMPILE ERROR: NO START POINT SET \n";
} else if (_local4 > 1) {
_local6 = _local6 + "COMPILE ERROR: MORE THAN ONE STARTPOINT! \n";
}
if (_local5 == 0) {
_local6 = _local6 + "COMPILE ERROR: NO EXIT POINT SET \n";
} else if (_local5 > 1) {
_local6 = _local6 + "COMPILE ERROR: MORE THAN ONE EXIT POINT SET! \n";
}
_local3 = ZCRUSH(_local3, "0", "A", 9);
_local3 = ZCRUSH(_local3, "0", "B", 6);
_local3 = ZCRUSH(_local3, "0", "C", 3);
_local3 = ZCRUSH(_local3, "1", "X", 9);
_local3 = ZCRUSH(_local3, "1", "Y", 6);
_local3 = ZCRUSH(_local3, "1", "Z", 3);
_root.editorLevel = _local3;
if (_local6 != "") {
_root.codeOut = _local6;
_root.editorLevel = "NONE";
} else {
_root.codeOut = _local3;
_root.editorLevel = _local3;
}
_root.nextFrame();
};
selName = "WHITESPACE";
setPropertiesBox(6);
selectBoxLoc = EdBut_White._x;
Data_Type = 1;
Instance of Symbol 272 MovieClip in Symbol 335 MovieClip Frame 1
on (release) {
_root.gotoAndStop(_root.backTo);
}
Instance of Symbol 4 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.outputText.text = Math.round(_root.playTime / 25);
}
Instance of Symbol 4 MovieClip in Symbol 378 MovieClip Frame 3
onClipEvent (load) {
var timer = 1800;
}
onClipEvent (enterFrame) {
if (timer > 0) {
if (_parent._parent.MAN.sprite._currentframe == 5) {
_root.newMedal(3);
}
_parent.outputText.text = ("YOU MUST REACH THE DOOR IN\nLESS THAN " + Math.round(timer / 25)) + " SECONDS OR YOU WILL BE \nTAKEN BACK TO THE TITLE SCREEN.";
timer--;
} else {
_parent.outputText.text = "NAH JUST JOKING...\nYOU TAKE AS LONG AS YOU LIKE :)";
}
}
Instance of Symbol 4 MovieClip in Symbol 378 MovieClip Frame 6
onClipEvent (load) {
var lagSwitch = true;
var time = new Date();
var startTime = time.getTime();
}
onClipEvent (enterFrame) {
if (_parent.lagHit.hitTest(_parent._parent.MAN)) {
lagSwitch = false;
}
if (lagSwitch == true) {
while (time.getTime() < (startTime + 100)) {
time = new Date();
}
startTime = startTime + (20 + random(100));
}
}
Instance of Symbol 4 MovieClip in Symbol 378 MovieClip Frame 9
onClipEvent (load) {
function newRubble(xPos, yPos) {
var _local3 = 0;
while (_local3 < 4) {
var _local2 = _parent.attachMovie("Rubble", "R" + rubCounter, rubCounter++);
_local2._x = xPos;
_local2._y = yPos;
_local2.xSpeed = random(20) - 10;
_local2.ySpeed = -random(10);
_local3++;
}
}
_parent.outputText.text = "CONGRATULATIONS \nSUBJECT 32767\nYOU HAVE EARNED THIS TROPHY!";
_parent.invHit._alpha = 0;
var scriptTimer = 0;
var blockDestroyTimer = 0;
var blockCounter = 0;
var scriptActive = false;
var rubCounter = 0;
}
onClipEvent (enterFrame) {
if (_parent._parent.gamePaused == false) {
if (_parent.spikeWall.hitTest(_parent._parent.MAN.hit)) {
_parent._parent.spikeMan();
}
if (_parent.invHit.hitTest(_parent._parent.MAN)) {
scriptActive = true;
_parent.outputText.text = "Whoops, Sorry about that, I Forgot to \nremove this trophy blocking hole. \nPlease wait patiently while we send \nsomeone to get you out...";
}
if (scriptActive == true) {
if (_parent.spikeWall._x < 270) {
if (_parent.spikeWall._x > 0) {
_parent.outputText.text = "HAHAHAHAHA\nNOW YOU'RE IN FOR IT!\nDIDN'T SEE THAT COMING DID YOU!?";
}
_parent.spikeWall._x++;
scriptTimer--;
}
if (scriptTimer == 70) {
_parent.outputText.text = "OH... ERM...\nHANG TIGHT FOR A MOMENT WHILE \nWE FIX OUR BROKEN WALL OF DEATH.";
}
if (scriptTimer == 190) {
_parent.outputText.text = "I'M AFRAID WE'RE HAVING SOME TECHNICAL \nISSUES. PLEASE DO NOT ATTEMPT ESCAPE \nWHILE WE CALL IN THE ENGINEERS";
}
if (scriptTimer == 300) {
_parent.outputText.text = "OH FIDDLESTICKS NOT AGAIN... \nPLEASE ALLOW FALLING RUBBLE TO END YOU...\n ...I MEAN... YOUR EXPERIMENT... ARGH!";
}
if (scriptTimer == 480) {
_parent.outputText.text = "WARNING! DO NOT ENTER THAT DOOR! \n IT LEADS TO THE...ERM... SNAKEPIT... ROOM! \nYEAH, YOU SURE DON'T WANT TO GO THERE!";
}
if (_parent.invHole._alpha > 0) {
_parent.invHole._alpha = _parent.invHole._alpha - 10;
}
scriptTimer++;
}
if (scriptTimer == 260) {
_parent._parent.setgrey(1);
_parent._parent.setgrey(2);
_parent._parent.setgrey(3);
_parent._parent.setgrey(4);
}
if ((scriptTimer > 290) && (scriptTimer < 480)) {
_parent._parent._rotation = _parent._parent._rotation + (random(4) - 2);
_parent._parent._x = _parent._parent._x + ((random(20) - 10) / 10);
}
_parent._parent._rotation = _parent._parent._rotation / 1.3;
if (_parent._parent._x < 249) {
_parent._parent._x = _parent._parent._x + 0.4;
} else if (_parent._parent._x > 250) {
_parent._parent._x = _parent._parent._x - 0.4;
}
if (scriptTimer > 300) {
blockDestroyTimer++;
if (blockDestroyTimer > 30) {
blockDestroyTimer = 0;
blockCounter++;
if (blockCounter == 5) {
_parent._parent.setgrey(5);
blockDestroyTimer = 20;
}
if (blockCounter < 7) {
newRubble(_parent["tunnelBlock" + blockCounter]._x, _parent["tunnelBlock" + blockCounter]._y);
_parent["tunnelBlock" + blockCounter]._y = 2000;
}
}
}
}
}
Instance of Symbol 4 MovieClip in Symbol 378 MovieClip Frame 19
onClipEvent (enterFrame) {
_parent.outputText.text = Math.round(_root.playTime / 25);
}
Instance of Symbol 4 MovieClip in Symbol 378 MovieClip Frame 23
onClipEvent (load) {
_parent.invHit._alpha = 0;
_parent.invHole._alpha = 100;
var LevelSwitch = false;
}
onClipEvent (enterFrame) {
if ((_parent._parent.MAN.hitTest(_parent.snakeRoomHit) && (_parent._parent.jumpActive < 2)) && (LevelSwitch == false)) {
_root.LevelNo = 17;
_root.snakeRoom = true;
LevelSwitch = true;
_parent._parent.eolSwitch = true;
}
if (_parent.invHit.hitTest(_parent._parent.MAN)) {
if (_parent.invHole._alpha > 0) {
_parent.invHole._alpha = _parent.invHole._alpha - 10;
}
}
}
Instance of Symbol 4 MovieClip in Symbol 378 MovieClip Frame 24
onClipEvent (load) {
_parent.invHit._alpha = 0;
_parent.invHole._alpha = 100;
var LevelSwitch = false;
}
onClipEvent (enterFrame) {
if (_parent._parent.MAN.hitTest(_parent.tHit)) {
_parent.trophy._visible = false;
_parent.tHit._x = 2000;
_root.newMedal(6);
_parent._parent.setgrey(1);
}
}
Instance of Symbol 4 MovieClip in Symbol 378 MovieClip Frame 29
onClipEvent (load) {
var snakesActive = false;
}
onClipEvent (enterFrame) {
if (_parent._parent.MAN.hitTest(_parent.snakes1)) {
snakesActive = true;
_parent.tHit._x = 2000;
}
if (_parent._parent.MAN.hitTest(_parent.tHit)) {
snakesActive = true;
_parent.tHit._x = 2000;
}
if (snakesActive == true) {
_parent.snakes1._x = _parent.snakes1._x - ((random(10) / 10) + 1);
_parent.snakes2._x = _parent.snakes2._x + ((random(10) / 10) + 1);
if (_parent.snakes1.hitTest(_parent._parent.MAN.hit) || (_parent.snakes2.hitTest(_parent._parent.MAN.hit))) {
_root.badEnding = true;
_parent._parent.spikeMan();
}
}
}
Symbol 379 MovieClip Frame 1
function ZCOMPILE(code, Dest, Target, Compression) {
var _local3 = "";
var _local2 = 0;
while (_local2 < code.length) {
if (code.charAt(_local2) == Target) {
var _local1 = 0;
while (_local1 < Compression) {
_local3 = _local3 + Dest;
_local1++;
}
} else {
_local3 = _local3 + code.charAt(_local2);
}
_local2++;
}
return(_local3);
}
function gravityFlip(ammount, xPos, yPos) {
if ((flipFreeze != true) && (levelRotateFreeze == false)) {
if (ammount < 0) {
ammount = ammount + 360;
}
rotateTarget = ammount + 180;
currentRotation = _rotation;
if (currentRotation < 0) {
currentRotation = currentRotation + 360;
}
if (rotateTarget >= (currentRotation + 270)) {
rotateTarget = rotateTarget - 360;
} else if (rotateTarget <= (currentRotation - 270)) {
rotateTarget = rotateTarget + 360;
}
if (rotateTarget != currentRotation) {
levelRotateFreeze = true;
levelRotateMan = true;
MAN._x = xPos + ITEMS._x;
MAN._y = yPos + ITEMS._y;
xSpeed = 0;
ySpeed = 0;
}
}
}
function setDirs() {
if (_rotation == 0) {
xDir = 0;
yDir = 1;
controlReverse = 1;
} else if ((_rotation == 180) || (_rotation == -180)) {
xDir = 0;
yDir = -1;
controlReverse = 1;
} else if (_rotation == 90) {
xDir = 1;
yDir = 0;
controlReverse = -1;
} else if (_rotation == -90) {
xDir = -1;
yDir = 0;
controlReverse = -1;
}
}
function onEnterFrame() {
if (_root.editorActive == false) {
if (Key.isDown(80) && (gamePauseSwitch == false)) {
gamePauseSwitch = true;
if (gamePaused == true) {
gamePaused = false;
_root.pauseScreen._visible = false;
} else {
_root.pauseScreen._visible = true;
gamePaused = true;
}
} else if (Key.isDown(80) == false) {
gamePauseSwitch = false;
}
}
if (_root.editorActive == true) {
if (Key.isDown(81)) {
_root.gotoFrame("EDITOR");
}
}
_root.playTime++;
updateSplat();
EOL();
gameActive = false;
if (doorFreeze == false) {
jumpActive++;
}
doorManagement();
if (gamePaused == false) {
if (doorFreeze == true) {
if (jumpActive < 4) {
MAN.sprite.gotoAndStop("stand");
} else {
MAN.sprite.gotoAndStop("jumpUp");
}
} else if (flipFreeze == true) {
MAN.sprite.gotoAndStop("stand");
if (MAN._yscale != (-100 * inversion)) {
MAN._yscale = MAN._yscale - (20 * inversion);
MAN._x = MAN._x + (4.2 * xDir);
MAN._y = MAN._y + (4.2 * yDir);
if (MAN._yscale == 20) {
setTintObject(MAN, 0, 0, 0, 100);
} else if (MAN._yscale == -20) {
setTintObject(MAN, 255, 255, 255, 100);
}
} else {
flipFreeze = false;
inversion = inversion * -1;
rotateTarget = _rotation + 180;
levelRotateMan = false;
levelRotateFreeze = true;
xSpeed = 0;
ySpeed = 0;
}
} else if ((levelRotateFreeze == true) && (flipFreeze == false)) {
if (levelRotateMan == false) {
MAN.sprite.gotoAndStop("stand");
} else {
MAN.sprite.gotoAndStop("jumpDown");
}
if (currentRotation < rotateTarget) {
currentRotation = currentRotation + (15 * rotateDir);
if (levelRotateMan == true) {
MAN._rotation = MAN._rotation - (15 * rotateDir);
}
} else if (currentRotation > rotateTarget) {
currentRotation = currentRotation - (15 * rotateDir);
if (levelRotateMan == true) {
MAN._rotation = MAN._rotation + (15 * rotateDir);
}
} else {
setDirs();
levelRotateFreeze = false;
}
_rotation = currentRotation;
} else if ((levelRotateFreeze == false) && (flipFreeze == false)) {
gameActive = true;
manageDoorActivation();
jump();
ySpeed++;
if (ySpeed > 15) {
ySpeed = 15;
}
if (eolSwitch == false) {
MAN._x = MAN._x + (ySpeed * xDir);
MAN._y = MAN._y + (ySpeed * yDir);
if (Key.isDown(39)) {
xSpeed = xSpeed + 3;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - 3;
}
MAN._x = MAN._x + ((xSpeed * yDir) * controlReverse);
MAN._y = MAN._y + ((xSpeed * xDir) * controlReverse);
}
xSpeed = xSpeed / 1.9;
shiftActive = 1;
rotatedXY(0, 20, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
while ((((GROUND.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == inversionCollision[inversion + 1]) || (GREYSPACE.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) && (SPIKES.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) || (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) {
ySpeed = 1;
MAN._x = MAN._x - ((1 * xDir) * inversion);
MAN._y = MAN._y - ((1 * yDir) * inversion);
rotatedXY(0, 20, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
}
rotatedXY(15, 40 * inversion, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
if (((GROUND.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == inversionCollision[inversion + 1]) && (GREYSPACE.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) && (SPIKES.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) {
shiftActive++;
}
rotatedXY(-15, 40 * inversion, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
if (((GROUND.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == inversionCollision[inversion + 1]) && (GREYSPACE.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) && (SPIKES.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) {
shiftActive++;
}
rotatedXY(0, 21 * inversion, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
if ((((GROUND.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == inversionCollision[inversion + 1]) || (GREYSPACE.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) && (SPIKES.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) || (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) {
jumpActive = 0;
}
rotatedXY(0, -20, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
while ((((GROUND.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == inversionCollision[inversion + 1]) || (GREYSPACE.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) && (SPIKES.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) || (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) {
ySpeed = 1;
MAN._x = MAN._x + ((1 * xDir) * inversion);
MAN._y = MAN._y + ((1 * yDir) * inversion);
rotatedXY(0, -20, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
}
rotatedXY(16, 0, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
while ((((GROUND.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == inversionCollision[inversion + 1]) || (GREYSPACE.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) && (SPIKES.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) || (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) {
xSpeed = 0;
MAN._x = MAN._x - (((1 * yDir) * controlReverse) * inversion);
MAN._y = MAN._y - (((1 * xDir) * controlReverse) * inversion);
rotatedXY(16, 0, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
}
rotatedXY(-16, 0, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
while ((((GROUND.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == inversionCollision[inversion + 1]) || (GREYSPACE.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) && (SPIKES.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == false)) || (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true)) {
xSpeed = 0;
MAN._x = MAN._x + (((1 * yDir) * controlReverse) * inversion);
MAN._y = MAN._y + (((1 * xDir) * controlReverse) * inversion);
rotatedXY(-16, 0, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
}
shift();
spriteManagement();
}
}
}
function spikeMan() {
if (gameActive == true) {
dead = true;
newSplat(MAN._x, MAN._y);
MAN._visible = false;
}
}
function rotatedXY(xPos, yPos, rotate) {
var _local1 = 0.0174444444444444 * rotate;
var _local3 = Math.sin(_local1);
var _local2 = Math.cos(_local1);
rotatedXYLocX = (xPos * _local2) - (yPos * _local3);
rotatedXYLocY = (xPos * _local3) + (yPos * _local2);
}
function loadLevel() {
var _local1 = 0;
var _local3 = 0;
while (_local3 < 144) {
if (Number(LevelCode.charAt(_local1)) == 1) {
var _local2 = GROUND.attachMovie("LEVEL_Block_Black", "B" + blockCount, blockCount++);
blockArray.push(_local2);
} else if (Number(LevelCode.charAt(_local1)) == 2) {
var _local2 = SPIKES.attachMovie("LEVEL_Block_Spike", "B" + blockCount, blockCount++);
_local2._rotation = Number(LevelCode.charAt(_local1 + 1)) * 90;
blockArray.push(_local2);
} else if (Number(LevelCode.charAt(_local1)) == 3) {
var _local2 = WALLS.attachMovie("LEVEL_Block_Door", "B" + blockCount, blockCount++);
_local2._rotation = Number(LevelCode.charAt(_local1 + 1)) * 90;
_local2.gotoAndStop(Number(LevelCode.charAt(_local1 + 2)));
_local2.linkage = Number(LevelCode.charAt(_local1 + 3));
_local2.BGColour = Number(LevelCode.charAt(_local1 + 4));
blockArray.push(_local2);
} else if (Number(LevelCode.charAt(_local1)) == 4) {
var _local2 = ITEMS.attachMovie("LEVEL_Block_Key", "B" + blockCount, blockCount++);
_local2.linkage = Number(LevelCode.charAt(_local1 + 3));
_local2.BGColour = Number(LevelCode.charAt(_local1 + 4));
blockArray.push(_local2);
} else if (Number(LevelCode.charAt(_local1)) == 5) {
var _local2 = ITEMS.attachMovie("LEVEL_Block_Gravity", "B" + blockCount, blockCount++);
_local2.BGColour = Number(LevelCode.charAt(_local1 + 4));
_local2._rotation = Number(LevelCode.charAt(_local1 + 1)) * 90;
blockArray.push(_local2);
} else if (Number(LevelCode.charAt(_local1)) == 6) {
var _local2 = GREYSPACE.attachMovie("LEVEL_Block_Grey", "B" + blockCount, blockCount++);
_local2.linkage = Number(LevelCode.charAt(_local1 + 3));
_local2.BGColour = Number(LevelCode.charAt(_local1 + 4));
blockArray.push(_local2);
} else if (Number(LevelCode.charAt(_local1)) == 7) {
var _local2 = ITEMS.attachMovie("LEVEL_Block_GreySwitch", "B" + blockCount, blockCount++);
_local2.linkage = Number(LevelCode.charAt(_local1 + 3));
_local2.BGColour = Number(LevelCode.charAt(_local1 + 4));
blockArray.push(_local2);
} else if (Number(LevelCode.charAt(_local1)) == 8) {
var _local2 = attachMovie("OBJECT_MAN", "MAN", 4);
blockArray.push(_local2);
} else if (Number(LevelCode.charAt(_local1)) == 9) {
var _local2 = ITEMS.attachMovie("LEVEL_Block_Exit", "DOOR", blockCount++);
_local2.BGColour = Number(LevelCode.charAt(_local1 + 4));
_local2._rotation = Number(LevelCode.charAt(_local1 + 1)) * 90;
blockArray.push(_local2);
} else {
blockArray.push(null);
}
_local1 = _local1 + 5;
_local3++;
}
}
function arrangeTiles() {
var _local3 = 0;
var _local1 = 0;
var _local2 = 0;
_local3 = 0;
while (_local3 < 12) {
_local1 = 0;
while (_local1 < 12) {
blockArray[_local2]._x = (_local3 * 40) + 20;
blockArray[_local2]._y = (_local1 * 40) + 20;
_local2++;
_local1++;
}
_local3++;
}
}
function addBlackSpace(xPos, yPos) {
var _local1 = GROUND.attachMovie("LEVEL_Block_Black", "B" + blockCount, blockCount++);
_local1._x = xPos;
_local1._y = yPos;
}
function spriteManagement() {
if (eolSwitch == true) {
MAN.sprite.gotoAndStop("eol");
} else if (jumpActive > 1) {
if (ySpeed > 0) {
MAN.sprite.gotoAndStop("jumpDown");
} else {
MAN.sprite.gotoAndStop("jumpUp");
}
} else if (Key.isDown(39)) {
MAN.sprite.gotoAndStop("run");
MAN.sprite._xscale = scale * inversion;
} else if (Key.isDown(37)) {
MAN.sprite.gotoAndStop("run");
MAN.sprite._xscale = (-scale) * inversion;
} else {
MAN.sprite.gotoAndStop("stand");
}
}
function jump() {
if ((Key.isDown(32) && (jumpSwitch == false)) && (jumpActive < jumpBuffer)) {
ySpeed = -11;
jumpSwitch = true;
} else if ((!Key.isDown(32)) && (jumpActive < 2)) {
jumpSwitch = false;
}
}
function shift() {
if (Key.isDown(16) && (shiftSwitch == false)) {
shiftSwitch = true;
var _local1 = true;
if (((flipFreeze != true) && (levelRotateFreeze == false)) && (shiftActive == 3)) {
rotatedXY(-10, 25 * inversion, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
if (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true) {
_local1 = false;
}
rotatedXY(10, 25 * inversion, MAN._rotation);
rotatedXY(rotatedXYLocX + MAN._x, rotatedXYLocY + MAN._y, _rotation);
if (WALLS.hitTest(rotatedXYLocX + _x, rotatedXYLocY + _y, true) == true) {
_local1 = false;
}
if (_local1 == true) {
flipFreeze = true;
}
}
} else if (!Key.isDown(16)) {
shiftSwitch = false;
}
}
function setDoor(linkage) {
this["doorRotateSwitch" + linkage] = true;
}
function manageDoorActivation() {
var _local2 = 1;
while (_local2 < 6) {
if (this["doorRotateSwitch" + _local2] == true) {
this["doorRotate" + _local2] = this["doorRotate" + _local2] + 36;
this["doorRotateSwitch" + _local2] = false;
}
_local2++;
}
}
function doorManagement() {
doorFreeze = false;
var _local2 = 1;
while (_local2 < 6) {
if (this["doorRotate" + _local2] > 0) {
doorFreeze = true;
this["doorRotate" + _local2] = this["doorRotate" + _local2] - 2;
}
_local2++;
}
}
function setgrey(linkage) {
if (this["greyRotateSwitch" + linkage] == true) {
this["greyRotateSwitch" + linkage] = false;
} else {
this["greyRotateSwitch" + linkage] = true;
}
}
function setTintObject(target, r, g, b, amount) {
var _local1 = new Color(target);
_local1.setTint(r, g, b, amount);
}
function EOL() {
if (eolSwitch == true) {
if (EOLTimer > 0) {
EOLTimer--;
} else {
_root.LevelNo++;
_root.gotoAndStop("BLANK");
}
} else {
manRot = MAN._rotation;
var _local2;
if (MAN._yscale > 0) {
if ((ITEMS.DOOR._rotation == 180) && (MAN._rotation == -180)) {
_local2 = 360;
} else {
_local2 = 0;
}
} else if (ITEMS.DOOR._rotation < 0) {
_local2 = -180;
} else {
_local2 = 180;
}
if (((jumpActive < 2) && (MAN.doorHit.hitTest(ITEMS.DOOR))) && ((MAN._rotation + _local2) == ITEMS.DOOR._rotation)) {
eolSwitch = true;
}
}
}
function newSplat(xPos, yPos) {
if (MAN._visible == true) {
attachMovie("BloodContainer", "BC", 12);
BC._rotation = MAN._rotation;
BC._yscale = -MAN._yscale;
BC._x = xPos;
BC._y = yPos;
var _local1;
var _local2 = 0;
while (_local2 < 60) {
_local1 = BC.attachMovie("Blood", "B" + BCounter, BCounter++);
_local1._rotation = random(360);
_local1._xscale = random(150) + 50;
_local1._yscale = _local1._xscale;
_local1.gotoAndStop(random(3) + 1);
_local1.ySpeed = random(100) / 10;
_local1.xSpeed = (random(300) - 150) / 10;
splatArray.push(_local1);
_local2++;
}
}
}
function updateSplat() {
var _local2 = 0;
while (_local2 < splatArray.length) {
splatArray[_local2]._x = splatArray[_local2]._x + splatArray[_local2].xSpeed;
splatArray[_local2]._y = splatArray[_local2]._y + splatArray[_local2].ySpeed;
splatArray[_local2].xSpeed = splatArray[_local2].xSpeed / 1.05;
splatArray[_local2].ySpeed--;
if (splatArray[_local2]._y < -3000) {
_root.gotoAndStop("BLANK");
}
_local2++;
}
}
var Level1 = "C00800ZC01C0404311C01C01C01C0305121052130521C01C011C01C01C01AB0432105321052100432C01A01C01C01B001A0104321052100432C01AAA001B0432104321052100432C01A01C1AC0010051200512104321052110432C01A01C1AC001005120051200532C0010512C01A010022AC001C012C01A1B001AAA001C002C01A2B001A01043210432A1C002C01A2B001C001C01C01C01043210412C002C01C0404212B001C01A01C01C0101321C01C11C1C012AC01B0432C001C040412104121C01C09023130432";
var Level2 = "313527125152Z00Z00Z00Z00Z00Z00Z10Z43Z82Z4222100Z00Z00Z00Z00Z00Z00Z00Z10Z00Z00Z00Z00Z00Z00Z00Z00Z00Z00Z00Z10Z10Z33Z1011200Z00Z00Z00Z00Z00Z00Z00Z00Z00Z00Z221121011200Z00Z00Z00Z00Z00Z00Z0211250Z20112221123222200Z00Z00Z00Z00Z00Z00Z00Z00Z201122211200Z4223100Z00Z00Z00Z0Z100Z00Z00Z00Z221121223200Z00Z00Z00Z00Z00Z00Z00Z00Z00Z221123223200Z00Z00Z00Z00Z00Z00Z00Z00Z00Z2211200Z4014100Z00Z00Z00Z00Z00Z00Z00Z00Z2211200Z1014100Z00Z00Z00Z00Z00Z00Z6125161251222423324200Z0225100112001124015100Z00Z00Z6125192112";
var Level3 = "80Z12Z12Z12Z02Z12Z12Z12Z12Z12Z12Z12Z12Z02Z12Z02Z52Z02Z12Z12Z12Z12Z12Z12Z02Z00Z02Z12Z02Z12Z12Z12Z02Z12Z12Z12Z5211202Z12Z12Z12Z02Z12Z02Z02Z02Z12Z12Z12Z12Z02Z12Z02Z02Z02Z12Z02Z12Z12Z12Z12Z02Z02Z02Z12Z02Z12Z12Z12Z02Z12Z12Z12Z12Z02Z12Z12Z12Z02Z12Z02Z02Z02Z12Z12Z12Z12Z02Z12Z02Z02Z02Z12Z02Z12Z1211212Z12Z02Z02Z02Z12Z02Z12Z12Z12Z02Z5011212Z12Z12Z02Z12Z12Z12Z02Z12Z02Z02Z90Z12Z12Z10Z12Z12Z12Z02Z02Z02Z12Z02Z12Z12Z12Z12Z10Z12Z12Z12Z02Z12Z521121011200112";
var Level4 = "523116233100Z0034200Z00312103Z0Z10Z701516032190311623316233100Z00Z00ZB0Z103Z0Z00Z6032160321003316233100Z00Z00332703420031280Z10Z00Z60331603316035160332703226033260332603320031200Z10Z00Z6035100311601411031100Z00Z00Z0031100Z00Z10Z00Z60151003516014110Z10Z10Z10Z1014210Z10Z6034200Z6015100Z60141601416014160141601416014160141601416014100Z6015100Z00Z00Z00Z00ZAB00ZB0Z6015100Z60151601516015160151601516015160151601516015160151601513031100Z3031100Z00Z00Z00Z00ZACZ303110031100Z00ZB0Z00ZACZ00Z00Z00Z003117033100ZB0Z00Z00Z00Z00Z00Z4031100Z50311";
var Level5 = "91132601325Z100Z5011223Z00Z00Z5011210ZC0050Z10Z6013200Z00Z1015110Z00Z32221121222212260Z60Z10Z6013200Z53Z10Z10Z5Z10222110Z22122C0080Z10Z6013200Z00Z2115110Z00Z3222110Z2212200Z60Z10Z6013200Z00Z23Z1311200Z0222110Z22122B0Z10Z6013253Z00Z10Z10Z00Z322211212222122C0060Z10Z6013200Z50Z10Z10Z00Z0222110Z22122B0Z10Z601325Z100Z10Z2115100Z3222110Z22122C0060Z10Z6013252Z00Z1311223Z00Z0222110Z22122B0Z10Z6013200Z00Z10Z10Z00Z322211212222122C0060Z10Z6013200Z53Z10Z10Z00Z0222110Z2212200Z00Z5313210Z00Z50Z10Z13Y11322214012222122C0070Z";
var Level6 = "701311313100131013323045101332C3140Z10131101313124251242C314321200131013320133201332C31C3110131101311013110131C31131310013101332013320133240121C313Z2101311013110131C314322232551C31C31C31C31C3110131101311013110131C31131310255132551C3140231C31C3131222101311013110131C3143232025510255102352C31C31C3110131613326133261332C311313102131C3102351C31B003131332101311013141342C310135202131C31C31C31C31C3110131613326133261332001310135202131013320013100131001310013110131101311013110131001310212202131001310013100131001310013110131101311013110131001310013100131001310013Z3520135201352932421013110131101310013100131001310013Z35211352413528255113242101313124210131";
var Level7 = "Z112Z12Z12Z12Z210Z10Z10Z10Z22ZB0Z22Z0Z10Z10Y11210Z10Z10Z10ZA05Z122ZAAB020Y1210ZA00Z222ZB3ZAB20Y1293ZC00Z12Z1222Z60Z60Z60ZAB5Z2Z12Z12C00Z1222Z70Z80Z60Z03Z20Z10ZAA00Z1222Z60Z60Z60ZC0020Z10ZAA00Z1222ZAAAC521120Z10Z1C00Z1222ZBZ102Z20XZ110ZBZ1C00Z1222ZA00Z1403110Z10Z103Z0Z12311223112Z1222Z002210031102Z32122XZ112Z12Z12Z12Z1222Z3031153ZA042121AACZ233521";
var Level8 = "AAB080Z10Z10Z10Z10Z10Z10ZAAAC10Z10Z10Z10Z10Z10ZAAAC10Z10Z10Z10Z10Z10ZAAAC10Z10Z10Z10Z10Z10ZAAAC10Z10Z10Z10Z10Z10ZAAAC10Z10Z10Z10Z10Z10ZAAAC10Z10Z10Z10Z10Z10ZAAAC10Z10Z10Z10Z10Z10ZAAAC10Z10Z10Z10Z10Z10ZAAAC10Z10Z10Z10Z10Z10ZAAAC10Z10Z10Z10Z10Z10ZAAB090Z10Z10Z10Z10Z10Z10Z";
var Level9 = "AAB080411604Z04Z04Z04Z04Z0411AAAC604Z041160431104Z041160421AAAC60441104Z04Z04Z04Z0411AAAC004110041100411004110041100411AAAC004110041100411004110041100411AAAC004110041100411B041100411AAAA0411B04110041100411AAAA041100411B041100411AAAC0041100411AC41100411AAAC004110041100411004110041100411AAC041100411604Z04Z04Z04Z041160451AAC041100411604Z041160441104Z041190411";
var Level10 = "70011A080Z50012600115201102001B2001020010200112001AB10ZCZ300113001C011C11C10200110Z12001A010ZC002C122001C012C1120010200110Z1C0110011C010ZC002C122211C012C112001020011C002001ACZC002C122001C012C112001020011C002211AA002C122001C012C11200102001120Z0211C003021150211032112C122001C012C11200102001020Z0211AA002C122001C012C112001020010201102001AA002C122001C012C1120010200102011AA00432112C122001C012C11200102001020110201100211020Z3212120Z300122001C012C11200151001522110201102011020Z3212532121321222001930012C1120011C1";
var Level11 = "13232132320Z103Z0Z112Z12Y11BZ1C00404Z012103232C0012Z12Z13Z12Z41132B041103Z02Z1012103ZB3ZA012Y11B041103Z501121012103ZAA0012Z00411C0013Z104Z04Z01212323223232C00531210012112Z304Z3Z10Z10Z10Z13112104Y153112Y2112104Z3Z104Z0Z6211292Z521121041140312104Z041132522104Z3Z104Z0Z6211202Z4032112Z0Z10212113Z2011260312C0013Z10Z10Z10Z02Z12Z30331A02011240112BZ113Z13Z12Z02Z00332AB203221232213Z03Z0Z110Z12ZB0112AB203227Z210Z10Z10Z10Z12Z52321AA005Z12Z12Z252Z8Z140332Z11";
var Level12 = "104Z04Z24122Z12Z12Z1234112Z12Z12Z12Z123Z02412824Z0Z52411A010Z00Z50ZA092112024120241210Z12411A010Z00ZA010Z10Z02412024Z0ZAB10Z00ZACZ53411B24Z0ZAB10Z10Z11411B0Z00311A010ZAAAA0Z0041153Z10Z10ZAAAAC0303Z21121211210ZAB00Z00ZAB504110341100Z00Z00Z00Z01411014115341201411C0011411014125341100Z00Z00Z00Z10Z10Z10Z01411C0011411414Z3Z13Z11412114121141210Z014110141101411C006141161411714125141213Z014120141101411014110141101411004116141161411";
var Level13 = "2C051512105Z04Z2C12C1031200312003124031210322134112C0105Z2C104Z2C12C103120031200312003211032212Z2C0105Z2C104110051202C02C0031212Z103Z342212Z2C01C01C012Z12Z120Z2C12Z12Z1142212Z1C02C01C01C012Z10Z02C8200110Z1C11041210412134222C01C01C012Z10Z9200102C10Z1C11032210321134222C01C01051212Z10Z1151202C10Z1C12132210322134222C03051212C12Z10Z105121051210Z12321503212042213422203221132211322123Z23Z0512105121032110321C002042213422203221132211322103211032110512105121032150512003213032112C203221132211322103Z051210512B031100311B3421503220051221512215122151201512AC31100311B342140322";
var Level14 = "20Z10Z10Z10Z10Z10Z10Z10Z10Z10Z10Z10Z20Z10Z10Z10Z10Z10Z10Z10Z10Z10Z10Z10Z20Z10Z10Z10XX10Z10Z10Z10Z10Z0Z10Z19Z100XZ1ACZ10Z10Z10Z00Z00Z0Z10XZ1100Z53Z00Z10Z10Z10Z00Z00Z0Z10Z12Z12Z103ZB0X0Z10Z00Z00ZACZ00Z20XX10Z10Z00Z00ZAA0020XX10Z10Z00Z00ZAACZ10Z10Z110Z10Z10Z00Z00Z00ZAB0Z10Z18Z110Z10Z10Z00Z00Z00Z00Z00Z00Z00Z00Z0Z110Z10Z10Z00Z00Z00Z00Z00Z00Z00Z00Z00Z2Z12Z12Z1";
var Level15 = "6001260012600126001260012600126001260012600126001260012600121C01C01C01C01C01C01C01C01B0019C160012B0ZAB40021C21C21C0010012C1260012A01C01C01C01C01B012C0010012C1260012C0010ZAAB010012C1210012C1260012C0010ZA010Z10ZC0010012C1210012C1260012C0010ZC0010Z402Z0Z800Z0012C1210012C1260012C0010ZC0010Z10ZA010012C1210012C1260012C0010ZC00302Z0Z10Z10Z10ZC1210012C1260012C0010ZAAAB0010012C1260012C0010Z10Z10Z10Z10Z10Z10Z10Z10ZC1260012C0032121AAAAA60012";
var Level16 = "AAAAC010Z10Z10Z10ZAAAB0080Z10Z10Z10Z10ZAAAAC010Z10Z10Z10ZAAAAC010Z10Z10Z10ZB0Z00Z00Z00Z00Z00Z00Z10Z10Z10Z10ZB0Z00Z20Z10Z10Z10Z10Z10Z10Z10Z10ZB0Z00Z20Z10Z10Z10Z10Z10Z10Z10Z10ZB0Z00Z00Z00Z00Z00Z00Z10Z10Z10Z10ZAAAAC010Z10Z10Z10ZAAAAC010Z10Z10Z10ZAAAB0090Z10Z10Z10Z10ZAAAAC010Z10Z10Z10Z";
var Level17 = "AAAB0010Z10Z10Z10Z10ZAAB070Z001120011210Z10Z10Z10ZAAAZ00Z001126011210Z10Z10ZAA00201211012110112101126011210Z10Z10ZB0Z00Z00Z20121101211011200Z6011210Z10Z10ZB0Z00Z00Z201211012170121001216011210Z10Z10ZB0Z00Z00Z20121101211011200Z6011210Z10Z10ZB0Z00Z00Z201211012110112101126011210Z10Z10ZAAAA0Z6011210Z10Z10ZAAAAC01011210Z10Z10ZAAAB0060121601216012210Z10ZAAAC801216012190Z6012210Z10Z";
var Level18 = "AAAC414Z04110041100411C0080ZAAAB00104110041100411AAAAA11421013110041140411AAAAC011421AAAAAC004132Z42Z42131311AAAAA11421AAAAAA001311AAAAAA011421AAAAAA011421AB31121AAAAAC0031221AAAAAC0031321AAAAAC0031421A090411";
var Level19 = "03131731410Z103Z8XZ110Z10Z10Z1C005XX10Z10Z161121611210Z10Z10041103Z0Z10314103ZB3ZC00X10Z10Z10041103Z0Z10Z103Z03ZA0X100411BZ10Z103Z0Z103Z03ZBXZ110Z10Z10Z10Z10Z1631127112XXY110Z10Z10Z10Z10Z16311263112XXY10Z10Z10Z10Z10Z10Z10Z10Z1021210Z10Z10Z1BZ10Z10Z10Z10Z10Z113ZA00Z10Z10Z10Z10Z10Z153Z02Z00332Z11A00Z103XXZ12Z12B0112Z11A00Z163131611310Z10Z10Z10Z171131C00611410Z1C0013Z13Y110Z10Z10Z193Z";
var Level20 = "80Y12Z12Z11521216112161121711210Z100Z6213120112X1701121011261121611210Z10Z1B0411621312011263XX6112150Z0Z1121122211270131601312013103Z63XY1120Z10Z11211212112221120Z10011203Z03Z63Z2Z2Z12Z120Z11211212112Z120Z10013103Z03Z03Z03Z2Z2Z120Z20Z2021125011260131601310Z10Z10Z10Z10Z2101120011200112231121011260131601312311223112231122311213112Z12231122311213112Z12601316013152112Z12Z12Z12Z12Z12Z12Z12Z12Z12221120211200Z2Z22Z2001120011200112001120011200112Z120Z10Z25Z10011203112001127114152112611410Z20Z20Z250Z00112101121011210Z101121011210112101121011212112101121011290112";
var Level21 = "723216234103332033320333203332033320333203332033320233113332623416254262542625422333223332233322333213332133320233142311523316254262542133321333213332133321333213332023310242102331033326254241352133321333213332023310233102331023315242202331033321333213332133320033100331003310033102222323225322102331033321333213332133320033153332523320033112331123223232103332033328233130151033320033150332513320033113332133322233203332033321333212322023310033100312003310033113332133322233202331033322333123312023310333223331133321333213332133322233250151503314332213332513320333213332123311333212331133321233162321123313021213332133321333213332533325333253332133327234262331723311233103332033320333203332113312133121331213316231192331";
var Level22 = "80Z12Z12Z12Z02Z12Z12Z12Z12Z12Z12Z12Z12Z02Z12Z02Z52Z02Z12Z12Z12Z12Z12Z12Z02Z00Z02Z12Z02Z12Z12Z12Z02Z12Z12Z12Z5211202Z12Z12Z12Z02Z12Z02Z02Z02Z12Z12Z12Z12Z02Z12Z02Z02Z02Z12Z02Z12Z12Z12Z12Z02Z02Z02Z12Z02Z12Z12Z12Z02Z12Z12Z12Z12Z02Z12Z12Z12Z02Z12Z02Z02Z02Z12Z12Z12Z12Z02Z12Z02Z02Z02Z12Z02Z12Z1211212Z12Z02Z02Z02Z12Z02Z12Z12Z12Z02Z5011212Z12Z12Z02Z12Z12Z12Z02Z12Z02Z02Z90Z12Z12Z10Z12Z12Z12Z02Z02Z02Z12Z02Z12Z12Z12Z12Z10Z12Z12Z12Z02Z12Z521121011200112";
var Level23 = "AAAZ00Z00Z00Z00Z00Z10ZAAAC00Z00Z00Z00Z00Z10ZAAB082Z6011210Z10Z10Z00Z10ZAAAC6011210Z10Z10Z00Z10ZAAAC6011210Z10Z10Z00Z10ZAAAC6011210Z10Z10Z00Z10ZAAAC6011210Z10Z10Z00Z10ZAAAC6011210Z10Z10Z00Z10ZAAAC6011210Z10Z10Z00Z10ZAAAC6011210Z10Z10Z00Z10ZAAAC6011292Z00Z00Z50Z10ZAAAC6011210Z10Z10Z10Z10Z";
var Level24 = "AAAAAC0010Z10ZAAAAA80Z10Z10ZAAAAAC0010Z10ZAAAAA10Z10Z10ZAAAAC010Z10Z10Z10ZAAAB0010Z10Z10Z10Z10ZAAAB0010Z10Z10Z10Z10ZAAAB0010Z10Z10Z10Z10ZAAAAC010Z10Z10Z10ZAAAAA10Z10Z10ZAAAAC060Z60Z6011210ZAAAAC060Z90Z6011210Z";
var Level25 = "40151602116021160211602116021160211325413Z1A080Z00Z60211301316021130Z602116021160211AB02Z401416021160211302416021160211602116021102ZB0Z02Z00Z30321301516021130131303216021160211A002Z02Z4013160211602113121100Z602116021160211A002Z02Z00Z60211602116021160211602113133100ZA002Z02Z4012160211602113125101311602116021160211ACZ02Z00Z60211602116021160211602116021160211AC21100Z40Z00211002110021100211002110021100211A05021102ZC006021130151602113013160211602116021102Z02Z02Z02ZC00602116021130211B0ZC003351102Z02Z00Z3345152Z3031100Z00Z00Z30311321513051132151321517021190Z";
var Level29 = "6011260112601226012260122601326013260132601526015160142601420014160Z00141001416012100141001416013100141001416014100141C0060ZC00701216012100ZC006013100151001516014100141C0060ZB01216012100ZC0060131B0Z6014100141C0060ZB01216012100ZC0060131B0Z60141001418015160ZB0Z6012100ZC0060131B0Z6014100141C0060ZB0Z6012100ZC0060131C00701516014190151C0060ZB0Z6012100ZC0060131B0Z6014100141C0060ZB0Z6012100ZC0060131B0Z601410014170Z60Z00151001516012100Z7013160131B015160141001410014160Z00141001416012100141001416013100141001416014100141601126011260122601226012260132601326013260152601516014260142";
var LevelArray = new Array(8, 9, 16, 18, 1, 14, 17, 19, 3, 10, 4, 5, 6, 7, 20, 23, 24, 25, 29);
if (_root.editorActive == false) {
if (_root.LevelNo == 0) {
_root.setMusic("game");
}
SCRIPTLAYER.gotoAndStop(LevelArray[_root.LevelNo]);
levelLoaded = this["Level" + LevelArray[_root.LevelNo]];
} else {
SCRIPTLAYER.gotoAndStop(40);
levelLoaded = _root.editorLevel;
}
var LevelCode = ZCOMPILE(levelLoaded, "0", "A", 9);
LevelCode = ZCOMPILE(LevelCode, "0", "B", 6);
LevelCode = ZCOMPILE(LevelCode, "0", "C", 3);
LevelCode = ZCOMPILE(LevelCode, "1", "X", 9);
LevelCode = ZCOMPILE(LevelCode, "1", "Y", 6);
LevelCode = ZCOMPILE(LevelCode, "1", "Z", 3);
var blockCount = 0;
var blockArray = new Array();
createEmptyMovieClip("GROUND", 0);
createEmptyMovieClip("SPIKES", 1);
createEmptyMovieClip("GREYSPACE", 2);
createEmptyMovieClip("ITEMS", 3);
WALLS.swapDepths(5);
SCRIPTLAYER.swapDepths(6);
createEmptyMovieClip("BLOOD", 7);
WALLS.fixedWalls.swapDepths(999);
loadLevel();
arrangeTiles();
MAN._x = MAN._x - 240;
MAN._y = MAN._y - 240;
GROUND._x = GROUND._x - 240;
GROUND._y = GROUND._y - 240;
ITEMS._x = ITEMS._x - 240;
ITEMS._y = ITEMS._y - 240;
SPIKES._x = SPIKES._x - 240;
SPIKES._y = SPIKES._y - 240;
GREYSPACE._x = GREYSPACE._x - 240;
GREYSPACE._y = GREYSPACE._y - 240;
var gravityXSpeed;
var gravityYSpeed;
var ySpeed = 0;
var xSpeed = 0;
var rotateTarget = 0;
var rotateDir = 1;
var currentRotation = 0;
var xDir = 0;
var yDir = 1;
var controlReverse = 1;
var levelRotateFreeze = false;
var flipFreeze = false;
var inversion = 1;
var inversionCollision = new Array(false, true, true);
var shiftActive = 0;
var doorFreeze = false;
var jumpActive = 0;
var jumpBuffer = 5;
var gamePaused = false;
var gamePauseSwitch = false;
_root.pauseScreen._visible = false;
var rotatedXYLocX;
var rotatedXYLocY;
var scale = MAN.sprite._xscale;
var jumpSwitch = false;
var shiftSwitch = false;
var doorRotate1 = 0;
var doorRotate2 = 0;
var doorRotate3 = 0;
var doorRotate4 = 0;
var doorRotate5 = 0;
var doorRotateSwitch1 = false;
var doorRotateSwitch2 = false;
var doorRotateSwitch3 = false;
var doorRotateSwitch4 = false;
var doorRotateSwitch5 = false;
var doorSpeed = 10;
var greyRotateSwitch1 = false;
var greyRotateSwitch2 = false;
var greyRotateSwitch3 = false;
var greyRotateSwitch4 = false;
var greyRotateSwitch5 = false;
var greySpeed = 5;
var EOLTimer = 40;
var eolSwitch = false;
var manRot = MAN._rotation;
var splatArray = new Array();
var BCounter = 0;
Symbol 382 Button
on (release) {
_root.gotoFrame("title");
}
Symbol 384 Button
on (release) {
_root.musicSwitch = true;
_root.setMusic("game");
}
Symbol 386 Button
on (release) {
_root.lastSound = "";
_root.musicSwitch = false;
stopAllSounds();
}
Symbol 392 Button
on (release) {
gotoAndStop (1);
}
Symbol 394 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 980
stopAllSounds();
_root.gotoFrame("END_GOOD");
Symbol 403 Button
on (release) {
bXlnYW1lX25hbWVfdmFyaWFibGU = playerName.text;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = score;
__rankz_send__("MjM3N2olZSVhJW4lcw==", "bHNDQk5PS00=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
gotoFrame("title");
}
Symbol 407 Button
on (release) {
bXlnYW1lX25hbWVfdmFyaWFibGU = playerName.text;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = score;
__rankz_send__("MjM3N2olZSVhJW4lcw==", "bHNDQk5PS00=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
gotoFrame("title");
}