Frame 1
fscommand ("showmenu", "false");
fscommand ("allowscale", "false");
fscommand ("trapallkeys", "true");
fscommand ("fullscreen", "false");
config1 = 3;
config2 = 1;
config3 = 1;
config4 = 1;
config5 = 2;
config6 = 1;
_soundbuftime = 20;
Frame 3
totales1 = _root.getBytesTotal();
leidos1 = _root.getBytesLoaded();
if (totales1 >= leidos1) {
e_barra1 = int((leidos1 * 100) / totales1);
barra1.valor = e_barra1;
with (barra1) {
gotoAndStop(valor);
}
}
if (leidos1 == totales1) {
carga1 = 1;
}
barra1.muestra1 = ((int(leidos1 / 1000) + " de ") + int(totales1 / 1000)) + " Kb";
barra1.muestra2 = ("Estado: " + e_barra1) + " %";
if (carga1 == 1) {
gotoAndStop (4);
} else {
gotoAndPlay (2);
}
Frame 4
cont_menu = 0;
_quality = "HIGH";
stop();
Instance of Symbol 15 MovieClip "raton" in Frame 4
onClipEvent (load) {
Mouse.hide();
startDrag ("", true);
}
Instance of Symbol 29 MovieClip in Frame 4
onClipEvent (load) {
tiempo2 = 0;
}
onClipEvent (mouseMove) {
mx = _root._xmouse;
my = _root._ymouse;
x = mx - _x;
y = my - _y;
r = Math.sqrt((x * x) + (y * y));
sinTheta = y / r;
theta = Math.asin(sinTheta);
if (mx < _x) {
_rotation = (180 - (theta / 0.0175));
}
if (_x < mx) {
_rotation = (theta / 0.0175);
}
}
onClipEvent (mouseUp) {
m_tiempo = getTimer();
_root.cont_menu++;
duplicateMovieClip ("_root.disparo2", "disparin" + m_tiempo, _root:cont_menu);
Set(("_root.disparin" + m_tiempo) + ".angulo", _rotation);
eval ("_root.disparin" + m_tiempo)._x = _x;
eval ("_root.disparin" + m_tiempo)._y = _y;
with (eval ("_root.disparin" + m_tiempo)) {
gotoAndPlay(2);
}
}
Frame 5
function incremento_x(ang2, velocidad2) {
radian2 = 0.0175 * ang2;
inc_x = Math.cos(radian2);
return(inc_x * velocidad2);
}
function incremento_y(ang3, velocidad3) {
radian3 = 0.0175 * ang3;
inc_y = Math.sin(radian3);
return(inc_y * velocidad3);
}
function piedra(mode_p, p_id, tipo, ang_p, xpi, ypi) {
if (mode_p == 1) {
CONT++;
nombre_piedra = (("piedra" + getTimer()) + random(10000000)) + (substring(letras, random(26), 1));
id_piedras.push(nombre_piedra);
duplicateMovieClip ("_root.ref" + tipo, nombre_piedra, _root.CONT);
with (eval ("_root." + nombre_piedra)) {
gotoAndPlay(2);
}
}
if (mode_p == 2) {
CONT++;
nombre_piedra = (("piedra" + getTimer()) + random(10000000)) + (substring(letras, random(26), 1));
id_piedras.push(nombre_piedra);
duplicateMovieClip ("_root.ref" + tipo, nombre_piedra, _root.CONT);
Set(nombre_piedra + ".angulo", ang_p);
eval (nombre_piedra)._x = xpi;
eval (nombre_piedra)._y = ypi;
with (eval ("_root." + nombre_piedra)) {
gotoAndPlay(2);
}
}
if (mode_p == 0) {
c2 = 0;
while (c2 < id_piedras.length) {
if (id_piedras[c2] == p_id) {
removeMovieClip(p_id);
id_piedras.splice(c2, 1);
}
c2++;
}
}
}
function disparo(mode_d, id_d) {
if (mode_d == 1) {
CONT++;
nombre_disparo = (("disparo" + getTimer()) + random(10000000)) + (substring(letras, random(26), 1));
id_disparos.push(nombre_disparo);
duplicateMovieClip (_root.ref6, nombre_disparo, _root.CONT);
with (eval (nombre_disparo)) {
gotoAndPlay(2);
}
}
if (mode_d == 0) {
c3 = 0;
while (c3 < id_disparos.length) {
if (id_disparos[c3] == id_d) {
id_disparos.splice(c3, 1);
}
c3++;
}
}
}
function end_game(frame_destino) {
removeMovieClip(_root.interfaz);
f = 0;
while (f < id_piedras.length) {
removeMovieClip("_root." + id_piedras[f]);
f++;
}
f = 0;
while (f < id_disparos.length) {
with (eval ("_root." + _root.id_disparos[f])) {
gotoAndStop(4);
}
f++;
}
with (sonido3) {
stopAllSounds();
}
gotoAndStop(frame_destino);
}
if (config1 == 1) {
_quality = "LOW";
}
if (config1 == 2) {
_quality = "MEDIUM";
}
if (config1 == 3) {
_quality = "HIGH";
}
if (config4 == 1) {
with (sonido3) {
gotoAndPlay(2);
}
}
id_piedras = new Array();
id_disparos = new Array();
letras = "qwertyuiopasdfghjklzxcvbnm";
pause = 0;
CONT = 0;
puntuacion = 0;
duplicateMovieClip ("ref7", "interfaz", 90000);
interfaz._x = 275;
interfaz._y = 200;
with (_root.interfaz.vidas) {
gotoAndStop(4);
}
interfaz.level = 1;
interfaz.puntos = 0;
player.fin_juego = 0;
player.cont_fps = 30;
player.muerte = 0;
player.impulso = 0;
player.impulso2 = 0;
player.angulo = 0;
player.angulo_a = 0;
player.angulo_i = 0;
player.tiempo2 = 0;
player.tiempo_fps = 0;
piedra(1, 0, 1, 0, 0, 0);
f_disparos = 0;
f_aciertos = 0;
f_fallos = 0;
f_puntos = 0;
stop();
Instance of Symbol 103 MovieClip "player" in Frame 5
onClipEvent (load) {
Impulso = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
if (muerte == 0) {
tiempo = getTimer();
pulsa = 0;
if (Key.isDown(Key.LEFT)) {
rota_left = rota_left + 0.6;
}
if (Key.isDown(Key.RIGHT)) {
rota_right = rota_right + 0.6;
}
if (Key.isDown(Key.UP)) {
pulsa = 1;
}
if (0 < _root.id_disparos.length) {
cont = 0;
while (cont < _root.id_disparos.length) {
eval ("_root." + _root.id_disparos[cont]).move();
cont++;
}
}
if (Key.isDown(Key.CONTROL) and (tiempo >= tiempo2)) {
_root.f_disparos++;
_root.disparo(1, 0);
tiempo2 = tiempo + 400;
}
cont = 0;
while (cont < _root.id_piedras.length) {
if (this.hitTest("_root." + _root.id_piedras[cont])) {
with (_root.sonido1) {
gotoAndPlay(2);
}
if (_root.interfaz.vidas._currentframe == 1) {
fin_juego = 1;
} else {
with (_root.interfaz.vidas) {
gotoAndStop(_currentframe - 1);
}
}
cont2 = 0;
while (cont2 < _root.id_disparos.length) {
with (eval ("_root." + _root.id_disparos[cont2])) {
gotoAndStop(4);
}
cont2++;
}
if (_currentframe == 1) {
gotoAndStop (2);
}
break;
}
cont++;
}
}
if (0 < _root.id_piedras.length) {
cont = 0;
while (cont < _root.id_piedras.length) {
eval ("_root." + _root.id_piedras[cont]).move();
cont++;
}
}
rota_left = rota_left - 0.2;
rota_right = rota_right - 0.2;
if (rota_left < 0) {
rota_left = 0;
}
if (rota_right < 0) {
rota_right = 0;
}
if (5 < rota_left) {
rota_left = 5;
}
if (5 < rota_right) {
rota_right = 5;
}
angulo = angulo - rota_left;
angulo = angulo + rota_right;
if (359 < angulo) {
angulo = 0;
}
if (angulo < 0) {
angulo = 359;
}
if (pulsa == 1) {
impulso = impulso + 0.2;
impulso2 = impulso2 - 0.2;
angulo_a = angulo;
inercia = 0;
} else if ((0 < impulso) and (impulso2 == 0)) {
inercia = 1;
angulo_i = angulo_a;
impulso2 = impulso;
impulso = 0;
}
impulso = impulso - 0.05;
if (impulso < 0) {
impulso = 0;
}
if (6 < impulso) {
impulso = 6;
}
impulso2 = impulso2 - 0.05;
if (impulso2 < 0) {
impulso2 = 0;
}
radian = 0.0175 * angulo_a;
ix = Math.cos(radian);
iy = Math.sin(radian);
ttx = ix * impulso;
tty = iy * impulso;
radian = 0.0175 * angulo_i;
ix = Math.cos(radian);
iy = Math.sin(radian);
ttx = ttx + (ix * impulso2);
tty = tty + (iy * impulso2);
_x = (_x + ttx);
_y = (_y + tty);
_rotation = angulo;
if (550 < _x) {
_x = 0;
}
if (400 < _y) {
_y = 0;
}
if (_x < 0) {
_x = 550;
}
if (_y < 0) {
_y = 400;
}
if (tiempo_fps < tiempo) {
if (_root.config5 == 1) {
_root.interfaz.fps = "fps : " + cont_fps;
}
if (_root.config6 == 1) {
_root.interfaz.alerta = "";
if ((cont_fps >= 30) and (_quality ne "HIGH")) {
_quality = "HIGH";
_root.interfaz.alerta = "<Auto_High>";
}
if ((cont_fps < 26) and (_quality eq "HIGH")) {
_quality = "MEDIUM";
_root.interfaz.alerta = "<Auto_Medium>";
}
if ((cont_fps < 23) and (_quality eq "MEDIUM")) {
_quality = "LOW";
_root.interfaz.alerta = "<Auto_Low>";
}
} else {
if (25 < cont_fps) {
_root.interfaz.alerta = "";
}
if (cont_fps < 25) {
_root.interfaz.alerta = "Please set quality to Medium";
}
if (20 >= cont_fps) {
_root.interfaz.alerta = "Please set quality to Low";
}
}
tiempo_fps = tiempo + 1000;
cont_fps = 0;
}
cont_fps++;
}
}
Frame 6
function incremento_x(ang2, velocidad2) {
radian2 = 0.0175 * ang2;
inc_x = Math.cos(radian2);
return(inc_x * velocidad2);
}
function incremento_y(ang3, velocidad3) {
radian3 = 0.0175 * ang3;
inc_y = Math.sin(radian3);
return(inc_y * velocidad3);
}
function disparo() {
CONT++;
nombre_disparo = "disparo" + getTimer();
duplicateMovieClip (_root.disparo_p, nombre_disparo, _root:CONT);
with (eval (nombre_disparo)) {
gotoAndPlay(2);
}
}
_quality = "HIGH";
player.muerte = 0;
player.impulso = 0;
player.impulso2 = 0;
player.angulo = 0;
player.angulo_a = 0;
player.angulo_i = 0;
player.tiempo2 = 0;
CONT = 0;
with (piedra_practice1) {
gotoAndPlay(2);
}
with (piedra_practice2) {
gotoAndPlay(2);
}
stop();
Instance of Symbol 112 MovieClip "player" in Frame 6
onClipEvent (load) {
Impulso = 0;
}
onClipEvent (enterFrame) {
if (muerte == 0) {
tiempo = getTimer();
pulsa = 0;
if (Key.isDown(Key.LEFT)) {
rota_left = rota_left + 0.6;
}
if (Key.isDown(Key.RIGHT)) {
rota_right = rota_right + 0.6;
}
if (Key.isDown(Key.UP)) {
pulsa = 1;
}
if (Key.isDown(Key.CONTROL) and (tiempo >= tiempo2)) {
_root.disparo();
tiempo2 = tiempo + 400;
}
if (this.hitTest(_root.piedra_practice1)) {
with (_root.sonido1) {
gotoAndPlay(2);
}
gotoAndStop (2);
}
if (this.hitTest(_root.piedra_practice2)) {
with (_root.sonido1) {
gotoAndPlay(2);
}
gotoAndStop (2);
}
}
rota_left = rota_left - 0.2;
rota_right = rota_right - 0.2;
if (rota_left < 0) {
rota_left = 0;
}
if (rota_right < 0) {
rota_right = 0;
}
if (5 < rota_left) {
rota_left = 5;
}
if (5 < rota_right) {
rota_right = 5;
}
angulo = angulo - rota_left;
angulo = angulo + rota_right;
if (359 < angulo) {
angulo = 0;
}
if (angulo < 0) {
angulo = 359;
}
if (pulsa == 1) {
impulso = impulso + 0.2;
impulso2 = impulso2 - 0.2;
angulo_a = angulo;
inercia = 0;
} else if ((0 < impulso) and (impulso2 == 0)) {
inercia = 1;
angulo_i = angulo_a;
impulso2 = impulso;
impulso = 0;
}
impulso = impulso - 0.05;
if (impulso < 0) {
impulso = 0;
}
if (6 < impulso) {
impulso = 6;
}
impulso2 = impulso2 - 0.05;
if (impulso2 < 0) {
impulso2 = 0;
}
radian = 0.0175 * angulo_a;
ix = Math.cos(radian);
iy = Math.sin(radian);
ttx = ix * impulso;
tty = iy * impulso;
radian = 0.0175 * angulo_i;
ix = Math.cos(radian);
iy = Math.sin(radian);
ttx = ttx + (ix * impulso2);
tty = tty + (iy * impulso2);
_x = (_x + ttx);
_y = (_y + tty);
_rotation = angulo;
if (550 < _x) {
_x = 0;
}
if (400 < _y) {
_y = 0;
}
if (_x < 0) {
_x = 550;
}
if (_y < 0) {
_y = 400;
}
}
Frame 7
_quality = "HIGH";
f_puntos = ((f_puntos * f_level) + f_aciertos) - f_fallos;
if (f_puntos < 0) {
f_puntos = 0;
}
p01 = int((f_aciertos * 100) / f_disparos);
p02 = 100 - p01;
with (pbarra1) {
gotoAndStop(_parent.p01);
}
with (pbarra2) {
gotoAndStop(_parent.p02);
}
stop();
Instance of Symbol 15 MovieClip "raton" in Frame 7
onClipEvent (load) {
Mouse.hide();
startDrag ("", true);
}
Symbol 11 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 1
stop();
Symbol 22 Button
on (release) {
if (config2 == 1) {
gotoAndStop (5);
}
if (config2 == 2) {
gotoAndStop (6);
}
}
Symbol 24 Button
on (release) {
with (menu) {
gotoAndStop(3);
}
}
on (rollOver) {
with (raton) {
gotoAndStop(2);
}
}
on (rollOut, dragOut) {
with (raton) {
gotoAndStop(1);
}
}
Symbol 27 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 2
radian = 0.017 * angulo;
ix = Math.cos(radian);
iy = Math.sin(radian);
_x = (_x + (ix * 1.5));
_y = (_y + (iy * 1.5));
play();
Symbol 27 MovieClip Frame 4
_x = (_x + (ix * 4));
_y = (_y + (iy * 4));
if ((((_x < 0) or (550 < _x)) or (_y < 0)) or (400 < _y)) {
nextFrame();
} else {
gotoAndPlay (3);
}
Symbol 27 MovieClip Frame 5
removeMovieClip("");
Symbol 29 MovieClip Frame 1
stop();
Symbol 34 Button
on (release) {
gotoAndStop (2);
}
Symbol 38 Button
on (release) {
if (_currentframe == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 45 Button
on (release) {
_parent._parent.actu_d(substring(_parent._name, 10, 1), substring(_name, 2, 1));
_parent.o_select = substring(_name, 2, 1);
with (_parent) {
gotoAndStop(1);
}
}
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 2
stop();
Symbol 50 MovieClip Frame 1
title = contenido[0];
if (0 < eval ("_root.config" + (substring(_name, 10, 1)))) {
o_select = eval ("_root.config" + (substring(_name, 10, 1)));
} else {
o_select = contenido[2];
}
stop();
Symbol 50 MovieClip Frame 2
_parent.cierra_desplegables(substring(_name, 10, 1));
cont = 1;
while (contenido[1] >= cont) {
Set(("o" + cont) + ".title", contenido[cont + 2]);
if (o_select == cont) {
with (eval ("o" + cont)) {
gotoAndStop(3);
}
} else {
with (eval ("o" + cont)) {
gotoAndStop(2);
}
}
cont++;
}
Symbol 51 MovieClip Frame 1
title = contenido[0];
if (0 < eval ("_root.config" + (substring(_name, 10, 1)))) {
o_select = eval ("_root.config" + (substring(_name, 10, 1)));
} else {
o_select = contenido[2];
}
stop();
Symbol 51 MovieClip Frame 2
_parent.cierra_desplegables(substring(_name, 10, 1));
cont = 1;
while (contenido[1] >= cont) {
Set(("o" + cont) + ".title", contenido[cont + 2]);
if (o_select == cont) {
with (eval ("o" + cont)) {
gotoAndStop(3);
}
} else {
with (eval ("o" + cont)) {
gotoAndStop(2);
}
}
cont++;
}
Symbol 52 Button
on (release) {
gotoAndStop (1);
}
Symbol 54 Button
on (release) {
getURL ("mailto:ovnilight@terra.es");
}
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 2
function actu_d(desp, o_select) {
if (desp == 3) {
if (o_select == 1) {
_root.s_null = new Sound();
_root.s_null.setVolume(100);
}
if (o_select == 2) {
_root.s_null = new Sound();
_root.s_null.setVolume(0);
}
}
Set("_root.config" + desp, o_select);
}
function cierra_desplegables(id) {
cd = 1;
while (n_desp >= cd) {
if (cd != id) {
with (eval ("despliega" + cd)) {
gotoAndStop(1);
}
}
cd++;
}
}
n_desp = 6;
despliega1.contenido = new Array("Q u a l i t y", "3", "3", "L o w", "M e d i u m", "H i g h");
despliega2.contenido = new Array("G a m e", "2", "1", "N o r m a l", "P r a c t i c e");
despliega3.contenido = new Array("S o u n d s", "2", "1", "O n", "O f f");
despliega4.contenido = new Array("L o o p", "2", "1", "O n", "O f f");
despliega5.contenido = new Array("f p s", "2", "2", "View", "Hide");
despliega6.contenido = new Array("Auto Quality", "2", "1", "O n", "O f f");
Instance of Symbol 51 MovieClip "despliega1" in Symbol 60 MovieClip Frame 2
/* no clip actions */
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 2
gotoAndStop (1);
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 2
gotoAndStop (1);
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 2
gotoAndStop (1);
Symbol 67 Button
on (keyPress "p") {
if (pause == 0) {
pause = 1;
interfaz.alerta = "<P A U S E>";
} else {
interfaz.alerta = "";
pause = 0;
}
}
on (keyPress "q") {
end_game(4);
}
Symbol 75 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 1
tipo = 5;
suma = 8;
lx1 = -suma;
lx2 = 550 + suma;
ly1 = -suma;
ly2 = 400 + suma;
stop();
Symbol 80 MovieClip Frame 2
tipo = 5;
ix = _root.incremento_x(angulo, 1.5 + (_root.interfaz:level / 4));
iy = _root.incremento_y(angulo, 1.5 + (_root.interfaz:level / 4));
play();
Symbol 80 MovieClip Frame 3
function move() {
_x = (_x + ix);
_y = (_y + iy);
if (_x < lx1) {
_x = lx2;
}
if (lx2 < _x) {
_x = lx1;
}
if (_y < ly1) {
_y = ly2;
}
if (ly2 < _y) {
_y = ly1;
}
}
stop();
Symbol 82 MovieClip Frame 1
tipo = 4;
suma = 16;
lx1 = -suma;
lx2 = 550 + suma;
ly1 = -suma;
ly2 = 400 + suma;
stop();
Symbol 82 MovieClip Frame 2
tipo = 4;
ix = _root.incremento_x(angulo, 1.2 + (_root.interfaz:level / 4));
iy = _root.incremento_y(angulo, 1.2 + (_root.interfaz:level / 4));
play();
Symbol 82 MovieClip Frame 3
function move() {
_x = (_x + ix);
_y = (_y + iy);
if (_x < lx1) {
_x = lx2;
}
if (lx2 < _x) {
_x = lx1;
}
if (_y < ly1) {
_y = ly2;
}
if (ly2 < _y) {
_y = ly1;
}
}
stop();
Symbol 84 MovieClip Frame 1
tipo = 3;
suma = 25;
lx1 = -suma;
lx2 = 550 + suma;
ly1 = -suma;
ly2 = 400 + suma;
stop();
Symbol 84 MovieClip Frame 2
tipo = 3;
ix = _root.incremento_x(angulo, 0.9 + (_root.interfaz:level / 4));
iy = _root.incremento_y(angulo, 0.9 + (_root.interfaz:level / 4));
play();
Symbol 84 MovieClip Frame 3
function move() {
_x = (_x + ix);
_y = (_y + iy);
if (_x < lx1) {
_x = lx2;
}
if (lx2 < _x) {
_x = lx1;
}
if (_y < ly1) {
_y = ly2;
}
if (ly2 < _y) {
_y = ly1;
}
}
stop();
Symbol 86 MovieClip Frame 1
tipo = 2;
suma = 33;
lx1 = -suma;
lx2 = 550 + suma;
ly1 = -suma;
ly2 = 400 + suma;
stop();
Symbol 86 MovieClip Frame 2
tipo = 2;
ix = _root.incremento_x(angulo, 0.6 + (_root.interfaz:level / 4));
iy = _root.incremento_y(angulo, 0.6 + (_root.interfaz:level / 4));
play();
Symbol 86 MovieClip Frame 3
function move() {
_x = (_x + ix);
_y = (_y + iy);
if (_x < lx1) {
_x = lx2;
}
if (lx2 < _x) {
_x = lx1;
}
if (_y < ly1) {
_y = ly2;
}
if (ly2 < _y) {
_y = ly1;
}
}
stop();
Symbol 88 MovieClip Frame 1
colision = 0;
stop();
Symbol 88 MovieClip Frame 2
angulo = _root.player.angulo;
_x = _root.player._x;
_y = _root.player._y;
ix = _root.incremento_x(angulo, 5);
iy = _root.incremento_y(angulo, 5);
_x = (_x + (ix * 1.5));
_y = (_y + (iy * 1.5));
play();
Symbol 88 MovieClip Frame 3
function move() {
_x = (_x + ix);
_y = (_y + iy);
if ((((_x < 0) or (550 < _x)) or (_y < 0)) or (400 < _y)) {
nextFrame();
} else {
cont = 0;
while (cont < _root.id_piedras.length) {
if (this.hitTest("_root." + _root.id_piedras[cont])) {
colision = 1;
break;
}
cont++;
}
if (colision == 1) {
with (_root.sonido1) {
gotoAndPlay(2);
}
nextFrame();
}
}
}
stop();
Symbol 88 MovieClip Frame 4
if (colision == 1) {
_root.f_aciertos++;
box_nombre = _root.id_piedras[cont];
box_ang = eval (("_root." + box_nombre) + ".angulo");
box_tipo = eval (("_root." + box_nombre) + ".tipo");
duplica = 1 + box_tipo;
box_x = eval ("_root." + box_nombre)._x;
box_y = eval ("_root." + box_nombre)._y;
_root.piedra(0, box_nombre, 0, 0, 0, 0);
_root.interfaz.puntos = _root.interfaz.puntos + (8 * box_tipo);
_root.puntuacion = _root.puntuacion + (8 * box_tipo);
if ((0 < box_tipo) and (box_tipo < 4)) {
_root.piedra(2, 0, duplica, box_ang - 25, box_x, box_y);
_root.piedra(2, 0, duplica, box_ang + 25, box_x, box_y);
}
if (box_tipo == 4) {
_root.piedra(2, 0, duplica, box_ang - 25, box_x, box_y);
_root.piedra(2, 0, duplica, box_ang, box_x, box_y);
_root.piedra(2, 0, duplica, box_ang + 25, box_x, box_y);
}
if ((box_tipo == 5) and (_root.id_piedras.length == 0)) {
_root.piedra(1, 0, 1, 0, 0, 0);
}
if (3000 < _root.puntuacion) {
with (_root.sonido2) {
gotoAndPlay(2);
}
_root.puntuacion = 0;
_root.interfaz.level++;
}
} else {
_root.f_fallos++;
}
_root.disparo(0, _name);
removeMovieClip("");
Symbol 98 MovieClip Frame 50
stop();
Symbol 99 MovieClip Frame 45
_parent._x = 275;
_parent._y = 200;
with (_parent) {
gotoAndPlay(3);
}
Symbol 102 MovieClip Frame 50
gotoAndPlay (1);
Symbol 103 MovieClip Frame 1
muerte = 0;
impulso = 0;
impulso2 = 0;
stop();
Symbol 103 MovieClip Frame 2
muerte = 1;
tiempo_muerte2 = tiempo + 3000;
Symbol 103 MovieClip Frame 4
_x = 275;
_y = 200;
tiempo_muerte = getTimer();
choca = 0;
if (_root.config2 == 2) {
choca = 0;
_x = 275;
_y = 200;
if (this.hitTest(_root.piedra)) {
choca = 1;
}
if (this.hitTest(_root.piedra2)) {
choca = 1;
}
}
if (_root.config2 == 1) {
if (fin_juego == 1) {
_root.f_puntos = _root.interfaz.puntos;
_root.f_level = _root.interfaz.level;
_root.end_game(7);
}
cont3 = 0;
while (cont3 < _root.id_piedras.length) {
if (this.hitTest("_root." + _root:id_piedras[cont3])) {
choca = 1;
}
cont3++;
}
}
if ((choca == 0) and (tiempo_muerte2 < tiempo_muerte)) {
gotoAndStop (1);
} else {
gotoAndPlay (3);
}
Symbol 105 MovieClip Frame 1
tipo = 1;
suma = 50;
lx1 = -suma;
lx2 = 550 + suma;
ly1 = -suma;
ly2 = 400 + suma;
stop();
Symbol 105 MovieClip Frame 2
tipo = 1;
r = 0;
while (r < 25) {
r = random(500);
}
if (random(100) < 50) {
_x = r;
_y = -25;
} else {
_x = random(r);
_y = 475;
}
angulo = random(359);
ix = _root.incremento_x(angulo, 0.3 + (_root.interfaz:level / 4));
iy = _root.incremento_y(angulo, 0.3 + (_root.interfaz:level / 4));
play();
Symbol 105 MovieClip Frame 3
function move() {
_x = (_x + ix);
_y = (_y + iy);
if (_x < lx1) {
_x = lx2;
}
if (lx2 < _x) {
_x = lx1;
}
if (_y < ly1) {
_y = ly2;
}
if (ly2 < _y) {
_y = ly1;
}
}
stop();
Symbol 106 Button
on (keyPress "q") {
gotoAndStop (4);
}
Symbol 108 MovieClip Frame 1
suma = 8;
lx1 = -suma;
lx2 = 550 + suma;
ly1 = -suma;
ly2 = 400 + suma;
stop();
Symbol 108 MovieClip Frame 2
r = 0;
while (r < 12) {
r = random(538);
}
if (random(100) < 50) {
_x = r;
_y = -12;
} else {
_x = random(r);
_y = 412;
}
angulo = random(359);
ix = _root.incremento_x(angulo, 2);
iy = _root.incremento_y(angulo, 2);
play();
Symbol 108 MovieClip Frame 4
if (_x < lx1) {
_x = lx2;
}
if (lx2 < _x) {
_x = lx1;
}
if (_y < ly1) {
_y = ly2;
}
if (ly2 < _y) {
_y = ly1;
}
_x = (_x + ix);
_y = (_y + iy);
gotoAndPlay (3);
Symbol 109 MovieClip Frame 1
borra = 0;
stop();
Symbol 109 MovieClip Frame 2
angulo = _root.player:angulo;
_x = _root.player._x;
_y = _root.player._y;
ix = _root.incremento_x(angulo, 5);
iy = _root.incremento_y(angulo, 5);
_x = (_x + (ix * 1.5));
_y = (_y + (iy * 1.5));
play();
Symbol 109 MovieClip Frame 4
_x = (_x + ix);
_y = (_y + iy);
if ((((_x < 0) or (550 < _x)) or (_y < 0)) or (400 < _y)) {
borra = 1;
}
if (this.hitTest(_root.piedra_practice1)) {
with (_root.sonido1) {
gotoAndPlay(2);
}
borra = 1;
_root.muestra_piedras++;
with (_root.piedra_practice1) {
gotoAndPlay(2);
}
} else if (this.hitTest(_root.piedra_practice2)) {
with (_root.sonido1) {
gotoAndPlay(2);
}
borra = 1;
_root.muestra_piedras++;
with (_root.piedra_practice2) {
gotoAndPlay(2);
}
}
if (borra == 1) {
nextFrame();
} else {
gotoAndPlay (3);
}
Symbol 109 MovieClip Frame 5
removeMovieClip("");
Symbol 112 MovieClip Frame 1
muerte = 0;
impulso = 0;
impulso2 = 0;
stop();
Symbol 112 MovieClip Frame 2
muerte = 1;
tiempo_muerte2 = tiempo + 3000;
Symbol 112 MovieClip Frame 4
_x = 275;
_y = 200;
tiempo_muerte = getTimer();
choca = 0;
if (_root.config2 == 2) {
choca = 0;
_x = 275;
_y = 200;
if (this.hitTest(_root.piedra)) {
choca = 1;
}
if (this.hitTest(_root.piedra2)) {
choca = 1;
}
}
if (_root.config2 == 1) {
if (fin_juego == 1) {
_root.f_puntos = _root.interfaz.puntos;
_root.f_level = _root.interfaz.level;
_root.end_game(7);
}
cont3 = 0;
while (cont3 < _root.id_piedras.length) {
if (this.hitTest("_root." + _root:id_piedras[cont3])) {
choca = 1;
}
cont3++;
}
}
if ((choca == 0) and (tiempo_muerte2 < tiempo_muerte)) {
gotoAndStop (1);
} else {
gotoAndPlay (3);
}
Symbol 115 MovieClip Frame 1
stop();
Symbol 120 Button
on (release) {
gotoAndStop (4);
}