Frame 1
function mySite() {
_root.gotoAndStop("start");
}
function mySith() {
getURL ("http://www.armorgames.com", "_blank");
}
function myHigh() {
_quality = "HIGH";
}
function myMed() {
_quality = "MEDIUM";
}
function myLow() {
_quality = "LOW";
}
function myKill() {
playmusic = false;
_root.bgSound.stop();
}
function myStart() {
playmusic = true;
if (musicChoice == 1) {
} else if (musicChoice == 2) {
_root.bgSound.stop();
_root.bgSound = new Sound(this);
_root.bgSound.attachSound("bitcrusherrr", true);
_root.bgSound.start(0, 99);
} else if (musicChoice == 3) {
bgSound.stop();
bgSound = new Sound(this);
bgSound.loadSound(_root.mymusic, true);
bgSound.start(0, 99);
}
}
function removeAllClips() {
removeMovieClip(_root.crush);
removeMovieClip(_root.ragewink);
removeMovieClip(_root.rager);
removeMovieClip(_root.marker);
removeMovieClip(_root.bground1);
removeMovieClip(_root.bground2);
removeMovieClip(_root.completewoosh);
removeMovieClip(_root.fullmasc_mc);
removeMovieClip(_root.thingsattop);
var _local2 = 1;
while (_local2 <= 50) {
_root["grass" + _local2].removeMovieClip();
_root["bit" + _local2].removeMovieClip();
_local2++;
}
removeMovieClip(_root.badgrass);
removeMovieClip(_root.badgrassend);
removeMovieClip(_root.disp);
_local2 = 1;
while (_local2 <= 200) {
_root["gridBox" + _local2].removeMovieClip();
_local2++;
}
}
local_data = SharedObject.getLocal("user_data");
testRun = false;
myurl = _url;
_quality = "MEDIUM";
masterScore = 0;
var i = 1;
while (i <= 8) {
_root["customLevelRender" + i] = _root.local_data.data["customLevelRender" + i];
i++;
}
bgVolM = -50;
slider.slideBar._y = bgVolM;
slider.slideBar.onEnterFrame = function () {
bgVol = (-slider.slideBar._y) * 5;
bgSound.setVolume(bgVol);
bgVolM = slider.slideBar._y;
};
slider.slideBar.onPress = function () {
startDrag (this, false, this._x, -65, this._x, 0);
};
slider.slideBar.onRelease = (slider.slideBar.onReleaseOutside = function () {
stopDrag();
});
myname = local_data.data.myname;
chooseHead = local_data.data.chooseHead;
chooseHair = local_data.data.chooseHair;
chooseMouth = local_data.data.chooseMouth;
chooseEyes = local_data.data.chooseEyes;
if (myname == undefined) {
myname = "Crusher";
chooseHead = 1;
chooseHair = 1;
chooseMouth = 1;
chooseEyes = 1;
}
var i = 1;
while (i <= 16) {
_root["stageScore" + i] = _root.local_data.data["stageScore" + i];
if (_root["stageScore" + i] == undefined) {
_root["stageScore" + i] = 0;
}
i++;
}
camScore = _root.local_data.data["camScore" + i];
if (camScore == undefined) {
camScore = 0;
}
autosave = true;
musicChoice = 2;
mymusic = "http://";
playmusic = true;
stop();
var myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
var mySite = new ContextMenuItem("Go To Menu", mySite);
myContextMenu.customItems.push(mySite);
var mySith = new ContextMenuItem("Visit ArmorGames.com", mySith);
myContextMenu.customItems.push(mySith);
var myHigh = new ContextMenuItem("Quality: High", myHigh);
myContextMenu.customItems.push(myHigh);
var myMed = new ContextMenuItem("Quality: Medium", myMed);
myContextMenu.customItems.push(myMed);
var myLow = new ContextMenuItem("Quality: Low", myLow);
myContextMenu.customItems.push(myLow);
var myKill = new ContextMenuItem("Kill Music", myKill);
myContextMenu.customItems.push(myKill);
var myStart = new ContextMenuItem("Start Music", myStart);
myContextMenu.customItems.push(myStart);
_root.menu = myContextMenu;
Instance of Symbol 26 MovieClip in Frame 1
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Instance of Symbol 40 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root.musicChoice == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.musicChoice == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
on (press) {
_root.musicChoice = 1;
}
Instance of Symbol 40 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root.musicChoice == 2) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.musicChoice == 2) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
on (press) {
_root.musicChoice = 2;
}
Instance of Symbol 40 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root.musicChoice == 3) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.musicChoice == 3) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
on (press) {
_root.musicChoice = 3;
}
Instance of Symbol 40 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root.autosave == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.autosave == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
on (press) {
_root.autosave = true;
}
Instance of Symbol 40 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root.autosave == false) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.autosave == false) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
on (press) {
_root.autosave = false;
}
Instance of Symbol 40 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_quality == "HIGH") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_quality == "HIGH") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
on (press) {
_quality = "HIGH";
}
Instance of Symbol 40 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_quality == "MEDIUM") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_quality == "MEDIUM") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
on (press) {
_quality = "MEDIUM";
}
Instance of Symbol 40 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_quality == "LOW") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_quality == "LOW") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
on (press) {
_quality = "LOW";
}
Frame 7
stop();
Frame 8
stop();
Frame 12
stop();
Instance of Symbol 26 MovieClip in Frame 12
on (release) {
_root.play();
}
Frame 17
stop();
Frame 22
stop();
Instance of Symbol 318 MovieClip in Frame 22
onClipEvent (load) {
gotoAndPlay ("halfway");
}
Frame 27
stop();
_root.onEnterFrame = function () {
};
_root.menuDes = "";
removeAllClips();
Instance of Symbol 26 MovieClip in Frame 27
on (rollOver) {
_root.bit._y = this._y;
_root.menuDes = "Start crushing bits!";
}
on (rollOut) {
_root.bit._y = -100;
_root.menuDes = "";
}
on (press) {
_root.menuSelect = "levelSelect";
_root.bit.play();
}
Instance of Symbol 26 MovieClip in Frame 27
on (rollOver) {
_root.bit._y = this._y;
_root.menuDes = "Play more awesome games at armorgames.com.";
}
on (rollOut) {
_root.bit._y = -100;
_root.menuDes = "";
}
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Instance of Symbol 26 MovieClip in Frame 27
on (rollOver) {
_root.bit._y = this._y;
_root.menuDes = "Create your own Bit village, then destroy it!";
}
on (rollOut) {
_root.bit._y = -100;
_root.menuDes = "";
}
on (press) {
_root.menuSelect = "customLevels";
_root.bit.play();
}
Instance of Symbol 26 MovieClip in Frame 27
on (rollOver) {
_root.bit._y = this._y;
_root.menuDes = "Fun bonus game to play with your webcam!";
}
on (rollOut) {
_root.bit._y = -100;
_root.menuDes = "";
}
on (press) {
_root.menuSelect = "webcamMode";
_root.bit.play();
}
Instance of Symbol 26 MovieClip in Frame 27
on (rollOver) {
_root.bit._y = this._y;
_root.menuDes = "Customize the way your crusher looks.";
}
on (rollOut) {
_root.bit._y = -100;
_root.menuDes = "";
}
on (press) {
_root.menuSelect = "customize";
_root.bit.play();
}
Instance of Symbol 26 MovieClip in Frame 27
on (rollOver) {
_root.bit._y = this._y;
_root.menuDes = "Change your music preferences and other options.";
}
on (rollOut) {
_root.bit._y = -100;
_root.menuDes = "";
}
on (press) {
_root.menuSelect = "options";
_root.bit.play();
}
Instance of Symbol 26 MovieClip in Frame 27
on (rollOver) {
_root.bit._y = this._y;
_root.menuDes = "Read the instructions if you missed anything at the start.";
}
on (rollOut) {
_root.bit._y = -100;
_root.menuDes = "";
}
on (press) {
_root.menuSelect = "tut1";
_root.bit.play();
}
Frame 33
removeAllClips();
Instance of Symbol 26 MovieClip in Frame 33
on (press) {
_root.playType = "webcam";
_root.gotoAndStop("camCrush");
}
Instance of Symbol 26 MovieClip in Frame 33
on (press) {
_root.gotoAndStop("start");
}
Frame 40
choosy = false;
slider.slideBar._y = bgVolM;
slider.slideBar.onEnterFrame = function () {
bgVol = (-slider.slideBar._y) * 5;
bgSound.setVolume(bgVol);
bgVolM = slider.slideBar._y;
};
slider.slideBar.onPress = function () {
startDrag (this, false, this._x, -65, this._x, 0);
};
slider.slideBar.onRelease = (slider.slideBar.onReleaseOutside = function () {
stopDrag();
});
Instance of Symbol 26 MovieClip in Frame 40
on (press) {
_root.gotoAndStop("start");
}
Instance of Symbol 40 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.musicChoice == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.musicChoice == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
on (press) {
_root.musicChoice = 1;
}
Instance of Symbol 40 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.musicChoice == 2) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.musicChoice == 2) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
on (press) {
_root.musicChoice = 2;
}
Instance of Symbol 40 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.musicChoice == 3) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.musicChoice == 3) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
on (press) {
_root.musicChoice = 3;
}
Instance of Symbol 40 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.autosave == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.autosave == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
on (press) {
_root.autosave = true;
}
Instance of Symbol 40 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.autosave == false) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.autosave == false) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
on (press) {
_root.autosave = false;
}
Instance of Symbol 40 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_quality == "HIGH") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_quality == "HIGH") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
on (press) {
_quality = "HIGH";
}
Instance of Symbol 40 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_quality == "MEDIUM") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_quality == "MEDIUM") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
on (press) {
_quality = "MEDIUM";
}
Instance of Symbol 40 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_quality == "LOW") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_quality == "LOW") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
on (press) {
_quality = "LOW";
}
Instance of Symbol 26 MovieClip in Frame 40
on (press) {
var i = 1;
while (i <= 16) {
_root.local_data.data["stageScore" + i] = 0;
i++;
}
var i = 1;
while (i <= 8) {
_root.local_data.data["customLevelRender" + i] = undefined;
i++;
}
_root.local_data.data.camScore = 0;
_root.local_data.data.myname = "Crusher";
_root.local_data.data.chooseHead = 1;
_root.local_data.data.chooseHair = 1;
_root.local_data.data.chooseMouth = 1;
_root.local_data.data.chooseEyes = 1;
_root.local_data.flush();
var i = 1;
while (i <= 16) {
_root["stageScore" + i] = _root.local_data.data["stageScore" + i];
i++;
}
var i = 1;
while (i <= 8) {
_root["customLevelRender" + i] = _root.local_data.data["customLevelRender" + i];
i++;
}
_root.camScore = _root.local_data.data.camScore;
_root.myname = _root.local_data.data.myname;
_root.chooseHead = _root.local_data.data.chooseHead;
_root.chooseHair = _root.local_data.data.chooseHair;
_root.chooseMouth = _root.local_data.data.chooseMouth;
_root.chooseEyes = _root.local_data.data.chooseEyes;
}
Frame 47
choosy = false;
Instance of Symbol 26 MovieClip in Frame 47
on (press) {
_root.local_data.data.myname = _root.myname;
_root.local_data.data.chooseHead = _root.chooseHead;
_root.local_data.data.chooseHair = _root.chooseHair;
_root.local_data.data.chooseMouth = _root.chooseMouth;
_root.local_data.data.chooseEyes = _root.chooseEyes;
_root.local_data.flush();
_root.gotoAndStop("start");
}
Instance of Symbol 26 MovieClip in Frame 47
on (press) {
_root.chooseHead = _root.chooseHead + 1;
if (_root.chooseHead > 8) {
_root.chooseHead = 1;
}
}
Instance of Symbol 26 MovieClip in Frame 47
on (press) {
_root.chooseHair = _root.chooseHair + 1;
if (_root.chooseHair > 3) {
_root.chooseHair = 1;
}
}
Instance of Symbol 26 MovieClip in Frame 47
on (press) {
_root.chooseMouth = _root.chooseMouth + 1;
if (_root.chooseMouth > 5) {
_root.chooseMouth = 1;
}
}
Instance of Symbol 26 MovieClip in Frame 47
on (press) {
_root.chooseEyes = _root.chooseEyes + 1;
if (_root.chooseEyes > 12) {
_root.chooseEyes = 1;
}
}
Instance of Symbol 26 MovieClip in Frame 47
on (press) {
_root.myname = "Crusher";
_root.chooseHead = 1;
_root.chooseHair = 1;
_root.chooseMouth = 1;
_root.chooseEyes = 1;
}
Frame 55
removeAllClips();
menuDes = "Choose a save slot then select an option";
saveSlot = 0;
var c = 1;
while (c <= 16) {
_root.masterScore = _root.masterScore + _root["stageScore" + c];
_root["stageBar" + c] = (c * 1000) - 3000;
c++;
}
var a = 1;
while (a <= 8) {
if (_root["customLevelRender" + a] == undefined) {
_root["stage" + a] = "Empty Slot " + a;
} else {
nameStart = _root["customLevelRender" + a].indexOf("startCode,");
nameEnd = _root["customLevelRender" + a].indexOf(",grassX");
nameArraySplit = _root["customLevelRender" + a].slice(nameStart, nameEnd);
nameArray = nameArraySplit.split(",");
_root["stage" + a] = nameArray[1];
}
_root["box" + a].pID = a;
_root["box" + a].onEnterFrame = function () {
if (_root.saveSlot == this.pID) {
_root["box" + this.pID].gotoAndStop(2);
_root["box" + this.pID]._alpha = 50;
} else {
_root["box" + this.pID]._alpha = 0;
}
};
_root["box" + a].onRollOver = function () {
_root.bit._x = _root["box" + this.pID]._x - 110;
_root.bit._y = _root["box" + this.pID]._y - 5;
_root.menuDes = "Select this slot.";
};
_root["box" + a].onRollOut = function () {
_root.bit._y = -100;
_root.menuDes = "Choose a save slot then select an option.";
};
_root["box" + a].onPress = function () {
_root.saveSlot = this.pID;
};
a++;
}
Instance of Symbol 26 MovieClip "box1" in Frame 55
onClipEvent (enterFrame) {
if (_root["customLevelRender" + _root.saveSlot] == undefined) {
this._alpha = 50;
} else {
this._alpha = 0;
}
}
on (rollOver) {
if (_root["customLevelRender" + _root.saveSlot] != undefined) {
_root.bit._x = this._x - 110;
_root.bit._y = this._y - 5;
_root.menuDes = "This village is ready to be terrorized!";
}
}
on (rollOut) {
_root.bit._y = -100;
_root.menuDes = "";
}
on (press) {
if (_root["customLevelRender" + _root.saveSlot] != undefined) {
_root.levelName = _root["stage" + _root.saveSlot];
levelRender = _root["customLevelRender" + _root.saveSlot];
grassXStart = levelRender.indexOf("grassX");
grassXEnd = levelRender.indexOf("grassY");
grassXArraySplit = levelRender.slice(grassXStart, grassXEnd);
_root.grassXArray = grassXArraySplit.split(",");
var i = 0;
while (i < _root.grassXArray.length) {
_root.grassXArray[i] = Number(_root.grassXArray[i]);
i++;
}
grassYStart = levelRender.indexOf("grassY");
grassYEnd = levelRender.indexOf("grassType");
grassYArraySplit = levelRender.slice(grassYStart, grassYEnd);
_root.grassYArray = grassYArraySplit.split(",");
var i = 0;
while (i < _root.grassYArray.length) {
_root.grassYArray[i] = Number(_root.grassYArray[i]);
i++;
}
grassTypeStart = levelRender.indexOf("grassType");
grassTypeEnd = levelRender.indexOf("bitX");
grassTypeArraySplit = levelRender.slice(grassTypeStart, grassTypeEnd);
_root.grassTypeArray = grassTypeArraySplit.split(",");
bitXStart = levelRender.indexOf("bitX");
bitXEnd = levelRender.indexOf("bitY");
bitXArraySplit = levelRender.slice(bitXStart, bitXEnd);
_root.bitXArray = bitXArraySplit.split(",");
var i = 0;
while (i < _root.bitXArray.length) {
_root.bitXArray[i] = Number(_root.bitXArray[i]);
i++;
}
bitYStart = levelRender.indexOf("bitY");
bitYEnd = levelRender.indexOf("bitType");
bitYArraySplit = levelRender.slice(bitYStart, bitYEnd);
_root.bitYArray = bitYArraySplit.split(",");
var i = 0;
while (i < _root.bitYArray.length) {
_root.bitYArray[i] = Number(_root.bitYArray[i]);
i++;
}
bitTypeStart = levelRender.indexOf("bitType");
bitTypeEnd = levelRender.indexOf("bitBits");
bitTypeArraySplit = levelRender.slice(bitTypeStart, bitTypeEnd);
_root.bitTypeArray = bitTypeArraySplit.split(",");
bitBitsStart = levelRender.indexOf("bitBits");
bitBitsEnd = levelRender.indexOf("endCode");
bitBitsArraySplit = levelRender.slice(bitBitsStart, bitBitsEnd);
_root.bitBitsArray = bitBitsArraySplit.split(",");
var i = 0;
while (i < _root.bitBitsArray.length) {
_root.bitBitsArray[i] = Number(_root.bitBitsArray[i]);
i++;
}
_root.playType = "custom";
_root.menuSelect = "stage1";
_root.bit.play();
}
}
Instance of Symbol 26 MovieClip "box2" in Frame 55
onClipEvent (enterFrame) {
if (_root.saveSlot == 0) {
this._alpha = 50;
} else {
this._alpha = 0;
}
}
on (rollOver) {
if (_root.saveSlot != 0) {
_root.bit._x = this._x - 110;
_root.bit._y = this._y - 5;
if (_root["customLevelRender" + _root.saveSlot] != undefined) {
_root.menuDes = "Create a level in this slot.";
} else {
_root.menuDes = "Edit this level or scrap it and start again.";
}
}
}
on (rollOut) {
_root.bit._y = -100;
_root.menuDes = "";
}
on (press) {
if (_root.saveSlot != 0) {
_root.levelRender = _root["customLevelRender" + _root.saveSlot];
_root.menuSelect = "levelCreate";
_root.bit.play();
}
}
Instance of Symbol 26 MovieClip "box3" in Frame 55
onClipEvent (enterFrame) {
if (_root.saveSlot == 0) {
this._alpha = 50;
} else {
this._alpha = 0;
}
}
on (rollOver) {
if (_root.saveSlot != 0) {
_root.bit._x = this._x - 110;
_root.bit._y = this._y - 5;
if (_root["customLevelRender" + _root.saveSlot] != undefined) {
_root.menuDes = "Get the code of this level to share with others.";
} else {
_root.menuDes = "If you have someone else's level code, click here to import it.";
}
}
}
on (rollOut) {
_root.bit._y = -100;
_root.menuDes = "";
}
on (press) {
if (_root.saveSlot != 0) {
if (_root["customLevelRender" + _root.saveSlot] == undefined) {
_root.levelRender = "";
} else {
_root.levelRender = _root["customLevelRender" + _root.saveSlot];
}
_root.menuSelect = "renderLevel";
_root.bit.play();
}
}
Instance of Symbol 26 MovieClip in Frame 55
on (press) {
_root.gotoAndStop("start");
}
Frame 64
removeAllClips();
masterScore = 0;
stageScore = "";
stageRating = "";
stageName = "";
stageDes = "Roll over a stage to see more details. click to play.";
levelRender1 = "startCode,inbuilt,grassX,20,2,18,17,16,15,7,6,5,4,13,12,11,10,9,11,14,13,9,8,grassY,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,6,7,7,7,7,grassType,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,bitX,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,19,18,17,15,13,12,11,10,9,7,6,5,4,3,18,17,16,15,7,6,5,4,13,12,11,10,9,14,13,9,8,bitY,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,3,3,3,3,3,3,4,4,4,4,4,7,7,7,7,bitType,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,bit,bitGirl,bit,bitGirl,bitHouse,bitHouse,bitChurch,bitHouse,bitHouse,bitGirl,bit,bitGirl,bit,bitGirl,bitHouse,bitShop,bit,bitGirl,bitGirl,bit,bitShop,bitHouse,bitGirl,bit,bitGirl,bit,bitGirl,bit,bitHouse,bitHouse,bit,bitBits,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,1,1,1,1,1,2,7,1,3,1,1,1,1,1,2,3,1,1,1,1,3,2,1,1,1,1,1,1,3,3,1,endCode";
stageName1 = "Bitville";
stageDes1 = "A quiet town on the outskirts of BitVille. An easy target!";
levelRender2 = "startCode,inbuilt,grassX,16,15,6,5,17,13,12,3,18,10,9,2,20,19,8,7,17,6,4,3,grassY,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,grassType,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,bitX,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,20,17,14,13,10,7,6,3,16,15,6,5,17,13,12,3,18,10,2,20,19,8,17,6,4,3,bitY,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,4,4,4,5,5,5,5,bitType,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,bitHouse,bitGirl,bit,bitGirl,bitHouse,bit,bitGirl,bit,bitGirl,bit,bitHouse,bit,bitHouse,bitHouse,bit,bit,bitGirl,bitGirl,bitHouse,bitHouse,bit,bitHouse,bitChurch,bit,bitGirl,bitHouse,bitBits,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,3,1,1,1,3,1,1,1,1,1,3,1,3,3,1,1,1,1,3,3,1,3,7,1,1,3,endCode";
stageName2 = "Bit's End";
stageDes2 = "A slum town, each house is home to several bits. Use your bombs and destroy them all quickly!";
levelRender3 = "startCode,inbuilt,grassX,10,15,5,18,17,13,12,8,7,3,2,10,15,13,12,8,7,5,4,16,grassY,1,2,2,3,3,3,3,3,3,3,3,5,6,6,6,6,6,6,6,7,grassType,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,bitX,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,20,19,18,17,14,12,8,5,4,2,10,15,5,18,17,13,12,8,7,3,2,15,13,12,8,7,5,4,16,bitY,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,0,0,0,0,0,0,0,0,0,0,1,2,2,3,3,3,3,3,3,3,3,6,6,6,6,6,6,6,7,bitType,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,bitShop,bitShop,bit,bit,bit,bitGirl,bitGirl,bit,bitGirl,bitGirl,bitGirl,bit,bitShop,bitShop,bitShop,bit,bitGirl,bit,bitShop,bitGirl,bit,bitShop,bitShop,bitShop,bitGirl,bit,bitGirl,bitShop,bitGirl,bitBits,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,1,1,1,4,1,1,1,3,4,1,1,1,4,1,endCode";
stageName3 = "Bitmingham";
stageDes3 = "A shopping hotspot, try and hit the more popular areas to score big.";
levelRender4 = "startCode,inbuilt4,grassX,19,1,17,3,15,14,13,12,11,10,9,8,7,6,5,13,7,11,9,10,grassY,1,1,2,2,3,3,3,3,3,3,3,3,3,3,3,5,5,7,7,8,grassType,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,bitX,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,19,1,17,3,15,14,13,12,11,10,9,8,7,6,5,10,bitY,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,2,3,3,3,3,3,3,3,3,3,3,3,8,bitType,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,bitJog,bit,bit,bitGirl,bitHouse,bitHouse,bitGirl,bitHouse,bitJog,bitHouse,bitGirl,bitGirl,bitHouse,bitHouse,bitJog,bitJog,bitHouse,bit,bitJog,bitJog,bitGirl,bitJog,bit,bitGirl,bitGirl,bitHouse,bitJog,bit,bitHouse,bit,bitJog,bitHouse,bit,bitHouse,bitJog,bitChurch,bitBits,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,1,1,1,1,1,3,1,1,1,2,1,1,1,3,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,3,1,1,1,7,endCode";
stageName4 = "Bitcastle";
stageDes4 = "A busy town, it'll take extra care to crush bits that are rushing about.";
levelRender5 = "startCode,inbuilt,grassX,20,12,11,10,1,18,17,16,15,14,13,9,8,7,6,5,4,3,12,10,grassY,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,grassType,grass,spike,spike,spike,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,bitX,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,20,18,17,16,15,14,12,11,9,8,7,6,5,4,2,1,18,16,15,14,9,8,7,6,5,4,3,12,10,bitY,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,3,3,3,3,3,3,3,3,3,5,5,bitType,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,bitJog,bitShop,bitShop,bitShop,bitGirl,bit,bitGirl,bit,bitHouse,bitHouse,bitHouse,bitJog,bit,bit,bitGirl,bitGirl,bitHouse,bitHouse,bitJog,bit,bitJog,bit,bit,bitGirl,bitHouse,bitHouse,bitHouse,bitHospital,bitHotel,bitBits,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,1,4,3,2,1,1,1,1,2,1,3,1,1,1,1,1,2,3,1,1,1,1,1,1,1,3,1,4,5,endCode";
stageName5 = "Bithampton";
stageDes5 = "The villagers heard you coming and set up a trap, teach them a lesson!";
levelRender6 = "startCode,inbuilt6,grassX,20,19,18,15,9,5,12,3,10,1,13,3,16,15,14,5,13,10,2,1,grassY,2,2,2,2,2,2,3,3,4,4,5,6,7,7,7,8,9,9,9,9,grassType,spike,grass,grass,grass,spike,grass,grass,grass,grass,grass,grass,grass,grass,spike,grass,grass,grass,grass,grass,spike,bitX,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,19,17,16,15,13,10,9,8,6,5,3,19,18,15,5,12,10,1,13,3,16,15,5,13,10,2,bitY,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,3,4,4,5,6,7,7,8,9,9,9,bitType,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,bitGirl,bit,bitGirl,bit,bit,bitHouse,bitGirl,bit,bit,bitGirl,bit,bitChurch,bitGirl,bitGirl,bit,bit,bitHouse,bitHouse,bit,bitHouse,bitHospital,bit,bit,bitHouse,bitGirl,bitHotel,bitBits,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,1,1,1,1,1,2,1,1,1,1,1,5,1,1,1,1,3,2,1,3,7,1,1,3,1,7,endCode";
stageName6 = "Bit's Green";
stageDes6 = "Damaged by the great bit war, this town is very disjointed. watch out for the spikes.";
levelRender7 = "startCode,inbuilt6,grassX,15,14,13,9,8,7,18,17,5,4,19,3,13,12,10,9,17,16,6,5,grassY,2,2,2,2,2,2,4,4,4,4,6,6,7,7,7,7,8,8,8,8,grassType,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,bitX,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,20,19,17,16,15,13,11,9,7,5,4,3,1,15,14,13,9,8,7,18,17,5,4,3,13,12,10,9,17,16,6,5,bitY,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,4,4,4,4,6,7,7,7,7,8,8,8,8,bitType,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,bitHouse,bitShop,bitGirl,bit,bit,bitFat,bit,bitGirl,bitFat,bitGirl,bitShop,bitShop,bitFat,bitHouse,bitHouse,bit,bitHouse,bitFat,bitGirl,bitFat,bitShop,bitShop,bitFat,bitGirl,bitFat,bitHotel,bitHotel,bitGirl,bitHouse,bit,bitFat,bitHouse,bitBits,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,2,3,1,1,1,1,1,1,1,1,3,1,1,2,1,1,2,1,1,1,1,1,1,1,1,5,5,1,3,1,1,2,endCode";
stageName7 = "Bit Gorge";
stageDes7 = "Home to a world famous bit cheese factory, some bits have eaten so much they may take a few jumps to crush.";
levelRender8 = "startCode,inbuilt,grassX,17,4,20,19,18,3,2,1,14,13,12,11,10,9,8,17,4,18,3,2,grassY,2,2,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,8,8,8,grassType,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,bitX,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,20,19,18,17,16,14,13,12,11,10,9,8,7,6,5,4,3,1,4,20,19,18,3,2,1,14,13,12,11,10,9,8,17,4,18,3,2,bitY,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,8,8,8,bitType,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,bitHouse,bitGirl,bitJog,bitJog,bitGirl,bitHouse,bitHouse,bitFat,bitHouse,bitGirl,bitHouse,bitGirl,bitHouse,bitJog,bitFat,bitJog,bitGirl,bitGirl,bit,bitGirl,bitJog,bitGirl,bitGirl,bitJog,bitFat,bitJog,bitJog,bitJog,bitJog,bitJog,bitJog,bitJog,bitHouse,bitHouse,bitHotel,bitGirl,bitHotel,bitBits,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,2,1,1,1,1,2,1,1,2,1,2,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,5,1,3,endCode";
stageName8 = "Bitdon";
stageDes8 = "Soon to host the Bit Olympics, the villagers are busy training. Be careful, some are very fast!";
levelRender9 = "startCode,inbuilt,grassX,7,12,11,10,5,4,16,15,14,3,18,12,11,6,20,19,14,13,8,7,grassY,2,3,3,3,4,4,5,5,5,6,7,7,7,7,9,9,9,9,9,9,grassType,grass,grass,spike,grass,grass,spike,grass,spike,grass,grass,grass,grass,spike,grass,grass,grass,grass,grass,grass,grass,bitX,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,20,17,14,12,9,5,4,2,7,12,11,10,5,4,16,14,3,18,12,11,6,20,19,14,13,8,7,bitY,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,0,0,0,0,0,0,0,0,2,3,3,3,4,4,5,5,6,7,7,7,7,9,9,9,9,9,9,bitType,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,bit,bitJog,bitFat,bitGirl,bitJog,bitJog,bitGirl,bit,bitFat,bitGirl,bitJog,bitGirl,bitHouse,bitGirl,bitHouse,bit,bit,bitShop,bitShop,bitGirl,bit,bitHospital,bitHouse,bitHotel,bitHouse,bitChurch,bitHouse,bitBits,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,1,1,1,1,1,1,1,1,1,1,1,1,2,1,3,1,1,3,2,1,1,6,3,5,2,4,3,endCode";
stageName9 = "Bitopia";
stageDes9 = "A town in the sky, you'll need to get up to the top to score big.";
levelRender10 = "startCode,inbuilt,grassX,14,13,7,6,17,16,11,10,9,4,3,18,2,16,14,12,8,6,4,10,grassY,2,2,2,2,4,4,4,4,4,4,4,6,6,8,8,8,8,8,8,9,grassType,grass,grass,grass,grass,grass,grass,spike,grass,spike,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,bitX,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,19,18,11,10,9,8,4,1,14,13,7,6,17,16,10,4,3,18,2,16,14,12,8,6,4,10,bitY,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,0,0,0,0,0,0,0,0,2,2,2,2,4,4,4,4,4,6,6,8,8,8,8,8,8,9,bitType,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,bit,bitJog,bitHouse,bitHouse,bitHouse,bitFat,bitGirl,bitJog,bitGirl,bitHouse,bitHouse,bit,bitHouse,bitJog,bitGunner,bitGirl,bitHouse,bitGirl,bitFat,bitShop,bitFat,bitHotel,bitHotel,bitJog,bitShop,bitChurch,bitBits,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,1,1,1,2,3,1,1,1,1,3,2,1,3,1,1,1,2,1,1,2,1,5,3,1,3,7,endCode";
stageName10 = "Bit's Heath";
stageDes10 = "The town mayor is a keen marksman, destroy him before he destroys you.";
levelRender11 = "startCode,inbuilt,grassX,20,19,12,11,10,9,2,1,17,16,15,6,5,4,13,12,9,8,15,6,grassY,2,2,2,2,2,2,2,2,4,4,4,4,4,4,5,5,5,5,7,7,grassType,spike,grass,grass,spike,spike,grass,spike,grass,grass,spike,grass,grass,spike,grass,grass,grass,grass,grass,grass,grass,bitX,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,20,18,16,15,13,10,8,6,5,4,2,20,19,12,11,10,9,2,1,17,16,15,6,5,4,13,12,9,8,15,6,bitY,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,4,4,4,4,4,4,5,5,5,5,7,7,bitType,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,bitFat,bitFat,bitFat,bitFat,bitFat,bitFat,bitFat,bitFat,bitFat,bitFat,bitFat,bitFat,bitFat,bitHouse,bitFat,bitFat,bitHouse,bitFat,bitFat,bitHouse,bitFat,bitShop,bitShop,bitFat,bitHouse,bitFat,bitHouse,bitFat,bitHouse,bitChurch,bitHospital,bitBits,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,3,1,1,2,1,2,3,1,2,1,3,1,2,4,6,endCode";
stageName11 = "Bitsas";
stageDes11 = "Known as the worlds fattest village, most of the villagers here have had a few too many pies.";
levelRender12 = "startCode,inbuilt 12,grassX,14,13,12,8,7,6,16,10,4,14,13,12,8,7,6,10,17,16,4,3,grassY,2,2,2,2,2,2,4,4,4,6,6,6,6,6,6,7,8,8,8,8,grassType,grass,grass,grass,grass,grass,grass,spike,grass,spike,grass,grass,grass,grass,grass,grass,grass,spike,grass,grass,spike,bitX,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,20,19,18,17,15,13,12,11,10,9,8,6,5,4,3,2,14,13,12,8,7,6,10,14,13,12,8,7,6,10,17,16,4,3,bitY,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,4,6,6,6,6,6,6,7,8,8,8,8,bitType,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,bitHouse,bitHouse,bitFat,bitHouse,bitHouse,bit,bitGirl,bit,bitJog,bitJog,bitFat,bitGirl,bitJog,bitHouse,bitHouse,bitGirl,bitHotel,bitHotel,bitJog,bitFat,bitHotel,bitHotel,bit,bitHotel,bitShop,bitGirl,bitFat,bitHotel,bitHotel,bit,bit,bitHotel,bitHotel,bitGirl,bitBits,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,1,1,1,2,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,2,1,1,2,3,1,1,2,5,1,1,4,3,1,endCode";
stageName12 = "Bitokyo";
stageDes12 = "A very built up city, you'll need to let loose a lot of bombs to destroy it all.";
levelRender13 = "startCode,inbuilt,grassX,20,19,17,16,7,6,5,3,10,9,8,13,12,11,20,19,18,17,15,14,grassY,2,2,2,2,2,2,2,2,4,4,4,6,6,6,8,8,8,8,8,8,grassType,grass,spike,spike,grass,spike,grass,grass,grass,spike,grass,grass,spike,grass,grass,grass,grass,grass,grass,grass,grass,bitX,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,18,16,15,14,12,11,10,9,8,6,3,20,19,17,16,7,6,5,3,10,9,8,13,12,11,20,19,18,17,15,14,bitY,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,4,4,4,6,6,6,8,8,8,8,8,8,bitType,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,bitGirl,bitJog,bitGirl,bitJog,bitGunner,bitGirl,bitJog,bitGirl,bitFat,bitJog,bitFat,bitHotel,bitGirl,bitGirl,bitHospital,bit,bitGunner,bit,bitJog,bit,bitGunner,bitHouse,bitGirl,bitGunner,bitHouse,bitBase,bitGunner,bitGunner,bitGirl,bitGirl,bitHouse,bitBits,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,1,1,1,1,1,1,1,1,1,1,1,8,1,1,5,1,1,1,1,1,1,2,1,1,3,5,1,1,1,1,2,endCode";
stageName13 = "Bitsderdam";
stageDes13 = "Word of your crushing has spread, the villagers have set up a weapon training facility. Watch out for gunners!";
levelRender14 = "startCode,inbuilt,grassX,20,3,11,6,5,18,17,15,7,13,10,9,12,16,15,14,7,6,4,3,grassY,2,2,3,3,3,4,4,4,5,6,7,7,8,9,9,9,9,9,9,9,grassType,grass,grass,spike,spike,grass,grass,spike,grass,grass,grass,spike,grass,grass,spike,grass,grass,grass,spike,grass,grass,bitX,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,20,19,18,17,16,15,13,12,10,8,6,5,4,2,20,3,11,6,5,18,17,15,7,13,10,9,12,16,15,14,7,6,4,3,bitY,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,3,3,3,4,4,4,5,6,7,7,8,9,9,9,9,9,9,9,bitType,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,bitJog,bitJog,bitJog,bitJog,bitGunner,bitJog,bitHotel,bitHotel,bitHotel,bitHotel,bitJog,bitGunner,bitJog,bitJog,bitHotel,bitGunner,bitJog,bitJog,bitJog,bitGunner,bitJog,bitGunner,bitHotel,bitHotel,bitJog,bitJog,bitJog,bitJog,bitHotel,bitGunner,bitGunner,bitJog,bitGunner,bitHotel,bitBits,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,1,1,1,1,1,1,1,2,1,2,1,1,1,1,4,1,1,1,1,1,1,1,2,3,1,1,1,1,5,1,1,1,1,5,endCode";
stageName14 = "Bitdown";
stageDes14 = "With a high crime rate, this is known as the most dangerous town in Bitland. Keep an eye out for dangers.";
levelRender15 = "startCode,inbuilt,grassX,18,17,16,6,5,4,15,14,8,7,12,11,10,11,15,14,13,9,8,7,grassY,2,2,2,2,2,2,4,4,4,4,5,5,5,7,9,9,9,9,9,9,grassType,grass,grass,spike,spike,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,grass,spike,grass,grass,spike,grass,bitX,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,19,18,17,16,15,14,13,12,11,10,9,7,5,4,3,2,18,17,16,6,5,4,15,14,8,7,11,11,15,14,13,9,8,7,bitY,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,4,4,4,4,5,7,9,9,9,9,9,9,bitType,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,bitJog,bitJog,bitFat,bitFat,bitJog,bitJog,bitGunner,bitHouse,bitHouse,bitHouse,bitGunner,bitFat,bitJog,bitFat,bitJog,bitJog,bitJog,bitGunner,bitFat,bitFat,bitGunner,bitJog,bitJog,bitGunner,bitGunner,bitJog,bitMech,bitBase,bitHotel,bitJog,bitGunner,bitGunner,bitJog,bitHotel,bitBits,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,1,1,1,1,1,1,1,2,3,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,5,5,1,1,1,1,5,endCode";
stageName15 = "Bitford";
stageDes15 = "Famed for it's science parks, the villagers here have a surprise waiting for you...";
levelRender16 = "startCode,inbuilt 16,grassX,17,16,15,7,6,5,13,12,11,10,9,17,16,15,7,6,5,12,11,10,grassY,2,2,2,2,2,2,4,4,4,4,4,6,6,6,6,6,6,8,8,8,grassType,spike,grass,spike,spike,grass,spike,grass,grass,grass,grass,grass,grass,spike,grass,grass,spike,grass,grass,grass,grass,bitX,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,20,19,13,12,11,10,9,8,3,2,17,16,15,7,6,5,13,12,11,10,9,17,16,15,7,6,5,12,11,10,bitY,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,4,4,4,4,4,6,6,6,6,6,6,8,8,8,bitType,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,bitGunner,bitGunner,bitGunner,bitBase,bitBase,bitBase,bitGunner,bitGunner,bitGunner,bitGunner,bit,bitGunner,bit,bit,bitGunner,bit,bitGunner,bitGunner,bitBase,bitGunner,bitGunner,bitGunner,bitMech,bitGunner,bitGunner,bitMech,bitGunner,bitMech,bitHotel,bitMech,bitBits,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,1,1,1,3,5,3,1,1,1,1,1,1,1,1,1,1,1,1,5,1,1,1,1,1,1,1,1,1,9,1,endCode";
stageName16 = "Bitropolis";
stageDes16 = "The heart of Bit Land's army training, it'll take an earthquake to bring down this town. So give them one!";
var c = 1;
while (c <= 16) {
_root.masterScore = _root.masterScore + _root["stageScore" + c];
_root["stageBar" + c] = (c * 1000) - 3000;
c++;
}
var a = 1;
while (a <= 16) {
_root["box" + a].pID = a;
_root["box" + a].onEnterFrame = function () {
if (_root.masterScore >= _root["stageBar" + this.pID]) {
_root["box" + this.pID]._alpha = 0;
} else {
_root["box" + this.pID]._alpha = 50;
}
};
_root["box" + a].onRollOver = function () {
_root.bit._x = _root["box" + this.pID]._x - 50;
_root.bit._y = _root["box" + this.pID]._y - 5;
_root.stageName = _root["stageName" + this.pID];
if (_root.masterScore >= _root["stageBar" + this.pID]) {
_root.stageDes = _root["stageDes" + this.pID];
} else {
_root.stageDes = ("Requires a Total Score of at least " + _root["stageBar" + this.pID]) + ".";
}
_root.stageScore = _root["stageScore" + this.pID];
if (_root.stageScore >= 1200) {
_root.stageRating = "M";
} else if (_root.stageScore >= 1000) {
_root.stageRating = "A";
} else if (_root.stageScore >= 800) {
_root.stageRating = "B";
} else if (_root.stageScore >= 600) {
_root.stageRating = "C";
} else if (_root.stageScore >= 400) {
_root.stageRating = "D";
} else if (_root.stageScore >= 200) {
_root.stageRating = "E";
} else {
_root.stageRating = "NA";
}
};
_root["box" + a].onRollOut = function () {
_root.bit._y = -100;
_root.stageScore = "";
_root.stageName = "";
_root.stageDes = "Roll over a stage to see more details. click to play.";
_root.stageRating = "NA";
};
_root["box" + a].onPress = function () {
if ((_root.masterScore >= _root["stageBar" + this.pID]) || (_root.testRun == true)) {
levelRender = _root["levelRender" + this.pID];
grassXStart = levelRender.indexOf("grassX");
grassXEnd = levelRender.indexOf("grassY");
grassXArraySplit = levelRender.slice(grassXStart, grassXEnd);
_root.grassXArray = grassXArraySplit.split(",");
var _local3 = 0;
while (_local3 < _root.grassXArray.length) {
_root.grassXArray[_local3] = Number(_root.grassXArray[_local3]);
_local3++;
}
grassYStart = levelRender.indexOf("grassY");
grassYEnd = levelRender.indexOf("grassType");
grassYArraySplit = levelRender.slice(grassYStart, grassYEnd);
_root.grassYArray = grassYArraySplit.split(",");
_local3 = 0;
while (_local3 < _root.grassYArray.length) {
_root.grassYArray[_local3] = Number(_root.grassYArray[_local3]);
_local3++;
}
grassTypeStart = levelRender.indexOf("grassType");
grassTypeEnd = levelRender.indexOf("bitX");
grassTypeArraySplit = levelRender.slice(grassTypeStart, grassTypeEnd);
_root.grassTypeArray = grassTypeArraySplit.split(",");
bitXStart = levelRender.indexOf("bitX");
bitXEnd = levelRender.indexOf("bitY");
bitXArraySplit = levelRender.slice(bitXStart, bitXEnd);
_root.bitXArray = bitXArraySplit.split(",");
_local3 = 0;
while (_local3 < _root.bitXArray.length) {
_root.bitXArray[_local3] = Number(_root.bitXArray[_local3]);
_local3++;
}
bitYStart = levelRender.indexOf("bitY");
bitYEnd = levelRender.indexOf("bitType");
bitYArraySplit = levelRender.slice(bitYStart, bitYEnd);
_root.bitYArray = bitYArraySplit.split(",");
_local3 = 0;
while (_local3 < _root.bitYArray.length) {
_root.bitYArray[_local3] = Number(_root.bitYArray[_local3]);
_local3++;
}
bitTypeStart = levelRender.indexOf("bitType");
bitTypeEnd = levelRender.indexOf("bitBits");
bitTypeArraySplit = levelRender.slice(bitTypeStart, bitTypeEnd);
_root.bitTypeArray = bitTypeArraySplit.split(",");
bitBitsStart = levelRender.indexOf("bitBits");
bitBitsEnd = levelRender.indexOf("endCode");
bitBitsArraySplit = levelRender.slice(bitBitsStart, bitBitsEnd);
_root.bitBitsArray = bitBitsArraySplit.split(",");
_local3 = 0;
while (_local3 < _root.bitBitsArray.length) {
_root.bitBitsArray[_local3] = Number(_root.bitBitsArray[_local3]);
_local3++;
}
_root.menuSelect = "stage1";
_root.currentLevel = this.pID;
_root.playType = "main";
_root.bit.play();
}
};
a++;
}
if (masterScore > 18000) {
crushRank = 8;
crushTitle = "Mad Style";
var b = 1;
while (b <= 8) {
_root["status" + b]._alpha = 100;
b++;
}
} else if (masterScore > 16000) {
crushRank = 7;
crushTitle = "Apocalyptic Force";
var b = 1;
while (b <= 7) {
_root["status" + b]._alpha = 100;
b++;
}
} else if (masterScore > 13000) {
crushRank = 6;
crushTitle = "Worldwide Anarchist";
var b = 1;
while (b <= 6) {
_root["status" + b]._alpha = 100;
b++;
}
} else if (masterScore > 10000) {
crushRank = 5;
crushTitle = "Insane Terrorist";
var b = 1;
while (b <= 5) {
_root["status" + b]._alpha = 100;
b++;
}
} else if (masterScore > 7000) {
crushRank = 4;
crushTitle = "Killing Machine";
var b = 1;
while (b <= 4) {
_root["status" + b]._alpha = 100;
b++;
}
} else if (masterScore > 4000) {
crushRank = 3;
crushTitle = "Major Hazard";
var b = 1;
while (b <= 3) {
_root["status" + b]._alpha = 100;
b++;
}
} else if (masterScore > 2000) {
crushRank = 2;
crushTitle = "Mild Threat";
var b = 1;
while (b <= 2) {
_root["status" + b]._alpha = 100;
b++;
}
} else {
crushRank = 1;
crushTitle = "Scrap Metal";
var b = 1;
while (b <= 1) {
_root["status" + b]._alpha = 100;
b++;
}
}
Instance of Symbol 26 MovieClip in Frame 64
on (press) {
_root.gotoAndStop("start");
}
Frame 72
stop();
if (playmusic == true) {
if (musicChoice == 1) {
} else if (musicChoice == 2) {
bgSound.stop();
bgSound = new Sound(this);
bgSound.attachSound("bitcrusherrr", true);
bgSound.start(0, 99);
bgSound.setVolume(bgVol);
} else if (musicChoice == 3) {
bgSound.stop();
bgSound = new Sound(this);
bgSound.loadSound(_root.mymusic, true);
bgSound.start(0, 99);
bgSound.setVolume(bgVol);
}
}
bitChain = 0;
bitChainA = false;
rage = 0;
raging = false;
speed = 2;
accel = -50;
grassshift = 0;
totalScore = 0;
bgroundshift = 0;
jumpShift = 0;
choosey = false;
completed = false;
majorx = 0;
majory = 400;
timer = 100;
tbomb = 0;
bitleft = 0;
bombPlace = false;
startSpeed = 0;
bombPlaceX = 1;
bombPlaceY = 1;
bombNum = 1;
bombLeft = 5;
ii = 1;
iconI = 1;
attachMovie("disp", "disp", 900);
disp._x = 0;
disp._y = 0;
attachMovie("startfade", "startfade", 1100);
startfade._x = -5;
startfade._y = -5;
attachMovie("ragewink", "rager", 980);
rager._x = 55;
rager._y = 55;
attachMovie("bground", "bground1", 1);
bground1._y = 50;
attachMovie("bground", "bground2", 2);
bground2._y = 50;
attachMovie("crush", "crush", 10);
crush._x = 275;
crush._y = 0;
attachMovie("badgrass", "badgrass", 399);
badgrass._x = 0;
badgrass._y = 400;
attachMovie("badgrassend", "badgrassend", 398);
badgrassend._y = 400;
attachMovie("grassBase", "grass1", 311);
grass1._x = 200;
grass1Y = 0;
attachMovie("grassBase", "grass2", 312);
grass2._x = 800;
grass2Y = 0;
majormovemax = 0;
var i = 3;
while (i <= 22) {
_root[("grass" + i) + "X"] = grassXArray[i - 2];
_root[("grass" + i) + "Y"] = grassYArray[i - 2];
_root[("grass" + i) + "Type"] = grassTypeArray[i - 2];
attachMovie("grass", "grass" + i, 312 + i);
if (_root[("grass" + i) + "Type"] == "spike") {
_root["grass" + i].spike._alpha = 100;
} else {
_root["grass" + i].spike._alpha = 0;
}
i++;
}
var i = 1;
while (i <= 50) {
_root[("bit" + i) + "X"] = bitXArray[i];
_root[("bit" + i) + "Y"] = bitYArray[i];
_root[("bit" + i) + "Type"] = bitTypeArray[i];
_root[("bit" + i) + "Bits"] = bitBitsArray[i];
if (_root[("bit" + i) + "Type"] == "bitMech") {
attachMovie("bit", "bit" + i, 50 + i);
_root["bit" + i].bit.bit.bit.coat.gotoAndStop(3);
_root["bit" + i].bit.bit.bit.body.gotoAndStop(2);
_root["bit" + i].bit.bit.bit.head.head.gotoAndStop(3);
_root["bit" + i].bit.bit.bit.head.eyes.gotoAndStop(3);
_root["bit" + i].bit.bit.bit.head.mouth.gotoAndStop(2);
_root["bit" + i].bit.bit.bit.legBack.gotoAndStop(3);
_root["bit" + i].bit.bit.bit.legFront.gotoAndStop(3);
_root["bit" + i].bit.bit.bit.armBack.gotoAndStop(4);
_root["bit" + i].bit.bit.bit.armFront.gotoAndStop(4);
_root[("bit" + i) + "Dir"] = 1;
} else if (_root[("bit" + i) + "Type"] == "bitGunner") {
attachMovie("bit", "bit" + i, 50 + i);
_root["bit" + i].bit.bit.bit.coat.gotoAndStop(2);
_root["bit" + i].bit.bit.bit.head.head.gotoAndStop(2);
_root["bit" + i].bit.bit.bit.head.eyes.gotoAndStop(2);
_root["bit" + i].bit.bit.bit.head.mouth.gotoAndStop(2);
_root["bit" + i].bit.bit.bit.legBack.gotoAndStop(2);
_root["bit" + i].bit.bit.bit.legFront.gotoAndStop(2);
_root["bit" + i].bit.bit.bit.armBack.gotoAndStop(3);
_root["bit" + i].bit.bit.bit.armBack.arm._rotation = 90;
_root["bit" + i].bit.bit.bit.armFront.gotoAndStop(2);
_root[("bit" + i) + "Dir"] = 1;
} else if (_root[("bit" + i) + "Type"] == "bitGirl") {
attachMovie("bit", "bit" + i, 50 + i);
_root["bit" + i].bit.bit.bit.dress._alpha = 100;
ranDirection = Math.random() * 10;
if (ranDirection > 5) {
_root[("bit" + i) + "Dir"] = 1;
} else {
_root[("bit" + i) + "Dir"] = -1;
}
} else if (_root[("bit" + i) + "Type"] == "bitFat") {
attachMovie("bit", "bit" + i, 50 + i);
_root["bit" + i].bit.bit.bit.head.head.gotoAndStop(5);
_root["bit" + i].bit.bit.bit.coat.gotoAndStop(4);
_root["bit" + i].bit.bit.bit.body.gotoAndStop(3);
ranDirection = Math.random() * 10;
if (ranDirection > 5) {
_root[("bit" + i) + "Dir"] = 1;
} else {
_root[("bit" + i) + "Dir"] = -1;
}
} else if (_root[("bit" + i) + "Type"] == "bitJog") {
attachMovie("bit", "bit" + i, 50 + i);
_root["bit" + i].bit.bit.bit.head.head.gotoAndStop(4);
_root["bit" + i].bit.bit.bit.legBack.gotoAndStop(4);
_root["bit" + i].bit.bit.bit.legFront.gotoAndStop(4);
ranDirection = Math.random() * 10;
if (ranDirection > 5) {
_root[("bit" + i) + "Dir"] = 1;
} else {
_root[("bit" + i) + "Dir"] = -1;
}
} else {
ranDirection = Math.random() * 10;
if (ranDirection > 5) {
_root[("bit" + i) + "Dir"] = 1;
} else {
_root[("bit" + i) + "Dir"] = -1;
}
attachMovie(_root[("bit" + i) + "Type"], "bit" + i, 50 + i);
}
_root[("bit" + i) + "Alive"] = true;
_root[("bit" + i) + "Walk"] = 1;
_root[("bit" + i) + "ranMove"] = 0.5 + (Math.random() * 0.5);
if (_root[("bit" + i) + "Type"] == "bitHouse") {
_root["bit" + i].HP = 10;
} else if (_root[("bit" + i) + "Type"] == "bitChurch") {
_root["bit" + i].HP = 15;
} else if (_root[("bit" + i) + "Type"] == "bitBase") {
_root["bit" + i].HP = 20;
} else if (_root[("bit" + i) + "Type"] == "bitHotel") {
_root["bit" + i].HP = 20;
} else if (_root[("bit" + i) + "Type"] == "bitHospital") {
_root["bit" + i].HP = 15;
} else if (_root[("bit" + i) + "Type"] == "bitShop") {
_root["bit" + i].HP = 10;
} else if (_root[("bit" + i) + "Type"] == "bit") {
_root["bit" + i].HP = 1;
} else if (_root[("bit" + i) + "Type"] == "bitGunner") {
_root["bit" + i].HP = 1;
} else if (_root[("bit" + i) + "Type"] == "bitMech") {
_root["bit" + i].HP = 15;
} else if (_root[("bit" + i) + "Type"] == "bitGirl") {
_root["bit" + i].HP = 1;
} else if (_root[("bit" + i) + "Type"] == "bitJog") {
_root["bit" + i].HP = 1;
} else if (_root[("bit" + i) + "Type"] == "bitFat") {
_root["bit" + i].HP = 7;
}
i++;
}
crush.onEnterFrame = function () {
if (raging == true) {
_root.bground1.gotoAndStop(2);
_root.bground2.gotoAndStop(2);
speed = 4;
} else {
_root.bground1.gotoAndStop(1);
_root.bground2.gotoAndStop(1);
speed = 2;
}
bground1._x = (-(majorx / 2)) + bgroundshift;
bground2._x = (700 - (majorx / 2)) + bgroundshift;
if (bground2._x < 0) {
bgroundshift = bgroundshift + 700;
}
if (bground1._x > 0) {
bgroundshift = bgroundshift - 700;
}
grass1._x = (-600 - majorx) + grassshift;
grass2._x = (-majorx) + grassshift;
grass1._y = majory - 0;
grass2._y = majory - 0;
if (grass2._x < 0) {
grassshift = grassshift + 600;
}
if (grass1._x > 0) {
grassshift = grassshift - 600;
}
var _local4 = 3;
while (_local4 <= 22) {
_root["grass" + _local4]._x = ((_root[("grass" + _local4) + "X"] + 5) * 100) - majorx;
_root["grass" + _local4]._y = majory - (_root[("grass" + _local4) + "Y"] * 100);
if (_root[("grass" + _local4) + "Type"] == "spike") {
if (_root["grass" + _local4].spike.hitTest(crush.spikebox)) {
disp.energy.play();
crush.volts.play();
timer = timer - 1;
}
}
_local4++;
}
badgrass._x = 100 - majorx;
badgrass._y = majory - 0;
badgrassend._x = 2800 - majorx;
badgrassend._y = majory - 0;
_local4 = 1;
while (_local4 <= 50) {
if (_root["bit" + _local4]._y != undefined) {
if ((((((_root[("bit" + _local4) + "Type"] == "bitHouse") || (_root[("bit" + _local4) + "Type"] == "bitChurch")) || (_root[("bit" + _local4) + "Type"] == "bitBase")) || (_root[("bit" + _local4) + "Type"] == "bitShop")) || (_root[("bit" + _local4) + "Type"] == "bitHospital")) || (_root[("bit" + _local4) + "Type"] == "bitHotel")) {
_root["bit" + _local4]._x = (((_root[("bit" + _local4) + "X"] + 5) * 100) + 5) - majorx;
_root["bit" + _local4]._y = majory - ((_root[("bit" + _local4) + "Y"] + 1) * 100);
if (_root["bit" + _local4].box.hitTest(crush.hit)) {
_root["bit" + _local4].house.play();
}
} else if (_root[("bit" + _local4) + "Type"] == "bit") {
_root["bit" + _local4]._xscale = _root[("bit" + _local4) + "Dir"] * 100;
_root[("bit" + _local4) + "Walk"] = _root[("bit" + _local4) + "Walk"] - (2 * _root[("bit" + _local4) + "Dir"]);
_root["bit" + _local4]._x = (((_root[("bit" + _local4) + "X"] + 5) * 100) - majorx) + (_root[("bit" + _local4) + "Walk"] * _root[("bit" + _local4) + "ranMove"]);
_root["bit" + _local4]._y = majory - (_root[("bit" + _local4) + "Y"] * 100);
if (_root["bit" + _local4].bit.box.hitTest(crush.hit)) {
_root["bit" + _local4].HP = 0;
}
} else if (_root[("bit" + _local4) + "Type"] == "bitFat") {
_root["bit" + _local4]._xscale = _root[("bit" + _local4) + "Dir"] * 100;
_root[("bit" + _local4) + "Walk"] = _root[("bit" + _local4) + "Walk"] - (2 * _root[("bit" + _local4) + "Dir"]);
_root["bit" + _local4]._x = (((_root[("bit" + _local4) + "X"] + 5) * 100) - majorx) + (_root[("bit" + _local4) + "Walk"] * _root[("bit" + _local4) + "ranMove"]);
_root["bit" + _local4]._y = majory - (_root[("bit" + _local4) + "Y"] * 100);
if (_root["bit" + _local4].bit.box.hitTest(crush.hit)) {
_root["bit" + _local4].play();
_root["bit" + _local4].HP = _root["bit" + _local4].HP - speed;
}
} else if (_root[("bit" + _local4) + "Type"] == "bitGirl") {
_root["bit" + _local4]._xscale = _root[("bit" + _local4) + "Dir"] * 100;
_root[("bit" + _local4) + "Walk"] = _root[("bit" + _local4) + "Walk"] - (2 * _root[("bit" + _local4) + "Dir"]);
_root["bit" + _local4]._x = (((_root[("bit" + _local4) + "X"] + 5) * 100) - majorx) + (_root[("bit" + _local4) + "Walk"] * _root[("bit" + _local4) + "ranMove"]);
_root["bit" + _local4]._y = majory - (_root[("bit" + _local4) + "Y"] * 100);
if (_root["bit" + _local4].bit.box.hitTest(crush.hit)) {
_root["bit" + _local4].HP = 0;
}
} else if (_root[("bit" + _local4) + "Type"] == "bitJog") {
_root["bit" + _local4]._xscale = _root[("bit" + _local4) + "Dir"] * 100;
_root[("bit" + _local4) + "Walk"] = _root[("bit" + _local4) + "Walk"] - (4 * _root[("bit" + _local4) + "Dir"]);
_root["bit" + _local4]._x = (((_root[("bit" + _local4) + "X"] + 5) * 100) - majorx) + (_root[("bit" + _local4) + "Walk"] * _root[("bit" + _local4) + "ranMove"]);
_root["bit" + _local4]._y = majory - (_root[("bit" + _local4) + "Y"] * 100);
if (_root["bit" + _local4].bit.box.hitTest(crush.hit)) {
_root["bit" + _local4].HP = 0;
}
} else if (_root[("bit" + _local4) + "Type"] == "bitGunner") {
var _local5 = {x:_root["bit" + _local4].bit.bit.bit.armBack.joint._x, y:_root["bit" + _local4].bit.bit.bit.armBack.joint._y};
_root["bit" + _local4].bit.bit.bit.armBack.joint.localToGlobal(_local5);
darkcxLeft = _local5.x;
darkcyLeft = _local5.y;
darkpointxLeft = darkcxLeft;
darkpointyLeft = darkcyLeft + 80;
darkmousexLeft = crush._x;
darkmouseyLeft = crush._y + 100;
darkangleLeft = Math.atan2(darkmouseyLeft - darkpointyLeft, darkmousexLeft - darkpointxLeft);
darkrotateFactor = (darkangleLeft * 57.2957795130823) + 180;
if (_root["bit" + _local4]._x < crush._x) {
_root["bit" + _local4]._xscale = -100;
_root["bit" + _local4].bit.bit.bit.armBack.arm._rotation = 180 - darkrotateFactor;
_root["bit" + _local4].bit.bit.bit.head._rotation = (180 - darkrotateFactor) / 2;
} else {
_root["bit" + _local4]._xscale = 100;
_root["bit" + _local4].bit.bit.bit.armBack.arm._rotation = darkrotateFactor;
if (darkrotateFactor < 90) {
_root["bit" + _local4].bit.bit.bit.head._rotation = darkrotateFactor / 2;
} else {
_root["bit" + _local4].bit.bit.bit.head._rotation = 0;
}
}
_root["bit" + _local4]._x = (((_root[("bit" + _local4) + "X"] + 5) * 100) - majorx) + 50;
_root["bit" + _local4]._y = majory - (_root[("bit" + _local4) + "Y"] * 100);
if (_root["bit" + _local4].bit.box.hitTest(crush.hit)) {
_root["bit" + _local4].HP = 0;
}
shootRan = Math.random() * 100;
if (((((shootRan > 98) && (_root["bit" + _local4]._x < (crush._x + 250))) && (_root["bit" + _local4]._x > (crush._x - 250))) && (_root["bit" + _local4]._y > (crush._y - 200))) && (_root["bit" + _local4]._y > (crush._y - 200))) {
var _local6 = {x:_root["bit" + _local4].bit.bit.bit.armBack.arm.point._x, y:_root["bit" + _local4].bit.bit.bit.armBack.arm.point._y};
_root["bit" + _local4].bit.bit.bit.armBack.arm.point.localToGlobal(_local6);
duplicateMovieClip (_root.bull, "bullet" + _root.ii, 100 + _root.ii);
_root["bullet" + _root.ii]._x = _local6.x;
_root["bullet" + _root.ii]._y = _local6.y;
_root["bullet" + _root.ii].rotateFactor = darkrotateFactor - 180;
_root["bullet" + _root.ii].dir = _root[("bit" + _local4) + "Dir"];
ii = ii + 1;
if (ii > 49) {
ii = 1;
}
trapDiff = _root.crush._x - _root["bit" + _local4]._x;
if (trapDiff < 0) {
trapDiff = -trapDiff;
}
trapDiff = trapDiff / 3;
trapVolume = 100 - trapDiff;
if (trapVolume > 0) {
wepSound = new Sound(this);
wepSound.attachSound("fxGun");
wepSound.start(0, 1);
wepSound.setVolume(trapVolume);
}
}
} else if (_root[("bit" + _local4) + "Type"] == "bitMech") {
_root[("bit" + _local4) + "Walk"] = _root[("bit" + _local4) + "Walk"] - (2 * _root[("bit" + _local4) + "Dir"]);
_root["bit" + _local4]._x = (((_root[("bit" + _local4) + "X"] + 5) * 100) - majorx) + (_root[("bit" + _local4) + "Walk"] * _root[("bit" + _local4) + "ranMove"]);
_root["bit" + _local4]._y = majory - (_root[("bit" + _local4) + "Y"] * 100);
var _local5 = {x:_root["bit" + _local4].bit.bit.bit.armBack.joint._x, y:_root["bit" + _local4].bit.bit.bit.armBack.joint._y};
_root["bit" + _local4].bit.bit.bit.armBack.joint.localToGlobal(_local5);
darkcxLeft = _local5.x;
darkcyLeft = _local5.y;
darkpointxLeft = darkcxLeft;
darkpointyLeft = darkcyLeft + 80;
darkmousexLeft = crush._x;
darkmouseyLeft = crush._y + 100;
darkangleLeft = Math.atan2(darkmouseyLeft - darkpointyLeft, darkmousexLeft - darkpointxLeft);
darkrotateFactor = (darkangleLeft * 57.2957795130823) + 180;
if (_root["bit" + _local4]._x < crush._x) {
_root["bit" + _local4]._xscale = -100;
_root["bit" + _local4].bit.bit.bit.armBack.arm._rotation = 180 - darkrotateFactor;
_root["bit" + _local4].bit.bit.bit.head._rotation = (180 - darkrotateFactor) / 2;
} else {
_root["bit" + _local4]._xscale = 100;
_root["bit" + _local4].bit.bit.bit.armBack.arm._rotation = darkrotateFactor;
if (darkrotateFactor < 90) {
_root["bit" + _local4].bit.bit.bit.head._rotation = darkrotateFactor / 2;
} else {
_root["bit" + _local4].bit.bit.bit.head._rotation = 0;
}
}
if (_root["bit" + _local4].bit.box.hitTest(crush.hit)) {
_root["bit" + _local4].play();
_root["bit" + _local4].HP = _root["bit" + _local4].HP - speed;
}
shootRan = Math.random() * 100;
if (((((shootRan > 95) && (_root["bit" + _local4]._x < (crush._x + 250))) && (_root["bit" + _local4]._x > (crush._x - 250))) && (_root["bit" + _local4]._y > (crush._y - 200))) && (_root["bit" + _local4]._y > (crush._y - 200))) {
var _local6 = {x:_root["bit" + _local4].bit.bit.bit.armBack.arm.point._x, y:_root["bit" + _local4].bit.bit.bit.armBack.arm.point._y};
_root["bit" + _local4].bit.bit.bit.armBack.arm.point.localToGlobal(_local6);
duplicateMovieClip (_root.bull, "bullet" + _root.ii, 100 + _root.ii);
_root["bullet" + _root.ii]._x = _local6.x;
_root["bullet" + _root.ii]._y = _local6.y;
_root["bullet" + _root.ii].rotateFactor = darkrotateFactor - 180;
_root["bullet" + _root.ii].dir = 1;
ii = ii + 1;
if (ii > 49) {
ii = 1;
}
trapDiff = _root.crush._x - _root["bit" + _local4]._x;
if (trapDiff < 0) {
trapDiff = -trapDiff;
}
trapDiff = trapDiff / 3;
trapVolume = 100 - trapDiff;
if (trapVolume > 0) {
wepSound = new Sound(this);
wepSound.attachSound("fxGun");
wepSound.start(0, 1);
wepSound.setVolume(trapVolume);
}
}
}
var _local3 = 3;
while (_local3 <= 22) {
if (_root["bit" + _local4].bit.box.hitTest(_root.badgrassend) || (_root["bit" + _local4].bit.box.hitTest(_root["grass" + _local3].rBox))) {
if (!_root["grass" + _local3].rBox.hitTest(_root["grass" + (_local3 - 1)].lBox)) {
_root[("bit" + _local4) + "Dir"] = 1;
}
} else if (_root["bit" + _local4].bit.box.hitTest(_root.badgrass) || (_root["bit" + _local4].bit.box.hitTest(_root["grass" + _local3].lBox))) {
if (!_root["grass" + _local3].lBox.hitTest(_root["grass" + (_local3 + 1)].rBox)) {
_root[("bit" + _local4) + "Dir"] = -1;
}
}
_local3++;
}
if ((((((((_root["bit" + _local4].box.hitTest(bombBoom1.box) || (_root["bit" + _local4].box.hitTest(bombBoom2.box))) || (_root["bit" + _local4].box.hitTest(bombBoom3.box))) || (_root["bit" + _local4].box.hitTest(bombBoom4.box))) || (_root["bit" + _local4].box.hitTest(bombBoom5.box))) || (_root["bit" + _local4].box.hitTest(bombBoom6.box))) || (_root["bit" + _local4].box.hitTest(bombBoom7.box))) || (_root["bit" + _local4].box.hitTest(bombBoom8.box))) || (_root["bit" + _local4].box.hitTest(bombBoom9.box))) {
_root["bit" + _local4].HP = 0;
}
if (_root["bit" + _local4].HP <= 0) {
if (_root[("bit" + _local4) + "Alive"] == true) {
_root[("bit" + _local4) + "Alive"] = false;
if ((((((_root[("bit" + _local4) + "Type"] == "bitHouse") || (_root[("bit" + _local4) + "Type"] == "bitChurch")) || (_root[("bit" + _local4) + "Type"] == "bitBase")) || (_root[("bit" + _local4) + "Type"] == "bitShop")) || (_root[("bit" + _local4) + "Type"] == "bitHospital")) || (_root[("bit" + _local4) + "Type"] == "bitHotel")) {
_root["bit" + _local4].play();
} else if ((((((_root[("bit" + _local4) + "Type"] == "bit") || (_root[("bit" + _local4) + "Type"] == "bitGunner")) || (_root[("bit" + _local4) + "Type"] == "bitMech")) || (_root[("bit" + _local4) + "Type"] == "bitGirl")) || (_root[("bit" + _local4) + "Type"] == "bitJog")) || (_root[("bit" + _local4) + "Type"] == "bitFat")) {
_root["bit" + _local4].bit.gotoAndPlay(_root[("bit" + _local4) + "Type"]);
}
bitChain = bitChain + _root[("bit" + _local4) + "Bits"];
bitChainA = true;
bitleft = bitleft + _root[("bit" + _local4) + "Bits"];
totalScore = totalScore + ((9 + bitChain) * _root[("bit" + _local4) + "Bits"]);
if (bitChain >= 2) {
attachMovie("chainIcon", "chainIcon", 700 + iconI);
chainIcon._x = _root["bit" + _local4]._x;
chainIcon._y = _root["bit" + _local4]._y;
iconI = iconI + 1;
}
if (rage < 100) {
rage = rage + (20 * _root[("bit" + _local4) + "Bits"]);
}
}
}
}
_local4++;
}
if ((((((((_root.crush.hit.hitTest(bombBoom1.box) || (_root.crush.hit.hitTest(bombBoom2.box))) || (_root.crush.hit.hitTest(bombBoom3.box))) || (_root.crush.hit.hitTest(bombBoom4.box))) || (_root.crush.hit.hitTest(bombBoom5.box))) || (_root.crush.hit.hitTest(bombBoom6.box))) || (_root.crush.hit.hitTest(bombBoom7.box))) || (_root.crush.hit.hitTest(bombBoom8.box))) || (_root.crush.hit.hitTest(bombBoom9.box))) {
disp.energy.play();
crush.volts.play();
timer = timer - 5;
}
var _local7 = {x:_root.crush.basePoint._x, y:_root.crush.basePoint._y};
_root.crush.basePoint.localToGlobal(_local7);
_local4 = 1;
while (_local4 <= 22) {
var _local8 = {x:_root["grass" + _local4].boxboo._x, y:_root["grass" + _local4].boxboo._y};
_root["grass" + _local4].boxboo.localToGlobal(_local8);
grasslength = _root["grass" + _local4]._width;
boundary = jumpShift / 2;
if ((((_local7.y - majory) <= ((_local8.y + (boundary - 40)) - majory)) && (_local7.x > (_local8.x - 10))) && (_local7.x < ((_local8.x + 10) + grasslength))) {
activeGrass = _root["grass" + _local4];
activeGrassPreY = _root[("grass" + _local4) + "Y"];
}
_local4++;
}
var _local8 = {x:activeGrass.boxboo._x, y:activeGrass.boxboo._y};
activeGrass.boxboo.localToGlobal(_local8);
if ((_local7.y - majory) < (_local8.y - majory)) {
} else {
if (bitChainA == false) {
bitChain = 0;
} else {
bitChainA = false;
}
activeGrassY = activeGrassPreY;
accel = -50;
startSpeed = 1;
checkPoint = _local8.y;
if (bombPlace == false) {
if (Key.isDown(83) || (Key.isDown(40))) {
if (bombLeft > 0) {
bombPlace = true;
attachMovie("bombBoom", "bombBoom" + bombNum, 200 + bombNum);
_root["bombBoom" + bombNum].bombPlaceX = majorx + _local7.x;
_root["bombBoom" + bombNum].bombPlaceY = (100 * activeGrassPreY) + 10;
bombNum = bombNum + 1;
bombLeft = bombLeft - 1;
}
}
}
}
if (bombNum >= 9) {
bombNum = 1;
}
_local4 = 1;
while (_local4 <= 10) {
_root["bombBoom" + _local4]._x = _root["bombBoom" + _local4].bombPlaceX - majorx;
_root["bombBoom" + _local4]._y = majory - _root["bombBoom" + _local4].bombPlaceY;
_local4++;
}
accel = accel + 5;
if (accel > 40) {
accel = 40;
}
jumpShift = jumpShift + accel;
crush._y = jumpShift;
majorCom = 300 + (activeGrassY * 100);
if (majorCom < 400) {
majorCom = 400;
}
majorMove = (majorCom - majory) / 8;
if (majorMove > 10) {
majorMove = 10;
}
if (majorMove > majormovemax) {
majormovemax = majorMove;
}
if (majorCom < majory) {
majory = majory + (majorMove * 2);
}
if (majorCom > majory) {
majory = majory + majorMove;
}
discrush = _local7.y;
disgrass = _local8.y;
discrushx = _local7.x;
disgrassx = _local8.x;
if (Key.isDown(65) || (Key.isDown(37))) {
if (majorx > 0) {
majorx = majorx - ((8 * speed) * startSpeed);
}
crush._xscale = -100;
}
if (Key.isDown(68) || (Key.isDown(39))) {
if (majorx < 2500) {
majorx = majorx + ((8 * speed) * startSpeed);
}
crush._xscale = 100;
}
tbomb = tbomb + 1;
if (tbomb > 20) {
if (rage > 0) {
if (raging == true) {
rage = rage - 20;
} else {
rage = rage - 10;
}
}
if (timer > 0) {
if (bitleft < 50) {
timer = timer - 1;
}
}
tbomb = 0;
}
if (((timer < 1) || (bitleft == 50)) && (completed == false)) {
completed = true;
crush.play();
attachMovie("completewoosh", "completewoosh", 997);
completewoosh._x = 120;
completewoosh._y = 200;
}
if (iconI > 18) {
iconI = 1;
}
};
Instance of Symbol 505 MovieClip "bull" in Frame 72
onClipEvent (load) {
if (_root.weapon == 1) {
if (_root.testRun == true) {
damage = 20;
} else {
damage = 3;
}
} else if (_root.weapon == 2) {
damage = 2;
} else if (_root.weapon == 3) {
damage = 6;
} else if (_root.weapon == 4) {
damage = 4;
} else if (_root.weapon == 5) {
damage = 2;
}
this._xscale = -this._xscale;
if (dir == 1) {
this._rotation = rotateFactor;
} else {
this._rotation = -rotateFactor;
}
initial = rotateFactor;
if (initial < 0) {
initial2 = -initial;
} else {
initial2 = initial;
}
perin = initial2 * 1.11111111111111;
perinleft = perin - 100;
_root.disGun = initial;
}
onClipEvent (enterFrame) {
if ((initial > 0) && (initial < 90)) {
this._x = this._x + ((100 - perin) * 0.3);
this._y = this._y + (perin * 0.3);
} else if ((initial < 0) && (initial > -90)) {
this._x = this._x + ((100 - perin) * 0.3);
this._y = this._y - (perin * 0.3);
} else if ((initial < -90) && (initial > -180)) {
this._x = this._x - (perinleft * 0.3);
this._y = this._y - ((100 - perinleft) * 0.3);
} else if ((initial > 90) && (initial < 180)) {
this._x = this._x - (perinleft * 0.3);
this._y = this._y + ((100 - perinleft) * 0.3);
}
if ((((this._y > 600) || (this._y < -200)) || (this._x > 750)) || (this._x < -200)) {
removeMovieClip(this);
}
if (this.hitTest(_root.crush)) {
_root.disp.energy.play();
_root.crush.volts.play();
_root.timer = _root.timer - 5;
removeMovieClip(this);
}
}
Frame 80
function takeSnapshot() {
snapshot.draw(output_vid, new flash.geom.Matrix());
}
stop();
if (playmusic == true) {
if (musicChoice == 1) {
} else if (musicChoice == 2) {
bgSound.stop();
bgSound = new Sound(this);
bgSound.attachSound("bitcrusherrr", true);
bgSound.start(0, 99);
bgSound.setVolume(bgVol);
} else if (musicChoice == 3) {
bgSound.stop();
bgSound = new Sound(this);
bgSound.loadSound(_root.mymusic, true);
bgSound.start(0, 99);
bgSound.setVolume(bgVol);
}
}
bitChain = 0;
bitChainA = false;
rage = 0;
raging = false;
speed = 2;
accel = 0;
pos1 = 0;
pos2 = 0;
grassshift = 0;
totalScore = 0;
bgroundshift = 0;
jumpShift = 0;
choosey = false;
completed = false;
majorx = 0;
majory = 400;
timer = 100;
tbomb = 0;
startBounce = false;
bitleft = 0;
bombPlace = false;
startSpeed = 0;
bombPlaceX = 1;
bombPlaceY = 1;
bombNum = 1;
bombLeft = 5;
ii = 1;
iconI = 1;
attachMovie("disp", "disp", 900);
disp._x = 0;
disp._y = 0;
attachMovie("ragewink", "rager", 980);
rager._x = 55;
rager._y = 55;
attachMovie("crush", "crush", 10);
crush._x = 275;
crush._y = 0;
attachMovie("badgrass", "badgrass", 399);
badgrass._x = 0;
badgrass._y = 400;
attachMovie("badgrassend", "badgrassend", 398);
badgrassend._y = 400;
attachMovie("grassBase", "grass1", 311);
grass1._x = 200;
grass1Y = 0;
attachMovie("grassBase", "grass2", 312);
grass2._x = 800;
grass2Y = 0;
grassShift = 5;
bitShift = 5;
var i = 3;
while (i <= 20) {
attachMovie("grass", "grass" + i, 310 + i);
_root[("grass" + i) + "X"] = grassShift;
_root[("grass" + i) + "Y"] = 3;
_root["grass" + i].spike._alpha = 0;
_root[("bit" + i) + "X"] = grassShift;
_root[("bit" + i) + "Y"] = 3;
_root[("bit" + i) + "Type"] = "bit";
_root[("bit" + i) + "Bits"] = 1;
grassShift = grassShift + 5;
i++;
}
bit1X = 2;
bit1Y = 0;
bit1Type = "bit";
bit1Bits = 1;
bit2X = 3;
bit2Y = 0;
bit2Type = "bit";
bit2Bits = 1;
var i = 21;
while (i <= 50) {
_root[("bit" + i) + "X"] = bitShift;
_root[("bit" + i) + "Y"] = 0;
_root[("bit" + i) + "Type"] = "bit";
_root[("bit" + i) + "Bits"] = 1;
bitShift = bitShift + 2;
i++;
}
var i = 1;
while (i <= 50) {
if (_root[("bit" + i) + "Type"] == "bitMech") {
attachMovie("bit", "bit" + i, 50 + i);
_root["bit" + i].bit.bit.bit.coat.gotoAndStop(3);
_root["bit" + i].bit.bit.bit.body.gotoAndStop(2);
_root["bit" + i].bit.bit.bit.head.head.gotoAndStop(3);
_root["bit" + i].bit.bit.bit.head.eyes.gotoAndStop(3);
_root["bit" + i].bit.bit.bit.head.mouth.gotoAndStop(2);
_root["bit" + i].bit.bit.bit.legBack.gotoAndStop(3);
_root["bit" + i].bit.bit.bit.legFront.gotoAndStop(3);
_root["bit" + i].bit.bit.bit.armBack.gotoAndStop(4);
_root["bit" + i].bit.bit.bit.armFront.gotoAndStop(4);
_root[("bit" + i) + "Dir"] = 1;
} else if (_root[("bit" + i) + "Type"] == "bitGunner") {
attachMovie("bit", "bit" + i, 50 + i);
_root["bit" + i].bit.bit.bit.coat.gotoAndStop(2);
_root["bit" + i].bit.bit.bit.head.head.gotoAndStop(2);
_root["bit" + i].bit.bit.bit.head.eyes.gotoAndStop(2);
_root["bit" + i].bit.bit.bit.head.mouth.gotoAndStop(2);
_root["bit" + i].bit.bit.bit.legBack.gotoAndStop(2);
_root["bit" + i].bit.bit.bit.legFront.gotoAndStop(2);
_root["bit" + i].bit.bit.bit.armBack.gotoAndStop(3);
_root["bit" + i].bit.bit.bit.armBack.arm._rotation = 90;
_root["bit" + i].bit.bit.bit.armFront.gotoAndStop(2);
_root[("bit" + i) + "Dir"] = 1;
} else {
ranDirection = Math.random() * 10;
if (ranDirection > 5) {
_root[("bit" + i) + "Dir"] = 1;
} else {
_root[("bit" + i) + "Dir"] = -1;
}
attachMovie(_root[("bit" + i) + "Type"], "bit" + i, 50 + i);
}
_root[("bit" + i) + "Alive"] = true;
_root[("bit" + i) + "Walk"] = 1;
_root[("bit" + i) + "ranMove"] = 0.5 + (Math.random() * 0.5);
if (_root[("bit" + i) + "Type"] == "bitHouse") {
_root["bit" + i].HP = 10;
} else if (_root[("bit" + i) + "Type"] == "bitChurch") {
_root["bit" + i].HP = 20;
} else if (_root[("bit" + i) + "Type"] == "bit") {
_root["bit" + i].HP = 1;
} else if (_root[("bit" + i) + "Type"] == "bitGunner") {
_root["bit" + i].HP = 1;
} else if (_root[("bit" + i) + "Type"] == "bitMech") {
_root["bit" + i].HP = 10;
}
i++;
}
output_vid.attachVideo(Camera.get());
var snapshot = (new flash.display.BitmapData(output_vid._width, output_vid._height));
webBack.attachBitmap(snapshot, 1);
fullmasc_mc.swapDepths(10002);
_root.onEnterFrame = function () {
if (raging == true) {
_root.bground1.gotoAndStop(2);
_root.bground2.gotoAndStop(2);
speed = 3;
} else {
_root.bground1.gotoAndStop(1);
_root.bground2.gotoAndStop(1);
speed = 2;
}
bground1._x = (-(majorx / 2)) + bgroundshift;
bground2._x = (692 - (majorx / 2)) + bgroundshift;
if (bground2._x < 0) {
bgroundshift = bgroundshift + 692;
}
if (bground1._x > 0) {
bgroundshift = bgroundshift - 692;
}
badgrass._x = 100 - majorx;
badgrassend._x = 10300 - majorx;
grass1._x = (-600 - majorx) + grassshift;
grass2._x = (-majorx) + grassshift;
grass1._y = majory - 0;
grass2._y = majory - 0;
if (grass2._x < 0) {
grassshift = grassshift + 600;
}
if (grass1._x > 0) {
grassshift = grassshift - 600;
}
var _local4 = 3;
while (_local4 <= 20) {
_root["grass" + _local4]._x = ((_root[("grass" + _local4) + "X"] + 5) * 100) - majorx;
_root["grass" + _local4]._y = majory - (_root[("grass" + _local4) + "Y"] * 100);
if (_root[("grass" + _local4) + "Type"] == "spike") {
if (_root["grass" + _local4].spike.hitTest(crush)) {
disp.energy.play();
crush.volts.play();
timer = timer - 1;
}
}
_local4++;
}
_local4 = 1;
while (_local4 <= 50) {
if (_root["bit" + _local4]._y != undefined) {
if ((_root[("bit" + _local4) + "Type"] == "bitHouse") || (_root[("bit" + _local4) + "Type"] == "bitChurch")) {
_root["bit" + _local4]._x = (((_root[("bit" + _local4) + "X"] + 5) * 100) + 5) - majorx;
_root["bit" + _local4]._y = majory - ((_root[("bit" + _local4) + "Y"] + 1) * 100);
if (_root["bit" + _local4].box.hitTest(crush.hit)) {
_root["bit" + _local4].house.play();
}
} else if (_root[("bit" + _local4) + "Type"] == "bit") {
_root["bit" + _local4]._xscale = _root[("bit" + _local4) + "Dir"] * 100;
_root[("bit" + _local4) + "Walk"] = _root[("bit" + _local4) + "Walk"] - (2 * _root[("bit" + _local4) + "Dir"]);
_root["bit" + _local4]._x = (((_root[("bit" + _local4) + "X"] + 5) * 100) - majorx) + (_root[("bit" + _local4) + "Walk"] * _root[("bit" + _local4) + "ranMove"]);
_root["bit" + _local4]._y = majory - (_root[("bit" + _local4) + "Y"] * 100);
if (_root["bit" + _local4].bit.box.hitTest(crush.hit)) {
_root["bit" + _local4].HP = 0;
}
} else if (_root[("bit" + _local4) + "Type"] == "bitGunner") {
var _local5 = {x:_root["bit" + _local4].bit.bit.bit.armBack.joint._x, y:_root["bit" + _local4].bit.bit.bit.armBack.joint._y};
_root["bit" + _local4].bit.bit.bit.armBack.joint.localToGlobal(_local5);
darkcxLeft = _local5.x;
darkcyLeft = _local5.y;
darkpointxLeft = darkcxLeft;
darkpointyLeft = darkcyLeft + 80;
darkmousexLeft = crush._x;
darkmouseyLeft = crush._y + 100;
darkangleLeft = Math.atan2(darkmouseyLeft - darkpointyLeft, darkmousexLeft - darkpointxLeft);
darkrotateFactor = (darkangleLeft * 57.2957795130823) + 180;
if (_root["bit" + _local4]._x < crush._x) {
_root["bit" + _local4]._xscale = -100;
_root["bit" + _local4].bit.bit.bit.armBack.arm._rotation = 180 - darkrotateFactor;
_root["bit" + _local4].bit.bit.bit.head._rotation = (180 - darkrotateFactor) / 2;
} else {
_root["bit" + _local4]._xscale = 100;
_root["bit" + _local4].bit.bit.bit.armBack.arm._rotation = darkrotateFactor;
if (darkrotateFactor < 90) {
_root["bit" + _local4].bit.bit.bit.head._rotation = darkrotateFactor / 2;
} else {
_root["bit" + _local4].bit.bit.bit.head._rotation = 0;
}
}
_root["bit" + _local4]._x = (((_root[("bit" + _local4) + "X"] + 5) * 100) - majorx) + 50;
_root["bit" + _local4]._y = majory - (_root[("bit" + _local4) + "Y"] * 100);
if (_root["bit" + _local4].bit.box.hitTest(crush.hit)) {
_root["bit" + _local4].HP = 0;
}
shootRan = Math.random() * 100;
if (((((shootRan > 98) && (_root["bit" + _local4]._x < (crush._x + 250))) && (_root["bit" + _local4]._x > (crush._x - 250))) && (_root["bit" + _local4]._y > (crush._y - 200))) && (_root["bit" + _local4]._y > (crush._y - 200))) {
var _local6 = {x:_root["bit" + _local4].bit.bit.bit.armBack.arm.point._x, y:_root["bit" + _local4].bit.bit.bit.armBack.arm.point._y};
_root["bit" + _local4].bit.bit.bit.armBack.arm.point.localToGlobal(_local6);
duplicateMovieClip (_root.bull, "bullet" + _root.ii, 100 + _root.ii);
_root["bullet" + _root.ii]._x = _local6.x;
_root["bullet" + _root.ii]._y = _local6.y;
_root["bullet" + _root.ii].rotateFactor = darkrotateFactor - 180;
_root["bullet" + _root.ii].dir = _root[("bit" + _local4) + "Dir"];
ii = ii + 1;
if (ii > 49) {
ii = 1;
}
trapDiff = _root.crush._x - _root["bit" + _local4]._x;
if (trapDiff < 0) {
trapDiff = -trapDiff;
}
trapDiff = trapDiff / 3;
trapVolume = 100 - trapDiff;
if (trapVolume > 0) {
wepSound = new Sound(this);
wepSound.attachSound("fxGun");
wepSound.start(0, 1);
wepSound.setVolume(trapVolume);
}
}
} else if (_root[("bit" + _local4) + "Type"] == "bitMech") {
_root[("bit" + _local4) + "Walk"] = _root[("bit" + _local4) + "Walk"] - (2 * _root[("bit" + _local4) + "Dir"]);
_root["bit" + _local4]._x = (((_root[("bit" + _local4) + "X"] + 5) * 100) - majorx) + (_root[("bit" + _local4) + "Walk"] * _root[("bit" + _local4) + "ranMove"]);
_root["bit" + _local4]._y = majory - (_root[("bit" + _local4) + "Y"] * 100);
var _local5 = {x:_root["bit" + _local4].bit.bit.bit.armBack.joint._x, y:_root["bit" + _local4].bit.bit.bit.armBack.joint._y};
_root["bit" + _local4].bit.bit.bit.armBack.joint.localToGlobal(_local5);
darkcxLeft = _local5.x;
darkcyLeft = _local5.y;
darkpointxLeft = darkcxLeft;
darkpointyLeft = darkcyLeft + 80;
darkmousexLeft = crush._x;
darkmouseyLeft = crush._y + 100;
darkangleLeft = Math.atan2(darkmouseyLeft - darkpointyLeft, darkmousexLeft - darkpointxLeft);
darkrotateFactor = (darkangleLeft * 57.2957795130823) + 180;
if (_root["bit" + _local4]._x < crush._x) {
_root["bit" + _local4]._xscale = -100;
_root["bit" + _local4].bit.bit.bit.armBack.arm._rotation = 180 - darkrotateFactor;
_root["bit" + _local4].bit.bit.bit.head._rotation = (180 - darkrotateFactor) / 2;
} else {
_root["bit" + _local4]._xscale = 100;
_root["bit" + _local4].bit.bit.bit.armBack.arm._rotation = darkrotateFactor;
if (darkrotateFactor < 90) {
_root["bit" + _local4].bit.bit.bit.head._rotation = darkrotateFactor / 2;
} else {
_root["bit" + _local4].bit.bit.bit.head._rotation = 0;
}
}
if (_root["bit" + _local4].bit.box.hitTest(crush.hit)) {
_root["bit" + _local4].play();
_root["bit" + _local4].HP = _root["bit" + _local4].HP - 1;
}
shootRan = Math.random() * 100;
if (((((shootRan > 95) && (_root["bit" + _local4]._x < (crush._x + 250))) && (_root["bit" + _local4]._x > (crush._x - 250))) && (_root["bit" + _local4]._y > (crush._y - 200))) && (_root["bit" + _local4]._y > (crush._y - 200))) {
var _local6 = {x:_root["bit" + _local4].bit.bit.bit.armBack.arm.point._x, y:_root["bit" + _local4].bit.bit.bit.armBack.arm.point._y};
_root["bit" + _local4].bit.bit.bit.armBack.arm.point.localToGlobal(_local6);
duplicateMovieClip (_root.bull, "bullet" + _root.ii, 100 + _root.ii);
_root["bullet" + _root.ii]._x = _local6.x;
_root["bullet" + _root.ii]._y = _local6.y;
_root["bullet" + _root.ii].rotateFactor = darkrotateFactor - 180;
_root["bullet" + _root.ii].dir = 1;
ii = ii + 1;
if (ii > 49) {
ii = 1;
}
trapDiff = _root.crush._x - _root["bit" + _local4]._x;
if (trapDiff < 0) {
trapDiff = -trapDiff;
}
trapDiff = trapDiff / 3;
trapVolume = 100 - trapDiff;
if (trapVolume > 0) {
wepSound = new Sound(this);
wepSound.attachSound("fxGun");
wepSound.start(0, 1);
wepSound.setVolume(trapVolume);
}
}
}
var _local3 = 3;
while (_local3 <= 20) {
if (_root["bit" + _local4].bit.box.hitTest(_root.badgrassend) || (_root["bit" + _local4].bit.box.hitTest(_root["grass" + _local3].rBox))) {
if (!_root["grass" + _local3].rBox.hitTest(_root["grass" + (_local3 - 1)].lBox)) {
_root[("bit" + _local4) + "Dir"] = 1;
}
} else if (_root["bit" + _local4].bit.box.hitTest(_root.badgrass) || (_root["bit" + _local4].bit.box.hitTest(_root["grass" + _local3].lBox))) {
if (!_root["grass" + _local3].lBox.hitTest(_root["grass" + (_local3 + 1)].rBox)) {
_root[("bit" + _local4) + "Dir"] = -1;
}
}
_local3++;
}
if ((((((((_root["bit" + _local4].box.hitTest(bombBoom1.box) || (_root["bit" + _local4].box.hitTest(bombBoom2.box))) || (_root["bit" + _local4].box.hitTest(bombBoom3.box))) || (_root["bit" + _local4].box.hitTest(bombBoom4.box))) || (_root["bit" + _local4].box.hitTest(bombBoom5.box))) || (_root["bit" + _local4].box.hitTest(bombBoom6.box))) || (_root["bit" + _local4].box.hitTest(bombBoom7.box))) || (_root["bit" + _local4].box.hitTest(bombBoom8.box))) || (_root["bit" + _local4].box.hitTest(bombBoom9.box))) {
_root["bit" + _local4].HP = 0;
}
if (_root["bit" + _local4].HP <= 0) {
if (_root[("bit" + _local4) + "Alive"] == true) {
_root[("bit" + _local4) + "Alive"] = false;
if ((_root[("bit" + _local4) + "Type"] == "bitHouse") || (_root[("bit" + _local4) + "Type"] == "bitChurch")) {
_root["bit" + _local4].play();
} else if (((_root[("bit" + _local4) + "Type"] == "bit") || (_root[("bit" + _local4) + "Type"] == "bitGunner")) || (_root[("bit" + _local4) + "Type"] == "bitMech")) {
_root["bit" + _local4].bit.gotoAndPlay(_root[("bit" + _local4) + "Type"]);
}
bitChain = bitChain + _root[("bit" + _local4) + "Bits"];
bitChainA = true;
bitleft = bitleft + _root[("bit" + _local4) + "Bits"];
totalScore = totalScore + ((9 + bitChain) * _root[("bit" + _local4) + "Bits"]);
if (bitChain >= 2) {
attachMovie("chainIcon", "chainIcon", 700 + iconI);
chainIcon._x = _root["bit" + _local4]._x;
chainIcon._y = _root["bit" + _local4]._y;
iconI = iconI + 1;
}
if (rage < 100) {
rage = rage + (20 * _root[("bit" + _local4) + "Bits"]);
}
}
}
}
_local4++;
}
if ((((((((_root.crush.hit.hitTest(bombBoom1.box) || (_root.crush.hit.hitTest(bombBoom2.box))) || (_root.crush.hit.hitTest(bombBoom3.box))) || (_root.crush.hit.hitTest(bombBoom4.box))) || (_root.crush.hit.hitTest(bombBoom5.box))) || (_root.crush.hit.hitTest(bombBoom6.box))) || (_root.crush.hit.hitTest(bombBoom7.box))) || (_root.crush.hit.hitTest(bombBoom8.box))) || (_root.crush.hit.hitTest(bombBoom9.box))) {
disp.energy.play();
crush.volts.play();
timer = timer - 5;
}
var _local7 = {x:_root.crush.basePoint._x, y:_root.crush.basePoint._y};
_root.crush.basePoint.localToGlobal(_local7);
_local4 = 1;
while (_local4 <= 20) {
var _local8 = {x:_root["grass" + _local4].boxboo._x, y:_root["grass" + _local4].boxboo._y};
_root["grass" + _local4].boxboo.localToGlobal(_local8);
grasslength = _root["grass" + _local4]._width;
if ((((_local7.y - majory) <= ((_local8.y + 60) - majory)) && (_local7.x > (_local8.x - 10))) && (_local7.x < ((_local8.x + 10) + grasslength))) {
activeGrass = _root["grass" + _local4];
activeGrassPreY = _root[("grass" + _local4) + "Y"];
}
_local4++;
}
var _local8 = {x:activeGrass.boxboo._x, y:activeGrass.boxboo._y};
activeGrass.boxboo.localToGlobal(_local8);
if (((_local7.y - majory) < (_local8.y - majory)) || (accel < 20)) {
accel = accel + speed;
} else {
startBounce = true;
if (bitChainA == false) {
bitChain = 0;
} else {
bitChainA = false;
}
activeGrassY = activeGrassPreY;
accel = 0;
startSpeed = 1;
checkPoint = _local8.y;
if (bombPlace == false) {
if (Key.isDown(83) || (Key.isDown(40))) {
if (bombLeft > 0) {
bombPlace = true;
attachMovie("bombBoom", "bombBoom" + bombNum, 200 + bombNum);
_root["bombBoom" + bombNum].bombPlaceX = majorx + _local7.x;
_root["bombBoom" + bombNum].bombPlaceY = (100 * activeGrassPreY) + 10;
bombNum = bombNum + 1;
bombLeft = bombLeft - 1;
}
}
}
}
takeSnapshot();
pos1 = (snapshot.getPixel((crush._x - 20) / 3, (crush._y - 40) / 3) >> 8) & 255;
if (((pos1 > (pos2 + 100)) || (pos1 < (pos2 - 100))) && (startBounce == true)) {
if (((bombPlace == false) && (accel >= 20)) && (crush._y >= 80)) {
if (bitChainA == false) {
bitChain = 0;
} else {
bitChainA = false;
}
activeGrassY = activeGrassPreY;
accel = 0;
startSpeed = 1;
checkPoint = _local8.y;
if (Key.isDown(40)) {
bombPlace = true;
attachMovie("bombBoom", "bombBoom" + bombNum, 200 + bombNum);
_root["bombBoom" + bombNum].bombPlaceX = majorx + _local7.x;
_root["bombBoom" + bombNum].bombPlaceY = (100 * activeGrassPreY) + 10;
bombNum = bombNum + 1;
}
}
}
pos2 = (snapshot.getPixel((crush._x - 20) / 3, (crush._y - 40) / 3) >> 8) & 255;
if (bombNum >= 9) {
bombNum = 1;
}
_local4 = 1;
while (_local4 <= 10) {
_root["bombBoom" + _local4]._x = _root["bombBoom" + _local4].bombPlaceX - majorx;
_root["bombBoom" + _local4]._y = majory - _root["bombBoom" + _local4].bombPlaceY;
_local4++;
}
jumpShift = jumpShift + (speed * (accel - 20));
crush._y = jumpShift - majory;
discrushy = crush.y;
disgrass = _local8.y;
discrushx = _local7.x;
disgrassx = _local8.x;
if (Key.isDown(65) || (Key.isDown(37))) {
if (majorx > 0) {
majorx = majorx - ((8 * speed) * startSpeed);
}
crush._xscale = -100;
}
if (Key.isDown(68) || (Key.isDown(39))) {
if (majorx < 10000) {
majorx = majorx + ((8 * speed) * startSpeed);
}
crush._xscale = 100;
}
tbomb = tbomb + 1;
if (tbomb > 20) {
if (rage > 0) {
if (raging == true) {
rage = rage - 20;
} else {
rage = rage - 10;
}
}
if (timer > 0) {
if (bitleft < 50) {
timer = timer - 1;
}
}
tbomb = 0;
}
if (((timer < 1) || (bitleft == 50)) && (completed == false)) {
completed = true;
crush.play();
attachMovie("completewoosh", "completewoosh", 997);
completewoosh._x = 120;
completewoosh._y = 200;
}
if (iconI > 18) {
iconI = 1;
}
};
Frame 88
toolType = "";
placeTool = 1;
grassPlace = 0;
grassType = "grass";
bitPlace = 0;
gridRow = 0;
gridCount = 1;
bitResidence = 2;
bitResidenceMAX = 0;
var i = 1;
while (i <= 200) {
attachMovie("gridBox", "gridBox" + i, 10 + i);
if (i > 180) {
_root["gridGrass" + i] = true;
_root["grassType" + i] = "grass";
} else {
_root["gridGrass" + i] = false;
_root["grassType" + i] = "none";
}
_root["gridBit" + i] = 0;
_root["gridType" + i] = "none";
_root["gridBox" + i]._x = (15 * i) - (gridRow * 300);
_root["gridBox" + i]._y = (15 * gridRow) + 15;
if (gridCount == 20) {
gridCount = 0;
gridRow = gridRow + 1;
}
gridCount = gridCount + 1;
i++;
}
var i = 1;
while (i <= 200) {
_root["gridBox" + i].nID = i;
_root["gridBox" + i].onPress = function () {
if (_root.placeTool < 10) {
if (this.nID <= 180) {
if (_root["gridGrass" + this.nID] == true) {
if (_root["gridBit" + this.nID] == 0) {
_root["gridGrass" + this.nID] = false;
_root["grassType" + this.nID] = "none";
_root.grassPlace = _root.grassPlace - 1;
}
} else if (_root.grassPlace < 20) {
_root["grassType" + this.nID] = _root.grassType;
_root["gridGrass" + this.nID] = true;
_root.grassPlace = _root.grassPlace + 1;
}
}
} else if (_root.placeTool >= 10) {
if (_root["gridBit" + this.nID] >= 1) {
_root["gridType" + this.nID] = "none";
_root.bitPlace = _root.bitPlace - _root["gridBit" + this.nID];
_root["gridBit" + this.nID] = 0;
} else if (((_root.bitPlace <= (50 - _root.bitResidence)) && (_root["gridGrass" + this.nID] == true)) && ((_root["gridGrass" + (this.nID - 20)] != true) || (_root.placeTool < 20))) {
_root["gridType" + this.nID] = _root.bitType;
_root["gridBit" + this.nID] = _root.bitResidence;
_root.bitPlace = _root.bitPlace + _root.bitResidence;
}
}
};
i++;
}
_root.onEnterFrame = function () {
var _local2 = 1;
while (_local2 <= 200) {
if (_root["gridType" + _local2] == "bit") {
_root["gridBox" + _local2].gridBit.gotoAndStop("purple");
} else if (_root["gridType" + _local2] == "bitGirl") {
_root["gridBox" + _local2].gridBit.gotoAndStop("pink");
} else if (_root["gridType" + _local2] == "bitJog") {
_root["gridBox" + _local2].gridBit.gotoAndStop("yellow");
} else if (_root["gridType" + _local2] == "bitFat") {
_root["gridBox" + _local2].gridBit.gotoAndStop("blue");
} else if (_root["gridType" + _local2] == "bitGunner") {
_root["gridBox" + _local2].gridBit.gotoAndStop("green");
} else if (_root["gridType" + _local2] == "bitMech") {
_root["gridBox" + _local2].gridBit.gotoAndStop("black");
} else if (_root["gridType" + _local2] == "bitHouse") {
_root["gridBox" + _local2].gridBit.gotoAndStop("bRed");
} else if (_root["gridType" + _local2] == "bitShop") {
_root["gridBox" + _local2].gridBit.gotoAndStop("bWhite");
} else if (_root["gridType" + _local2] == "bitChurch") {
_root["gridBox" + _local2].gridBit.gotoAndStop("bGold");
} else if (_root["gridType" + _local2] == "bitHotel") {
_root["gridBox" + _local2].gridBit.gotoAndStop("bMaroon");
} else if (_root["gridType" + _local2] == "bitHospital") {
_root["gridBox" + _local2].gridBit.gotoAndStop("bLime");
} else if (_root["gridType" + _local2] == "bitBase") {
_root["gridBox" + _local2].gridBit.gotoAndStop("bGreen");
} else {
_root["gridBox" + _local2].gridBit.gotoAndStop("none");
}
if (_root["grassType" + _local2] == "grass") {
_root["gridBox" + _local2].gridGrass.gotoAndStop(2);
} else if (_root["grassType" + _local2] == "spike") {
_root["gridBox" + _local2].gridGrass.gotoAndStop(3);
} else {
_root["gridBox" + _local2].gridGrass.gotoAndStop(1);
}
_local2++;
}
};
grassXStart = levelRender.indexOf("grassX");
grassXEnd = levelRender.indexOf("grassY");
grassXArraySplit = levelRender.slice(grassXStart, grassXEnd);
_root.grassXArray = grassXArraySplit.split(",");
var i = 0;
while (i < _root.grassXArray.length) {
_root.grassXArray[i] = Number(_root.grassXArray[i]);
i++;
}
grassYStart = levelRender.indexOf("grassY");
grassYEnd = levelRender.indexOf("grassType");
grassYArraySplit = levelRender.slice(grassYStart, grassYEnd);
_root.grassYArray = grassYArraySplit.split(",");
var i = 0;
while (i < _root.grassYArray.length) {
_root.grassYArray[i] = Number(_root.grassYArray[i]);
i++;
}
grassTypeStart = levelRender.indexOf("grassType");
grassTypeEnd = levelRender.indexOf("bitX");
grassTypeArraySplit = levelRender.slice(grassTypeStart, grassTypeEnd);
_root.grassTypeArray = grassTypeArraySplit.split(",");
var i = 3;
while (i <= 22) {
_root[("grass" + i) + "X"] = grassXArray[i - 2];
_root[("grass" + i) + "Y"] = grassYArray[i - 2];
reverseY = 9 - _root[("grass" + i) + "Y"];
pos = _root[("grass" + i) + "X"] + (reverseY * 20);
_root["gridGrass" + pos] = true;
_root["grassType" + pos] = grassTypeArray[i - 2];
if (_root["grassType" + pos] != undefined) {
grassPlace = 20;
}
i++;
}
bitXStart = levelRender.indexOf("bitX");
bitXEnd = levelRender.indexOf("bitY");
bitXArraySplit = levelRender.slice(bitXStart, bitXEnd);
_root.bitXArray = bitXArraySplit.split(",");
var i = 0;
while (i < _root.bitXArray.length) {
_root.bitXArray[i] = Number(_root.bitXArray[i]);
i++;
}
bitYStart = levelRender.indexOf("bitY");
bitYEnd = levelRender.indexOf("bitType");
bitYArraySplit = levelRender.slice(bitYStart, bitYEnd);
_root.bitYArray = bitYArraySplit.split(",");
var i = 0;
while (i < _root.bitYArray.length) {
_root.bitYArray[i] = Number(_root.bitYArray[i]);
i++;
}
bitTypeStart = levelRender.indexOf("bitType");
bitTypeEnd = levelRender.indexOf("bitBits");
bitTypeArraySplit = levelRender.slice(bitTypeStart, bitTypeEnd);
_root.bitTypeArray = bitTypeArraySplit.split(",");
bitBitsStart = levelRender.indexOf("bitBits");
bitBitsEnd = levelRender.indexOf("endCode");
bitBitsArraySplit = levelRender.slice(bitBitsStart, bitBitsEnd);
_root.bitBitsArray = bitBitsArraySplit.split(",");
var i = 0;
while (i < _root.bitBitsArray.length) {
_root.bitBitsArray[i] = Number(_root.bitBitsArray[i]);
i++;
}
var i = 3;
while (i <= 52) {
_root[("bit" + i) + "X"] = bitXArray[i - 2];
_root[("bit" + i) + "Y"] = bitYArray[i - 2];
reverseY = 9 - _root[("bit" + i) + "Y"];
pos = _root[("bit" + i) + "X"] + (reverseY * 20);
_root["gridType" + pos] = bitTypeArray[i - 2];
_root["gridBit" + pos] = bitBitsArray[i - 2];
if (_root[("bit" + i) + "X"] != undefined) {
bitPlace = 50;
}
i++;
}
nameStart = levelRender.indexOf("startCode,");
nameEnd = levelRender.indexOf(",grassX");
nameArraySplit = levelRender.slice(nameStart, nameEnd);
nameArray = nameArraySplit.split(",");
levelName = nameArray[1];
if (levelName == undefined) {
levelName = "My Village";
}
Instance of Symbol 521 MovieClip in Frame 88
onClipEvent (enterFrame) {
if ((_root.grassPlace == 20) && (_root.bitPlace == 50)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
on (press) {
if ((_root.grassPlace == 20) && (_root.bitPlace == 50)) {
_root.grassXArray = ["grassX"];
_root.grassYArray = ["grassY"];
_root.grassTypeArray = ["grassType"];
_root.bitXArray = ["bitX"];
_root.bitYArray = ["bitY"];
_root.bitTypeArray = ["bitType"];
_root.bitBitsArray = ["bitBits"];
grassPlace = 20;
bitPlace = 50;
gridRow = 9;
gridColumn = 1;
var i = 1;
while (i <= 200) {
if ((_root["gridGrass" + i] == true) && (i <= 180)) {
_root.grassXArray[grassPlace] = gridColumn;
_root.grassYArray[grassPlace] = gridRow;
_root.grassTypeArray[grassPlace] = _root["grassType" + i];
grassPlace = grassPlace - 1;
}
if (_root["gridBit" + i] > 0) {
_root.bitXArray[bitPlace] = gridColumn;
_root.bitYArray[bitPlace] = gridRow;
_root.bitTypeArray[bitPlace] = _root["gridType" + i];
_root.bitBitsArray[bitPlace] = _root["gridBit" + i];
bitPlace = bitPlace - 1;
}
gridColumn = gridColumn + 1;
if (gridColumn == 21) {
gridColumn = 1;
gridRow = gridRow - 1;
}
i++;
}
_root.levelRender = "startCode,";
_root.levelRender = (_root.levelRender + _root.levelName) + ",";
_root.levelRender = (_root.levelRender + _root.grassXArray) + ",";
_root.levelRender = (_root.levelRender + _root.grassYArray) + ",";
_root.levelRender = (_root.levelRender + _root.grassTypeArray) + ",";
_root.levelRender = (_root.levelRender + _root.bitXArray) + ",";
_root.levelRender = (_root.levelRender + _root.bitYArray) + ",";
_root.levelRender = (_root.levelRender + _root.bitTypeArray) + ",";
_root.levelRender = (_root.levelRender + _root.bitBitsArray) + ",endCode";
_root.gotoAndStop("renderLevel");
}
}
Instance of Symbol 523 MovieClip in Frame 88
on (press) {
if ((_root.grassPlace > 0) || (_root.bitPlace > 0)) {
_root.clearLevel._x = 6;
}
}
onClipEvent (enterFrame) {
if ((_root.grassPlace > 0) || (_root.bitPlace > 0)) {
this._alpha = 100;
} else {
this._alpha = 10;
}
}
Instance of Symbol 535 MovieClip in Frame 88
onClipEvent (enterFrame) {
if (_root.placeTool == 23) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.placeTool = 23;
_root.bitResidence = 5;
_root.bitResidenceMAX = 10;
_root.bitType = "bitHotel";
}
on (rollOver) {
_root.toolType == "Hotel";
}
on (rollOut) {
_root.toolType == "";
}
Instance of Symbol 537 MovieClip in Frame 88
onClipEvent (enterFrame) {
if (_root.placeTool == 24) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.placeTool = 24;
_root.bitResidence = 4;
_root.bitResidenceMAX = 8;
_root.bitType = "bitHospital";
}
on (rollOver) {
_root.toolType == "Hospital";
}
on (rollOut) {
_root.toolType == "";
}
Instance of Symbol 539 MovieClip in Frame 88
onClipEvent (enterFrame) {
if (_root.placeTool == 25) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.placeTool = 25;
_root.bitResidence = 5;
_root.bitResidenceMAX = 6;
_root.bitType = "bitBase";
}
on (rollOver) {
_root.toolType == "Army Base";
}
on (rollOut) {
_root.toolType == "";
}
Instance of Symbol 541 MovieClip in Frame 88
onClipEvent (enterFrame) {
if (_root.placeTool == 20) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.placeTool = 20;
_root.bitResidence = 2;
_root.bitResidenceMAX = 4;
_root.bitType = "bitHouse";
}
on (rollOver) {
_root.toolType == "House";
}
on (rollOut) {
_root.toolType == "";
}
Instance of Symbol 543 MovieClip in Frame 88
onClipEvent (enterFrame) {
if (_root.placeTool == 21) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.placeTool = 21;
_root.bitResidence = 3;
_root.bitResidenceMAX = 5;
_root.bitType = "bitShop";
}
on (rollOver) {
_root.toolType == "Shop";
}
on (rollOut) {
_root.toolType == "";
}
Instance of Symbol 545 MovieClip in Frame 88
onClipEvent (enterFrame) {
if (_root.placeTool == 22) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.placeTool = 22;
_root.bitResidence = 4;
_root.bitResidenceMAX = 8;
_root.bitType = "bitChurch";
}
on (rollOver) {
_root.toolType == "Church";
}
on (rollOut) {
_root.toolType == "";
}
Instance of Symbol 549 MovieClip in Frame 88
onClipEvent (enterFrame) {
if (_root.placeTool == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.placeTool = 1;
_root.grassType = "grass";
}
on (rollOver) {
_root.toolType == "Platform";
}
on (rollOut) {
_root.toolType == "";
}
Instance of Symbol 551 MovieClip in Frame 88
onClipEvent (enterFrame) {
if (_root.placeTool == 10) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.placeTool = 10;
_root.bitResidence = 1;
_root.bitResidenceMAX = -2;
_root.bitType = "bit";
}
on (rollOver) {
_root.toolType == "Male Bit";
}
on (rollOut) {
_root.toolType == "";
}
Instance of Symbol 553 MovieClip in Frame 88
onClipEvent (enterFrame) {
if (_root.placeTool == 11) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.placeTool = 11;
_root.bitResidence = 1;
_root.bitResidenceMAX = -2;
_root.bitType = "bitGirl";
}
on (rollOver) {
_root.toolType == "Female Bit";
}
on (rollOut) {
_root.toolType == "";
}
Instance of Symbol 559 MovieClip in Frame 88
onClipEvent (enterFrame) {
if (_root.placeTool == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.placeTool = 2;
_root.grassType = "spike";
}
on (rollOver) {
_root.toolType == "Spike";
}
on (rollOut) {
_root.toolType == "";
}
Instance of Symbol 561 MovieClip in Frame 88
onClipEvent (enterFrame) {
if (_root.placeTool == 12) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.placeTool = 12;
_root.bitResidence = 1;
_root.bitResidenceMAX = -2;
_root.bitType = "bitJog";
}
on (rollOver) {
_root.toolType == "Jogger Bit";
}
on (rollOut) {
_root.toolType == "";
}
Instance of Symbol 563 MovieClip in Frame 88
onClipEvent (load) {
bitResidence = 0;
}
onClipEvent (enterFrame) {
if (_root.bitResidence == bitResidence) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (bitResidence < _root.bitResidenceMAX) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
on (press) {
if (bitResidence < _root.bitResidenceMAX) {
_root.bitResidence = bitResidence;
}
}
Instance of Symbol 563 MovieClip in Frame 88
onClipEvent (load) {
bitResidence = 1;
}
onClipEvent (enterFrame) {
if (_root.bitResidence == bitResidence) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (bitResidence < _root.bitResidenceMAX) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
on (press) {
if (bitResidence < _root.bitResidenceMAX) {
_root.bitResidence = bitResidence;
}
}
Instance of Symbol 563 MovieClip in Frame 88
onClipEvent (load) {
bitResidence = 2;
}
onClipEvent (enterFrame) {
if (_root.bitResidence == bitResidence) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (bitResidence < _root.bitResidenceMAX) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
on (press) {
if (bitResidence < _root.bitResidenceMAX) {
_root.bitResidence = bitResidence;
}
}
Instance of Symbol 563 MovieClip in Frame 88
onClipEvent (load) {
bitResidence = 3;
}
onClipEvent (enterFrame) {
if (_root.bitResidence == bitResidence) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (bitResidence < _root.bitResidenceMAX) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
on (press) {
if (bitResidence < _root.bitResidenceMAX) {
_root.bitResidence = bitResidence;
}
}
Instance of Symbol 563 MovieClip in Frame 88
onClipEvent (load) {
bitResidence = 4;
}
onClipEvent (enterFrame) {
if (_root.bitResidence == bitResidence) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (bitResidence < _root.bitResidenceMAX) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
on (press) {
if (bitResidence < _root.bitResidenceMAX) {
_root.bitResidence = bitResidence;
}
}
Instance of Symbol 563 MovieClip in Frame 88
onClipEvent (load) {
bitResidence = 5;
}
onClipEvent (enterFrame) {
if (_root.bitResidence == bitResidence) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (bitResidence < _root.bitResidenceMAX) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
on (press) {
if (bitResidence < _root.bitResidenceMAX) {
_root.bitResidence = bitResidence;
}
}
Instance of Symbol 563 MovieClip in Frame 88
onClipEvent (load) {
bitResidence = 6;
}
onClipEvent (enterFrame) {
if (_root.bitResidence == bitResidence) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (bitResidence < _root.bitResidenceMAX) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
on (press) {
if (bitResidence < _root.bitResidenceMAX) {
_root.bitResidence = bitResidence;
}
}
Instance of Symbol 563 MovieClip in Frame 88
onClipEvent (load) {
bitResidence = 7;
}
onClipEvent (enterFrame) {
if (_root.bitResidence == bitResidence) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (bitResidence < _root.bitResidenceMAX) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
on (press) {
if (bitResidence < _root.bitResidenceMAX) {
_root.bitResidence = bitResidence;
}
}
Instance of Symbol 563 MovieClip in Frame 88
onClipEvent (load) {
bitResidence = 8;
}
onClipEvent (enterFrame) {
if (_root.bitResidence == bitResidence) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (bitResidence < _root.bitResidenceMAX) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
on (press) {
if (bitResidence < _root.bitResidenceMAX) {
_root.bitResidence = bitResidence;
}
}
Instance of Symbol 563 MovieClip in Frame 88
onClipEvent (load) {
bitResidence = 9;
}
onClipEvent (enterFrame) {
if (_root.bitResidence == bitResidence) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (bitResidence < _root.bitResidenceMAX) {
this._alpha = 100;
} else {
this._alpha = 50;
}
}
on (press) {
if (bitResidence < _root.bitResidenceMAX) {
_root.bitResidence = bitResidence;
}
}
Instance of Symbol 575 MovieClip in Frame 88
onClipEvent (enterFrame) {
if (_root.placeTool == 13) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.placeTool = 13;
_root.bitResidence = 1;
_root.bitResidenceMAX = -2;
_root.bitType = "bitFat";
}
on (rollOver) {
_root.toolType == "Fat Bit";
}
on (rollOut) {
_root.toolType == "";
}
Instance of Symbol 577 MovieClip in Frame 88
onClipEvent (enterFrame) {
if (_root.placeTool == 14) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.placeTool = 14;
_root.bitResidence = 1;
_root.bitResidenceMAX = -2;
_root.bitType = "bitGunner";
}
on (rollOver) {
_root.toolType == "Gunner Bit";
}
on (rollOut) {
_root.toolType == "";
}
Instance of Symbol 579 MovieClip in Frame 88
onClipEvent (enterFrame) {
if (_root.placeTool == 15) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.placeTool = 15;
_root.bitResidence = 1;
_root.bitResidenceMAX = -2;
_root.bitType = "bitMech";
}
on (rollOver) {
_root.toolType == "Mech Bit";
}
on (rollOut) {
_root.toolType == "";
}
Instance of Symbol 26 MovieClip in Frame 88
on (press) {
_root.gotoAndStop("start");
}
Frame 98
var i = 1;
while (i <= 200) {
_root["gridBox" + i].removeMovieClip();
i++;
}
Instance of Symbol 26 MovieClip in Frame 98
on (press) {
_root["customLevelRender" + _root.saveSlot] = _root.levelRender;
if (_root.autosave == true) {
_root.local_data.data["customLevelRender" + _root.saveSlot] = _root.levelRender;
_root.local_data.flush();
}
_root.gotoAndStop("customLevels");
}
Symbol 3 MovieClip [startfade] Frame 20
removeMovieClip(this);
Symbol 8 MovieClip [bground] Frame 1
stop();
Symbol 8 MovieClip [bground] Frame 2
stop();
Symbol 19 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 19 MovieClip Frame 2
gotoAndPlay (1);
Instance of Symbol 18 MovieClip in Symbol 19 MovieClip Frame 3
on (release) {
_root.play();
}
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 2
stop();
Symbol 40 MovieClip Frame 1
stop();
Symbol 40 MovieClip Frame 2
stop();
Symbol 54 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 1
sharkSound = new Sound(this);
sharkSound.attachSound("fxShark");
sharkSound.start(0, 1);
Symbol 68 MovieClip Frame 63
stop();
_root.play();
Symbol 74 MovieClip [chainIcon] Frame 9
removeMovieClip(this);
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 2
_parent.HP = _parent.HP - _root.speed;
Symbol 86 MovieClip [bitHouse] Frame 1
stop();
Symbol 86 MovieClip [bitHouse] Frame 2
_root.quakebig.play();
trapDiff = _root.crush._x - this._x;
if (trapDiff < 0) {
trapDiff = -trapDiff;
}
trapDiff = trapDiff / 10;
trapVolume = 100 - trapDiff;
if (trapVolume > 0) {
boomSound = new Sound(this);
boomSound.attachSound("fxCrush");
boomSound.start(0, 1);
boomSound.setVolume(trapVolume);
}
Symbol 86 MovieClip [bitHouse] Frame 122
stop();
removeMovieClip(this);
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 2
_parent.HP = _parent.HP - _root.speed;
Symbol 94 MovieClip [bitShop] Frame 1
stop();
Symbol 94 MovieClip [bitShop] Frame 2
_root.quakebig.play();
trapDiff = _root.crush._x - this._x;
if (trapDiff < 0) {
trapDiff = -trapDiff;
}
trapDiff = trapDiff / 10;
trapVolume = 100 - trapDiff;
if (trapVolume > 0) {
boomSound = new Sound(this);
boomSound.attachSound("fxCrush");
boomSound.start(0, 1);
boomSound.setVolume(trapVolume);
}
Symbol 94 MovieClip [bitShop] Frame 122
stop();
removeMovieClip(this);
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 2
_parent.HP = _parent.HP - _root.speed;
Symbol 102 MovieClip [bitChurch] Frame 1
stop();
Symbol 102 MovieClip [bitChurch] Frame 2
_root.quakebig.play();
trapDiff = _root.crush._x - this._x;
if (trapDiff < 0) {
trapDiff = -trapDiff;
}
trapDiff = trapDiff / 10;
trapVolume = 100 - trapDiff;
if (trapVolume > 0) {
boomSound = new Sound(this);
boomSound.attachSound("fxCrush");
boomSound.start(0, 1);
boomSound.setVolume(trapVolume);
}
Symbol 102 MovieClip [bitChurch] Frame 122
stop();
removeMovieClip(this);
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 2
_parent.HP = _parent.HP - _root.speed;
Symbol 110 MovieClip [bitHospital] Frame 1
stop();
Symbol 110 MovieClip [bitHospital] Frame 2
_root.quakebig.play();
trapDiff = _root.crush._x - this._x;
if (trapDiff < 0) {
trapDiff = -trapDiff;
}
trapDiff = trapDiff / 10;
trapVolume = 100 - trapDiff;
if (trapVolume > 0) {
boomSound = new Sound(this);
boomSound.attachSound("fxCrush");
boomSound.start(0, 1);
boomSound.setVolume(trapVolume);
}
Symbol 110 MovieClip [bitHospital] Frame 122
stop();
removeMovieClip(this);
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 2
_parent.HP = _parent.HP - _root.speed;
Symbol 118 MovieClip [bitHotel] Frame 1
stop();
Symbol 118 MovieClip [bitHotel] Frame 2
_root.quakebig.play();
trapDiff = _root.crush._x - this._x;
if (trapDiff < 0) {
trapDiff = -trapDiff;
}
trapDiff = trapDiff / 10;
trapVolume = 100 - trapDiff;
if (trapVolume > 0) {
boomSound = new Sound(this);
boomSound.attachSound("fxCrush");
boomSound.start(0, 1);
boomSound.setVolume(trapVolume);
}
Symbol 118 MovieClip [bitHotel] Frame 122
stop();
removeMovieClip(this);
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 2
_parent.HP = _parent.HP - _root.speed;
Symbol 125 MovieClip [bitBase] Frame 1
stop();
Symbol 125 MovieClip [bitBase] Frame 2
_root.quakebig.play();
trapDiff = _root.crush._x - this._x;
if (trapDiff < 0) {
trapDiff = -trapDiff;
}
trapDiff = trapDiff / 10;
trapVolume = 100 - trapDiff;
if (trapVolume > 0) {
boomSound = new Sound(this);
boomSound.attachSound("fxCrush");
boomSound.start(0, 1);
boomSound.setVolume(trapVolume);
}
Symbol 125 MovieClip [bitBase] Frame 121
stop();
removeMovieClip(this);
Symbol 157 MovieClip [bombBoom] Frame 8
_root.bombPlace = false;
Symbol 157 MovieClip [bombBoom] Frame 51
_root.quakebig.play();
trapDiff = _root.crush._x - this._x;
if (trapDiff < 0) {
trapDiff = -trapDiff;
}
trapDiff = trapDiff / 10;
trapVolume = 100 - trapDiff;
if (trapVolume > 0) {
boomSound = new Sound(this);
boomSound.attachSound("fxExplode");
boomSound.start(0, 1);
boomSound.setVolume(trapVolume);
}
Symbol 157 MovieClip [bombBoom] Frame 100
removeMovieClip(this);
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 2
stop();
Symbol 173 MovieClip Frame 1
stop();
Instance of Symbol 166 MovieClip in Symbol 177 MovieClip [disp] Frame 1
onClipEvent (enterFrame) {
if (this._yscale >= 100) {
if (_root.raging == false) {
_root.rager.play();
}
_root.raging = true;
}
if (this._yscale <= 0) {
_root.raging = false;
}
if (_root.raging == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (_root.rage < 0) {
this._yscale = 0;
} else if (_root.rage > 100) {
this._yscale = 100;
} else {
this._yscale = _root.rage;
}
}
Instance of Symbol 173 MovieClip in Symbol 177 MovieClip [disp] Frame 1
onClipEvent (enterFrame) {
if (_root.superSprint == true) {
this._alpha = 0;
}
}
Instance of Symbol 173 MovieClip "energy" in Symbol 177 MovieClip [disp] Frame 1
onClipEvent (enterFrame) {
if (_root.timer > 0) {
this._xscale = _root.timer;
} else {
this._xscale = 0;
}
}
Symbol 183 MovieClip [ragewink] Frame 1
stop();
Symbol 186 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 2
stop();
Instance of Symbol 186 MovieClip in Symbol 197 MovieClip [completewoosh] Frame 2
onClipEvent (load) {
if (_root.bitleft == 50) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 197 MovieClip [completewoosh] Frame 35
removeMovieClip(_root.crush);
removeMovieClip(_root.thingsattop);
removeMovieClip(_root.badgrass);
removeMovieClip(_root.badgrassend);
var i = 1;
while (i <= 50) {
_root["grass" + i].removeMovieClip();
_root["bit" + i].removeMovieClip();
i++;
}
Instance of Symbol 186 MovieClip in Symbol 197 MovieClip [completewoosh] Frame 35
onClipEvent (load) {
if (_root.bitleft == 50) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 197 MovieClip [completewoosh] Frame 110
stop();
Instance of Symbol 26 MovieClip in Symbol 197 MovieClip [completewoosh] Frame 110
onClipEvent (enterFrame) {
if (_root.timer > 0) {
_root.timer = _root.timer - 1;
_root.totalScore = _root.totalScore + 10;
} else {
_parent.nextFrame();
}
}
Symbol 197 MovieClip [completewoosh] Frame 111
stop();
if (_root.totalScore >= 1200) {
_root.totalrating = "M";
} else if (_root.totalScore >= 1000) {
_root.totalrating = "A";
} else if (_root.totalScore >= 800) {
_root.totalrating = "B";
} else if (_root.totalScore >= 600) {
_root.totalrating = "C";
} else if (_root.totalScore >= 400) {
_root.totalrating = "D";
} else if (_root.totalScore >= 200) {
_root.totalrating = "E";
} else {
_root.totalrating = "NA";
}
if (_root.playType == "main") {
if (_root.totalScore > _root["stageScore" + _root.currentLevel]) {
_root["stageScore" + _root.currentLevel] = _root.totalScore;
}
_root.scoreBest = _root["stageScore" + _root.currentLevel];
if (_root.autosave == true) {
_root.local_data.data["stageScore" + _root.currentLevel] = _root.scoreBest;
_root.local_data.flush();
}
} else if (_root.playType == "webcam") {
if (_root.totalScore > _root.camScore) {
_root.camScore = _root.totalScore;
}
_root.scoreBest = _root.camScore;
if (_root.autosave == true) {
_root.local_data.data.camScore = _root.scoreBest;
_root.local_data.flush();
}
}
Instance of Symbol 26 MovieClip in Symbol 197 MovieClip [completewoosh] Frame 111
on (press) {
if (_root.playType == "main") {
_root.gotoAndStop("levelSelect");
} else if (_root.playType == "webcam") {
_root.gotoAndStop("webcamMode");
} else if (_root.playType == "custom") {
_root.gotoAndStop("customLevels");
}
}
Instance of Symbol 26 MovieClip in Symbol 197 MovieClip [completewoosh] Frame 111
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Instance of Symbol 196 MovieClip in Symbol 197 MovieClip [completewoosh] Frame 111
onClipEvent (load) {
if (_root.playType == "custom") {
this._alpha = 0;
}
}
Symbol 237 MovieClip Frame 1
stop();
Instance of Symbol 26 MovieClip in Symbol 237 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.crush)) {
_root.bombLeft = _root.bombLeft + 5;
_parent.gotoAndPlay("collect");
}
}
Symbol 237 MovieClip Frame 112
gotoAndStop (1);
Instance of Symbol 26 MovieClip in Symbol 237 MovieClip Frame 112
onClipEvent (enterFrame) {
if (this.hitTest(_root.crush)) {
_root.bombLeft = _root.bombLeft + 1;
_parent.gotoAndStop(1);
}
}
Instance of Symbol 237 MovieClip in Symbol 238 MovieClip [grass] Frame 1
onClipEvent (enterFrame) {
showMe = Math.random() * 7000;
if (showMe > 6998) {
play();
}
}
Symbol 251 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 5
stop();
Symbol 260 MovieClip Frame 9
stop();
Symbol 278 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 2
stop();
Symbol 281 MovieClip [crush] Frame 1
stop();
Instance of Symbol 245 MovieClip "flame" in Symbol 281 MovieClip [crush] Frame 1
onClipEvent (enterFrame) {
if (_root.raging == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (((Key.isDown(65) || (Key.isDown(37))) || (Key.isDown(68))) || (Key.isDown(39))) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
Instance of Symbol 249 MovieClip in Symbol 281 MovieClip [crush] Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.chooseHair);
}
Instance of Symbol 260 MovieClip in Symbol 281 MovieClip [crush] Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.chooseEyes);
}
Instance of Symbol 260 MovieClip in Symbol 281 MovieClip [crush] Frame 1
onClipEvent (enterFrame) {
this.gotoAndPlay(_root.chooseEyes);
}
Instance of Symbol 268 MovieClip in Symbol 281 MovieClip [crush] Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.chooseHead);
}
Instance of Symbol 274 MovieClip in Symbol 281 MovieClip [crush] Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.chooseMouth);
}
Instance of Symbol 280 MovieClip "hit" in Symbol 281 MovieClip [crush] Frame 1
onClipEvent (enterFrame) {
if (_root.raging == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 281 MovieClip [crush] Frame 2
trapDiff = _root.crush._x - this._x;
if (trapDiff < 0) {
trapDiff = -trapDiff;
}
trapDiff = trapDiff / 10;
trapVolume = 100 - trapDiff;
if (trapVolume > 0) {
boomSound = new Sound(this);
boomSound.attachSound("fxExplode");
boomSound.start(0, 1);
boomSound.setVolume(trapVolume);
}
Symbol 281 MovieClip [crush] Frame 51
removeMovieClip(this);
Symbol 302 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 2
Symbol 308 MovieClip Frame 1
stop();
Symbol 322 MovieClip Frame 1
stop();
Symbol 326 MovieClip Frame 1
stop();
Symbol 326 MovieClip Frame 3
stop();
Symbol 331 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 4
stop();
Symbol 337 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 1
stop();
Instance of Symbol 322 MovieClip "legBack" in Symbol 348 MovieClip Frame 1
onClipEvent (load) {
leg.gotoAndPlay("halfway");
}
Instance of Symbol 308 MovieClip "armFront" in Symbol 348 MovieClip Frame 1
onClipEvent (load) {
arm.gotoAndPlay("halfway");
}
Symbol 374 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 2
trapDiff = _root.crush._x - _parent._x;
if (trapDiff < 0) {
trapDiff = -trapDiff;
}
trapDiff = trapDiff / 10;
trapVolume = 100 - trapDiff;
if (trapVolume > 0) {
boomSound = new Sound(this);
boomSound.attachSound("fxSquish");
boomSound.start(0, 1);
boomSound.setVolume(trapVolume);
}
Symbol 374 MovieClip Frame 6
_parent.removeMovieClip();
Symbol 374 MovieClip Frame 7
trapDiff = _root.crush._x - _parent._x;
if (trapDiff < 0) {
trapDiff = -trapDiff;
}
trapDiff = trapDiff / 10;
trapVolume = 100 - trapDiff;
if (trapVolume > 0) {
boomSound = new Sound(this);
boomSound.attachSound("fxSquish");
boomSound.start(0, 1);
boomSound.setVolume(trapVolume);
}
Instance of Symbol 326 MovieClip in Symbol 374 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 331 MovieClip in Symbol 374 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 337 MovieClip in Symbol 374 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 344 MovieClip in Symbol 374 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 340 MovieClip in Symbol 374 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop (2);
}
Symbol 374 MovieClip Frame 11
_parent.removeMovieClip();
Symbol 374 MovieClip Frame 12
trapDiff = _root.crush._x - _parent._x;
if (trapDiff < 0) {
trapDiff = -trapDiff;
}
trapDiff = trapDiff / 10;
trapVolume = 100 - trapDiff;
if (trapVolume > 0) {
boomSound = new Sound(this);
boomSound.attachSound("fxSquish");
boomSound.start(0, 1);
boomSound.setVolume(trapVolume);
}
Instance of Symbol 331 MovieClip in Symbol 374 MovieClip Frame 12
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 337 MovieClip in Symbol 374 MovieClip Frame 12
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 340 MovieClip in Symbol 374 MovieClip Frame 12
onClipEvent (load) {
gotoAndStop (2);
}
Symbol 374 MovieClip Frame 16
_parent.removeMovieClip();
Symbol 374 MovieClip Frame 17
trapDiff = _root.crush._x - _parent._x;
if (trapDiff < 0) {
trapDiff = -trapDiff;
}
trapDiff = trapDiff / 10;
trapVolume = 100 - trapDiff;
if (trapVolume > 0) {
boomSound = new Sound(this);
boomSound.attachSound("fxSquish");
boomSound.start(0, 1);
boomSound.setVolume(trapVolume);
}
Symbol 374 MovieClip Frame 21
_parent.removeMovieClip();
Symbol 374 MovieClip Frame 22
trapDiff = _root.crush._x - _parent._x;
if (trapDiff < 0) {
trapDiff = -trapDiff;
}
trapDiff = trapDiff / 10;
trapVolume = 100 - trapDiff;
if (trapVolume > 0) {
boomSound = new Sound(this);
boomSound.attachSound("fxSquish");
boomSound.start(0, 1);
boomSound.setVolume(trapVolume);
}
Symbol 374 MovieClip Frame 26
_parent.removeMovieClip();
Symbol 374 MovieClip Frame 27
trapDiff = _root.crush._x - _parent._x;
if (trapDiff < 0) {
trapDiff = -trapDiff;
}
trapDiff = trapDiff / 10;
trapVolume = 100 - trapDiff;
if (trapVolume > 0) {
boomSound = new Sound(this);
boomSound.attachSound("fxSquish");
boomSound.start(0, 1);
boomSound.setVolume(trapVolume);
}
Symbol 374 MovieClip Frame 31
_parent.removeMovieClip();
Symbol 375 MovieClip [bit] Frame 1
stop();
Symbol 382 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 390 MovieClip Frame 72
_root.play();
_root.play();
Symbol 395 MovieClip Frame 71
squishSound = new Sound(this);
squishSound.attachSound("fxSquish");
squishSound.start(0, 1);
Symbol 412 MovieClip Frame 40
stop();
Symbol 422 MovieClip Frame 1
stop();
Symbol 422 MovieClip Frame 2
squishSound = new Sound(this);
squishSound.attachSound("fxSquish");
squishSound.start(0, 1);
Symbol 422 MovieClip Frame 6
_root.gotoAndStop(_root.menuSelect);
Symbol 492 MovieClip Frame 1
stop();
Symbol 492 MovieClip Frame 2
_root._x = _root._x + 1;
Symbol 492 MovieClip Frame 3
_root._x = _root._x - 2;
Symbol 492 MovieClip Frame 4
_root._x = _root._x + 1;
Symbol 494 MovieClip Frame 1
stop();
Symbol 494 MovieClip Frame 2
_root._x = _root._x + 3;
Symbol 494 MovieClip Frame 3
_root._x = _root._x - 6;
Symbol 494 MovieClip Frame 4
_root._x = _root._x + 4;
Symbol 494 MovieClip Frame 5
_root._x = _root._x - 2;
Symbol 494 MovieClip Frame 6
_root._x = _root._x + 1;
Symbol 563 MovieClip Frame 1
stop();
Instance of Symbol 26 MovieClip in Symbol 586 MovieClip Frame 1
on (press) {
var i = 1;
while (i <= 200) {
if (i > 180) {
_root["gridGrass" + i] = true;
_root["grassType" + i] = "grass";
} else {
_root["gridGrass" + i] = false;
_root["grassType" + i] = "none";
}
_root["gridBit" + i] = 0;
_root["gridType" + i] = "none";
i++;
}
_root.levelName = "Bit Village";
_root.bitPlace = 0;
_root.grassPlace = 0;
_parent._x = -350;
}
Instance of Symbol 26 MovieClip in Symbol 586 MovieClip Frame 1
on (press) {
_parent._x = -350;
}
Symbol 594 MovieClip Frame 1
stop();
Instance of Symbol 26 MovieClip in Symbol 594 MovieClip Frame 1
on (press) {
_parent.gotoAndStop(1);
}
Instance of Symbol 26 MovieClip in Symbol 594 MovieClip Frame 1
on (press) {
_parent.gotoAndStop(2);
}
Instance of Symbol 26 MovieClip in Symbol 594 MovieClip Frame 1
on (press) {
_parent.gotoAndStop(3);
}
Instance of Symbol 26 MovieClip in Symbol 594 MovieClip Frame 1
on (press) {
_parent.gotoAndStop(4);
}
Instance of Symbol 26 MovieClip in Symbol 594 MovieClip Frame 1
on (press) {
_parent.gotoAndStop(5);
}
Symbol 594 MovieClip Frame 2
stop();
Symbol 594 MovieClip Frame 3
stop();
Symbol 594 MovieClip Frame 4
stop();
Symbol 594 MovieClip Frame 5
stop();