[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Combined Code (247.98 KiB) ● ● ● ●
movieClip 129 {
}
movieClip 132 {
frame 1 {
stop();
}
}
movieClip 150 {
frame 56 {
_parent.bActive = false;
stop();
}
}
movieClip 151 BattleBug {
frame 1 {
stop();
}
}
movieClip 163 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
movieClip 168 {
}
movieClip 169 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 41 {
stop();
}
}
movieClip 172 {
frame 14 {
gotoAndPlay(1);
}
}
movieClip 174 {
frame 60 {
gotoAndPlay(1);
}
}
movieClip 176 {
frame 60 {
gotoAndPlay(1);
}
}
movieClip 177 {
}
movieClip 179 {
frame 1 {
stop();
}
}
movieClip 180 {
}
movieClip 184 {
frame 1 {
stop();
}
}
movieClip 271 {
frame 112 {
stop();
}
}
movieClip 273 {
frame 112 {
stop();
}
}
movieClip 275 {
frame 112 {
stop();
}
}
movieClip 277 {
frame 112 {
stop();
}
}
movieClip 278 EnemySet {
frame 1 {
stop();
}
}
movieClip 286 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
movieClip 290 {
frame 1 {
stop();
}
}
movieClip 295 {
}
movieClip 296 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 25 {
stop();
}
}
movieClip 298 {
frame 112 {
stop();
}
}
movieClip 300 {
frame 112 {
stop();
}
}
movieClip 302 {
frame 112 {
stop();
}
}
movieClip 303 CarSet {
frame 1 {
stop();
}
}
movieClip 306 lockedlevel {
}
movieClip 307 {
}
// unknown tag 88 length 287
movieClip 310 levelselect {
instance of movieClip 307 {
onClipEvent (press) {
_root.f_LevelSelect(_parent.nLevel);
}
}
}
movieClip 319 {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2892 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -160 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 121;
+= 93;
+= 246;
-= 382;
-= 147;
+= 208;
+= 89;
-= 786;
+= 713;
+= 421;
+= 632;
+= 170;
-= 505;
-= 131;
+= 308;
var = 1;
-= 763;
-= 219;
-= 263;
+= 510;
+= 775;
-= 327;
+= 46;
-= 421;
+= 250;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 177;
true;
'';
eval(!true);
true;
}
}
movieClip 321 {
frame 10 {
stop();
}
}
movieClip 323 {
frame 37 {
_parent.setGotoFrame('done');
stop();
}
}
movieClip 325 {
}
movieClip 327 NewgroundsAPIAsset_Medal_Icon_Placeholder {
}
movieClip 335 NewgroundsAPIAsset_Medal_Popup {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (737 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 9 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 132;
-= 891;
var eval( != 235) = true;
+= 345;
+= 166;
// An attempt to read a value from empty stack
+= 77;
+= 206;
-= 422;
-= 355;
-= 135;
-= 235;
-= 105;
-= 669;
+= 29;
-= 171;
-= 128;
+= 953;
-= 490;
+= 556;
-= 54;
-= 408;
+= 401;
+= 185;
+= 252;
+= 541;
+= 568;
-= 293;
-= 318;
-= 688;
-= 425;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!undefined;
true;
true;
'';
true;
'';
eval(1);
}
frame 2 {
medal.attachIcon(icon);
}
frame 10 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2142 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 78 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 609;
+= 436;
+= 231;
+= 5;
+= 93;
+= 176;
+= 286;
-= 784;
+= 356;
+= 909;
-= 455;
+= 716;
-= 447;
+= 515;
+= 342;
+= 890;
-= 600;
-= 210;
var eval(1) = true;
-= 347;
-= 25;
-= 224;
-= 252;
-= 791;
-= 170;
-= 121;
-= 150;
-= 549;
-= 124;
-= 859;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 176;
true;
!true;
true;
'';
;
}
frame 21 {
this.removeMovieClip();
_visible = false;
stop();
}
}
movieClip 341 NewgroundsAPIAsset_Login_Warning {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2309 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 253 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 105;
+= 855;
+= 520;
+= 184;
-= 889;
-= 443;
var eval(true) = '';
-= 669;
-= 472;
+= 117;
+= 423;
+= 503;
-= 308;
+= 574;
-= 739;
+= 231;
-= 419;
+= 63;
-= 24;
+= 346;
-= 46;
+= 151;
+= 275;
-= 2;
-= 338;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
eval( != 518);
'';
!1;
true;
true;
}
frame 10 {
stop();
}
frame 21 {
this.removeMovieClip();
_visible = false;
stop();
}
}
movieClip 344 NewgroundsAPIAsset_Connection_Error {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1793 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 705 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 568;
+= 3;
-= 156;
+= 917;
-= 334;
+= 421;
-= 509;
+= 266;
+= 482;
+= 39;
+= 216;
-= 595;
var = eval(!1);
-= 616;
-= 339;
+= 62;
-= 73;
-= 724;
+= 346;
-= 468;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 965;
true;
true;
'';
}
frame 10 {
stop();
}
frame 21 {
this.removeMovieClip();
_visible = false;
stop();
}
}
movieClip 346 {
}
movieClip 348 {
}
movieClip 350 {
}
movieClip 352 {
}
movieClip 354 {
}
movieClip 356 {
}
movieClip 358 {
}
movieClip 360 {
}
movieClip 362 {
}
movieClip 364 {
}
movieClip 365 NewgroundsAPIAsset_big_popup_background {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (827 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 669 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 86;
+= 812;
+= 156;
-= 229;
-= 400;
-= 450;
+= 77;
-= 377;
+= 565;
-= 221;
-= 116;
-= 534;
+= 234;
-= 553;
+= 145;
-= 96;
+= 96;
+= 666;
+= 162;
+= 199;
+= 165;
-= 47;
-= 105;
+= 166;
var = 1;
-= 111;
-= 30;
+= 364;
-= 18;
-= 779;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 985;
!true;
true;
true;
true;
;
}
}
button 369 {
on (release) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2726 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 118 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 703;
-= 63;
+= 37;
-= 852;
-= 553;
-= 15;
+= 840;
+= 107;
-= 319;
-= 280;
-= 74;
+= 115;
+= 315;
+= 448;
+= 215;
-= 481;
-= 40;
-= 136;
+= 357;
+= 53;
-= 355;
var eval(true) = true;
-= 221;
-= 732;
+= 183;
-= 21;
-= 243;
+= 530;
+= 682;
-= 833;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 289;
eval(!true);
true;
'';
'';
1;
}
}
button 375 {
on (release) {
getURL(official_version_url, '_blank');
}
}
movieClip 377 NewgroundsAsset_New_Version_Available {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (980 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -291 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 237;
+= 80;
-= 86;
-= 744;
-= 541;
+= 96;
+= 723;
-= 947;
var eval( != 178) = eval(!true);
+= 553;
+= 317;
+= 419;
+= 713;
+= 16;
-= 541;
+= 471;
-= 807;
+= 75;
-= 332;
-= 116;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
'';
1;
true;
'';
}
}
button 378 {
on (release) {
getURL(official_version_url, '_blank');
}
}
movieClip 382 NewgroundsAsset_Illegal_Host {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2307 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -142 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 383;
+= 45;
+= 276;
-= 104;
var eval( != 121) = !true;
+= 305;
+= 176;
+= 243;
+= 6;
-= 560;
+= 388;
+= 359;
+= 409;
-= 527;
+= 561;
-= 903;
-= 615;
-= 315;
+= 89;
-= 203;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
'';
eval(true);
'';
1;
}
}
movieClip 383 API Connector (NewgroundsAPI) {
#initclip
Object.registerClass('API Connector (NewgroundsAPI)', com.newgrounds.components.APIConnector);
#endinitclip
frame 20 {
_visible = false;
}
}
frame 1 {
stop();
}
movieClip 410 {
}
movieClip 411 {
}
button 415 {
on (press) {
_root.gotoAndStop('start');
}
}
movieClip 416 {
frame 1 {
stop();
}
instance of movieClip 411 {
onClipEvent (load) {
_parent.bar._xscale = 1;
if (_root.getBytesLoaded() / _root.getBytesTotal() == 1) {
_root.gotoAndStop('start');
}
}
onClipEvent (enterFrame) {
var loaded = _root.getBytesLoaded() / _root.getBytesTotal();
_parent.bar._xscale = 100 * loaded;
if (loaded == 1) {
_root.gotoAndStop('start');
}
}
}
frame 2 {
stop();
}
}
instance of movieClip 383 API Connector (NewgroundsAPI) {
onClipEvent (construct) {
api_id = '51455:irjmtdWE';
encryption_key = 'ojRWt5lnEPsRsEDKGN62BkRLYblGdoCY';
version = '';
fake_session = false;
debug = false;
error_screens = true;
medal_popups = false;
}
}
movieClip 386 __Packages.com.newgrounds.Bridge {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1997 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -85 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 70;
+= 224;
-= 487;
+= 618;
-= 490;
var = 1;
-= 518;
-= 35;
-= 154;
+= 366;
+= 383;
+= 300;
-= 287;
-= 102;
+= 627;
+= 192;
+= 35;
-= 220;
-= 100;
-= 78;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 379;
true;
true;
!;
#endinitclip
}
movieClip 384 __Packages.com.newgrounds.APIError {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (678 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 334 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 48;
+= 492;
-= 713;
-= 296;
+= 614;
-= 866;
+= 525;
+= 405;
-= 100;
-= 521;
-= 607;
+= 329;
+= 556;
-= 109;
+= 562;
-= 716;
+= 939;
+= 443;
+= 98;
-= 182;
-= 136;
+= 153;
var eval(eval(true)) = '';
-= 654;
-= 976;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 501;
!true;
'';
1;
true;
#endinitclip
}
movieClip 385 __Packages.com.newgrounds.API {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1221 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -124 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 2;
+= 873;
-= 166;
-= 198;
-= 23;
-= 2;
+= 506;
-= 165;
-= 39;
-= 518;
-= 616;
+= 404;
+= 30;
-= 168;
-= 233;
+= 6;
-= 571;
-= 371;
-= 24;
+= 400;
-= 310;
var eval(!eval(true)) = true;
+= 137;
-= 108;
-= 171;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 75;
true;
'';
'';
1;
#endinitclip
}
movieClip 387 __Packages.com.newgrounds.SaveFile {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1727 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -55 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 289;
+= 502;
+= 446;
-= 253;
-= 546;
-= 85;
+= 39;
+= 170;
+= 307;
+= 725;
-= 268;
-= 476;
+= 392;
-= 457;
+= 99;
+= 384;
+= 491;
+= 155;
-= 669;
-= 191;
-= 135;
-= 188;
-= 550;
+= 561;
+= 83;
+= 781;
-= 44;
var eval(true) = true;
+= 453;
-= 581;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 139;
true;
!eval(true);
'';
'';
1;
#endinitclip
}
movieClip 388 __Packages.com.newgrounds.SaveGroup {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1082 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -27 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 408;
-= 333;
+= 281;
-= 224;
+= 36;
+= 148;
-= 150;
+= 281;
+= 299;
-= 293;
-= 282;
-= 262;
+= 690;
+= 266;
+= 205;
-= 883;
+= 5;
+= 192;
-= 741;
-= 301;
+= 473;
-= 823;
var = true;
-= 327;
+= 240;
+= 492;
-= 250;
+= 878;
-= 18;
-= 125;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 33;
true;
true;
true;
'';
eval(!1);
#endinitclip
}
movieClip 391 __Packages.com.newgrounds.SaveGroupQuery {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1695 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 421 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 204;
-= 34;
-= 762;
+= 171;
-= 90;
-= 70;
-= 309;
+= 788;
+= 231;
+= 121;
+= 346;
-= 252;
-= 512;
+= 490;
+= 17;
-= 345;
var eval(eval(true)) = '';
-= 552;
+= 53;
-= 370;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 583;
true;
'';
!1;
#endinitclip
}
movieClip 393 __Packages.com.newgrounds.encoders.ImageScanner {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2740 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 685 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 455;
+= 296;
-= 41;
-= 568;
-= 61;
+= 883;
var eval( != 870) = true;
+= 688;
// An attempt to read a value from empty stack
-= 151;
-= 114;
+= 143;
-= 732;
+= 82;
-= 50;
-= 647;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!eval(undefined);
'';
'';
1;
#endinitclip
}
movieClip 392 __Packages.com.newgrounds.encoders.BaseN {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (263 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 299 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 403;
+= 52;
+= 325;
+= 833;
+= 527;
+= 269;
var = eval(1);
-= 765;
+= 470;
+= 332;
+= 41;
+= 149;
-= 537;
-= 676;
+= 577;
+= 112;
-= 273;
-= 581;
-= 634;
-= 497;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 562;
!true;
'';
true;
#endinitclip
}
movieClip 402 __Packages.com.newgrounds.APIEventDispatcher {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (595 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 240 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 240;
+= 101;
+= 17;
+= 436;
+= 433;
+= 89;
-= 505;
-= 62;
-= 158;
-= 288;
-= 530;
-= 515;
-= 668;
+= 630;
var = eval(1);
+= 168;
+= 125;
+= 295;
+= 7;
-= 31;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 324;
true;
!'';
true;
#endinitclip
}
movieClip 390 __Packages.com.newgrounds.APIEvent {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1375 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 491 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 510;
+= 788;
+= 790;
-= 302;
-= 28;
+= 369;
+= 599;
-= 112;
-= 824;
-= 155;
-= 596;
+= 34;
-= 185;
-= 49;
+= 313;
-= 105;
-= 658;
-= 134;
-= 99;
+= 280;
var eval(eval(!true)) = true;
-= 230;
+= 43;
-= 625;
-= 688;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 844;
true;
'';
'';
1;
#endinitclip
}
movieClip 311 __Packages.com.newgrounds.components.APIConnector {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2421 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -320 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 233;
-= 3;
+= 360;
-= 110;
-= 470;
+= 197;
+= 218;
+= 141;
-= 340;
+= 810;
-= 14;
var = !true;
+= 40;
-= 374;
-= 617;
-= 352;
-= 158;
+= 247;
-= 2;
-= 68;
+= 468;
+= 478;
-= 117;
+= 115;
+= 317;
+= 110;
+= 69;
+= 291;
-= 50;
-= 507;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 57;
eval(true);
true;
true;
'';
1;
#endinitclip
}
movieClip 389 __Packages.com.newgrounds.ValidationTools {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (872 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 209 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 407;
+= 333;
-= 518;
+= 302;
+= 2;
+= 455;
+= 175;
-= 336;
+= 420;
-= 921;
-= 22;
-= 800;
+= 326;
+= 298;
-= 362;
-= 244;
+= 221;
var = !1;
-= 220;
+= 347;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 570;
true;
true;
;
#endinitclip
}
movieClip 394 __Packages.com.newgrounds.encoders.SerialXML {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2879 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -58 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 423;
-= 578;
-= 583;
+= 259;
+= 10;
+= 400;
+= 729;
-= 272;
+= 664;
-= 434;
+= 39;
-= 390;
-= 88;
-= 115;
+= 419;
+= 145;
-= 169;
var eval(1) = !true;
-= 61;
+= 265;
-= 20;
-= 54;
+= 85;
+= 29;
-= 229;
+= 164;
+= 242;
+= 91;
-= 262;
-= 914;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 266;
eval(true);
'';
true;
true;
'';
#endinitclip
}
movieClip 395 __Packages.com.newgrounds.encoders.LZW2 {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1433 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -183 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 628;
-= 425;
-= 203;
-= 88;
-= 233;
+= 297;
-= 322;
+= 11;
-= 542;
-= 744;
-= 108;
+= 412;
-= 786;
+= 443;
-= 491;
+= 460;
-= 389;
+= 581;
-= 448;
var = 1;
+= 298;
-= 15;
+= 323;
+= 481;
-= 724;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 228;
true;
!true;
eval(true);
'';
#endinitclip
}
movieClip 396 __Packages.com.newgrounds.encoders.LZW {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (423 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 264 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 521;
-= 183;
-= 96;
-= 30;
+= 239;
-= 52;
+= 165;
-= 601;
-= 666;
+= 343;
-= 139;
var eval(true) = '';
-= 589;
+= 775;
+= 21;
+= 23;
-= 385;
+= 201;
+= 712;
-= 832;
+= 2;
+= 42;
-= 578;
-= 221;
+= 463;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 687;
true;
true;
'';
!eval(1);
#endinitclip
}
movieClip 397 __Packages.com.newgrounds.Medal {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1006 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 27 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 73;
+= 134;
-= 431;
-= 475;
-= 141;
-= 165;
+= 159;
+= 145;
-= 325;
-= 291;
var eval(true) = '';
+= 488;
+= 152;
+= 261;
-= 379;
-= 775;
+= 952;
+= 23;
-= 285;
-= 295;
-= 377;
-= 312;
+= 686;
+= 237;
+= 495;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 522;
true;
eval(true);
'';
!1;
#endinitclip
}
movieClip 398 __Packages.com.newgrounds.ScoreBoard {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1967 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -285 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 13;
-= 92;
-= 190;
-= 291;
-= 482;
+= 73;
-= 318;
+= 610;
+= 45;
-= 228;
-= 133;
-= 487;
-= 318;
-= 80;
-= 134;
+= 367;
+= 135;
+= 554;
var eval(true) = !true;
+= 474;
+= 137;
-= 75;
-= 538;
-= 510;
-= 26;
+= 834;
+= 189;
-= 688;
+= 615;
-= 622;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 149;
true;
'';
1;
'';
eval(true);
#endinitclip
}
movieClip 399 __Packages.com.newgrounds.Score {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (145 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 543 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 276;
-= 668;
+= 197;
+= 63;
+= 104;
+= 303;
+= 278;
+= 425;
-= 569;
+= 564;
-= 231;
+= 337;
-= 664;
-= 590;
-= 671;
-= 570;
var eval( != 688) = !true;
-= 72;
+= 388;
-= 45;
+= 196;
-= 376;
+= 391;
-= 845;
+= 9;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
true;
'';
1;
true;
;
#endinitclip
}
movieClip 400 __Packages.com.newgrounds.encoders.RC4 {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (38 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 295 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 438;
-= 417;
+= 722;
+= 847;
+= 97;
+= 39;
+= 22;
+= 428;
var eval(!true) = '';
+= 303;
+= 807;
-= 62;
-= 542;
-= 291;
-= 806;
-= 541;
+= 254;
-= 361;
-= 404;
+= 282;
+= 327;
-= 28;
+= 441;
+= 764;
+= 207;
-= 746;
-= 478;
-= 142;
-= 351;
-= 326;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 333;
eval(true);
true;
true;
'';
1;
#endinitclip
}
movieClip 401 __Packages.com.newgrounds.encoders.JSON {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1418 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 14 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 391;
+= 143;
-= 505;
+= 112;
+= 627;
+= 233;
-= 198;
-= 587;
-= 212;
-= 179;
-= 195;
-= 765;
-= 340;
-= 40;
var eval(true) = '';
+= 447;
-= 157;
-= 25;
+= 575;
+= 272;
+= 112;
+= 138;
+= 11;
+= 400;
-= 434;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 410;
eval(!true);
true;
'';
1;
#endinitclip
}
movieClip 403 __Packages.com.newgrounds.encoders.MD5 {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2764 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 750 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 281;
-= 77;
-= 462;
-= 340;
-= 261;
+= 234;
+= 177;
+= 132;
-= 632;
-= 918;
-= 48;
+= 340;
+= 574;
+= 74;
+= 175;
var eval(1) = true;
+= 713;
+= 481;
+= 341;
-= 709;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 959;
eval(true);
'';
!'';
#endinitclip
}
frame 2 {
function f_Talk(mZ, nCharacter) {
if (_global.vVoxTrack && _global.nVoxOwner == nCharacter) {
mZ.bTalking = true;
if (_global.aVoxArray.length > 0) {
var v3 = _global.aVoxArray[_global.nVoxMarker];
mZ.gotoAndStop(v3.mouth);
mZ.eyes.gotoAndStop(v3.eyes);
}
} else {
if (mZ.bTalking) {
mZ.bTalking = false;
mZ.gotoAndStop(1);
}
}
}
function f_CheckText() {
return a_Dialog.length;
}
function f_TextClear() {
textClicked = true;
textInit = true;
a_Dialog = new Array();
}
function f_TextBox() {
bTalking = false;
if (!textbox) {
if (a_Dialog.length > 0) {
textTimer = 0;
textInit = false;
textClicked = false;
f_Sound(s_char);
talk.gotoAndStop('on');
textbox = a_Dialog[0].charAt(0);
return true;
}
} else {
if (textbox.length < a_Dialog[0].length) {
++textTimer;
bTalking = true;
if (textClicked) {
textClicked = false;
bTalking = false;
textbox = a_Dialog[0];
f_Sound(s_char);
} else {
if (textTimer % 2 == 0) {
textbox += a_Dialog[0].charAt(textbox.length);
if (textTimer == 6) {
textTimer = 0;
if (bMad) {
aAngry[random(3)].start(0, 0);
} else {
vCurrentShard.stop();
vCurrentShard = mShards.aShards[random(6)];
vCurrentShard.start(0, 0);
}
}
}
}
return true;
} else {
if (!textInit) {
textClicked = false;
textInit = true;
return true;
} else {
if (textClicked) {
textClicked = false;
a_Dialog.splice(0, 1);
textbox = '';
if (!f_CheckText()) {
textComplete();
textComplete = undefined;
f_Next();
} else {
f_TextBox();
}
}
}
}
}
}
function f_TextClick() {
textClicked = true;
}
function formatText(text) {
var v3 = text.split(' ');
var v5 = v3.length;
formatTextField = mGeneral.mText.tDialog;
formatTextField.text = outText;
formatTextField.autoSize = 'left';
formatTextField.wordWrap = true;
formatTextField.multiline = true;
var outText = v3[0];
var v2;
var v4 = formatTextField.textHeight;
var v6 = 1;
var v1 = 1;
while (v1 < v5) {
v2 = outText + ' ' + v3[v1];
formatTextField.text = v2;
if (formatTextField.textHeight > v4) {
outText += '\n' + v3[v1];
++v6;
v4 = formatTextField.textHeight;
} else {
outText = v2;
}
++v1;
}
return outText;
}
function f_TalkSystem() {
f_TextBox();
mGeneral.mText.tDialog.text = textbox;
}
function f_Convo(n) {
bMad = false;
textbox = '';
mGeneral.mText.tDialog.text = textbox;
a_Dialog = new Array(10);
a_Dialog.splice(0);
if (n == 1) {
a_Dialog.push(formatText('Urgent news! Robot war machines have taken control of the country!'));
a_Dialog.push(formatText('It\'s up to us to push them back to the sea.'));
} else {
if (n == 2) {
bMad = true;
a_Dialog.push(formatText('We lost! What did you do?!'));
a_Dialog.push(formatText('We\'ll have to go back to the factory and try again.'));
} else {
if (n == 4) {
a_Dialog.push(formatText('Excellent work, soldier!'));
a_Dialog.push(formatText('We\'re ramping up production, so get ready to work faster.'));
} else {
if (n == 5) {
bMad = true;
a_Dialog.push(formatText('What the hell did you do?!'));
a_Dialog.push(formatText('Did you even try?'));
a_Dialog.push(formatText('You better get it right next time.'));
} else {
if (n == 6) {
a_Dialog.push(formatText('I can\'t believe it, I thought we could win that one.'));
a_Dialog.push(formatText('Good thing we have more cars and weapons ready, we can try again.'));
} else {
if (n == 100) {
a_Dialog.push(formatText('I should say something here!'));
} else {
if (n == 101) {
a_Dialog.push(formatText('Welcome to the battlefield! The pushback began right here.'));
a_Dialog.push(formatText('Miami is on its last legs but let\'s finish this and mop up the leftovers!'));
} else {
if (n == 102) {
a_Dialog.push(formatText('With the advent of the automated delivery robots everything seemed to be going well!'));
a_Dialog.push(formatText('Unfortunately terrible things were just over the horizon. Blast em!'));
} else {
if (n == 103) {
a_Dialog.push(formatText('Almost overnight, humanity stopped leaving home and just ordered everything they needed.'));
a_Dialog.push(formatText('They couldn\'t build the robots fast enough.'));
a_Dialog.push(formatText('Lets get those lasers on the battlefield!'));
a_Dialog.push(formatText('Lasers can\'t hurt ground units but you can zap any flying drone bombs.'));
} else {
if (n == 104) {
a_Dialog.push(formatText('The A.I. read Sadie\'s one star review and that was the straw that broke the camel\'s back.'));
a_Dialog.push(formatText('The robots decided humans need to be delivered to their DEATH.'));
a_Dialog.push(formatText('Which side will deliver faster?'));
} else {
if (n == 105) {
a_Dialog.push(formatText('Many of the bots were built right here and Detroit was quickly overwhelmed! Lock and load!'));
} else {
if (n == 106) {
a_Dialog.push(formatText('A programmer had the grand idea that the A.I should read product reviews for motivation.'));
a_Dialog.push(formatText('Everyone in Chicago was zero bombing delicious “NY†style pizza.'));
a_Dialog.push(formatText('The robots couldn\'t understand any of this and they began to break down! Aim steady soldier!'));
} else {
if (n == 107) {
a_Dialog.push(formatText('Come on people we can turn this around! We\'re nearly half-way to their home base!'));
} else {
if (n == 108) {
a_Dialog.push(formatText('Oh no! The scouts have warned of a new enemy unit!'));
a_Dialog.push(formatText('The mobile delivery center code named HUNGRY JACK!'));
a_Dialog.push(formatText('This monster is connected to satellites to help target you.'));
a_Dialog.push(formatText('Shoot it\'s eyes out if you see them charging!'));
} else {
if (n == 109) {
a_Dialog.push(formatText('I know you\'re tired soldier but keep up the fight! Their desperation is showing!'));
} else {
if (n == 110) {
a_Dialog.push(formatText('Denver could have fended off the attack but everyone there was drunk.'));
a_Dialog.push(formatText('Help them drive out the invaders!'));
} else {
if (n == 111) {
a_Dialog.push(formatText('The robots are angry they only do three deliveries to Bismarck a year and it\'s a total waste of their time!'));
a_Dialog.push(formatText('Wipe em out!'));
} else {
if (n == 112) {
a_Dialog.push(formatText('Meanwhile in Boise everyone started giving terrible reviews to non-Boise potato chips.'));
a_Dialog.push(formatText('The robots began vindictively crumbling up all potato chips before delivery! Hold the line!'));
} else {
if (n == 113) {
a_Dialog.push(formatText('What a bloodbath! All humans were quickly made into non-vegan blood smoothies. We are nearly there!'));
} else {
if (n == 114) {
a_Dialog.push(formatText('We\'re truly gambling with our lives here! Always bet on black!'));
} else {
if (n == 115) {
a_Dialog.push(formatText('Looks like we can chalk this whole war up to human error, after all!'));
a_Dialog.push(formatText('Hope we dropped enough cannons to take out this last batch of baddies.'));
} else {
if (n == 201) {
a_Dialog.push(formatText('At ease, soldier. General B.B. Topper here, with your mission briefing.'));
a_Dialog.push(formatText('A diabolical e-commerce outfit has gone rogue and seized control of the U.S.'));
a_Dialog.push(formatText('This factory is humanity\'s last hope to take back our land.'));
a_Dialog.push(formatText('Here, we drop cannons on vehicles.'));
a_Dialog.push(formatText('There are three vehicle types and three cannon types.'));
a_Dialog.push(formatText('Vehicles can only carry weapons their size and lighter.'));
a_Dialog.push(formatText('Let\'s drop some cannons!'));
} else {
if (n == 202) {
a_Dialog.push(formatText('We\'ve received orders to speed up production.'));
a_Dialog.push(formatText('Cars will no longer stop and wait for you to drop cannon.'));
a_Dialog.push(formatText('Keep up or we all die!'));
} else {
if (n == 203) {
a_Dialog.push(formatText('We\'ve gotten word flying delivery drones are attempting to infiltrate the factory.'));
a_Dialog.push(formatText('If they swarm the vehicles, destroy them before they overload and detonate!'));
a_Dialog.push(formatText('We\'ll halt the line and enable your laser blasters if they sound the alarm!'));
} else {
if (n == 204) {
a_Dialog.push(formatText('This building once belonged to a company called Newgrounds.'));
a_Dialog.push(formatText('The staff\'s corpses are burned to keep our machines running!'));
} else {
if (n == 205) {
a_Dialog.push(formatText('Heads up, the enemy is sneaking decoys into our assembly line!'));
a_Dialog.push(formatText('If you see a suspicious looking vehicle, DON\'T drop a cannon on it.'));
a_Dialog.push(formatText('You\'ll be arming an enemy combatant instead!'));
} else {
if (n == 206) {
a_Dialog.push(formatText('Intel says the enemy is adapting to our defenses.'));
a_Dialog.push(formatText('Delivery drones have been upgraded and take more than one hit now!'));
} else {
if (n == 207) {
a_Dialog.push(formatText('We\'ve got word the A.I. uprising started at company headquarters in Seattle.'));
a_Dialog.push(formatText('Looks like that will be the final stop on this tour!'));
} else {
if (n == 208) {
a_Dialog.push(formatText('These autonomous delivery vehicles were built to withstand inclement weather and teen drivers.'));
a_Dialog.push(formatText('They\'re nearly unstoppable!'));
} else {
if (n == 209) {
a_Dialog.push(formatText('If the robots win, they\'ll package up our organs and ship them right to a landfill.'));
a_Dialog.push(formatText('And the shipping is free! What an unimaginable nightmare.'));
} else {
if (n == 210) {
a_Dialog.push(formatText('Our top lieutenant P. Goldfish was from around these parts.'));
a_Dialog.push(formatText('His body parts were shipped to the four corners of the earth.'));
a_Dialog.push(formatText('I guess they do international orders now!'));
} else {
if (n == 211) {
a_Dialog.push(formatText('It\'s Bismarck! We don\'t want to die in Bismarck, right?'));
} else {
if (n == 212) {
a_Dialog.push(formatText('The country bumpkins around these parts only like their quads! Get ready!'));
} else {
if (n == 213) {
a_Dialog.push(formatText('We\'re making our final push north along the coast!'));
a_Dialog.push(formatText('You\'ve done well so far, ' + sUser + '. Keep it up.'));
} else {
if (n == 214) {
a_Dialog.push(formatText('Always bet on black!'));
} else {
if (n == 215) {
a_Dialog.push(formatText('This one is for all the marbles!'));
a_Dialog.push(formatText('We\'ve received word humanoid robots have infiltrated the factory.'));
a_Dialog.push(formatText('If you see one, drop a HEAVY cannon on it before it escapes!'));
a_Dialog.push(formatText('Anything smaller and he might catch it to use against us.'));
a_Dialog.push(formatText('Don\'t worry about your cannon count, we have a near endless supply.'));
a_Dialog.push(formatText('Good luck!'));
} else {
if (n == 301) {
a_Dialog.push(formatText('Great work! Time to pack up and move this operation to the next city.'));
} else {
if (n == 315) {
a_Dialog.push(formatText('We did it, we defeated those robot bastards!'));
a_Dialog.push(formatText('I\'m worn out, lets order some delivery!'));
a_Dialog.push(formatText('...oh....'));
a_Dialog.push(formatText('...NO...'));
a_Dialog.push(formatText('Attention soldier, your new orders are coming in.'));
} else {
if (n == 400) {
a_Dialog.push(formatText('Dropping boxes is a lot like dropping cannons!'));
a_Dialog.push(formatText('You\'re dropping one box per house, as close to the front door as possible.'));
a_Dialog.push(formatText('Tap your screen to drop. We\'ll start our route with this house!'));
} else {
if (n == 401) {
a_Dialog.push(formatText('You\'re doing great, soldier.'));
a_Dialog.push(formatText('Keep this up and I see a promotion in your future!'));
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
mGeneral.mText.tDialog.text = '';
}
function f_Start() {
_global.nScreenWidth = 853;
_global.nScreenHeight = 480;
_global.nSWM = _global.nScreenWidth / 2;
_global.nGravity = 1;
_global.nTV = 15;
_global.nPowSmall = 1;
_global.nPowMed = 2;
_global.nPowLarge = 3;
_global.nLanguages = 1;
_global.nLanguage = 0;
_global.mG = this;
_quality = 'medium';
bFading = true;
sUser = com.newgrounds.API.getUserName();
if (sUser == 'Guest' || sUser == '<deleted>') {
sUser = 'soldier';
}
if (!sUser) {
sUser = 'soldier';
}
if (browsermode == 'mobile') {
bMobile = true;
}
_global.nPI = 0.0174532925199433;
_global.nRadiance = 57.29577951308232;
nMedals = 7;
aMedals = new Array(nMedals);
var v3 = 0;
while (v3 < nMedals) {
aMedals[v3] = false;
++v3;
}
nSpaceX = 100;
nSpaceY = 52;
nNudgeGap = 52;
vFactoryExplodeBig = new Sound();
vFactoryExplodeBig.attachSound('factory-explode-big');
vFactoryEquip1 = new Sound();
vFactoryEquip1.attachSound('factory-equip-1');
vFactoryEquip2 = new Sound();
vFactoryEquip2.attachSound('factory-equip-2');
vFactoryEquip3 = new Sound();
vFactoryEquip3.attachSound('factory-equip-3');
vFactorySmallEquip1 = new Sound();
vFactorySmallEquip1.attachSound('factory-small-equip-1');
vFactorySmallEquip2 = new Sound();
vFactorySmallEquip2.attachSound('factory-small-equip-2');
vFactorySmallMiss1 = new Sound();
vFactorySmallMiss1.attachSound('factory-small-miss1');
vFactorySmallMiss2 = new Sound();
vFactorySmallMiss2.attachSound('factory-small-miss2');
vFactoryMedMiss1 = new Sound();
vFactoryMedMiss1.attachSound('factory-med-miss-1');
vFactoryMedMiss2 = new Sound();
vFactoryMedMiss2.attachSound('factory-med-miss-2');
vFactoryBigMiss1 = new Sound();
vFactoryBigMiss1.attachSound('factory-big-miss-1');
vFactoryBigMiss2 = new Sound();
vFactoryBigMiss2.attachSound('factory-big-miss-2');
vMenuSelect = new Sound();
vMenuSelect.attachSound('menuselect');
vGears = new Sound();
vGears.attachSound('gears');
vMedalGet = new Sound();
vMedalGet.attachSound('medalget');
vBossLaugh = new Sound();
vBossLaugh.attachSound('bosslaugh');
vBossOpen = new Sound();
vBossOpen.attachSound('bossopen');
vBossRattle = new Sound();
vBossRattle.attachSound('bossrattle');
vBossScream = new Sound();
vBossScream.attachSound('bossscream');
vBossServo1 = new Sound();
vBossServo1.attachSound('bossservo1');
vBossServo2 = new Sound();
vBossServo2.attachSound('bossservo2');
vBossServo3 = new Sound();
vBossServo3.attachSound('bossservo3');
vBossServo4 = new Sound();
vBossServo4.attachSound('bossservo4');
vBossSteam = new Sound();
vBossSteam.attachSound('bosssteam');
vBossThud1 = new Sound();
vBossThud1.attachSound('bossthud1');
vBossThud2 = new Sound();
vBossThud2.attachSound('bossthud2');
vBossCircuit = new Sound();
vBossCircuit.attachSound('bosscircuit');
vLaugh = new Sound();
vLaugh.attachSound('laugh');
vRobotDie = new Sound();
vRobotDie.attachSound('robot-die');
vRobotLaugh1 = new Sound();
vRobotLaugh1.attachSound('robot-laugh1');
vRobotLaugh2 = new Sound();
vRobotLaugh2.attachSound('robot-laugh2');
vRobotOuch = new Sound();
vRobotOuch.attachSound('robot-ouch');
vCareful = new Sound();
vCareful.attachSound('careful');
vWatchit = new Sound();
vWatchit.attachSound('watchit');
vWhoops = new Sound();
vWhoops.attachSound('whoops');
vPerfect = new Sound();
vPerfect.attachSound('perfect');
vSelect = new Sound();
vSelect.attachSound('select');
vSelect2 = new Sound();
vSelect2.attachSound('select2');
vLose = new Sound();
vLose.attachSound('lose');
vStart1 = new Sound();
vStart1.attachSound('start1');
vStart2 = new Sound();
vStart2.attachSound('start2');
vDropCannon = new Sound();
vDropCannon.attachSound('dropcannon');
vReady = new Sound();
vReady.attachSound('ready');
vSet = new Sound();
vSet.attachSound('set');
vDrop = new Sound();
vDrop.attachSound('drop');
vAlarm = new Sound();
vAlarm.attachSound('alarm');
vMud = new Sound();
vMud.attachSound('mud');
vTick1 = new Sound();
vTick1.attachSound('tick1');
vTick2 = new Sound();
vTick2.attachSound('tick2');
vDropper1 = new Sound();
vDropper1.attachSound('factory-dropper-1');
vDropper2 = new Sound();
vDropper2.attachSound('factory-dropper-2');
vDropper3 = new Sound();
vDropper3.attachSound('factory-dropper-3');
mE1.vExp1 = new Sound(mE1);
mE1.vExp1.attachSound('explosion1');
mE2.vExp2 = new Sound(mE2);
mE2.vExp2.attachSound('explosion2');
mE3.vExp3 = new Sound(mE3);
mE3.vExp3.attachSound('explosion3');
vExplosion1 = mE1.vExp1;
vExplosion2 = mE2.vExp2;
vExplosion3 = mE3.vExp3;
vExplosion4 = mE3.vExp3;
mExp.vGunBreak1 = new Sound(mExp);
mExp.vGunBreak1.attachSound('factory-gunbreak-1');
mExp.vGunBreak2 = new Sound(mExp);
mExp.vGunBreak2.attachSound('factory-gunbreak-2');
mExp.vGunBreak3 = new Sound(mExp);
mExp.vGunBreak3.attachSound('factory-gunbreak-3');
vGunBreak1 = mExp.vGunBreak1;
vGunBreak2 = mExp.vGunBreak2;
vGunBreak3 = mExp.vGunBreak3;
vButton1 = new Sound();
vButton1.attachSound('factory-button-1');
vButton2 = new Sound();
vButton2.attachSound('factory-button-2');
vButton3 = new Sound();
vButton3.attachSound('factory-button-3');
vFactoryTone1 = new Sound();
vFactoryTone1.attachSound('factory-tone-1');
vFactoryTone2 = new Sound();
vFactoryTone2.attachSound('factory-tone-2');
vLaser1 = new Sound();
vLaser1.attachSound('laser1');
vLaser2 = new Sound();
vLaser2.attachSound('laser2');
vLaser3 = new Sound();
vLaser3.attachSound('laser3');
vBigLaser1 = new Sound();
vBigLaser1.attachSound('biglaser1');
vBigLaser2 = new Sound();
vBigLaser2.attachSound('biglaser2');
vHitBug0 = new Sound();
vHitBug0.attachSound('HitBug0');
vSplat1 = new Sound();
vSplat1.attachSound('splat1');
vSplat2 = new Sound();
vSplat2.attachSound('splat2');
vSplat3 = new Sound();
vSplat3.attachSound('splat3');
vHead = new Sound();
vHead.attachSound('head');
vOof = new Sound();
vOof.attachSound('oof');
vBox0 = new Sound();
vBox0.attachSound('box0');
vBox1 = new Sound();
vBox1.attachSound('box1');
vBox2 = new Sound();
vBox2.attachSound('box2');
vReview = new Sound();
vReview.attachSound('review');
mShards.aShards = new Array(5);
mShards.aShards[0] = new Sound(mShards);
mShards.aShards[0].attachSound('shard0');
mShards.aShards[1] = new Sound(mShards);
mShards.aShards[1].attachSound('shard1');
mShards.aShards[2] = new Sound(mShards);
mShards.aShards[2].attachSound('shard2');
mShards.aShards[3] = new Sound(mShards);
mShards.aShards[3].attachSound('shard3');
mShards.aShards[4] = new Sound(mShards);
mShards.aShards[4].attachSound('shard5');
vAngry0 = new Sound();
vAngry0.attachSound('angry0');
vAngry1 = new Sound();
vAngry1.attachSound('angry1');
vAngry2 = new Sound();
vAngry2.attachSound('angry2');
aAngry = new Array(3);
aAngry[0] = vAngry0;
aAngry[1] = vAngry1;
aAngry[2] = vAngry2;
aBattleBG = new Array(16);
aBattleBG[1] = 3;
aBattleBG[2] = 2;
aBattleBG[3] = 4;
aBattleBG[4] = 1;
aBattleBG[5] = 8;
aBattleBG[6] = 7;
aBattleBG[7] = 6;
aBattleBG[8] = 5;
aBattleBG[9] = 12;
aBattleBG[10] = 10;
aBattleBG[11] = 9;
aBattleBG[12] = 11;
aBattleBG[13] = 14;
aBattleBG[14] = 13;
aBattleBG[15] = 15;
aCity = new Array(16);
aCity[1] = new Sound();
aCity[1].attachSound('miami');
aCity[2] = new Sound();
aCity[2].attachSound('atlanta');
aCity[3] = new Sound();
aCity[3].attachSound('charlotte');
aCity[4] = new Sound();
aCity[4].attachSound('philly');
aCity[5] = new Sound();
aCity[5].attachSound('detroit');
aCity[6] = new Sound();
aCity[6].attachSound('chicago');
aCity[7] = new Sound();
aCity[7].attachSound('tulsa');
aCity[8] = new Sound();
aCity[8].attachSound('austin');
aCity[9] = new Sound();
aCity[9].attachSound('santafe');
aCity[10] = new Sound();
aCity[10].attachSound('denver');
aCity[11] = new Sound();
aCity[11].attachSound('bismarck');
aCity[12] = new Sound();
aCity[12].attachSound('boise');
aCity[13] = new Sound();
aCity[13].attachSound('sandiego');
aCity[14] = new Sound();
aCity[14].attachSound('reno');
aCity[15] = new Sound();
aCity[15].attachSound('seattle');
mBuzz.vBuzz = new Sound(mBuzz);
mBuzz.vBuzz.attachSound('buzz');
mMusic.vFactoryAmbient = new Sound(mMusic);
mMusic.vFactoryAmbient.attachSound('factory-ambient');
mMusic.vFactoryMusic = new Sound(mMusic);
mMusic.vFactoryMusic.attachSound('301590');
mMusic.vFactoryMusic2 = new Sound(mMusic);
mMusic.vFactoryMusic2.attachSound('996269');
mMusic.vGonnaDrop = new Sound(mMusic);
mMusic.vGonnaDrop.attachSound('993074');
mMusic.vDeliver = new Sound(mMusic);
mMusic.vDeliver.attachSound('627411');
mMusic.vWin = new Sound(mMusic);
mMusic.vWin.attachSound('896083');
mMusic.vPreBattle = new Sound(mMusic);
mMusic.vPreBattle.attachSound('984437');
mMusic.vBattle = new Sound(mMusic);
mMusic.vBattle.attachSound('110581');
mGunscape.vGunscape = new Sound(mGunscape);
mGunscape.vGunscape.attachSound('gunscape');
_global.nTotalLevels = 15;
if (bBattleTest) {
_global.nCurrentLevel = 7;
_global.nDifficulty = 0.8;
f_GenerateArray(20, 20, 20);
f_TestCarArmy();
gotoAndStop('battle');
} else {
if (bDeliverTest) {
gotoAndStop('deliver');
} else {
if (bFactoryTest) {
_global.nCurrentLevel = 6;
gotoAndStop('factory');
} else {
if (bMapTest) {
oData = new Object();
oData.nLevel = _global.nTotalLevels + 1;
_global.nCurrentLevel = oData.nLevel;
gotoAndStop('map');
} else {
mMusic.vGonnaDrop.setVolume(100);
mMusic.vGonnaDrop.start(0, 9999);
gotoAndStop('title');
}
}
}
}
}
function f_Medal(nMedal) {
if (nMedal == nNextMedal) {
nNextMedal = 0;
}
if (!aMedals[nMedal]) {
aMedals[nMedal] = true;
var v2;
if (nMedal == 1) {
v2 = 'Detroit is Saved';
} else {
if (nMedal == 2) {
v2 = 'Denver is Saved';
} else {
if (nMedal == 3) {
v2 = 'America is Saved';
} else {
if (nMedal == 4) {
v2 = 'Perfect 1';
} else {
if (nMedal == 5) {
v2 = 'Perfect 2';
} else {
if (nMedal == 6) {
v2 = 'Perfect 3';
} else {
if (nMedal == 7) {
v2 = 'Perfect Game';
}
}
}
}
}
}
}
mGeneral.mMedal.gotoAndPlay(2);
mGeneral.mMedal.mBody.gotoAndStop(nMedal);
com.newgrounds.API.unlockMedal(v2);
}
}
function f_Mouth(mC) {
if (bTalking) {
mC.gotoAndStop(2);
} else {
mC.gotoAndStop(1);
}
}
function f_PressStart() {
mMusic.vGonnaDrop.stop();
if (!mTitle.bStart) {
mTitle.bStart = true;
if (oData.nLevel > 1) {
nFaderAction = 4;
mFader.gotoAndPlay('fadeout');
} else {
nFaderAction = 1;
mFader.gotoAndPlay('fadeout');
}
}
}
function f_DropperSound() {
var v1 = random(3);
if (v1 == 0) {
vDropper1.start(0, 0);
} else {
if (v1 == 1) {
vDropper2.start(0, 0);
} else {
vDropper3.start(0, 0);
}
}
}
function f_PostBezos() {
bIntro = true;
bIntroEnd = false;
bIntroAnim = false;
bFaceMelt = false;
bBoss = false;
bQuads = true;
mFactory.mButtons.gotoAndPlay('open');
}
function f_StopMusic() {
mMusic.vFactoryMusic.stop();
mMusic.vFactoryMusic2.stop();
mMusic.vGonnaDrop.stop();
mMusic.vFactoryAmbient.stop();
}
function f_FactoryInit() {
mGeneral.gotoAndStop(1);
nFloorY = mFactory.mFloor._y;
bMouseDown = false;
bFactory = true;
Mouse.addListener(mFactory);
mFactory.onMouseDown = function () {
bMouseDown = true;
};
mFactory.onMouseUp = function () {
bMouseDown = false;
};
bTick1 = false;
bBoss = false;
bBossDropInit = false;
bBossDrop = false;
bFaceMelt = false;
bQuads = false;
nShakeTimer = 0;
aBoss = undefined;
bWait = false;
if (_global.nCurrentLevel > 2 && _global.nCurrentLevel != 12) {
bInvasionLevel = true;
if (_global.nCurrentLevel == 3) {
bBugPrompt = true;
}
} else {
bInvasionLevel = false;
}
nNextConvo = 0;
nDecoySpawns = 0;
nDings = 0;
nFails = 0;
bTalk = true;
nNextConvo = 200 + _global.nCurrentLevel;
if (bTalk) {
mMusic.vFactoryAmbient.start(0, 9999);
nNext = 200;
mFactory.mButtons.gotoAndStop('closed');
} else {
mFactory.mButtons.gotoAndPlay('open');
}
nCars = 4;
aCars = new Array(nCars);
aCars[0] = mFactory.mCar0;
aCars[1] = mFactory.mCar1;
aCars[2] = mFactory.mCar2;
aCars[3] = mFactory.mCar3;
var v2 = 0;
while (v2 < nCars) {
aCars[v2].gotoAndStop('blank');
++v2;
}
nGuns = 6;
aGuns = new Array(nGuns);
aGuns[0] = mFactory.mGun0;
aGuns[1] = mFactory.mGun1;
aGuns[2] = mFactory.mGun2;
aGuns[3] = mFactory.mGun3;
aGuns[4] = mFactory.mGun4;
aGuns[5] = mFactory.mGun5;
nGunX = mFactory.mGunXY._x;
nGunY = mFactory.mGunXY._y;
v2 = 0;
while (v2 < nGuns) {
aGuns[v2].gotoAndStop('blank');
++v2;
}
nTires = 4;
aTires = new Array(nTires);
aTires[0] = mFactory.mTire0;
aTires[1] = mFactory.mTire1;
aTires[2] = mFactory.mTire2;
aTires[3] = mFactory.mTire3;
v2 = 0;
while (v2 < nTires) {
aTires[v2].gotoAndStop('blank');
++v2;
}
nBooms = 3;
aBooms = new Array(nBooms);
aBooms[0] = mFactory.mBoom0;
aBooms[1] = mFactory.mBoom1;
aBooms[2] = mFactory.mBoom2;
nBugs = 4;
aBugs = new Array(nBugs);
aBugs[0] = mFactory.mBug0;
aBugs[1] = mFactory.mBug1;
aBugs[2] = mFactory.mBug2;
aBugs[3] = mFactory.mBug3;
v2 = 0;
while (v2 < nBugs) {
aBugs[v2].gotoAndStop('blank');
++v2;
}
bTutorial = false;
bInvasion = false;
nInvasionCount = 0;
nBugsTotal = 8;
nBugsMax = 3;
nBugDelay = 30;
nBugHPMax = 1;
_global.nFactoryCarHealth = 60;
if (_global.nCurrentLevel == 1) {
bTutorial = true;
f_GenerateArray(2, 2, 2);
_global.nSpeedMax = 6;
_global.nCarGap = 120;
_global.nDifficulty = 0.9;
} else {
if (_global.nCurrentLevel == 2) {
f_GenerateArray(3, 3, 3);
_global.nSpeedMax = 6;
_global.nCarGap = 140;
_global.nDifficulty = 0.6;
} else {
if (_global.nCurrentLevel == 3) {
f_GenerateArray(8, 8, 8);
_global.nSpeedMax = 6.5;
_global.nCarGap = 120;
_global.nDifficulty = 0.7;
} else {
if (_global.nCurrentLevel == 4) {
f_GenerateArray(9, 9, 9);
_global.nSpeedMax = 7;
_global.nCarGap = 100;
_global.nDifficulty = 0.7;
} else {
if (_global.nCurrentLevel == 5) {
f_GenerateArray(10, 10, 10);
_global.nSpeedMax = 7.5;
_global.nCarGap = 100;
_global.nDifficulty = 0.75;
} else {
if (_global.nCurrentLevel == 6) {
f_GenerateArray(11, 11, 11);
_global.nSpeedMax = 8;
_global.nCarGap = 90;
_global.nDifficulty = 0.75;
nBugHPMax = 2;
} else {
if (_global.nCurrentLevel == 7) {
f_GenerateArray(12, 12, 12);
_global.nSpeedMax = 8.5;
_global.nCarGap = 80;
_global.nDifficulty = 0.8;
nBugHPMax = 2;
} else {
if (_global.nCurrentLevel == 8) {
f_GenerateArray(13, 13, 13);
_global.nSpeedMax = 8.699999999999999;
_global.nCarGap = 70;
_global.nDifficulty = 0.8100000000000001;
nBugHPMax = 2;
} else {
if (_global.nCurrentLevel == 9) {
f_GenerateArray(14, 14, 14);
_global.nSpeedMax = 9;
_global.nCarGap = 70;
_global.nDifficulty = 0.82;
nBugHPMax = 2;
} else {
if (_global.nCurrentLevel == 10) {
f_GenerateArray(15, 15, 15);
_global.nSpeedMax = 9.1;
_global.nCarGap = 70;
_global.nDifficulty = 0.83;
nBugHPMax = 3;
} else {
if (_global.nCurrentLevel == 11) {
f_GenerateArray(16, 16, 16);
_global.nSpeedMax = 9.199999999999999;
_global.nCarGap = 70;
_global.nDifficulty = 0.84;
nBugHPMax = 3;
} else {
if (_global.nCurrentLevel == 12) {
f_GenerateArray(40, 0, 0);
_global.nSpeedMax = 12;
_global.nCarGap = 25;
_global.nDifficulty = 0.9;
nBugHPMax = 3;
} else {
if (_global.nCurrentLevel == 13) {
f_GenerateArray(18, 18, 18);
_global.nSpeedMax = 9.4;
_global.nCarGap = 70;
_global.nDifficulty = 0.86;
nBugHPMax = 3;
} else {
if (_global.nCurrentLevel == 14) {
f_GenerateArray(19, 19, 19);
_global.nSpeedMax = 9.5;
_global.nCarGap = 70;
_global.nDifficulty = 0.87;
nBugHPMax = 3;
} else {
if (_global.nCurrentLevel == 15) {
f_GenerateArray(0, 20, 20);
_global.nSpeedMax = 12;
_global.nCarGap = 60;
_global.nDifficulty = 0.8;
nBugHPMax = 4;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
_global.nSpeed = _global.nSpeedMax;
nTimer = _global.nCarGap;
nCarNum = 0;
bIntro = true;
bIntroAnim = false;
bIntroEnd = false;
nCounter = 0;
_global.nSpeedBoost = (_global.nSpeedMax - _global.nSpeed) / int(_global.nSize * 0.75);
mFader.gotoAndPlay('fadein');
}
function f_GenerateArray(nSmall, nMed, nLarge) {
var v5 = nSmall + nMed + nLarge;
nQuads = 0;
if (_global.nCurrentLevel == 15) {
nQuads = 10;
nStock1 = 9999;
nStock2 = 9999;
nStock3 = 9999;
} else {
nStock1 = nSmall;
nStock2 = nMed;
nStock3 = nLarge;
}
_global.nPowMax = _global.nPowSmall * nSmall + _global.nPowMed * nMed + _global.nPowLarge * nLarge + _global.nPowSmall * nQuads;
_global.nPowCar = 0;
if (nStock1 < 10) {
mFactory.mButtons.tStock1.text = 'x' + nStock1;
} else {
mFactory.mButtons.tStock1.text = nStock1;
}
if (nStock2 < 10) {
mFactory.mButtons.tStock2.text = 'x' + nStock2;
} else {
mFactory.mButtons.tStock2.text = nStock2;
}
if (nStock3 < 10) {
mFactory.mButtons.tStock3.text = 'x' + nStock3;
} else {
mFactory.mButtons.tStock3.text = nStock3;
}
aSource = new Array(v5);
var v3 = 0;
while (v3 < nSmall) {
aSource[v3] = 1;
++v3;
}
v3 = nSmall;
while (v3 < nSmall + nMed) {
aSource[v3] = 2;
++v3;
}
v3 = nSmall + nMed;
while (v3 < v5) {
aSource[v3] = 3;
++v3;
}
aCarOrder = new Array(v5 + nQuads);
aCarOrder.splice(0);
if (bTutorial) {
aCarOrder.push(1);
aCarOrder.push(2);
aCarOrder.push(3);
aCarOrder.push(1);
aCarOrder.push(2);
aCarOrder.push(3);
} else {
v3 = v5 - 1;
while (v3 >= 0) {
var v4 = random(aSource.length);
aCarOrder.push(aSource[v4]);
aSource.splice(v4, 1);
--v3;
}
v3 = 0;
while (v3 < nQuads) {
aCarOrder.push(1);
++v3;
}
}
aCarArmy = new Array(v5 + nQuads);
aCarArmy.splice(0);
aDecoyArmy = new Array(100);
aDecoyArmy.splice(0);
aRobotArmy = new Array(100);
aRobotArmy.splice(0);
_global.nSize = v5 + nQuads;
nArmySize = v5 + nQuads;
}
function f_GenerateEnemyArray(nPercent) {
var v7 = aDecoyArmy.length;
var v5 = aRobotArmy.length;
var v10 = int(_global.nSize * nPercent) + v7 + v5;
aEnemyArmy = new Array(v10);
if (_global.nPowCar == _global.nPowMax && v7 == 0 && v5 == 0) {
oData.aPerfect[_global.nCurrentLevel] = true;
nNextMedal = 0;
if (_global.nCurrentLevel > 10) {
f_Medal(6);
} else {
if (_global.nCurrentLevel > 5) {
f_Medal(5);
} else {
if (_global.nCurrentLevel > 1) {
f_Medal(4);
}
}
}
var v11 = true;
var v4 = 1;
while (v4 < 16) {
if (!oData.aPerfect[v4]) {
v11 = false;
break;
}
++v4;
}
if (v11) {
nNextMedal = 7;
}
}
v4 = 0;
while (v4 < v10) {
var v2 = random(3) + 1;
if (_global.nCurrentLevel == 12) {
v2 = 1;
}
var v3 = v2;
if (v7 > 0) {
v2 = 5;
v3 = 2;
--v7;
} else {
if (v5 > 0) {
v2 = 6;
v3 = aRobotArmy[v5 - 1].nGun;
--v5;
}
}
var v6 = {'nCar': v2, 'nGun': v3};
aEnemyArmy[v4] = v6;
++v4;
}
_global.nPowEnemy = _global.nPowMax * nPercent;
}
function f_RemoveGun(mGun) {
mGun.bActive = false;
mGun.gotoAndStop('blank');
}
function f_AddGun(nType) {
var v5 = true;
var v4 = 0;
while (v4 < nGuns) {
if (!aGuns[v4].bActive) {
v5 = false;
break;
}
++v4;
}
v4 = 0;
while (v4 < nGuns) {
var v2 = aGuns[v4];
if (!v2.bActive || v5 && !v2.bAlive) {
bOK = false;
if (nType == 1 && nStock1 > 0) {
if (_global.nCurrentLevel != 15) {
--nStock1;
}
if (nStock1 < 10) {
mFactory.mButtons.tStock1.text = 'x' + nStock1;
} else {
mFactory.mButtons.tStock1.text = nStock1;
}
bOK = true;
} else {
if (nType == 2 && nStock2 > 0) {
if (_global.nCurrentLevel != 15) {
--nStock2;
}
if (nStock2 < 10) {
mFactory.mButtons.tStock2.text = 'x' + nStock2;
} else {
mFactory.mButtons.tStock2.text = nStock2;
}
bOK = true;
} else {
if (nType == 3 && nStock3 > 0) {
if (_global.nCurrentLevel != 15) {
--nStock3;
}
if (nStock3 < 10) {
mFactory.mButtons.tStock3.text = 'x' + nStock3;
} else {
mFactory.mButtons.tStock3.text = nStock3;
}
bOK = true;
}
}
}
if (!bOK) {
return false;
} else {
v2.bActive = true;
v2.bAlive = true;
v2.bDinged = false;
v2.nType = nType;
v2.gotoAndStop(nType);
if (bBossDrop) {
v2.nSpeedY = 10;
} else {
if (_global.nCurrentLevel == 15) {
v2.nSpeedY = _global.nTV;
} else {
if (nSpeedMax >= 9) {
v2.nSpeedY = 10;
} else {
v2.nSpeedY = 5;
}
}
}
v2._x = nGunX;
v2._y = nGunY;
v2.nRotation = 0;
v2.mBody._rotation = 0;
return v2;
}
}
++v4;
}
}
function f_AddCar(nNum) {
var v2 = 0;
while (v2 < nCars) {
var v1 = aCars[v2];
if (!v1.bActive) {
v1.bActive = true;
v1.bAlive = true;
v1.gotoAndStop('blank');
if (nNum == -1) {
v1.nType = 5;
} else {
if (nNum == -2) {
v1.nType = 6;
} else {
v1.nType = aCarOrder[nNum];
}
}
if (v1.nType == 1) {
v1.gotoAndStop('m1');
} else {
if (v1.nType == 2) {
v1.gotoAndStop('m2');
} else {
if (v1.nType == 3) {
v1.gotoAndStop('m3');
} else {
if (v1.nType == 6) {
v1.gotoAndStop('mRobot');
v1.mCar.mGun.gotoAndStop('blank');
} else {
v1.nDecoyType = 2 + random(2);
if (v1.nDecoyType == 2) {
v1.gotoAndStop('m2');
} else {
v1.gotoAndStop('m3');
}
v1.mCar.mBody.gotoAndStop(3);
v1.mCar.mTireBG1.gotoAndStop(3);
}
}
}
}
v1._x = -v1.mFront._x - mFactory._x;
v1.nSpeedY = 0;
v1.nDefaultY = v1.mCar.mBody._y;
v1.nGun = -1;
v1.mBug1.mBug = undefined;
v1.mBug2.mBug = undefined;
v1.mBug3.mBug = undefined;
v1.mCar.mBody.mGun.gotoAndStop('blank');
if (v1 == mInvadeCar) {
mInvadeCar = undefined;
}
v1.bBump = false;
return v1;
}
++v2;
}
}
function f_RemoveCar(mCar) {
if (mCar == mInvadeCar) {
mInvadeCar = undefined;
} else {
if (mCar.nType == 6) {
var v2 = {'nCar': mCar.nType, 'nGun': mCar.nGun};
aRobotArmy.push(v2);
}
}
mCar.bActive = false;
mCar.bAlive = false;
}
function f_NewTire(nType, nX, nY, nSpeedX, nSpeedY) {
var v2 = 0;
while (v2 < nTires) {
var v1 = aTires[v2];
if (!v1.bActive) {
v1.bActive = true;
v1.gotoAndStop('blank');
v1.gotoAndStop(nType);
v1._x = nX;
v1._y = nY;
v1.nSpeedX = nSpeedX;
v1.nSpeedY = nSpeedY;
return v1;
}
++v2;
}
}
function f_NewBoom(nX, nY) {
var v2 = 0;
while (v2 < nBooms) {
var v1 = aBooms[v2];
if (!v1.bActive) {
v1.bActive = true;
v1.gotoAndPlay(2);
v1._x = nX;
v1._y = nY;
return v1;
}
++v2;
}
}
function f_FactoryCarDie(mCar) {
if (mCar.nType == 1) {
vExplosion4.start(0, 0);
} else {
if (mCar.nType == 2) {
vExplosion1.start(0, 0);
} else {
if (mCar.nType == 3) {
vExplosion2.start(0, 0);
} else {
if (mCar.nType == 6) {
vExplosion4.start(0, 0);
vRobotDie.start(0, 0);
}
}
}
}
mCar.bActive = false;
mCar.bAlive = false;
mCar.gotoAndStop('die');
f_NewBoom(mCar._x, nFloorY - 120);
if (mCar.nType == 6) {
f_NewTire(mCar.nType, mCar._x, nFloorY - 100, 10 + random(4), -(5 + random(15)));
} else {
f_NewTire(mCar.nType, mCar._x - 75, nFloorY, -(5 + random(5)), -(5 + random(15)));
f_NewTire(mCar.nType, mCar._x + 75, nFloorY, 5 + random(5), -(5 + random(15)));
}
}
function f_Factory() {
if (bFading) {
return undefined;
} else {
if (bTalk) {
if (nNextConvo > 0) {
textbox = '';
mGeneral.gotoAndStop(2);
f_Convo(nNextConvo);
nNextConvo = 0;
}
f_TalkSystem();
return undefined;
} else {
if (bIntro) {
if (!bIntroAnim) {
bIntroAnim = true;
mFactory.mReady.gotoAndPlay(2);
}
if (bIntroEnd) {
if (_global.nCurrentLevel == 15) {
mMusic.vGonnaDrop.setVolume(70);
mMusic.vGonnaDrop.start(0, 9999);
} else {
if (_global.nCurrentLevel >= 12) {
mMusic.vFactoryMusic2.setVolume(90);
mMusic.vFactoryMusic2.start(0, 9999);
} else {
mMusic.vFactoryMusic.setVolume(50);
mMusic.vFactoryMusic.start(0, 9999);
}
}
mFactory.mLights.gotoAndStop(4);
bIntro = false;
}
return undefined;
} else {
if (bBugWait) {
var v17 = 0;
while (v17 < nBugs) {
var v24 = aBugs[v17];
if (v24.bActive && v24.bAlive) {
if (v24.nInvTimer > 0) {
--v24.nInvTimer;
}
}
++v17;
}
f_Lasers(mFactory);
return undefined;
} else {
if (bBoss) {
++nInvasionTimer;
if (nInvasionTimer == 90) {
mBoss = mFactory.mBoss;
mBoss.bInit = true;
mBoss.gotoAndStop(2);
nFactoryY = mFactory._y;
nFactoryX = mFactory._x;
bShakeUp = false;
} else {
if (nInvasionTimer == 91) {
mBoss.mBody.mArmL.mBody.gotoAndStop(2);
mBoss.mBody.mArmR.mBody.gotoAndStop(2);
} else {
if (nInvasionTimer == 200) {
aBoss = new Array(3);
aBoss[0] = mBoss.mBody.mFootL.mXY;
aBoss[0].bActive = true;
aBoss[0].bAlive = true;
aBoss[0].nInvTimer = 0;
aBoss[0].nHPMax = 60;
aBoss[0].nHP = aBoss[0].nHPMax;
aBoss[1] = mBoss.mBody.mFootR.mXY;
aBoss[1].bActive = true;
aBoss[1].bAlive = true;
aBoss[1].nInvTimer = 0;
aBoss[1].nHPMax = 60;
aBoss[1].nHP = aBoss[1].nHPMax;
aBoss[2] = mBoss.mBody.mArmL.mBody.mXY;
aBoss[2].bActive = false;
aBoss[2].bAlive = false;
aBoss[2].nInvTimer = 0;
aBoss[2].nHPMax = 15;
aBoss[2].nHP = aBoss[2].nHPMax;
mFactory.mBossPrompt.mTarget = mBoss.mBody.mFootL.mXY;
mFactory.mBossPrompt.bActive = true;
mFactory.mBossPrompt.gotoAndStop(2);
} else {
if (nInvasionTimer == 220) {
mFactory.mBossPrompt.mTarget = mBoss.mBody.mFootR.mXY;
} else {
if (nInvasionTimer == 240) {
mFactory.mBossPrompt.mTarget = mBoss.mBody.mFootL.mXY;
} else {
if (nInvasionTimer == 260) {
mFactory.mBossPrompt.mTarget = mBoss.mBody.mFootR.mXY;
} else {
if (nInvasionTimer == 280) {
mFactory.mBossPrompt.mTarget = mBoss.mBody.mFootL.mXY;
} else {
if (nInvasionTimer == 300) {
mFactory.mBossPrompt.mTarget = mBoss.mBody.mFootR.mXY;
} else {
if (nInvasionTimer == 320) {
mFactory.mBossPrompt.bActive = false;
mFactory.mBossPrompt.gotoAndStop(1);
}
}
}
}
}
}
}
}
}
if (mFactory.mBossPrompt.bActive) {
var v34 = {'x': 0, 'y': 0};
mFactory.mBossPrompt.mTarget.localToGlobal(v34);
mFactory.globalToLocal(v34);
mFactory.mBossPrompt._x = v34.x;
mFactory.mBossPrompt._y = v34.y;
}
for (var v17 in aBoss) {
var v24 = aBoss[v17];
if (v24.nInvTimer > 0) {
--v24.nInvTimer;
}
}
if (bBossDropInit) {
bBossDropInit = false;
bBossDrop = true;
mFactory.mLights.gotoAndStop(4);
mFactory.mButtons.gotoAndPlay('open');
nBossY = mBoss._y + mBoss.mBody._y + mBoss.mBody.mGunY._y;
mBoss.nHealthMax = 20;
mBoss.nHealth = mBoss.nHealthMax;
bFaceMelt = false;
}
if (bBossDrop) {
v17 = 0;
while (v17 < nGuns) {
var v2 = aGuns[v17];
if (v2.bActive && v2.bAlive) {
v2.nSpeedY += _global.nGravity;
if (v2.nSpeedY > _global.nTV) {
v2.nSpeedY = _global.nTV;
}
v2._y += v2.nSpeedY;
if (v2._y >= nBossY) {
if (v2.bAlive) {
v2.bAlive = false;
if (v2.nType == 1) {
vGunBreak1.stop();
vGunBreak1.start(0, 0);
} else {
if (v2.nType == 2) {
vGunBreak2.stop();
vGunBreak2.start(0, 0);
} else {
if (v2.nType == 3) {
vGunBreak3.stop();
vGunBreak3.start(0, 0);
}
}
}
v2._y = nBossY;
v2.gotoAndStop('die');
--mBoss.nHealth;
if (mBoss.nHealth > 0) {
var v13 = 100 - int((mBoss.nHealth / mBoss.nHealthMax) * 100);
if (v13 < 1) {
v13 = 1;
}
if (v13 > 100) {
v13 = 100;
}
mFactory.mBossHealth._x = v2._x;
mFactory.mBossHealth._y = v2._y - 30;
mFactory.mBossHealth.gotoAndPlay(2);
mFactory.mBossHealth.mBar.gotoAndStop(v13);
mBoss.mBody.mHead.gotoAndPlay(2);
} else {
if (!bFaceMelt) {
mFactory.mBossHealth.gotoAndStop(1);
mBoss.mBody.gotoAndStop('open');
mFactory.mButtons.gotoAndPlay('close');
bFaceMelt = true;
mBoss.nHPMax = 180;
mBoss.nHP = mBoss.nHPMax;
mBoss.bAlive = true;
nMeltTimer = 0;
}
}
}
}
}
++v17;
}
if (bFaceMelt) {
++nMeltTimer;
if (nMeltTimer > 120) {
f_Lasers(mFactory);
}
}
} else {
f_Lasers(mFactory);
}
v17 = 0;
while (v17 < nTires) {
var v4 = aTires[v17];
if (v4.bActive) {
v4._x += v4.nSpeedX;
v4._y += v4.nSpeedY;
if (v4._y >= nFloorY) {
v4._y = nFloorY;
if (v4.nSpeedY > 0) {
v4.nSpeedY *= -0.9;
}
}
v4.nSpeedY += _global.nGravity;
v4.mBody._rotation += v4.nSpeedX;
var v26 = v4._x + mFactory._x;
if (v26 > _global.nScreenWidth + 70 || v26 < -70) {
v4.bActive = false;
}
}
++v17;
}
if (nShakeTimer > 0) {
--nShakeTimer;
if (nShakeTimer == 0) {
mFactory._y = nFactoryY;
mFactory._x = nFactoryX;
} else {
if (nShakeTimer % 2 == 0) {
if (bShakeUp) {
bShakeUp = false;
mFactory._y = nFactoryY + nShakeTimer / 6;
mFactory._x = nFactoryX + nShakeTimer / 6;
} else {
bShakeUp = true;
mFactory._y = nFactoryY - nShakeTimer / 6;
mFactory._x = nFactoryX - nShakeTimer / 6;
}
}
}
}
return undefined;
}
}
}
}
}
if (!bInvasion && !bWait && nTimer % _global.nCarGap == 0) {
if (nCarNum < aCarOrder.length && (nStock1 > 0 || nStock2 > 0 || nStock3 > 0)) {
var v36 = false;
var v35 = false;
if (bBossTest) {
bBossTest = false;
bBoss = true;
nInvasionTimer = 0;
vAlarm.start(0, 4);
mFactory.mLights.gotoAndStop('alarm');
mFactory.mAlarm.gotoAndPlay(2);
mFactory.mWarning.gotoAndPlay(2);
mFactory.mButtons.gotoAndPlay('close');
} else {
if (_global.nCurrentLevel == 15 && random(6) == 0) {
v35 = true;
} else {
if (_global.nCurrentLevel >= 5 && _global.nCurrentLevel != 12) {
if (nCarNum > 6 && nDecoySpawns == 0 || random(18 - _global.nCurrentLevel) == 0) {
v36 = true;
++nDecoySpawns;
}
}
}
if (bQuads) {
f_AddCar(nCarNum);
++nCarNum;
} else {
if (v35) {
f_AddCar(-2);
} else {
if (v36) {
f_AddCar(-1);
} else {
if (_global.nCurrentLevel == 15 && aCarOrder[nCarNum] == 1) {
bBossTest = true;
} else {
f_AddCar(nCarNum);
++nCarNum;
}
}
}
}
}
}
}
var v30 = true;
if (bWait) {
v30 = false;
} else {
v17 = 0;
while (v17 < nCars) {
var v16 = aCars[v17];
if (v16.bActive) {
v30 = false;
v16._x += _global.nSpeed;
v16.mCar.mTire1._rotation += _global.nSpeed;
v16.mCar.mTire2._rotation += _global.nSpeed;
if (v16.mBack._x + v16._x + mFactory._x > _global.nScreenWidth) {
f_RemoveCar(v16);
} else {
if (v16.nSpeedY != 0) {
v16.mCar.mBody._y += v16.nSpeedY;
var v28 = 0.01 * (v16.nDefaultY - v16.mCar.mBody._y) - 0.1 * v16.nSpeedY;
v16.nSpeedY += v28;
}
}
if (v16._x >= nGunX && v16._x <= nGunX + _global.nSpeed * 1.5) {
if (bQuads && !v16.bBump) {
v16.bBump = true;
vMud.start(0, 0);
mBoss.mBody.mHead2.mCorpse.gotoAndPlay(2);
} else {
if (v16.nGun == -1) {
if (bTutorial || bInvasion) {
v16._x += nGunX - v16._x;
if (bInvasion) {
mInvadeCar = v16;
nInvasionTimer = nBugDelay - 1;
} else {
if (bTutorial) {
if (v16.nType == 1) {
if (nStock1 == 0) {
v16.nGun = -2;
} else {
mFactory.mButtons.mArrows.gotoAndStop(2);
}
} else {
if (v16.nType == 2) {
if (nStock2 == 0) {
v16.nGun = -2;
} else {
mFactory.mButtons.mArrows.gotoAndStop(3);
}
} else {
if (v16.nType == 3) {
if (nStock3 == 0) {
v16.nGun = -2;
} else {
mFactory.mButtons.mArrows.gotoAndStop(4);
}
}
}
}
}
}
if (v16.nGun == -1) {
bWait = true;
}
} else {
v16.nGun = -2;
}
}
}
}
if (bInvasionLevel && !bInvasion && v16._x - v16._width / 2 > nGunX && nCarNum % 10 == 0 && v16 != mInvadeCar && nInvasionCount != nCarNum) {
var v12 = false;
var v5;
var v6 = 0;
while (v6 < nCars) {
var v3 = aCars[v6];
if (v3.bActive && v3._x < nGunX) {
if (v3.nType != 5 && v3.nType != 6) {
v12 = true;
if (!v5 || v3._x > v5._x) {
v5 = v3;
}
} else {
if (!v5 || v3._x > v5._x) {
v5 = v3;
}
}
}
++v6;
}
if (v12) {
if (v5.nType == 5 || v5.nType == 6) {
v12 = false;
}
if (nStock1 == 0 && nStock2 == 0 && nStock3 == 0) {
v12 = false;
}
}
if (v12 && !bQuads) {
bInvasion = true;
nInvasionCount = nCarNum;
nBugsSpawned = 0;
mInvadeCar = undefined;
vAlarm.start(0, 4);
mFactory.mLights.gotoAndStop('alarm');
mFactory.mAlarm.gotoAndPlay(2);
mFactory.mWarning.gotoAndPlay(2);
mFactory.mButtons.gotoAndPlay('close');
}
}
}
++v17;
}
}
if (nStock1 <= 0 && nStock2 <= 0 && nStock3 <= 0 && bWait) {
var v33 = true;
v17 = 0;
while (v17 < nGuns) {
var v2 = aGuns[v17];
if (v2.bActive) {
v33 = false;
}
++v17;
}
if (v33) {
mFactory.mButtons.mArrows.gotoAndStop(1);
bWait = false;
bTutorial = false;
}
}
if (v30) {
if (nCarNum >= aCarOrder.length || nStock1 <= 0 && nStock2 <= 0 && nStock3 <= 0) {
v17 = 0;
while (v17 < nTires) {
v4 = aTires[v17];
if (v4.bActive) {
v30 = false;
}
++v17;
}
if (v30) {
mMusic.vFactoryMusic.stop();
mMusic.vGonnaDrop.stop();
gotoAndStop('battle');
return undefined;
}
}
}
v17 = 0;
while (v17 < nGuns) {
v2 = aGuns[v17];
if (v2.bActive && v2.bAlive) {
v2.nSpeedY += _global.nGravity;
if (v2.nSpeedY > _global.nTV) {
v2.nSpeedY = _global.nTV;
}
v2._y += v2.nSpeedY;
if (v2._y >= nFloorY) {
if (v2.bAlive) {
v2.bAlive = false;
if (v2.nType == 1) {
vGunBreak1.stop();
vGunBreak1.start(0, 0);
} else {
if (v2.nType == 2) {
vGunBreak2.stop();
vGunBreak2.start(0, 0);
} else {
if (v2.nType == 3) {
vGunBreak3.stop();
vGunBreak3.start(0, 0);
}
}
}
v2._y = nFloorY;
v2.gotoAndStop('die');
}
} else {
v6 = 0;
while (v6 < nCars) {
v16 = aCars[v6];
if (v16.bAlive) {
if (v2._y > v16._y + v16.mRoof._y) {
if (Math.abs(v2._x - v16._x) < v16._width / 2 + v2._width / 2) {
var v8 = 50;
if (v16.nType == 1) {
v8 = 65;
}
if (nSpeedMax >= 9) {
v8 += 10;
}
if (v2.nType > v16.nType || v16.nType == 6 && v2.nType == 3) {
f_FactoryCarDie(v16);
mFactory.mButtons.mArrows.gotoAndStop(1);
if (v16.nType != 6) {
++nFails;
if (nFails == 1) {
vWatchit.start(0, 0);
} else {
if (nFails == 3) {
vCareful.start(0, 0);
}
}
}
bWait = false;
} else {
if (Math.abs(v2._x - v16._x) < v8 && v2.nRotation == 0 && v16.nGun < 1) {
if (v2.nType > v16.nType) {
f_FactoryCarDie(v16);
mFactory.mButtons.mArrows.gotoAndStop(1);
++nFails;
if (nFails == 1) {
vWatchit.start(0, 0);
} else {
if (nFails == 3) {
vCareful.start(0, 0);
}
}
bWait = false;
} else {
if (Math.abs(v2._x - v16._x) < 3 && !bTutorial) {
mFactory.mPerfect.gotoAndPlay(2);
vPerfect.start(0, 0);
}
if (v16.nType == 1) {
var v7 = random(2);
if (v7 == 0) {
vFactorySmallEquip1.start(0, 0);
} else {
vFactorySmallEquip2.start(0, 0);
}
} else {
if (v16.nType == 2 || v16.nType == 3) {
var v7 = random(3);
if (v7 == 0) {
vFactoryEquip1.start(0, 0);
} else {
if (v7 == 1) {
vFactoryEquip2.start(0, 0);
} else {
vFactoryEquip3.start(0, 0);
}
}
} else {
if (v16.nType == 5) {
vLaugh.start(0, 0);
v16.gotoAndStop('mDecoy');
v16.nDefaultY = v16.mCar.mBody._y;
if (v16.nDecoyType == 2) {
v16.mCar.gotoAndStop('m2');
} else {
v16.mCar.gotoAndStop('m3');
}
} else {
if (v16.nType == 6) {
var v7 = random(2);
if (v7 == 0) {
vRobotLaugh1.start(0, 0);
} else {
vRobotLaugh2.start(0, 0);
}
v16.mCar.mGun.gotoAndStop(v2.nType);
v16.mCar.mGun.mBody.gotoAndStop(2);
}
}
}
}
v16.mCar.mBody.mGun.gotoAndStop(v2.nType);
v16.mCar.mBody.gotoAndStop(2);
v16.mCar.mBody.mGun.mBody.gotoAndStop(2);
v16.mCar.mTireBG1.gotoAndStop(2);
v16.mCar.mTireBG2.gotoAndStop(2);
if (v16.nType == 1) {
v16.mCar.mTireBG3.gotoAndStop(2);
v16.mCar.mTireBG4.gotoAndStop(2);
}
v16.mCar.mTire1.gotoAndStop(2);
v16.mCar.mTire2.gotoAndStop(2);
v16.nSpeedY = 4;
v16.nGun = v2.nType;
oCar = {'nCar': v16.nType, 'nGun': v2.nType};
if (v16.nType == 5) {
aDecoyArmy.push(oCar);
} else {
if (v16.nType != 6) {
aCarArmy.push(oCar);
if (v2.nType == 1) {
_global.nPowCar += _global.nPowSmall;
} else {
if (v2.nType == 2) {
_global.nPowCar += _global.nPowMed;
} else {
if (v2.nType == 3) {
_global.nPowCar += _global.nPowLarge;
}
}
}
}
}
f_RemoveGun(v2);
mFactory.mButtons.mArrows.gotoAndStop(1);
bWait = false;
}
} else {
if (!v2.bDinged) {
v2.bDinged = true;
var v7 = random(2);
if (v2.nType == 1) {
if (v7 == 0) {
vFactorySmallMiss1.start(0, 0);
} else {
vFactorySmallMiss2.start(0, 0);
}
} else {
if (v2.nType == 2) {
if (v7 == 0) {
vFactoryMedMiss1.start(0, 0);
} else {
vFactoryMedMiss2.start(0, 0);
}
} else {
if (v2.nType == 3) {
if (v7 == 0) {
vFactoryBigMiss1.start(0, 0);
} else {
vFactoryBigMiss2.start(0, 0);
}
}
}
}
if (v16.nType == 6) {
vRobotOuch.start(0, 0);
} else {
++nDings;
if (nDings == 1) {
vWhoops.start(0, 0);
}
}
}
if (v2._x > v16._x) {
v2._x += _global.nSpeed + 2;
}
v2.nRotation = (v2._x - v16._x) / 10;
}
}
}
}
}
++v6;
}
v2.mBody._rotation += v2.nRotation;
}
}
++v17;
}
v17 = 0;
while (v17 < nTires) {
v4 = aTires[v17];
if (v4.bActive) {
v4._x += v4.nSpeedX;
v4._y += v4.nSpeedY;
if (v4._y >= nFloorY) {
v4._y = nFloorY;
if (v4.nSpeedY > 0) {
v4.nSpeedY *= -0.9;
}
}
v4.nSpeedY += _global.nGravity;
v4.mBody._rotation += v4.nSpeedX;
v26 = v4._x + mFactory._x;
if (v26 > _global.nScreenWidth + 70 || v26 < -70) {
v4.bActive = false;
}
}
++v17;
}
if (bInvasion) {
if (!mInvadeCar.bAlive) {
var v32 = true;
v17 = 0;
while (v17 < nCars) {
v16 = aCars[v17];
if (v16.bActive && v16.bAlive && v16._x <= nGunX) {
v32 = false;
}
++v17;
}
if (v32) {
bWait = false;
nBugsSpawned = nBugsTotal;
v17 = 0;
while (v17 < nBugs) {
v24 = aBugs[v17];
if (v24.bAlive) {
f_BugDie(v24);
}
++v17;
}
bInvasion = false;
mFactory.mLights.gotoAndStop(4);
mFactory.mButtons.gotoAndPlay('open');
return undefined;
}
}
f_Lasers(mFactory);
var v31 = false;
++nInvasionTimer;
if (mInvadeCar && nBugsSpawned < nBugsTotal && nInvasionTimer % nBugDelay == 0) {
f_AddBug();
}
mCloseBug = undefined;
v17 = 0;
while (v17 < nBugs) {
v24 = aBugs[v17];
if (v24.bActive && v24.bAlive) {
if (v24.mCar != mInvadeCar) {
f_AssignBug(v24);
}
if (v24.nInvTimer > 0) {
--v24.nInvTimer;
}
v24.nSpeedX = (v24.nTargetX - v24.nX) / 10;
v24.nSpeedY = (v24.nTargetY - v24.nY) / 10;
var v15 = v24.nRadius;
if (v15 > 1) {
var v11 = v24.nTargetX - v24.nX;
var v10 = v24.nTargetY - v24.nY;
var v9 = Math.sqrt(v11 * v11 + v10 * v10);
if (v9 > 0) {
v11 /= v9;
v10 /= v9;
}
v24.nSpeedX += v11;
v24.nSpeedY += v10;
var v25 = v24.nSpin;
v24.nSpeedX += v25 * -v10;
v24.nSpeedY += v25 * v11;
var v23 = 0.9;
v24.nSpeedX *= v23;
v24.nSpeedY *= v23;
if (v9 < v15) {
var v27 = 1 - v9 / v15;
var v29 = 1 - v9 / v15 * 2;
var v19 = 20;
v24.nSpeedX -= v19 * v11 * v29;
v24.nSpeedY -= v19 * v10 * v27;
}
}
v24.nX += v24.nSpeedX;
v24.nY += v24.nSpeedY;
v24._x = v24.nX;
v24._y = v24.nY;
if (v24._y > nFloorY - 30) {
v24._y = nFloorY - 30;
}
if (bBugPrompt) {
var v21 = v24._x + mFactory._x;
var v20 = v24._y + mFactory._y;
if (v21 > 100 && v21 < _global.nScreenWidth - 100 && v20 > 100 && v20 < _global.nScreenHeight - 100) {
bBugPrompt = false;
bBugWait = true;
mFactory.mShootPrompt._x = v24._x;
mFactory.mShootPrompt._y = v24._y;
mFactory.mShootPrompt.gotoAndStop(2);
mBugWait = v24;
}
}
var v14 = 14;
v24.nRadius -= 5;
if (v24.nRadius < 1) {
v24.nRadius = 1;
--v24.nBoomTimer;
if (v24.nBoomTimer < 30) {
v14 = 3;
} else {
if (v24.nBoomTimer < 60) {
v14 = 6;
} else {
if (v24.nBoomTimer < 90) {
v14 = 9;
} else {
v14 = 12;
}
}
}
if (v24.nBoomTimer <= 0) {
v31 = true;
}
}
v24.bBeep = false;
if (!mCloseBug || v24.nBoomTimer < mCloseBug.nBoomTimer) {
mCloseBug = v24;
}
if (nInvasionTimer % v14 == 0) {
v24.bBeep = true;
if (v24.bBugRed) {
v24.bBugRed = false;
v24.mBody.gotoAndStop(1);
} else {
v24.bBugRed = true;
v24.mBody.gotoAndStop(2);
}
}
}
++v17;
}
if (v31) {
bWait = false;
nBugsSpawned = nBugsTotal;
v17 = 0;
while (v17 < nBugs) {
v24 = aBugs[v17];
if (v24.bAlive) {
f_BugDie(v24);
}
++v17;
}
if (mInvadeCar.bAlive) {
f_FactoryCarDie(mInvadeCar);
}
mInvadeCar = undefined;
} else {
if (mCloseBug.bBeep) {
mBuzz.vBuzz.stop();
mBuzz.vBuzz.start(0, 0);
if (bTick1) {
bTick1 = false;
vTick2.start(0, 0);
} else {
bTick1 = true;
vTick1.start(0, 0);
}
}
}
}
if (!bWait) {
++nTimer;
}
}
function f_GotoVal(nValue, nGoal, nRate) {
if (nValue > nGoal) {
nValue -= nRate;
if (nValue < nGoal) {
nValue = nGoal;
}
return nValue;
}
if (nValue < nGoal) {
nValue += nRate;
if (nValue > nGoal) {
nValue = nGoal;
}
}
return nValue;
}
function f_Pressed(nType) {
if (!bIntro && !bInvasion && !bFaceMelt) {
if (nType == 1) {
mFactory.mButtons.mGun1.gotoAndPlay(2);
vButton1.start(0, 0);
} else {
if (nType == 2) {
mFactory.mButtons.mGun2.gotoAndPlay(2);
vButton2.start(0, 0);
} else {
if (nType == 3) {
mFactory.mButtons.mGun3.gotoAndPlay(2);
vButton3.start(0, 0);
}
}
}
if (f_AddGun(nType)) {
mFactory.mDropper.gotoAndPlay(2);
}
}
}
function f_TestCarArmy() {
var v2 = 0;
while (v2 < _global.nSize) {
oCar = {'nCar': aCarOrder[v2], 'nGun': aCarOrder[v2]};
aCarArmy.push(oCar);
++v2;
}
_global.nPowCar = _global.nPowMax;
}
function f_TestDecoyArmy(nNum) {
aDecoyArmy = new Array(nNum);
aDecoyArmy.splice(0);
var v1 = 0;
while (v1 < nNum) {
oCar = {'nCar': 5, 'nGun': 3};
aDecoyArmy.push(oCar);
++v1;
}
}
function f_TestRobotArmy(nNum) {
aRobotArmy = new Array(nNum);
aRobotArmy.splice(0);
var v1 = 0;
while (v1 < nNum) {
oCar = {'nCar': 6, 'nGun': 3};
aRobotArmy.push(oCar);
++v1;
}
}
function f_FindCarCol(mCar, nRow) {
var v3 = 0;
while (v3 < aEnemyGrid[nRow].length) {
if (aEnemyGrid[nRow][v3] == mCar) {
var v1 = {'nRow': nRow, 'nCol': v3};
return v1;
}
++v3;
}
}
function f_FindCar(mCar) {
var v2 = 0;
while (v2 < aEnemyGrid.length) {
var v3 = 0;
while (v3 < aEnemyGrid[v2].length) {
if (aEnemyGrid[v2][v3] == mCar) {
var v1 = {'nRow': v2, 'nCol': v3};
return v1;
}
++v3;
}
++v2;
}
}
function f_Battle() {
trace('CAR GRID: ' + aCarGrid.length);
var v16 = aCarGrid.length;
var v14 = aEnemyGrid.length;
if (bPostBattle) {
--nEndTimer;
if (nEndTimer == 180) {
if (v14 == 0) {
if (v16 > 0) {
var v7 = aCarGrid[0][0];
mBattle.mPlayerTalk._x = v7._x + mBattle.mPlayer._x;
mBattle.mPlayerTalk._y = v7._y + mBattle.mPlayer._y - 60;
var v13 = aBattleBG[_global.nCurrentLevel] + 1;
mBattle.mPlayerTalk.gotoAndStop(v13);
}
} else {
var v7 = aEnemyGrid[v14 - 1][0];
mBattle.mEnemyTalk._x = v7._x + mBattle.mEnemy._x;
mBattle.mEnemyTalk._y = v7._y + mBattle.mEnemy._y - 60;
mBattle.mEnemyTalk.gotoAndStop(random(4) + 2);
}
} else {
if (nEndTimer <= 0) {
bPostBattle = false;
bBattleWait = true;
mBattle.mEnemyTalk.gotoAndStop(1);
mBattle.mPlayerTalk.gotoAndStop(1);
if (v14 == 0) {
f_WinBattle();
} else {
f_LoseBattle();
}
}
}
return undefined;
} else {
if (bBattleWait) {
f_TalkSystem();
return undefined;
}
}
if ((v16 == 0 || v14 == 0) && nTimer > 240) {
if (!_global.bEndBattle) {
mGunscape.vGunscape.stop();
mMusic.vBattle.stop();
if (aEnemyGrid.length == 0) {
mMusic.vWin.setVolume(100);
mMusic.vWin.start(0, 0);
} else {
vLose.start(0, 0);
}
_global.bEndBattle = true;
var v13 = 0;
while (v13 < nBugsMax) {
var v2 = aBugs[v13];
if (v2.bActive && v2.bAlive) {
v2.bAlive = false;
v2.bActive = false;
if (v2._y + mBattle._y > -5) {
v2.gotoAndStop('die');
} else {
v2.gotoAndStop('blank');
}
}
++v13;
}
bPostBattle = true;
nEndTimer = 280;
}
} else {
++nTimer;
var v15 = false;
if (nTimer % nCarTimer == 0 && v16 > 0 && v14 > 0) {
var v19 = random(v14);
var v7 = aEnemyGrid[v19][0];
if (v7.bChild) {
v7 = v7.mParent;
--v19;
}
v7.nHP -= 10;
if (v7.nHP <= 0) {
var v3 = 0;
if (v7.bParent) {
var v11 = f_FindCarCol(v7, v19);
v3 = v11.nCol;
aEnemyGrid[v19].splice(v3 + 1, 1);
v11 = f_FindCarCol(v7.mChild2, v19 + 1);
aEnemyGrid[v19 + 1].splice(v11.nCol + 1, 1);
aEnemyGrid[v19 + 1].splice(v11.nCol, 1);
if (aEnemyGrid[v19 + 1].length <= 0) {
aEnemyGrid.splice(v19 + 1, 1);
--v14;
}
}
v7.bAlive = false;
if (v7.nCar == 4) {
v7.gotoAndStop('enemy4die');
} else {
if (v7.nCar == 1) {
v7.gotoAndStop('enemy1die');
} else {
v7.gotoAndStop('enemy2die');
}
}
v15 = true;
aEnemyGrid[v19].splice(v3, 1);
if (aEnemyGrid[v19].length <= 0) {
aEnemyGrid.splice(v19, 1);
--v14;
}
}
}
if (nTimer % nEnemyTimer == 0 && v16 > 0 && v14 > 0) {
v19 = random(aCarGrid.length);
v7 = aCarGrid[v19][0];
v7.bAlive = false;
if (v7.nCar == 1) {
v7.gotoAndStop('car1die');
} else {
if (v7.nCar == 3) {
v7.gotoAndStop('car3die');
} else {
v7.gotoAndStop('car2die');
}
}
v15 = true;
aCarGrid[v19].splice(0, 1);
if (aCarGrid[v19].length <= 0) {
aCarGrid.splice(v19, 1);
--v16;
}
}
if (v16 > 0 && v14 > 0) {
if (nTimer % 2 == 0) {
if (v14 > 1 && nTimer % 4 == 0 || nTimer % 8 == 0) {
v19 = random(v14);
var v18 = random(aEnemyGrid[v19].length);
if (v18 > 4) {
v18 = random(4);
}
if (aEnemyGrid[v19][v18].nGun > 0) {
aEnemyGrid[v19][v18].mGunFire.gotoAndPlay(2);
}
}
} else {
if (v16 > 1 && nTimer % 3 == 0 || nTimer % 6 == 0) {
v19 = random(v16);
var v18 = random(aCarGrid[v19].length);
if (v18 > 4) {
v18 = random(4);
}
aCarGrid[v19][v18].mGun.mGunFire.gotoAndPlay(2);
}
}
}
var v9 = 0;
while (v9 < v14) {
var v8 = false;
v3 = 0;
while (v3 < aEnemyGrid[v9].length) {
v7 = aEnemyGrid[v9][v3];
if (v7.bParent) {
v7.bLock = true;
}
if (v7.bAlive && !v8) {
var v5 = nNudgeGap * v7.nRow + nSpaceX * v3;
if (v7._x > v5) {
var v6 = true;
if (v7.bParent) {
v11 = f_FindCarCol(v7.mChild2, v9 + 1);
var v12 = nNudgeGap * v7.mChild2.nRow + nSpaceX * v11.nCol;
if (v7.mChild2._x > v12) {
v7.bLock = false;
} else {
v6 = false;
v8 = true;
}
} else {
if (v7.bChild) {
if (v7.mParent.bLock) {
v6 = false;
v8 = true;
}
}
}
if (v6) {
v7._x -= 3;
if (v7._x < v5) {
v7._x = v5;
}
}
}
}
++v3;
}
++v9;
}
v9 = 0;
while (v9 < v16) {
v3 = 0;
while (v3 < aCarGrid[v9].length) {
v7 = aCarGrid[v9][v3];
if (v7.bAlive) {
v5 = -(nNudgeGap * v7.nRow + nSpaceX * v3);
if (v7._x < v5) {
v7._x += 3;
if (v7._x > v5) {
v7._x = v5;
}
}
}
++v3;
}
++v9;
}
if (bInvasion && nTimer > 240) {
if (mBig.bAlive) {
if (!mBig.bSpecial) {
mBig.bSpecial = true;
mBig.bCharging = true;
mBig.nCharge = 0;
aEyes = new Array(2);
aEyes[0] = mBig.mBody.mEye1;
aEyes[1] = mBig.mBody.mEye2;
aEyes[0].bAlive = true;
aEyes[0].bActive = true;
aEyes[0].nHP = 10;
aEyes[0].nInvTimer = 0;
aEyes[0].gotoAndStop(2);
aEyes[1].bAlive = true;
aEyes[1].bActive = true;
aEyes[1].nHP = 10;
aEyes[1].nInvTimer = 0;
aEyes[1].gotoAndStop(2);
} else {
if (mBig.bCharging) {
--aEyes[0].nInvTimer;
--aEyes[1].nInvTimer;
if (!aEyes[0].bAlive && !aEyes[1].bAlive) {
mBig.bCharging = false;
mBig.nHP -= 40;
} else {
++mBig.nCharge;
if (mBig.nCharge == 180 || mBig.nCharge == 260) {
var v17 = false;
if (aEyes[0].bAlive) {
aEyes[0].mLaser.gotoAndPlay(2);
aEyes[0].gotoAndStop(1);
v17 = true;
}
if (aEyes[1].bAlive) {
aEyes[1].mLaser.gotoAndPlay(2);
aEyes[1].gotoAndStop(1);
v17 = true;
}
if (v17) {
vBigLaser1.start(0, 0);
}
} else {
if (mBig.nCharge == 220 || mBig.nCharge == 300) {
var v17 = false;
var v13 = 0;
while (v13 < 2) {
if (aEyes[v13].bAlive) {
var v4 = mBig.nRow - 1 + v13;
v7 = aCarGrid[v4][0];
while (!v7.bAlive) {
--v4;
v7 = aCarGrid[v4][0];
}
if (v7.bAlive) {
v7.bAlive = false;
if (v7.nCar == 1) {
v7.gotoAndStop('car1die');
} else {
if (v7.nCar == 3) {
v7.gotoAndStop('car3die');
} else {
v7.gotoAndStop('car2die');
}
}
v7.mLaser.gotoAndPlay(2);
v17 = true;
v15 = true;
aCarGrid[v4].splice(0, 1);
if (aCarGrid[v4].length <= 0) {
aCarGrid.splice(v4, 1);
}
}
}
++v13;
}
if (v17) {
vBigLaser2.start(0, 0);
}
}
}
}
}
}
} else {
if (nTimer % nSpawnTimer == 0) {
f_AddBattleBug();
}
var v13 = 0;
while (v13 < nBugs) {
var v2 = aBugs[v13];
if (v2.bActive && v2.bAlive) {
if (v2.nInvTimer > 0) {
--v2.nInvTimer;
}
v2.mTarget = aCarGrid[v2.nRow][v2.nCol];
for (;;) {
if (!(!v2.mTarget.bAlive && v2.nCol > 0)) break;
--v2.nCol;
v2.mTarget = aCarGrid[v2.nRow][v2.nCol];
}
for (;;) {
if (!(!v2.mTarget.bAlive && v2.nRow > 0)) break;
--v2.nRow;
v2.mTarget = aCarGrid[v2.nRow][v2.nCol];
}
if (v2.mTarget.bAlive) {
v2.nTargetX = v2.mTarget._x + mBattle.mPlayer._x;
v2.nTargetY = v2.mTarget._y + mBattle.mPlayer._y - 75;
v2._x = f_GotoVal(v2._x, v2.nTargetX, 3);
v2._y = f_GotoVal(v2._y, v2.nTargetY, v2.nSpeedY);
var v10 = 20;
if (v2._y == v2.nTargetY && v2._x == v2.nTargetX) {
--v2.nCountdown;
if (v2.nCountdown < 20) {
v10 = 2;
} else {
if (v2.nCountdown < 30) {
v10 = 4;
} else {
if (v2.nCountdown < 40) {
v10 = 6;
} else {
v10 = 10;
}
}
}
if (v2.nCountdown <= 0) {
v7 = v2.mTarget;
if (v7.bAlive) {
v7.bAlive = false;
if (v7.nCar == 1) {
v7.gotoAndStop('car1die');
} else {
if (v7.nCar == 3) {
v7.gotoAndStop('car3die');
} else {
v7.gotoAndStop('car2die');
}
}
v15 = true;
aCarGrid[v2.nRow].splice(v2.nCol, 1);
if (aCarGrid[v2.nRow].length <= 0) {
aCarGrid.splice(v2.nRow, 1);
}
}
v2.bAlive = false;
v2.gotoAndStop('die');
}
}
if (nTimer % v10 == 0) {
if (v2.bBugRed) {
v2.bBugRed = false;
v2.mBody.gotoAndStop(1);
} else {
v2.bBugRed = true;
v2.mBody.gotoAndStop(2);
}
}
} else {
v2._y -= v2.nSpeedY;
if (v2._y + mBattle._y < -50) {
v2.gotoAndStop('blank');
v2.bAlive = false;
v2.bActive = false;
}
}
}
++v13;
}
}
f_Lasers(mBattle);
}
if (v15) {
v19 = random(4);
if (v19 == 1) {
vExplosion1.stop();
vExplosion1.start(0, 0);
} else {
if (v19 == 2) {
vExplosion2.stop();
vExplosion2.start(0, 0);
} else {
if (v19 == 3) {
vExplosion3.stop();
vExplosion3.start(0, 0);
} else {
vExplosion3.stop();
vExplosion3.start(0, 0);
}
}
}
}
}
}
function f_AddBattleBug() {
if (aCarGrid.length == 0) {
return undefined;
}
var v2 = 0;
while (v2 < nBugsMax) {
var v1 = aBugs[v2];
if (!v1.bActive) {
v1.bActive = true;
v1.bAlive = true;
v1.nHPMax = nBugHPMax;
v1.nHP = v1.nHPMax;
v1.nInvTimer = 0;
v1.bBugRed = false;
v1.nRadius = 700 + random(100);
v1.nSpin = 14 + random(4);
v1.nMaxSpeed = 10 + random(5);
v1.nRow = random(aCarGrid.length);
v1.nCol = random(aCarGrid[v1.nRow].length);
v1.mTarget = aCarGrid[v1.nRow][v1.nCol];
for (;;) {
if (!(v1.mTarget._x + mBattle.mPlayer._x + mBattle._x < 25 && v1.nCol > 0)) break;
--v1.nCol;
v1.mTarget = aCarGrid[v1.nRow][v1.nCol];
}
v1.nTargetX = v1.mTarget._x + mBattle.mPlayer._x;
v1.nTargetY = v1.mTarget._y + mBattle.mPlayer._y - 75;
v1._x = v1.nTargetX;
v1._y = -50 - mBattle._y;
v1.nSpeedX = 0;
v1.nSpeedY = 3;
v1.nCountdown = 60;
v1.gotoAndStop('fly');
++nBugsSpawned;
return v1;
}
++v2;
}
}
function f_BigChild(mCar, mParent, nNum) {
mCar.mParent = mParent;
mCar.bChild = true;
mCar.gotoAndStop('blank');
return mCar;
}
function f_BattleInit() {
_global.bEndBattle = false;
bInvasion = false;
bFactory = false;
bPostBattle = false;
mBig = undefined;
mBattle.mBG.gotoAndStop(aBattleBG[_global.nCurrentLevel]);
mBattle.mFG.gotoAndStop(aBattleBG[_global.nCurrentLevel]);
f_GenerateEnemyArray(_global.nDifficulty);
nCarTimer = 120 - int((_global.nPowCar / _global.nPowMax) * 60);
nEnemyTimer = 120 - int((_global.nPowEnemy / _global.nPowMax) * 60);
if (aCarArmy.length >= 30) {
nCarTimer = int(nCarTimer * 0.5);
nEnemyTimer = int(nEnemyTimer * 0.5);
} else {
if (aCarArmy.length >= 20) {
nCarTimer = int(nCarTimer * 0.75);
nEnemyTimer = int(nEnemyTimer * 0.75);
}
}
var v4 = 0;
nBugs = 4;
aBugs = new Array(nBugs);
var v3 = 0;
while (v3 < nBugs) {
++v4;
var v5 = mBattle.attachMovie('BattleBug', 'mBug' + v3, v4);
v5.bActive = false;
v5.bAlive = false;
aBugs[v3] = v5;
++v3;
}
nBugsMax = 3;
nSpawnTimer = 60;
_global.bEndBattle = false;
v4 = 0;
nTimer = 0;
nNudgeSpace = 360;
nSize = aEnemyArmy.length;
if (nSize < 6) {
nCols = 2;
} else {
if (nSize < 11) {
nCols = 3;
} else {
if (nSize < 16) {
nCols = 4;
} else {
nCols = Math.ceil(nSize / 5);
}
}
}
nRows = Math.ceil(nSize / nCols);
if (nRows > 5) {
nRows = 5;
}
var v6 = 5 - nRows;
mBattle.mEnemy._y += v6 * nSpaceY / 2;
mBattle.mEnemy._x += v6 * nSpaceY / 2;
aEnemyGrid = new Array(nRows);
aEnemyGrid.splice(0);
nNudge = 0;
nCol = 0;
nRow = 0;
aEnemyGrid[nRow] = new Array(nCols);
aEnemyGrid[nRow].splice(0);
v3 = 0;
while (v3 < nSize) {
++v4;
var v2 = mBattle.mEnemy.attachMovie('EnemySet', 'mEnemy' + v3, v4);
v2.nCar = aEnemyArmy[v3].nCar;
v2.nGun = aEnemyArmy[v3].nGun;
v2.gotoAndStop(v2.nCar);
if (v2.nCar == 6) {
if (v2.nGun < 1) {
v2.mBody.gotoAndStop(2);
}
}
v2._x = nNudge + nSpaceX * nCol + 550;
v2._y = nSpaceY * nRow;
v2.nRow = nRow;
v2.nHP = 10;
v2.bParent = false;
v2.bChild = false;
v2.bAlive = true;
aEnemyArmy[v3].mCar = v2;
aEnemyGrid[nRow][nCol] = v2;
++nCol;
if (nCol >= nCols) {
nCol = 0;
++nRow;
aEnemyGrid[nRow] = new Array(nCols);
aEnemyGrid[nRow].splice(0);
nNudge += nNudgeGap;
}
++v3;
}
if (_global.nCurrentLevel >= 8 && _global.nCurrentLevel != 12 && aEnemyArmy.length > 15) {
mBig = aEnemyGrid[2][2];
mBig.gotoAndStop(4);
mBig.nHP = 80;
mBig.nCar = 4;
mBig.bParent = true;
mBig.mChild1 = f_BigChild(aEnemyGrid[2][3], mBig);
mBig.mChild2 = f_BigChild(aEnemyGrid[3][2], mBig);
mBig.mChild3 = f_BigChild(aEnemyGrid[3][3], mBig);
}
var nSize = aCarOrder.length;
if (nSize < 6) {
nCols = 2;
} else {
if (nSize < 11) {
nCols = 3;
} else {
if (nSize < 16) {
nCols = 4;
} else {
nCols = Math.ceil(nSize / 5);
}
}
}
nRows = Math.ceil(nSize / nCols);
if (nRows > 5) {
nRows = 5;
}
v6 = 5 - nRows;
mBattle.mPlayer._y -= v6 * nSpaceY / 2;
mBattle.mPlayer._x -= v6 * nSpaceY / 2;
aCarGrid = new Array(nRows);
aCarGrid.splice(0);
nNudge = 0;
nCol = 0;
nRow = 0;
aCarGrid[nRow] = new Array(nCols);
aCarGrid[nRow].splice(0);
v4 = 200;
v3 = 0;
while (v3 < aCarArmy.length) {
--v4;
v2 = mBattle.mPlayer.attachMovie('CarSet', 'mCar' + v3, v4);
v2.nCar = aCarArmy[v3].nCar;
v2.gotoAndStop(v2.nCar);
v2.mGun.gotoAndStop(aCarArmy[v3].nGun);
v2._x = -(nNudge + nSpaceX * nCol) - 550;
v2._y = -nSpaceY * nRow;
v2.nRow = nRow;
v2.bAlive = true;
aCarArmy[v3].mCar = v2;
aCarGrid[nRow][nCol] = v2;
++nCol;
if (nCol >= nCols) {
nCol = 0;
++nRow;
aCarGrid[nRow] = new Array(nCols);
aCarGrid[nRow].splice(0);
nNudge += nNudgeGap;
}
++v3;
}
Mouse.addListener(mBattle);
mBattle.onMouseDown = function () {
bMouseDown = true;
};
mBattle.onMouseUp = function () {
bMouseDown = false;
};
bInvasion = false;
if (_global.nCurrentLevel >= 3) {
bInvasion = true;
}
bBattleWait = true;
textbox = '';
mGeneral.gotoAndStop(2);
mGeneral.mBody.gotoAndStop('ready');
f_Convo(100 + _global.nCurrentLevel);
nNext = 100;
mMusic.vPreBattle.setVolume(100);
mMusic.vPreBattle.start(0, 9999);
aCarArmy = undefined;
aEnemyArmy = undefined;
}
function f_Next() {
if (nNext == 1) {
mGeneral.gotoAndStop(1);
gotoAndStop('map');
} else {
if (nNext == 2) {
mGeneral.gotoAndStop(1);
gotoAndStop('map');
} else {
if (nNext == 3) {
mGeneral.gotoAndStop(1);
gotoAndStop('map');
} else {
if (nNext == 5) {
nFaderAction = 5;
mFader.gotoAndPlay('fadeout');
} else {
if (nNext == 100) {
bMouseDown = false;
bBattleWait = false;
if (aCarGrid.length > 0) {
mGunscape.vGunscape.setVolume(60);
mGunscape.vGunscape.start(0, 9999);
}
mMusic.vPreBattle.stop();
mMusic.vBattle.setVolume(100);
mMusic.vBattle.start(0, 9999);
mGeneral.gotoAndStop(1);
} else {
if (nNext == 200) {
bTalk = false;
mMusic.vFactoryAmbient.stop();
mMusic.vPreBattle.stop();
mGeneral.gotoAndStop(1);
mFactory.mButtons.gotoAndPlay('open');
} else {
if (nNext == 400) {
bTalk = false;
mGeneral.gotoAndStop(1);
bWait = true;
} else {
if (nNext == 401) {
bTalk = false;
mMusic.vDeliver.stop();
mGeneral.gotoAndStop(1);
gotoAndStop('end');
}
}
}
}
}
}
}
}
}
function f_IntroInit() {
textbox = '';
mGeneral.gotoAndStop(2);
f_Convo(1);
nNext = 1;
}
function f_LoseBattle() {
var v2 = _global.nPowCar / _global.nPowMax;
textbox = '';
mGeneral.gotoAndStop(2);
if (v2 < 0.3 || aEnemyGrid.length >= 4) {
mGeneral.mBody.gotoAndStop('lose3');
f_Convo(5);
} else {
if (v2 < 0.65 || aEnemyGrid.length >= 3) {
mGeneral.mBody.gotoAndStop('lose2');
f_Convo(2);
} else {
mGeneral.mBody.gotoAndStop('lose1');
f_Convo(6);
}
}
nNext = 3;
}
function f_WinBattle() {
var v2 = _global.nPowCar / _global.nPowMax;
textbox = '';
mGeneral.gotoAndStop(2);
if (v2 == 1) {
mGeneral.mBody.gotoAndStop('win3');
} else {
if (v2 > 0.9) {
mGeneral.mBody.gotoAndStop('win2');
} else {
mGeneral.mBody.gotoAndStop('win1');
}
}
nNextMedal = 0;
if (_global.nCurrentLevel == 5) {
f_Medal(1);
} else {
if (_global.nCurrentLevel == 10) {
f_Medal(2);
} else {
if (_global.nCurrentLevel == 15) {
f_Medal(3);
}
}
}
nNext = 2;
if (_global.nCurrentLevel == 1) {
f_Convo(301);
} else {
if (_global.nCurrentLevel == 15) {
nNext = 5;
f_Convo(315);
} else {
f_Convo(4);
}
}
++_global.nCurrentLevel;
if (_global.nCurrentLevel > _global.nTotalLevels + 1) {
_global.nCurrentLevel = _global.nTotalLevels + 1;
}
if (_global.nCurrentLevel > oData.nLevel) {
oData.nLevel = _global.nCurrentLevel;
}
f_Save();
}
function f_NewGame() {
oData = new Object();
oData.nLevel = 1;
oData.aPerfect = new Array(16);
var v2 = 0;
while (v2 < 16) {
oData.aPerfect[v2] = false;
++v2;
}
if (bUnlockLevels) {
oData.nLevel = _global.nTotalLevels;
}
_global.nCurrentLevel = oData.nLevel;
}
function f_Save() {
var v1 = SharedObject.getLocal('DropCannon');
v1.clear();
v1.data.oData = oData;
v1.flush();
}
function f_Load() {
var v4 = SharedObject.getLocal('DropCannon');
oData = v4.data.oData;
_global.nCurrentLevel = oData.nLevel;
var v3 = true;
var v2 = 1;
while (v2 < 16) {
if (!oData.aPerfect[v2]) {
v3 = false;
break;
}
++v2;
}
if (v3) {
com.newgrounds.API.unlockMedal('Perfect Game');
}
}
function f_SavedGame() {
var v1 = SharedObject.getLocal('DropCannon');
if (v1.data.oData.nLevel > 0) {
return true;
} else {
return false;
}
}
function f_LevelSelect(nLevel) {
_global.nCurrentLevel = nLevel;
gotoAndStop('factory');
}
function f_MapSelect(mLevel) {
if (!bSelected) {
var v2 = 1;
while (v2 <= _global.nTotalLevels) {
if (v2 <= oData.nLevel) {
if (aMap[v2] == mLevel) {
_global.nCurrentLevel = v2;
mMusic.vPreBattle.stop();
mLevel.gotoAndStop(3);
mMap.mCrossHair._x = mLevel.mXY._x + mLevel._x;
mMap.mCrossHair._y = mLevel.mXY._y + mLevel._y;
mMap.mCrossHair.gotoAndPlay(2);
vSelect2.start(0, 0);
aCity[v2].start(0, 0);
nFaderAction = 1;
mFader.gotoAndPlay('fadeout2');
bSelected = true;
return undefined;
}
}
++v2;
}
}
}
function f_MapScreen() {
mMusic.vPreBattle.setVolume(100);
mMusic.vPreBattle.start(0, 9999);
bSelected = false;
aMap = new Array(_global.nTotalLevels + 1);
aMap[1] = mMap.mMiami;
aMap[2] = mMap.mAtlanta;
aMap[3] = mMap.mCharlotte;
aMap[4] = mMap.mPhilly;
aMap[5] = mMap.mDetroit;
aMap[6] = mMap.mChicago;
aMap[7] = mMap.mTulsa;
aMap[8] = mMap.mAustin;
aMap[9] = mMap.mSantaFe;
aMap[10] = mMap.mDenver;
aMap[11] = mMap.mBismarck;
aMap[12] = mMap.mBoise;
aMap[13] = mMap.mSanDiego;
aMap[14] = mMap.mReno;
aMap[15] = mMap.mSeattle;
var v2 = 1;
while (v2 <= _global.nTotalLevels) {
if (v2 < oData.nLevel) {
if (oData.aPerfect[v2]) {
aMap[v2].gotoAndStop(5);
} else {
aMap[v2].gotoAndStop(4);
}
} else {
if (v2 == oData.nLevel) {
aMap[v2].gotoAndStop(2);
} else {
aMap[v2].gotoAndStop(1);
}
}
++v2;
}
}
function f_LevelSelectMenu() {
nDepth = 0;
nRows = 2;
nCols = 4;
var v5 = 700 / nCols;
var v4 = 350 / nRows;
nCol = 0;
nRow = 0;
var v2 = 1;
while (v2 <= _global.nTotalLevels) {
++nDepth;
var v3;
if (v2 > oData.nLevel) {
v3 = mMenu.attachMovie('lockedlevel', 'mButton' + v2, nDepth);
} else {
v3 = mMenu.attachMovie('levelselect', 'mButton' + v2, nDepth);
v3.nLevel = v2;
v3.tLevel.text = v2;
}
v3._x = v5 * nCol;
v3._y = v4 * nRow;
++nCol;
if (nCol >= nCols) {
nCol = 0;
++nRow;
}
++v2;
}
mMenu._x = 140;
mMenu._y = 100;
}
function f_AssignBug(mBug) {
mBug.mTarget = undefined;
mBug.mCar = mInvadeCar;
if (!mInvadeCar.mBug1.mBug) {
mInvadeCar.mBug1.mBug = mBug;
mBug.mTarget = mInvadeCar.mBug1;
} else {
if (!mInvadeCar.mBug2.mBug) {
mInvadeCar.mBug2.mBug = mBug;
mBug.mTarget = mInvadeCar.mBug2;
} else {
if (!mInvadeCar.mBug3.mBug) {
mInvadeCar.mBug3.mBug = mBug;
mBug.mTarget = mInvadeCar.mBug3;
}
}
}
if (mBug.mTarget) {
mBug.nTargetX = mBug.mTarget._x + mInvadeCar._x;
mBug.nTargetY = mBug.mTarget._y + mInvadeCar._y;
mBug.nSpeedX = (mBug.nTargetX - mBug._x) / 20;
mBug.nSpeedY = (mBug.nTargetY - mBug._y) / 20;
}
}
function f_AddBug() {
if (mInvadeCar.mBug1.mBug && mInvadeCar.mBug2.mBug && mInvadeCar.mBug3.mBug) {
return undefined;
}
var v3 = 0;
while (v3 < nBugsMax) {
var v2 = aBugs[v3];
if (!v2.bActive) {
v2.bActive = true;
v2.bAlive = true;
v2.nHPMax = nBugHPMax;
v2.nHP = v2.nHPMax;
v2.nBoomTimer = 120;
v2.bBugRed = false;
v2.nInvTimer = 0;
v2.nRadius = 700 + random(100);
v2.nSpin = 14 + random(4);
v2.nMaxSpeed = 10 + random(5);
f_AssignBug(v2);
v2._x = random(1410) - 200 - mFactory._x;
var v4 = v2._x + mFactory._x;
if (v4 < -110 || v4 > _global.nScreenWidth + 110) {
v2._y = -100 + random(400);
} else {
v2._y = -100 - mFactory._y;
}
if (v4 < _global.nSWM) {
v2.nSpin *= -1;
}
v2.nX = v2._x;
v2.nY = v2._y;
v2.gotoAndStop('fly');
++nBugsSpawned;
return v2;
}
++v3;
}
}
function f_BugDie(mBug) {
mBug.bAlive = false;
mBug.mTarget.mBug = undefined;
mBug.mTarget = undefined;
mBug.gotoAndStop('die');
if (bFactory) {
if (nBugsSpawned >= nBugsTotal) {
var v3 = true;
var v1 = 0;
while (v1 < nBugsMax) {
var v2 = aBugs[v1];
if (v2.bAlive) {
v3 = false;
}
++v1;
}
if (v3) {
bInvasion = false;
mFactory.mLights.gotoAndStop(4);
mFactory.mButtons.gotoAndPlay('open');
}
}
}
}
function f_Laser(nX, nY, mLaser) {
var v3 = nX - mLaser._x;
var v2 = nY - mLaser._y;
var v6 = Math.atan2(v2, v3) * _global.nRadiance;
var v5 = Math.sqrt(v3 * v3 + v2 * v2);
mLaser._xscale = (v5 / 463) * 100;
mLaser._rotation = v6;
}
function f_Lasers(mC) {
if (bMouseDown) {
if (!bMouseWasDown) {
bMouseWasDown = true;
nLaserTimer = 0;
}
var v6 = _xmouse - mC._x;
var v5 = _ymouse - mC._y;
if (bMobile) {
v5 -= 100;
}
f_Laser(v6 - 5, v5, mC.mLaser1);
f_Laser(v6 + 5, v5, mC.mLaser2);
if (nLaserTimer == 0) {
var v12 = random(3);
if (v12 == 0) {
vLaser1.start(0, 0);
} else {
if (v12 == 1) {
vLaser2.start(0, 0);
} else {
vLaser3.start(0, 0);
}
}
mC.mLaser1.gotoAndPlay(2);
mC.mLaser2.gotoAndPlay(2);
}
++nLaserTimer;
if (nLaserTimer > 8) {
nLaserTimer = 0;
}
var v4 = 0;
while (v4 < nBugs) {
var v1 = aBugs[v4];
if (v1.bActive && v1.bAlive) {
if (v1.nInvTimer <= 0 && Math.abs(v1._x - v6) < 50 && Math.abs(v1._y - v5) < 50) {
f_ShootBug(v1);
}
}
++v4;
}
if (mBig.bCharging) {
v4 = 0;
while (v4 < 2) {
v1 = aEyes[v4];
if (v1.bActive && v1.bAlive) {
var v8 = v1._x + mBig._x + mBig.mBody._x + mBattle.mEnemy._x;
var v7 = v1._y + mBig._y + mBig.mBody._y + mBattle.mEnemy._y;
if (v1.nInvTimer <= 0 && Math.abs(v8 - v6) < 25 && Math.abs(v7 - v5) < 25) {
f_ShootBug(v1);
}
}
++v4;
}
}
if (bBoss) {
if (bFaceMelt) {
var v2 = {'x': 0, 'y': 0};
mBoss.mBody.mHead2.mFace.localToGlobal(v2);
mFactory.globalToLocal(v2);
if (mBoss.bAlive) {
if (Math.abs(v2.x - v6) < 30 && Math.abs(v2.y - v5) < 30) {
--mBoss.nHP;
if (nInvasionTimer % 5 == 0) {
v12 = random(3);
if (v12 == 0) {
vSplat1.start(0, 0);
} else {
if (v12 == 1) {
vSplat2.start(0, 0);
} else {
vSplat3.start(0, 0);
}
}
}
if (nInvasionTimer % 15 == 0) {
mFactory.mBlood._x = v6 - 4 + random(9);
mFactory.mBlood._y = v5 - 4 + random(9);
mFactory.mBlood.gotoAndPlay(2);
}
if (nInvasionTimer % 25 == 0) {
vOof.start(0, 0);
}
if (mBoss.nHP <= 0) {
mBoss.bAlive = false;
mBoss.mBody.mHead2.gotoAndPlay('melt');
} else {
var v3 = 100 - int((mBoss.nHP / mBoss.nHPMax) * 100);
if (v3 < 1) {
v3 = 1;
}
if (v3 > 100) {
v3 = 100;
}
mFactory.mBossHealth._x = v2.x;
mFactory.mBossHealth._y = v2.y - 40;
mFactory.mBossHealth.gotoAndPlay(2);
mFactory.mBossHealth.mBar.gotoAndStop(v3);
mBoss.mBody.mHead2.gotoAndStop('lasered');
mBoss.mBody.mHead2.mBezos.mHead.gotoAndStop(v3);
}
} else {
mBoss.mBody.mHead2.gotoAndStop('scared');
}
}
} else {
v4 = 0;
while (v4 < 3) {
v1 = aBoss[v4];
if (v1.bActive && v1.bAlive) {
var v2 = {'x': 0, 'y': 0};
v1.localToGlobal(v2);
mFactory.globalToLocal(v2);
if (v1.nInvTimer <= 0 && Math.abs(v2.x - v6) < 30 && Math.abs(v2.y - v5) < 30) {
--v1.nHP;
if (v1.nHP > 0) {
vHitBug0.start(0, 0);
v1.nInvTimer = 4;
var v3 = 100 - int((v1.nHP / v1.nHPMax) * 100);
if (v3 < 1) {
v3 = 1;
}
if (v3 > 100) {
v3 = 100;
}
mFactory.mBossHealth._x = v2.x;
mFactory.mBossHealth._y = v2.y - 30;
mFactory.mBossHealth.gotoAndPlay(2);
mFactory.mBossHealth.mBar.gotoAndStop(v3);
} else {
if (v1.nHP <= 0 && v1.bAlive) {
vExplosion1.start(0, 0);
mFactory.mBossHealth.gotoAndStop(1);
v1.bAlive = false;
v1._parent.gotoAndStop(2);
if (mFactory.mBossPrompt.mTarget == v1) {
mFactory.mBossPrompt.bActive = false;
mFactory.mBossPrompt.gotoAndStop(1);
}
}
}
}
}
++v4;
}
}
}
} else {
bMouseWasDown = false;
if (bFaceMelt && mBoss.bAlive) {
mBoss.mBody.mHead2.gotoAndStop('scared');
}
}
}
function f_ShootBug(mBug) {
--mBug.nHP;
if (mBug.nHP > 0) {
vHitBug0.start(0, 0);
mBug.nInvTimer = 4;
var v2 = 100 - int((mBug.nHP / mBug.nHPMax) * 100);
if (v2 < 1) {
v2 = 1;
}
if (v2 > 100) {
v2 = 100;
}
mBug.mHealth.gotoAndPlay(2);
mBug.mHealth.mBar.gotoAndStop(v2);
}
if (mBug.nHP <= 0 && mBug.bAlive) {
if (bBugWait && mBugWait == mBug) {
bBugWait = false;
mFactory.mShootPrompt.gotoAndStop(1);
}
vExplosion1.start(0, 0);
f_BugDie(mBug);
}
}
function f_FaderAction() {
if (nFaderAction == 1) {
gotoAndStop('factory');
} else {
if (nFaderAction == 2) {
mTitle.gotoAndStop('options');
} else {
if (nFaderAction == 3) {
mTitle.gotoAndStop('credits');
} else {
if (nFaderAction == 4) {
gotoAndStop('map');
mFader.gotoAndPlay('fadein');
} else {
if (nFaderAction == 5) {
gotoAndStop('deliver');
mFader.gotoAndPlay('fadein');
} else {
if (nFaderAction == 6) {
mMusic.vDeliver.stop();
mMusic.vGonnaDrop.setVolume(100);
mMusic.vGonnaDrop.start(0, 9999);
gotoAndStop('title');
mTitle.gotoAndStop('credits');
mFader.gotoAndPlay('fadein');
} else {
if (nFaderAction == 7) {
gotoAndStop('end');
mFader.gotoAndPlay('fadeinslow');
}
}
}
}
}
}
}
}
function f_DropBox() {
if (!bTalk && nTimer <= 0) {
if (nCoolDown <= 0) {
var v2 = 0;
while (v2 < nBox) {
var v1 = aBox[v2];
if (!v1.bActive) {
v1.bActive = true;
v1._x = mDeliver.mVanX._x;
v1.gotoAndStop(1);
nCoolDown = 120;
nReview = 30;
if (bWait) {
bWait = false;
mDeliver.mVan.gotoAndStop(2);
mMusic.vDeliver.start(0, 9999);
}
++nBoxDrops;
var v3 = random(3);
if (v3 == 0) {
vBox0.start(0, 0);
} else {
if (v3 == 1) {
vBox1.start(0, 0);
} else {
vBox2.start(0, 0);
}
}
return undefined;
}
++v2;
}
}
}
}
function f_DeliverInit() {
nBox = 5;
aBox = new Array(nBox);
aBox[0] = mDeliver.mBox0;
aBox[1] = mDeliver.mBox1;
aBox[2] = mDeliver.mBox2;
aBox[3] = mDeliver.mBox3;
aBox[4] = mDeliver.mBox4;
var v1 = 0;
while (v1 < nBox) {
aBox[v1].gotoAndStop(2);
++v1;
}
mRoad = mDeliver.mRoad;
nRoadX = mRoad._x + 250;
nRoad = 1295;
nCoolDown = 0;
nReview = 0;
nLots = 8;
aLots = new Array(nLots);
aLots[0] = mRoad.m0;
aLots[1] = mRoad.m1;
aLots[2] = mRoad.m2;
aLots[3] = mRoad.m3;
aLots[4] = mRoad.m4;
aLots[5] = mRoad.m5;
aLots[6] = mRoad.m6;
aLots[7] = mRoad.m7;
nBoxDrops = 0;
nLoops = 0;
nReviews = 23;
aReviews = new Array(nReviews);
aReviews[1] = 'Driver sat in front of my house like a stalker before carelessly dropping the box on the ground.';
aReviews[2] = 'Yikes! Box was soaked with dead body juices, not a good look.';
aReviews[3] = 'Gee thanks for the prompt delivery, this expired three days ago.';
aReviews[4] = 'Maybe smile when you\'re doing the service I paid you to do.';
aReviews[5] = 'Ugh your driver really needs to pick up the pace, some of us have real jobs to get to.';
aReviews[6] = 'I don\'t remember ordering this, please refund my card. I won\'t be sending it back, your fault.';
aReviews[7] = 'Oof, my box got dirty and I had to sweep bone dust off it before bringing it in.';
aReviews[8] = 'This hat looked cooler in the pictures.';
aReviews[9] = 'I called you and said don\'t send this. Why don\'t you answer your phone?';
aReviews[10] = 'I thought these supplements would make me grow hair, but it keeps falling out.';
aReviews[11] = 'This package smells worse than the neighbors out front.';
aReviews[12] = 'Swag.';
aReviews[13] = 'If only you delivered this hose while I had grass.';
aReviews[14] = 'Things aren\'t made like they were 20 years ago.';
aReviews[15] = 'The driver could at least ask me how I\'m doing after coming all this way.';
aReviews[16] = 'Horrible service, I won\'t be ordering again this week!';
aReviews[17] = 'Why did you use such a big box when the item inside was so tiny?!';
aReviews[18] = 'Please don\'t leave packages at my house while I\'m at work, come back later in the day.';
aReviews[19] = 'I was expecting a head of lettuce but instead there was a human head in my box!';
aReviews[20] = 'Oh sweet my PS5 finally arrived.';
aReviews[21] = 'WTF a box of poop?!';
aReviews[22] = 'Hey this isn\'t the poop I ordered.';
aStars = new Array(nReviews);
aStars[1] = 0;
aStars[2] = 1;
aStars[3] = 1;
aStars[4] = 2;
aStars[5] = 2;
aStars[6] = 0;
aStars[7] = 1;
aStars[8] = 2;
aStars[9] = 0;
aStars[10] = 1;
aStars[11] = 1;
aStars[12] = 5;
aStars[13] = 1;
aStars[14] = 2;
aStars[15] = 2;
aStars[16] = 1;
aStars[17] = 2;
aStars[18] = 1;
aStars[19] = 2;
aStars[20] = 4;
aStars[21] = 0;
aStars[22] = 0;
bTheEnd = false;
mGeneral.gotoAndStop(1);
nTimer = 60;
}
function f_Deliver() {
if (nTimer > 0) {
--nTimer;
if (nTimer == 0) {
mGeneral.gotoAndStop(2);
bTalk = true;
bWait = true;
mDeliver.mVan.gotoAndStop(1);
f_Convo(400);
nNext = 400;
}
} else {
if (bTalk) {
f_TalkSystem();
} else {
if (bWait) {
} else {
--nCoolDown;
if (nReview > 0) {
--nReview;
if (nReview == 0) {
mDeliver.mReview.gotoAndPlay(2);
mDeliver.mReview.mBody.mStars.gotoAndStop(aStars[nBoxDrops] + 1);
mDeliver.mReview.mBody.tReview.text = aReviews[nBoxDrops];
vReview.start(0, 0);
}
}
mRoad._x -= 2;
if (mRoad._x < nRoadX - nRoad) {
mRoad._x += nRoad;
++nLoops;
}
var v2 = 0;
while (v2 < nBox) {
var v1 = aBox[v2];
if (v1.bActive) {
v1._x -= 2;
if (v1._x + mDeliver._x < -50) {
v1.bActive = false;
v1.gotoAndStop(2);
}
}
++v2;
}
if (!bTheEnd && (nLoops >= 7 || nBoxDrops >= 20)) {
bTheEnd = true;
nFaderAction = 7;
mFader.gotoAndPlay('fadeoutslow');
}
}
}
}
}
f_Start();
}
movieClip 417 {
}
movieClip 419 {
}
movieClip 420 {
}
movieClip 423 {
}
movieClip 424 {
}
button 426 {
on (press) {
gotoAndPlay('title');
}
}
button 435 {
on (press) {
if (!bPressedStart) {
bPressedStart = true;
_parent.nFaderAction = 2;
_parent.mFader.gotoAndPlay('gears');
}
}
}
movieClip 444 {
frame 239 {
gotoAndPlay(1);
}
}
movieClip 445 {
}
movieClip 454 {
}
button 455 {
on (rollOver) {
if (!mNew.bSelected) {
mNew.gotoAndStop(2);
}
}
on (rollOut) {
if (!mNew.bSelected) {
mNew.gotoAndStop(1);
}
}
on (press) {
if (_parent.f_SavedGame()) {
gotoAndStop('newgame');
} else {
_parent.vMenuSelect.start(0, 0);
mNew.bSelected = true;
mNew.gotoAndStop(3);
_parent.f_NewGame();
_parent.f_PressStart();
}
}
}
button 456 {
on (rollOver) {
mCredits.gotoAndStop(2);
}
on (rollOut) {
mCredits.gotoAndStop(1);
}
on (press) {
mCredits.gotoAndStop(2);
_parent.nFaderAction = 3;
_parent.mFader.gotoAndPlay('gears');
}
}
button 457 {
on (rollOver) {
mGames.gotoAndStop(2);
}
on (rollOut) {
mGames.gotoAndStop(1);
}
on (press) {
getURL('https://www.newgrounds.com/games', '_new');
}
}
movieClip 461 {
frame 15 {
gotoAndPlay(1);
}
}
movieClip 462 {
frame 1 {
stop();
}
}
movieClip 465 {
frame 1 {
stop();
}
}
movieClip 468 {
frame 1 {
stop();
}
}
movieClip 473 {
frame 15 {
gotoAndPlay(1);
}
}
movieClip 474 {
frame 1 {
stop();
}
}
button 475 {
on (rollOver) {
if (!mLoad.bSelected) {
mLoad.gotoAndStop(2);
}
}
on (rollOut) {
if (!mLoad.bSelected) {
mLoad.gotoAndStop(1);
}
}
on (press) {
mLoad.bSelected = true;
mLoad.gotoAndStop(4);
_parent._parent.vMenuSelect.start(0, 0);
_parent._parent.f_Load();
_parent._parent.f_PressStart();
}
}
movieClip 476 {
frame 1 {
if (_parent._parent.f_SavedGame()) {
gotoAndStop(2);
} else {
stop();
}
}
}
movieClip 481 {
frame 15 {
gotoAndPlay(1);
}
}
movieClip 482 {
frame 1 {
stop();
}
}
movieClip 485 {
frame 1 {
stop();
}
}
button 486 {
on (rollOver) {
mNo.gotoAndStop(2);
}
on (rollOut) {
mNo.gotoAndStop(1);
}
on (press) {
mNo.gotoAndStop(2);
gotoAndStop('options');
}
}
button 487 {
on (rollOver) {
if (!mYes.bSelected) {
mYes.gotoAndStop(2);
}
}
on (rollOut) {
if (!mYes.bSelected) {
mYes.gotoAndStop(1);
}
}
on (press) {
mYes.bSelected = true;
mYes.gotoAndStop(3);
_parent.vMenuSelect.start(0, 0);
_parent.f_NewGame();
_parent.f_PressStart();
}
}
movieClip 527 {
frame 1 {
stop();
}
}
button 528 {
on (press) {
getURL('https://tomfulp.newgrounds.com', '_new');
}
}
button 529 {
on (rollOver) {
mBack.gotoAndStop(2);
}
on (rollOut) {
mBack.gotoAndStop(1);
}
on (press) {
mBack.gotoAndStop(2);
_parent.nFaderAction = 2;
_parent.mFader.gotoAndPlay('gears');
}
}
button 530 {
on (press) {
getURL('https://johnnyutah.newgrounds.com', '_new');
}
}
button 531 {
on (press) {
getURL('https://speedo.newgrounds.com', '_new');
}
}
button 532 {
on (press) {
getURL('https://www.newgrounds.com/audio/listen/984437', '_new');
}
}
button 533 {
on (press) {
getURL('https://www.newgrounds.com/audio/listen/110581', '_new');
}
}
button 534 {
on (press) {
getURL('https://www.newgrounds.com/audio/listen/896083', '_new');
}
}
button 535 {
on (press) {
getURL('https://www.newgrounds.com/audio/listen/301590', '_new');
}
}
button 536 {
on (press) {
getURL('https://phantomarcade.newgrounds.com', '_new');
}
}
button 537 {
on (press) {
getURL('https://l0litsmonica.newgrounds.com', '_new');
}
}
button 538 {
on (press) {
getURL('https://www.newgrounds.com/audio/listen/993074', '_new');
}
}
button 539 {
on (press) {
getURL('https://www.newgrounds.com/audio/listen/996269', '_new');
}
}
button 540 {
on (press) {
getURL('https://www.newgrounds.com/audio/listen/627411', '_new');
}
}
movieClip 541 {
frame 337 {
play();
}
frame 344 {
_parent.vGunBreak2.start(0, 0);
}
frame 349 {
_parent.vGunBreak2.start(0, 0);
}
frame 356 {
_parent.vExplosion1.start(0, 0);
}
frame 357 {
_parent.vDropCannon.start(0, 0);
}
frame 383 {
_parent.vFactoryEquip1.start(0, 0);
}
frame 401 {
stop();
}
frame 403 {
play();
}
frame 413 {
stop();
}
}
movieClip 545 {
}
movieClip 546 {
frame 76 {
gotoAndPlay(1);
}
}
movieClip 548 {
}
movieClip 549 {
}
movieClip 550 {
frame 76 {
gotoAndPlay(1);
}
}
movieClip 554 {
}
movieClip 555 {
frame 76 {
gotoAndPlay(1);
}
}
movieClip 557 {
frame 76 {
gotoAndPlay(1);
}
}
movieClip 558 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 60 {
_parent.bFading = true;
play();
}
frame 128 {
_parent.f_FaderAction();
stop();
}
frame 129 {
play();
}
frame 188 {
_parent.bFading = false;
stop();
}
frame 190 {
_parent.bFading = true;
play();
}
frame 370 {
_parent.f_FaderAction();
stop();
}
frame 371 {
play();
}
frame 491 {
_parent.bFading = false;
stop();
}
frame 502 {
play();
}
frame 503 {
_parent.vGears.start(0, 0);
}
frame 536 {
_parent.f_FaderAction();
}
frame 552 {
stop();
}
}
frame 4 {
_root.f_LevelSelectMenu();
}
frame 5 {
_root.f_MapScreen();
}
movieClip 561 {
frame 239 {
gotoAndPlay(1);
}
}
movieClip 564 {
}
movieClip 568 {
}
movieClip 570 {
}
movieClip 575 {
}
button 581 {
on (press) {
_root.f_MapSelect(this);
}
}
movieClip 587 {
}
movieClip 592 {
}
movieClip 597 {
}
movieClip 602 {
}
movieClip 607 {
}
movieClip 612 {
}
movieClip 617 {
}
movieClip 622 {
}
movieClip 627 {
}
movieClip 632 {
}
movieClip 637 {
}
movieClip 642 {
}
movieClip 647 {
}
movieClip 652 {
}
movieClip 657 {
}
movieClip 659 {
}
movieClip 660 {
}
movieClip 661 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 15 {
stop();
}
}
movieClip 662 {
}
movieClip 671 {
frame 1 {
stop();
}
}
movieClip 676 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 30 {
_global.mG.vMedalGet.start(0, 0);
}
frame 126 {
if (_global.mG.nNextMedal > 0) {
_global.mG.f_Medal(_global.mG.nNextMedal);
}
}
}
// unknown tag 88 length 41
movieClip 680 {
}
movieClip 699 {
}
movieClip 700 {
frame 1 {
stop();
}
instance of movieClip 411 {
onClipEvent (enterFrame) {
_global.mG.f_Mouth(_parent);
}
}
}
movieClip 701 {
}
movieClip 702 {
}
movieClip 724 {
}
movieClip 725 {
frame 1 {
stop();
}
instance of movieClip 411 {
onClipEvent (enterFrame) {
_global.mG.f_Mouth(_parent);
}
}
}
movieClip 726 {
}
movieClip 728 {
}
movieClip 742 {
frame 30 {
stop();
}
}
movieClip 748 {
frame 36 {
stop();
}
}
movieClip 765 {
}
movieClip 766 {
}
movieClip 785 {
frame 105 {
stop();
}
}
movieClip 793 {
frame 52 {
stop();
}
}
movieClip 814 {
}
movieClip 828 {
frame 102 {
stop();
}
}
movieClip 838 {
}
movieClip 849 {
}
movieClip 850 {
frame 1 {
stop();
}
instance of movieClip 411 {
onClipEvent (enterFrame) {
_global.mG.f_Mouth(_parent);
}
}
}
movieClip 851 {
}
movieClip 852 {
}
movieClip 857 {
}
movieClip 870 {
}
movieClip 878 {
}
movieClip 879 {
frame 1 {
stop();
}
instance of movieClip 411 {
onClipEvent (enterFrame) {
_global.mG.f_Mouth(_parent);
}
}
}
movieClip 881 {
}
movieClip 882 {
}
movieClip 884 {
}
movieClip 886 {
frame 40 {
stop();
}
}
movieClip 887 {
frame 1 {
stop();
}
}
button 888 {
on (press) {
_root.f_TextClick();
}
on (keyPress 'z') {
_root.f_TextClick();
}
on (keyPress 'Z') {
_root.f_TextClick();
}
}
movieClip 889 {
frame 1 {
stop();
}
}
frame 6 {
f_FactoryInit();
stop();
}
movieClip 892 {
}
movieClip 901 {
}
movieClip 902 {
}
movieClip 906 {
frame 338 {
gotoAndPlay(1);
}
}
movieClip 909 {
}
movieClip 910 {
}
movieClip 911 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
movieClip 916 {
}
movieClip 919 {
frame 1 {
stop();
}
}
movieClip 921 {
}
movieClip 924 {
frame 1 {
stop();
}
}
movieClip 929 {
frame 1 {
stop();
}
}
movieClip 930 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 10 {
stop();
}
frame 11 {
play();
}
frame 21 {
stop();
}
}
movieClip 933 {
}
movieClip 946 {
}
movieClip 947 {
}
movieClip 949 {
}
movieClip 954 {
}
movieClip 960 {
}
movieClip 961 {
}
movieClip 981 {
}
movieClip 995 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
movieClip 1004 {
}
movieClip 1007 {
}
movieClip 1008 {
frame 90 {
gotoAndPlay(1);
}
}
movieClip 1010 {
}
movieClip 1027 {
frame 1 {
stop();
}
}
movieClip 1028 {
}
movieClip 1043 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
movieClip 1044 {
frame 3 {
_global.mG.vBossRattle.start(0, 0);
}
frame 16 {
_global.mG.vBossOpen.start(0, 0);
}
frame 18 {
_global.mG.vBossSteam.start(0, 0);
}
frame 20 {
_global.mG.vBossLaugh.start(0, 0);
}
frame 93 {
_global.mG.vBossScream.start(0, 0);
stop();
}
frame 162 {
_global.mG.vHead.start(0, 0);
play();
}
frame 248 {
_global.mG.f_PostBezos();
stop();
}
}
movieClip 1045 {
frame 69 {
_global.mG.vBossThud1.start(0, 0);
}
frame 70 {
_global.mG.nShakeTimer = 41;
_global.mG.vExplosion1.start(0, 0);
nLoops = 0;
}
frame 78 {
play();
}
frame 104 {
if (_global.mG.aBoss[0].bActive && _global.mG.aBoss[0].nHP <= 0 && _global.mG.aBoss[1].nHP <= 0) {
gotoAndPlay('drop');
} else {
++nLoops;
if (nLoops > 4) {
gotoAndPlay('grab');
} else {
gotoAndPlay('loop');
}
}
}
frame 106 {
play();
}
frame 111 {
_global.mG.vBossServo3.start(0, 0);
}
frame 120 {
mArmL.gotoAndStop('extend');
mArmL.mBody.gotoAndStop(1);
mArmL.mBody.mXY.nHP = mArmL.mBody.mXY.nHPMax;
mArmL.mBody.mXY.bActive = true;
mArmL.mBody.mXY.bAlive = true;
}
frame 137 {
mArmL.mQuad.gotoAndStop(2);
mArmL.gotoAndStop('retract');
nLoops = 0;
}
frame 144 {
_global.mG.vBossServo1.start(0, 0);
}
frame 152 {
_global.mG.mFactory.mBossPrompt.mTarget = mArmL.mBody.mXY;
_global.mG.mFactory.mBossPrompt.bActive = true;
_global.mG.mFactory.mBossPrompt.gotoAndStop(2);
}
frame 153 {
play();
}
frame 188 {
++nLoops;
if (!mArmL.mBody.mXY.bAlive) {
gotoAndPlay('release');
} else {
if (nLoops > 4) {
_global.mG.mFactory.mBossPrompt.bActive = false;
_global.mG.mFactory.mBossPrompt.gotoAndStop(1);
mArmL.mBody.mXY.bActive = false;
mArmL.mBody.mXY.bAlive = false;
gotoAndPlay('smash');
} else {
gotoAndPlay('loop2');
}
}
}
frame 191 {
play();
}
frame 197 {
_global.mG.vBossServo2.start(0, 0);
}
frame 217 {
var nX = mCar._x + _x + _parent._x;
_global.mG.f_NewBoom(nX, _global.mG.nFloorY - 120);
_global.mG.f_NewTire(1, nX - 75, _global.mG.nFloorY, -(5 + random(5)), -(5 + random(15)));
_global.mG.f_NewTire(1, nX + 75, _global.mG.nFloorY, 5 + random(5), -(5 + random(15)));
_global.mG.vExplosion4.start(0, 0);
mArmL.mQuad.gotoAndStop(1);
_global.mG.nShakeTimer = 41;
var nLength = _global.mG.aCarOrder.length;
if (nLength > _global.mG.nArmySize - _global.mG.nQuads + 1) {
_global.mG.aCarOrder.splice(nLength - 1, 1);
}
}
frame 240 {
if (_global.mG.aBoss[0].bActive && _global.mG.aBoss[0].nHP <= 0 && _global.mG.aBoss[1].nHP <= 0) {
gotoAndPlay('drop');
} else {
nLoops = 0;
gotoAndPlay('loop');
}
}
frame 248 {
play();
}
frame 253 {
mArmL.mBody.gotoAndStop(1);
_global.mG.vBossCircuit.start(0, 0);
}
frame 257 {
mArmL.mBody.gotoAndStop(2);
}
frame 259 {
mArmL.mBody.gotoAndStop(1);
}
frame 261 {
mArmL.mBody.gotoAndStop(2);
}
frame 263 {
mArmL.mBody.gotoAndStop(1);
}
frame 265 {
mArmL.mBody.gotoAndStop(2);
}
frame 285 {
_global.mG.vBossServo4.start(0, 0);
}
frame 302 {
_global.mG.nShakeTimer = 31;
_global.mG.vExplosion1.start(0, 0);
mArmL.gotoAndStop('extend');
}
frame 317 {
mArmL.mQuad.gotoAndStop(1);
mArmL.gotoAndStop('retract');
}
frame 338 {
if (_global.mG.aBoss[0].bActive && _global.mG.aBoss[0].nHP <= 0 && _global.mG.aBoss[1].nHP <= 0) {
gotoAndPlay('drop');
} else {
nLoops = 0;
gotoAndPlay('loop');
}
}
frame 350 {
play();
}
frame 366 {
_global.mG.vBossThud2.start(0, 0);
}
frame 367 {
_global.mG.nShakeTimer = 41;
_global.mG.vExplosion2.start(0, 0);
}
frame 431 {
_global.mG.bBossDropInit = true;
_global.mG.vDropCannon.start(0, 0);
stop();
}
}
movieClip 1046 {
frame 1 {
stop();
}
}
movieClip 1049 {
frame 1 {
stop();
}
}
movieClip 1053 {
frame 1 {
stop();
}
}
movieClip 1056 {
frame 1 {
stop();
}
}
movieClip 1059 {
frame 1 {
stop();
}
}
movieClip 1061 {
frame 56 {
_parent.bActive = false;
stop();
}
}
movieClip 1062 {
frame 1 {
stop();
}
}
movieClip 1064 {
}
movieClip 1069 {
}
movieClip 1070 {
frame 1 {
stop();
}
}
movieClip 1073 {
frame 1 {
stop();
}
}
movieClip 1075 {
frame 1 {
stop();
}
}
movieClip 1076 {
}
movieClip 1080 {
frame 1 {
stop();
}
}
movieClip 1081 {
frame 1 {
stop();
}
}
movieClip 1086 {
frame 1 {
stop();
}
}
movieClip 1087 {
}
movieClip 1091 {
frame 1 {
stop();
}
}
movieClip 1095 {
frame 1 {
stop();
}
}
movieClip 1097 {
}
movieClip 1100 {
}
movieClip 1103 {
}
movieClip 1113 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 21 {
stop();
}
frame 22 {
play();
}
frame 41 {
stop();
}
}
movieClip 1122 {
}
movieClip 1123 {
frame 1 {
stop();
}
}
movieClip 1124 {
frame 1 {
bActive = false;
stop();
}
frame 2 {
play();
}
}
movieClip 1132 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 26 {
stop();
}
}
movieClip 1135 {
}
movieClip 1136 {
frame 1 {
stop();
}
}
movieClip 1139 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 5 {
_root.f_DropperSound();
}
}
movieClip 1147 {
}
movieClip 1153 {
frame 1 {
stop();
}
}
movieClip 1155 {
}
movieClip 1157 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
movieClip 1158 {
}
movieClip 1162 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
movieClip 1167 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
movieClip 1171 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
movieClip 1175 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
button 1176 {
on (press, keyPress 'z') {
_global.mG.f_Pressed(1);
}
on (keyPress 'Z') {
_global.mG.f_Pressed(1);
}
on (keyPress '1') {
_global.mG.f_Pressed(1);
}
}
button 1177 {
on (press, keyPress 'x') {
_global.mG.f_Pressed(2);
}
on (keyPress 'X') {
_global.mG.f_Pressed(2);
}
on (keyPress '2') {
_global.mG.f_Pressed(2);
}
}
button 1178 {
on (press, keyPress 'c') {
_global.mG.f_Pressed(3);
}
on (keyPress 'C') {
_global.mG.f_Pressed(3);
}
on (keyPress '3') {
_global.mG.f_Pressed(3);
}
}
movieClip 1183 {
}
movieClip 1184 {
frame 1 {
stop();
}
}
movieClip 1193 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 45 {
stop();
}
frame 54 {
play();
}
}
button 1194 {
on (press, keyPress 'r') {
_global.mG.gotoAndStop('reset');
}
on (keyPress 'R') {
_global.mG.gotoAndStop('reset');
}
}
button 1195 {
on (press, keyPress 'm') {
_global.mG.gotoAndStop('exitmap');
}
on (keyPress 'M') {
_global.mG.gotoAndStop('exitmap');
}
}
movieClip 1196 {
frame 1 {
stop();
}
}
movieClip 1197 {
frame 1 {
stop();
}
}
movieClip 1204 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 5 {
_parent._parent.vReady.start(0, 0);
}
frame 18 {
_parent.mLights.gotoAndStop(2);
_parent._parent.vStart1.start(0, 0);
}
frame 64 {
_parent._parent.vSet.start(0, 0);
}
frame 81 {
_parent.mLights.gotoAndStop(3);
_parent._parent.vStart1.start(0, 0);
}
frame 127 {
_parent._parent.vDrop.start(0, 0);
}
frame 141 {
_parent.mLights.gotoAndStop(4);
_parent._parent.vStart2.start(0, 0);
}
frame 214 {
_parent._parent.bIntroEnd = true;
stop();
}
}
movieClip 1209 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
movieClip 1224 {
}
movieClip 1226 {
}
movieClip 1227 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
movieClip 1228 {
}
instance of movieClip 417 {
onClipEvent (enterFrame) {
_root.f_Factory();
}
}
frame 7 {
f_BattleInit();
}
movieClip 1249 {
}
movieClip 1257 {
}
movieClip 1348 {
}
movieClip 1350 {
}
movieClip 1361 {
}
movieClip 1384 {
}
movieClip 1400 {
frame 1 {
stop();
}
}
movieClip 1405 {
frame 1 {
stop();
}
}
movieClip 1406 {
}
instance of movieClip 417 {
onClipEvent (enterFrame) {
_root.f_Battle();
}
}
frame 8 {
f_DeliverInit();
}
movieClip 1416 {
}
movieClip 1418 {
frame 15 {
stop();
}
}
movieClip 1419 {
frame 1 {
stop();
}
}
movieClip 1423 {
frame 151 {
gotoAndPlay(1);
}
}
movieClip 1425 {
}
movieClip 1426 {
frame 1 {
stop();
}
}
movieClip 1432 {
frame 1 {
stop();
}
}
movieClip 1433 {
}
movieClip 1434 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
button 1435 {
on (press) {
_parent.f_DropBox();
}
}
movieClip 1436 {
}
instance of movieClip 417 {
onClipEvent (enterFrame) {
_root.f_Deliver();
}
}
movieClip 1438 {
frame 180 {
_global.mG.nFaderAction = 6;
_global.mG.mFader.gotoAndPlay('fadeoutslow');
stop();
}
}
frame 10 {
f_StopMusic();
gotoAndStop('factory');
}
frame 11 {
f_StopMusic();
gotoAndStop('map');
}