Frame 1
offline = false;
_quality = MEDIUM;
Frame 2
if (_level0.getBytesLoaded() < _level0.getBytesTotal()) {
gotoAndPlay (1);
title = ("loading " + int(_level0.getBytesTotal() / 1024)) + " kbyte...";
percent = int((_level0.getBytesLoaded() / _level0.getBytesTotal()) * 100) + " %";
}
matches = 3;
polarisation = 0;
sfxflag = 1;
gstrength = 2;
speedmod = 1;
gamesPlayed = 0;
Frame 4
stop();
Frame 5
stop();
Frame 6
stop();
Symbol 4 MovieClip Frame 1
stop();
Symbol 8 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 1
stop();
Symbol 14 MovieClip Frame 11
_parent.removeMovieClip();
Symbol 15 MovieClip [ball] Frame 1
function Reflektieren(geschw) {
absGeschw = Math.abs(geschw);
if (ballMaxSpeed < Math.abs(geschw)) {
if (0 < geschw) {
geschw = -(ballMaxSpeed + 1);
} else {
geschw = ballMaxSpeed + 1;
}
} else {
geschw = geschw * (-reflectMod);
}
return(geschw);
}
function setEnergy() {
s = (_parent.ballE[n] / 8) + 30;
if (100 < s) {
s = 100;
f.gotoAndStop(2);
}
_xscale = s;
_yscale = s;
}
function ScoreIt(scoreoneortwo) {
if (scoreoneortwo == "score1") {
if (_root.speedmod == 2) {
VelocityBonus = int(((vy * vy) + (vx * vx)) * VelocityMulti);
_root.score1 = (Number(_root.score1) + int(_parent.ballE[n] / scoreEnergyMulti)) + VelocityBonus;
} else {
_root.score1 = Number(_root.score1) + int(_parent.ballE[n] / scoreEnergyMulti);
}
} else if (_root.speedmod == 2) {
VelocityBonus = int(((vy * vy) + (vx * vx)) * VelocityMulti);
_root.score2 = (Number(_root.score2) + int(_parent.ballE[n] / scoreEnergyMulti)) + VelocityBonus;
} else {
_root.score2 = Number(_root.score2) + int(_parent.ballE[n] / scoreEnergyMulti);
}
}
speedUp = 50;
firebonus = 40;
slope = 50000;
reflect = new Sound();
reflect.attachSound("reflect");
VelocityMulti = 0.3;
ballMaxSpeed = 70;
if (_root.speedmod == 1) {
reflectMod = 1;
firebonusMod = 1;
scoreEnergyMulti = 10;
} else {
reflectMod = 1.15;
firebonusMod = 0.2;
scoreEnergyMulti = 50;
}
n = _name;
n = Number(n.substr(5));
vx = 10;
setEnergy();
if (_parent.ballOwn[n] == "pl1") {
_x = (_parent.xmaxBall - 1);
_y = _parent.pl1._y;
vx = vx * -1;
vy = (_parent.pl1.v * Math.abs(vx)) / 4;
out = "r";
} else {
_x = (_parent.xminBall + 1);
_y = _parent.pl2._y;
vy = (_parent.pl2.v * Math.abs(vx)) / 4;
c.nextFrame();
out = "l";
}
ball1die = function () {
if (f._currentframe != 1) {
_parent.pl2.v = 0;
_parent.pl2.gotoAndPlay("paralised");
_root.score1 = _root.score1 + (firebonus * firebonusMulti);
}
i = 0;
while (i < _parent.ballReg.length) {
if (_parent.ballReg[i] == n) {
_parent.ballReg.splice(i, 1);
break;
}
i++;
}
ScoreIt("score1");
_parent.redline.gotoAndPlay("flash");
tellTarget ("_parent.scoreLeft") {
f = int(_root.score1 / 10) + 1;
if (71 < f) {
f = 71;
}
gotoAndStop(f);
};
f = int(_root.score1 / 10) + 1;
if (71 < f) {
f = 71;
_root.announce.gotoAndPlay("blueWin");
_root.matchesBlue.nextFrame();
clearPlayfield();
}
gotoAndPlay (4);
};
ball2die = function () {
if (f._currentframe != 1) {
_parent.pl1.v = 0;
_parent.pl1.gotoAndPlay("paralised");
_root.score2 = _root.score2 + (firebonus * firebonusMulti);
}
i = 0;
while (i < _parent.ballReg.length) {
if (_parent.ballReg[i] == n) {
_parent.ballReg.splice(i, 1);
break;
}
i++;
}
ScoreIt("score2");
_parent.blueline.gotoAndPlay("flash");
tellTarget ("_parent.score2") {
f = int(_root.score2 / 10) + 1;
if (71 < f) {
f = 71;
}
gotoAndStop(f);
};
f = int(_root.score2 / 10) + 1;
if (71 < f) {
f = 71;
_root.matchesRed.nextFrame();
_root.announce.gotoAndPlay("redWin");
clearPlayfield();
}
gotoAndPlay (4);
};
clearPlayfield = function () {
_root.w.pl1.gunReady = false;
_root.w.pl2.gunReady = false;
var i = 0;
while (i < _parent.ballReg.length) {
removeMovieClip("_root.w.ball_" + _parent.ballReg[i]);
i++;
}
_root.w.init();
};
vl = Math.sqrt((vx * vx) + (vy * vy));
v = _parent.ballE[n] / 20;
vy = vy / vl;
vy = vy * v;
vx = vx / vl;
vx = vx * v;
Symbol 15 MovieClip [ball] Frame 2
tx = _x + vx;
ty = _y + vy;
if (f._currentframe == 2) {
vx = vx + (_x / slope);
}
if (ty < _parent.yminBall) {
ty = (2 * _parent.yminBall) - ty;
vy = -vy;
reflect.start();
}
if (_parent.ymaxBall < ty) {
ty = (2 * _parent.ymaxBall) - ty;
vy = -vy;
reflect.start();
}
if (tx < _parent.xminBall) {
if ((((_parent.pl2.paddleSize >= Math.abs(ty - _parent.pl2._y)) || (_parent.pl2.paddleSize >= Math.abs(_y - _parent.pl2._y))) || (_parent.pl2.invulnerable == true)) && (f._currentframe == 1)) {
tx = (2 * _parent.xminBall) - tx;
vx = Reflektieren(vx);
c.gotoAndStop(2);
vy = vy + ((_parent.pl2.v - vy) / 2);
reflect.start();
} else {
ball1die();
}
}
if (_parent.xmaxBall < tx) {
if ((((_parent.pl1.paddleSize >= Math.abs(ty - _parent.pl1._y)) || (_parent.pl1.paddleSize >= Math.abs(_y - _parent.pl1._y))) || (_parent.pl1.invulnerable == true)) && (f._currentframe == 1)) {
tx = (2 * _parent.xmaxBall) - tx;
vx = Reflektieren(vx);
c.gotoAndStop(1);
vy = vy + ((_parent.pl1.v - vy) / 2);
reflect.start();
} else {
ball2die();
}
}
_x = tx;
_y = ty;
Symbol 15 MovieClip [ball] Frame 3
gotoAndPlay (2);
Symbol 15 MovieClip [ball] Frame 4
tx = _x + vx;
ty = _y + vy;
vx = vx * 0.5;
vy = vy * 0.5;
if (f._currentframe == 2) {
vx = vx + (_x / slope);
}
if (ty < _parent.yminBall) {
ty = (2 * _parent.yminBall) - ty;
vy = vy * -1;
}
if (_parent.ymaxBall < ty) {
ty = (2 * _parent.ymaxBall) - ty;
vy = vy * -1;
}
_x = tx;
_y = ty;
Symbol 15 MovieClip [ball] Frame 5
gotoAndPlay (4);
Symbol 21 Button
on (release) {
getURL ("http://www.neodelight.com?ref=game&ref_loc=intro", "_BLANK");
}
Symbol 32 MovieClip Frame 1
startFrame = _parent._currentframe;
Symbol 32 MovieClip Frame 2
vol = (1 - ((_parent._currentFrame - startFrame) / (_parent._totalFrames - startFrame))) * 100;
if (vol < 0) {
vol = 0;
}
_parent.snd.setVolume(vol);
Symbol 32 MovieClip Frame 3
gotoAndPlay (2);
Symbol 33 MovieClip Frame 1
snd = new Sound(this);
snd.setVolume(100);
_parent.stop();
Symbol 33 MovieClip Frame 169
stop();
_parent.play();
Symbol 35 MovieClip Frame 1
if (_root.gstrength == 1) {
factor = 10;
} else if (_root.gstrength == 2) {
factor = 17;
} else if (_root.gstrength == 3) {
factor = 50;
} else if (_root.gstrength == 4) {
factor = 120;
} else {
factor = 210;
}
Symbol 35 MovieClip Frame 2
energyFactor = 500;
delBall = new Array();
i = 0;
while (i < (_parent.ballReg.length - 1)) {
x = eval (("_parent.ball_" + _parent.ballReg[i]) + "._x");
y = eval (("_parent.ball_" + _parent.ballReg[i]) + "._y");
vx = eval (("_parent.ball_" + _parent.ballReg[i]) + ".vx");
vy = eval (("_parent.ball_" + _parent.ballReg[i]) + ".vy");
e = _parent.ballE[_parent.ballReg[i]];
j = i + 1;
while (j < _parent.ballReg.length) {
mycolor = eval (("_parent.ball_" + _parent.ballReg[i]) + ".c._currentframe");
gbx = eval (("_parent.ball_" + _parent.ballReg[j]) + "._x");
gby = eval (("_parent.ball_" + _parent.ballReg[j]) + "._y");
gbe = _parent.ballE[_parent.ballReg[j]];
var t1 = (gbx - x);
var t2 = (gby - y);
gd = Math.sqrt((t1 * t1) + (t2 * t2));
if (gd < 15) {
if (_parent.ballE[_parent.ballReg[i]] < _parent.ballE[_parent.ballReg[j]]) {
c.gotoAndStop(eval (("_parent.ball_" + j) + ".c._currentframe"));
}
_parent.ballE[_parent.ballReg[i]] = _parent.ballE[_parent.ballReg[i]] + _parent.ballE[_parent.ballReg[j]];
if (600 < _parent.ballE[_parent.ballReg[i]]) {
_parent.ballE[_parent.ballReg[i]] = 600;
}
partJ = _parent.ballE[_parent.ballReg[j]] / _parent.ballE[_parent.ballReg[i]];
partI = 1 - partJ;
vx = (partI * vx) + (partJ * eval (("_parent.ball_" + _parent.ballReg[j]) + ".vx"));
vy = (partI * vy) + (partJ * eval (("_parent.ball_" + _parent.ballReg[j]) + ".vy"));
_parent.ballE[_parent.ballReg[j]] = 0;
tellTarget ("_parent.ball_" + _parent.ballReg[i]) {
setEnergy();
merge.gotoAndPlay(2);
};
delBall.push(j);
} else {
gvx = (gbx - x) / gd;
gvy = (gby - y) / gd;
gd = gd / factor;
gds = gd / (gbe / energyFactor);
gdp = gd / (e / energyFactor);
if (_root.polarisation != 0) {
partnercolor = eval (("_parent.ball_" + _parent.ballReg[j]) + ".c._currentframe");
if (mycolor == partnercolor) {
if (_root.polarisation == 1) {
gdp = gdp * -1;
gds = gds * -1;
}
if (_root.polarisation == 2) {
gdp = gdp * -1;
gds = gds * -1;
}
} else {
if (_root.polarisation == -1) {
gdp = gdp * -1;
gds = gds * -1;
}
if (_root.polarisation == 2) {
gdp = gdp * -1;
gds = gds * -1;
}
}
}
vx = vx + (gvx / gds);
vy = vy + (gvy / gds);
Set(("_parent.ball_" + _parent.ballReg[j]) + ".vx", eval (("_parent.ball_" + _parent.ballReg[j]) + ".vx") - (gvx / gdp));
Set(("_parent.ball_" + _parent.ballReg[j]) + ".vy", eval (("_parent.ball_" + _parent.ballReg[j]) + ".vy") - (gvy / gdp));
}
j++;
}
Set(("_parent.ball_" + _parent.ballReg[i]) + ".vx", vx);
Set(("_parent.ball_" + _parent.ballReg[i]) + ".vy", vy);
i++;
}
i = 0;
while (i < delBall.length) {
removeMovieClip("_parent.ball_" + _parent.ballReg[delBall[i]]);
_parent.ballReg.splice(delBall[i], 1);
i++;
}
Symbol 35 MovieClip Frame 3
gotoAndPlay (2);
Symbol 39 Button
on (release, keyPress "<Enter>") {
gotoAndPlay (6);
}
Symbol 45 Button
on (release) {
getURL ("http://www.neodelight.com", "_blank");
}
Symbol 49 MovieClip Frame 1
if (_parent.polarisation == 0) {
gotoAndStop (2);
} else if (_parent.polarisation == -1) {
gotoAndStop (3);
} else if (_parent.polarisation == 1) {
gotoAndStop (4);
} else {
gotoAndStop (5);
}
Symbol 49 MovieClip Frame 2
_parent.polarisation = 0;
Symbol 49 MovieClip Frame 3
_parent.polarisation = -1;
Symbol 49 MovieClip Frame 4
_parent.polarisation = 1;
Symbol 49 MovieClip Frame 5
_parent.polarisation = 2;
Symbol 50 Button
on (release) {
if (gravitymode._currentframe < gravitymode._totalframes) {
gravitymode.nextFrame();
} else {
gravitymode.gotoAndStop(2);
}
}
Symbol 52 Button
on (release) {
gotoAndStop (5);
}
Symbol 59 MovieClip Frame 1
gotoAndStop((_parent.matches + 3) / 2);
Symbol 59 MovieClip Frame 2
_parent.matches = 1;
Symbol 59 MovieClip Frame 3
_parent.matches = 3;
Symbol 59 MovieClip Frame 4
_parent.matches = 5;
Symbol 59 MovieClip Frame 5
_parent.matches = 7;
Symbol 60 Button
on (release) {
if (matchtype._currentframe < matchtype._totalframes) {
matchtype.nextFrame();
} else {
matchtype.gotoAndStop(2);
}
}
Symbol 69 MovieClip Frame 1
gotoAndStop(_parent.gstrength + 1);
Symbol 69 MovieClip Frame 2
_parent.gstrength = 1;
Symbol 69 MovieClip Frame 3
_parent.gstrength = 2;
Symbol 69 MovieClip Frame 4
_parent.gstrength = 3;
Symbol 69 MovieClip Frame 5
_parent.gstrength = 4;
Symbol 69 MovieClip Frame 6
_parent.gstrength = 5;
Symbol 70 Button
on (release) {
if (mc_gstrength._currentframe < mc_gstrength._totalframes) {
mc_gstrength.nextFrame();
} else {
mc_gstrength.gotoAndStop(2);
}
}
Symbol 72 Button
on (release) {
if (mc_speedmod._currentframe < mc_speedmod._totalframes) {
mc_speedmod.nextFrame();
PreName.nextFrame();
} else {
mc_speedmod.gotoAndStop(2);
PreName.gotoAndStop(1);
}
}
Symbol 76 MovieClip Frame 1
gotoAndStop(_parent.speedmod + 1);
Symbol 76 MovieClip Frame 2
_parent.speedmod = 1;
Symbol 76 MovieClip Frame 3
_parent.speedmod = 2;
Symbol 77 Button
on (release) {
getURL ("http://www.neodelight.com?ref=gravity&ref_loc=moregames", "_TOP");
}
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 2
stop();
Symbol 85 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 96 Button
on (release) {
gotoAndPlay (4);
}
Symbol 116 Button
on (release) {
gotoAndStop (4);
}
Symbol 118 MovieClip Frame 200
stop();
Symbol 119 MovieClip Frame 200
stop();
Symbol 120 MovieClip Frame 1
if (_parent._name == "pl1") {
stop();
} else {
nextFrame();
}
Symbol 120 MovieClip Frame 2
stop();
Symbol 122 MovieClip Frame 1
a = 1;
v = 0;
paddleSize = 30;
friction = 0.8;
if (_name == "pl1") {
key_UP = 38;
key_Down = 40;
key_Shoot = 37;
} else {
key_UP = 87;
key_Down = 83;
key_Shoot = 68;
}
Symbol 122 MovieClip Frame 2
if (Key.isDown(Key_DOWN)) {
v = v + a;
if (v < 2) {
v = v + a;
}
} else if (Key.isDown(Key_UP)) {
v = v - a;
if (-2 < v) {
v = v - a;
}
} else {
v = v * friction;
}
if (Key.isDown(Key_Shoot)) {
if (gunReady == true) {
if (20 < e.e._currentframe) {
_parent.attachMovie("ball", "ball_" + _parent.ballID, _parent.ballID);
_parent.ballOwn[_parent.ballID] = _name;
_parent.ballE[_parent.ballID] = e.e._currentframe;
e.e.gotoAndPlay(1);
_parent.ballRegID[_parent.ballID] = _parent.Reg.length;
_parent.ballReg.push(_parent.ballID);
_parent.ballID++;
}
}
}
ty = _y + v;
if (ty < _parent.ymin) {
ty = _parent.ymin;
v = 0;
}
if (_parent.ymax < ty) {
ty = _parent.ymax;
v = 0;
}
_y = ty;
Symbol 122 MovieClip Frame 3
gotoAndPlay (2);
Symbol 122 MovieClip Frame 63
gotoAndPlay (2);
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 2
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 70
stop();
Symbol 129 MovieClip Frame 1
init = function () {
_root.w.ballID = 10;
_root.w.ballReg = new Array();
_root.w.ballRegID = new Array();
_root.w.ballOwn = new Array();
_root.w.ballE = new Array();
};
init();
ymin = -150;
ymax = 150;
yminBall = -170;
ymaxBall = 170;
xminBall = -235;
xmaxBall = 235;
xminVanish = -250;
xmaxVanish = 250;
Symbol 147 MovieClip Frame 1
gotoAndPlay (195);
round = 1;
Symbol 147 MovieClip Frame 2
if ((_root.matches / 2) < (_root.matchesBlue._currentframe - 1)) {
gotoAndPlay (269);
}
Symbol 147 MovieClip Frame 97
gotoAndPlay (195);
Symbol 147 MovieClip Frame 98
if ((_root.matches / 2) < (_root.matchesRed._currentframe - 1)) {
gotoAndPlay (432);
}
Symbol 147 MovieClip Frame 194
gotoAndPlay (195);
Symbol 147 MovieClip Frame 195
_root.w.scoreLeft.gotoAndStop(1);
_root.w.score2.gotoAndStop(1);
_root.score1 = 0;
_root.score2 = 0;
Symbol 147 MovieClip Frame 212
r.display = round;
round++;
Symbol 147 MovieClip Frame 255
_root.w.pl1.gunReady = true;
_root.w.pl2.gunReady = true;
Symbol 147 MovieClip Frame 268
stop();
Symbol 147 MovieClip Frame 430
_root.gotoAndStop("menu");
Symbol 147 MovieClip Frame 588
_root.gotoAndStop("menu");
Symbol 148 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 1
stop();