Frame 1 (8 B)
stop();
Instance of Symbol 3 MovieClip in Frame 1 (352 B)
onClipEvent (enterFrame) {
_root.preloaded = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + "%";
_root.preloaded2 = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_root.preloaded2 >= 100) {
_root.fade._alpha = _root.fade._alpha + 4;
}
if (_root.fade._alpha >= 100) {
_root.nextFrame();
}
}
Instance of Symbol 5 MovieClip "bubbla" in Frame 1 (87 B)
onClipEvent (enterFrame) {
_width = _root.preloaded2;
_height = _root.preloaded2;
}
Instance of Symbol 8 MovieClip in Frame 1 (77 B)
onClipEvent (enterFrame) {
_y = (_root.bubbla._y + _root.bubbla._height);
}
Frame 2 (8 B)
stop();
Instance of Symbol 31 MovieClip in Frame 2 (182 B)
on (release) {
getURL ((("http://www.heavygames.com/index.asp?gameid=projectlife&aid=" + _root.GetUrlParam(_url, "aid=")) + "&refer=") + _root.GetBaseUrl(_url), "_blank");
}
Frame 4 (2.16 KiB) ●
function EncrpytString(strVal) {
var _local7 = "aHfEjcDebChGiAfIjDbEjacD";
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);
}
singelPlayer = 3;
stop();
Instance of Symbol 5 MovieClip "bubbla" in Frame 4 (591 B)
onClipEvent (load) {
sameRandom = random(20);
_width = (10 + sameRandom);
_height = (10 + sameRandom);
_x = random(600);
_y = random(400);
speedY = 1 + random(4);
_alpha = (20 + random(80));
}
onClipEvent (enterFrame) {
if (_root.settings.details == 3) {
_visible = true;
_y = (_y - speedY);
if ((_y + (_width / 2)) < 0) {
_y = (400 + (_width / 2));
sameRandom = random(20);
_width = (10 + sameRandom);
_height = (10 + sameRandom);
_x = random(600);
speedY = 1 + random(4);
_alpha = (20 + random(80));
}
} else {
_visible = false;
}
}
Instance of Symbol 5 MovieClip "bubbla" in Frame 4 (626 B)
onClipEvent (load) {
sameRandom = random(20);
_width = (10 + sameRandom);
_height = (10 + sameRandom);
_x = random(600);
_y = random(400);
speedY = 1 + random(4);
_alpha = (20 + random(80));
}
onClipEvent (enterFrame) {
if ((_root.settings.details == 2) || (_root.settings.details == 3)) {
_visible = true;
_y = (_y - speedY);
if ((_y + (_width / 2)) < 0) {
_y = (400 + (_width / 2));
sameRandom = random(20);
_width = (10 + sameRandom);
_height = (10 + sameRandom);
_x = random(600);
speedY = 1 + random(4);
_alpha = (20 + random(80));
}
} else {
_visible = false;
}
}
Instance of Symbol 5 MovieClip "bubbla" in Frame 4 (491 B)
onClipEvent (load) {
sameRandom = random(20);
_width = (10 + sameRandom);
_height = (10 + sameRandom);
_x = random(600);
_y = random(400);
speedY = 1 + random(4);
_alpha = (20 + random(80));
}
onClipEvent (enterFrame) {
_y = (_y - speedY);
if ((_y + (_width / 2)) < 0) {
_y = (400 + (_width / 2));
sameRandom = random(20);
_width = (10 + sameRandom);
_height = (10 + sameRandom);
_x = random(600);
speedY = 1 + random(4);
_alpha = (20 + random(80));
}
}
Instance of Symbol 5 MovieClip "bubbla" in Frame 4 (626 B)
onClipEvent (load) {
sameRandom = random(20);
_width = (10 + sameRandom);
_height = (10 + sameRandom);
_x = random(600);
_y = random(400);
speedY = 1 + random(4);
_alpha = (20 + random(80));
}
onClipEvent (enterFrame) {
if ((_root.settings.details == 2) || (_root.settings.details == 3)) {
_visible = true;
_y = (_y - speedY);
if ((_y + (_width / 2)) < 0) {
_y = (400 + (_width / 2));
sameRandom = random(20);
_width = (10 + sameRandom);
_height = (10 + sameRandom);
_x = random(600);
speedY = 1 + random(4);
_alpha = (20 + random(80));
}
} else {
_visible = false;
}
}
Instance of Symbol 5 MovieClip "bubbla" in Frame 4 (491 B)
onClipEvent (load) {
sameRandom = random(20);
_width = (10 + sameRandom);
_height = (10 + sameRandom);
_x = random(600);
_y = random(400);
speedY = 1 + random(4);
_alpha = (20 + random(80));
}
onClipEvent (enterFrame) {
_y = (_y - speedY);
if ((_y + (_width / 2)) < 0) {
_y = (400 + (_width / 2));
sameRandom = random(20);
_width = (10 + sameRandom);
_height = (10 + sameRandom);
_x = random(600);
speedY = 1 + random(4);
_alpha = (20 + random(80));
}
}
Instance of Symbol 39 MovieClip in Frame 4 (242 B)
onClipEvent (enterFrame) {
if (_root.settings.details == 2) {
_visible = true;
_x = _root.boll._x;
_y = _root.boll._y;
_width = (_root.boll._width + 20);
_height = (_root.boll._height + 20);
} else {
_visible = false;
}
}
Instance of Symbol 39 MovieClip in Frame 4 (254 B)
onClipEvent (enterFrame) {
if (_root.settings.details == 2) {
_visible = true;
_x = _root.ondBoll._x;
_y = _root.ondBoll._y;
_width = (_root.ondBoll._width + 20);
_height = (_root.ondBoll._height + 20);
} else {
_visible = false;
}
}
Instance of Symbol 41 MovieClip "svans1" in Frame 4 (240 B)
onClipEvent (enterFrame) {
if (_root.settings.details == 3) {
_visible = true;
_x = _root.boll._x;
_y = _root.boll._y;
_width = (_root.boll._width + 3);
_height = (_root.boll._height + 3);
} else {
_visible = false;
}
}
Instance of Symbol 41 MovieClip "svans2" in Frame 4 (248 B)
onClipEvent (enterFrame) {
if (_root.settings.details == 3) {
_visible = true;
_x = _root.svans1._x;
_y = _root.svans1._y;
_width = (_root.svans1._width + 4);
_height = (_root.svans1._height + 4);
} else {
_visible = false;
}
}
Instance of Symbol 41 MovieClip "svans3" in Frame 4 (248 B)
onClipEvent (enterFrame) {
if (_root.settings.details == 3) {
_visible = true;
_x = _root.svans2._x;
_y = _root.svans2._y;
_width = (_root.svans2._width + 6);
_height = (_root.svans2._height + 6);
} else {
_visible = false;
}
}
Instance of Symbol 41 MovieClip "svans4" in Frame 4 (248 B)
onClipEvent (enterFrame) {
if (_root.settings.details == 3) {
_visible = true;
_x = _root.svans3._x;
_y = _root.svans3._y;
_width = (_root.svans3._width + 8);
_height = (_root.svans3._height + 8);
} else {
_visible = false;
}
}
Instance of Symbol 41 MovieClip "svans5" in Frame 4 (250 B)
onClipEvent (enterFrame) {
if (_root.settings.details == 3) {
_visible = true;
_x = _root.svans4._x;
_y = _root.svans4._y;
_width = (_root.svans4._width + 10);
_height = (_root.svans4._height + 10);
} else {
_visible = false;
}
}
Instance of Symbol 41 MovieClip "svans6" in Frame 4 (250 B)
onClipEvent (enterFrame) {
if (_root.settings.details == 3) {
_visible = true;
_x = _root.svans5._x;
_y = _root.svans5._y;
_width = (_root.svans5._width + 12);
_height = (_root.svans5._height + 12);
} else {
_visible = false;
}
}
Instance of Symbol 41 MovieClip "svans21" in Frame 4 (252 B)
onClipEvent (enterFrame) {
if (_root.settings.details == 3) {
_visible = true;
_x = _root.ondBoll._x;
_y = _root.ondBoll._y;
_width = (_root.ondBoll._width + 3);
_height = (_root.ondBoll._height + 3);
} else {
_visible = false;
}
}
Instance of Symbol 41 MovieClip "svans22" in Frame 4 (252 B)
onClipEvent (enterFrame) {
if (_root.settings.details == 3) {
_visible = true;
_x = _root.svans21._x;
_y = _root.svans21._y;
_width = (_root.svans21._width + 4);
_height = (_root.svans21._height + 4);
} else {
_visible = false;
}
}
Instance of Symbol 41 MovieClip "svans23" in Frame 4 (252 B)
onClipEvent (enterFrame) {
if (_root.settings.details == 3) {
_visible = true;
_x = _root.svans22._x;
_y = _root.svans22._y;
_width = (_root.svans22._width + 6);
_height = (_root.svans22._height + 6);
} else {
_visible = false;
}
}
Instance of Symbol 41 MovieClip "svans24" in Frame 4 (252 B)
onClipEvent (enterFrame) {
if (_root.settings.details == 3) {
_visible = true;
_x = _root.svans23._x;
_y = _root.svans23._y;
_width = (_root.svans23._width + 8);
_height = (_root.svans23._height + 8);
} else {
_visible = false;
}
}
Instance of Symbol 41 MovieClip "svans25" in Frame 4 (254 B)
onClipEvent (enterFrame) {
if (_root.settings.details == 3) {
_visible = true;
_x = _root.svans24._x;
_y = _root.svans24._y;
_width = (_root.svans24._width + 10);
_height = (_root.svans24._height + 10);
} else {
_visible = false;
}
}
Instance of Symbol 41 MovieClip "svans26" in Frame 4 (254 B)
onClipEvent (enterFrame) {
if (_root.settings.details == 3) {
_visible = true;
_x = _root.svans25._x;
_y = _root.svans25._y;
_width = (_root.svans25._width + 12);
_height = (_root.svans25._height + 12);
} else {
_visible = false;
}
}
Instance of Symbol 98 MovieClip "boll" in Frame 4 (1.09 KiB) ●
onClipEvent (load) {
speedX = 0;
speedY = 0;
}
onClipEvent (enterFrame) {
musX = _root.food._x;
musY = _root.food._y;
_x = (_x + speedX);
_y = (_y + speedY);
if (_x < musX) {
if (speedX < 10) {
speedX = speedX + 0.35;
}
} else if (speedX > 0) {
speedX = speedX - 0.35;
}
if (_x > musX) {
if (speedX > -10) {
speedX = speedX - 0.35;
}
} else if (speedX < 0) {
speedX = speedX + 0.35;
}
if (_y < musY) {
if (speedY < 10) {
speedY = speedY + 0.35;
}
} else if (speedY > 0) {
speedY = speedY - 0.35;
}
if (_y > musY) {
if (speedY > -10) {
speedY = speedY - 0.35;
}
} else if (speedY < 0) {
speedY = speedY + 0.35;
}
if ((_x + (_width / 2)) > 600) {
speedX = speedX - (speedX * 2);
_x = (600 - (_width / 2));
}
if ((_y + (_height / 2)) > 400) {
speedY = speedY - (speedY * 2);
_y = (400 - (_height / 2));
}
if ((_y - (_height / 2)) < 0) {
speedY = speedY - (speedY * 2);
_y = (0 + (_height / 2));
}
if ((_x - (_width / 2)) < 0) {
speedX = speedX - (speedX * 2);
_x = (0 + (_width / 2));
}
}
Instance of Symbol 110 MovieClip "food" in Frame 4 (658 B)
onClipEvent (load) {
_x = (50 + random(500));
_y = (50 + random(300));
}
onClipEvent (enterFrame) {
if (hitTest(_root.boll.hitBox)) {
_root.food.gotoAndPlay(538);
_x = (50 + random(500));
_y = (50 + random(300));
_root.boll._width = _root.boll._width * 1.05;
_root.boll._height = _root.boll._height * 1.05;
stopDrag();
}
if (hitTest(_root.ondBoll.hitBox)) {
_root.food.gotoAndPlay(538);
_x = (50 + random(500));
_y = (50 + random(300));
_root.ondBoll._width = _root.ondBoll._width * 1.05;
_root.ondBoll._height = _root.ondBoll._height * 1.05;
stopDrag();
}
}
on (press) {
startDrag (this);
}
on (release) {
stopDrag();
}
Instance of Symbol 117 MovieClip in Frame 4 (143 B)
on (keyPress "<Space>") {
_root.meny.time = 350;
_root.meny.upFade = 1;
_root.demoSign._visible = false;
_root.meny.gotoAndStop(1);
}
Instance of Symbol 142 MovieClip "ondBoll" in Frame 4 (1.09 KiB) ●
onClipEvent (load) {
speedX = 0;
speedY = 0;
}
onClipEvent (enterFrame) {
musX = _root.food._x;
musY = _root.food._y;
_x = (_x + speedX);
_y = (_y + speedY);
if (_x < musX) {
if (speedX < 10) {
speedX = speedX + 0.35;
}
} else if (speedX > 0) {
speedX = speedX - 0.35;
}
if (_x > musX) {
if (speedX > -10) {
speedX = speedX - 0.35;
}
} else if (speedX < 0) {
speedX = speedX + 0.35;
}
if (_y < musY) {
if (speedY < 10) {
speedY = speedY + 0.35;
}
} else if (speedY > 0) {
speedY = speedY - 0.35;
}
if (_y > musY) {
if (speedY > -10) {
speedY = speedY - 0.35;
}
} else if (speedY < 0) {
speedY = speedY + 0.35;
}
if ((_x + (_width / 2)) > 600) {
speedX = speedX - (speedX * 2);
_x = (600 - (_width / 2));
}
if ((_y + (_height / 2)) > 400) {
speedY = speedY - (speedY * 2);
_y = (400 - (_height / 2));
}
if ((_y - (_height / 2)) < 0) {
speedY = speedY - (speedY * 2);
_y = (0 + (_height / 2));
}
if ((_x - (_width / 2)) < 0) {
speedX = speedX - (speedX * 2);
_x = (0 + (_width / 2));
}
}
Instance of Symbol 5 MovieClip "bubbla" in Frame 4 (491 B)
onClipEvent (load) {
sameRandom = random(20);
_width = (40 + sameRandom);
_height = (40 + sameRandom);
_x = random(600);
_y = random(400);
speedY = 1 + random(4);
_alpha = (20 + random(80));
}
onClipEvent (enterFrame) {
_y = (_y - speedY);
if ((_y + (_width / 2)) < 0) {
_y = (400 + (_width / 2));
sameRandom = random(20);
_width = (40 + sameRandom);
_height = (40 + sameRandom);
_x = random(600);
speedY = 1 + random(4);
_alpha = (20 + random(80));
}
}
Instance of Symbol 5 MovieClip "bubbla" in Frame 4 (491 B)
onClipEvent (load) {
sameRandom = random(20);
_width = (40 + sameRandom);
_height = (40 + sameRandom);
_x = random(600);
_y = random(400);
speedY = 1 + random(4);
_alpha = (20 + random(80));
}
onClipEvent (enterFrame) {
_y = (_y - speedY);
if ((_y + (_width / 2)) < 0) {
_y = (400 + (_width / 2));
sameRandom = random(20);
_width = (40 + sameRandom);
_height = (40 + sameRandom);
_x = random(600);
speedY = 1 + random(4);
_alpha = (20 + random(80));
}
}
Instance of Symbol 5 MovieClip "bubbla" in Frame 4 (626 B)
onClipEvent (load) {
sameRandom = random(20);
_width = (40 + sameRandom);
_height = (40 + sameRandom);
_x = random(600);
_y = random(400);
speedY = 1 + random(4);
_alpha = (20 + random(80));
}
onClipEvent (enterFrame) {
if ((_root.settings.details == 2) || (_root.settings.details == 3)) {
_visible = true;
_y = (_y - speedY);
if ((_y + (_width / 2)) < 0) {
_y = (400 + (_width / 2));
sameRandom = random(20);
_width = (40 + sameRandom);
_height = (40 + sameRandom);
_x = random(600);
speedY = 1 + random(4);
_alpha = (20 + random(80));
}
} else {
_visible = false;
}
}
Instance of Symbol 5 MovieClip "bubbla" in Frame 4 (591 B)
onClipEvent (load) {
sameRandom = random(20);
_width = (40 + sameRandom);
_height = (40 + sameRandom);
_x = random(600);
_y = random(400);
speedY = 1 + random(4);
_alpha = (20 + random(80));
}
onClipEvent (enterFrame) {
if (_root.settings.details == 3) {
_visible = true;
_y = (_y - speedY);
if ((_y + (_width / 2)) < 0) {
_y = (400 + (_width / 2));
sameRandom = random(20);
_width = (40 + sameRandom);
_height = (40 + sameRandom);
_x = random(600);
speedY = 1 + random(4);
_alpha = (20 + random(80));
}
} else {
_visible = false;
}
}
Instance of Symbol 5 MovieClip "bubbla" in Frame 4 (626 B)
onClipEvent (load) {
sameRandom = random(20);
_width = (40 + sameRandom);
_height = (40 + sameRandom);
_x = random(600);
_y = random(400);
speedY = 1 + random(4);
_alpha = (20 + random(80));
}
onClipEvent (enterFrame) {
if ((_root.settings.details == 2) || (_root.settings.details == 3)) {
_visible = true;
_y = (_y - speedY);
if ((_y + (_width / 2)) < 0) {
_y = (400 + (_width / 2));
sameRandom = random(20);
_width = (40 + sameRandom);
_height = (40 + sameRandom);
_x = random(600);
speedY = 1 + random(4);
_alpha = (20 + random(80));
}
} else {
_visible = false;
}
}
Instance of Symbol 190 MovieClip "meny" in Frame 4 (559 B)
onClipEvent (load) {
time = 350;
_root.demoSign._visible = false;
}
onClipEvent (enterFrame) {
time--;
if (time < 0) {
this.gotoAndStop(2);
_root.demoSign._visible = true;
if (time > -55) {
_alpha = (100 - (Math.abs(time) * 2));
}
}
if ((upFade == 1) && (_alpha < 100)) {
_alpha = (_alpha + 4);
}
if ((upFade == 1) && (_alpha > 100)) {
upFade = 0;
}
if ((time > 0) && (Key.isDown(78))) {
_root.gotoAndStop(5);
}
if ((time > 0) && (Key.isDown(77))) {
_root.gotoAndStop(6);
}
}
Instance of Symbol 204 MovieClip "help" in Frame 4 (148 B)
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_visible = false;
_root.meny._visible = true;
}
}
Instance of Symbol 206 MovieClip "settings" in Frame 4 (284 B)
onClipEvent (load) {
details = 3;
quality = 3;
}
onClipEvent (enterFrame) {
if (quality == 4) {
_root._quality = "BEST";
}
if (quality == 3) {
_root._quality = "HIGH";
}
if (quality == 2) {
_root._quality = "MEDIUM";
}
if (quality == 1) {
_root._quality = "LOW";
}
}
Frame 5 (65 B)
score = 10;
singelPlayer = 1;
scoreReal = 0;
go = 0;
stop();
Instance of Symbol 110 MovieClip "food" in Frame 5 (995 B)
onClipEvent (load) {
_x = (50 + random(500));
_y = (50 + random(300));
storlekOnd = 10;
}
onClipEvent (enterFrame) {
if (hitTest(_root.boll.hitBox)) {
if (_root.boll.dead == 0) {
_root.scoreReal = _root.scoreReal + 5;
_root.score5._x = _x;
_root.score5._y = _y;
_root.score5._alpha = 100;
if (_root.boll.redAlpha._alpha >= 0) {
_root.boll.redAlpha._alpha = _root.boll.redAlpha._alpha - 5;
}
}
_root.food.gotoAndPlay(538);
_x = (50 + random(500));
_y = (50 + random(300));
if (_root.score < 40) {
_root.score++;
_root.boll._width = _root.boll._width * 1.05;
_root.boll._height = _root.boll._height * 1.05;
}
}
if ((_root.boll.dead == 1) && (hitTest(_root.ondBoll.hitBox))) {
_root.food.gotoAndPlay(538);
if (storlekOnd < 40) {
storlekOnd++;
_root.ondBoll._width = _root.ondBoll._width * 1.05;
_root.ondBoll._height = _root.ondBoll._height * 1.05;
}
_x = (50 + random(500));
_y = (50 + random(300));
}
}
Instance of Symbol 98 MovieClip "boll" in Frame 5 (2.38 KiB) ●
onClipEvent (load) {
speedX = 0;
speedY = 0;
dead = 0;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
if (redAlpha._alpha >= 100) {
dead = 1;
}
if (_root.score == 0) {
dead = 1;
}
if (dead == 0) {
_x = (_x + speedX);
_y = (_y + speedY);
if (speedX > 0) {
speedX = speedX - 0.05;
}
if (speedX < 0) {
speedX = speedX + 0.05;
}
if (speedY > 0) {
speedY = speedY - 0.05;
}
if (speedY < 0) {
speedY = speedY + 0.05;
}
if (Key.isDown(39)) {
if (speedX < (_root.score / 2)) {
speedX = speedX + (0.02 * _root.score);
}
} else if (speedX > 0) {
speedX = speedX - (0.02 * _root.score);
}
if (Key.isDown(37)) {
if (speedX > (-(_root.score / 2))) {
speedX = speedX - (0.02 * _root.score);
}
} else if (speedX < 0) {
speedX = speedX + (0.02 * _root.score);
}
if (Key.isDown(40)) {
if (speedY < (_root.score / 2)) {
speedY = speedY + (0.02 * _root.score);
}
} else if (speedY > 0) {
speedY = speedY - (0.02 * _root.score);
}
if (Key.isDown(38)) {
if (speedY > (-(_root.score / 2))) {
speedY = speedY - (0.02 * _root.score);
}
} else if (speedY < 0) {
speedY = speedY + (0.02 * _root.score);
}
}
if ((_x + (_width / 2)) > 600) {
speedX = speedX - (speedX * 2);
_x = (600 - (_width / 2));
}
if ((_y + (_height / 2)) > 400) {
speedY = speedY - (speedY * 2);
_y = (400 - (_height / 2));
}
if ((_y - (_height / 2)) < 0) {
speedY = speedY - (speedY * 2);
_y = (0 + (_height / 2));
}
if ((_x - (_width / 2)) < 0) {
speedX = speedX - (speedX * 2);
_x = (0 + (_width / 2));
}
if (dead == 1) {
musX = _root.food._x;
musY = _root.food._y;
_x = (_x + speedX);
_y = (_y + speedY);
if (_x < musX) {
if (speedX < 15) {
speedX = speedX + 0.1;
}
} else if (speedX > 0) {
speedX = speedX - 0.1;
}
if (_x > musX) {
if (speedX > -15) {
speedX = speedX - 0.1;
}
} else if (speedX < 0) {
speedX = speedX + 0.1;
}
if (_y < musY) {
if (speedY < 15) {
speedY = speedY + 0.1;
}
} else if (speedY > 0) {
speedY = speedY - 0.1;
}
if (_y > musY) {
if (speedY > -15) {
speedY = speedY - 0.1;
}
} else if (speedY < 0) {
speedY = speedY + 0.1;
}
}
}
}
Instance of Symbol 142 MovieClip "ondBoll" in Frame 5 (2.17 KiB) ●
onClipEvent (load) {
speedX = 0;
speedY = 0;
singelPlayer == 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
if (_root.boll.dead == 0) {
musX = _root.boll._x;
musY = _root.boll._y;
_x = (_x + speedX);
_y = (_y + speedY);
if (_x < musX) {
if (speedX < (1.3 * (_root.score / 2))) {
speedX = speedX + (0.013 * _root.score);
}
} else if (speedX > 0) {
speedX = speedX - (0.013 * _root.score);
}
if (_x > musX) {
if (speedX > (-1.3 * (_root.score / 2))) {
speedX = speedX - (0.013 * _root.score);
}
} else if (speedX < 0) {
speedX = speedX + (0.013 * _root.score);
}
if (_y < musY) {
if (speedY < (1.3 * (_root.score / 2))) {
speedY = speedY + (0.013 * _root.score);
}
} else if (speedY > 0) {
speedY = speedY - (0.013 * _root.score);
}
if (_y > musY) {
if (speedY > (-1.3 * (_root.score / 2))) {
speedY = speedY - (0.013 * _root.score);
}
} else if (speedY < 0) {
speedY = speedY + (0.013 * _root.score);
}
}
if ((_x + (_width / 2)) > 600) {
speedX = speedX - (speedX * 2);
_x = (600 - (_width / 2));
}
if ((_y + (_height / 2)) > 400) {
speedY = speedY - (speedY * 2);
_y = (400 - (_height / 2));
}
if ((_y - (_height / 2)) < 0) {
speedY = speedY - (speedY * 2);
_y = (0 + (_height / 2));
}
if ((_x - (_width / 2)) < 0) {
speedX = speedX - (speedX * 2);
_x = (0 + (_width / 2));
}
if (_root.boll.dead == 1) {
musX = _root.food._x;
musY = _root.food._y;
_x = (_x + speedX);
_y = (_y + speedY);
if (_x < musX) {
if (speedX < 15) {
speedX = speedX + 0.1;
}
} else if (speedX > 0) {
speedX = speedX - 0.1;
}
if (_x > musX) {
if (speedX > -15) {
speedX = speedX - 0.1;
}
} else if (speedX < 0) {
speedX = speedX + 0.1;
}
if (_y < musY) {
if (speedY < 15) {
speedY = speedY + 0.1;
}
} else if (speedY > 0) {
speedY = speedY - 0.1;
}
if (_y > musY) {
if (speedY > -15) {
speedY = speedY - 0.1;
}
} else if (speedY < 0) {
speedY = speedY + 0.1;
}
}
}
}
Instance of Symbol 210 MovieClip "score5" in Frame 5 (119 B)
onClipEvent (enterFrame) {
if (_alpha >= 0) {
_alpha = (_alpha - 2);
}
if (_y > 0) {
_y = (_y - 2);
}
}
Instance of Symbol 212 MovieClip in Frame 5 (196 B)
onClipEvent (enterFrame) {
_x = _root.boll._x;
_y = ((_root.boll._y + (_root.boll._height / 2)) + 10);
if ((_root.boll.dead == 1) && (_alpha >= 0)) {
_alpha = (_alpha - 4);
}
}
Instance of Symbol 227 MovieClip "gameOver" in Frame 5 (182 B)
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if ((_alpha <= 100) && (_root.boll.dead == 1)) {
_alpha = (_alpha + 10);
_x = 300;
_y = 200;
}
}
Frame 6 (63 B)
score = 10;
score2 = 10;
singelPlayer = 0;
go = 0;
stop();
Instance of Symbol 110 MovieClip "food" in Frame 6 (727 B)
onClipEvent (load) {
_x = (50 + random(500));
_y = (50 + random(300));
}
onClipEvent (enterFrame) {
if (hitTest(_root.boll.hitBox)) {
_root.food.gotoAndPlay(538);
_x = (50 + random(500));
_y = (50 + random(300));
if (_root.boll._width < 165) {
_root.score = _root.score + 0.5;
_root.boll._width = _root.boll._width * 1.05;
_root.boll._height = _root.boll._height * 1.05;
}
}
if (hitTest(_root.ondBoll.hitBox)) {
_root.food.gotoAndPlay(538);
_x = (50 + random(500));
_y = (50 + random(300));
if (_root.ondBoll._width < 165) {
_root.score2 = _root.score2 + 0.5;
_root.ondBoll._width = _root.ondBoll._width * 1.05;
_root.ondBoll._height = _root.ondBoll._height * 1.05;
}
}
}
Instance of Symbol 98 MovieClip "boll" in Frame 6 (1.52 KiB) ●
onClipEvent (load) {
speedX = 0;
speedY = 0;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_x = (_x + speedX);
_y = (_y + speedY);
if (speedX > 0) {
speedX = speedX - 0.05;
}
if (speedX < 0) {
speedX = speedX + 0.05;
}
if (speedY > 0) {
speedY = speedY - 0.05;
}
if (speedY < 0) {
speedY = speedY + 0.05;
}
if (Key.isDown(39)) {
if (speedX < (_root.score / 2)) {
speedX = speedX + (0.02 * _root.score);
}
} else if (speedX > 0) {
speedX = speedX - (0.02 * _root.score);
}
if (Key.isDown(37)) {
if (speedX > (-(_root.score / 2))) {
speedX = speedX - (0.02 * _root.score);
}
} else if (speedX < 0) {
speedX = speedX + (0.02 * _root.score);
}
if (Key.isDown(40)) {
if (speedY < (_root.score / 2)) {
speedY = speedY + (0.02 * _root.score);
}
} else if (speedY > 0) {
speedY = speedY - (0.02 * _root.score);
}
if (Key.isDown(38)) {
if (speedY > (-(_root.score / 2))) {
speedY = speedY - (0.02 * _root.score);
}
} else if (speedY < 0) {
speedY = speedY + (0.02 * _root.score);
}
if ((_x + (_width / 2)) > 600) {
speedX = speedX - (speedX * 2);
_x = (600 - (_width / 2));
}
if ((_y + (_height / 2)) > 400) {
speedY = speedY - (speedY * 2);
_y = (400 - (_height / 2));
}
if ((_y - (_height / 2)) < 0) {
speedY = speedY - (speedY * 2);
_y = (0 + (_height / 2));
}
if ((_x - (_width / 2)) < 0) {
speedX = speedX - (speedX * 2);
_x = (0 + (_width / 2));
}
}
}
Instance of Symbol 117 MovieClip "sound" in Frame 6 (130 B)
onClipEvent (enterFrame) {
if (_root.score <= 5) {
_root.score = 0;
}
if (_root.score2 <= 5) {
_root.score2 = 0;
}
}
Instance of Symbol 142 MovieClip "ondBoll" in Frame 6 (1.53 KiB) ●
onClipEvent (load) {
speedX = 0;
speedY = 0;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_x = (_x + speedX);
_y = (_y + speedY);
if (speedX > 0) {
speedX = speedX - 0.05;
}
if (speedX < 0) {
speedX = speedX + 0.05;
}
if (speedY > 0) {
speedY = speedY - 0.05;
}
if (speedY < 0) {
speedY = speedY + 0.05;
}
if (Key.isDown(68)) {
if (speedX < (_root.score2 / 2)) {
speedX = speedX + (0.02 * _root.score2);
}
} else if (speedX > 0) {
speedX = speedX - (0.02 * _root.score2);
}
if (Key.isDown(65)) {
if (speedX > (-(_root.score2 / 2))) {
speedX = speedX - (0.02 * _root.score2);
}
} else if (speedX < 0) {
speedX = speedX + (0.02 * _root.score2);
}
if (Key.isDown(83)) {
if (speedY < (_root.score2 / 2)) {
speedY = speedY + (0.02 * _root.score2);
}
} else if (speedY > 0) {
speedY = speedY - (0.02 * _root.score2);
}
if (Key.isDown(87)) {
if (speedY > (-(_root.score2 / 2))) {
speedY = speedY - (0.02 * _root.score2);
}
} else if (speedY < 0) {
speedY = speedY + (0.02 * _root.score2);
}
if ((_x + (_width / 2)) > 600) {
speedX = speedX - (speedX * 2);
_x = (600 - (_width / 2));
}
if ((_y + (_height / 2)) > 400) {
speedY = speedY - (speedY * 2);
_y = (400 - (_height / 2));
}
if ((_y - (_height / 2)) < 0) {
speedY = speedY - (speedY * 2);
_y = (0 + (_height / 2));
}
if ((_x - (_width / 2)) < 0) {
speedX = speedX - (speedX * 2);
_x = (0 + (_width / 2));
}
}
}
Instance of Symbol 238 MovieClip in Frame 6 (637 B)
onClipEvent (enterFrame) {
if (_root.score2 <= 5) {
this.gotoAndStop(1);
_x = 300;
_y = 200;
if (Key.isDown(32)) {
stopAllSounds();
_root.gotoAndStop(4);
}
}
if (_root.score <= 5) {
this.gotoAndStop(3);
_x = 300;
_y = 200;
if (Key.isDown(32)) {
stopAllSounds();
_root.gotoAndStop(4);
}
}
if ((_root.score == 0) && (_root.score2 == 0)) {
this.gotoAndStop(2);
_x = 300;
_y = 200;
if (Key.isDown(32)) {
stopAllSounds();
_root.gotoAndStop(4);
}
}
}
on (release) {
if ((_root.score <= 5) || (_root.score2 <= 5)) {
stopAllSounds();
_root.gotoAndStop(4);
}
}
Symbol 31 MovieClip Frame 80 (28 B)
stop();
_root.nextFrame();
Instance of Symbol 32 MovieClip in Symbol 36 MovieClip Frame 1 (65 B)
on (release) {
getURL ("http://www.deadtoast.com/", "_blank");
}
Instance of Symbol 32 MovieClip in Symbol 36 MovieClip Frame 1 (65 B)
on (release) {
getURL ("http://www.deadtoast.com/", "_blank");
}
Symbol 36 MovieClip Frame 150 (28 B)
stop();
_root.nextFrame();
Symbol 110 MovieClip Frame 537 (17 B)
gotoAndPlay (1);
Symbol 110 MovieClip Frame 555 (17 B)
gotoAndPlay (1);
Symbol 117 MovieClip Frame 250 (26 B)
gotoAndPlay(random(250));
Instance of Symbol 43 MovieClip "hitBox" in Symbol 142 MovieClip Frame 1 (1.29 KiB) ●
onClipEvent (enterFrame) {
if ((((_root.score > 5) && (_root.score2 > 5)) && (_root.singelPlayer == 0)) && (hitTest(_root.boll.hitBox))) {
_root.ondBoll._width = _root.ondBoll._width * 0.95;
_root.ondBoll._height = _root.ondBoll._height * 0.95;
_root.boll._width = _root.boll._width * 0.95;
_root.boll._height = _root.boll._height * 0.95;
_root.score = _root.score - 0.5;
_root.score2 = _root.score2 - 0.5;
}
if ((((_root.boll.dead == 0) && (_root.singelPlayer == 1)) && (_root.score > 0)) && (hitTest(_root.boll.hitBox))) {
_root.ondBoll._width = _root.ondBoll._width * 1.01;
_root.ondBoll._height = _root.ondBoll._height * 1.01;
_root.score = _root.score - 0.5;
_root.boll._width = _root.boll._width * 0.98;
_root.boll._height = _root.boll._height * 0.98;
if (_root.boll.redAlpha._alpha < 100) {
_root.boll.redAlpha._alpha = _root.boll.redAlpha._alpha + 8;
}
}
if ((_root.singelPlayer == 3) && (hitTest(_root.boll.hitBox))) {
_root.ondBoll._width = _root.ondBoll._width * 0.99;
_root.ondBoll._height = _root.ondBoll._height * 0.99;
_root.boll._width = _root.boll._width * 0.99;
_root.boll._height = _root.boll._height * 0.99;
_root.boll._y = _root.boll._y + 2;
_root.ondBoll._y = _root.ondBoll._y - 2;
}
}
Symbol 155 Button (39 B)
on (release) {
_root.gotoAndStop(5);
}
Symbol 160 Button (39 B)
on (release) {
_root.gotoAndStop(6);
}
Symbol 164 Button (75 B)
on (release) {
_root.help._visible = true;
_root.meny._visible = false;
}
Symbol 167 Button (182 B)
on (release) {
getURL ((("http://www.heavygames.com/index.asp?gameid=projectlife&aid=" + _root.GetUrlParam(_url, "aid=")) + "&refer=") + _root.GetBaseUrl(_url), "_blank");
}
Symbol 170 Button (98 B)
on (release) {
getURL ("http://www.heavygames.com/projectlife/view_high_scores.asp", "_blank");
}
Instance of Symbol 177 MovieClip in Symbol 182 MovieClip Frame 1 (85 B)
on (release) {
if (_root.settings.quality < 4) {
_root.settings.quality++;
}
}
Instance of Symbol 179 MovieClip in Symbol 182 MovieClip Frame 1 (85 B)
on (release) {
if (_root.settings.quality > 1) {
_root.settings.quality--;
}
}
Instance of Symbol 177 MovieClip in Symbol 182 MovieClip Frame 1 (85 B)
on (release) {
if (_root.settings.details < 3) {
_root.settings.details++;
}
}
Instance of Symbol 179 MovieClip in Symbol 182 MovieClip Frame 1 (85 B)
on (release) {
if (_root.settings.details > 1) {
_root.settings.details--;
}
}
Symbol 190 MovieClip Frame 1 (8 B)
stop();
Instance of Symbol 182 MovieClip in Symbol 190 MovieClip Frame 1 (71 B)
onClipEvent (enterFrame) {
if (_y > 90) {
_y = (_y * 0.95);
}
}
Instance of Symbol 184 MovieClip in Symbol 190 MovieClip Frame 1 (88 B)
on (release) {
getURL ("http://www.heavygames.com/free_content/index.asp", "_blank");
}
Instance of Symbol 188 MovieClip in Symbol 190 MovieClip Frame 1 (182 B)
on (release) {
getURL ((("http://www.heavygames.com/index.asp?gameid=projectlife&aid=" + _root.GetUrlParam(_url, "aid=")) + "&refer=") + _root.GetBaseUrl(_url), "_blank");
}
Symbol 190 MovieClip Frame 2 (8 B)
stop();
Instance of Symbol 182 MovieClip in Symbol 190 MovieClip Frame 2 (72 B)
onClipEvent (enterFrame) {
if (_y < 700) {
_y = (_y * 1.05);
}
}
Instance of Symbol 222 MovieClip in Symbol 227 MovieClip Frame 1 (315 B)
onClipEvent (load) {
clicked = false;
}
on (release) {
if (clicked != true) {
trace("clicked");
var strOut = ((_parent.playerName.text + "|") + _root.scoreReal);
var strOut2 = _root.EncrpytString(strOut);
getURL ("http://www.heavygames.com/projectlife/hs.asp?" + strOut2, "_blank");
clicked = true;
}
}
Instance of Symbol 224 MovieClip in Symbol 227 MovieClip Frame 1 (91 B)
on (release) {
if (_root.boll.dead == 1) {
stopAllSounds();
_root.gotoAndStop(4);
}
}
Instance of Symbol 226 MovieClip in Symbol 227 MovieClip Frame 1 (98 B)
on (release) {
getURL ("http://www.heavygames.com/projectlife/view_high_scores.asp", "_blank");
}
Symbol 232 MovieClip Frame 60 (14 B)
_root.go = 1;
Symbol 232 MovieClip Frame 93 (19 B)
_visible = false;
Symbol 238 MovieClip Frame 1 (8 B)
stop();