Frame 4
total = _root.getBytesTotal();
carga = _root.getBytesLoaded();
percent = (carga * 100) / total;
txt = ((Math.round(carga / 1024) add " Kb de ") add Math.round(total / 1024)) add " Kb";
setProperty("barra", _xscale , percent);
if (carga == total) {
gotoAndPlay (6);
}
Frame 5
gotoAndPlay (4);
Frame 6
_quality = "MEDIUM";
fr = 0;
archivo = "records.txt";
loadVariablesNum ("http://www.acrylick.com/php/records.txt", 0);
recordsList = new Array();
contList = 0;
Frame 17
if (fr == 1) {
scr = 0;
gotoAndPlay (47);
} else if (fr == 2) {
gotoAndPlay (36);
} else if (fr == 3) {
gotoAndPlay (147);
}
n = 1;
while (Number(rNum) >= n) {
nom = eval ("rNom" add n);
punt = Number(eval ("rPunt" add n));
recordsList[n] = {nombre:nom, puntos:punt};
n++;
}
recordsList.sortOn("puntos");
if (ContList == 0) {
n = Number(rNum);
while (n >= 1) {
contList = 1;
tt = (((tt add recordsList[n].nombre) add "---------") add recordsList[n].puntos) add newline;
n--;
}
}
Frame 18
gotoAndPlay (17);
Frame 36
fr = 0;
Frame 45
if (fr == 1) {
gotoAndPlay (6);
}
Frame 46
gotoAndPlay (45);
Frame 47
scr = 0;
lvlNum = 5;
lvl = 1;
Frame 56
lvlNum = lvlNum - 1;
if (lvlNum < 2) {
lvlNum = 5;
lvl = lvl + 1;
}
k = 1;
while (arbNum >= k) {
removeMovieClip("obj" add k);
k++;
}
cuenta = 0;
_root.attachMovie("cuenta", "cuenta", 10);
setProperty("cuenta", _x , 380);
setProperty("cuenta", _y , 250);
Frame 57
if (cuenta == 1) {
removeMovieClip("cuenta");
gotoAndPlay (59);
}
Frame 58
gotoAndPlay (57);
Frame 59
arbNum = lvlNum;
muertos = 0;
estMuer = 0;
PI = 3.1416;
giro = new Array();
vgiro = new Array();
vvgiro = 0.00628318530717959;
giromax = 0.130899693899575;
giromin = -0.130899693899575;
v = new Array();
vx = new Array();
vy = new Array();
a = new Array();
err = new Array();
chk = new Array();
targ = new Array();
vida = new Array();
est = new Array();
n = 1;
while (arbNum >= n) {
vida[n] = 100;
est[n] = 1;
chk[n] = 0;
giro[n] = (Math.random() * Math.PI) * 2;
vgiro[n] = 0;
v[n] = 0;
vx[n] = 0;
vy[n] = 0;
a[n] = 0;
err[n] = 10 * (Math.random() - Math.random());
n++;
}
va = 0.2;
amax = 1;
vmax = 4;
roz = 0.91;
limX = 450;
limY = 580;
centroX = 380;
centroY = 280;
Frame 60
sqNum = lvlNum;
objX = new Array();
objY = new Array();
depth = new Array();
n = 1;
while (arbNum >= n) {
if (sqNum >= n) {
if (n == 1) {
_root.attachMovie("squad2", "obj" add n, n);
} else {
_root.attachMovie("squad1", "obj" add n, n);
}
objX[n] = (Math.random() - Math.random()) * limX;
objY[n] = (Math.random() - Math.random()) * limY;
frm = Math.round((36 * giro[n]) / (PI * 2)) + 1;
if (giro[n] < 0) {
giro[n] = PI * 2;
} else if ((Math.Pi * 2) < giro[n]) {
giro[n] = 0;
}
with (eval ("_root.obj" add n)) {
gotoAndStop(frm);
}
call("coloca");
call("elige");
} else {
_root.attachMovie("arb", "obj" add n, n);
objX[n] = (Math.random() - Math.random()) * limX;
objY[n] = (Math.random() - Math.random()) * limY;
setProperty("obj" add n, _x , centroX + ((32 * (objX[n] - objY[n])) / 100));
setProperty("obj" add n, _y , centroY - ((16 * (objX[n] + objY[n])) / 100));
}
setProperty("obj" add n, _alpha , 0);
n++;
}
cont = 0;
Frame 61
cont = cont + 5;
n = 1;
while (arbNum >= n) {
setProperty("obj" add n, _alpha , cont);
n++;
}
if (cont >= 100) {
gotoAndPlay (63);
}
Frame 62
gotoAndPlay (61);
Frame 63
n = 1;
while (arbNum >= n) {
if (vida[1] == 0) {
gotoAndPlay (108);
}
estMuer = 0;
muer = 2;
while (arbNum >= muer) {
if (est[muer] != 0) {
estMuer = 1;
}
muer++;
}
if (estMuer == 0) {
gotoAndPlay (116);
}
if ((n == 1) and (est[n] != 0)) {
call("teclas");
call("calcula");
giro[n] = giro[n] + ((vgiro[n] * v[n]) / 5);
} else if (((1 < n) and (sqNum >= n)) and (est[n] != 0)) {
t = targ[n];
ang = Math.atan2((objY[t] + err[n]) - objY[n], (objX[t] + err[n]) - objX[n]);
if (ang < 0) {
ang = (2 * PI) - Math.abs(ang);
}
angGiro = giro[n];
angD = ang - angGiro;
Dx = objX[t] - objX[n];
Dy = objY[t] - objY[n];
D = Math.sqrt((Dx * Dx) + (Dy * Dy));
if (0 < angD) {
vgiro[n] = vgiro[n] + vvgiro;
} else {
vgiro[n] = vgiro[n] - vvgiro;
}
if (100 < D) {
a[n] = a[n] + va;
}
call("calcula");
giro[n] = giro[n] + ((vgiro[n] * v[n]) / (13 - lvl));
if (giro[n] < 0) {
giro[n] = (Math.PI*2);
} else if ((Math.PI*2) < giro[n]) {
giro[n] = 0;
}
with (eval ("_root.obj" add n)) {
gotoAndStop(frm);
}
}
call("limite");
m = n + 1;
while (arbNum >= m) {
call("choque");
m++;
}
if (chk[n] == 0) {
objX[n] = objX[n] + vx[n];
objY[n] = objY[n] + vy[n];
} else {
chk[n] = 0;
}
call("coloca");
n++;
}
Frame 64
gotoAndPlay (63);
Frame 68
if (Key.isDown(38)) {
a[n] = a[n] + va;
}
if (Key.isDown(40)) {
a[n] = a[n] - va;
}
if (Key.isDown(39)) {
vgiro[n] = vgiro[n] - vvgiro;
}
if (Key.isDown(37)) {
vgiro[n] = vgiro[n] + vvgiro;
}
Frame 73
if (a[n] >= amax) {
a[n] = amax;
} else if ((-amax) >= a[n]) {
a[n] = -amax;
}
vgiro[n] = vgiro[n] * roz;
vx[n] = vx[n] + (a[n] * Math.cos(giro[n]));
vy[n] = vy[n] + (a[n] * Math.sin(giro[n]));
v[n] = v[n] + a[n];
if (vgiro[n] >= giromax) {
vgiro[n] = giromax;
} else if (giromin >= vgiro[n]) {
vgiro[n] = giromin;
}
frm = Math.round((36 * giro[n]) / (PI * 2)) + 1;
if (giro[n] < 0) {
giro[n] = PI * 2;
} else if ((Math.Pi * 2) < giro[n]) {
giro[n] = 0;
}
with (eval ("_root.obj" add n)) {
gotoAndStop(frm);
}
Frame 79
depth[n] = Math.round(centroY - ((16 * (objX[n] + objY[n])) / 100));
setProperty("obj" add n, _x , centroX + ((32 * (objX[n] - objY[n])) / 100));
setProperty("obj" add n, _y , depth[n]);
eval ("_root.obj" add n).swapDepths(Math.abs(depth[n]));
with (eval ("_root.obj" add n)) {
vid = vida[n];
es = est[n];
tar = targ[n];
}
a[n] = a[n] * roz;
v[n] = v[n] * roz;
vx[n] = vx[n] * roz;
vy[n] = vy[n] * roz;
Frame 85
Dx = objX[m] - objX[n];
Dy = objY[m] - objY[n];
D = Math.sqrt((Dx * Dx) + (Dy * Dy));
if (D < 90) {
call("elige");
ang = Math.atan2(objY[m] - objY[n], objX[m] - objX[n]) - PI;
if (ang < 0) {
ang = (2 * PI) - Math.abs(ang);
}
angg = Math.atan2(objY[n] - objY[m], objX[n] - objX[m]) - PI;
if (angg < 0) {
angg = (2 * PI) - Math.abs(angg);
}
angD = ang - giro[n];
angDD = angg - giro[m];
a[n] = -a[n];
a[m] = -a[m];
chk[n] = 1;
vxt = vx[n];
vx[n] = vx[m];
vx[m] = vxt;
vyt = vy[n];
vy[n] = vy[m];
vy[m] = vyt;
objX[n] = objX[m] + (95 * Math.cos(ang));
objY[n] = objY[m] + (95 * Math.sin(ang));
if (vmax < vx[n]) {
vx[n] = vmax;
} else if (vx[n] < (-vmax)) {
vx[n] = -vmax;
}
if (vmax < vy[n]) {
vy[n] = vmax;
} else if (vy[n] < (-vmax)) {
vy[n] = -vmax;
}
Set("daño1", 20 + ((10 * Math.cos(-angD)) - 10));
Set("daño2", 20 + ((10 * Math.cos(-angDD)) - 10));
vida[n] = vida[n] - daño1;
vida[m] = vida[m] - daño2;
if (((n == 1) and (est[m] != 0)) and (est[1] != 0)) {
scr = Math.round(scr + (5 * daño2));
} else if (((m == 1) and (est[n] != 0)) and (est[1] != 0)) {
scr = Math.round(scr + (5 * daño1));
}
if (0 >= vida[n]) {
with (eval (("_root.obj" add n) add ".humo")) {
gotoAndPlay(2);
}
est[n] = 0;
vida[n] = 0;
}
if (0 >= vida[m]) {
with (eval (("_root.obj" add m) add ".humo")) {
gotoAndPlay(2);
}
est[m] = 0;
vida[m] = 0;
}
setProperty(("_root.obj" add n) add ".vida", _xscale , vida[n]);
with (eval (("_root.obj" add n) add ".vida")) {
gotoAndPlay(2);
}
setProperty(("_root.obj" add m) add ".vida", _xscale , vida[m]);
with (eval (("_root.obj" add m) add ".vida")) {
gotoAndPlay(2);
}
if ((n == 1) or (m == 1)) {
setProperty("_root.daño", _x , 60 + (40 * Math.sin(angD)));
setProperty("_root.daño", _y , 415 + (40 * Math.cos(angD)));
setProperty("_root.barra", _xscale , vida[n]);
with (_root["daño"]) {
gotoAndPlay(2);
}
}
}
Frame 91
if (limX < objX[n]) {
objX[n] = limX;
vx[n] = (-vx[n]) * 0.8;
} else if (objX[n] < (-limX)) {
objX[n] = -limX;
vx[n] = (-vx[n]) * 0.8;
}
if (limY < objY[n]) {
objY[n] = limY;
vy[n] = (-vy[n]) * 0.8;
} else if (objY[n] < (-limY)) {
objY[n] = -limY;
vy[n] = (-vy[n]) * 0.8;
}
Frame 98
targ[n] = Math.round(Math.random() * (sqNum - 1)) + 1;
if (targ[n] == n) {
targ[n] = 1;
} else if (est[targ[n]] == 0) {
targ[n] = 1;
}
targ[m] = Math.round(Math.random() * (sqNum - 1)) + 1;
if (targ[m] == m) {
targ[m] = 1;
} else if (est[targ[m]] == 0) {
targ[m] = 1;
}
Frame 108
_root.attachMovie("gameover", "gameover", 10000);
setProperty("gameover", _x , 380);
setProperty("gameover", _y , 250);
salir = 0;
Frame 109
n = 1;
while (arbNum >= n) {
if ((n == 1) and (est[n] != 0)) {
} else if (((1 < n) and (sqNum >= n)) and (est[n] != 0)) {
t = targ[n];
ang = Math.atan2((objY[t] + err[n]) - objY[n], (objX[t] + err[n]) - objX[n]);
if (ang < 0) {
ang = (2 * PI) - Math.abs(ang);
}
angGiro = giro[n];
angD = ang - angGiro;
Dx = objX[t] - objX[n];
Dy = objY[t] - objY[n];
D = Math.sqrt((Dx * Dx) + (Dy * Dy));
if (0 < angD) {
vgiro[n] = vgiro[n] + vvgiro;
} else {
vgiro[n] = vgiro[n] - vvgiro;
}
if (100 < D) {
a[n] = a[n] + va;
}
call("calcula");
giro[n] = giro[n] + ((vgiro[n] * v[n]) / 8);
if (giro[n] < 0) {
giro[n] = (Math.PI*2);
} else if ((Math.PI*2) < giro[n]) {
giro[n] = 0;
}
with (eval ("_root.obj" add n)) {
gotoAndStop(frm);
}
}
call("limite");
m = n + 1;
while (arbNum >= m) {
call("choque");
m++;
}
if (chk[n] == 0) {
objX[n] = objX[n] + vx[n];
objY[n] = objY[n] + vy[n];
} else {
chk[n] = 0;
}
call("coloca");
n++;
}
if (salir == 1) {
loadVariablesNum ("http://www.acrylick.com/php/gravatxt.php", , "GET");
n = 1;
while (arbNum >= n) {
removeMovieClip("obj" add n);
n++;
}
removeMovieClip("gameover");
gotoAndPlay (6);
}
Frame 110
gotoAndPlay (109);
Frame 116
cont = 100;
Frame 117
cont = cont - 3;
n = 1;
while (arbNum >= n) {
setProperty("obj" add n, _alpha , cont);
if ((n == 1) and (est[n] != 0)) {
call("teclas");
call("calcula");
giro[n] = giro[n] + ((vgiro[n] * v[n]) / 5);
} else if (((1 < n) and (sqNum >= n)) and (est[n] != 0)) {
t = targ[n];
ang = Math.atan2((objY[t] + err[n]) - objY[n], (objX[t] + err[n]) - objX[n]);
if (ang < 0) {
ang = (2 * PI) - Math.abs(ang);
}
angGiro = giro[n];
angD = ang - angGiro;
Dx = objX[t] - objX[n];
Dy = objY[t] - objY[n];
D = Math.sqrt((Dx * Dx) + (Dy * Dy));
if (0 < angD) {
vgiro[n] = vgiro[n] + vvgiro;
} else {
vgiro[n] = vgiro[n] - vvgiro;
}
if (100 < D) {
a[n] = a[n] + va;
}
call("calcula");
giro[n] = giro[n] + ((vgiro[n] * v[n]) / (13 - lvl));
if (giro[n] < 0) {
giro[n] = (Math.PI*2);
} else if ((Math.PI*2) < giro[n]) {
giro[n] = 0;
}
with (eval ("_root.obj" add n)) {
gotoAndStop(frm);
}
}
call("limite");
m = n + 1;
while (arbNum >= m) {
call("choque");
m++;
}
if (chk[n] == 0) {
objX[n] = objX[n] + vx[n];
objY[n] = objY[n] + vy[n];
} else {
chk[n] = 0;
}
call("coloca");
n++;
}
if (0 >= cont) {
gotoAndPlay (56);
}
Frame 118
gotoAndPlay (117);
Frame 146
stop();
Frame 147
fr = 0;
contList = 0;
loadVariablesNum ("http://www.acrylick.com/php/records.txt", 0);
Frame 156
n = 1;
while (Number(rNum) >= n) {
nom = String(eval ("rNom" add n));
punt = eval ("rPunt" add n);
if (punt < 10) {
punt = "..." add punt;
} else if ((punt < 100) and (punt >= 10)) {
punt = ".." add punt;
} else if ((punt < 1000) and (punt >= 100)) {
punt = "." add punt;
}
punt = "..............." add punt;
recordsList[n] = {nombre:nom, puntos:punt};
n++;
}
recordsList.sortOn("puntos");
if (ContList == 0) {
n = Number(rNum);
while (n >= 1) {
nomb = recordsList[n].nombre;
score = recordsList[n].puntos;
contList = 1;
tt = ((((tt add nomb) add guion) add "--------") add recordsList[n].puntos) add newline;
tnom = (tnom add nomb) add newline;
tpunt = (tpunt add score) add newline;
n--;
}
}
if (fr == 1) {
scr = 0;
gotoAndPlay (47);
} else if (fr == 2) {
gotoAndPlay (36);
}
n = 1;
while (Number(rNum) >= n) {
nom = eval ("rNom" add n);
punt = Number(eval ("rPunt" add n));
recordsList[n] = {nombre:nom, puntos:punt};
n++;
}
Frame 157
gotoAndPlay (156);
Symbol 4 MovieClip Frame 1
stop();
Symbol 9 MovieClip Frame 1
stop();
Symbol 9 MovieClip Frame 38
gotoAndPlay (2);
Symbol 80 MovieClip [squad2] Frame 1
stop();
Symbol 153 MovieClip [squad1] Frame 1
stop();
Symbol 172 Button
on (release) {
gotoAndPlay (9);
}
Symbol 175 MovieClip Frame 1
loadVariables ("http://www.acrylick.com/php/records.txt", "");
recordsList = new Array();
nom = 0;
punt = 0;
contList = 0;
puntos = _root.scr;
Symbol 175 MovieClip Frame 4
rNum = Number(rNum);
n = 1;
while (Number(rNum) >= n) {
nom = eval ("rNom" add n);
punt = Number(eval ("rPunt" add n));
recordsList[n] = {nombre:nom, puntos:punt};
n++;
}
Symbol 175 MovieClip Frame 5
gotoAndPlay (4);
Symbol 175 MovieClip Frame 10
rNum = Number(rNum);
if (nombre == "TU NOMBRE") {
nombre = "NADIE";
}
if (rNum != 0) {
n = 1;
while (Number(rNum) >= n) {
nom = eval ("rNom" add n);
punt = Number(eval ("rPunt" add n));
recordsList[n] = {nombre:nom, puntos:punt};
n++;
}
num = rNum + 1;
nom = nombre;
punt = puntos;
recordsList[num] = {nombre:nom, puntos:punt};
recordsList.sortOn("puntos");
graba = "rNum=" add num;
n = 1;
while (num >= n) {
graba = (((((((((graba + "&") add "rNom") add ((num - n) + 1)) add "=") add recordsList[(num - n) + 1].nombre) add "&") add "rPunt") add ((num - n) + 1)) add "=") add recordsList[(num - n) + 1].puntos;
n++;
}
Set("/:grabar", graba);
Set("/:salir", 1);
}
Symbol 176 MovieClip [gameover] Frame 106
stop();
Symbol 189 MovieClip [cuenta] Frame 1
play();
Symbol 189 MovieClip [cuenta] Frame 76
with (_root) {
cuenta = 1;
}
Symbol 202 Button
on (release) {
getURL ("http://www.acrylick.com", "_blank");
}
Symbol 215 Button
on (release) {
with (_root) {
fr = 1;
}
}
Symbol 220 Button
on (release) {
with (_root) {
fr = 2;
}
}
Symbol 225 Button
on (release) {
with (_root) {
fr = 3;
}
}
Symbol 228 MovieClip Frame 13
gotoAndPlay (1);
Symbol 230 MovieClip Frame 13
gotoAndPlay (1);
Symbol 242 Button
on (release) {
nextFrame();
}
Symbol 250 Button
on (release) {
with (_root) {
fr = 1;
}
}
Symbol 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 2
stop();
Symbol 255 MovieClip Frame 3
stop();
Symbol 255 MovieClip Frame 4
stop();
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 11
stop();
Symbol 273 MovieClip Frame 10
tnom = /:tnom;
tpunt = /:tpunt;
Symbol 273 MovieClip Frame 11
gotoAndPlay (10);