Frame 1
stop();
Instance of Symbol 56 MovieClip in Frame 1
onClipEvent (enterFrame) {
lod = _root.getBytesLoaded();
tot = _root.getBytesTotal();
center = Math.round((lod / tot) * 100);
if (cent > 99) {
narf++;
if (narf > 10) {
play();
}
}
cent = ((cent * 2) + center) / 3;
loading = Math.round(cent * 10000) / 10000;
loading = ("Loading: " + loading) + "%";
}
onClipEvent (load) {
narf = (cent = 0);
}
Frame 2
_root.mb = [1, 2, 3, 4, 5, 6, 7, 8, 9];
_root.mbc = undefined;
stop();
Symbol 26 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 36
done = true;
stop();
Symbol 35 MovieClip Frame 1
gotoAndStop(random(_root.game[2]) + 1);
Symbol 38 MovieClip Frame 36
done = true;
stop();
Symbol 42 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 46 Button
on (release) {
getURL ("http://www.komix-games.com/", "_blank");
}
Symbol 52 Button
on (release) {
getURL ("http://www.komix-games.com/", "_blank");
}
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 25
_root.nextFrame();
Symbol 59 Button
on (release) {
_root.gotoAndStop("cred");
}
Symbol 66 Button
on (release) {
_root.game = _currentframe - 1;
_root.gotoAndStop("game");
}
Symbol 85 MovieClip Frame 1
if (_root.mbc == undefined) {
_root.mbc = 0;
} else {
_root.mbc++;
}
_name = ("mb" + _root.mbc);
gotoAndStop(_root.mb[_root.mbc]);
so = SharedObject.getLocal("so");
scoo = "sco" + (_currentframe - 1);
if (so.data[scoo] == undefined) {
if (_currentframe < 5) {
sco = "No score yet";
} else {
gotoAndStop ("locked");
}
} else if (_currentframe < 4) {
sco = "High-score: " + so.data[scoo];
} else if (so.data[scoo] > 0) {
sco = "complete";
} else {
sco = "unlocked";
}
so.flush();
Symbol 87 Button
on (release) {
_root.music = true;
so = SharedObject.getLocal("so");
so.data.music = false;
so.flush();
prevFrame();
}
Symbol 89 Button
on (release) {
_root.music = false;
so = SharedObject.getLocal("so");
so.data.music = true;
so.flush();
nextFrame();
da.stop();
}
Symbol 91 MovieClip Frame 1
so = SharedObject.getLocal("so");
_root.music = true;
if (so.data.music == false) {
_root.music = false;
}
so.flush();
if (!_root.music) {
nextFrame();
} else if (!_root.musta) {
gotoAndStop (3);
_root.musta = true;
} else {
stop();
}
Symbol 93 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 95 Button
on (release) {
getURL ("http://www.cockroach.se/", "_blank");
}
Symbol 96 Button
on (release) {
getURL ("http://www.gamebalance.com/", "_blank");
}
Symbol 101 Button
on (release) {
if (_root.game < 9) {
_root.gotoAndStop("game");
} else {
getURL ("http://www.komix-games.com/", "_blank");
}
}
Symbol 105 MovieClip Frame 1
if (_root.goodsound) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
Symbol 106 MovieClip Frame 1
function create(f7, f1, f2, f3, f4, f5, f6, f8, f9) {
ballz++;
f0 = ball.length;
ball[f0] = attachMovie("ball", "ball" + ballz, 100032100 - ballz, {xp:f1, yp:f2, zp:f3, xbew:f4, ybew:f5, zbew:f6, s:f7, sca:f8});
ball[f0].gotoAndStop(f7);
ball[f0]._visible = false;
switch (f7) {
case 2 :
ho++;
ball[f0].d.gotoAndStop(ho);
ball[f0].ac = 0.1;
break;
case 4 :
ball[f0].zz = (ball[f0].zzz = 0);
break;
case 6 :
ball[f0].trg2 = f9;
break;
case 8 :
case 9 :
case 10 :
ball[f0].v1 = ball[f0].xp;
ball[f0].v2 = ball[f0].yp;
ball[f0].v3 = (Math.random() * 30) * _root.game[3];
ball[f0].v4 = Math.random() * 10;
ball[f0].v5 = rand(0.2) / _root.game[3];
ball[f0].xp = ball[f0].v1 + (Math.sin(ball[f0].v4) * ball[f0].v3);
ball[f0].yp = ball[f0].v2 + (Math.cos(ball[f0].v4) * ball[f0].v3);
break;
case 7 :
ball[f0].r = random(360);
}
return(f0);
}
function shadcreate(f7, f1, f2, f3, f4, f5, f6, f8) {
ballzz++;
create(6, f1, f2, 0, 0, 0, 0, 1, create(f7, f1, f2, f3, f4, f5, f6, f8));
}
function rand(v0) {
v0 = v0 * ((Math.random() - 0.5) * 2);
return(v0);
}
function crand(v0) {
if (!cr) {
cr = true;
cr1 = Math.random() * 6.28;
cr2 = rand(v0);
return(Math.sin(cr1) * cr2);
}
cr = false;
return(Math.cos(cr1) * cr2);
}
function soundy(nam, rep, trge, vol) {
if (vol == undefined) {
vol = 0;
}
if (trge != undefined) {
vol = vol + ball[trge].far;
pan = (ball[trge]._x / 2.75) - 100;
} else {
vol = vol + 50;
pan = 0;
}
v0 = sz.length;
szz++;
sz[v0] = attachMovie("soundz", "sz" + szz, szz + 2000000000);
sz[v0].trge = trge;
sz[v0].nam = nam;
sz[v0].vol = vol;
sz[v0]._x = 275 + (pan * 2.75);
sz[v0]._y = vol * 4;
sz[v0].s = new Sound(sz[v0]);
sz[v0].s.attachSound(nam);
sz[v0].s.setVolume(vol);
sz[v0].s.setPan(pan);
sz[v0].s.start(0, rep);
return(szz);
}
function soundstopi() {
for (z in sz) {
trg = sz[z];
sz[z].s.stop();
trg.swapDepths(100);
removeMovieClip(trg);
}
sz = [];
}
function onEnterFrame() {
if (Key.isDown(32)) {
if (spac) {
spac = false;
paus = !paus;
}
} else {
spac = true;
}
if (paus) {
_root.paus.gotoAndStop(2);
} else {
_root.paus.gotoAndStop(1);
if (Math.random() < 0.005) {
soundy("wind" + random(3), 0, undefined, (Math.random() * 50) - 25);
}
for (e in sz) {
trg = sz[e];
if (trg.s.duration == trg.s.position) {
trg.s.stop();
sz.splice(e, 1);
trg.swapDepths(100);
removeMovieClip(trg);
} else if (sz[e].trge != undefiend) {
if (trg.vol != undefined) {
vol = trg.vol;
} else {
vol = 0;
}
vol = vol + Math.min(200, ball[sz[e].trge].far + 20);
pan = (ball[sz[e].trge]._x / 2.75) - 100;
sz[e]._x = 275 + (pan * 2.75);
sz[e]._y = vol * 4;
sz[e].s.attachSound(nam);
vol = vol * 0.35;
vol = vol + (sz[e].s.getVolume() * 0.65);
pan = pan * 0.35;
pan = pan + (sz[e].s.getPan() * 0.65);
sz[e].s.setVolume(vol);
sz[e].s.setPan(pan);
}
}
v1 = false;
switch (_root.game[0]) {
case 0 :
case 1 :
v10 = 600;
if ((aaz > v10) && (_root.game[4] < v10)) {
soundy("time2", 0, undefined, 50);
}
v10 = 450;
if ((aaz > v10) && (_root.game[4] < v10)) {
soundy("time1", 0, undefined, 50);
}
v10 = 300;
if ((aaz > v10) && (_root.game[4] < v10)) {
soundy("time2", 0, undefined, 50);
}
v10 = 210;
if ((aaz > v10) && (_root.game[4] < v10)) {
soundy("time1", 0, undefined, 50);
}
v10 = 120;
if ((aaz > v10) && (_root.game[4] < v10)) {
soundy("time1", 0, undefined, 50);
}
v10 = 60;
if ((aaz > v10) && (_root.game[4] < v10)) {
soundy("time2", 0, undefined, 50);
}
_root.tex1 = "Time: ";
e = 0;
while (e < _root.game[4]) {
_root.tex1 = _root.tex1 + "I";
if ((e % 5) == 1) {
_root.tex1 = _root.tex1 + " ";
}
e = e + 30;
}
aaz = _root.game[4];
}
_root.game[4] = _root.game[4] - ti;
switch (_root.game[0]) {
case 0 :
ti = ti + 0.001;
if (_root.game[4] < 0) {
_root.game = game;
_root.tex1 = "Game Over";
so = SharedObject.getLocal("so");
scoo = "sco" + game;
if (so.data[scoo] == undefined) {
so.data[scoo] = sco;
_root.goodsound = true;
_root.tex2 = "You reached a new Highscore: " + sco;
} else if (so.data[scoo] < sco) {
_root.goodsound = true;
_root.tex2 = "You reached a new Highscore: " + sco;
_root.tex2 = _root.tex2 + ("\n\nYour old Highscore was: " + so.data[scoo]);
so.data[scoo] = sco;
} else {
_root.tex2 = "Your Score: " + sco;
sco = so.data[scoo];
_root.tex2 = _root.tex2 + (("\n\nYour best score: " + sco) + "\n\nMaybe you can beat it next time...");
}
so.flush();
soundstopi();
_root.gotoAndStop("go");
_root.pa = "Play again";
}
_root.tex2 = "Score: " + sco;
if (0 < (_root.game[1] - ballzz)) {
v1 = true;
}
break;
case 1 :
v3 = _root.game[1] + ballzz;
_root.tex2 = "Balls left: " + v3;
if ((_root.game[1] > 0) && (ballzz < 8)) {
_root.game[1]--;
v1 = true;
}
if (v3 <= 0) {
_root.goodsound = true;
_root.game = game + 1;
_root.pa = "Play next";
_root.tex1 = "Challenge complete";
if (game < 8) {
_root.tex2 = "A new challenge has been unlocked";
} else {
_root.pa = "play more games";
_root.tex2 = "That was the last one!\n\nYou have completed all the challenges, good job!";
}
so = SharedObject.getLocal("so");
scoo = "sco" + game;
if (so.data[scoo] == 0) {
so.data[scoo] = 1;
}
scoo = "sco" + ((game + 1) * 1);
if (so.data[scoo] == undefined) {
so.data[scoo] = 0;
}
so.flush();
soundstopi();
_root.gotoAndStop("go");
}
default :
if (_root.game[4] >= 0) {
break;
}
_root.game = game;
_root.pa = "Try again";
_root.tex1 = "Challenge failed";
_root.tex2 = "You ran out of time ";
soundstopi();
_root.gotoAndStop("go");
}
if (v1) {
shadcreate(7, crand(500), crand(500), 1000, 0, 0, 0, _root.game[11] + (Math.random() * _root.game[12]));
}
proti1 = Math.sin(prot);
proti2 = Math.cos(prot);
proti = Math.sqrt((proti1 * proti1) + (proti2 * proti2));
proti1 = proti1 / proti;
proti2 = proti2 / proti;
ball1.xbew = ball1.xbew * 0.8;
ball1.ybew = ball1.ybew * 0.8;
ball1.zbew = ball1.zbew * 0.8;
protbew = protbew * 0.9;
if (Key.isDown(37)) {
protbew++;
}
if (Key.isDown(39)) {
protbew--;
}
pbew = pbew * 0.9;
if (Key.isDown(38)) {
pbew = pbew + 0.45;
}
if (Key.isDown(40)) {
pbew = pbew - 0.45;
}
ball1.xbew = ball1.xbew + (Math.sin(pro - profix) * pbew);
ball1.ybew = ball1.ybew + (Math.cos(pro - profix) * pbew);
pro = pro + (protbew * 0.01);
engi.splice(0, 0, Math.max(Math.abs(protbew), Math.abs(pbew) * 2) * 1.5);
ens--;
if (((engi[0] > (engi[5] + 3)) && (engi[0] < 5)) && (ens < 0)) {
ens = 30;
soundy("engine_start", 0, undefined, -30);
}
enss--;
if (((engi[0] < (engi[5] - 5)) && (engi[5] > 10)) && (enss < 0)) {
enss = 30;
soundy("engine_stop", 0, undefined, 0);
}
engi.splice(30);
v1 = Math.round(engi[0] * 5);
sz[0].s.setVolume(v1);
sz[0]._y = v1 * 4;
v1 = 0.5;
ball0.xp = ball0.xp * v1;
ball0.yp = ball0.yp * v1;
ball0.zp = ball0.zp * v1;
v1 = 1 - v1;
v2 = 250;
ball0.xp = ball0.xp + ((ball1.xp - (proti1 * v2)) * v1);
ball0.yp = ball0.yp + ((ball1.yp - (proti2 * v2)) * v1);
ball0.zp = ball0.zp + ((ball1.zp + 100) * v1);
for (e in ball) {
trg = ball[e];
trg.xp = trg.xp + trg.xbew;
trg.yp = trg.yp + trg.ybew;
trg.zp = trg.zp + trg.zbew;
}
v5 = ball1.xp + ball1.xbew;
v6 = ball1.yp + ball1.ybew;
v7 = pro;
v3 = 0;
e = 2;
while (e < 8) {
switch (e) {
case 6 :
v7 = pro - 1.57;
v10 = 40;
break;
case 7 :
v7 = pro;
break;
default :
v7 = v7 + 1.57;
v10 = whe;
}
v8 = Math.sin(v7);
v9 = Math.cos(v7);
enf = [];
enf[1] = v5 + (v8 * v10);
enf[2] = v6 + (v9 * v10);
enf[3] = ball1.zp - 5;
trg = ball[e];
enf[1] = enf[1] - (trg.xp + trg.xbew);
enf[2] = enf[2] - (trg.yp + trg.ybew);
enf[3] = enf[3] - (trg.zp + trg.zbew);
trg.xbew = trg.xbew + (enf[1] * 0.5);
trg.ybew = trg.ybew + (enf[2] * 0.5);
if (e < 6) {
trg.zzz = trg.zzz - (((((trg.zp + trg.zbew) + (trg.zz * 3)) + (trg.zzz * 10)) - 30) * 0.02);
trg.zzz = trg.zzz + rand(0.1);
trg.zz = trg.zz + trg.zzz;
trg.zbew = trg.zbew + trg.zz;
trg.zz = trg.zz * 0.5;
trg.zzz = trg.zzz * 0.7;
trg.zbew = trg.zbew * 0.8;
v3 = v3 + trg.zp;
if (((Math.random() * 5) < engi[0]) && (Math.random() < 0.25)) {
v10 = (Math.random() * 0.5) + 1;
create(5, trg.xp + crand(5), trg.yp + crand(5), trg.zp, v8 * v10, v9 * v10, 0, Math.random());
}
} else {
trg.zbew = trg.zbew + (enf[3] * 0.5);
}
e++;
}
ball1.zp = v3 / 4;
pball = [];
for (e in ball) {
switch (ball[e].s) {
case 1 :
case 7 :
case 4 :
pball[pball.length] = e;
}
}
for (e in pball) {
ee = pball[e];
trg = ball[ee];
siz2 = trg.sca * sizes[trg.s];
trg.zbew = trg.zbew - 0.5;
if (trg.trg3 != undefined) {
ball[trg.trg3].needed = true;
}
if (trg.trg2 != undefined) {
ball[trg.trg2].ac = 1;
trg2 = ball[trg.trg2];
siz = trg2.sca * sizes[trg2.s];
enf = [0, (trg.xp + trg.xbew) - trg2.xp, (trg.yp + trg.ybew) - trg2.yp];
enf[0] = (enf[1] * enf[1]) + (enf[2] * enf[2]);
v1 = 0;
if (enf[0] > 0) {
enf[0] = Math.sqrt(enf[0]);
v1 = Math.max(0, ((enf[0] - siz) + siz2) / siz2);
if (v1 > 0) {
enf[0] = (v1 / enf[0]) * 2;
trg.xbew = trg.xbew - (enf[1] * enf[0]);
trg.ybew = trg.ybew - (enf[2] * enf[0]);
siz2 = siz2 - (siz * v1);
}
}
if ((v1 < 0.3) or (trg.zp < (siz2 - 5))) {
siz2 = siz2 - 600;
if (trg.zp < (siz2 + 50)) {
if (trg.d._currentframe == ball[trg.trg2].d._currentframe) {
trg.done = true;
ball[trg.trg3].done = true;
ballzz--;
sco++;
_root.game[4] = _root.game[4] + _root.game[5];
soundy("bh1", 0, trg.trg2, 300);
} else {
trg.zbew = 30;
trg.setMask(null);
delete trg.trg2;
ball[trg.trg3].done = true;
}
}
}
if ((trg.zp > (trg.sca * 40)) && (trg.zbew > 0)) {
trg.setMask(null);
delete trg.trg2;
ball[trg.trg3].done = true;
if (trg.d._currentframe != ball[trg.trg2].d._currentframe) {
soundy("bh2", 0, ee, 70);
}
}
}
if (trg.zp < siz2) {
trg.b = true;
trg.zp = siz2;
v1 = 0.9;
trg.xbew = trg.xbew * v1;
trg.ybew = trg.ybew * v1;
if (trg.zbew < 0) {
v1 = Math.round(Math.min(3, ((-trg.zbew) / 4) - 1));
if (loud < v1) {
loud = v1;
v2 = random(2);
soundy((("h" + v1) + "") + v2, 0, ee, (23 * v1) - 15);
}
v1 = -0.2;
}
trg.zbew = trg.zbew * v1;
} else {
trg.b = false;
}
}
loud = 0;
e = 0;
while (e < pball.length) {
ee = pball[e];
trg = ball[ee];
a = e + 1;
while (a < pball.length) {
aa = pball[a];
if ((aa > pp) or (ee > pp)) {
trg2 = ball[aa];
siz = (sizes[trg.s] * trg.sca) + (sizes[trg2.s] * trg2.sca);
enf = [0, trg.xp - trg2.xp];
if (enf[1] < siz) {
enf[2] = trg.yp - trg2.yp;
if (enf[2] < siz) {
enf[3] = trg.zp - trg2.zp;
if (enf[3] < siz) {
enf[0] = ((enf[1] * enf[1]) + (enf[2] * enf[2])) + (enf[3] * enf[3]);
if ((enf[0] < (siz * siz)) && (enf[0] > 0)) {
enf[0] = Math.sqrt(enf[0]);
enf[1] = enf[1] / enf[0];
enf[2] = enf[2] / enf[0];
enf[3] = enf[3] / enf[0];
enf[0] = -(siz - enf[0]);
trg.xp = trg.xp - (enf[1] * enf[0]);
trg.yp = trg.yp - (enf[2] * enf[0]);
trg.zp = trg.zp - (enf[3] * enf[0]);
trg2.xp = trg2.xp + (enf[1] * enf[0]);
trg2.yp = trg2.yp + (enf[2] * enf[0]);
trg2.zp = trg2.zp + (enf[3] * enf[0]);
enf1 = [0, trg.xbew - trg2.xbew, trg.ybew - trg2.ybew, trg.zbew - trg2.zbew];
enf1[0] = ((enf1[1] * enf1[1]) + (enf1[2] * enf1[2])) + (enf1[3] * enf1[3]);
if (enf1[0] > 0) {
enf1[0] = Math.sqrt(enf1[0]);
v1 = Math.round(Math.min(3, (enf1[0] / 5.5) - 1));
if (loud < v1) {
loud = v1;
v2 = random(2);
soundy((("h" + v1) + "") + v2, 0, ee, 23 * v1);
}
}
enf[0] = (-enf1[0]) / 2;
trg.xbew = trg.xbew - (enf[1] * enf[0]);
trg.ybew = trg.ybew - (enf[2] * enf[0]);
trg.zbew = trg.zbew - (enf[3] * enf[0]);
trg2.xbew = trg2.xbew + (enf[1] * enf[0]);
trg2.ybew = trg2.ybew + (enf[2] * enf[0]);
trg2.zbew = trg2.zbew + (enf[3] * enf[0]);
}
}
}
}
}
a++;
}
e++;
}
for (e in ball) {
trg = ball[e];
if (trg.d.done or trg.done) {
for (i in ball) {
if (ball[i].trg2 > e) {
ball[i].trg2--;
}
if (ball[i].trg3 > e) {
ball[i].trg3--;
}
}
ball.splice(e, 1);
trg.swapDepths(100);
removeMovieClip(trg);
} else {
switch (trg.s) {
case 3 :
if (!trg.needed) {
trg.done = true;
}
break;
case 7 :
if (trg.b) {
trg.r = trg.r + 0.1;
v1 = Math.max(0, 1 - trg.sca);
v1 = v1 * _root.game[10];
trg.xbew = trg.xbew + (Math.sin(trg.r) * v1);
trg.ybew = trg.ybew + (Math.cos(trg.r) * v1);
}
break;
case 5 :
trg.zbew = trg.zbew - (((trg.zp * 0.1) - 1.6) * 0.6);
trg.zbew = trg.zbew * 0.95;
break;
case 6 :
trg2 = ball[trg.trg2];
trg.xp = trg2.xp + (Math.max(0, trg2.zp) * 0.25);
trg.yp = trg2.yp;
v1 = trg2.sca * sizes[trg2.s];
trg.sca = (v1 / 25) * Math.min(1, Math.max(0, (1000 - trg2.zp) + v1) / 1000);
v1 = sizes[trg.s] * trg2.sca;
if (trg2.zp < v1) {
trg.sca = trg.sca * Math.max(0, (v1 - trg2.zp) / v1);
}
if (trg2.done) {
trg.done = true;
}
trg.f.f._rotation = ((prot / 3.14) * 180) - ((trg._x - 275) * 0.16);
break;
case 2 :
siz = sizes[trg.s] * trg.sca;
trg.ac = trg.ac + 0.01;
trg.ac = trg.ac * 0.9;
if (Math.random() < trg.ac) {
create(7 + trg.d._currentframe, trg.xp, trg.yp, 0, 0, 0, 0, Math.random());
}
for (aa in pball) {
a = pball[aa];
if (a > pp) {
trg2 = ball[a];
if (trg2.trg2 == undefined) {
enf = [0, trg.xp - trg2.xp];
if (enf[1] < siz) {
enf[2] = trg.yp - trg2.yp;
if (enf[2] < siz) {
enf[0] = (enf[1] * enf[1]) + (enf[2] * enf[2]);
if ((enf[0] > 0) && (enf[0] < (siz * siz))) {
if (trg2.zp < ((trg2.sca * sizes[trg.s]) + 20)) {
trg2.trg2 = e;
z = create(3, trg.xp, trg.yp, 0, 0, 0, 0, trg.sca);
trg2.trg3 = z;
trg2.setMask(ball[z]);
}
}
}
}
}
}
}
break;
case 8 :
case 9 :
case 10 :
trg.zbew = trg.zbew + 0.5;
trg.v4 = trg.v4 + trg.v5;
trg.xp = trg.v1 + (Math.sin(trg.v4) * trg.v3);
trg.yp = trg.v2 + (Math.cos(trg.v4) * trg.v3);
}
}
}
dp = [];
for (e in ball) {
trg = ball[e];
enf = new Array(0, trg.xp - ball0.xp, trg.yp - ball0.yp, trg.zp - ball0.zp);
prod = (enf[1] * proti1) + (enf[2] * proti2);
enf[0] = Math.sqrt(((enf[3] * enf[3]) + (enf[2] * enf[2])) + (enf[1] * enf[1]));
if (enf[0] > 0) {
enf[1] = enf[1] / enf[0];
enf[2] = enf[2] / enf[0];
enf[3] = enf[3] / enf[0];
}
if ((prod > (-0.4 - (2.3 / enf[0]))) or (trg.s == 2)) {
vecx = enf[1];
vecy = enf[2];
vecz = enf[3];
rot1 = Math.acos(vecx / Math.sqrt((vecx * vecx) + (vecy * vecy)));
if (vecy < 0) {
rot1 = -rot1;
}
rot3 = rot1 / 1.57;
rot1 = rot1 + prot;
while (rot1 > 3.14) {
rot1 = rot1 - 6.28;
}
while (rot1 < -3.14) {
rot1 = rot1 + 6.28;
}
rot2 = -Math.atan(vecz / Math.sqrt((vecx * vecx) + (vecy * vecy)));
while (rot2 > 3.14) {
rot2 = rot2 - 6.28;
}
while (rot2 < -3.14) {
rot2 = rot2 + 6.28;
}
rot1 = rot1 / 1.57;
rot2 = rot2 / 1.57;
trg._x = (rot1 * 500) - 225;
trg._y = (rot2 * 500) + hor;
trg.f._yscale = 100 * Math.abs(rot2);
v1 = 5000 / enf[0];
trg.swapDepths(Math.max(e, Math.round(((v1 * 10000) + (dep[trg.s] * 1000)) + 100000000)));
trg._visible = true;
trg.far = v1;
dp.push({d:v1 * 1000, e:e});
trg._xscale = (v1 * 7) * trg.sca;
trg._yscale = (v1 * 7) * trg.sca;
} else {
trg._visible = false;
}
}
v1 = (prot - pro) + profix;
_root.bg._x = ((prot - 3.14) * 314) + 275;
while (v1 < -3.14) {
v1 = v1 + 6.28;
}
while (v1 > 3.14) {
v1 = v1 - 6.28;
}
prot = prot - (v1 * 0.2);
while (prot < -3.14) {
prot = prot + 6.28;
}
while (prot > 3.14) {
prot = prot - 6.28;
}
if (news) {
news = false;
for (e in ball) {
if (ball[e].s == 2) {
soundy("hole", 98802099, e);
}
}
}
for (e in ball) {
switch (ball[e].s) {
case 5 :
case 8 :
case 9 :
case 10 :
ball[e].d.nextFrame();
}
}
}
}
news = true;
hor = _root.bg._y;
ball = [];
ballz = 0;
ball[0] = attachMovie("ball", "ball0", ballz, {xp:0, yp:0, zp:0, xbew:0, ybew:0, zbew:0});
ball0.stop();
ball0._y = (ball0._x = -100);
sizes = [0, 25, 25, 25, 7.5, 0, 0, 25, 0];
dep = [0, 0, -200, -250, 0, 2, -1000, 0, 0, 0, 0];
pro = (pbew = (prot = (protbew = 0)));
profix = 0.785;
sco = (ho = 0);
_root.goodsound = false;
cr = false;
game = _root.game;
_root.game = [[0, 5, 1, 3, 3000, 600, 0, 0, 0, 0, 0, 0.5, 0.5], [0, 5, 2, 2, 3000, 600, 0, 0, 0, 0, 1, 0.5, 0.5], [0, 5, 3, 2, 3000, 600, 0, 0, 0, 0, 1.5, 0.5, 0.5], [1, 5, 1, 4, 1500, 300, 0, 0, 0, 0, 1.5, 1.5, 0.5], [1, 5, 1, 4, 2000, 300, 0, 0, 0, 0, 2.5, 0.5, 0.1], [1, 6, 3, 4, 1500, 300, 0, 0, 0, 0, 0, 2, 0.5], [1, 15, 3, 1, 1500, 240, 0, 0, 0, 0, 0, 0.75, 0], [1, 15, 3, 1, 1500, 170, 0, 0, 0, 0, 1.5, 0.5, 0], [1, 15, 3, 5, 1500, 200, 0, 0, 0, 0, 0, 4, 0.5]];
_root.game = _root.game[game];
v5 = 0;
v6 = 0;
whe = (v7 = 25);
create(1, v5, v6, 25, 0, 0, 0, 1);
create(4, v5 + v7, v6 + v7, 7.5, 0, 0, 0, 1);
create(4, v5 - v7, v6 + v7, 7.5, 0, 0, 0, 1);
create(4, v5 + v7, v6 - v7, 7.5, 0, 0, 0, 1);
create(4, v5 - v7, v6 - v7, 7.5, 0, 0, 0, 1);
create(4, v5 + v7, v6 - v7, 7.5, 0, 0, 0, 2);
create(4, v5 - v7, v6 - v7, 7.5, 0, 0, 0, 2);
pp = ballz;
create(6, v5, v6, 0, 0, 0, 0, 1, 1);
create(6, v5 + v7, v6 + v7, 0, 0, 0, 0, 1, 2);
create(6, v5 - v7, v6 + v7, 0, 0, 0, 0, 1, 3);
create(6, v5 + v7, v6 - v7, 0, 0, 0, 0, 1, 4);
create(6, v5 - v7, v6 - v7, 0, 0, 0, 0, 1, 5);
create(6, v5 + v7, v6 - v7, 0, 0, 0, 0, 1, 6);
create(6, v5 - v7, v6 - v7, 0, 0, 0, 0, 1, 7);
v2 = 700;
v3 = 6.28 / _root.game[2];
v1 = 2.355;
z = 0;
while (z < _root.game[2]) {
create(2, Math.cos(v1) * v2, Math.sin(v1) * v2, 0, 0, 0, 0, _root.game[3]);
v1 = v1 + v3;
z++;
}
ballzz = 0;
ti = 1;
sz = [];
szz = 0;
soundy("engine", 997002999, undefined, 0);
soundy("game_start", 0, undefined, 50);
engi = [];
ens = (enss = 0);
paus = true;
Symbol 111 Button
on (release) {
_root.a.soundstopi();
_root.gotoAndStop("menu");
}
Symbol 114 Button
on (release) {
_root.a.paus = false;
}