Frame 1
function klik() {
zvukZlato.start();
}
zvukDril = new Sound();
zvukDril.attachSound("beepdrop");
zvukPotvora = new Sound();
zvukPotvora.attachSound("polk2");
zvukZlato = new Sound();
zvukZlato.attachSound("click14");
zvukNavrat = new Sound();
zvukNavrat.attachSound("cvak");
zvukVykrik = new Sound();
zvukVykrik.attachSound("squeak");
zvukKoleno = new Sound();
zvukKoleno.attachSound("mc6");
zvukVyhra = new Sound();
zvukVyhra.attachSound("znelka1");
zvukMina = new Sound();
zvukMina.attachSound("explosio");
zvukCas = new Sound();
zvukCas.attachSound("mc9");
zvukTrubka = new Sound();
zvukTrubka.attachSound("deepslam");
stop();
Frame 3
kryt.play();
stop();
Frame 4
maxOdbocek = 4;
x01 = 0;
x11 = -10;
x12 = 6;
x21 = -14;
x22 = 1;
x23 = 15;
x31 = -2;
x32 = 12;
x41 = -10;
x42 = 2;
x51 = -4;
x52 = 11;
ceny = new Array(0, 5, 10, 20, 50, 100, 0);
maxTrubek = 20;
maxZiv = 4;
cenaOpravy = 150;
cenaVylepseni = 1000;
typyPotvor = new Array({zivoty:0, sila:0, rychlost:0}, {zivoty:2, sila:1, rychlost:1}, {zivoty:2, sila:1, rychlost:1.2}, {zivoty:4, sila:1, rychlost:1.5}, {zivoty:4, sila:2, rychlost:2}, {zivoty:1, sila:2, rychlost:1});
uroven = 1;
system.uroven = uroven;
kryt.play();
stop();
Instance of Symbol 204 MovieClip "system" in Frame 4
onClipEvent (enterFrame) {
zpracujKlavesy();
}
Frame 5
system.uroven = uroven;
stop();
Frame 7
kryt.play();
uroven = system.uroven;
den++;
if (den > 19) {
den = 0;
}
stop();
Frame 8
okoli.nahlas(0);
okoli.hory._visible = false;
okoli.play();
kryt.play();
stop();
Frame 9
gotoAndStop (5);
Symbol 18 MovieClip Frame 12
_parent.play();
stop();
Symbol 21 MovieClip Frame 10
stop();
Symbol 23 Button
on (release) {
getURL ("http://www.fastgames.com/", "_blank");
}
Symbol 24 MovieClip Frame 2
stop();
Symbol 24 MovieClip Frame 45
_parent.play();
stop();
Symbol 33 MovieClip Frame 1
let = 2;
krik = false;
mrk = false;
stop();
Symbol 33 MovieClip Frame 12
let--;
if (let) {
gotoAndPlay (2);
} else {
gotoAndStop (1);
}
Symbol 33 MovieClip Frame 17
if (krik) {
gotoAndPlay (13);
} else {
gotoAndStop (1);
}
Symbol 33 MovieClip Frame 22
if (mrk) {
gotoAndPlay (18);
} else {
gotoAndStop (1);
}
Symbol 37 MovieClip Frame 52
ptak.gotoAndPlay("let");
Symbol 37 MovieClip Frame 121
stop();
_parent.play();
Symbol 47 MovieClip Frame 7
if (!random(2)) {
gotoAndPlay (1);
}
Instance of Symbol 47 MovieClip "v2" in Symbol 50 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.v1._currentframe);
}
Symbol 55 MovieClip Frame 67
_parent.play();
Symbol 55 MovieClip Frame 103
_parent.play();
Symbol 55 MovieClip Frame 146
stop();
Symbol 76 MovieClip Frame 33
if (random(2)) {
v1.gotoAndPlay(1);
v2.gotoAndPlay(1);
}
Symbol 87 Button
on (rollOver) {
_parent._parent.klik();
gotoAndStop (19);
}
on (rollOut) {
gotoAndStop (18);
}
on (release) {
_parent._parent.klik();
_parent.i.gotoAndStop(2);
}
Symbol 88 Button
on (rollOver) {
_parent._parent.klik();
gotoAndStop (20);
}
on (rollOut) {
gotoAndStop (18);
}
on (release) {
_parent._parent.klik();
_parent._parent.play();
}
Symbol 89 Button
on (rollOver) {
_parent._parent.klik();
gotoAndStop (21);
}
on (rollOut) {
gotoAndStop (18);
}
on (release) {
_parent._parent.klik();
getURL ("http://www.fastgames.com/?goldwell", "_blank");
}
Symbol 90 MovieClip Frame 18
stop();
Symbol 101 Button
on (rollOver) {
_parent._parent.klik();
}
on (release) {
_parent._parent.klik();
nextFrame();
}
Symbol 108 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 1
Symbol 110 MovieClip Frame 12
gotoAndPlay (2);
Symbol 110 MovieClip Frame 13
_parent.utoci = 1;
Symbol 110 MovieClip Frame 14
if (random(3)) {
gotoAndPlay (17);
}
Symbol 110 MovieClip Frame 20
_parent.utoci = 2;
Symbol 110 MovieClip Frame 21
_parent.utoci = 1;
Symbol 110 MovieClip Frame 26
_parent.utoci = 0;
Symbol 110 MovieClip Frame 27
gotoAndPlay (2);
Symbol 110 MovieClip Frame 31
stop();
Symbol 110 MovieClip Frame 32
_parent.utoci = -1;
Symbol 110 MovieClip Frame 35
_parent.removeMovieClip();
stop();
Symbol 115 MovieClip Frame 3
gotoAndPlay (2);
Symbol 115 MovieClip Frame 4
Symbol 115 MovieClip Frame 5
_parent.utoci = 2;
Symbol 115 MovieClip Frame 6
_parent.utoci = -1;
Symbol 115 MovieClip Frame 7
stop();
_parent.removeMovieClip();
Symbol 117 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 13
gotoAndPlay (2);
Symbol 118 MovieClip Frame 14
_parent.utoci = 1;
Symbol 118 MovieClip Frame 16
if (random(2)) {
gotoAndPlay (19);
}
Symbol 118 MovieClip Frame 21
_parent.utoci = 2;
Symbol 118 MovieClip Frame 22
_parent.utoci = 1;
Symbol 118 MovieClip Frame 25
_parent.utoci = 0;
Symbol 118 MovieClip Frame 26
gotoAndPlay (2);
Symbol 118 MovieClip Frame 27
_parent.utoci = -1;
Symbol 118 MovieClip Frame 30
_parent.removeMovieClip();
stop();
Symbol 120 Button
on (rollOver) {
_parent._parent.klik();
}
on (release) {
_parent._parent.klik();
prevFrame();
}
Symbol 122 MovieClip Frame 1
s1.stop();
s2.stop();
s3.stop();
Symbol 122 MovieClip Frame 2
stop();
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 2
stop();
Symbol 124 MovieClip Frame 3
s1.stop();
s2.stop();
Symbol 125 MovieClip Frame 2
stop();
Symbol 125 MovieClip Frame 16
stop();
Symbol 125 MovieClip Frame 18
stop();
Symbol 125 MovieClip Frame 23
Symbol 125 MovieClip Frame 46
stop();
Symbol 125 MovieClip Frame 94
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 6
_parent.play();
stop();
Symbol 126 MovieClip Frame 11
_parent.play();
Symbol 130 Button
on (release) {
getURL ("http://www.thunderbird.cz/", "_blank");
}
Symbol 134 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 2
posunu = random(6) + 1;
hraje = 0;
stop();
Symbol 141 MovieClip Frame 3
hraje = 1;
Symbol 141 MovieClip Frame 12
posunu--;
if (posunu > 0) {
gotoAndPlay (3);
}
Symbol 145 MovieClip Frame 2
hraje = 0;
stop();
Symbol 145 MovieClip Frame 3
hraje = 1;
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 12
stop();
Symbol 151 MovieClip Frame 24
stop();
Symbol 151 MovieClip Frame 36
stop();
Symbol 151 MovieClip Frame 45
stop();
Symbol 151 MovieClip Frame 53
stop();
Symbol 151 MovieClip Frame 64
stop();
Symbol 154 MovieClip Frame 1
hraje = 0;
oblaku = random(5) + 1;
stop();
Symbol 154 MovieClip Frame 2
hraje = 1;
Symbol 154 MovieClip Frame 21
oblaku--;
if (oblaku > 0) {
gotoAndPlay (2);
}
Symbol 155 MovieClip Frame 1
function delejNeco(jak) {
r = random(2);
if (jak) {
r = r + 2;
}
switch (r) {
case 0 :
casomer.play();
return;
case 1 :
if (!vyfuk.hraje) {
vyfuk.play();
}
return;
case 2 :
if (!trp1.hraje) {
trp1.play();
}
return;
case 3 :
if (trp2.hraje) {
break;
}
trp2.play();
}
}
Symbol 155 MovieClip Frame 17
if (random(2)) {
gotoAndPlay (24);
}
Symbol 155 MovieClip Frame 25
delejNeco();
Symbol 157 Button
on (release) {
_parent._parent._parent.prachy = 0;
_parent._parent._parent.play();
}
Symbol 160 Button
on (release) {
_parent._parent._parent.stat.cas.gotoAndPlay("uctuj");
}
Symbol 163 Button
on (release) {
if (_parent._parent._parent.prachy >= _parent._parent._parent.cenaOpravy) {
_parent._parent._parent.prachy = _parent._parent._parent.prachy - _parent._parent._parent.cenaOpravy;
_parent._parent._parent.system.zivotu++;
_parent._parent._parent.zvukKoleno.start();
if (_parent._parent._parent.system.zivotu >= _parent._parent._parent.maxZiv) {
play();
}
} else {
_parent._parent._parent.zvukDril.start();
}
}
Symbol 164 Button
on (release) {
if (_parent._parent._parent.system.uroven < 10) {
_parent._parent._parent.system.uroven++;
}
_parent._parent._parent.play();
}
Symbol 168 Button
on (release) {
if (_parent._parent._parent.prachy >= _parent._parent._parent.cenaVylepseni) {
_parent._parent._parent.prachy = _parent._parent._parent.prachy - _parent._parent._parent.cenaVylepseni;
_parent._parent._parent.maxZiv++;
_parent._parent._parent.system.zivotu++;
_parent._parent._parent.zvukKoleno.start();
} else {
_parent._parent._parent.zvukDril.start();
}
}
Symbol 170 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 4
if (_parent._parent._parent.system.zivotu >= _parent._parent._parent.maxZiv) {
play();
} else {
cena = ("(" + _parent._parent._parent.cenaOpravy) + ")";
stop();
}
Symbol 170 MovieClip Frame 5
cena = ("(" + _parent._parent._parent.cenaVylepseni) + ")";
stop();
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 3
switch (typ) {
case 1 :
_parent._parent.zvukVykrik.start();
break;
case 2 :
_parent._parent.zvukVyhra.start();
}
Symbol 171 MovieClip Frame 8
textik.gotoAndStop(typ);
Symbol 171 MovieClip Frame 12
stop();
Symbol 176 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 1
function nahlas(cislo) {
if (!cislo) {
hlaska.gotoAndStop(1);
}
hlaska.typ = cislo;
hlaska.gotoAndPlay(2);
}
stop();
Symbol 177 MovieClip Frame 2
mesic.gotoAndStop(_root.den + 1);
stop();
Symbol 186 MovieClip Frame 1
gotoAndStop(typ);
Symbol 187 MovieClip Frame 1
function zmenaPolohy() {
posX = Math.floor((xMaly + (_parent.dilek / 2)) / _parent.dilek);
if (!(xMaly % dilek)) {
return(1);
}
}
function testujTrubku() {
var modif;
if (_parent.konec) {
return(0);
}
modif = 0;
if (!_parent.jeKrizovatka(posX + modif, posY)) {
return(0);
}
if (_parent.jeTrubka(posX + modif, posY)) {
return(1);
}
return(0);
}
function testujPotvoru() {
var p;
var x;
var y;
var modif;
if (rychlost > 0) {
modif = 1;
} else {
modif = -1;
}
y = posY / 4;
x = 1;
while (x < 10) {
p = _parent[(("p" + y) + "_") + x];
if ((p.posX == (posX + modif)) && (p.typ != 5)) {
return(p);
}
x++;
}
}
function kousniPotvoru(p) {
if (!p._xscale) {
return(0);
}
p.zivotu = p.zivotu - _parent._parent.typyPotvor[typ].sila;
if (p.zivotu <= 0) {
_parent._parent.zvukPotvora.start();
p.potvora.gotoAndPlay("smrt");
}
}
this.onEnterFrame = function () {
var p;
if ((posX < -25) || (posX > 25)) {
this.removeMovieClip();
}
if ((utoci == 1) || (_parent.zastaveno)) {
return(0);
}
if (!utoci) {
_x = (_x + rychlost);
xMaly = xMaly + rychlost;
if (zmenaPolohy()) {
if (testujTrubku()) {
potvora.gotoAndPlay("utok");
} else if (testujPotvoru()) {
potvora.gotoAndPlay("utok");
}
}
}
if (utoci == 2) {
if (typ != 5) {
if (testujTrubku()) {
_parent.oslabTrubku(_parent._parent.typyPotvor[typ].sila);
} else {
kousniPotvoru(testujPotvoru());
}
} else {
_parent.oslabTrubku(_parent._parent.typyPotvor[typ].sila);
utoci = -1;
}
}
};
gotoAndStop(typ);
Symbol 187 MovieClip Frame 2
potvora.hlava.gotoAndStop(2);
Symbol 187 MovieClip Frame 4
potvora.hlava.gotoAndStop(2);
Symbol 193 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 3
roura._height = _parent.zacRoura;
roura._alpha = 100;
_parent.reaguje = 1;
Symbol 201 MovieClip Frame 5
stop();
Instance of Symbol 200 MovieClip "zrout" in Symbol 201 MovieClip Frame 5
onClipEvent (load) {
_y = (_parent.roura._height + 9);
}
onClipEvent (enterFrame) {
_y = (_parent.roura._height + 9);
}
Symbol 201 MovieClip Frame 10
stop();
Symbol 201 MovieClip Frame 15
this.removeMovieClip();
Symbol 204 MovieClip Frame 1
function povoleno(smer) {
var v = 0;
var patro;
switch (smer) {
case 1 :
if (posledni == 1) {
v = 1;
break;
}
patro = Math.floor((posY - 1) / 4);
cyk = 1;
while (cyk <= _root.maxOdbocek) {
if (_root[("x" + patro) + cyk] == posX) {
v = 1;
}
cyk++;
}
break;
case 2 :
if (posY < 1) {
} else {
if (((posY % 4) == 0) && ((posX < 20) || (posledni))) {
v = 1;
}
break;
if (posledni == 3) {
v = 1;
} else {
patro = Math.floor(posY / 4);
cyk = 1;
while (cyk <= _root.maxOdbocek) {
if (_root[(("x" + patro) + "") + cyk] == posX) {
v = 1;
}
cyk++;
}
if (patro == 0) {
v = 1;
}
break;
if (posY < 1) {
} else {
if (!(((posY % 4) == 0) && ((posX > -19) || (posledni)))) {
break;
}
v = 1;
}
}
}
case 3 :
if (posledni == 3) {
v = 1;
} else {
patro = Math.floor(posY / 4);
cyk = 1;
while (cyk <= _root.maxOdbocek) {
if (_root[(("x" + patro) + "") + cyk] == posX) {
v = 1;
}
cyk++;
}
if (patro == 0) {
v = 1;
}
break;
if (posY < 1) {
} else {
if (!(((posY % 4) == 0) && ((posX > -19) || (posledni)))) {
break;
}
v = 1;
}
}
case 4 :
if (posY < 1) {
} else {
if (!(((posY % 4) == 0) && ((posX > -19) || (posledni)))) {
break;
}
v = 1;
}
}
return(v);
}
function zpracujKlavesy() {
if (konec == 1) {
return(0);
}
if (Key.isDown(37)) {
dalsi = 4;
}
if (Key.isDown(39)) {
dalsi = 2;
}
if (Key.isDown(38)) {
dalsi = 1;
}
if (Key.isDown(40)) {
dalsi = 3;
}
if (Key.isDown(32)) {
if (posX || (posY)) {
_parent.zvukNavrat.start();
dalsi = -1;
}
}
if (konec == 2) {
_parent.zvukNavrat.start();
dalsi = -1;
}
if (posledni) {
testujSmer(posledni);
return(0);
}
if (dalsi == -1) {
krok = 4 * rychlost;
} else {
krok = rychlost;
}
var s = dalsi;
dalsi = 0;
testujSmer(s);
}
function vztahSmeru(s1, s2) {
if (s1 == s2) {
return(0);
}
if (((s2 - s1) == 1) || ((s2 - s1) == -3)) {
return(1);
}
if (((s1 - s2) == 1) || ((s1 - s2) == -3)) {
return(-1);
}
return(2);
}
function zmenaPolohy(smer) {
posX = Math.floor((xMaly + (dilek / 2)) / dilek);
posY = Math.floor((yMaly + (dilek / 2)) / dilek);
if (((smer == 2) || (smer == 4)) && (!((xMaly + 0) % dilek))) {
return(1);
}
if (((smer == 1) || (smer == 3)) && (!((yMaly + 0) % dilek))) {
return(1);
}
return(0);
}
function testujSmer(kolik) {
if (!kolik) {
return(0);
}
if (kolik == -1) {
kolik = smer + 2;
if (kolik > 4) {
kolik = kolik - 4;
}
}
var v = vztahSmeru(kolik, smer);
if (((v == 1) || (v == -1)) && (trubek >= _root.maxTrubek)) {
return(0);
}
if (!povoleno(kolik)) {
return(0);
}
switch (kolik) {
case 1 :
yMaly = yMaly - krok;
break;
case 2 :
xMaly = xMaly + krok;
break;
case 3 :
yMaly = yMaly + krok;
break;
case 4 :
xMaly = xMaly - krok;
}
if (zmenaPolohy(kolik)) {
if (dalsi == posledni) {
dalsi = 0;
}
posledni = 0;
zer(posX, posY);
} else {
posledni = kolik;
}
if (!v) {
this["t" + trubek].roura._height = this["t" + trubek].roura._height + krok;
this["t" + trubek].zrout.play();
}
if (v == 2) {
var r = this["t" + trubek].roura;
if (r._height > ((zacRoura + krok) - 1)) {
r._height = r._height - krok;
} else if ((trubek > 1) && (!posledni)) {
zaznamTrubky(posX, posY, -1);
_parent.zvukKoleno.start();
this["t" + trubek].removeMovieClip();
trubek--;
smer = this["t" + trubek].smer;
this["t" + trubek].gotoAndStop("zer");
if (kolik > 0) {
kolik = 0;
}
if ((trubek < 2) && (konec == 2)) {
konecUrovne();
}
_parent.okoli.stroj.delejNeco(1);
}
}
if ((v == 1) || (v == -1)) {
zaznamTrubky(posX, posY, 1);
_parent.zvukKoleno.start();
this["t" + trubek].gotoAndStop("stuj");
trubek++;
var modif = 1;
if ((smer == 1) || (smer == 4)) {
modif = -1;
}
t1.duplicateMovieClip("t" + trubek, trubek + 2000);
if ((smer == 1) || (smer == 3)) {
this["t" + trubek]._x = this["t" + (trubek - 1)]._x;
this["t" + trubek]._y = this["t" + (trubek - 1)]._y + (modif * (this["t" + (trubek - 1)]._height + 2));
} else {
this["t" + trubek]._y = this["t" + (trubek - 1)]._y;
this["t" + trubek]._x = this["t" + (trubek - 1)]._x + (modif * (this["t" + (trubek - 1)]._width + 2));
}
this["t" + trubek]._rotation = this["t" + (trubek - 1)]._rotation - (90 * v);
this["t" + trubek]._xscale = -100 * v;
this["t" + trubek].roura._height = zacRoura;
this["t" + trubek].smer = kolik;
_parent.okoli.stroj.delejNeco(1);
smer = kolik;
}
}
function novejDul(urov) {
_parent.okoli.hory._visible = true;
_parent.okoli.hory.gotoAndStop(((urov + 1) % 3) + 1);
urov = urov % 3;
urov++;
with (_parent) {
switch (urov) {
case 1 :
x01 = 0;
x11 = -10;
x12 = 6;
x21 = -14;
x22 = 1;
x23 = 15;
x31 = -2;
x32 = 12;
x41 = -10;
x42 = 2;
x51 = -4;
x52 = 11;
break;
case 2 :
x01 = 0;
x11 = -14;
x12 = 4;
x21 = -3;
x22 = 12;
x31 = -10;
x32 = 9;
x41 = -13;
x42 = 0;
x51 = -8;
x52 = 15;
break;
case 3 :
x01 = 0;
x11 = -11;
x12 = 8;
x21 = -8;
x22 = -3;
x23 = 13;
x31 = -14;
x32 = 3;
x41 = -10;
x42 = 5;
x51 = -4;
x52 = 10;
}
}
gotoAndStop(urov + 1);
}
function rozestel(urov) {
var x;
var y;
var s;
var pocet = 0;
y = 1;
while (y <= 6) {
x = -19;
while (x < 19) {
var cena = random(12 + (y * (urov + 2)));
if (cena >= 10) {
pocet++;
s = (("z" + y) + "_") + (x + 20);
z0.duplicateMovieClip(s, 100 + pocet);
this[s].typ = Math.floor(cena / 10);
if (this[s].typ > 5) {
this[s].typ = 5;
}
this[s]._y = (t1._y + ((y * 4) * dilek)) + 18;
this[s]._x = t1._x + (x * dilek);
pokladu++;
celkovaCena = celkovaCena + _root.ceny[this[s]._currentframe];
}
x++;
}
y++;
}
s = random(4);
if (!s) {
return(celkovaCena);
}
x = random(30) - 15;
y = random(3) + 4;
s = (("z" + y) + "_") + (x + 20);
this[s].typ = 6;
this[s].gotoAndStop(this[s].typ);
return(celkovaCena);
}
function zer(x, y) {
var vec = this[(("z" + (y / 4)) + "_") + (x + 20)];
if (!vec.typ) {
return(0);
}
if (vec.typ != 6) {
_parent.zvukZlato.start();
berPrachy(_root.ceny[vec._currentframe]);
vec.removeMovieClip();
} else {
_parent.zvukCas.start();
zastavCas(1);
vec.removeMovieClip();
}
pokladu--;
if (pokladu < 1) {
konecUrovne();
}
}
function berPrachy(kolik) {
_root.prachy = _root.prachy + kolik;
}
function zaznamTrubky(x, y, kolik) {
this[(("k" + y) + "_") + (x + 20)] = this[(("k" + y) + "_") + (x + 20)] + kolik;
}
function jeKrizovatka(x, y) {
var y2;
var z;
if ((!y) || (y % 4)) {
return(0);
}
y2 = y / 4;
z = 1;
while (z <= _root.maxOdbocek) {
if ((_parent[("x" + y2) + z] == x) || (_parent[("x" + (y2 - 1)) + z] == x)) {
return(1);
}
z++;
}
return(0);
}
function jeTrubka(x, y) {
return(this[(("k" + y) + "_") + (x + 20)]);
}
function oslabTrubku(kolik) {
var x;
x = 1;
while (x < trubek) {
this["t" + x].gotoAndPlay("otres");
x++;
}
_parent.zvukTrubka.start();
zivotu = zivotu - kolik;
if (zivotu <= 0) {
zivotu = 0;
gameOver();
}
}
function vycisti() {
var x;
var y;
y = 4;
while (y < 28) {
x = 0;
while (x < 40) {
if (jeKrizovatka(x - 20, y)) {
this[(("k" + y) + "_") + x] = 0;
}
x++;
}
y = y + 4;
}
zivotu = _parent.maxZiv;
zastaveno = 0;
pokladu = 0;
konec = 0;
}
function stvorPotvoru(uroven) {
var x;
var s;
var patro = (random(6) + 1);
cekejNaStvoreni = random((22 * (10 - uroven)) + 10) + 10;
var r;
var y;
x = 1;
while (x <= 10) {
s = (("p" + patro) + "_") + x;
if (!this[s].typ) {
p0.duplicateMovieClip(s, (1000 + (patro * 20)) + x);
if (posledniSmer > 0) {
posledniSmer = -1;
} else {
posledniSmer = 1;
}
r = random(100);
y = 1;
if (r > (88 - Math.floor((76 * (uroven - 1)) / 9))) {
y++;
}
if (r > (91 - Math.floor((57 * (uroven - 1)) / 9))) {
y++;
}
if (r > (94 - Math.floor((38 * (uroven - 1)) / 9))) {
y++;
}
if (r > (97 - Math.floor((19 * (uroven - 1)) / 9))) {
y++;
}
this[s].typ = y;
this[s]._xscale = 100 * posledniSmer;
this[s].rychlost = posledniSmer * _parent.typyPotvor[this[s].typ].rychlost;
this[s].rychlost = this[s].rychlost + ((this[s].rychlost * (uroven - 1)) / 9);
this[s]._y = (t1._y + ((patro * 4) * dilek)) + 14;
this[s].posY = patro * 4;
this[s].xMaly = (-25 * posledniSmer) * dilek;
this[s]._x = t1._x + this[s].xMaly;
this[s].zivotu = _parent.typyPotvor[this[s].typ].zivoty;
return(1);
}
x++;
}
return(0);
}
function testujPotvory() {
var x;
var y;
var modifX;
var modifY;
if (y % 4) {
return(0);
}
if (smer == 3) {
y = Math.ceil(posY / 4);
modifY = 1;
} else {
y = Math.floor(posY / 4);
}
var mensi;
var vetsi;
x = 1;
while (x < 10) {
p = this[(("p" + y) + "_") + x];
if (smer == 4) {
mensi = p.posX - 1;
vetsi = p.posX;
}
if (smer == 2) {
mensi = p.posX;
vetsi = p.posX + 1;
}
if ((smer == 1) || (smer == 3)) {
mensi = p.posX;
vetsi = p.posX;
}
if ((((posX >= mensi) && (posX <= vetsi)) && (posY == p.posY)) && (p.utoci != -1)) {
return(p);
}
x++;
}
return(0);
}
function zastavCas(jak) {
var x;
var y;
y = 1;
while (y < 7) {
x = 1;
while (x < 10) {
p = this[(("p" + y) + "_") + x];
x++;
}
y++;
}
if (jak) {
p.potvora.stop(1);
} else {
p.potvora.play();
}
if (jak) {
zastaveno = 180;
}
}
function gameOver() {
if (konec) {
return(0);
}
konec = 1;
_parent.over.play();
}
function konecUrovne() {
if (!konec) {
konec = 2;
return(1);
}
konec = 3;
if (uroven < 10) {
_parent.okoli.nahlas(2);
} else {
_parent.okoli.nahlas(3);
}
}
minRoura = 0;
rychlost = 5;
zacRoura = 0;
trubek = 1;
rychlostPotvor = 1;
dilek = 20;
zivotu = _parent.maxZiv;
z0._visible = false;
t1.spoj._visible = false;
this.onEnterFrame = function () {
var p;
if (konec) {
return(0);
}
if (zastaveno) {
zastaveno--;
if (!zastaveno) {
zastavCas(0);
}
}
p = testujPotvory();
while (p) {
p.utoci = -1;
this["t" + trubek].zrout.play();
if (p.typ != 5) {
_parent.zvukDril.start();
}
p.potvora.gotoAndPlay("smrt");
p = testujPotvory();
}
if (cekejNaStvoreni) {
cekejNaStvoreni--;
} else {
stvorPotvoru(uroven);
}
};
t1.smer = 3;
smer = 3;
posun = 0;
posledni = 0;
Instance of Symbol 187 MovieClip "p0" in Symbol 204 MovieClip Frame 1
onClipEvent (load) {
}
Symbol 204 MovieClip Frame 2
rozestel(uroven);
novejDul(uroven);
uplynulo = getTimer();
Symbol 205 Button
on (rollOver) {
gotoAndStop (3);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 206 Button
on (rollOver) {
gotoAndStop (4);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 207 Button
on (rollOver) {
gotoAndStop (5);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 220 MovieClip Frame 1
stav = (_parent._parent.system.zivotu + " / ") + _parent._parent.maxZiv;
Symbol 241 MovieClip Frame 4
if (!_parent._parent.system.konec) {
g = getTimer() - _parent._parent.system.uplynulo;
g = g / 1000;
s = math.floor(g % 60);
m = math.floor(g / 60);
}
Symbol 241 MovieClip Frame 9
gotoAndPlay (1);
Symbol 241 MovieClip Frame 10
if (g > 0) {
g = g - 10;
_parent._parent.prachy = _parent._parent.prachy - 10;
_parent._parent.klik();
s = math.floor(g % 60);
m = math.floor(g / 60);
} else {
g = 0;
s = 0;
m = 0;
_parent._parent.okoli.nahlas(4);
gotoAndPlay (1);
}
Symbol 241 MovieClip Frame 11
gotoAndPlay (10);
Symbol 248 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 2
konec = 1;
x = _parent.system.trubek + 1;
Symbol 252 MovieClip Frame 3
x--;
_parent.system["t" + x].gotoAndPlay("vybuch");
_parent.zvukMina.start();
Symbol 252 MovieClip Frame 10
if (x > 1) {
gotoAndPlay (3);
}
Symbol 252 MovieClip Frame 14
_parent.okoli.nahlas(1);
gotoAndStop (1);
Symbol 252 MovieClip Frame 23
stop();
Symbol 256 Button
on (release) {
getURL ("http://www.fastgames.com/?goldwell", "_blank");
}