Frame 1
System.security.allowDomain("*");
stop();
Frame 2
stop();
Frame 3
stop();
Frame 4
function SNDexploze() {
zvuk0 = new Sound(cross);
zvuk0.attachSound("explode");
zvuk0.setVolume(40);
zvuk0.start(0, 1);
}
function SNDatom() {
zvuk10 = new Sound(PUbomb);
zvuk10.attachSound("atom");
zvuk10.start(0, 1);
zvuk1.setVolume(0);
zvuk10.setVolume(100);
}
function SNDgame() {
zvuk1 = new Sound();
zvuk1.attachSound("dritte");
zvuk1.setVolume(100);
zvuk1.start(0, 1000);
}
function SNDpowerup() {
zvuk2 = new Sound();
zvuk2.attachSound("powerup");
zvuk2.setVolume(100);
zvuk2.start(0, 1);
}
function SNDshot() {
zvuk3 = new Sound();
zvuk3.attachSound("SNDshot");
zvuk3.setVolume(100);
zvuk3.start(0, 1);
}
function SNDvictory() {
zvuk4 = new Sound();
zvuk4.attachSound("victory");
zvuk4.setVolume(40);
zvuk4.start(0, 1);
}
function SNDfasttrack() {
zvuk5 = new Sound();
zvuk5.attachSound("fastrack");
zvuk5.setVolume(40);
zvuk5.start(0, 1000);
}
function SNDendgame() {
zvuk6 = new Sound();
zvuk6.attachSound("endgame");
zvuk6.setVolume(40);
zvuk6.start(0, 1);
}
function SNDnewlevel() {
zvuk7 = new Sound();
zvuk7.attachSound("newlevel");
zvuk7.setVolume(40);
zvuk7.start(0, 1);
}
function secondLive() {
if (HS) {
HSwaiting++;
if (HSwaiting > 36) {
tellTarget (_root) {
getURL ("http://scores.funny-games.biz/show.php?game_id=21&difficulty=0", "_blank");
};
HS = false;
score = "score sent";
HSwaiting = 0;
}
}
powerup._x = powerup._x + pux;
powerup._y = powerup._y + puy;
powerup._rotation = powerup._rotation + (5 * (pux / Math.abs(pux)));
if ((powerup._x < -10) or (powerup._x > 610)) {
PUcounter = PUcounter - random(4);
}
if (PUcounter < 0) {
PUcounter = PUcounterlimit;
chose = random(200);
if (chose < 10) {
powerup = PUlifeup;
PU_index = 1;
}
if ((chose > 10) and (chose <= 20)) {
powerup = PUlifedown;
PU_index = 2;
}
if ((chose > 20) and (chose <= 35)) {
powerup = PUgravity;
PU_index = 3;
}
if ((chose > 35) and (chose <= 55)) {
powerup = PUspeedup;
PU_index = 4;
}
if ((chose > 55) and (chose <= 75)) {
powerup = PUspeeddown;
PU_index = 5;
}
if ((chose > 75) and (chose <= 95)) {
powerup = PUasUp;
PU_index = 6;
}
if ((chose > 95) and (chose <= 115)) {
powerup = PUasDown;
PU_index = 7;
}
if ((chose > 115) and (chose <= 120)) {
powerup = PUimortality;
PU_index = 8;
}
if ((chose > 120) and (chose <= 140)) {
powerup = PUbomb;
PU_index = 9;
}
if ((chose > 140) and (chose <= 170)) {
powerup = PUshot2;
PU_index = 10;
}
if ((chose > 170) and (chose <= 180)) {
powerup = PUshot3;
PU_index = 11;
}
if ((chose > 180) and (chose <= 200)) {
powerup = PUshot4;
PU_index = 12;
}
if (random(20) < 10) {
powerup._x = 0;
pux = random(5) + 5;
} else {
pux = random(5) - 10;
powerup._x = 700;
}
powerup._y = random(450) + 50;
puy = (random(20) - 10) / 10;
}
i = 1;
while (i < CountElement) {
if (_root["element" + i].mc.hitTest(powerup)) {
SNDpowerup();
akce(PU_index);
powerup._x = 750;
pux = 0;
}
i++;
}
gravityCounter--;
imortalityCounter--;
if (gravityCounter > 0) {
gravitace = 0;
} else {
gravitace = 0.4;
}
if (imortalityCounter > 0) {
if (countDeath < 5) {
countDeath = 36;
}
}
speedUpCounter--;
speedDownCounter--;
if (speedUpCounter > 0) {
maxspeed = 17;
} else if (speedDownCounter > 0) {
maxspeed = 3;
} else {
maxspeed = 8;
}
}
function akce(what) {
switch (what) {
case 1 :
lives++;
break;
case 2 :
lives--;
break;
case 3 :
gravityCounter = 360;
break;
case 4 :
speedUpCounter = 360;
speedDownCounter = -1;
break;
case 5 :
speedUpCounter = -1;
speedDownCounter = 360;
break;
case 6 :
j = 1;
while (j < 45) {
_root["asteroid" + j].speed = _root["asteroid" + j].speed / 2;
j++;
}
break;
case 7 :
j = 1;
while (j < 45) {
_root["asteroid" + j].speed = _root["asteroid" + j].speed * 2;
j++;
}
break;
case 8 :
imortalityCounter = 240;
break;
case 9 :
j = 1;
while (j < 45) {
if (_root["asteroid" + j].type == "small") {
_root["asteroid" + j].Crash(2);
}
j++;
}
nuke.play();
break;
case 10 :
double = true;
triple = false;
break;
case 11 :
double = false;
triple = true;
break;
case 12 :
quatro = true;
if (element7.y > 600) {
element7.y = element6.y;
element7.x = element6.x + 10;
}
if (element5.y > 600) {
element5.y = element4.y;
element5.x = element4.x + 10;
}
if (element9.y > 600) {
element9.y = element7.y;
element9.x = element7.x + 10;
}
if (element11.y > 600) {
element11.y = element10.y;
element11.x = element10.x + 10;
}
leftHand = true;
rightHand = true;
leftLeg = true;
rightLeg = true;
}
}
stopAllSounds();
_root.attachMovie("nuke", "nuke", 999);
nuke._x = 350;
nuke._y = 275;
SNDgame();
snd = true;
PUcounterlimit = 360;
var Powerup;
PUcounter = -5;
function leveluper(a) {
j = 1;
while (j < 45) {
delete _root["asteroid" + j];
j++;
}
level.play();
scoreS = score;
levelscoreS = levelscore;
accurancyS = accurancy;
score = score + Math.round(((accurancy / 100) * levelscore) + (75 * (levelNumber - 1)));
levelscore = 0;
everfired = 0.001;
everhit = 0.001;
SNDnewlevel();
if (a < 5) {
asteroid1 = new Casteroid(0, random(550), "big", 10, 310, ((Math.PI * random(20)) / 10) + 0.05, (a / 2) + 1);
asteroid10 = new Casteroid(700, random(550), "big", 20, 320, ((Math.PI * random(20)) / 10) + 0.05, (a / 2) + 1);
asteroid20 = new Casteroid(0, random(550), "medium", 30, 330, ((Math.PI * random(20)) / 10) + 0.05, (a / 2) + 1);
asteroid25 = new Casteroid(700, random(550), "small", 35, 335, ((Math.PI * random(20)) / 10) + 0.05, (a / 2) + 1);
}
if (a == 5) {
stopAllSounds();
SNDfasttrack();
}
if ((a > 5) and (a < 10)) {
if (a == 6) {
stopAllSounds();
SNDgame();
}
asteroid1 = new Casteroid(0, random(550), "big", 10, 310, ((Math.PI * random(20)) / 10) + 0.05, a / 2);
asteroid10 = new Casteroid(700, random(550), "big", 20, 320, ((Math.PI * random(20)) / 10) + 0.05, a / 2);
asteroid20 = new CasteroidY(700, random(550), "medium", 30, 330, ((Math.PI * random(20)) / 10) + 0.05, a / 2);
asteroid30 = new CasteroidY(0, random(550), "medium", 5, 305, ((Math.PI * random(20)) / 10) + 0.05, a / 2);
}
if (a == 10) {
stopAllSounds();
SNDfasttrack();
}
if (((a > 10) and (a < 20)) or (a > 20)) {
if ((a == 11) or (a == 21)) {
stopAllSounds();
SNDgame();
}
asteroid1 = new Casteroid(0, random(550), "big", 10, 310, ((Math.PI * random(20)) / 10) + 0.05, a / 2);
asteroid10 = new Casteroid(700, random(550), "big", 20, 320, ((Math.PI * random(20)) / 10) + 0.05, a / 2);
asteroid20 = new Casteroid(700, random(550), "big", 30, 330, ((Math.PI * random(20)) / 10) + 0.05, a / 2);
asteroid30 = new CasteroidY(0, random(550), "medium", 5, 305, ((Math.PI * random(20)) / 10) + 0.05, (a / 2) - 1);
asteroid35 = new CasteroidY(0, random(550), "medium", 40, 340, ((Math.PI * random(20)) / 10) + 0.05, (a / 2) - 1);
}
if (a == 20) {
stopAllSounds();
SNDfasttrack();
}
}
function Create() {
double = false;
triple = false;
leftHand = true;
leftLeg = true;
rightHand = true;
rightLeg = true;
quatro = false;
element1 = new Celement(250, 50, "MChead", 1, 1, 9999999999999);
element2 = new Celement(element1.x, element1.y + krk, "MCchest", 2, 2, 100);
element3 = new Celement(element2.x, element2.y + trup, "MCass", 3, 3, 37);
element4 = new Celement(element3.x - (noha / 4), element3.y + ((noha / 4) * 3), "MCknee", 4, 4, 25);
element6 = new Celement(element3.x + (noha / 4), element3.y + ((noha / 4) * 3), "MCknee", 6, 6, 25);
element7 = new Celement(element3.x - (berec / 2), element3.y + ((berec / 4) * 6), "MCleg", 7, 7, 25);
element5 = new Celement(element3.x + (berec / 2), element3.y + ((berec / 4) * 6), "MCleg", 5, 5, 25);
element8 = new Celement(element2.x - ((ruka / 4) * 3), element2.y + (ruka / 4), "MCelbow", 8, 8, 25);
element10 = new Celement(element2.x + ((ruka / 4) * 3), element2.y + (ruka / 4), "MCelbow", 10, 10, 25);
element9 = new Celement(element2.x - ((ruka / 4) * 6), element2.y + (ruka / 2), "MChand", 9, 9, 25);
element11 = new Celement(element2.x + ((ruka / 4) * 6), element2.y + (ruka / 2), "MChand", 11, 11, 25);
element6.mc._xscale = -100;
element7.mc._xscale = -100;
element10.mc._xscale = -100;
element11.mc._xscale = -100;
}
function blick(a) {
i = 0;
while (i <= CountElement) {
if (a > 0) {
if ((a % 2) == 1) {
if (_root["element" + i].mc._visible == true) {
_root["element" + i].mc._visible = false;
} else {
_root["element" + i].mc._visible = true;
}
}
} else {
_root["element" + i].mc._visible = true;
}
i++;
}
}
stop();
j = 1;
while (j < 45) {
removeMovieClip(_root["asteroid" + j].mc);
j++;
}
j = 1;
while (j < 45) {
delete _root["asteroid" + j];
j++;
}
boss1health = 70;
boss2health = 70;
pauza = false;
CountElement = 12;
countDeath = -5;
maxspeed = 7;
maxStrel = 100;
shotSpeed = 14;
Kprodleva = 5;
loading = 0;
Qloading = 0;
levelscore = 0;
demage = 2;
ScreenX = 700;
ScreenY = 550;
everfired = 0.001;
accurancy = 100;
everhit = 0.001;
score = 0;
lives = 5;
levelNumber = 1;
gravitace = 0.2;
compact = true;
krk = 12;
trup = 25;
ruka = 15;
predlokti = 15;
noha = 15;
berec = 15;
var motor = new Engine();
leveluper(levelNumber);
Create();
startDrag (cross, true);
Mouse.hide();
onEnterFrame = function () {
if (!pauza) {
if (lives <= 0) {
gotoAndStop (5);
}
i = 1;
while (i <= CountElement) {
_root["element" + i].Refresh();
i++;
}
angle = motor.DirectAngle(cross, element1.mc);
if (motor.Distance(cross, element1.mc) > 70) {
if (!leftHand) {
motor.treni(0.96);
}
if (!rightHand) {
motor.treni(0.96);
}
if (!rightLeg) {
motor.treni(0.96);
}
if (!leftLeg) {
motor.treni(0.96);
}
motor.treni(0.95);
element1.vX = element1.vX - ((Math.sin(angle) * motor.Distance(cross, element1.mc)) / 80);
element1.vY = element1.vY + ((Math.cos(angle) * motor.Distance(cross, element1.mc)) / 80);
} else {
motor.treni(0.9);
}
if (element1.vX > 0) {
element1.vX = Math.min(element1.vX, maxspeed);
} else {
element1.vX = Math.max(element1.vX, -maxspeed);
}
if (element1.vY > 0) {
element1.vY = Math.min(element1.vY, maxspeed);
} else {
element1.vY = Math.max(element1.vY, -maxspeed);
}
if (compact) {
motor.pruzina(element1, element2, 1.6, krk, st12);
motor.pruzina(element3, element2, 1.6, trup, st23);
motor.pruzina(element4, element3, 1.2, noha, st43);
motor.pruzina(element3, element6, 1.2, noha, st36);
if (leftLeg) {
motor.pruzina(element4, element5, 1, berec, st45);
}
if (rightLeg) {
motor.pruzina(element7, element6, 1, berec, st76);
}
motor.pruzina(element8, element2, 1, ruka, st82);
motor.pruzina(element10, element2, 1, ruka, st102);
if (rightHand) {
motor.pruzina(element10, element11, 1, predlokti, st1011);
}
if (leftHand) {
motor.pruzina(element8, element9, 1, predlokti, st89);
}
} else {
motor.treni(1.4);
motor.pruzina(element3, element2, 0.8, trup, null);
motor.pruzina(element4, element3, 0.6, noha, null);
motor.pruzina(element3, element6, 0.6, noha, null);
if (leftLeg) {
motor.pruzina(element4, element5, 0.5, berec, null);
}
if (rightLeg) {
motor.pruzina(element7, element6, 0.5, berec, null);
}
motor.pruzina(element8, element2, 0.6, ruka, null);
motor.pruzina(element10, element2, 0.6, ruka, null);
if (rightHand) {
motor.pruzina(element10, element11, 0.5, predlokti, null);
}
if (leftHand) {
motor.pruzina(element8, element9, 0.5, predlokti, null);
}
st12._x = -100;
st23._x = -100;
st43._x = -100;
st36._x = -100;
st45._x = -100;
st76._x = -100;
st82._x = -100;
st102._x = -100;
st1011._x = -100;
st89._x = -100;
element1.mc._y = -1000;
if (countDeath < 36) {
if (lives > 0) {
compact = true;
Create();
}
i = 1;
while (i <= CountElement) {
_root["element" + i].vY = 0;
_root["element" + i].vX = 0;
i++;
}
}
}
motor.pruzina(element4, element6, 0.4, noha * 1.5, null);
if (leftLeg and rightLeg) {
motor.pruzina(element5, element7, 0.4, hoha * 1.5, null);
}
if (leftLeg) {
motor.pruzina(element3, element5, 0.4, noha + berec, null);
}
if (rightLeg) {
motor.pruzina(element3, element7, 0.4, noha + berec, null);
}
motor.pruzina(element8, element10, 0.6, ruka * 1.7, null);
if (leftHand and rightHand) {
motor.pruzina(element9, element11, 0.6, (ruka + berec) * 1.5, null);
}
if (leftHand) {
motor.pruzina(element2, element9, 0.4, ruka + berec, null);
}
if (rightHand) {
motor.pruzina(element2, element11, 0.4, ruka + berec, null);
}
motor.pruzina(element8, element4, 0.3, (trup + noha) * 1.2, null);
motor.pruzina(element10, element6, 0.3, (trup + noha) * 1.2, null);
if (compact) {
motor.pruzina(element1, element4, 1, (krk + trup) + (noha * 1.5), null);
motor.pruzina(element1, element6, 1, (krk + trup) + (noha * 1.5), null);
}
element2.mc._rotation = (motor.DirectAngle(element3.mc, element1.mc) * 180) / Math.PI;
element8.mc._rotation = (motor.DirectAngle(element2.mc, element9.mc) * 180) / Math.PI;
element10.mc._rotation = (motor.DirectAngle(element2.mc, element11.mc) * 180) / Math.PI;
element11.mc._rotation = (motor.DirectAngle(element11.mc, element10.mc) * 180) / Math.PI;
element9.mc._rotation = (motor.DirectAngle(element9.mc, element8.mc) * 180) / Math.PI;
element7.mc._rotation = (motor.DirectAngle(element7.mc, element6.mc) * 180) / Math.PI;
element5.mc._rotation = (motor.DirectAngle(element5.mc, element4.mc) * 180) / Math.PI;
element1.mc._rotation = (motor.DirectAngle(cross, element3.mc) * 180) / Math.PI;
if (cross._x < element1.x) {
element1.mc._xscale = -100;
element2.mc._xscale = -100;
} else {
element1.mc._xscale = 100;
element2.mc._xscale = 100;
}
i = 1;
while (i < CountElement) {
if ((i > 2) and compact) {
_root["element" + i].vY = _root["element" + i].vY + gravitace;
}
if (Math.abs(_root["element" + i].vX) < 0.1) {
_root["element" + i].vX = 0;
}
if (Math.abs(_root["element" + i].vY) < 0.1) {
_root["element" + i].vY = 0;
}
_root["element" + i].Move();
i++;
}
accurancy = Math.round((everhit / everfired) * 100);
loading--;
Qloading--;
i = 0;
while (i <= maxStrel) {
if (_root["shot" + i] != null) {
_root["shot" + i].Move();
if ((((_root["shot" + i].x > (ScreenX + 20)) or (_root["shot" + i].y > (ScreenY + 20))) or (_root["shot" + i].y < -20)) or (_root["shot" + i].x < -20)) {
delete _root["shot" + i];
removeMovieClip(_root["MCshot" + i]);
}
}
i++;
}
if ((quatro and compact) and (Qloading < 0)) {
Qloading = Kprodleva * 2.5;
i = 0;
while (i <= maxStrel) {
if (_root["shot" + i] == null) {
if (leftHand) {
_root["shot" + i] = new Cshot(element9.x, element9.y, "MCshot2", i, i + 100, ((element9.mc._rotation * Math.PI) / 180) + Math.PI, shotSpeed * 1.1);
break;
}
}
i++;
}
i = 0;
while (i <= maxStrel) {
if (_root["shot" + i] == null) {
if (rightHand) {
_root["shot" + i] = new Cshot(element11.x, element11.y, "MCshot2", i, i + 100, ((element11.mc._rotation * Math.PI) / 180) + Math.PI, shotSpeed * 1.1);
break;
}
}
i++;
}
i = 0;
while (i <= maxStrel) {
if (_root["shot" + i] == null) {
if (rightLeg) {
_root["shot" + i] = new Cshot(element7.x, element7.y, "MCshot2", i, i + 100, ((element7.mc._rotation * Math.PI) / 180) + Math.PI, shotSpeed * 1.1);
break;
}
}
i++;
}
i = 0;
while (i <= maxStrel) {
if (_root["shot" + i] == null) {
if (leftLeg) {
_root["shot" + i] = new Cshot(element5.x, element5.y, "MCshot2", i, i + 100, ((element5.mc._rotation * Math.PI) / 180) + Math.PI, shotSpeed * 1.1);
break;
}
}
i++;
}
if (((leftLeg or rightLeg) or leftHand) or rightHand) {
SNDshot();
}
}
if ((Key.isDown(1) and (loading < 0)) and compact) {
SNDshot();
loading = Kprodleva;
if (double) {
everfired = everfired + 2;
i = 0;
while (i <= maxStrel) {
if (_root["shot" + i] == null) {
_root["shot" + i] = new Cshot(element1.x - (13 * Math.sin(motor.DirectAngle(cross, element3.mc))), element1.y + (13 * Math.cos(motor.DirectAngle(cross, element3.mc))), "MCshot", i, i + 100, motor.DirectAngle(element1.mc, cross) + 0.2, shotSpeed);
break;
}
i++;
}
i = 0;
while (i <= maxStrel) {
if (_root["shot" + i] == null) {
_root["shot" + i] = new Cshot(element1.x - (13 * Math.sin(motor.DirectAngle(cross, element3.mc))), element1.y + (13 * Math.cos(motor.DirectAngle(cross, element3.mc))), "MCshot", i, i + 100, motor.DirectAngle(element1.mc, cross) - 0.2, shotSpeed);
break;
}
i++;
}
} else if (triple) {
everfired = everfired + 3;
i = 0;
while (i <= maxStrel) {
if (_root["shot" + i] == null) {
_root["shot" + i] = new Cshot(element1.x - (13 * Math.sin(motor.DirectAngle(cross, element3.mc))), element1.y + (13 * Math.cos(motor.DirectAngle(cross, element3.mc))), "MCshot", i, i + 100, motor.DirectAngle(element1.mc, cross) + 0.3, shotSpeed);
break;
}
i++;
}
i = 0;
while (i <= maxStrel) {
if (_root["shot" + i] == null) {
_root["shot" + i] = new Cshot(element1.x - (13 * Math.sin(motor.DirectAngle(cross, element3.mc))), element1.y + (13 * Math.cos(motor.DirectAngle(cross, element3.mc))), "MCshot", i, i + 100, motor.DirectAngle(element1.mc, cross) - 0.3, shotSpeed);
break;
}
i++;
}
i = 0;
while (i <= maxStrel) {
if (_root["shot" + i] == null) {
_root["shot" + i] = new Cshot(element1.x - (13 * Math.sin(motor.DirectAngle(cross, element3.mc))), element1.y + (13 * Math.cos(motor.DirectAngle(cross, element3.mc))), "MCshot", i, i + 100, motor.DirectAngle(element1.mc, cross), shotSpeed);
break;
}
i++;
}
} else {
everfired = everfired + 1;
i = 0;
while (i <= maxStrel) {
if (_root["shot" + i] == null) {
_root["shot" + i] = new Cshot(element1.x - (13 * Math.sin(motor.DirectAngle(cross, element3.mc))), element1.y + (13 * Math.cos(motor.DirectAngle(cross, element3.mc))), "MCshot", i, i + 100, motor.DirectAngle(element1.mc, cross), shotSpeed);
break;
}
i++;
}
}
}
countDeath--;
levelup = 0;
j = 1;
while (j < 45) {
if ((_root["asteroid" + j].x != -999) and (_root["asteroid" + j].mc != null)) {
_root["asteroid" + j].kolize();
_root["asteroid" + j].Move();
}
j++;
}
if (levelNumber == 5) {
boss1.play();
if (boss1.bossin._currentframe < 10) {
boss1strelba = false;
}
if (random(100) > 97) {
boss1strelba = true;
}
if (boss1strelba == true) {
if (boss1.bossin._currentframe < 10) {
boss1.bossin.gotoAndPlay(10);
} else {
boss1.bossin.play();
}
if (boss1.bossin._currentframe == 12) {
i = 1;
while (i < 20) {
if ((_root["asteroid" + i].mc == null) or (_root["asteroid" + i].x == -999)) {
delete _root["asteroid" + i];
_root["asteroid" + i] = new Casteroid(boss1.bossin._x, boss1.bossin._y, "small", i, i + 300, 4.71238898038469 - (random(15) / 30), 5);
break;
}
i++;
}
}
}
i = 1;
while (i < CountElement) {
if ((((i == 5) or (i == 7)) or (i == 9)) or (i == 11)) {
if (boss1.bossin.hitTest(_root["element" + i].mc) and (countDeath <= 0)) {
SNDexploze();
_root["element" + i].vY = _root["element" + i].vY + 5;
if ((i == 5) and leftLeg) {
leftLeg = false;
st45._x = -100;
blabla = random(100);
_root.attachMovie("explozeF", "explozeF" + blabla, blabla + 400);
_root["explozeF" + blabla]._x = _root["element" + i].x;
_root["explozeF" + blabla]._y = _root["element" + i].y;
} else if ((i == 7) and rightLeg) {
blabla = random(100);
_root.attachMovie("explozeF", "explozeF" + blabla, blabla + 400);
_root["explozeF" + blabla]._x = _root["element" + i].x;
_root["explozeF" + blabla]._y = _root["element" + i].y;
rightLeg = false;
st76._x = -100;
} else if ((i == 9) and leftHand) {
blabla = random(100);
_root.attachMovie("explozeF", "explozeF" + blabla, blabla + 400);
_root["explozeF" + blabla]._x = _root["element" + i].x;
_root["explozeF" + blabla]._y = _root["element" + i].y;
st89._x = -100;
leftHand = false;
} else if ((i == 11) and rightHand) {
blabla = random(100);
_root.attachMovie("explozeF", "explozeF" + blabla, blabla + 400);
_root["explozeF" + blabla]._x = _root["element" + i].x;
_root["explozeF" + blabla]._y = _root["element" + i].y;
st1011._x = -100;
rightHand = false;
}
}
} else if (boss1.bossin.hitTest(_root["element" + i].mc._x, _root["element" + i].mc._y, true) and (countDeath <= 0)) {
SNDexploze();
compact = false;
countDeath = 80;
lives--;
boss1health = boss1health - demage;
levelscore = levelscore + 5;
uexp = random(30);
attachMovie("explozeU", "explozeU" + uexp, uexp + 400);
_root["explozeU" + uexp]._x = boss1.bossin._x + 20;
_root["explozeU" + uexp]._y = boss1.bossin._y - 30;
SNDexploze();
_root["element" + i].vX = random(2) - 1;
_root["element" + i].vY = random(2) - 1;
}
i++;
}
i = 0;
while (i <= maxStrel) {
if (_root["shot" + i] != null) {
if (boss1.bossin.hitTest(_root["shot" + i].mc._x, _root["shot" + i].mc._y, true)) {
boss1health = boss1health - demage;
uexp = random(30);
attachMovie("explozeU", "explozeU" + uexp, uexp + 400);
_root["explozeU" + uexp]._x = boss1.bossin._x + 20;
_root["explozeU" + uexp]._y = boss1.bossin._y - 30;
SNDexploze();
if (_root["shot" + i].speed == shotSpeed) {
everhit++;
delete _root["shot" + i];
removeMovieClip(_root["MCshot" + i]);
} else {
delete _root["shot" + i];
removeMovieClip(_root["MCshot2" + i]);
}
}
}
i++;
}
if (boss1health > 0) {
levelup = 10;
} else {
boss1.gotoAndStop(1);
boss1health = 70;
j = 1;
while (j < 45) {
removeMovieClip(_root["asteroid" + j].mc);
j++;
}
}
} else if (levelNumber == 10) {
boss2.play();
if (boss2.bossin._currentframe < 10) {
boss2strelba = false;
}
if (random(150) > 147) {
boss2strelba = true;
}
if (boss2strelba == true) {
if (boss2.bossin._currentframe < 10) {
boss2.bossin.gotoAndPlay(10);
} else {
boss2.bossin.play();
}
if (boss2.bossin._currentframe == 12) {
i = 1;
while (i < 20) {
if ((_root["asteroid" + i].mc == null) or (_root["asteroid" + i].x == -999)) {
delete _root["asteroid" + i];
_root["asteroid" + i] = new Casteroid(boss2.bossin._x - 40, boss2.bossin._y, "small", i, i + 300, 4.71238898038469 - (random(15) / 30), 4);
break;
}
i++;
}
i = 1;
while (i < 20) {
if ((_root["asteroid" + i].mc == null) or (_root["asteroid" + i].x == -999)) {
delete _root["asteroid" + i];
_root["asteroid" + i] = new Casteroid(boss2.bossin._x + 40, boss2.bossin._y, "small", i, i + 300, (Math.PI/2) + (random(15) / 30), 4);
break;
}
i++;
}
}
}
i = 1;
while (i < CountElement) {
if ((((i == 5) or (i == 7)) or (i == 9)) or (i == 11)) {
if (boss2.bossin.hitTest(_root["element" + i].mc) and (countDeath <= 0)) {
SNDexploze();
_root["element" + i].vY = _root["element" + i].vY + 5;
if ((i == 5) and leftLeg) {
leftLeg = false;
st45._x = -100;
blabla = random(100);
_root.attachMovie("explozeF", "explozeF" + blabla, blabla + 400);
_root["explozeF" + blabla]._x = _root["element" + i].x;
_root["explozeF" + blabla]._y = _root["element" + i].y;
} else if ((i == 7) and rightLeg) {
blabla = random(100);
_root.attachMovie("explozeF", "explozeF" + blabla, blabla + 400);
_root["explozeF" + blabla]._x = _root["element" + i].x;
_root["explozeF" + blabla]._y = _root["element" + i].y;
rightLeg = false;
st76._x = -100;
} else if ((i == 9) and leftHand) {
blabla = random(100);
_root.attachMovie("explozeF", "explozeF" + blabla, blabla + 400);
_root["explozeF" + blabla]._x = _root["element" + i].x;
_root["explozeF" + blabla]._y = _root["element" + i].y;
st89._x = -100;
leftHand = false;
} else if ((i == 11) and rightHand) {
blabla = random(100);
_root.attachMovie("explozeF", "explozeF" + blabla, blabla + 400);
_root["explozeF" + blabla]._x = _root["element" + i].x;
_root["explozeF" + blabla]._y = _root["element" + i].y;
st1011._x = -100;
rightHand = false;
}
}
} else if (boss2.bossin.hitTest(_root["element" + i].mc._x, _root["element" + i].mc._y, true) and (countDeath <= 0)) {
SNDexploze();
compact = false;
countDeath = 80;
lives--;
boss2health = boss2health - demage;
uexp = random(30);
levelscore = levelscore + 5;
attachMovie("explozeU", "explozeU" + uexp, uexp + 400);
_root["explozeU" + uexp]._x = boss2.bossin._x;
_root["explozeU" + uexp]._y = boss2.bossin._y - 30;
SNDexploze();
_root["element" + i].vX = random(2) - 1;
_root["element" + i].vY = random(2) - 1;
}
i++;
}
i = 0;
while (i <= maxStrel) {
if (_root["shot" + i] != null) {
if (boss2.bossin.hitTest(_root["shot" + i].mc._x, _root["shot" + i].mc._y, true)) {
boss2health = boss2health - demage;
uexp = random(30);
attachMovie("explozeU", "explozeU" + uexp, uexp + 400);
_root["explozeU" + uexp]._x = boss2.bossin._x + 20;
_root["explozeU" + uexp]._y = boss2.bossin._y - 30;
SNDexploze();
if (_root["shot" + i].speed == shotSpeed) {
everhit++;
delete _root["shot" + i];
removeMovieClip(_root["MCshot" + i]);
} else {
delete _root["shot" + i];
removeMovieClip(_root["MCshot2" + i]);
}
}
}
i++;
}
if (boss2health > 0) {
levelup = 10;
} else {
boss2.gotoAndStop(1);
boss2health = 70;
j = 1;
while (j < 45) {
removeMovieClip(_root["asteroid" + j].mc);
j++;
}
}
} else if (levelNumber == 20) {
boss2.play();
if (boss2.bossin._currentframe < 10) {
boss2strelba = false;
}
if (random(150) > 147) {
boss2strelba = true;
}
if (boss2strelba == true) {
if (boss2.bossin._currentframe < 10) {
boss2.bossin.gotoAndPlay(10);
} else {
boss2.bossin.play();
}
if (boss2.bossin._currentframe == 12) {
i = 1;
while (i < 20) {
if ((_root["asteroid" + i].mc == null) or (_root["asteroid" + i].x == -999)) {
delete _root["asteroid" + i];
_root["asteroid" + i] = new Casteroid(boss2.bossin._x - 40, boss2.bossin._y, "small", i, i + 300, 4.71238898038469 - (random(15) / 30), 4);
break;
}
i++;
}
i = 1;
while (i < 20) {
if ((_root["asteroid" + i].mc == null) or (_root["asteroid" + i].x == -999)) {
delete _root["asteroid" + i];
_root["asteroid" + i] = new Casteroid(boss2.bossin._x + 40, boss2.bossin._y, "small", i, i + 300, (Math.PI/2) + (random(15) / 30), 4);
break;
}
i++;
}
}
}
i = 1;
while (i < CountElement) {
if ((((i == 5) or (i == 7)) or (i == 9)) or (i == 11)) {
if (boss2.bossin.hitTest(_root["element" + i].mc) and (countDeath <= 0)) {
SNDexploze();
_root["element" + i].vY = _root["element" + i].vY + 5;
if ((i == 5) and leftLeg) {
leftLeg = false;
st45._x = -100;
blabla = random(100);
_root.attachMovie("explozeF", "explozeF" + blabla, blabla + 400);
_root["explozeF" + blabla]._x = _root["element" + i].x;
_root["explozeF" + blabla]._y = _root["element" + i].y;
} else if ((i == 7) and rightLeg) {
blabla = random(100);
_root.attachMovie("explozeF", "explozeF" + blabla, blabla + 400);
_root["explozeF" + blabla]._x = _root["element" + i].x;
_root["explozeF" + blabla]._y = _root["element" + i].y;
rightLeg = false;
st76._x = -100;
} else if ((i == 9) and leftHand) {
blabla = random(100);
_root.attachMovie("explozeF", "explozeF" + blabla, blabla + 400);
_root["explozeF" + blabla]._x = _root["element" + i].x;
_root["explozeF" + blabla]._y = _root["element" + i].y;
st89._x = -100;
leftHand = false;
} else if ((i == 11) and rightHand) {
blabla = random(100);
_root.attachMovie("explozeF", "explozeF" + blabla, blabla + 400);
_root["explozeF" + blabla]._x = _root["element" + i].x;
_root["explozeF" + blabla]._y = _root["element" + i].y;
st1011._x = -100;
rightHand = false;
}
}
} else if (boss2.bossin.hitTest(_root["element" + i].mc._x, _root["element" + i].mc._y, true) and (countDeath <= 0)) {
SNDexploze();
compact = false;
countDeath = 80;
lives--;
boss2health = boss2health - demage;
uexp = random(30);
levelscore = levelscore + 5;
attachMovie("explozeU", "explozeU" + uexp, uexp + 400);
_root["explozeU" + uexp]._x = boss2.bossin._x;
_root["explozeU" + uexp]._y = boss2.bossin._y - 30;
SNDexploze();
_root["element" + i].vX = random(2) - 1;
_root["element" + i].vY = random(2) - 1;
}
i++;
}
i = 0;
while (i <= maxStrel) {
if (_root["shot" + i] != null) {
if (boss2.bossin.hitTest(_root["shot" + i].mc._x, _root["shot" + i].mc._y, true)) {
boss2health = boss2health - demage;
uexp = random(30);
attachMovie("explozeU", "explozeU" + uexp, uexp + 400);
_root["explozeU" + uexp]._x = boss2.bossin._x + 20;
_root["explozeU" + uexp]._y = boss2.bossin._y - 30;
SNDexploze();
if (_root["shot" + i].speed == shotSpeed) {
everhit++;
delete _root["shot" + i];
removeMovieClip(_root["MCshot" + i]);
} else {
delete _root["shot" + i];
removeMovieClip(_root["MCshot2" + i]);
}
}
}
i++;
}
boss1.play();
if (boss1.bossin._currentframe < 10) {
boss1strelba = false;
}
if (random(100) > 97) {
boss1strelba = true;
}
if (boss1strelba == true) {
if (boss1.bossin._currentframe < 10) {
boss1.bossin.gotoAndPlay(10);
} else {
boss1.bossin.play();
}
if (boss1.bossin._currentframe == 12) {
i = 1;
while (i < 20) {
if ((_root["asteroid" + i].mc == null) or (_root["asteroid" + i].x == -999)) {
delete _root["asteroid" + i];
_root["asteroid" + i] = new Casteroid(boss1.bossin._x, boss1.bossin._y, "small", i, i + 300, 4.71238898038469 - (random(15) / 30), 5);
break;
}
i++;
}
}
}
i = 1;
while (i < CountElement) {
if ((((i == 5) or (i == 7)) or (i == 9)) or (i == 11)) {
if (boss1.bossin.hitTest(_root["element" + i].mc) and (countDeath <= 0)) {
SNDexploze();
_root["element" + i].vY = _root["element" + i].vY + 5;
if ((i == 5) and leftLeg) {
leftLeg = false;
st45._x = -100;
blabla = random(100);
_root.attachMovie("explozeF", "explozeF" + blabla, blabla + 400);
_root["explozeF" + blabla]._x = _root["element" + i].x;
_root["explozeF" + blabla]._y = _root["element" + i].y;
} else if ((i == 7) and rightLeg) {
blabla = random(100);
_root.attachMovie("explozeF", "explozeF" + blabla, blabla + 400);
_root["explozeF" + blabla]._x = _root["element" + i].x;
_root["explozeF" + blabla]._y = _root["element" + i].y;
rightLeg = false;
st76._x = -100;
} else if ((i == 9) and leftHand) {
blabla = random(100);
_root.attachMovie("explozeF", "explozeF" + blabla, blabla + 400);
_root["explozeF" + blabla]._x = _root["element" + i].x;
_root["explozeF" + blabla]._y = _root["element" + i].y;
st89._x = -100;
leftHand = false;
} else if ((i == 11) and rightHand) {
blabla = random(100);
_root.attachMovie("explozeF", "explozeF" + blabla, blabla + 400);
_root["explozeF" + blabla]._x = _root["element" + i].x;
_root["explozeF" + blabla]._y = _root["element" + i].y;
st1011._x = -100;
rightHand = false;
}
}
} else if (boss1.bossin.hitTest(_root["element" + i].mc._x, _root["element" + i].mc._y, true) and (countDeath <= 0)) {
SNDexploze();
compact = false;
countDeath = 80;
lives--;
boss1health = boss1health - demage;
levelscore = levelscore + 5;
uexp = random(30);
attachMovie("explozeU", "explozeU" + uexp, uexp + 400);
_root["explozeU" + uexp]._x = boss1.bossin._x + 20;
_root["explozeU" + uexp]._y = boss1.bossin._y - 30;
SNDexploze();
_root["element" + i].vX = random(2) - 1;
_root["element" + i].vY = random(2) - 1;
}
i++;
}
i = 0;
while (i <= maxStrel) {
if (_root["shot" + i] != null) {
if (boss1.bossin.hitTest(_root["shot" + i].mc._x, _root["shot" + i].mc._y, true)) {
boss1health = boss1health - demage;
uexp = random(30);
attachMovie("explozeU", "explozeU" + uexp, uexp + 400);
_root["explozeU" + uexp]._x = boss1.bossin._x + 20;
_root["explozeU" + uexp]._y = boss1.bossin._y - 30;
SNDexploze();
if (_root["shot" + i].speed == shotSpeed) {
everhit++;
delete _root["shot" + i];
removeMovieClip(_root["MCshot" + i]);
} else {
delete _root["shot" + i];
removeMovieClip(_root["MCshot2" + i]);
}
}
}
i++;
}
if (boss1health > 0) {
levelup = 10;
} else if (boss2health > 0) {
levelup = 10;
} else {
boss1.gotoAndStop(1);
boss1health = 70;
boss2.gotoAndStop(1);
boss2health = 70;
j = 1;
while (j < 45) {
removeMovieClip(_root["asteroid" + j].mc);
j++;
}
}
} else {
j = 1;
while (j < 45) {
if ((_root["asteroid" + j].x != -999) and (_root["asteroid" + j].mc != null)) {
levelup++;
}
j++;
}
}
j = 1;
while (j < 45) {
if ((_root["asteroid" + j].x != -999) and (_root["asteroid" + j].mc != null)) {
i = 0;
while (i <= maxStrel) {
if (_root["shot" + i] != null) {
if (_root["asteroid" + j].mc.hitTest(_root["shot" + i].mc._x, _root["shot" + i].mc._y, true)) {
_root["asteroid" + j].mc.gotoAndPlay(5);
_root["asteroid" + j].Crash(demage);
SNDexploze();
if (_root["shot" + i].speed == shotSpeed) {
everhit++;
delete _root["shot" + i];
removeMovieClip(_root["MCshot" + i]);
} else {
delete _root["shot" + i];
removeMovieClip(_root["MCshot2" + i]);
}
}
}
i++;
}
i = 1;
while (i < CountElement) {
if ((((i == 5) or (i == 7)) or (i == 9)) or (i == 11)) {
if (_root["asteroid" + j].mc.hitTest(_root["element" + i].mc) and (countDeath <= 0)) {
SNDexploze();
_root["element" + i].vY = _root["element" + i].vY + 5;
if ((i == 5) and leftLeg) {
leftLeg = false;
st45._x = -100;
blabla = random(100);
_root.attachMovie("explozeF", "explozeF" + blabla, blabla + 400);
_root["explozeF" + blabla]._x = _root["element" + i].x;
_root["explozeF" + blabla]._y = _root["element" + i].y;
} else if ((i == 7) and rightLeg) {
blabla = random(100);
_root.attachMovie("explozeF", "explozeF" + blabla, blabla + 400);
_root["explozeF" + blabla]._x = _root["element" + i].x;
_root["explozeF" + blabla]._y = _root["element" + i].y;
rightLeg = false;
st76._x = -100;
} else if ((i == 9) and leftHand) {
blabla = random(100);
_root.attachMovie("explozeF", "explozeF" + blabla, blabla + 400);
_root["explozeF" + blabla]._x = _root["element" + i].x;
_root["explozeF" + blabla]._y = _root["element" + i].y;
st89._x = -100;
leftHand = false;
} else if ((i == 11) and rightHand) {
blabla = random(100);
_root.attachMovie("explozeF", "explozeF" + blabla, blabla + 400);
_root["explozeF" + blabla]._x = _root["element" + i].x;
_root["explozeF" + blabla]._y = _root["element" + i].y;
st1011._x = -100;
rightHand = false;
}
}
} else if (_root["asteroid" + j].mc.hitTest(_root["element" + i].mc._x, _root["element" + i].mc._y, true) and (countDeath <= 0)) {
SNDexploze();
compact = false;
countDeath = 80;
lives--;
_root["asteroid" + j].mc.gotoAndPlay(5);
_root["asteroid" + j].Crash(demage);
_root["element" + i].vX = random(2) - 1;
_root["element" + i].vY = random(2) - 1;
}
i++;
}
}
j++;
}
if ((countDeath < 36) and (countDeath >= -1)) {
blick(countDeath);
}
if (levelup == 0) {
levelNumber++;
leveluper(levelNumber);
}
secondLive();
}
if (!snd) {
stopAllSounds();
}
};
Frame 5
stop();
Mouse.show();
score = score + Math.round((levelscore * accurancy) / 100);
function sendScore() {
if (score > 0) {
now = new Date();
_root.diff = 0;
_root.username = _root.nick;
_root.game_id = 21;
_root.chs = ((_root.score * now.getUTCHours()) * now.getUTCDate()) + (now.getUTCFullYear() * 77);
loadVariablesNum ("http://scores.funny-games.biz/scores.php", 0, "POST");
HS = true;
HSwaiting = 0;
nick = "";
score = "wait please...";
}
}
Instance of Symbol 169 MovieClip in Frame 5
onClipEvent (load) {
stop();
}
Frame 6
gotoAndStop (4);
Symbol 12 MovieClip [nuke] Frame 1
stop();
Symbol 12 MovieClip [nuke] Frame 2
_root.SNDatom();
_root.zvuk4.setVolume(0);
Symbol 12 MovieClip [nuke] Frame 26
_root.zvuk1.setVolume(100);
Symbol 21 MovieClip [explozeU] Frame 11
stop();
Symbol 30 MovieClip [explozeF] Frame 10
stop();
Symbol 37 MovieClip [big1] Frame 1
stop();
Symbol 42 MovieClip [exploze] Frame 11
stop();
Symbol 72 MovieClip [medium2] Frame 1
stop();
Symbol 79 MovieClip [medium1] Frame 1
stop();
Symbol 115 MovieClip Frame 138
stop();
Symbol 118 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 118 MovieClip Frame 2
gotoAndPlay (1);
Symbol 118 MovieClip Frame 3
_root.play();
Symbol 353 MovieClip [__Packages.Engine] Frame 0
class Engine
{
var funkce, d1, d2, agl, i;
function Engine (afunkce) {
funkce = afunkce;
}
function Distance(mc1, mc2) {
d1 = mc1._x - mc2._x;
d2 = mc1._y - mc2._y;
return(Math.sqrt((d1 * d1) + (d2 * d2)));
}
function DirectAngle(mc1, mc2) {
agl = -Math.atan((mc2._x - mc1._x) / (mc2._y - mc1._y));
if (mc1._y < mc2._y) {
agl = agl + Math.PI;
}
return(agl);
}
function pruzina(e1, e2, speed, distance, str) {
var _local4;
var _local5;
_local5 = e1.W + e2.W;
_local4 = ((speed * Math.abs(distance - Distance(e1.mc, e2.mc))) / distance) * 4;
if (Distance(e1.mc, e2.mc) > (distance + 5)) {
e1.vX = e1.vX + (((Math.sin(DirectAngle(e1.mc, e2.mc)) * _local4) * e2.W) / _local5);
e1.vY = e1.vY - (((Math.cos(DirectAngle(e1.mc, e2.mc)) * _local4) * e2.W) / _local5);
e2.vX = e2.vX + (((Math.sin(DirectAngle(e2.mc, e1.mc)) * _local4) * e1.W) / _local5);
e2.vY = e2.vY - (((Math.cos(DirectAngle(e2.mc, e1.mc)) * _local4) * e1.W) / _local5);
}
if (Distance(e1.mc, e2.mc) < (distance - 5)) {
e1.vX = e1.vX + (((Math.sin(DirectAngle(e2.mc, e1.mc)) * _local4) * e2.W) / _local5);
e1.vY = e1.vY - (((Math.cos(DirectAngle(e2.mc, e1.mc)) * _local4) * e2.W) / _local5);
e2.vX = e2.vX + (((Math.sin(DirectAngle(e1.mc, e2.mc)) * _local4) * e1.W) / _local5);
e2.vY = e2.vY - (((Math.cos(DirectAngle(e1.mc, e2.mc)) * _local4) * e1.W) / _local5);
}
str._rotation = (DirectAngle(e2.mc, e1.mc) * 180) / Math.PI;
str._yscale = Distance(e2.mc, e1.mc);
str._x = e2.x;
str._y = e2.y;
}
function treni(kolik) {
i = 2;
while (i < _root.CountElement) {
_root["element" + i].treni(kolik);
i++;
}
_root.element1.treni(0.8);
_root.element2.treni(0.5);
}
}
Symbol 354 MovieClip [__Packages.Items] Frame 0
class Items
{
var x, y, layer, id, mc;
function Items (ax, ay, atype, aid, alayer) {
x = ax;
y = ay;
layer = alayer;
id = aid;
_root.attachMovie(atype, String(atype + id), alayer);
mc = _root[atype + id];
Refresh();
}
function Refresh() {
mc._x = x;
mc._y = y;
}
}
Symbol 355 MovieClip [__Packages.Celement] Frame 0
class Celement extends Items
{
var vX, vY, x, y, W, layer, id, mc, Refresh;
function Celement (ax, ay, atype, aid, alayer, aW) {
super();
vX = 0;
vY = 0;
x = ax;
y = ay;
W = aW;
layer = alayer;
id = aid;
_root.attachMovie(atype, String(atype + id), alayer);
mc = _root[atype + id];
Refresh();
}
function treni(cx) {
vX = vX * cx;
vY = vY * cx;
}
function Move() {
x = x + vX;
y = y + vY;
}
}
Symbol 356 MovieClip [__Packages.Cshot] Frame 0
class Cshot extends Items
{
var x, y, layer, id, mc, angle, speed, Refresh;
function Cshot (ax, ay, atype, aid, alayer, aangle, aspeed) {
super();
x = ax;
y = ay;
layer = alayer;
id = aid;
_root.attachMovie(atype, String(atype + id), alayer);
mc = _root[atype + id];
angle = aangle;
speed = aspeed;
Refresh();
}
function Move() {
x = x + (speed * Math.sin(angle));
y = y - (speed * Math.cos(angle));
mc._rotation = (angle * 180) / Math.PI;
Refresh();
}
}
Symbol 357 MovieClip [__Packages.Casteroid] Frame 0
class Casteroid extends Cshot
{
var x, y, layer, id, size, mc, angle, speed, health, type, Refresh, blabla;
function Casteroid (ax, ay, atype, aid, alayer, aangle, aspeed) {
super();
x = ax;
y = ay;
layer = alayer;
id = aid;
if (atype == "big") {
size = 3;
}
if (atype == "medium") {
size = 2;
}
if (atype == "small") {
size = 1;
}
_root.attachMovie(String(atype + (random(4 - size) + 1)), String(atype + id), alayer);
mc = _root[atype + id];
angle = aangle;
speed = aspeed;
health = size * 2;
type = atype;
Refresh();
}
function kolize() {
if (x > (_root.ScreenX + (size * 8))) {
x = (-size) * 8;
}
if (x < ((-size) * 8)) {
x = _root.ScreenX + (size * 8);
}
if (y > (_root.ScreenY + (size * 8))) {
y = (-size) * 8;
}
if (y < ((-size) * 8)) {
y = _root.ScreenY + (size * 8);
}
}
function Crash(demage) {
health = health - demage;
_root.levelscore = _root.levelscore + 5;
if (health <= 0) {
blabla = random(100);
_root.attachMovie("exploze", "exploze" + blabla, blabla + 400);
_root["exploze" + blabla]._x = x;
_root["exploze" + blabla]._y = y;
if (type == "big") {
_root.levelscore = _root.levelscore + 15;
_root["asteroid" + (id + 1)] = new Casteroid(x, y, "medium", id + 1, (id + 1) + 300, angle + 0.628318530717959, speed);
_root["asteroid" + (id + 6)] = new Casteroid(x, y, "medium", id + 6, (id + 6) + 300, angle - 0.628318530717959, speed);
}
if (type == "medium") {
_root.levelscore = _root.levelscore + 15;
_root["asteroid" + (id + 1)] = new Casteroid(x + 13, y + 13, "small", id + 1, (id + 1) + 300, angle + 0.628318530717959, speed);
_root["asteroid" + (id + 2)] = new Casteroid(x - 13, y, "small", id + 2, (id + 2) + 300, angle, speed);
_root["asteroid" + (id + 3)] = new Casteroid(x + 13, y - 13, "small", id + 3, (id + 3) + 300, angle - 0.628318530717959, speed);
}
if (type == "small") {
_root.levelscore = _root.levelscore + 15;
}
removeMovieClip(mc);
x = -999;
}
}
}
Symbol 358 MovieClip [__Packages.CasteroidY] Frame 0
class CasteroidY extends Cshot
{
var x, y, layer, id, size, mc, angle, speed, health, type, vX, vY, Refresh, blabla;
function CasteroidY (ax, ay, atype, aid, alayer, aangle, aspeed) {
super();
x = ax;
y = ay;
layer = alayer;
id = aid;
if (atype == "medium") {
size = 2;
}
if (atype == "small") {
size = 1;
}
_root.attachMovie(String(("Y" + atype) + (random(3 - size) + 1)), String(atype + id), alayer);
mc = _root[atype + id];
angle = aangle;
speed = aspeed;
health = size * 2;
type = atype;
vX = Math.sin(angle) * speed;
vY = (-Math.cos(angle)) * speed;
Refresh();
}
function kolize() {
if ((x > _root.ScreenX) or (x < 0)) {
vX = -vX;
}
if ((y > _root.ScreenY) or (y < 0)) {
vY = -vY;
}
}
function Move() {
x = x + vX;
y = y + vY;
Refresh();
}
function Crash(demage) {
health = health - demage;
_root.levelscore = _root.levelscore + 5;
if (health <= 0) {
blabla = random(100);
_root.attachMovie("exploze", "exploze" + blabla, blabla + 400);
_root["exploze" + blabla]._x = x;
_root["exploze" + blabla]._y = y;
if (type == "medium") {
_root.levelscore = _root.levelscore + 15;
_root["asteroid" + (id + 1)] = new CasteroidY(x + 17, y + 17, "small", id + 1, (id + 1) + 300, angle + 1.0471975511966, speed + 1);
_root["asteroid" + (id + 2)] = new CasteroidY(x - 17, y + 17, "small", id + 2, (id + 2) + 300, angle + 0.523598775598299, speed + 1);
_root["asteroid" + (id + 3)] = new CasteroidY(x + 17, y - 17, "small", id + 3, (id + 3) + 300, angle - 0.523598775598299, speed + 1);
_root["asteroid" + (id + 4)] = new CasteroidY(x - 17, y - 17, "small", id + 4, (id + 4) + 300, angle - 1.0471975511966, speed + 1);
}
if (type == "small") {
_root.levelscore = _root.levelscore + 15;
}
removeMovieClip(mc);
x = -999;
}
}
}
Symbol 123 Button
on (release) {
gotoAndPlay (3);
}
Symbol 135 MovieClip Frame 13
stop();
Symbol 163 Button
on (release) {
_root.instr.gotoAndStop(2);
}
Symbol 164 Button
on (release) {
play();
if (_currentframe < 55) {
gotoAndPlay (55);
}
}
Symbol 165 Button
on (release) {
tellTarget (_root) {
getURL ("http://www.funny-games.biz/main.html", "_blank");
};
}
Symbol 166 Button
on (release) {
tellTarget (_root) {
getURL ("http://scores.funny-games.biz/show.php?game_id=21&difficulty=0", "_blank");
};
}
Symbol 171 Button
on (release) {
tellTarget (_root) {
getURL ("http://www.funny-games.biz/main.html", "_blank");
};
}
Symbol 187 Button
on (press) {
getURL ("http://oneeyedchild.wz.cz", "_blank");
credit.gotoAndStop(2);
stop();
}
Symbol 189 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 54
stop();
Instance of Symbol 169 MovieClip in Symbol 190 MovieClip Frame 54
onClipEvent (load) {
stop();
}
Symbol 190 MovieClip Frame 84
_root.gotoAndStop(4);
stopAllSounds();
Symbol 195 Button
on (release) {
if (snd == true) {
snd = false;
stopAllSounds();
} else {
snd = true;
SNDgame();
}
}
Symbol 198 Button
on (release) {
if (bg._currentframe == 1) {
bg.nextFrame();
} else if (bg._currentframe == 2) {
bg.prevFrame();
}
}
Symbol 199 Button
on (keyPress "<Space>") {
if (pauza == true) {
pauza = false;
} else {
pauza = true;
}
}
Symbol 246 Button
on (release) {
prevFrame();
}
Symbol 254 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 1
stop();
Instance of Symbol 267 MovieClip in Symbol 285 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.boss2health);
}
Symbol 285 MovieClip Frame 9
gotoAndPlay (1);
Symbol 286 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 795
gotoAndPlay (30);
Instance of Symbol 267 MovieClip in Symbol 305 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.boss1health);
}
Symbol 305 MovieClip Frame 9
gotoAndPlay (1);
Symbol 306 MovieClip Frame 1
stop();
Symbol 306 MovieClip Frame 468
gotoAndPlay (50);
Symbol 324 MovieClip Frame 15
Symbol 324 MovieClip Frame 76
stop();
Symbol 344 Button
on (release) {
_root.sendScore();
}
on (keyPress "<Enter>") {
_root.sendScore();
}
Symbol 348 Button
on (release) {
gotoAndStop (6);
}
Symbol 352 Button
on (release) {
tellTarget (_root) {
getURL ("http://www.funny-games.biz/main.html", "_blank");
};
}