Frame 1
function someFunction() {
getURL ("http://jacobgrahn.com/", "_blank");
}
System.security.allowDomain("www.jacobgrahn.com");
myURL = _url;
if ((myURL.indexOf("newgrounds.com") != -1) || (myURL.indexOf("uploads.ungrounded") != -1)) {
badScreen._visible = false;
} else {
stop();
}
newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
menuButton = new ContextMenuItem("JacobGrahn.com", someFunction);
newMenu.customItems.push(menuButton);
_root.menu = newMenu;
compInfo = getVersion();
spaceChar = compInfo.indexOf(" ");
versionNum = compInfo.charAt(spaceChar + 1);
if (((versionNum == "8") || (versionNum == "9")) || (versionNum == "1")) {
noFlash._visible = false;
} else {
noFlash.flashText.text = ("You have flash " + versionNum) + ".";
stop();
}
Frame 2
function drawStars() {
var i = 0;
while (i < 100) {
var _mc = stars_mc.attachMovie("star", i, i);
_root.newStar(_mc);
with (_mc) {
_x = Math.random() * _root.sw;
_y = Math.random() * _root.sh;
stars_mc[i].onEnterFrame = function () {
_x = _x - (_root.xm * _xscale);
_y = _y - (_root.ym * _yscale);
if (_x < 0) {
_x = _x + _root.sw;
_root.newStar(this);
} else if (_x > _root.sw) {
_x = _x - _root.sw;
_root.newStar(this);
} else if (_y < 0) {
_y = _y + _root.sh;
_root.newStar(this);
} else if (_y > _root.sh) {
_y = _y - _root.sh;
_root.newStar(this);
}
};
stars_mc[i].onRollOver = function () {
play();
};
}
i++;
}
}
stop();
initialized = false;
playerName = "name";
gotoHigh = false;
this.onEnterFrame = function () {
decimal = _root.getBytesLoaded() / _root.getBytesTotal();
percent = Math.round(decimal * 100);
_root.loadProgressBox.text = percent + "% loaded";
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.gotoAndPlay("loaded");
delete this.onEnterFrame;
}
};
starTotal = 100;
wonMinigame = false;
minigameTimer = 1000;
var xm = 0;
var ym = 0;
newStar = function (path) {
path._xscale = (path._yscale = (path.getDepth() * 0.75) + 25);
};
sw = 310;
sh = 210;
drawStars();
this.onMouseMove = function () {
xm = ((_xmouse - 120) - (sw / 2)) / 1000;
ym = ((_ymouse - 95) - (sh / 2)) / 1000;
};
minigameTimeKeeper = function () {
_root.minigameTimer--;
_root.minigameTimeText.text = "score: " + _root.minigameTimer;
};
clearInterval(minigameInterval);
minigameInterval = setInterval(minigameTimeKeeper, 1000);
endMinigame = function () {
clearInterval(_root.minigameInterval);
_root.wonMinigame = true;
_root.minigameCover.gotoAndStop("loading");
_root.stars_mc._x = -9999;
};
Frame 4
stop();
if (wonMinigame == true) {
minigameCover.gotoAndStop("on");
}
Frame 5
gotoAndStop ("preloader");
Frame 6
function startRandMusic(val1, val2) {
song.stop();
songNum = val1;
musicVolume = soundVolume * musicMod;
songPan = 0;
song.setVolume(musicVolume);
song2.stop();
songNum2 = val2;
musicVolume2 = (soundVolume / 2) * musicMod;
songPan2 = 0;
song2.setVolume(musicVolume2);
maxMusicVolume = soundVolume * musicMod;
minMusicVolume = (soundVolume / 2) * musicMod;
delete song.onSoundComplete;
song.onSoundComplete = function () {
_root.nextMusicSeg();
};
clearInterval(volumeInterval);
volumeInterval = setInterval(changeMusicVolume, 200);
nextMusicSeg();
}
function changeMusicVolume() {
_root.musicVolume = _root.musicVolume + ((Math.random() * 10) - 5);
if (_root.musicVolume > _root.maxMusicVolume) {
_root.musicVolume = _root.maxMusicVolume;
} else if (_root.musicVolume < _root.minMusicVolume) {
_root.musicVolume = _root.minMusicVolume;
}
_root.song.setVolume(_root.musicVolume);
_root.musicVolume2 = _root.musicVolume2 + ((Math.random() * 10) - 5);
if (_root.musicVolume2 > _root.maxMusicVolume) {
_root.musicVolume2 = _root.maxMusicVolume;
} else if (_root.musicVolume2 < _root.minMusicVolume) {
_root.musicVolume2 = _root.minMusicVolume;
}
_root.song2.setVolume(_root.musicVolume2);
_root.songPan = _root.songPan + ((Math.random() * 20) - 10);
if (_root.songPan > 50) {
_root.songPan = 50;
} else if (_root.songPan < -50) {
_root.songPan = -50;
}
_root.song.setPan(_root.songPan);
_root.songPan2 = _root.songPan2 + ((Math.random() * 20) - 10);
if (_root.songPan2 > 50) {
_root.songPan2 = 50;
} else if (_root.songPan2 < -50) {
_root.songPan2 = -50;
}
_root.song2.setPan(_root.songPan2);
}
function nextMusicSeg() {
_root.song.attachSound("song" + _root.songNum);
_root.song.start(0, 1);
_root.song2.attachSound("song" + _root.songNum2);
_root.song2.start(0, 1);
randNum = Math.random();
if (randNum > 0.6) {
_root.songNum++;
}
if (randNum < 0.4) {
_root.songNum--;
}
if (_root.songNum < 1) {
_root.songNum = _root.songNum + 2;
} else if (_root.songNum > 8) {
_root.songNum = _root.songNum - 2;
}
randNum = Math.random();
if (randNum > 0.6) {
_root.songNum2++;
}
if (randNum < 0.4) {
_root.songNum2--;
}
if (_root.songNum2 < 1) {
_root.songNum2 = _root.songNum2 + 2;
} else if (_root.songNum2 > 8) {
_root.songNum2 = _root.songNum2 - 2;
}
while (_root.songNum2 == _root.songNum) {
_root.songNum2 = Math.ceil(Math.random() * 8);
}
}
function startSound(targetSound, sVolume, variations) {
if (variations != 1) {
var _local2 = Math.ceil(Math.random() * variations);
_root.soundFX.attachSound(targetSound + _local2);
} else {
_root.soundFX.attachSound(targetSound);
}
_root.soundFX.setVolume(sVolume);
_root.soundFX.start(0, 1);
}
function changePaddleSize(ammount) {
_root.paddleSize = _root.paddleSize + ammount;
if (paddleSize < 1) {
paddleSize = 1;
} else if (paddleSize > 6) {
paddleSize = 6;
}
_root.paddles.paddle1.gotoAndStop(paddleSize);
_root.paddles.paddle2.gotoAndStop(paddleSize);
}
function createNewBall(xStartPos, yStartPos) {
var _local2 = _root.balls.attachMovie("ball_mc", "ball" + _root.balls.getNextHighestDepth(), _root.balls.getNextHighestDepth());
_root.ballArray[_root.ballArray.length] = _local2;
_local2._rotation = Math.random() * 360;
_local2._x = xStartPos;
_local2._y = yStartPos;
_local2.vel = _root.minBallSpeed;
_local2.spin = 0;
_local2.uberBall = false;
_local2.weakBall = false;
_local2.shine._rotation = -_local2._rotation;
var _local3 = _local2._rotation * DEG_RAD;
_local2.xVel = Math.cos(_local3) * _local2.vel;
_local2.yVel = Math.sin(_local3) * _local2.vel;
}
function changeBallDirection(targetBall, angle) {
targetBall.play();
if (_root.detail) {
var _local3 = 10;
while (_local3 >= 0) {
p = _root.effects.attachMovie("ballHitDash_mc", "dash" + _root.effects.getNextHighestDepth(), _root.effects.getNextHighestDepth());
p._rotation = Math.random() * 360;
p._x = targetBall._x;
p._y = targetBall._y;
_local3--;
}
p = _root.effects.attachMovie("ballPulseOut_mc", "pulse" + _root.effects.getNextHighestDepth(), _root.effects.getNextHighestDepth());
p._x = targetBall._x;
p._y = targetBall._y;
}
targetBall._rotation = angle;
targetBall.shine._rotation = -angle;
var _local4 = targetBall.vel + _root.speedIncrease;
if (_local4 > _root.maxBallSpeed) {
_local4 = _root.maxBallSpeed;
}
targetBall.vel = _local4;
var _local5 = targetBall._rotation * DEG_RAD;
targetBall.xVel = Math.cos(_local5) * targetBall.vel;
targetBall.yVel = Math.sin(_local5) * targetBall.vel;
if (targetBall.weakBall) {
startSound("pansySound", soundVolume * 1.5, 1);
} else {
startSound("ballHitSound", soundVolume, 1);
}
}
function findHitBlock(hitBall) {
var _local9 = hitBall._x;
var _local8 = hitBall._y;
var _local6 = _root.blockArray.length - 1;
while (_local6 >= 0) {
gBlock = _root.blockArray[_local6];
var _local4 = Math.abs(_local9 - gBlock._x);
if (_local4 < 20) {
var _local3 = Math.abs(_local8 - gBlock._y);
if (_local3 < 20) {
var _local7 = Math.sqrt((_local3 * _local3) + (_local4 * _local4));
if (_local7 <= 20) {
if (!hitBall.weakBall) {
gBlock.play();
}
if (!hitBall.uberBall) {
if (gBlock.angleOveride && (!hitBall.weakBall)) {
_root.changeBallDirection(hitBall, gBlock._rotation);
} else {
_local4 = gBlock._x - hitBall._x;
_local3 = gBlock._y - hitBall._y;
var _local5 = Math.atan2(_local3, _local4);
_local5 = _local5 * _root.RAD_DEG;
_local5 = _local5 - 180;
_root.changeBallDirection(hitBall, _local5);
}
if (gBlock.addSpin) {
hitBall.spin = gBlock.rotSpeed * 3;
}
}
break;
}
}
}
_local6--;
}
}
function createNewBlock(blockName) {
var _local2 = _root.powerUps.attachMovie("summonBlock_mc", "block" + _root.powerUps.getNextHighestDepth(), _root.powerUps.getNextHighestDepth());
var _local3 = (Math.random() * _root.maxBlockDist) + 40;
var _local4 = (Math.random() * 360) * _root.DEG_RAD;
_local2._x = (Math.cos(_local4) * _local3) + _root.xCenter;
_local2._y = (Math.sin(_local4) * _local3) + _root.yCenter;
_local2.blockName = blockName;
}
function removeBlock(removeBlockName) {
if (_root.detail) {
var _local2 = _root.explosions.attachMovie("explosion_mc", "explosion" + _root.explosions.getNextHighestDepth(), _root.explosions.getNextHighestDepth());
_local2._x = removeBlockName._x;
_local2._y = removeBlockName._y;
_local2._xscale = (_local2._yscale = 110);
_local2._rotation = Math.random() * 360;
}
if (Math.random() > 0.7) {
_root.createPowerUp(removeBlockName._x, removeBlockName._y);
}
_root.removeArrayNum(_root.blockArray, removeBlockName);
removeMovieClip(removeBlockName);
_root.startSound("explosion", _root.soundVolume * 0.6, 3);
_root.changeScore(100);
}
function removeArrayNum(targetArray, startVal) {
var _local1 = 0;
while (_local1 <= (targetArray.length - 1)) {
if (targetArray[_local1] == startVal) {
break;
}
_local1++;
}
while (_local1 < (targetArray.length - 1)) {
targetArray[_local1] = targetArray[_local1 + 1];
_local1++;
}
targetArray.pop();
}
function calcPaddleAngle(targetBallName) {
var _local4 = targetBallName._x - _root.xCenter;
var _local3 = targetBallName._y - _root.yCenter;
var _local2 = Math.atan2(_local3, _local4);
_local2 = _local2 * _root.RAD_DEG;
_local2 = _local2 - 180;
if (uberBall) {
_local2 = _local2 + ((Math.random() * 50) - 25);
} else {
_local2 = _local2 + ((Math.random() * 20) - 10);
}
return(_local2);
}
function changeScore(ammount) {
_root.score = _root.score + ammount;
_root.scoreText.text = _root.score;
}
function createPowerUp(xPos, yPos) {
if (_root.powerUpArray.length < 15) {
var _local6 = Math.ceil(Math.random() * _root.powerUpNum);
var _local2 = _root.powerUps.attachMovie("powerUp" + _local6, "powerUp" + _root.powerUps.getNextHighestDepth(), _root.powerUps.getNextHighestDepth());
_local2._x = xPos;
_local2._y = yPos;
_local2._rotation = Math.random() * 360;
_local2.stop();
_root.powerUpArray.push(_local2);
var _local3 = (Math.random() * 3) + 0.5;
var _local5 = Math.random() * 360;
var _local4 = _local5 * _root.DEG_RAD;
_local2.xVel = Math.cos(_local4) * _local3;
_local2.yVel = Math.sin(_local4) * _local3;
}
}
function pauseGame() {
isPaused = !isPaused;
if (isPaused) {
_root.pauseScreen.gotoAndStop("on");
var _local2 = _root.ballArray.length - 1;
while (_local2 >= 0) {
ballArray[_local2].effects.uberness.stop();
ballArray[_local2].effects.electricBall.stop();
ballArray[_local2].effects.weakBall.stop();
_local2--;
}
_root.paddles.uberHolder.paddle.stop();
} else {
_root.pauseScreen.gotoAndStop("off");
var _local2 = _root.ballArray.length - 1;
while (_local2 >= 0) {
ballArray[_local2].effects.uberness.play();
ballArray[_local2].effects.electricBall.play();
ballArray[_local2].effects.weakBall.play();
_local2--;
}
_root.paddles.uberHolder.paddle.play();
}
}
function endGame() {
delete keyListener.onKeyUp;
delete _root.onEnterFrame;
}
function createLightning(x1, y1, x2, y2) {
var _local9 = x1 - x2;
var _local8 = y1 - y2;
var _local11 = _root.explosions.createEmptyMovieClip("bolt" + _root.explosions.getNextHighestDepth(), _root.explosions.getNextHighestDepth());
_local11.lineStyle(4, 7763457);
_local11.moveTo(x1, y1);
var _local10 = _root.explosions.createEmptyMovieClip("bolt" + _root.explosions.getNextHighestDepth(), _root.explosions.getNextHighestDepth());
_local10.lineStyle(2, 16711041);
_local10.moveTo(x1, y1);
var _local3 = x1;
var _local4 = y1;
var _local7 = 0;
do {
if (!((_local3 != x2) || (_local4 != y2))) {
break;
}
_local3 = _local3 - ((Math.random() * _local9) / 5);
_local4 = _local4 - ((Math.random() * _local8) / 5);
if (_local9 > 0) {
if (_local3 < x2) {
_local3 = x2;
}
} else if (_local3 > x2) {
_local3 = x2;
}
if (_local8 > 0) {
if (_local4 < y2) {
_local4 = y2;
}
} else if (_local4 > y2) {
_local4 = y2;
}
_local11.lineTo(_local3, _local4);
_local10.lineTo(_local3, _local4);
_local7++;
} while (_local7 <= 100);
_local11.onEnterFrame = function () {
this._alpha = this._alpha - 34;
if (this._alpha <= 0) {
removeMovieClip(this);
}
};
_local10.onEnterFrame = function () {
removeMovieClip(this);
};
_root.startSound("electric", _root.soundVolume * 0.5, 3);
}
function createSecretBlock() {
var _local2 = _root.powerUps.attachMovie("summonSecret_mc", "block" + _root.powerUps.getNextHighestDepth(), _root.powerUps.getNextHighestDepth());
var _local3 = (Math.random() * _root.maxBlockDist) + 40;
var _local4 = (Math.random() * 360) * _root.DEG_RAD;
_local2._x = (Math.cos(_local4) * _local3) + _root.xCenter;
_local2._y = (Math.sin(_local4) * _local3) + _root.yCenter;
}
function nextLevel() {
if ((isPaused == false) && (levelCounter <= 0)) {
_root.levelNum++;
_root.levelText.text = levelNum;
minBallSpeed = minBallSpeed + 0.2;
maxBallSpeed = maxBallSpeed + 0.2;
var _local2 = _root.ballArray.length - 1;
while (_local2 >= 0) {
_root.ballArray[_local2].vel = minBallSpeed;
changeBallDirection(ballArray[_local2], ballArray[_local2]._rotation);
_local2--;
}
levelCounter = 400;
var _local3 = _root.attachMovie("infoText_mc", "text" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = xCenter;
_local3._y = yCenter;
_local3.anim.infoText.text = "level " + levelNum;
startSound("levelUpSound", soundVolume, 1);
if (levelNum <= 12) {
createNewBlock(levelNum);
createNewBlock(levelNum);
createNewBlock(levelNum);
createNewBlock(levelNum);
createNewBlock(levelNum);
}
}
if (levelNum <= 12) {
_root.song.attachSound("song" + _root.songArray[_root.levelNum - 1]);
_root.song.start(0, 1);
_root.song.setVolume(_root.soundVolume * _root.musicMod);
blockNum = levelNum;
powerUpNum = levelNum;
} else {
createSecretBlock();
delete song.onSoundComplete;
startRandMusic(8, 4);
}
}
function startBreakout() {
menuPlaying = false;
song.stop();
song2.stop();
song.setPan(0);
clearInterval(volumeInterval);
delete song.onSoundComplete;
song.onSoundComplete = function () {
_root.nextLevel();
};
lives = 2;
livesText.text = lives;
extraLives = 2;
levelCounter = 400;
levelNum = 1;
nextLevel();
xCenter = 350;
yCenter = 200;
DEG_RAD = (Math.PI/180);
RAD_DEG = 57.2957795130823;
timeCounter = 30;
curTime = 0;
timeText.text = curTime;
isPaused = true;
delete keyListener.onKeyUp;
keyListener.onKeyUp = function () {
if (Key.getCode() == 80) {
pauseGame();
}
};
if (detail) {
mainCircle.gotoAndStop(1);
} else {
mainCircle.gotoAndStop(2);
}
score = 0;
vel = 0;
vel2 = 0;
accel = 2.2;
friction = 0.7;
paddleSize = 4;
changePaddleSize(0);
blockArray = new Array();
blockNum = 1;
maxBlockDist = 60;
var _local2 = 10;
while (_local2 > 0) {
createNewBlock(Math.ceil(Math.random() * blockNum));
_local2--;
}
blockReset = 20;
blockCounter = (blockArray.length * 3) + blockReset;
powerUpNum = 1;
powerUpArray = new Array();
uberBall = false;
ballCount = 0;
minBallSpeed = 3;
maxBallSpeed = 8;
speedIncrease = 0.2;
spinDecay = 0.9;
ballArray = new Array();
createNewBall(xCenter, yCenter);
}
clearInterval(minigameInterval);
delete this.onEnterFrame;
delete this.onMouseMove;
initialized = true;
soundVolume = 100;
musicMod = 0.75;
detail = true;
quality = "HIGH";
pauseKey = 80;
leftKey = 37;
rightKey = 39;
leftKey2 = 90;
rightKey2 = 88;
keyListener = new Object();
Key.addListener(keyListener);
twoPlayer = false;
_root.createEmptyMovieClip("songHolder_mc", _root.getNextHighestDepth());
song = new Sound(_root.songHolder_mc);
_root.createEmptyMovieClip("song2Holder_mc", _root.getNextHighestDepth());
song2 = new Sound(_root.song2Holder_mc);
_root.createEmptyMovieClip("soundFXHolder", _root.getNextHighestDepth());
soundFX = new Sound(_root.soundFXHolder);
_root.gotoAndPlay("menuAnim");
songArray = new Array(1, 2, 3, 4, 3, 4, 5, 6, 5, 6, 7, 8);
Frame 7
_root.startSound("earthquake_sound", soundVolume, 1);
Frame 33
this.onEnterFrame = function () {
g = 5;
while (g > 0) {
m = _root.dashHolder.attachMovie("movingDashAnim_mc", "dash" + _root.dashHolder.getNextHighestDepth(), _root.dashHolder.getNextHighestDepth());
m._rotation = Math.random() * 360;
g--;
}
};
Frame 42
startRandMusic(3, 1);
soundFX.stop();
menuPlaying = true;
_root.startSound("medExplosion", _root.soundVolume * 0.25, 1);
Frame 79
if (!initialized) {
_root.gotoAndPlay("initialize");
} else {
score = 0;
stop();
_quality = "HIGH";
_root.introTitleAnim.gotoAndStop("end");
delete this.onEnterFrame;
this.onEnterFrame = function () {
g = 5;
while (g > 0) {
m = _root.dashHolder.attachMovie("movingDashAnim_mc", "dash" + _root.dashHolder.getNextHighestDepth(), _root.dashHolder.getNextHighestDepth());
m._rotation = Math.random() * 360;
g--;
}
};
if (!menuPlaying) {
startRandMusic(3, 1);
}
}
Frame 80
stop();
menuPlaying = true;
starTotal = 100;
wonMinigame = false;
minigameTimer = 1000;
var xm = 0;
var ym = 0;
sw = 310;
sh = 210;
drawStars();
this.onMouseMove = function () {
xm = ((_xmouse - 120) - (sw / 2)) / 1000;
ym = ((_ymouse - 95) - (sh / 2)) / 1000;
};
clearInterval(minigameInterval);
minigameInterval = setInterval(minigameTimeKeeper, 1000);
Frame 81
gotoAndStop ("minigame");
Frame 82
stop();
anim1.paddles.paddle1.gotoAndStop(7);
anim1.paddles.paddle2.gotoAndStop(7);
anim2.p1.gotoAndStop(7);
anim2.p2.gotoAndStop(7);
Frame 83
stop();
delete this.onEnterFrame;
startBreakout();
twoPlayer = false;
this.onEnterFrame = function () {
if (!isPaused) {
timeCounter--;
if (timeCounter <= 0) {
timeCounter = 30;
curTime++;
timeText.text = curTime;
}
levelCounter--;
if (Key.isDown(_root.rightKey)) {
vel = vel + accel;
} else if (Key.isDown(_root.leftKey)) {
vel = vel - accel;
}
_root.paddles._rotation = _root.paddles._rotation + vel;
vel = vel * friction;
blockCounter--;
if (blockCounter <= 0) {
createNewBlock(Math.ceil(Math.random() * blockNum));
blockCounter = (blockArray.length * 3) + blockReset;
}
var _local3 = ballArray.length - 1;
while (_local3 >= 0) {
ball = ballArray[_local3];
ball._x = ball._x + ball.xVel;
ball._y = ball._y + ball.yVel;
xBallDist = ball._x - xCenter;
yBallDist = ball._y - yCenter;
centerDist = Math.sqrt((xBallDist * xBallDist) + (yBallDist * yBallDist));
if (centerDist > 180) {
if (_root.paddles.hitTest(ball._x, ball._y, true)) {
newDirection = _root.calcPaddleAngle(ball);
changeBallDirection(ball, newDirection);
ball.spin = vel * 1.2;
}
}
if (_root.blocks.hitTest(ball._x, ball._y, true)) {
findHitBlock(ball);
}
if ((ball.spin > 0.1) || (ball.spin < -0.1)) {
ball.spin = ball.spin * spinDecay;
ball._rotation = ball._rotation + ball.spin;
ball.shine._rotation = -ball._rotation;
newRad = ball._rotation * DEG_RAD;
ball.xVel = Math.cos(newRad) * ball.vel;
ball.yVel = Math.sin(newRad) * ball.vel;
}
if ((Math.abs(ball._x - xCenter) > 200) || (Math.abs(ball._y - yCenter) > 200)) {
removeArrayNum(_root.ballArray, ball);
removeMovieClip(ball);
if (ballArray.length == 0) {
_root.lives--;
if (_root.lives < 0) {
endGame();
gotoAndPlay ("dead");
} else {
livesText.text = lives;
createNewBall(xCenter, yCenter);
pauseGame();
startSound("dieSound", soundVolume, 1);
}
}
}
if (_root.detail) {
var _local4 = ball.vel / 2;
while (_local4 > 0) {
var _local5 = _root.tails.attachMovie("ballExaust_mc", "exaust" + _root.tails.getNextHighestDepth(), _root.tails.getNextHighestDepth());
_local5._rotation = Math.random() * 360;
_local5._x = ball._x;
_local5._y = ball._y;
_local5._xscale = (_local5._yscale = (Math.random() * 50) + 50);
_local5._alpha = Math.random() * 300;
_local4--;
}
} else {
var _local5 = _root.tails.attachMovie("ballExaust2_mc", "exaust" + _root.tails.getNextHighestDepth(), _root.tails.getNextHighestDepth());
_local5._x = ball._x;
_local5._y = ball._y;
}
_local3--;
}
var _local4 = powerUpArray.length - 1;
while (_local4 >= 0) {
var _local2 = powerUpArray[_local4];
_local2._x = _local2._x + _local2.xVel;
_local2._y = _local2._y + _local2.yVel;
xPDist = _local2._x - xCenter;
yPDist = _local2._y - yCenter;
pUpDist = Math.sqrt((xPDist * xPDist) + (yPDist * yPDist));
if (pUpDist > 210) {
removeArrayNum(_root.powerUpArray, _local2);
removeMovieClip(_local2);
} else if (pUpDist > 180) {
if (_root.paddles.hitTest(_local2._x, _local2._y, true)) {
removeArrayNum(_root.powerUpArray, _local2);
_local2.play();
}
}
_local4--;
}
}
};
Frame 84
endGame();
_root.gotoAndStop("game");
Frame 86
endGame();
soundFX.stop();
song.stop();
song2.stop();
Frame 87
deadAnim.scoreTop.text = (deadAnim.scoreBottom.text = score);
Frame 91
stop();
startSound("medExplosion", soundVolume, 1);
Frame 93
stop();
menuPlaying = true;
Frame 95
menuPlaying = true;
startSound("medExplosion", soundVolume / 2, 1);
Frame 101
stop();
Frame 103
stop();
delete this.onEnterFrame;
startBreakout();
twoPlayer = true;
this.onEnterFrame = function () {
if (!isPaused) {
timeCounter--;
if (timeCounter <= 0) {
timeCounter = 30;
curTime++;
timeText.text = curTime;
}
levelCounter--;
if (Key.isDown(_root.rightKey)) {
vel = vel + accel;
} else if (Key.isDown(_root.leftKey)) {
vel = vel - accel;
}
if (Key.isDown(88)) {
vel2 = vel2 + accel;
} else if (Key.isDown(90)) {
vel2 = vel2 - accel;
}
_root.paddles.paddle1._rotation = _root.paddles.paddle1._rotation + vel;
vel = vel * friction;
_root.paddles.paddle2._rotation = _root.paddles.paddle2._rotation + vel2;
vel2 = vel2 * friction;
blockCounter--;
if (blockCounter <= 0) {
createNewBlock(Math.ceil(Math.random() * blockNum));
blockCounter = (blockArray.length * 3) + blockReset;
}
var _local3 = ballArray.length - 1;
while (_local3 >= 0) {
ball = ballArray[_local3];
ball._x = ball._x + ball.xVel;
ball._y = ball._y + ball.yVel;
xBallDist = ball._x - xCenter;
yBallDist = ball._y - yCenter;
centerDist = Math.sqrt((xBallDist * xBallDist) + (yBallDist * yBallDist));
if (centerDist > 180) {
if (_root.paddles.hitTest(ball._x, ball._y, true)) {
newDirection = _root.calcPaddleAngle(ball);
changeBallDirection(ball, newDirection);
ball.spin = vel * 1.2;
}
}
if (_root.blocks.hitTest(ball._x, ball._y, true)) {
findHitBlock(ball);
}
if ((ball.spin > 0.1) || (ball.spin < -0.1)) {
ball.spin = ball.spin * spinDecay;
ball._rotation = ball._rotation + ball.spin;
ball.shine._rotation = -ball._rotation;
newRad = ball._rotation * DEG_RAD;
ball.xVel = Math.cos(newRad) * ball.vel;
ball.yVel = Math.sin(newRad) * ball.vel;
}
if ((Math.abs(ball._x - xCenter) > 200) || (Math.abs(ball._y - yCenter) > 200)) {
removeArrayNum(_root.ballArray, ball);
removeMovieClip(ball);
if (ballArray.length == 0) {
_root.lives--;
if (_root.lives < 0) {
endGame();
gotoAndPlay ("dead");
} else {
livesText.text = lives;
createNewBall(xCenter, yCenter);
pauseGame();
startSound("dieSound", soundVolume, 1);
}
}
}
if (_root.detail) {
var _local4 = ball.vel / 2;
while (_local4 > 0) {
var _local5 = _root.tails.attachMovie("ballExaust_mc", "exaust" + _root.tails.getNextHighestDepth(), _root.tails.getNextHighestDepth());
_local5._rotation = Math.random() * 360;
_local5._x = ball._x;
_local5._y = ball._y;
_local5._xscale = (_local5._yscale = (Math.random() * 50) + 50);
_local5._alpha = Math.random() * 300;
_local4--;
}
} else {
var _local5 = _root.tails.attachMovie("ballExaust2_mc", "exaust" + _root.tails.getNextHighestDepth(), _root.tails.getNextHighestDepth());
_local5._x = ball._x;
_local5._y = ball._y;
}
_local3--;
}
var _local4 = powerUpArray.length - 1;
while (_local4 >= 0) {
var _local2 = powerUpArray[_local4];
_local2._x = _local2._x + _local2.xVel;
_local2._y = _local2._y + _local2.yVel;
xPDist = _local2._x - xCenter;
yPDist = _local2._y - yCenter;
pUpDist = Math.sqrt((xPDist * xPDist) + (yPDist * yPDist));
if (pUpDist > 210) {
removeArrayNum(_root.powerUpArray, _local2);
removeMovieClip(_local2);
} else if (pUpDist > 180) {
if (_root.paddles.hitTest(_local2._x, _local2._y, true)) {
removeArrayNum(_root.powerUpArray, _local2);
_local2.play();
}
}
_local4--;
}
}
};
Frame 104
endGame();
_root.gotoAndStop("game2");
Frame 106
stop();
_root.scoretable.filename = "scores/ub1player.sco";
_root.scoretable.scoresize = 10;
_root.scoretable.action = "INSERT";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = playerName;
_root.scoretable.winscore = score;
_root.scoretable.loadVariables("http://www.jacobgrahn.com/scores.php", "GET");
Frame 108
stop();
_root.scoretable.filename = "scores/ub2player.sco";
_root.scoretable.scoresize = 10;
_root.scoretable.action = "INSERT";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = playerName;
_root.scoretable.winscore = score;
_root.scoretable.loadVariables("http://www.jacobgrahn.com/scores.php", "GET");
Frame 110
stop();
_root.scoretable.filename = "scores/ubminigame.sco";
_root.scoretable.scoresize = 10;
_root.scoretable.action = "INSERT";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = playerName;
_root.scoretable.winscore = minigameTimer;
_root.scoretable.loadVariables("http://www.jacobgrahn.com/scores.php", "GET");
Symbol 5 MovieClip [star] Frame 1
stop();
_root.starTotal--;
_root.miniGameText.text = _root.starTotal + "/100 activated";
Instance of Symbol 2 MovieClip in Symbol 5 MovieClip [star] Frame 1
onClipEvent (load) {
this._visible = false;
this._parent.hitArea = this;
}
Symbol 5 MovieClip [star] Frame 11
stop();
_root.starTotal++;
_root.miniGameText.text = _root.starTotal + "/100 activated";
if (_root.starTotal == 100) {
_root.endMinigame();
}
Symbol 14 Button
on (release) {
getURL ("http://www.macromedia.com/go/getflash/", "_blank");
}
Symbol 34 Button
on (release) {
_root.gotoAndStop("miniScore");
}
Symbol 35 MovieClip Frame 1
stop();
Instance of Symbol 2 MovieClip in Symbol 35 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(9)) {
this._parent.gotoAndStop("cheated");
_root.starTotal = -99999;
}
}
Symbol 35 MovieClip Frame 2
stop();
clearInterval(_root.minigameInterval);
_root.wonMinigame = false;
_root.stars_mc._x = -9999;
_root.minigameTimeText.text = "999999999999999 seconds";
Symbol 35 MovieClip Frame 3
stop();
minigameTimeText.text = _root.minigameTimer + "!";
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
this.gotoAndStop("on");
}
Symbol 35 MovieClip Frame 4
stop();
Symbol 45 MovieClip [movingDashAnim_mc] Frame 8
removeMovieClip(this);
Symbol 46 MovieClip [ballExaust_mc] Frame 10
removeMovieClip(this);
stop();
Symbol 51 MovieClip [ball_mc] Frame 1
stop();
Symbol 52 MovieClip [ballHitDash_mc] Frame 10
removeMovieClip(this);
stop();
Symbol 53 MovieClip [ballExaust2_mc] Frame 7
removeMovieClip(this);
Symbol 54 MovieClip [ballPulseOut_mc] Frame 9
removeMovieClip(this);
Symbol 58 MovieClip [block2] Frame 1
stop();
circle._visible = false;
this.hitArea = circle;
angleOveride = true;
addSpin = false;
Symbol 58 MovieClip [block2] Frame 2
_root.removeBlock(this);
Symbol 60 MovieClip [block10] Frame 1
stop();
circle._visible = false;
this.hitArea = circle;
angleOveride = true;
addSpin = false;
ballNum = Math.round(Math.random() * (_root.ballArray.length - 1));
ball = _root.ballArray[ballNum];
this.onEnterFrame = function () {
if (!_root.isPaused) {
if (_root.ballArray[ballNum] != ball) {
ballNum = Math.round(Math.random() * (_root.ballArray.length - 1));
ball = _root.ballArray[ballNum];
}
rotation = Math.atan2(this._y - ball._y, this._x - ball._x);
rotation = rotation * _root.RAD_DEG;
rotation = rotation - 180;
this._rotation = rotation;
this.shine._rotation = -this._rotation;
rad = this._rotation * _root.DEG_RAD;
this._x = this._x + Math.cos(rad);
this._y = this._y + Math.sin(rad);
}
};
Symbol 60 MovieClip [block10] Frame 2
_root.removeBlock(this);
Symbol 63 MovieClip [block8] Frame 1
stop();
circle._visible = false;
this.hitArea = circle;
angleOveride = false;
addSpin = false;
Symbol 63 MovieClip [block8] Frame 2
stop();
Symbol 63 MovieClip [block8] Frame 3
_root.removeBlock(this);
Symbol 67 MovieClip [block7] Frame 1
stop();
circle._visible = false;
this.hitArea = circle;
angleOveride = false;
addSpin = false;
Symbol 67 MovieClip [block7] Frame 2
stop();
Symbol 67 MovieClip [block7] Frame 3
_root.createPowerUp(this._x, this._y);
_root.createPowerUp(this._x, this._y);
_root.removeBlock(this);
Symbol 69 MovieClip [block1] Frame 1
stop();
circle._visible = false;
this.hitArea = circle;
angleOveride = false;
addSpin = false;
Symbol 69 MovieClip [block1] Frame 2
_root.removeBlock(this);
Symbol 71 MovieClip [block5] Frame 1
stop();
circle._visible = false;
this.hitArea = circle;
angleOveride = false;
addSpin = false;
xDist = this._x - _root.xCenter;
yDist = this._y - _root.yCenter;
dist = Math.sqrt((xDist * xDist) + (yDist * yDist));
rad = Math.atan2(yDist, xDist);
rot = rad * _root.RAD_DEG;
rotSpeed = (Math.random() * 3) + 2;
this.onEnterFrame = function () {
if (!_root.isPaused) {
rot = rot + rotSpeed;
if (rot > 180) {
rot = rot - 360;
}
rad = rot * _root.DEG_RAD;
this._x = (Math.cos(rad) * dist) + _root.xCenter;
this._y = (Math.sin(rad) * dist) + _root.yCenter;
}
};
Symbol 71 MovieClip [block5] Frame 2
_root.removeBlock(this);
Symbol 75 MovieClip [block9] Frame 1
stop();
circle._visible = false;
this.hitArea = circle;
angleOveride = false;
addSpin = false;
Symbol 75 MovieClip [block9] Frame 2
stop();
Symbol 75 MovieClip [block9] Frame 3
stop();
Symbol 75 MovieClip [block9] Frame 4
_root.removeBlock(this);
Symbol 77 MovieClip [block6] Frame 1
stop();
circle._visible = false;
this.hitArea = circle;
angleOveride = true;
addSpin = false;
var rotSpeed = ((Math.random() * 3) + 1);
this.onEnterFrame = function () {
if (!_root.isPaused) {
this._rotation = this._rotation + rotSpeed;
this.shine._rotation = -this._rotation;
}
};
Symbol 77 MovieClip [block6] Frame 2
_root.removeBlock(this);
Symbol 90 MovieClip [block11] Frame 1
circle._visible = false;
this.hitArea = circle;
angleOveride = false;
addSpin = false;
this.onEnterFrame = function () {
if (_root.isPaused) {
stop();
} else {
play();
}
};
Symbol 90 MovieClip [block11] Frame 600
stop();
delete this.onEnterFrame;
Symbol 90 MovieClip [block11] Frame 601
_root.removeBlock(this);
Symbol 119 MovieClip [explosion_mc] Frame 15
removeMovieClip(this);
Symbol 124 MovieClip [ballElectricity_mc] Frame 1
this.onEnterFrame = function () {
if (!_root.isPaused) {
if (Math.random() > 0.96) {
randNum = Math.round(Math.random() * (_root.blockArray.length - 1));
randBlock = _root.blockArray[randNum];
if (randBlock != undefined) {
_root.createLightning(this._parent._parent._x + this._parent._parent.xVel, this._parent._parent._y + this._parent._parent.yVel, randBlock._x, randBlock._y);
var _local3 = _root.explosions.attachMovie("electricShine_mc", "shine" + _root.explosions.getNextHighestDepth(), _root.explosions.getNextHighestDepth());
_local3._x = randBlock._x;
_local3._y = randBlock._y;
randBlock.play();
_root.changeScore(100);
}
}
}
};
Symbol 124 MovieClip [ballElectricity_mc] Frame 302
removeMovieClip(this);
Symbol 129 MovieClip Frame 1
this._rotation = this._rotation - this._parent._parent._rotation;
Symbol 131 MovieClip [powerUp1] Frame 1
stop();
Symbol 131 MovieClip [powerUp1] Frame 2
_root.changeScore(500);
_root.startSound("powerUpSound", _root.soundVolume / 2, 1);
Symbol 131 MovieClip [powerUp1] Frame 6
removeMovieClip(this);
Symbol 134 MovieClip [powerUp2] Frame 1
stop();
Symbol 134 MovieClip [powerUp2] Frame 2
_root.changeScore(-500);
_root.startSound("powerDownSound", _root.soundVolume / 2, 1);
Symbol 134 MovieClip [powerUp2] Frame 6
removeMovieClip(this);
Symbol 137 MovieClip [powerUp3] Frame 1
stop();
Symbol 137 MovieClip [powerUp3] Frame 2
_root.changeScore(200);
_root.changePaddleSize(1);
_root.startSound("powerUpSound", _root.soundVolume / 2, 1);
Symbol 137 MovieClip [powerUp3] Frame 6
removeMovieClip(this);
Symbol 140 MovieClip [powerUp4] Frame 1
stop();
Symbol 140 MovieClip [powerUp4] Frame 2
_root.changeScore(200);
_root.changePaddleSize(-1);
_root.startSound("powerDownSound", _root.soundVolume / 2, 1);
Symbol 140 MovieClip [powerUp4] Frame 6
removeMovieClip(this);
Symbol 143 MovieClip [powerUp6] Frame 1
stop();
Symbol 143 MovieClip [powerUp6] Frame 2
var i = (_root.ballArray.length - 1);
while (i >= 0) {
_root.ballArray[i].vel = _root.minBallSpeed;
_root.changeBallDirection(_root.ballArray[i], _root.ballArray[i]._rotation);
i--;
}
_root.changeScore(200);
_root.startSound("powerUpSound", _root.soundVolume / 2, 1);
Symbol 143 MovieClip [powerUp6] Frame 6
removeMovieClip(this);
Symbol 146 MovieClip [powerUp7] Frame 1
stop();
Symbol 146 MovieClip [powerUp7] Frame 2
var i = (_root.ballArray.length - 1);
while (i >= 0) {
_root.ballArray[i].vel = _root.ballArray[i].vel + 2;
_root.changeBallDirection(_root.ballArray[i], _root.ballArray[i]._rotation);
i--;
}
_root.changeScore(200);
_root.startSound("powerDownSound", _root.soundVolume / 2, 1);
Symbol 146 MovieClip [powerUp7] Frame 6
removeMovieClip(this);
Symbol 149 MovieClip [powerUp9] Frame 1
stop();
Symbol 149 MovieClip [powerUp9] Frame 2
var i = (_root.ballArray.length - 1);
while (i >= 0) {
ball = _root.ballArray[i];
removeMovieClip(ball.effects.weakBall);
ball.effects.attachMovie("uberBall_mc", "uberness", 9998);
i--;
}
_root.changeScore(200);
_root.startSound("powerUpSound", _root.soundVolume / 2, 1);
Symbol 149 MovieClip [powerUp9] Frame 6
removeMovieClip(this);
Symbol 152 MovieClip [powerUp12] Frame 1
stop();
Symbol 152 MovieClip [powerUp12] Frame 2
_root.changeScore(100 * _root.blockArray.length);
var i = (_root.blockArray.length - 1);
while (i >= 0) {
_root.blockArray[i].play();
i--;
}
m = _root.attachMovie("rectangle_mc", "flash", _root.getNextHighestDepth());
_root.startSound("powerUpSound", _root.soundVolume / 2, 1);
Symbol 152 MovieClip [powerUp12] Frame 6
removeMovieClip(this);
Symbol 155 MovieClip [powerUp11] Frame 1
stop();
Symbol 155 MovieClip [powerUp11] Frame 2
_root.paddles.uberHolder.attachMovie("uberPaddle_mc", "paddle", 1);
_root.changeScore(200);
_root.startSound("powerUpSound", _root.soundVolume / 2, 1);
Symbol 155 MovieClip [powerUp11] Frame 6
removeMovieClip(this);
Symbol 158 MovieClip [powerUp10] Frame 1
stop();
if (_root.extraLives <= 0) {
removeMovieClip(this);
}
Symbol 158 MovieClip [powerUp10] Frame 2
_root.extraLives--;
_root.lives++;
_root.livesText.text = _root.lives;
_root.changeScore(500);
_root.startSound("powerUpSound", _root.soundVolume / 2, 1);
Symbol 158 MovieClip [powerUp10] Frame 6
removeMovieClip(this);
Symbol 163 MovieClip [uberBall_mc] Frame 1
_parent._parent.weakBall = false;
_parent._parent.uberBall = true;
this.onEnterFrame = function () {
base._xscale = (base._yscale = Math.random() * 100);
s1._xscale = (s1._yscale = Math.random() * 100);
s2._xscale = (s2._yscale = Math.random() * 100);
s1._rotation = Math.random() * 360;
s2._rotation = Math.random() * 360;
s1._alpha = Math.random() * 100;
s2._alpha = Math.random() * 100;
};
Symbol 163 MovieClip [uberBall_mc] Frame 302
this._parent._parent.uberBall = false;
removeMovieClip(this);
Symbol 166 MovieClip [powerUp5] Frame 1
stop();
Symbol 166 MovieClip [powerUp5] Frame 2
var i = (_root.ballArray.length - 1);
while (i >= 0) {
ball = _root.ballArray[i];
ball.effects.attachMovie("ballElectricity_mc", "electricBall", 9997);
i--;
}
_root.changeScore(200);
_root.startSound("powerUpSound", _root.soundVolume / 2, 1);
Symbol 166 MovieClip [powerUp5] Frame 6
removeMovieClip(this);
Symbol 168 MovieClip [rectangle_mc] Frame 2
removeMovieClip(this);
Symbol 172 MovieClip [uberPaddle_mc] Frame 1
hit_mc._visible = false;
this.hitArea = hit_mc;
Symbol 172 MovieClip [uberPaddle_mc] Frame 255
this._visible = false;
Symbol 172 MovieClip [uberPaddle_mc] Frame 256
this._visible = true;
Symbol 172 MovieClip [uberPaddle_mc] Frame 262
this._visible = false;
Symbol 172 MovieClip [uberPaddle_mc] Frame 263
this._visible = true;
Symbol 172 MovieClip [uberPaddle_mc] Frame 268
this._visible = false;
Symbol 172 MovieClip [uberPaddle_mc] Frame 269
this._visible = true;
Symbol 172 MovieClip [uberPaddle_mc] Frame 273
this._visible = false;
Symbol 172 MovieClip [uberPaddle_mc] Frame 274
this._visible = true;
Symbol 172 MovieClip [uberPaddle_mc] Frame 277
this._visible = false;
Symbol 172 MovieClip [uberPaddle_mc] Frame 278
this._visible = true;
Symbol 172 MovieClip [uberPaddle_mc] Frame 280
this._visible = false;
Symbol 172 MovieClip [uberPaddle_mc] Frame 281
this._visible = true;
Symbol 172 MovieClip [uberPaddle_mc] Frame 282
this._visible = false;
Symbol 172 MovieClip [uberPaddle_mc] Frame 283
this._visible = true;
Symbol 172 MovieClip [uberPaddle_mc] Frame 284
this._visible = false;
Symbol 172 MovieClip [uberPaddle_mc] Frame 286
this._visible = true;
Symbol 172 MovieClip [uberPaddle_mc] Frame 287
this._visible = false;
Symbol 172 MovieClip [uberPaddle_mc] Frame 290
this._visible = true;
Symbol 172 MovieClip [uberPaddle_mc] Frame 291
this._visible = false;
Symbol 172 MovieClip [uberPaddle_mc] Frame 295
this._visible = true;
Symbol 172 MovieClip [uberPaddle_mc] Frame 296
this._visible = false;
Symbol 172 MovieClip [uberPaddle_mc] Frame 301
this._visible = true;
Symbol 172 MovieClip [uberPaddle_mc] Frame 302
this._visible = false;
Symbol 172 MovieClip [uberPaddle_mc] Frame 303
removeMovieClip(this);
Symbol 173 MovieClip [block4] Frame 1
stop();
circle._visible = false;
this.hitArea = circle;
angleOveride = false;
addSpin = false;
ball._rotation = -this._rotation;
Symbol 173 MovieClip [block4] Frame 2
if (_root.ballArray.length < 3) {
_root.createNewBall(this._x, this._y);
}
_root.removeBlock(this);
Symbol 174 MovieClip [electricShine_mc] Frame 6
removeMovieClip(this);
Symbol 177 MovieClip [summonBlock_mc] Frame 26
var r = _root.blocks.attachMovie("block" + blockName, "block" + _root.blocks.getNextHighestDepth(), _root.blocks.getNextHighestDepth());
r._x = this._x;
r._y = this._y;
r._rotation = Math.random() * 360;
r.shine._rotation = r.shine._rotation - r._rotation;
_root.blockArray.push(r);
this.onEnterFrame = function () {
this._x = r._x;
this._y = r._y;
};
Symbol 177 MovieClip [summonBlock_mc] Frame 37
removeMovieClip(this);
Symbol 180 MovieClip [powerUp8] Frame 1
stop();
Symbol 180 MovieClip [powerUp8] Frame 2
var i = (_root.ballArray.length - 1);
while (i >= 0) {
ball = _root.ballArray[i];
removeMovieClip(ball.effects.uberness);
removeMovieClip(ball.effects.electricBall);
ball.effects.attachMovie("weakBall_mc", "weakBall", 9998);
i--;
}
_root.changeScore(200);
_root.startSound("powerDownSound", _root.soundVolume / 2, 1);
Symbol 180 MovieClip [powerUp8] Frame 6
removeMovieClip(this);
Symbol 182 MovieClip [block12] Frame 1
stop();
circle._visible = false;
this.hitArea = circle;
angleOveride = false;
addSpin = false;
Symbol 182 MovieClip [block12] Frame 2
var dist = 32;
angle = -150;
while (angle <= 150) {
rad = angle * _root.DEG_RAD;
xDist = Math.cos(rad) * dist;
yDist = Math.sin(rad) * dist;
m = _root.blocks.attachMovie("block9", "block" + _root.blocks.getNextHighestDepth(), _root.blocks.getNextHighestDepth());
m._x = this._x + xDist;
m._y = this._y + yDist;
m._rotation = Math.random() * 360;
m.shine._rotation = -m._rotation;
_root.blockArray.push(m);
angle = angle + 60;
}
_root.removeBlock(this);
Symbol 184 MovieClip [weakBall_mc] Frame 1
_parent._parent.weakBall = true;
_parent._parent.uberBall = false;
Symbol 184 MovieClip [weakBall_mc] Frame 302
this._parent._parent.weakBall = false;
removeMovieClip(this);
Symbol 188 MovieClip [block3] Frame 1
stop();
circle._visible = false;
this.hitArea = circle;
angleOveride = false;
addSpin = true;
rotSpeed = (Math.random() * 20) - 10;
if (rotSpeed > 0) {
arrows._xscale = -100;
rotSpeed = rotSpeed + 1;
} else {
rotSpeed = rotSpeed - 1;
}
this.onEnterFrame = function () {
arrows._rotation = arrows._rotation + rotSpeed;
};
Symbol 188 MovieClip [block3] Frame 2
_root.removeBlock(this);
Symbol 191 MovieClip [infoText_mc] Frame 22
removeMovieClip(this);
Symbol 196 MovieClip [secretPowerUp_mc] Frame 1
stop();
Symbol 196 MovieClip [secretPowerUp_mc] Frame 2
_root.changeScore(50000);
_root.startSound("powerUpSound", _root.soundVolume / 2, 1);
Symbol 196 MovieClip [secretPowerUp_mc] Frame 6
m = _root.paddles.paddle2.attachMovie("laserCharge_mc", "charge", 100);
m._x = 0;
m._y = -190;
m.addAngle = 90;
m = _root.paddles.paddle2.attachMovie("laserCharge_mc", "charge", 101);
m._x = 0;
m._y = 190;
m.addAngle = 270;
removeMovieClip(this);
Symbol 199 MovieClip [secretBlock_mc] Frame 1
stop();
circle._visible = false;
this.hitArea = circle;
angleOveride = false;
addSpin = false;
Symbol 199 MovieClip [secretBlock_mc] Frame 8
stop();
Symbol 199 MovieClip [secretBlock_mc] Frame 15
stop();
Symbol 199 MovieClip [secretBlock_mc] Frame 22
stop();
Symbol 199 MovieClip [secretBlock_mc] Frame 23
var m = _root.powerUps.attachMovie("secretPowerUp_mc", "powerUp" + _root.powerUps.getNextHighestDepth(), _root.powerUps.getNextHighestDepth());
m._x = this._x;
m._y = this._y;
m._rotation = Math.random() * 360;
m.stop();
_root.powerUpArray.push(m);
var moveSpeed = ((Math.random() * 3) + 0.5);
var rotation = (Math.random() * 360);
var rad = (rotation * _root.DEG_RAD);
m.xVel = Math.cos(rad) * moveSpeed;
m.yVel = Math.sin(rad) * moveSpeed;
_root.removeBlock(this);
Symbol 200 MovieClip [summonSecret_mc] Frame 39
var r = _root.blocks.attachMovie("secretBlock_mc", "block" + _root.blocks.getNextHighestDepth(), _root.blocks.getNextHighestDepth());
r._x = this._x;
r._y = this._y;
r._rotation = Math.random() * 360;
r.shine._rotation = r.shine._rotation - r._rotation;
_root.blockArray.push(r);
Symbol 200 MovieClip [summonSecret_mc] Frame 50
removeMovieClip(this);
Symbol 201 MovieClip Frame 1
this.onEnterFrame = function () {
s1._rotation = Math.random() * 360;
s2._rotation = Math.random() * 360;
s1._xscale = (s1._yscale = Math.random() * 100);
s2._xscale = (s2._yscale = Math.random() * 100);
s1._alpha = Math.random() * 100;
s2._alpha = Math.random() * 100;
};
Symbol 202 MovieClip [laserCharge_mc] Frame 1
this.onEnterFrame = function () {
if (!_root.isPaused) {
play();
} else {
stop();
}
};
Symbol 202 MovieClip [laserCharge_mc] Frame 74
angle = _root.paddles._rotation + addAngle;
rad = angle * _root.DEG_RAD;
xPos = Math.cos(rad) * 190;
yPos = Math.sin(rad) * 190;
xPos = xPos + _root.xCenter;
yPos = yPos + _root.yCenter;
randNum = Math.round(Math.random() * (_root.blockArray.length - 1));
randBlock = _root.blockArray[randNum];
if (randBlock != undefined) {
_root.createLightning(xPos, yPos, randBlock._x, randBlock._y);
var m = _root.explosions.attachMovie("electricShine_mc", "shine" + _root.explosions.getNextHighestDepth(), _root.explosions.getNextHighestDepth());
m._x = randBlock._x;
m._y = randBlock._y;
randBlock.play();
}
_root.changeScore(500);
Symbol 202 MovieClip [laserCharge_mc] Frame 75
randNum = Math.round(Math.random() * (_root.blockArray.length - 1));
randBlock = _root.blockArray[randNum];
if (randBlock != undefined) {
_root.createLightning(xPos, yPos, randBlock._x, randBlock._y);
var m = _root.explosions.attachMovie("electricShine_mc", "shine" + _root.explosions.getNextHighestDepth(), _root.explosions.getNextHighestDepth());
m._x = randBlock._x;
m._y = randBlock._y;
randBlock.play();
}
_root.changeScore(500);
Symbol 225 MovieClip Frame 1
stop();
Symbol 229 Button
on (press) {
_root.gotoAndPlay("initialize");
}
Symbol 251 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (Math.random() > 0.98) {
play();
delete this.onEnterFrame;
}
};
Symbol 252 MovieClip Frame 37
stop();
Symbol 259 MovieClip Frame 1
inactiveCover._visible = true;
slider._xscale = _root.soundVolume;
volumePercentage.text = Math.round(_root.soundVolume) + "%";
this.onPress = function () {
onMouseMove = function () {
newVolume = (_root._xmouse - this._x) * (100 / this._width);
if (newVolume > 100) {
newVolume = 100;
}
if (newVolume < 0) {
newVolume = 0;
}
_root.soundVolume = (slider._xscale = newVolume);
_root.soundFX.setVolume(newVolume);
volumePercentage.text = Math.round(newVolume) + "%";
_root.musicVolume2 = (_root.musicVolume = (_root.maxMusicVolume = newVolume * _root.musicMod));
_root.minMusicVolume = (newVolume / 2) * _root.musicMod;
_root.song.setVolume(newVolume * _root.musicMod);
_root.song2.setVolume(newVolume * _root.musicMod);
};
onMouseMove();
onMouseUp = function () {
delete _root.volumeSlider.onMouseMove;
delete onMouseUp;
};
};
Symbol 262 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 2
stop();
Symbol 268 Button
on (release) {
delete _root.onEnterFrame;
_root.gotoAndPlay("credits");
}
Symbol 271 Button
on (release) {
delete _root.onEnterFrame;
_root.gotoAndPlay("instructions");
}
Symbol 274 Button
on (release) {
delete _root.onEnterFrame;
_root.gotoAndPlay("minigame");
}
Symbol 277 Button
on (release) {
delete _root.onEnterFrame;
_root.gotoAndPlay("mode");
}
Symbol 282 Button
on (release) {
_root.endMinigame();
_root.gotoAndStop("menu");
}
Symbol 286 Button
on (release) {
play();
}
Symbol 297 Button
on (release) {
gotoAndStop ("game");
}
Symbol 298 Button
on (release) {
gotoAndStop ("game2");
}
Symbol 308 MovieClip Frame 1
stop();
Symbol 308 MovieClip Frame 8
prevFrame();
Symbol 320 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 8
prevFrame();
Symbol 326 MovieClip Frame 1
stop();
Symbol 326 MovieClip Frame 2
stop();
Symbol 332 Button
on (release) {
detail = !detail;
if (detail) {
mainCircle.gotoAndStop(1);
} else {
mainCircle.gotoAndStop(2);
}
}
Symbol 336 Button
on (release) {
pauseGame();
}
Symbol 339 Button
on (release) {
if (quality == "HIGH") {
quality = "LOW";
_quality = quality;
} else if (quality == "LOW") {
quality = "MEDIUM";
_quality = quality;
} else {
quality = "HIGH";
_quality = quality;
}
}
Symbol 342 Button
on (release) {
_root.gotoAndPlay("dead");
}
Symbol 345 Button
on (release) {
play();
}
Symbol 355 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 359 Button
on (release) {
if (_root.twoPlayer) {
_root.gotoAndStop("submitScore2");
} else {
_root.gotoAndStop("submitScore");
}
}
Symbol 384 Button
on (rollOver, dragOver) {
gotoAndStop ("l12");
}
on (rollOut, dragOut) {
gotoAndStop ("main");
}
Symbol 385 Button
on (rollOver, dragOver) {
gotoAndStop ("l13");
}
on (rollOut, dragOut) {
gotoAndStop ("main");
}
Symbol 386 Button
on (rollOver, dragOver) {
gotoAndStop ("l11");
}
on (rollOut, dragOut) {
gotoAndStop ("main");
}
Symbol 387 Button
on (rollOver, dragOver) {
gotoAndStop ("l10");
}
on (rollOut, dragOut) {
gotoAndStop ("main");
}
Symbol 388 Button
on (rollOver, dragOver) {
gotoAndStop ("l9");
}
on (rollOut, dragOut) {
gotoAndStop ("main");
}
Symbol 389 Button
on (rollOver, dragOver) {
gotoAndStop ("l8");
}
on (rollOut, dragOut) {
gotoAndStop ("main");
}
Symbol 390 Button
on (rollOver, dragOver) {
gotoAndStop ("l7");
}
on (rollOut, dragOut) {
gotoAndStop ("main");
}
Symbol 391 Button
on (rollOver, dragOver) {
gotoAndStop ("l6");
}
on (rollOut, dragOut) {
gotoAndStop ("main");
}
Symbol 392 Button
on (rollOver, dragOver) {
gotoAndStop ("l5");
}
on (rollOut, dragOut) {
gotoAndStop ("main");
}
Symbol 393 Button
on (rollOver, dragOver) {
gotoAndStop ("l4");
}
on (rollOut, dragOut) {
gotoAndStop ("main");
}
Symbol 394 Button
on (rollOver, dragOver) {
gotoAndStop ("l3");
}
on (rollOut, dragOut) {
gotoAndStop ("main");
}
Symbol 395 Button
on (rollOver, dragOver) {
gotoAndStop ("l2");
}
on (rollOut, dragOut) {
gotoAndStop ("main");
}
Symbol 396 Button
on (rollOver, dragOver) {
gotoAndStop ("l1");
}
on (rollOut, dragOut) {
gotoAndStop ("main");
}
Symbol 462 MovieClip Frame 1
stop();
paddles.paddle1.gotoAndStop(7);
paddles.paddle2.gotoAndStop(7);
Symbol 469 Button
on (release) {
getURL ("http://www.iconian.com/", "_blank");
}
Symbol 472 Button
on (release) {
getURL ("http://jacobgrahn.com/", "_blank");
}
Symbol 476 Button
on (release) {
getURL ("http://newgrounds.com/audio/view.php?id=489978&sub=19622", "_blank");
}