Frame 1
tellTarget ("/sound") {
gotoAndPlay ("start");
};
stop();
Frame 10
score = "0";
balls = "5";
level = "1";
ballsize = "10";
speedx = "2";
speedy = "2";
gameright = "600";
gamedown = "300";
gametop = "100";
gameleft = "0";
Frame 11
call("action");
Frame 12
call("action");
gotoAndPlay (11);
Frame 15
setProperty("/ball", _x , getProperty("/ball", _x) + speedx);
setProperty("/ball", _y , getProperty("/ball", _y) + speedy);
if (getProperty("/ball", _y) < (gametop + (ballsize / "2"))) {
speedy = speedy * "-1";
speedx = speedx * "1";
tellTarget ("/sound") {
gotoAndPlay ("pong");
};
}
if ((gamedown - (ballsize / "2")) < getProperty("/ball", _y)) {
speedy = speedy * "-1";
speedx = speedx * "1";
tellTarget ("/sound") {
gotoAndPlay ("pong");
};
}
if ((getProperty("/ball", _x) >= gameright) or (gameleft >= getProperty("/ball", _x))) {
balls = balls - "1";
if (balls == "0") {
gotoAndStop (20);
} else {
setProperty("/ball", _x , "300");
setProperty("/ball", _y , "200");
}
}
if (((getProperty("/paddles", _x) + "180") < getProperty("/ball", _x)) and (getProperty("/ball", _x) < (getProperty("/paddles", _x) + "190"))) {
if (((getProperty("/paddles", _y) - "20") < getProperty("/ball", _y)) and (getProperty("/ball", _y) < (getProperty("/paddles", _y) + "20"))) {
speedx = speedx * "-1";
speedy = speedy * "1";
score = score + "1";
tellTarget ("/sound") {
gotoAndPlay ("ping");
};
}
}
if ((getProperty("/ball", _x) < (getProperty("/paddles", _x) - "180")) and ((getProperty("/paddles", _x) - "190") < getProperty("/ball", _x))) {
if ((getProperty("/ball", _y) >= (getProperty("/paddles", _y) - "20")) and ((getProperty("/paddles", _y) + "20") >= getProperty("/ball", _y))) {
speedx = speedx * "-1";
speedy = speedy * "1";
score = score + "1";
tellTarget ("/sound") {
gotoAndPlay ("ping");
};
}
}
if (score == "10") {
speedx = speedx * "1.005";
speedy = speedy * "1.005";
level = "2";
}
if (score == "20") {
speedx = speedx * "1.005";
speedy = speedy * "1.005";
level = "3";
}
if (score == "30") {
speedx = speedx * "1.005";
speedy = speedy * "1.005";
level = "4";
}
if (score == "50") {
speedx = speedx * "1.005";
speedy = speedy * "1.005";
level = "5";
}
if (score == "75") {
speedx = speedx * "1.005";
speedy = speedy * "1.005";
level = "6";
}
if (score == "100") {
speedx = speedx * "1.005";
speedy = speedy * "1.005";
level = "7";
}
if (score == "150") {
speedx = speedx * "1.005";
speedy = speedy * "1.005";
level = "8";
}
if (score == "200") {
speedx = speedx * "1.005";
speedy = speedy * "1.005";
level = "9";
}
Frame 20
stop();
Symbol 5 MovieClip Frame 1
stop();
Symbol 5 MovieClip Frame 30
stop();
Symbol 5 MovieClip Frame 46
stop();
Symbol 5 MovieClip Frame 74
stop();
Symbol 12 Button
on (press) {
getURL ("http://www.thepcmanwebsite.com/", "_top");
}
Symbol 21 Button
on (press) {
stopAllSounds();
gotoAndPlay (10);
}
Symbol 39 MovieClip Frame 1
startDrag ("", true, "300", "120", "300", "280");
Symbol 42 Button
on (press) {
gotoAndPlay (10);
}