Frame 1
stopAllSounds();
Frame 2
if (_totalframes > _framesloaded) {
gotoAndPlay (1);
}
schk = false;
stul = "http://uploads.ungrounded.net/";
if (_url.substr(0, stul.length) == stul) {
schk = true;
}
if (schk == false) {
gotoAndStop (1);
}
Frame 3
px = new Array(5);
py = new Array(5);
ps = new Array(5);
psize = new Array(5);
pdelay = new Array(5);
pshot1 = new Array(5);
pst = new Array(30);
psd = new Array(30);
pss = new Array(30);
psf = new Array(30);
psx = new Array(30);
psy = new Array(30);
var psn;
var pn;
var score1;
var score2;
var bx;
var by;
var bxd;
var byd;
var powt;
var powb;
var lv;
var h1;
var h2;
var h3;
var h4;
var h5;
bing1 = new Sound(this);
bing1.attachSound("6_Blip4.wav");
bing2 = new Sound(this);
bing2.attachSound("6_Pup1.wav");
scores = new Sound(this);
scores.attachSound("6_herodeath.wav");
function pcontrols() {
if (Key.isDown(38)) {
py[1] = py[1] - ps[1];
if (py[1] < 25) {
py[1] = 25;
}
}
if (Key.isDown(40)) {
py[1] = py[1] + ps[1];
if (py[1] > 455) {
py[1] = 455;
}
}
if ((Key.isDown(65) and (pst[psn] == 0)) and (pdelay[1] == 0)) {
switch (pshot1[1]) {
case 1 :
pst[psn] = 1;
psd[psn] = 5;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
pdelay[1] = 8;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 2 :
pst[psn] = 2;
psd[psn] = 5;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 25;
pdelay[1] = 14;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 3 :
pst[psn] = 1;
psd[psn] = 5;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 4;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 6;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
pdelay[1] = 28;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 4 :
pst[psn] = 4;
psd[psn] = 5;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 45;
pdelay[1] = 18;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 5 :
pst[psn] = 5;
psd[psn] = random(2);
pss[psn] = 0;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 45;
pdelay[1] = 16;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 6 :
pst[psn] = 6;
psd[psn] = 5;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 85;
pdelay[1] = 18;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 7 :
pst[psn] = 7;
psd[psn] = 3;
pss[psn] = 0;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 105;
pdelay[1] = 30;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 11 :
pst[psn] = 1;
psd[psn] = 5;
psx[psn] = px[1] + 5;
psy[psn] = py[1] + (10 * psize[1]);
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 5;
psx[psn] = px[1] + 5;
psy[psn] = py[1] - (10 * psize[1]);
psf[psn] = 5;
pdelay[1] = 9;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 12 :
pst[psn] = 12;
psd[psn] = 5;
psx[psn] = px[1] + 15;
psy[psn] = py[1];
psf[psn] = 225;
pdelay[1] = 14;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 13 :
pst[psn] = 1;
psd[psn] = 5;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 4;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 6;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 3;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 7;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 2;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 8;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 1;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 9;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
pdelay[1] = 50;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 14 :
pst[psn] = 14;
psd[psn] = 5;
psx[psn] = px[1] + 15;
psy[psn] = py[1];
psf[psn] = 245;
pdelay[1] = 20;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 15 :
pst[psn] = 15;
psd[psn] = random(2);
pss[psn] = 0;
psx[psn] = px[1] + 15;
psy[psn] = py[1];
psf[psn] = 265;
pdelay[1] = 16;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 16 :
pst[psn] = 16;
psd[psn] = 5;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 85;
pdelay[1] = 20;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 17 :
pst[psn] = 17;
psd[psn] = 3;
pss[psn] = 0;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 305;
pdelay[1] = 30;
psn++;
if (psn <= 30) {
break;
}
psn = 1;
}
}
h1 = 1;
while (h1 <= 30) {
if ((((psx[h1] < -50) or (psx[h1] > 690)) or (psy[h1] < -50)) or (psy[h1] > 530)) {
pst[h1] = 0;
}
switch (pst[h1]) {
case 0 :
psf[h1] = 1;
psx[h1] = -2000;
psy[h1] = -2000;
break;
case 1 :
psf[h1] = psd[h1] + 1;
switch (psd[h1]) {
case 1 :
psy[h1] = psy[h1] - 10;
break;
case 2 :
psy[h1] = psy[h1] - 8;
psx[h1] = psx[h1] + 3;
break;
case 3 :
psy[h1] = psy[h1] - 6;
psx[h1] = psx[h1] + 6;
break;
case 4 :
psy[h1] = psy[h1] - 3;
psx[h1] = psx[h1] + 8;
break;
case 5 :
psx[h1] = psx[h1] + 10;
break;
case 6 :
psy[h1] = psy[h1] + 3;
psx[h1] = psx[h1] + 8;
break;
case 7 :
psy[h1] = psy[h1] + 6;
psx[h1] = psx[h1] + 6;
break;
case 8 :
psy[h1] = psy[h1] + 8;
psx[h1] = psx[h1] + 3;
break;
case 9 :
psy[h1] = psy[h1] + 10;
break;
case 10 :
psy[h1] = psy[h1] + 8;
psx[h1] = psx[h1] - 3;
break;
case 11 :
psy[h1] = psy[h1] + 6;
psx[h1] = psx[h1] - 6;
break;
case 12 :
psy[h1] = psy[h1] + 3;
psx[h1] = psx[h1] - 8;
break;
case 13 :
psx[h1] = psx[h1] - 10;
break;
case 14 :
psy[h1] = psy[h1] - 3;
psx[h1] = psx[h1] - 8;
break;
case 15 :
psy[h1] = psy[h1] - 6;
psx[h1] = psx[h1] - 6;
break;
case 16 :
psy[h1] = psy[h1] - 8;
psx[h1] = psx[h1] - 3;
}
break;
case 2 :
psf[h1] = 20 + psd[h1];
switch (psd[h1]) {
case 5 :
psx[h1] = psx[h1] + 35;
break;
case 13 :
psx[h1] = psx[h1] - 35;
}
break;
case 4 :
psf[h1] = 41 + psd[h1];
switch (psd[h1]) {
case 1 :
psy[h1] = psy[h1] - 10;
break;
case 2 :
psy[h1] = psy[h1] - 8;
psx[h1] = psx[h1] + 3;
break;
case 3 :
psy[h1] = psy[h1] - 6;
psx[h1] = psx[h1] + 6;
break;
case 4 :
psy[h1] = psy[h1] - 3;
psx[h1] = psx[h1] + 8;
break;
case 5 :
psx[h1] = psx[h1] + 10;
break;
case 6 :
psy[h1] = psy[h1] + 3;
psx[h1] = psx[h1] + 8;
break;
case 7 :
psy[h1] = psy[h1] + 6;
psx[h1] = psx[h1] + 6;
break;
case 8 :
psy[h1] = psy[h1] + 8;
psx[h1] = psx[h1] + 3;
break;
case 9 :
psy[h1] = psy[h1] + 10;
break;
case 10 :
psy[h1] = psy[h1] + 8;
psx[h1] = psx[h1] - 3;
break;
case 11 :
psy[h1] = psy[h1] + 6;
psx[h1] = psx[h1] - 6;
break;
case 12 :
psy[h1] = psy[h1] + 3;
psx[h1] = psx[h1] - 8;
break;
case 13 :
psx[h1] = psx[h1] - 10;
break;
case 14 :
psy[h1] = psy[h1] - 3;
psx[h1] = psx[h1] - 8;
break;
case 15 :
psy[h1] = psy[h1] - 6;
psx[h1] = psx[h1] - 6;
break;
case 16 :
psy[h1] = psy[h1] - 8;
psx[h1] = psx[h1] - 3;
}
break;
case 5 :
psf[h1] = 61;
psy[h1] = psy[h1] + pss[h1];
switch (psd[h1]) {
case 0 :
psx[h1] = psx[h1] + 7;
pss[h1]++;
if (pss[h1] > 10) {
psd[h1] = 1;
}
break;
case 1 :
psx[h1] = psx[h1] + 7;
pss[h1]--;
if (pss[h1] < -10) {
psd[h1] = 0;
}
break;
case 2 :
psx[h1] = psx[h1] - 7;
pss[h1]++;
if (pss[h1] > 10) {
psd[h1] = 3;
}
break;
case 3 :
psx[h1] = psx[h1] - 7;
pss[h1]--;
if (pss[h1] >= -10) {
break;
}
psd[h1] = 2;
}
break;
case 6 :
psf[h1] = 81 + psd[h1];
switch (psd[h1]) {
case 5 :
psx[h1] = psx[h1] + 7;
break;
case 13 :
psx[h1] = psx[h1] - 7;
}
break;
case 7 :
psf[h1] = 102;
psx[h1] = psx[h1] + psd[h1];
psy[h1] = psy[h1] + pss[h1];
if ((bx < psx[h1]) and (psd[h1] > -10)) {
psd[h1]--;
}
if ((bx > psx[h1]) and (psd[h1] < 10)) {
psd[h1]++;
}
if ((by < psy[h1]) and (pss[h1] > -10)) {
pss[h1]--;
}
if ((by > psy[h1]) and (pss[h1] < 10)) {
pss[h1]++;
}
break;
case 12 :
psf[h1] = 220 + psd[h1];
switch (psd[h1]) {
case 5 :
psx[h1] = psx[h1] + 50;
break;
case 13 :
psx[h1] = psx[h1] - 50;
}
break;
case 14 :
psf[h1] = 241 + psd[h1];
switch (psd[h1]) {
case 1 :
psy[h1] = psy[h1] - 10;
break;
case 2 :
psy[h1] = psy[h1] - 8;
psx[h1] = psx[h1] + 3;
break;
case 3 :
psy[h1] = psy[h1] - 6;
psx[h1] = psx[h1] + 6;
break;
case 4 :
psy[h1] = psy[h1] - 3;
psx[h1] = psx[h1] + 8;
break;
case 5 :
psx[h1] = psx[h1] + 10;
break;
case 6 :
psy[h1] = psy[h1] + 3;
psx[h1] = psx[h1] + 8;
break;
case 7 :
psy[h1] = psy[h1] + 6;
psx[h1] = psx[h1] + 6;
break;
case 8 :
psy[h1] = psy[h1] + 8;
psx[h1] = psx[h1] + 3;
break;
case 9 :
psy[h1] = psy[h1] + 10;
break;
case 10 :
psy[h1] = psy[h1] + 8;
psx[h1] = psx[h1] - 3;
break;
case 11 :
psy[h1] = psy[h1] + 6;
psx[h1] = psx[h1] - 6;
break;
case 12 :
psy[h1] = psy[h1] + 3;
psx[h1] = psx[h1] - 8;
break;
case 13 :
psx[h1] = psx[h1] - 10;
break;
case 14 :
psy[h1] = psy[h1] - 3;
psx[h1] = psx[h1] - 8;
break;
case 15 :
psy[h1] = psy[h1] - 6;
psx[h1] = psx[h1] - 6;
break;
case 16 :
psy[h1] = psy[h1] - 8;
psx[h1] = psx[h1] - 3;
}
break;
case 15 :
psf[h1] = 261;
psy[h1] = psy[h1] + pss[h1];
switch (psd[h1]) {
case 0 :
psx[h1] = psx[h1] + 6;
pss[h1]++;
if (pss[h1] > 11) {
psd[h1] = 1;
}
break;
case 1 :
psx[h1] = psx[h1] + 6;
pss[h1]--;
if (pss[h1] < -11) {
psd[h1] = 0;
}
break;
case 2 :
psx[h1] = psx[h1] - 6;
pss[h1]++;
if (pss[h1] > 11) {
psd[h1] = 3;
}
break;
case 3 :
psx[h1] = psx[h1] - 6;
pss[h1]--;
if (pss[h1] >= -11) {
break;
}
psd[h1] = 2;
}
break;
case 16 :
psf[h1] = 281 + psd[h1];
switch (psd[h1]) {
case 5 :
psx[h1] = psx[h1] + 7;
break;
case 13 :
psx[h1] = psx[h1] - 7;
}
break;
case 17 :
psf[h1] = 302;
psx[h1] = psx[h1] + psd[h1];
psy[h1] = psy[h1] + pss[h1];
if ((bx < psx[h1]) and (psd[h1] > -12)) {
psd[h1]--;
}
if ((bx > psx[h1]) and (psd[h1] < 12)) {
psd[h1]++;
}
if ((by < psy[h1]) and (pss[h1] > -12)) {
pss[h1]--;
}
if (!((by > psy[h1]) and (pss[h1] < 12))) {
break;
}
pss[h1]++;
}
h1++;
}
if (pdelay[1] > 0) {
pdelay[1]--;
}
}
function pcontrols2() {
if (Key.isDown(38)) {
py[1] = py[1] - ps[1];
if (py[1] < 25) {
py[1] = 25;
}
}
if (Key.isDown(40)) {
py[1] = py[1] + ps[1];
if (py[1] > 455) {
py[1] = 455;
}
}
if ((Key.isDown(37) and (pst[psn] == 0)) and (pdelay[1] == 0)) {
switch (pshot1[1]) {
case 1 :
pst[psn] = 1;
psd[psn] = 5;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
pdelay[1] = 8;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 2 :
pst[psn] = 2;
psd[psn] = 5;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 25;
pdelay[1] = 14;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 3 :
pst[psn] = 1;
psd[psn] = 5;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 4;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 6;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
pdelay[1] = 28;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 4 :
pst[psn] = 4;
psd[psn] = 5;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 45;
pdelay[1] = 18;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 5 :
pst[psn] = 5;
psd[psn] = random(2);
pss[psn] = 0;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 45;
pdelay[1] = 16;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 6 :
pst[psn] = 6;
psd[psn] = 5;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 85;
pdelay[1] = 18;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 7 :
pst[psn] = 7;
psd[psn] = 3;
pss[psn] = 0;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 105;
pdelay[1] = 30;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 11 :
pst[psn] = 1;
psd[psn] = 5;
psx[psn] = px[1] + 5;
psy[psn] = py[1] + (10 * psize[1]);
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 5;
psx[psn] = px[1] + 5;
psy[psn] = py[1] - (10 * psize[1]);
psf[psn] = 5;
pdelay[1] = 9;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 12 :
pst[psn] = 12;
psd[psn] = 5;
psx[psn] = px[1] + 15;
psy[psn] = py[1];
psf[psn] = 225;
pdelay[1] = 14;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 13 :
pst[psn] = 1;
psd[psn] = 5;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 4;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 6;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 3;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 7;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 2;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 8;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 1;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 9;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 5;
pdelay[1] = 50;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 14 :
pst[psn] = 14;
psd[psn] = 5;
psx[psn] = px[1] + 15;
psy[psn] = py[1];
psf[psn] = 245;
pdelay[1] = 20;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 15 :
pst[psn] = 15;
psd[psn] = random(2);
pss[psn] = 0;
psx[psn] = px[1] + 15;
psy[psn] = py[1];
psf[psn] = 265;
pdelay[1] = 16;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 16 :
pst[psn] = 16;
psd[psn] = 5;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 85;
pdelay[1] = 20;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 17 :
pst[psn] = 17;
psd[psn] = 3;
pss[psn] = 0;
psx[psn] = px[1] + 5;
psy[psn] = py[1];
psf[psn] = 305;
pdelay[1] = 30;
psn++;
if (psn <= 30) {
break;
}
psn = 1;
}
}
h1 = 1;
while (h1 <= 30) {
if ((((psx[h1] < -50) or (psx[h1] > 690)) or (psy[h1] < -50)) or (psy[h1] > 530)) {
pst[h1] = 0;
}
switch (pst[h1]) {
case 0 :
psf[h1] = 1;
psx[h1] = -2000;
psy[h1] = -2000;
break;
case 1 :
psf[h1] = psd[h1] + 1;
switch (psd[h1]) {
case 1 :
psy[h1] = psy[h1] - 10;
break;
case 2 :
psy[h1] = psy[h1] - 8;
psx[h1] = psx[h1] + 3;
break;
case 3 :
psy[h1] = psy[h1] - 6;
psx[h1] = psx[h1] + 6;
break;
case 4 :
psy[h1] = psy[h1] - 3;
psx[h1] = psx[h1] + 8;
break;
case 5 :
psx[h1] = psx[h1] + 10;
break;
case 6 :
psy[h1] = psy[h1] + 3;
psx[h1] = psx[h1] + 8;
break;
case 7 :
psy[h1] = psy[h1] + 6;
psx[h1] = psx[h1] + 6;
break;
case 8 :
psy[h1] = psy[h1] + 8;
psx[h1] = psx[h1] + 3;
break;
case 9 :
psy[h1] = psy[h1] + 10;
break;
case 10 :
psy[h1] = psy[h1] + 8;
psx[h1] = psx[h1] - 3;
break;
case 11 :
psy[h1] = psy[h1] + 6;
psx[h1] = psx[h1] - 6;
break;
case 12 :
psy[h1] = psy[h1] + 3;
psx[h1] = psx[h1] - 8;
break;
case 13 :
psx[h1] = psx[h1] - 10;
break;
case 14 :
psy[h1] = psy[h1] - 3;
psx[h1] = psx[h1] - 8;
break;
case 15 :
psy[h1] = psy[h1] - 6;
psx[h1] = psx[h1] - 6;
break;
case 16 :
psy[h1] = psy[h1] - 8;
psx[h1] = psx[h1] - 3;
}
break;
case 2 :
psf[h1] = 20 + psd[h1];
switch (psd[h1]) {
case 5 :
psx[h1] = psx[h1] + 35;
break;
case 13 :
psx[h1] = psx[h1] - 35;
}
break;
case 4 :
psf[h1] = 41 + psd[h1];
switch (psd[h1]) {
case 1 :
psy[h1] = psy[h1] - 10;
break;
case 2 :
psy[h1] = psy[h1] - 8;
psx[h1] = psx[h1] + 3;
break;
case 3 :
psy[h1] = psy[h1] - 6;
psx[h1] = psx[h1] + 6;
break;
case 4 :
psy[h1] = psy[h1] - 3;
psx[h1] = psx[h1] + 8;
break;
case 5 :
psx[h1] = psx[h1] + 10;
break;
case 6 :
psy[h1] = psy[h1] + 3;
psx[h1] = psx[h1] + 8;
break;
case 7 :
psy[h1] = psy[h1] + 6;
psx[h1] = psx[h1] + 6;
break;
case 8 :
psy[h1] = psy[h1] + 8;
psx[h1] = psx[h1] + 3;
break;
case 9 :
psy[h1] = psy[h1] + 10;
break;
case 10 :
psy[h1] = psy[h1] + 8;
psx[h1] = psx[h1] - 3;
break;
case 11 :
psy[h1] = psy[h1] + 6;
psx[h1] = psx[h1] - 6;
break;
case 12 :
psy[h1] = psy[h1] + 3;
psx[h1] = psx[h1] - 8;
break;
case 13 :
psx[h1] = psx[h1] - 10;
break;
case 14 :
psy[h1] = psy[h1] - 3;
psx[h1] = psx[h1] - 8;
break;
case 15 :
psy[h1] = psy[h1] - 6;
psx[h1] = psx[h1] - 6;
break;
case 16 :
psy[h1] = psy[h1] - 8;
psx[h1] = psx[h1] - 3;
}
break;
case 5 :
psf[h1] = 61;
psy[h1] = psy[h1] + pss[h1];
switch (psd[h1]) {
case 0 :
psx[h1] = psx[h1] + 7;
pss[h1]++;
if (pss[h1] > 10) {
psd[h1] = 1;
}
break;
case 1 :
psx[h1] = psx[h1] + 7;
pss[h1]--;
if (pss[h1] < -10) {
psd[h1] = 0;
}
break;
case 2 :
psx[h1] = psx[h1] - 7;
pss[h1]++;
if (pss[h1] > 10) {
psd[h1] = 3;
}
break;
case 3 :
psx[h1] = psx[h1] - 7;
pss[h1]--;
if (pss[h1] >= -10) {
break;
}
psd[h1] = 2;
}
break;
case 6 :
psf[h1] = 81 + psd[h1];
switch (psd[h1]) {
case 5 :
psx[h1] = psx[h1] + 7;
break;
case 13 :
psx[h1] = psx[h1] - 7;
}
break;
case 7 :
psf[h1] = 102;
psx[h1] = psx[h1] + psd[h1];
psy[h1] = psy[h1] + pss[h1];
if ((bx < psx[h1]) and (psd[h1] > -10)) {
psd[h1]--;
}
if ((bx > psx[h1]) and (psd[h1] < 10)) {
psd[h1]++;
}
if ((by < psy[h1]) and (pss[h1] > -10)) {
pss[h1]--;
}
if ((by > psy[h1]) and (pss[h1] < 10)) {
pss[h1]++;
}
break;
case 12 :
psf[h1] = 220 + psd[h1];
switch (psd[h1]) {
case 5 :
psx[h1] = psx[h1] + 50;
break;
case 13 :
psx[h1] = psx[h1] - 50;
}
break;
case 14 :
psf[h1] = 241 + psd[h1];
switch (psd[h1]) {
case 1 :
psy[h1] = psy[h1] - 10;
break;
case 2 :
psy[h1] = psy[h1] - 8;
psx[h1] = psx[h1] + 3;
break;
case 3 :
psy[h1] = psy[h1] - 6;
psx[h1] = psx[h1] + 6;
break;
case 4 :
psy[h1] = psy[h1] - 3;
psx[h1] = psx[h1] + 8;
break;
case 5 :
psx[h1] = psx[h1] + 10;
break;
case 6 :
psy[h1] = psy[h1] + 3;
psx[h1] = psx[h1] + 8;
break;
case 7 :
psy[h1] = psy[h1] + 6;
psx[h1] = psx[h1] + 6;
break;
case 8 :
psy[h1] = psy[h1] + 8;
psx[h1] = psx[h1] + 3;
break;
case 9 :
psy[h1] = psy[h1] + 10;
break;
case 10 :
psy[h1] = psy[h1] + 8;
psx[h1] = psx[h1] - 3;
break;
case 11 :
psy[h1] = psy[h1] + 6;
psx[h1] = psx[h1] - 6;
break;
case 12 :
psy[h1] = psy[h1] + 3;
psx[h1] = psx[h1] - 8;
break;
case 13 :
psx[h1] = psx[h1] - 10;
break;
case 14 :
psy[h1] = psy[h1] - 3;
psx[h1] = psx[h1] - 8;
break;
case 15 :
psy[h1] = psy[h1] - 6;
psx[h1] = psx[h1] - 6;
break;
case 16 :
psy[h1] = psy[h1] - 8;
psx[h1] = psx[h1] - 3;
}
break;
case 15 :
psf[h1] = 261;
psy[h1] = psy[h1] + pss[h1];
switch (psd[h1]) {
case 0 :
psx[h1] = psx[h1] + 6;
pss[h1]++;
if (pss[h1] > 11) {
psd[h1] = 1;
}
break;
case 1 :
psx[h1] = psx[h1] + 6;
pss[h1]--;
if (pss[h1] < -11) {
psd[h1] = 0;
}
break;
case 2 :
psx[h1] = psx[h1] - 6;
pss[h1]++;
if (pss[h1] > 11) {
psd[h1] = 3;
}
break;
case 3 :
psx[h1] = psx[h1] - 6;
pss[h1]--;
if (pss[h1] >= -11) {
break;
}
psd[h1] = 2;
}
break;
case 16 :
psf[h1] = 281 + psd[h1];
switch (psd[h1]) {
case 5 :
psx[h1] = psx[h1] + 7;
break;
case 13 :
psx[h1] = psx[h1] - 7;
}
break;
case 17 :
psf[h1] = 302;
psx[h1] = psx[h1] + psd[h1];
psy[h1] = psy[h1] + pss[h1];
if ((bx < psx[h1]) and (psd[h1] > -12)) {
psd[h1]--;
}
if ((bx > psx[h1]) and (psd[h1] < 12)) {
psd[h1]++;
}
if ((by < psy[h1]) and (pss[h1] > -12)) {
pss[h1]--;
}
if (!((by > psy[h1]) and (pss[h1] < 12))) {
break;
}
pss[h1]++;
}
h1++;
}
if (pdelay[1] > 0) {
pdelay[1]--;
}
}
function pcontrols3() {
if (Key.isDown(87)) {
py[4] = py[4] - ps[4];
if (py[4] < 25) {
py[4] = 25;
}
}
if (Key.isDown(83)) {
py[4] = py[4] + ps[4];
if (py[4] > 455) {
py[4] = 455;
}
}
if ((Key.isDown(65) and (pst[psn] == 0)) and (pdelay[4] == 0)) {
switch (pshot1[4]) {
case 1 :
pst[psn] = 1;
psd[psn] = 5;
psx[psn] = px[4] + 5;
psy[psn] = py[4];
psf[psn] = 5;
pdelay[4] = 8;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 2 :
pst[psn] = 2;
psd[psn] = 5;
psx[psn] = px[4] + 5;
psy[psn] = py[4];
psf[psn] = 25;
pdelay[4] = 14;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 3 :
pst[psn] = 1;
psd[psn] = 5;
psx[psn] = px[4] + 5;
psy[psn] = py[4];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 4;
psx[psn] = px[4] + 5;
psy[psn] = py[4];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 6;
psx[psn] = px[4] + 5;
psy[psn] = py[4];
psf[psn] = 5;
pdelay[4] = 28;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 4 :
pst[psn] = 4;
psd[psn] = 5;
psx[psn] = px[4] + 5;
psy[psn] = py[4];
psf[psn] = 45;
pdelay[4] = 18;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 5 :
pst[psn] = 5;
psd[psn] = random(2);
pss[psn] = 0;
psx[psn] = px[4] + 5;
psy[psn] = py[4];
psf[psn] = 45;
pdelay[4] = 16;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 6 :
pst[psn] = 6;
psd[psn] = 5;
psx[psn] = px[4] + 5;
psy[psn] = py[4];
psf[psn] = 85;
pdelay[4] = 18;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 7 :
pst[psn] = 7;
psd[psn] = 3;
pss[psn] = 0;
psx[psn] = px[4] + 5;
psy[psn] = py[4];
psf[psn] = 105;
pdelay[4] = 30;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 11 :
pst[psn] = 1;
psd[psn] = 5;
psx[psn] = px[4] + 5;
psy[psn] = py[4] + (10 * psize[4]);
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 5;
psx[psn] = px[4] + 5;
psy[psn] = py[4] - (10 * psize[4]);
psf[psn] = 5;
pdelay[4] = 9;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 12 :
pst[psn] = 12;
psd[psn] = 5;
psx[psn] = px[4] + 15;
psy[psn] = py[4];
psf[psn] = 225;
pdelay[4] = 14;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 13 :
pst[psn] = 1;
psd[psn] = 5;
psx[psn] = px[4] + 5;
psy[psn] = py[4];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 4;
psx[psn] = px[4] + 5;
psy[psn] = py[4];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 6;
psx[psn] = px[4] + 5;
psy[psn] = py[4];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 3;
psx[psn] = px[4] + 5;
psy[psn] = py[4];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 7;
psx[psn] = px[4] + 5;
psy[psn] = py[4];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 2;
psx[psn] = px[4] + 5;
psy[psn] = py[4];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 8;
psx[psn] = px[4] + 5;
psy[psn] = py[4];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 1;
psx[psn] = px[4] + 5;
psy[psn] = py[4];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 9;
psx[psn] = px[4] + 5;
psy[psn] = py[4];
psf[psn] = 5;
pdelay[4] = 50;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 14 :
pst[psn] = 14;
psd[psn] = 5;
psx[psn] = px[4] + 15;
psy[psn] = py[4];
psf[psn] = 245;
pdelay[4] = 20;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 15 :
pst[psn] = 15;
psd[psn] = random(2);
pss[psn] = 0;
psx[psn] = px[4] + 15;
psy[psn] = py[4];
psf[psn] = 265;
pdelay[4] = 16;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 16 :
pst[psn] = 16;
psd[psn] = 5;
psx[psn] = px[4] + 5;
psy[psn] = py[4];
psf[psn] = 85;
pdelay[4] = 20;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 17 :
pst[psn] = 17;
psd[psn] = 3;
pss[psn] = 0;
psx[psn] = px[4] + 5;
psy[psn] = py[4];
psf[psn] = 305;
pdelay[4] = 30;
psn++;
if (psn <= 30) {
break;
}
psn = 1;
}
}
if (pdelay[4] > 0) {
pdelay[4]--;
}
}
function pcontrols4() {
if (Key.isDown(87)) {
py[2] = py[2] - ps[2];
if (py[2] < 25) {
py[2] = 25;
}
}
if (Key.isDown(83)) {
py[2] = py[2] + ps[2];
if (py[2] > 455) {
py[2] = 455;
}
}
if ((Key.isDown(65) and (pst[psn] == 0)) and (pdelay[2] == 0)) {
switch (pshot1[2]) {
case 1 :
pst[psn] = 1;
psd[psn] = 13;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
pdelay[2] = 8;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 2 :
pst[psn] = 2;
psd[psn] = 13;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 25;
pdelay[2] = 14;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 3 :
pst[psn] = 1;
psd[psn] = 13;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 14;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 12;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
pdelay[2] = 28;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 4 :
pst[psn] = 4;
psd[psn] = 13;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 45;
pdelay[2] = 18;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 5 :
pst[psn] = 5;
psd[psn] = random(2) + 2;
pss[psn] = 0;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 45;
pdelay[2] = 16;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 6 :
pst[psn] = 6;
psd[psn] = 13;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 85;
pdelay[2] = 18;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 7 :
pst[psn] = 7;
psd[psn] = -3;
pss[psn] = 0;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 105;
pdelay[2] = 30;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 11 :
pst[psn] = 1;
psd[psn] = 13;
psx[psn] = px[2] - 15;
psy[psn] = py[2] + (10 * psize[1]);
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 13;
psx[psn] = px[2] - 15;
psy[psn] = py[2] - (10 * psize[1]);
psf[psn] = 5;
pdelay[2] = 9;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 12 :
pst[psn] = 12;
psd[psn] = 13;
psx[psn] = px[2] - 25;
psy[psn] = py[2];
psf[psn] = 225;
pdelay[2] = 14;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 13 :
pst[psn] = 1;
psd[psn] = 13;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 12;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 14;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 11;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 15;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 10;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 16;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 1;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 9;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
pdelay[2] = 50;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 14 :
pst[psn] = 14;
psd[psn] = 13;
psx[psn] = px[2] - 25;
psy[psn] = py[2];
psf[psn] = 245;
pdelay[2] = 20;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 15 :
pst[psn] = 15;
psd[psn] = random(2) + 2;
pss[psn] = 0;
psx[psn] = px[2] - 25;
psy[psn] = py[2];
psf[psn] = 265;
pdelay[2] = 16;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 16 :
pst[psn] = 16;
psd[psn] = 13;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 85;
pdelay[2] = 20;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 17 :
pst[psn] = 17;
psd[psn] = -3;
pss[psn] = 0;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 305;
pdelay[2] = 30;
psn++;
if (psn <= 30) {
break;
}
psn = 1;
}
}
if (pdelay[2] > 0) {
pdelay[2]--;
}
}
function bcontrols() {
if (bxd < 1) {
if (py[2] < 240) {
py[2] = py[2] + (ps[2] / 2);
}
if (py[2] > 240) {
py[2] = py[2] - (ps[2] / 2);
}
}
if (bxd > 0) {
if (by < py[2]) {
py[2] = py[2] - ps[2];
}
if (by > py[2]) {
py[2] = py[2] + ps[2];
}
}
h1 = 2;
h2 = random(100);
if ((((h2 < 10) and (bxd > 0)) and (pst[psn] == 0)) and (pdelay[2] == 0)) {
switch (pshot1[2]) {
case 1 :
pst[psn] = 1;
psd[psn] = 13;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
pdelay[2] = 8;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 2 :
pst[psn] = 2;
psd[psn] = 13;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 25;
pdelay[2] = 14;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 3 :
pst[psn] = 1;
psd[psn] = 13;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 14;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 12;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
pdelay[2] = 28;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 4 :
pst[psn] = 4;
psd[psn] = 13;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 45;
pdelay[2] = 18;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 5 :
pst[psn] = 5;
psd[psn] = random(2) + 2;
pss[psn] = 0;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 45;
pdelay[2] = 16;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 6 :
pst[psn] = 6;
psd[psn] = 13;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 85;
pdelay[2] = 18;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 7 :
pst[psn] = 7;
psd[psn] = -3;
pss[psn] = 0;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 105;
pdelay[2] = 30;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 11 :
pst[psn] = 1;
psd[psn] = 13;
psx[psn] = px[2] - 15;
psy[psn] = py[2] + (10 * psize[1]);
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 13;
psx[psn] = px[2] - 15;
psy[psn] = py[2] - (10 * psize[1]);
psf[psn] = 5;
pdelay[2] = 9;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 12 :
pst[psn] = 12;
psd[psn] = 13;
psx[psn] = px[2] - 25;
psy[psn] = py[2];
psf[psn] = 225;
pdelay[2] = 14;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 13 :
pst[psn] = 1;
psd[psn] = 13;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 12;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 14;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 11;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 15;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 10;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 16;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 1;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 9;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 5;
pdelay[2] = 50;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 14 :
pst[psn] = 14;
psd[psn] = 13;
psx[psn] = px[2] - 25;
psy[psn] = py[2];
psf[psn] = 245;
pdelay[2] = 20;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 15 :
pst[psn] = 15;
psd[psn] = random(2) + 2;
pss[psn] = 0;
psx[psn] = px[2] - 25;
psy[psn] = py[2];
psf[psn] = 265;
pdelay[2] = 16;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 16 :
pst[psn] = 16;
psd[psn] = 13;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 85;
pdelay[2] = 20;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 17 :
pst[psn] = 17;
psd[psn] = -3;
pss[psn] = 0;
psx[psn] = px[2] - 15;
psy[psn] = py[2];
psf[psn] = 305;
pdelay[2] = 30;
psn++;
if (psn <= 30) {
break;
}
psn = 1;
}
}
if (pdelay[2] > 0) {
pdelay[2]--;
}
}
function bcontrols2() {
if (bx < 321) {
if (py[2] < 241) {
py[3] = py[3] + ps[3];
if (py[3] > 360) {
py[3] = 360;
}
}
if (py[2] > 240) {
py[3] = py[3] - ps[3];
if (py[3] < 120) {
py[3] = 120;
}
}
}
if (bx > 320) {
if (py[3] < by) {
py[3] = py[3] + (ps[3] / 2);
}
if (py[3] > by) {
py[3] = py[3] - (ps[3] / 2);
}
}
if (((bxd < 1) and (pst[psn] == 0)) and (pdelay[3] == 0)) {
switch (pshot1[3]) {
case 1 :
pst[psn] = 1;
psd[psn] = 13;
psx[psn] = px[3] - 15;
psy[psn] = py[3];
psf[psn] = 5;
pdelay[3] = 8;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 2 :
pst[psn] = 2;
psd[psn] = 13;
psx[psn] = px[3] - 15;
psy[psn] = py[3];
psf[psn] = 25;
pdelay[3] = 14;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 3 :
pst[psn] = 1;
psd[psn] = 13;
psx[psn] = px[3] - 15;
psy[psn] = py[3];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 14;
psx[psn] = px[3] - 15;
psy[psn] = py[3];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 12;
psx[psn] = px[3] - 15;
psy[psn] = py[3];
psf[psn] = 5;
pdelay[3] = 28;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 4 :
pst[psn] = 4;
psd[psn] = 13;
psx[psn] = px[3] - 15;
psy[psn] = py[3];
psf[psn] = 45;
pdelay[3] = 18;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 5 :
pst[psn] = 5;
psd[psn] = random(2) + 2;
pss[psn] = 0;
psx[psn] = px[3] - 15;
psy[psn] = py[3];
psf[psn] = 45;
pdelay[3] = 16;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 6 :
pst[psn] = 6;
psd[psn] = 13;
psx[psn] = px[3] - 15;
psy[psn] = py[3];
psf[psn] = 85;
pdelay[3] = 18;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 7 :
pst[psn] = 7;
psd[psn] = -3;
pss[psn] = 0;
psx[psn] = px[3] - 15;
psy[psn] = py[3];
psf[psn] = 105;
pdelay[3] = 30;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 11 :
pst[psn] = 1;
psd[psn] = 13;
psx[psn] = px[3] - 15;
psy[psn] = py[3] + (10 * psize[1]);
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 13;
psx[psn] = px[3] - 15;
psy[psn] = py[3] - (10 * psize[1]);
psf[psn] = 5;
pdelay[3] = 9;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 12 :
pst[psn] = 12;
psd[psn] = 13;
psx[psn] = px[3] - 25;
psy[psn] = py[3];
psf[psn] = 225;
pdelay[3] = 14;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 13 :
pst[psn] = 1;
psd[psn] = 13;
psx[psn] = px[3] - 15;
psy[psn] = py[3];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 12;
psx[psn] = px[3] - 15;
psy[psn] = py[3];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 14;
psx[psn] = px[3] - 15;
psy[psn] = py[3];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 11;
psx[psn] = px[3] - 15;
psy[psn] = py[3];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 15;
psx[psn] = px[3] - 15;
psy[psn] = py[3];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 10;
psx[psn] = px[3] - 15;
psy[psn] = py[3];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 16;
psx[psn] = px[3] - 15;
psy[psn] = py[3];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 1;
psx[psn] = px[3] - 15;
psy[psn] = py[3];
psf[psn] = 5;
psn++;
if (psn > 30) {
psn = 1;
}
pst[psn] = 1;
psd[psn] = 9;
psx[psn] = px[3] - 15;
psy[psn] = py[3];
psf[psn] = 5;
pdelay[3] = 50;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 14 :
pst[psn] = 14;
psd[psn] = 13;
psx[psn] = px[3] - 25;
psy[psn] = py[3];
psf[psn] = 245;
pdelay[3] = 20;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 15 :
pst[psn] = 15;
psd[psn] = random(2) + 2;
pss[psn] = 0;
psx[psn] = px[3] - 25;
psy[psn] = py[3];
psf[psn] = 265;
pdelay[3] = 16;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 16 :
pst[psn] = 16;
psd[psn] = 13;
psx[psn] = px[3] - 15;
psy[psn] = py[3];
psf[psn] = 85;
pdelay[3] = 20;
psn++;
if (psn > 30) {
psn = 1;
}
break;
case 17 :
pst[psn] = 17;
psd[psn] = -3;
pss[psn] = 0;
psx[psn] = px[3] - 15;
psy[psn] = py[3];
psf[psn] = 305;
pdelay[3] = 30;
psn++;
if (psn <= 30) {
break;
}
psn = 1;
}
}
if (pdelay[3] > 0) {
pdelay[3]--;
}
}
function dscreen() {
bx = bx + (bxd / 4);
by = by + byd;
h1 = 1;
while (h1 <= pn) {
if (((((bx - 15) < (px[h1] + 10)) and ((bx + 15) > (px[h1] - 10))) and ((by - 15) < (py[h1] + (10 * psize[h1])))) and ((by + 15) > (py[h1] - (10 * psize[h1])))) {
if (bxd < 60) {
bxd++;
}
if ((h1 == 1) or (h1 == 4)) {
bx = px[h1] + 25;
bing1.start();
if (key.isDown(38)) {
byd = byd - 3;
}
if (key.isDown(40)) {
byd = byd + 3;
}
}
if ((h1 == 2) or (h1 == 3)) {
bx = px[h1] - 25;
bing1.start();
if (by < py[h1]) {
byd = byd - 3;
}
if (by > py[h1]) {
byd = byd + 3;
}
}
bxd = bxd * -1;
if (by < py[h1]) {
byd = byd - 2;
}
if (by > py[h1]) {
byd = byd + 2;
}
}
h1++;
}
h1 = 1;
while (h1 <= 30) {
switch (pst[h1]) {
case 1 :
if (((((bx - 15) < (psx[h1] + 7)) and ((bx + 15) > (psx[h1] - 7))) and ((by - 15) < (psy[h1] + 7))) and ((by + 15) > (psy[h1] - 7))) {
pst[h1] = 0;
bing2.start();
if ((bxd < 60) and (bxd > -60)) {
if (bxd < 1) {
bxd--;
}
if (bxd > 0) {
bxd++;
}
}
bxd = bxd * -1;
byd = (byd - 1) + random(3);
}
break;
case 2 :
if (((((bx - 15) < (psx[h1] + 25)) and ((bx + 15) > (psx[h1] - 25))) and ((by - 15) < (psy[h1] + 6))) and ((by + 15) > (psy[h1] - 6))) {
pst[h1] = 0;
bing2.start();
if ((bxd < 60) and (bxd > -60)) {
if (bxd < 1) {
bxd--;
}
if (bxd > 0) {
bxd++;
}
}
bxd = bxd * -1;
if (by < psy[h1]) {
byd--;
}
if (by > psy[h1]) {
byd++;
}
byd = byd * -1;
if (byd == 0) {
byd = (byd - 1) + random(3);
}
}
break;
case 4 :
if (((((bx - 15) < (psx[h1] + 25)) and ((bx + 15) > (psx[h1] - 25))) and ((by - 15) < (psy[h1] + 25))) and ((by + 15) > (psy[h1] - 25))) {
pst[h1] = 0;
bing2.start();
if ((bxd < 60) and (bxd > -60)) {
if (bxd < 1) {
bxd--;
}
if (bxd > 0) {
bxd++;
}
}
bxd = bxd * -1;
if (by < psy[h1]) {
byd--;
}
if (by > psy[h1]) {
byd++;
}
if (byd == 0) {
byd = (byd - 1) + random(3);
}
}
break;
case 5 :
if (((((bx - 15) < (psx[h1] + 15)) and ((bx + 15) > (psx[h1] - 15))) and ((by - 15) < (psy[h1] + 15))) and ((by + 15) > (psy[h1] - 15))) {
pst[h1] = 0;
bing2.start();
if ((bxd < 60) and (bxd > -60)) {
if (bxd < 1) {
bxd--;
}
if (bxd > 0) {
bxd++;
}
}
bxd = bxd * -1;
if (by < psy[h1]) {
byd--;
}
if (by > psy[h1]) {
byd++;
}
if (byd == 0) {
byd = (byd - 1) + random(3);
}
byd = byd * -1;
}
break;
case 6 :
if (((((bx - 15) < (psx[h1] + 6)) and ((bx + 15) > (psx[h1] - 6))) and ((by - 15) < (psy[h1] + 32))) and ((by + 15) > (psy[h1] - 32))) {
pst[h1] = 0;
bing2.start();
if ((bxd < 60) and (bxd > -60)) {
if (bxd < 1) {
bxd--;
}
if (bxd > 0) {
bxd++;
}
}
bxd = bxd * -1;
if (byd < 0) {
byd = byd + 2;
}
if (byd > 0) {
byd = byd - 2;
}
if (byd == 0) {
byd = (byd - 1) + random(3);
}
}
break;
case 7 :
if (((((bx - 15) < (psx[h1] + 10)) and ((bx + 15) > (psx[h1] - 10))) and ((by - 15) < (psy[h1] + 10))) and ((by + 15) > (psy[h1] - 10))) {
pst[h1] = 0;
bing2.start();
if ((bxd < 60) and (bxd > -60)) {
if (bxd < 1) {
bxd--;
}
if (bxd > 0) {
bxd++;
}
}
bxd = bxd * -1;
if (by < psy[h1]) {
byd = byd - 2;
}
if (by > psy[h1]) {
byd = byd + 2;
}
if (byd == 0) {
byd = (byd - 1) + random(3);
}
}
break;
case 12 :
if (((((bx - 15) < (psx[h1] + 40)) and ((bx + 15) > (psx[h1] - 40))) and ((by - 15) < (psy[h1] + 8))) and ((by + 15) > (psy[h1] - 8))) {
pst[h1] = 0;
bing2.start();
if ((bxd < 60) and (bxd > -60)) {
if (bxd < 1) {
bxd--;
}
if (bxd > 0) {
bxd++;
}
}
bxd = bxd * -1;
if (by < psy[h1]) {
byd--;
}
if (by > psy[h1]) {
byd++;
}
if (byd == 0) {
byd = (byd - 1) + random(3);
}
byd = byd * -1;
}
break;
case 14 :
if (((((bx - 15) < (psx[h1] + 35)) and ((bx + 15) > (psx[h1] - 35))) and ((by - 15) < (psy[h1] + 35))) and ((by + 15) > (psy[h1] - 35))) {
pst[h1] = 0;
bing2.start();
if ((bxd < 60) and (bxd > -60)) {
if (bxd < 1) {
bxd--;
}
if (bxd > 0) {
bxd++;
}
}
bxd = bxd * -1;
if (by < psy[h1]) {
byd--;
}
if (by > psy[h1]) {
byd++;
}
if (byd == 0) {
byd = (byd - 1) + random(3);
}
}
break;
case 15 :
if (((((bx - 15) < (psx[h1] + 20)) and ((bx + 15) > (psx[h1] - 20))) and ((by - 15) < (psy[h1] + 20))) and ((by + 15) > (psy[h1] - 20))) {
pst[h1] = 0;
bing2.start();
if ((bxd < 60) and (bxd > -60)) {
if (bxd < 1) {
bxd--;
}
if (bxd > 0) {
bxd++;
}
}
bxd = bxd * -1;
if (by < psy[h1]) {
byd--;
}
if (by > psy[h1]) {
byd++;
}
if (byd == 0) {
byd = (byd - 1) + random(3);
}
byd = byd * -1;
}
break;
case 16 :
if (((((bx - 15) < (psx[h1] + 8)) and ((bx + 15) > (psx[h1] - 8))) and ((by - 15) < (psy[h1] + 50))) and ((by + 15) > (psy[h1] - 50))) {
pst[h1] = 0;
bing2.start();
if ((bxd < 60) and (bxd > -60)) {
if (bxd < 1) {
bxd--;
}
if (bxd > 0) {
bxd++;
}
}
bxd = bxd * -1;
if (byd < 0) {
byd = byd + 2;
}
if (byd > 0) {
byd = byd - 2;
}
if (byd == 0) {
byd = (byd - 1) + random(3);
}
}
break;
case 17 :
if (!(((((bx - 15) < (psx[h1] + 15)) and ((bx + 15) > (psx[h1] - 15))) and ((by - 15) < (psy[h1] + 15))) and ((by + 15) > (psy[h1] - 15)))) {
break;
}
pst[h1] = 0;
bing2.start();
if ((bxd < 60) and (bxd > -60)) {
if (bxd < 1) {
bxd--;
}
if (bxd > 0) {
bxd++;
}
}
bxd = bxd * -1;
if (by < psy[h1]) {
byd = byd - 2;
}
if (by > psy[h1]) {
byd = byd + 2;
}
if (byd != 0) {
break;
}
byd = (byd - 1) + random(3);
}
h1++;
}
if (byd < -12) {
byd = -12;
}
if (byd > 10) {
byd = 12;
}
if (bx < 10) {
score2++;
scores.start();
bx = 320;
by = 240;
bxd = 16 - (32 * random(2));
byd = 1 - random(3);
}
if (bx > 630) {
score1++;
scores.start();
bx = 320;
by = 240;
bxd = 16 - (32 * random(2));
byd = 1 - random(3);
}
if (by < 10) {
by = 10;
bing1.start();
byd = byd * -1;
}
if (by > 470) {
by = 470;
bing1.start();
byd = byd * -1;
}
if (powup._x > -100) {
powup._x = powup._x - 8;
}
if (powup._x < -50) {
powt = 1;
powup._x = -2000;
}
h2 = random(120);
if ((h2 < 1) and (powt == 1)) {
powt = random(10) + 2;
powup._x = 650;
powup._y = random(380) + 50;
}
if (((((powup._x - 10) < (px[1] + 5)) and ((powup._x + 10) > (px[1] - 5))) and ((powup._y - 10) < (py[1] + (10 * psize[1])))) and ((powup._y + 10) > (py[1] - (10 * psize[1])))) {
if ((powt == 2) and (ps[1] < 10)) {
ps[1]++;
}
if ((powt == 3) and (psize[1] < 6)) {
psize[1]++;
}
if ((powt == 4) and (pshot1[1] < 11)) {
pshot1[1] = pshot1[1] + 10;
}
if (powt > 4) {
pshot1[1] = powt - 4;
}
powt = 1;
powup._x = -2000;
}
if (((((powup._x - 10) < (px[4] + 5)) and ((powup._x + 10) > (px[4] - 5))) and ((powup._y - 10) < (py[4] + (10 * psize[4])))) and ((powup._y + 10) > (py[4] - (10 * psize[4])))) {
if ((powt == 2) and (ps[4] < 10)) {
ps[4]++;
}
if ((powt == 3) and (psize[4] < 6)) {
psize[4]++;
}
if ((powt == 4) and (pshot1[4] < 11)) {
pshot1[4] = pshot1[4] + 10;
}
if (powt > 4) {
pshot1[4] = powt - 4;
}
powt = 1;
powup._x = -2000;
}
ppad.gotoAndStop(psize[1]);
ppad._x = px[1];
ppad._y = py[1];
bpad1.gotoAndStop(psize[2]);
bpad1._x = px[2];
bpad1._y = py[2];
bpad2.gotoAndStop(psize[3]);
bpad2._x = px[3];
bpad2._y = py[3];
ppad2.gotoAndStop(psize[4]);
ppad2._x = px[4];
ppad2._y = py[4];
bball._x = bx;
bball._y = by;
powup.gotoAndStop(powt);
powup2.gotoAndStop(powb);
shot1.gotoAndStop(psf[1]);
shot1._x = psx[1];
shot1._y = psy[1];
shot2.gotoAndStop(psf[2]);
shot2._x = psx[2];
shot2._y = psy[2];
shot3.gotoAndStop(psf[3]);
shot3._x = psx[3];
shot3._y = psy[3];
shot4.gotoAndStop(psf[4]);
shot4._x = psx[4];
shot4._y = psy[4];
shot5.gotoAndStop(psf[5]);
shot5._x = psx[5];
shot5._y = psy[5];
shot6.gotoAndStop(psf[6]);
shot6._x = psx[6];
shot6._y = psy[6];
shot7.gotoAndStop(psf[7]);
shot7._x = psx[7];
shot7._y = psy[7];
shot8.gotoAndStop(psf[8]);
shot8._x = psx[8];
shot8._y = psy[8];
shot9.gotoAndStop(psf[9]);
shot9._x = psx[9];
shot9._y = psy[9];
shot10.gotoAndStop(psf[10]);
shot10._x = psx[10];
shot10._y = psy[10];
shot11.gotoAndStop(psf[11]);
shot11._x = psx[11];
shot11._y = psy[11];
shot12.gotoAndStop(psf[12]);
shot12._x = psx[12];
shot12._y = psy[12];
shot13.gotoAndStop(psf[13]);
shot13._x = psx[13];
shot13._y = psy[13];
shot14.gotoAndStop(psf[14]);
shot14._x = psx[14];
shot14._y = psy[14];
shot15.gotoAndStop(psf[15]);
shot15._x = psx[15];
shot15._y = psy[15];
shot16.gotoAndStop(psf[16]);
shot16._x = psx[16];
shot16._y = psy[16];
shot17.gotoAndStop(psf[17]);
shot17._x = psx[17];
shot17._y = psy[17];
shot18.gotoAndStop(psf[18]);
shot18._x = psx[18];
shot18._y = psy[18];
shot19.gotoAndStop(psf[19]);
shot19._x = psx[19];
shot19._y = psy[19];
shot20.gotoAndStop(psf[20]);
shot20._x = psx[20];
shot20._y = psy[20];
shot21.gotoAndStop(psf[21]);
shot21._x = psx[21];
shot21._y = psy[21];
shot22.gotoAndStop(psf[22]);
shot22._x = psx[22];
shot22._y = psy[22];
shot23.gotoAndStop(psf[23]);
shot23._x = psx[23];
shot23._y = psy[23];
shot24.gotoAndStop(psf[24]);
shot24._x = psx[24];
shot24._y = psy[24];
shot25.gotoAndStop(psf[25]);
shot25._x = psx[25];
shot25._y = psy[25];
shot26.gotoAndStop(psf[26]);
shot26._x = psx[26];
shot26._y = psy[26];
shot27.gotoAndStop(psf[27]);
shot27._x = psx[27];
shot27._y = psy[27];
shot28.gotoAndStop(psf[28]);
shot28._x = psx[28];
shot28._y = psy[28];
shot29.gotoAndStop(psf[29]);
shot29._x = psx[29];
shot29._y = psy[29];
shot30.gotoAndStop(psf[30]);
shot30._x = psx[30];
shot30._y = psy[30];
}
Frame 4
titnorm.onRelease = function () {
lv = 1;
if (Key.isDown(51)) {
lv = 4;
}
if (Key.isDown(52)) {
lv = 7;
}
if (Key.isDown(53)) {
lv = 10;
}
if (Key.isDown(54)) {
lv = 13;
}
pn = 2;
gotoAndPlay (451);
};
titversus.onRelease = function () {
pn = 2;
gotoAndPlay (190);
};
titteam.onRelease = function () {
pn = 4;
gotoAndPlay (180);
};
stopAllSounds();
Frame 5
gotoAndPlay (4);
Frame 10
px[1] = 50;
py[1] = 240;
ps[1] = 6;
pshot1[1] = 1;
pdelay[1] = 0;
psize[1] = 2;
px[2] = 590;
py[2] = 240;
ps[2] = 5;
pshot1[2] = random(7) + 1;
pdelay[2] = 0;
psize[2] = 2;
powt = 1;
psn = 1;
bx = 320;
by = 240;
bxd = 16 - (32 * random(2));
byd = 1 - random(3);
score1 = 0;
score2 = 0;
h1 = 1;
while (h1 <= 30) {
pst[h1] = 0;
psd[h1] = 0;
pss[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 1;
h1++;
}
stopAllSounds();
Frame 11
pcontrols();
bcontrols();
h2 = random(200);
if (h2 == 1) {
pshot1[2] = random(7) + 1;
}
dscreen();
st1._x = st1._x - 15;
if (st1._x < -100) {
st1._x = 740 + random(40);
st1._y = random(478) + 2;
}
st2._x = st2._x - 15;
if (st2._x < -100) {
st2._x = 740 + random(40);
st2._y = random(478) + 2;
}
st3._x = st3._x - 15;
if (st3._x < -100) {
st3._x = 740 + random(40);
st3._y = random(478) + 2;
}
st4._x = st4._x - 30;
if (st4._x < -100) {
st4._x = 740 + random(40);
st4._y = random(478) + 2;
}
st5._x = st5._x - 30;
if (st5._x < -100) {
st5._x = 740 + random(40);
st5._y = random(478) + 2;
}
st6._x = st6._x - 45;
if (st6._x < -150) {
st6._x = 760 + random(60);
st6._y = random(478) + 2;
}
Frame 12
if ((score1 < 4) and (score2 < 4)) {
gotoAndPlay((10 * lv) + 1);
}
if (score1 > 3) {
gotoAndPlay (251);
}
if (score2 > 3) {
gotoAndPlay (351);
}
Frame 20
px[1] = 50;
py[1] = 240;
pdelay[1] = 0;
px[2] = 590;
py[2] = 240;
ps[2] = 6;
pshot1[2] = random(7) + 1;
pdelay[2] = 0;
psize[2] = 2;
powt = 1;
psn = 1;
bx = 320;
by = 240;
bxd = 16 - (32 * random(2));
byd = 1 - random(3);
score1 = 0;
score2 = 0;
h1 = 1;
while (h1 <= 30) {
pst[h1] = 0;
psd[h1] = 0;
pss[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 1;
h1++;
}
Frame 21
pcontrols();
bcontrols();
h2 = random(200);
if (h2 == 1) {
pshot1[2] = random(7) + 1;
}
dscreen();
st1._x = st1._x - 15;
if (st1._x < -100) {
st1._x = 740 + random(40);
st1._y = random(478) + 2;
}
st2._x = st2._x - 15;
if (st2._x < -100) {
st2._x = 740 + random(40);
st2._y = random(478) + 2;
}
st3._x = st3._x - 15;
if (st3._x < -100) {
st3._x = 740 + random(40);
st3._y = random(478) + 2;
}
st4._x = st4._x - 30;
if (st4._x < -100) {
st4._x = 740 + random(40);
st4._y = random(478) + 2;
}
st5._x = st5._x - 30;
if (st5._x < -100) {
st5._x = 740 + random(40);
st5._y = random(478) + 2;
}
st6._x = st6._x - 45;
if (st6._x < -150) {
st6._x = 760 + random(60);
st6._y = random(478) + 2;
}
Frame 22
if ((score1 < 4) and (score2 < 4)) {
gotoAndPlay((10 * lv) + 1);
}
if (score1 > 3) {
gotoAndPlay (251);
}
if (score2 > 3) {
gotoAndPlay (351);
}
Frame 30
px[1] = 50;
py[1] = 240;
pdelay[1] = 0;
px[2] = 590;
py[2] = 240;
ps[2] = 6;
pshot1[2] = random(7) + 11;
pdelay[2] = 0;
psize[2] = 3;
powt = 1;
psn = 1;
bx = 320;
by = 240;
bxd = 16 - (32 * random(2));
byd = 1 - random(3);
score1 = 0;
score2 = 0;
h1 = 1;
while (h1 <= 30) {
pst[h1] = 0;
psd[h1] = 0;
pss[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 1;
h1++;
}
stopAllSounds();
Frame 31
pcontrols();
bcontrols();
h2 = random(200);
if (h2 == 1) {
pshot1[2] = random(7) + 11;
}
dscreen();
st1._x = st1._x - 15;
if (st1._x < -100) {
st1._x = 740 + random(40);
st1._y = random(478) + 2;
}
st2._x = st2._x - 15;
if (st2._x < -100) {
st2._x = 740 + random(40);
st2._y = random(478) + 2;
}
st3._x = st3._x - 15;
if (st3._x < -100) {
st3._x = 740 + random(40);
st3._y = random(478) + 2;
}
st4._x = st4._x - 30;
if (st4._x < -100) {
st4._x = 740 + random(40);
st4._y = random(478) + 2;
}
st5._x = st5._x - 30;
if (st5._x < -100) {
st5._x = 740 + random(40);
st5._y = random(478) + 2;
}
st6._x = st6._x - 45;
if (st6._x < -150) {
st6._x = 760 + random(60);
st6._y = random(478) + 2;
}
Frame 32
if ((score1 < 4) and (score2 < 4)) {
gotoAndPlay((10 * lv) + 1);
}
if (score1 > 3) {
gotoAndPlay (251);
}
if (score2 > 3) {
gotoAndPlay (351);
}
Frame 40
px[1] = 50;
py[1] = 240;
ps[1] = 6;
pshot1[1] = 1;
pdelay[1] = 0;
psize[1] = 2;
px[2] = 590;
py[2] = 240;
ps[2] = 6;
pshot1[2] = random(7) + 1;
pdelay[2] = 0;
psize[2] = 3;
powt = 1;
psn = 1;
bx = 320;
by = 240;
bxd = 16 - (32 * random(2));
byd = 1 - random(3);
score1 = 0;
score2 = 0;
h1 = 1;
while (h1 <= 30) {
pst[h1] = 0;
psd[h1] = 0;
pss[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 1;
h1++;
}
stopAllSounds();
Frame 41
pcontrols();
bcontrols();
h2 = random(200);
if (h2 == 1) {
pshot1[2] = random(7) + 1;
}
dscreen();
st1._x = st1._x - 20;
if (st1._x < -100) {
st1._x = 740 + random(40);
}
st2._x = st2._x - 30;
if (st2._x < -100) {
st2._x = 740 + random(40);
}
st3._x = st3._x - 40;
if (st3._x < -100) {
st3._x = 740 + random(40);
}
st4._x = st4._x - 50;
if (st4._x < -100) {
st4._x = 740 + random(40);
}
st5._x = st5._x - 50;
if (st5._x < -100) {
st5._x = 740 + random(40);
st5._y = random(478) + 2;
}
st6._x = st6._x - 65;
if (st6._x < -150) {
st6._x = 760 + random(60);
st6._y = random(478) + 2;
}
Frame 42
if ((score1 < 4) and (score2 < 4)) {
gotoAndPlay((10 * lv) + 1);
}
if (score1 > 3) {
gotoAndPlay (251);
}
if (score2 > 3) {
gotoAndPlay (351);
}
Frame 50
px[1] = 50;
py[1] = 240;
pdelay[1] = 0;
px[2] = 590;
py[2] = 240;
ps[2] = 7;
pshot1[2] = random(7) + 1;
pdelay[2] = 0;
psize[2] = 3;
powt = 1;
psn = 1;
bx = 320;
by = 240;
bxd = 16 - (32 * random(2));
byd = 1 - random(3);
score1 = 0;
score2 = 0;
h1 = 1;
while (h1 <= 30) {
pst[h1] = 0;
psd[h1] = 0;
pss[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 1;
h1++;
}
Frame 51
pcontrols();
bcontrols();
h2 = random(200);
if (h2 == 1) {
pshot1[2] = random(7) + 1;
}
dscreen();
st1._x = st1._x - 20;
if (st1._x < -100) {
st1._x = 740 + random(40);
}
st2._x = st2._x - 30;
if (st2._x < -100) {
st2._x = 740 + random(40);
}
st3._x = st3._x - 40;
if (st3._x < -100) {
st3._x = 740 + random(40);
}
st4._x = st4._x - 50;
if (st4._x < -100) {
st4._x = 740 + random(40);
}
st5._x = st5._x - 50;
if (st5._x < -100) {
st5._x = 740 + random(40);
st5._y = random(478) + 2;
}
st6._x = st6._x - 65;
if (st6._x < -150) {
st6._x = 760 + random(60);
st6._y = random(478) + 2;
}
Frame 52
if ((score1 < 4) and (score2 < 4)) {
gotoAndPlay((10 * lv) + 1);
}
if (score1 > 3) {
gotoAndPlay (251);
}
if (score2 > 3) {
gotoAndPlay (351);
}
Frame 60
px[1] = 50;
py[1] = 240;
pdelay[1] = 0;
px[2] = 590;
py[2] = 240;
ps[2] = 7;
pshot1[2] = random(7) + 11;
pdelay[2] = 0;
psize[2] = 4;
powt = 1;
psn = 1;
bx = 320;
by = 240;
bxd = 16 - (32 * random(2));
byd = 1 - random(3);
score1 = 0;
score2 = 0;
h1 = 1;
while (h1 <= 30) {
pst[h1] = 0;
psd[h1] = 0;
pss[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 1;
h1++;
}
stopAllSounds();
Frame 61
pcontrols();
bcontrols();
h2 = random(200);
if (h2 == 1) {
pshot1[2] = random(7) + 11;
}
dscreen();
st1._x = st1._x - 20;
if (st1._x < -100) {
st1._x = 740 + random(40);
}
st2._x = st2._x - 30;
if (st2._x < -100) {
st2._x = 740 + random(40);
}
st3._x = st3._x - 40;
if (st3._x < -100) {
st3._x = 740 + random(40);
}
st4._x = st4._x - 50;
if (st4._x < -100) {
st4._x = 740 + random(40);
}
st5._x = st5._x - 50;
if (st5._x < -100) {
st5._x = 740 + random(40);
st5._y = random(478) + 2;
}
st6._x = st6._x - 65;
if (st6._x < -150) {
st6._x = 760 + random(60);
st6._y = random(478) + 2;
}
Frame 62
if ((score1 < 4) and (score2 < 4)) {
gotoAndPlay((10 * lv) + 1);
}
if (score1 > 3) {
gotoAndPlay (251);
}
if (score2 > 3) {
gotoAndPlay (351);
}
Frame 70
px[1] = 50;
py[1] = 240;
ps[1] = 6;
pshot1[1] = 1;
pdelay[1] = 0;
psize[1] = 2;
px[2] = 590;
py[2] = 240;
ps[2] = 7;
pshot1[2] = random(7) + 1;
pdelay[2] = 0;
psize[2] = 3;
powt = 1;
psn = 1;
bx = 320;
by = 240;
bxd = 16 - (32 * random(2));
byd = 1 - random(3);
score1 = 0;
score2 = 0;
h1 = 1;
while (h1 <= 30) {
pst[h1] = 0;
psd[h1] = 0;
pss[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 1;
h1++;
}
stopAllSounds();
Frame 71
pcontrols();
bcontrols();
h2 = random(200);
if (h2 == 1) {
pshot1[2] = random(7) + 1;
}
dscreen();
st1._x = st1._x - 15;
if (st1._x < -100) {
st1._x = 740 + random(40);
st1._y = random(478) + 2;
}
st2._x = st2._x - 30;
if (st2._x < -100) {
st2._x = 740 + random(40);
st2._y = random(478) + 2;
}
st3._x = st3._x - 45;
if (st3._x < -100) {
st3._x = 740 + random(40);
st3._y = random(478) + 2;
}
st4._x = st4._x - 60;
if (st4._x < -100) {
st4._x = 740 + random(40);
st4._y = random(478) + 2;
}
st5._x = st5._x - 75;
if (st5._x < -100) {
st5._x = 740 + random(40);
st5._y = random(478) + 2;
}
st6._x = st6._x - 90;
if (st6._x < -150) {
st6._x = 760 + random(60);
st6._y = random(478) + 2;
}
Frame 72
if ((score1 < 4) and (score2 < 4)) {
gotoAndPlay((10 * lv) + 1);
}
if (score1 > 3) {
gotoAndPlay (251);
}
if (score2 > 3) {
gotoAndPlay (351);
}
Frame 80
px[1] = 50;
py[1] = 240;
pdelay[1] = 0;
px[2] = 590;
py[2] = 240;
ps[2] = 8;
pshot1[2] = random(7) + 1;
pdelay[2] = 0;
psize[2] = 3;
powt = 1;
psn = 1;
bx = 320;
by = 240;
bxd = 16 - (32 * random(2));
byd = 1 - random(3);
score1 = 0;
score2 = 0;
h1 = 1;
while (h1 <= 30) {
pst[h1] = 0;
psd[h1] = 0;
pss[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 1;
h1++;
}
Frame 81
pcontrols();
bcontrols();
h2 = random(200);
if (h2 == 1) {
pshot1[2] = random(7) + 1;
}
dscreen();
st1._x = st1._x - 15;
if (st1._x < -100) {
st1._x = 740 + random(40);
st1._y = random(478) + 2;
}
st2._x = st2._x - 30;
if (st2._x < -100) {
st2._x = 740 + random(40);
st2._y = random(478) + 2;
}
st3._x = st3._x - 45;
if (st3._x < -100) {
st3._x = 740 + random(40);
st3._y = random(478) + 2;
}
st4._x = st4._x - 60;
if (st4._x < -100) {
st4._x = 740 + random(40);
st4._y = random(478) + 2;
}
st5._x = st5._x - 75;
if (st5._x < -100) {
st5._x = 740 + random(40);
st5._y = random(478) + 2;
}
st6._x = st6._x - 90;
if (st6._x < -150) {
st6._x = 760 + random(60);
st6._y = random(478) + 2;
}
Frame 82
if ((score1 < 4) and (score2 < 4)) {
gotoAndPlay((10 * lv) + 1);
}
if (score1 > 3) {
gotoAndPlay (251);
}
if (score2 > 3) {
gotoAndPlay (351);
}
Frame 90
px[1] = 50;
py[1] = 240;
pdelay[1] = 0;
px[2] = 590;
py[2] = 240;
ps[2] = 8;
pshot1[2] = random(7) + 11;
pdelay[2] = 0;
psize[2] = 4;
powt = 1;
psn = 1;
bx = 320;
by = 240;
bxd = 16 - (32 * random(2));
byd = 1 - random(3);
score1 = 0;
score2 = 0;
h1 = 1;
while (h1 <= 30) {
pst[h1] = 0;
psd[h1] = 0;
pss[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 1;
h1++;
}
stopAllSounds();
Frame 91
pcontrols();
bcontrols();
h2 = random(200);
if (h2 == 1) {
pshot1[2] = random(7) + 11;
}
dscreen();
st1._x = st1._x - 15;
if (st1._x < -100) {
st1._x = 740 + random(40);
st1._y = random(478) + 2;
}
st2._x = st2._x - 30;
if (st2._x < -100) {
st2._x = 740 + random(40);
st2._y = random(478) + 2;
}
st3._x = st3._x - 45;
if (st3._x < -100) {
st3._x = 740 + random(40);
st3._y = random(478) + 2;
}
st4._x = st4._x - 60;
if (st4._x < -100) {
st4._x = 740 + random(40);
st4._y = random(478) + 2;
}
st5._x = st5._x - 75;
if (st5._x < -100) {
st5._x = 740 + random(40);
st5._y = random(478) + 2;
}
st6._x = st6._x - 90;
if (st6._x < -150) {
st6._x = 760 + random(60);
st6._y = random(478) + 2;
}
Frame 92
if ((score1 < 4) and (score2 < 4)) {
gotoAndPlay((10 * lv) + 1);
}
if (score1 > 3) {
gotoAndPlay (251);
}
if (score2 > 3) {
gotoAndPlay (351);
}
Frame 100
px[1] = 50;
py[1] = 240;
ps[1] = 6;
pshot1[1] = 1;
pdelay[1] = 0;
psize[1] = 2;
px[2] = 590;
py[2] = 240;
ps[2] = 8;
pshot1[2] = random(7) + 1;
pdelay[2] = 0;
psize[2] = 4;
powt = 1;
psn = 1;
bx = 320;
by = 240;
bxd = 16 - (32 * random(2));
byd = 1 - random(3);
score1 = 0;
score2 = 0;
h1 = 1;
while (h1 <= 30) {
pst[h1] = 0;
psd[h1] = 0;
pss[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 1;
h1++;
}
stopAllSounds();
Frame 101
pcontrols();
bcontrols();
h2 = random(200);
if (h2 == 1) {
pshot1[2] = random(7) + 1;
}
dscreen();
st1._x = st1._x - 15;
if (st1._x < -100) {
st1._x = 740 + random(40);
}
st2._x = st2._x - 20;
if (st2._x < -100) {
st2._x = 740 + random(40);
}
st3._x = st3._x - 25;
if (st3._x < -100) {
st3._x = 740 + random(40);
}
st4._x = st4._x - 30;
if (st4._x < -100) {
st4._x = 740 + random(40);
}
st5._x = st5._x - 35;
if (st5._x < -100) {
st5._x = 740 + random(40);
}
st6._x = st6._x - 40;
if (st6._x < -150) {
st6._x = 760 + random(60);
}
Frame 102
if ((score1 < 4) and (score2 < 4)) {
gotoAndPlay((10 * lv) + 1);
}
if (score1 > 3) {
gotoAndPlay (251);
}
if (score2 > 3) {
gotoAndPlay (351);
}
Frame 110
px[1] = 50;
py[1] = 240;
pdelay[1] = 0;
px[2] = 590;
py[2] = 240;
ps[2] = 9;
pshot1[2] = random(7) + 1;
pdelay[2] = 0;
psize[2] = 4;
powt = 1;
psn = 1;
bx = 320;
by = 240;
bxd = 16 - (32 * random(2));
byd = 1 - random(3);
score1 = 0;
score2 = 0;
h1 = 1;
while (h1 <= 30) {
pst[h1] = 0;
psd[h1] = 0;
pss[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 1;
h1++;
}
Frame 111
pcontrols();
bcontrols();
h2 = random(200);
if (h2 == 1) {
pshot1[2] = random(7) + 1;
}
dscreen();
st1._x = st1._x - 15;
if (st1._x < -100) {
st1._x = 740 + random(40);
}
st2._x = st2._x - 20;
if (st2._x < -100) {
st2._x = 740 + random(40);
}
st3._x = st3._x - 25;
if (st3._x < -100) {
st3._x = 740 + random(40);
}
st4._x = st4._x - 30;
if (st4._x < -100) {
st4._x = 740 + random(40);
}
st5._x = st5._x - 35;
if (st5._x < -100) {
st5._x = 740 + random(40);
}
st6._x = st6._x - 40;
if (st6._x < -150) {
st6._x = 760 + random(60);
}
Frame 112
if ((score1 < 4) and (score2 < 4)) {
gotoAndPlay((10 * lv) + 1);
}
if (score1 > 3) {
gotoAndPlay (251);
}
if (score2 > 3) {
gotoAndPlay (351);
}
Frame 120
px[1] = 50;
py[1] = 240;
pdelay[1] = 0;
px[2] = 590;
py[2] = 240;
ps[2] = 9;
pshot1[2] = random(7) + 11;
pdelay[2] = 0;
psize[2] = 5;
powt = 1;
psn = 1;
bx = 320;
by = 240;
bxd = 16 - (32 * random(2));
byd = 1 - random(3);
score1 = 0;
score2 = 0;
h1 = 1;
while (h1 <= 30) {
pst[h1] = 0;
psd[h1] = 0;
pss[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 1;
h1++;
}
stopAllSounds();
Frame 121
pcontrols();
bcontrols();
h2 = random(200);
if (h2 == 1) {
pshot1[2] = random(7) + 11;
}
dscreen();
st1._x = st1._x - 15;
if (st1._x < -100) {
st1._x = 740 + random(40);
}
st2._x = st2._x - 20;
if (st2._x < -100) {
st2._x = 740 + random(40);
}
st3._x = st3._x - 25;
if (st3._x < -100) {
st3._x = 740 + random(40);
}
st4._x = st4._x - 30;
if (st4._x < -100) {
st4._x = 740 + random(40);
}
st5._x = st5._x - 35;
if (st5._x < -100) {
st5._x = 740 + random(40);
}
st6._x = st6._x - 40;
if (st6._x < -150) {
st6._x = 760 + random(60);
}
Frame 122
if ((score1 < 4) and (score2 < 4)) {
gotoAndPlay((10 * lv) + 1);
}
if (score1 > 3) {
gotoAndPlay (251);
}
if (score2 > 3) {
gotoAndPlay (351);
}
Frame 130
px[1] = 50;
py[1] = 240;
ps[1] = 6;
pshot1[1] = 1;
pdelay[1] = 0;
psize[1] = 2;
px[2] = 590;
py[2] = 240;
ps[2] = 9;
pshot1[2] = random(7) + 11;
pdelay[2] = 0;
psize[2] = 5;
powt = 1;
psn = 1;
bx = 320;
by = 240;
bxd = 16 - (32 * random(2));
byd = 1 - random(3);
score1 = 0;
score2 = 0;
h1 = 1;
while (h1 <= 30) {
pst[h1] = 0;
psd[h1] = 0;
pss[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 1;
h1++;
}
stopAllSounds();
Frame 131
pcontrols();
bcontrols();
h2 = random(200);
if (h2 == 1) {
pshot1[2] = random(7) + 11;
}
dscreen();
st1._x = st1._x - 20;
if (st1._x < -100) {
st1._x = 740 + random(40);
}
st2._x = st2._x - 25;
if (st2._x < -100) {
st2._x = 740 + random(40);
st2._y = random(478) + 2;
}
st3._x = st3._x - 30;
if (st3._x < -100) {
st3._x = 740 + random(40);
st3._y = random(478) + 2;
}
st4._x = st4._x - 35;
if (st4._x < -100) {
st4._x = 740 + random(40);
}
st5._x = st5._x - 40;
if (st5._x < -100) {
st5._x = 740 + random(40);
st5._y = random(478) + 2;
}
st6._x = st6._x - 45;
if (st6._x < -150) {
st6._x = 760 + random(60);
st6._y = random(478) + 2;
}
Frame 132
if ((score1 < 4) and (score2 < 4)) {
gotoAndPlay((10 * lv) + 1);
}
if (score1 > 3) {
gotoAndPlay (251);
}
if (score2 > 3) {
gotoAndPlay (351);
}
Frame 140
px[1] = 50;
py[1] = 240;
pdelay[1] = 0;
px[2] = 590;
py[2] = 240;
ps[2] = 10;
pshot1[2] = random(7) + 11;
pdelay[2] = 0;
psize[2] = 6;
powt = 1;
psn = 1;
bx = 320;
by = 240;
bxd = 16 - (32 * random(2));
byd = 1 - random(3);
score1 = 0;
score2 = 0;
h1 = 1;
while (h1 <= 30) {
pst[h1] = 0;
psd[h1] = 0;
pss[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 1;
h1++;
}
Frame 141
pcontrols();
bcontrols();
h2 = random(200);
if (h2 == 1) {
pshot1[2] = random(7) + 11;
}
dscreen();
st1._x = st1._x - 20;
if (st1._x < -100) {
st1._x = 740 + random(40);
}
st2._x = st2._x - 25;
if (st2._x < -100) {
st2._x = 740 + random(40);
st2._y = random(478) + 2;
}
st3._x = st3._x - 30;
if (st3._x < -100) {
st3._x = 740 + random(40);
st3._y = random(478) + 2;
}
st4._x = st4._x - 35;
if (st4._x < -100) {
st4._x = 740 + random(40);
}
st5._x = st5._x - 40;
if (st5._x < -100) {
st5._x = 740 + random(40);
st5._y = random(478) + 2;
}
st6._x = st6._x - 45;
if (st6._x < -150) {
st6._x = 760 + random(60);
st6._y = random(478) + 2;
}
Frame 142
if ((score1 < 4) and (score2 < 4)) {
gotoAndPlay((10 * lv) + 1);
}
if (score1 > 3) {
gotoAndPlay (251);
}
if (score2 > 3) {
gotoAndPlay (351);
}
Frame 150
px[1] = 50;
py[1] = 240;
pdelay[1] = 0;
px[2] = 590;
py[2] = 240;
ps[2] = 11;
pshot1[2] = random(7) + 11;
pdelay[2] = 0;
psize[2] = 7;
powt = 1;
psn = 1;
bx = 320;
by = 240;
bxd = 16 - (32 * random(2));
byd = 1 - random(3);
score1 = 0;
score2 = 0;
h1 = 1;
while (h1 <= 30) {
pst[h1] = 0;
psd[h1] = 0;
pss[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 1;
h1++;
}
Frame 151
pcontrols();
bcontrols();
h2 = random(200);
if (h2 == 1) {
pshot1[2] = random(7) + 11;
}
dscreen();
st1._x = st1._x - 20;
if (st1._x < -100) {
st1._x = 740 + random(40);
}
st2._x = st2._x - 25;
if (st2._x < -100) {
st2._x = 740 + random(40);
st2._y = random(478) + 2;
}
st3._x = st3._x - 30;
if (st3._x < -100) {
st3._x = 740 + random(40);
st3._y = random(478) + 2;
}
st4._x = st4._x - 35;
if (st4._x < -100) {
st4._x = 740 + random(40);
}
st5._x = st5._x - 40;
if (st5._x < -100) {
st5._x = 740 + random(40);
st5._y = random(478) + 2;
}
st6._x = st6._x - 45;
if (st6._x < -150) {
st6._x = 760 + random(60);
st6._y = random(478) + 2;
}
Frame 152
if ((score1 < 4) and (score2 < 4)) {
gotoAndPlay((10 * lv) + 1);
}
if (score1 > 3) {
gotoAndPlay (551);
}
if (score2 > 3) {
gotoAndPlay (351);
}
Frame 160
gotoAndPlay (551);
Frame 180
px[1] = 50;
py[1] = 200;
ps[1] = 6;
pshot1[1] = random(7) + 1;
pdelay[1] = 0;
psize[1] = 2;
px[2] = 590;
py[2] = 280;
ps[2] = 6;
pshot1[2] = random(7) + 1;
pdelay[2] = 0;
psize[2] = 2;
px[3] = 600;
py[3] = 280;
ps[3] = 6;
pshot1[3] = random(7) + 1;
pdelay[3] = 0;
psize[3] = 2;
px[4] = 40;
py[4] = 240;
ps[4] = 6;
pshot1[4] = random(7) + 1;
pdelay[4] = 0;
psize[4] = 2;
powt = 1;
psn = 1;
bx = 320;
by = 240;
bxd = 16 - (32 * random(2));
byd = 1 - random(3);
score1 = 0;
score2 = 0;
h1 = 1;
while (h1 <= 30) {
pst[h1] = 0;
psd[h1] = 0;
pss[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 1;
h1++;
}
stopAllSounds();
Frame 181
pcontrols2();
pcontrols3();
bcontrols();
h2 = random(200);
if (h2 == 1) {
pshot1[2] = random(7) + 1;
h2 = random(100);
if (h2 < 3) {
pshot1[2] = pshot1[2] + 10;
}
}
bcontrols2();
h2 = random(200);
if (h2 == 1) {
pshot1[3] = random(7) + 1;
h2 = random(100);
if (h2 < 3) {
pshot1[3] = pshot1[3] + 10;
}
}
ps[2] = score1 + 6;
ps[3] = score1 + 6;
psize[2] = score1 + 2;
psize[3] = score1 + 2;
dscreen();
Frame 182
if ((score1 < 6) and (score2 < 6)) {
gotoAndPlay (181);
}
if (score1 > 5) {
gotoAndPlay (4);
}
if (score2 > 5) {
gotoAndPlay (4);
}
Frame 190
px[1] = 50;
py[1] = 240;
ps[1] = 6;
pshot1[1] = random(7) + 1;
pdelay[1] = 0;
psize[1] = 2;
px[2] = 590;
py[2] = 200;
ps[2] = 6;
pshot1[2] = random(7) + 1;
pdelay[2] = 0;
psize[2] = 2;
powt = 1;
powb = 1;
psn = 1;
bx = 320;
by = 240;
bxd = 16 - (32 * random(2));
byd = 1 - random(3);
score1 = 0;
score2 = 0;
h1 = 1;
while (h1 <= 30) {
pst[h1] = 0;
psd[h1] = 0;
pss[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 1;
h1++;
}
stopAllSounds();
Frame 191
pcontrols2();
pcontrols4();
dscreen();
if (powup2._x < 740) {
powup2._x = powup2._x + 8;
}
if (powup2._x > 690) {
powb = 1;
powup2._x = -2000;
}
h2 = random(120);
if ((h2 < 1) and (powb == 1)) {
powb = random(10) + 2;
powup2._x = -30;
powup2._y = random(380) + 50;
}
if (((((powup2._x - 10) < (px[2] + 5)) and ((powup2._x + 10) > (px[2] - 5))) and ((powup2._y - 10) < (py[2] + (10 * psize[2])))) and ((powup2._y + 10) > (py[2] - (10 * psize[2])))) {
if ((powb == 2) and (ps[2] < 10)) {
ps[2]++;
}
if ((powb == 3) and (psize[2] < 6)) {
psize[2]++;
}
if ((powb == 4) and (pshot1[2] < 11)) {
pshot1[2] = pshot1[2] + 10;
}
if (powb > 4) {
pshot1[2] = powb - 4;
}
powb = 1;
powup2._x = -2000;
}
Frame 192
if ((score1 < 10) and (score2 < 10)) {
gotoAndPlay (191);
}
if (score1 > 9) {
gotoAndPlay (4);
}
if (score2 > 9) {
gotoAndPlay (4);
}
Frame 250
gotoAndPlay (1);
Frame 350
lv++;
gotoAndPlay (451);
Frame 450
gotoAndPlay (1);
Frame 550
gotoAndPlay(10 * lv);
Frame 650
gotoAndPlay (1);