Symbol 8 MovieClip Frame 1
stop();
walk.stop();
Symbol 8 MovieClip Frame 2
walk.play();
Symbol 8 MovieClip Frame 35
stop();
walk.stop();
Symbol 8 MovieClip Frame 36
walk.play();
Symbol 8 MovieClip Frame 71
stop();
walk.stop();
Symbol 8 MovieClip Frame 72
gotoAndPlay (2);
Symbol 27 Button
on (release) {
if (((_root.myName == "") || (_root.myName == " ")) || (_root.myName == "speler")) {
_root.myName = "type hier je naam!";
} else if (_root.myName != "type hier je naam!") {
gotoAndStop (2);
}
}
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 2
gotoAndStop (1);
Symbol 35 MovieClip Frame 3
gotoAndStop (1);
Symbol 35 MovieClip Frame 4
gotoAndStop (1);
Symbol 35 MovieClip Frame 5
gotoAndStop (1);
Symbol 35 MovieClip Frame 6
gotoAndStop (1);
Symbol 35 MovieClip Frame 7
gotoAndStop (1);
Symbol 35 MovieClip Frame 8
gotoAndStop (1);
Symbol 35 MovieClip Frame 9
gotoAndStop (1);
Symbol 35 MovieClip Frame 10
gotoAndStop (1);
Symbol 48 MovieClip Frame 1
stop();
gotoAndStop(_parent._name.substr(5, 1));
Symbol 49 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 25
stop();
Symbol 67 MovieClip Frame 1
stop();
gotoAndStop(_parent.huidigframe);
Symbol 67 MovieClip Frame 9
_parent.gotoAndStop("plat");
_parent.huidigframe = 0;
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 17
_root.achtergrond.sint.play();
blaadjes.gotoAndStop(huidigframe + 1);
blaadjes.vallend.play();
huidigframe = blaadjes._currentframe;
gotoAndPlay (19);
Symbol 92 MovieClip Frame 18
stop();
Symbol 94 MovieClip Frame 13
if (_parent._name == "bloem2") {
i = 1;
while (i <= _parent._parent.aantPlayers) {
_parent._parent["eindScore" + i] = _parent._parent["score" + i].veld1;
_parent._parent["naam" + i] = _parent._parent["score" + i].veld2;
i++;
}
_parent._parent.gotoAndStop(_parent._parent._currentframe + 1);
} else {
_parent._parent["score" + _parent._name.substr(5, 1)].veld = 0;
}
Symbol 94 MovieClip Frame 25
_parent.huidigFrame = 1;
_parent.gotoAndStop(1);
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 2
_parent.hitEnemy(_parent.bal1);
Symbol 96 MovieClip Frame 17
blaadjes.gotoAndStop(huidigframe + 1);
huidigframe = blaadjes._currentframe;
_parent.moeilijkheid = 10 + random(15);
gotoAndStop (1);
Symbol 96 MovieClip Frame 18
stop();
rnd = 1 + random(6);
trace(rnd);
if ((rnd == 6) and (_name != "bloem2")) {
_parent.soundbank.gotoAndPlay("monster");
}
Symbol 105 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 1
stop();
bounce = 0.7;
Symbol 110 Button
on (release) {
gotoAndStop (4);
}
Symbol 125 Button
on (release) {
gotoAndStop (2);
}
Symbol 126 MovieClip Frame 1
stop();
loadMovieNum ("http://www.sint.nl/empty.swf", 1000);
Symbol 126 MovieClip Frame 2
function init() {
soundbank.gotoAndPlay("prepare");
paddleNr = "";
bal1.balKleuren.gotoAndStop("neutraal");
moeilijkheid = 10;
gravity = 1;
grondWrijving = 1.1;
luchtWrijving = 1.005;
hitArray = new Array(blok1, blok2, blok3, blok4, blok5, blok6);
namenArray = new Array("galit", "hans", "paul", "p-durand", "iskariot", "isabel", "rareRik", "de Belg", "sinterklaas", "grover", "Kirk", "truucker", "jean", "cybert", "Miffy", "Sjoerd");
i = 1;
while (i <= aantPlayers) {
this["score" + i].veld1 = 0;
rndName = random(namenArray.length);
this["score" + i].veld2 = namenArray[rndName];
i++;
}
score2.veld2 = _root.myName;
}
function maakBal(xx, yy, xpos, ypos, soort) {
i++;
aantBallen = aantBallen + 1;
duplicateMovieClip (bal0, "bal" + i, i);
bal = this["bal" + i];
bal._x = blok2._x + (blok2._width / 2);
}
function deleteBal(bal) {
i--;
aantBallen = aantBallen - 1;
removeMovieClip(bal);
this["bal" + i]._x = 250;
}
function spelRegels(bal) {
if (bal._x > (550 + bal.xx)) {
bal._x = 0;
}
if (bal._x < (-bal.xx)) {
bal._x = 550;
}
}
function movebal(bal, hitArray) {
hitX = false;
hitY = false;
i = 0;
while (i < hitArray.length) {
hitObj = hitArray[i];
if ((((bal._x + (bal._width / 2)) + bal.xx) > hitObj._x) && (((bal._x - (bal._width / 2)) + bal.xx) < (hitObj._x + hitObj._width))) {
if (((bal._y + (bal._height / 2)) <= hitObj._y) && (((bal._y + (bal._height / 2)) + bal.yy) > hitObj._y)) {
bal._y = hitObj._y - (bal._height / 2);
bal.yy = (-bal.yy) * bal.bounce;
bal.xx = bal.xx / grondWrijving;
hitY = true;
if (hitObj == blok5) {
}
} else if (((bal._y - (bal._height / 2)) >= (hitObj._y + hitObj._height)) && (((bal._y - (bal._height / 2)) + bal.yy) < (hitObj._y + hitObj._height))) {
bal._y = (hitObj._y + hitObj._height) + (bal._height / 2);
bal.yy = (-bal.yy) * bal.bounce;
hitY = true;
}
}
if ((((bal._y + (bal._height / 2)) + bal.yy) > hitObj._y) && (((bal._y - (bal._height / 2)) + bal.yy) < (hitObj._y + hitObj._height))) {
if (((bal._x + (bal._width / 2)) <= hitObj._x) && (((bal._x + (bal._width / 2)) + bal.xx) > hitObj._x)) {
bal._x = hitObj._x - (bal._width / 2);
bal.xx = (-bal.xx) * bal.bounce;
hitX = true;
} else if (((bal._x - (bal._width / 2)) >= (hitObj._x + hitObj._width)) && (((bal._x - (bal._width / 2)) + bal.xx) <= (hitObj._x + hitObj._width))) {
bal._x = (hitObj._x + hitObj._width) + (bal._width / 2);
bal.xx = (-bal.xx) * bal.bounce;
hitX = true;
}
}
i++;
}
if (!hitX) {
bal._x = bal._x + bal.xx;
} else {
soundbank.gotoAndPlay("hitWall");
}
if (!hitY) {
bal._y = bal._y + bal.yy;
} else {
if ((bal.yy < -3) || (bal.yy > 3)) {
soundbank.gotoAndPlay("hitFloor");
}
if ((((bal.xx > -0.003) and (bal.xx < 0.003)) and (bal.yy > -0.5)) and (bal.yy < 0.5)) {
soundbank.gotoAndPlay("hitFloor");
bal.yy = 5 + random(5);
bal.xx = -5 + random(15);
if (bal._y < (-bal.yy)) {
bal._y = 50;
}
}
}
}
function besturing(id) {
id.dragSpeedX = id._x - _xmouse;
id.speedX = oldX - id._x;
oldX = id._x;
id.dragSpeedY = id._y - _ymouse;
id.speedY = oldY - id._y;
oldY = id._y;
id._x = id._x - (id.dragSpeedX / 3);
id._y = id._y - id.dragSpeedY;
id.xspeed = id.dragSpeedX;
if (id._x > (id.rightLimit._x - id.breedteClip)) {
id._x = id.rightLimit._x - id.breedteClip;
}
if (id._x < ((id.leftLimit._x + id.breedteClip) + id.leftLimit._width)) {
id._x = (id.leftLimit._x + id.breedteClip) + id.leftLimit._width;
}
if (id._y > 340) {
id._y = 340;
}
if (id._y < id.YstartPos) {
id._y = id.YstartPos;
}
}
function cpu(id, bal) {
rnd = 5 + random(15 - (moeilijkheid / 2));
id.speedY = rnd;
if (bal._x < paddle1._x) {
id.speedX = -((10 + random(10)) - moeilijkheid);
} else {
id.speedX = random(15);
}
if ((bal._x > id.leftLimit._x) and (bal._x < id.rightLimit._x)) {
id.xspeed = (id._x - bal._x) / 2;
if ((bal._y > id.YstartPos) and (bal._y < 320)) {
id.yspeed = id._y - bal._y;
}
} else {
id.cpuCount++;
if (id.cpuCount > 20) {
id.cpuCount = 0;
id.xrustPlaats = id.leftLimit._x + (1 + (random(10) * ((id.rightLimit._x - id.leftLimit._x) / 10)));
id.yrustPlaats = blok1._y + random(blok1._height - 30);
}
id.xspeed = (id._x - id.xrustPlaats) / 10;
id.yspeed = (id._y - id.yrustPlaats) / 10;
}
id._x = id._x - (id.xspeed / moeilijkheid);
id._y = id._y - (id.yspeed / (moeilijkheid / 2));
if (id._x > (id.rightLimit._x - id.breedteClip)) {
id._x = id.rightLimit._x - id.breedteClip;
}
if (id._x < ((id.leftLimit._x + id.breedteClip) + id.leftLimit._width)) {
id._x = (id.leftLimit._x + id.breedteClip) + id.leftLimit._width;
}
if (id._y > 340) {
id._y = 340;
}
if (id._y < id.YstartPos) {
id._y = id.YstartPos;
}
}
function hit(id, bal) {
if (bal._y > (id._y - (((bal.yy + id.speedY) + id.hoogteClip) + (bal._height / 2)))) {
if ((bal._x > (id._x - (id.breedteClip + (bal._width / 2)))) and (bal._x < (id._x + (id.breedteClip + (bal._width / 2))))) {
if (bal._y < ((id._y + id._height) + id.speedY)) {
paddleNr = id._name.substr(6, 1);
bal.balKleuren.gotoAndStop(paddleNr);
bal._y = id._y - (id.hoogteClip + (bal._height / 2));
if (id.SpeedX == paddle1) {
bal.xx = bal.xx + (id.SpeedX / grondWrijving);
} else {
bal.xx = bal.xx - (id.SpeedX / grondWrijving);
}
bal.yy = -((bal.yy * bal.bounce) + id.speedY);
bal.xx = bal.xx / grondWrijving;
if ((bal.yy < -2) || (bal.yy > 2)) {
soundbank.gotoAndPlay("hitPaddle");
}
}
}
}
}
function hitEnemy(bal) {
e = 1;
while (e <= 3) {
if (((bal._x > this["blok" + e]._x) and (bal._x < this["blok" + (e + 1)]._x)) and (e != paddleNr)) {
this["score" + paddleNr].veld1++;
}
e++;
}
}
stop();
Mouse.hide();
aantPlayers = 3;
init();
this.onEnterFrame = function () {
myBall = bal1;
besturing(paddle2);
cpu(paddle1, myBall);
cpu(paddle3, myBall);
myBall.yy = myBall.yy + gravity;
myBall.xx = myBall.xx / luchtWrijving;
movebal(myBall, hitArray);
spelRegels(myBall);
c = 1;
while (c <= 3) {
this["wolk" + c]._x = this["paddle" + c]._x;
this["wolk" + c]._y = this["paddle" + c]._y;
this["wolk" + c]._rotation = -this["paddle" + c].xspeed;
hit(this["paddle" + c], myBall);
c++;
}
};
Instance of Symbol 53 MovieClip "blok4" in Symbol 126 MovieClip Frame 2
onClipEvent (load) {
hoogte = _height;
breedte = _width / 2;
}
Instance of Symbol 53 MovieClip "blok2" in Symbol 126 MovieClip Frame 2
onClipEvent (load) {
hoogte = _height;
breedte = _width / 2;
}
Instance of Symbol 53 MovieClip "blok3" in Symbol 126 MovieClip Frame 2
onClipEvent (load) {
hoogte = _height;
breedte = _width / 2;
}
Instance of Symbol 53 MovieClip "blok1" in Symbol 126 MovieClip Frame 2
onClipEvent (load) {
hoogte = _height;
breedte = _width / 2;
}
Instance of Symbol 96 MovieClip "bloem2" in Symbol 126 MovieClip Frame 2
onClipEvent (load) {
this.huidigFrame = 1;
}
onClipEvent (enterFrame) {
if (_parent.bal1.hitTest(this.hitVlak)) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 96 MovieClip "bloem1" in Symbol 126 MovieClip Frame 2
onClipEvent (load) {
this.huidigFrame = 1;
}
onClipEvent (enterFrame) {
if (_parent.bal1.hitTest(this.hitVlak)) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 96 MovieClip "bloem3" in Symbol 126 MovieClip Frame 2
onClipEvent (load) {
this.huidigFrame = 1;
}
onClipEvent (enterFrame) {
if (_parent.bal1.hitTest(this.hitVlak)) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 98 MovieClip "paddle2" in Symbol 126 MovieClip Frame 2
onClipEvent (load) {
YstartPos = _y;
hoogteClip = _height / 2;
breedteClip = _width / 2;
leftLimit = _parent.blok2;
rightLimit = _parent.blok3;
_visible = false;
}
Instance of Symbol 98 MovieClip "paddle3" in Symbol 126 MovieClip Frame 2
onClipEvent (load) {
XstartPos = _x;
YstartPos = _y;
hoogteClip = _height / 2;
breedteClip = _width / 2;
leftLimit = _parent.blok3;
rightLimit = _parent.blok4;
_visible = false;
}
Instance of Symbol 98 MovieClip "paddle1" in Symbol 126 MovieClip Frame 2
onClipEvent (load) {
XstartPos = _x;
YstartPos = _y;
hoogteClip = _height / 2;
breedteClip = _width / 2;
leftLimit = _parent.blok1;
rightLimit = _parent.blok2;
_visible = false;
}
Symbol 126 MovieClip Frame 3
function sortByScore(el1, el2) {
sc1 = el1[0];
sc2 = el2[0];
return(sc2 - sc1);
}
stop();
Mouse.show();
uitslag = "GAME OVER";
scoreL = new Array();
naamL = new Array();
playerArray = new Array();
i = 0;
while (i <= (aantPlayers - 1)) {
scoreL.push(this["eindScore" + (i + 1)]);
naamL.push(this["naam" + (i + 1)]);
playerArray[i] = [scoreL[i], naamL[i]];
i++;
}
playerArray.sort(sortByScore);
i = 1;
while (i <= aantPlayers) {
this["punten" + i] = playerArray[i - 1][0];
this["naamSpeler" + i] = playerArray[i - 1][1];
i++;
}
if (punten1 > highScore) {
highScore = punten1;
highName = naamSpeler1;
}
Symbol 126 MovieClip Frame 4
stop();
_level1000.gameNum = 73;
_level1000.score = eindScore2;
loadMovie ("http://www.sint.nl/sinthigh.swf", "highscores");
this.onEnterFrame = function () {
if (highscores._width > 0) {
highscores.naam = _root.myName;
delete this.onEnterFrame;
}
};