Frame 1
if (gameStarted) {
gotoAndStop ("gameLoop");
} else {
_root._quality = "MEDIUM";
Stage.scaleMode = "noScale";
}
Frame 2
preloader.gotoAndStop(100 - Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 99));
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndPlay ("sponsor");
}
Frame 3
gotoAndPlay(_currentframe - 1);
Frame 12
function __com_mochibot__(swfid, mc, lv) {
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=5&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "");
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);
}
__com_mochibot__("a09ade1c", this, 10301);
function attract() {
sound_intro = new Sound();
sound_intro.attachSound("intro.mp3");
sound_intro.start(0, 99999);
delete isBice;
lastKey = Key.getCode();
onEnterFrame = function () {
if (Key.getCode() != lastKey) {
removeAttract();
gotoAndPlay ("menu");
}
};
onMouseDown = function () {
mouse = true;
removeAttract();
gotoAndPlay ("menu");
};
onMouseUp = function () {
if (mouse) {
var _local1 = setInterval(function () {
delete mouse;
clearInterval(_ID2);
}, 10);
onMouseUp = function () {
};
}
};
}
function removeAttract() {
delete lastKey;
logo.removeMovieClip();
onMouseDown = function () {
};
onEnterFrame = function () {
};
}
attract();
Frame 14
gotoAndStop(_currentframe - 1);
Frame 25
gotoAndStop(_currentframe - 1);
Frame 42
function steering() {
var _local6 = 0;
var _local9 = 0;
var _local24 = 0;
var _local23 = 0;
var _local10 = 0;
var _local18 = 0;
var _local3 = 0;
var _local2 = 0;
var _local19 = 0;
var _local11 = 0;
var _local20 = 0;
var _local13 = 0;
var _local5 = 0;
var _local16 = 0;
var _local15 = 0;
var _local1 = null;
if (hud.oldTime != 0) {
if (Key.isDown(38)) {
_local20 = 5.5;
} else if (Key.isDown(40)) {
_local20 = -3;
}
}
_local18 = Key.isDown(39) - Key.isDown(37);
if (_local18 != 0) {
_local3 = (((verlet[0].x + verlet[1].x) + verlet[2].x) + verlet[3].x) - (((verlet[0].ox + verlet[1].ox) + verlet[2].ox) + verlet[3].ox);
_local2 = (((verlet[0].y + verlet[1].y) + verlet[2].y) + verlet[3].y) - (((verlet[0].oy + verlet[1].oy) + verlet[2].oy) + verlet[3].oy);
_local18 = _local18 * ((m_sqrt((_local3 * _local3) + (_local2 * _local2)) / 20) * ((_local20 < 0) ? -1 : 1));
_local19 = (((verlet[0].x + verlet[1].x) + verlet[2].x) + verlet[3].x) / 4;
_local11 = (((verlet[0].y + verlet[1].y) + verlet[2].y) + verlet[3].y) / 4;
for (_local6 in verlet) {
_local1 = verlet[_local6];
_local3 = _local1.x - _local19;
_local2 = _local1.y - _local11;
_local13 = m_sqrt((_local3 * _local3) + (_local2 * _local2));
_local10 = ((m_atan(_local2, _local3) / TRAN) + 90) + _local18;
_local1.x = (m_sin(_local10 * TRAN) * _local13) + _local19;
_local1.y = (m_cos(_local10 * TRAN) * (-_local13)) + _local11;
}
}
_local10 = (m_atan(((verlet[0].y + verlet[1].y) / 2) - ((verlet[2].y + verlet[3].y) / 2), ((verlet[0].x + verlet[1].x) / 2) - ((verlet[2].x + verlet[3].x) / 2)) / TRAN) + 90;
_local24 = m_sin(_local10 * TRAN) * _local20;
_local23 = m_cos(_local10 * TRAN) * (-_local20);
verlet[2].x = verlet[2].x + (_local24 * 0.5);
verlet[2].y = verlet[2].y + (_local23 * 0.5);
verlet[3].x = verlet[3].x + (_local24 * 0.5);
verlet[3].y = verlet[3].y + (_local23 * 0.5);
for (_local6 in verlet) {
_local1 = verlet[_local6];
_local16 = _local1.ox;
_local15 = _local1.oy;
_local1.ox = _local1.x;
_local1.oy = _local1.y;
_local1.x = _local1.x + ((_local1.x - _local16) * 0.95);
_local1.y = _local1.y + ((_local1.y - _local15) * 0.95);
}
_local19 = car._x + worldX;
_local11 = car._y + worldY;
for (_local6 in objects) {
o = objects[_local6];
_local3 = _local19 - o.x;
_local2 = _local11 - o.y;
if (((_local3 * _local3) + (_local2 * _local2)) < ((o.r + 5) * (o.r + 5))) {
_local13 = m_sqrt((_local3 * _local3) + (_local2 * _local2));
_local3 = _local3 / _local13;
_local2 = _local2 / _local13;
_local3 = _local3 * ((o.r + 5) - _local13);
_local2 = _local2 * ((o.r + 5) - _local13);
verlet[0].x = verlet[0].x + _local3;
verlet[0].y = verlet[0].y + _local2;
verlet[1].x = verlet[1].x + _local3;
verlet[1].y = verlet[1].y + _local2;
verlet[2].x = verlet[2].x + _local3;
verlet[2].y = verlet[2].y + _local2;
verlet[3].x = verlet[3].x + _local3;
verlet[3].y = verlet[3].y + _local2;
}
}
var _local17 = 0;
do {
_local17++;
var _local8 = 0;
var _local7 = 0;
_local8 = ((verlet[0].x + verlet[1].x) / 2) - ((verlet[2].x + verlet[3].x) / 2);
_local7 = ((verlet[0].y + verlet[1].y) / 2) - ((verlet[2].y + verlet[3].y) / 2);
_local13 = m_sqrt((_local8 * _local8) + (_local7 * _local7));
_local8 = _local8 / _local13;
_local7 = _local7 / _local13;
for (_local6 in verlet) {
_local1 = verlet[_local6];
for (_local9 in objects) {
o = objects[_local9];
_local3 = _local1.x - o.x;
_local2 = _local1.y - o.y;
if (((_local3 * _local3) + (_local2 * _local2)) < ((o.r + 5) * (o.r + 5))) {
_local13 = m_sqrt((_local3 * _local3) + (_local2 * _local2));
_local3 = _local3 / _local13;
_local2 = _local2 / _local13;
_local1.x = _local1.x + (_local3 * ((o.r + 5) - _local13));
_local1.y = _local1.y + (_local2 * ((o.r + 5) - _local13));
}
}
if (_local1.x < 0) {
_local1.x = 0;
}
if (_local1.y < 0) {
_local1.y = 0;
}
if (_local1.x > (worldMaxX + 600)) {
_local1.x = worldMaxX + 600;
}
if (_local1.y > (worldMaxY + 480)) {
_local1.y = worldMaxY + 480;
}
_local3 = _local1.x - _local1.ox;
_local2 = _local1.y - _local1.oy;
_local5 = m_sqrt((_local3 * _local3) + (_local2 * _local2));
if (_local5 == 0) {
_local5 = 1;
}
_local3 = _local3 / _local5;
_local2 = _local2 / _local5;
var _local4 = int(m_abs((_local8 * _local3) + (_local7 * _local2)) * 1000) / 1000;
_local4 = (_local4 + 2.5) / 3.5;
_local1.ox = _local1.ox + ((_local1.x - _local1.ox) * (1 - _local4));
_local1.oy = _local1.oy + ((_local1.y - _local1.oy) * (1 - _local4));
if (!legal(_local1.x, _local1.y)) {
_local3 = 999;
_local2 = 999;
if (((_local1.x % 120) < 60) && (legal(_local1.x - 120, _local1.y))) {
_local3 = (int(_local1.x / 120) * 120) - _local1.x;
} else if (((_local1.x % 120) >= 60) && (legal(_local1.x + 120, _local1.y))) {
_local3 = ((int(_local1.x / 120) * 120) + 120) - _local1.x;
}
if (((_local1.y % 120) < 60) && (legal(_local1.x, _local1.y - 120))) {
_local2 = (int(_local1.y / 120) * 120) - _local1.y;
} else if (((_local1.y % 120) >= 60) && (legal(_local1.x, _local1.y + 120))) {
_local2 = ((int(_local1.y / 120) * 120) + 120) - _local1.y;
}
if (!((_local3 == 999) && (_local2 == 999))) {
if (m_abs(_local3) < m_abs(_local2)) {
_local1.x = _local1.x + _local3;
} else {
_local1.y = _local1.y + _local2;
}
}
}
}
spring(verlet[0], verlet[1], 20);
spring(verlet[2], verlet[3], 20);
spring(verlet[0], verlet[2], 40);
spring(verlet[1], verlet[3], 40);
spring(verlet[0], verlet[3], 44);
spring(verlet[1], verlet[2], 44);
} while (_local17 < 3);
_local11 = int(m_ceil(m_max(verlet[0].y, m_max(verlet[1].y, m_max(verlet[2].y, verlet[3].y)))));
var _local21 = int(m_abs((((verlet[0].y + verlet[1].y) + verlet[2].y) + verlet[3].y) - (((verlet[0].oy + verlet[1].oy) + verlet[2].oy) + verlet[3].oy)));
if (_local21 > 20) {
_local21 = 20;
}
_local11 = _local11 + _local21;
_local19 = int(car._x + worldX);
if (!legal(_local19, _local11)) {
_local11 = int((_local11 - 1) / 120) * 120;
while (!legal(_local19, _local11)) {
_local11 = _local11 - 120;
}
}
var _local22 = 0;
_local13 = 0;
var _local14 = 0;
var _local12 = 0;
_local22 = int(_local11 - (int(_local11 / 120) * 120));
_local13 = ((int((_local11 / 120) + 1) * 250) + 121) + _local22;
_local12 = all.getInstanceAtDepth(_local13);
while (((_local12 != undefined) && (_local12 != car)) && (_local14 < 20)) {
_local13++;
_local14++;
_local12 = all.getInstanceAtDepth(_local13);
}
car.swapDepths(_local13);
car._x = ((((verlet[0].x + verlet[1].x) + verlet[2].x) + verlet[3].x) / 4) - worldX;
car._y = ((((verlet[0].y + verlet[1].y) + verlet[2].y) + verlet[3].y) / 4) - worldY;
car.gotoAndStop(73 - int((72 * wrap((m_atan(((verlet[0].y + verlet[1].y) / 2) - ((verlet[2].y + verlet[3].y) / 2), ((verlet[0].x + verlet[1].x) / 2) - ((verlet[2].x + verlet[3].x) / 2)) / TRAN) + 90)) / 360));
_local3 = 0;
_local2 = 0;
if (car._x > 310) {
_local3 = int(car._x - 310);
} else if (car._x < 290) {
_local3 = int(car._x - 290);
}
if (car._y > 250) {
_local2 = int(car._y - 250);
} else if (car._y < 230) {
_local2 = int(car._y - 230);
}
return({vx:_local3, vy:_local2});
}
function scroll(vx, vy) {
if ((worldX + vx) < 0) {
vx = -worldX;
}
if ((worldY + vy) < 0) {
vy = -worldY;
}
if ((worldX + vx) > worldMaxX) {
vx = worldMaxX - worldX;
}
if ((worldY + vy) > worldMaxY) {
vy = worldMaxY - worldY;
}
worldX = worldX + vx;
worldY = worldY + vy;
var _local3 = 0;
var _local2 = 0;
var _local4 = 0;
var _local6 = 0;
var _local5 = false;
for (var _local9 in tiles) {
var _local1 = tiles[_local9];
_local3 = _local1.x_ - vx;
_local2 = _local1.y_ - vy;
_local5 = false;
if (_local2 < 0) {
_local2 = _local2 + 720;
_local1.y = _local1.y + 6;
_local5 = true;
} else if (_local2 > 720) {
_local2 = _local2 - 720;
_local1.y = _local1.y - 6;
_local5 = true;
}
if (_local3 < 0) {
_local3 = _local3 + 720;
_local1.x = _local1.x + 6;
_local5 = true;
} else if (_local3 > 720) {
_local3 = _local3 - 720;
_local1.x = _local1.x - 6;
_local5 = true;
}
if (_local5) {
if (_local1.y > (worldHeight - 1)) {
_local1.gotoAndStop(1);
} else {
_local1.gotoAndStop(map[_local1.y][_local1.x]);
}
_local1.swapDepths((int((_local2 + worldY) / 120) * 250) - (int((_local3 + worldX) / 120) % 8));
_local6 = getPeopleRate(_local1.x, _local1.y);
if (gameMode == 1) {
if (_local6 > 0) {
_local6 = _local6 + random(2);
}
}
_local4 = 0;
while (_local4 < _local6) {
addPeople(((_local3 - 10) - random(100)) + worldX, ((_local2 - 10) - random(100)) + worldY);
_local4++;
}
if (((_local1.x == activeMission.tx) && (_local1.y == activeMission.ty)) && (activeMission.mode == 0)) {
if (!mapClients[activeMission.client].cr) {
addPeople(activeMission.x, activeMission.y, mapClients[activeMission.client].f, true, activeMission.client, false);
mapClients[activeMission.client].cr = true;
} else {
trace("already created: " + activeMission.client);
}
}
}
_local1._x = (_local1.x_ = _local3);
_local1._y = (_local1.y_ = _local2);
}
}
function moveObjects() {
var _local7 = int(worldX / 600);
var _local6 = int(worldY / 480);
if ((_local7 != screenX) || (_local6 != screenY)) {
screenX = _local7;
screenY = _local6;
_global.objects = [];
_local7 = _local7 * 600;
_local6 = _local6 * 480;
var _local2 = null;
var _local11 = 0;
for (var _local12 in mapObjects) {
_local2 = mapObjects[_local12];
if (!(((((_local2.x + 50) < _local7) || (_local2.y < _local6)) || ((_local2.x - 50) > (_local7 + 1200))) || ((_local2.y - 100) > (_local6 + 960)))) {
_global.objects[_local11] = _local2;
_local11++;
}
}
}
var _local2 = null;
var _local9 = worldX;
var _local8 = worldY;
var _local3 = 0;
var _local10 = 0;
var _local4;
for (var _local12 in _global.objects) {
_local2 = _global.objects[_local12];
if (((((_local2.x + 50) < _local9) || (_local2.y < _local8)) || ((_local2.x - 50) > (_local9 + 600))) || ((_local2.y - 100) > (_local8 + 480))) {
if (_local2.m != null) {
_local2.m.removeMovieClip();
_local2.m = null;
}
} else {
_local10 = int(_local2.y - (int(_local2.y / 120) * 120));
_local3 = ((int((_local2.y / 120) + 1) * 250) + 121) + _local10;
if (_local2.under) {
_local3 = _local3 - 120;
}
_local4 = all.getInstanceAtDepth(_local3);
var _local5 = 0;
while (((_local4 != undefined) && (_local4 != _local2.m)) && (_local5 < 20)) {
_local3++;
_local5++;
_local4 = all.getInstanceAtDepth(_local3);
}
if (_local5 == 20) {
continue;
}
if (_local2.m == null) {
_local2.m = all.attachMovie("object", "object" + _local2.i, _local3);
_local2.m.gotoAndStop(_local2.a);
}
_local2.m._x = _local2.x - worldX;
_local2.m._y = _local2.y - worldY;
_local2.m.swapDepths(_local3);
}
}
}
function addPeople(x, y, gr, isClient, clientId, overRideWalk) {
if (!legal(x, y)) {
return(false);
}
if (isNaN(gr)) {
gr = random(4);
} else if (gr == 1) {
gr = 0;
} else if (gr == 2) {
gr = 1;
} else if (gr == 3) {
gr = 2;
} else if (gr == 4) {
gr = 3;
} else {
gr = 0;
}
var _local2 = ((int((y / 120) + 1) * 250) + 121) + int(y - (int(y / 120) * 120));
var _local3 = 0;
while ((all.getInstanceAtDepth(_local2) != undefined) && (_local3 < 20)) {
_local2++;
_local3++;
}
if ((_local3 == 20) && (!isClient)) {
return(false);
}
q = (people[people.length] = all.attachMovie("people" + gr, "peo" + _global.peopleId, _local2));
_global.peopleId++;
q._x = x - worldX;
q._y = y - worldY;
q.x = x;
q.y = y;
q.dir = random(4);
if (isClient) {
q.dir = random(3) + 1;
q.gotoAndStop(q.dir + 6);
q.client = clientId;
q.doWalk = ((overRideWalk === true) ? true : false);
activeMission.peopleLink = q;
} else {
q.gotoAndStop(q.dir + 1);
q.client = (q.doWalk = false);
}
}
function movePeople() {
var _local1 = null;
var _local3 = null;
var _local2 = 0;
var _local4 = 0;
var _local6 = 0;
var _local5 = 0;
for (var _local7 in people) {
_local1 = people[_local7];
if ((!_local1.dead) && ((_local1.client === false) || (_local1.doWalk))) {
_local6 = _local1.x % 10;
_local5 = _local1.y % 10;
if (_local1.dir == 0) {
if ((!legal(_local1.x, _local1.y - 12)) || (car.hitTest(_local1.x - worldX, (_local1.y - 12) - worldY))) {
_local1.dir = random(4);
_local1.gotoAndStop(_local1.dir + 1);
} else {
_local1.y = _local1.y - 2;
if ((random(40) == 0) && (_local5 > 0)) {
_local1.dir = random(4);
_local1.gotoAndStop(_local1.dir + 1);
}
}
} else if (_local1.dir == 2) {
if ((!legal(_local1.x, _local1.y + 12)) || (car.hitTest(_local1.x - worldX, (_local1.y + 12) - worldY))) {
_local1.dir = random(4);
_local1.gotoAndStop(_local1.dir + 1);
} else {
_local1.y = _local1.y + 2;
if ((random(40) == 0) && (_local5 < 9)) {
_local1.dir = random(4);
_local1.gotoAndStop(_local1.dir + 1);
}
}
} else if (_local1.dir == 1) {
if ((!legal(_local1.x + 12, _local1.y)) || (car.hitTest((_local1.x + 12) - worldX, _local1.y - worldY))) {
_local1.dir = random(4);
_local1.gotoAndStop(_local1.dir + 1);
} else {
_local1.x = _local1.x + 2;
if ((random(40) == 0) && (_local6 < 9)) {
_local1.dir = random(4);
_local1.gotoAndStop(_local1.dir + 1);
}
}
} else if (_local1.dir == 3) {
if ((!legal(_local1.x - 12, _local1.y)) || (car.hitTest((_local1.x - 12) - worldX, _local1.y - worldY))) {
_local1.dir = random(4);
_local1.gotoAndStop(_local1.dir + 1);
} else {
_local1.x = _local1.x - 2;
if ((random(40) == 0) && (_local6 > 0)) {
_local1.dir = random(4);
_local1.gotoAndStop(_local1.dir + 1);
}
}
}
}
if ((((((_local1.x - worldX) < -120) || ((_local1.x - worldX) > 720)) || ((_local1.y - worldY) < -120)) || ((_local1.y - worldY) > 720)) || (_local1.killOff)) {
if (_local1.client != false) {
if (mapClients[_local1.client].cr) {
mapClients[_local1.client].cr = false;
}
}
_local1.removeMovieClip();
people.splice(_local7, 1);
continue;
}
_local2 = ((int((_local1.y / 120) + 1) * 250) + 121) + int(_local1.y - (int(_local1.y / 120) * 120));
if (_local1.under) {
_local2 = _local2 - 120;
}
_local3 = all.getInstanceAtDepth(_local2);
_local4 = 0;
while (((_local3 != undefined) && (_local3 != _local1)) && (_local4 < 20)) {
_local2++;
_local4++;
_local3 = all.getInstanceAtDepth(_local2);
}
if (_local4 == 20) {
continue;
}
if ((!_local1.dead) && (car.hitTest(_local1.x - worldX, _local1.y - worldY))) {
if (sound_main_playing) {
sound_squish.start();
}
if (_local1.client != false) {
hud.score = hud.score - 150;
printScore(_local1.x, _local1.y, -150);
if (isNaN(mapClients[_local1.client].id)) {
do {
var j = random(mapClients.length);
} while ((mapClients[j].x == _local1.x) && (mapClients[j].y == _local1.y));
mapClients[_local1.client].x = mapClients[j].x;
mapClients[_local1.client].y = mapClients[j].y;
} else {
mapClients[_local1.client].d = true;
}
numberOfClientsKilled++;
if ((numberOfClientsKilled == 1) && (!hud.mission._visible)) {
if ((activeMission.mode == 0) && (activeMission.client == _local1.client)) {
message("You idiot! You killed a customer! Now you'll have to get to the next one even quicker!", 0, 150);
}
}
if ((activeMission.mode == 0) && (activeMission.client == _local1.client)) {
findClient(true);
}
} else {
if (gameMode == 0) {
hud.score = hud.score - 50;
printScore(_local1.x, _local1.y, -50);
} else {
hud.score = hud.score + 100;
printScore(_local1.x, _local1.y, 100);
}
numberOfPeopleKilled++;
}
_local1.dead = true;
_local1.gotoAndStop(5);
_local1.y = _local1.y + 15;
_local1.under = true;
_local1.b._rotation = (m_atan(car.vy, car.vx) / TRAN) + 90;
if ((_local1.y % 120) < 8) {
_local1.y = (int(_local1.y / 120) * 120) - 10;
}
if (!legal(_local1.x, _local1.y)) {
_local1.removeMovieClip();
people.splice(_local7, 1);
continue;
}
}
_local1._x = _local1.x - worldX;
_local1._y = _local1.y - worldY;
_local1.swapDepths(_local2);
}
}
function hudStuff() {
if (gameMode == 0) {
missionManager();
}
if (gameMode == 0) {
moveArrow();
}
if (hud.myTimer > 0) {
hud.myTimer--;
if (hud.myTimer == 0) {
hud.mission.gotoAndPlay("remove");
}
}
if (hud.score > hud.oldScore) {
if ((hud.score - hud.oldScore) > 2) {
hud.oldScore = hud.oldScore + 2;
} else {
hud.oldScore = hud.score;
}
if (gameMode == 0) {
if ((hud.oldScore >= 2000) && (worldUnlocked == 0)) {
message("Hey kid, you have done well. Hmm.. maybe I could let you work in the finer parts of town. Just don't let me down.", 0, 210);
worldUnlocked = 1;
} else if ((hud.oldScore >= 10000) && (worldUnlocked == 1)) {
message("Well done! I'm proud of you. I'll see what I can do to get you even better customers.", 0, 210);
worldUnlocked = 2;
}
}
var t = zeroFill(hud.oldScore, 10);
var i = 0;
while (i < 10) {
var m = eval ("hud.s" + i);
m.gotoAndStop(int(t.substr(i, 1)) + 1);
i++;
}
} else if (hud.score < hud.oldScore) {
if (hud.score < 0) {
hud.score = 0;
}
hud.oldScore = hud.score;
var t = zeroFill(hud.score, 10);
var i = 0;
while (i < 10) {
var m = eval ("hud.s" + i);
m.gotoAndStop(int(t.substr(i, 1)) + 1);
i++;
}
}
var timeLeft = (activeMission.time - int((getTimer() - activeMission.timeStamp) / 1000));
var timeLeft2 = timeLeft;
if (timeLeft != hud.oldTime) {
if (timeLeft < 0) {
timeLeft = 0;
} else if (timeLeft > 5999) {
timeLeft = 5999;
}
hud.oldTime = timeLeft;
var mins = zeroFill(int(timeLeft / 60), 2);
var secs = zeroFill(timeLeft - (int(timeLeft / 60) * 60), 2);
var z = 0;
if (timeLeft < 10) {
z = 11;
if (timeLeft2 >= 0) {
if (sound_main_playing) {
sound_tick.start();
}
}
}
hud.timeMc.t0.gotoAndStop((int(mins.substr(0, 1)) + 1) + z);
hud.timeMc.t1.gotoAndStop((int(mins.substr(1, 1)) + 1) + z);
hud.timeMc.t2.gotoAndStop((int(secs.substr(0, 1)) + 1) + z);
hud.timeMc.t3.gotoAndStop((int(secs.substr(1, 1)) + 1) + z);
hud.timeMc.t.gotoAndStop(11 + z);
}
if ((!gameOver) && (timeLeft2 < 0)) {
gameOver = true;
var _ID = setInterval(function () {
if (gameMode == 0) {
message("Too slow, too slow. Consider yourself FIRED!", 0, 120);
}
clearInterval(_ID);
var _ID2 = setInterval(function () {
rensa();
clearInterval(_ID2);
}, ((gameMode == 0) ? 6500 : 1000));
}, 3000);
}
}
function wrap(n) {
while (n < 360) {
n = n + 360;
}
while (n > 360) {
n = n - 360;
}
return(n);
}
function moveArrow() {
var _local2 = (worldX + 300) - hud.arrow.x;
var _local1 = (worldY + 240) - hud.arrow.y;
hud.arrow._rotation = (m_atan(_local1, _local2) / TRAN) - 90;
if (((_local2 * _local2) + (_local1 * _local1)) < 90000) {
hud.arrow.gotoAndStop(2);
hud.arrow._x = hud.arrow.x - worldX;
hud.arrow._y = hud.arrow.y - worldY;
} else {
hud.arrow.gotoAndStop(1);
hud.arrow._x = 300;
hud.arrow._y = 240;
}
}
function zeroFill(n, l) {
n = n.toString();
while (n.length < l) {
n = "0" + n;
}
return(n);
}
function getPeopleRate(x, y) {
var _local1 = map[y][x];
switch (_local1) {
case 1 :
case 2 :
return(random(10) - 8);
case 3 :
case 4 :
case 5 :
case 6 :
case 7 :
case 8 :
case 9 :
return(random(4) - 2);
case 16 :
case 17 :
case 18 :
case 19 :
case 20 :
case 21 :
case 22 :
case 23 :
case 24 :
case 25 :
case 26 :
case 27 :
case 28 :
case 29 :
return(random(5) - 3);
}
return(0);
}
function legal(x, y) {
if (x < 0) {
return(false);
}
if (y < 0) {
return(false);
}
if (x > (worldMaxX + 600)) {
return(false);
}
if (y > (worldMaxY + 480)) {
return(false);
}
x = int(x / 120);
y = int(y / 120);
return(col[y][x] == 0);
}
function legalTile(x, y) {
if (x < 0) {
return(false);
}
if (y < 0) {
return(false);
}
if (x >= worldWidth) {
return(false);
}
if (y >= worldHeight) {
return(false);
}
return(col[y][x] == 0);
}
function spring(p1, p2, rest) {
var _local2 = p1.x - p2.x;
var _local1 = p1.y - p2.y;
var _local6 = m_sqrt((_local2 * _local2) + (_local1 * _local1));
var _local3 = ((_local6 - rest) / _local6) * 0.5;
_local2 = _local2 * _local3;
_local1 = _local1 * _local3;
p1.x = p1.x - _local2;
p1.y = p1.y - _local1;
p2.x = p2.x + _local2;
p2.y = p2.y + _local1;
}
function message(mess, frame, time) {
hud.mission._visible = true;
hud.mission.gotoAndPlay(1);
hud.mission.img.gotoAndStop(frame + 1);
hud.mission.frame = frame + 1;
hud.myTimer = time;
hud.mission.txt = mess;
}
function printScore(x, y, n) {
var mc = null;
var f = null;
var m = 0;
var d = 0;
var i = 0;
var k = "";
d = scoreMc.getNextHighestDepth();
scoreMc.createEmptyMovieClip("mc" + d, d);
mc = eval ("scoreMc.mc" + d);
m = int(n).toString();
(i = m.length - 1);
(r = 0);
while (i >= 0) {
f = mc.attachMovie("fontSmall", "f" + i, i, {_x:-10 * r});
k = m.substr(i, 1);
if (k == "-") {
f.gotoAndStop(23);
} else if (n < 0) {
f.gotoAndStop(int(k) + 12);
} else {
f.gotoAndStop(int(k) + 1);
}
i--;
r++;
}
(mc.i = 0);
(mc.x = x + (mc._width * 0.5));
(mc.y = y);
mc.onEnterFrame = function () {
mc.y--;
mc._x = mc.x - worldX;
mc._y = mc.y - worldY;
mc.i++;
if (mc.i > 31) {
this.removeMovieClip();
}
};
}
function rensa() {
myScore = hud.oldScore;
all.removeMovieClip();
hud.removeMovieClip();
scoreMc.removeMovieClip();
onEnterFrame = function () {
};
sound_main.stop("deathtrip.mp3");
gotoAndPlay ("gameOver");
}
function findClient(runOverClient) {
var _local6 = worldX + car._x;
var _local5 = worldY + car._y;
var _local4 = 0;
var _local3 = 0;
var _local2 = 0;
var _local1 = 0;
do {
_local1 = random(mapClients.length);
_local4 = mapClients[_local1].x - _local6;
_local3 = mapClients[_local1].y - _local5;
_local2 = (_local4 * _local4) + (_local3 * _local3);
} while ((((((_local2 < 160000) || (_local2 > 36000000)) || (mapClients[_local1].r > worldUnlocked)) || ((mapClients[_local1].r < worldUnlocked) && (random(4) != 0))) || (mapClients[_local1].d)) || (isNaN(mapClients[_local1].id) && (random(4) == 0)));
activeMission.client = _local1;
hud.arrow.x = (activeMission.x = mapClients[_local1].x);
hud.arrow.y = (activeMission.y = mapClients[_local1].y);
activeMission.tx = int(activeMission.x / 120);
activeMission.ty = int(activeMission.y / 120);
if (!runOverClient) {
_local2 = m_sqrt((_local4 * _local4) + (_local3 * _local3));
activeMission.time = int(_local2 * 0.03);
if (activeMission.time < 15) {
activeMission.time = 15;
}
activeMission.timeStamp = getTimer();
}
}
function findMission() {
var _local7 = mapClients[activeMission.client].x;
var _local6 = mapClients[activeMission.client].y;
if (!isNaN(mapClients[activeMission.client].id)) {
var _local5 = mapQuests[mapClients[activeMission.client].id][mapClients[activeMission.client].s];
hud.arrow.x = (activeMission.x = _local5.x);
hud.arrow.y = (activeMission.y = _local5.y);
activeMission.tx = int(activeMission.x / 120);
activeMission.ty = int(activeMission.y / 120);
var _local4 = _local5.x - _local7;
var _local3 = _local5.y - _local6;
activeMission.peopleLink.killOff = true;
var _local2 = m_sqrt((_local4 * _local4) + (_local3 * _local3));
if (isNaN(_local5.g)) {
activeMission.score = int(_local2 * 0.1);
} else {
activeMission.score = _local5.g;
}
if (isNaN(_local5.t)) {
activeMission.time = int(_local2 * 0.03) - int(hud.oldScore * 0.004);
} else {
activeMission.time = _local5.t;
}
if (!isNaN(_local5.gp)) {
activeMission.score = activeMission.score + _local5.gp;
}
if (!isNaN(_local5.tp)) {
activeMission.time = activeMission.time + _local5.tp;
}
if (!isNaN(_local5.f)) {
var _local11 = _local5.f - 1;
} else {
var _local11 = mapClients[activeMission.client].f;
}
activeMission.score = activeMission.score + (mapClients[activeMission.client].r * 150);
activeMission.timeStamp = getTimer();
message(_local5.a, _local11, 110);
} else {
var _local4 = 0;
var _local3 = 0;
var _local2 = 0;
var _local1 = 0;
do {
_local1 = random(mapMissions.length);
_local4 = mapMissions[_local1].x - _local7;
_local3 = mapMissions[_local1].y - _local6;
_local2 = (_local4 * _local4) + (_local3 * _local3);
} while ((((_local2 < 1000000) || (_local2 > 36000000)) || (mapMissions[_local1].r > worldUnlocked)) || ((mapMissions[_local1].r < worldUnlocked) && (random(4) != 0)));
activeMission.mission = _local1;
hud.arrow.x = (activeMission.x = mapMissions[_local1].x);
hud.arrow.y = (activeMission.y = mapMissions[_local1].y);
activeMission.tx = int((activeMission.x - 1) / 120);
activeMission.ty = int((activeMission.y - 1) / 120);
activeMission.peopleLink.killOff = true;
_local2 = m_sqrt((_local4 * _local4) + (_local3 * _local3));
activeMission.score = int(_local2 * 0.1);
activeMission.time = int(_local2 * 0.03) - int(hud.oldScore * 0.004);
activeMission.timeStamp = getTimer();
activeMission.score = activeMission.score + (mapMissions[_local1].r * 150);
var _local9 = mapClients[activeMission.client];
var _local10 = mapMissions[_local1];
var _local8 = random(talk.length);
_local8 = ((talk[_local8][0] + " ") + _local10.a) + talk[_local8][1];
message(_local8, _local9.f, 90);
}
if (activeMission.time < 15) {
activeMission.time = 15;
}
}
function missionManager() {
var _local1 = activeMission;
var _local5 = (worldX + car._x) - _local1.x;
var _local4 = (worldY + car._y) - _local1.y;
if (((_local5 * _local5) + (_local4 * _local4)) < 3600) {
_local5 = (((verlet[0].x + verlet[1].x) + verlet[2].x) + verlet[3].x) - (((verlet[0].ox + verlet[1].ox) + verlet[2].ox) + verlet[3].ox);
_local4 = (((verlet[0].y + verlet[1].y) + verlet[2].y) + verlet[3].y) - (((verlet[0].oy + verlet[1].oy) + verlet[2].oy) + verlet[3].oy);
if (((_local5 * _local5) + (_local4 * _local4)) < 49) {
if (_local1.mode == 0) {
_local1.mode = 1;
findMission();
if (sound_main_playing) {
sound_door.start();
}
} else {
numberOfClients++;
if (sound_main_playing) {
sound_cash.start();
}
if (numberOfClients == 1) {
message("Well done. Now get to your next customer. Collect more than 2000 and just maybe I'll promote you.", 0, 180);
}
if (isNaN(mapClients[_local1.client].id)) {
_local1.score = _local1.score + (Math.round(int(2 * (activeMission.time - int((getTimer() - activeMission.timeStamp) / 1000))) / 25) * 25);
}
hud.score = hud.score + _local1.score;
var _local7 = _local1.score;
_local1.score = 0;
if (!isNaN(mapClients[_local1.client].id)) {
mapClients[_local1.client].s++;
var _local6 = mapQuests[mapClients[_local1.client].id].length;
if (mapClients[_local1.client].s >= _local6) {
mapClients[_local1.client].d = true;
}
}
mapClients[_local1.client].x = _local1.x;
mapClients[_local1.client].y = _local1.y;
var _local3 = _local1.x;
var _local2 = _local1.y;
do {
_local3 = (_local1.x + random(60)) - 30;
_local2 = (_local1.y + random(60)) - 30;
} while (car.hitTest(_local3 - worldX, _local2 - worldY) || (!legal(_local3, _local2)));
addPeople(_local3, _local2, mapClients[_local1.client].f, true, _local1.client, ((random(3) == 0) ? false : true));
printScore(_local3, _local2, _local7);
_local1.mode = 0;
findClient();
}
}
}
}
function init() {
mapProperties = eval ("mapProperties" + gameMode);
map = eval ("map" + gameMode);
mapObjects = eval ("mapObjects" + gameMode);
var vx = mapProperties.startX;
var vy = mapProperties.startY;
worldX = vx * 120;
worldY = vy * 120;
worldWidth = map[0].length;
worldHeight = map.length;
worldMaxX = (worldWidth * 120) - 600;
worldMaxY = (worldHeight * 120) - 480;
col = [];
var y = 0;
while (y < worldHeight) {
col[y] = [];
var x = 0;
while (x < worldWidth) {
var f = map[y][x];
if (f < 30) {
col[y][x] = 0;
} else if ((f >= 62) && (f <= 74)) {
col[y][x] = 0;
} else {
col[y][x] = 1;
}
x++;
}
y++;
}
createEmptyMovieClip("all", 0);
_global.people = [];
_global.peopleId = 0;
_global.tiles = [];
var y = 0;
var d = 0;
while (y < 6) {
var x = 0;
while (x < 6) {
var t = all.attachMovie("tile", "t" + d, (int((((y + 1) * 120) + worldY) / 120) * 250) - (int((((x + 1) * 120) + worldX) / 120) % 8));
t._x = (t.x_ = (x + 1) * 120);
t._y = (t.y_ = (y + 1) * 120);
t.x = vx + x;
t.y = vy + y;
t.gotoAndStop(map[t.y][t.x]);
tiles[tiles.length] = t;
x++;
d++;
}
y++;
}
_global.objects = [];
screenX = (screenY = -9);
for (var i in mapObjects) {
mapObjects[i].i = i;
mapObjects[i].m = null;
switch (mapObjects[i].a) {
case "tree" :
case "tree2" :
case "tree3" :
case "tree4" :
mapObjects[i].r = 18;
mapObjects[i].under = false;
break;
case "lamp" :
case "pot" :
case "garbage" :
mapObjects[i].r = 15;
mapObjects[i].under = false;
}
}
for (var i in mapClients) {
var c = mapClients[i];
c.s = 0;
c.d = false;
}
TRAN = (Math.PI/180);
m_cos = Math.cos;
m_sin = Math.sin;
m_atan = Math.atan2;
m_abs = Math.abs;
m_sqrt = Math.sqrt;
m_ceil = Math.ceil;
m_max = Math.max;
car = all.attachMovie("car", "car", -999);
car._x = 300;
car._y = 250;
if (gameMode == 0) {
car._rotation = 90;
}
verlet = [];
var i = 0;
while (i < 4) {
var v = ((verlet[i] = {}));
var o = {};
o.x = eval (("car.p" + i) + "._x");
o.y = eval (("car.p" + i) + "._y");
car.localToGlobal(o);
v.x = (v.ox = o.x + worldX);
v.y = (v.oy = o.y + worldY);
i++;
}
car._rotation = 0;
createEmptyMovieClip("scoreMc", 1);
attachMovie("hud", "hud", 2);
hud.score = 0;
hud.myTimer = 0;
hud.oldTime = (hud.oldScore = -1);
hud.mission._visible = (hud.arrow._visible = (hud.timeMc._visible = false));
activeMission = {};
activeMission.mode = 0;
activeMission.peopleLink = null;
var _ID = setInterval(function () {
hud.timeMc._visible = true;
if (gameMode == 0) {
hud.arrow._visible = true;
message("I found you a customer. Now get there FAST or I'll have you fired!", 0, 120);
findClient();
} else if (gameMode == 1) {
message("Run over as many people you can within three minutes!", 0, 120);
activeMission.time = 180;
activeMission.timeStamp = getTimer();
}
clearInterval(_ID);
}, 6000);
numberOfClients = 0;
numberOfClientsKilled = 0;
numberOfPeopleKilled = 0;
worldUnlocked = 0;
gameOver = false;
sound_main = new Sound();
sound_main.attachSound("deathtrip.mp3");
sound_main.start(0, 99999);
sound_main_playing = true;
sound_cash = new Sound();
sound_cash.attachSound("cash.mp3");
sound_door = new Sound();
sound_door.attachSound("carDoor.mp3");
sound_tick = new Sound();
sound_tick.attachSound("tick.mp3");
sound_squish = new Sound();
sound_squish.attachSound("squish.mp3");
}
function main() {
var _local3 = steering();
var _local2 = _local3.vx;
var _local1 = _local3.vy;
if ((_local2 != 0) || (_local1 != 0)) {
scroll(_local2, _local1);
}
moveObjects();
movePeople();
hudStuff();
}
mapProperties0 = {startX:0, startY:7};
map0 = [[61, 61, 61, 61, 61, 80, 2, 57, 2, 2, 1, 1, 2, 1, 56, 57, 56, 57, 26, 17, 17, 17, 17, 17, 29, 1, 1, 1, 1, 2, 82, 61, 61, 84, 81, 81, 81, 81, 81, 81, 81, 81, 85, 61, 84, 81, 81, 81, 81, 81, 81, 85, 61, 61, 61, 84, 81, 81, 85, 61], [61, 61, 61, 84, 81, 90, 2, 17, 29, 2, 1, 58, 1, 1, 19, 19, 19, 19, 19, 30, 30, 30, 1, 1, 16, 58, 59, 1, 1, 2, 82, 61, 61, 80, 1, 1, 2, 2, 1, 1, 2, 1, 82, 61, 80, 1, 1, 1, 1, 1, 2, 87, 85, 61, 84, 90, 2, 1, 87, 85], [61, 61, 61, 80, 2, 2, 2, 2, 16, 1, 1, 7, 5, 6, 14, 14, 14, 14, 11, 6, 5, 6, 10, 1, 23, 17, 17, 29, 1, 2, 82, 61, 61, 80, 1, 26, 17, 17, 17, 17, 29, 1, 87, 81, 90, 1, 56, 56, 57, 56, 2, 55, 87, 85, 80, 1, 2, 30, 2, 82], [61, 61, 61, 80, 58, 16, 56, 2, 16, 59, 1, 3, 52, 42, 42, 42, 41, 38, 4, 1, 1, 1, 12, 20, 25, 56, 57, 16, 1, 2, 82, 61, 61, 80, 1, 16, 44, 48, 45, 46, 23, 17, 22, 17, 17, 17, 17, 22, 24, 24, 17, 29, 2, 87, 90, 2, 17, 28, 2, 82], [61, 61, 61, 80, 2, 27, 17, 17, 25, 1, 1, 3, 1, 30, 33, 34, 30, 55, 12, 20, 17, 18, 13, 1, 16, 16, 16, 16, 1, 2, 82, 61, 61, 80, 1, 23, 17, 17, 17, 17, 25, 1, 16, 46, 46, 46, 46, 16, 59, 1, 59, 16, 2, 2, 2, 2, 2, 88, 79, 86], [61, 61, 61, 80, 2, 59, 2, 1, 16, 1, 1, 4, 39, 19, 8, 10, 19, 7, 9, 1, 1, 1, 3, 1, 27, 24, 24, 28, 1, 2, 87, 81, 81, 90, 2, 27, 29, 44, 46, 47, 16, 1, 16, 64, 61, 61, 66, 16, 1, 1, 2, 16, 56, 2, 58, 56, 2, 82, 61, 61], [61, 61, 61, 83, 89, 7, 6, 6, 6, 6, 15, 14, 5, 14, 6, 14, 14, 11, 6, 5, 6, 15, 14, 6, 15, 6, 6, 6, 6, 6, 6, 6, 6, 6, 20, 22, 24, 17, 17, 17, 28, 1, 16, 64, 61, 61, 66, 16, 58, 1, 26, 24, 17, 17, 7, 10, 2, 82, 61, 61], [61, 84, 81, 85, 80, 3, 56, 56, 57, 56, 3, 42, 35, 36, 43, 1, 1, 3, 30, 55, 30, 4, 33, 34, 3, 88, 79, 79, 79, 79, 79, 89, 2, 2, 1, 16, 2, 2, 2, 2, 1, 1, 16, 64, 61, 61, 66, 23, 24, 17, 28, 55, 2, 2, 8, 13, 2, 87, 85, 61], [81, 90, 37, 87, 90, 3, 2, 2, 2, 2, 3, 41, 7, 15, 6, 6, 6, 13, 42, 1, 42, 12, 5, 5, 9, 82, 61, 61, 61, 61, 61, 83, 89, 1, 1, 16, 47, 50, 51, 47, 7, 10, 16, 47, 44, 44, 47, 16, 58, 1, 88, 89, 57, 2, 2, 3, 57, 2, 87, 81], [6, 6, 6, 6, 6, 11, 20, 17, 17, 18, 13, 42, 8, 9, 38, 37, 37, 3, 42, 1, 42, 3, 2, 88, 79, 86, 61, 61, 61, 61, 61, 61, 80, 7, 20, 24, 17, 17, 17, 18, 14, 9, 27, 17, 17, 17, 17, 24, 25, 1, 82, 83, 89, 2, 59, 8, 10, 2, 2, 2], [79, 79, 79, 79, 89, 3, 2, 2, 2, 2, 3, 30, 42, 41, 40, 41, 42, 4, 41, 40, 41, 3, 1, 82, 61, 61, 61, 61, 61, 61, 61, 61, 80, 3, 63, 63, 63, 63, 63, 63, 63, 68, 79, 79, 79, 89, 1, 1, 16, 55, 87, 85, 83, 79, 89, 2, 3, 53, 54, 2], [61, 61, 61, 61, 80, 3, 55, 55, 54, 57, 12, 6, 6, 6, 6, 6, 6, 14, 15, 6, 6, 9, 88, 86, 61, 61, 61, 61, 61, 61, 61, 61, 80, 3, 67, 67, 67, 67, 67, 67, 67, 72, 61, 61, 61, 80, 26, 17, 25, 1, 2, 87, 85, 84, 90, 1, 12, 6, 6, 6], [61, 61, 61, 61, 80, 8, 6, 6, 6, 6, 14, 6, 6, 6, 6, 6, 6, 6, 13, 88, 79, 79, 86, 61, 61, 61, 61, 61, 61, 61, 61, 61, 83, 3, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 80, 16, 59, 16, 57, 2, 2, 87, 90, 2, 1, 3, 2, 2, 2], [61, 61, 61, 61, 83, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 79, 89, 3, 82, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 3, 61, 61, 61, 61, 61, 61, 61, 61, 60, 61, 61, 80, 23, 28, 58, 16, 2, 2, 56, 2, 2, 7, 9, 56, 2, 2], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 80, 3, 82, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 3, 61, 61, 61, 61, 61, 74, 37, 73, 61, 61, 84, 90, 16, 1, 1, 16, 2, 2, 7, 6, 6, 9, 2, 88, 79, 79], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 84, 81, 81, 81, 90, 3, 87, 81, 81, 81, 85, 61, 61, 61, 61, 61, 61, 61, 61, 61, 3, 61, 61, 7, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 9, 2, 59, 55, 2, 82, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 84, 81, 81, 81, 90, 7, 6, 6, 6, 11, 6, 6, 6, 10, 82, 61, 61, 61, 61, 61, 61, 61, 61, 84, 3, 85, 84, 3, 85, 61, 71, 67, 72, 61, 61, 83, 89, 16, 1, 1, 16, 2, 56, 2, 88, 79, 79, 79, 86, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 80, 7, 6, 6, 6, 13, 46, 44, 45, 3, 56, 56, 57, 3, 87, 81, 81, 81, 81, 81, 81, 81, 81, 90, 3, 87, 90, 3, 82, 61, 61, 61, 61, 61, 61, 61, 80, 16, 48, 48, 16, 59, 88, 79, 86, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 80, 3, 50, 51, 2, 3, 44, 17, 45, 3, 1, 1, 1, 3, 2, 1, 1, 1, 1, 1, 7, 6, 6, 6, 11, 6, 6, 13, 59, 73, 61, 61, 61, 61, 61, 61, 80, 27, 17, 17, 28, 88, 86, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 80, 8, 6, 6, 6, 13, 44, 46, 44, 3, 47, 47, 1, 21, 2, 56, 57, 56, 1, 1, 3, 46, 46, 46, 3, 48, 48, 3, 64, 68, 61, 61, 61, 61, 61, 61, 83, 63, 63, 63, 63, 86, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 83, 79, 79, 79, 89, 8, 15, 6, 6, 11, 6, 6, 20, 24, 17, 17, 17, 17, 17, 18, 3, 31, 32, 42, 4, 48, 47, 4, 64, 68, 61, 61, 61, 61, 61, 61, 61, 71, 67, 67, 72, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 60, 83, 89, 3, 38, 38, 3, 38, 38, 39, 39, 39, 39, 1, 1, 1, 7, 14, 6, 6, 6, 11, 20, 18, 13, 58, 68, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 80, 3, 38, 38, 3, 38, 38, 39, 39, 39, 39, 7, 6, 6, 9, 47, 47, 47, 47, 4, 1, 1, 3, 64, 68, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 83, 8, 6, 6, 14, 6, 6, 6, 6, 6, 6, 13, 47, 41, 40, 41, 44, 46, 42, 3, 47, 46, 4, 64, 68, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 84, 81, 81, 81, 81, 81, 85, 83, 89, 8, 6, 6, 6, 6, 15, 6, 6, 11, 6, 6, 13, 59, 72, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 80, 1, 1, 1, 1, 1, 82, 61, 80, 1, 1, 1, 2, 1, 3, 56, 56, 3, 41, 41, 3, 2, 82, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 80, 26, 29, 50, 51, 1, 87, 81, 90, 1, 2, 2, 2, 2, 3, 35, 36, 3, 47, 47, 3, 2, 82, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 80, 23, 24, 17, 17, 22, 17, 17, 17, 17, 17, 17, 18, 6, 14, 6, 6, 14, 6, 6, 9, 88, 86, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 80, 16, 63, 63, 63, 16, 88, 79, 79, 79, 79, 79, 79, 79, 1, 1, 1, 1, 79, 79, 79, 86, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 80, 16, 62, 61, 62, 16, 82, 61, 61, 61, 61, 61, 61, 61, 63, 63, 63, 63, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 80, 16, 65, 65, 65, 16, 82, 61, 61, 61, 61, 61, 61, 61, 71, 67, 67, 72, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 80, 27, 17, 17, 17, 28, 82, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 83, 79, 79, 79, 79, 79, 86, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61]];
mapObjects0 = [{x:1468, y:498, a:"tree3"}, {x:1534, y:568, a:"tree3"}, {x:1517, y:509, a:"tree4"}, {x:1470, y:558, a:"tree4"}, {x:1665, y:604, a:"garbage"}, {x:1927, y:609, a:"garbage"}, {x:1940, y:611, a:"garbage"}, {x:2333, y:609, a:"tree3"}, {x:2548, y:608, a:"tree3"}, {x:2605, y:601, a:"tree4"}, {x:2361, y:499, a:"lamp"}, {x:2532, y:498, a:"lamp"}, {x:2300, y:714, a:"garbage"}, {x:2760, y:160, a:"tree3"}, {x:2850, y:262, a:"tree3"}, {x:2874, y:141, a:"tree4"}, {x:2849, y:539, a:"tree4"}, {x:2785, y:659, a:"tree4"}, {x:2876, y:672, a:"tree3"}, {x:3014, y:615, a:"garbage"}, {x:3137, y:617, a:"garbage"}, {x:3018, y:492, a:"pot"}, {x:3140, y:493, a:"pot"}, {x:3257, y:607, a:"tree"}, {x:3237, y:252, a:"lamp"}, {x:3121, y:601, a:"lamp"}, {x:3122, y:524, a:"lamp"}, {x:2339, y:474, a:"tree3"}, {x:2404, y:475, a:"tree4"}, {x:2494, y:478, a:"tree3"}, {x:2581, y:474, a:"tree2"}, {x:2450, y:597, a:"tree2"}, {x:3479, y:665, a:"lamp"}, {x:1562, y:1078, a:"lamp"}, {x:1841, y:913, a:"tree4"}, {x:2012, y:869, a:"tree4"}, {x:1963, y:943, a:"tree2"}, {x:1918, y:878, a:"tree2"}, {x:1885, y:937, a:"tree"}, {x:1476, y:1438, a:"lamp"}, {x:1656, y:1438, a:"lamp"}, {x:1836, y:1438, a:"lamp"}, {x:2016, y:1438, a:"lamp"}, {x:3266, y:247, a:"garbage"}, {x:3270, y:234, a:"garbage"}, {x:3276, y:243, a:"garbage"}, {x:2311, y:1171, a:"lamp"}, {x:2376, y:1169, a:"lamp"}, {x:2382, y:998, a:"lamp"}, {x:2310, y:993, a:"lamp"}, {x:2293, y:981, a:"garbage"}, {x:2346, y:1064, a:"tree3"}, {x:1321, y:1439, a:"lamp"}, {x:2161, y:1440, a:"lamp"}, {x:1689, y:836, a:"lamp"}, {x:2905, y:385, a:"lamp"}, {x:3396, y:183, a:"tree4"}, {x:3479, y:312, a:"tree4"}, {x:3429, y:434, a:"tree3"}, {x:3473, y:59, a:"tree3"}, {x:3435, y:538, a:"tree2"}, {x:3411, y:280, a:"tree2"}, {x:3316, y:74, a:"tree2"}, {x:1929, y:1436, a:"tree2"}, {x:1746, y:1438, a:"tree3"}, {x:1562, y:1435, a:"tree4"}, {x:1398, y:1440, a:"tree"}, {x:2091, y:1440, a:"tree"}, {x:1464, y:975, a:"pot"}, {x:1658, y:974, a:"pot"}, {x:4920, y:1083, a:"lamp"}, {x:4705, y:1224, a:"lamp"}, {x:4409, y:1219, a:"lamp"}, {x:4102, y:1221, a:"lamp"}, {x:4456, y:1097, a:"pot"}, {x:4671, y:1097, a:"pot"}, {x:5026, y:1192, a:"pot"}, {x:5028, y:977, a:"pot"}, {x:4824, y:977, a:"pot"}, {x:4822, y:1189, a:"pot"}, {x:4385, y:925, a:"tree4"}, {x:4611, y:850, a:"tree4"}, {x:4697, y:916, a:"tree2"}, {x:4880, y:889, a:"tree2"}, {x:4991, y:808, a:"tree2"}, {x:4941, y:467, a:"tree2"}, {x:4642, y:218, a:"tree2"}, {x:4353, y:167, a:"tree2"}, {x:4211, y:198, a:"tree2"}, {x:4119, y:550, a:"tree2"}, {x:4168, y:605, a:"tree2"}, {x:4151, y:1006, a:"tree2"}, {x:4181, y:863, a:"tree3"}, {x:4976, y:235, a:"tree3"}, {x:4678, y:179, a:"tree3"}, {x:4370, y:213, a:"tree3"}, {x:4143, y:683, a:"tree3"}, {x:4176, y:466, a:"tree"}, {x:4135, y:293, a:"tree"}, {x:4562, y:215, a:"tree"}, {x:4858, y:205, a:"tree"}, {x:4961, y:709, a:"tree"}, {x:4318, y:496, a:"lamp"}, {x:4440, y:498, a:"lamp"}, {x:4560, y:496, a:"lamp"}, {x:4682, y:496, a:"lamp"}, {x:4820, y:497, a:"lamp"}, {x:4322, y:591, a:"garbage"}, {x:4345, y:598, a:"garbage"}, {x:4322, y:615, a:"garbage"}, {x:4069, y:1523, a:"lamp"}, {x:4069, y:1663, a:"lamp"}, {x:4069, y:1803, a:"lamp"}, {x:4069, y:1943, a:"lamp"}, {x:4069, y:2083, a:"lamp"}, {x:3968, y:2080, a:"lamp"}, {x:3969, y:1941, a:"lamp"}, {x:3969, y:1797, a:"lamp"}, {x:3969, y:1663, a:"lamp"}, {x:3968, y:1524, a:"lamp"}, {x:3969, y:1383, a:"lamp"}, {x:4069, y:1384, a:"lamp"}, {x:1214, y:342, a:"tree2"}, {x:1222, y:630, a:"tree2"}, {x:1254, y:480, a:"tree4"}, {x:1263, y:220, a:"tree4"}, {x:1239, y:61, a:"tree4"}, {x:1424, y:53, a:"tree4"}, {x:1625, y:105, a:"tree4"}, {x:3972, y:2532, a:"lamp"}, {x:3590, y:2533, a:"lamp"}, {x:3968, y:2270, a:"lamp"}, {x:3594, y:2275, a:"lamp"}, {x:3619, y:3488, a:"garbage"}, {x:3763, y:3496, a:"lamp"}, {x:3991, y:3494, a:"lamp"}, {x:4134, y:2694, a:"tree3"}, {x:4265, y:2691, a:"tree4"}, {x:4553, y:2293, a:"garbage"}, {x:4483, y:2647, a:"garbage"}, {x:4445, y:2859, a:"lamp"}, {x:4445, y:2494, a:"lamp"}, {x:4445, y:2285, a:"lamp"}, {x:4499, y:2874, a:"pot"}, {x:4446, y:2373, a:"tree"}, {x:4196, y:2656, a:"tree"}, {x:3663, y:3399, a:"tree"}, {x:3945, y:3388, a:"tree"}, {x:4058, y:3391, a:"tree2"}, {x:5440, y:140, a:"tree2"}, {x:5708, y:141, a:"tree2"}, {x:5982, y:142, a:"tree2"}, {x:5415, y:369, a:"tree2"}, {x:5512, y:362, a:"lamp"}, {x:5747, y:456, a:"lamp"}, {x:5660, y:1103, a:"lamp"}, {x:5143, y:1094, a:"lamp"}, {x:5140, y:458, a:"lamp"}, {x:5931, y:834, a:"tree3"}, {x:5934, y:766, a:"tree3"}, {x:5871, y:1165, a:"tree3"}, {x:5739, y:1093, a:"tree3"}, {x:5908, y:1076, a:"tree3"}, {x:5735, y:1574, a:"lamp"}, {x:5898, y:1572, a:"lamp"}, {x:5867, y:1457, a:"garbage"}, {x:5866, y:1526, a:"garbage"}, {x:5773, y:1455, a:"garbage"}, {x:5741, y:1764, a:"tree2"}, {x:5862, y:1956, a:"tree2"}, {x:5825, y:1800, a:"tree"}, {x:5634, y:2165, a:"lamp"}, {x:5890, y:2171, a:"lamp"}, {x:5623, y:1667, a:"lamp"}, {x:5898, y:2317, a:"tree4"}, {x:5607, y:2314, a:"tree4"}, {x:5859, y:2175, a:"garbage"}, {x:2162, y:3242, a:"lamp"}, {x:2272, y:3597, a:"lamp"}, {x:2407, y:3597, a:"lamp"}, {x:2261, y:3067, a:"tree3"}, {x:2554, y:3068, a:"tree3"}, {x:2399, y:3064, a:"tree2"}, {x:2065, y:3058, a:"tree2"}, {x:2983, y:3341, a:"lamp"}, {x:2821, y:3343, a:"lamp"}, {x:2650, y:3342, a:"lamp"}, {x:3257, y:2410, a:"lamp"}, {x:2876, y:2412, a:"lamp"}, {x:3129, y:2414, a:"garbage"}, {x:3146, y:2613, a:"tree3"}, {x:3256, y:2577, a:"tree3"}, {x:3404, y:2227, a:"tree3"}, {x:3450, y:2383, a:"tree3"}, {x:3360, y:2391, a:"tree3"}, {x:3065, y:2583, a:"tree2"}, {x:3184, y:3170, a:"tree2"}, {x:3454, y:3043, a:"tree2"}, {x:3511, y:3200, a:"tree2"}, {x:3055, y:3054, a:"tree"}, {x:3379, y:3170, a:"tree"}, {x:2847, y:2403, a:"pot"}, {x:5270, y:687, a:"lamp"}, {x:5270, y:778, a:"lamp"}, {x:5270, y:890, a:"lamp"}, {x:5530, y:682, a:"lamp"}, {x:5529, y:780, a:"lamp"}, {x:5529, y:905, a:"lamp"}, {x:2030, y:2179, a:"garbage"}, {x:783, y:976, a:"garbage"}, {x:1129, y:1095, a:"lamp"}, {x:781, y:1093, a:"lamp"}, {x:948, y:1082, a:"lamp"}, {x:1621, y:2242, a:"tree3"}, {x:1598, y:2221, a:"tree4"}, {x:1530, y:2581, a:"tree"}, {x:1494, y:2610, a:"tree4"}, {x:1472, y:2550, a:"tree3"}, {x:4761, y:1745, a:"tree3"}, {x:5073, y:1597, a:"tree3"}, {x:5134, y:1617, a:"tree4"}, {x:5101, y:1638, a:"garbage"}, {x:6808, y:347, a:"lamp"}, {x:7051, y:1427, a:"lamp"}, {x:6968, y:1426, a:"lamp"}, {x:6873, y:1429, a:"lamp"}, {x:6546, y:1686, a:"tree2"}, {x:6108, y:1709, a:"tree2"}, {x:6174, y:1627, a:"tree2"}, {x:6605, y:841, a:"tree2"}, {x:2273, y:3480, a:"lamp"}, {x:2408, y:3483, a:"lamp"}, {x:495, y:492, a:"garbage"}, {x:509, y:501, a:"garbage"}, {x:868, y:472, a:"garbage"}, {x:862, y:457, a:"garbage"}, {x:881, y:451, a:"garbage"}, {x:865, y:435, a:"garbage"}, {x:906, y:139, a:"pot"}, {x:959, y:140, a:"pot"}];
mapMissions = [{x:922, y:175, a:"Bice road 2", r:0}, {x:565, y:510, a:"Bice road 4", r:0}, {x:787, y:501, a:"Bice road 6", r:0}, {x:1152, y:500, a:"Bice road 8", r:0}, {x:687, y:745, a:"Bice road 10", r:0}, {x:1405, y:265, a:"Bice road 14", r:0}, {x:1750, y:164, a:"Snob drive 4", r:0}, {x:1871, y:164, a:"Snob drive 6", r:0}, {x:1984, y:163, a:"Snob drive 8", r:0}, {x:2094, y:159, a:"Snob drive 10", r:0}, {x:822, y:1007, a:"West Tensta", r:0}, {x:917, y:1011, a:"West Tensta", r:0}, {x:1055, y:1012, a:"West Tensta", r:0}, {x:780, y:1479, a:"West Tensta", r:0}, {x:994, y:1480, a:"West Tensta", r:0}, {x:1157, y:1491, a:"West Tensta", r:0}, {x:1420, y:1338, a:"the club", r:0}, {x:1525, y:1336, a:"Restaurant Papasisto", r:0}, {x:1888, y:1337, a:"Caf\u00E9 Albert", r:0}, {x:2238, y:1333, a:"the club", r:0}, {x:2348, y:1336, a:"the office", r:0}, {x:1750, y:1339, a:"the office", r:0}, {x:1576, y:983, a:"Central Bank", r:0}, {x:1576, y:983, a:"Central Bank", r:0}, {x:1477, y:1057, a:"the video store", r:0}, {x:1515, y:1133, a:"the cinema", r:0}, {x:1628, y:1133, a:"Caf\u00E9 Alex", r:0}, {x:2147, y:1192, a:"the shoppingmall", r:0}, {x:2059, y:1115, a:"the workshop", r:0}, {x:2528, y:1209, a:"the office", r:0}, {x:2527, y:1007, a:"the tv studio", r:0}, {x:2121, y:626, a:"the supermarket", r:0}, {x:1984, y:634, a:"Grandma's bakery", r:0}, {x:1614, y:631, a:"the gym", r:0}, {x:1427, y:664, a:"the gym", r:0}, {x:2171, y:508, a:"the art museum", r:0}, {x:2352, y:259, a:"Vasa Street", r:0}, {x:2474, y:257, a:"Vasa Street", r:0}, {x:2592, y:257, a:"Vasa Street", r:0}, {x:2385, y:539, a:"Humle park", r:0}, {x:2503, y:541, a:"Humle park", r:0}, {x:3078, y:269, a:"Oak drive 4", r:0}, {x:3176, y:267, a:"Oak drive 5", r:0}, {x:3073, y:519, a:"Oak drive 6", r:0}, {x:3203, y:524, a:"Oak drive 7", r:0}, {x:1824, y:618, a:"Bice Hospital", r:0}, {x:1798, y:617, a:"Bice Hospital", r:0}, {x:2778, y:979, a:"Sm\u00E4rta Hospital", r:0}, {x:2741, y:977, a:"Sm\u00E4rta Hospital", r:0}, {x:2705, y:1259, a:"Sm\u00E4rta Hospital Dump", r:0}, {x:4381, y:508, a:"Hotel Viktor", r:1}, {x:4520, y:509, a:"Yi Fa Hotel", r:1}, {x:4624, y:503, a:"Hotel Yera", r:1}, {x:4726, y:513, a:"Hotel Izmailovo", r:1}, {x:4552, y:752, a:"Tu-Hai Hotel", r:1}, {x:4723, y:739, a:"Stockholm Hotel", r:1}, {x:4543, y:1109, a:"Elviria Hotel", r:1}, {x:4600, y:1108, a:"Elviria Hotel", r:1}, {x:4964, y:1014, a:"Elviria Hotel", r:1}, {x:4246, y:1384, a:"Elviria beach", r:1}, {x:4773, y:1413, a:"Elviria beach", r:1}, {x:5321, y:1114, a:"Laguna drive 92", r:1}, {x:5463, y:1108, a:"Laguna drive 93", r:1}, {x:5274, y:442, a:"Laguna drive 94", r:1}, {x:5461, y:433, a:"Laguna drive 95 ", r:1}, {x:5591, y:397, a:"Birkelwood 32", r:1}, {x:5704, y:403, a:"Birkelwood 33", r:1}, {x:5846, y:402, a:"Birkelwood 34", r:1}, {x:5958, y:403, a:"Birkelwood 35", r:1}, {x:6174, y:403, a:"Birkelwood 36", r:1}, {x:5824, y:635, a:"Los Boliches 4", r:1}, {x:6050, y:658, a:"Los Boliches 6", r:1}, {x:6304, y:773, a:"Los Boliches 8", r:1}, {x:6064, y:904, a:"Los Boliches 10", r:1}, {x:5831, y:875, a:"Los Boliches 12", r:1}, {x:5815, y:1140, a:"Los Boliches 14", r:1}, {x:5684, y:1628, a:"Los Boliches 16", r:1}, {x:5910, y:1635, a:"Los Boliches 18", r:1}, {x:6554, y:760, a:"Meyer drive 11", r:1}, {x:6650, y:759, a:"Meyer drive 22", r:1}, {x:6766, y:1133, a:"Meyer drive 33", r:1}, {x:6790, y:1636, a:"Meyer drive 44", r:1}, {x:6535, y:1763, a:"Meyer drive 55", r:1}, {x:6299, y:1731, a:"Meyer drive 66", r:1}, {x:6166, y:1858, a:"Meyer drive 77", r:1}, {x:6925, y:1353, a:"the fishing club", r:1}, {x:7000, y:1349, a:"the fishing club", r:1}, {x:5781, y:2188, a:"Kr\u00E4ks Hotel", r:1}, {x:5881, y:2457, a:"Kr\u00E4ks Hotel", r:1}, {x:5825, y:2465, a:"White whale beach", r:1}, {x:4884, y:1823, a:"King's Islet", r:1}, {x:4824, y:1947, a:"Crazy Man's beach", r:1}, {x:4508, y:3047, a:"Coconut beach 11", r:2}, {x:4512, y:2694, a:"Coconut beach 22", r:2}, {x:4526, y:2330, a:"Coconut beach 33", r:2}, {x:4624, y:2485, a:"Coconut beach 44", r:2}, {x:4287, y:2898, a:"Cheating Husband Hotel", r:2}, {x:3636, y:2251, a:"1st avenue", r:2}, {x:3784, y:2183, a:"1st avenue", r:2}, {x:4112, y:2223, a:"the restaurant at 1st avenue", r:2}, {x:4254, y:2208, a:"1st avenue", r:2}, {x:4308, y:2543, a:"the club at 2nd avenue", r:2}, {x:4134, y:2542, a:"2nd avenue", r:2}, {x:3886, y:2533, a:"2nd avenue", r:2}, {x:3172, y:2899, a:"3rd avenue", r:2}, {x:3297, y:2896, a:"the office at 3rd avenue", r:2}, {x:3436, y:2896, a:"3rd avenue", r:2}, {x:3545, y:2994, a:"the club at 3rd avenue", r:2}, {x:3877, y:2895, a:"3rd avenue", r:2}, {x:4134, y:2896, a:"3rd avenue", r:2}, {x:3723, y:2906, a:"Hotel Marsipan at 3rd avenue", r:2}, {x:4217, y:3259, a:"Kramer drive", r:2}, {x:4064, y:2794, a:"Kramer drive", r:2}, {x:3574, y:2368, a:"Kramer drive", r:2}, {x:4064, y:2380, a:"Kramer drive", r:2}, {x:3830, y:3264, a:"Grand Bank", r:2}, {x:3910, y:3261, a:"Grand Bank", r:2}, {x:3788, y:3257, a:"Grand Bank ", r:2}, {x:3740, y:3673, a:"slacker playa", r:2}, {x:3946, y:3590, a:"slacker playa", r:2}, {x:3766, y:2537, a:"the museum", r:2}, {x:3693, y:2534, a:"the museum", r:2}, {x:3277, y:3085, a:"Jens' park", r:2}, {x:2907, y:2775, a:"Malmskillnad street 94", r:2}, {x:2690, y:2776, a:"Malmskillnad street 95", r:2}, {x:2442, y:2779, a:"Malmskillnad street 96", r:2}, {x:2263, y:2643, a:"Malmskillnad street 97", r:2}, {x:2015, y:2779, a:"Malmskillnad street 98 ", r:2}, {x:3194, y:2431, a:"Carling pathway 2", r:2}, {x:3069, y:2430, a:"Carling pathway 4", r:2}, {x:2456, y:2427, a:"Carling street 6", r:2}, {x:2317, y:2422, a:"Carling street 8", r:2}, {x:2057, y:2420, a:"Carling street 10", r:2}, {x:1903, y:2421, a:"Carling street 12", r:2}, {x:2167, y:2210, a:"Hotel M\u00E1laga", r:2}, {x:2049, y:2018, a:"Hotel Kista", r:2}, {x:1884, y:1944, a:"Viby Hotel", r:2}, {x:1789, y:2188, a:"Husby Hotel", r:2}, {x:2569, y:2186, a:"Villa street", r:2}, {x:2440, y:1979, a:"Villa street", r:2}, {x:1410, y:2309, a:"Hotel Tensta", r:2}, {x:1474, y:2306, a:"Hotel Tensta", r:2}, {x:1442, y:2334, a:"Hotel Tensta", r:2}, {x:2221, y:3155, a:"The Jin Mansion", r:2}, {x:2355, y:3271, a:"The Jin Mansion", r:2}, {x:2439, y:3269, a:"The Jin Mansion", r:2}, {x:2115, y:3625, a:"The Jin Mansion", r:2}, {x:2398, y:3685, a:"The Jin Mansion", r:2}, {x:2504, y:3601, a:"The Jin Mansion", r:2}];
mapClients = [{x:508, y:1097, f:2, r:0}, {x:858, y:1093, f:2, r:0}, {x:1045, y:984, f:3, r:0}, {x:818, y:1453, f:4, r:0}, {x:1012, y:1451, f:1, r:0}, {x:1185, y:1454, f:2, r:0}, {x:1396, y:1337, f:2, r:0}, {x:1589, y:1333, f:4, r:0}, {x:1707, y:1454, f:1, r:0}, {x:1754, y:1337, f:2, r:0}, {x:2207, y:1336, f:3, r:0}, {x:2437, y:1335, f:4, r:0}, {x:2657, y:1259, f:1, r:0}, {x:2734, y:976, f:2, r:0}, {x:2800, y:972, f:3, r:0}, {x:2149, y:1061, f:4, r:0}, {x:2054, y:1139, f:1, r:0}, {x:1573, y:974, f:2, r:0}, {x:1534, y:975, f:3, r:0}, {x:1916, y:972, f:4, r:0}, {x:1541, y:1102, f:1, r:0}, {x:1501, y:984, f:2, r:0}, {x:1607, y:986, f:3, r:0}, {x:1144, y:975, f:2, r:0}, {x:1024, y:1272, f:1, r:0}, {x:687, y:742, f:1, r:0}, {x:565, y:498, f:2, r:0}, {x:817, y:505, f:3, r:0}, {x:928, y:160, f:4, r:0}, {x:1172, y:500, f:1, r:0}, {x:1401, y:262, f:2, r:0}, {x:1431, y:440, f:3, r:0}, {x:1612, y:650, f:4, r:0}, {x:1779, y:623, f:1, r:0}, {x:1831, y:616, f:2, r:0}, {x:1969, y:641, f:3, r:0}, {x:2120, y:618, f:4, r:0}, {x:2095, y:148, f:1, r:0}, {x:1995, y:148, f:2, r:0}, {x:1873, y:142, f:3, r:0}, {x:1757, y:138, f:4, r:0}, {x:2382, y:257, f:1, r:0}, {x:2574, y:261, f:2, r:0}, {x:2614, y:732, f:3, r:0}, {x:2950, y:736, f:4, r:0}, {x:3073, y:528, f:1, r:0}, {x:3172, y:548, f:2, r:0}, {x:3177, y:262, f:2, r:0}, {x:4375, y:495, f:4, r:1}, {x:4501, y:508, f:1, r:1}, {x:4607, y:510, f:2, r:1}, {x:4750, y:513, f:3, r:1}, {x:4980, y:337, f:4, r:1}, {x:5129, y:580, f:1, r:1}, {x:5446, y:436, f:2, r:1}, {x:5612, y:434, f:3, r:1}, {x:5691, y:385, f:2, r:1}, {x:5794, y:381, f:1, r:1}, {x:5955, y:386, f:2, r:1}, {x:4722, y:750, f:3, r:1}, {x:4587, y:744, f:4, r:1}, {x:4495, y:747, f:1, r:1}, {x:4368, y:1122, f:2, r:1}, {x:4268, y:1023, f:3, r:1}, {x:4588, y:1109, f:4, r:1}, {x:4544, y:1103, f:1, r:1}, {x:4875, y:1010, f:2, r:1}, {x:4975, y:1000, f:3, r:1}, {x:5021, y:1119, f:4, r:1}, {x:4931, y:1170, f:1, r:1}, {x:5238, y:1111, f:2, r:1}, {x:5367, y:1113, f:3, r:1}, {x:5459, y:1111, f:4, r:1}, {x:5569, y:1114, f:1, r:1}, {x:5819, y:1107, f:2, r:1}, {x:5837, y:884, f:3, r:1}, {x:5943, y:1345, f:4, r:1}, {x:6057, y:904, f:1, r:1}, {x:6296, y:763, f:2, r:1}, {x:6544, y:765, f:3, r:1}, {x:6655, y:769, f:2, r:1}, {x:6170, y:391, f:1, r:1}, {x:5929, y:396, f:2, r:1}, {x:5586, y:395, f:3, r:1}, {x:5846, y:627, f:4, r:1}, {x:6806, y:1109, f:1, r:1}, {x:6998, y:1345, f:2, r:1}, {x:6810, y:1638, f:3, r:1}, {x:6622, y:1764, f:4, r:1}, {x:6300, y:1715, f:1, r:1}, {x:6045, y:1973, f:2, r:1}, {x:5817, y:2194, f:2, r:1}, {x:5712, y:2188, f:4, r:1}, {x:5663, y:2464, f:1, r:1}, {x:5871, y:2455, f:2, r:1}, {x:5692, y:1623, f:3, r:1}, {x:5935, y:1618, f:4, r:1}, {x:5839, y:1269, f:1, r:1}, {x:4511, y:1128, f:2, r:1}, {x:4616, y:1145, f:3, r:1}, {x:5588, y:1480, f:4, r:1}, {x:4203, y:1365, f:1, r:1}, {x:4869, y:1818, f:2, r:2}, {x:4519, y:2331, f:3, r:2}, {x:4518, y:2681, f:4, r:2}, {x:4503, y:3035, f:1, r:2}, {x:4265, y:3271, f:2, r:2}, {x:3838, y:3263, f:3, r:2}, {x:3788, y:3263, f:4, r:2}, {x:3909, y:3487, f:1, r:2}, {x:3760, y:3591, f:2, r:2}, {x:3929, y:3655, f:3, r:2}, {x:4250, y:2897, f:4, r:2}, {x:4169, y:2894, f:1, r:2}, {x:4253, y:2568, f:2, r:2}, {x:4336, y:2320, f:3, r:2}, {x:3976, y:2413, f:4, r:2}, {x:4061, y:2481, f:1, r:2}, {x:3881, y:2544, f:2, r:2}, {x:3743, y:2535, f:3, r:2}, {x:3705, y:2537, f:4, r:2}, {x:3800, y:2183, f:1, r:2}, {x:3212, y:2436, f:2, r:2}, {x:3068, y:2422, f:3, r:2}, {x:2949, y:2433, f:4, r:2}, {x:3324, y:2602, f:1, r:2}, {x:3912, y:2900, f:2, r:2}, {x:3742, y:2896, f:3, r:2}, {x:3652, y:2893, f:4, r:2}, {x:3532, y:2895, f:1, r:2}, {x:3424, y:2896, f:2, r:2}, {x:3549, y:3083, f:3, r:2}, {x:3175, y:2900, f:4, r:2}, {x:3273, y:3199, f:2, r:2}, {x:2918, y:2776, f:2, r:2}, {x:2689, y:2775, f:2, r:2}, {x:2492, y:2776, f:2, r:2}, {x:2353, y:2772, f:2, r:2}, {x:2020, y:2770, f:2, r:2}, {x:1801, y:2516, f:3, r:2}, {x:2001, y:2416, f:4, r:2}, {x:2161, y:2412, f:1, r:2}, {x:2365, y:2176, f:2, r:2}, {x:1894, y:1939, f:3, r:2}, {x:1405, y:2294, f:4, r:2}, {x:1627, y:2292, f:1, r:2}, {x:2463, y:3265, f:2, r:2}, {x:2399, y:3261, f:3, r:2}, {x:2353, y:3273, f:4, r:2}, {x:2175, y:3740, f:1, r:2}, {x:2535, y:3611, f:2, r:2}, {x:4504, y:3216, f:3, r:2}, {x:826, y:1451, f:2, r:0, id:1}, {x:3554, y:680, f:1, r:0, id:2}, {x:855, y:1459, f:1, r:0, id:3}, {x:1750, y:152, f:4, r:0, id:4}, {x:2257, y:1673, f:3, r:0, id:5}, {x:7105, y:1343, f:1, r:2, id:6}, {x:6902, y:388, f:2, r:1, id:7}, {x:7100, y:1430, f:3, r:1, id:8}, {x:6899, y:383, f:2, r:1, id:9}, {x:3837, y:3257, f:1, r:2, id:10}, {x:2408, y:3257, f:4, r:2, id:11}, {x:1475, y:2295, f:1, r:2, id:12}, {x:47, y:1138, f:2, r:1, id:13}, {x:3736, y:3686, f:4, r:2, id:14}, {x:911, y:1454, f:2, r:0, id:15}, {x:6832, y:1828, f:3, r:1, id:16}, {x:2396, y:538, f:4, r:2, id:17}];
mapQuests = [[{a:"A", x:100, y:0, g:100, t:60}, {a:"A", x:200, y:0, g:100, t:60}, {a:"A", x:300, y:0, g:100, t:60}], [{a:"Aahh, I'm having a baby! Take me to Bice Hospital! Huuurry!", x:1825, y:620, g:500, t:30}], [{a:"Hey, take me to the bank. I got some... errands to do.", x:1558, y:975, g:10, t:45, f:6}, {a:"Take me to West Bridge quickly! I'll pay you good!", x:100, y:1140, g:700, t:25, f:6}], [{a:"Hey. Please take me to the great statue of Vix-stah! I want to see as much as I can while I'm in town.", x:1726, y:977, gp:100, tp:8, f:7}, {a:"Mm, to Humle park please. That statue was truly amazing.", x:2507, y:539, gp:100, tp:8, f:7}, {a:"Such a beautiful park! To West Bridge please, I'm afriad I'll have to leave now.", x:115, y:1129, gp:300, tp:8, f:7}], [{a:"Too the broth.. hotel.", x:1310, y:972, gp:150}], [{a:"Hehe.. Heee, hey! Oh I've been drinking quite a bit.. Just take me .. home please.", x:930, y:186, f:8, gp:50}, {a:"Ah? What the f-? This isn't my home? Why did you drop me off here? Well take me home now!", x:2625, y:276, f:8, gp:50}, {a:"Heeey.. This isn't my home either.. Ah, scr-w it! Just take me to the bar again, pleasche.", x:1538, y:1337, f:8, gp:150}], [{a:"Hi there, I'm writing a guidebook about beaches. I'd like to try out all of your beaches before I leave. White Whale Beach is first!", x:5752, y:2380, gp:200, f:7}, {a:"That was indeed a beautiful beach, although I'm sure Elviria Beach will be able to top it!", x:4694, y:1393, gp:200, f:7}, {a:"Hey there, it's me again. I've heard about a truly beautiful beach called Slacker Playa. Do you know the way?", x:3786, y:3680, gp:200, f:7}, {a:"There's one more beach for me to visit and that is the King of beaches - Crazy Man's beach!", x:4908, y:2007, gp:300, f:7}], [{a:"At least once I'd like to taste the famous cherry pie of Grandma's Bakery. Will you take me there?", x:1980, y:622, gp:50}, {a:"Hey, thanks for taking me to the bakery. Please drive me home now, I got some pie with me for the kids.", x:6902, y:388, gp:50}], [{a:"To hotel Elviria please.", x:4554, y:1090, g:50, f:7}, {a:"Hmpf, this hotel is way to expensive! Take me somewhere cheaper.", x:5781, y:2175, g:50, f:7}, {a:"You again! This hotel is way to expensive too, take me somewhere really cheap!", x:4740, y:330, g:50, f:7}], [{a:"Yeah, just take me to where the arrow points, okay? We don't need to pretend, do we?", x:4957, y:1793, g:600}], [{a:"I need to hide! Quick! I'll reward you plenty, just hurry up!", x:6903, y:386, gp:700, tp:-12, f:6}], [{a:"Hey, I need to get some stuff for my client. Drive me to the super mall please.", x:3939, y:2541}, {a:"My client wants some .. company, do you know where I could find any?", x:2080, y:2779}, {a:"I got all I need, please drive back to The Jin Mansion where my client is waiting at the beach.", x:2276, y:3650, t:15, gp:400}], [{a:"Hi, will you show me around a bit, please? First I'd like to visit the local museum.", x:3791, y:2536, f:7}, {a:"I understand you can't leave here until you have seen the statue of the great Vix-stah! Let's!", x:1765, y:810, f:7}, {a:"Hmpf, I've heard a lot about King's Islet. It's supposed to be really special.", x:4858, y:1840, f:7}, {a:"I got one more place to visit before I leave and that's The Jin Mansion", x:2403, y:3254, f:7}, {a:"It's time to go home, take me to the airport please. What? You don't go that far? Well drop me off at the fishing club then.", tp:-8, gp:600, x:7155, y:1370, f:7}], [{a:"Aaah, I can't stay! I can't stay! Just take me out of here!", x:7171, y:1397, gp:300}], [{a:"Aaaaaaaaarrrhhh.. Help! Take me to to nearest hospital! I've been attacked by a shark!", x:2757, y:978, g:0}], [{a:"To Humle park please, there's someone there I have to meet.", x:2565, y:543, gp:150}], [{a:"Yeee.. To the club! To the club! Wooh!", x:1546, y:1342, f:8}, {a:"Heehe.. To the club! Yesch, to the club! What? This is the club? Take me to the hotel then!", x:4827, y:365, f:8}], [{a:"To Malmskillnadstreet, I got .. someone to meet there.", x:2842, y:2778, gp:300}]];
talk = [["Take me to", ", please."], ["Take me to", ", please."], ["Please drive me to", "."], ["To", ". Quick!"], ["Hey, drive me to", "."], ["Hey, drive me to", "."], ["Take me to", "."], ["Take me to", "."], ["Hey, take me to", "."], ["Hey, take me to", "."], ["Hey cabbie, take me to", "."], ["To", ", and make it quick!"], ["Take me to", ". And step on it!"]];
mapProperties1 = {startX:10, startY:18};
map1 = [[61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 74, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 73, 61, 61], [61, 61, 70, 7, 6, 5, 6, 6, 6, 6, 5, 6, 15, 6, 6, 5, 15, 6, 5, 15, 6, 10, 68, 61, 61], [61, 61, 70, 3, 38, 37, 38, 37, 38, 37, 38, 37, 3, 53, 54, 55, 3, 53, 54, 3, 52, 3, 68, 61, 61], [61, 61, 70, 4, 37, 38, 37, 38, 37, 38, 37, 38, 4, 30, 30, 7, 14, 10, 55, 4, 52, 4, 68, 61, 61], [61, 61, 70, 12, 6, 6, 5, 6, 15, 6, 5, 6, 13, 30, 30, 3, 55, 3, 55, 3, 52, 3, 68, 61, 61], [61, 61, 70, 3, 38, 39, 37, 37, 3, 42, 40, 41, 3, 30, 30, 3, 55, 3, 55, 3, 52, 3, 68, 61, 61], [61, 61, 70, 4, 38, 39, 37, 37, 4, 41, 7, 6, 13, 30, 30, 4, 55, 4, 41, 4, 52, 3, 68, 61, 61], [61, 61, 70, 12, 6, 5, 6, 6, 9, 42, 3, 42, 3, 30, 30, 3, 40, 3, 42, 3, 52, 3, 68, 61, 61], [61, 61, 70, 3, 42, 41, 42, 40, 40, 41, 4, 40, 12, 6, 6, 9, 41, 8, 15, 9, 40, 4, 68, 61, 61], [61, 61, 70, 4, 40, 42, 41, 40, 35, 36, 3, 43, 4, 33, 34, 31, 32, 40, 3, 41, 42, 3, 68, 61, 61], [61, 61, 70, 12, 6, 5, 6, 6, 5, 6, 14, 6, 11, 6, 5, 6, 6, 6, 14, 5, 6, 13, 68, 61, 61], [61, 61, 70, 12, 6, 5, 6, 6, 5, 6, 6, 6, 11, 6, 5, 6, 6, 6, 6, 5, 6, 13, 68, 61, 61], [61, 61, 70, 3, 40, 42, 41, 42, 40, 30, 42, 40, 3, 48, 48, 48, 48, 48, 48, 48, 48, 3, 68, 61, 61], [61, 61, 70, 12, 6, 5, 6, 6, 10, 41, 30, 41, 4, 30, 30, 47, 49, 48, 30, 30, 40, 4, 68, 61, 61], [61, 61, 70, 3, 57, 58, 58, 59, 3, 30, 40, 42, 12, 6, 6, 6, 20, 17, 17, 17, 18, 13, 68, 61, 61], [61, 61, 70, 4, 57, 61, 61, 57, 12, 6, 5, 6, 13, 48, 47, 48, 2, 45, 44, 46, 44, 3, 68, 61, 61], [61, 61, 70, 3, 57, 58, 58, 57, 3, 56, 56, 56, 4, 50, 51, 49, 2, 2, 2, 45, 46, 3, 68, 61, 61], [61, 61, 70, 12, 6, 6, 5, 6, 9, 17, 17, 17, 12, 6, 5, 6, 10, 2, 2, 2, 46, 4, 68, 61, 61], [60, 61, 70, 4, 58, 59, 59, 58, 58, 57, 57, 57, 3, 46, 44, 45, 3, 48, 47, 2, 2, 3, 68, 61, 61], [61, 61, 70, 8, 6, 6, 5, 6, 6, 6, 5, 6, 14, 6, 5, 6, 14, 6, 6, 5, 6, 9, 68, 61, 61], [61, 61, 71, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 72, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61], [61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61]];
mapObjects1 = [{x:529, y:1559, a:"lamp"}, {x:779, y:1562, a:"lamp"}, {x:900, y:1560, a:"lamp"}, {x:1145, y:1558, a:"lamp"}, {x:1259, y:1559, a:"lamp"}, {x:1378, y:1559, a:"lamp"}, {x:1621, y:1559, a:"lamp"}, {x:1859, y:1558, a:"lamp"}, {x:1987, y:1558, a:"lamp"}, {x:2102, y:1556, a:"lamp"}, {x:2213, y:1557, a:"lamp"}, {x:2458, y:1554, a:"lamp"}, {x:970, y:1092, a:"lamp"}, {x:536, y:2625, a:"lamp"}, {x:657, y:2627, a:"lamp"}, {x:902, y:2629, a:"lamp"}, {x:1017, y:2631, a:"lamp"}, {x:1139, y:2629, a:"lamp"}, {x:1381, y:2628, a:"lamp"}, {x:492, y:2296, a:"garbage"}, {x:1193, y:2300, a:"garbage"}, {x:1209, y:2305, a:"garbage"}, {x:1937, y:2284, a:"garbage"}, {x:1929, y:2271, a:"garbage"}, {x:2035, y:1933, a:"garbage"}, {x:2050, y:1938, a:"garbage"}, {x:2052, y:1931, a:"garbage"}, {x:2383, y:926, a:"garbage"}, {x:2366, y:914, a:"garbage"}, {x:2356, y:889, a:"garbage"}, {x:2380, y:910, a:"garbage"}, {x:2305, y:2515, a:"pot"}, {x:2201, y:2377, a:"tree4"}, {x:2054, y:2176, a:"tree"}, {x:2087, y:1942, a:"tree"}, {x:2530, y:315, a:"tree"}, {x:2416, y:279, a:"tree3"}, {x:2254, y:325, a:"tree4"}, {x:851, y:317, a:"tree4"}, {x:289, y:1264, a:"tree3"}, {x:324, y:1337, a:"tree3"}, {x:32, y:2437, a:"tree3"}, {x:93, y:2461, a:"tree2"}, {x:60, y:2493, a:"tree3"}, {x:2252, y:2213, a:"tree2"}, {x:2222, y:2184, a:"tree4"}, {x:2383, y:2387, a:"tree2"}, {x:2506, y:2513, a:"tree"}, {x:2603, y:2656, a:"tree3"}];
onMouseDown = function () {
if (Key.isDown(16)) {
trace(((("{ x: " + (_xmouse + worldX)) + ", y: ") + (_ymouse + worldY)) + ", a: \"\" },");
}
};
init();
onEnterFrame = main;
gameStarted = true;
sound_intro.stop("intro.mp3");
Frame 44
gotoAndStop(_currentframe - 1);
Frame 53
function biceaIgangSkiten() {
lastKey = Key.getCode();
onEnterFrame = function () {
if (Key.getCode() != lastKey) {
removeAttract();
gotoAndPlay ("menu");
}
};
onMouseDown = function () {
mouse = true;
removeAttract();
gotoAndPlay ("menu");
};
onMouseUp = function () {
if (mouse) {
var _local1 = setInterval(function () {
delete mouse;
clearInterval(_ID2);
}, 1000);
onMouseUp = function () {
};
}
};
}
gameStarted = false;
sound_intro.start(0, 99999);
Instance of Symbol 586 MovieClip in Frame 53
onClipEvent (load) {
_visible = false;
}
Frame 55
gotoAndStop(_currentframe - 1);
Frame 68
function sponsorIntro() {
sound_intro.stop("intro.mp3");
var hei = 7000;
attachMovie("sponsorLogo", "l1", 11);
attachMovie("sponsorLogo", "l2", 12);
attachMovie("sponsorLogo", "l3", 13);
createEmptyMovieClip("mask", 14);
l1._x = (l2._x = (l3._x = (mask._x = 150)));
l1._y = (l2._y = (l3._y = (mask._y = 90)));
l1.setMask(l3);
l1._height = hei + 300;
l2.setMask(mask);
maxY = 0;
onEnterFrame = function () {
maxY = maxY + 2;
l1._y = 50 - (maxY * (hei / 300));
mask.clear();
mask.beginFill(16711680);
mask.lineTo(300, 0);
mask.lineTo(300, maxY);
mask.lineTo(0, maxY);
mask.lineTo(0, 0);
mask.endFill();
if (maxY >= 300) {
delete maxY;
l2.setMask(null);
l1.removeMovieClip();
l3.removeMovieClip();
mask.removeMovieClip();
timer = 0;
onEnterFrame = function () {
timer++;
if (timer > 93) {
l2._alpha = l2._alpha - 5;
}
if (l2._alpha <= 0) {
timer = 0;
onEnterFrame = function () {
timer++;
if (timer > 31) {
onEnterFrame = function () {
};
delete timer;
delete maxY;
l1.removeMovieClip();
l2.removeMovieClip();
l3.removeMovieClip();
mask.removeMovieClip();
gotoAndPlay ("attract");
}
};
}
};
}
};
}
sponsorIntro();
Frame 70
gotoAndStop(_currentframe - 1);
Frame 75
gotoAndPlay ("attract");
Symbol 83 MovieClip [car] Frame 1
stop();
Symbol 332 MovieClip [people0] Frame 5
b.gotoAndStop(random(b._totalframes) + 1);
Symbol 355 MovieClip [people3] Frame 5
b.gotoAndStop(random(b._totalframes) + 1);
Symbol 376 MovieClip [people2] Frame 5
b.gotoAndStop(random(b._totalframes) + 1);
Symbol 399 MovieClip [people1] Frame 5
b.gotoAndStop(random(b._totalframes) + 1);
Symbol 418 Button
on (release) {
if (_root.sound_main_playing) {
_root.sound_main_playing = false;
_root.sound_main.stop("deathtrip.mp3");
} else {
_root.sound_main_playing = true;
_root.sound_main.start(0, 99999);
}
}
Symbol 419 Button
on (release) {
switch (_root._quality) {
case "LOW" :
_root._quality = "MEDIUM";
break;
case "MEDIUM" :
_root._quality = "HIGH";
break;
case "HIGH" :
_root._quality = "LOW";
}
}
Symbol 484 MovieClip Frame 14
img.gotoAndStop(frame);
Symbol 484 MovieClip Frame 15
stop();
Symbol 484 MovieClip Frame 16
img.gotoAndStop(frame);
Symbol 484 MovieClip Frame 30
_visible = false;
stop();
Symbol 488 MovieClip Frame 1
stop();
Symbol 538 MovieClip [logo] Frame 1
stop();
Symbol 562 Button
on (release) {
if (_root.mouse) {
delete _root.mouse;
return(false);
}
gotoAndStop (2);
}
Symbol 563 Button
on (release) {
if (_root.mouse) {
delete _root.mouse;
return(false);
}
gotoAndStop (4);
}
Symbol 564 Button
on (release) {
if (_root.mouse) {
delete _root.mouse;
return(false);
}
gotoAndStop (3);
}
Symbol 565 Button
on (release) {
if (_root.mouse) {
delete _root.mouse;
return(false);
}
_root.getURL("http://www.crazymokeygames.com", "_blank");
}
Symbol 568 Button
on (release) {
gotoAndStop (1);
}
Symbol 570 Button
on (release) {
_root.gameMode = 0;
_root.gotoAndPlay("gameInit");
_root.bg.removeMovieClip();
_root.onEnterFrame = function () {
};
this.removeMovieClip();
}
Symbol 571 Button
on (release) {
_root.gameMode = 1;
_root.gotoAndPlay("gameInit");
_root.bg.removeMovieClip();
_root.onEnterFrame = function () {
};
this.removeMovieClip();
}
Symbol 573 Button
on (release) {
getURL ("http://scores.crazymonkeygames.com/hs/listscores.php?id=40", "_blank");
}
Symbol 574 Button
on (release) {
getURL ("http://scores.crazymonkeygames.com/hs/listscores.php?id=39", "_blank");
}
Symbol 575 MovieClip Frame 1
stop();
Symbol 584 Button
on (release) {
_root.biceaIgangSkiten();
gotoAndStop (1);
_visible = false;
}
Symbol 585 Button
on (release) {
if (myName.text.length < 3) {
errorMsg.text = "The entered name is too short.";
} else {
var id = myName.text;
var score = _root.score;
if (_root.gameMode == 0) {
_root.submitOurScoreArcade(id, score);
} else if (_root.gameMode == 1) {
_root.submitOurScoreKilling(id, score);
}
_root.biceaIgangSkiten();
gotoAndStop (1);
_visible = false;
}
}
Symbol 586 MovieClip Frame 1
_visible = false;
Symbol 586 MovieClip Frame 12
_visible = true;
Symbol 586 MovieClip Frame 18
trace(_root.myScore);
stop();
Symbol 588 Button
on (release) {
getURL ("http://www.crazymonkeygames.com", "_blank");
}