Frame 1
my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
my_cm.builtInItems.print = true;
_root.menu = my_cm;
fscommand ("allowscale", false);
Frame 2
gotoAndPlay (11);
Frame 3
Frame 6
_quality = "HIGH";
trace("credits");
Frame 10
stop();
Frame 11
storage = SharedObject.getLocal("spaceace");
arcadehighscore = storage.data.arcadehighscore;
highestscore = storage.data.highestscore;
if (secretcredits == undefined) {
storage.data.secretcredits = 0;
secretcredits = 0;
}
if (highestscore == "undefined") {
storage.data.highestscore = 0;
highestscore = 0;
}
if (arcadehighscore == "undefined") {
storage.data.arcadehighscore = 0;
arcadehighscore = 0;
}
bulletsound1 = new Sound();
bulletsound1.attachSound("bullet1");
bulletsound2 = new Sound();
bulletsound2.attachSound("bullet2");
bulletsound3 = new Sound();
bulletsound3.attachSound("bullet3");
explosion1sound = new Sound();
explosion1sound.attachSound("explosion1");
explosion2sound = new Sound();
explosion2sound.attachSound("explosion2");
explosion3sound = new Sound();
explosion3sound.attachSound("explosion3");
explosion4sound = new Sound();
explosion4sound.attachSound("explosion4");
playerhitsound = new Sound();
playerhitsound.attachSound("playerhit");
alienfire1sound = new Sound();
alienfire1sound.attachSound("alienfire1");
alienfire2sound = new Sound();
alienfire2sound.attachSound("alienfire2");
alienfire3sound = new Sound();
alienfire3sound.attachSound("alienfire3");
alienfire4sound = new Sound();
alienfire4sound.attachSound("alienfire4");
alienfire5sound = new Sound();
alienfire5sound.attachSound("alienfire5");
alienfire6sound = new Sound();
alienfire6sound.attachSound("alienfire6");
alienfire7sound = new Sound();
alienfire7sound.attachSound("alienfire7");
secretsoundclip = new Sound();
secretsoundclip.attachSound("secretsound");
extralifesoundclip = new Sound();
extralifesoundclip.attachSound("extralifesound");
extraenergysoundclip = new Sound();
extraenergysoundclip.attachSound("extraenergysound");
alienshieldhitsound = new Sound();
alienshieldhitsound.attachSound("alienshieldhit");
alienschangerows = new Sound();
alienschangerows.attachSound("rowmove");
Frame 12
attachMovie("cursor", "cursor", 3000);
Frame 58
_root.action = " ";
level = 1;
_quality = "HIGH";
Stage.scaleMode = "noScale";
_root.playerscore = 0;
arcadehighscore = storage.data.arcadehighscore;
highestscore = storage.data.highestscore;
scoretext = (("INVASION: " + highestscore) + " ARCADE: ") + arcadehighscore;
Frame 83
stop();
Frame 110
if (_root.action == "invasion") {
gotoAndPlay ("levelann");
}
if (_root.action == "arcade") {
gotoAndPlay (255);
}
if (_root.action == "controls") {
gotoAndPlay (273);
}
if (_root.action == "credits") {
gotoAndPlay (6);
}
if (_root.action == " ") {
gotoAndPlay (58);
}
Frame 111
attachMovie("fadein", "fadein", 2500);
function initlevel() {
endoflevelbaddydistance = 0;
if (level == 1) {
scrolldist = 1;
leveldist = 3650;
land1 = [11, 1, 2, 5, 1, 1, 18, 1, 14, 13, 1, 1, 22, 1, 23, 1, 9, 10, 11, 1, 1, 1, 1, 1, 11, 1, 2, 5, 1, 1, 18, 1, 14, 13, 1, 1, 22, 1, 23, 1, 9, 10, 11, 1, 1, 1, 1, 1];
land2 = [1, 4, 1, 9, 10, 11, 1, 5, 1, 2, 3, 1, 6, 7, 8, 18, 1, 14, 13, 1, 4, 1, 1, 1, 1, 4, 1, 9, 10, 11, 1, 5, 1, 2, 3, 1, 6, 7, 8, 18, 1, 14, 13, 1, 4, 1, 1, 1];
if (skilllevel == 1) {
enemydata = [105, 5, 182, 163, 5, 243, 171, 5, 109, 223, 5, 302, 240, 5, 47, 342, 6, 183, 405, 5, 262, 409, 5, 115, 507, 6, 258, 511, 6, 117, 606, 5, 117, 612, 5, 255, 846, 2, 308, 842, 2, 167, 902, 2, 137, 909, 2, 276, 1072, 23, 162, 1076, 23, 339, 1190, 23, 340, 1196, 23, 171, 1302, 2, 182, 1309, 2, 337, 1412, 23, 183, 1413, 23, 339, 1368, 7, 264, 1369, 7, 83, 1644, 5, 31, 1645, 5, 101, 1647, 5, 163, 1644, 5, 224, 1641, 5, 281, 1641, 5, 333, 1757, 6, 129, 1757, 6, 253, 1718, 17, 193, 1903, 6, 83, 1905, 6, 281, 1905, 6, 188, 1997, 17, 62, 2005, 17, 313, 2101, 5, 132, 2095, 5, 255, 1700, 3, 18, 1690, 4, 342, 2340, 7, 32, 2344, 7, 89, 2346, 7, 321, 2346, 7, 276, 2424, 2, 265, 2520, 2, 262, 2618, 2, 270, 2685, 23, 338, 2689, 23, 122, 2789, 3, 47, 2790, 3, 179, 2794, 3, 301, 2943, 3, 121, 2943, 3, 259, 3040, 4, 315, 3035, 4, 187, 3037, 4, 40, 3145, 5, 322, 3144, 5, 259, 3142, 5, 218, 3143, 5, 172, 3145, 5, 65, 3142, 5, 125, 3259, 17, 196, 2878, 1, 191, 2005, 1, 187];
}
if (skilllevel == 2) {
enemydata = [105, 5, 182, 240, 5, 47, 606, 5, 117, 612, 5, 255, 1072, 23, 162, 1076, 23, 339, 1190, 23, 340, 1196, 23, 171, 1302, 2, 182, 1309, 2, 337, 1412, 23, 183, 1413, 23, 339, 1368, 7, 264, 1369, 7, 83, 1644, 5, 31, 1645, 5, 101, 1647, 5, 163, 1644, 5, 224, 1641, 5, 281, 1641, 5, 333, 1757, 6, 129, 1757, 6, 253, 1718, 17, 193, 1700, 3, 18, 1690, 4, 342, 2340, 7, 32, 2344, 7, 89, 2346, 7, 321, 2346, 7, 276, 2424, 2, 265, 2520, 2, 262, 2618, 2, 270, 2685, 23, 338, 2689, 23, 122, 2789, 3, 47, 2790, 3, 179, 2794, 3, 301, 2943, 3, 121, 2943, 3, 259, 3040, 4, 315, 3035, 4, 187, 3037, 4, 40, 3145, 5, 322, 3142, 5, 218, 3143, 5, 172, 3145, 5, 65, 3259, 17, 196, 2878, 1, 191, 345, 16, 135, 350, 16, 230, 785, 16, 71, 796, 16, 264, 1452, 16, 39, 1466, 16, 331, 1506, 16, 133, 1512, 16, 258, 1555, 6, 231, 1552, 6, 86, 160, 2, 95, 163, 2, 261, 255, 6, 258, 407, 2, 93, 407, 2, 268, 526, 2, 273, 529, 2, 88, 709, 1, 290, 706, 1, 90, 1145, 6, 67, 1141, 6, 254, 2005, 1, 70, 2010, 1, 296, 2011, 17, 185, 1878, 2, 104, 1872, 2, 269, 2166, 2, 101, 2161, 2, 255, 2630, 2, 74, 2473, 2, 72, 3500, 2, 246, 3200, 21, 119, 3200, 21, 270];
}
if (skilllevel == 3) {
enemydata = [240, 5, 47, 606, 5, 117, 612, 5, 255, 1368, 7, 264, 1369, 7, 83, 1757, 6, 129, 1757, 6, 253, 1718, 17, 193, 1700, 3, 18, 1690, 4, 342, 2340, 7, 32, 2344, 7, 89, 2346, 7, 321, 2346, 7, 276, 2424, 2, 265, 2685, 23, 338, 2689, 23, 122, 2789, 3, 47, 2790, 3, 179, 2794, 3, 301, 3040, 4, 315, 3037, 4, 40, 3145, 5, 322, 3145, 5, 65, 3259, 17, 196, 345, 16, 135, 350, 16, 230, 785, 16, 71, 796, 16, 264, 255, 6, 258, 407, 2, 93, 407, 2, 268, 709, 1, 290, 706, 1, 90, 2005, 1, 70, 2010, 1, 296, 1878, 2, 104, 1872, 2, 269, 2473, 2, 72, 3200, 21, 119, 3200, 21, 270, 81, 2, 190, 154, 2, 328, 158, 2, 168, 477, 26, 21, 325, 26, 13, 646, 26, 15, 565, 27, 338, 395, 27, 336, 208, 27, 341, 1189, 3, 213, 1201, 3, 93, 911, 5, 16, 958, 5, 65, 1002, 5, 113, 1048, 5, 162, 1005, 5, 219, 949, 5, 258, 912, 5, 314, 1111, 1, 72, 1115, 1, 272, 929, 25, 163, 1280, 7, 326, 1278, 7, 24, 1454, 7, 147, 1497, 7, 202, 1814, 26, 33, 1868, 27, 344, 1957, 27, 334, 1967, 26, 15, 2165, 6, 58, 2162, 6, 151, 2164, 6, 230, 2164, 6, 310, 2617, 24, 264, 2605, 23, 92, 2655, 24, 203, 3155, 1, 198, 3068, 6, 134, 3072, 6, 232, 2946, 7, 187, 2950, 6, 281, 2947, 6, 89, 3472, 22, 22, 3470, 22, 109, 3471, 22, 192, 3463, 22, 287];
}
}
if (level == 2) {
scrolldist = 1;
leveldist = 4400;
land1 = [35, 33, 27, 24, 24, 26, 25, 24, 30, 24, 26, 27, 26, 24, 25, 26, 38, 25, 31, 25, 26, 25, 25, 24, 25, 25, 24, 25, 25, 24, 25, 25, 24, 24, 26, 25, 24, 30, 24, 26, 27, 26, 24, 25, 26, 38, 25, 31, 25, 26, 25, 25, 24, 25, 25, 24, 25, 25, 24, 25, 25, 24];
land2 = [35, 34, 26, 24, 29, 25, 27, 25, 24, 28, 25, 24, 36, 25, 32, 24, 25, 24, 25, 24, 37, 24, 26, 25, 24, 26, 25, 24, 26, 25, 24, 26, 25, 29, 25, 27, 25, 24, 28, 25, 24, 36, 25, 32, 24, 25, 24, 25, 24, 37, 24, 26, 25, 24, 26, 25, 24, 26, 25, 24, 26, 25];
if (skilllevel == 1) {
enemydata = [275, 7, 196, 411, 7, 36, 525, 5, 311, 525, 5, 175, 531, 5, 40, 691, 5, 102, 691, 5, 264, 822, 2, 182, 989, 2, 305, 925, 5, 186, 1132, 5, 101, 1135, 5, 185, 1134, 5, 262, 1274, 5, 29, 1273, 5, 112, 1277, 5, 187, 1280, 5, 263, 1273, 5, 333, 1468, 2, 68, 1474, 2, 188, 1473, 2, 299, 1593, 3, 107, 1834, 4, 268, 1836, 4, 99, 1740, 5, 190, 1748, 5, 299, 1748, 5, 65, 2035, 8, 12, 2033, 2, 127, 2038, 2, 267, 2104, 2, 52, 2105, 2, 191, 2112, 2, 320, 287, 5, 106, 285, 5, 271, 418, 5, 246, 419, 5, 120, 185, 5, 107, 185, 5, 214, 620, 3, 244, 855, 23, 89, 1350, 6, 296, 1353, 6, 146, 1203, 6, 185, 988, 2, 150, 418, 7, 319, 1589, 4, 272, 2247, 27, 345, 2314, 26, 5, 2353, 27, 342, 2457, 27, 338, 2557, 27, 340, 2405, 26, 10, 2493, 26, 8, 2594, 26, 8, 2855, 4, 112, 2861, 3, 249, 2983, 4, 247, 2981, 4, 114, 3142, 23, 308, 3146, 24, 54, 3326, 20, 176, 3566, 22, 280, 3716, 22, 89, 3932, 22, 249, 4124, 22, 97, 4288, 22, 253];
}
if (skilllevel == 2) {
enemydata = [275, 7, 196, 411, 7, 36, 691, 5, 102, 691, 5, 264, 822, 2, 182, 989, 2, 305, 925, 5, 186, 1132, 5, 101, 1134, 5, 262, 1274, 5, 29, 1273, 5, 333, 1468, 2, 68, 1474, 2, 188, 1473, 2, 299, 1593, 3, 107, 1834, 4, 268, 1836, 4, 99, 2035, 8, 12, 2104, 2, 52, 2112, 2, 320, 418, 5, 246, 419, 5, 120, 185, 5, 107, 185, 5, 214, 620, 3, 244, 855, 23, 89, 1350, 6, 296, 1353, 6, 146, 988, 2, 150, 418, 7, 319, 1589, 4, 272, 2247, 27, 345, 2314, 26, 5, 2353, 27, 342, 2457, 27, 338, 2557, 27, 340, 2405, 26, 10, 2493, 26, 8, 2594, 26, 8, 2855, 4, 112, 2861, 3, 249, 3142, 23, 308, 3146, 24, 54, 3326, 20, 176, 3566, 22, 280, 3716, 22, 89, 3932, 22, 249, 4124, 22, 97, 4288, 22, 253, 527, 2, 273, 527, 2, 86, 311, 2, 280, 311, 2, 89, 1179, 26, 24, 1228, 27, 329, 1405, 27, 328, 1419, 26, 21, 1921, 2, 101, 1917, 2, 268, 1744, 6, 50, 1667, 6, 177, 1747, 6, 282, 2113, 1, 190, 1995, 6, 303, 2513, 18, 102, 2514, 18, 252, 2651, 16, 83, 2655, 16, 269, 2970, 4, 115, 2970, 4, 190, 2969, 4, 267, 2923, 5, 37, 2913, 5, 329, 3848, 21, 121, 3624, 21, 175, 3791, 18, 270, 4103, 18, 215, 4313, 21, 119];
}
if (skilllevel == 3) {
enemydata = [411, 7, 36, 691, 5, 102, 691, 5, 264, 822, 2, 182, 989, 2, 305, 925, 5, 186, 1468, 2, 68, 1474, 2, 188, 1473, 2, 299, 1593, 3, 107, 2035, 8, 12, 2104, 2, 52, 2112, 2, 320, 418, 5, 246, 419, 5, 120, 620, 3, 244, 855, 23, 89, 988, 2, 150, 418, 7, 319, 1589, 4, 272, 2247, 27, 345, 2314, 26, 5, 2353, 27, 342, 2457, 27, 338, 2557, 27, 340, 2405, 26, 10, 2493, 26, 8, 2594, 26, 8, 2855, 4, 112, 2861, 3, 249, 3142, 23, 308, 3146, 24, 54, 3326, 20, 176, 3566, 22, 280, 3716, 22, 89, 3932, 22, 249, 4124, 22, 97, 4288, 22, 253, 527, 2, 273, 527, 2, 86, 311, 2, 280, 311, 2, 89, 1179, 26, 24, 1228, 27, 329, 1405, 27, 328, 1419, 26, 21, 1921, 2, 101, 1917, 2, 268, 1744, 6, 50, 1747, 6, 282, 2113, 1, 190, 1995, 6, 303, 2513, 18, 102, 2514, 18, 252, 2651, 16, 83, 2655, 16, 269, 2970, 4, 115, 2970, 4, 190, 2969, 4, 267, 2923, 5, 37, 2913, 5, 329, 3848, 21, 121, 3624, 21, 175, 3791, 18, 270, 4103, 18, 215, 4313, 21, 119, 484, 14, 337, 484, 13, 10, 261, 2, 190, 186, 6, 35, 188, 6, 152, 194, 6, 243, 194, 6, 333, 656, 4, 147, 747, 3, 223, 1128, 23, 121, 1092, 24, 250, 1293, 23, 329, 1265, 23, 39, 1325, 24, 120, 1327, 24, 232, 1712, 6, 107, 1707, 6, 235, 1830, 1, 331, 1824, 1, 28, 1796, 2, 110, 1800, 2, 229, 2071, 5, 129, 2070, 5, 267, 2428, 16, 108, 2433, 16, 256];
}
}
if (level == 3) {
scrolldist = 1;
leveldist = 3500;
land1 = [24, 26, 24, 24, 26, 25, 32, 24, 25, 24, 26, 27, 26, 24, 25, 26, 26, 25, 26, 25, 26, 25, 25, 24, 24, 26, 24, 24, 26, 25, 32, 24, 25, 24, 26, 27, 26, 24, 25, 26, 26, 25, 26, 25, 26, 25, 25, 24];
land2 = [26, 24, 26, 27, 24, 25, 25, 25, 24, 26, 25, 24, 28, 25, 26, 24, 25, 24, 25, 24, 26, 24, 26, 25, 26, 24, 26, 27, 24, 25, 25, 25, 24, 26, 25, 24, 28, 25, 26, 24, 25, 24, 25, 24, 26, 24, 26, 25];
if (skilllevel == 1) {
enemydata = [200, 9, 300, 300, 10, 20, 320, 9, 60, 300, 10, 100, 320, 9, 140, 300, 11, 220, 320, 9, 260, 300, 10, 300, 320, 9, 340, 500, 10, 100, 550, 9, 300, 584, 11, 57, 594, 11, 189, 609, 9, 319, 701, 9, 248, 693, 9, 153, 789, 10, 76, 834, 9, 293, 823, 9, 206, 1069, 9, 26, 1050, 9, 63, 1016, 9, 141, 985, 10, 65, 1042, 11, 343, 1068, 11, 276, 1007, 10, 308, 1113, 9, 180, 1245, 9, 108, 1336, 10, 169, 1318, 10, 209, 1340, 11, 252, 1396, 11, 164, 1388, 11, 266, 1415, 10, 231, 1372, 10, 146, 1362, 9, 198, 1381, 11, 230, 1485, 11, 41, 1516, 11, 92, 1535, 10, 51, 1665, 11, 261, 1638, 11, 219, 1601, 10, 283, 1724, 9, 52, 1693, 9, 99, 1722, 10, 146, 654, 13, 324, 649, 14, 29, 1970, 9, 50, 1992, 9, 76, 1989, 9, 314, 2002, 9, 255, 2036, 9, 301, 2024, 9, 33, 2104, 12, 97, 2107, 12, 253, 2409, 9, 34, 2412, 10, 131, 2406, 11, 245, 2397, 10, 331, 2468, 9, 290, 2463, 9, 73, 2547, 9, 115, 2471, 11, 199, 2544, 11, 264, 2549, 10, 173, 2539, 10, 321, 2543, 10, 35, 2654, 10, 73, 2625, 10, 226, 2665, 11, 305, 2670, 9, 164, 43, 10, 173, 133, 11, 91, 2899, 7, 36, 2907, 7, 174, 2900, 7, 309, 2830, 10, 104, 2825, 9, 265, 2975, 10, 256, 2963, 10, 90, 2964, 9, 154, 2980, 9, 305, 3050, 9, 80, 3084, 9, 101, 3143, 9, 136, 3118, 9, 223, 3080, 9, 268, 3046, 9, 293, 3234, 9, 252, 3272, 9, 92, 3370, 17, 262, 3487, 17, 63, 439, 27, 323, 486, 26, 18, 883, 26, 31, 1141, 26, 27, 1248, 24, 287, 1246, 24, 153, 1524, 13, 244, 1523, 14, 132, 1743, 13, 328, 1765, 14, 19, 2246, 5, 43, 2244, 5, 183, 2247, 6, 327, 2246, 6, 263, 2244, 6, 110, 2147, 7, 170, 2606, 5, 75, 2605, 5, 300, 2473, 5, 130, 3208, 8, 18, 3044, 1, 177, 1854, 1, 295, 3371, 5, 35, 3374, 5, 106, 3376, 5, 170, 3494, 6, 139, 3494, 6, 231, 3496, 6, 318, 3519, 6, 64];
}
if (skilllevel == 2) {
enemydata = [200, 9, 300, 300, 10, 20, 300, 10, 100, 320, 9, 140, 300, 11, 220, 300, 10, 300, 320, 9, 340, 500, 10, 100, 550, 9, 300, 584, 11, 57, 594, 11, 189, 609, 9, 319, 701, 9, 248, 693, 9, 153, 789, 10, 76, 834, 9, 293, 823, 9, 206, 1069, 9, 26, 1050, 9, 63, 1016, 9, 141, 985, 10, 65, 1042, 11, 343, 1068, 11, 276, 1007, 10, 308, 1113, 9, 180, 1245, 9, 108, 1336, 10, 169, 1318, 10, 209, 1340, 11, 252, 1396, 11, 164, 1388, 11, 266, 1415, 10, 231, 1372, 10, 146, 1362, 9, 198, 1381, 11, 230, 1485, 11, 41, 1516, 11, 92, 1535, 10, 51, 1665, 11, 261, 1638, 11, 219, 1601, 10, 283, 1724, 9, 52, 1693, 9, 99, 1722, 10, 146, 654, 13, 324, 649, 14, 29, 1970, 9, 50, 1992, 9, 76, 1989, 9, 314, 2002, 9, 255, 2036, 9, 301, 2024, 9, 33, 2104, 12, 97, 2107, 12, 253, 2409, 9, 34, 2412, 10, 131, 2406, 11, 245, 2397, 10, 331, 2468, 9, 290, 2463, 9, 73, 2547, 9, 115, 2471, 11, 199, 2544, 11, 264, 2549, 10, 173, 2539, 10, 321, 2543, 10, 35, 2654, 10, 73, 2625, 10, 226, 2665, 11, 305, 2670, 9, 164, 43, 10, 173, 133, 11, 91, 2899, 7, 36, 2907, 7, 174, 2900, 7, 309, 2830, 10, 104, 2825, 9, 265, 2975, 10, 256, 2963, 10, 90, 2964, 9, 154, 2980, 9, 305, 3050, 9, 80, 3084, 9, 101, 3143, 9, 136, 3118, 9, 223, 3080, 9, 268, 3046, 9, 293, 3234, 9, 252, 3272, 9, 92, 3370, 17, 262, 3487, 17, 63, 439, 27, 323, 486, 26, 18, 883, 26, 31, 1141, 26, 27, 1248, 24, 287, 1246, 24, 153, 1524, 13, 244, 1523, 14, 132, 1743, 13, 328, 1765, 14, 19, 2246, 5, 43, 2244, 5, 183, 2247, 6, 327, 2246, 6, 263, 2244, 6, 110, 2147, 7, 170, 2606, 5, 75, 2605, 5, 300, 2473, 5, 130, 3208, 8, 18, 3044, 1, 177, 1854, 1, 295, 3371, 5, 35, 3374, 5, 106, 3376, 5, 170, 3494, 6, 139, 3494, 6, 231, 3496, 6, 318, 3519, 6, 64, 356, 6, 51, 361, 6, 253, 761, 6, 258, 852, 16, 97, 1021, 16, 236, 1417, 1, 310, 2090, 1, 30, 1884, 8, 11, 2595, 8, 33, 2752, 3, 290, 2742, 4, 98, 2754, 25, 174, 3294, 2, 297, 3292, 2, 184, 3302, 2, 36, 3713, 2, 87, 3708, 2, 239, 3431, 12, 125, 3430, 12, 237, 3584, 12, 84, 3705, 12, 166, 3575, 12, 283, 3931, 12, 101, 4144, 12, 215];
}
if (skilllevel == 3) {
enemydata = [200, 9, 300, 300, 10, 20, 300, 10, 100, 320, 9, 140, 300, 11, 220, 300, 10, 300, 320, 9, 340, 500, 10, 100, 550, 9, 300, 584, 11, 57, 594, 11, 189, 609, 9, 319, 701, 9, 248, 693, 9, 153, 789, 10, 76, 834, 9, 293, 823, 9, 206, 1069, 9, 26, 1050, 9, 63, 1016, 9, 141, 985, 10, 65, 1042, 11, 343, 1068, 11, 276, 1007, 10, 308, 1113, 9, 180, 1245, 9, 108, 1336, 10, 169, 1318, 10, 209, 1340, 11, 252, 1396, 11, 164, 1388, 11, 266, 1415, 10, 231, 1372, 10, 146, 1362, 9, 198, 1381, 11, 230, 1485, 11, 41, 1516, 11, 92, 1535, 10, 51, 1665, 11, 261, 1638, 11, 219, 1601, 10, 283, 1724, 9, 52, 1693, 9, 99, 1722, 10, 146, 654, 13, 324, 649, 14, 29, 1989, 9, 314, 2036, 9, 301, 2024, 9, 33, 2104, 12, 97, 2107, 12, 253, 2409, 9, 34, 2412, 10, 131, 2406, 11, 245, 2397, 10, 331, 2468, 9, 290, 2544, 11, 264, 2549, 10, 173, 2539, 10, 321, 2543, 10, 35, 2665, 11, 305, 2670, 9, 164, 43, 10, 173, 133, 11, 91, 2899, 7, 36, 2907, 7, 174, 2900, 7, 309, 2830, 10, 104, 2825, 9, 265, 2975, 10, 256, 2963, 10, 90, 2964, 9, 154, 2980, 9, 305, 3050, 9, 80, 3143, 9, 136, 3118, 9, 223, 3046, 9, 293, 3234, 9, 252, 3272, 9, 92, 3370, 17, 262, 3487, 17, 63, 439, 27, 323, 486, 26, 18, 883, 26, 31, 1141, 26, 27, 1248, 24, 287, 1246, 24, 153, 1524, 13, 244, 1523, 14, 132, 1743, 13, 328, 1765, 14, 19, 2246, 5, 43, 2247, 6, 327, 2147, 7, 170, 2606, 5, 75, 2605, 5, 300, 2473, 5, 130, 3208, 8, 18, 3044, 1, 177, 1854, 1, 295, 3494, 6, 139, 3494, 6, 231, 3496, 6, 318, 3519, 6, 64, 356, 6, 51, 361, 6, 253, 761, 6, 258, 852, 16, 97, 1021, 16, 236, 1417, 1, 310, 2090, 1, 30, 1884, 8, 11, 2752, 3, 290, 2742, 4, 98, 2754, 25, 174, 3294, 2, 297, 3292, 2, 184, 3302, 2, 36, 3713, 2, 87, 3708, 2, 239, 3431, 12, 125, 3430, 12, 237, 3584, 12, 84, 3705, 12, 166, 3575, 12, 283, 3931, 12, 101, 4144, 12, 215, 441, 11, 165, 420, 9, 245, 407, 9, 70, 927, 10, 279, 905, 10, 134, 887, 11, 209, 1157, 10, 113, 1194, 10, 226, 1338, 22, 60, 1314, 22, 322, 1616, 22, 184, 1846, 11, 147, 1800, 11, 240, 1858, 6, 181, 1930, 11, 161, 2019, 11, 154, 1973, 12, 238, 1958, 12, 98, 2249, 24, 266, 2257, 23, 140, 2502, 6, 63, 2709, 6, 238, 3118, 6, 68, 3113, 6, 294, 3352, 12, 157, 3396, 21, 51, 3901, 6, 218, 2660, 5, 19];
}
}
if (level == 4) {
scrolldist = 6;
leveldist = 4900;
land1 = [41, 42, 40, 42, 42, 41, 42, 41, 40, 42, 41, 41, 42, 42, 40, 42, 40, 40, 41, 42, 41, 42, 40, 42, 42, 41, 42, 41, 40, 42, 41, 41, 42, 42, 40, 42, 40, 40, 41, 42, 41, 42, 40, 42, 42, 41, 42, 41, 40, 42, 41, 41, 42, 42, 40, 42, 40, 40, 41, 42, 41, 42, 40, 42, 42, 41, 42, 41, 40, 42, 41, 41, 42, 42, 40, 42, 40, 40, 41, 42];
land2 = [42, 40, 42, 42, 41, 42, 41, 40, 42, 41, 41, 42, 42, 40, 42, 40, 40, 41, 42, 41, 42, 40, 42, 42, 41, 42, 41, 40, 42, 41, 41, 42, 42, 40, 42, 40, 40, 41, 42, 41, 42, 40, 42, 42, 41, 42, 41, 40, 42, 41, 41, 42, 42, 40, 42, 40, 40, 41, 42, 41, 42, 40, 42, 42, 41, 42, 41, 40, 42, 41, 41, 42, 42, 40, 42, 40, 40, 41, 42, 41];
if (skilllevel == 1) {
enemydata = [130, 12, 300, 100, 12, 200, 200, 12, 300, 300, 12, 20, 320, 12, 140, 320, 12, 260, 500, 12, 100, 550, 12, 300, 740, 12, 248, 806, 12, 307, 835, 12, 23, 1026, 12, 37, 881, 12, 212, 1065, 12, 336, 1388, 12, 294, 1602, 12, 37, 1730, 12, 133, 1856, 12, 176, 1829, 12, 46, 2027, 12, 94, 1996, 12, 222, 1903, 12, 310, 2144, 12, 180, 2176, 12, 298, 2295, 12, 112, 2295, 12, 241, 2323, 12, 327, 2331, 12, 20, 2458, 12, 20, 2430, 12, 115, 2441, 12, 236, 2602, 12, 136, 2782, 12, 97, 2522, 12, 239, 2677, 12, 256, 2798, 12, 280, 1149, 12, 126, 672, 12, 133, 1624, 12, 234, 1510, 12, 99, 1519, 12, 304, 2929, 12, 131, 2986, 12, 242, 3126, 12, 252, 3220, 12, 106, 3394, 12, 279, 932, 12, 180, 3459, 15, 135, 3507, 15, 302, 3584, 15, 69, 3571, 15, 201, 3678, 5, 306, 3728, 6, 95, 3713, 6, 220, 3678, 5, 60, 1312, 12, 191, 1554, 13, 37, 1724, 14, 318, 1990, 13, 16, 2063, 13, 15, 1233, 16, 77, 1263, 6, 242, 581, 5, 85, 595, 5, 246, 427, 13, 18, 3786, 19, 168, 4082, 21, 85, 4168, 21, 248, 4351, 21, 125, 4286, 22, 72, 4364, 22, 259, 4481, 22, 221, 3951, 22, 226, 3937, 22, 80, 4589, 6, 80, 4598, 6, 305, 4763, 6, 229, 4770, 6, 9];
}
if (skilllevel == 2) {
enemydata = [130, 12, 300, 100, 12, 200, 200, 12, 300, 300, 12, 20, 320, 12, 140, 320, 12, 260, 500, 12, 100, 550, 12, 300, 740, 12, 248, 806, 12, 307, 835, 12, 23, 1026, 12, 37, 881, 12, 212, 1065, 12, 336, 1388, 12, 294, 1602, 12, 37, 1730, 12, 133, 1856, 12, 176, 1829, 12, 46, 2027, 12, 94, 1996, 12, 222, 1903, 12, 310, 2144, 12, 180, 2176, 12, 298, 2295, 12, 112, 2295, 12, 241, 2323, 12, 327, 2331, 12, 20, 2458, 12, 20, 2430, 12, 115, 2441, 12, 236, 2602, 12, 136, 2782, 12, 97, 2522, 12, 239, 2677, 12, 256, 2798, 12, 280, 1149, 12, 126, 672, 12, 133, 1624, 12, 234, 1510, 12, 99, 1519, 12, 304, 2929, 12, 131, 2986, 12, 242, 3126, 12, 252, 3220, 12, 106, 3394, 12, 279, 932, 12, 180, 3678, 5, 306, 3728, 6, 95, 3713, 6, 220, 3678, 5, 60, 1312, 12, 191, 1554, 13, 37, 1724, 14, 318, 1990, 13, 16, 2063, 13, 15, 1233, 16, 77, 1263, 6, 242, 581, 5, 85, 595, 5, 246, 427, 13, 18, 435, 14, 326, 783, 7, 67, 913, 7, 290, 1389, 5, 91, 1459, 6, 196, 1463, 7, 16, 1272, 7, 325, 1829, 18, 246, 1935, 18, 119, 1745, 18, 75, 2722, 22, 47, 3058, 5, 47, 3072, 5, 285, 2587, 6, 314, 2187, 6, 80, 3288, 15, 60, 3213, 15, 308, 3417, 15, 169, 3523, 1, 259, 3558, 2, 118, 3786, 19, 168, 4082, 21, 85, 4168, 21, 248, 4351, 21, 125, 4286, 22, 72, 4364, 22, 259, 4481, 22, 221, 3951, 22, 226, 3937, 22, 80, 4589, 6, 80, 4598, 6, 305, 4763, 6, 229, 4770, 6, 9];
}
if (skilllevel == 3) {
enemydata = [130, 12, 300, 100, 12, 200, 200, 12, 300, 300, 12, 20, 320, 12, 140, 320, 12, 260, 500, 12, 100, 550, 12, 300, 740, 12, 248, 806, 12, 307, 835, 12, 23, 1026, 12, 37, 881, 12, 212, 1065, 12, 336, 1388, 12, 294, 1602, 12, 37, 1730, 12, 133, 1856, 12, 176, 1829, 12, 46, 2027, 12, 94, 1996, 12, 222, 1903, 12, 310, 2144, 12, 180, 2176, 12, 298, 2295, 12, 112, 2295, 12, 241, 2323, 12, 327, 2331, 12, 20, 2458, 12, 20, 2430, 12, 115, 2441, 12, 236, 2602, 12, 136, 2782, 12, 97, 2522, 12, 239, 2677, 12, 256, 2798, 12, 280, 1149, 12, 126, 672, 12, 133, 1624, 12, 234, 1510, 12, 99, 1519, 12, 304, 2929, 12, 131, 2986, 12, 242, 3126, 12, 252, 3220, 12, 106, 3394, 12, 279, 932, 12, 180, 3678, 5, 306, 3728, 6, 95, 3713, 6, 220, 3678, 5, 60, 1312, 12, 191, 1554, 13, 37, 1724, 14, 318, 1990, 13, 16, 2063, 13, 15, 1233, 16, 77, 1263, 6, 242, 581, 5, 85, 595, 5, 246, 427, 13, 18, 435, 14, 326, 783, 7, 67, 913, 7, 290, 1389, 5, 91, 1459, 6, 196, 1463, 7, 16, 1272, 7, 325, 1829, 18, 246, 1935, 18, 119, 1745, 18, 75, 2722, 22, 47, 3058, 5, 47, 3072, 5, 285, 2587, 6, 314, 2187, 6, 80, 3288, 15, 60, 3213, 15, 308, 3417, 15, 169, 3523, 1, 259, 3558, 2, 118, 3786, 19, 168, 4082, 21, 85, 4168, 21, 248, 4351, 21, 125, 4286, 22, 72, 4364, 22, 259, 4481, 22, 221, 3951, 22, 226, 3937, 22, 80, 4589, 6, 80, 4598, 6, 305, 4763, 6, 229, 4770, 6, 9];
}
}
if (level == 5) {
scrolldist = 1;
leveldist = 5000;
land1 = [43, 43, 53, 43, 44, 43, 49, 50, 60, 61, 43, 51, 52, 44, 43, 45, 46, 43, 43, 43, 43, 44, 43, 49, 50, 60, 61, 43, 51, 52, 44, 43, 45, 46];
land2 = [43, 43, 43, 45, 46, 47, 48, 43, 44, 51, 52, 43, 43, 58, 59, 56, 57, 43, 43, 43, 45, 46, 47, 48, 43, 44, 51, 52, 43, 43, 58, 59, 56, 57];
if (skilllevel == 1) {
enemydata = [145, 6, 76, 149, 6, 268, 272, 6, 165, 351, 26, 13, 404, 27, 336, 514, 27, 340, 625, 27, 341, 457, 26, 12, 572, 26, 16, 712, 5, 23, 714, 5, 326, 795, 7, 269, 800, 7, 95, 1005, 15, 88, 1005, 15, 183, 1007, 15, 265, 1168, 14, 325, 1095, 13, 21, 921, 13, 19, 1069, 14, 337, 1207, 21, 88, 1359, 25, 291, 1359, 25, 79, 1356, 6, 190, 1547, 22, 270, 1677, 22, 101, 1784, 22, 269, 2452, 12, 66, 2479, 12, 161, 2418, 12, 193, 2471, 12, 309, 2589, 12, 263, 2606, 12, 81, 2138, 27, 337, 2199, 27, 340, 2257, 27, 335, 2087, 26, 29, 2032, 26, 32, 1969, 26, 27, 2315, 6, 300, 2316, 6, 73, 2313, 6, 186, 1865, 13, 25, 1921, 14, 334, 1526, 8, 22, 1277, 24, 279, 1279, 23, 103, 888, 24, 274, 883, 23, 126, 232, 23, 255, 202, 23, 184, 562, 23, 199, 460, 23, 146, 385, 23, 278, 1659, 22, 277, 1760, 22, 101, 1601, 22, 124, 1735, 23, 311, 1734, 23, 198, 1715, 23, 110, 2752, 20, 190, 2693, 23, 301, 2686, 23, 88, 2918, 21, 87, 2907, 21, 284, 2988, 21, 36, 3106, 21, 317, 1438, 21, 228, 1004, 15, 335, 1005, 15, 19, 1435, 21, 101, 1510, 21, 164, 1124, 21, 222, 2043, 21, 190, 346, 1, 206, 738, 1, 177, 2611, 21, 26, 2601, 21, 332, 3259, 21, 65, 3302, 22, 343, 3443, 22, 27, 3593, 22, 299, 3535, 21, 167, 3377, 21, 169];
}
if (skilllevel == 2) {
enemydata = [351, 26, 13, 404, 27, 336, 514, 27, 340, 625, 27, 341, 457, 26, 12, 572, 26, 16, 712, 5, 23, 714, 5, 326, 795, 7, 269, 800, 7, 95, 1005, 15, 183, 1168, 14, 325, 1095, 13, 21, 921, 13, 19, 1069, 14, 337, 1207, 21, 88, 1359, 25, 291, 1359, 25, 79, 1356, 6, 190, 1547, 22, 270, 1677, 22, 101, 1784, 22, 269, 2452, 12, 66, 2479, 12, 161, 2418, 12, 193, 2471, 12, 309, 2589, 12, 263, 2606, 12, 81, 2138, 27, 337, 2199, 27, 340, 2257, 27, 335, 2087, 26, 29, 2032, 26, 32, 1969, 26, 27, 2315, 6, 300, 2316, 6, 73, 2313, 6, 186, 1865, 13, 25, 1921, 14, 334, 1526, 8, 22, 1277, 24, 279, 1279, 23, 103, 888, 24, 274, 883, 23, 126, 562, 23, 199, 460, 23, 146, 385, 23, 278, 1659, 22, 277, 1760, 22, 101, 1601, 22, 124, 2752, 20, 190, 2693, 23, 301, 2686, 23, 88, 2918, 21, 87, 2907, 21, 284, 2988, 21, 36, 3106, 21, 317, 1438, 21, 228, 1435, 21, 101, 1510, 21, 164, 1124, 21, 222, 2043, 21, 190, 346, 1, 206, 738, 1, 177, 2611, 21, 26, 2601, 21, 332, 3259, 21, 65, 3302, 22, 343, 3443, 22, 27, 3593, 22, 299, 518, 7, 83, 524, 7, 270, 167, 2, 76, 173, 2, 279, 252, 14, 329, 256, 13, 27, 1007, 15, 287, 1004, 15, 74, 1092, 6, 181, 1694, 6, 29, 1711, 6, 312, 2211, 6, 108, 2038, 6, 301, 3353, 22, 243, 3150, 22, 154, 3087, 12, 54, 3030, 12, 183, 3181, 12, 324, 3223, 12, 194, 3485, 12, 87, 3482, 12, 287];
}
if (skilllevel == 3) {
enemydata = [130, 12, 300, 100, 12, 200, 200, 12, 300, 300, 12, 20, 320, 12, 140, 320, 12, 260, 740, 12, 248, 806, 12, 307, 835, 12, 23, 1026, 12, 37, 881, 12, 212, 1065, 12, 336, 1388, 12, 294, 1602, 12, 37, 1730, 12, 133, 2027, 12, 94, 1996, 12, 222, 1903, 12, 310, 2144, 12, 180, 2176, 12, 298, 2295, 12, 112, 2295, 12, 241, 2323, 12, 327, 2331, 12, 20, 2458, 12, 20, 2430, 12, 115, 2441, 12, 236, 2602, 12, 136, 2782, 12, 97, 2522, 12, 239, 2677, 12, 256, 2798, 12, 280, 1149, 12, 126, 1624, 12, 234, 1510, 12, 99, 1519, 12, 304, 2929, 12, 131, 2986, 12, 242, 3126, 12, 252, 3220, 12, 106, 3394, 12, 279, 932, 12, 180, 3678, 5, 306, 3728, 6, 95, 3713, 6, 220, 3678, 5, 60, 1554, 13, 37, 1724, 14, 318, 1990, 13, 16, 2063, 13, 15, 1233, 16, 77, 1263, 6, 242, 581, 5, 85, 595, 5, 246, 427, 13, 18, 435, 14, 326, 783, 7, 67, 913, 7, 290, 1389, 5, 91, 1459, 6, 196, 1463, 7, 16, 1272, 7, 325, 1829, 18, 246, 1935, 18, 119, 1745, 18, 75, 2722, 22, 47, 3058, 5, 47, 3072, 5, 285, 2587, 6, 314, 2187, 6, 80, 3288, 15, 60, 3213, 15, 308, 3417, 15, 169, 3523, 1, 259, 3558, 2, 118, 3687, 3, 16, 701, 6, 313, 962, 6, 50, 1170, 22, 254, 2111, 6, 311, 2383, 13, 34, 2393, 14, 337, 2522, 14, 328, 2544, 13, 22, 1842, 5, 107, 1297, 5, 160, 1907, 5, 4, 2886, 17, 182, 2895, 21, 310, 2887, 21, 43, 3303, 22, 308, 3356, 22, 207, 3432, 22, 81, 3507, 22, 170, 3620, 22, 275, 3793, 22, 137, 3946, 22, 240, 143, 6, 101, 244, 6, 212, 382, 6, 73, 694, 12, 114, 550, 12, 286, 498, 12, 141, 506, 12, 230, 1008, 16, 137, 1365, 1, 194, 1659, 26, 23, 1672, 27, 333, 2359, 23, 243, 2367, 24, 121, 2629, 24, 202, 3079, 2, 131, 3699, 2, 163, 3957, 2, 67, 2728, 2, 288, 3892, 20, 166, 4184, 2, 299, 4157, 2, 114, 4099, 2, 42, 4078, 2, 232, 4016, 2, 147, 4324, 22, 284, 4390, 22, 149, 4496, 22, 281, 4596, 22, 178, 4612, 22, 73, 4731, 22, 227, 4711, 22, 80, 4462, 22, 31, 4633, 21, 222, 4483, 21, 239, 4439, 21, 176, 4272, 21, 90, 4231, 21, 220, 4097, 21, 165];
}
}
if (level == 6) {
trace("ERROR!");
gotoAndPlay (116);
}
landclip.attachMovie("levelannouncer", "la", 50);
}
function positionplayer() {
if (leftx > 0) {
playerx = playerx - leftx;
leftx = leftx - pslow;
if (leftx < 0) {
leftx = 0;
}
}
if (rightx > 0) {
playerx = playerx + rightx;
rightx = rightx - pslow;
if (rightx < 0) {
rightx = 0;
}
}
if (upy > 0) {
playery = playery - upy;
upy = upy - pslow;
if (upy < 0) {
upy = 0;
}
}
if (downy > 0) {
playery = playery + downy;
downy = downy - pslow;
if (downy < 0) {
downy = 0;
}
}
if (playerx < 15) {
playerx = 15;
}
if (playerx > 337) {
playerx = 337;
}
if (playery < 27) {
playery = 27;
}
if (playery > 373) {
playery = 373;
}
this.player._x = playerx;
this.player._y = playery;
}
function updateenergy() {
_root.sidebar.energybar._x = Math.floor(148 * (playerenergy / playerstopenergy)) + 27;
}
function levelannouncerClass() {
}
levelannouncerClass.prototype = new MovieClip();
levelannouncerClass.prototype.onLoad = function () {
var _local1 = this;
_local1._x = 176;
_local1._y = 200;
_local1.t = 0;
_local1._xscale = 40;
_local1._yscale = 40;
_local1._alpha = 0;
_local1.gotoAndStop(_root.level);
_local1.am = 4;
};
levelannouncerClass.prototype.onEnterFrame = function () {
var _local1 = this;
_local1.t++;
if ((_local1.t > 20) && (_local1.t < 50)) {
_local1._xscale = _local1._xscale + _local1.am;
_local1._yscale = _local1._yscale + _local1.am;
_local1._alpha = _local1._alpha + 5;
if (_local1._xscale > 100) {
_local1._xscale = 100;
_local1._yscale = 100;
}
_local1.am = _local1.am * 0.93;
}
if (_local1.t > 90) {
_local1._alpha = _local1._alpha - 5;
_local1._xscale = _local1._xscale + 5;
_local1._yscale = _local1._yscale + 5;
if (_local1._alpha < 5) {
removeMovieClip(_local1);
}
}
};
Object.registerClass("levelannouncer", levelannouncerClass);
function bulletClass() {
}
bulletClass.prototype = new MovieClip();
bulletClass.prototype.onLoad = function () {
var _local1 = this;
_local1._x = _local1.x;
_local1._y = _local1.y;
_local1.gotoAndStop(_local1.bullettype);
_local1.blife = 0;
};
bulletClass.prototype.onEnterFrame = function () {
switch (this.bullettype) {
case 1 :
this.y = this.y - 10;
break;
case 2 :
this.y = this.y - 10;
break;
case 3 :
this.y = _root.playery - 20;
this.x = _root.playerx;
this.blife++;
if (this.blife == 60) {
this.clip.gotoAndPlay("fade");
}
if (this.blife > 70) {
_root.bigfire = 0;
removeMovieClip(this);
_root.bulletsfired = _root.bulletsfired - 1;
}
break;
case 4 :
this.y = this.y + 6;
break;
case 5 :
this.y = this.y + 7;
this.x = this.x - 3;
break;
case 6 :
this.y = this.y + 7;
this.x = this.x + 3;
break;
case 7 :
this.y = this.y + 6;
this.x = this.x + 1;
break;
case 8 :
this.y = this.y + 6;
this.x = this.x - 1;
break;
case 9 :
this.y = this.y + 4;
this.x = this.x - 3;
break;
case 10 :
this.y = this.y + 4;
this.x = this.x + 3;
break;
case 11 :
this.y = this.y - 4;
break;
case 12 :
this.y = this.y - 4;
this.x = this.x - 3;
break;
case 13 :
this.y = this.y - 4;
this.x = this.x + 3;
break;
case 14 :
this.x = this.x + 4;
break;
case 15 :
this.x = this.x - 4;
break;
case 16 :
this.y = this.y + 4;
break;
default :
if ((this.bullettype == 1) || (this.bullettype == 2)) {
_root.bulletsfired = _root.bulletsfired - 1;
}
removeMovieClip(this);
}
if ((((this.y > 405) || (this.x < 4)) || (this.x > 360)) || (this.y < 5)) {
if ((this.bullettype == 1) || (this.bullettype == 2)) {
_root.bulletsfired = _root.bulletsfired - 1;
}
removeMovieClip(this);
}
this._x = Math.floor(this.x);
this._y = Math.floor(this.y);
if ((this.bullettype == 1) || (this.bullettype == 2)) {
i = ecount - 20;
while (i < (ecount + 1)) {
name = eval ("this.enemies.e" + i);
ex = name.x;
if (ex != undefined) {
etype = name.enemytype;
xb = bounds[etype.valueOf() * 2];
yb = bounds[(etype.valueOf() * 2) + 1];
if (Math.abs(ex - this.x) < xb) {
ey = name.y;
if (((ey - this.y) > (-yb)) && ((ey - this.y) < yb)) {
if (this.bullettype == 1) {
name.energy = name.energy - weakbullet;
alienshieldhitsound.start();
name.enemyhit.play();
}
if (this.bullettype == 2) {
name.energy = name.energy - medbullet;
name.enemyhit.play();
}
if ((this.bullettype == 1) || (this.bullettype == 2)) {
_root.bulletsfired = _root.bulletsfired - 1;
}
removeMovieClip(this);
}
}
}
i++;
}
} else if (this.bullettype == 3) {
i = ecount - 10;
while (i < ecount) {
ex = eval ("this.enemies.e" + i).x;
if (ex != undefined) {
if (Math.abs(ex - this.x) < 22) {
ey = eval ("this.enemies.e" + i).y;
if (ey < this.y) {
eval ("this.enemies.e" + i).energy = eval ("this.enemies.e" + i).energy - superbullet;
}
}
}
i++;
}
} else if ((this.bullettype > 3) && (this.bullettype < 30)) {
if (Math.abs(_root.playerx - this.x) < 20) {
if (Math.abs(_root.playery - this.y) < 20) {
_root.playerhitsound.start();
_root.playerenergy = _root.playerenergy - 20;
_root.player.playerhit.gotoAndPlay(2);
removeMovieClip(this);
}
}
}
};
Object.registerClass("bullets", bulletClass);
function explosion(x, y, ept) {
if (((ept == 5) || (ept == 6)) || (ept == 7)) {
explode = random(2);
}
if ((ept > 1) && (ept < 5)) {
explode = random(2) + 1;
}
if ((ept > 0) && (ept < 5)) {
explode = random(2) + 1;
}
if ((ept > 7) && (ept < 12)) {
explode = random(2) + 2;
}
switch (explode) {
case 1 :
explosion1sound.start();
break;
case 2 :
explosion2sound.start();
break;
case 3 :
explosion3sound.start();
break;
case 4 :
explosion4sound.start();
break;
default :
explosion4sound.start();
}
explosionmasterclip.attachMovie("explosion", "e" + expl, expl);
eval ("explosionmasterclip.e" + expl)._x = x;
eval ("explosionmasterclip.e" + expl)._y = y;
expl++;
}
expl = 0;
function getenemybounds(etype) {
bounds = new Array(0, 0, 32, 48, 30, 34, 34, 34, 34, 26, 30, 26, 30, 28, 34, 44, 28, 34, 34, 34, 34, 34, 34, 34, 28, 28, 36, 28, 36, 28, 32, 56, 24, 28, 54, 30, 28, 28, 102, 60, 102, 16, 26, 26, 34, 26, 26, 26, 26, 26, 56, 46, 28, 28, 28, 28);
xb = bounds[etype.valueOf() * 2];
yb = bounds[(etype.valueOf() * 2) + 1];
return(yb);
}
function enemyfiringsounds(s) {
switch (s) {
case 1 :
alienfire1sound.start();
return;
case 2 :
alienfire2sound.start();
return;
case 3 :
alienfire3sound.start();
return;
case 4 :
alienfire4sound.start();
return;
case 5 :
alienfire5sound.start();
return;
case 6 :
alienfire6sound.start();
return;
case 7 :
alienfire7sound.start();
return;
default :
alienfire1sound.start();
}
}
function enemyClass() {
}
enemyClass.prototype = new MovieClip();
enemyClass.prototype.onLoad = function () {
var _local1 = this;
if (_local1.enemytype < 30) {
_local1.y = -20;
}
_local1.gotoAndStop(_local1.enemytype);
_local1.bullettime = 0;
_local1.bullettype = 0;
_local1.bulletfiretime = 0;
_local1.hitdamage = 1;
switch (_local1.enemytype) {
case 1 :
_local1.energy = 65;
_local1.movel = 60;
_local1.moveit = _local1.movel;
_local1.dir = 0;
_local1.moveamount = 4;
_local1.points = 50;
_local1.bullettype = 11;
_local1.bulletsound = 3;
_local1.bulletfiretime = 30 + random(20);
_local1.hitdamage = 4;
break;
case 2 :
_local1.energy = 25;
_local1.movel = 60;
_local1.moveit = _local1.movel;
_local1.dir = 0;
_local1.moveamount = 4;
_local1.points = 50;
_local1.bullettype = 4;
_local1.bulletsound = 2;
_local1.bulletfiretime = 30 + random(20);
_local1.hitdamage = 4;
break;
case 3 :
_local1.energy = 20;
_local1.rotationamount = 2;
_local1.radius = 3;
_local1.points = 75;
_local1.bullettype = 4;
_local1.bulletsound = 2;
_local1.bulletfiretime = 50 + random(20);
_local1.hitdamage = 4;
break;
case 4 :
_local1.energy = 20;
_local1.rotationamount = 2;
_local1.radius = random(5) + 2;
_local1.points = 75;
_local1.bullettype = 4;
_local1.bulletsound = 2;
_local1.bulletfiretime = 50 + random(20);
_local1.hitdamage = 4;
break;
case 5 :
_local1.energy = 20;
_local1.points = 25;
_local1.hitdamage = 4;
break;
case 6 :
_local1.energy = 20;
_local1.points = 30;
_local1.hitdamage = 4;
_local1.bullettype = 5;
_local1.bulletsound = 3;
_local1.bulletfiretime = 25 + random(20);
break;
case 7 :
_local1.energy = 25;
_local1.points = 25;
_local1.phase = 0;
_local1.bullettype = 4;
_local1.bulletsound = 3;
_local1.bulletfiretime = 35 + random(20);
_local1.hitdamage = 4;
break;
case 8 :
_local1.fr = random(15);
_local1.frdelay = 2;
_local1.frc = 0;
_local1.y = 150;
_local1.x = -50;
_local1.energy = 80;
_local1.points = 500;
_local1.phase = 0;
_local1.bullettype = 4;
_local1.bulletsound = 4;
_local1.bulletfiretime = 20 + random(20);
_local1.hitdamage = 6;
_local1.movel = 4;
break;
case 9 :
_local1.fr = random(15);
_local1.frc = 0;
_local1.frdelay = 2;
_local1.xm = random(3) - 1;
_local1.energy = 200;
_local1.points = 2000;
_local1.hitdamage = 5;
break;
case 10 :
_local1.fr = random(15);
_local1.frdelay = 2;
_local1.frc = 0;
_local1.xm = random(3) - 1;
_local1.energy = 200;
_local1.points = 2000;
_local1.hitdamage = 5;
break;
case 11 :
_local1.fr = random(15);
_local1.frc = 0;
_local1.frdelay = 2;
_local1.xm = random(3) - 1;
_local1.energy = 200;
_local1.points = 2000;
_local1.hitdamage = 5;
break;
case 12 :
_local1.clip.gotoAndStop(random(3));
_local1.energy = 120;
_local1.points = 55;
_local1.hitdamage = 10;
break;
case 13 :
_local1.energy = 17;
_local1.movel = 150;
_local1.moveit = _local1.movel;
_local1.dir = 1;
_local1.moveamount = 4;
_local1.points = 50;
_local1.bullettype = 4;
_local1.bulletsound = 5;
_local1.bulletfiretime = 45;
_local1.hitdamage = 3;
_local1.x = 20;
break;
case 14 :
_local1.energy = 17;
_local1.movel = 150;
_local1.moveit = _local1.movel;
_local1.dir = 0;
_local1.moveamount = 4;
_local1.points = 50;
_local1.bullettype = 4;
_local1.bulletsound = 5;
_local1.bulletfiretime = 35 + random(20);
_local1.hitdamage = 3;
_local1.x = 330;
break;
case 15 :
_local1.energy = 20;
_local1.points = 50;
_local1.hitdamage = 6;
_local1.bulletsound = 6;
break;
case 16 :
_local1.bullettype = 4;
_local1.bulletsound = 2;
_local1.bulletfiretime = 30 + random(20);
_local1.energy = 20;
_local1.points = 25;
_local1.hitdamage = 4;
break;
case 17 :
_local1.energy = 60;
_local1.points = 50;
_local1.bullettype = 10;
_local1.bulletsound = 6;
_local1.bulletfiretime = 25 + random(20);
_local1.hitdamage = 6;
break;
case 18 :
_local1.energy = 10;
_local1.points = 25;
_local1.hitdamage = 4;
break;
case 19 :
_local1.energy = 1400;
_local1.points = 10000;
_local1.bullettype = 11;
_local1.bulletsound = 7;
_local1.bulletfiretime = 45 + random(20);
_local1.hitdamage = 6;
_local1.y = -50;
break;
case 20 :
_local1.energy = 1050;
_local1.points = 20000;
_local1.bullettype = 11;
_local1.bulletsound = 7;
_local1.bulletfiretime = 45 + random(20);
_local1.hitdamage = 6;
_local1.y = -50;
break;
case 21 :
_local1.energy = 15;
_local1.points = 25;
_local1.hitdamage = 4;
break;
case 22 :
_local1.energy = 20;
_local1.points = 45;
_local1.hitdamage = 4;
break;
case 23 :
_local1.energy = 17;
_local1.movel = 60;
_local1.moveit = _local1.movel;
_local1.dir = 0;
_local1.moveamount = 4;
_local1.points = 50;
_local1.hitdamage = 4;
break;
case 24 :
_local1.energy = 17;
_local1.movel = 60;
_local1.moveit = _local1.movel;
_local1.dir = 0;
_local1.moveamount = 4;
_local1.points = 50;
_local1.hitdamage = 4;
_local1.bullettype = 7;
_local1.bulletsound = 4;
_local1.bulletfiretime = 20;
break;
case 25 :
_local1.energy = 35;
_local1.points = 250;
_local1.hitdamage = 4;
_local1.bullettype = 8;
_local1.bulletsound = 6;
_local1.bulletfiretime = 30;
_local1.y = 420;
break;
case 26 :
_local1.energy = 35;
_local1.points = 50;
_local1.hitdamage = 4;
_local1.bullettype = 4;
_local1.bulletsound = 3;
_local1.bulletfiretime = 24;
_local1.x = -15;
break;
case 27 :
_local1.energy = 35;
_local1.points = 50;
_local1.hitdamage = 4;
_local1.bullettype = 4;
_local1.bulletsound = 3;
_local1.bulletfiretime = 25;
_local1.x = 370;
break;
case 30 :
_local1.energy = 50;
_local1.points = 2500;
_local1.hitdamage = 0;
break;
case 31 :
_local1.energy = 50;
_local1.points = 2500;
_local1.hitdamage = 0;
break;
case 32 :
_local1.energy = 50;
_local1.points = 1500;
_local1.hitdamage = 0;
break;
default :
_local1.energy = 5;
_local1.points = 0;
}
_local1._x = _local1.x;
_local1._y = _local1.y;
_local1.rot = 0;
};
enemyClass.prototype.onEnterFrame = function () {
if (this.energy <= 0) {
_root.playerscore = _root.playerscore + (Math.floor(this.points * _root.pointsmodifier) * 10);
_root.explosion(this.x, this.y, this.enemytype);
if ((this.enemytype == 20) || (this.enemytype == 19)) {
_root.endoflevelbaddydefeated();
}
if (this.enemytype == 1) {
_root.enemies.attachMovie("enemy", "e" + _root.ecount, _root.ecount);
eval ("_root.enemies.e" + ecount).x = this.x;
eval ("_root.enemies.e" + ecount).y = this.y;
eval ("_root.enemies.e" + ecount).enemytype = 31;
_root.ecount++;
}
if (this.enemytype == 17) {
_root.enemies.attachMovie("enemy", "e" + _root.ecount, _root.ecount);
eval ("_root.enemies.e" + _root.ecount).x = this.x;
eval ("_root.enemies.e" + _root.ecount).y = this.y;
eval ("_root.enemies.e" + _root.ecount).enemytype = 32;
_root.ecount++;
}
if (this.enemytype == 8) {
_root.enemies.attachMovie("enemy", "e" + _root.ecount, _root.ecount);
eval ("_root.enemies.e" + _root.ecount).x = this.x;
eval ("_root.enemies.e" + _root.ecount).y = this.y;
eval ("_root.enemies.e" + _root.ecount).enemytype = 30;
trace(eval ("_root.enemies.e" + _root.ecount));
_root.ecount++;
}
if (this.enemytype == 15) {
i = 9;
while (i < 17) {
_root.bcount++;
_root.playerbullets.attachMovie("bullets", "b" + _root.bcount, _root.bcount);
eval ("_root.playerbullets.b" + bcount).x = this.x;
eval ("_root.playerbullets.b" + bcount).y = this.y;
eval ("_root.playerbullets.b" + bcount).bullettype = i;
this.bullettime = 0;
i++;
}
}
removeMovieClip(this);
}
if (((this.enemytype == 30) || (this.enemytype == 31)) || (this.enemytype == 32)) {
this.y = this.y + 2;
if (this.y > 450) {
removeMovieClip(this);
}
}
if ((this.enemytype == 18) || (this.enemytype == 21)) {
a = _root.playerx;
b = _root.playery;
xf = this.x - a;
yf = this.y - b;
r = Math.atan(yf / xf);
xmove = 3 * Math.cos(r);
ymove = 3 * Math.sin(r);
this.rot = r * 57.295;
if (xf > 0) {
this.rot = this.rot + 180;
this.x = this.x - xmove;
this.y = this.y - ymove;
} else {
this.x = this.x + xmove;
this.y = this.y + ymove;
}
}
if (this.enemytype == 22) {
a = _root.playerx;
b = _root.playery;
xf = this.x - a;
yf = this.y - b;
r = Math.atan(yf / xf);
xmove = 3 * Math.cos(r);
ymove = 3 * Math.sin(r);
this.rot = r * 57.295;
a = 4;
if (xf > 0) {
this.rot = this.rot + 180;
this.x = this.x - xmove;
a = a - ymove;
} else {
this.x = this.x + xmove;
a = a + ymove;
}
if (a > 4) {
a = 4;
}
this.y = this.y + a;
}
if (this.enemytype == 1) {
this.y = this.y + 1.5;
if ((this.y > 450) || (this.y < -50)) {
removeMovieClip(this);
}
}
if (this.enemytype == 25) {
this.y = this.y - 2;
if ((this.y > 450) || (this.y < -50)) {
removeMovieClip(this);
}
}
if (this.enemytype == 26) {
this.x = this.x + 2;
this.y = this.y + 1;
if (this.x > 370) {
removeMovieClip(this);
}
}
if (this.enemytype == 27) {
this.x = this.x - 2;
this.y = this.y + 1;
if (this.x < -10) {
removeMovieClip(this);
}
}
if ((this.enemytype == 2) || (this.enemytype == 23)) {
this.moveit--;
if (this.dir == 1) {
a = Math.floor(5 + this.moveamount);
this.clip.gotoAndStop(a);
this.x = this.x + this.moveamount;
this.moveamount = this.moveamount * 0.98;
if (this.moveit < 0) {
this.dir = 0;
this.moveit = this.movel;
this.moveamount = 4;
}
} else if (this.dir == 0) {
a = Math.ceil(5 - this.moveamount);
this.clip.gotoAndStop(a);
this.x = this.x - this.moveamount;
this.moveamount = this.moveamount * 0.98;
if (this.moveit < 0) {
this.dir = 1;
this.moveit = this.movel;
this.moveamount = 4;
}
}
this.y = this.y + 2;
if (this.y > 420) {
removeMovieClip(this);
}
}
if (this.enemytype == 3) {
this.rot = this.rot + this.rotationamount;
if (this.rot > 360) {
this.rot = 1;
}
radian = this.rot * 0.017;
this.y = this.y + 1;
this.y = (this.radius * Math.sin(radian)) + this.y;
this.x = (this.radius * Math.cos(radian)) + this.x;
if (this.y > 490) {
removeMovieClip(this);
}
}
if (this.enemytype == 4) {
this.rot = this.rot - this.rotationamount;
if (this.rot > 360) {
this.rot = 1;
}
radian = this.rot * 0.017;
this.y = this.y + 1;
this.y = (this.radius * Math.sin(radian)) + this.y;
this.x = (this.radius * Math.cos(radian)) + this.x;
if (this.y > 490) {
removeMovieClip(this);
}
}
if (this.enemytype == 5) {
this.y = this.y + 2;
if (this.y > 420) {
removeMovieClip(this);
}
}
if (this.enemytype == 6) {
this.y = this.y + 2;
if (this.y > 420) {
removeMovieClip(this);
}
}
if (this.enemytype == 7) {
if (this.phase == 0) {
this.y = this.y + 3;
if (this.y > 300) {
this.phase = 1;
}
}
if (this.phase == 1) {
this.clip.gotoAndPlay(2);
this.phase = 2;
}
if (this.phase == 2) {
this.y = this.y - 4;
if (this.y < -10) {
removeMovieClip(this);
}
}
}
if (this.enemytype == 8) {
this.frc++;
if (this.frc > this.frdelay) {
this.fr++;
if (this.fr > 15) {
this.fr = 1;
}
this.clip.gotoAndStop(this.fr);
this.frc = 0;
}
if (this.phase == 0) {
this.x = this.x + this.movel;
this.movel = this.movel * 0.98;
if (this.x > 90) {
this.phase = 1;
}
}
if (this.phase == 1) {
this.phase = 2;
this.count = 0;
this.movel = 1;
}
if (this.phase == 2) {
this.count++;
if (this.count > 150) {
this.phase = 3;
}
}
if (this.phase == 3) {
this.x = this.x - this.movel;
this.movel = this.movel * 1.03;
if (this.x < -90) {
removeMovieClip(this);
}
}
}
if (((this.enemytype == 9) || (this.enemytype == 10)) || (this.enemytype == 11)) {
this.frc++;
if (this.frc > this.frdelay) {
this.fr++;
if (this.fr > 15) {
this.fr = 1;
}
this.clip.gotoAndStop(this.fr);
this.frc = 0;
}
this.rot++;
if (this.rot > 360) {
this.rot = this.rot - 360;
}
this.y = this.y + 2;
this.x = this.x + this.xm;
if (((this.x < -20) || (this.x > 372)) || (this.y > 420)) {
removeMovieClip(this);
}
}
if (this.enemytype == 12) {
this.y = this.y + 3;
if (this.y > 420) {
removeMovieClip(this);
}
}
if ((this.enemytype == 13) || (this.enemytype == 14)) {
this.moveit--;
if (this.dir == 1) {
a = Math.floor(5 + this.moveamount);
this.clip.gotoAndStop(a);
this.clip._rotation = (-this.moveamount) * 10;
this.x = this.x + this.moveamount;
this.moveamount = this.moveamount * 0.99;
if (this.moveit < 0) {
this.dir = 0;
this.moveit = this.movel;
this.moveamount = 4;
}
} else if (this.dir == 0) {
a = Math.ceil(5 - this.moveamount);
this.clip.gotoAndStop(a);
this.clip._rotation = this.moveamount * 10;
this.x = this.x - this.moveamount;
this.moveamount = this.moveamount * 0.99;
if (this.moveit < 0) {
this.dir = 1;
this.moveit = this.movel;
this.moveamount = 4;
}
}
this.y = this.y + 1;
if (this.y > 420) {
removeMovieClip(this);
}
}
if (this.enemytype == 15) {
this.y = this.y + 2;
if (this.y > 420) {
removeMovieClip(this);
}
}
if (this.enemytype == 16) {
this.y = this.y + 2;
if (this.y > 420) {
removeMovieClip(this);
}
}
if (this.enemytype == 17) {
this.y = this.y + 1;
if (this.y > 420) {
removeMovieClip(this);
}
}
if ((this.enemytype == 19) || (this.enemytype == 20)) {
if (this.dir == 1) {
if (this.x > 270) {
this.x = this.x + 1;
} else {
this.x = this.x + 2;
}
if (this.x > 320) {
this.dir = 0;
}
} else if (this.dir == 0) {
if (this.x < 90) {
this.x = this.x - 1;
} else {
this.x = this.x - 2;
}
if (this.x < 40) {
this.dir = 1;
}
}
if (this.y < 60) {
this.y = this.y + 1;
}
}
if (_root.level == 4) {
this.y = this.y + 3;
}
this._x = Math.floor(this.x);
this._y = Math.floor(this.y);
this._rotation = this.rot;
a = Math.abs(this.x - _root.playerx);
if (a < 35) {
b = Math.abs(this.y - _root.playery);
if (b < 25) {
trace(this.enemytype);
if (this.enemytype == 30) {
_root.playerlives++;
trace(_root.playerlives);
if (_root.playerlives > 4) {
_root.playerlives = 4;
}
_root.extralifesoundclip.start();
_root.playerscore = _root.playerscore + this.points;
removeMovieClip(this);
} else if (this.enemytype == 31) {
_root.playerscore = _root.playerscore + this.points;
_root.secretsoundclip.start();
removeMovieClip(this);
} else if (this.enemytype == 32) {
_root.playerenergy = _root.playerenergy + 50;
if (_root.playerenergy > _root.playerstopenergy) {
_root.playerenergy = _root.playerstopenergy;
}
_root.extraenergysoundclip.start();
_root.playerscore = _root.playerscore + this.points;
removeMovieClip(this);
} else {
_root.playerhitsound.start();
this.energy = this.energy - 1;
_root.playerenergy = _root.playerenergy - this.hitdamage;
_root.player.playerhit.gotoAndPlay(2);
}
}
}
if (Math.abs(this.x - _root.playerx) < 150) {
if (this.bullettype > 0) {
this.bullettime++;
if ((this.bullettime > this.bulletfiretime) && (this.y > 0)) {
_root.enemyfiringsounds(this.bulletsound);
if (this.bullettype == 4) {
_root.playerbullets.attachMovie("bullets", "b" + _root.bcount, _root.bcount);
eval ("_root.playerbullets.b" + bcount).x = this.x;
eval ("_root.playerbullets.b" + bcount).y = this.y + 10;
eval ("_root.playerbullets.b" + bcount).bullettype = 4;
_root.bcount++;
this.bullettime = 0;
}
if (this.bullettype == 5) {
_root.playerbullets.attachMovie("bullets", "b" + _root.bcount, _root.bcount);
eval ("_root.playerbullets.b" + bcount).x = this.x;
eval ("_root.playerbullets.b" + bcount).y = this.y + 10;
eval ("_root.playerbullets.b" + bcount).bullettype = 5;
_root.bcount++;
_root.playerbullets.attachMovie("bullets", "b" + _root.bcount, _root.bcount);
eval ("_root.playerbullets.b" + bcount).x = this.x;
eval ("_root.playerbullets.b" + bcount).y = this.y + 10;
eval ("_root.playerbullets.b" + bcount).bullettype = 6;
_root.bcount++;
this.bullettime = 0;
}
if (this.bullettype == 6) {
_root.playerbullets.attachMovie("bullets", "b" + _root.bcount, _root.bcount);
eval ("_root.playerbullets.b" + bcount).x = this.x;
eval ("_root.playerbullets.b" + bcount).y = this.y + 10;
eval ("_root.playerbullets.b" + bcount).bullettype = 9;
_root.bcount++;
_root.playerbullets.attachMovie("bullets", "b" + _root.bcount, _root.bcount);
eval ("_root.playerbullets.b" + bcount).x = this.x;
eval ("_root.playerbullets.b" + bcount).y = this.y + 10;
eval ("_root.playerbullets.b" + bcount).bullettype = 10;
_root.bcount++;
this.bullettime = 0;
}
if (this.bullettype == 7) {
_root.playerbullets.attachMovie("bullets", "b" + _root.bcount, _root.bcount);
eval ("_root.playerbullets.b" + bcount).x = this.x;
eval ("_root.playerbullets.b" + bcount).y = this.y + 15;
eval ("_root.playerbullets.b" + bcount).bullettype = 9;
_root.bcount++;
_root.playerbullets.attachMovie("bullets", "b" + _root.bcount, _root.bcount);
eval ("_root.playerbullets.b" + bcount).x = this.x;
eval ("_root.playerbullets.b" + bcount).y = this.y + 10;
eval ("_root.playerbullets.b" + bcount).bullettype = 4;
_root.bcount++;
_root.playerbullets.attachMovie("bullets", "b" + _root.bcount, _root.bcount);
eval ("_root.playerbullets.b" + bcount).x = this.x;
eval ("_root.playerbullets.b" + bcount).y = this.y + 10;
eval ("_root.playerbullets.b" + bcount).bullettype = 10;
_root.bcount++;
this.bullettime = 0;
}
if (this.bullettype == 8) {
_root.bcount++;
_root.playerbullets.attachMovie("bullets", "b" + _root.bcount, _root.bcount);
eval ("_root.playerbullets.b" + bcount).x = this.x;
eval ("_root.playerbullets.b" + bcount).y = this.y - 15;
eval ("_root.playerbullets.b" + bcount).bullettype = 11;
this.bullettime = 0;
}
if (this.bullettype == 9) {
i = 9;
while (i < 17) {
_root.bcount++;
_root.playerbullets.attachMovie("bullets", "b" + _root.bcount, _root.bcount);
eval ("_root.playerbullets.b" + bcount).x = this.x;
eval ("_root.playerbullets.b" + bcount).y = this.y;
eval ("_root.playerbullets.b" + bcount).bullettype = i;
this.bullettime = 0;
i++;
}
}
if (this.bullettype == 10) {
_root.playerbullets.attachMovie("bullets", "b" + _root.bcount, _root.bcount);
eval ("_root.playerbullets.b" + bcount).x = this.x;
eval ("_root.playerbullets.b" + bcount).y = this.y + 10;
eval ("_root.playerbullets.b" + bcount).bullettype = 7;
_root.bcount++;
_root.playerbullets.attachMovie("bullets", "b" + _root.bcount, _root.bcount);
eval ("_root.playerbullets.b" + bcount).x = this.x;
eval ("_root.playerbullets.b" + bcount).y = this.y + 10;
eval ("_root.playerbullets.b" + bcount).bullettype = 8;
_root.bcount++;
_root.playerbullets.attachMovie("bullets", "b" + _root.bcount, _root.bcount);
eval ("_root.playerbullets.b" + bcount).x = this.x;
eval ("_root.playerbullets.b" + bcount).y = this.y + 10;
eval ("_root.playerbullets.b" + bcount).bullettype = 16;
_root.bcount++;
this.bullettime = 0;
}
if (this.bullettype == 11) {
i = 5;
while (i < 11) {
_root.bcount++;
_root.playerbullets.attachMovie("bullets", "b" + _root.bcount, _root.bcount);
eval ("_root.playerbullets.b" + bcount).x = this.x;
eval ("_root.playerbullets.b" + bcount).y = this.y + 10;
eval ("_root.playerbullets.b" + bcount).bullettype = i;
this.bullettime = 0;
i++;
}
_root.playerbullets.attachMovie("bullets", "b" + _root.bcount, _root.bcount);
eval ("_root.playerbullets.b" + bcount).x = this.x;
eval ("_root.playerbullets.b" + bcount).y = this.y + 10;
eval ("_root.playerbullets.b" + bcount).bullettype = 16;
_root.bcount++;
this.bullettime = 0;
}
}
}
}
};
Object.registerClass("enemy", enemyClass);
function setup() {
cursor._visible = false;
bounds = new Array(0, 0, 32, 48, 30, 34, 34, 34, 34, 26, 30, 26, 30, 28, 34, 44, 28, 34, 34, 34, 34, 34, 34, 34, 28, 28, 36, 28, 36, 28, 32, 56, 24, 28, 54, 30, 28, 28, 102, 60, 102, 16, 26, 26, 34, 26, 26, 26, 26, 26, 56, 46, 28, 28, 28, 28);
if (level == 1) {
switch (_root.skilllevel) {
case 1 :
playerlives = 3;
weakbullet = 15;
medbullet = 60;
superbullet = 20;
pointsmodifier = 1;
_root.playerenergy = 120;
playerstopenergy = 120;
break;
case 2 :
playerlives = 3;
weakbullet = 8;
medbullet = 50;
superbullet = 15;
pointsmodifier = 1.5;
playerstopenergy = 99;
break;
case 3 :
playerlives = 2;
weakbullet = 5;
medbullet = 30;
superbullet = 10;
pointsmodifier = 2;
playerstopenergy = 89;
break;
default :
weakbullet = 10;
medbullet = 50;
superbullet = 10;
pointsmodifier = 1;
skilllevel = 1;
playerstopenergy = 120;
}
}
playerenergy = playerstopenergy;
enemygo = 1;
_quality = "LOW";
expl = 0;
this.firepower.powerind._yscale = 1;
this.player.firepowerglow._alpha = 0;
playermove = 3;
spacepressed = 0;
rightx = 0;
leftx = 0;
upy = 0;
downy = 0;
playerx = 150;
playery = 300;
pslow = 1.5;
player._x = playerx;
player._y = playery;
playerdist = 0;
lastmove = 0;
}
function enemygen() {
if (enemygo > 1) {
enemygo--;
}
if (enemygo < 1) {
enemygo = 1;
}
if (enemygo == 1) {
i = 0;
while (i < enemydata.length) {
a = enemydata[i];
if (level == 4) {
a = a * 2;
}
if ((a >= playerdist) && (a <= ((playerdist + scrolldist) - 1))) {
enemytype = enemydata[i + 1];
enemyxloc = enemydata[i + 2];
enemies.attachMovie("enemy", "e" + ecount, ecount);
eval ("enemies.e" + ecount).x = enemyxloc;
eval ("enemies.e" + ecount).enemytype = enemytype;
ecount++;
if ((enemytype == 19) || (enemytype == 20)) {
endoflevelbaddydistance = enemydata[i] - 200;
}
}
i = i + 3;
}
}
}
function keytest() {
var _local1 = this;
if (action == "playing") {
if (Key.isDown(37)) {
leftx = leftx + playermove;
}
if (Key.isDown(39)) {
rightx = rightx + playermove;
}
if (Key.isDown(38)) {
upy = upy + playermove;
}
if (Key.isDown(40)) {
downy = downy + playermove;
}
if ((Key.isDown(32) && (spacepressed == 0)) && (bigfire == 0)) {
spacepressed = 1;
spacepresscount = 0;
}
if (leftx > rightx) {
player.ship.gotoAndStop(Math.floor(8 - (leftx / 2)));
} else if (leftx < rightx) {
player.ship.gotoAndStop(Math.floor(8 + (rightx / 2)));
} else {
player.ship.gotoAndStop(8);
}
if (upy > downy) {
player.propolsion._alpha = upy * 5;
} else {
player.propolsion._alpha = 0;
}
if (downy > upy) {
player.propolsion2._alpha = downy * 5;
} else {
player.propolsion2._alpha = 0;
}
if ((spacepressed == 1) && (bigfire == 0)) {
spacepresscount = spacepresscount + 0.5;
if (spacepresscount > maxpower) {
spacepresscount = maxpower;
}
firepoweramount = Math.floor((spacepresscount / maxpower) * 100);
_local1.firepower.powerind._yscale = firepoweramount;
if (firepoweramount < 50) {
_local1.firepower.powerind.gotoAndStop(1);
}
if ((firepoweramount > 49) && (spacepresscount < 90)) {
_local1.firepower.powerind.gotoAndStop(2);
_local1.player.firepowerglow._alpha = firepoweramount;
}
if (firepoweramount > 89) {
_local1.firepower.powerind.gotoAndStop(3);
_local1.player.firepowerglow._alpha = firepoweramount;
}
}
if (((!Key.isDown(32)) && (spacepressed == 1)) && (bigfire == 0)) {
spacepressed = 0;
firecounter = 0;
fire();
}
if (rightx > 14) {
rightx = 14;
}
if (leftx > 14) {
leftx = 14;
}
if (upy > 14) {
upy = 14;
}
if (downy > 14) {
downy = 14;
}
}
}
bigfire = 0;
maxpower = 100;
firecounter = 0;
function moveland() {
var _local1 = this;
if (lastmove != undefined) {
lastmove = -1;
}
a = Math.floor(playerdist / 200);
b = Math.ceil(playerdist / 200);
if (b > lastmove) {
_local1.landclip.a.gotoAndStop(land1[a + 2]);
_local1.landclip.b.gotoAndStop(land1[a + 1]);
_local1.landclip.c.gotoAndStop(land1[a]);
_local1.landclip.d.gotoAndStop(land2[a + 2]);
_local1.landclip.e.gotoAndStop(land2[a + 1]);
_local1.landclip.f.gotoAndStop(land2[a]);
lastmove = b;
distance = playerdist - (a * 200);
_local1.landclip.a._y = distance - 200;
_local1.landclip.b._y = distance;
_local1.landclip.c._y = distance + 200;
_local1.landclip.d._y = distance - 200;
_local1.landclip.e._y = distance;
_local1.landclip.f._y = distance + 200;
}
if (a < b) {
distance = playerdist - (a * 200);
_local1.landclip.a._y = distance - 200;
_local1.landclip.b._y = distance;
_local1.landclip.c._y = distance + 200;
_local1.landclip.d._y = distance - 200;
_local1.landclip.e._y = distance;
_local1.landclip.f._y = distance + 200;
}
}
function endoflevelbaddydefeated() {
endoflevelbaddydistance = 0;
attachMovie("fadeout", "fadeout", 402);
attachMovie("levelcomplete", "levelcomplete", 403);
levelcompletesound = new Sound();
levelcompletesound.attachSound("levelcompletesound");
levelcompletesound.start();
fadeout._x = 0;
fadeout._y = 0;
levelcomplete._x = 275;
levelcomplete._y = 200;
c = 0;
i = 1;
while (i < 400) {
removeMovieClip(eval ("enemies.e" + i));
i++;
}
i = 1;
while (i < 400) {
removeMovieClip(eval ("playerbullets.b" + i));
i++;
}
action = "wait for level complete";
}
function distancebar() {
b = playerdist / leveldist;
if (b < 1) {
a = -Math.floor(b * 370);
this.progress.mover._y = a;
}
if ((playerdist > leveldist) && (endoflevelbaddydistance == 0)) {
attachMovie("fadeout", "fadeout", 402);
attachMovie("levelcomplete", "levelcomplete", 403);
levelcompletesound = new Sound();
levelcompletesound.attachSound("levelcompletesound");
levelcompletesound.start();
fadeout._x = 0;
fadeout._y = 0;
levelcomplete._x = 275;
levelcomplete._y = 200;
c = 0;
i = 1;
while (i < 400) {
removeMovieClip(eval ("enemies.e" + i));
i++;
}
i = 1;
while (i < 400) {
removeMovieClip(eval ("playerbullets.b" + i));
i++;
}
action = "wait for level complete";
}
}
function fire() {
if (bulletsfired < 4) {
spacepresscount = 0;
this.player.firepowerglow._alpha = 0;
this.firepower.powerind._yscale = 1;
if (firepoweramount < 50) {
type = 1;
_root.bulletsound1.start();
}
if ((firepoweramount > 49) && (firepoweramount < 90)) {
type = 2;
_root.bulletsound2.start();
}
if (firepoweramount > 89) {
bigfire = 1;
_root.bulletsound3.start();
type = 3;
}
playerbullets.attachMovie("bullets", "b" + bcount, bcount);
eval ("playerbullets.b" + bcount).x = playerx;
eval ("playerbullets.b" + bcount).y = playery - 20;
eval ("playerbullets.b" + bcount).bullettype = type;
bcount++;
if (bcount > 99) {
bcount = 0;
}
bulletsfired = bulletsfired + 1;
}
}
bcount = 0;
bulletsfired = 0;
function testifplayerdead() {
if (playerenergy <= 0) {
playerenergy = 100;
playerlives--;
attachMovie("playerexplodes", "pxplode", 100);
pxplode._x = playerx;
pxplode._y = playery;
player._visible = 0;
action = "player dies";
}
this.sidebar.lives.gotoAndStop(playerlives);
}
function frameaction() {
switch (action) {
case "start" :
setup();
positionplayer();
action = "setup level";
return;
case "setup level" :
initlevel();
action = "playing";
return;
case "playing" :
testifplayerdead();
playerdist = playerdist + scrolldist;
enemygen();
moveland();
distancebar();
positionplayer();
keytest();
updateenergy();
return;
case "player dies" :
if (playerscore > highestscore) {
highestscore = playerscore;
storage.data.highestscore = highestscore;
}
spacepressed = 0;
bcount = 0;
bulletsfired = 0;
bigfire = 0;
spacepresscount = 0;
if (endoflevelbaddydistance > 0) {
playerdist = endoflevelbaddydistance;
}
playerdist = playerdist - 250;
if (playerdist < 100) {
playerdist = 100;
}
initlevel();
enemies.attachMovie("fadein", "fadein", 300);
enemies.fadein.gotoAndStop(1);
fadein._width = 350;
i = 1;
while (i < 400) {
removeMovieClip(eval ("enemies.e" + i));
i++;
}
i = 1;
while (i < 400) {
removeMovieClip(eval ("playerbullets.b" + i));
i++;
}
if (playerlives <= 0) {
attachMovie("gameoverclip", "gameoverclip", 403);
gameoverclip._x = 175;
gameoverclip._y = 200;
action = "game over wait";
c = 0;
} else {
c = 0;
action = "wait after player dies";
enemygo = 100;
moveland();
}
return;
case "wait after player dies" :
_root.sidebar.energybar._x = -200;
c++;
if (c > 80) {
enemies.fadein.play();
player._visible = 1;
action = "playing";
playersenergy = playerstopenergy;
playerx = 150;
playery = 300;
player._x = playerx;
player._y = playerx;
}
return;
case "game over wait" :
_root.sidebar.energybar._x = -200;
c++;
if (c > 90) {
gotoAndPlay (116);
}
return;
case "wait for level complete" :
c++;
if (c > 150) {
level = level + 1;
if (level < 6) {
trace("story");
gotoAndPlay (313);
} else {
playerscore = playerscore + 5000;
if (playerscore > highestscore) {
highestscore = playerscore;
storage.data.highestscore = highestscore;
}
removeMovieClip("fadeout");
removeMovieClip("levelcomplete");
gotoAndPlay (379);
}
}
return;
default :
trace("no case tested true");
}
}
action = "start";
ec = 0;
et = 60;
ecount = 1;
Instance of Symbol 826 MovieClip in Frame 111
onClipEvent (enterFrame) {
_root.frameaction();
}
Frame 115
stop();
Frame 116
cursor._visible = true;
_quality = "HIGH";
Frame 170
stop();
Frame 182
gotoAndPlay (58);
Frame 183
cursor._visible = true;
_quality = "HIGH";
Frame 237
stop();
Frame 249
gotoAndPlay (58);
Frame 250
function findenemies() {
c = 0;
i = 0;
while (i < 70) {
a = eval ("_root.enemies.e" + i).enemytype;
if (a != undefined) {
c++;
}
i = i + 1;
}
if (c == 0) {
counter = 0;
trace("counter = " + c);
action = "level complete";
}
}
function arcadeexplosion(x, y) {
switch (ept) {
case 1 :
explosion1sound.start();
break;
case 2 :
explosion2sound.start();
case 3 :
explosion3sound.start();
break;
case 4 :
explosion1sound.start();
break;
case 5 :
explosion2sound.start();
case 6 :
explosion3sound.start();
break;
default :
explosion1sound.start();
}
explosionmasterclip.attachMovie("explosion", "e" + expl, expl);
eval ("explosionmasterclip.e" + expl)._x = x;
eval ("explosionmasterclip.e" + expl)._y = y + rowadvance;
expl++;
}
expl = 0;
function bulletClass() {
}
bulletClass.prototype = new MovieClip();
bulletClass.prototype.onLoad = function () {
var _local1 = this;
_root.bulletsound.start();
_local1._x = _local1.x;
_local1._y = _local1.y;
_local1.gotoAndStop(_local1.bullettype);
_local1.blife = 0;
};
bulletClass.prototype.onEnterFrame = function () {
switch (this.bullettype) {
case 1 :
this.y = this.y - 8;
if (this.y < -10) {
removeMovieClip(this);
}
break;
case 4 :
this.y = this.y + 6;
if (((this.y > 405) || (this.x < 0)) || (this.x > 550)) {
removeMovieClip(this);
}
break;
default :
removeMovieClip(this);
}
this._x = Math.floor(this.x);
this._y = Math.floor(this.y);
if (this.bullettype == 1) {
i = ecount - 30;
while (i < ecount) {
ex = eval ("this.enemies.e" + i).x;
if (Math.abs(ex - this.x) < 15) {
ey = eval ("this.enemies.e" + i).y;
if ((((ey - this.y) + rowadvance) > -15) && (((ey - this.y) + rowadvance) < 15)) {
if (this.bullettype == 1) {
alienshieldhitsound.start();
eval ("this.enemies.e" + i).energy = eval ("this.enemies.e" + i).energy - 10;
eval ("this.enemies.e" + i).hit.play();
}
removeMovieClip(this);
}
}
i++;
}
} else if (((this.bullettype == 4) || (this.bullettype == 5)) || (this.bullettype == 6)) {
if (Math.abs(_root.playerx - this.x) < 20) {
if (Math.abs(_root.playery - this.y) < 20) {
_root.playerhitsound.start();
_root.playerenergy = _root.playerenergy - 10;
_root.player.playerhit.gotoAndPlay(2);
removeMovieClip(this);
}
}
}
};
Object.registerClass("arcadebullets", bulletClass);
function keys() {
if (action == "playing") {
if (Key.isDown(37)) {
leftx = leftx + playermove;
}
if (Key.isDown(39)) {
rightx = rightx + playermove;
}
if (firecounter < 0) {
firecounter = 0;
}
if ((Key.isDown(32) && (spacepressed == 0)) && (firecounter == 0)) {
spacepressed = 1;
spacepresscount = 0;
}
if (leftx > rightx) {
player.ship.gotoAndStop(Math.floor(8 - (leftx / 2)));
} else if (leftx < rightx) {
player.ship.gotoAndStop(Math.floor(8 + (rightx / 2)));
} else {
player.ship.gotoAndStop(8);
}
firecounter--;
if ((spacepressed == 1) && (firecounter == 0)) {
spacepresscount++;
if (spacepresscount > maxpower) {
}
}
if ((!Key.isDown(32)) && (spacepressed == 1)) {
spacepressed = 0;
arcadefire();
firecounter = 20;
}
if (rightx > 14) {
rightx = 14;
}
if (leftx > 14) {
leftx = 14;
}
}
}
bigfire = 0;
maxpower = 100;
firecounter = 0;
function moverows() {
amount = 1;
if (row1d == 0) {
row1 = row1 + 1;
if (row1 > 200) {
row1d = 1;
rowadvance = rowadvance + amount;
alienschangerows.start();
}
}
if (row1d == 1) {
row1 = row1 - 1;
if (row1 < 50) {
row1d = 0;
rowadvance = rowadvance + amount;
alienschangerows.start();
}
}
if (row2d == 0) {
row2 = row2 + 1;
if (row2 > 200) {
row2d = 1;
rowadvance = rowadvance + amount;
alienschangerows.start();
}
}
if (row2d == 1) {
row2 = row2 - 1;
if (row2 < 50) {
row2d = 0;
rowadvance = rowadvance + amount;
alienschangerows.start();
}
}
if (row3d == 0) {
row3 = row3 + 1;
if (row3 > 200) {
row3d = 1;
rowadvance = rowadvance + amount;
alienschangerows.start();
}
}
if (row3d == 1) {
row3 = row3 - 1;
if (row3 < 50) {
row3d = 0;
rowadvance = rowadvance + amount;
alienschangerows.start();
}
}
if (row4d == 0) {
row4 = row4 + 1;
if (row4 > 200) {
row4d = 1;
rowadvance = rowadvance + amount;
alienschangerows.start();
}
}
if (row4d == 1) {
row4 = row4 - 1;
if (row4 < 50) {
row4d = 0;
rowadvance = rowadvance + amount;
alienschangerows.start();
}
}
}
function arcadeClass() {
}
arcadeClass.prototype = new MovieClip();
arcadeClass.prototype.onLoad = function () {
var _local1 = this;
if (_local1.enemytype < 8) {
_local1.y = (_local1.row * 50) + rowadvance;
}
_local1.gotoAndStop(_local1.enemytype);
_local1.bullettime = 0;
_local1.bullettype = 0;
_local1.bulletfiretime = 0;
_local1.hitdamage = 1;
switch (_local1.enemytype) {
case 8 :
_local1._x = _local1.x;
_local1._y = _local1.y;
_local1.energy = 45;
_local1.hitdamage = 0;
return;
case 1 :
_local1.dir = 0;
_local1.energy = 15;
_local1.moveamount = 4;
_local1.bullettype = 4;
_local1.bulletfiretime = random(100) + 100;
_local1.hitdamage = 2;
return;
case 2 :
_local1.energy = 10;
_local1.dir = 0;
_local1.moveamount = 4;
_local1.bullettype = 4;
_local1.bulletfiretime = random(200) + 50;
_local1.hitdamage = 2;
return;
case 3 :
_local1.delay = random(200) + 100;
_local1.dcount = 0;
_local1.flying = 0;
_local1.num = 0;
_local1.energy = 10;
_local1.dir = 0;
_local1.moveamount = 4;
_local1.bullettype = 4;
_local1.bulletfiretime = random(200) + 50;
_local1.hitdamage = 2;
_local1.clip.gotoAndStop(1);
return;
case 4 :
_local1.delay = random(300) + 200;
_local1.dcount = 0;
_local1.flying = 0;
_local1.num = 0;
_local1.energy = 100;
_local1.dir = 0;
_local1.moveamount = 4;
_local1.bullettype = 4;
_local1.bulletfiretime = random(400) + 50;
_local1.hitdamage = 2;
return;
case 5 :
_local1.delay = random(200) + 100;
_local1.dcount = 0;
_local1.flying = 0;
_local1.num = 0;
_local1.energy = 50;
_local1.dir = 0;
_local1.moveamount = 4;
_local1.bullettype = 4;
_local1.bulletfiretime = random(200) + 50;
_local1.hitdamage = 2;
_local1.clip.gotoAndStop(1);
return;
case 6 :
_local1.delay = random(300) + 100;
_local1.dcount = 0;
_local1.flying = 0;
_local1.num = 0;
_local1.energy = 25;
_local1.dir = 0;
_local1.moveamount = 4;
_local1.bullettype = 4;
_local1.bulletfiretime = random(150) + 50;
_local1.hitdamage = 2;
_local1.clip.gotoAndStop(1);
return;
case 7 :
_local1.energy = 10;
_local1.dir = 0;
_local1.moveamount = 4;
_local1.bullettype = 4;
_local1.bulletfiretime = random(200) + 50;
_local1.hitdamage = 2;
return;
default :
_local1.energy = 5;
_local1.points = 0;
}
};
arcadeClass.prototype.onEnterFrame = function () {
switch (this.enemytype) {
case 1 :
this.x = Math.floor(eval ("_root.row" + this.row) + (this.xpos * 60));
break;
case 2 :
this.x = Math.floor(eval ("_root.row" + this.row) + (this.xpos * 60));
break;
case 8 :
this.y = this.y + 4;
if (this.y > 410) {
removeMovieClip(this);
}
break;
case 3 :
this.dcount++;
if (this.flying == 0) {
this.x = Math.floor(eval ("_root.row" + this.row) + (this.xpos * 60));
this.clip.gotoAndStop(1);
}
if ((this.dcount > this.delay) && (this.flying == 0)) {
this.flying = 1;
this.moveamount = 8;
}
if (this.flying == 1) {
this.clip.play();
this.y = this.y + 2;
this.moveamount = this.moveamount * 0.95;
if (this.moveamount < 1) {
this.flying = 2;
this.moveamount = 8;
}
this.x = this.x + this.moveamount;
}
if (this.flying == 2) {
this.y = this.y + 2;
this.moveamount = this.moveamount * 0.95;
if (this.moveamount < 0.9) {
this.flying = 1;
this.moveamount = 8;
}
this.x = this.x - this.moveamount;
}
if ((this.y + rowadvance) > 410) {
this.flying = 3;
}
if (this.flying == 3) {
this.y = this.y + 2;
if ((this.y + rowadvance) > 410) {
this.y = -10;
this.flying = 4;
this.ytarget = this.row * 50;
}
}
if (this.flying == 4) {
this.xtarget = Math.floor(eval ("_root.row" + this.row) + (this.xpos * 60));
if (this.x < this.xtarget) {
this.x = this.x + 2;
}
if (this.x > this.xtarget) {
this.x = this.x - 2;
}
if (this.y < this.ytarget) {
this.y = this.y + 2;
}
if ((Math.abs(this.x - this.xtarget) < 2) && (Math.abs(this.y - this.ytarget) < 2)) {
this.flying = 0;
this.dcount = 0;
}
}
break;
case 4 :
this.dcount++;
if (this.flying == 0) {
this.clip.gotoAndStop(1);
this.x = Math.floor(eval ("_root.row" + this.row) + (this.xpos * 60));
}
if ((this.dcount > this.delay) && (this.flying == 0)) {
this.flying = 1;
this.ytarget = 300;
this.xtarget = random(400) + 75;
}
if (this.flying == 1) {
this.clip.play();
if (this.y < this.ytarget) {
this.y = this.y + 2;
} else {
this.flying = 2;
}
}
if (this.flying == 2) {
a = this.x - this.xtarget;
if (Math.abs(a) < 2) {
this.flying = 3;
}
if (a < 0) {
this.x = this.x + 2;
} else {
this.x = this.x - 2;
}
}
if (this.flying == 3) {
this.y = this.y + 2;
if ((this.y + rowadvance) > 410) {
this.y = -10;
this.flying = 4;
this.ytarget = this.row * 50;
}
}
if (this.flying == 4) {
this.xtarget = Math.floor(eval ("_root.row" + this.row) + (this.xpos * 60));
if (this.x < this.xtarget) {
this.x = this.x + 2;
}
if (this.x > this.xtarget) {
this.x = this.x - 2;
}
if (this.y < this.ytarget) {
this.y = this.y + 2;
}
if ((Math.abs(this.x - this.xtarget) < 2) && (Math.abs(this.y - this.ytarget) < 2)) {
this.flying = 0;
this.dcount = 0;
}
}
break;
case 5 :
this.dcount++;
if (this.flying == 0) {
this.x = Math.floor(eval ("_root.row" + this.row) + (this.xpos * 60));
this.clip.gotoAndStop(1);
}
if ((this.dcount > this.delay) && (this.flying == 0)) {
this.flying = 1;
this.moveamount = 8;
}
if (this.flying == 1) {
this.clip.play();
this.y = this.y + 2;
this.moveamount = this.moveamount * 0.95;
if (this.moveamount < 1) {
trace("change");
this.flying = 2;
this.moveamount = 8;
}
this.x = this.x + this.moveamount;
}
if (this.flying == 2) {
this.y = this.y + 2;
this.moveamount = this.moveamount * 0.95;
if (this.moveamount < 0.9) {
this.flying = 1;
this.moveamount = 8;
}
this.x = this.x - this.moveamount;
}
if ((this.y + rowadvance) > 410) {
this.flying = 3;
}
if (this.flying == 3) {
this.y = this.y + 2;
if ((this.y + rowadvance) > 410) {
this.y = -10;
this.flying = 4;
this.ytarget = this.row * 50;
}
}
if (this.flying == 4) {
this.xtarget = Math.floor(eval ("_root.row" + this.row) + (this.xpos * 60));
if (this.x < this.xtarget) {
this.x = this.x + 2;
}
if (this.x > this.xtarget) {
this.x = this.x - 2;
}
if (this.y < this.ytarget) {
this.y = this.y + 2;
}
if ((Math.abs(this.x - this.xtarget) < 2) && (Math.abs(this.y - this.ytarget) < 2)) {
this.flying = 0;
this.dcount = 0;
}
}
break;
case 6 :
this.dcount++;
if (this.flying == 0) {
this.x = Math.floor(eval ("_root.row" + this.row) + (this.xpos * 60));
this.clip.gotoAndStop(1);
}
if ((this.dcount > this.delay) && (this.flying == 0)) {
this.flying = 1;
this.moveamount = 8;
}
if (this.flying == 1) {
this.clip.play();
this.y = this.y + 2;
this.moveamount = this.moveamount * 0.95;
if (this.moveamount < 1) {
trace("change");
this.flying = 2;
this.moveamount = 8;
}
this.x = this.x + this.moveamount;
}
if (this.flying == 2) {
this.y = this.y + 2;
this.moveamount = this.moveamount * 0.95;
if (this.moveamount < 0.9) {
this.flying = 1;
this.moveamount = 8;
}
this.x = this.x - this.moveamount;
}
if ((this.y + rowadvance) > 410) {
this.flying = 3;
}
if (this.flying == 3) {
this.y = this.y + 2;
if ((this.y + rowadvance) > 410) {
this.y = -10;
this.flying = 4;
this.ytarget = this.row * 50;
}
}
if (this.flying == 4) {
this.xtarget = Math.floor(eval ("_root.row" + this.row) + (this.xpos * 60));
if (this.x < this.xtarget) {
this.x = this.x + 2;
}
if (this.x > this.xtarget) {
this.x = this.x - 2;
}
if (this.y < this.ytarget) {
this.y = this.y + 2;
}
if ((Math.abs(this.x - this.xtarget) < 2) && (Math.abs(this.y - this.ytarget) < 2)) {
this.flying = 0;
this.dcount = 0;
}
}
break;
case 7 :
this.x = Math.floor(eval ("_root.row" + this.row) + (this.xpos * 60));
break;
default :
this.x = Math.floor(eval ("_root.row" + this.row) + (this.xpos * 60));
}
if (this.energy <= 0) {
if (this.enemytype == 1) {
_root.playerscore = _root.playerscore + 100;
_root.enemies.attachMovie("arcadeenemy", "e" + _root.ecount, _root.ecount);
eval ("_root.enemies.e" + _root.ecount).x = this._x;
eval ("_root.enemies.e" + _root.ecount).y = this._y;
eval ("_root.enemies.e" + _root.ecount).enemytype = 8;
_root.ecount++;
}
if (this.enemytype == 2) {
_root.playerscore = _root.playerscore + 75;
}
if (this.enemytype == 3) {
_root.playerscore = _root.playerscore + 100;
}
if (this.enemytype == 4) {
_root.playerscore = _root.playerscore + 100;
}
if (this.enemytype == 5) {
_root.playerscore = _root.playerscore + 200;
}
if (this.enemytype == 6) {
_root.playerscore = _root.playerscore + 100;
}
if (this.enemytype == 7) {
_root.playerscore = _root.playerscore + 50;
}
if (this.enemytype < 8) {
_root.arcadeexplosion(this._x, this._y);
removeMovieClip(this);
}
}
this._x = this.x;
this._y = Math.floor(this.y + _root.rowadvance);
this._rotation = this.rot;
a = Math.abs(this.x - _root.playerx);
if (a < 30) {
b = Math.abs((this.y + rowadvance) - _root.playery);
if (b < 30) {
if (this.enemytype < 8) {
_root.playerhitsound.start();
this.energy = this.energy - 1;
_root.playerenergy = _root.playerenergy - this.hitdamage;
if (this.energy <= 0) {
_root.arcadeexplosion(this.x, this.y);
removeMovieClip(this);
}
}
if (this.enemytype == 8) {
_root.extraenergysoundclip.start();
_root.playerenergy = _root.playerenergy + 20;
if (_root.playerenergy > 100) {
_root.playerenergy = 100;
}
removeMovieClip(this);
}
}
}
if (this.bullettype > 0) {
this.bullettime++;
if (this.bullettype == 4) {
if (this.bullettime > this.bulletfiretime) {
_root.playerbullets.attachMovie("arcadebullets", "b" + _root.bcount, _root.bcount);
eval ("_root.playerbullets.b" + bcount).x = this.x;
eval ("_root.playerbullets.b" + bcount).y = (this.y + rowadvance) + 15;
eval ("_root.playerbullets.b" + bcount).bullettype = this.bullettype;
_root.bcount++;
this.bullettime = 0;
}
}
}
};
Object.registerClass("arcadeenemy", arcadeClass);
function arcadefire() {
spacepresscount = 0;
type = 1;
_root.bulletsound1.start();
playerbullets.attachMovie("arcadebullets", "b" + bcount, bcount);
eval ("playerbullets.b" + bcount).x = playerx;
eval ("playerbullets.b" + bcount).y = playery - 20;
eval ("playerbullets.b" + bcount).bullettype = type;
bcount++;
if (bcount > 99) {
bcount = 0;
}
}
bcount = 0;
function moveplayer() {
if (leftx > 0) {
playerx = playerx - leftx;
leftx = leftx - pslow;
if (leftx < 0) {
leftx = 0;
}
}
if (rightx > 0) {
playerx = playerx + rightx;
rightx = rightx - pslow;
if (rightx < 0) {
rightx = 0;
}
}
if (playerx < 15) {
playerx = 15;
}
if (playerx > 535) {
playerx = 535;
}
this.player._x = playerx;
this.player._y = playery;
}
function startup() {
var _local1 = _root;
cursor._visible = false;
_quality = "LOW";
_local1.playerscore = 0;
expl = 0;
this.player.firepowerglow._alpha = 0;
player.propolsion2._alpha = 0;
player.propolsion._alpha = 0;
playermove = 3;
_local1.playerenergy = 100;
rightx = 0;
leftx = 0;
upy = 0;
downy = 0;
playerx = 150;
playery = 370;
rowadvance = 0;
pslow = 1.5;
player._x = playerx;
player._y = playery;
playerdist = 0;
lastmove = 0;
spacepressed = 0;
bulletsound = new Sound();
bulletsound.attachSound("bullet");
explosion1sound = new Sound();
explosion1sound.attachSound("explosion1");
explosion2sound = new Sound();
explosion2sound.attachSound("explosion2");
explosion3sound = new Sound();
explosion3sound.attachSound("explosion3");
playerhitsound = new Sound();
playerhitsound.attachSound("playerhit");
level = 1;
_local1.wavetext = "WAVE " + level;
}
function setupstage() {
_root.wavetext = "WAVE " + level;
this.explosionmasterclip.attachMovie("waves", "waves", 100);
this.explosionmasterclip.waves._x = 275;
this.explosionmasterclip.waves._y = 200;
rowadvance = 0;
row1 = 150;
row1d = 0;
row2d = 1;
row2 = 150;
row3d = 1;
row3 = 150;
row4d = 1;
row4 = 150;
if (level == 1) {
enemydata = [1, 1, 6, 1, 2, 1, 1, 3, 7, 1, 4, 6, 2, 0, 1, 2, 1, 7, 2, 2, 1, 2, 3, 7, 2, 4, 1, 2, 5, 7, 3, 0, 7, 3, 1, 1, 3, 2, 7, 3, 3, 1, 3, 4, 7, 3, 5, 1];
}
if (level == 2) {
enemydata = [1, 1, 6, 1, 2, 3, 1, 3, 3, 1, 4, 6, 2, 0, 1, 2, 1, 2, 2, 2, 3, 2, 3, 2, 2, 4, 1, 2, 5, 2, 3, 0, 3, 3, 1, 1, 3, 2, 7, 3, 3, 1, 3, 4, 7, 3, 5, 3, 4, 1, 2, 3, 2, 7, 4, 3, 7, 4, 4, 2];
}
if (level == 3) {
enemydata = [1, 1, 1, 1, 2, 3, 1, 3, 3, 1, 4, 1, 2, 0, 2, 2, 2, 6, 2, 3, 6, 2, 5, 2, 3, 0, 6, 3, 1, 1, 3, 2, 7, 3, 3, 7, 3, 4, 1, 3, 5, 6, 4, 0, 3, 4, 2, 3, 4, 4, 3];
}
if (level == 4) {
enemydata = [1, 0, 6, 1, 1, 3, 1, 2, 6, 1, 3, 3, 1, 4, 6, 1, 5, 3, 2, 0, 3, 2, 1, 2, 2, 2, 3, 2, 3, 2, 2, 4, 3, 2, 5, 2, 3, 0, 1, 3, 1, 7, 3, 2, 6, 3, 3, 6, 3, 4, 7, 3, 5, 1, 4, 0, 7, 4, 1, 2, 4, 2, 2, 4, 3, 2, 4, 4, 2, 4, 5, 7];
}
if (level == 5) {
enemydata = [1, 1, 6, 1, 2, 6, 1, 3, 6, 1, 4, 6, 2, 0, 4, 2, 1, 1, 2, 2, 4, 2, 3, 4, 2, 4, 1, 2, 5, 4, 3, 0, 1, 3, 1, 3, 3, 2, 7, 3, 3, 7, 3, 4, 3, 3, 5, 1, 4, 0, 2, 4, 1, 6, 4, 2, 2, 4, 3, 6, 4, 4, 2, 4, 5, 6];
}
if (level == 6) {
enemydata = [1, 0, 5, 1, 1, 6, 1, 2, 5, 1, 3, 6, 1, 4, 5, 1, 5, 1, 2, 0, 4, 2, 1, 2, 2, 2, 4, 2, 3, 2, 2, 4, 4, 2, 5, 2, 3, 0, 1, 3, 1, 2, 3, 2, 1, 3, 3, 2, 3, 4, 2, 3, 5, 2, 4, 0, 6, 4, 1, 5, 4, 2, 6, 4, 3, 5, 4, 4, 6, 4, 5, 5];
}
if (level > 6) {
trace("game has been won");
action = "game has been won";
}
i = 0;
while (i < enemydata.length) {
row = enemydata[i];
xpos = enemydata[i + 1];
type = enemydata[i + 2];
enemies.attachMovie("arcadeenemy", "e" + ecount, ecount);
eval ("enemies.e" + ecount).xpos = xpos;
eval ("enemies.e" + ecount).row = row;
eval ("enemies.e" + ecount).enemytype = type;
ecount++;
i = i + 3;
}
}
function arcadeframeaction() {
switch (action) {
case "start" :
startup();
moveplayer();
action = "setup level";
return;
case "setup level" :
setupstage();
action = "playing";
if (level > 6) {
action = "game has been won";
counter = 0;
}
return;
case "PLAYER DIES" :
enemies.attachMovie("fadein", "fadein", 300);
enemies.fadein.gotoAndStop(1);
fadein._width = 350;
i = 1;
while (i < 30) {
removeMovieClip(eval ("enemies.e" + i));
i++;
}
i = 1;
while (i < 400) {
removeMovieClip(eval ("playerbullets.b" + i));
i++;
}
attachMovie("gameoverclip", "gameoverclip", 403);
gameoverclip._x = 275;
gameoverclip._y = 200;
attachMovie("playerexplodes", "pxplode", 100);
pxplode._x = playerx;
pxplode._y = playery;
player._visible = 0;
count = 0;
action = "WAIT FOR PLAYER DIE";
return;
case "WAIT FOR PLAYER DIE" :
count++;
if (count > 60) {
count = 0;
if (playerscore > arcadehighscore) {
arcadehighscore = playerscore;
storage.data.arcadehighscore = arcadehighscore;
}
gotoAndPlay (183);
}
return;
case "playing" :
enemymove();
moveplayer();
keys();
moverows();
_root.energy.energybar._x = 1.48 * playerenergy;
if ((playerenergy < 1) || (rowadvance > 50)) {
action = "PLAYER DIES";
return;
}
findenemies();
return;
case "level complete" :
this.explosionmasterclip.attachMovie("wavecomp", "wavecomp", 101);
this.explosionmasterclip.wavecomp._x = 275;
this.explosionmasterclip.wavecomp._y = 200;
level++;
if (level > 6) {
trace("game has been won");
action = "game has been won";
} else {
action = "wait for level complete announce";
}
return;
case "wait for level complete announce" :
counter++;
if (counter > 80) {
action = "wait for level announce";
}
return;
case "wait for level announce" :
action = "setup level";
return;
case "game has been won" :
counter++;
if (counter > 80) {
playerscore = playerscore + 2000;
if (playerscore > arcadehighscore) {
arcadehighscore = playerscore;
storage.data.arcadehighscore = arcadehighscore;
}
gotoAndPlay (462);
}
return;
default :
trace("no case tested true");
}
}
action = "start";
ec = 0;
et = 60;
ecount = 1;
Instance of Symbol 826 MovieClip in Frame 250
onClipEvent (enterFrame) {
_root.arcadeframeaction();
}
Frame 254
stop();
Frame 255
function playarcadegame() {
gotoAndPlay (250);
}
removeMovieClip("fadeout");
removeMovieClip("levelcomplete");
_quality = "HIGH";
tellit.gotoAndStop(level);
if (level == 1) {
this.buttonmaster.gotoAndStop(2);
} else {
this.buttonmaster.gotoAndStop(1);
}
cursor._visible = true;
Frame 256
stop();
Frame 272
level = 1;
gotoAndPlay (111);
Frame 273
function controlkeys() {
var _local1 = this;
if (Key.isDown(37)) {
_local1.arrows.l.gotoAndPlay(2);
leftx = leftx + playermove;
}
if (Key.isDown(39)) {
_local1.arrows.r.gotoAndPlay(2);
rightx = rightx + playermove;
}
if (Key.isDown(38)) {
_local1.arrows.u.gotoAndPlay(2);
upy = upy + playermove;
}
if (Key.isDown(40)) {
_local1.arrows.d.gotoAndPlay(2);
downy = downy + playermove;
}
if (spacepressed == 1) {
_local1.space.gotoAndPlay(2);
}
if ((Key.isDown(32) && (spacepressed == 0)) && (bigfire == 0)) {
spacepressed = 1;
spacepresscount = 0;
}
if (leftx > rightx) {
player.ship.gotoAndStop(Math.floor(8 - (leftx / 2)));
} else if (leftx < rightx) {
player.ship.gotoAndStop(Math.floor(8 + (rightx / 2)));
} else {
player.ship.gotoAndStop(8);
}
if (upy > downy) {
player.propolsion._alpha = upy * 5;
} else {
player.propolsion._alpha = 0;
}
if (downy > upy) {
player.propolsion2._alpha = downy * 5;
} else {
player.propolsion2._alpha = 0;
}
if ((spacepressed == 1) && (bigfire == 0)) {
spacepresscount = spacepresscount + 0.5;
if (spacepresscount > maxpower) {
spacepresscount = maxpower;
}
firepoweramount = Math.floor((spacepresscount / maxpower) * 100);
_local1.firepower.powerind._yscale = firepoweramount;
if (firepoweramount < 50) {
_local1.firepower.powerind.gotoAndStop(1);
}
if ((firepoweramount > 49) && (spacepresscount < 90)) {
_local1.firepower.powerind.gotoAndStop(2);
_local1.player.firepowerglow._alpha = firepoweramount;
}
if (firepoweramount > 89) {
_local1.firepower.powerind.gotoAndStop(3);
_local1.player.firepowerglow._alpha = firepoweramount;
}
}
if (((!Key.isDown(32)) && (spacepressed == 1)) && (bigfire == 0)) {
spacepressed = 0;
firecounter = 0;
controlsfire();
}
if (rightx > 14) {
rightx = 14;
}
if (leftx > 14) {
leftx = 14;
}
if (upy > 14) {
upy = 14;
}
if (downy > 14) {
downy = 14;
}
}
bigfire = 0;
maxpower = 100;
firecounter = 0;
function controlputplayer() {
if (leftx > 0) {
playerx = playerx - leftx;
leftx = leftx - pslow;
if (leftx < 0) {
leftx = 0;
}
}
if (rightx > 0) {
playerx = playerx + rightx;
rightx = rightx - pslow;
if (rightx < 0) {
rightx = 0;
}
}
if (upy > 0) {
playery = playery - upy;
upy = upy - pslow;
if (upy < 0) {
upy = 0;
}
}
if (downy > 0) {
playery = playery + downy;
downy = downy - pslow;
if (downy < 0) {
downy = 0;
}
}
if (playerx < 337) {
playerx = 337;
}
if (playerx > 451) {
playerx = 451;
}
if (playery < 110) {
playery = 110;
}
if (playery > 310) {
playery = 310;
}
this.player._x = playerx;
this.player._y = playery;
}
expl = 0;
this.firepower.powerind._yscale = 1;
this.player.firepowerglow._alpha = 0;
playermove = 3;
spacepressed = 0;
rightx = 0;
leftx = 0;
upy = 0;
downy = 0;
playerx = 150;
playery = 300;
pslow = 1.5;
player._x = playerx;
player._y = playery;
function controlsfire() {
if (bulletsfired < 4) {
spacepresscount = 0;
this.player.firepowerglow._alpha = 0;
this.firepower.powerind._yscale = 1;
if (firepoweramount < 50) {
type = 1;
_root.bulletsound1.start();
}
if ((firepoweramount > 49) && (firepoweramount < 90)) {
type = 2;
_root.bulletsound2.start();
}
if (firepoweramount > 89) {
bigfire = 1;
_root.bulletsound3.start();
type = 3;
}
playerbullets.attachMovie("controlbullets", "b" + bcount, bcount);
eval ("playerbullets.b" + bcount).bullettype = type;
bcount++;
if (bcount > 99) {
bcount = 0;
}
bulletsfired = bulletsfired + 1;
}
}
bcount = 0;
bulletsfired = 0;
type = 0;
spacepresscount = 0;
firepoweramount = 0;
function bulletClass() {
}
bulletClass.prototype = new MovieClip();
bulletClass.prototype.onLoad = function () {
var _local1 = this;
_local1.x = _root.playerx;
_local1.y = _root.playery - 20;
_local1._x = _local1.x;
_local1._y = _local1.y;
_local1.gotoAndStop(_local1.bullettype);
_local1.blife = 60;
};
bulletClass.prototype.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
switch (_local1.bullettype) {
case 1 :
_local1.y = _local1.y - 10;
break;
case 2 :
_local1.y = _local1.y - 10;
break;
case 3 :
_local1.y = _local2.playery - 20;
_local1.x = _local2.playerx;
_local1.blife++;
if (_local1.blife == 60) {
_local1.clip.gotoAndPlay("fade");
}
if (_local1.blife > 70) {
_local2.bigfire = 0;
removeMovieClip(_local1);
_local2.bulletsfired = _local2.bulletsfired - 1;
}
break;
default :
if ((_local1.bullettype == 1) || (_local1.bullettype == 2)) {
_local2.bulletsfired = _local2.bulletsfired - 1;
}
removeMovieClip(_local1);
}
trace(_local1.bullettype);
if (_local1.y < 5) {
if ((_local1.bullettype == 1) || (_local1.bullettype == 2)) {
_local2.bulletsfired = _local2.bulletsfired - 1;
}
trace("HERE");
removeMovieClip(_local1);
}
_local1._x = Math.floor(_local1.x);
_local1._y = Math.floor(_local1.y);
};
Object.registerClass("controlbullets", bulletClass);
Instance of Symbol 863 MovieClip in Frame 273
onClipEvent (enterFrame) {
_root.controlkeys();
_root.controlputplayer();
}
Instance of Symbol 868 MovieClip in Frame 273
onClipEvent (load) {
t = 0;
e = random(25) + 100;
trace(e);
}
onClipEvent (enterFrame) {
t++;
if (t > e) {
t = 0;
e = random(25) + 100;
this.gotoAndPlay(2);
}
}
Frame 285
stop();
Frame 312
gotoAndPlay (58);
Frame 313
Frame 356
function playgame() {
gotoAndPlay (111);
}
removeMovieClip("fadeout");
removeMovieClip("levelcomplete");
_quality = "HIGH";
tellit.gotoAndStop(level);
if (level == 1) {
this.buttonmaster.gotoAndStop(2);
} else {
this.buttonmaster.gotoAndStop(1);
}
cursor._visible = true;
Frame 357
stop();
Frame 373
level = 1;
gotoAndPlay (111);
Frame 374
Frame 378
gotoAndPlay (58);
Frame 379
_quality = "HIGH";
stop();
Frame 380
Frame 461
cursor._visible = true;
stop();
Frame 462
_quality = "HIGH";
if (playerscore > highestscore) {
highestscore = playerscore;
storage.data.highestscore = highestscore;
}
Frame 604
cursor._visible = true;
stop();
Symbol 4 MovieClip [gameoverclip] Frame 74
removeMovieClip(this);
Symbol 35 Button
on (release) {
_root.play();
}
Symbol 36 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
_root.play();
}
Instance of Symbol 31 MovieClip in Symbol 36 MovieClip Frame 1
onClipEvent (enterFrame) {
a = random(6) - 3;
b = random(6) - 3;
this._x = this._x + a;
this._y = this._y + b;
if (this._x > 15) {
this._x = 15;
}
if (this._x < -15) {
this._x = -15;
}
if (this._y > 15) {
this._y = 15;
}
if (this._y < -15) {
this._y = -15;
}
}
Symbol 36 MovieClip Frame 2
gotoAndPlay (1);
Symbol 40 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 10
stop();
Symbol 216 MovieClip Frame 21
stop();
Symbol 219 MovieClip [bullets] Frame 1
stop();
Symbol 252 MovieClip [explosion] Frame 16
removeMovieClip(this);
Symbol 263 MovieClip [levelannouncer] Frame 1
stop();
Symbol 278 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 15
stop();
Symbol 294 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 1
stop();
Symbol 387 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 1
stop();
Symbol 555 MovieClip [enemy] Frame 1
stop();
Symbol 556 MovieClip [arcadebullets] Frame 1
stop();
Instance of Symbol 559 MovieClip in Symbol 560 MovieClip [cursor] Frame 1
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (enterFrame) {
_parent._x = Math.floor(_root._xmouse);
_parent._y = Math.floor(_root._ymouse);
}
Symbol 594 MovieClip [playerexplodes] Frame 42
removeMovieClip(this);
Symbol 651 MovieClip [arcadeenemy] Frame 1
stop();
Symbol 657 MovieClip [fadeout] Frame 55
stop();
Symbol 679 MovieClip Frame 1
stop();
Symbol 681 MovieClip [waves] Frame 74
stop();
Symbol 684 MovieClip [wavecomp] Frame 57
removeMovieClip(this);
Symbol 685 MovieClip [fadein] Frame 55
removeMovieClip(this);
stop();
Symbol 702 Button
on (press) {
getURL ("mailto:terrypaton1@bigpond.com");
}
Symbol 705 Button
on (press) {
getURL ("http://www.users.bigpond.com/terrypaton1/", "_blank");
}
Symbol 710 Button
on (press) {
this.nextFrame();
}
Symbol 717 Button
on (press) {
this.prevFrame();
}
Symbol 746 MovieClip Frame 1
Symbol 747 MovieClip Frame 1
stop();
Symbol 747 MovieClip Frame 11
stop();
Symbol 750 MovieClip Frame 15
stop();
Symbol 759 Button
on (press) {
gotoAndPlay (58);
}
Symbol 762 MovieClip Frame 15
stop();
Symbol 763 MovieClip Frame 1
stop();
Symbol 770 MovieClip Frame 15
stop();
Symbol 771 Button
on (press) {
_root.action = "invasion";
_root.gotoAndPlay("exit");
}
Symbol 775 MovieClip Frame 15
stop();
Symbol 776 Button
on (press) {
_root.action = "arcade";
_root.gotoAndPlay("exit");
}
Symbol 780 MovieClip Frame 15
stop();
Symbol 781 Button
on (press) {
_root.action = "controls";
_root.gotoAndPlay("exit");
}
Symbol 787 MovieClip Frame 15
stop();
Symbol 788 Button
on (press) {
_root.action = "credits";
_root.gotoAndPlay("exit");
}
Instance of Symbol 31 MovieClip in Symbol 795 MovieClip Frame 1
onClipEvent (enterFrame) {
a = random(6) - 3;
b = random(6) - 3;
this._x = this._x + a;
this._y = this._y + b;
if (this._x > 15) {
this._x = 15;
}
if (this._x < -15) {
this._x = -15;
}
if (this._y > 15) {
this._y = 15;
}
if (this._y < -15) {
this._y = -15;
}
}
Symbol 805 MovieClip Frame 1
stop();
Symbol 831 MovieClip Frame 1
stop();
Symbol 838 Button
on (press) {
gotoAndPlay (58);
}
Symbol 858 Button
on (press) {
_root.playarcadegame();
}
Symbol 861 MovieClip Frame 15
stop();
Symbol 864 MovieClip [controlbullets] Frame 1
stop();
Symbol 868 MovieClip Frame 1
stop();
Symbol 874 MovieClip Frame 1
stop();
Symbol 877 MovieClip Frame 1
stop();
Symbol 880 Button
on (press) {
play();
}
Symbol 891 MovieClip Frame 1
stop();
Symbol 892 Button
on (press) {
_root.playgame();
}
Symbol 896 MovieClip Frame 8
stop();
Symbol 898 Button
on (press) {
_root.skilllevel = 2;
_root.play();
}
Symbol 901 MovieClip Frame 8
stop();
Symbol 903 Button
on (press) {
_root.skilllevel = 1;
_root.play();
}
Symbol 906 MovieClip Frame 8
stop();
Symbol 908 Button
on (press) {
_root.skilllevel = 3;
_root.play();
}
Symbol 909 MovieClip Frame 1
stop();
Symbol 1127 MovieClip Frame 201
_root.play();
Instance of Symbol 1130 MovieClip in Symbol 1131 MovieClip Frame 1
onClipEvent (load) {
m = 6;
}
onClipEvent (enterFrame) {
m = m * 0.99;
a = random(m) - (m / 2);
b = random(m) - (m / 2);
this._x = this._x + a;
this._y = this._y + b;
if (this._x > 10) {
this._x = 10;
}
if (this._x < -10) {
this._x = -10;
}
if (this._y > 10) {
this._y = 10;
}
if (this._y < -10) {
this._y = -10;
}
}
Symbol 1132 MovieClip Frame 89
stop();