Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
stop();
__com_mochibot__("57204816", this, 10301, true);
__com_mochibot__("6b14d132", this, 10301, true);
Instance of Symbol 187 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) {
_root.play();
}
}
cent = ((cent * 2) + center) / 3;
loading = Math.round(cent * 10000) / 10000;
tex = ("Loading: " + loading) + "%";
}
onClipEvent (load) {
narf = (cent = 0);
}
Frame 151
stop();
Frame 154
function EncrpytString(strVal) {
var _local7 = "jacDaHfEbChGjcDeiAfIjDbE";
var _local8 = _local7.length;
var _local11 = "0";
var _local3 = "";
var _local9 = strVal.length;
var _local1 = 0;
_local3 = "";
var _local4;
var _local6;
var _local2;
var _local5 = 0;
nCnt = 0;
while (nCnt < _local9) {
_local4 = strVal.charCodeAt(nCnt);
if (_local4 >= 128) {
_local4 = "X";
}
_local6 = _local7.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= _local8) {
_local1 = 0;
}
_local2 = (_local4 % 16) + _local6;
_local3 = _local3 + String.fromCharCode(_local2);
_local5 = _local5 + _local2;
_local6 = _local7.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= _local8) {
_local1 = 0;
}
_local2 = Math.floor(_local4 / 16) + _local6;
_local3 = _local3 + String.fromCharCode(_local2);
_local5 = _local5 + _local2;
nCnt++;
}
_local5 = _local5 % 256;
_local6 = _local7.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= _local8) {
_local1 = 0;
}
_local2 = (_local5 % 16) + _local6;
_local3 = _local3 + String.fromCharCode(_local2);
_local6 = _local7.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= _local8) {
_local1 = 0;
}
_local2 = Math.floor(_local5 / 16) + _local6;
_local3 = _local3 + String.fromCharCode(_local2);
return(_local3);
}
function GetUrlParam(strUrl, strParam) {
var _local4 = strUrl.toLowerCase();
var _local1 = _local4.indexOf(strParam);
var _local5 = strParam.length;
if (_local1 > 0) {
var _local3;
var _local2 = _local4.indexOf("&", _local1 + _local5);
if (_local2 > 0) {
_local3 = _local2 - _local1;
} else {
_local3 = strUrl.length - _local1;
}
return(strUrl.substr(_local1 + _local5, _local3));
}
return("");
}
function GetBaseUrl(strUrl) {
var _local1 = strUrl.toLowerCase();
var _local2 = _local1.length;
var _local3 = _local1.indexOf("?", 0);
if (_local3 > 0) {
_local2 = _local3;
}
var _local4 = "download";
if (_local1.substr(0, 4) == "http") {
_local4 = strUrl.substr(7, _local2 - 7);
}
return(_local4);
}
var strOut = ((nam + "|") + _root.money);
var strOut2 = _root.EncrpytString(strOut);
getURL ("http://www.bumarcade.com/twin-hobo-rocket/shs.asp?" + strOut2, "_blank");
Symbol 45 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 1
gotoAndStop(random(4) + 1);
Symbol 113 MovieClip Frame 1
gotoAndStop(random(4) + 1);
Symbol 113 MovieClip Frame 6
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 3
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 1
gotoAndStop(random(4) + 1);
Symbol 168 MovieClip Frame 1
gotoAndStop(random(10) + 1);
Symbol 180 MovieClip Frame 23
stop();
Symbol 182 MovieClip Frame 1
_xscale = ((Math.random() * 40) + 30);
_yscale = ((Math.random() * 40) + 30);
Symbol 190 Button
on (release) {
getURL ("http://www.bumarcade.com", _blank);
}
Symbol 196 Button
on (release) {
getURL ("http://www.bumarcade.com", _blank);
}
Symbol 200 Button
on (release) {
getURL ("http://www.komix-games.com", _blank);
}
Symbol 222 Button
on (release) {
gotoAndStop ("game");
oneplayer = true;
}
Symbol 228 Button
on (release) {
gotoAndStop ("game");
oneplayer = false;
}
Symbol 234 Button
on (release) {
getURL ("http://www.kaada.no", _blank);
}
Symbol 235 Button
on (release) {
getURL ("http://theswain.com/", _blank);
}
Symbol 238 Button
on (release) {
getURL ("http://www.bumarcade.com/", _blank);
}
Symbol 241 Button
on (release) {
getURL ("http://www.bumarcade.com/free-games-for-web-site.html", _blank);
}
Symbol 250 Button
on (release) {
_root.music = true;
so = SharedObject.getLocal("so");
so.data.music = false;
so.flush();
prevFrame();
}
Symbol 252 Button
on (release) {
_root.music = false;
so = SharedObject.getLocal("so");
so.data.music = true;
so.flush();
nextFrame();
da.stop();
}
Symbol 254 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 294 MovieClip Frame 1
function create(f1, f2, f3, f4, f5, f6, f7) {
ballz++;
namer = "b" + ballz;
f0 = ball.length;
ball[f0] = attachMovie("ball", namer, ballz + 100000);
ball[f0].xp = f1;
ball[f0].yp = f2;
ball[f0].rp = f3;
ball[f0].xbew = f4;
ball[f0].ybew = f5;
ball[f0].rbew = f6;
ball[f0].s = f7;
ball[f0].gotoAndStop(f7);
return(f0);
}
function parc(f1, f2, f3, f4, f5, f6, f7, f8) {
ballz++;
namer = "p" + ballz;
f0 = par.length;
par[f0] = attachMovie("par", namer, (ballz + 100000) + f8);
par[f0].xp = f1;
par[f0].yp = f2;
par[f0].rp = f3;
par[f0].xbew = f4;
par[f0].ybew = f5;
par[f0].rbew = f6;
par[f0].s = f7;
par[f0].gotoAndStop(f7);
par[f0].done = pard[f7] * (0.7 + Math.random());
par[f0]._y = 100000 /* 0x0186A0 */;
par[f0].dp = Math.random();
}
function rotc(f0) {
if (Math.abs(f0) > 200) {
return(f0 * 0.1);
}
return(f0 * 0.5);
}
function mhit(f1, f2) {
return(m.hitTest(f1 + _x, f2 + _y, true));
}
function pull(v1, v2, v3) {
xenf = ((v1.xp + v1.xb) - v2.xp) - v2.xb;
yenf = ((v1.yp + v1.yb) - v2.yp) - v2.yb;
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
xenf = xenf / enf;
yenf = yenf / enf;
enf = enf - v3;
xenf = xenf * (enf * 0.3);
yenf = yenf * (enf * 0.3);
v1.xbew = v1.xbew - xenf;
v1.ybew = v1.ybew - yenf;
v2.xbew = v2.xbew + xenf;
v2.ybew = v2.ybew + yenf;
}
function rock() {
xenf = ((trg.xp + trg.xbew) - trg2.xp) - trg2.xbew;
yenf = ((trg.yp + trg.ybew) - trg2.yp) - trg2.ybew;
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
xenf = xenf / enf;
yenf = yenf / enf;
f1 = xenf;
f2 = yenf;
if (!gameover) {
trg.xbew = trg.xbew + (yenf * v1);
trg.ybew = trg.ybew - (xenf * v1);
}
if (!gameover) {
v2 = 0.75 + (v2 * 0.75);
} else if (!asdk) {
v2 = 30;
}
trg.xbew = trg.xbew + (xenf * v2);
trg.ybew = trg.ybew + (yenf * v2);
trg2.xbew = trg2.xbew + (xenf * v2);
trg2.ybew = trg2.ybew + (yenf * v2);
enf = enf - 50;
xenf = xenf * (enf * 0.3);
yenf = yenf * (enf * 0.3);
trg.xbew = trg.xbew - xenf;
trg.ybew = trg.ybew - yenf;
trg2.xbew = trg2.xbew + xenf;
trg2.ybew = trg2.ybew + yenf;
xenf = trg.xp - trg2.xp;
yenf = trg.yp - trg2.yp;
v1 = ((Math.atan((-xenf) / yenf) / Math.PI) * 180) + 180;
if (yenf < 0) {
v1 = v1 + 180;
}
trg.ar = trg.rp;
trg.rp = v1;
trg2.rp = v1;
v1 = v1 - trg.ar;
while (v1 > 180) {
v1 = v1 - 360;
}
while (v1 < -180) {
v1 = v1 + 360;
}
trg.rr = trg.rr - v1;
trg.sick = trg.sick + ((Math.abs(v1) * 0.16) - 0.3);
trg.sick = trg.sick * 0.99;
v1 = Math.round(trg.sick * 0.1) - 3;
if ((v1 >= 4) && (!gameover)) {
v1 = 4;
if (Math.random() < 0.25) {
parc(((trg2.xp + (f1 * 20)) - (f2 * trg2.d.h._x)) + ((Math.random() - 0.5) * 10), ((trg2.yp + (f2 * 20)) + (f1 * trg2.d.h._x)) + ((Math.random() - 0.5) * 10), random(360), trg.xbew, trg.ybew, (Math.random() - 0.5) * 4, 1, 0);
}
}
trg2.d.h.gotoAndStop(v1);
trg2.d.h1._rotation = (trg2.d.h2._rotation = (trg2.d.l1._rotation = (trg2.d.l2._rotation = trg.rr)));
trg2.d.h._rotation = trg.rr * 0.5;
trg2.hxbew = trg2.hxbew - (trg2.xbew - trg2.axb);
trg2.hybew = trg2.hybew - (trg2.ybew - trg2.ayb);
trg2.hxbew = trg2.hxbew * 0.8;
trg2.hybew = trg2.hybew * 0.8;
trg2.d.h._x = trg2.d.h._x * 0.8;
trg2.d.h._y = trg2.d.h._y * 0.8;
trg2.d.h._x = trg2.d.h._x + (trg2.hrx * 0.2);
trg2.d.h._y = trg2.d.h._y + (trg2.hry * 0.2);
v1 = 0.35;
trg2.d.h._x = trg2.d.h._x + ((trg2.hybew * f1) * v1);
trg2.d.h._y = trg2.d.h._y - ((trg2.hybew * f2) * v1);
trg2.d.h._x = trg2.d.h._x - ((trg2.hxbew * f2) * v1);
trg2.d.h._y = trg2.d.h._y - ((trg2.hxbew * f1) * v1);
trg.rr = trg.rr * 0.9;
trg.rbew = trg.rbew * 0.9;
trg2.rbew = trg2.rbew * 0.9;
trg2.axb = trg2.xbew;
trg2.ayb = trg2.ybew;
if ((Math.random() < 0.25) && (!gameover)) {
parc((trg2.xp - (f1 * 15)) + ((Math.random() - 0.5) * 30), (trg2.yp - (f2 * 15)) + ((Math.random() - 0.5) * 30), random(360), trg.xbew - (f1 * 8), trg.ybew - (f2 * 8), Math.random() - 0.5, 3, -100000);
}
}
function exp() {
i = 0;
while (i < 17) {
v3 = (Math.random() * 2) * Math.PI;
v2 = (Math.random() * 4) + 4;
v1 = Math.cos(v3) * v2;
v2 = Math.sin(v3) * v2;
parc(trg.xp + v1, trg.yp + v2, random(360), v1, v2, v1, 4, 0);
i++;
}
parc(trg.xp, trg.yp, random(360), 0, 0, 0, 5, 0);
}
function goalcreate() {
v1 = Math.random() * Math.PI;
v2 = (-Math.sin(v1)) * 2000;
v1 = Math.cos(v1) * 2000;
if (Math.random() < 0.5) {
create(((-_x) + 275) + v1, ((-_y) - 100) + v2, 0, 0, 0, 0, 3);
goal = create(((-_x) + 275) + v1, ((-_y) + 50) + v2, 0, 0, 0, 0, 4);
} else {
goal = create(((-_x) + 275) + v1, ((-_y) + 50) + v2, 0, 0, 0, 0, 5);
}
}
function soundy(nam, rep, vol) {
if (vol == undefined) {
vol = 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].rep = rep;
sz[v0].s = new Sound(sz[v0]);
sz[v0]._x = 275 + (pan * 2.75);
sz[v0]._y = vol * 4;
sz[v0].s.attachSound(nam);
sz[v0].s.setVolume(vol);
sz[v0].s.start(0, rep);
return(v0);
}
function soundstopi() {
for (z in sz) {
trg = sz[z];
sz[z].s.stop();
trg.swapDepths(100);
removeMovieClip(trg);
}
sz = [];
}
function hobos(f1) {
hoboneed = "h" + (f1 * 1);
}
function hobosuccces() {
sufa = Math.max(sufa, 0) + 1;
switch (sufa) {
case 2 :
hobos(31);
return;
case 4 :
hobos(32);
return;
case 6 :
hobos(33);
return;
case 8 :
hobos(34);
return;
case 10 :
hobos(35);
return;
default :
hobos(23 + random(3));
}
}
function hobofail(f1) {
sufa = Math.min(sufa, 0) - 1;
switch (sufa) {
case -2 :
hobos(26);
break;
case -4 :
hobos(27);
break;
case -6 :
hobos(28);
break;
case -8 :
hobos(29);
break;
case -10 :
hobos(30);
break;
default :
if (f1 == 0) {
hobos(19 + random(4));
} else {
hobos(15 + random(4));
}
}
}
function onEnterFrame() {
hobobore = hobobore + 0.2;
hobobore = hobobore * 0.99;
if ((hobosound == undefined) && (hoboneed != undefined)) {
hobosound = soundy(hoboneed, 0, 100);
hoboneed = undefined;
hobobore = 0;
}
_root.tex = money;
if (Math.random() < (5E-5 * hobobore)) {
hobos(random(5) + 9);
}
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);
if (hobosound > e) {
hobosound--;
} else if (hobosound == e) {
hobosound = undefined;
}
} else if (sz[e].trge != undefined) {
vol = ((Math.min(200, (ball[sz[e].trge].far * 5) - 100) * trg.vol) / 100) + (trg.vol * 0.25);
_root.tex = vol;
pan = (ball[sz[e].trge]._x / 2.75) - 100;
pan = pan * 2;
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);
}
}
if ((!Key.isDown(32)) && (!Key.isDown(80))) {
unspace = true;
}
if (!unpause) {
if ((Key.isDown(32) or Key.isDown(80)) && (unspace)) {
unpause = true;
unspace = false;
}
} else {
troids = troids + 0.0015;
troids = troids * 0.9995;
if ((ast < troids) && (Math.random() < 0.1)) {
create((-_x) + (550 * Math.random()), (-_y) - 100, random(360), (Math.random() - 0.5) * 2, 4, (Math.random() - 0.5) * 10, 2);
ast++;
}
_root.p.gotoAndStop(1);
if ((Key.isDown(32) or Key.isDown(80)) && (unspace)) {
_root.p.gotoAndStop(_root.pinfo);
unpause = false;
unspace = false;
}
if (_root.g._currentframe < 66) {
_root.g.nextFrame();
}
for (e in ball) {
trg = ball[e];
}
for (e in ball) {
trg = ball[e];
if (trg.d.done or trg.done) {
if (trg.s == 2) {
ast--;
}
removeMovieClip(ball[e]);
ball.splice(e, 1);
if (goal == e) {
goal = undefined;
} else if (goal > e) {
goal--;
}
}
}
for (e in par) {
trg = par[e];
trg.done--;
if (trg.done < 0) {
removeMovieClip(par[e]);
par.splice(e, 1);
}
}
e = 0;
while (e < ball.length) {
trg = ball[e];
enf = (trg.xbew * trg.xbew) + (trg.ybew * trg.ybew);
f1 = 17;
if (enf > (f1 * f1)) {
enf = f1 / Math.sqrt(enf);
trg.xbew = trg.xbew * enf;
trg.ybew = trg.ybew * enf;
}
e++;
}
for (e in ball) {
trg = ball[e];
trg.rp = trg.rp + trg.rbew;
trg.xp = trg.xp + trg.xbew;
trg.yp = trg.yp + trg.ybew;
switch (trg.s) {
case 1 :
trg.rbew = trg.rbew * 0.93;
trg.xbew = trg.xbew * 0.93;
trg.ybew = trg.ybew * 0.93;
trg.ybew = trg.ybew + 0.5;
break;
case 2 :
trg.ybew = trg.ybew + 0.1;
if (trg.yp > ((-_y) + 600)) {
trg.d.done = true;
}
if (trg.xp < ((-_x) - 100)) {
trg.xp = trg.xp + 750;
}
if (trg.xp > ((-_x) + 650)) {
trg.xp = trg.xp - 750;
}
break;
case 3 :
case 4 :
if (trg.b.c._currentframe > 1) {
trg.ybew = trg.ybew - 0.35;
}
if (trg.b.b._currentframe > 5) {
trg.ybew = trg.ybew + 2;
}
if ((trg.yp > 300) or (trg.yp > (ball[0].yp + 1000))) {
trg.done = true;
if (trg.b.c._currentframe == 1) {
hobofail(0);
}
}
break;
case 5 :
xenf = ((((trg.xp * 4) - ball[0].xp) - ball[1].xp) - ball[2].xp) - ball[3].xp;
yenf = ((((trg.yp * 4) - ball[0].yp) - ball[1].yp) - ball[2].yp) - ball[3].yp;
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
if ((enf > 3000) && ((trg.drop < 0) or (trg.u.a._currentframe == 2))) {
trg.done = true;
}
trg.xbew = trg.xbew * 1.1;
trg.ybew = trg.ybew * 1.1;
if (trg.u.a._currentframe == 2) {
trg.xbew = trg.xbew - 1;
trg.ybew = trg.ybew - 0.3;
} else {
if (enf < 1300) {
trg.li._xscale = trg.li._xscale - 0.5;
if (Math.random() < 0.1) {
trg.u.a.gotoAndStop(3 + random(2));
}
if (Math.random() < 0.05) {
trg.u.a.gotoAndStop(1);
}
if (Math.random() < (trg.li._xscale / 500)) {
hobos(random(9));
}
}
if (trg.li._xscale < 2) {
trg.drop--;
if (trg.li._xscale > 0) {
hobosuccces();
}
trg.li._xscale = 0;
if (trg.drop < 0) {
trg.xbew = trg.xbew + 1;
trg.ybew = trg.ybew - 0.3;
trg.u.m.prevFrame();
} else {
trg.u.m.nextFrame();
parc(trg.xp + ((Math.random() - 0.5) * 20), (trg.yp + 10) + 25, random(360), (Math.random() - 0.5) * 3, 5, 0, 2, -100000);
}
} else {
trg.drop = 70;
}
}
}
}
for (e in par) {
trg = par[e];
trg.rp = trg.rp + trg.rbew;
trg.xp = trg.xp + trg.xbew;
trg.yp = trg.yp + trg.ybew;
switch (trg.s) {
case 1 :
trg.xbew = trg.xbew * 0.93;
trg.ybew = trg.ybew * 0.93;
trg.ybew = trg.ybew + 0.25;
v1 = 400 + (50 * trg.dp);
if (trg.yp > v1) {
trg.yp = v1;
trg.rbew = 0;
trg.xbew = 0;
trg._xscale = 200 + (trg.dp * 200);
trg.cacheAsBitmap = true;
trg.done = trg.done + 0.9;
} else {
trg._xscale = trg._xscale + 5;
trg._xscale = trg._xscale * 0.99;
}
trg._yscale = trg._xscale;
break;
case 2 :
trg.xbew = trg.xbew * 0.93;
trg.ybew = trg.ybew * 0.93;
trg.ybew = trg.ybew + 0.25;
i = 0;
while (i < 4) {
siz = 30;
trg2 = ball[i];
xenf = trg.xp - trg2.xp;
if (Math.abs(xenf) < siz) {
yenf = trg.yp - trg2.yp;
if (Math.abs(yenf) < siz) {
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
if (enf < siz) {
trg.done = -10;
bigm = !bigm;
bigm2 = !bigm2;
if (bigm && (bigm2)) {
soundy("coin", 1, 30 + (Math.random() * 20));
money = money + 5;
damg[i] = damg[i] - 3;
} else {
money++;
}
}
}
}
i++;
}
break;
case 3 :
trg.xbew = trg.xbew * 0.93;
trg.ybew = trg.ybew * 0.93;
trg._xscale = trg._xscale + 30;
trg._xscale = trg._xscale * 0.9;
trg._yscale = trg._xscale;
trg.ybew = trg.ybew - 0.1;
trg._alpha = trg.done * 4;
break;
case 6 :
trg.ybew = trg.ybew + 0.4;
trg._alpha = trg._alpha * 0.9;
}
}
topz(0);
e = 0;
while (e < ball.length) {
trg = ball[e];
a = e + 1;
while (a < ball.length) {
if (((e != 0) or (a != 1)) && ((e != 2) or (a != 3))) {
trg2 = ball[a];
if ((((trg.s <= 1) or (trg2.s <= 1)) or (trg.s == trg2.s)) && (((trg.s != 1) or (trg2.s != 1)) or (!_root.oneplayer))) {
xenf = trg2.xp - trg.xp;
siz = sizes[trg.s] + sizes[trg2.s];
if (Math.abs(xenf) < siz) {
yenf = trg2.yp - trg.yp;
if (Math.abs(xenf) < siz) {
enf = (xenf * xenf) + (yenf * yenf);
if ((enf > 0) && (enf < (siz * siz))) {
if ((trg.s == 1) && (trg2.s == 3)) {
if (a == (goal - 1)) {
trg2.done = true;
ball[a + 1].b.b.gotoAndPlay(5);
soundy("pop", 1, 50);
} else if (trg2.b.b._currentframe < 5) {
trg2.b.b.gotoAndPlay(5);
soundy("pop", 1, 50);
}
} else if ((trg.s == 1) && (trg2.s == 4)) {
hobosuccces();
trg2.done = true;
ball[a - 1].b.c.play();
i = 0;
while (i < 70) {
v3 = (Math.random() * 2) * Math.PI;
v2 = (Math.random() * 4) + 4;
v1 = Math.cos(v3) * v2;
v2 = Math.sin(v3) * v2;
parc(trg2.xp + v1, trg2.yp + v2, random(360), v1, v2, 0, 2, 0);
i++;
}
} else {
if ((trg.s == 1) && (trg2.s == 5)) {
if (trg2.u.a._currentframe != 2) {
trg2.u.a.gotoAndStop(2);
hobofail(1);
}
}
trg.gh = true;
trg2.gh = true;
v = masses[trg.s] / (masses[trg.s] + masses[trg2.s]);
vv = 1 - v;
enf = Math.sqrt(enf);
f1 = (siz - enf) / enf;
trg.xp = trg.xp - ((xenf * vv) * f1);
trg.yp = trg.yp - ((yenf * vv) * f1);
trg2.xp = trg2.xp + ((xenf * v) * f1);
trg2.yp = trg2.yp + ((yenf * v) * f1);
xbewenf = (trg2.xbew * vv) - (trg.xbew * v);
ybewenf = (trg2.ybew * vv) - (trg.ybew * v);
bewenf = (xbewenf * xbewenf) + (ybewenf * ybewenf);
v1 = false;
if (trg.s == 1) {
damg[e] = damg[e] + Math.max((bewenf / 2) - 5, 0);
if (bewenf > 10) {
v1 = true;
soundy("damg" + random(2), 1, 20 + bewenf);
}
}
if (trg2.s == 1) {
damg[a] = damg[a] + Math.max((bewenf / 2) - 5, 0);
if ((bewenf > 10) && (!v1)) {
v1 = true;
soundy("damg" + random(2), 1, 20 + bewenf);
}
}
if (v1) {
i = 0;
while (i < 5) {
v3 = (Math.random() * 2) * Math.PI;
v2 = (Math.random() * 4) + 4;
v1 = Math.cos(v3) * v2;
v2 = Math.sin(v3) * v2;
parc((trg.xp + trg2.xp) / 2, (trg.yp + trg2.yp) / 2, random(360), v1, v2, (Math.random() - 0.5) * 10, 6, 0);
i++;
}
}
if (bewenf > 0) {
bewenf = Math.sqrt(bewenf);
}
enf = bewenf / enf;
xenf = xenf * enf;
yenf = yenf * enf;
trg.xbew = trg.xbew - (xenf * vv);
trg.ybew = trg.ybew - (yenf * vv);
trg2.xbew = trg2.xbew + (xenf * v);
trg2.ybew = trg2.ybew + (yenf * v);
xbewenf1 = (trg2.xbew * vv) + (trg.xbew * v);
ybewenf1 = (trg2.ybew * vv) + (trg.ybew * v);
trg.xbew = trg.xbew * 0.9;
trg.ybew = trg.ybew * 0.9;
trg2.xbew = trg2.xbew * 0.9;
trg2.ybew = trg2.ybew * 0.9;
trg.xbew = trg.xbew + (xbewenf1 * 0.1);
trg.ybew = trg.ybew + (ybewenf1 * 0.1);
trg2.xbew = trg2.xbew + (xbewenf1 * 0.1);
trg2.ybew = trg2.ybew + (ybewenf1 * 0.1);
enf = (xenf * xenf) + (yenf * yenf);
enf = Math.sqrt(enf);
xenf = xenf / enf;
yenf = yenf / enf;
roty = ((sizes[trg2.s] + sizes[trg.s]) * Math.PI) / 180;
f8 = (yenf * xbewenf) - (xenf * ybewenf);
f9 = (((-trg2.rbew) - trg.rbew) * roty) - f8;
f10 = (((-trg2.rbew) - trg.rbew) * roty) - (f8 * 2);
f9 = rotc(f9);
f10 = rotc(f10);
trg2.rbew = trg2.rbew + ((f10 / roty) * v);
trg2.xbew = trg2.xbew + ((yenf * f9) * v);
trg2.ybew = trg2.ybew - ((xenf * f9) * v);
trg.rbew = trg.rbew + ((f10 / roty) * vv);
trg.xbew = trg.xbew - ((yenf * f9) * vv);
trg.ybew = trg.ybew + ((xenf * f9) * vv);
if ((trg.s == 9) && (trg2.s == 2)) {
xenf = trg.xp - trg2.xp;
yenf = trg.yp - trg2.yp;
v1 = (Math.atan((-xenf) / yenf) / Math.PI) * 180;
if (yenf > 0) {
v1 = v1 + 180;
}
v1 = v1 + (trg.act * 120);
v1 = v1 - trg.rp;
while (v1 > 180) {
v1 = v1 - 360;
}
while (v1 < -180) {
v1 = v1 + 360;
}
}
}
}
}
}
}
}
a++;
}
e++;
}
tip(0);
e = 0;
while (e < ball.length) {
trg = ball[e];
v1 = 400 - sizes[trg.s];
if (trg.yp > v1) {
trg.yp = v1;
roty = (sizes[trg.s] * Math.PI) / 180;
if (trg.s == 1) {
damg[e] = damg[e] + Math.max((((trg.xbew * trg.xbew) + (trg.ybew * trg.ybew)) / 5) - 10, 0);
}
trg.ybew = trg.ybew * -0.4;
trg.ybew = trg.ybew - (trg.yp - v1);
trg.xbew = trg.xbew * 0.8;
f8 = -trg.xbew;
f9 = trg.rbew * roty;
if (trg.s == 3) {
f9 * -1;
}
f9 = f9 + f8;
f9 = rotc(f9 * 4) / 4;
trg.rbew = trg.rbew - (f9 / roty);
trg.xbew = trg.xbew + f9;
}
trg._x = Math.round(trg.xp * 10) / 10;
trg._y = Math.round(trg.yp * 10) / 10;
trg.d._rotation = Math.round(trg.rp * 10) / 10;
e++;
}
for (e in par) {
trg = par[e];
trg._x = Math.round(trg.xp * 10) / 10;
trg._y = Math.round(trg.yp * 10) / 10;
trg._rotation = Math.round(trg.rp * 10) / 10;
}
_x = (_x * 0.6);
_y = (_y * 0.6);
_x = (_x + (((((1100 - ball[0]._x) - ball[1]._x) - ball[2]._x) - ball[3]._x) / 10));
_y = (_y + (((((1000 - ball[0]._y) - ball[1]._y) - ball[2]._y) - ball[3]._y) / 10));
v = 0.9;
v1 = 400;
v2 = 400;
bg._x = (v1 * Math.round((((-_x) * (1 - v)) / v1) - 1)) - (_x * v);
bg._y = (v2 * Math.round((((-_y) * (1 - v)) / v2) - 0.5)) - (_y * v);
gbg._x = (-_x) + 275;
v = 1;
bg1._x = (-_x) * v;
bg1._y = (-_y) * v;
v = 0;
v1 = 303.863;
bg2._x = (v1 * Math.round(((-_x) / v1) - 1)) + 250;
v1 = 339.0609;
bg3._x = (v1 * Math.round(((-_x) / v1) - 1)) + 250;
v = 0.8;
v1 = 570.3;
bg4._x = ((v1 * Math.round((((-_x) * (1 - v)) / v1) - 1)) - (_x * v)) + 550;
bg4._y = (-_y) * v;
v = -0.3;
v1 = 720.4;
bg5._x = ((v1 * Math.round((((-_x) * (1 - v)) / v1) - 1)) - (_x * v)) + 550;
bg5._y = ((-_y) * v) + 500;
for (e in soundz) {
soundz[e] = soundz[e] * 0.8;
}
tip(1);
if (_root.oneplayer) {
trg = ball[0];
trg2 = ball[1];
trg3 = ball[2];
trg4 = ball[3];
v1 = ((damg[0] + damg[1]) + damg[2]) + damg[3];
v1 = Math.round((v1 / 175) - 0.25) + 1;
ball[1].d.r.gotoAndStop(v1);
if ((v1 >= 5) or Key.isDown(79)) {
gameover = true;
_root.oneplayer = false;
v1 = trg3.xp;
v2 = trg3.yp;
trg3.xp = trg2.xp;
trg3.yp = trg2.yp;
trg2.xp = v1;
trg2.yp = v2;
}
i = 0;
while (i < 4) {
ball[i].xb = ball[i].xbew;
ball[i].yb = ball[i].ybew;
i++;
}
pull(trg3, trg4, 35);
pull(trg, trg4, 50);
pull(trg, trg3, 50);
pull(trg2, trg4, 25);
pull(trg2, trg3, 25);
v1 = 0;
if (Key.isDown(39) or Key.isDown(68)) {
v1--;
}
if ((Key.isDown(37) or Key.isDown(65)) or Key.isDown(81)) {
v1++;
}
v2 = 0;
if ((Key.isDown(38) or Key.isDown(87)) or Key.isDown(89)) {
v2++;
}
if (Key.isDown(40) or Key.isDown(83)) {
v2--;
}
xenf = ((trg.xp + trg.xbew) - trg2.xp) - trg2.xbew;
yenf = ((trg.yp + trg.ybew) - trg2.yp) - trg2.ybew;
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
xenf = xenf / enf;
yenf = yenf / enf;
f1 = xenf;
f2 = yenf;
trg.xbew = trg.xbew + (yenf * v1);
trg.ybew = trg.ybew - (xenf * v1);
v2 = 1.5 + (v2 * 1.5);
trg.xbew = trg.xbew + (xenf * v2);
trg.ybew = trg.ybew + (yenf * v2);
trg2.xbew = trg2.xbew + (xenf * v2);
trg2.ybew = trg2.ybew + (yenf * v2);
enf = enf - 50;
xenf = xenf * (enf * 0.3);
yenf = yenf * (enf * 0.3);
trg.xbew = trg.xbew - xenf;
trg.ybew = trg.ybew - yenf;
trg2.xbew = trg2.xbew + xenf;
trg2.ybew = trg2.ybew + yenf;
xenf = trg.xp - trg2.xp;
yenf = trg.yp - trg2.yp;
v1 = ((Math.atan((-xenf) / yenf) / Math.PI) * 180) + 180;
if (yenf < 0) {
v1 = v1 + 180;
}
trg.ar = trg.rp;
trg.rp = v1;
trg2.rp = v1;
v1 = v1 - trg.ar;
while (v1 > 180) {
v1 = v1 - 360;
}
while (v1 < -180) {
v1 = v1 + 360;
}
trg.rr = trg.rr - v1;
trg.sick = trg.sick + ((Math.abs(v1) * 0.16) - 0.3);
trg.sick = trg.sick * 0.99;
v1 = Math.round(trg.sick * 0.1) - 3;
if (v1 >= 4) {
v1 = 4;
if (Math.random() < 0.25) {
parc(((trg2.xp + (f1 * 20)) - (f2 * trg2.d.h._x)) + ((Math.random() - 0.5) * 10), ((trg2.yp + (f2 * 20)) + (f1 * trg2.d.h._x)) + ((Math.random() - 0.5) * 10), random(360), trg.xbew, trg.ybew, (Math.random() - 0.5) * 4, 1, 0);
}
}
trg2.d.h.gotoAndStop(v1);
trg2.d.h0.gotoAndStop(v1);
trg2.d.h1._rotation = (trg2.d.h2._rotation = (trg2.d.h3._rotation = (trg2.d.l1._rotation = (trg2.d.l2._rotation = (trg2.d.l3._rotation = (trg2.d.l4._rotation = trg.rr))))));
trg2.d.h._rotation = (trg2.d.h0._rotation = trg.rr * 0.5);
trg2.hxbew = trg2.hxbew - (trg2.xbew - trg2.axb);
trg2.hybew = trg2.hybew - (trg2.ybew - trg2.ayb);
trg2.hxbew = trg2.hxbew * 0.8;
trg2.hybew = trg2.hybew * 0.8;
trg2.d.h._x = trg2.d.h._x * 0.8;
trg2.d.h._y = trg2.d.h._y * 0.8;
trg2.d.h._x = trg2.d.h._x + (trg2.hrx * 0.2);
trg2.d.h._y = trg2.d.h._y + (trg2.hry * 0.2);
trg2.d.h0._x = trg2.d.h._x + trg2.hrx2;
trg2.d.h0._y = trg2.d.h._y + trg2.hry2;
v1 = 0.35;
trg2.d.h._x = trg2.d.h._x + ((trg2.hybew * f1) * v1);
trg2.d.h._y = trg2.d.h._y - ((trg2.hybew * f2) * v1);
trg2.d.h._x = trg2.d.h._x - ((trg2.hxbew * f2) * v1);
trg2.d.h._y = trg2.d.h._y - ((trg2.hxbew * f1) * v1);
trg.rr = trg.rr * 0.9;
trg.rbew = trg.rbew * 0.9;
trg2.rbew = trg2.rbew * 0.9;
trg2.axb = trg2.xbew;
trg2.ayb = trg2.ybew;
if (Math.random() < 0.25) {
parc((trg2.xp - (f1 * 15)) + ((Math.random() - 0.5) * 30), (trg2.yp - (f2 * 15)) + ((Math.random() - 0.5) * 30), random(360), trg.xbew - (f1 * 8), trg.ybew - (f2 * 8), Math.random() - 0.5, 3, -100000);
}
} else {
drawer.clear();
if (!gameover) {
trg = ball[0];
trg2 = ball[2];
v1 = trg.xp;
v2 = trg.yp;
v3 = trg2.xp;
v4 = trg2.yp;
v6 = v1 - v3;
v7 = v2 - v4;
v5 = Math.sqrt((v6 * v6) + (v7 * v7));
v8 = 300;
if (v5 > v8) {
v5 = ((v8 - v5) / v5) * 0.1;
v6 = v6 * v5;
v7 = v7 * v5;
trg.xbew = trg.xbew + (v6 * 1.5);
trg.ybew = trg.ybew + (v7 * 1.5);
trg2.xbew = trg2.xbew - (v6 * 1.5);
trg2.ybew = trg2.ybew - (v7 * 1.5);
ball[1].xbew = ball[1].xbew + v6;
ball[1].ybew = ball[1].ybew + v7;
ball[3].xbew = ball[3].xbew - v6;
ball[3].ybew = ball[3].ybew - v7;
v5 = 0;
} else {
v5 = (v8 - v5) * 1.4;
}
drawer.lineStyle(3, 16777215);
drawer.moveTo(v1, v2);
drawer.curveTo((v1 + v3) / 2, ((v2 + v4) / 2) + v5, v3, v4);
}
v1 = Math.round(((damg[0] + damg[1]) / 150) - 0.25) + 1;
ball[1].d.r.gotoAndStop(v1);
v2 = Math.round(((damg[2] + damg[3]) / 150) - 0.25) + 1;
ball[3].d.r.gotoAndStop(v2);
if (((v1 >= 5) or (v2 >= 5)) or Key.isDown(79)) {
gameover = true;
}
v1 = 0;
if (Key.isDown(39)) {
v1--;
}
if (Key.isDown(37)) {
v1++;
}
v2 = 0;
if (Key.isDown(38)) {
v2++;
}
if (Key.isDown(40)) {
v2--;
}
trg = ball[0];
trg2 = ball[1];
rock();
v1 = 0;
if (Key.isDown(68)) {
v1--;
}
if (Key.isDown(65) or Key.isDown(81)) {
v1++;
}
v2 = 0;
if (Key.isDown(87) or Key.isDown(89)) {
v2++;
}
if (Key.isDown(83)) {
v2--;
}
trg = ball[2];
trg2 = ball[3];
rock();
if (!gameover) {
ball[0].d.gotoAndStop(1);
ball[1].d.gotoAndStop(2);
ball[2].d.gotoAndStop(3);
ball[3].d.gotoAndStop(4);
} else if (!asdk) {
asdk = true;
ball[0].d.gotoAndStop(5);
ball[1].d.gotoAndStop(6);
ball[2].d.gotoAndStop(7);
ball[3].d.gotoAndStop(8);
trg = ball[0];
exp();
trg = ball[2];
exp();
gof = 0;
soundy("explosion", 1, 100);
} else {
gof++;
if (gof > 120) {
soundstopi();
_root.money = Math.round(money);
_root.gotoAndStop("go");
}
ball[0].ybew = ball[0].ybew + 0.2;
ball[2].ybew = ball[2].ybew + 0.2;
}
}
if (goal == undefined) {
goalcreate();
}
trg = ball[goal];
xenf = (trg.xp + _x) - 275;
yenf = (trg.yp + _y) - 200;
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
v1 = -Math.min(220, enf);
v1 = v1 - _root.ar.a._y;
_root.ar.a._y = _root.ar.a._y + (v1 * 0.05);
v1 = ((Math.atan((-xenf) / yenf) / Math.PI) * 180) + 180;
if (yenf < 0) {
v1 = v1 + 180;
}
v1 = v1 - _root.ar._rotation;
while (v1 > 180) {
v1 = v1 - 360;
}
while (v1 < -180) {
v1 = v1 + 360;
}
_root.ar._rotation = _root.ar._rotation + (v1 * 0.05);
}
e = 0;
while (e < 13) {
v2 = e + 1;
v2 = Math.pow(10, v2);
v3 = money;
v1 = Math.round((((money % v2) / v2) * 10) - 0.5);
_root.n["n" + e].gotoAndStop(v1 + 1);
if (v1 > 0) {
i = e + 1;
}
e++;
}
if (money < 100) {
i = 2;
}
_root.n["n" + i].gotoAndStop(11);
e = i + 1;
while (e < 13) {
_root.n["n" + e].gotoAndStop(14);
e++;
}
_root.n._x = (i * 18.5) + 30;
}
_root.g.gotoAndPlay(60);
timer = [];
alltimer = [0, 0, 0, 0, 0, 0, 0, 0, 0];
topz = function (cap) {
timer[cap] = getTimer();
};
tip = function (cap) {
alltimer[cap] = alltimer[cap] + ((getTimer() - timer[cap]) / 50);
};
ballz = 0;
ball = [];
sizes = [0, 25, 33, 35, 30, 60, 30, 15, 5, 75];
masses = [0, 10, 10, 4, 10, 10, 5, 5, 4, 20];
hard = [0.01, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.25];
par = [];
pard = [0, 100, 120, 40, 100, 30, 50];
soundz = [];
this.createEmptyMovieClip("sou", 85);
if (_root.oneplayer) {
create(275, 325, 0, 0, 0, 0, 1);
create(275, 375, 0, 0, 0, 0, 1);
create(225, 350, 0, 0, 0, 0, 1);
create(325, 350, 0, 0, 0, 0, 1);
} else {
create(350, 325, 0, 0, 0, 0, 1);
create(350, 375, 0, 0, 0, 0, 1);
create(200, 325, 0, 0, 0, 0, 1);
create(200, 375, 0, 0, 0, 0, 1);
}
ch = 0;
Mouse.removeListener();
mouseListener = new Object();
mouseListener.onMouseDown = function () {
md = true;
};
mouseListener.onMouseUp = function () {
md = false;
};
Mouse.addListener(mouseListener);
ball[0].d.g.ybew = (ball[0].rb = 0);
unpause = true;
ball[0].rr = (ball[2].rr = 0);
ball[0].sick = (ball[2].sick = 0);
ball[0].av = (ball[2].av = 0);
ball[1].hxbew = (ball[1].hybew = (ball[3].hxbew = (ball[3].hybew = 1)));
ball[1].axb = (ball[1].ayb = (ball[3].axb = (ball[3].ayb = 0)));
money = 0;
drawer = createEmptyMovieClip("drawer", 9999);
ast = 0;
if (_root.oneplayer) {
ball[0].d.gotoAndStop(1);
ball[1].d.gotoAndStop(10);
ball[2].d.gotoAndStop(1);
ball[3].d.gotoAndStop(1);
ball[1].hrx = ball[1].d.h._x;
ball[1].hry = ball[1].d.h._y;
ball[1].hrx2 = ball[1].d.h0._x - ball[1].d.h._x;
ball[1].hry2 = ball[1].d.h0._y - ball[1].d.h._x;
ball[1].d.h.stop();
ball[1].d.h0.stop();
} else {
ball[0].d.gotoAndStop(1);
ball[1].d.gotoAndStop(2);
ball[2].d.gotoAndStop(3);
ball[3].d.gotoAndStop(4);
ball[1].hrx = ball[1].d.h._x;
ball[1].hry = ball[1].d.h._y;
ball[3].hrx = ball[3].d.h._x;
ball[3].hry = ball[3].d.h._y;
ball[1].d.h.stop();
ball[3].d.h.stop();
}
bg2.cacheAsBitmap = true;
bg3.cacheAsBitmap = true;
bg4.cacheAsBitmap = true;
bg5.cacheAsBitmap = true;
bg5.swapDepths(213000000);
damg = [0, 0, 0, 0];
troids = 0;
sz = [];
szz = 0;
sufa = 0;
hobobore = 100;
soundy("rumble", 9989001, 200);
Symbol 317 Button
on (release) {
if (((nam + " ") != " ") && (nam != undefined)) {
nextFrame();
} else {
nam = "Nameless_Hobo";
}
}