Frame 1
stop();
Frame 3
gotoAndPlay ("introz");
Frame 11
gotoAndPlay ("main_menu");
Frame 12
if (quality_is_set != 1337) {
quality_is_set = 1337;
_root.global_quality = 3;
}
stop();
timeA = 0;
median_fps_sum = 0;
median_fps_mod = 5;
median_fps_count = 0;
median_fps_sum2 = 0;
median_fps_mod2 = 25;
median_fps_count2 = 0;
onEnterFrame = function () {
timeB = getTimer();
var _local3 = Math.floor(1000 / (this.timeB - this.timeA));
timeA = timeB;
if (median_fps_count < median_fps_mod) {
median_fps_count++;
median_fps_sum = median_fps_sum + _local3;
} else {
this.current_fps = Math.floor(median_fps_sum / this.median_fps_count);
this.median_fps_sum = 0;
this.median_fps_count = 0;
}
if (median_fps_count2 < median_fps_mod2) {
median_fps_count2++;
median_fps_sum2 = median_fps_sum2 + _local3;
} else {
this.current_fps2 = Math.floor(median_fps_sum2 / this.median_fps_count2);
this.median_fps_sum2 = 0;
this.median_fps_count2 = 0;
}
if (_root.all_sound_off eq 1) {
sound = new Sound();
sound.setVolume(0);
} else {
sound = new Sound();
sound.setVolume(100);
}
};
Instance of Symbol 800 MovieClip in Frame 12
onClipEvent (enterFrame) {
score = "SCORE: " + Math.floor(_root.score);
}
Instance of Symbol 804 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (yiff != 456) {
yiff = 456;
dmg = _root.damage;
}
if (dmg != _root.damage) {
if ((_root.damage - dmg) < 100) {
delitel = 5;
} else {
delitel = 30;
}
modifier = (_root.damage - dmg) / delitel;
dmg = dmg + modifier;
} else {
dmg = _root.damage;
}
damage = "DAMAGE: " + Math.floor(dmg);
}
Instance of Symbol 829 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.activate_q_and_e eq 1) {
_visible = false;
}
}
Instance of Symbol 832 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.activate_q_and_e eq 1) {
_visible = false;
}
}
Frame 13
gotoAndStop ("main_menu");
Frame 14
stop();
_root.kursor = 2;
Instance of Symbol 956 MovieClip "ingame_menu" in Frame 14
onClipEvent (enterFrame) {
if (_root.levelupmenu_opened eq 1) {
gotoAndPlay (14);
}
}
Frame 17
gotoAndStop ("the_game");
Frame 19
stop();
Frame 20
stop();
Frame 21
stop();
Frame 22
gotoAndPlay ("main_menu");
Symbol 87 MovieClip Frame 141
gotoAndPlay ("bb");
Symbol 195 Button
on (release) {
getURL ("http://www.newgrounds.com/", "_blank");
}
Symbol 201 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 203 MovieClip Frame 39
stop();
Symbol 223 MovieClip Frame 40
stop();
Symbol 235 Button
on (press) {
_root.play();
}
Symbol 236 Button
on (press) {
play();
}
Instance of Symbol 221 MovieClip in Symbol 239 MovieClip Frame 1
onClipEvent (load) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop("play_button");
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay("loaded");
}
}
Symbol 239 MovieClip Frame 130
stop();
Symbol 239 MovieClip Frame 154
_root.play();
Symbol 1083 MovieClip [__Packages.ab20] Frame 0
class ab20
{
function ab20 () {
}
static function fr(str, find, replace, limit) {
var _local2 = str;
var _local3;
var _local4;
var _local9;
if (!(typeof(find) === "string")) {
if (replace === undefined) {
replace = [""];
} else if (typeof(replace) === "string") {
replace = [replace];
}
} else {
find = [find];
replace = [replace];
}
_local9 = find.length;
var _local1 = 0;
var _local5 = 0;
while (_local1 < _local9) {
while (_local4 = _local2.indexOf(find[_local1]) , !(_local4 === -1)) {
if ((!(limit === undefined)) && (_local5 >= limit)) {
break;
}
_local3 = new Array(_local2.substring(0, _local4), _local2.substr(_local4, find[_local1].length), _local2.substr(_local4 + find[_local1].length));
_local3[1] = ((replace[_local1] === undefined) ? "" : (replace[_local1]));
_local2 = (_local3[0] + _local3[1]) + _local3[2];
_local5++;
}
_local1++;
_local5 = 0;
}
return(_local2);
}
static function encodeNum(num) {
var _local11 = getTimer();
var _local6 = ["aZ", "Zy", "Zx"];
var _local7 = ["zH", "jY", "uH"];
var _local4 = ["Ah", "Xh", "hO"];
var _local5 = ["Ub", "Bu", "Cb"];
var _local8 = ["Qc", "Pc", "Pe"];
var _local9 = ["Ei", "Ie", "Ef"];
var _local3 = ["Fk", "kG", "Kg"];
var _local13 = ["Jl", "Lm", "Mn"];
var _local12 = ["No", "Np", "Qp"];
var _local2 = ["Rs", "St", "Sw"];
var _local14 = random(3);
num = String(num);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
if (_local14 == 1) {
num = fr(num, "5", _local8[0]);
} else {
num = fr(num, "5", _local8[random(3)]);
}
num = fr(num, "4", _local9[random(3)]);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "2", _local13[random(3)]);
num = fr(num, "1", _local12[random(3)]);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
var _local10 = getTimer() - _local11;
num = (num + "Dd") + _local10;
return(num);
}
static function encodeStr8bytes(str) {
var _local1 = 0;
var _local4 = str.length;
var _local3 = "%";
var _local2 = ["%", "$", "#", "@"];
while (_local1 < _local4) {
_local3 = _local3 + (str.charCodeAt(_local1) + _local2[random(_local2.length)]);
_local1++;
}
return(_local3);
}
static function decodeStr8bytes(str) {
str = ("PIE" + str) + "PIE";
str = fr(str, "%", "D");
str = fr(str, "$", "D");
str = fr(str, "#", "D");
str = fr(str, "@", "D");
str = fr(str, "PIED", "");
str = fr(str, "DPIE", "");
var _local3 = str.split("D");
var _local4 = "";
var _local1 = 0;
var _local5 = _local3.length;
while (_local1 < _local5) {
_local4 = _local4 + String(String.fromCharCode(_local3[_local1]));
_local1++;
}
return(_local4);
}
static function decodeNum(str) {
var _local2 = ["aZ", "Zy", "Zx", "zH", "jY", "uH", "Ah", "Xh", "hO", "Ub", "Bu", "Cb", "Qc", "Pc", "Pe", "Ei", "Ie", "Ef", "Fk", "kG", "Kg", "Jl", "Lm", "Mn", "No", "Np", "Qp", "Rs", "St", "Sw"];
str = String(str);
str = str.split("Dd");
str = str[0];
str = fr(str, _local2[0], "9");
str = fr(str, _local2[1], "9");
str = fr(str, _local2[2], "9");
str = fr(str, _local2[3], "8");
str = fr(str, _local2[4], "8");
str = fr(str, _local2[5], "8");
str = fr(str, _local2[6], "7");
str = fr(str, _local2[7], "7");
str = fr(str, _local2[8], "7");
str = fr(str, _local2[9], "6");
str = fr(str, _local2[10], "6");
str = fr(str, _local2[11], "6");
str = fr(str, _local2[12], "5");
str = fr(str, _local2[13], "5");
str = fr(str, _local2[14], "5");
str = fr(str, _local2[15], "4");
str = fr(str, _local2[16], "4");
str = fr(str, _local2[17], "4");
str = fr(str, _local2[18], "3");
str = fr(str, _local2[19], "3");
str = fr(str, _local2[20], "3");
str = fr(str, _local2[21], "2");
str = fr(str, _local2[22], "2");
str = fr(str, _local2[23], "2");
str = fr(str, _local2[24], "1");
str = fr(str, _local2[25], "1");
str = fr(str, _local2[26], "1");
str = fr(str, _local2[27], "0");
str = fr(str, _local2[28], "0");
str = fr(str, _local2[29], "0");
var _local3 = Number(str);
return(_local3);
}
}
Symbol 270 MovieClip Frame 1
if (starz._x < 596.1) {
starz._x = starz._x + _root.background_srars_speed;
} else {
starz._x = -399.1;
}
Symbol 270 MovieClip Frame 2
gotoAndPlay (1);
Symbol 273 MovieClip Frame 1
if (starz._x < 0) {
starz._x = starz._x + (_root.background_srars_speed * 2);
} else {
starz._x = -703.9;
}
starz.cacheAsBitmap = true;
Symbol 273 MovieClip Frame 2
gotoAndPlay (1);
Symbol 532 MovieClip Frame 11
stop();
Symbol 534 MovieClip Frame 1
stop();
Symbol 609 MovieClip Frame 1
stop();
_root.stars_go = 0;
_root.lazerhit = 0;
Symbol 609 MovieClip Frame 2
stopAllSounds();
Symbol 609 MovieClip Frame 20
_root.lightning_tremor = 0;
Symbol 609 MovieClip Frame 21
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 61
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 67
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 73
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 79
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 86
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 96
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 108
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 134
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 138
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 143
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 179
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 183
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 191
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 252
_root.lightning_tremor = 1;
Symbol 609 MovieClip Frame 261
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 271
_root.stars_go = 1;
Symbol 609 MovieClip Frame 298
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 304
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 310
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 316
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 323
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 333
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 345
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 371
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 375
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 380
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 416
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 420
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 428
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 489
_root.lightning_tremor = 0;
Symbol 609 MovieClip Frame 501
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 509
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 524
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 538
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 539
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 544
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 550
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 554
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 556
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 563
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 569
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 573
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 584
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 585
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 599
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 611
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 614
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 615
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 620
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 629
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 644
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 656
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 659
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 660
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 668
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 674
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 689
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 704
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 719
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 731
_root.lightning_tremor = 1;
Symbol 609 MovieClip Frame 734
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 740
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 741
_root.game.SpawnCannonball();
_root.change_directions = 1;
Symbol 609 MovieClip Frame 749
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 764
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 777
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 779
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 783
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 789
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 794
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 795
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 802
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 809
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 812
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 824
_root.game.SpawnLightning();
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 839
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 850
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 854
_root.game.SpawnLightning();
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 859
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 869
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 884
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 895
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 899
_root.game.SpawnLightning();
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 907
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 914
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 929
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 944
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 959
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 966
_root.lightning_tremor = 0;
Symbol 609 MovieClip Frame 974
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 976
_root.game.SpawnCannonball();
_root.change_directions = 1;
Symbol 609 MovieClip Frame 980
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 989
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1004
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1017
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1019
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1023
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1029
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1034
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1035
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1042
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1049
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1052
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1064
_root.game.SpawnLightning();
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1079
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1090
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1094
_root.game.SpawnLightning();
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1099
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1109
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1124
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1135
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1139
_root.game.SpawnLightning();
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1147
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1156
if (_root.lightning_tremor != 1) {
_root.lightning_tremor = 1;
} else {
_root.lightning_tremor = 0;
}
Symbol 609 MovieClip Frame 1166
if (_root.lightning_tremor != 1) {
_root.lightning_tremor = 1;
} else {
_root.lightning_tremor = 0;
}
Symbol 609 MovieClip Frame 1176
if (_root.lightning_tremor != 1) {
_root.lightning_tremor = 1;
} else {
_root.lightning_tremor = 0;
}
Symbol 609 MovieClip Frame 1185
if (_root.lightning_tremor != 1) {
_root.lightning_tremor = 1;
} else {
_root.lightning_tremor = 0;
}
Symbol 609 MovieClip Frame 1195
if (_root.lightning_tremor != 1) {
_root.lightning_tremor = 1;
} else {
_root.lightning_tremor = 0;
}
Symbol 609 MovieClip Frame 1205
if (_root.lightning_tremor != 1) {
_root.lightning_tremor = 1;
} else {
_root.lightning_tremor = 0;
}
Symbol 609 MovieClip Frame 1214
_root.distort = 1;
Symbol 609 MovieClip Frame 1219
_root.change_directions = 1;
Symbol 609 MovieClip Frame 1221
_root.game.SpawnCannonball();
Symbol 609 MovieClip Frame 1255
_root.lightning_tremor = 1;
Symbol 609 MovieClip Frame 1271
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1277
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1281
_root.game.SpawnCannonball();
_root.change_directions = 1;
Symbol 609 MovieClip Frame 1282
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1287
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1288
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1299
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1302
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1307
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1317
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1332
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1347
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1359
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1362
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1364
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1375
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1377
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1387
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1392
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1407
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1422
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1437
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1452
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1467
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1482
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1497
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1503
_root.lightning_tremor = 0;
Symbol 609 MovieClip Frame 1510
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1512
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1516
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1521
_root.game.SpawnLightning();
_root.change_directions = 1;
Symbol 609 MovieClip Frame 1527
_root.game.SpawnLightning();
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1538
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1542
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1546
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1557
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1572
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1587
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1598
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1602
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1603
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1614
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1617
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1626
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1632
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1647
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1662
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1677
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1692
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1699
_root.change_directions = 1;
Symbol 609 MovieClip Frame 1701
_root.game.SpawnCannonball();
Symbol 609 MovieClip Frame 1707
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1722
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1737
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1752
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1758
_root.game.SpawnCannonball();
Symbol 609 MovieClip Frame 1759
_root.game.SpawnLightning();
_root.change_directions = 1;
Symbol 609 MovieClip Frame 1767
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1779
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1782
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1783
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1787
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1797
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1810
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1812
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1813
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1816
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1819
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1824
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1827
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1829
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1842
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1854
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1857
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1863
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1872
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1876
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1887
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1898
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1902
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1917
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1932
_root.lightning_tremor = 1;
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1940
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1946
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1947
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1958
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 1962
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1972
_root.lightning_tremor = 0;
Symbol 609 MovieClip Frame 1977
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1992
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 1999
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 2007
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2014
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 2019
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 2022
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2024
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 2037
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2049
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 2052
_root.game.SpawnLightning();
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2055
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 2058
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 2063
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 2067
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2068
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 2082
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2093
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 2097
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2109
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 2112
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2120
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 2127
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2142
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2145
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 2157
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2172
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2182
_root.lazerhit = 1;
Symbol 609 MovieClip Frame 2187
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2199
_root.lazerhit = 2;
Symbol 609 MovieClip Frame 2202
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2215
_root.lazerhit = 3;
Symbol 609 MovieClip Frame 2217
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2230
_root.lazerhit = 4;
Symbol 609 MovieClip Frame 2232
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2239
_root.game.SpawnCannonball();
_root.change_directions = 1;
Symbol 609 MovieClip Frame 2247
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2262
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2277
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2292
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2298
_root.change_directions = 1;
Symbol 609 MovieClip Frame 2307
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2322
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2337
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2352
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2359
_root.game.SpawnCannonball();
_root.change_directions = 1;
Symbol 609 MovieClip Frame 2367
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2382
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2397
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2412
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2418
_root.change_directions = 1;
Symbol 609 MovieClip Frame 2427
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2442
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2457
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2472
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2477
_root.game.SpawnCannonball();
_root.change_directions = 1;
Symbol 609 MovieClip Frame 2487
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2502
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2517
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2532
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2535
_root.change_directions = 1;
Symbol 609 MovieClip Frame 2547
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2562
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2577
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2592
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2593
_root.game.SpawnCannonball();
_root.change_directions = 1;
Symbol 609 MovieClip Frame 2607
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2622
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2637
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2651
_root.change_directions = 1;
Symbol 609 MovieClip Frame 2652
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2667
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2682
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2697
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2712
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2717
_root.game.SpawnCannonball();
_root.change_directions = 1;
Symbol 609 MovieClip Frame 2727
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2742
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2757
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2772
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2775
_root.change_directions = 1;
Symbol 609 MovieClip Frame 2787
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2802
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2817
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2832
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2833
_root.change_directions = 1;
Symbol 609 MovieClip Frame 2847
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2862
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2877
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2891
_root.change_directions = 1;
Symbol 609 MovieClip Frame 2892
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2907
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2922
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2937
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2952
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2967
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2982
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 2997
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 3012
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 3027
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 3042
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 3057
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 3072
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 3087
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 3102
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 3117
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 3132
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 3147
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 3162
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 3177
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 3192
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 3194
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3197
_root.game.SpawnCannonball();
Symbol 609 MovieClip Frame 3234
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3240
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3246
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3252
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3259
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3269
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3281
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3307
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3311
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3316
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3356
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3360
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3368
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3438
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3475
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3481
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3487
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3493
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3500
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3510
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3522
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3548
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3552
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3557
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3593
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3597
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3605
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3671
_root.game.SpawnCannonball();
Symbol 609 MovieClip Frame 3792
_root.game.SpawnCannonball();
Symbol 609 MovieClip Frame 3853
_root.game.SpawnCannonball();
Symbol 609 MovieClip Frame 3910
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3914
_root.game.SpawnCannonball();
Symbol 609 MovieClip Frame 3916
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3917
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 3921
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3927
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3932
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 3938
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3946
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 3947
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 3962
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 3977
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 3992
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 3995
if (_root.lightning_tremor eq 1) {
_root.lightning_tremor = 0;
} else {
_root.lightning_tremor = 1;
}
Symbol 609 MovieClip Frame 3998
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4003
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4007
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4011
if (_root.lightning_tremor eq 1) {
_root.lightning_tremor = 0;
} else {
_root.lightning_tremor = 1;
}
Symbol 609 MovieClip Frame 4014
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4022
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4026
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4027
if (_root.lightning_tremor eq 1) {
_root.lightning_tremor = 0;
} else {
_root.lightning_tremor = 1;
}
Symbol 609 MovieClip Frame 4037
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4052
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4067
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4082
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4097
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4112
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4127
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4142
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4146
if (_root.lightning_tremor eq 1) {
_root.lightning_tremor = 0;
} else {
_root.lightning_tremor = 1;
}
Symbol 609 MovieClip Frame 4149
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4155
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4157
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4160
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4166
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4171
if (_root.lightning_tremor eq 1) {
_root.lightning_tremor = 0;
} else {
_root.lightning_tremor = 1;
}
Symbol 609 MovieClip Frame 4172
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4177
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4185
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4187
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4202
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4217
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4232
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4233
if (_root.lightning_tremor eq 1) {
_root.lightning_tremor = 0;
} else {
_root.lightning_tremor = 1;
}
Symbol 609 MovieClip Frame 4237
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4242
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4247
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4253
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4262
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4265
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4277
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4292
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4307
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4322
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4330
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4335
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4337
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4340
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4341
if (_root.lightning_tremor eq 1) {
_root.lightning_tremor = 0;
} else {
_root.lightning_tremor = 1;
}
Symbol 609 MovieClip Frame 4345
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4351
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4352
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4356
if (_root.lightning_tremor eq 1) {
_root.lightning_tremor = 0;
} else {
_root.lightning_tremor = 1;
}
Symbol 609 MovieClip Frame 4358
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4365
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4367
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4378
_root.lightning_tremor = 0;
Symbol 609 MovieClip Frame 4382
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4394
_root.game.SpawnCannonball();
Symbol 609 MovieClip Frame 4397
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4398
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4412
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4418
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4422
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4426
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4427
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4442
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4449
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4452
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4455
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4457
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4458
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4463
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4468
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4472
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4487
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4493
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4502
_root.game.SpawnLightning();
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4515
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4517
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4532
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4537
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4547
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4562
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4576
if (_root.lightning_tremor eq 1) {
_root.lightning_tremor = 0;
} else {
_root.lightning_tremor = 1;
}
Symbol 609 MovieClip Frame 4577
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4579
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4585
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4592
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4597
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4601
if (_root.lightning_tremor eq 1) {
_root.lightning_tremor = 0;
} else {
_root.lightning_tremor = 1;
}
Symbol 609 MovieClip Frame 4607
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4622
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4637
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4638
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4652
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4653
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4658
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4663
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4667
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4682
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4688
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4691
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4694
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4697
_root.game.SpawnLightning();
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4702
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4707
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4712
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4727
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4732
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4742
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4748
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4757
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4759
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4772
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4784
_root.game.SpawnLightning();
Symbol 609 MovieClip Frame 4787
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4802
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4817
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4832
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4847
_root.game.SpawnBounceball();
_root.distort = 1;
Symbol 609 MovieClip Frame 4867
_root.endeverything = 1;
Symbol 609 MovieClip Frame 4929
_root.stopscore = 1;
Symbol 609 MovieClip Frame 4978
stop();
_root.countscorealready = 1;
_root.game_on_hold = 1;
Symbol 620 Button
on (release) {
nextFrame();
}
Symbol 660 MovieClip Frame 1
stop();
Symbol 660 MovieClip Frame 4
stop();
_root.game_on_hold = 0;
_root.music.play();
_visible = false;
Symbol 668 MovieClip Frame 1
if (_name eq "lightning_source") {
gotoAndStop (3);
}
if (_name != "lightning_source") {
if (allset != 1) {
xpos = _x;
ypos = _y;
allset = 1;
speed_k = 0.94;
mass = 40;
xspeed_nominal = 10;
yspeed_nominal = 5 + random(10);
if (random(2) eq 1) {
yspeed_nominal = yspeed_nominal * -1;
}
radius = 60;
xspeed = xspeed_nominal;
yspeed = yspeed_nominal;
exist = 1;
y_counter = 150;
}
}
delitel_skorosti = 30;
yd = Math.abs(yspeed_nominal - yspeed) / delitel_skorosti;
if ((yspeed - yspeed_nominal) > 0) {
yspeed = yspeed - yd;
} else if ((yspeed - yspeed_nominal) < 0) {
yspeed = yspeed + yd;
}
xd = Math.abs(xspeed_nominal - xspeed) / delitel_skorosti;
if ((xspeed - xspeed_nominal) > 0) {
xspeed = xspeed - xd;
} else if ((xspeed - xspeed_nominal) < 0) {
xspeed = xspeed + xd;
}
povorot_activated = 1;
if ((_name != "lightning_source") and (povorot_activated eq 1)) {
if (hhhhhhhhhhhhhhh != 1337) {
hhhhhhhhhhhhhhh = 1337;
rotationcount = 0;
zcount = 0;
}
speedpovorota = 1;
var angle1 = (Math.atan2(dy, dx) * 57.2957795130823);
var dx = xspeed;
var dy = yspeed;
var angle2 = _rotation;
if (angle2 < 0) {
angle2 = angle2 + 360;
}
if (angle1 < 0) {
angle1 = angle1 + 360;
}
var a = (angle2 - angle1);
if (a > 180) {
a = a - 360;
} else if (a < -180) {
a = a + 360;
}
a = a * speedpovorota;
if (Math.abs(a) > 0.01) {
_rotation = (_rotation - a);
} else {
_rotation = angle1;
}
}
Instance of Symbol 667 MovieClip in Symbol 668 MovieClip Frame 1
onClipEvent (load) {
if (random(2) eq 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 668 MovieClip Frame 2
gotoAndPlay (1);
y_counter++;
framerate = 40;
if (y_counter > framerate) {
y_counter = 0;
yspeed_nominal = yspeed_nominal * -1;
}
if (_x > 675) {
removeMovieClip(this);
}
Symbol 671 MovieClip Frame 1
if (_name eq "shleif1_source") {
stop();
_visible = false;
}
Symbol 671 MovieClip Frame 11
removeMovieClip(this);
Symbol 671 MovieClip Frame 12
stop();
Symbol 677 MovieClip Frame 1
if (_name eq "lightspawn_source") {
stop();
_visible = false;
}
Symbol 677 MovieClip Frame 16
removeMovieClip(this);
Symbol 677 MovieClip Frame 17
stop();
Symbol 679 MovieClip Frame 31
stop();
Symbol 681 MovieClip Frame 24
stop();
Symbol 682 MovieClip Frame 1
if (_name eq "explode1_source") {
_visible = false;
gotoAndStop (35);
}
Symbol 682 MovieClip Frame 30
stop();
removeMovieClip(this);
Symbol 702 MovieClip Frame 10
_root.distort = 0;
Instance of Symbol 685 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - _root.bounceball_rotationspeed);
}
Instance of Symbol 691 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + _root.bounceball_rotationspeed);
}
Instance of Symbol 703 MovieClip in Symbol 704 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.distort eq 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 705 MovieClip Frame 1
if (_name eq "bounceball_source") {
gotoAndStop (3);
_visible = false;
}
radius = 27;
if (_name != "bounceball_source") {
if ((allset != 1) and (activated eq 1)) {
allset = 1;
timer_1 = 0;
timeoflife = 0;
mass = 35 + random(11);
radius = ball_body / 2;
normal_speed = 1;
xspeed = 8;
yspeed = 0;
exist = 1;
xpos = _x;
ypos = _y;
}
}
if (mainmenu eq 1) {
if ((_x < _root.game.xleft._x) and (xspeed < 0)) {
removeMovieClip(this);
}
if ((_x > _root.game.xright._x) and (xspeed > 0)) {
removeMovieClip(this);
}
} else {
if ((_x < 10) and (xspeed < 0)) {
removeMovieClip(this);
}
if ((_x > 690) and (xspeed > 0)) {
removeMovieClip(this);
}
if ((_y > 400) or (_y < -100)) {
removeMovieClip(this);
}
}
Symbol 705 MovieClip Frame 2
gotoAndPlay (1);
timeoflife++;
if (_root.endeverything eq 1) {
death = 1;
}
if (change_directions eq 1) {
change_directions = 0;
if (random(2) eq 1) {
ymod = -1;
} else {
ymod = 1;
}
if (random(2) eq 1) {
xmod = -1;
} else {
xmod = 1;
}
xspeed = (1 + random(8)) * xmod;
yspeed = (1 + random(8)) * ymod;
}
if (Math.abs(xspeed) > _root.bounceball_normal_speed) {
xspeed = xspeed * 0.97;
}
if (Math.abs(yspeed) > _root.bounceball_normal_speed) {
yspeed = yspeed * 0.97;
}
Symbol 707 MovieClip Frame 1
if (_name eq "shleif2_source") {
gotoAndStop (35);
visible = false;
}
Symbol 709 MovieClip Frame 31
removeMovieClip(this);
Symbol 709 MovieClip Frame 32
stop();
Instance of Symbol 713 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + (_root.bounceball_rotationspeed * 10));
}
Symbol 718 MovieClip Frame 54
stop();
Symbol 721 MovieClip Frame 11
stop();
Symbol 722 MovieClip Frame 1
if (_name eq "cannonball_source") {
gotoAndStop (3);
_visible = false;
}
radius = 12.5;
if (_name != "cannonball_source") {
if (allset != 1) {
allset = 1;
timer_1 = 0;
timeoflife = 0;
mass = 250;
normal_speed = 1;
xspeed = 20;
yspeed = 0;
exist = 1;
xpos = _x;
ypos = _y;
}
}
if (mainmenu eq 1) {
if ((_x < _root.game.xleft._x) and (xspeed < 0)) {
removeMovieClip(this);
}
if ((_x > _root.game.xright._x) and (xspeed > 0)) {
removeMovieClip(this);
}
} else {
if ((_x < 10) and (xspeed < 0)) {
removeMovieClip(this);
}
if ((_x > 690) and (xspeed > 0)) {
removeMovieClip(this);
}
if ((_y > 400) or (_y < -100)) {
removeMovieClip(this);
}
}
Symbol 722 MovieClip Frame 2
gotoAndPlay (1);
if (_root.endeverything eq 1) {
death = 1;
}
Symbol 763 MovieClip Frame 1
if (_name eq "bounceballdeath_source") {
gotoAndStop (52);
_visible = false;
}
Symbol 763 MovieClip Frame 51
removeMovieClip(this);
Symbol 771 MovieClip Frame 1
if (_name eq "cannonballdeath_source") {
gotoAndStop (30);
_visible = false;
}
Symbol 771 MovieClip Frame 26
removeMovieClip(this);
Symbol 775 MovieClip Frame 23
removeMovieClip(this);
Symbol 783 MovieClip Frame 1
_rotation = (_rotation + _root.character_rotation);
if (_root.character_rotation > 1) {
desu.gotoAndStop(2);
} else {
desu.gotoAndStop(1);
}
Symbol 783 MovieClip Frame 2
gotoAndPlay (1);
Symbol 786 MovieClip Frame 1
stop();
if (yiff != 1111) {
yiff = 1111;
_root.stars_go = 0;
_root.endeverything = 0;
_root.deathcount = 0;
_root.activate_q_and_e = 0;
_root.sparklecount = 0;
_root.shleifcount = 0;
_root.distort = 0;
_root.lightning_maxcount = 20;
_root.character_rotation = 1;
_root.countscorealready = 0;
_root.done_submitting = 0;
_root.bounceball_maxcount = 5;
_root.bounceball_rotationspeed = 3;
_root.background_srars_speed = 0.5;
_root.bounceball_normal_speed = 3;
_root.game_on_hold = 1;
_root.scorebonus = 25;
_root.final_score = 0;
_root.score = 0;
_root.damage = 0;
_root.stopscore = 0;
_root.energy_max = 100;
_root.energy = _root.energy_max;
_root.repel_energy_seconds = 5;
}
function GenerateSparkles(xxx, yyy) {
if (_root.sparklecount > 100) {
_root.sparklecount = 0;
} else {
_root.sparklecount++;
}
}
function BounceballDeath() {
var _local2 = 0;
while (_local2 < _root.bounceball_maxcount) {
if (_root.game["bounceball_" + _local2].death eq 1) {
if (_root.deathcount > 100) {
_root.deathcount = 0;
} else {
_root.deathcount++;
}
duplicateMovieClip (_root.game.bounceballdeath_source, "bounceballdeath_" + _root.deathcount, _root.deathcount + bounceballdeath_depth);
_root.game["bounceballdeath_" + _root.deathcount]._x = _root.game["bounceball_" + _local2]._x;
_root.game["bounceballdeath_" + _root.deathcount]._y = _root.game["bounceball_" + _local2]._y;
removeMovieClip(_root.game["bounceball_" + _local2]);
}
_local2++;
}
if (_root.game.bounceball_5.death eq 1) {
if (_root.deathcount > 100) {
_root.deathcount = 0;
} else {
_root.deathcount++;
}
duplicateMovieClip (_root.game.cannonballdeath_source, "bounceballdeath_" + _root.deathcount, _root.deathcount + bounceballdeath_depth);
_root.game["bounceballdeath_" + _root.deathcount]._x = _root.game.bounceball_5._x;
_root.game["bounceballdeath_" + _root.deathcount]._y = _root.game.bounceball_5._y;
removeMovieClip(_root.game.bounceball_5);
}
}
function SpawnCannonball() {
if (_root.game.bounceball_5) {
} else {
duplicateMovieClip (_root.game.cannonball_source, "bounceball_5", cannonball_depth);
_root.game.bounceball_5._x = 20;
_root.game.bounceball_5._y = -50 + random(290);
}
}
function SpawnBounceball() {
var _local2 = 0;
while (_local2 < _root.bounceball_maxcount) {
if (_root.game["bounceball_" + _local2]) {
} else {
duplicateMovieClip (_root.game.bounceball_source, "bounceball_inactive_" + _local2, _local2 + bounceball_depth);
_root.game["bounceball_inactive_" + _local2]._x = 10;
_root.game["bounceball_inactive_" + _local2]._y = -50 + random(290);
_root.game["bounceball_inactive_" + _local2]._name = "bounceball_" + _local2;
_root.game["bounceball_" + _local2].activated = 1;
break;
}
_local2++;
}
}
function SpawnLightning() {
var _local2 = 0;
while (_local2 < _root.lightning_maxcount) {
if (_root.game["lightning" + _local2]) {
} else {
duplicateMovieClip (_root.game.lightning_source, "lightning" + _local2, _local2 + lightning_depth);
_root.game["lightning" + _local2]._x = 70;
_root.game["lightning" + _local2]._y = -50 + random(290);
duplicateMovieClip (_root.game.lightspawn_source, "lightspawn" + _local2, _local2 + lightning_spawn_depth);
_root.game["lightspawn" + _local2]._x = _root.game["lightning" + _local2]._x;
_root.game["lightspawn" + _local2]._y = _root.game["lightning" + _local2]._y;
break;
}
_local2++;
}
}
function LightningDeath_wtfisthis() {
var _local2 = 0;
while (_local2 < _root.lightning_maxcount) {
if (_root.game["lightning" + _local2]) {
radius = 15;
x1 = _root.game.ball._x;
y1 = _root.game.ball._y;
x2 = _root.game["lightning" + _local2]._x;
y2 = _root.game["lightning" + _local2]._y;
var _local3 = Math.abs(x1 - x2);
var _local4 = Math.abs(y1 - y2);
var _local5 = Math.sqrt((_local3 * _local3) + (_local4 * _local4));
if (_local5 < radius) {
_root.damage = _root.damage + _root.lightning_damage;
duplicateMovieClip (_root.game.explode1_source, "explode1_" + _local2, _local2 + explode1_depth);
_root.game["explode1_" + _local2]._x = x2;
_root.game["explode1_" + _local2]._y = y2;
removeMovieClip(_root.game["lightning" + _local2]);
}
}
_local2++;
}
}
function CannonballShleif() {
if (_root.game.bounceball_5) {
if (_root.shleifcount > 900) {
_root.shleifcount = 0;
} else {
_root.shleifcount++;
}
duplicateMovieClip (_root.game.shleif2_source, "shleif2_" + _root.shleifcount, _root.shleifcount + shleif2_depth);
_root.game["shleif2_" + _root.shleifcount]._x = _root.game.bounceball_5._x;
_root.game["shleif2_" + _root.shleifcount]._y = _root.game.bounceball_5._y;
_root.game["shleif2_" + _root.shleifcount]._rotation = random(360);
}
}
function LightningShleif() {
var _local2 = 0;
while (_local2 < _root.lightning_maxcount) {
if (_root.game["lightning" + _local2]) {
if (_root.shleifcount > 900) {
_root.shleifcount = 0;
} else {
_root.shleifcount++;
}
duplicateMovieClip (_root.game.shleif1_source, "shleif1_" + _root.shleifcount, _root.shleifcount + shleif1_depth);
_root.game["shleif1_" + _root.shleifcount]._x = _root.game["lightning" + _local2]._x;
_root.game["shleif1_" + _root.shleifcount]._y = _root.game["lightning" + _local2]._y;
_root.game["shleif1_" + _root.shleifcount]._rotation = _root.game["lightning" + _local2]._rotation;
}
_local2++;
}
}
function LightningWallCollision() {
var _local2 = 0;
while (_local2 < _root.lightning_maxcount) {
if (_root.game["lightning" + _local2]) {
upperwalldistance = Math.abs(_root.game.upper_wall._y - _root.game["lightning" + _local2]._y);
bottomwalldistance = Math.abs(_root.game.bottom_wall._y - _root.game["lightning" + _local2]._y);
framesleft1 = Math.abs(upperwalldistance / _root.game["lightning" + _local2].yspeed);
framesleft2 = Math.abs(bottomwalldistance / _root.game["lightning" + _local2].yspeed);
if (((framesleft1 <= 1) or (framesleft2 <= 1)) or (_root.lightning_tremor eq 1)) {
_root.game["lightning" + _local2].yspeed = _root.game["lightning" + _local2].yspeed * -1;
}
}
_local2++;
}
}
function Lazerhit(n) {
lazer_y = _root.game["lazer_" + n]._y;
var _local2 = 0;
while (_local2 < (_root.bounceball_maxcount + 1)) {
if (_root.game["bounceball_" + _local2]) {
ball_y = _root.game["bounceball_" + _local2]._y;
distance = Math.abs(ball_y - lazer_y);
radius = _root.game["bounceball_" + _local2].radius;
lightradius = 20;
if (distance < ((radius + lightradius) * 0.95)) {
_root.game["bounceball_" + _local2].death = 1;
}
}
_local2++;
}
}
function BallControll() {
x2 = _root.game._xmouse;
y2 = _root.game._ymouse;
_root.game.ball._x = x2;
_root.game.ball._y = y2;
}
function ZashitaOtSkleivaniya(b1, b2) {
R1 = _root.game[b1].radius;
R2 = _root.game[b2].radius;
Mass1 = _root.game[b1].mass;
Mass2 = _root.game[b2].mass;
distx = _root.game[b1]._x - _root.game[b2]._x;
disty = _root.game[b1]._y - _root.game[b2]._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance < ((R1 + R2) * 0.97)) {
if (Mass1 > Mass2) {
_root.game[b2].death = 1;
} else if (Mass1 < Mass2) {
_root.game[b1].death = 1;
} else {
_root.game[b2].death = 1;
_root.game[b1].death = 1;
}
}
}
function MouseCollisions() {
var _local2 = 0;
while (_local2 < (_root.bounceball_maxcount + 1)) {
if (_root.game["bounceball_" + _local2]) {
ballradius = 15;
distx = _root.game["bounceball_" + _local2]._x - _root.game.ball._x;
disty = _root.game["bounceball_" + _local2]._y - _root.game.ball._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance < ((ballradius + _root.game["bounceball_" + _local2].radius) * 0.95)) {
_root.game["bounceball_" + _local2].death = 1;
if (_local2 > 4) {
_root.damage = _root.damage + _root.cannon_damage;
} else {
_root.damage = _root.damage + _root.bounceball_damage;
}
}
}
_local2++;
}
}
function LightningDeath() {
var _local2 = 0;
while (_local2 < _root.lightning_maxcount) {
if (_root.game["lightning" + _local2]) {
radius = 15;
x1 = _root.game.ball._x;
y1 = _root.game.ball._y;
x2 = _root.game["lightning" + _local2]._x;
y2 = _root.game["lightning" + _local2]._y;
var _local3 = Math.abs(x1 - x2);
var _local4 = Math.abs(y1 - y2);
var _local5 = Math.sqrt((_local3 * _local3) + (_local4 * _local4));
if (_local5 < radius) {
_root.damage = _root.damage + _root.lightning_damage;
duplicateMovieClip (_root.game.explode1_source, "explode1_" + _local2, _local2 + explode1_depth);
_root.game["explode1_" + _local2]._x = x2;
_root.game["explode1_" + _local2]._y = y2;
removeMovieClip(_root.game["lightning" + _local2]);
}
}
_local2++;
}
}
function Repel(enemy) {
repel_radius = 150;
repel_mass = 100;
repel_suckingpower = 5;
x1 = _root.game[enemy]._x;
y1 = _root.game[enemy]._y;
x2 = _root.game._xmouse;
y2 = _root.game._ymouse;
var _local5 = x1 - x2;
var _local7 = y1 - y2;
var _local19 = Math.sqrt((_local5 * _local5) + (_local7 * _local7));
if (_local19 < repel_radius) {
var _local6 = _root.game[enemy].mass;
var _local8 = repel_mass;
var _local16 = _root.game[enemy].xspeed;
var _local18 = _root.game[enemy].yspeed;
var _local12 = Math.atan2(_local7, _local5);
var _local3 = Math.cos(_local12);
var _local2 = Math.sin(_local12);
var _local13 = (_local16 * _local3) + (_local18 * _local2);
var _local10 = repel_suckingpower;
var _local11 = (_local18 * _local3) - (_local16 * _local2);
var _local9 = 0.0001;
var _local17 = (_local6 * _local13) + (_local8 * _local10);
var _local20 = _local13 - _local10;
var _local14 = (_local17 + (_local6 * _local20)) / (_local6 + _local8);
var _local15 = (_local14 - _local13) + _local10;
_local13 = _local15;
_local10 = _local14;
_local16 = (_local13 * _local3) - (_local11 * _local2);
var _local21 = (_local10 * _local3) - (_local9 * _local2);
_local18 = (_local11 * _local3) + (_local13 * _local2);
var _local22 = (_local9 * _local3) + (_local10 * _local2);
_root.game[enemy].xspeed = _local16;
_root.game[enemy].yspeed = _local18;
}
}
function BounceBallWallCollision() {
var _local4 = 0;
while (_local4 < (_root.bounceball_maxcount + 1)) {
if (_root.game["bounceball_" + _local4]) {
var _local2 = _root.game["bounceball_" + _local4];
var _local5 = _local2.ypos + _local2.yspeed;
var _local3 = _local2.radius;
if ((_local5 + _local3) > _root.game.bottom_wall._y) {
_local2.tempy = _root.game.bottom_wall._y - _local3;
_local2.yspeed = _local2.yspeed * -1;
}
if ((_local5 - _local3) < _root.game.upper_wall._y) {
_local2.tempy = _root.game.upper_wall._y + _local3;
_local2.yspeed = _local2.yspeed * -1;
}
}
_local4++;
}
}
function ball2BallReaction(b1, b2, x1, x2, y1, y2, time) {
var _local6 = _root.game[b1].mass;
var _local9 = _root.game[b2].mass;
var _local20 = _root.game[b1].xspeed;
var _local19 = _root.game[b2].xspeed;
var _local31 = _root.game[b1].xspeed;
var _local32 = _root.game[b2].xspeed;
var _local23 = _root.game[b1].yspeed;
var _local21 = _root.game[b2].yspeed;
var _local24 = x1 - x2;
var _local28 = y1 - y2;
var _local13 = Math.atan2(_local28, _local24);
var _local5 = Math.cos(_local13);
var _local4 = Math.sin(_local13);
var _local26 = x1 - x2;
var _local25 = y1 - y2;
R_2 = _root.game[b2].radius;
var _local8 = ((-Math.atan2(_local26, _local25)) / (Math.PI/180)) + 270;
collision_y3 = y2 - (R_2 * Math.sin(_local8 * (Math.PI/180)));
collision_x3 = x2 - (R_2 * Math.cos(_local8 * (Math.PI/180)));
GenerateSparkles(collision_x3, collision_y3);
collisionEffect(collision_x3, collision_y3);
var _local14 = (_local20 * _local5) + (_local23 * _local4);
var _local11 = (_local19 * _local5) + (_local21 * _local4);
var _local12 = (_local23 * _local5) - (_local20 * _local4);
var _local10 = (_local21 * _local5) - (_local19 * _local4);
var _local22 = (_local6 * _local14) + (_local9 * _local11);
var _local27 = _local14 - _local11;
var _local15 = (_local22 + (_local6 * _local27)) / (_local6 + _local9);
var _local18 = (_local15 - _local14) + _local11;
_local14 = _local18;
_local11 = _local15;
_local20 = (_local14 * _local5) - (_local12 * _local4);
_local19 = (_local11 * _local5) - (_local10 * _local4);
_local23 = (_local12 * _local5) + (_local14 * _local4);
_local21 = (_local10 * _local5) + (_local11 * _local4);
_root.game[b1].tempx = _root.game[b1].xpos + ((_root.game[b1].xspeed * time) * 0.9);
_root.game[b1].tempy = _root.game[b1].ypos + ((_root.game[b1].yspeed * time) * 0.9);
_root.game[b2].tempx = _root.game[b2].xpos + ((_root.game[b2].xspeed * time) * 0.9);
_root.game[b2].tempy = _root.game[b2].ypos + ((_root.game[b2].yspeed * time) * 0.9);
_root.game[b1].xspeed = _local20;
_root.game[b2].xspeed = _local19;
_root.game[b1].yspeed = _local23;
_root.game[b2].yspeed = _local21;
}
function ballToBallDetection(b1, b2) {
var _local7 = _root.game[b1].xspeed;
var _local9 = _root.game[b1].yspeed;
var _local6 = _root.game[b2].xspeed;
var _local8 = _root.game[b2].yspeed;
var _local5 = _root.game[b1].xpos;
var _local3 = _root.game[b1].ypos;
var _local4 = _root.game[b2].xpos;
var _local2 = _root.game[b2].ypos;
var _local16 = _root.game[b1].radius + _root.game[b2].radius;
var _local22 = (((-2 * _local7) * _local6) + (_local7 * _local7)) + (_local6 * _local6);
var _local21 = ((((-2 * _local5) * _local6) - ((2 * _local4) * _local7)) + ((2 * _local5) * _local7)) + ((2 * _local4) * _local6);
var _local20 = (((-2 * _local5) * _local4) + (_local5 * _local5)) + (_local4 * _local4);
var _local19 = (((-2 * _local9) * _local8) + (_local9 * _local9)) + (_local8 * _local8);
var _local18 = ((((-2 * _local3) * _local8) - ((2 * _local2) * _local9)) + ((2 * _local3) * _local9)) + ((2 * _local2) * _local8);
var _local26 = (((-2 * _local3) * _local2) + (_local3 * _local3)) + (_local2 * _local2);
var _local15 = _local22 + _local19;
var _local12 = _local21 + _local18;
var _local25 = (_local20 + _local26) - (_local16 * _local16);
var _local17 = Math.sqrt((_local12 * _local12) - ((4 * _local15) * _local25));
var _local14 = ((-_local12) + _local17) / (2 * _local15);
var _local13 = ((-_local12) - _local17) / (2 * _local15);
if ((_local14 > 0) && (_local14 <= 1)) {
var _local23 = _local14;
var _local24 = true;
}
if ((_local13 > 0) && (_local13 <= 1)) {
if ((_local23 == null) || (_local13 < _local14)) {
var _local23 = _local13;
var _local24 = true;
}
}
if (_local24) {
ball2BallReaction(b1, b2, _local5, _local4, _local3, _local2, _local23);
}
}
function moveBounceBalls() {
var _local3 = 0;
while (_local3 < (_root.bounceball_maxcount + 1)) {
if (_root.game["bounceball_" + _local3]) {
var _local2 = _root.game["bounceball_" + _local3];
_local2.tempx = _local2.xpos + _local2.xspeed;
_local2.tempy = _local2.ypos + _local2.yspeed;
}
_local3++;
}
_local3 = 0;
while (_local3 < _root.lightning_maxcount) {
if (_root.game["lightning" + _local3]) {
var _local2 = _root.game["lightning" + _local3];
_local2.tempx = _local2.xpos + _local2.xspeed;
_local2.tempy = _local2.ypos + _local2.yspeed;
}
_local3++;
}
}
function renderBounceBalls() {
var _local3 = 0;
while (_local3 < (_root.bounceball_maxcount + 1)) {
if (_root.game["bounceball_" + _local3]) {
var _local2 = _root.game["bounceball_" + _local3];
_local2.xpos = _local2.tempx;
_local2.ypos = _local2.tempy;
_local2._x = _local2.xpos;
_local2._y = _local2.ypos;
}
_local3++;
}
_local3 = 0;
while (_local3 < _root.lightning_maxcount) {
if (_root.game["lightning" + _local3]) {
var _local2 = _root.game["lightning" + _local3];
_local2.xpos = _local2.tempx;
_local2.ypos = _local2.tempy;
_local2._x = _local2.xpos;
_local2._y = _local2.ypos;
}
_local3++;
}
}
lightning_depth = 5000;
lightning_spawn_depth = 5100;
explode1_depth = 5200;
shleif1_depth = 20;
bounceball_depth = 7000;
bounceballdeath_depth = 6500;
shleif2_depth = 10000;
cannonball_depth = 12000;
sparkle_depth = 15000;
onMouseUp = function () {
_root.repelling_activated = 0;
_root.character_rotation = 1;
};
onMouseDown = function () {
_root.repelling_activated = 1;
};
onEnterFrame = function () {
if (_root.game_on_hold != 1) {
_root.kursor = 1;
_root.game.ball._visible = true;
} else {
_root.kursor = 2;
_root.game.ball._visible = false;
}
if ((_root.repelling_activated eq 1) and (_root.game_on_hold != 1)) {
if (_root.energy > 0) {
_root.character_rotation = 10;
_root.energy = _root.energy - ((_root.energy_max / _root.repel_energy_seconds) * 0.025);
var _local4 = 0;
while (_local4 < _root.lightning_maxcount) {
Repel("lightning" + _local4);
_local4++;
}
_local4 = 0;
while (_local4 < (_root.bounceball_maxcount + 1)) {
Repel("bounceball_" + _local4);
_local4++;
}
} else {
_root.repelling_activated = 0;
_root.character_rotation = 1;
}
}
_root.bounceball_damage = 15500 + random(500);
_root.cannon_damage = 20500 + random(500);
_root.lightning_damage = 3500 + random(500);
BounceballDeath();
MouseCollisions();
LightningShleif();
CannonballShleif();
LightningWallCollision();
BallControll();
LightningDeath();
if (_root.change_directions eq 1) {
var _local4 = 0;
while (_local4 < _root.bounceball_maxcount) {
if (_root.game["bounceball_" + _local4]) {
_root.game["bounceball_" + _local4].change_directions = 1;
}
_local4++;
}
_root.change_directions = 0;
}
moveBounceBalls();
BounceBallWallCollision();
var _local4 = _root.bounceball_maxcount + 1;
while (_local4-- , _local4 + 1) {
var _local5 = "bounceball_" + _local4;
var _local2 = _local4;
while (_local2-- , _local2 + 1) {
var _local3 = "bounceball_" + _local2;
if (_root.game["bounceball_" + _local2] and _root.game["bounceball_" + _local4]) {
ballToBallDetection(_local5, _local3);
ZashitaOtSkleivaniya(_local5, _local3);
}
}
}
renderBounceBalls();
if (_root.lazerhit != 0) {
Lazerhit(_root.lazerhit);
_root.lazerhit = 0;
}
aaa = _root._ymouse;
if ((aaa < 60) or (aaa > 335)) {
_root.score_modifier = 0;
} else if (((aaa > 60) and (aaa < 111)) or ((aaa > 284) and (aaa < 335))) {
_root.score_modifier = 1;
} else if (((aaa > 111) and (aaa < 165)) or ((aaa > 234) and (aaa < 284))) {
_root.score_modifier = 3;
} else if ((aaa > 165) and (aaa < 234)) {
_root.score_modifier = 5;
}
if (_root.game_on_hold eq 1) {
_root.music.stop();
} else if (_root.stopscore != 1) {
_root.score = _root.score + (_root.scorebonus * _root.score_modifier);
}
};
Instance of Symbol 682 MovieClip "explode1_source" in Symbol 786 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name != "explode1_source") {
_rotation = (_rotation + 10);
}
}
Symbol 787 MovieClip Frame 1
if (starz._x < 0) {
starz._x = starz._x + (_root.background_srars_speed * 4);
} else {
starz._x = -703.9;
}
starz.cacheAsBitmap = true;
Symbol 787 MovieClip Frame 2
gotoAndPlay (1);
Symbol 788 MovieClip Frame 1
if (starz._x < 1598) {
starz._x = starz._x + (_root.background_srars_speed * 10);
} else {
starz._x = 894;
}
starz.cacheAsBitmap = true;
Symbol 788 MovieClip Frame 2
gotoAndPlay (1);
Instance of Symbol 787 MovieClip in Symbol 789 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.endeverything eq 1) {
if (_alpha > 0) {
_alpha = (_alpha-1);
} else {
_alpha = 0;
_visible = false;
}
}
if (_root.stars_go eq 1) {
_visible = true;
if (_alpha < 100) {
_alpha = (_alpha+1);
} else {
_alpha = 100;
}
}
}
Instance of Symbol 788 MovieClip in Symbol 789 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.endeverything eq 1) {
if (_alpha > 0) {
_alpha = (_alpha-1);
} else {
_alpha = 0;
_visible = false;
}
}
if (_root.stars_go eq 1) {
_visible = true;
if (_alpha < 100) {
_alpha = (_alpha+1);
} else {
_alpha = 100;
}
}
}
Symbol 798 MovieClip Frame 1
if (yiff != 456) {
yiff = 456;
a = _root.score_modifier;
}
Instance of Symbol 797 MovieClip in Symbol 798 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.score_modifier eq 0) {
gotoAndStop (1);
} else if (_root.score_modifier eq 1) {
gotoAndStop (2);
} else if (_root.score_modifier eq 3) {
gotoAndStop (3);
} else if (_root.score_modifier eq 5) {
gotoAndStop (4);
}
}
Symbol 798 MovieClip Frame 2
if (_root.score_modifier != a) {
play();
yiff = 6;
} else {
gotoAndPlay (1);
}
Instance of Symbol 808 MovieClip in Symbol 810 MovieClip Frame 1
onClipEvent (enterFrame) {
if (yiff != 5676457) {
yiff = 5676457 /* 0x569DA9 */;
maxlength = _width;
}
_width = (maxlength * (_root.energy / _root.energy_max));
}
Instance of Symbol 813 MovieClip in Symbol 819 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 820 MovieClip Frame 2
if (play_ eq 1) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Instance of Symbol 819 MovieClip in Symbol 820 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.global_quality eq 1) {
gotoAndStop (2);
} else if (_root.global_quality eq 2) {
gotoAndStop (3);
} else if (_root.global_quality eq 3) {
gotoAndStop (4);
} else if (_root.global_quality eq 4) {
gotoAndStop (5);
}
}
Symbol 820 MovieClip Frame 4
if (play_ eq 1) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 822 MovieClip Frame 2
if (_root.global_quality eq 1) {
_root._quality = "low";
} else if (_root.global_quality eq 2) {
_root._quality = "medium";
} else if (_root.global_quality eq 3) {
_root._quality = "high";
} else if (_root.global_quality eq 4) {
_root._quality = "best";
}
Symbol 824 Button
on (keyPress "e") {
play();
}
Symbol 825 Button
on (keyPress "y") {
gotoAndPlay (90);
}
Symbol 829 MovieClip Frame 1
stop();
Symbol 829 MovieClip Frame 89
gotoAndStop (1);
Symbol 829 MovieClip Frame 95
_root.play();
Symbol 831 Button
on (press, keyPress "Q") {
gotoAndPlay (2);
if (_root.global_quality < 4) {
_root.global_quality = _root.global_quality + 1;
} else if (_root.global_quality eq 4) {
_root.global_quality = 1;
}
}
on (keyPress "q") {
gotoAndPlay (2);
if (_root.global_quality < 4) {
_root.global_quality = _root.global_quality + 1;
} else if (_root.global_quality eq 4) {
_root.global_quality = 1;
}
}
Symbol 832 MovieClip Frame 1
stop();
Symbol 832 MovieClip Frame 2
_root.show_quality.play_ = 1;
Symbol 832 MovieClip Frame 35
_root.show_quality.play_ = 0;
Symbol 835 MovieClip Frame 2
if (_root.damage < 0) {
damage = 0;
} else {
damage = Math.floor(_root.damage);
}
Symbol 837 MovieClip Frame 2
if (_root.score < 0) {
score = 0;
} else {
score = Math.floor(_root.score);
}
Symbol 841 MovieClip Frame 2
final_score = Math.floor(_root.final_score);
Symbol 849 MovieClip Frame 1
nametext.text = "Enter Name";
_root.teh_name = nametext.text;
Symbol 849 MovieClip Frame 4
_root.teh_name = nametext.text;
gotoAndPlay (2);
Symbol 852 MovieClip Frame 1
teh_name = _root.teh_name;
Symbol 853 MovieClip Frame 1
stop();
Instance of Symbol 853 MovieClip in Symbol 854 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.done_submitting eq 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 859 Button
on (release) {
_root.play();
}
Symbol 866 Button
on (release) {
play();
}
Symbol 871 MovieClip Frame 1
_root.done_submitting = 0;
stop();
Symbol 871 MovieClip Frame 2
if (_root.teh_name eq "Enter Name") {
_root.teh_name = "I did not enter my name :P";
}
ab20_09 = new LoadVars();
ab20_09.z = _root.teh_name;
ab20_09.x = ab20.encodeNum(_root.final_score);
ab20_09.c = 1377;
ab20_09.v = "CNKKNE";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
Symbol 871 MovieClip Frame 19
stop();
Symbol 872 MovieClip Frame 2
if (_root.countscorealready != 1) {
gotoAndPlay (1);
}
Symbol 872 MovieClip Frame 21
_root.activate_q_and_e = 1;
Symbol 872 MovieClip Frame 24
_root.activate_q_and_e = 1;
Symbol 872 MovieClip Frame 28
if (yiff != 1) {
yiff = 1;
framerate = 40;
seconds = 5;
if (_root.score > _root.damage) {
speed = (_root.score / seconds) / framerate;
} else {
speed = (_root.damage / seconds) / framerate;
}
}
if (_root.score > 0) {
_root.score = _root.score - speed;
_root.final_score = _root.final_score + speed;
} else {
_root.score = 0;
}
if (_root.damage > 0) {
_root.damage = _root.damage - speed;
_root.final_score = _root.final_score - speed;
} else {
_root.damage = 0;
}
Symbol 872 MovieClip Frame 29
if ((_root.score > 0) or (_root.damage > 0)) {
gotoAndPlay (28);
}
Symbol 872 MovieClip Frame 99
stop();
Symbol 901 MovieClip Frame 1
Mouse.hide();
startDrag (this, true);
Instance of Symbol 900 MovieClip in Symbol 901 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.kursor eq 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 906 MovieClip Frame 60
stop();
Symbol 908 MovieClip Frame 1
stop();
if (yiff != 1111) {
yiff = 1111;
_root.stars_go = 0;
_root.endeverything = 0;
_root.deathcount = 0;
_root.sparklecount = 0;
_root.shleifcount = 0;
_root.distort = 0;
_root.lightning_maxcount = 20;
_root.character_rotation = 1;
_root.countscorealready = 0;
_root.done_submitting = 0;
_root.bounceball_maxcount = 5;
_root.bounceball_rotationspeed = 3;
_root.background_srars_speed = 0.5;
_root.bounceball_normal_speed = 3;
_root.game_on_hold = 1;
_root.scorebonus = 25;
_root.final_score = 0;
_root.score = 0;
_root.damage = 0;
_root.stopscore = 0;
_root.energy_max = 100;
_root.energy = _root.energy_max;
_root.repel_energy_seconds = 5;
}
function BounceballDeath() {
var _local2 = 0;
while (_local2 < _root.bounceball_maxcount) {
if (_root.game["bounceball_" + _local2].death eq 1) {
if (_root.deathcount > 100) {
_root.deathcount = 0;
} else {
_root.deathcount++;
}
_root.damage = _root.damage + _root.bounceball_damage;
duplicateMovieClip (_root.game.bounceballdeath_source, "bounceballdeath_" + _root.deathcount, _root.deathcount + bounceballdeath_depth);
_root.game["bounceballdeath_" + _root.deathcount]._x = _root.game["bounceball_" + _local2]._x;
_root.game["bounceballdeath_" + _root.deathcount]._y = _root.game["bounceball_" + _local2]._y;
removeMovieClip(_root.game["bounceball_" + _local2]);
}
_local2++;
}
if (_root.game.bounceball_5.death eq 1) {
if (_root.deathcount > 100) {
_root.deathcount = 0;
} else {
_root.deathcount++;
}
_root.damage = _root.damage + _root.cannon_damage;
duplicateMovieClip (_root.game.cannonballdeath_source, "bounceballdeath_" + _root.deathcount, _root.deathcount + bounceballdeath_depth);
_root.game["bounceballdeath_" + _root.deathcount]._x = _root.game.bounceball_5._x;
_root.game["bounceballdeath_" + _root.deathcount]._y = _root.game.bounceball_5._y;
removeMovieClip(_root.game.bounceball_5);
}
}
function SpawnCannonball() {
if (_root.game.bounceball_5) {
} else {
duplicateMovieClip (_root.game.cannonball_source, "bounceball_5", cannonball_depth);
_root.game.bounceball_5._x = _root.xleft._x;
_root.game.bounceball_5._y = -160 + random(320);
}
}
function SpawnBounceball() {
var _local2 = 0;
while (_local2 < _root.bounceball_maxcount) {
if (_root.game["bounceball_" + _local2]) {
} else {
duplicateMovieClip (_root.game.bounceball_source, "bounceball_inactive_" + _local2, _local2 + bounceball_depth);
_root.game["bounceball_inactive_" + _local2]._x = _root.xleft._x;
_root.game["bounceball_inactive_" + _local2]._y = -160 + random(320);
_root.game["bounceball_inactive_" + _local2]._name = "bounceball_" + _local2;
_root.game["bounceball_" + _local2].activated = 1;
break;
}
_local2++;
}
}
function CannonballShleif() {
if (_root.game.bounceball_5) {
if (_root.shleifcount > 900) {
_root.shleifcount = 0;
} else {
_root.shleifcount++;
}
duplicateMovieClip (_root.game.shleif2_source, "shleif2_" + _root.shleifcount, _root.shleifcount + shleif2_depth);
_root.game["shleif2_" + _root.shleifcount]._x = _root.game.bounceball_5._x;
_root.game["shleif2_" + _root.shleifcount]._y = _root.game.bounceball_5._y;
_root.game["shleif2_" + _root.shleifcount]._rotation = random(360);
}
}
function ZashitaOtSkleivaniya(b1, b2) {
R1 = _root.game[b1].radius;
R2 = _root.game[b2].radius;
Mass1 = _root.game[b1].mass;
Mass2 = _root.game[b2].mass;
distx = _root.game[b1]._x - _root.game[b2]._x;
disty = _root.game[b1]._y - _root.game[b2]._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance < ((R1 + R2) * 0.97)) {
if (Mass1 > Mass2) {
_root.game[b2].death = 1;
} else if (Mass1 < Mass2) {
_root.game[b1].death = 1;
} else {
_root.game[b2].death = 1;
_root.game[b1].death = 1;
}
}
}
function MouseCollisions() {
var _local2 = 0;
while (_local2 < (_root.bounceball_maxcount + 1)) {
if (_root.game["bounceball_" + _local2]) {
ballradius = 3;
distx = _root.game["bounceball_" + _local2]._x - _root.game._xmouse;
disty = _root.game["bounceball_" + _local2]._y - _root.game._ymouse;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance < ((ballradius + _root.game["bounceball_" + _local2].radius) * 0.95)) {
_root.game["bounceball_" + _local2].death = 1;
}
}
_local2++;
}
}
function BounceBallWallCollision() {
var _local4 = 0;
while (_local4 < (_root.bounceball_maxcount + 1)) {
if (_root.game["bounceball_" + _local4]) {
var _local2 = _root.game["bounceball_" + _local4];
var _local5 = _local2.ypos + _local2.yspeed;
var _local3 = _local2.radius;
if ((_local5 + _local3) > _root.game.bottom_wall._y) {
_local2.tempy = _root.game.bottom_wall._y - _local3;
_local2.yspeed = _local2.yspeed * -1;
}
if ((_local5 - _local3) < _root.game.upper_wall._y) {
_local2.tempy = _root.game.upper_wall._y + _local3;
_local2.yspeed = _local2.yspeed * -1;
}
}
_local4++;
}
}
function ball2BallReaction(b1, b2, x1, x2, y1, y2, time) {
var _local6 = _root.game[b1].mass;
var _local9 = _root.game[b2].mass;
var _local20 = _root.game[b1].xspeed;
var _local19 = _root.game[b2].xspeed;
var _local31 = _root.game[b1].xspeed;
var _local32 = _root.game[b2].xspeed;
var _local23 = _root.game[b1].yspeed;
var _local21 = _root.game[b2].yspeed;
var _local24 = x1 - x2;
var _local28 = y1 - y2;
var _local13 = Math.atan2(_local28, _local24);
var _local5 = Math.cos(_local13);
var _local4 = Math.sin(_local13);
var _local26 = x1 - x2;
var _local25 = y1 - y2;
R_2 = _root.game[b2].radius;
var _local8 = ((-Math.atan2(_local26, _local25)) / (Math.PI/180)) + 270;
collision_y3 = y2 - (R_2 * Math.sin(_local8 * (Math.PI/180)));
collision_x3 = x2 - (R_2 * Math.cos(_local8 * (Math.PI/180)));
GenerateSparkles(collision_x3, collision_y3);
collisionEffect(collision_x3, collision_y3);
var _local14 = (_local20 * _local5) + (_local23 * _local4);
var _local11 = (_local19 * _local5) + (_local21 * _local4);
var _local12 = (_local23 * _local5) - (_local20 * _local4);
var _local10 = (_local21 * _local5) - (_local19 * _local4);
var _local22 = (_local6 * _local14) + (_local9 * _local11);
var _local27 = _local14 - _local11;
var _local15 = (_local22 + (_local6 * _local27)) / (_local6 + _local9);
var _local18 = (_local15 - _local14) + _local11;
_local14 = _local18;
_local11 = _local15;
_local20 = (_local14 * _local5) - (_local12 * _local4);
_local19 = (_local11 * _local5) - (_local10 * _local4);
_local23 = (_local12 * _local5) + (_local14 * _local4);
_local21 = (_local10 * _local5) + (_local11 * _local4);
_root.game[b1].tempx = _root.game[b1].xpos + ((_root.game[b1].xspeed * time) * 0.9);
_root.game[b1].tempy = _root.game[b1].ypos + ((_root.game[b1].yspeed * time) * 0.9);
_root.game[b2].tempx = _root.game[b2].xpos + ((_root.game[b2].xspeed * time) * 0.9);
_root.game[b2].tempy = _root.game[b2].ypos + ((_root.game[b2].yspeed * time) * 0.9);
_root.game[b1].xspeed = _local20;
_root.game[b2].xspeed = _local19;
_root.game[b1].yspeed = _local23;
_root.game[b2].yspeed = _local21;
}
function ballToBallDetection(b1, b2) {
var _local7 = _root.game[b1].xspeed;
var _local9 = _root.game[b1].yspeed;
var _local6 = _root.game[b2].xspeed;
var _local8 = _root.game[b2].yspeed;
var _local5 = _root.game[b1].xpos;
var _local3 = _root.game[b1].ypos;
var _local4 = _root.game[b2].xpos;
var _local2 = _root.game[b2].ypos;
var _local16 = _root.game[b1].radius + _root.game[b2].radius;
var _local22 = (((-2 * _local7) * _local6) + (_local7 * _local7)) + (_local6 * _local6);
var _local21 = ((((-2 * _local5) * _local6) - ((2 * _local4) * _local7)) + ((2 * _local5) * _local7)) + ((2 * _local4) * _local6);
var _local20 = (((-2 * _local5) * _local4) + (_local5 * _local5)) + (_local4 * _local4);
var _local19 = (((-2 * _local9) * _local8) + (_local9 * _local9)) + (_local8 * _local8);
var _local18 = ((((-2 * _local3) * _local8) - ((2 * _local2) * _local9)) + ((2 * _local3) * _local9)) + ((2 * _local2) * _local8);
var _local26 = (((-2 * _local3) * _local2) + (_local3 * _local3)) + (_local2 * _local2);
var _local15 = _local22 + _local19;
var _local12 = _local21 + _local18;
var _local25 = (_local20 + _local26) - (_local16 * _local16);
var _local17 = Math.sqrt((_local12 * _local12) - ((4 * _local15) * _local25));
var _local14 = ((-_local12) + _local17) / (2 * _local15);
var _local13 = ((-_local12) - _local17) / (2 * _local15);
if ((_local14 > 0) && (_local14 <= 1)) {
var _local23 = _local14;
var _local24 = true;
}
if ((_local13 > 0) && (_local13 <= 1)) {
if ((_local23 == null) || (_local13 < _local14)) {
var _local23 = _local13;
var _local24 = true;
}
}
if (_local24) {
ball2BallReaction(b1, b2, _local5, _local4, _local3, _local2, _local23);
}
}
function moveBounceBalls() {
var _local3 = 0;
while (_local3 < (_root.bounceball_maxcount + 1)) {
if (_root.game["bounceball_" + _local3]) {
var _local2 = _root.game["bounceball_" + _local3];
_local2.tempx = _local2.xpos + _local2.xspeed;
_local2.tempy = _local2.ypos + _local2.yspeed;
}
_local3++;
}
_local3 = 0;
while (_local3 < _root.lightning_maxcount) {
if (_root.game["lightning" + _local3]) {
var _local2 = _root.game["lightning" + _local3];
_local2.tempx = _local2.xpos + _local2.xspeed;
_local2.tempy = _local2.ypos + _local2.yspeed;
}
_local3++;
}
}
function renderBounceBalls() {
var _local3 = 0;
while (_local3 < (_root.bounceball_maxcount + 1)) {
if (_root.game["bounceball_" + _local3]) {
var _local2 = _root.game["bounceball_" + _local3];
_local2.xpos = _local2.tempx;
_local2.ypos = _local2.tempy;
_local2._x = _local2.xpos;
_local2._y = _local2.ypos;
}
_local3++;
}
_local3 = 0;
while (_local3 < _root.lightning_maxcount) {
if (_root.game["lightning" + _local3]) {
var _local2 = _root.game["lightning" + _local3];
_local2.xpos = _local2.tempx;
_local2.ypos = _local2.tempy;
_local2._x = _local2.xpos;
_local2._y = _local2.ypos;
}
_local3++;
}
}
lightning_depth = 5000;
lightning_spawn_depth = 5100;
explode1_depth = 5200;
shleif1_depth = 20;
bounceball_depth = 7000;
bounceballdeath_depth = 6500;
shleif2_depth = 10000;
cannonball_depth = 12000;
sparkle_depth = 15000;
onEnterFrame = function () {
_root.bounceball_damage = 15500 + random(500);
_root.cannon_damage = 20500 + random(500);
_root.lightning_damage = 3500 + random(500);
BounceballDeath();
MouseCollisions();
CannonballShleif();
if (_root.change_directions eq 1) {
var _local4 = 0;
while (_local4 < _root.bounceball_maxcount) {
if (_root.game["bounceball_" + _local4]) {
_root.game["bounceball_" + _local4].change_directions = 1;
}
_local4++;
}
_root.change_directions = 0;
}
moveBounceBalls();
BounceBallWallCollision();
var _local4 = _root.bounceball_maxcount + 1;
while (_local4-- , _local4 + 1) {
var _local5 = "bounceball_" + _local4;
var _local2 = _local4;
while (_local2-- , _local2 + 1) {
var _local3 = "bounceball_" + _local2;
if (_root.game["bounceball_" + _local2] and _root.game["bounceball_" + _local4]) {
ballToBallDetection(_local5, _local3);
ZashitaOtSkleivaniya(_local5, _local3);
}
}
}
renderBounceBalls();
if (_root.lazerhit != 0) {
Lazerhit(_root.lazerhit);
_root.lazerhit = 0;
}
};
Instance of Symbol 705 MovieClip "bounceball_source" in Symbol 908 MovieClip Frame 1
onClipEvent (enterFrame) {
mainmenu = 1;
}
Instance of Symbol 722 MovieClip "cannonball_source" in Symbol 908 MovieClip Frame 1
onClipEvent (enterFrame) {
mainmenu = 1;
}
Symbol 910 MovieClip Frame 25
_root.game.SpawnBounceball();
Symbol 912 MovieClip Frame 1
stopAllSounds();
Symbol 912 MovieClip Frame 2
_root.change_directions = 1;
Symbol 912 MovieClip Frame 3
_root.game.SpawnCannonball();
Symbol 912 MovieClip Frame 119
_root.change_directions = 1;
Symbol 912 MovieClip Frame 235
_root.change_directions = 1;
Symbol 912 MovieClip Frame 340
_root.change_directions = 1;
Symbol 912 MovieClip Frame 468
_root.change_directions = 1;
_root.game.SpawnCannonball();
Symbol 912 MovieClip Frame 585
_root.change_directions = 1;
Symbol 912 MovieClip Frame 700
_root.change_directions = 1;
Symbol 912 MovieClip Frame 812
_root.change_directions = 1;
Symbol 912 MovieClip Frame 933
_root.change_directions = 1;
_root.game.SpawnCannonball();
Symbol 912 MovieClip Frame 989
_root.change_directions = 1;
Symbol 912 MovieClip Frame 1043
_root.change_directions = 1;
Symbol 912 MovieClip Frame 1106
_root.change_directions = 1;
Symbol 912 MovieClip Frame 1164
_root.change_directions = 1;
Symbol 912 MovieClip Frame 1222
_root.change_directions = 1;
Symbol 912 MovieClip Frame 1339
_root.change_directions = 1;
Symbol 912 MovieClip Frame 1459
_root.change_directions = 1;
Symbol 912 MovieClip Frame 1511
_root.change_directions = 1;
Symbol 912 MovieClip Frame 1627
_root.change_directions = 1;
Symbol 912 MovieClip Frame 1687
_root.change_directions = 1;
Symbol 912 MovieClip Frame 1746
_root.change_directions = 1;
Symbol 912 MovieClip Frame 1861
gotoAndPlay (2);
Symbol 931 Button
on (release) {
play();
}
Symbol 933 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=1377", "_blank");
}
Symbol 951 Button
on (release) {
getURL ("http://www.armorgames.com/download/velocity.zip", "_blank");
}
Symbol 953 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 955 Button
on (release) {
getURL ("http://dimonzerg.narod.ru/", "_blank");
}
Symbol 956 MovieClip Frame 28
stop();
Symbol 956 MovieClip Frame 55
_root.play();
Symbol 973 MovieClip Frame 40
stop();
Symbol 1036 MovieClip Frame 1
setProperty("shesterenka", _rotation , shesterenka._rotation - 1);
Symbol 1036 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1044 MovieClip Frame 134
tellTarget ("_root") {
play();
};
stop();
Symbol 1047 Button
on (release) {
play();
stopAllSounds();
}
Symbol 1073 MovieClip Frame 105
stop();
_root.play();
Symbol 1082 MovieClip Frame 105
stop();
_root.play();