Frame 1
stop();
Frame 2
var rootMenu = new ContextMenu();
rootMenu.hideBuiltInItems();
_root.menu = rootMenu;
_global.game = new Object();
game.blockSpeed = 4;
game.fallSpeed = 30;
game.charSpeed = 14;
game.maxBlocks = 5;
game.score = 0;
game.currentLevel = 1;
game.scoreIncrease = 5;
game.blocksDodged = 0;
game.maxDodged = 5;
game.difficultyLevel = 1;
game.lastFaceDir = "right";
game.gameover = false;
levelNum = "ACT 1";
_global.showShadow = function (whichShadow) {
if (_root[whichShadow + "_shadow"]._alpha < 100) {
_root[whichShadow + "_shadow"]._alpha = _root[whichShadow + "_shadow"]._alpha + 4;
}
};
_global.replaceBlock = function (whichBlock) {
_root[whichBlock + "_shadow"]._alpha = 0;
if (_root[whichBlock]._alpha == 100) {
crash_sound.start(0, 0);
}
if (_root[whichBlock]._alpha >= 0) {
_root[whichBlock]._alpha = _root[whichBlock]._alpha - 25;
} else {
_root[whichBlock]._y = random(4000) - 4060;
_root[whichBlock]._alpha = 100;
if (game.gameover == false) {
game.score = game.score + game.scoreIncrease;
score_text.text = game.score;
game.blocksDodged = game.blocksDodged + 1;
if (game.blocksDodged >= 20) {
levelUp();
game.blocksDodged = 0;
}
}
}
};
_global.checkStatus = function (whichBlock) {
if (_root[whichBlock + "_shadow"].hitTest(_root.fartley.Fshadow)) {
game.gameover = true;
gotoAndPlay ("game_over");
return(true);
}
return(false);
};
_global.levelUp = function () {
game.currentLevel = game.currentLevel + 1;
_root.level_up.gotoAndPlay(1);
_root.levelNum = "ACT " + game.currentLevel;
game.charSpeed = game.charSpeed + 2;
game.blockSpeed = game.blockSpeed + 1;
game.fallSpeed = game.fallSpeed + 5;
};
Frame 12
stop();
Instance of Symbol 110 MovieClip "fartley" in Frame 20
onClipEvent (enterFrame) {
if (game.gameover == false) {
if (Key.isDown(38) && (_y >= 310)) {
_y = (_y - game.charSpeed);
}
if (Key.isDown(40) && (_y <= 380)) {
_y = (_y + game.charSpeed);
}
if (Key.isDown(37) && (_x > 30)) {
_x = (_x - game.charSpeed);
game.lastFaceDir = "left";
}
if (Key.isDown(39) && (_x < 520)) {
_x = (_x + game.charSpeed);
game.lastFaceDir = "right";
}
if (game.lastFaceDir == "right") {
this.gotoAndStop("right");
} else {
this.gotoAndStop("left");
}
} else {
this.gotoAndStop("squashed");
}
}
Instance of Symbol 69 MovieClip "s1" in Frame 20
onClipEvent (load) {
clipName = "s1";
fallHeight = 340;
hasFallen = false;
hasKilled = false;
_y = (random(4000) - 4060);
}
onClipEvent (enterFrame) {
if (game.gameover == false) {
if (_y <= 0) {
_y = (_y + game.fallSpeed);
hasFallen = false;
}
if (_y <= 60) {
_y = (_y + game.blockSpeed);
} else if (_y < fallHeight) {
_y = (_y + game.fallSpeed);
} else {
_y = fallHeight;
replaceBlock(clipName);
hasFallen = true;
}
if ((_y > 200) && (hasFallen == false)) {
hasKilled = checkStatus(clipName);
}
if ((_y <= 60) && (_y >= 0)) {
showShadow(clipName);
}
} else if (hasKilled == false) {
_y = -100;
} else {
_y = fallHeight;
}
}
Instance of Symbol 69 MovieClip "s2" in Frame 20
onClipEvent (load) {
clipName = "s2";
fallHeight = 340;
hasFallen = false;
hasKilled = false;
_y = (random(4000) - 4060);
}
onClipEvent (enterFrame) {
if (game.gameover == false) {
if (_y <= 0) {
_y = (_y + game.fallSpeed);
hasFallen = false;
}
if (_y <= 60) {
_y = (_y + game.blockSpeed);
} else if (_y < fallHeight) {
_y = (_y + game.fallSpeed);
} else {
_y = fallHeight;
replaceBlock(clipName);
hasFallen = true;
}
if ((_y > 200) && (hasFallen == false)) {
hasKilled = checkStatus(clipName);
}
if ((_y <= 60) && (_y >= 0)) {
showShadow(clipName);
}
} else if (hasKilled == false) {
_y = -100;
} else {
_y = fallHeight;
}
}
Instance of Symbol 69 MovieClip "s3" in Frame 20
onClipEvent (load) {
clipName = "s3";
fallHeight = 340;
hasFallen = false;
hasKilled = false;
_y = (random(4000) - 4060);
}
onClipEvent (enterFrame) {
if (game.gameover == false) {
if (_y <= 0) {
_y = (_y + game.fallSpeed);
hasFallen = false;
}
if (_y <= 60) {
_y = (_y + game.blockSpeed);
} else if (_y < fallHeight) {
_y = (_y + game.fallSpeed);
} else {
_y = fallHeight;
replaceBlock(clipName);
hasFallen = true;
}
if ((_y > 200) && (hasFallen == false)) {
hasKilled = checkStatus(clipName);
}
if ((_y <= 60) && (_y >= 0)) {
showShadow(clipName);
}
} else if (hasKilled == false) {
_y = -100;
} else {
_y = fallHeight;
}
}
Instance of Symbol 69 MovieClip "s4" in Frame 20
onClipEvent (load) {
clipName = "s4";
fallHeight = 340;
hasFallen = false;
hasKilled = false;
_y = (random(4000) - 4060);
}
onClipEvent (enterFrame) {
if (game.gameover == false) {
if (_y <= 0) {
_y = (_y + game.fallSpeed);
hasFallen = false;
}
if (_y <= 60) {
_y = (_y + game.blockSpeed);
} else if (_y < fallHeight) {
_y = (_y + game.fallSpeed);
} else {
_y = fallHeight;
replaceBlock(clipName);
hasFallen = true;
}
if ((_y > 200) && (hasFallen == false)) {
hasKilled = checkStatus(clipName);
}
if ((_y <= 60) && (_y >= 0)) {
showShadow(clipName);
}
} else if (hasKilled == false) {
_y = -100;
} else {
_y = fallHeight;
}
}
Instance of Symbol 69 MovieClip "l1" in Frame 20
onClipEvent (load) {
clipName = "l1";
fallHeight = 390;
hasFallen = false;
hasKilled = false;
_y = (random(4000) - 4060);
}
onClipEvent (enterFrame) {
if (game.gameover == false) {
if (_y <= 0) {
_y = (_y + game.fallSpeed);
hasFallen = false;
}
if (_y <= 60) {
_y = (_y + game.blockSpeed);
} else if (_y < fallHeight) {
_y = (_y + game.fallSpeed);
} else {
_y = fallHeight;
replaceBlock(clipName);
hasFallen = true;
}
if ((_y > 200) && (hasFallen == false)) {
hasKilled = checkStatus(clipName);
}
if ((_y <= 60) && (_y >= 0)) {
showShadow(clipName);
}
} else if (hasKilled == false) {
_y = -100;
} else {
_y = fallHeight;
}
}
Instance of Symbol 69 MovieClip "l2" in Frame 20
onClipEvent (load) {
clipName = "l2";
fallHeight = 390;
hasFallen = false;
hasKilled = false;
_y = (random(4000) - 4060);
}
onClipEvent (enterFrame) {
if (game.gameover == false) {
if (_y <= 0) {
_y = (_y + game.fallSpeed);
hasFallen = false;
}
if (_y <= 60) {
_y = (_y + game.blockSpeed);
} else if (_y < fallHeight) {
_y = (_y + game.fallSpeed);
} else {
_y = fallHeight;
replaceBlock(clipName);
hasFallen = true;
}
if ((_y > 200) && (hasFallen == false)) {
hasKilled = checkStatus(clipName);
}
if ((_y <= 60) && (_y >= 0)) {
showShadow(clipName);
}
} else if (hasKilled == false) {
_y = -100;
} else {
_y = fallHeight;
}
}
Instance of Symbol 69 MovieClip "l3" in Frame 20
onClipEvent (load) {
clipName = "l3";
fallHeight = 390;
hasFallen = false;
hasKilled = false;
_y = (random(4000) - 4060);
}
onClipEvent (enterFrame) {
if (game.gameover == false) {
if (_y <= 0) {
_y = (_y + game.fallSpeed);
hasFallen = false;
}
if (_y <= 60) {
_y = (_y + game.blockSpeed);
} else if (_y < fallHeight) {
_y = (_y + game.fallSpeed);
} else {
_y = fallHeight;
replaceBlock(clipName);
hasFallen = true;
}
if ((_y > 200) && (hasFallen == false)) {
hasKilled = checkStatus(clipName);
}
if ((_y <= 60) && (_y >= 0)) {
showShadow(clipName);
}
} else if (hasKilled == false) {
_y = -100;
} else {
_y = fallHeight;
}
}
Instance of Symbol 69 MovieClip "l4" in Frame 20
onClipEvent (load) {
clipName = "l4";
fallHeight = 390;
hasFallen = false;
hasKilled = false;
_y = (random(4000) - 4060);
}
onClipEvent (enterFrame) {
if (game.gameover == false) {
if (_y <= 0) {
_y = (_y + game.fallSpeed);
hasFallen = false;
}
if (_y <= 60) {
_y = (_y + game.blockSpeed);
} else if (_y < fallHeight) {
_y = (_y + game.fallSpeed);
} else {
_y = fallHeight;
replaceBlock(clipName);
hasFallen = true;
}
if ((_y > 200) && (hasFallen == false)) {
hasKilled = checkStatus(clipName);
}
if ((_y <= 60) && (_y >= 0)) {
showShadow(clipName);
}
} else if (hasKilled == false) {
_y = -100;
} else {
_y = fallHeight;
}
}
Frame 22
stop();
score_text.text = game.score;
_root.level_up.gotoAndPlay(1);
_root.levelNum = "ACT " + game.currentLevel;
Frame 41
Frame 55
stop();
score_text.text = game.score;
Symbol 7 MovieClip Frame 1
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
_root.gotoAndStop(2);
}
Symbol 7 MovieClip Frame 2
gotoAndPlay (1);
Symbol 14 Button
on (release) {
getURL ("http://www.playza.com/", "_blank");
}
Symbol 52 MovieClip Frame 20
gotoAndPlay (1);
Symbol 55 MovieClip Frame 10
stop();
Symbol 58 Button
on (release) {
gotoAndPlay ("start");
}
Symbol 62 Button
on (release) {
gotoAndPlay ("instructions");
}
Symbol 90 MovieClip Frame 20
gotoAndPlay (1);
Symbol 94 Button
on (release) {
gotoAndStop ("main_menu");
}
Symbol 109 MovieClip Frame 15
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 2
stop();
Symbol 110 MovieClip Frame 3
stop();
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 40
gotoAndStop (1);
Symbol 122 Button
on (release) {
getURL ("http://www.playza.com/", "_blank");
}
Symbol 133 Button
on (release) {
gotoAndStop ("main_menu");
}