Frame 1
stop();
_focusrect = false;
invisible_interval_init = 5;
invisible_interval = invisible_interval_init;
totalbytes = 100;
speed = 10;
preloader_state = "LOADING";
onEnterFrame = function () {
switch (preloader_state) {
case "LOADING" :
invisible_interval--;
if (invisible_interval == 0) {
invisible_interval = invisible_interval_init;
if (load_txt._visible == true) {
load_txt._visible = false;
} else {
load_txt._visible = true;
}
}
loadedbytes = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
preloader_mc.gotoAndStop(loadedbytes);
if (loadedbytes == totalbytes) {
load_txt._visible = true;
preloader_state = "MOVING";
}
break;
case "MOVING" :
speed = speed - 0.5;
load_txt._y = load_txt._y - speed;
preloader_mc._y = preloader_mc._y + speed;
if (preloader_mc._y >= -20) {
break;
}
_root.gotoAndPlay(2);
delete _root.onEnterFrame;
}
};
Frame 2
Stage.showMenu = false;
var menu_loop_sfx = new Sound(_root.bgm_mc);
menu_loop_sfx.attachSound("menu_loop.wav");
var game_loop_sfx = new Sound(_root.bgm_mc);
game_loop_sfx.attachSound("game_loop.wav");
game_loop_sfx.setVolume(100);
var whoosh_sound_sfx = new Sound(sfx_mc);
whoosh_sound_sfx.attachSound("whoosh_sound.wav");
var mouse_over_sfx = new Sound(sfx_mc);
mouse_over_sfx.attachSound("mouse_over_button.wav");
var mouse_down_sfx = new Sound(sfx_mc);
mouse_down_sfx.attachSound("mouse_down_button.wav");
var combo_bonus_sfx = new Sound(sfx_mc);
combo_bonus_sfx.attachSound("combo_bonus.wav");
var paddle_hit_sfx = new Sound(sfx_mc);
paddle_hit_sfx.attachSound("ball_jump_sfx.wav");
var blip_count_sfx = new Sound(sfx_mc);
blip_count_sfx.attachSound("blip_count.wav");
var blip_go_sfx = new Sound(sfx_mc);
blip_go_sfx.attachSound("blip_go.wav");
var gameover_sfx = new Sound(sfx_mc);
gameover_sfx.attachSound("gameover sound.wav");
var wall_1_hit_sfx = new Sound(sfx_mc);
wall_1_hit_sfx.attachSound("wallhit1.wav");
var wall_2_hit_sfx = new Sound(sfx_mc);
wall_2_hit_sfx.attachSound("wallhit2.wav");
var powerup_sfx = new Sound(sfx_mc);
powerup_sfx.attachSound("powerup.wav");
powerup_sfx.setVolume(100);
_root.sfxOn = true;
_root.bgmOn = true;
Frame 3
function chooseProgram() {
current_program++;
if (current_program > total_programs) {
current_program = 1;
}
switch (current_program) {
case 1 :
flash_interval_Init = 10;
flash_interval = flash_interval_Init;
current_wall = 1;
return;
case 2 :
flash_interval_Init = 10;
flash_interval = flash_interval_Init;
current_wall = 6;
return;
case 3 :
flash_interval_Init = 5;
flash_interval = flash_interval_Init;
current_wall = 1;
return;
case 4 :
flash_interval_Init = 5;
flash_interval = flash_interval_Init;
current_wall = 3;
return;
case 5 :
flash_interval_Init = 7;
flash_interval = flash_interval_Init;
current_wall = 1;
}
}
function flashProgram1() {
flash_interval--;
if (flash_interval == 0) {
flash_interval = flash_interval_Init;
_root["wall_mc_" + current_wall].gotoAndPlay("SHAKE");
current_wall++;
if (current_wall == 7) {
current_wall = 1;
}
}
}
function flashProgram2() {
flash_interval--;
if (flash_interval == 0) {
flash_interval = flash_interval_Init;
_root["wall_mc_" + current_wall].gotoAndPlay("SHAKE");
current_wall--;
if (current_wall == 0) {
current_wall = 6;
}
}
}
function flashProgram3() {
flash_interval--;
if (flash_interval == 0) {
flash_interval = flash_interval_Init;
switch (current_wall) {
case 1 :
_root.wall_mc_1.gotoAndPlay("SHAKE");
_root.wall_mc_2.gotoAndPlay("SHAKE");
break;
case 2 :
_root.wall_mc_3.gotoAndPlay("SHAKE");
_root.wall_mc_4.gotoAndPlay("SHAKE");
break;
case 3 :
_root.wall_mc_5.gotoAndPlay("SHAKE");
_root.wall_mc_6.gotoAndPlay("SHAKE");
}
current_wall++;
if (current_wall == 4) {
current_wall = 1;
}
}
}
function flashProgram4() {
flash_interval--;
if (flash_interval == 0) {
flash_interval = flash_interval_Init;
switch (current_wall) {
case 1 :
_root.wall_mc_1.gotoAndPlay("SHAKE");
_root.wall_mc_2.gotoAndPlay("SHAKE");
break;
case 2 :
_root.wall_mc_3.gotoAndPlay("SHAKE");
_root.wall_mc_4.gotoAndPlay("SHAKE");
break;
case 3 :
_root.wall_mc_5.gotoAndPlay("SHAKE");
_root.wall_mc_6.gotoAndPlay("SHAKE");
}
current_wall--;
if (current_wall == 0) {
current_wall = 3;
}
}
}
function flashProgram5() {
flash_interval--;
if (flash_interval == 0) {
flash_interval = flash_interval_Init;
switch (current_wall) {
case 1 :
_root.wall_mc_1.gotoAndPlay("SHAKE");
_root.wall_mc_6.gotoAndPlay("SHAKE");
break;
case 2 :
_root.wall_mc_3.gotoAndPlay("SHAKE");
_root.wall_mc_4.gotoAndPlay("SHAKE");
break;
case 3 :
_root.wall_mc_5.gotoAndPlay("SHAKE");
_root.wall_mc_2.gotoAndPlay("SHAKE");
}
current_wall++;
if (current_wall == 4) {
current_wall = 1;
}
}
}
function startDemo() {
delete onEnterFrame;
delete onMouseMove;
stopAllSounds();
_root.demoMode = true;
_root.gotoAndStop("GAME");
}
stop();
stopAllSounds();
demoMode = false;
whoosh_sound_sfx.start();
startGlowing = false;
yawn_timer_init = 500;
yawn_timer = yawn_timer_init;
onMouseMove = function () {
yawn_timer = yawn_timer_init;
};
switchProgramTimerInit = 100;
switchProgramTimer = switchProgramTimerInit;
total_programs = 5;
current_program = random(total_programs);
chooseProgram();
onEnterFrame = function () {
yawn_timer--;
if (yawn_timer == 0) {
startDemo();
}
if (startGlowing) {
_root["flashProgram" + current_program]();
switchProgramTimer--;
if (switchProgramTimer == 0) {
switchProgramTimer = switchProgramTimerInit;
chooseProgram();
}
}
if (menu_loop_sfx.position > 7941) {
menu_loop_sfx.stop();
menu_loop_sfx.start();
}
};
Frame 6
if (_root.bgmOn == true) {
bgm_btn.btnState = "on";
} else {
bgm_btn.btnState = "off";
}
if (_root.sfxOn == true) {
sfx_btn.btnState = "on";
} else {
sfx_btn.btnState = "off";
}
bgm_btn.gotoAndStop(bgm_btn.btnState);
sfx_btn.gotoAndStop(sfx_btn.btnState);
Instance of Symbol 180 MovieClip "bgm_btn" in Frame 6
onClipEvent (load) {
this._alpha = 50;
}
on (release) {
if (_root.sfxOn == true) {
_root.mouse_down_sfx.start();
}
if (this.btnState == "off") {
this.btnState = "on";
_root.bgmOn = true;
_root.game_loop_sfx.setVolume(100);
} else if (this.btnState == "on") {
this.btnState = "off";
_root.bgmOn = false;
_root.game_loop_sfx.setVolume(0);
}
this.gotoAndStop(this.btnState);
}
on (rollOver) {
if (_root.sfxOn == true) {
_root.mouse_over_sfx.start();
}
this._alpha = 100;
}
on (rollOut) {
this._alpha = 50;
if (this.btnState == "on") {
this.gotoAndStop(1);
} else if (this.btnState == "off") {
this.gotoAndStop(3);
}
}
Instance of Symbol 180 MovieClip "sfx_btn" in Frame 6
onClipEvent (load) {
this._alpha = 50;
}
on (release) {
if (_root.sfxOn == false) {
_root.mouse_down_sfx.start();
}
if (this.btnState == "off") {
this.btnState = "on";
_root.sfxOn = true;
_root.powerup_sfx.setVolume(100);
} else if (this.btnState == "on") {
this.btnState = "off";
_root.sfxOn = false;
_root.powerup_sfx.setVolume(0);
}
this.gotoAndStop(this.btnState);
}
on (rollOver) {
if (_root.sfxOn == true) {
_root.mouse_over_sfx.start();
}
this._alpha = 100;
}
on (rollOut) {
this._alpha = 50;
if (this.btnState == "on") {
this.gotoAndStop(1);
} else if (this.btnState == "off") {
this.gotoAndStop(3);
}
}
Frame 8
function attachBalls(numOfBalls, passedX, passedY, passedState) {
i = 0;
while (i < numOfBalls) {
attached_ball_mc = _root.ball_container.attachMovie("ball_mc", "ball_mc_" + _root.ball_container.getNextHighestDepth(), _root.ball_container.getNextHighestDepth());
attached_ball_mc.ball_init = ball_init;
attached_ball_mc.ball_init();
attached_ball_mc.ball_fsm = ball_fsm;
attached_ball_mc.checkWallCollision = checkWallCollision;
ball_array.push(attached_ball_mc);
attached_ball_mc._x = passedX;
attached_ball_mc._y = passedY;
if (passedState != null) {
attached_ball_mc.ball_state = passedState;
attached_ball_mc.ball_x_vel = (ball_array[0].ball_x_vel + random(3)) - random(4);
attached_ball_mc.ball_y_vel = ball_array[0].ball_y_vel;
}
i++;
}
}
function resetGame() {
paddle_mc.removeMovieClip();
ball_trails_container.removeMovieClip();
ball_container.removeMovieClip();
power_container.removeMovieClip();
get_ready_mc.removeMovieClip();
_x = 0;
_y = 0;
_rotation = 0;
this.i = 1;
while (this.i < 7) {
_root["wall_mc_" + this.i].gotoAndStop("STATIC");
this.i++;
}
flip_on = false;
flip_timer_init = 50;
flip_timer = flip_timer_init;
flipOnTimerInit = 200;
flipOnTimer = flipOnTimerInit;
game_state = "READY_COUNTER";
game_score = 0;
powerTarget = 100;
comboTarget = 100;
combo_on = false;
combo_array = [];
i = 1;
while (i < 4) {
_root["cmb_tile_" + i].gotoAndStop(1);
i++;
}
_root.extraWall = false;
_root.blinkTimerInit = 8;
_root.blinkTimer = blinkTimerInit;
_root.extraWallTimerInit = 200;
_root.extraWallTimer = _root.extraWallTimerInit;
_root.createEmptyMovieClip("power_container", _root.getNextHighestDepth());
_root.attachMovie("paddle_mc", "paddle_mc", _root.getNextHighestDepth());
paddle_mc._x = 342.4;
paddle_mc._y = 396;
_root.createEmptyMovieClip("ball_trails_container", _root.getNextHighestDepth());
_root.createEmptyMovieClip("ball_container", _root.getNextHighestDepth());
if (demoMode == true) {
_root.attachMovie("demo_mode_mc", "demo_mode_mc", _root.getNextHighestDepth());
demoTimer = 1000;
onMouseDown = function () {
if (demoMode == true) {
abortDemo();
}
};
}
ball_array = [];
attachBalls(1, 277.9, 110, null);
_root.attachMovie("get_ready_mc", "get_ready_mc", _root.getNextHighestDepth());
get_ready_mc.gotoAndStop("READY");
paddle_mc.gotoAndStop("STATIC");
ball_trails_enabled = true;
ready_conter = 75;
}
function ball_init() {
this.ball_state = "AIR_DOWN";
this.ball_gravity = 2;
this.ball_x_vel = 0;
this.ball_y_vel = 0;
this.ball_jump_amount = 32;
this.trail_interval_init = 1;
this.trail_interval = this.trail_interval_init;
}
function ball_fsm() {
switch (this.ball_state) {
case "AIR_DOWN" :
this.ball_y_vel = this.ball_y_vel + this.ball_gravity;
this.checkWallCollision();
if (_root.paddle_mc.hitTest(this)) {
this.ball_state = "AIR_UP";
this.ball_y_vel = -(this.ball_jump_amount + random(7));
this.ball_x_vel = Math.floor((-Math.floor(_root.paddle_mc._x - (this._x + (this._width / 2)))) / 2) + (random(4) - random(4));
_root.paddle_mc._rotation = _root.paddle_mc._rotation + this.ball_x_vel;
_root.paddle_mc.gotoAndPlay("SHAKE");
paddle_hit_sfx.start();
} else if ((_root.extraWall == true) && (_root.power_container.huge_paddle_mc.hit_area.hitTest(this))) {
this.ball_state = "AIR_UP";
this.ball_y_vel = -(this.ball_jump_amount + random(7));
if ((this._y + this._height) < _root.power_container.huge_paddle_mc._y) {
this._y = _root.power_container.huge_paddle_mc - this._height;
}
paddle_hit_sfx.start();
} else {
this._y = this._y + this.ball_y_vel;
if (this.ball_x_vel > 50) {
this.ball_x_vel = 50;
}
this._x = this._x + this.ball_x_vel;
}
if (_root.ball_trails_enabled) {
this.trail_interval--;
if (this.trail_interval == 0) {
this.trail_interval = this.trail_interval_init;
this.attached_trail = _root.ball_trails_container.attachMovie("ball_trail_mc", "ball_trail_mc" + _root.ball_trails_container.getNextHighestDepth(), _root.ball_trails_container.getNextHighestDepth());
this.attached_trail._x = this._x;
this.attached_trail._y = this._y;
}
}
break;
case "AIR_UP" :
this.ball_y_vel = this.ball_y_vel + this.ball_gravity;
this.checkWallCollision();
if (Math.floor(this.ball_y_vel) >= 1) {
this.ball_state = "AIR_DOWN";
}
this._y = this._y + this.ball_y_vel;
if (this.ball_x_vel > 50) {
this.ball_x_vel = 50;
}
this._x = this._x + this.ball_x_vel;
if (!_root.ball_trails_enabled) {
break;
}
this.trail_interval--;
if (this.trail_interval != 0) {
break;
}
this.trail_interval = this.trail_interval_init;
this.attached_trail = _root.ball_trails_container.attachMovie("ball_trail_mc", "ball_trail_mc" + _root.ball_trails_container.getNextHighestDepth(), _root.ball_trails_container.getNextHighestDepth());
this.attached_trail._x = this._x;
this.attached_trail._y = this._y;
}
}
function checkWallCollision() {
this.i = 1;
while (this.i < 7) {
if (_root["wall_mc_" + this.i].hitTest(this) && (_root["wall_mc_" + this.i]._currentframe == 1)) {
if ((this.ball_x_vel + Math.abs(this.ball_x_vel)) == 0) {
this.ball_x_vel = (-1 * this.ball_x_vel) + 3;
} else {
this.ball_x_vel = (-1 * this.ball_x_vel) - 3;
}
if (((this.i == 1) or (this.i == 3)) or (this.i == 5)) {
if (this._x < (_root["wall_mc_" + this.i]._x + _root["wall_mc_" + this.i]._width)) {
this._x = (_root["wall_mc_" + this.i]._x + _root["wall_mc_" + this.i]._width) + 2;
}
} else if ((this._x + this._width) > _root["wall_mc_" + this.i]._x) {
this._x = (_root["wall_mc_" + this.i]._x - this._width) - 2;
}
_root.attached_bubble = _root.power_container.attachMovie("score_bubble_2", "s_b_" + _root.power_container.getNextHighestDepth(), _root.power_container.getNextHighestDepth());
_root.attached_bubble._x = this._x;
_root.attached_bubble._y = this._y;
if ((this.i == 1) or (this.i == 2)) {
_root.game_score = _root.game_score + 10;
_root.attached_bubble.passed_score = 10;
if (_root.combo_on == true) {
if (_root.combo_array[_root.targetTileNumber - 1] == 1) {
_root["cmb_tile_" + _root.targetTileNumber].gotoAndStop("DONE");
_root.targetTileNumber++;
if (_root.targetTileNumber == 4) {
tempvar1 = 0;
this.s = 0;
while (this.s < _root.combo_array.length) {
tempvar1 = tempvar1 + (_root.combo_array[this.s] * 100);
this.s++;
}
_root.game_score = _root.game_score + tempvar1;
combo_bonus_sfx.start();
_root.power_container.attachMovie("score_bubble_mc", "score_bubble_mc", _root.power_container.getNextHighestDepth());
_root.power_container.score_bubble_mc.passed_score = tempvar1;
_root.comboTarget = _root.game_score + 200;
_root.combo_on = false;
}
} else {
_root.combo_on = false;
this.s = 1;
while (this.s < 4) {
_root["cmb_tile_" + this.s].gotoAndStop(1);
this.s++;
}
_root.comboTarget = _root.game_score + 100;
}
}
}
if ((this.i == 3) or (this.i == 4)) {
_root.game_score = _root.game_score + 20;
_root.attached_bubble.passed_score = 20;
if (_root.combo_on == true) {
if (_root.combo_array[_root.targetTileNumber - 1] == 2) {
_root["cmb_tile_" + _root.targetTileNumber].gotoAndStop("DONE");
_root.targetTileNumber++;
if (_root.targetTileNumber == 4) {
tempvar1 = 0;
this.s = 0;
while (this.s < _root.combo_array.length) {
tempvar1 = tempvar1 + (_root.combo_array[this.s] * 100);
this.s++;
}
_root.game_score = _root.game_score + tempvar1;
combo_bonus_sfx.start();
_root.power_container.attachMovie("score_bubble_mc", "score_bubble_mc", _root.power_container.getNextHighestDepth());
_root.power_container.score_bubble_mc.passed_score = tempvar1;
_root.comboTarget = _root.game_score + 200;
_root.combo_on = false;
}
} else {
_root.combo_on = false;
this.s = 1;
while (this.s < 4) {
_root["cmb_tile_" + this.s].gotoAndStop(1);
this.s++;
}
_root.comboTarget = _root.game_score + 100;
}
}
}
if ((this.i == 5) or (this.i == 6)) {
_root.game_score = _root.game_score + 50;
_root.attached_bubble.passed_score = 50;
if (_root.combo_on == true) {
if (_root.combo_array[_root.targetTileNumber - 1] == 3) {
_root["cmb_tile_" + _root.targetTileNumber].gotoAndStop("DONE");
_root.targetTileNumber++;
if (_root.targetTileNumber == 4) {
tempvar1 = 0;
this.s = 0;
while (this.s < _root.combo_array.length) {
tempvar1 = tempvar1 + (_root.combo_array[this.s] * 100);
this.s++;
}
_root.game_score = _root.game_score + tempvar1;
combo_bonus_sfx.start();
_root.power_container.attachMovie("score_bubble_mc", "score_bubble_mc", _root.power_container.getNextHighestDepth());
_root.power_container.score_bubble_mc.passed_score = tempvar1;
_root.comboTarget = _root.game_score + 200;
_root.combo_on = false;
}
} else {
_root.combo_on = false;
this.s = 1;
while (this.s < 4) {
_root["cmb_tile_" + this.s].gotoAndStop(1);
this.s++;
}
_root.comboTarget = _root.game_score + 100;
}
}
}
_root[("wall_" + (random(2) + 1)) + "_hit_sfx"].start();
_root["wall_mc_" + this.i].gotoAndPlay("SHAKE");
break;
}
this.i++;
}
}
function paddleMove() {
if (demoMode == false) {
tempxvel = _xmouse;
if (tempxvel < ((_root.wall_mc_5._x + _root.wall_mc_5._width) + (paddle_mc._width / 2))) {
tempxvel = ((_root.wall_mc_5._x + _root.wall_mc_5._width) + (paddle_mc._width / 2)) + 1;
} else if (tempxvel > (_root.wall_mc_6._x - (paddle_mc._width / 2))) {
tempxvel = (_root.wall_mc_6._x - (paddle_mc._width / 2)) - 1;
}
paddle_mc._x = paddle_mc._x - ((paddle_mc._x - tempxvel) / 4);
} else {
tempxvel = (ball_array[0]._x + (ball_array[0]._width / 2)) + ball_array[0].ball_x_vel;
if (tempxvel < ((_root.wall_mc_5._x + _root.wall_mc_5._width) + (paddle_mc._width / 2))) {
tempxvel = ((_root.wall_mc_5._x + _root.wall_mc_5._width) + (paddle_mc._width / 2)) + 1;
} else if (tempxvel > (_root.wall_mc_6._x - (paddle_mc._width / 2))) {
tempxvel = (_root.wall_mc_6._x - (paddle_mc._width / 2)) - 1;
}
paddle_mc._x = paddle_mc._x - ((paddle_mc._x - tempxvel) / 4);
if (Key.isDown(32)) {
abortDemo();
}
demoTimer--;
if (demoTimer == 0) {
abortDemo();
}
}
}
function abortDemo() {
delete onMouseDown;
delete onEnterFrame;
_x = 0;
_y = 0;
_rotation = 0;
this.s = 1;
while (this.s < 4) {
_root["cmb_tile_" + this.s].gotoAndStop(1);
this.s++;
}
_root.paddle_mc.removeMovieClip();
_root.ball_trails_container.removeMovieClip();
_root.ball_container.removeMovieClip();
_root.power_container.removeMovieClip();
_root.get_ready_mc.removeMovieClip();
_root.demo_mode_mc.removeMovieClip();
stopAllSounds();
_root.gotoAndStop("MAIN_MENU");
}
resetGame();
onEnterFrame = function () {
switch (game_state) {
case "READY_COUNTER" :
tempvar = get_ready_mc.time_remaining_txt.text;
paddleMove();
ready_conter--;
get_ready_mc.time_remaining_txt.text = Math.floor((ready_conter / 2) / 10);
if (!(get_ready_mc.time_remaining_txt.text === tempvar)) {
blip_count_sfx.start();
}
if (ready_conter == 20) {
get_ready_mc.gotoAndPlay("GO_DISPLAY");
ready_conter = 20;
blip_go_sfx.start();
game_state = "GO_DISPLAY";
}
break;
case "GO_DISPLAY" :
paddleMove();
ready_conter--;
if (ready_conter == 1) {
get_ready_mc.removeMovieClip();
if (demoMode == false) {
game_loop_sfx.start();
}
game_state = "GAME_ON";
}
break;
case "GAME_ON" :
if (game_loop_sfx.position > 7941) {
game_loop_sfx.stop();
game_loop_sfx.start();
}
paddleMove();
i = 0;
while (i < ball_array.length) {
ball_array[i].ball_fsm();
if (ball_array[i]._y > 450) {
ball_array[i].removeMovieClip();
ball_array.splice(i, 1);
}
i++;
}
if (_root.game_score >= _root.powerTarget) {
if (_root.flip_on == false) {
_root.attached_power = _root.power_container.attachMovie("powerup_mc", "powerup_mc_" + _root.power_container.getNextHighestDepth(), _root.power_container.getNextHighestDepth());
_root.attached_power._x = random(491) + 32;
_root.attached_power._y = -34;
}
_root.powerTarget = _root.powerTarget + (400 + random(200));
}
if (_root.game_score >= _root.comboTarget) {
if (combo_on == false) {
_root.power_container.score_bubble_mc.removeMovieClip();
combo_array = [];
i = 1;
while (i < 4) {
if (game_score < 500) {
tempvar = 2;
} else if (game_score < 1000) {
tempvar = 3;
} else if (game_score < 1500) {
tempvar = 4;
} else if (game_score < 2000) {
tempvar = random(2) + 2;
} else if (game_score < 3000) {
tempvar = random(2) + 3;
} else {
tempvar = random(3) + 2;
}
_root["cmb_tile_" + i].gotoAndStop(tempvar);
combo_array[i - 1] = tempvar - 1;
i++;
}
targetTileNumber = 1;
combo_on = true;
}
}
if (_root.extraWall == true) {
_root.power_container.timer_bar.gotoAndStop(extraWallTimer / 2);
extraWallTimer--;
if ((extraWallTimer / 2) < 40) {
blinkTimer--;
if (blinkTimer == 0) {
blinkTimer = blinkTimerInit;
if (_root.power_container.huge_paddle_mc._alpha == 100) {
_root.power_container.huge_paddle_mc._alpha = 10;
} else {
_root.power_container.huge_paddle_mc._alpha = 100;
}
}
} else {
_root.power_container.huge_paddle_mc._alpha = 100;
}
if (extraWallTimer < 1) {
_root.power_container.huge_paddle_mc.removeMovieClip();
_root.power_container.timer_bar.removeMovieClip();
_root.extraWall = false;
}
}
if (_root.flip_on == true) {
_root.power_container.timer_bar_2.gotoAndStop(flipOnTimer / 2);
flipOnTimer--;
if (flipOnTimer < 1) {
_root.power_container.timer_bar_2.removeMovieClip();
_root.extraWall = false;
_root._rotation = 0;
_root._x = 0;
_root._y = 0;
_root.game_score = _root.game_score + 50;
_root.game_state = "FLIP_TIMER";
_root.flip_on = false;
_root.powerup_sfx.start();
}
}
if (ball_array.length == 0) {
game_state = "GAMEOVER";
_x = 0;
_y = 0;
_rotation = 0;
this.s = 1;
while (this.s < 4) {
_root["cmb_tile_" + this.s].gotoAndStop(1);
this.s++;
}
this.i = 1;
while (this.i < 7) {
_root["wall_mc_" + this.i].gotoAndStop("STATIC");
this.i++;
}
power_container.removeMovieClip();
if (demoMode == false) {
game_loop_sfx.stop();
gameover_sfx.start();
_root.attachMovie("gameover_mc", "gameover_mc", _root.getNextHighestDepth());
} else {
abortDemo();
}
}
break;
case "FLIP_TIMER" :
if (game_loop_sfx.position > 7941) {
game_loop_sfx.stop();
game_loop_sfx.start();
}
paddleMove();
flip_timer--;
if (flip_timer == 1) {
game_state = "GAME_ON";
flip_timer = flip_timer_init;
}
break;
case "GAMEOVER" :
}
};
Symbol 4 MovieClip [score_bubble_2] Frame 10
stop();
timer = 80;
onEnterFrame = function () {
if (timer < 50) {
this._alpha = this._alpha - 5;
this._y = this._y - 1;
}
timer--;
if (timer == 1) {
this.removeMovieClip();
}
};
Symbol 13 MovieClip [ball_trail_mc] Frame 1
_alpha = 40;
onEnterFrame = function () {
if ((_root.game_state == "GAME_ON") or (_root.game_state == "GAMEOVER")) {
_alpha = (_alpha - 5);
if (_alpha <= 5) {
this.removeMovieClip();
}
}
};
Symbol 16 MovieClip [demo_mode_mc] Frame 1
this._x = 163.4;
this._y = -6.7;
Symbol 18 Button
on (release) {
stopAllSounds();
_root.mouse_down_sfx.start();
_root.resetGame();
_root.gameover_mc.removeMovieClip();
}
on (rollOver) {
_root.mouse_over_sfx.start();
}
Symbol 22 Button
on (release) {
stopAllSounds();
_root.mouse_down_sfx.start();
delete _root.onEnterFrame;
_root.paddle_mc.removeMovieClip();
_root.ball_trails_container.removeMovieClip();
_root.ball_container.removeMovieClip();
_root.power_container.removeMovieClip();
_root.get_ready_mc.removeMovieClip();
_root.gotoAndStop("MAIN_MENU");
_root.gameover_mc.removeMovieClip();
}
on (rollOver) {
_root.mouse_over_sfx.start();
}
Symbol 24 Button
on (release) {
stopAllSounds();
_root.mouse_down_sfx.start();
delete _root.onEnterFrame;
_root.paddle_mc.removeMovieClip();
_root.ball_trails_container.removeMovieClip();
_root.ball_container.removeMovieClip();
_root.power_container.removeMovieClip();
_root.get_ready_mc.removeMovieClip();
_root.gotoAndStop("HIGHSCORES");
_root.gameover_mc.removeMovieClip();
}
on (rollOver) {
_root.mouse_over_sfx.start();
}
Symbol 29 MovieClip [gameover_mc] Frame 1
this._x = 126;
this._y = 153;
Symbol 31 MovieClip [get_ready_mc] Frame 1
_x = 247.9;
_y = 200.2;
Symbol 31 MovieClip [get_ready_mc] Frame 2
stop();
Symbol 36 MovieClip [huge_paddle_mc] Frame 1
this._x = 23;
this._y = 429;
this.hit_area._visible = false;
Symbol 39 MovieClip [paddle_mc] Frame 1
stop();
_rotation = 0;
Symbol 60 MovieClip [powerup_mc] Frame 1
this.gotoAndStop(random(this._totalframes) + 1);
onEnterFrame = function () {
_y = (_y + 5);
if (this.hitTest(_root.paddle_mc)) {
switch (this._currentframe) {
case 1 :
_root.attachBalls(2, _root.ball_array[0]._x, _root.ball_array[0]._y, _root.ball_array[0].ball_state);
_root.game_score = _root.game_score + 50;
break;
case 2 :
_root[("wall_" + (random(2) + 1)) + "_hit_sfx"].start();
_root.attached_bubble = _root.power_container.attachMovie("score_bubble_2", "s_b_" + _root.power_container.getNextHighestDepth(), _root.power_container.getNextHighestDepth());
_root.attached_bubble._x = this._x;
_root.attached_bubble._y = this._y;
_root.attached_bubble.passed_score = 200;
_root.game_score = _root.game_score + 160;
_root[("wall_" + (random(2) + 1)) + "_hit_sfx"].start();
break;
case 3 :
if (!(_root.power_container.huge_paddle_mc === undefined)) {
_root.power_container.huge_paddle_mc.removeMovieClip();
} else {
_root.power_container.attachMovie("timer_bar", "timer_bar", _root.power_container.getNextHighestDepth());
_root.power_container.timer_bar.gotoAndStop(100);
}
_root.power_container.attachMovie("huge_paddle_mc", "huge_paddle_mc", _root.power_container.getNextHighestDepth());
_root.extraWall = true;
_root.extraWallTimer = _root.extraWallTimerInit;
_root.game_score = _root.game_score + 200;
break;
case 4 :
if (_root.flip_on == false) {
_root._rotation = _root._rotation + 180;
_root._x = _root._x + (_root._width - 45);
_root._y = _root._y + (_root._height + 10);
_root.power_container.attachMovie("timer_bar_2", "timer_bar_2", _root.power_container.getNextHighestDepth());
_root.power_container.timer_bar_2.gotoAndStop(100);
_root.flip_on = true;
_root.flipOnTimer = _root.flipOnTimerInit;
} else {
_root._rotation = 0;
_root._x = 0;
_root._y = 0;
_root.power_container.timer_bar_2.removeMovieClip();
_root.flip_on = false;
}
_root.game_state = "FLIP_TIMER";
_root.game_score = _root.game_score + 50;
}
_root.powerup_sfx.start();
this.removeMovieClip();
}
if (this._y > 450) {
this.removeMovieClip();
}
};
Symbol 70 MovieClip [score_bubble_mc] Frame 1
this._x = 485;
this._y = 52;
timer = 100;
onEnterFrame = function () {
timer--;
if (timer == 1) {
this.s = 1;
while (this.s < 4) {
_root["cmb_tile_" + this.s].gotoAndStop(1);
this.s++;
}
this.removeMovieClip();
}
};
Symbol 70 MovieClip [score_bubble_mc] Frame 10
this.gotoAndPlay(2);
Symbol 74 MovieClip [timer_bar] Frame 1
this._x = 230;
this._y = 4.5;
Symbol 77 MovieClip [timer_bar_2] Frame 1
this._x = 280;
this._y = 40;
Symbol 91 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 2
play();
Symbol 103 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 108 Button
on (release) {
delete _root.onEnterFrame;
delete _root.onMouseMove;
stopAllSounds();
_root.mouse_down_sfx.start();
_root.gotoAndStop("GAME");
}
on (rollOver) {
_root.mouse_over_sfx.start();
}
Symbol 109 Button
on (release) {
delete _root.onEnterFrame;
delete _root.onMouseMove;
stopAllSounds();
_root.mouse_down_sfx.start();
_root.gotoAndStop("OPTIONS");
}
on (rollOver) {
_root.mouse_over_sfx.start();
}
Symbol 110 Button
on (release) {
delete _root.onEnterFrame;
delete _root.onMouseMove;
stopAllSounds();
_root.mouse_down_sfx.start();
_root.gotoAndStop("HIGHSCORES");
}
on (rollOver) {
_root.mouse_over_sfx.start();
}
Symbol 111 Button
on (release) {
stopAllSounds();
_root.mouse_down_sfx.start();
_root.startDemo();
}
on (rollOver) {
_root.mouse_over_sfx.start();
}
Symbol 112 Button
on (release) {
delete _root.onEnterFrame;
delete _root.onMouseMove;
stopAllSounds();
_root.mouse_down_sfx.start();
_root.gotoAndStop("CREDITS");
}
on (rollOver) {
_root.mouse_over_sfx.start();
}
Symbol 113 Button
on (release) {
delete _root.onEnterFrame;
delete _root.onMouseMove;
stopAllSounds();
_root.mouse_down_sfx.start();
_root.gotoAndStop("INSTRUCTIONS");
}
on (rollOver) {
_root.mouse_over_sfx.start();
}
Symbol 123 MovieClip Frame 50
_root.startGlowing = true;
_root.menu_loop_sfx.start();
Symbol 123 MovieClip Frame 90
gotoAndPlay (51);
Symbol 136 Button
on (release) {
delete _root.onEnterFrame;
_root.mouse_down_sfx.start();
_root.gotoAndStop("MAIN_MENU");
}
on (rollOver) {
_root.mouse_over_sfx.start();
}
Symbol 137 Button
on (release) {
_root.mouse_down_sfx.start();
gotoAndStop(_currentframe + 1);
}
on (rollOver) {
_root.mouse_over_sfx.start();
}
Symbol 141 Button
on (release) {
_root.mouse_down_sfx.start();
gotoAndStop(_currentframe - 1);
}
on (rollOver) {
_root.mouse_over_sfx.start();
}
Symbol 165 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 1
stop();