Frame 1
bar._xscale = (loaded / total) * 100;
Frame 2
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
total_k = Math.round(total / 1000);
loaded_k = Math.round(loaded / 1000);
if (loaded < total) {
prevFrame();
play();
}
Frame 3
_quality = "LOW";
stop();
Frame 4
function absloc(target) {
point = new Object();
point.x = target._x;
point.y = target._y;
target._parent.localToGlobal(point);
return(point);
}
function relloc(target) {
point = new Object();
point.x = target._x;
point.y = target._y;
target._parent.globalToLocal(point);
return(point);
}
function ricochet(oldangle, impactangle) {
return((impactangle * 2) - oldangle);
}
explode_sfx = new Sound();
explode_sfx.attachSound("explode1.wav");
die_sfx = new Sound();
die_sfx.attachSound("explode4.wav");
boss_die_sfx = new Sound();
boss_die_sfx.attachSound("explode3.wav");
shot_sfx = new Sound();
shot_sfx.attachSound("explode2.wav");
bling_sfx = new Sound();
bling_sfx.attachSound("bling.wav");
star_sfx = new Sound();
star_sfx.attachSound("drop.wav");
music = new Sound();
music.attachSound("second_line_music.wav");
Mouse.hide();
startDrag (cursor, true);
final_score = 0;
best_combo = 0;
paused = 0;
pstick = 0;
music_on = 1;
mstick = 0;
pause_screen._visible = 0;
onMouseDown = function () {
_root.firing = 1;
};
onMouseUp = function () {
_root.firing = 0;
};
Frame 6
if (Key.isDown(77)) {
if (!mstick) {
music_on = 1 - music_on;
if (music_on) {
music.start(loop);
} else {
music.stop();
}
mstick = 1;
}
} else {
mstick = 0;
}
if (Key.isDown(80)) {
if ((!pstick) && (main_game.pausible())) {
paused = 1 - paused;
if (paused) {
main_game._visible = 0;
} else {
main_game._visible = 1;
}
pause_screen._visible = 1 - main_game._visible;
pstick = 1;
}
} else {
pstick = 0;
}
if (main_game.time || (main_game.combo)) {
prevFrame();
play();
} else {
main_game.game_over = 1;
final_score = main_game.total_score;
}
Frame 7
pause_screen._visible = 0;
Mouse.show();
stop();
Frame 8
gotoAndPlay (3);
Frame 10
gotoAndPlay (3);
Symbol 39 Button
on (release) {
play();
}
Symbol 43 Button
on (release) {
gotoAndStop (9);
}
Symbol 48 MovieClip Frame 2
if (_parent.main_game.time > 300) {
prevFrame();
play();
}
Symbol 55 MovieClip Frame 1
var new_time = 0;
var old_time = 0;
var fps;
Symbol 55 MovieClip Frame 2
new_time = getTimer();
fps = int(1000 / (new_time - old_time));
old_time = new_time;
Symbol 55 MovieClip Frame 3
prevFrame();
play();
Symbol 72 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 1
piece_ul.gotoAndStop(1);
piece_dr.gotoAndStop(1);
piece_dr2.gotoAndStop(2);
size = 800;
Symbol 86 MovieClip Frame 3
piece_ul._x = -size;
piece_ul._y = -size;
piece_dr._x = size;
piece_dr._y = size;
piece_dr2._x = size;
piece_dr2._y = size;
prevFrame();
play();
Symbol 94 MovieClip Frame 1
function boss_die() {
this.ghost = 1;
this._alpha = 50;
hp = 0;
_parent.level_up();
_parent.boss_fight = 0;
_root.boss_die_sfx.start();
}
function boss_reset() {
this.ghost = 0;
this._alpha = 100;
hp = 0;
this._visible = 0;
this._y = -500;
this._x = 0;
this._xscale = 100;
this._yscale = 100;
this._rotation = 0;
this.polarity = 0;
}
boss_reset();
Symbol 94 MovieClip Frame 3
if (_parent.boss_fight < 2) {
prevFrame();
play();
}
Symbol 94 MovieClip Frame 4
this._visible = 1;
gun0._visible = 0;
gun_delay = 0;
hp = 100;
Symbol 94 MovieClip Frame 6
if (this._y < 0) {
this._y = this._y + 16;
prevFrame();
play();
} else if (this._y > 0) {
this._y = 0;
}
Symbol 94 MovieClip Frame 8
if (_parent.cur_balls < (_parent.max_balls / 2)) {
if (!gun_delay) {
gun0._rotation = _parent.get_rotation(this, _parent.player) - this._rotation;
_parent.new_ball(this._x, this._y, gun0._rotation + this._rotation, _parent.max_speed, 2);
_root.shot_sfx.start();
} else if (!(gun_delay % 8)) {
var x = (((_root.absloc(gun1).x - _parent._x) * 100) / _parent._xscale);
var y = (((_root.absloc(gun1).y - _parent._y) * 100) / _parent._yscale);
_parent.new_ball(x, y, gun1._rotation + this._rotation, _parent.max_speed / 2, 2);
var x = (((_root.absloc(gun2).x - _parent._x) * 100) / _parent._xscale);
var y = (((_root.absloc(gun2).y - _parent._y) * 100) / _parent._yscale);
_parent.new_ball(x, y, gun2._rotation + this._rotation, _parent.max_speed / 2, 2);
_root.shot_sfx.start();
}
}
this._rotation = this._rotation - 5;
gun_delay++;
gun_delay = gun_delay % 64;
if (hp > 0) {
prevFrame();
play();
}
Symbol 94 MovieClip Frame 9
boss_die();
Symbol 94 MovieClip Frame 11
this._rotation = this._rotation + 10;
this._y = this._y + 8;
if (_parent.cur_balls < (_parent.max_balls / 2)) {
_parent.new_ball(this._x, this._y, this._rotation, _parent.speed_step, 1);
_root.shot_sfx.start();
}
if (this._xscale > 0) {
this._xscale = this._xscale - 5;
this._yscale = this._yscale - 5;
prevFrame();
play();
}
Symbol 94 MovieClip Frame 12
boss_reset();
Symbol 94 MovieClip Frame 14
if (_parent.boss_fight < 2) {
prevFrame();
play();
}
Symbol 94 MovieClip Frame 15
this._visible = 1;
gun_delay = 0;
dx = 1;
dy = 1;
hp = 100;
Symbol 94 MovieClip Frame 17
this._x = this._x + ((dx * _parent.max_speed) / 2);
this._y = this._y + ((dy * _parent.max_speed) / 2);
this._rotation = this._rotation + 10;
if (Math.abs(this._x) > ((_parent.frame._width / 2) - 64)) {
this.dx = -this.dx;
}
if (this._y < 0) {
prevFrame();
play();
}
Symbol 94 MovieClip Frame 19
this._x = this._x + ((dx * _parent.max_speed) / 4);
this._y = this._y + ((dy * _parent.max_speed) / 4);
this._rotation = this._rotation + 10;
if (Math.abs(this._x) > ((_parent.frame._width / 2) - 64)) {
this.dx = -this.dx;
}
if (Math.abs(this._y) > ((_parent.frame._height / 2) - 64)) {
this.dy = -this.dy;
}
if (_parent.cur_balls < (_parent.max_balls / 2)) {
if (!(gun_delay % 8)) {
_parent.new_ball(this._x, this._y, this._rotation, _parent.max_speed / 2, 2);
_parent.new_ball(this._x, this._y, this._rotation + 90, _parent.max_speed / 2, 2);
_parent.new_ball(this._x, this._y, this._rotation + 180, _parent.max_speed / 2, 2);
_parent.new_ball(this._x, this._y, this._rotation - 90, _parent.max_speed / 2, 2);
_root.shot_sfx.start();
}
}
gun_delay++;
gun_delay = gun_delay % 64;
if (hp > 0) {
prevFrame();
play();
}
Symbol 94 MovieClip Frame 20
boss_die();
Symbol 94 MovieClip Frame 22
this._rotation = this._rotation - 10;
this._y = this._y + 8;
if (_parent.cur_balls < (_parent.max_balls / 2)) {
_parent.new_ball(this._x, this._y, this._rotation, _parent.speed_step, 1);
_root.shot_sfx.start();
}
if (this._xscale > 0) {
this._xscale = this._xscale - 5;
this._yscale = this._yscale - 5;
prevFrame();
play();
}
Symbol 94 MovieClip Frame 23
boss_reset();
Symbol 94 MovieClip Frame 25
if (_parent.boss_fight < 2) {
prevFrame();
play();
}
Symbol 94 MovieClip Frame 26
this._visible = 1;
gun_delay = 0;
top_speed = 16;
dx = top_speed;
ddx = -1;
hp = 100;
this._rotation = _parent.get_rotation(this, _parent.player);
boss_fight = 3;
_parent.boss_helper.gotoAndPlay("underwear helper");
_parent.boss_helper.target._y = -_parent.max_speed;
Symbol 94 MovieClip Frame 28
this._rotation = _parent.get_rotation(this, _parent.player);
if (this._y < -300) {
this._y = this._y + 8;
prevFrame();
play();
} else if (this._y > -300) {
this._y = -300;
}
Symbol 94 MovieClip Frame 30
this._x = this._x + dx;
dx = dx + ddx;
if ((dx * ddx) > top_speed) {
ddx = -ddx;
}
this._rotation = _parent.get_rotation(this, _parent.player);
if (!gun_delay) {
_parent.boss_helper._x = this._x;
_parent.boss_helper._y = this._y;
_parent.boss_helper._rotation = this._rotation;
_root.shot_sfx.start();
}
gun_delay++;
gun_delay = gun_delay % 64;
if (hp > 0) {
prevFrame();
play();
}
Symbol 94 MovieClip Frame 31
boss_die();
Symbol 94 MovieClip Frame 33
this._rotation = this._rotation + 10;
this._y = this._y + 8;
if (_parent.cur_balls < (_parent.max_balls / 2)) {
_parent.new_ball(this._x, this._y, this._rotation, _parent.speed_step, 1);
_root.shot_sfx.start();
}
if (this._xscale > 0) {
this._xscale = this._xscale - 5;
this._yscale = this._yscale - 5;
prevFrame();
play();
}
Symbol 94 MovieClip Frame 34
boss_reset();
Symbol 94 MovieClip Frame 36
if (_parent.boss_fight < 2) {
prevFrame();
play();
}
Symbol 94 MovieClip Frame 37
this._visible = 1;
gun0._visible = 0;
gun1._visible = 0;
gun2._visible = 0;
gun_delay = 0;
dx = 0;
dy = 0;
hp = 50;
Symbol 94 MovieClip Frame 39
this._rotation = this._rotation + 2;
if (this._y < 0) {
this._y = this._y + 16;
prevFrame();
play();
} else if (this._y > 0) {
this._y = 0;
}
Symbol 94 MovieClip Frame 41
if (Math.abs(this._x - _parent.player._x) > (_parent.max_speed / 4)) {
dx = ((this._x < _parent.player._x) ? 1 : -1);
this._x = this._x + ((dx * _parent.max_speed) / 4);
} else {
dx = 0;
}
if (Math.abs(this._y - _parent.player._y) > (_parent.max_speed / 4)) {
dy = ((this._y < _parent.player._y) ? 1 : -1);
this._y = this._y + ((dy * _parent.max_speed) / 4);
} else {
dy = 0;
}
this._rotation = this._rotation - 2;
if (_parent.cur_balls < (_parent.max_balls / 2)) {
if (!(gun_delay % 16)) {
switch (int(gun_delay / 16)) {
case 0 :
var x = (((_root.absloc(gun0).x - _parent._x) * 100) / _parent._xscale);
var y = (((_root.absloc(gun0).y - _parent._y) * 100) / _parent._yscale);
var r = (gun0._rotation + this._rotation);
break;
case 1 :
var x = (((_root.absloc(gun1).x - _parent._x) * 100) / _parent._xscale);
var y = (((_root.absloc(gun1).y - _parent._y) * 100) / _parent._yscale);
var r = (gun1._rotation + this._rotation);
break;
case 2 :
var x = (((_root.absloc(gun2).x - _parent._x) * 100) / _parent._xscale);
var y = (((_root.absloc(gun2).y - _parent._y) * 100) / _parent._yscale);
var r = (gun2._rotation + this._rotation);
}
_parent.new_ball(x, y, r, _parent.max_speed / 2, 2);
_parent.new_ball(x, y, r + 180, _parent.max_speed / 2, 2);
_root.shot_sfx.start();
}
}
gun_delay++;
gun_delay = gun_delay % 48;
if (hp > 0) {
prevFrame();
play();
}
Symbol 94 MovieClip Frame 42
boss_die();
Symbol 94 MovieClip Frame 44
this._rotation = this._rotation + 10;
this._y = this._y + 8;
if (_parent.cur_balls < (_parent.max_balls / 2)) {
_parent.new_ball(this._x, this._y, this._rotation, _parent.speed_step, 1);
_root.shot_sfx.start();
}
if (this._xscale > 0) {
this._xscale = this._xscale - 5;
this._yscale = this._yscale - 5;
prevFrame();
play();
}
Symbol 94 MovieClip Frame 45
boss_reset();
Symbol 94 MovieClip Frame 47
if (_parent.boss_fight < 2) {
prevFrame();
play();
}
Symbol 94 MovieClip Frame 48
suffocation.size = 900;
this._xscale = 200;
this._yscale = 200;
suffocation._visible = 0;
this._visible = 1;
gun_delay = 0;
hp = 100;
Symbol 94 MovieClip Frame 50
cheesecake._rotation = cheesecake._rotation + 5;
if (this._y < 0) {
this._y = this._y + 16;
prevFrame();
play();
} else {
this._y = 0;
suffocation._visible = 1;
suffocation.size = 800;
}
Symbol 94 MovieClip Frame 52
cheesecake._rotation = cheesecake._rotation + 5;
if (gun_delay < 64) {
if (_parent.cur_balls < (_parent.max_balls / 2)) {
if (!(gun_delay % 8)) {
var r = (_parent.get_rotation(this, _parent.player) - this._rotation);
_parent.new_ball(this._x, this._y, r + this._rotation, _parent.max_speed / 2, 2);
_parent.new_ball(this._x, this._y, (r + this._rotation) + 180, _parent.max_speed / 2, 2);
_root.shot_sfx.start();
}
}
} else if (suffocation.size > 100) {
suffocation.size--;
}
gun_delay++;
gun_delay = gun_delay % 128;
if (hp > 0) {
prevFrame();
play();
}
Symbol 94 MovieClip Frame 53
boss_die();
Symbol 94 MovieClip Frame 55
this._rotation = this._rotation + 10;
this._y = this._y + 8;
if (_parent.cur_balls < (_parent.max_balls / 2)) {
_parent.new_ball(this._x, this._y, this._rotation, _parent.speed_step, 1);
_root.shot_sfx.start();
}
if (this._xscale > 0) {
this._xscale = this._xscale - 5;
this._yscale = this._yscale - 5;
prevFrame();
play();
}
Symbol 94 MovieClip Frame 56
boss_reset();
Symbol 94 MovieClip Frame 58
if (_parent.boss_fight < 2) {
prevFrame();
play();
}
Symbol 94 MovieClip Frame 59
this._visible = 1;
gun0._visible = 0;
gun_delay = 0;
hp = 100;
this._rotation = 90;
target._y = -10;
Symbol 94 MovieClip Frame 61
if (this._y < -300) {
this._y = this._y + 8;
prevFrame();
play();
} else if (this._y > -300) {
this._y = -300;
}
Symbol 94 MovieClip Frame 63
if (_parent.cur_balls < (_parent.max_balls / 2)) {
if (!(gun_delay % 8)) {
var x = (((_root.absloc(gun0).x - _parent._x) * 100) / _parent._xscale);
var y = (((_root.absloc(gun0).y - _parent._y) * 100) / _parent._yscale);
_parent.new_ball(x, y, 0, 0, 0);
_root.shot_sfx.start();
}
}
this._rotation = this._rotation + 2;
this._x = ((_root.absloc(target).x - _parent._x) * 100) / _parent._xscale;
this._y = ((_root.absloc(target).y - _parent._y) * 100) / _parent._yscale;
gun_delay++;
gun_delay = gun_delay % 64;
if (hp > 0) {
prevFrame();
play();
}
Symbol 94 MovieClip Frame 64
boss_die();
Symbol 94 MovieClip Frame 66
this._rotation = this._rotation + 10;
this._y = this._y + 8;
if (_parent.cur_balls < (_parent.max_balls / 2)) {
_parent.new_ball(this._x, this._y, this._rotation, _parent.speed_step, 1);
_root.shot_sfx.start();
}
if (this._xscale > 0) {
this._xscale = this._xscale - 5;
this._yscale = this._yscale - 5;
prevFrame();
play();
}
Symbol 94 MovieClip Frame 67
boss_reset();
Symbol 94 MovieClip Frame 69
if (_parent.boss_fight < 2) {
prevFrame();
play();
}
Symbol 94 MovieClip Frame 70
this._visible = 1;
gun_delay = 1;
hp = 100;
boss_fight = 3;
_parent.boss_helper.gotoAndPlay("bipolar helper");
_parent.boss_helper._x = this._x;
_parent.boss_helper._y = this._y;
_parent.boss_helper._visible = 1;
_parent.boss_helper.active = 1;
_parent.boss_helper.text.gotoAndStop(polarity + 1);
Symbol 94 MovieClip Frame 72
if (this._y < 0) {
this._y = this._y + 16;
prevFrame();
play();
} else if (this._y > 0) {
this._y = 0;
}
Symbol 94 MovieClip Frame 74
if (!gun_delay) {
ghost = 1;
this._alpha = 50;
_root.star_sfx.start();
} else if (!(gun_delay % 16)) {
if (_parent.cur_balls < (_parent.max_balls / 2)) {
var r = (_parent.get_rotation(this, _parent.player) - this._rotation);
var i = 0;
while (i < 12) {
_parent.new_ball(this._x, this._y, (r + this._rotation) + (i * 30), _parent.max_speed / 2, 2);
i++;
}
_root.shot_sfx.start();
}
}
if (ghost) {
this._rotation = this._rotation + 10;
if (!(this._rotation % 180)) {
ghost = 0;
this._alpha = 100;
polarity = 1 - polarity;
_parent.boss_helper.text.gotoAndStop(polarity + 1);
}
}
gun_delay++;
gun_delay = gun_delay % 256;
if (hp > 0) {
prevFrame();
play();
}
Symbol 94 MovieClip Frame 75
boss_die();
_parent.boss_helper._visible = 0;
_parent.boss_helper.active = 0;
_parent.boss_helper.gotoAndPlay(2);
Symbol 94 MovieClip Frame 77
this._rotation = this._rotation + 10;
this._y = this._y + 8;
if (_parent.cur_balls < (_parent.max_balls / 2)) {
_parent.new_ball(this._x, this._y, this._rotation, _parent.speed_step, 1);
_root.shot_sfx.start();
}
if (this._xscale > 0) {
this._xscale = this._xscale - 5;
this._yscale = this._yscale - 5;
prevFrame();
play();
}
Symbol 94 MovieClip Frame 78
boss_reset();
Symbol 94 MovieClip Frame 80
if (_parent.boss_fight < 2) {
prevFrame();
play();
}
Symbol 94 MovieClip Frame 81
this._visible = 1;
this._x = 0;
this._y = 0;
this._yscale = 0;
gun_delay = 0;
next_maze = 2;
hp = 4;
boss_fight = 3;
_parent.boss_helper.gotoAndPlay("whirl helper");
_parent.boss_helper._x = 0;
_parent.boss_helper._y = 0;
_parent.boss_helper._xscale = 0;
_parent.boss_helper._yscale = 0;
_parent.boss_helper._visible = 1;
_parent.boss_helper.active = 1;
_parent.boss_helper.maze.gotoAndStop(1);
whirl._xscale = 0;
whirl._yscale = 0;
Symbol 94 MovieClip Frame 83
var f = 0;
if (this._yscale < 100) {
this._yscale = this._yscale + 10;
f = 1;
} else if (this._yscale > 100) {
this._yscale = 100;
}
if (!f) {
if (whirl._xscale < 100) {
whirl._xscale = whirl._xscale + 5;
whirl._yscale = whirl._yscale + 5;
f = 1;
} else if (whirl._xscale > 100) {
whirl._xscale = 100;
whirl._yscale = 100;
}
}
if (f) {
prevFrame();
play();
}
Symbol 94 MovieClip Frame 85
if (_parent.boss_helper._xscale < 100) {
if (gun_delay > 0) {
gun_delay--;
} else {
if ((hp + next_maze) < 6) {
_parent.time = _parent.time + 300;
_root.bling_sfx.start();
_parent.boss_helper.maze.gotoAndStop(next_maze);
next_maze++;
}
_parent.boss_helper._xscale = _parent.boss_helper._xscale + 2;
_parent.boss_helper._yscale = _parent.boss_helper._yscale + 2;
if (_parent.player.popping) {
_parent.boss_helper._xscale = 0;
_parent.boss_helper._yscale = 0;
gun_delay = 32;
}
}
} else if (!_parent.cur_balls) {
_parent.new_ball(this._x, this._y + 1, 0, 0, 0);
_root.shot_sfx.start();
} else if (_parent.player.popping) {
_parent.boss_helper._xscale = 0;
_parent.boss_helper._yscale = 0;
gun_delay = 32;
}
whirl._rotation++;
if (hp > 0) {
prevFrame();
play();
}
Symbol 94 MovieClip Frame 86
boss_die();
_parent.boss_helper._visible = 0;
_parent.boss_helper.active = 0;
_parent.boss_helper.gotoAndPlay(2);
Symbol 94 MovieClip Frame 88
this._rotation = this._rotation + 10;
this._y = this._y + 8;
if (_parent.cur_balls < (_parent.max_balls / 2)) {
_parent.new_ball(this._x, this._y, this._rotation, _parent.speed_step, 1);
_root.shot_sfx.start();
}
if (this._xscale > 0) {
this._xscale = this._xscale - 5;
this._yscale = this._yscale - 5;
prevFrame();
play();
}
Symbol 113 MovieClip Frame 2
if (_parent.boss_fight != 1) {
prevFrame();
play();
}
Symbol 113 MovieClip Frame 10
boss_name.gotoAndStop(_parent.level);
Symbol 113 MovieClip Frame 99
_parent.boss_fight = 2;
Symbol 123 MovieClip Frame 1
this._visible = 0;
gun_delay = 0;
Symbol 123 MovieClip Frame 3
if (_parent.boss_fight < 3) {
prevFrame();
play();
}
Symbol 123 MovieClip Frame 5
var active = 1;
if (Math.abs(this._x) > (_parent.frame._width / 2)) {
active = 0;
}
if (Math.abs(this._y) > (_parent.frame._height / 2)) {
active = 0;
}
if (this._visible != active) {
this._visible = active;
}
if (active) {
this._x = ((_root.absloc(target).x - _parent._x) * 100) / _parent._xscale;
this._y = ((_root.absloc(target).y - _parent._y) * 100) / _parent._yscale;
if (_parent.cur_balls < (_parent.max_balls / 2)) {
if (!gun_delay) {
_parent.new_ball(this._x, this._y, this._rotation + 180, _parent.max_speed / 2, 2);
_parent.new_ball(this._x, this._y, this._rotation + 135, _parent.max_speed / 2, 2);
_parent.new_ball(this._x, this._y, this._rotation - 135, _parent.max_speed / 2, 2);
_parent.new_ball(this._x, this._y, this._rotation + 90, _parent.max_speed / 2, 2);
_parent.new_ball(this._x, this._y, this._rotation - 90, _parent.max_speed / 2, 2);
_root.shot_sfx.start();
}
}
}
gun_delay++;
gun_delay = gun_delay % 8;
prevFrame();
play();
Symbol 123 MovieClip Frame 7
this._x = _parent.boss._x;
this._y = _parent.boss._y;
this._rotation = this._rotation + (_parent.boss.polarity ? -2 : 2);
prevFrame();
play();
Symbol 123 MovieClip Frame 9
this._rotation--;
prevFrame();
play();
Symbol 125 MovieClip Frame 1
this._alpha = 0;
this._xscale = 500;
this._yscale = 500;
Symbol 125 MovieClip Frame 3
if (!_parent.drop_star) {
prevFrame();
play();
}
Symbol 125 MovieClip Frame 4
_root.star_sfx.start();
Symbol 125 MovieClip Frame 6
if (!_root.paused) {
if (this._alpha < 50) {
this._alpha = this._alpha + 5;
}
this._xscale = this._xscale - 10;
this._yscale = this._yscale - 10;
this._rotation = this._rotation - 10;
}
if (this._xscale > 0) {
prevFrame();
play();
}
Symbol 125 MovieClip Frame 7
var i = 0;
while (i < 12) {
_parent.new_ball(this._x, this._y, i * 30, _parent.max_speed / 2, 2);
i++;
}
_root.shot_sfx.start();
_parent.drop_star = 0;
Symbol 127 MovieClip Frame 2
if (!_parent.boss_fight) {
prevFrame();
play();
}
Symbol 127 MovieClip Frame 4
if (_parent.boss_fight) {
prevFrame();
play();
}
Symbol 129 MovieClip Frame 1
function new_ball(x, y, r, s, t) {
var _local3 = max_balls;
var _local2 = 0;
while (_local2 < max_balls) {
if (!b_array[_local2]) {
_local3 = _local2;
break;
}
_local2++;
}
if (_local3 == max_balls) {
return(undefined);
}
player.duplicateMovieClip("b" + _local3, _local3);
this["b" + _local3].gotoAndStop(t + 2);
this["b" + _local3].ghost = t;
this["b" + _local3].number = _local3;
this["b" + _local3]._x = x;
this["b" + _local3]._y = y;
this["b" + _local3]._xscale = 100;
this["b" + _local3]._yscale = 100;
this["b" + _local3]._rotation = r;
if (s > max_speed) {
this["b" + _local3].target._y = -speed_step;
} else {
this["b" + _local3].target._y = -s;
}
cur_balls++;
b_array[_local3] = 1;
}
function get_rotation(ba, bb) {
dx = ba._x - bb._x;
dy = ba._y - bb._y;
return((-Math.atan2(dx, dy)) / (Math.PI/180));
}
function pop_check(b0) {
if (game_over) {
return(undefined);
}
var _local3 = 0;
while (_local3 < max_balls) {
if ((b_array[_local3] && (b0.number != _local3)) && (!this["b" + _local3].ghost)) {
x = _root.absloc(this["b" + _local3]).x;
y = _root.absloc(this["b" + _local3]).y;
if (b0.hitTest(x, y, true)) {
if (boss_fight) {
r = get_rotation(boss, this["b" + _local3]);
new_ball(this["b" + _local3]._x, this["b" + _local3]._y, r + 180, max_speed, 1);
} else if (cur_balls < (max_balls / 2)) {
r = get_rotation(b0, this["b" + _local3]);
new_ball(this["b" + _local3]._x, this["b" + _local3]._y, r + 10, -(this["b" + _local3].target._y - 4), 1);
new_ball(this["b" + _local3]._x, this["b" + _local3]._y, r - 10, -(this["b" + _local3].target._y - 4), 1);
}
explode(this["b" + _local3], 0);
}
}
_local3++;
}
}
function boss_hit_check(b0) {
if (boss.ghost || (game_over)) {
return(undefined);
}
x = _root.absloc(b0).x;
y = _root.absloc(b0).y;
if (boss.hitTest(x, y, true)) {
if (boss.polarity) {
boss.hp++;
} else {
boss.hp--;
}
explode(b0, 2);
}
}
function death_check() {
var _local5 = _root.absloc(player).x;
var _local4 = _root.absloc(player).y;
var _local3 = 0;
while (_local3 < max_balls) {
if (b_array[_local3] && (this["b" + _local3].ghost != 1)) {
if (this["b" + _local3].hitTest(_local5, _local4, true)) {
die();
}
}
_local3++;
}
if (boss_fight) {
if (boss.hitTest(_local5, _local4, true)) {
die();
}
if (boss_helper.active && (boss_helper.hitTest(_local5, _local4, true))) {
die();
}
}
}
function continue_popping(b0) {
if (b0._xscale < 100) {
if (b0 == player) {
if (time && (!game_over)) {
b0._xscale = 100;
b0._yscale = 100;
b0.popping = 0;
b0.gotoAndStop(1);
} else if ((!time) && (game_over)) {
b0._visible = 0;
}
} else {
b_array[b0.number] = 0;
removeMovieClip(b0);
cur_balls--;
}
combo_reset_check();
} else {
b0._xscale = b0._xscale + (b0.dp * 10);
b0._yscale = b0._yscale + (b0.dp * 10);
b0.dp--;
pop_check(b0);
}
}
function move_player() {
if (player.popping) {
continue_popping(player);
} else if ((Math.abs(_xmouse) < (frame._width / 2)) && (Math.abs(_ymouse) < (frame._height / 2))) {
if (Math.abs(player._x - _xmouse) < player_speed) {
player._x = _xmouse;
} else if (player._x < _xmouse) {
player._x = player._x + player_speed;
} else {
player._x = player._x - player_speed;
}
if (Math.abs(player._y - _ymouse) < player_speed) {
player._y = _ymouse;
} else if (player._y < _ymouse) {
player._y = player._y + player_speed;
} else {
player._y = player._y - player_speed;
}
death_check();
}
}
function res_ball(b0) {
b0.ghost = 0;
b0.gotoAndStop(2);
}
function move_ball(b0) {
b0._x = ((_root.absloc(b0.target).x - this._x) * 100) / this._xscale;
b0._y = ((_root.absloc(b0.target).y - this._y) * 100) / this._yscale;
if (Math.abs(b0._x) > (frame._width / 2)) {
res_ball(b0);
b0._x = b0._x + ((b0._x < 0) ? (frame._width) : (-frame._width));
}
if (Math.abs(b0._y) > (frame._height / 2)) {
res_ball(b0);
b0._y = b0._y + ((b0._y < 0) ? (frame._height) : (-frame._height));
}
if ((b0.ghost == 1) && (boss_fight)) {
boss_hit_check(b0);
}
}
function move_all_balls() {
var _local2 = 0;
while (_local2 < max_balls) {
if (b_array[_local2]) {
if (this["b" + _local2].popping) {
continue_popping(this["b" + _local2]);
} else {
move_ball(this["b" + _local2]);
}
}
_local2++;
}
}
function start_boss_fight() {
var _local2 = 0;
while (_local2 < max_balls) {
if (b_array[_local2] && (!this["b" + _local2].popping)) {
explode(this["b" + _local2], 3);
}
_local2++;
}
boss_fight = 1;
}
function combo_reset_check() {
var _local4 = 0;
var _local3 = 0;
while (_local3 < max_balls) {
if (b_array[_local3] && (this["b" + _local3].popping)) {
_local4 = 1;
_local3 = max_balls;
}
_local3++;
}
if (!_local4) {
if (combo > _root.best_combo) {
_root.best_combo = combo;
}
combo = 0;
boss_fight_check();
}
}
function boss_fight_check() {
if (boss_fight) {
return(undefined);
}
if (score > (level * 1000)) {
start_boss_fight();
} else if (score > (next_star * 1000)) {
drop_star = 1;
time = time + 300;
next_star++;
}
}
function die() {
player.popping = 1;
player.dp = 10;
player.ghost = 1;
player.gotoAndStop("pop");
player.aura.gotoAndStop(2);
_root.die_sfx.start();
time = time - 300;
combo++;
}
function explode(b0, c) {
if (b0.popping) {
return(undefined);
}
b0.popping = 1;
b0.dp = 10;
b0.ghost = 1;
b0.gotoAndStop("pop");
b0.aura.gotoAndStop(c + 1);
if (c != 3) {
combo++;
score = score + (combo + level);
total_score = total_score + (combo + level);
if (score > ((total_stock * total_stock) * total_stock)) {
time = time + 150;
total_stock++;
_root.bling_sfx.start();
}
}
_root.explode_sfx.start();
}
function format_time() {
if (boss_fight != 1) {
time--;
}
if (time < 0) {
time = 0;
if (!player.popping) {
die();
}
}
timef = (int(time / 30) + ".") + (time % 30);
}
function level_up() {
score = 0;
time = time + 1500;
level++;
total_stock = level;
next_star = 1;
}
function pausible() {
if ((boss_fight + boss._visible) + boss_helper._visible) {
return(0);
}
return(1);
}
max_balls = 64;
cur_balls = 0;
speed_step = 4;
max_speed = 16;
player_speed = 16;
boss_fight = 0;
level = 0;
total_score = 0;
time = 1500;
cheatstick = 0;
drop_star = 0;
game_over = 0;
next_star = 1;
b_array = new Array(max_balls);
player.stop();
createEmptyMovieClip("blank", 300);
player.swapDepths("blank");
removeMovieClip("blank");
Symbol 129 MovieClip Frame 2
score = 0;
combo = 0;
ball_placer._visible = 0;
ball_placer._rotation = 0;
var i = 0;
while (i < 8) {
var x = (((_root.absloc(ball_placer.target).x - this._x) * 100) / this._xscale);
var y = (((_root.absloc(ball_placer.target).y - this._y) * 100) / this._yscale);
new_ball(x, y, 0, 0, 0);
ball_placer._rotation = ball_placer._rotation + 45;
i++;
}
level_up();
Symbol 129 MovieClip Frame 4
if (!_root.paused) {
if (_root.firing && (time)) {
if ((!player.popping) && (!combo)) {
explode(player);
time = time - 150;
}
}
move_player();
move_all_balls();
format_time();
}
if ((Key.isDown(71) && (Key.isDown(72))) && (Key.isDown(82))) {
if (!cheatstick) {
score = score + 1000;
boss.hp = 0;
cheatstick = 1;
}
} else {
cheatstick = 0;
}
prevFrame();
play();
Symbol 139 Button
on (release) {
play();
}