Frame 1
stop();
Frame 110
stop();
Frame 111
stop();
var SP1 = new SpawnPoint(50);
var SP2 = new SpawnPoint(100);
var SP3 = new SpawnPoint(150);
var SP4 = new SpawnPoint(200);
var SP5 = new SpawnPoint(250);
var SP6 = new SpawnPoint(300);
var SP7 = new SpawnPoint(350);
var SP8 = new SpawnPoint(400);
var SP9 = new SpawnPoint(450);
var SP10 = new SpawnPoint(500);
var spawnPoints = new Array(SP1, SP2, SP3, SP4, SP5, SP6, SP7, SP8, SP9, SP10);
var blueBomb = new Array();
var redBomb = new Array();
var greenBomb = new Array();
var yellowBomb = new Array();
var buildingHit = 0;
var population;
var explosionCount = 1;
var bbIndex = 0;
var rbIndex = 0;
var gbIndex = 0;
var ybIndex = 0;
var totalBombs = 0;
var currentSong;
var level = 0;
var score = 0;
var totalScore = 0;
var multiplier = 1;
var multCount = 0;
var levelComplete1 = false;
var levelComplete2 = false;
var levelComplete3 = false;
var levelComplete4 = false;
var gameOn = false;
attachMovie("levelOver", "levelOver", 21000);
var building = attachMovie("building", "building", 50);
building._y = 500;
building._x = 3;
var statusBar = attachMovie("statusBar", "statusBar", 17002);
statusBar._y = 500;
var laser = attachMovie("laser", "laser", 17000);
laser._x = _root._xmouse;
laser._y = _root._ymouse;
laser._visible = false;
var background1 = attachMovie("background_night", "background_night", 25);
var flash = attachMovie("flash", "flash", 51);
onMouseMove = function () {
if (gameOn) {
laser.startDrag(true);
updateAfterEvent();
}
};
onMouseDown = function () {
if (gameOn) {
laser.play();
}
};
onEnterFrame = function () {
laser._visible = false;
if (gameOn) {
Mouse.hide();
laser._visible = true;
population = 100 - (5 * buildingHit);
if (population <= 0) {
var _local2 = attachMovie("GameOver", "GameOver", 23000);
s = 0;
while (s < 5) {
_root["Song" + s].removeMovieClip();
s++;
}
gameOn = false;
Mouse.show();
laser._visible = false;
}
if (blueBomb[bbIndex] == songClip._currentframe) {
bombSpawn("blue_bomb", "bb", bbIndex);
bbIndex++;
}
if (redBomb[rbIndex] == songClip._currentframe) {
bombSpawn("red_bomb", "rb", rbIndex);
rbIndex++;
}
if (greenBomb[gbIndex] == songClip._currentframe) {
bombSpawn("green_bomb", "gb", gbIndex);
gbIndex++;
}
if (yellowBomb[ybIndex] == songClip._currentframe) {
bombSpawn("yellow_bomb", "yb", ybIndex);
ybIndex++;
}
i = 0;
while (i < 10) {
if (spawnPoints[i].clip._y >= 100) {
spawnPoints[i].active = false;
}
i++;
}
}
};
bombSpawn = function (target, newName, index) {
var _local1 = Math.floor(Math.random() * 10);
if (!spawnPoints[_local1].active) {
var _local2 = attachMovie(target, newName + index, 100 + totalBombs);
_local2._x = spawnPoints[_local1].position;
_local2._y = spawnPoints[_local1].y;
spawnPoints[_local1].active = true;
spawnPoints[_local1].clip = _local2;
totalBombs++;
} else {
while (spawnPoints[_local1].active) {
_local1 = Math.floor(Math.random() * 10);
}
if (!spawnPoints[_local1].active) {
spawnPoints[_local1].active = true;
var _local2 = attachMovie(target, newName + index, 100 + totalBombs);
_local2._x = spawnPoints[_local1].position;
_local2._y = spawnPoints[_local1].y;
spawnPoints[_local1].clip = _local2;
totalBombs++;
}
}
};
nextLevel = function (level) {
switch (level) {
case 1 :
reset("Song1");
break;
case 2 :
reset("Song2");
break;
case 3 :
reset("Song3");
break;
case 4 :
reset("Song4");
}
};
reset = function (song) {
currentSong = song;
songClip = attachMovie(song, song, 1000);
bbIndex = 0;
rbIndex = 0;
gbIndex = 0;
ybIndex = 0;
multiplier = 1;
multCount = 0;
};
Symbol 5 MovieClip [blue_bomb] Frame 1
stop();
var canHit = true;
this.onEnterFrame = function () {
this._y = this._y + 7;
if (((this._y >= 470) && (_root.gameOn)) && (canHit)) {
canHit = false;
_root.flash.play();
_root.buildingHit++;
_root.building.nextFrame();
_root.multiplier = 1;
_root.multCount = 0;
this.play();
}
};
this.onMouseDown = function () {
if (_root.gameOn) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
var _local3 = _root.attachMovie("explosion", "explosion" + _root.explosionCount, 6000 + _root.explosionCount);
_local3._x = this._x;
_local3._y = this._y;
_root.multCount++;
if ((_root.multCount >= 10) && (_root.multiplier < 5)) {
_root.multiplier++;
_root.multCount = 0;
}
_root.score = _root.score + (100 * _root.multiplier);
_root.explosionCount++;
this.removeMovieClip();
}
}
};
Symbol 5 MovieClip [blue_bomb] Frame 5
this.removeMovieClip();
Symbol 8 MovieClip [red_bomb] Frame 1
stop();
var canHit = true;
var xspeed = 0.6;
var movement = 0;
this.onEnterFrame = function () {
this._y = this._y + 4;
this._x = this._x + xspeed;
movement++;
if ((movement >= 12) || (movement < 0)) {
xspeed = xspeed * -1;
movement = 0;
}
if (((this._y >= 470) && (_root.gameOn)) && (canHit)) {
canHit = false;
_root.flash.play();
_root.buildingHit++;
_root.building.nextFrame();
_root.multiplier = 1;
_root.multCount = 0;
this.play();
}
};
this.onMouseDown = function () {
if (_root.gameOn) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
var _local3 = _root.attachMovie("explosion", "explosion" + _root.explosionCount, 6000 + _root.explosionCount);
_local3._x = this._x;
_local3._y = this._y;
_root.multCount++;
if ((_root.multCount >= 10) && (_root.multiplier < 5)) {
_root.multiplier++;
_root.multCount = 0;
}
_root.score = _root.score + (100 * _root.multiplier);
_root.explosionCount++;
this.removeMovieClip();
}
}
};
Symbol 8 MovieClip [red_bomb] Frame 5
this.removeMovieClip();
Symbol 10 MovieClip [green_bomb] Frame 1
stop();
var canHit = true;
this.onEnterFrame = function () {
this._y = this._y + 4.5;
if (((this._y >= 470) && (_root.gameOn)) && (canHit)) {
canHit = false;
_root.flash.play();
_root.buildingHit++;
_root.building.nextFrame();
_root.multiplier = 1;
_root.multCount = 0;
this.play();
}
};
this.onMouseDown = function () {
if (_root.gameOn) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
var _local3 = _root.attachMovie("explosion", "explosion" + _root.explosionCount, 6000 + _root.explosionCount);
_local3._x = this._x;
_local3._y = this._y;
_root.multCount++;
if ((_root.multCount >= 10) && (_root.multiplier < 5)) {
_root.multiplier++;
_root.multCount = 0;
}
_root.score = _root.score + (100 * _root.multiplier);
_root.explosionCount++;
this.removeMovieClip();
}
}
};
Symbol 10 MovieClip [green_bomb] Frame 5
this.removeMovieClip();
Symbol 12 MovieClip [yellow_bomb] Frame 1
stop();
var canHit = true;
this.onEnterFrame = function () {
this._y = this._y + 4;
if (((this._y >= 470) && (_root.gameOn)) && (canHit)) {
canHit = false;
_root.flash.play();
_root.buildingHit++;
_root.building.nextFrame();
_root.multiplier = 1;
_root.multCount = 0;
this.play();
}
};
this.onMouseDown = function () {
if (_root.gameOn) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
var _local3 = _root.attachMovie("explosion", "explosion" + _root.explosionCount, 6000 + _root.explosionCount);
_local3._x = this._x;
_local3._y = this._y;
_root.multCount++;
if ((_root.multCount >= 10) && (_root.multiplier < 5)) {
_root.multiplier++;
_root.multCount = 0;
}
_root.score = _root.score + (100 * _root.multiplier);
_root.explosionCount++;
this.removeMovieClip();
}
}
};
Symbol 12 MovieClip [yellow_bomb] Frame 5
this.removeMovieClip();
Symbol 13 MovieClip [Song1] Frame 1
_root.blueBomb = new Array(219, 263, 307, 365, 421, 472, 523, 583, 638, 695, 749, 801, 854, 908, 961, 1015, 1708, 1817, 1921, 1975, 2028, 2079, 2136, 2187, 2242, 2294, 2348, 2400, 2454, 2507, 2560, 2613, 2667, 2719, 2771, 2826, 2881, 2934, 2987, 3039, 3093, 3147, 3200, 3252, 3306, 3360, 3412, 3466, 3519, 3574, 3626);
_root.redBomb = new Array(685, 737, 790, 844, 898, 950, 1004, 1056, 1750, 1856, 1921, 1975, 2028, 2079, 2136, 2187, 2242, 2294, 2348, 2985, 3039, 3093, 3147, 3200, 3213, 3253, 3266, 3306, 3318, 3359, 3373, 3413, 3426, 3464, 3478, 3520, 3532, 3571, 3586);
_root.greenBomb = new Array(1068, 1122, 1176, 1229, 1282, 1337, 1391, 1442, 1496, 2560, 2613, 2667, 2719, 3650, 3704, 3757, 3809, 3863, 3919, 3970, 4024);
_root.yellowBomb = new Array(1092, 1103, 1143, 1156, 1195, 1209, 1248, 1261, 1302, 1315, 1355, 1369, 1407, 1421, 1463, 1475, 1497, 1509, 1548, 1562, 1601, 1616, 1655, 1669, 1709, 1723, 1762, 1776, 1815, 1828, 1868, 1882, 2385, 2392, 2439, 2446, 2493, 2500, 2546, 2553, 2599, 2606, 2653, 2660, 2708, 2714, 2760, 2766, 2819, 2825, 2872, 2879, 2925, 2933, 2979, 2986, 3032, 3039, 3085, 3092, 3140, 3147, 3623, 3635, 3678, 3691, 3731, 3744, 3785, 3797, 3838, 3851, 3891, 3904, 3944, 3957, 3998, 4011);
Symbol 13 MovieClip [Song1] Frame 4205
stop();
_root.levelComplete1 = true;
_root.attachMovie("levelOver", "levelOver", 20000);
Symbol 34 MovieClip [building] Frame 1
stop();
Symbol 34 MovieClip [building] Frame 2
stop();
Symbol 34 MovieClip [building] Frame 3
stop();
Symbol 34 MovieClip [building] Frame 4
stop();
Symbol 34 MovieClip [building] Frame 5
stop();
Symbol 34 MovieClip [building] Frame 6
stop();
Symbol 34 MovieClip [building] Frame 7
stop();
Symbol 34 MovieClip [building] Frame 8
stop();
Symbol 34 MovieClip [building] Frame 9
stop();
Symbol 34 MovieClip [building] Frame 10
stop();
Symbol 34 MovieClip [building] Frame 11
stop();
Symbol 34 MovieClip [building] Frame 12
stop();
Symbol 34 MovieClip [building] Frame 13
stop();
Symbol 34 MovieClip [building] Frame 14
stop();
Symbol 34 MovieClip [building] Frame 15
stop();
Symbol 34 MovieClip [building] Frame 16
stop();
Symbol 34 MovieClip [building] Frame 17
stop();
Symbol 34 MovieClip [building] Frame 18
stop();
Symbol 34 MovieClip [building] Frame 19
stop();
Symbol 34 MovieClip [building] Frame 20
stop();
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 2
stop();
Symbol 50 MovieClip Frame 3
stop();
Symbol 58 MovieClip [levelOver] Frame 1
function levelSelect(choice, level) {
if (!_root["levelComplete" + level]) {
choice.onPress = function () {
if (!levelPicked) {
if (choice._currentframe == 1) {
choice.gotoAndStop(2);
chosenLevel = level;
_root.level++;
levelPicked = true;
}
} else if (choice._currentframe == 2) {
choice.gotoAndStop(1);
levelPicked = false;
}
};
}
}
var showSplash = true;
_root.gameOn = false;
Mouse.show();
this.swapDepths(21000);
var chosenLevel;
var levelPicked = false;
onEnterFrame = function () {
if (!showSplash) {
this.removeMovieClip();
}
nextLevel.onPress = function () {
if (levelPicked) {
_root.gameOn = true;
showSplash = false;
_root.nextLevel(chosenLevel);
}
};
levelSelect(levelBox1, 1);
levelSelect(levelBox2, 2);
levelSelect(levelBox3, 3);
levelSelect(levelBox4, 4);
if (_root.levelComplete1) {
levelBox1.gotoAndStop(3);
}
if (_root.levelComplete2) {
levelBox2.gotoAndStop(3);
}
if (_root.levelComplete3) {
levelBox3.gotoAndStop(3);
}
if (_root.levelComplete4) {
levelBox4.gotoAndStop(3);
}
};
Symbol 66 MovieClip [Song2] Frame 1
_root.blueBomb = new Array(222, 433, 645, 859, 1072, 1287, 1498, 1551, 1603, 1656, 1711, 1765, 1817, 1871, 1925, 1978, 2031, 2058, 2085, 2112, 2139, 2165, 2192, 2349, 2384, 2423, 2477, 2530, 2584, 2636, 2690, 2777, 2831, 2884, 2938, 2991, 3044, 3098, 3150, 3202, 3255, 3308, 3361, 3415, 3436, 3469, 3488, 3522, 3543, 3575, 3721, 3826, 3933, 4039);
_root.redBomb = new Array(1123, 1127, 1177, 1181, 1230, 1234, 1284, 1288, 1338, 1341, 1390, 1394, 1444, 1448, 1571, 1577, 1679, 1685, 1784, 1791, 1891, 1898, 1930, 1984, 2039, 2064, 2091, 2118, 2151, 2177, 2364, 2391, 2416, 2444, 2470, 2497, 2523, 2550, 2576, 2603, 2630, 2656, 2682, 2709, 2736, 2764, 2790, 2817, 2844, 2871, 2896, 2924, 2950, 2977, 3002, 3030, 3057, 3083, 3110, 3138, 3163, 3191, 3216, 3243, 3269, 3295, 3321, 3350, 3374, 3401, 3427, 3455, 3480, 3508, 3536, 3563);
_root.greenBomb = new Array(253, 298, 350, 404, 459, 511, 564, 618, 672, 725, 779, 833, 3634, 3654, 3688, 3707, 3743, 3761, 3793, 3813, 3847, 3867, 3900, 3920, 3956, 3972, 4007, 4026);
_root.yellowBomb = new Array(256, 263, 311, 318, 366, 372, 419, 426, 473, 479, 525, 532, 578, 585, 633, 640, 686, 693, 738, 746, 793, 800, 847, 854, 898, 905, 952, 959, 1005, 1012, 1060, 1067, 1114, 1120, 1167, 1173, 1221, 1227, 1273, 1280, 1327, 1333, 1379, 1386, 1433, 1439, 1497, 2242, 2248, 2255, 2262, 2269, 2276, 2283, 2289, 2296, 2302, 2309, 2315, 3241, 3295, 3347, 3401, 3455, 3508, 3562, 3666, 3672, 3773, 3779, 3880, 3887, 3986, 3993);
Symbol 66 MovieClip [Song2] Frame 4430
stop();
_root.levelComplete2 = true;
_root.attachMovie("levelOver", "levelOver", 20000);
Symbol 75 MovieClip [explosion] Frame 11
this.removeMovieClip();
Symbol 78 MovieClip [laser] Frame 1
stop();
Symbol 82 MovieClip [flash] Frame 1
stop();
Symbol 91 MovieClip [Song3] Frame 1
_root.blueBomb = new Array(67, 89, 108, 129, 151, 172, 191, 212, 232, 254, 273, 296, 315, 336, 359, 378, 396, 418, 438, 459, 479, 500, 521, 541, 561, 583, 602, 623, 643, 665, 686, 747, 770, 789, 809, 831, 852, 873, 892, 913, 932, 953, 974, 995, 1015, 1038, 1057, 1077, 1098, 1119, 1139, 1160, 1180, 1201, 1221, 1242, 1263, 1284, 1303, 1324, 1345, 1366, 1386, 1459, 1499, 1538, 1580, 1622, 1663, 1706, 1777, 1798, 1817, 1837, 1857, 1878, 1898, 1920, 1940, 1961, 1981, 2002, 2021, 2043, 2063, 2084, 2104, 2150, 2165, 2185, 2205, 2226, 2247, 2267, 2287, 2308, 2329, 2350, 2370, 2390, 2412, 2433, 2454, 2475, 2494, 2515, 2536, 2556, 2576, 2597, 2617, 2638, 2658, 2679, 2700, 2721, 2741, 2763, 2783);
_root.redBomb = new Array(79, 161, 243, 325, 409, 491, 532, 573, 614, 654, 699, 1487, 1517, 1547, 1567, 1601, 1631, 1651, 1689, 2146, 2176, 2217, 2258, 2299, 2341, 2381, 2422, 2464, 2505, 2547, 2587, 2628, 2669, 2711, 2753, 2794);
_root.greenBomb = new Array(1765, 1807, 1846, 1889, 1929, 1971, 2012, 2053, 2095);
_root.yellowBomb = new Array(740, 778, 820, 861, 902, 943, 984, 1026, 1067, 1109, 1149, 1191, 1233, 1274, 1314, 1356, 1397, 2754, 2764, 2775, 2784, 2794, 2805, 2815);
Symbol 91 MovieClip [Song3] Frame 3131
stop();
_root.levelComplete3 = true;
_root.attachMovie("levelOver", "levelOver", 20000);
Symbol 92 MovieClip [Song4] Frame 1
_root.blueBomb = new Array(420, 446, 469, 494, 517, 540, 564, 588, 612, 635, 659, 680, 704, 728, 753, 849, 872, 896, 918, 942, 966, 990, 1013, 1038, 1060, 1085, 1108, 1132, 1155, 1180, 1204, 1227, 1252, 1275, 1297, 1321, 1346, 1370, 1392, 1417, 1441, 1465, 1489, 1512, 1535, 1559, 1583, 1605, 1821, 1843, 1868, 1890, 1915, 1938, 1962, 2797, 2844, 2892, 2940, 2986, 3034, 3084, 3130, 3176, 3224, 3274, 3321, 3366, 3415, 3461, 3510, 3557, 3601, 3650, 3697, 3744, 3793, 3840, 3886);
_root.redBomb = new Array(410, 457, 504, 551, 598, 646, 693, 740, 790, 855, 906, 955, 1002, 1049, 1096, 1143, 1191, 1239, 1287, 1334, 1382, 1426, 1473, 1524, 1571, 1970, 2006, 2041, 2076, 2101, 2124, 2148, 2171, 2194, 2219, 2241, 2265, 2277, 2289, 2302, 2313, 2326, 2338, 3912, 3930, 3947, 3959, 3977, 3995, 4006, 4024, 4042, 4054, 4078, 4101, 4121, 4149, 4166, 4196, 4214, 4242, 4254, 4267, 4279, 4292);
_root.greenBomb = new Array(36, 78, 125, 173, 220, 268, 316, 365, 2363, 2386, 2409, 2432, 2455, 2480, 2503, 2527, 2551, 2575, 2598, 2622, 2644, 2669, 2693, 2716, 3524, 3545, 3567, 3590, 3613, 3636, 3660, 3684, 3708, 3732, 3755, 3780, 3803, 3827, 3850, 3874, 3897);
_root.yellowBomb = new Array(36, 78, 125, 173, 220, 268, 316, 365, 1639, 1690, 1711, 1735, 1748, 1760, 1771, 1784, 1831, 1878, 1925, 1972, 2740, 2786, 2810, 2833, 2858, 2880, 2904, 2928, 2951, 2975, 2998, 3024, 3047, 3070, 3095, 3119, 3142, 3165, 3189, 3214, 3236, 3260, 3284, 3307, 3331, 3354, 3377, 3401, 3425, 3448, 3472, 3496, 3521);
Symbol 92 MovieClip [Song4] Frame 4620
stop();
_root.levelComplete4 = true;
_root.attachMovie("levelOver", "levelOver", 20000);
Symbol 182 MovieClip Frame 141
gotoAndPlay ("bb");
Symbol 244 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 292 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 313 MovieClip Frame 40
stop();
Symbol 325 Button
on (press) {
_root.play();
}
Symbol 326 Button
on (press) {
play();
}
Instance of Symbol 310 MovieClip in Symbol 329 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 329 MovieClip Frame 130
stop();
Symbol 329 MovieClip Frame 154
_root.play();
Symbol 350 MovieClip [__Packages.SpawnPoint] Frame 0
class SpawnPoint
{
var position;
function SpawnPoint (_position) {
position = _position;
}
var y = 30;
var active = false;
}
Symbol 338 MovieClip Frame 100
stop();
Symbol 344 Button
on (release) {
play();
}
Symbol 347 Button
on (release) {
getURL ("www.armorgames.com", _blank);
}
Symbol 348 Button
on (release) {
getURL ("www.newgrounds.com", _blank);
}