Frame 1
stop();
Instance of Symbol 89 MovieClip in Frame 1
on (press) {
getURL ("http://games.cublo.com", "_blank");
}
Frame 2
stop();
Frame 3
stop();
Instance of Symbol 101 MovieClip "game" in Frame 3
onClipEvent (load) {
function item(flawor, movie) {
this.f = flawor;
this.m = movie;
}
function cleanandup() {
var _local1 = this;
var _local2 = _parent;
n = 1;
while (n <= 3) {
c = 5;
while (c >= 1) {
if (_local1["Prow" + n][c] != null) {
_local1["Prow" + n][c].m._alpha = _local1["Prow" + n][c].m._alpha - 10;
_local1["Prow" + n][c].m._x = _local1["Prow" + n][c].m._x - 0.5;
if (_local1["Prow" + n][c].m._alpha < 10) {
removeMovieClip(_local1["Prow" + n][c].m._name);
_local1["Prow" + n][c] = null;
_local2.pizzas++;
client.start();
}
return(false);
}
if (_local1["Crow" + n][c] != null) {
_local1["Crow" + n][c].m._alpha = _local1["Crow" + n][c].m._alpha - 10;
_local1["Crow" + n][c].m._x = _local1["Crow" + n][c].m._x - 0.5;
if (_local1["Crow" + n][c].m._alpha < 10) {
removeMovieClip(_local1["Crow" + n][c].m._name);
_local1["Crow" + n][c] = null;
_local2.pizzas++;
client.start();
}
return(false);
}
c--;
}
n++;
}
return(true);
}
if (!initsounds) {
initsounds = true;
sndtrack = new Sound(snd1);
sndtrack.attachSound("soundtrack");
sndtrack.start(0, 9999999999999);
end = new Sound(snd2);
end.attachSound("end");
client = new Sound(snd3);
client.attachSound("client");
manos = new Sound(snd4);
manos.attachSound("manos");
level = new Sound(snd5);
level.attachSound("level");
}
tablex = new Array();
tabley = new Array();
Crow1 = new Array();
Prow1 = new Array();
Crow2 = new Array();
Prow2 = new Array();
Crow3 = new Array();
Prow3 = new Array();
onhands = newArray();
tablex[1] = 30;
tablex[2] = 69;
tablex[3] = 109;
n = 1;
while (n <= 6) {
tabley[n] = 36 + ((n - 1) * 16);
n++;
}
clientlevel = 50000;
pizzalevel = 10;
attachMovie("dudefront", "dude", 2);
dude._x = 60;
dude._y = 131;
attachMovie("horno", "horno", 50008);
horno._y = 133;
attachMovie("mesa", "mesa", 3);
mesa._y = 133;
table = 0;
overtimer = 0;
_parent.pizzas = 0;
_parent.nivel = 1;
flawors = 5;
}
onClipEvent (enterFrame) {
if (newlevel) {
if (leveltimer < 90) {
leveltimer++;
} else if (cleanandup()) {
sndtrack.start(0, 99999999999);
_parent.nivel++;
clientlevel = 50000;
pizzalevel = 10;
attachMovie("dudefront", "dude", 2);
dude._x = 60;
dude._y = 131;
removeMovieClip("pizza");
removeMovieClip(grill.m._name);
onhands = null;
grill = null;
newlevel = false;
leveltimer = 0;
}
} else {
timer--;
if ((timer == -1) and (!gameover)) {
timer = 110;
clientlevel--;
if (((crow1[1] != null) and (crow2[1] != null)) and (crow3[1] != null)) {
gameover = true;
} else {
trial = 0;
while (trial < 1) {
Rclient = random(3) + 1;
if (this["Crow" + Rclient][1] == null) {
trial = 1;
}
}
currentclient = random(flawors) + 1;
attachMovie("cliente" + currentclient, "cliente" + clientlevel, clientlevel);
c = 5;
while (c >= 1) {
if (this["Crow" + Rclient][c] == null) {
this["Crow" + Rclient][c] = new item(currentclient, eval ("cliente" + clientlevel));
this["Crow" + Rclient][c].m._x = tablex[Rclient] - 18;
this["Crow" + Rclient][c].m._y = 0;
break;
}
c--;
}
}
pizzalevel++;
currentpizza = random(flawors) + 1;
attachMovie("pizza" + currentpizza, "pizza" + pizzalevel, pizzalevel);
grill = new Item(currentpizza, eval ("pizza" + pizzalevel));
grill.m._y = 150;
grill.m._x = 15;
}
if (cleared) {
cleared = false;
_parent.pizzas++;
client.start();
plevel++;
if (plevel > (20 + (_parent.nivel * 1.5))) {
newlevel = true;
sndtrack.stop();
level.start();
plevel = 0;
}
}
n = 1;
while (n <= 3) {
c = 5;
while (c >= 1) {
if (this["Crow" + n][c].m._y < tabley[c]) {
this["Crow" + n][c].m._y++;
}
if (this["Prow" + n][c].m._y > tabley[c]) {
this["Prow" + n][c].m._y--;
} else if (this["Prow" + n][c].m._y < tabley[c]) {
this["Prow" + n][c].m._y++;
} else if ((this["Prow" + n][c].f == this["Crow" + n][c].f) and (this["Crow" + n][c].m._y == tabley[c])) {
this["Prow" + n][c].m._alpha = this["Prow" + n][c].m._alpha - 10;
this["Crow" + n][c].m._alpha = this["Crow" + n][c].m._alpha - 10;
this["Prow" + n][c].m._x = this["Prow" + n][c].m._x - 0.5;
this["Crow" + n][c].m._x = this["Crow" + n][c].m._x - 0.5;
if (this["Crow" + n][c].m._alpha < 10) {
cleared = true;
removeMovieClip(this["Prow" + n][c].m._name);
removeMovieClip(this["Crow" + n][c].m._name);
this["Prow" + n][c] = null;
this["Crow" + n][c] = null;
}
} else {
this["Prow" + n][c].m._alpha = 100;
this["Crow" + n][c].m._alpha = 100;
}
if ((this["Prow" + n][c] == null) and (this["Prow" + n][c - 1] != null)) {
this["Prow" + n][c] = this["Prow" + n][c - 1];
this["Prow" + n][c - 1] = null;
}
if ((this["Crow" + n][c] == null) and (this["Crow" + n][c - 1] != null)) {
this["Crow" + n][c] = this["Crow" + n][c - 1];
this["Crow" + n][c - 1] = null;
}
c--;
}
n++;
}
grill.m._x = grill.m._x + 0.8;
if (grill.m._x > 100) {
gameover = true;
grill.m._xscale = grill.m._xscale + ((50 - grill.m._xscale) / 10);
grill.m._yscale = grill.m._yscale + ((50 - grill.m._yscale) / 10);
}
if (grill.m._x > 105) {
removeMovieClip(grill.m._name);
grill = null;
}
if (gameover) {
overtimer++;
if (overtimer > 60) {
_root.gotoAndStop(2);
}
if (overtimer == 1) {
sndtrack.stop();
end.start();
tempx = dude._x;
attachMovie("dudefront", "dude", 2);
dude._x = tempx;
dude._y = 129;
}
dude._x++;
if (dude._rotation != 5) {
dude._rotation = 5;
} else {
dude._rotation = -5;
}
}
}
}
Symbol 84 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 1
_root.stop();
Instance of Symbol 87 MovieClip "bar" in Symbol 89 MovieClip Frame 136
onClipEvent (load) {
this.onEnterFrame = function () {
var _local1 = _root;
porcentaje = (_local1.getBytesLoaded() * 100) / _local1.getBytesTotal();
gotoAndStop(Math.ceil(_currentframe + ((porcentaje - _currentframe) / 5)));
c = 0;
if ((_currentframe == 100) and (_local1.getBytesLoaded() == _local1.getBytesTotal())) {
_parent.play();
}
};
}
Symbol 89 MovieClip Frame 167
stop();
Symbol 89 MovieClip Frame 181
_root.play();
stop();
Symbol 92 Button
on (press, keyPress "<Space>") {
play();
}
Symbol 97 Button
on (keyPress "<Right>") {
if ((!gameover) and (!newlevel)) {
if (dude._x == tablex[3]) {
dude._x = tablex[1];
pizza._x = dude._x;
table = 1;
} else if (table == 2) {
dude._x = tablex[3];
pizza._x = dude._x;
table = 3;
} else if (table == 1) {
dude._x = tablex[2];
pizza._x = dude._x;
table = 2;
} else if (table == 0) {
attachMovie("dudeback", "dude", 2);
dudeface = "back";
table = 3;
dude._x = tablex[table];
dude._y = 125;
if (onhand != null) {
removeMovieClip("pizza");
attachMovie("pizza" + onhand.f, "pizza", 1);
pizza._x = dude._x;
pizza._y = dude._y;
}
}
}
}
on (keyPress "<Left>") {
if ((!gameover) and (!newlevel)) {
if (table == 3) {
dude._x = tablex[2];
pizza._x = dude._x;
table = 2;
} else if (table == 2) {
dude._x = tablex[1];
pizza._x = dude._x;
table = 1;
} else if (table == 1) {
dude._x = tablex[3];
pizza._x = dude._x;
table = 3;
} else if (table == 0) {
attachMovie("dudeback", "dude", 2);
dudeface = "back";
table = 1;
dude._x = tablex[table];
dude._y = 125;
if (onhand != null) {
removeMovieClip("pizza");
attachMovie("pizza" + onhand.f, "pizza", 1);
pizza._x = dude._x;
pizza._y = dude._y;
}
}
}
}
on (keyPress "<Down>") {
if ((!gameover) and (!newlevel)) {
if (table != 0) {
table = 0;
attachMovie("dudefront", "dude", 2);
dude._x = 60;
dude._y = 131;
if (onhand != null) {
removeMovieClip("pizza");
attachMovie("pizza" + onhand.f, "pizza", 50009);
pizza._x = dude._x;
pizza._y = dude._y + 10;
}
} else if ((((grill != null) and (grill.m._x > 40)) and (grill.m._x < 100)) and (onhand == null)) {
manos.start();
placed = false;
attachMovie("pizza" + grill.f, "pizza", 50009);
pizza._x = dude._x;
pizza._y = dude._y + 10;
onhand = new item(grill.f, grill.m);
onhand.m._visible = false;
grill = null;
}
}
}
on (keyPress "<Up>") {
if ((!gameover) and (!newlevel)) {
if (table == 0) {
attachMovie("dudeback", "dude", 2);
dudeface = "back";
dude._x = tablex[2];
table = 2;
dude._y = 125;
if (onhand != null) {
removeMovieClip("pizza");
attachMovie("pizza" + onhand.f, "pizza", 1);
pizza._x = dude._x;
pizza._y = dude._y;
}
} else if (onhand != null) {
manos.start();
if (this["Prow" + table][1] == null) {
n = 1;
while (n <= 4) {
this["Prow" + table][n] = this["Prow" + table][n + 1];
this["Prow" + table][n + 1].m._y = this["Prow" + table][n + 1].m._y - 10;
n++;
}
this["Prow" + table][5] = new item(onhand.f, onhand.m);
onhand.m._visible = true;
onhand.m._x = tablex[table];
onhand.m._y = pizza._y - 20;
removeMovieClip("pizza");
onhand = null;
}
} else if ((this["Prow" + table][5] != null) and (this["Prow" + table][5].m._alpha == 100)) {
manos.start();
onhand = new item(this["Prow" + table][5].f, this["Prow" + table][5].m);
onhand.m._visible = false;
this["Prow" + table][5] = null;
attachMovie("pizza" + onhand.f, "pizza", 1);
pizza._x = dude._x;
pizza._y = dude._y;
}
}
}