Frame 1
if (Number(_framesloaded) >= Number(_totalframes)) {
gotoAndPlay (3);
}
Frame 2
gotoAndPlay (1);
Frame 4
function Siguiente() {
nextFrame();
}
stop();
Nivel = 1;
Vidas = 3;
_root.Puntos = 0;
Frame 5
function Mueve() {
j = 0;
while (j < (i + 2)) {
var name = ("Bola" + (j + 1));
var Bola = eval (name);
if (Bola._y >= 424) {
_root.Y[j] = -_root.Y[j];
}
if (224 >= Bola._y) {
_root.Y[j] = Math.abs(_root.Y[j]);
}
if (Bola._x >= 680) {
_root.X[j] = -_root.X[j];
}
if (114 >= Bola._x) {
_root.X[j] = Math.abs(_root.X[j]);
}
setProperty(Bola, _y , Bola._y + _root.Y[j]);
setProperty(Bola, _x , Bola._x + _root.X[j]);
j++;
}
}
function DuplicaBola(NombreBola, TipoBola, NumeroBola) {
Disparo = true;
_root.Poste.gotoAndPlay(1);
_root.Bola1.gotoAndPlay(2);
_root.Puntos = _root.Puntos + (Nivel * TipoBola);
if (TipoBola != 4) {
q = 1;
while (q < 3) {
_root.i = _root.i + 1;
var name = ("Bola" + (i + 1));
var Doble = ("Bolas" + (TipoBola + 1));
trace(i);
attachMovie(Doble, name, _root.i + 1);
var NuevaBola = eval (name);
NuevaBola.Tipo = i + 1;
NuevaBola.Numero = i + 1;
if (TipoBola == 1) {
setProperty(Bola1, _visible , false);
setProperty("Bola" + (i + 1), _x , _root.Bola1._x);
setProperty("Bola" + (i + 1), _y , _root.Bola1._y - 60);
}
if (TipoBola != 1) {
setProperty(name, _x , _root.ImpactoX);
setProperty(name, _y , _root.ImpactoY - 80);
var name = ("Bola" + NumeroBola);
var Bolita = eval (name);
Bolita.removeMovieClip();
}
q++;
}
_root.X[i] = -_root.X[i];
}
if (TipoBola == 4) {
var name = ("Bola" + NumeroBola);
var Bolita = eval (name);
Bolita.removeMovieClip();
}
_root.Contador = _root.Contador + 1;
if (_root.Contador == 15) {
if (Nivel < 3) {
gotoAndPlay (7);
} else {
gotoAndPlay (9);
}
}
}
function Fin() {
Vidas = Vidas - 1;
_root["Muñeco"].gotoAndPlay(11);
h = 2;
while (h < 16) {
var name = ("Bola" + h);
var Bolita = eval (name);
Bolita.removeMovieClip();
h++;
}
if (Vidas == 0) {
nextFrame();
} else {
gotoAndPlay (8);
}
}
stop();
_root.Vid = Vidas;
_root.Niv = Nivel;
X = new Array(21);
Y = new Array(21);
j = 0;
while (j < 20) {
if (Nivel == 1) {
X[j] = 5;
Y[j] = 15;
} else if (Nivel == 2) {
X[j] = 10;
Y[j] = 25;
} else if (Nivel == 3) {
X[j] = 15;
Y[j] = 28;
}
j++;
}
i = 0;
Begin = true;
GuardaNombre = false;
Nombre1 = "";
Nombre2 = "";
Hit = new Array(15);
j = 1;
while (j < 16) {
Hit[j] = false;
j++;
}
ImpactoX = 0;
ImpactoY = 0;
Der = true;
Izq = true;
Disparo = true;
Contador = 0;
Instance of Symbol 34 MovieClip "Bola1" in Frame 5
onClipEvent (enterFrame) {
_root.Mueve();
if (this.hitTest(_root.Poste.Poste2) and (!_root.Hit[1])) {
this.gotoAndPlay(2);
_root.DuplicaBola(this._name, 1, 1);
_root.Hit[1] = true;
}
if (this.hitTest(_root["Muñeco"]) and (!_root.Hit[1])) {
_root.Fin();
}
}
Instance of Symbol 37 MovieClip "Poste" in Frame 5
onClipEvent (keyDown) {
if ((Key.getCode() == 32) and (_root.Disparo == true)) {
setProperty(this, _x , _root["Muñeco"]._x - 5);
this.gotoAndPlay(2);
_root["Muñeco"].gotoAndStop(1);
_root.Disparo = false;
}
}
Instance of Symbol 52 MovieClip "Muñeco" in Frame 5
onClipEvent (keyDown) {
if (Key.getCode() == 39) {
if (_root.Der == true) {
this.gotoAndPlay(6);
_root.Der = false;
}
if (this._x < 680) {
setProperty(this, _x , this._x + 10);
}
}
if (Key.getCode() == 37) {
if (_root.Izq == true) {
this.gotoAndPlay(1);
_root.Izq = false;
}
if (115 < this._x) {
setProperty(this, _x , this._x - 10);
}
}
}
Frame 6
stop();
Nivel = 1;
Vidas = 3;
_root.Punt = _root.Puntos;
_root.Puntos = 0;
Frame 7
stop();
Nivel = Nivel + 1;
_root.Level = "Level " + Nivel;
Frame 8
stop();
Frame 9
stop();
Nivel = 1;
Instance of Symbol 2 MovieClip in Symbol 3 MovieClip [Bolas4] Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root.Poste)) {
_root.DuplicaBola(_parent._name, 4, _parent.Numero) and (!_root.Hit[_parent.Numero]);
_root.Hit[_parent.Numero] = false;
_root.Disparo = true;
}
if (_parent.hitTest(_root["Muñeco"])) {
_root.Hit[_parent.Numero] = true;
_root.Fin();
}
}
Instance of Symbol 5 MovieClip in Symbol 6 MovieClip [Bolas3] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.Poste.Poste2) and (!_root.Hit[_parent.Numero])) {
_root.Hit[_parent.Numero] = true;
_root.ImpactoX = _parent._x;
_root.ImpactoY = _parent._y;
_root.DuplicaBola(_parent._name, 3, _parent.Numero);
}
if (_parent.hitTest(_root["Muñeco"])) {
_root.Hit[_parent.Numero] = true;
_root.Fin();
}
}
Instance of Symbol 8 MovieClip in Symbol 9 MovieClip [Bolas2] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.Poste.Poste2) and (!_root.Hit[_parent.Numero])) {
_root.Hit[_parent.Numero] = true;
_root.ImpactoX = _parent._x;
_root.ImpactoY = _parent._y;
_root.DuplicaBola(_parent._name, 2, _parent.Numero);
}
if (_parent.hitTest(_root["Muñeco"])) {
_root.Hit[_parent.Numero] = true;
_root.Fin();
}
}
Symbol 14 Button
on (press) {
getURL ("http://www.thepcmanwebsite.com", "_top");
}
Symbol 25 Button
on (press) {
_root.Siguiente();
}
Symbol 27 MovieClip Frame 22
stop();
Symbol 34 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 1
stop();
Instance of Symbol 36 MovieClip "Poste2" in Symbol 37 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent.Jugador.gotoAndPlay(2);
}
Symbol 37 MovieClip Frame 16
_root.Disparo = true;
Instance of Symbol 36 MovieClip "Poste2" in Symbol 37 MovieClip Frame 16
onClipEvent (enterFrame) {
_parent.Jugador.gotoAndPlay(2);
}
Symbol 52 MovieClip Frame 1
_root.Der = true;
_root.Izq = true;
stop();
Symbol 52 MovieClip Frame 5
_root.Izq = true;
gotoAndPlay (1);
Symbol 52 MovieClip Frame 10
_root.Izq = true;
gotoAndPlay (1);
if (Key.getCode() == 39) {
gotoAndPlay (6);
}
Symbol 61 Button
on (press) {
getURL ("http://www.thepcmanwebsite.com", "_top");
}
Symbol 65 Button
on (press) {
prevFrame();
}
Symbol 69 Button
on (press) {
fscommand ("quit", true);
}
Symbol 79 Button
on (press) {
gotoAndPlay (5);
}