Frame 1
function button1(obj, item) {
_root._quality = "LOW";
}
function button2(obj, item) {
_root._quality = "MEDIUM";
}
function button3(obj, item) {
_root._quality = "HIGH";
}
function button4(obj, item) {
sfx1 = new Sound();
sfx1.attachSound("sfx1");
sfx1.start();
sfx1.setVolume(0);
}
function button5(obj, item) {
sfx1 = new Sound();
sfx1.attachSound("sfx1");
sfx1.start();
sfx1.setVolume(100);
}
function button6(obj, item) {
getURL ("http://www.arcadebliss.com/", "_blank");
}
stop();
_root.xfile = "http://www.eviludy.net/server/highscores/scores.php";
cm = new ContextMenu();
cm.hideBuiltInItems();
cm.customItems.push(new ContextMenuItem("Low Graphic Quality", button1));
cm.customItems.push(new ContextMenuItem("Medium Graphic Quality", button2));
cm.customItems.push(new ContextMenuItem("High Graphic Quality", button3));
cm.customItems.push(new ContextMenuItem("Turn sound off", button4));
cm.customItems.push(new ContextMenuItem("Turn sound on", button5));
cm.customItems.push(new ContextMenuItem("Play More games!", button6));
cm.customItems[3].separatorBefore = true;
cm.customItems[5].separatorBefore = true;
_root.menu = cm;
Instance of Symbol 12 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.b_loaded = _root.getBytesLoaded();
_root.b_total = _root.getBytesTotal();
_root.percent = Math.round((_root.b_loaded / _root.b_total) * 100);
this._width = _root.percent * 3.8;
if (_root.percent == 100) {
_root.play();
}
}
Frame 3
function button1(obj, item) {
_root._quality = "LOW";
}
function button2(obj, item) {
_root._quality = "MEDIUM";
}
function button3(obj, item) {
_root._quality = "HIGH";
}
function button4(obj, item) {
sfx1 = new Sound();
sfx1.attachSound("sfx1");
sfx1.start();
sfx1.setVolume(0);
}
function button5(obj, item) {
sfx1 = new Sound();
sfx1.attachSound("sfx1");
sfx1.start();
sfx1.setVolume(100);
}
function button6(obj, item) {
stopAllSounds();
menu_sound = new Sound();
menu_sound.attachSound("menu_sound");
menu_sound.start(0, 50000);
}
function button7(obj, item) {
stopAllSounds();
}
function button8(obj, item) {
getURL ("http://www.arcadebliss.com/", "_blank");
}
cm = new ContextMenu();
cm.hideBuiltInItems();
cm.customItems.push(new ContextMenuItem("Low Graphic Quality", button1));
cm.customItems.push(new ContextMenuItem("Medium Graphic Quality", button2));
cm.customItems.push(new ContextMenuItem("High Graphic Quality", button3));
cm.customItems.push(new ContextMenuItem("Turn all sound off", button4));
cm.customItems.push(new ContextMenuItem("Turn all sound on", button5));
cm.customItems.push(new ContextMenuItem("Turn Music on", button6));
cm.customItems.push(new ContextMenuItem("Turn Music off", button7));
cm.customItems.push(new ContextMenuItem("Play More games!", button8));
cm.customItems[3].separatorBefore = true;
cm.customItems[5].separatorBefore = true;
cm.customItems[7].separatorBefore = true;
_root.menu = cm;
stop();
Frame 5
function button1(obj, item) {
_root._quality = "LOW";
}
function button2(obj, item) {
_root._quality = "MEDIUM";
}
function button3(obj, item) {
_root._quality = "HIGH";
}
function button4(obj, item) {
sfx1 = new Sound();
sfx1.attachSound("sfx1");
sfx1.start();
sfx1.setVolume(0);
}
function button5(obj, item) {
sfx1 = new Sound();
sfx1.attachSound("sfx1");
sfx1.start();
sfx1.setVolume(100);
}
function button6(obj, item) {
stopAllSounds();
menu_sound = new Sound();
menu_sound.attachSound("menu_sound");
menu_sound.start(0, 50000);
}
function button7(obj, item) {
stopAllSounds();
}
function button8(obj, item) {
getURL ("http://www.arcadebliss.com/", "_blank");
}
cm = new ContextMenu();
cm.hideBuiltInItems();
cm.customItems.push(new ContextMenuItem("Low Graphic Quality", button1));
cm.customItems.push(new ContextMenuItem("Medium Graphic Quality", button2));
cm.customItems.push(new ContextMenuItem("High Graphic Quality", button3));
cm.customItems.push(new ContextMenuItem("Turn all sound off", button4));
cm.customItems.push(new ContextMenuItem("Turn all sound on", button5));
cm.customItems.push(new ContextMenuItem("Turn Music on", button6));
cm.customItems.push(new ContextMenuItem("Turn Music off", button7));
cm.customItems.push(new ContextMenuItem("Play More games!", button8));
cm.customItems[3].separatorBefore = true;
cm.customItems[5].separatorBefore = true;
cm.customItems[7].separatorBefore = true;
_root.menu = cm;
scoretable.filename = "scores/master_arkanoid.sco";
scoretable.scoresize = 30;
scoretable.action = "INSERT";
scoretable.viewtype = "FLASH";
if (_root.submitting == false) {
scoretable.winname = "none";
scoretable.winscore = 0;
} else if (_root.submitting == true) {
scoretable.winname = _root.inputname;
scoretable.winscore = _root.finalscore;
}
System.security.allowDomain("eviludy.net");
scoretable.loadVariables(_root.xfile, "GET");
Frame 6
paddlelenght = 2;
gunlenght = 0;
lasdup = 5;
laserSpeed = 22;
dropSpeed = 6;
dropnum = 30;
upgrading = 0;
_root.playlevel++;
_root.levelmessage = ("LEVEL " + _root.playlevel) + "";
function button1(obj, item) {
_root._quality = "LOW";
}
function button2(obj, item) {
_root._quality = "MEDIUM";
}
function button3(obj, item) {
_root._quality = "HIGH";
}
function button4(obj, item) {
sfx1 = new Sound();
sfx1.attachSound("sfx1");
sfx1.start();
sfx1.setVolume(0);
}
function button5(obj, item) {
sfx1 = new Sound();
sfx1.attachSound("sfx1");
sfx1.start();
sfx1.setVolume(100);
}
function button6(obj, item) {
stopAllSounds();
game_sound = new Sound();
game_sound.attachSound("game_sound");
game_sound.start(0, 50000);
}
function button7(obj, item) {
stopAllSounds();
}
function button8(obj, item) {
getURL ("http://www.arcadebliss.com/", "_blank");
}
cm = new ContextMenu();
cm.hideBuiltInItems();
cm.customItems.push(new ContextMenuItem("Low Graphic Quality", button1));
cm.customItems.push(new ContextMenuItem("Medium Graphic Quality", button2));
cm.customItems.push(new ContextMenuItem("High Graphic Quality", button3));
cm.customItems.push(new ContextMenuItem("Turn all sound off", button4));
cm.customItems.push(new ContextMenuItem("Turn all sound on", button5));
cm.customItems.push(new ContextMenuItem("Turn Music on", button6));
cm.customItems.push(new ContextMenuItem("Turn Music off", button7));
cm.customItems.push(new ContextMenuItem("Play More games!", button8));
cm.customItems[3].separatorBefore = true;
cm.customItems[5].separatorBefore = true;
cm.customItems[7].separatorBefore = true;
_root.menu = cm;
_root.gameRun = false;
gotoAndPlay (7);
_root.gameOn = true;
_root.gameRun = false;
Instance of Symbol 214 MovieClip "paddle" in Frame 6
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
this._x = _root._xmouse;
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
Instance of Symbol 217 MovieClip in Frame 6
onClipEvent (load) {
if (_root.pausegame == true) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.pausegame == true) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 24 MovieClip in Frame 6
onClipEvent (load) {
this.swapDepths(40);
}
Frame 7
function moveTheBalls() {
x = 1;
while (x <= theNumberOfBalls) {
thisBall = theBallsList["ball" + x];
if (((!thisBall) == 0) && (gameRun == true)) {
thisBall.moveBall();
}
x++;
}
}
function newBallList(startBallNum) {
this["ball" + startBallNum] = new newBall("ball" + startBallNum);
}
function addNewBall() {
theNumberOfBalls++;
theCurBallNum++;
theBallsList["ball" + theNumberOfBalls] = new newBall("ball" + theNumberOfBalls);
}
function maketargetList(numOfTiles) {
i = 0;
while (i < numOfTiles) {
gTargetList[i] = String("tile" + (i + 1));
i++;
}
}
function newBall(instName) {
duplicateMovieClip ("ball", instName, theNumberOfBalls);
this.name = instName;
this.MovieClip = _root[instName];
this.MovieClip._x = gBallBaseLoc[0];
this.MovieClip._y = gBallBaseLoc[1];
this.deltaX = getRandom(-10, 10);
this.deltaY = 5;
this.HitNum = 0;
}
function resetGame() {
maketargetList(gTileNum);
resetTiles();
}
function fireGun() {
if (_root.lasdup > 20) {
_root.lasdup = 5;
}
duplicateMovieClip ("laser", "laser" + _root.lasdup, _root.lasdup);
_root["laser" + _root.lasdup]._x = _root.guns.gun1.xvalueinroot;
_root["laser" + _root.lasdup]._y = _root.guns.gun1.yvalueinroot;
_root.lasdup++;
if (_root.lasdup > 20) {
_root.lasdup = 5;
}
duplicateMovieClip ("laser", "laser" + _root.lasdup, _root.lasdup);
_root["laser" + _root.lasdup]._x = _root.guns.gun2.xvalueinroot;
_root["laser" + _root.lasdup]._y = _root.guns.gun2.yvalueinroot;
_root.lasdup++;
laser = new Sound();
laser.attachSound("laser");
laser.start();
}
function resetTiles() {
i = 0;
while (i < gTileNum) {
var _local2 = gTargetList[i];
_root[_local2]._x = _root[_local2].startX;
_root[_local2].health = _root[_local2].starthealth;
i++;
}
}
function nextLevel() {
i = 0;
while (i < 999) {
_root["ball" + i].removeMovieClip();
i++;
}
_root.playlevel++;
_root.paddlelenght = 2;
_root.levelmessage = ("LEVEL " + _root.playlevel) + "";
_root.gameRun = false;
gotoAndPlay (12);
}
function getRandom(x, y) {
return(Math.round(Math.random() * (y - x)) + x);
}
Mouse.hide();
gameOn = 1;
theScore = 0;
gBallBaseLoc = [272.5, 250];
gThePaddle = [_root.paddle];
gGameRect = [2, 25, 548, 420];
gHMax = pGameRect[2] - 5;
gTileNum = 45;
gTargetList = [];
maketargetList(gTileNum);
theNumberOfBalls = 1;
theCurBallNum = 1;
theBallsList = new newBallList(theNumberOfBalls);
_root.resetTiles();
newBall.prototype.moveBall = function () {
if (_root.upgrading > 0) {
this.increaseSpeed();
_root.upgrading--;
}
this.MovieClip._x = this.MovieClip._x + this.deltaX;
this.MovieClip._y = this.MovieClip._y + this.deltaY;
if (this.MovieClip._y < 35) {
this.flipY();
}
var _local5 = gTargetList.length;
i = 0;
while (i < _local5) {
var _local3 = gTargetList[i];
if (this.MovieClip.hitTest(_root[_local3])) {
this.increaseSpeed();
_root.score = _root.score + 10;
_root[_local3].health--;
if (_root[_local3].health == 0) {
if (_root[_local3].drop_it == true) {
duplicateMovieClip ("dropper", "dropper" + _root.dropnum, _root.dropnum);
_root["dropper" + _root.dropnum]._x = _root[_local3]._x;
_root["dropper" + _root.dropnum]._y = _root[_local3]._y;
_root["dropper" + _root.dropnum].framer = Math.round((Math.random() * 6) + 1);
_root.dropnum++;
if (_root.dropnum > 35) {
_root.dropnum = 30;
}
}
_root[_local3]._x = _root[_local3]._x + -1000;
left = gTileNum;
i = 1;
while (i < (gTileNum + 1)) {
if (_root["tile" + i].health == 0) {
left--;
}
i++;
}
if (left == 0) {
_root.nextLevel();
}
}
this.flipY();
break;
}
i++;
}
thisPad = 0;
while (thisPad < 2) {
var _local4 = gThePaddle[thisPad];
if (this.MovieClip.hitTest(_local4) && (this.deltaY > 0)) {
this.paddleHit(_local4);
}
thisPad++;
}
if (this.MovieClip._y > (gGameRect[3] + 20)) {
theBallsList[this.name] = 0;
removeMovieClip(this.MovieClip);
theCurBallNum--;
if (theCurBallNum <= 0) {
ballsLeft--;
if (ballsLeft < 0) {
ballsLeft = 0;
gameOn = 0;
gotoAndStop (11);
} else {
_root.gameRun = false;
addNewBall();
}
}
}
if ((this.MovieClip._x < gGameRect[0]) || (this.MovieClip._x > gGameRect[2])) {
this.flipX();
}
};
newBall.prototype.serveBall = function () {
this.MovieClip._x = gBallBaseLoc[0];
this.MovieClip._y = gBallBaseLoc[1];
this.deltaX = getRandom(-5, 5);
this.deltaY = -10;
};
newBall.prototype.flipY = function () {
this.deltaY = this.deltaY * -1;
sfx2 = new Sound();
sfx2.attachSound("sfx2");
sfx2.start();
};
newBall.prototype.flipX = function () {
this.deltaX = this.deltaX * -1;
sfx2 = new Sound();
sfx2.attachSound("sfx2");
sfx2.start();
};
newBall.prototype.paddleHit = function (thePaddle) {
this.deltaX = (this.MovieClip._x - thePaddle._x) / 4;
this.flipY();
this.MovieClip._y = Math.min(this.MovieClip._y, thePaddle._y + 10);
};
newBall.prototype.increaseSpeed = function () {
if ((this.deltaY < -30) || (this.deltaY > 30)) {
} else {
this.hitNum++;
if (this.hitNum > 3) {
this.hitNum = 0;
if (this.deltaY > 0) {
this.deltaY++;
} else {
this.deltaY--;
}
}
}
};
Instance of Symbol 214 MovieClip "paddle" in Frame 7
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn && (_root.pausegame == false)) {
Mouse.hide();
this._x = _root._xmouse;
} else {
Mouse.show();
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
if (Key.isDown(80)) {
_root.gameRun = false;
_root.pausegame = true;
}
}
onClipEvent (mouseDown) {
_root.gameRun = true;
_root.pausegame = false;
}
Instance of Symbol 220 MovieClip "guns" in Frame 7
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
_visible = false;
shooter = 0;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn) {
if (_root.pausegame == false) {
this._x = _root._xmouse;
}
if (_root.gunlenght > 0) {
if (shooter > 0) {
if ((_root.pausegame == false) && (_root.gameRun == true)) {
shooter--;
}
}
_visible = true;
_root.gunlenght--;
} else {
_visible = false;
}
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
onClipEvent (mouseDown) {
if ((_root.gunlenght > 0) && (shooter == 0)) {
_root.fireGun();
shooter = 20;
}
}
Instance of Symbol 222 MovieClip "tile37" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile38" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile39" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile40" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile41" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile42" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile43" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile28" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile29" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile30" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile31" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile32" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile33" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile34" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile19" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile20" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = true;
}
Instance of Symbol 222 MovieClip "tile21" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile22" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile23" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile24" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile25" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile10" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile11" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile12" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile13" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile14" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile15" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile16" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile2" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile3" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile4" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile5" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile6" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile7" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile44" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile45" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile35" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile36" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile26" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = true;
}
Instance of Symbol 222 MovieClip "tile27" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile17" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile18" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile8" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile9" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile1" in Frame 7
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
drop_it = false;
}
Instance of Symbol 226 MovieClip "laser" in Frame 7
onClipEvent (enterFrame) {
_y = (_y - _root.laserSpeed);
if (_y > -15) {
i = 1;
while (i < (_root.gTileNum + 1)) {
if (this.hitTest(_root["tile" + i])) {
_x = (_x - 2000);
_root.score = _root.score + 10;
_root["tile" + i].health--;
if (_root["tile" + i].health == 0) {
if (_root["tile" + i].drop_it == true) {
_root.dropper.duplicateMovieClip("dropper" + _root.dropnum, _root.dropnum);
_root["dropper" + _root.dropnum]._x = _root["tile" + i]._x;
_root["dropper" + _root.dropnum]._y = _root["tile" + i]._y;
_root["dropper" + _root.dropnum].framer = Math.round((Math.random() * 6) + 1);
_root.dropnum++;
if (_root.dropnum > 35) {
_root.dropnum = 30;
}
}
_root["tile" + i]._x = _root["tile" + i]._x + -1000;
}
sfx5 = new Sound();
sfx5.attachSound("sfx5");
sfx5.start();
left = _root.gTileNum;
i = 1;
while (i < (_root.gTileNum + 1)) {
if (_root["tile" + i].health == 0) {
left--;
}
i++;
}
if (left == 0) {
_root.nextLevel();
}
}
i++;
}
}
}
Instance of Symbol 72 MovieClip "dropper" in Frame 7
onClipEvent (load) {
this.gotoAndStop(framer);
}
onClipEvent (enterFrame) {
this.gotoAndStop(framer);
_y = (_y + _root.dropSpeed);
if (this.hitTest(_root.paddle)) {
sfx1 = new Sound();
sfx1.attachSound("sfx1");
sfx1.start();
if (framer == 1) {
_root.ballsLeft++;
} else if (framer == 2) {
if (_root.paddlelenght < 4) {
_root.paddlelenght++;
}
} else if (framer == 3) {
if (_root.paddlelenght > 1) {
_root.paddlelenght--;
}
} else if (framer == 4) {
_root.gunlenght = _root.gunlenght + 400;
} else if (framer == 5) {
_root.upgrading = 20;
} else if (framer == 6) {
_root.upgrading = 40;
_root.score = _root.score + 75;
} else if (framer == 7) {
_root.score = _root.score + 250;
}
_root.score = _root.score + 25;
this.removeMovieClip();
}
if (_y > 425) {
this.removeMovieClip();
}
}
Instance of Symbol 235 MovieClip in Frame 7
onClipEvent (mouseDown) {
_visible = false;
}
Frame 8
moveTheBalls();
Frame 9
gotoAndPlay (8);
Frame 11
stop();
_root.gameOn = false;
_root.levelwin = _root.playlevel * 1000;
_root.finalscore = _root.levelwin + _root.score;
Instance of Symbol 214 MovieClip "paddle" in Frame 11
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn) {
Mouse.hide();
this._x = _root._xmouse;
} else {
Mouse.show();
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
onClipEvent (mouseDown) {
_root.gameRun = true;
}
Frame 12
paddlelenght = 2;
gunlenght = 0;
lasdup = 5;
laserSpeed = 22;
dropSpeed = 6;
dropnum = 30;
upgrading = 0;
_root.gameRun = false;
gotoAndPlay (13);
_root.gameOn = true;
_root.gameRun = false;
Instance of Symbol 214 MovieClip "paddle" in Frame 12
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
this._x = _root._xmouse;
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
Frame 13
function moveTheBalls() {
x = 1;
while (x <= theNumberOfBalls) {
thisBall = theBallsList["ball" + x];
if (((!thisBall) == 0) && (gameRun == true)) {
thisBall.moveBall();
}
x++;
}
}
function newBallList(startBallNum) {
this["ball" + startBallNum] = new newBall("ball" + startBallNum);
}
function addNewBall() {
theNumberOfBalls++;
theCurBallNum++;
theBallsList["ball" + theNumberOfBalls] = new newBall("ball" + theNumberOfBalls);
}
function maketargetList(numOfTiles) {
i = 0;
while (i < numOfTiles) {
gTargetList[i] = String("tile" + (i + 1));
i++;
}
}
function newBall(instName) {
duplicateMovieClip ("ball", instName, theNumberOfBalls);
this.name = instName;
this.MovieClip = _root[instName];
this.MovieClip._x = gBallBaseLoc[0];
this.MovieClip._y = gBallBaseLoc[1];
this.deltaX = getRandom(-10, 10);
this.deltaY = 5;
this.HitNum = 0;
}
function resetGame() {
maketargetList(gTileNum);
resetTiles();
}
function fireGun() {
if (_root.lasdup > 20) {
_root.lasdup = 5;
}
duplicateMovieClip ("laser", "laser" + _root.lasdup, _root.lasdup);
_root["laser" + _root.lasdup]._x = _root.guns.gun1.xvalueinroot;
_root["laser" + _root.lasdup]._y = _root.guns.gun1.yvalueinroot;
_root.lasdup++;
if (_root.lasdup > 20) {
_root.lasdup = 5;
}
duplicateMovieClip ("laser", "laser" + _root.lasdup, _root.lasdup);
_root["laser" + _root.lasdup]._x = _root.guns.gun2.xvalueinroot;
_root["laser" + _root.lasdup]._y = _root.guns.gun2.yvalueinroot;
_root.lasdup++;
laser = new Sound();
laser.attachSound("laser");
laser.start();
}
function resetTiles() {
i = 0;
while (i < gTileNum) {
var _local2 = gTargetList[i];
_root[_local2]._x = _root[_local2].startX;
_root[_local2].health = _root[_local2].starthealth;
i++;
}
}
function nextLevel() {
i = 0;
while (i < 999) {
_root["ball" + i].removeMovieClip();
i++;
}
_root.playlevel++;
_root.paddlelenght = 2;
_root.levelmessage = ("LEVEL " + _root.playlevel) + "";
_root.gameRun = false;
gotoAndPlay (18);
}
function getRandom(x, y) {
return(Math.round(Math.random() * (y - x)) + x);
}
Mouse.hide();
gameOn = 1;
theScore = 0;
gBallBaseLoc = [272.5, 250];
gThePaddle = [_root.paddle];
gGameRect = [2, 25, 548, 420];
gHMax = pGameRect[2] - 5;
gTileNum = 45;
gTargetList = [];
maketargetList(gTileNum);
theNumberOfBalls = 1;
theCurBallNum = 1;
theBallsList = new newBallList(theNumberOfBalls);
_root.resetTiles();
newBall.prototype.moveBall = function () {
if (_root.upgrading > 0) {
this.increaseSpeed();
_root.upgrading--;
}
this.MovieClip._x = this.MovieClip._x + this.deltaX;
this.MovieClip._y = this.MovieClip._y + this.deltaY;
if (this.MovieClip._y < 35) {
this.flipY();
}
var _local5 = gTargetList.length;
i = 0;
while (i < _local5) {
var _local3 = gTargetList[i];
if (this.MovieClip.hitTest(_root[_local3])) {
this.increaseSpeed();
_root.score = _root.score + 10;
_root[_local3].health--;
if (_root[_local3].health == 0) {
if (_root[_local3].drop_it == true) {
duplicateMovieClip ("dropper", "dropper" + _root.dropnum, _root.dropnum);
_root["dropper" + _root.dropnum]._x = _root[_local3]._x;
_root["dropper" + _root.dropnum]._y = _root[_local3]._y;
_root["dropper" + _root.dropnum].framer = Math.round((Math.random() * 6) + 1);
_root.dropnum++;
if (_root.dropnum > 35) {
_root.dropnum = 30;
}
}
_root[_local3]._x = _root[_local3]._x + -1000;
left = gTileNum;
i = 1;
while (i < (gTileNum + 1)) {
if (_root["tile" + i].health == 0) {
left--;
}
i++;
}
if (left == 0) {
_root.nextLevel();
}
}
this.flipY();
break;
}
i++;
}
thisPad = 0;
while (thisPad < 2) {
var _local4 = gThePaddle[thisPad];
if (this.MovieClip.hitTest(_local4) && (this.deltaY > 0)) {
this.paddleHit(_local4);
}
thisPad++;
}
if (this.MovieClip._y > (gGameRect[3] + 20)) {
theBallsList[this.name] = 0;
removeMovieClip(this.MovieClip);
theCurBallNum--;
if (theCurBallNum <= 0) {
ballsLeft--;
if (ballsLeft < 0) {
ballsLeft = 0;
gameOn = 0;
gotoAndStop (17);
} else {
_root.gameRun = false;
addNewBall();
}
}
}
if ((this.MovieClip._x < gGameRect[0]) || (this.MovieClip._x > gGameRect[2])) {
this.flipX();
}
};
newBall.prototype.serveBall = function () {
this.MovieClip._x = gBallBaseLoc[0];
this.MovieClip._y = gBallBaseLoc[1];
this.deltaX = getRandom(-5, 5);
this.deltaY = -10;
};
newBall.prototype.flipY = function () {
this.deltaY = this.deltaY * -1;
sfx2 = new Sound();
sfx2.attachSound("sfx2");
sfx2.start();
};
newBall.prototype.flipX = function () {
this.deltaX = this.deltaX * -1;
sfx2 = new Sound();
sfx2.attachSound("sfx2");
sfx2.start();
};
newBall.prototype.paddleHit = function (thePaddle) {
this.deltaX = (this.MovieClip._x - thePaddle._x) / 4;
this.flipY();
this.MovieClip._y = Math.min(this.MovieClip._y, thePaddle._y + 10);
};
newBall.prototype.increaseSpeed = function () {
if ((this.deltaY < -30) || (this.deltaY > 30)) {
} else {
this.hitNum++;
if (this.hitNum > 3) {
this.hitNum = 0;
if (this.deltaY > 0) {
this.deltaY++;
} else {
this.deltaY--;
}
}
}
};
Instance of Symbol 214 MovieClip "paddle" in Frame 13
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn && (_root.pausegame == false)) {
Mouse.hide();
this._x = _root._xmouse;
} else {
Mouse.show();
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
if (Key.isDown(80)) {
_root.gameRun = false;
_root.pausegame = true;
}
}
onClipEvent (mouseDown) {
_root.gameRun = true;
_root.pausegame = false;
}
Instance of Symbol 220 MovieClip "guns" in Frame 13
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
_visible = false;
shooter = 0;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn) {
if (_root.pausegame == false) {
this._x = _root._xmouse;
}
if (_root.gunlenght > 0) {
if (shooter > 0) {
if ((_root.pausegame == false) && (_root.gameRun == true)) {
shooter--;
}
}
_visible = true;
_root.gunlenght--;
} else {
_visible = false;
}
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
onClipEvent (mouseDown) {
if ((_root.gunlenght > 0) && (shooter == 0)) {
_root.fireGun();
shooter = 20;
}
}
Instance of Symbol 257 MovieClip "tile37" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile38" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile39" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile40" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile41" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile42" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile43" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile28" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile29" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile30" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile31" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile32" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile33" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile34" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile19" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile20" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = true;
}
Instance of Symbol 222 MovieClip "tile21" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile22" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile23" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile24" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile25" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile10" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile11" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile12" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile13" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile14" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile15" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile16" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile2" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile3" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile4" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile5" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile6" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile7" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile44" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile45" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile35" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile36" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile26" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = true;
}
Instance of Symbol 222 MovieClip "tile27" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile17" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile18" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile8" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile9" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile1" in Frame 13
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
drop_it = false;
}
Instance of Symbol 226 MovieClip "laser" in Frame 13
onClipEvent (enterFrame) {
_y = (_y - _root.laserSpeed);
if (_y > -15) {
i = 1;
while (i < (_root.gTileNum + 1)) {
if (this.hitTest(_root["tile" + i])) {
_x = (_x - 2000);
_root.score = _root.score + 10;
_root["tile" + i].health--;
if (_root["tile" + i].health == 0) {
if (_root["tile" + i].drop_it == true) {
_root.dropper.duplicateMovieClip("dropper" + _root.dropnum, _root.dropnum);
_root["dropper" + _root.dropnum]._x = _root["tile" + i]._x;
_root["dropper" + _root.dropnum]._y = _root["tile" + i]._y;
_root["dropper" + _root.dropnum].framer = Math.round((Math.random() * 6) + 1);
_root.dropnum++;
if (_root.dropnum > 35) {
_root.dropnum = 30;
}
}
_root["tile" + i]._x = _root["tile" + i]._x + -1000;
}
sfx5 = new Sound();
sfx5.attachSound("sfx5");
sfx5.start();
left = _root.gTileNum;
i = 1;
while (i < (_root.gTileNum + 1)) {
if (_root["tile" + i].health == 0) {
left--;
}
i++;
}
if (left == 0) {
_root.nextLevel();
}
}
i++;
}
}
}
Instance of Symbol 72 MovieClip "dropper" in Frame 13
onClipEvent (load) {
this.gotoAndStop(framer);
}
onClipEvent (enterFrame) {
this.gotoAndStop(framer);
_y = (_y + _root.dropSpeed);
if (this.hitTest(_root.paddle)) {
sfx1 = new Sound();
sfx1.attachSound("sfx1");
sfx1.start();
if (framer == 1) {
_root.ballsLeft++;
} else if (framer == 2) {
if (_root.paddlelenght < 4) {
_root.paddlelenght++;
}
} else if (framer == 3) {
if (_root.paddlelenght > 1) {
_root.paddlelenght--;
}
} else if (framer == 4) {
_root.gunlenght = _root.gunlenght + 400;
} else if (framer == 5) {
_root.upgrading = 20;
} else if (framer == 6) {
_root.upgrading = 40;
_root.score = _root.score + 75;
} else if (framer == 7) {
_root.score = _root.score + 250;
}
_root.score = _root.score + 25;
this.removeMovieClip();
}
if (_y > 425) {
this.removeMovieClip();
}
}
Instance of Symbol 235 MovieClip in Frame 13
onClipEvent (mouseDown) {
_visible = false;
}
Frame 14
moveTheBalls();
Frame 15
gotoAndPlay (14);
Frame 17
stop();
_root.gameOn = false;
_root.levelwin = _root.playlevel * 1000;
_root.finalscore = _root.levelwin + _root.score;
Instance of Symbol 214 MovieClip "paddle" in Frame 17
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn) {
Mouse.hide();
this._x = _root._xmouse;
} else {
Mouse.show();
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
onClipEvent (mouseDown) {
_root.gameRun = true;
}
Frame 18
paddlelenght = 2;
gunlenght = 0;
lasdup = 5;
laserSpeed = 22;
dropSpeed = 6;
dropnum = 30;
upgrading = 0;
_root.gameRun = false;
gotoAndPlay (19);
_root.gameOn = true;
_root.gameRun = false;
Instance of Symbol 214 MovieClip "paddle" in Frame 18
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
this._x = _root._xmouse;
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
Frame 19
function moveTheBalls() {
x = 1;
while (x <= theNumberOfBalls) {
thisBall = theBallsList["ball" + x];
if (((!thisBall) == 0) && (gameRun == true)) {
thisBall.moveBall();
}
x++;
}
}
function newBallList(startBallNum) {
this["ball" + startBallNum] = new newBall("ball" + startBallNum);
}
function addNewBall() {
theNumberOfBalls++;
theCurBallNum++;
theBallsList["ball" + theNumberOfBalls] = new newBall("ball" + theNumberOfBalls);
}
function maketargetList(numOfTiles) {
i = 0;
while (i < numOfTiles) {
gTargetList[i] = String("tile" + (i + 1));
i++;
}
}
function newBall(instName) {
duplicateMovieClip ("ball", instName, theNumberOfBalls);
this.name = instName;
this.MovieClip = _root[instName];
this.MovieClip._x = gBallBaseLoc[0];
this.MovieClip._y = gBallBaseLoc[1];
this.deltaX = getRandom(-10, 10);
this.deltaY = 5;
this.HitNum = 0;
}
function resetGame() {
maketargetList(gTileNum);
resetTiles();
}
function fireGun() {
if (_root.lasdup > 20) {
_root.lasdup = 5;
}
duplicateMovieClip ("laser", "laser" + _root.lasdup, _root.lasdup);
_root["laser" + _root.lasdup]._x = _root.guns.gun1.xvalueinroot;
_root["laser" + _root.lasdup]._y = _root.guns.gun1.yvalueinroot;
_root.lasdup++;
if (_root.lasdup > 20) {
_root.lasdup = 5;
}
duplicateMovieClip ("laser", "laser" + _root.lasdup, _root.lasdup);
_root["laser" + _root.lasdup]._x = _root.guns.gun2.xvalueinroot;
_root["laser" + _root.lasdup]._y = _root.guns.gun2.yvalueinroot;
_root.lasdup++;
laser = new Sound();
laser.attachSound("laser");
laser.start();
}
function resetTiles() {
i = 0;
while (i < gTileNum) {
var _local2 = gTargetList[i];
_root[_local2]._x = _root[_local2].startX;
_root[_local2].health = _root[_local2].starthealth;
i++;
}
}
function nextLevel() {
i = 0;
while (i < 999) {
_root["ball" + i].removeMovieClip();
i++;
}
_root.playlevel++;
_root.paddlelenght = 2;
_root.levelmessage = ("LEVEL " + _root.playlevel) + "";
_root.gameRun = false;
gotoAndPlay (24);
}
function getRandom(x, y) {
return(Math.round(Math.random() * (y - x)) + x);
}
Mouse.hide();
gameOn = 1;
theScore = 0;
gBallBaseLoc = [272.5, 250];
gThePaddle = [_root.paddle];
gGameRect = [2, 25, 548, 420];
gHMax = pGameRect[2] - 5;
gTileNum = 30;
gTargetList = [];
maketargetList(gTileNum);
theNumberOfBalls = 1;
theCurBallNum = 1;
theBallsList = new newBallList(theNumberOfBalls);
_root.resetTiles();
newBall.prototype.moveBall = function () {
if (_root.upgrading > 0) {
this.increaseSpeed();
_root.upgrading--;
}
this.MovieClip._x = this.MovieClip._x + this.deltaX;
this.MovieClip._y = this.MovieClip._y + this.deltaY;
if (this.MovieClip._y < 35) {
this.flipY();
}
var _local5 = gTargetList.length;
i = 0;
while (i < _local5) {
var _local3 = gTargetList[i];
if (this.MovieClip.hitTest(_root[_local3])) {
this.increaseSpeed();
_root.score = _root.score + 10;
_root[_local3].health--;
if (_root[_local3].health == 0) {
if (_root[_local3].drop_it == true) {
duplicateMovieClip ("dropper", "dropper" + _root.dropnum, _root.dropnum);
_root["dropper" + _root.dropnum]._x = _root[_local3]._x;
_root["dropper" + _root.dropnum]._y = _root[_local3]._y;
_root["dropper" + _root.dropnum].framer = Math.round((Math.random() * 6) + 1);
_root.dropnum++;
if (_root.dropnum > 35) {
_root.dropnum = 30;
}
}
_root[_local3]._x = _root[_local3]._x + -1000;
left = gTileNum;
i = 1;
while (i < (gTileNum + 1)) {
if (_root["tile" + i].health == 0) {
left--;
}
i++;
}
if (left == 0) {
_root.nextLevel();
}
}
this.flipY();
break;
}
i++;
}
thisPad = 0;
while (thisPad < 2) {
var _local4 = gThePaddle[thisPad];
if (this.MovieClip.hitTest(_local4) && (this.deltaY > 0)) {
this.paddleHit(_local4);
}
thisPad++;
}
if (this.MovieClip._y > (gGameRect[3] + 20)) {
theBallsList[this.name] = 0;
removeMovieClip(this.MovieClip);
theCurBallNum--;
if (theCurBallNum <= 0) {
ballsLeft--;
if (ballsLeft < 0) {
ballsLeft = 0;
gameOn = 0;
gotoAndStop (23);
} else {
_root.gameRun = false;
addNewBall();
}
}
}
if ((this.MovieClip._x < gGameRect[0]) || (this.MovieClip._x > gGameRect[2])) {
this.flipX();
}
};
newBall.prototype.serveBall = function () {
this.MovieClip._x = gBallBaseLoc[0];
this.MovieClip._y = gBallBaseLoc[1];
this.deltaX = getRandom(-5, 5);
this.deltaY = -10;
};
newBall.prototype.flipY = function () {
this.deltaY = this.deltaY * -1;
sfx2 = new Sound();
sfx2.attachSound("sfx2");
sfx2.start();
};
newBall.prototype.flipX = function () {
this.deltaX = this.deltaX * -1;
sfx2 = new Sound();
sfx2.attachSound("sfx2");
sfx2.start();
};
newBall.prototype.paddleHit = function (thePaddle) {
this.deltaX = (this.MovieClip._x - thePaddle._x) / 4;
this.flipY();
this.MovieClip._y = Math.min(this.MovieClip._y, thePaddle._y + 10);
};
newBall.prototype.increaseSpeed = function () {
if ((this.deltaY < -30) || (this.deltaY > 30)) {
} else {
this.hitNum++;
if (this.hitNum > 3) {
this.hitNum = 0;
if (this.deltaY > 0) {
this.deltaY++;
} else {
this.deltaY--;
}
}
}
};
Instance of Symbol 214 MovieClip "paddle" in Frame 19
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn && (_root.pausegame == false)) {
Mouse.hide();
this._x = _root._xmouse;
} else {
Mouse.show();
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
if (Key.isDown(80)) {
_root.gameRun = false;
_root.pausegame = true;
}
}
onClipEvent (mouseDown) {
_root.gameRun = true;
_root.pausegame = false;
}
Instance of Symbol 220 MovieClip "guns" in Frame 19
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
_visible = false;
shooter = 0;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn) {
if (_root.pausegame == false) {
this._x = _root._xmouse;
}
if (_root.gunlenght > 0) {
if (shooter > 0) {
if ((_root.pausegame == false) && (_root.gameRun == true)) {
shooter--;
}
}
_visible = true;
_root.gunlenght--;
} else {
_visible = false;
}
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
onClipEvent (mouseDown) {
if ((_root.gunlenght > 0) && (shooter == 0)) {
_root.fireGun();
shooter = 20;
}
}
Instance of Symbol 270 MovieClip "tile25" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 270 MovieClip "tile26" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 270 MovieClip "tile27" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 270 MovieClip "tile28" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile19" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile21" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile22" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile13" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile8" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = true;
}
Instance of Symbol 224 MovieClip "tile15" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile16" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile7" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile14" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile9" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile10" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 270 MovieClip "tile29" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 270 MovieClip "tile30" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile24" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile11" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = true;
}
Instance of Symbol 224 MovieClip "tile18" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile17" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile12" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile20" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = true;
}
Instance of Symbol 272 MovieClip "tile23" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = true;
}
Instance of Symbol 270 MovieClip "tile1" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 270 MovieClip "tile2" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 270 MovieClip "tile3" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 270 MovieClip "tile4" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 270 MovieClip "tile5" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 270 MovieClip "tile6" in Frame 19
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 226 MovieClip "laser" in Frame 19
onClipEvent (enterFrame) {
_y = (_y - _root.laserSpeed);
if (_y > -15) {
i = 1;
while (i < (_root.gTileNum + 1)) {
if (this.hitTest(_root["tile" + i])) {
_x = (_x - 2000);
_root.score = _root.score + 10;
_root["tile" + i].health--;
if (_root["tile" + i].health == 0) {
if (_root["tile" + i].drop_it == true) {
_root.dropper.duplicateMovieClip("dropper" + _root.dropnum, _root.dropnum);
_root["dropper" + _root.dropnum]._x = _root["tile" + i]._x;
_root["dropper" + _root.dropnum]._y = _root["tile" + i]._y;
_root["dropper" + _root.dropnum].framer = Math.round((Math.random() * 6) + 1);
_root.dropnum++;
if (_root.dropnum > 35) {
_root.dropnum = 30;
}
}
_root["tile" + i]._x = _root["tile" + i]._x + -1000;
}
sfx5 = new Sound();
sfx5.attachSound("sfx5");
sfx5.start();
left = _root.gTileNum;
i = 1;
while (i < (_root.gTileNum + 1)) {
if (_root["tile" + i].health == 0) {
left--;
}
i++;
}
if (left == 0) {
_root.nextLevel();
}
}
i++;
}
}
}
Instance of Symbol 72 MovieClip "dropper" in Frame 19
onClipEvent (load) {
this.gotoAndStop(framer);
}
onClipEvent (enterFrame) {
this.gotoAndStop(framer);
_y = (_y + _root.dropSpeed);
if (this.hitTest(_root.paddle)) {
sfx1 = new Sound();
sfx1.attachSound("sfx1");
sfx1.start();
if (framer == 1) {
_root.ballsLeft++;
} else if (framer == 2) {
if (_root.paddlelenght < 4) {
_root.paddlelenght++;
}
} else if (framer == 3) {
if (_root.paddlelenght > 1) {
_root.paddlelenght--;
}
} else if (framer == 4) {
_root.gunlenght = _root.gunlenght + 400;
} else if (framer == 5) {
_root.upgrading = 20;
} else if (framer == 6) {
_root.upgrading = 40;
_root.score = _root.score + 75;
} else if (framer == 7) {
_root.score = _root.score + 250;
}
_root.score = _root.score + 25;
this.removeMovieClip();
}
if (_y > 425) {
this.removeMovieClip();
}
}
Instance of Symbol 235 MovieClip in Frame 19
onClipEvent (mouseDown) {
_visible = false;
}
Frame 20
moveTheBalls();
Frame 21
gotoAndPlay (20);
Frame 23
stop();
_root.gameOn = false;
_root.levelwin = _root.playlevel * 1000;
_root.finalscore = _root.levelwin + _root.score;
Instance of Symbol 214 MovieClip "paddle" in Frame 23
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn) {
Mouse.hide();
this._x = _root._xmouse;
} else {
Mouse.show();
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
onClipEvent (mouseDown) {
_root.gameRun = true;
}
Frame 24
paddlelenght = 2;
gunlenght = 0;
lasdup = 5;
laserSpeed = 22;
dropSpeed = 6;
dropnum = 30;
upgrading = 0;
_root.gameRun = false;
gotoAndPlay (25);
_root.gameOn = true;
_root.gameRun = false;
Instance of Symbol 214 MovieClip "paddle" in Frame 24
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
this._x = _root._xmouse;
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
Frame 25
function moveTheBalls() {
x = 1;
while (x <= theNumberOfBalls) {
thisBall = theBallsList["ball" + x];
if (((!thisBall) == 0) && (gameRun == true)) {
thisBall.moveBall();
}
x++;
}
}
function newBallList(startBallNum) {
this["ball" + startBallNum] = new newBall("ball" + startBallNum);
}
function addNewBall() {
theNumberOfBalls++;
theCurBallNum++;
theBallsList["ball" + theNumberOfBalls] = new newBall("ball" + theNumberOfBalls);
}
function maketargetList(numOfTiles) {
i = 0;
while (i < numOfTiles) {
gTargetList[i] = String("tile" + (i + 1));
i++;
}
}
function newBall(instName) {
duplicateMovieClip ("ball", instName, theNumberOfBalls);
this.name = instName;
this.MovieClip = _root[instName];
this.MovieClip._x = gBallBaseLoc[0];
this.MovieClip._y = gBallBaseLoc[1];
this.deltaX = getRandom(-10, 10);
this.deltaY = 5;
this.HitNum = 0;
}
function resetGame() {
maketargetList(gTileNum);
resetTiles();
}
function fireGun() {
if (_root.lasdup > 20) {
_root.lasdup = 5;
}
duplicateMovieClip ("laser", "laser" + _root.lasdup, _root.lasdup);
_root["laser" + _root.lasdup]._x = _root.guns.gun1.xvalueinroot;
_root["laser" + _root.lasdup]._y = _root.guns.gun1.yvalueinroot;
_root.lasdup++;
if (_root.lasdup > 20) {
_root.lasdup = 5;
}
duplicateMovieClip ("laser", "laser" + _root.lasdup, _root.lasdup);
_root["laser" + _root.lasdup]._x = _root.guns.gun2.xvalueinroot;
_root["laser" + _root.lasdup]._y = _root.guns.gun2.yvalueinroot;
_root.lasdup++;
laser = new Sound();
laser.attachSound("laser");
laser.start();
}
function resetTiles() {
i = 0;
while (i < gTileNum) {
var _local2 = gTargetList[i];
_root[_local2]._x = _root[_local2].startX;
_root[_local2].health = _root[_local2].starthealth;
i++;
}
}
function nextLevel() {
i = 0;
while (i < 999) {
_root["ball" + i].removeMovieClip();
i++;
}
_root.playlevel++;
_root.paddlelenght = 2;
_root.levelmessage = ("LEVEL " + _root.playlevel) + "";
_root.gameRun = false;
gotoAndPlay (30);
}
function getRandom(x, y) {
return(Math.round(Math.random() * (y - x)) + x);
}
Mouse.hide();
gameOn = 1;
theScore = 0;
gBallBaseLoc = [272.5, 250];
gThePaddle = [_root.paddle];
gGameRect = [2, 25, 548, 420];
gHMax = pGameRect[2] - 5;
gTileNum = 110;
gTargetList = [];
maketargetList(gTileNum);
theNumberOfBalls = 1;
theCurBallNum = 1;
theBallsList = new newBallList(theNumberOfBalls);
_root.resetTiles();
newBall.prototype.moveBall = function () {
if (_root.upgrading > 0) {
this.increaseSpeed();
_root.upgrading--;
}
this.MovieClip._x = this.MovieClip._x + this.deltaX;
this.MovieClip._y = this.MovieClip._y + this.deltaY;
if (this.MovieClip._y < 35) {
this.flipY();
}
var _local5 = gTargetList.length;
i = 0;
while (i < _local5) {
var _local3 = gTargetList[i];
if (this.MovieClip.hitTest(_root[_local3])) {
this.increaseSpeed();
_root.score = _root.score + 10;
_root[_local3].health--;
if (_root[_local3].health == 0) {
if (_root[_local3].drop_it == true) {
duplicateMovieClip ("dropper", "dropper" + _root.dropnum, _root.dropnum);
_root["dropper" + _root.dropnum]._x = _root[_local3]._x;
_root["dropper" + _root.dropnum]._y = _root[_local3]._y;
_root["dropper" + _root.dropnum].framer = Math.round((Math.random() * 6) + 1);
_root.dropnum++;
if (_root.dropnum > 35) {
_root.dropnum = 30;
}
}
_root[_local3]._x = _root[_local3]._x + -1000;
left = gTileNum;
i = 1;
while (i < (gTileNum + 1)) {
if (_root["tile" + i].health == 0) {
left--;
}
i++;
}
if (left == 0) {
_root.nextLevel();
}
}
this.flipY();
break;
}
i++;
}
thisPad = 0;
while (thisPad < 2) {
var _local4 = gThePaddle[thisPad];
if (this.MovieClip.hitTest(_local4) && (this.deltaY > 0)) {
this.paddleHit(_local4);
}
thisPad++;
}
if (this.MovieClip._y > (gGameRect[3] + 20)) {
theBallsList[this.name] = 0;
removeMovieClip(this.MovieClip);
theCurBallNum--;
if (theCurBallNum <= 0) {
ballsLeft--;
if (ballsLeft < 0) {
ballsLeft = 0;
gameOn = 0;
gotoAndStop (29);
} else {
_root.gameRun = false;
addNewBall();
}
}
}
if ((this.MovieClip._x < gGameRect[0]) || (this.MovieClip._x > gGameRect[2])) {
this.flipX();
}
};
newBall.prototype.serveBall = function () {
this.MovieClip._x = gBallBaseLoc[0];
this.MovieClip._y = gBallBaseLoc[1];
this.deltaX = getRandom(-5, 5);
this.deltaY = -10;
};
newBall.prototype.flipY = function () {
this.deltaY = this.deltaY * -1;
sfx2 = new Sound();
sfx2.attachSound("sfx2");
sfx2.start();
};
newBall.prototype.flipX = function () {
this.deltaX = this.deltaX * -1;
sfx2 = new Sound();
sfx2.attachSound("sfx2");
sfx2.start();
};
newBall.prototype.paddleHit = function (thePaddle) {
this.deltaX = (this.MovieClip._x - thePaddle._x) / 4;
this.flipY();
this.MovieClip._y = Math.min(this.MovieClip._y, thePaddle._y + 10);
};
newBall.prototype.increaseSpeed = function () {
if ((this.deltaY < -30) || (this.deltaY > 30)) {
} else {
this.hitNum++;
if (this.hitNum > 3) {
this.hitNum = 0;
if (this.deltaY > 0) {
this.deltaY++;
} else {
this.deltaY--;
}
}
}
};
Instance of Symbol 214 MovieClip "paddle" in Frame 25
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn && (_root.pausegame == false)) {
Mouse.hide();
this._x = _root._xmouse;
} else {
Mouse.show();
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
if (Key.isDown(80)) {
_root.gameRun = false;
_root.pausegame = true;
}
}
onClipEvent (mouseDown) {
_root.gameRun = true;
_root.pausegame = false;
}
Instance of Symbol 220 MovieClip "guns" in Frame 25
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
_visible = false;
shooter = 0;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn) {
if (_root.pausegame == false) {
this._x = _root._xmouse;
}
if (_root.gunlenght > 0) {
if (shooter > 0) {
if ((_root.pausegame == false) && (_root.gameRun == true)) {
shooter--;
}
}
_visible = true;
_root.gunlenght--;
} else {
_visible = false;
}
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
onClipEvent (mouseDown) {
if ((_root.gunlenght > 0) && (shooter == 0)) {
_root.fireGun();
shooter = 20;
}
}
Instance of Symbol 224 MovieClip "tile91" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile92" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile93" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile94" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile95" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile96" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile97" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile98" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile99" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile100" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile101" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile102" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile103" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile104" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile105" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile106" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile107" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile108" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile109" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile110" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile81" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile82" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile83" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile84" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile85" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile86" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile87" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile88" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile89" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile90" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile71" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile72" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile73" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile74" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile75" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile76" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile77" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile78" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile79" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile80" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile61" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile62" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile63" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile64" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile65" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile66" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile67" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile68" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile69" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile70" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile51" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile52" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile53" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile54" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile55" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile56" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile57" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile58" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile59" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile60" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile41" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile42" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile43" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile44" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile45" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile46" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile47" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile48" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile49" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile50" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile31" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile32" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile33" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile34" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile35" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile36" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile37" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile38" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile39" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile40" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile21" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile22" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile23" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile24" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile25" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile26" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile27" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile28" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile29" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile30" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile11" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile12" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile13" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile14" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile15" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile16" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile17" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile18" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile19" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile20" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile1" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile2" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile3" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile4" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile5" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile6" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile7" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile8" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile9" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile10" in Frame 25
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 226 MovieClip "laser" in Frame 25
onClipEvent (enterFrame) {
_y = (_y - _root.laserSpeed);
if (_y > -15) {
i = 1;
while (i < (_root.gTileNum + 1)) {
if (this.hitTest(_root["tile" + i])) {
_x = (_x - 2000);
_root.score = _root.score + 10;
_root["tile" + i].health--;
if (_root["tile" + i].health == 0) {
if (_root["tile" + i].drop_it == true) {
_root.dropper.duplicateMovieClip("dropper" + _root.dropnum, _root.dropnum);
_root["dropper" + _root.dropnum]._x = _root["tile" + i]._x;
_root["dropper" + _root.dropnum]._y = _root["tile" + i]._y;
_root["dropper" + _root.dropnum].framer = Math.round((Math.random() * 6) + 1);
_root.dropnum++;
if (_root.dropnum > 35) {
_root.dropnum = 30;
}
}
_root["tile" + i]._x = _root["tile" + i]._x + -1000;
}
sfx5 = new Sound();
sfx5.attachSound("sfx5");
sfx5.start();
left = _root.gTileNum;
i = 1;
while (i < (_root.gTileNum + 1)) {
if (_root["tile" + i].health == 0) {
left--;
}
i++;
}
if (left == 0) {
_root.nextLevel();
}
}
i++;
}
}
}
Instance of Symbol 72 MovieClip "dropper" in Frame 25
onClipEvent (load) {
this.gotoAndStop(framer);
}
onClipEvent (enterFrame) {
this.gotoAndStop(framer);
_y = (_y + _root.dropSpeed);
if (this.hitTest(_root.paddle)) {
sfx1 = new Sound();
sfx1.attachSound("sfx1");
sfx1.start();
if (framer == 1) {
_root.ballsLeft++;
} else if (framer == 2) {
if (_root.paddlelenght < 4) {
_root.paddlelenght++;
}
} else if (framer == 3) {
if (_root.paddlelenght > 1) {
_root.paddlelenght--;
}
} else if (framer == 4) {
_root.gunlenght = _root.gunlenght + 400;
} else if (framer == 5) {
_root.upgrading = 20;
} else if (framer == 6) {
_root.upgrading = 40;
_root.score = _root.score + 75;
} else if (framer == 7) {
_root.score = _root.score + 250;
}
_root.score = _root.score + 25;
this.removeMovieClip();
}
if (_y > 425) {
this.removeMovieClip();
}
}
Instance of Symbol 235 MovieClip in Frame 25
onClipEvent (mouseDown) {
_visible = false;
}
Frame 26
moveTheBalls();
Frame 27
gotoAndPlay (26);
Frame 29
stop();
_root.gameOn = false;
_root.levelwin = _root.playlevel * 1000;
_root.finalscore = _root.levelwin + _root.score;
Instance of Symbol 214 MovieClip "paddle" in Frame 29
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn) {
Mouse.hide();
this._x = _root._xmouse;
} else {
Mouse.show();
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
onClipEvent (mouseDown) {
_root.gameRun = true;
}
Frame 30
paddlelenght = 2;
gunlenght = 0;
lasdup = 5;
laserSpeed = 22;
dropSpeed = 6;
dropnum = 30;
upgrading = 0;
_root.gameRun = false;
gotoAndPlay (31);
_root.gameOn = true;
_root.gameRun = false;
Instance of Symbol 214 MovieClip "paddle" in Frame 30
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
this._x = _root._xmouse;
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
Frame 31
function moveTheBalls() {
x = 1;
while (x <= theNumberOfBalls) {
thisBall = theBallsList["ball" + x];
if (((!thisBall) == 0) && (gameRun == true)) {
thisBall.moveBall();
}
x++;
}
}
function newBallList(startBallNum) {
this["ball" + startBallNum] = new newBall("ball" + startBallNum);
}
function addNewBall() {
theNumberOfBalls++;
theCurBallNum++;
theBallsList["ball" + theNumberOfBalls] = new newBall("ball" + theNumberOfBalls);
}
function maketargetList(numOfTiles) {
i = 0;
while (i < numOfTiles) {
gTargetList[i] = String("tile" + (i + 1));
i++;
}
}
function newBall(instName) {
duplicateMovieClip ("ball", instName, theNumberOfBalls);
this.name = instName;
this.MovieClip = _root[instName];
this.MovieClip._x = gBallBaseLoc[0];
this.MovieClip._y = gBallBaseLoc[1];
this.deltaX = getRandom(-10, 10);
this.deltaY = 5;
this.HitNum = 0;
}
function resetGame() {
maketargetList(gTileNum);
resetTiles();
}
function fireGun() {
if (_root.lasdup > 20) {
_root.lasdup = 5;
}
duplicateMovieClip ("laser", "laser" + _root.lasdup, _root.lasdup);
_root["laser" + _root.lasdup]._x = _root.guns.gun1.xvalueinroot;
_root["laser" + _root.lasdup]._y = _root.guns.gun1.yvalueinroot;
_root.lasdup++;
if (_root.lasdup > 20) {
_root.lasdup = 5;
}
duplicateMovieClip ("laser", "laser" + _root.lasdup, _root.lasdup);
_root["laser" + _root.lasdup]._x = _root.guns.gun2.xvalueinroot;
_root["laser" + _root.lasdup]._y = _root.guns.gun2.yvalueinroot;
_root.lasdup++;
laser = new Sound();
laser.attachSound("laser");
laser.start();
}
function resetTiles() {
i = 0;
while (i < gTileNum) {
var _local2 = gTargetList[i];
_root[_local2]._x = _root[_local2].startX;
_root[_local2].health = _root[_local2].starthealth;
i++;
}
}
function nextLevel() {
i = 0;
while (i < 999) {
_root["ball" + i].removeMovieClip();
i++;
}
_root.playlevel++;
_root.paddlelenght = 2;
_root.levelmessage = ("LEVEL " + _root.playlevel) + "";
_root.gameRun = false;
gotoAndPlay (36);
}
function getRandom(x, y) {
return(Math.round(Math.random() * (y - x)) + x);
}
Mouse.hide();
gameOn = 1;
theScore = 0;
gBallBaseLoc = [272.5, 250];
gThePaddle = [_root.paddle];
gGameRect = [2, 25, 548, 420];
gHMax = pGameRect[2] - 5;
gTileNum = 20;
gTargetList = [];
maketargetList(gTileNum);
theNumberOfBalls = 1;
theCurBallNum = 1;
theBallsList = new newBallList(theNumberOfBalls);
_root.resetTiles();
newBall.prototype.moveBall = function () {
if (_root.upgrading > 0) {
this.increaseSpeed();
_root.upgrading--;
}
this.MovieClip._x = this.MovieClip._x + this.deltaX;
this.MovieClip._y = this.MovieClip._y + this.deltaY;
if (this.MovieClip._y < 35) {
this.flipY();
}
var _local5 = gTargetList.length;
i = 0;
while (i < _local5) {
var _local3 = gTargetList[i];
if (this.MovieClip.hitTest(_root[_local3])) {
this.increaseSpeed();
_root.score = _root.score + 10;
_root[_local3].health--;
if (_root[_local3].health == 0) {
if (_root[_local3].drop_it == true) {
duplicateMovieClip ("dropper", "dropper" + _root.dropnum, _root.dropnum);
_root["dropper" + _root.dropnum]._x = _root[_local3]._x;
_root["dropper" + _root.dropnum]._y = _root[_local3]._y;
_root["dropper" + _root.dropnum].framer = Math.round((Math.random() * 6) + 1);
_root.dropnum++;
if (_root.dropnum > 35) {
_root.dropnum = 30;
}
}
_root[_local3]._x = _root[_local3]._x + -1000;
left = gTileNum;
i = 1;
while (i < (gTileNum + 1)) {
if (_root["tile" + i].health == 0) {
left--;
}
i++;
}
if (left == 0) {
_root.nextLevel();
}
}
this.flipY();
break;
}
i++;
}
thisPad = 0;
while (thisPad < 2) {
var _local4 = gThePaddle[thisPad];
if (this.MovieClip.hitTest(_local4) && (this.deltaY > 0)) {
this.paddleHit(_local4);
}
thisPad++;
}
if (this.MovieClip._y > (gGameRect[3] + 20)) {
theBallsList[this.name] = 0;
removeMovieClip(this.MovieClip);
theCurBallNum--;
if (theCurBallNum <= 0) {
ballsLeft--;
if (ballsLeft < 0) {
ballsLeft = 0;
gameOn = 0;
gotoAndStop (35);
} else {
_root.gameRun = false;
addNewBall();
}
}
}
if ((this.MovieClip._x < gGameRect[0]) || (this.MovieClip._x > gGameRect[2])) {
this.flipX();
}
};
newBall.prototype.serveBall = function () {
this.MovieClip._x = gBallBaseLoc[0];
this.MovieClip._y = gBallBaseLoc[1];
this.deltaX = getRandom(-5, 5);
this.deltaY = -10;
};
newBall.prototype.flipY = function () {
this.deltaY = this.deltaY * -1;
sfx2 = new Sound();
sfx2.attachSound("sfx2");
sfx2.start();
};
newBall.prototype.flipX = function () {
this.deltaX = this.deltaX * -1;
sfx2 = new Sound();
sfx2.attachSound("sfx2");
sfx2.start();
};
newBall.prototype.paddleHit = function (thePaddle) {
this.deltaX = (this.MovieClip._x - thePaddle._x) / 4;
this.flipY();
this.MovieClip._y = Math.min(this.MovieClip._y, thePaddle._y + 10);
};
newBall.prototype.increaseSpeed = function () {
if ((this.deltaY < -30) || (this.deltaY > 30)) {
} else {
this.hitNum++;
if (this.hitNum > 3) {
this.hitNum = 0;
if (this.deltaY > 0) {
this.deltaY++;
} else {
this.deltaY--;
}
}
}
};
Instance of Symbol 214 MovieClip "paddle" in Frame 31
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn && (_root.pausegame == false)) {
Mouse.hide();
this._x = _root._xmouse;
} else {
Mouse.show();
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
if (Key.isDown(80)) {
_root.gameRun = false;
_root.pausegame = true;
}
}
onClipEvent (mouseDown) {
_root.gameRun = true;
_root.pausegame = false;
}
Instance of Symbol 220 MovieClip "guns" in Frame 31
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
_visible = false;
shooter = 0;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn) {
if (_root.pausegame == false) {
this._x = _root._xmouse;
}
if (_root.gunlenght > 0) {
if (shooter > 0) {
if ((_root.pausegame == false) && (_root.gameRun == true)) {
shooter--;
}
}
_visible = true;
_root.gunlenght--;
} else {
_visible = false;
}
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
onClipEvent (mouseDown) {
if ((_root.gunlenght > 0) && (shooter == 0)) {
_root.fireGun();
shooter = 20;
}
}
Instance of Symbol 257 MovieClip "tile11" in Frame 31
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile12" in Frame 31
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile13" in Frame 31
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile14" in Frame 31
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile15" in Frame 31
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile16" in Frame 31
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile17" in Frame 31
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile18" in Frame 31
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile19" in Frame 31
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile20" in Frame 31
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile1" in Frame 31
onClipEvent (load) {
startX = this._x;
health = 5 + _root.adding_health;
starthealth = 5 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile2" in Frame 31
onClipEvent (load) {
startX = this._x;
health = 5 + _root.adding_health;
starthealth = 5 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile3" in Frame 31
onClipEvent (load) {
startX = this._x;
health = 5 + _root.adding_health;
starthealth = 5 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile4" in Frame 31
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile5" in Frame 31
onClipEvent (load) {
startX = this._x;
health = 5 + _root.adding_health;
starthealth = 5 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile6" in Frame 31
onClipEvent (load) {
startX = this._x;
health = 5 + _root.adding_health;
starthealth = 5 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile7" in Frame 31
onClipEvent (load) {
startX = this._x;
health = 5 + _root.adding_health;
starthealth = 5 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile8" in Frame 31
onClipEvent (load) {
startX = this._x;
health = 5 + _root.adding_health;
starthealth = 5 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile9" in Frame 31
onClipEvent (load) {
startX = this._x;
health = 5 + _root.adding_health;
starthealth = 5 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile10" in Frame 31
onClipEvent (load) {
startX = this._x;
health = 5 + _root.adding_health;
starthealth = 5 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 226 MovieClip "laser" in Frame 31
onClipEvent (enterFrame) {
_y = (_y - _root.laserSpeed);
if (_y > -15) {
i = 1;
while (i < (_root.gTileNum + 1)) {
if (this.hitTest(_root["tile" + i])) {
_x = (_x - 2000);
_root.score = _root.score + 10;
_root["tile" + i].health--;
if (_root["tile" + i].health == 0) {
if (_root["tile" + i].drop_it == true) {
_root.dropper.duplicateMovieClip("dropper" + _root.dropnum, _root.dropnum);
_root["dropper" + _root.dropnum]._x = _root["tile" + i]._x;
_root["dropper" + _root.dropnum]._y = _root["tile" + i]._y;
_root["dropper" + _root.dropnum].framer = Math.round((Math.random() * 6) + 1);
_root.dropnum++;
if (_root.dropnum > 35) {
_root.dropnum = 30;
}
}
_root["tile" + i]._x = _root["tile" + i]._x + -1000;
}
sfx5 = new Sound();
sfx5.attachSound("sfx5");
sfx5.start();
left = _root.gTileNum;
i = 1;
while (i < (_root.gTileNum + 1)) {
if (_root["tile" + i].health == 0) {
left--;
}
i++;
}
if (left == 0) {
_root.nextLevel();
}
}
i++;
}
}
}
Instance of Symbol 72 MovieClip "dropper" in Frame 31
onClipEvent (load) {
this.gotoAndStop(framer);
}
onClipEvent (enterFrame) {
this.gotoAndStop(framer);
_y = (_y + _root.dropSpeed);
if (this.hitTest(_root.paddle)) {
sfx1 = new Sound();
sfx1.attachSound("sfx1");
sfx1.start();
if (framer == 1) {
_root.ballsLeft++;
} else if (framer == 2) {
if (_root.paddlelenght < 4) {
_root.paddlelenght++;
}
} else if (framer == 3) {
if (_root.paddlelenght > 1) {
_root.paddlelenght--;
}
} else if (framer == 4) {
_root.gunlenght = _root.gunlenght + 400;
} else if (framer == 5) {
_root.upgrading = 20;
} else if (framer == 6) {
_root.upgrading = 40;
_root.score = _root.score + 75;
} else if (framer == 7) {
_root.score = _root.score + 250;
}
_root.score = _root.score + 25;
this.removeMovieClip();
}
if (_y > 425) {
this.removeMovieClip();
}
}
Instance of Symbol 235 MovieClip in Frame 31
onClipEvent (mouseDown) {
_visible = false;
}
Frame 32
moveTheBalls();
Frame 33
gotoAndPlay (32);
Frame 35
stop();
_root.gameOn = false;
_root.levelwin = _root.playlevel * 1000;
_root.finalscore = _root.levelwin + _root.score;
Instance of Symbol 214 MovieClip "paddle" in Frame 35
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn) {
Mouse.hide();
this._x = _root._xmouse;
} else {
Mouse.show();
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
onClipEvent (mouseDown) {
_root.gameRun = true;
}
Frame 36
paddlelenght = 2;
gunlenght = 0;
lasdup = 5;
laserSpeed = 22;
dropSpeed = 6;
dropnum = 30;
upgrading = 0;
_root.gameRun = false;
gotoAndPlay (37);
_root.gameOn = true;
_root.gameRun = false;
Instance of Symbol 214 MovieClip "paddle" in Frame 36
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
this._x = _root._xmouse;
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
Frame 37
function moveTheBalls() {
x = 1;
while (x <= theNumberOfBalls) {
thisBall = theBallsList["ball" + x];
if (((!thisBall) == 0) && (gameRun == true)) {
thisBall.moveBall();
}
x++;
}
}
function newBallList(startBallNum) {
this["ball" + startBallNum] = new newBall("ball" + startBallNum);
}
function addNewBall() {
theNumberOfBalls++;
theCurBallNum++;
theBallsList["ball" + theNumberOfBalls] = new newBall("ball" + theNumberOfBalls);
}
function maketargetList(numOfTiles) {
i = 0;
while (i < numOfTiles) {
gTargetList[i] = String("tile" + (i + 1));
i++;
}
}
function newBall(instName) {
duplicateMovieClip ("ball", instName, theNumberOfBalls);
this.name = instName;
this.MovieClip = _root[instName];
this.MovieClip._x = gBallBaseLoc[0];
this.MovieClip._y = gBallBaseLoc[1];
this.deltaX = getRandom(-10, 10);
this.deltaY = 5;
this.HitNum = 0;
}
function resetGame() {
maketargetList(gTileNum);
resetTiles();
}
function fireGun() {
if (_root.lasdup > 20) {
_root.lasdup = 5;
}
duplicateMovieClip ("laser", "laser" + _root.lasdup, _root.lasdup);
_root["laser" + _root.lasdup]._x = _root.guns.gun1.xvalueinroot;
_root["laser" + _root.lasdup]._y = _root.guns.gun1.yvalueinroot;
_root.lasdup++;
if (_root.lasdup > 20) {
_root.lasdup = 5;
}
duplicateMovieClip ("laser", "laser" + _root.lasdup, _root.lasdup);
_root["laser" + _root.lasdup]._x = _root.guns.gun2.xvalueinroot;
_root["laser" + _root.lasdup]._y = _root.guns.gun2.yvalueinroot;
_root.lasdup++;
laser = new Sound();
laser.attachSound("laser");
laser.start();
}
function resetTiles() {
i = 0;
while (i < gTileNum) {
var _local2 = gTargetList[i];
_root[_local2]._x = _root[_local2].startX;
_root[_local2].health = _root[_local2].starthealth;
i++;
}
}
function nextLevel() {
i = 0;
while (i < 999) {
_root["ball" + i].removeMovieClip();
i++;
}
_root.playlevel++;
_root.paddlelenght = 2;
_root.levelmessage = ("LEVEL " + _root.playlevel) + "";
_root.gameRun = false;
gotoAndPlay (42);
}
function getRandom(x, y) {
return(Math.round(Math.random() * (y - x)) + x);
}
Mouse.hide();
gameOn = 1;
theScore = 0;
gBallBaseLoc = [272.5, 250];
gThePaddle = [_root.paddle];
gGameRect = [2, 25, 548, 420];
gHMax = pGameRect[2] - 5;
gTileNum = 44;
gTargetList = [];
maketargetList(gTileNum);
theNumberOfBalls = 1;
theCurBallNum = 1;
theBallsList = new newBallList(theNumberOfBalls);
_root.resetTiles();
newBall.prototype.moveBall = function () {
if (_root.upgrading > 0) {
this.increaseSpeed();
_root.upgrading--;
}
this.MovieClip._x = this.MovieClip._x + this.deltaX;
this.MovieClip._y = this.MovieClip._y + this.deltaY;
if (this.MovieClip._y < 35) {
this.flipY();
}
var _local5 = gTargetList.length;
i = 0;
while (i < _local5) {
var _local3 = gTargetList[i];
if (this.MovieClip.hitTest(_root[_local3])) {
this.increaseSpeed();
_root.score = _root.score + 10;
_root[_local3].health--;
if (_root[_local3].health == 0) {
if (_root[_local3].drop_it == true) {
duplicateMovieClip ("dropper", "dropper" + _root.dropnum, _root.dropnum);
_root["dropper" + _root.dropnum]._x = _root[_local3]._x;
_root["dropper" + _root.dropnum]._y = _root[_local3]._y;
_root["dropper" + _root.dropnum].framer = Math.round((Math.random() * 6) + 1);
_root.dropnum++;
if (_root.dropnum > 35) {
_root.dropnum = 30;
}
}
_root[_local3]._x = _root[_local3]._x + -1000;
left = gTileNum;
i = 1;
while (i < (gTileNum + 1)) {
if (_root["tile" + i].health == 0) {
left--;
}
i++;
}
if (left == 0) {
_root.nextLevel();
}
}
this.flipY();
break;
}
i++;
}
thisPad = 0;
while (thisPad < 2) {
var _local4 = gThePaddle[thisPad];
if (this.MovieClip.hitTest(_local4) && (this.deltaY > 0)) {
this.paddleHit(_local4);
}
thisPad++;
}
if (this.MovieClip._y > (gGameRect[3] + 20)) {
theBallsList[this.name] = 0;
removeMovieClip(this.MovieClip);
theCurBallNum--;
if (theCurBallNum <= 0) {
ballsLeft--;
if (ballsLeft < 0) {
ballsLeft = 0;
gameOn = 0;
gotoAndStop (41);
} else {
_root.gameRun = false;
addNewBall();
}
}
}
if ((this.MovieClip._x < gGameRect[0]) || (this.MovieClip._x > gGameRect[2])) {
this.flipX();
}
};
newBall.prototype.serveBall = function () {
this.MovieClip._x = gBallBaseLoc[0];
this.MovieClip._y = gBallBaseLoc[1];
this.deltaX = getRandom(-5, 5);
this.deltaY = -10;
};
newBall.prototype.flipY = function () {
this.deltaY = this.deltaY * -1;
sfx2 = new Sound();
sfx2.attachSound("sfx2");
sfx2.start();
};
newBall.prototype.flipX = function () {
this.deltaX = this.deltaX * -1;
sfx2 = new Sound();
sfx2.attachSound("sfx2");
sfx2.start();
};
newBall.prototype.paddleHit = function (thePaddle) {
this.deltaX = (this.MovieClip._x - thePaddle._x) / 4;
this.flipY();
this.MovieClip._y = Math.min(this.MovieClip._y, thePaddle._y + 10);
};
newBall.prototype.increaseSpeed = function () {
if ((this.deltaY < -30) || (this.deltaY > 30)) {
} else {
this.hitNum++;
if (this.hitNum > 3) {
this.hitNum = 0;
if (this.deltaY > 0) {
this.deltaY++;
} else {
this.deltaY--;
}
}
}
};
Instance of Symbol 214 MovieClip "paddle" in Frame 37
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn && (_root.pausegame == false)) {
Mouse.hide();
this._x = _root._xmouse;
} else {
Mouse.show();
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
if (Key.isDown(80)) {
_root.gameRun = false;
_root.pausegame = true;
}
}
onClipEvent (mouseDown) {
_root.gameRun = true;
_root.pausegame = false;
}
Instance of Symbol 220 MovieClip "guns" in Frame 37
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
_visible = false;
shooter = 0;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn) {
if (_root.pausegame == false) {
this._x = _root._xmouse;
}
if (_root.gunlenght > 0) {
if (shooter > 0) {
if ((_root.pausegame == false) && (_root.gameRun == true)) {
shooter--;
}
}
_visible = true;
_root.gunlenght--;
} else {
_visible = false;
}
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
onClipEvent (mouseDown) {
if ((_root.gunlenght > 0) && (shooter == 0)) {
_root.fireGun();
shooter = 20;
}
}
Instance of Symbol 272 MovieClip "tile1" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile2" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile3" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile4" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile5" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile6" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile7" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile8" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile9" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile10" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile11" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile12" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile13" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile14" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile15" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile16" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile17" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile18" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile19" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile20" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile21" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile22" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile23" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile24" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile25" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile26" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile27" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile28" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile29" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile30" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile31" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile32" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile33" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile34" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile35" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile36" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile37" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile38" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile39" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile40" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile41" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile42" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile43" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile44" in Frame 37
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 226 MovieClip "laser" in Frame 37
onClipEvent (enterFrame) {
_y = (_y - _root.laserSpeed);
if (_y > -15) {
i = 1;
while (i < (_root.gTileNum + 1)) {
if (this.hitTest(_root["tile" + i])) {
_x = (_x - 2000);
_root.score = _root.score + 10;
_root["tile" + i].health--;
if (_root["tile" + i].health == 0) {
if (_root["tile" + i].drop_it == true) {
_root.dropper.duplicateMovieClip("dropper" + _root.dropnum, _root.dropnum);
_root["dropper" + _root.dropnum]._x = _root["tile" + i]._x;
_root["dropper" + _root.dropnum]._y = _root["tile" + i]._y;
_root["dropper" + _root.dropnum].framer = Math.round((Math.random() * 6) + 1);
_root.dropnum++;
if (_root.dropnum > 35) {
_root.dropnum = 30;
}
}
_root["tile" + i]._x = _root["tile" + i]._x + -1000;
}
sfx5 = new Sound();
sfx5.attachSound("sfx5");
sfx5.start();
left = _root.gTileNum;
i = 1;
while (i < (_root.gTileNum + 1)) {
if (_root["tile" + i].health == 0) {
left--;
}
i++;
}
if (left == 0) {
_root.nextLevel();
}
}
i++;
}
}
}
Instance of Symbol 72 MovieClip "dropper" in Frame 37
onClipEvent (load) {
this.gotoAndStop(framer);
}
onClipEvent (enterFrame) {
this.gotoAndStop(framer);
_y = (_y + _root.dropSpeed);
if (this.hitTest(_root.paddle)) {
sfx1 = new Sound();
sfx1.attachSound("sfx1");
sfx1.start();
if (framer == 1) {
_root.ballsLeft++;
} else if (framer == 2) {
if (_root.paddlelenght < 4) {
_root.paddlelenght++;
}
} else if (framer == 3) {
if (_root.paddlelenght > 1) {
_root.paddlelenght--;
}
} else if (framer == 4) {
_root.gunlenght = _root.gunlenght + 400;
} else if (framer == 5) {
_root.upgrading = 20;
} else if (framer == 6) {
_root.upgrading = 40;
_root.score = _root.score + 75;
} else if (framer == 7) {
_root.score = _root.score + 250;
}
_root.score = _root.score + 25;
this.removeMovieClip();
}
if (_y > 425) {
this.removeMovieClip();
}
}
Instance of Symbol 235 MovieClip in Frame 37
onClipEvent (mouseDown) {
_visible = false;
}
Frame 38
moveTheBalls();
Frame 39
gotoAndPlay (38);
Frame 41
stop();
_root.gameOn = false;
_root.levelwin = _root.playlevel * 1000;
_root.finalscore = _root.levelwin + _root.score;
Instance of Symbol 214 MovieClip "paddle" in Frame 41
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn) {
Mouse.hide();
this._x = _root._xmouse;
} else {
Mouse.show();
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
onClipEvent (mouseDown) {
_root.gameRun = true;
}
Frame 42
paddlelenght = 2;
gunlenght = 0;
lasdup = 5;
laserSpeed = 22;
dropSpeed = 6;
dropnum = 30;
upgrading = 0;
_root.gameRun = false;
gotoAndPlay (43);
_root.gameOn = true;
_root.gameRun = false;
Instance of Symbol 214 MovieClip "paddle" in Frame 42
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
this._x = _root._xmouse;
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
Frame 43
function moveTheBalls() {
x = 1;
while (x <= theNumberOfBalls) {
thisBall = theBallsList["ball" + x];
if (((!thisBall) == 0) && (gameRun == true)) {
thisBall.moveBall();
}
x++;
}
}
function newBallList(startBallNum) {
this["ball" + startBallNum] = new newBall("ball" + startBallNum);
}
function addNewBall() {
theNumberOfBalls++;
theCurBallNum++;
theBallsList["ball" + theNumberOfBalls] = new newBall("ball" + theNumberOfBalls);
}
function maketargetList(numOfTiles) {
i = 0;
while (i < numOfTiles) {
gTargetList[i] = String("tile" + (i + 1));
i++;
}
}
function newBall(instName) {
duplicateMovieClip ("ball", instName, theNumberOfBalls);
this.name = instName;
this.MovieClip = _root[instName];
this.MovieClip._x = gBallBaseLoc[0];
this.MovieClip._y = gBallBaseLoc[1];
this.deltaX = getRandom(-10, 10);
this.deltaY = 5;
this.HitNum = 0;
}
function resetGame() {
maketargetList(gTileNum);
resetTiles();
}
function fireGun() {
if (_root.lasdup > 20) {
_root.lasdup = 5;
}
duplicateMovieClip ("laser", "laser" + _root.lasdup, _root.lasdup);
_root["laser" + _root.lasdup]._x = _root.guns.gun1.xvalueinroot;
_root["laser" + _root.lasdup]._y = _root.guns.gun1.yvalueinroot;
_root.lasdup++;
if (_root.lasdup > 20) {
_root.lasdup = 5;
}
duplicateMovieClip ("laser", "laser" + _root.lasdup, _root.lasdup);
_root["laser" + _root.lasdup]._x = _root.guns.gun2.xvalueinroot;
_root["laser" + _root.lasdup]._y = _root.guns.gun2.yvalueinroot;
_root.lasdup++;
laser = new Sound();
laser.attachSound("laser");
laser.start();
}
function resetTiles() {
i = 0;
while (i < gTileNum) {
var _local2 = gTargetList[i];
_root[_local2]._x = _root[_local2].startX;
_root[_local2].health = _root[_local2].starthealth;
i++;
}
}
function nextLevel() {
i = 0;
while (i < 999) {
_root["ball" + i].removeMovieClip();
i++;
}
_root.playlevel++;
_root.paddlelenght = 2;
_root.levelmessage = ("LEVEL " + _root.playlevel) + "";
_root.gameRun = false;
gotoAndPlay (48);
}
function getRandom(x, y) {
return(Math.round(Math.random() * (y - x)) + x);
}
Mouse.hide();
gameOn = 1;
theScore = 0;
gBallBaseLoc = [272.5, 250];
gThePaddle = [_root.paddle];
gGameRect = [2, 25, 548, 420];
gHMax = pGameRect[2] - 5;
gTileNum = 49;
gTargetList = [];
maketargetList(gTileNum);
theNumberOfBalls = 1;
theCurBallNum = 1;
theBallsList = new newBallList(theNumberOfBalls);
_root.resetTiles();
newBall.prototype.moveBall = function () {
if (_root.upgrading > 0) {
this.increaseSpeed();
_root.upgrading--;
}
this.MovieClip._x = this.MovieClip._x + this.deltaX;
this.MovieClip._y = this.MovieClip._y + this.deltaY;
if (this.MovieClip._y < 35) {
this.flipY();
}
var _local5 = gTargetList.length;
i = 0;
while (i < _local5) {
var _local3 = gTargetList[i];
if (this.MovieClip.hitTest(_root[_local3])) {
this.increaseSpeed();
_root.score = _root.score + 10;
_root[_local3].health--;
if (_root[_local3].health == 0) {
if (_root[_local3].drop_it == true) {
duplicateMovieClip ("dropper", "dropper" + _root.dropnum, _root.dropnum);
_root["dropper" + _root.dropnum]._x = _root[_local3]._x;
_root["dropper" + _root.dropnum]._y = _root[_local3]._y;
_root["dropper" + _root.dropnum].framer = Math.round((Math.random() * 6) + 1);
_root.dropnum++;
if (_root.dropnum > 35) {
_root.dropnum = 30;
}
}
_root[_local3]._x = _root[_local3]._x + -1000;
left = gTileNum;
i = 1;
while (i < (gTileNum + 1)) {
if (_root["tile" + i].health == 0) {
left--;
}
i++;
}
if (left == 0) {
_root.nextLevel();
}
}
this.flipY();
break;
}
i++;
}
thisPad = 0;
while (thisPad < 2) {
var _local4 = gThePaddle[thisPad];
if (this.MovieClip.hitTest(_local4) && (this.deltaY > 0)) {
this.paddleHit(_local4);
}
thisPad++;
}
if (this.MovieClip._y > (gGameRect[3] + 20)) {
theBallsList[this.name] = 0;
removeMovieClip(this.MovieClip);
theCurBallNum--;
if (theCurBallNum <= 0) {
ballsLeft--;
if (ballsLeft < 0) {
ballsLeft = 0;
gameOn = 0;
gotoAndStop (47);
} else {
_root.gameRun = false;
addNewBall();
}
}
}
if ((this.MovieClip._x < gGameRect[0]) || (this.MovieClip._x > gGameRect[2])) {
this.flipX();
}
};
newBall.prototype.serveBall = function () {
this.MovieClip._x = gBallBaseLoc[0];
this.MovieClip._y = gBallBaseLoc[1];
this.deltaX = getRandom(-5, 5);
this.deltaY = -10;
};
newBall.prototype.flipY = function () {
this.deltaY = this.deltaY * -1;
sfx2 = new Sound();
sfx2.attachSound("sfx2");
sfx2.start();
};
newBall.prototype.flipX = function () {
this.deltaX = this.deltaX * -1;
sfx2 = new Sound();
sfx2.attachSound("sfx2");
sfx2.start();
};
newBall.prototype.paddleHit = function (thePaddle) {
this.deltaX = (this.MovieClip._x - thePaddle._x) / 4;
this.flipY();
this.MovieClip._y = Math.min(this.MovieClip._y, thePaddle._y + 10);
};
newBall.prototype.increaseSpeed = function () {
if ((this.deltaY < -30) || (this.deltaY > 30)) {
} else {
this.hitNum++;
if (this.hitNum > 3) {
this.hitNum = 0;
if (this.deltaY > 0) {
this.deltaY++;
} else {
this.deltaY--;
}
}
}
};
Instance of Symbol 214 MovieClip "paddle" in Frame 43
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn && (_root.pausegame == false)) {
Mouse.hide();
this._x = _root._xmouse;
} else {
Mouse.show();
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
if (Key.isDown(80)) {
_root.gameRun = false;
_root.pausegame = true;
}
}
onClipEvent (mouseDown) {
_root.gameRun = true;
_root.pausegame = false;
}
Instance of Symbol 220 MovieClip "guns" in Frame 43
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
_visible = false;
shooter = 0;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn) {
if (_root.pausegame == false) {
this._x = _root._xmouse;
}
if (_root.gunlenght > 0) {
if (shooter > 0) {
if ((_root.pausegame == false) && (_root.gameRun == true)) {
shooter--;
}
}
_visible = true;
_root.gunlenght--;
} else {
_visible = false;
}
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
onClipEvent (mouseDown) {
if ((_root.gunlenght > 0) && (shooter == 0)) {
_root.fireGun();
shooter = 20;
}
}
Instance of Symbol 310 MovieClip "tile41" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile42" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile43" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile44" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile45" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile46" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile47" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile48" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile49" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile31" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile32" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile33" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile34" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile35" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile36" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile37" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile38" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile39" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile40" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 312 MovieClip "tile21" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 312 MovieClip "tile22" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 312 MovieClip "tile23" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 312 MovieClip "tile24" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 312 MovieClip "tile25" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 312 MovieClip "tile26" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 312 MovieClip "tile27" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 312 MovieClip "tile28" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 312 MovieClip "tile29" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 312 MovieClip "tile30" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile11" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile12" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile13" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile14" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile15" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile16" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile17" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile18" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile19" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 272 MovieClip "tile20" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile1" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile2" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile3" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile4" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile5" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile6" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile7" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile8" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile9" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile10" in Frame 43
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 226 MovieClip "laser" in Frame 43
onClipEvent (enterFrame) {
_y = (_y - _root.laserSpeed);
if (_y > -15) {
i = 1;
while (i < (_root.gTileNum + 1)) {
if (this.hitTest(_root["tile" + i])) {
_x = (_x - 2000);
_root.score = _root.score + 10;
_root["tile" + i].health--;
if (_root["tile" + i].health == 0) {
if (_root["tile" + i].drop_it == true) {
_root.dropper.duplicateMovieClip("dropper" + _root.dropnum, _root.dropnum);
_root["dropper" + _root.dropnum]._x = _root["tile" + i]._x;
_root["dropper" + _root.dropnum]._y = _root["tile" + i]._y;
_root["dropper" + _root.dropnum].framer = Math.round((Math.random() * 6) + 1);
_root.dropnum++;
if (_root.dropnum > 35) {
_root.dropnum = 30;
}
}
_root["tile" + i]._x = _root["tile" + i]._x + -1000;
}
sfx5 = new Sound();
sfx5.attachSound("sfx5");
sfx5.start();
left = _root.gTileNum;
i = 1;
while (i < (_root.gTileNum + 1)) {
if (_root["tile" + i].health == 0) {
left--;
}
i++;
}
if (left == 0) {
_root.nextLevel();
}
}
i++;
}
}
}
Instance of Symbol 72 MovieClip "dropper" in Frame 43
onClipEvent (load) {
this.gotoAndStop(framer);
}
onClipEvent (enterFrame) {
this.gotoAndStop(framer);
_y = (_y + _root.dropSpeed);
if (this.hitTest(_root.paddle)) {
sfx1 = new Sound();
sfx1.attachSound("sfx1");
sfx1.start();
if (framer == 1) {
_root.ballsLeft++;
} else if (framer == 2) {
if (_root.paddlelenght < 4) {
_root.paddlelenght++;
}
} else if (framer == 3) {
if (_root.paddlelenght > 1) {
_root.paddlelenght--;
}
} else if (framer == 4) {
_root.gunlenght = _root.gunlenght + 400;
} else if (framer == 5) {
_root.upgrading = 20;
} else if (framer == 6) {
_root.upgrading = 40;
_root.score = _root.score + 75;
} else if (framer == 7) {
_root.score = _root.score + 250;
}
_root.score = _root.score + 25;
this.removeMovieClip();
}
if (_y > 425) {
this.removeMovieClip();
}
}
Instance of Symbol 235 MovieClip in Frame 43
onClipEvent (mouseDown) {
_visible = false;
}
Frame 44
moveTheBalls();
Frame 45
gotoAndPlay (44);
Frame 47
stop();
_root.gameOn = false;
_root.levelwin = _root.playlevel * 1000;
_root.finalscore = _root.levelwin + _root.score;
Instance of Symbol 214 MovieClip "paddle" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn) {
Mouse.hide();
this._x = _root._xmouse;
} else {
Mouse.show();
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
onClipEvent (mouseDown) {
_root.gameRun = true;
}
Frame 48
paddlelenght = 2;
gunlenght = 0;
lasdup = 5;
laserSpeed = 22;
dropSpeed = 6;
dropnum = 30;
upgrading = 0;
_root.gameRun = false;
gotoAndPlay (49);
_root.gameOn = true;
_root.gameRun = false;
Instance of Symbol 214 MovieClip "paddle" in Frame 48
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
this._x = _root._xmouse;
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
Frame 49
function moveTheBalls() {
x = 1;
while (x <= theNumberOfBalls) {
thisBall = theBallsList["ball" + x];
if (((!thisBall) == 0) && (gameRun == true)) {
thisBall.moveBall();
}
x++;
}
}
function newBallList(startBallNum) {
this["ball" + startBallNum] = new newBall("ball" + startBallNum);
}
function addNewBall() {
theNumberOfBalls++;
theCurBallNum++;
theBallsList["ball" + theNumberOfBalls] = new newBall("ball" + theNumberOfBalls);
}
function maketargetList(numOfTiles) {
i = 0;
while (i < numOfTiles) {
gTargetList[i] = String("tile" + (i + 1));
i++;
}
}
function newBall(instName) {
duplicateMovieClip ("ball", instName, theNumberOfBalls);
this.name = instName;
this.MovieClip = _root[instName];
this.MovieClip._x = gBallBaseLoc[0];
this.MovieClip._y = gBallBaseLoc[1];
this.deltaX = getRandom(-10, 10);
this.deltaY = 5;
this.HitNum = 0;
}
function resetGame() {
maketargetList(gTileNum);
resetTiles();
}
function fireGun() {
if (_root.lasdup > 20) {
_root.lasdup = 5;
}
duplicateMovieClip ("laser", "laser" + _root.lasdup, _root.lasdup);
_root["laser" + _root.lasdup]._x = _root.guns.gun1.xvalueinroot;
_root["laser" + _root.lasdup]._y = _root.guns.gun1.yvalueinroot;
_root.lasdup++;
if (_root.lasdup > 20) {
_root.lasdup = 5;
}
duplicateMovieClip ("laser", "laser" + _root.lasdup, _root.lasdup);
_root["laser" + _root.lasdup]._x = _root.guns.gun2.xvalueinroot;
_root["laser" + _root.lasdup]._y = _root.guns.gun2.yvalueinroot;
_root.lasdup++;
laser = new Sound();
laser.attachSound("laser");
laser.start();
}
function resetTiles() {
i = 0;
while (i < gTileNum) {
var _local2 = gTargetList[i];
_root[_local2]._x = _root[_local2].startX;
_root[_local2].health = _root[_local2].starthealth;
i++;
}
}
function nextLevel() {
i = 0;
while (i < 999) {
_root["ball" + i].removeMovieClip();
i++;
}
_root.playlevel++;
_root.paddlelenght = 2;
_root.levelmessage = ("LEVEL " + _root.playlevel) + "";
_root.gameRun = false;
gotoAndPlay (54);
}
function getRandom(x, y) {
return(Math.round(Math.random() * (y - x)) + x);
}
Mouse.hide();
gameOn = 1;
theScore = 0;
gBallBaseLoc = [272.5, 250];
gThePaddle = [_root.paddle];
gGameRect = [2, 25, 548, 420];
gHMax = pGameRect[2] - 5;
gTileNum = 48;
gTargetList = [];
maketargetList(gTileNum);
theNumberOfBalls = 1;
theCurBallNum = 1;
theBallsList = new newBallList(theNumberOfBalls);
_root.resetTiles();
newBall.prototype.moveBall = function () {
if (_root.upgrading > 0) {
this.increaseSpeed();
_root.upgrading--;
}
this.MovieClip._x = this.MovieClip._x + this.deltaX;
this.MovieClip._y = this.MovieClip._y + this.deltaY;
if (this.MovieClip._y < 35) {
this.flipY();
}
var _local5 = gTargetList.length;
i = 0;
while (i < _local5) {
var _local3 = gTargetList[i];
if (this.MovieClip.hitTest(_root[_local3])) {
this.increaseSpeed();
_root.score = _root.score + 10;
_root[_local3].health--;
if (_root[_local3].health == 0) {
if (_root[_local3].drop_it == true) {
duplicateMovieClip ("dropper", "dropper" + _root.dropnum, _root.dropnum);
_root["dropper" + _root.dropnum]._x = _root[_local3]._x;
_root["dropper" + _root.dropnum]._y = _root[_local3]._y;
_root["dropper" + _root.dropnum].framer = Math.round((Math.random() * 6) + 1);
_root.dropnum++;
if (_root.dropnum > 35) {
_root.dropnum = 30;
}
}
_root[_local3]._x = _root[_local3]._x + -1000;
left = gTileNum;
i = 1;
while (i < (gTileNum + 1)) {
if (_root["tile" + i].health == 0) {
left--;
}
i++;
}
if (left == 0) {
_root.nextLevel();
}
}
this.flipY();
break;
}
i++;
}
thisPad = 0;
while (thisPad < 2) {
var _local4 = gThePaddle[thisPad];
if (this.MovieClip.hitTest(_local4) && (this.deltaY > 0)) {
this.paddleHit(_local4);
}
thisPad++;
}
if (this.MovieClip._y > (gGameRect[3] + 20)) {
theBallsList[this.name] = 0;
removeMovieClip(this.MovieClip);
theCurBallNum--;
if (theCurBallNum <= 0) {
ballsLeft--;
if (ballsLeft < 0) {
ballsLeft = 0;
gameOn = 0;
gotoAndStop (53);
} else {
_root.gameRun = false;
addNewBall();
}
}
}
if ((this.MovieClip._x < gGameRect[0]) || (this.MovieClip._x > gGameRect[2])) {
this.flipX();
}
};
newBall.prototype.serveBall = function () {
this.MovieClip._x = gBallBaseLoc[0];
this.MovieClip._y = gBallBaseLoc[1];
this.deltaX = getRandom(-5, 5);
this.deltaY = -10;
};
newBall.prototype.flipY = function () {
this.deltaY = this.deltaY * -1;
sfx2 = new Sound();
sfx2.attachSound("sfx2");
sfx2.start();
};
newBall.prototype.flipX = function () {
this.deltaX = this.deltaX * -1;
sfx2 = new Sound();
sfx2.attachSound("sfx2");
sfx2.start();
};
newBall.prototype.paddleHit = function (thePaddle) {
this.deltaX = (this.MovieClip._x - thePaddle._x) / 4;
this.flipY();
this.MovieClip._y = Math.min(this.MovieClip._y, thePaddle._y + 10);
};
newBall.prototype.increaseSpeed = function () {
if ((this.deltaY < -30) || (this.deltaY > 30)) {
} else {
this.hitNum++;
if (this.hitNum > 3) {
this.hitNum = 0;
if (this.deltaY > 0) {
this.deltaY++;
} else {
this.deltaY--;
}
}
}
};
Instance of Symbol 214 MovieClip "paddle" in Frame 49
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn && (_root.pausegame == false)) {
Mouse.hide();
this._x = _root._xmouse;
} else {
Mouse.show();
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
if (Key.isDown(80)) {
_root.gameRun = false;
_root.pausegame = true;
}
}
onClipEvent (mouseDown) {
_root.gameRun = true;
_root.pausegame = false;
}
Instance of Symbol 220 MovieClip "guns" in Frame 49
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
_visible = false;
shooter = 0;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn) {
if (_root.pausegame == false) {
this._x = _root._xmouse;
}
if (_root.gunlenght > 0) {
if (shooter > 0) {
if ((_root.pausegame == false) && (_root.gameRun == true)) {
shooter--;
}
}
_visible = true;
_root.gunlenght--;
} else {
_visible = false;
}
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
onClipEvent (mouseDown) {
if ((_root.gunlenght > 0) && (shooter == 0)) {
_root.fireGun();
shooter = 20;
}
}
Instance of Symbol 312 MovieClip "tile41" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile42" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile43" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile44" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = true;
}
Instance of Symbol 224 MovieClip "tile45" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = true;
}
Instance of Symbol 222 MovieClip "tile46" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 312 MovieClip "tile33" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile34" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile35" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile36" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = true;
}
Instance of Symbol 224 MovieClip "tile37" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = true;
}
Instance of Symbol 222 MovieClip "tile38" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 312 MovieClip "tile25" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile26" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile27" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile28" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = true;
}
Instance of Symbol 224 MovieClip "tile29" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = true;
}
Instance of Symbol 222 MovieClip "tile30" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 312 MovieClip "tile17" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile18" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile19" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile20" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = true;
}
Instance of Symbol 224 MovieClip "tile21" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = true;
}
Instance of Symbol 222 MovieClip "tile22" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile10" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile11" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile12" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = true;
}
Instance of Symbol 224 MovieClip "tile13" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = true;
}
Instance of Symbol 222 MovieClip "tile14" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile47" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 312 MovieClip "tile48" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile39" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 312 MovieClip "tile40" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile31" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 312 MovieClip "tile32" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile23" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 312 MovieClip "tile24" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile15" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 312 MovieClip "tile16" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 312 MovieClip "tile9" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile2" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 222 MovieClip "tile3" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 224 MovieClip "tile4" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = true;
}
Instance of Symbol 224 MovieClip "tile5" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = true;
}
Instance of Symbol 222 MovieClip "tile6" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 257 MovieClip "tile7" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 2 + _root.adding_health;
starthealth = 2 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 312 MovieClip "tile8" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 312 MovieClip "tile1" in Frame 49
onClipEvent (load) {
startX = this._x;
health = 1 + _root.adding_health;
starthealth = 1 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 226 MovieClip "laser" in Frame 49
onClipEvent (enterFrame) {
_y = (_y - _root.laserSpeed);
if (_y > -15) {
i = 1;
while (i < (_root.gTileNum + 1)) {
if (this.hitTest(_root["tile" + i])) {
_x = (_x - 2000);
_root.score = _root.score + 10;
_root["tile" + i].health--;
if (_root["tile" + i].health == 0) {
if (_root["tile" + i].drop_it == true) {
_root.dropper.duplicateMovieClip("dropper" + _root.dropnum, _root.dropnum);
_root["dropper" + _root.dropnum]._x = _root["tile" + i]._x;
_root["dropper" + _root.dropnum]._y = _root["tile" + i]._y;
_root["dropper" + _root.dropnum].framer = Math.round((Math.random() * 6) + 1);
_root.dropnum++;
if (_root.dropnum > 35) {
_root.dropnum = 30;
}
}
_root["tile" + i]._x = _root["tile" + i]._x + -1000;
}
sfx5 = new Sound();
sfx5.attachSound("sfx5");
sfx5.start();
left = _root.gTileNum;
i = 1;
while (i < (_root.gTileNum + 1)) {
if (_root["tile" + i].health == 0) {
left--;
}
i++;
}
if (left == 0) {
_root.nextLevel();
}
}
i++;
}
}
}
Instance of Symbol 72 MovieClip "dropper" in Frame 49
onClipEvent (load) {
this.gotoAndStop(framer);
}
onClipEvent (enterFrame) {
this.gotoAndStop(framer);
_y = (_y + _root.dropSpeed);
if (this.hitTest(_root.paddle)) {
sfx1 = new Sound();
sfx1.attachSound("sfx1");
sfx1.start();
if (framer == 1) {
_root.ballsLeft++;
} else if (framer == 2) {
if (_root.paddlelenght < 4) {
_root.paddlelenght++;
}
} else if (framer == 3) {
if (_root.paddlelenght > 1) {
_root.paddlelenght--;
}
} else if (framer == 4) {
_root.gunlenght = _root.gunlenght + 400;
} else if (framer == 5) {
_root.upgrading = 20;
} else if (framer == 6) {
_root.upgrading = 40;
_root.score = _root.score + 75;
} else if (framer == 7) {
_root.score = _root.score + 250;
}
_root.score = _root.score + 25;
this.removeMovieClip();
}
if (_y > 425) {
this.removeMovieClip();
}
}
Instance of Symbol 235 MovieClip in Frame 49
onClipEvent (mouseDown) {
_visible = false;
}
Frame 50
moveTheBalls();
Frame 51
gotoAndPlay (50);
Frame 53
stop();
_root.gameOn = false;
_root.levelwin = _root.playlevel * 1000;
_root.finalscore = _root.levelwin + _root.score;
Instance of Symbol 214 MovieClip "paddle" in Frame 53
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn) {
Mouse.hide();
this._x = _root._xmouse;
} else {
Mouse.show();
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
onClipEvent (mouseDown) {
_root.gameRun = true;
}
Frame 54
paddlelenght = 2;
gunlenght = 0;
lasdup = 5;
laserSpeed = 22;
dropSpeed = 6;
dropnum = 30;
upgrading = 0;
_root.gameRun = false;
gotoAndPlay (55);
_root.gameOn = true;
_root.gameRun = false;
Instance of Symbol 214 MovieClip "paddle" in Frame 54
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
this._x = _root._xmouse;
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
Frame 55
function moveTheBalls() {
x = 1;
while (x <= theNumberOfBalls) {
thisBall = theBallsList["ball" + x];
if (((!thisBall) == 0) && (gameRun == true)) {
thisBall.moveBall();
}
x++;
}
}
function newBallList(startBallNum) {
this["ball" + startBallNum] = new newBall("ball" + startBallNum);
}
function addNewBall() {
theNumberOfBalls++;
theCurBallNum++;
theBallsList["ball" + theNumberOfBalls] = new newBall("ball" + theNumberOfBalls);
}
function maketargetList(numOfTiles) {
i = 0;
while (i < numOfTiles) {
gTargetList[i] = String("tile" + (i + 1));
i++;
}
}
function newBall(instName) {
duplicateMovieClip ("ball", instName, theNumberOfBalls);
this.name = instName;
this.MovieClip = _root[instName];
this.MovieClip._x = gBallBaseLoc[0];
this.MovieClip._y = gBallBaseLoc[1];
this.deltaX = getRandom(-10, 10);
this.deltaY = 5;
this.HitNum = 0;
}
function resetGame() {
maketargetList(gTileNum);
resetTiles();
}
function fireGun() {
if (_root.lasdup > 20) {
_root.lasdup = 5;
}
duplicateMovieClip ("laser", "laser" + _root.lasdup, _root.lasdup);
_root["laser" + _root.lasdup]._x = _root.guns.gun1.xvalueinroot;
_root["laser" + _root.lasdup]._y = _root.guns.gun1.yvalueinroot;
_root.lasdup++;
if (_root.lasdup > 20) {
_root.lasdup = 5;
}
duplicateMovieClip ("laser", "laser" + _root.lasdup, _root.lasdup);
_root["laser" + _root.lasdup]._x = _root.guns.gun2.xvalueinroot;
_root["laser" + _root.lasdup]._y = _root.guns.gun2.yvalueinroot;
_root.lasdup++;
laser = new Sound();
laser.attachSound("laser");
laser.start();
}
function resetTiles() {
i = 0;
while (i < gTileNum) {
var _local2 = gTargetList[i];
_root[_local2]._x = _root[_local2].startX;
_root[_local2].health = _root[_local2].starthealth;
i++;
}
}
function nextLevel() {
i = 0;
while (i < 999) {
_root["ball" + i].removeMovieClip();
i++;
}
_root.playlevel++;
_root.paddlelenght = 2;
_root.levelmessage = ("LEVEL " + _root.playlevel) + "";
_root.gameRun = false;
gotoAndPlay (60);
}
function getRandom(x, y) {
return(Math.round(Math.random() * (y - x)) + x);
}
Mouse.hide();
gameOn = 1;
theScore = 0;
gBallBaseLoc = [272.5, 250];
gThePaddle = [_root.paddle];
gGameRect = [2, 25, 548, 420];
gHMax = pGameRect[2] - 5;
gTileNum = 28;
gTargetList = [];
maketargetList(gTileNum);
theNumberOfBalls = 1;
theCurBallNum = 1;
theBallsList = new newBallList(theNumberOfBalls);
_root.resetTiles();
newBall.prototype.moveBall = function () {
if (_root.upgrading > 0) {
this.increaseSpeed();
_root.upgrading--;
}
this.MovieClip._x = this.MovieClip._x + this.deltaX;
this.MovieClip._y = this.MovieClip._y + this.deltaY;
if (this.MovieClip._y < 35) {
this.flipY();
}
var _local5 = gTargetList.length;
i = 0;
while (i < _local5) {
var _local3 = gTargetList[i];
if (this.MovieClip.hitTest(_root[_local3])) {
this.increaseSpeed();
_root.score = _root.score + 10;
_root[_local3].health--;
if (_root[_local3].health == 0) {
if (_root[_local3].drop_it == true) {
duplicateMovieClip ("dropper", "dropper" + _root.dropnum, _root.dropnum);
_root["dropper" + _root.dropnum]._x = _root[_local3]._x;
_root["dropper" + _root.dropnum]._y = _root[_local3]._y;
_root["dropper" + _root.dropnum].framer = Math.round((Math.random() * 6) + 1);
_root.dropnum++;
if (_root.dropnum > 35) {
_root.dropnum = 30;
}
}
_root[_local3]._x = _root[_local3]._x + -1000;
left = gTileNum;
i = 1;
while (i < (gTileNum + 1)) {
if (_root["tile" + i].health == 0) {
left--;
}
i++;
}
if (left == 0) {
_root.nextLevel();
}
}
this.flipY();
break;
}
i++;
}
thisPad = 0;
while (thisPad < 2) {
var _local4 = gThePaddle[thisPad];
if (this.MovieClip.hitTest(_local4) && (this.deltaY > 0)) {
this.paddleHit(_local4);
}
thisPad++;
}
if (this.MovieClip._y > (gGameRect[3] + 20)) {
theBallsList[this.name] = 0;
removeMovieClip(this.MovieClip);
theCurBallNum--;
if (theCurBallNum <= 0) {
ballsLeft--;
if (ballsLeft < 0) {
ballsLeft = 0;
gameOn = 0;
gotoAndStop (59);
} else {
_root.gameRun = false;
addNewBall();
}
}
}
if ((this.MovieClip._x < gGameRect[0]) || (this.MovieClip._x > gGameRect[2])) {
this.flipX();
}
};
newBall.prototype.serveBall = function () {
this.MovieClip._x = gBallBaseLoc[0];
this.MovieClip._y = gBallBaseLoc[1];
this.deltaX = getRandom(-5, 5);
this.deltaY = -10;
};
newBall.prototype.flipY = function () {
this.deltaY = this.deltaY * -1;
sfx2 = new Sound();
sfx2.attachSound("sfx2");
sfx2.start();
};
newBall.prototype.flipX = function () {
this.deltaX = this.deltaX * -1;
sfx2 = new Sound();
sfx2.attachSound("sfx2");
sfx2.start();
};
newBall.prototype.paddleHit = function (thePaddle) {
this.deltaX = (this.MovieClip._x - thePaddle._x) / 4;
this.flipY();
this.MovieClip._y = Math.min(this.MovieClip._y, thePaddle._y + 10);
};
newBall.prototype.increaseSpeed = function () {
if ((this.deltaY < -30) || (this.deltaY > 30)) {
} else {
this.hitNum++;
if (this.hitNum > 3) {
this.hitNum = 0;
if (this.deltaY > 0) {
this.deltaY++;
} else {
this.deltaY--;
}
}
}
};
Instance of Symbol 214 MovieClip "paddle" in Frame 55
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn && (_root.pausegame == false)) {
Mouse.hide();
this._x = _root._xmouse;
} else {
Mouse.show();
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
if (Key.isDown(80)) {
_root.gameRun = false;
_root.pausegame = true;
}
}
onClipEvent (mouseDown) {
_root.gameRun = true;
_root.pausegame = false;
}
Instance of Symbol 220 MovieClip "guns" in Frame 55
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
_visible = false;
shooter = 0;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn) {
if (_root.pausegame == false) {
this._x = _root._xmouse;
}
if (_root.gunlenght > 0) {
if (shooter > 0) {
if ((_root.pausegame == false) && (_root.gameRun == true)) {
shooter--;
}
}
_visible = true;
_root.gunlenght--;
} else {
_visible = false;
}
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
onClipEvent (mouseDown) {
if ((_root.gunlenght > 0) && (shooter == 0)) {
_root.fireGun();
shooter = 20;
}
}
Instance of Symbol 310 MovieClip "tile25" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile26" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile27" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile21" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile22" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile23" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile17" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile18" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile19" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile13" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile14" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile15" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile9" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile10" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile11" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile28" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile24" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile20" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile16" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile12" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile5" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile6" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile7" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile8" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile1" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile2" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile3" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 310 MovieClip "tile4" in Frame 55
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 226 MovieClip "laser" in Frame 55
onClipEvent (enterFrame) {
_y = (_y - _root.laserSpeed);
if (_y > -15) {
i = 1;
while (i < (_root.gTileNum + 1)) {
if (this.hitTest(_root["tile" + i])) {
_x = (_x - 2000);
_root.score = _root.score + 10;
_root["tile" + i].health--;
if (_root["tile" + i].health == 0) {
if (_root["tile" + i].drop_it == true) {
_root.dropper.duplicateMovieClip("dropper" + _root.dropnum, _root.dropnum);
_root["dropper" + _root.dropnum]._x = _root["tile" + i]._x;
_root["dropper" + _root.dropnum]._y = _root["tile" + i]._y;
_root["dropper" + _root.dropnum].framer = Math.round((Math.random() * 6) + 1);
_root.dropnum++;
if (_root.dropnum > 35) {
_root.dropnum = 30;
}
}
_root["tile" + i]._x = _root["tile" + i]._x + -1000;
}
sfx5 = new Sound();
sfx5.attachSound("sfx5");
sfx5.start();
left = _root.gTileNum;
i = 1;
while (i < (_root.gTileNum + 1)) {
if (_root["tile" + i].health == 0) {
left--;
}
i++;
}
if (left == 0) {
_root.nextLevel();
}
}
i++;
}
}
}
Instance of Symbol 72 MovieClip "dropper" in Frame 55
onClipEvent (load) {
this.gotoAndStop(framer);
}
onClipEvent (enterFrame) {
this.gotoAndStop(framer);
_y = (_y + _root.dropSpeed);
if (this.hitTest(_root.paddle)) {
sfx1 = new Sound();
sfx1.attachSound("sfx1");
sfx1.start();
if (framer == 1) {
_root.ballsLeft++;
} else if (framer == 2) {
if (_root.paddlelenght < 4) {
_root.paddlelenght++;
}
} else if (framer == 3) {
if (_root.paddlelenght > 1) {
_root.paddlelenght--;
}
} else if (framer == 4) {
_root.gunlenght = _root.gunlenght + 400;
} else if (framer == 5) {
_root.upgrading = 20;
} else if (framer == 6) {
_root.upgrading = 40;
_root.score = _root.score + 75;
} else if (framer == 7) {
_root.score = _root.score + 250;
}
_root.score = _root.score + 25;
this.removeMovieClip();
}
if (_y > 425) {
this.removeMovieClip();
}
}
Instance of Symbol 235 MovieClip in Frame 55
onClipEvent (mouseDown) {
_visible = false;
}
Frame 56
moveTheBalls();
Frame 57
gotoAndPlay (56);
Frame 59
stop();
_root.gameOn = false;
_root.levelwin = _root.playlevel * 1000;
_root.finalscore = _root.levelwin + _root.score;
Instance of Symbol 214 MovieClip "paddle" in Frame 59
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn) {
Mouse.hide();
this._x = _root._xmouse;
} else {
Mouse.show();
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
onClipEvent (mouseDown) {
_root.gameRun = true;
}
Frame 60
paddlelenght = 2;
gunlenght = 0;
lasdup = 5;
laserSpeed = 22;
dropSpeed = 6;
dropnum = 30;
upgrading = 0;
_root.gameRun = false;
gotoAndPlay (61);
_root.gameOn = true;
_root.gameRun = false;
Instance of Symbol 214 MovieClip "paddle" in Frame 60
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
this._x = _root._xmouse;
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
Frame 61
function moveTheBalls() {
x = 1;
while (x <= theNumberOfBalls) {
thisBall = theBallsList["ball" + x];
if (((!thisBall) == 0) && (gameRun == true)) {
thisBall.moveBall();
}
x++;
}
}
function newBallList(startBallNum) {
this["ball" + startBallNum] = new newBall("ball" + startBallNum);
}
function addNewBall() {
theNumberOfBalls++;
theCurBallNum++;
theBallsList["ball" + theNumberOfBalls] = new newBall("ball" + theNumberOfBalls);
}
function maketargetList(numOfTiles) {
i = 0;
while (i < numOfTiles) {
gTargetList[i] = String("tile" + (i + 1));
i++;
}
}
function newBall(instName) {
duplicateMovieClip ("ball", instName, theNumberOfBalls);
this.name = instName;
this.MovieClip = _root[instName];
this.MovieClip._x = gBallBaseLoc[0];
this.MovieClip._y = gBallBaseLoc[1];
this.deltaX = getRandom(-10, 10);
this.deltaY = 5;
this.HitNum = 0;
}
function resetGame() {
maketargetList(gTileNum);
resetTiles();
}
function fireGun() {
if (_root.lasdup > 20) {
_root.lasdup = 5;
}
duplicateMovieClip ("laser", "laser" + _root.lasdup, _root.lasdup);
_root["laser" + _root.lasdup]._x = _root.guns.gun1.xvalueinroot;
_root["laser" + _root.lasdup]._y = _root.guns.gun1.yvalueinroot;
_root.lasdup++;
if (_root.lasdup > 20) {
_root.lasdup = 5;
}
duplicateMovieClip ("laser", "laser" + _root.lasdup, _root.lasdup);
_root["laser" + _root.lasdup]._x = _root.guns.gun2.xvalueinroot;
_root["laser" + _root.lasdup]._y = _root.guns.gun2.yvalueinroot;
_root.lasdup++;
laser = new Sound();
laser.attachSound("laser");
laser.start();
}
function resetTiles() {
i = 0;
while (i < gTileNum) {
var _local2 = gTargetList[i];
_root[_local2]._x = _root[_local2].startX;
_root[_local2].health = _root[_local2].starthealth;
i++;
}
}
function nextLevel() {
i = 0;
while (i < 999) {
_root["ball" + i].removeMovieClip();
i++;
}
_root.paddlelenght = 2;
_root.adding_health++;
_root.gameRun = false;
gotoAndPlay (6);
}
function getRandom(x, y) {
return(Math.round(Math.random() * (y - x)) + x);
}
Mouse.hide();
gameOn = 1;
theScore = 0;
gBallBaseLoc = [272.5, 250];
gThePaddle = [_root.paddle];
gGameRect = [2, 25, 548, 420];
gHMax = pGameRect[2] - 5;
gTileNum = 90;
gTargetList = [];
maketargetList(gTileNum);
theNumberOfBalls = 1;
theCurBallNum = 1;
theBallsList = new newBallList(theNumberOfBalls);
_root.resetTiles();
newBall.prototype.moveBall = function () {
if (_root.upgrading > 0) {
this.increaseSpeed();
_root.upgrading--;
}
this.MovieClip._x = this.MovieClip._x + this.deltaX;
this.MovieClip._y = this.MovieClip._y + this.deltaY;
if (this.MovieClip._y < 35) {
this.flipY();
}
var _local5 = gTargetList.length;
i = 0;
while (i < _local5) {
var _local3 = gTargetList[i];
if (this.MovieClip.hitTest(_root[_local3])) {
this.increaseSpeed();
_root.score = _root.score + 10;
_root[_local3].health--;
if (_root[_local3].health == 0) {
if (_root[_local3].drop_it == true) {
duplicateMovieClip ("dropper", "dropper" + _root.dropnum, _root.dropnum);
_root["dropper" + _root.dropnum]._x = _root[_local3]._x;
_root["dropper" + _root.dropnum]._y = _root[_local3]._y;
_root["dropper" + _root.dropnum].framer = Math.round((Math.random() * 6) + 1);
_root.dropnum++;
if (_root.dropnum > 35) {
_root.dropnum = 30;
}
}
_root[_local3]._x = _root[_local3]._x + -1000;
left = gTileNum;
i = 1;
while (i < (gTileNum + 1)) {
if (_root["tile" + i].health == 0) {
left--;
}
i++;
}
if (left == 0) {
_root.nextLevel();
}
}
this.flipY();
break;
}
i++;
}
thisPad = 0;
while (thisPad < 2) {
var _local4 = gThePaddle[thisPad];
if (this.MovieClip.hitTest(_local4) && (this.deltaY > 0)) {
this.paddleHit(_local4);
}
thisPad++;
}
if (this.MovieClip._y > (gGameRect[3] + 20)) {
theBallsList[this.name] = 0;
removeMovieClip(this.MovieClip);
theCurBallNum--;
if (theCurBallNum <= 0) {
ballsLeft--;
if (ballsLeft < 0) {
ballsLeft = 0;
gameOn = 0;
gotoAndStop (65);
} else {
_root.gameRun = false;
addNewBall();
}
}
}
if ((this.MovieClip._x < gGameRect[0]) || (this.MovieClip._x > gGameRect[2])) {
this.flipX();
}
};
newBall.prototype.serveBall = function () {
this.MovieClip._x = gBallBaseLoc[0];
this.MovieClip._y = gBallBaseLoc[1];
this.deltaX = getRandom(-5, 5);
this.deltaY = -10;
};
newBall.prototype.flipY = function () {
this.deltaY = this.deltaY * -1;
sfx2 = new Sound();
sfx2.attachSound("sfx2");
sfx2.start();
};
newBall.prototype.flipX = function () {
this.deltaX = this.deltaX * -1;
sfx2 = new Sound();
sfx2.attachSound("sfx2");
sfx2.start();
};
newBall.prototype.paddleHit = function (thePaddle) {
this.deltaX = (this.MovieClip._x - thePaddle._x) / 4;
this.flipY();
this.MovieClip._y = Math.min(this.MovieClip._y, thePaddle._y + 10);
};
newBall.prototype.increaseSpeed = function () {
if ((this.deltaY < -30) || (this.deltaY > 30)) {
} else {
this.hitNum++;
if (this.hitNum > 3) {
this.hitNum = 0;
if (this.deltaY > 0) {
this.deltaY++;
} else {
this.deltaY--;
}
}
}
};
Instance of Symbol 214 MovieClip "paddle" in Frame 61
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn && (_root.pausegame == false)) {
Mouse.hide();
this._x = _root._xmouse;
} else {
Mouse.show();
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
if (Key.isDown(80)) {
_root.gameRun = false;
_root.pausegame = true;
}
}
onClipEvent (mouseDown) {
_root.gameRun = true;
_root.pausegame = false;
}
Instance of Symbol 220 MovieClip "guns" in Frame 61
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
_visible = false;
shooter = 0;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn) {
if (_root.pausegame == false) {
this._x = _root._xmouse;
}
if (_root.gunlenght > 0) {
if (shooter > 0) {
if ((_root.pausegame == false) && (_root.gameRun == true)) {
shooter--;
}
}
_visible = true;
_root.gunlenght--;
} else {
_visible = false;
}
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
onClipEvent (mouseDown) {
if ((_root.gunlenght > 0) && (shooter == 0)) {
_root.fireGun();
shooter = 20;
}
}
Instance of Symbol 63 MovieClip "tile81" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile82" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile83" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile84" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile85" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile86" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile87" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile88" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile89" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile90" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile71" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile72" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile73" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile74" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile75" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile76" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile77" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile78" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile79" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile80" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile61" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile62" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile63" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile64" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile65" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile66" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile67" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile68" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile69" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile70" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile51" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile52" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile53" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile54" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile55" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile56" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile57" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile58" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile59" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile60" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile41" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile42" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile43" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile44" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile45" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile46" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile47" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile48" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile49" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile50" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile31" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile32" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile33" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile34" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile35" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile36" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile37" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile38" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile39" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile40" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile21" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile22" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile23" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile24" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile25" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile26" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile27" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile28" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile29" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile30" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile11" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile12" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile13" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile14" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile15" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile16" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile17" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile18" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile19" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile20" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile1" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile2" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile3" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile4" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile5" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile6" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile7" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile8" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 63 MovieClip "tile9" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 3 + _root.adding_health;
starthealth = 3 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 341 MovieClip "tile10" in Frame 61
onClipEvent (load) {
startX = this._x;
health = 4 + _root.adding_health;
starthealth = 4 + _root.adding_health;
drop_it = false;
}
Instance of Symbol 226 MovieClip "laser" in Frame 61
onClipEvent (enterFrame) {
_y = (_y - _root.laserSpeed);
if (_y > -15) {
i = 1;
while (i < (_root.gTileNum + 1)) {
if (this.hitTest(_root["tile" + i])) {
_x = (_x - 2000);
_root.score = _root.score + 10;
_root["tile" + i].health--;
if (_root["tile" + i].health == 0) {
if (_root["tile" + i].drop_it == true) {
_root.dropper.duplicateMovieClip("dropper" + _root.dropnum, _root.dropnum);
_root["dropper" + _root.dropnum]._x = _root["tile" + i]._x;
_root["dropper" + _root.dropnum]._y = _root["tile" + i]._y;
_root["dropper" + _root.dropnum].framer = Math.round((Math.random() * 6) + 1);
_root.dropnum++;
if (_root.dropnum > 35) {
_root.dropnum = 30;
}
}
_root["tile" + i]._x = _root["tile" + i]._x + -1000;
}
sfx5 = new Sound();
sfx5.attachSound("sfx5");
sfx5.start();
left = _root.gTileNum;
i = 1;
while (i < (_root.gTileNum + 1)) {
if (_root["tile" + i].health == 0) {
left--;
}
i++;
}
if (left == 0) {
_root.nextLevel();
}
}
i++;
}
}
}
Instance of Symbol 72 MovieClip "dropper" in Frame 61
onClipEvent (load) {
this.gotoAndStop(framer);
}
onClipEvent (enterFrame) {
this.gotoAndStop(framer);
_y = (_y + _root.dropSpeed);
if (this.hitTest(_root.paddle)) {
sfx1 = new Sound();
sfx1.attachSound("sfx1");
sfx1.start();
if (framer == 1) {
_root.ballsLeft++;
} else if (framer == 2) {
if (_root.paddlelenght < 4) {
_root.paddlelenght++;
}
} else if (framer == 3) {
if (_root.paddlelenght > 1) {
_root.paddlelenght--;
}
} else if (framer == 4) {
_root.gunlenght = _root.gunlenght + 400;
} else if (framer == 5) {
_root.upgrading = 20;
} else if (framer == 6) {
_root.upgrading = 40;
_root.score = _root.score + 75;
} else if (framer == 7) {
_root.score = _root.score + 250;
}
_root.score = _root.score + 25;
this.removeMovieClip();
}
if (_y > 425) {
this.removeMovieClip();
}
}
Instance of Symbol 235 MovieClip in Frame 61
onClipEvent (mouseDown) {
_visible = false;
}
Frame 62
moveTheBalls();
Frame 63
gotoAndPlay (62);
Frame 65
stop();
_root.gameOn = false;
_root.levelwin = _root.playlevel * 1000;
_root.finalscore = _root.levelwin + _root.score;
Instance of Symbol 214 MovieClip "paddle" in Frame 65
onClipEvent (load) {
this.gotoAndStop(_root.paddlelenght);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.paddlelenght);
if (_root.gameOn) {
Mouse.hide();
this._x = _root._xmouse;
} else {
Mouse.show();
}
if (this._x < 45) {
this._x = 45;
} else if (this._x > 505) {
this._x = 505;
}
}
onClipEvent (mouseDown) {
_root.gameRun = true;
}
Symbol 31 MovieClip Frame 1
onPress = function () {
getURL ("http://www.arcadebliss.com/", "_blank");
};
_root.stop();
Symbol 31 MovieClip Frame 150
onPress = function () {
getURL ("http://www.arcadebliss.com/", "_blank");
};
stopAllSounds();
Symbol 31 MovieClip Frame 191
stop();
this._y = -1000;
menu_sound = new Sound();
menu_sound.attachSound("menu_sound");
menu_sound.start(0, 50000);
_root.play();
Symbol 44 Button
on (release) {
_root.playlevel = 0;
_root.pausegame = false;
_root.adding_health = 0;
_root.score = 0;
_root.ballsLeft = 3;
stopAllSounds();
game_sound = new Sound();
game_sound.attachSound("game_sound");
game_sound.start(0, 50000);
gotoAndPlay (6);
}
Symbol 47 Button
on (release) {
nextFrame();
}
Symbol 49 Button
on (release) {
_root.submitting = false;
gotoAndStop(_root._currentframe + 2);
}
Symbol 51 Button
on (release) {
getURL ("http://www.arcadebliss.com/", "_blank");
}
Symbol 58 Button
on (release) {
prevFrame();
}
Symbol 72 MovieClip Frame 1
stop();
Symbol 80 Button
on (release) {
gotoAndStop(_root._currentframe - 2);
}
Instance of Symbol 219 MovieClip "gun1" in Symbol 220 MovieClip Frame 1
onClipEvent (enterFrame) {
xvalueinroot = _x + _parent._x;
yvalueinroot = _y + _parent._y;
}
Instance of Symbol 219 MovieClip "gun2" in Symbol 220 MovieClip Frame 1
onClipEvent (enterFrame) {
xvalueinroot = _x + _parent._x;
yvalueinroot = _y + _parent._y;
}
Symbol 248 Button
on (release) {
stopAllSounds();
menu_sound = new Sound();
menu_sound.attachSound("menu_sound");
menu_sound.start(0, 50000);
gotoAndStop (3);
}
Symbol 250 Button
on (release) {
_root.submitting = true;
stopAllSounds();
menu_sound = new Sound();
menu_sound.attachSound("menu_sound");
menu_sound.start(0, 50000);
gotoAndStop (5);
}
Symbol 264 Button
on (release) {
stopAllSounds();
menu_sound = new Sound();
menu_sound.attachSound("menu_sound");
menu_sound.start(0, 50000);
gotoAndStop (3);
}
Symbol 265 Button
on (release) {
_root.submitting = true;
stopAllSounds();
menu_sound = new Sound();
menu_sound.attachSound("menu_sound");
menu_sound.start(0, 50000);
gotoAndStop (5);
}