Frame 1
var NoMenu = new ContextMenu();
NoMenu.hideBuiltInItems();
this.menu = NoMenu;
Frame 2
_root.attachMovie("messageUp", "messageUp", 50005);
_root.messageUp._x = 290;
_root.messageUp._y = 100;
Frame 3
function swing_crane() {
if (_root.gamepaused == 0) {
myRadians = Math.atan2((-600 - this._y) - 300, ((_root.SW / 2) - this._x) - (_root.SW / 2));
myDegrees = Math.round((myRadians * 180) / Math.PI);
if (_root.blockplaced == 0) {
this._rotation = myDegrees + 90;
}
hitvelocity = Math.sqrt((this.vx * this.vx) + (this.vy * this.vy));
this.vx = this.vx * kDamp;
this.vy = this.vy * kDamp;
this.vx = this.vx + (gTx * kGravWeight);
this.vy = this.vy + (gTy * kGravWeight);
var _local4 = 0;
var _local3 = 0;
this.vx = this.vx + _local4;
this.vy = this.vy + _local3;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
}
}
stop();
_root.messageword = "SPACE TO RELEASE";
_root.messageUp.play();
_root.song.stop();
_root.song.attachSound("tune");
_root.song.start(0, 999999999);
kGravWeight = 0.9;
kDamp = 0.98;
kCollisionDamp = 0.3;
_root.SW = 580;
_root.SH = 500;
kRadiansToDegrees = 57.2957795130823;
kDegreesToRadians = (Math.PI/180);
gTx = 0;
gTy = 0;
guys = [];
_root.createEmptyMovieClip("objcell_mc", 2);
objcell_mc._x = _root.SW / 2;
objcell_mc._y = _root.SH / 2;
_root.createEmptyMovieClip("thetower", 3);
thetower._x = objcell_mc._x;
thetower._y = objcell_mc._y;
_root.attachMovie("thetowerback", "thetowerback", 1);
_root.thetowerback._x = 300;
_root.thetowerback._y = 250;
miny = -4000;
maxy = -500;
minx = -1500;
maxx = -600;
i = 0;
while (i < 10) {
cloud = _root.thetowerback.attachMovie("clouds", "clouds" + i, i);
cloud.gotoAndPlay(Math.round(random(1000) + 1));
cloud._y = Math.round(Math.random() * ((maxy - miny) + 1)) + miny;
cloud._x = Math.round(Math.random() * ((maxx - minx) + 1)) + minx;
i++;
}
i = 10;
while (i < 20) {
birds = _root.thetowerback.attachMovie("birds", "birds" + i, 12 + i);
birds.gotoAndPlay(Math.round(random(1000) + 1));
birds._y = Math.round(Math.random() * ((maxy - miny) + 1)) + miny;
birds._x = Math.round(Math.random() * ((maxx - minx) + 1)) + minx;
i++;
}
_global.makeblock = function () {
var _local2 = objcell_mc.attachMovie("ship", "ship", 1000);
guys.push(_local2);
_root.blockstartingx = (_root.blocknumber * 2) + 100;
_local2._x = (-_root.blockstartingx) + Math.floor(Math.random() * ((_root.blockstartingx - (-_root.blockstartingx)) + 1));
_local2._y = -340;
_local2.vx = (_local2.vy = 0);
_local2.lx = (_local2.ly = 0);
_local2.radius = 15;
var _local3 = 128 + random(127);
_local2.onEnterFrame = swing_crane;
};
objcell_mc.onEnterFrame = function () {
var _local2 = guys.length - 1;
while (_local2 >= 0) {
var _local1 = guys[_local2];
var _local3 = Math.sqrt((_local1._x * _local1._x) + (_local1._y * _local1._y));
var _local4 = Math.atan2(_local1._y, _local1._x);
_local1._x = Math.cos(_local4 + kSpinR) * _local3;
_local1._y = Math.sin(_local4 + kSpinR) * _local3;
_local2--;
}
};
stop();
_root.dropsoundon = 0;
_root.shrinkamount = 0.1;
_root.gamepaused = 0;
_root.wobbleamount = 0;
_root.moveamount = 1;
_root.combobonus = 100;
_root.combonumber = 0;
_root.panamount = 0.1;
_root.blocknumber = 0;
_root.score = 0;
_root.lives = 3;
_root.blockplaced = 0;
_root.blockpositions = new Array();
makeblock();
_global.placeblock = function () {
_root.towerheight = 0;
_root.towermove = 1;
_root.blockplaced = 0;
_root.blocknumber = _root.blocknumber + 1;
_root.dropsoundon = 0;
makeblock();
};
_global.lifelost = function () {
if (_root.lives > 1) {
_root.lives = _root.lives - 1;
_root.lifelostmovie.gotoAndPlay(2);
} else {
explosion = _root.attachMovie("explosion", "explosion", 400);
explosion._x = _root.objcell_mc.ship._x + 250;
explosion._y = _root.objcell_mc.ship._y + 250;
_root.objcell_mc.removeMovieClip(this);
_root.towershrink = 1;
_root.gameovermovie.play();
}
};
_root.attachMovie("shaker", "shaker", 50000);
_root.shaker._x = -45;
_root.shaker._y = -40;
_root.shaker.theshake.thecombobar._visible = 0;
_root.attachMovie("lifelostmovie", "lifelostmovie", 50001);
_root.lifelostmovie._x = 200;
_root.lifelostmovie._y = 280;
_root.attachMovie("combolost", "combolost", 50002);
_root.combolost._x = 300;
_root.combolost._y = 500;
_root.attachMovie("pausedmovie", "pausedmovie", 50003);
_root.pausedmovie._x = -450;
_root.pausedmovie._y = 300;
_root.attachMovie("gameovermovie", "gameovermovie", 50004);
_root.gameovermovie._x = 200;
_root.gameovermovie._y = 280;
Instance of Symbol 212 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.gamepaused == 0) {
_root.towermovex = _root.thetower._x - (_root.SW / 2);
if (_root.blocknumber == 0) {
_root.objcell_mc.ship.block.gotoAndStop(1);
} else {
_root.objcell_mc.ship.block.gotoAndStop(2);
}
_root.shaker.theshake.thecombobar.combobar._xscale = _root.combobonus;
if (_root.combonumber > 0) {
_root.combobonus = _root.combobonus - 0.3;
}
if (_root.combobonus <= 0) {
_root.shaker.theshake.thecombobar._visible = 0;
_root.combonumber = 0;
_root.combobonus = 100;
_root.combolost.gotoAndPlay(2);
}
_root.windstrength = _root.blocknumber;
if (_root.blockplaced == 0) {
if (_root.objcell_mc.ship._y < -200) {
_root.blockrise = 1;
} else if (_root.objcell_mc.ship._y > -150) {
_root.blockrise = 0;
}
if (_root.objcell_mc.ship._x > ((_root.blocknumber / 3) + 10)) {
_root.blockdirection = 1;
} else if (_root.objcell_mc.ship._x < ((-(_root.blocknumber / 3)) + 10)) {
_root.blockdirection = 0;
}
if (_root.blockrise == 1) {
_root.objcell_mc.ship.vy = _root.objcell_mc.ship.vy + (0.15 + (_root.blocknumber / 500));
} else {
_root.objcell_mc.ship.vy = _root.objcell_mc.ship.vy - (0.15 + (_root.blocknumber / 500));
}
if (_root.blockdirection == 1) {
_root.objcell_mc.ship.vx = _root.objcell_mc.ship.vx - (0.2 + (_root.blocknumber / 500));
} else {
_root.objcell_mc.ship.vx = _root.objcell_mc.ship.vx + (0.2 + (_root.blocknumber / 500));
}
} else {
if (_root.dropsoundon == 0) {
var randomnote = Math.random();
if (randomnote >= 0.86) {
dropsound = new Sound(this);
dropsound.attachSound("piano1");
dropsound.start(0, 1);
} else if (randomnote >= 0.72) {
dropsound = new Sound(this);
dropsound.attachSound("piano2");
dropsound.start(0, 1);
} else if (randomnote >= 0.58) {
dropsound = new Sound(this);
dropsound.attachSound("piano3");
dropsound.start(0, 1);
} else if (randomnote >= 0.44) {
dropsound = new Sound(this);
dropsound.attachSound("piano4");
dropsound.start(0, 1);
} else if (randomnote >= 0.3) {
dropsound = new Sound(this);
dropsound.attachSound("piano5");
dropsound.start(0, 1);
} else if (randomnote >= 0.16) {
dropsound = new Sound(this);
dropsound.attachSound("piano6");
dropsound.start(0, 1);
} else {
dropsound = new Sound(this);
dropsound.attachSound("piano7");
dropsound.start(0, 1);
}
_root.dropsoundon = 1;
}
_root.objcell_mc.ship.vy = _root.objcell_mc.ship.vy + 1;
}
if (_root.wobbleamount > 0.3) {
if (_root.thetower._x < (290 - (10 * _root.wobbleamount))) {
_root.towerdirection = 1;
} else if (_root.thetower._x > (310 + (30 * _root.wobbleamount))) {
_root.towerdirection = 0;
}
if (_root.towerdirection == 1) {
_root.thetower._x = _root.thetower._x + (_root.wobbleamount + (_root.blocknumber / 100));
_root.thetower["block" + (_root.blocknumber - 1)]._rotation = _root.thetower["block" + (_root.blocknumber - 1)]._rotation + 0.1;
_root.thetower["block" + (_root.blocknumber - 1)]._x = _root.toweramountx;
_root.thetower["block" + (_root.blocknumber - 2)]._rotation = _root.thetower["block" + (_root.blocknumber - 2)]._rotation + 0.1;
_root.thetower["block" + (_root.blocknumber - 2)]._x = _root.toweramountx;
} else {
_root.thetower._x = _root.thetower._x - (_root.wobbleamount + (_root.blocknumber / 100));
_root.thetower["block" + (_root.blocknumber - 1)]._rotation = _root.thetower["block" + (_root.blocknumber - 1)]._rotation - 0.1;
_root.thetower["block" + (_root.blocknumber - 1)]._x = _root.toweramountx;
_root.thetower["block" + (_root.blocknumber - 2)]._rotation = _root.thetower["block" + (_root.blocknumber - 2)]._rotation - 0.1;
_root.thetower["block" + (_root.blocknumber - 2)]._x = _root.toweramountx;
}
}
if (Key.isDown(32)) {
_root.blockplaced = 1;
_root.objcell_mc.ship.rope._visible = false;
}
if (_root.towermove == 1) {
if (_root.towerheight < 100) {
_root.thetowerback._y = _root.thetowerback._y + _root.moveamount;
_root.thetower._y = _root.thetower._y + _root.moveamount;
_root.towerheight = _root.towerheight + _root.moveamount;
_root.moveamount = _root.moveamount + 2;
} else {
_root.towermove = 0;
_root.towerheight = 0;
_root.moveamount = 1;
}
}
_root.dropheight = 20;
if (_root.objcell_mc.ship._y > _root.dropheight) {
_root.blockpositions[_root.blocknumber] = _root.objcell_mc.ship._x - _root.towermovex;
if (_root.blocknumber == 0) {
_root.score = _root.score + 50;
myblock = _root.thetower.attachMovie("block", "block" + _root.blocknumber, 50 + _root.blocknumber);
myblock._x = _root.blockpositions[_root.blocknumber];
myblock._y = _root.dropheight - (_root.blocknumber * 100);
_root.shaker.gotoAndPlay("lighthit");
placeblock();
} else if ((_root.blockpositions[_root.blocknumber] < (_root.blockpositions[_root.blocknumber - 1] + 10)) and (_root.blockpositions[_root.blocknumber] > (_root.blockpositions[_root.blocknumber - 1] - 10))) {
trace("Perfect");
_root.wobbleamount = _root.wobbleamount / 2;
_root.combonumber = _root.combonumber + 1;
if (_root.combobonus <= 75) {
_root.combobonus = _root.combobonus + 25;
} else {
_root.combobonus = 100;
}
_root.shaker.gotoAndPlay(1);
_root.shaker.theshake.thecombobar._visible = 1;
_root.score = _root.score + (100 * _root.blocknumber);
randomcheer = Math.random();
if (randomcheer > 0.8) {
_root.messageword = "NICE";
} else if (randomcheer > 0.6) {
_root.messageword = "BRICKIN COOL";
} else if (randomcheer > 0.4) {
_root.messageword = "UBER AIM";
} else if (randomcheer > 0.2) {
_root.messageword = "WICKED AIM";
}
_root.messageUp.gotoAndPlay(2);
_root.shaker.theshake.combobonus.gotoAndPlay(2);
myblock = _root.thetower.attachMovie("block", "block" + _root.blocknumber, 50 + _root.blocknumber);
myblock._x = _root.blockpositions[_root.blocknumber - 1];
myblock._y = _root.dropheight - (_root.blocknumber * 100);
myblock.attachMovie("perfecteffect", "perfecteffect", 40000);
myblock.perfecteffect._x = -50;
myblock.perfecteffect._y = 100;
_root.effectx = 50;
myblock.attachMovie("perfecteffect1", "perfecteffect1", 40001);
myblock.perfecteffect1._x = (-_root.effectx) + Math.floor(Math.random() * ((_root.effectx - (-_root.effectx)) + 1));
myblock.perfecteffect1._y = 100;
myblock.perfecteffect1._rotation = random(300);
myblock.attachMovie("perfecteffect1", "perfecteffect2", 40002);
myblock.perfecteffect2._x = (-_root.effectx) + Math.floor(Math.random() * ((_root.effectx - (-_root.effectx)) + 1));
myblock.perfecteffect2._y = 100;
myblock.perfecteffect2._rotation = random(300);
myblock.attachMovie("perfecteffect1", "perfecteffect3", 40003);
myblock.perfecteffect3._x = (-_root.effectx) + Math.floor(Math.random() * ((_root.effectx - (-_root.effectx)) + 1));
myblock.perfecteffect3._y = 100;
myblock.perfecteffect3._rotation = random(300);
myblock.attachMovie("perfecteffect1", "perfecteffect4", 40004);
myblock.perfecteffect4._x = (-_root.effectx) + Math.floor(Math.random() * ((_root.effectx - (-_root.effectx)) + 1));
myblock.perfecteffect4._y = 100;
myblock.perfecteffect4._rotation = random(300);
myblock.attachMovie("perfecteffect1", "perfecteffect5", 40005);
myblock.perfecteffect5._x = (-_root.effectx) + Math.floor(Math.random() * ((_root.effectx - (-_root.effectx)) + 1));
myblock.perfecteffect5._y = 100;
myblock.perfecteffect5._rotation = random(300);
if (_root.blocknumber == 0) {
myblock.gotoAndStop(1);
} else {
myblock.gotoAndStop(2);
}
_root.blockpositions[_root.blocknumber] = myblock._x;
placeblock();
} else if ((_root.blockpositions[_root.blocknumber] < (_root.blockpositions[_root.blocknumber - 1] - 100)) or (_root.blockpositions[_root.blocknumber] > (_root.blockpositions[_root.blocknumber - 1] + 100))) {
} else if (_root.blockpositions[_root.blocknumber] < (_root.blockpositions[_root.blocknumber - 1] - 50)) {
myblockfall = _root.objcell_mc.attachMovie("blockleft", "blockleft", 15);
myblockfall._x = _root.objcell_mc.ship._x;
myblockfall._y = _root.objcell_mc.ship._y;
if (_root.blocknumber == 0) {
myblockfall.theblock.block.gotoAndPlay(1);
} else {
myblockfall.theblock.block.gotoAndPlay(2);
}
_root.shaker.gotoAndPlay("blockhitleft");
trace("oh noooo fall left");
myblockfall.attachMovie("dust", "dust", 40000);
myblockfall.dust._x = -50;
myblockfall.dust._y = 100;
_root.effectx = 50;
myblockfall.attachMovie("dust", "dust1", 40001);
myblockfall.dust1._x = (-_root.effectx) + Math.floor(Math.random() * ((_root.effectx - (-_root.effectx)) + 1));
myblockfall.dust1._y = 100;
myblockfall.dust1._rotation = random(300);
myblockfall.attachMovie("dust", "dust2", 40002);
myblockfall.dust2._x = (-_root.effectx) + Math.floor(Math.random() * ((_root.effectx - (-_root.effectx)) + 1));
myblockfall.dust2._y = 100;
myblockfall.dust2._rotation = random(300);
myblockfall.attachMovie("dust", "dust3", 40003);
myblockfall.dust3._x = (-_root.effectx) + Math.floor(Math.random() * ((_root.effectx - (-_root.effectx)) + 1));
myblockfall.dust3._y = 100;
myblockfall.dust3._rotation = random(300);
myblockfall.attachMovie("dust", "dust4", 40004);
myblockfall.dust4._x = (-_root.effectx) + Math.floor(Math.random() * ((_root.effectx - (-_root.effectx)) + 1));
myblockfall.dust4._y = 100;
myblockfall.dust4._rotation = random(300);
myblockfall.attachMovie("dust", "dust5", 40005);
myblockfall.dust5._x = (-_root.effectx) + Math.floor(Math.random() * ((_root.effectx - (-_root.effectx)) + 1));
myblockfall.dust5._y = 100;
myblockfall.dust5._rotation = random(300);
if (randomcheer > 0.8) {
_root.messageword = "WATCH OUT";
} else if (randomcheer > 0.6) {
_root.messageword = "BELOW";
} else if (randomcheer > 0.4) {
_root.messageword = "BOOOOO";
} else if (randomcheer > 0.2) {
_root.messageword = "NOOOOOO";
} else {
_root.messageword = "CAREFUL";
}
_root.messageUp.gotoAndPlay(2);
_root.blockplaced = 0;
lifelost();
makeblock();
} else if (_root.blockpositions[_root.blocknumber] > (_root.blockpositions[_root.blocknumber - 1] + 50)) {
myblockfall = _root.objcell_mc.attachMovie("blockright", "blockright", 15);
myblockfall._x = _root.objcell_mc.ship._x;
myblockfall._y = _root.objcell_mc.ship._y;
if (_root.blocknumber == 0) {
myblockfall.theblock.block.gotoAndPlay(1);
} else {
myblockfall.theblock.block.gotoAndPlay(2);
}
myblockfall.attachMovie("dust", "dust", 40000);
myblockfall.dust._x = -50;
myblockfall.dust._y = 100;
_root.effectx = 50;
myblockfall.attachMovie("dust", "dust1", 40001);
myblockfall.dust1._x = (-_root.effectx) + Math.floor(Math.random() * ((_root.effectx - (-_root.effectx)) + 1));
myblockfall.dust1._y = 100;
myblockfall.dust1._rotation = random(300);
myblockfall.attachMovie("dust", "dust2", 40002);
myblockfall.dust2._x = (-_root.effectx) + Math.floor(Math.random() * ((_root.effectx - (-_root.effectx)) + 1));
myblockfall.dust2._y = 100;
myblockfall.dust2._rotation = random(300);
myblockfall.attachMovie("dust", "dust3", 40003);
myblockfall.dust3._x = (-_root.effectx) + Math.floor(Math.random() * ((_root.effectx - (-_root.effectx)) + 1));
myblockfall.dust3._y = 100;
myblockfall.dust3._rotation = random(300);
myblockfall.attachMovie("dust", "dust4", 40004);
myblockfall.dust4._x = (-_root.effectx) + Math.floor(Math.random() * ((_root.effectx - (-_root.effectx)) + 1));
myblockfall.dust4._y = 100;
myblockfall.dust4._rotation = random(300);
myblockfall.attachMovie("dust", "dust5", 40005);
myblockfall.dust5._x = (-_root.effectx) + Math.floor(Math.random() * ((_root.effectx - (-_root.effectx)) + 1));
myblockfall.dust5._y = 100;
myblockfall.dust5._rotation = random(300);
_root.shaker.gotoAndPlay("blockhitright");
randomcheer = Math.random();
if (randomcheer > 0.8) {
_root.messageword = "WATCH OUT";
} else if (randomcheer > 0.6) {
_root.messageword = "BELOW";
} else if (randomcheer > 0.4) {
_root.messageword = "BOOOOO";
} else if (randomcheer > 0.2) {
_root.messageword = "NOOOOOO";
} else {
_root.messageword = "CAREFUL";
}
_root.messageUp.gotoAndPlay(2);
trace("oh noooo fall right");
_root.blockplaced = 0;
lifelost();
makeblock();
} else {
_root.blockprecision = _root.blockpositions[_root.blocknumber] - _root.blockpositions[_root.blocknumber - 1];
_root.blockprecision = _root.blockprecision / 100;
if (_root.blockprecision < 0) {
_root.blockprecision = _root.blockprecision * -1;
}
normaldropsound = new Sound(this);
normaldropsound.attachSound("normaldrop");
normaldropsound.start(0, 1);
trace(_root.blockprecision);
_root.wobbleamount = _root.wobbleamount + _root.blockprecision;
_root.score = _root.score + (20 * _root.blocknumber);
myblock = _root.thetower.attachMovie("block", "block" + _root.blocknumber, 50 + _root.blocknumber);
myblock._x = _root.blockpositions[_root.blocknumber];
myblock._y = _root.dropheight - (_root.blocknumber * 100);
myblockfall.attachMovie("dust", "dust", 40000);
myblockfall.dust._x = -50;
myblockfall.dust._y = 100;
_root.effectx = 50;
myblock.attachMovie("dust", "dust1", 40001);
myblock.dust1._x = (-_root.effectx) + Math.floor(Math.random() * ((_root.effectx - (-_root.effectx)) + 1));
myblock.dust1._y = 100;
myblock.dust1._rotation = random(300);
myblock.attachMovie("dust", "dust2", 40002);
myblock.dust2._x = (-_root.effectx) + Math.floor(Math.random() * ((_root.effectx - (-_root.effectx)) + 1));
myblock.dust2._y = 100;
myblock.dust2._rotation = random(300);
myblock.attachMovie("dust", "dust3", 40003);
myblock.dust3._x = (-_root.effectx) + Math.floor(Math.random() * ((_root.effectx - (-_root.effectx)) + 1));
myblock.dust3._y = 100;
myblock.dust3._rotation = random(300);
myblock.attachMovie("dust", "dust4", 40004);
myblock.dust4._x = (-_root.effectx) + Math.floor(Math.random() * ((_root.effectx - (-_root.effectx)) + 1));
myblock.dust4._y = 100;
myblock.dust4._rotation = random(300);
myblock.attachMovie("dust", "dust5", 40005);
myblock.dust5._x = (-_root.effectx) + Math.floor(Math.random() * ((_root.effectx - (-_root.effectx)) + 1));
myblock.dust5._y = 100;
myblock.dust5._rotation = random(300);
if (_root.blocknumber == 0) {
myblock.gotoAndStop(1);
} else {
myblock.gotoAndStop(2);
}
_root.shaker.gotoAndPlay("lighthit");
placeblock();
}
}
if (_root.objcell_mc.ship._y > 300) {
_root.shaker.gotoAndPlay("freefall");
_root.blockplaced = 0;
if (randomcheer > 0.8) {
_root.messageword = "WATCH OUT";
} else if (randomcheer > 0.6) {
_root.messageword = "BELOW";
} else if (randomcheer > 0.4) {
_root.messageword = "BOOOOO";
} else if (randomcheer > 0.2) {
_root.messageword = "NOOOOOO";
} else {
_root.messageword = "CAREFUL";
}
_root.messageUp.gotoAndPlay(2);
lifelost();
makeblock();
trace("total miss");
}
}
if (Key.isDown(80)) {
if (_root.pausedbuttondown == 0) {
_root.pausedbuttondown = 1;
if (_root.gamepaused == 0) {
_root.pausedmovie.gotoAndPlay(2);
_root.gamepaused = 1;
} else {
_root.pausedmovie.gotoAndPlay(91);
_root.gamepaused = 0;
}
}
} else {
_root.pausedbuttondown = 0;
}
}
Instance of Symbol 214 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.towershrink == 1) {
if (_root.thetower._y > 100) {
_root.thetowerback._y = _root.thetowerback._y - _root.panamount;
_root.thetower._y = _root.thetower._y - _root.panamount;
_root.panamount = _root.panamount + 0.2;
} else {
_root.showtower = 1;
_root.panamount = 0.1;
_root.towershrink = 0;
}
}
if (_root.showtower == 1) {
if (_root.thetower._xscale > 60) {
_root.wobbleamount = 0;
_root.thetowerback._xscale = _root.thetowerback._xscale - _root.panamount;
_root.thetowerback._yscale = _root.thetowerback._yscale - _root.panamount;
_root.thetowerback._y = _root.thetowerback._y + _root.panamount;
_root.thetower._xscale = _root.thetower._xscale - _root.panamount;
_root.thetower._yscale = _root.thetower._yscale - _root.panamount;
_root.thetower._y = _root.thetower._y + _root.panamount;
if (_root.thetower._x > 225) {
_root.thetower._x = _root.thetower._x - _root.panamount;
_root.thetowerback._x = _root.thetowerback._x - _root.panamount;
}
_root.panamount = _root.panamount + 0.2;
} else {
_root.panamount = 0.1;
_root.gameovermenu.play();
_root.finalmove = 1;
_root.showtower = 0;
}
}
if (_root.finalmove == 1) {
_root.mousemove = (_root._ymouse - (_root.SH / 2)) / 10;
_root.thetowerback._y = _root.thetowerback._y - _root.mousemove;
_root.thetower._y = _root.thetower._y - _root.mousemove;
if (_root.thetower._y < 0) {
_root.thetowerback._y = _root.thetowerback._y + _root.mousemove;
_root.thetower._y = _root.thetower._y + _root.mousemove;
}
if (_root.thetower._y > ((_root.blocknumber + 2) * 100)) {
_root.thetowerback._y = _root.thetowerback._y + _root.mousemove;
_root.thetower._y = _root.thetower._y + _root.mousemove;
}
}
}
Symbol 43 MovieClip [explosion] Frame 1
_root.explodesound = new Sound(this);
_root.explodesound.attachSound("explodesound");
_root.explodesound.start(0, 1);
Symbol 43 MovieClip [explosion] Frame 27
stop();
Symbol 51 MovieClip [messageUp] Frame 1
stop();
Symbol 55 MovieClip [pausedmovie] Frame 1
stop();
Symbol 55 MovieClip [pausedmovie] Frame 30
stop();
Symbol 61 MovieClip [block] Frame 1
stop();
Symbol 61 MovieClip [block] Frame 2
stop();
Symbol 62 MovieClip Frame 30
stop();
Symbol 63 MovieClip [blockright] Frame 2
stop();
Symbol 64 MovieClip [blockleft] Frame 2
stop();
Symbol 67 MovieClip [ship] Frame 1
stop();
Symbol 74 MovieClip [killershot] Frame 1
stop();
Symbol 74 MovieClip [killershot] Frame 2
soundkillershot = new Sound(this);
soundkillershot.attachSound("soundkillershot");
soundkillershot.start(0, 1);
Symbol 92 MovieClip [shaker] Frame 1
stop();
Symbol 92 MovieClip [shaker] Frame 14
gotoAndStop (1);
Symbol 92 MovieClip [shaker] Frame 31
gotoAndStop (1);
Symbol 92 MovieClip [shaker] Frame 44
gotoAndStop (1);
Symbol 92 MovieClip [shaker] Frame 57
gotoAndStop (1);
Symbol 92 MovieClip [shaker] Frame 71
gotoAndStop (1);
Symbol 110 MovieClip Frame 1
gotoAndPlay(random(50) + 1);
Symbol 116 MovieClip [combolost] Frame 1
stop();
Symbol 124 Button
on (release) {
play();
_root.finalmove = 0;
_root.towershrink = 0;
_root.showtower = 0;
_root.shaker.removeMovieClip(this);
_root.thetowerback.removeMovieClip(this);
_root.thetower.removeMovieClip(this);
_root.gotoAndStop(1);
}
Symbol 131 Button
on (release) {
System.security.allowDomain("thorgaming.com");
_root.buttonhit = new Sound(_root);
_root.buttonhit.attachSound("buttonhit");
_root.buttonhit.start(0, 1);
_root.scorestatus = "Please Wait";
this._visible = 0;
_root.serverList = new LoadVars();
_root.serverList.load((((("http://www.thorgaming.com/highscores/submit.php?op=Submit&game_id=23&game_name=" + _root.name) + "&game_score=") + _root.score) + "&game_diff=1&nocache=") + random(65000));
_root.serverList.onLoad = function (true) {
if (_root.serverList.result == "ok") {
_root.song.stop();
getURL ("http://www.thorgaming.com/highscores/index.php?game=23&diff=1&order=top", "_blank");
_root.scoreboard.thescoreboard.submitbutton._visible = 1;
_root.thebackground.gotoAndStop(1);
play();
_root.finalmove = 0;
_root.towershrink = 0;
_root.showtower = 0;
_root.shaker.removeMovieClip(this);
_root.thetowerback.removeMovieClip(this);
_root.thetower.removeMovieClip(this);
_root.scorestatus = "Enter Name";
_root.gotoAndStop(1);
} else {
this._visible = 1;
_root.scorestatus = "Please retry";
}
};
}
on (rollOver) {
_root.menubeep = new Sound(_root);
_root.menubeep.attachSound("menubeep");
_root.menubeep.start(0, 1);
}
on (rollOver) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, 1);
}
Symbol 141 MovieClip [gameovermovie] Frame 1
stop();
Symbol 141 MovieClip [gameovermovie] Frame 60
stop();
Symbol 145 MovieClip [lifelostmovie] Frame 1
stop();
Symbol 150 MovieClip [perfecteffect1] Frame 11
stop();
Symbol 158 MovieClip [perfecteffect] Frame 14
stop();
Instance of Symbol 162 MovieClip in Symbol 163 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(10));
this._xscale = Math.round(Math.random() * 51) + 50;
this._yscale = Math.round(Math.random() * 51) + 50;
}
Instance of Symbol 162 MovieClip in Symbol 163 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(10));
this._xscale = Math.round(Math.random() * 51) + 50;
this._yscale = Math.round(Math.random() * 51) + 50;
}
Instance of Symbol 162 MovieClip in Symbol 163 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(10));
this._xscale = Math.round(Math.random() * 51) + 50;
this._yscale = Math.round(Math.random() * 51) + 50;
}
Symbol 170 MovieClip [dust] Frame 16
stop();
Symbol 179 Button
on (release) {
getURL ("http://www.thorgaming.com", "_blank");
_root.buttonhit = new Sound(_root);
_root.buttonhit.attachSound("buttonhit");
_root.buttonhit.start(0, 1);
}
on (rollOver) {
_root.menubeep = new Sound(_root);
_root.menubeep.attachSound("menubeep");
_root.menubeep.start(0, 1);
}
Symbol 180 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded * 1.69);
} else {
_root.gotoAndStop(2);
}
Symbol 180 MovieClip Frame 2
gotoAndPlay (1);
Symbol 185 Button
on (release) {
gotoAndPlay ("menu");
}
Symbol 196 MovieClip Frame 5
stop();
Symbol 197 Button
on (release) {
buttonhit = new Sound(this);
buttonhit.attachSound("buttonhit");
buttonhit.start(0, 1);
_root.play();
}
on (rollOver) {
_root.menubeep = new Sound(_root);
_root.menubeep.attachSound("menubeep");
_root.menubeep.start(0, 1);
}
Symbol 201 MovieClip Frame 6
stop();
Symbol 202 Button
on (release) {
buttonhit = new Sound(this);
buttonhit.attachSound("buttonhit");
buttonhit.start(0, 1);
getURL ("http://www.thorgaming.com/highscores/index.php?game=23&diff=1&order=top", "_blank");
}
on (rollOver) {
_root.menubeep = new Sound(_root);
_root.menubeep.attachSound("menubeep");
_root.menubeep.start(0, 1);
}
Symbol 205 MovieClip Frame 6
stop();
Symbol 206 Button
on (release) {
buttonhit = new Sound(this);
buttonhit.attachSound("buttonhit");
buttonhit.start(0, 1);
getURL ("http://www.thorgaming.com/", "_blank");
}
on (rollOver) {
_root.menubeep = new Sound(_root);
_root.menubeep.attachSound("menubeep");
_root.menubeep.start(0, 1);
}
Symbol 207 MovieClip Frame 57
stop();
Symbol 208 MovieClip Frame 1
_root.stop();
play();
_root.song.stop();
_root.song = new Sound(_root);
_root.song.attachSound("menusong");
_root.song.start(0, 99999);
Symbol 208 MovieClip Frame 450
stop();