Frame 1
stop();
Frame 3
loaded = _root.getBytesLoaded();
full = _root.getBytesTotal();
if (loaded == full) {
stop();
gotoAndPlay (6);
} else {
stazeno = math.floor((loaded / full) * 100) add "%";
}
Frame 4
gotoAndPlay ("load");
Frame 6
function show_mm_buttons() {
mainmenu.mm_buttons.gotoAndStop(1);
mainmenu.mm_not_buttons.gotoAndStop(1);
}
function hide_mm_buttons() {
mainmenu.mm_buttons.gotoAndStop(2);
mainmenu.mm_not_buttons.gotoAndStop(2);
}
function help_click() {
hide_mm_buttons();
mainmenu.help.gotoAndStop(2);
}
function help_over() {
mainmenu.mm_buttons.help_anim.gotoAndPlay(2);
button3active = true;
}
function help_out() {
mainmenu.mm_buttons.help_anim.play();
button3active = false;
}
function help_click_close() {
show_mm_buttons();
mainmenu.help.gotoAndStop(1);
}
function options_click() {
hide_mm_buttons();
mainmenu.options.gotoAndStop(2);
options_update();
}
function options_over() {
mainmenu.mm_buttons.options_anim.gotoAndPlay(2);
button2active = true;
}
function options_out() {
mainmenu.mm_buttons.options_anim.play();
button2active = false;
}
function mainmenu_start_over() {
mainmenu.mm_buttons.newgame_anim.gotoAndPlay(2);
button1active = true;
}
function mainmenu_start_out() {
mainmenu.mm_buttons.newgame_anim.play();
button1active = false;
}
function options_click_close() {
show_mm_buttons();
mainmenu.options.gotoAndStop(1);
}
function music_click() {
play_music = (play_music ? false : true);
options_update();
}
function sound_click() {
play_sounds = (play_sounds ? false : true);
options_update();
}
function options_update() {
cislo_snimku = (play_music ? 1 : 2);
mainmenu.options.sign_music.gotoAndStop(cislo_snimku);
cislo_snimku = (play_sounds ? 1 : 2);
mainmenu.options.sign_sound.gotoAndStop(cislo_snimku);
cislo_snimku = ((_quality == "LOW") ? 1 : 2);
mainmenu.options.sign_1.gotoAndStop(cislo_snimku);
cislo_snimku = ((_quality == "MEDIUM") ? 1 : 2);
mainmenu.options.sign_2.gotoAndStop(cislo_snimku);
cislo_snimku = ((_quality == "HIGH") ? 1 : 2);
mainmenu.options.sign_3.gotoAndStop(cislo_snimku);
}
function set_quality(number) {
if (number == 1) {
_quality = "LOW";
options_update();
}
if (number == 2) {
_quality = "MEDIUM";
options_update();
}
if (number == 3) {
_quality = "HIGH";
options_update();
}
}
function play_bonus1_sound() {
if (play_sounds) {
sound_bonus.start(0, 1);
}
}
function play_bonus2_sound() {
if (play_sounds) {
sound_special.start(0, 1);
}
}
function play_crash_sound() {
if (play_sounds) {
sound_crash.start(0, 1);
}
}
function music_start() {
if (play_music) {
sound_bgsound.start(0, 99999);
}
}
function music_end() {
if (play_music) {
sound_bgsound.stop();
}
}
function show_pause() {
pause.gotoAndStop(2);
if (clouds_active) {
hp.foreground.clouds.stop();
}
}
function hide_pause() {
pause.gotoAndStop(1);
if (clouds_active) {
hp.foreground.clouds.play();
}
}
function start_clouds() {
if (!clouds_active) {
hp.foreground.clouds.gotoAndPlay("najezd");
clouds_active = true;
}
}
function stop_clouds() {
clouds_active = false;
}
function restart_clouds() {
hp.foreground.clouds.gotoAndStop(1);
clouds_active = false;
}
function general_init() {
mainmenu.gotoAndStop("gamestart");
}
function spustit_akci() {
probiha_hra = true;
}
function zastavit_akci() {
probiha_hra = false;
}
function sestavit_level() {
hp.pozadi.gotoAndStop(snimek_pozadi[aktualni_level]);
hp.kolize.gotoAndStop(snimek_kolize[aktualni_level]);
hp.foreground.gotoAndStop(snimek_popredi[aktualni_level]);
}
function mainmenu_start_click() {
game_completed = false;
score = 0;
pocet_zivotu = 5;
aktualni_level = startovaci_level;
sestavit_level();
music_start();
mainmenu.gotoAndPlay("odjezd");
}
function spustit_hru() {
aktualni_rychlost = 1;
kolik_sebrat_v_levelu = kolik_sebrat[aktualni_level];
nastartovat_hada();
}
function game_over() {
music_end();
gameover.gotoAndPlay("najezd");
}
function schovat_game_over() {
gameover.gotoAndStop(1);
}
function zpet_do_menu() {
mainmenu.gotoAndPlay("najezd");
}
function zpet_do_main_menu_esc() {
music_end();
restart_clouds();
ukoncit_special();
zastavit_akci();
mainmenu.gotoAndPlay("najezd");
}
function restartuj_level() {
aktualni_rychlost = 1;
nastartovat_hada();
posun_obrazu();
}
function po_kolizi() {
restart_clouds();
play_crash_sound();
ukoncit_special();
zastavit_akci();
pocet_zivotu--;
if (pocet_zivotu > 0) {
restartuj_level();
} else {
game_over();
}
}
function level_end() {
restart_clouds();
ukoncit_special();
zastavit_akci();
meziobrazovka.gotoAndPlay("najezd");
}
function mezi_cleaner() {
}
function show_lives(number) {
if (pocet_zivotu == number) {
score = score + (pocet_zivotu * kolik_bodu_za_zivot);
return(true);
}
return(false);
}
function show_levelnum(number) {
if (aktualni_level == number) {
return(true);
}
return(false);
}
function final_level() {
if (aktualni_level > cislo_posledniho_levelu) {
game_over();
meziobrazovka.mask.gotoAndStop("konec");
meziobrazovka.stop();
}
}
function game_over_actions() {
if (pocet_zivotu > 0) {
gameover.nadpis.gotoAndStop(2);
} else {
gameover.nadpis.gotoAndStop(3);
}
}
function novy_level() {
i = 1;
while (i <= maximalni_delka_hada) {
snakedata[i].i._visible = false;
i++;
}
aktualni_level++;
if (aktualni_level <= cislo_posledniho_levelu) {
sestavit_level();
}
snakedata[1].x = pozice_hada[aktualni_level][0];
snakedata[1].y = pozice_hada[aktualni_level][1];
posun_obrazu();
}
function novy_level_start() {
if ((aktualni_level <= cislo_posledniho_levelu) && (aktualni_level > startovaci_level)) {
aktualni_rychlost = 1;
kolik_sebrat_v_levelu = kolik_sebrat[aktualni_level];
nastartovat_hada();
posun_obrazu();
}
}
function nastartovat_hada() {
pocitadlo_snimku = 0;
delka_hada = startovni_delka_hada;
bonuscounter = 0;
replace_bonus();
i = 1;
while (i <= maximalni_delka_hada) {
snakedata[i].i._visible = false;
i++;
}
smer_hada = vychozi_smer_hada[aktualni_level];
snakedata[1].x = pozice_hada[aktualni_level][0];
snakedata[1].y = pozice_hada[aktualni_level][1];
snakedata[1].scale = 0;
i = 2;
while (i <= startovni_delka_hada) {
snakedata[i].scale = 0;
snakedata[i].x = snakedata[i - 1].x + (20 * sintab[uhel(smer_hada + 180)]);
snakedata[i].y = snakedata[i - 1].y + (20 * (-costab[uhel(smer_hada + 180)]));
i++;
}
place_snake();
posun_obrazu();
looper1.gotoAndPlay(2);
}
function nastartovat_loop() {
ukoncit_looper1 = true;
i = 1;
while (i <= startovni_delka_hada) {
snakedata[i].i._visible = true;
if ((i == 1) || (snakedata[i - 1].scale > (looper1_akcelerace * looper1_zpozdeni))) {
snakedata[i].scale = snakedata[i].scale + looper1_akcelerace;
if (snakedata[i].scale >= 100) {
snakedata[i].scale = 100;
} else {
ukoncit_looper1 = false;
}
}
snakedata[i].i._xscale = snakedata[i].scale;
snakedata[i].i._yscale = snakedata[i].scale;
i++;
}
if (ukoncit_looper1) {
looper1.gotoAndStop(1);
spustit_akci();
}
}
function place_snake() {
i = 1;
while (i <= delka_hada) {
snakedata[i].i._x = snakedata[i].x;
snakedata[i].i._y = snakedata[i].y;
i++;
}
}
function uhel(cislo) {
cislo = Math.round(cislo);
while (cislo > 359) {
cislo = cislo - 360;
}
while (cislo < 0) {
cislo = cislo + 360;
}
return(cislo);
}
function calculate_snake() {
snakedata[1].x = snakedata[1].x + (rychlosti_hada[aktualni_rychlost] * sintab[uhel(smer_hada)]);
snakedata[1].y = snakedata[1].y + (rychlosti_hada[aktualni_rychlost] * (-costab[uhel(smer_hada)]));
i = 2;
while (i <= delka_hada) {
snakedata[i].x = snakedata[i].x + (snakedata[i].xposun * rychlosti_hada[aktualni_rychlost]);
snakedata[i].y = snakedata[i].y + (snakedata[i].yposun * rychlosti_hada[aktualni_rychlost]);
i++;
}
}
function nove_posuny() {
i = 2;
while (i <= delka_hada) {
np_xvzdalenost = snakedata[i - 1].x - snakedata[i].x;
np_yvzdalenost = snakedata[i - 1].y - snakedata[i].y;
snakedata[i].xposun = np_xvzdalenost / vzdalenost_kulicek;
snakedata[i].yposun = np_yvzdalenost / vzdalenost_kulicek;
i++;
}
}
function posun_obrazu() {
zemetreseni = 0;
if (special_spusten && (specialni_bonusy[vybrany_special][3] == "zemetreseni")) {
zemetreseni = 10 + random(10);
if (odpocet_do_ukonceni < 50) {
zemetreseni = 7 + random(7);
}
if (odpocet_do_ukonceni < 25) {
zemetreseni = 4 + random(4);
}
}
hpposx = -1 * (snakedata[1].x - polovina_obrazu_x);
if (hpposx < posun_limit_x1) {
hpposx = posun_limit_x1;
}
if (hpposx > posun_limit_x2) {
hpposx = posun_limit_x2;
}
hpposy = -1 * (snakedata[1].y - polovina_obrazu_y);
if (hpposy < posun_limit_y1) {
hpposy = posun_limit_y1;
}
if (hpposy > posun_limit_y2) {
hpposy = posun_limit_y2;
}
hp._x = hpposx + (Math.round(zemetreseni / 2) - random(zemetreseni));
hp._y = hpposy + (Math.round(zemetreseni / 2) - random(zemetreseni));
}
function plynuly_posun_obrazu() {
hpposx = hp._x;
hpposy = hp._y;
cilovy_hpposx = -1 * (snakedata[1].x - polovina_obrazu_x);
if (cilovy_hpposx < posun_limit_x1) {
cilovy_hpposx = posun_limit_x1;
}
if (cilovy_hpposx > posun_limit_x2) {
cilovy_hpposx = posun_limit_x2;
}
cilovy_hpposy = -1 * (snakedata[1].y - polovina_obrazu_y);
if (cilovy_hpposy < posun_limit_y1) {
cilovy_hpposy = posun_limit_y1;
}
if (cilovy_hpposy > posun_limit_y2) {
cilovy_hpposy = posun_limit_y2;
}
if (hpposx < cilovy_hpposx) {
hpposx = hpposx + konstanta_pro_plynuly_posun;
}
if (hpposx > cilovy_hpposx) {
hpposx = hpposx - konstanta_pro_plynuly_posun;
}
if (Math.abs(hpposx - cilovy_hpposx) < konstanta_pro_plynuly_posun) {
hpposx = cilovy_hpposx;
}
if (hpposy < cilovy_hpposy) {
hpposy = hpposy + konstanta_pro_plynuly_posun;
}
if (hpposy > cilovy_hpposy) {
hpposy = hpposy - konstanta_pro_plynuly_posun;
}
if (Math.abs(hpposy - cilovy_hpposy) < konstanta_pro_plynuly_posun) {
hpposy = cilovy_hpposy;
}
if ((Math.abs(hpposy - cilovy_hpposy) < konstanta_pro_plynuly_posun) && (Math.abs(hpposx - cilovy_hpposx) < konstanta_pro_plynuly_posun)) {
spustit_akci();
}
hp._x = hpposx;
hp._y = hpposy;
}
function replace_bonus() {
bonuscounter++;
if ((Math.round(bonuscounter / za_kolik_bonusu_special) - (bonuscounter / za_kolik_bonusu_special)) == 0) {
typ_tohoto_bonusu = 2;
} else {
typ_tohoto_bonusu = 1;
}
vygenerovano = false;
while (vygenerovano == false) {
if (typ_tohoto_bonusu == 1) {
generovane_cislo = random(pozice_bonusu[aktualni_level].length);
generovane_cislo_x = pozice_bonusu[aktualni_level][generovane_cislo][0];
generovane_cislo_y = pozice_bonusu[aktualni_level][generovane_cislo][1];
} else {
generovane_cislo = random(pozice_specialu[aktualni_level].length);
generovane_cislo_x = pozice_specialu[aktualni_level][generovane_cislo][0];
generovane_cislo_y = pozice_specialu[aktualni_level][generovane_cislo][1];
}
if (bonuspozice != generovane_cislo) {
vygenerovano = true;
i = 1;
while (i <= delka_hada) {
rozdil_x_souradnic = Math.abs(generovane_cislo_x - snakedata[i].x);
rozdil_y_souradnic = Math.abs(generovane_cislo_y - snakedata[i].y);
delsi_vzdalenost = ((rozdil_x_souradnic < rozdil_y_souradnic) ? (rozdil_y_souradnic) : (rozdil_x_souradnic));
if (delsi_vzdalenost < vzdalenost_pro_generovani_bonusu) {
vygenerovano = false;
}
i++;
}
if (vygenerovano) {
bonuspozice = generovane_cislo;
}
}
}
if (typ_tohoto_bonusu == 1) {
hp.bonus._x = pozice_bonusu[aktualni_level][bonuspozice][0];
hp.bonus._y = pozice_bonusu[aktualni_level][bonuspozice][1];
hp.bonus.gotoAndStop(2);
} else {
hp.bonus._x = pozice_specialu[aktualni_level][bonuspozice][0];
hp.bonus._y = pozice_specialu[aktualni_level][bonuspozice][1];
hp.bonus.gotoAndStop(3);
}
}
function hide_bonus() {
hp.bonus.gotoAndStop(1);
}
function bonus_sebran() {
if ((Math.round(bonuscounter / za_kolik_bonusu_special) - (bonuscounter / za_kolik_bonusu_special)) == 0) {
typ_tohoto_bonusu = 2;
} else {
typ_tohoto_bonusu = 1;
}
if (typ_tohoto_bonusu == 1) {
play_bonus1_sound();
}
if (typ_tohoto_bonusu == 2) {
play_bonus2_sound();
}
if (typ_tohoto_bonusu == 2) {
vygenerovano = false;
while (vygenerovano == false) {
generovane_cislo = random(specialni_bonusy.length);
if (vybrany_special != generovane_cislo) {
vygenerovano = true;
if (clouds_active && (specialni_bonusy[generovane_cislo][3] == "storm")) {
vygenerovano = false;
}
if ((aktualni_rychlost == 1) && (specialni_bonusy[generovane_cislo][3] == "zpomaleni")) {
vygenerovano = false;
}
if (vygenerovano) {
vybrany_special = generovane_cislo;
special_aktivni = true;
special_spusten = false;
special_proveden = false;
if ((specialni_bonusy[vybrany_special][0] == 1) || (specialni_bonusy[vybrany_special][0] == 2)) {
odpocet_do_spusteni = 75;
} else {
odpocet_do_spusteni = 0;
}
odpocet_do_ukonceni = specialni_bonusy[vybrany_special][1] * 25;
}
}
}
score = score + specialni_bonusy[vybrany_special][2];
}
if (delka_hada < maximalni_delka_hada) {
pridat_kulicku(1);
}
score++;
if (kolik_sebrat_v_levelu > 0) {
kolik_sebrat_v_levelu--;
}
if (kolik_sebrat_v_levelu == 0) {
level_end();
hide_bonus();
} else {
replace_bonus();
}
}
function ukoncit_special() {
special_aktivni = false;
special_spusten = false;
special_proveden = false;
specials.numbers.gotoAndStop(1);
specials.gotoAndStop(1);
}
function pridat_kulicku(kolik_kulicek) {
if (kolik_kulicek > 0) {
i = 1;
while (i <= kolik_kulicek) {
delka_hada++;
np_xvzdalenost = snakedata[delka_hada - 1].x - snakedata[delka_hada - 2].x;
np_yvzdalenost = snakedata[delka_hada - 1].y - snakedata[delka_hada - 2].y;
snakedata[delka_hada].x = snakedata[delka_hada - 1].x + np_xvzdalenost;
snakedata[delka_hada].y = snakedata[delka_hada - 1].y + np_yvzdalenost;
snakedata[delka_hada].xposun = snakedata[delka_hada - 1].xposun;
snakedata[delka_hada].yposun = snakedata[delka_hada - 1].yposun;
snakedata[delka_hada].i._x = snakedata[delka_hada].x;
snakedata[delka_hada].i._y = snakedata[delka_hada].y;
snakedata[delka_hada].i._visible = true;
i++;
}
}
}
function update_compas() {
if ((Math.round(bonuscounter / za_kolik_bonusu_special) - (bonuscounter / za_kolik_bonusu_special)) == 0) {
typ_tohoto_bonusu = 2;
} else {
typ_tohoto_bonusu = 1;
}
if (typ_tohoto_bonusu == 1) {
rozdil_x_souradnic = pozice_bonusu[aktualni_level][bonuspozice][0] - snakedata[1].x;
rozdil_y_souradnic = pozice_bonusu[aktualni_level][bonuspozice][1] - snakedata[1].y;
} else {
rozdil_x_souradnic = pozice_specialu[aktualni_level][bonuspozice][0] - snakedata[1].x;
rozdil_y_souradnic = pozice_specialu[aktualni_level][bonuspozice][1] - snakedata[1].y;
}
if (rozdil_x_souradnic == 0) {
rozdil_x_souradnic = 0.1;
}
if (rozdil_y_souradnic == 0) {
rozdil_y_souradnic = 0.1;
}
novy_uhel_sipky = uhel(Math.round((Math.atan(rozdil_x_souradnic / rozdil_y_souradnic) * 180) / Math.PI));
if (rozdil_y_souradnic < 0) {
novy_uhel_sipky = uhel(360 - novy_uhel_sipky);
} else {
novy_uhel_sipky = uhel(180 - novy_uhel_sipky);
}
smerovka.sipka._rotation = novy_uhel_sipky;
}
function snake_reverse() {
if (special_proveden == false) {
i = 1;
while (i <= delka_hada) {
temp_snakedata[i].x = snakedata[i].x;
temp_snakedata[i].y = snakedata[i].y;
i++;
}
i = delka_hada;
while (i >= 1) {
snakedata[(delka_hada - i) + 1].x = temp_snakedata[i].x;
snakedata[(delka_hada - i) + 1].y = temp_snakedata[i].y;
i--;
}
rozdil_x_souradnic = snakedata[1].x - snakedata[2].x;
rozdil_y_souradnic = snakedata[1].y - snakedata[2].y;
if (rozdil_x_souradnic == 0) {
rozdil_x_souradnic = 0.1;
}
if (rozdil_y_souradnic == 0) {
rozdil_y_souradnic = 0.1;
}
smer_hada = uhel(Math.round((Math.atan(rozdil_x_souradnic / rozdil_y_souradnic) * 180) / Math.PI));
if (rozdil_y_souradnic < 0) {
smer_hada = uhel(360 - smer_hada);
} else {
smer_hada = uhel(180 - smer_hada);
}
zastavit_akci();
special_proveden = true;
}
}
function action_loop() {
if (probiha_hra && (pauza_aktivni == 0)) {
if (special_aktivni) {
specials.numbers.gotoAndStop(1);
cislo_snimku_specials = vybrany_special + 2;
specials.gotoAndStop(cislo_snimku_specials);
if ((specialni_bonusy[vybrany_special][0] == 1) || (specialni_bonusy[vybrany_special][0] == 2)) {
sekundy_odpoctu = Math.ceil(odpocet_do_spusteni / 25);
if (sekundy_odpoctu < 1) {
sekundy_odpoctu = 1;
}
if (sekundy_odpoctu > 3) {
sekundy_odpoctu = 3;
}
specials.numbers.gotoAndStop(sekundy_odpoctu + 1);
}
if (odpocet_do_spusteni > 0) {
odpocet_do_spusteni--;
} else {
special_spusten = true;
}
if (special_spusten) {
if (odpocet_do_ukonceni > 0) {
odpocet_do_ukonceni--;
if (specialni_bonusy[vybrany_special][0] == 1) {
sekundy_odpoctu = Math.ceil(odpocet_do_ukonceni / 25);
if (sekundy_odpoctu < 1) {
sekundy_odpoctu = 1;
}
if (sekundy_odpoctu > 15) {
sekundy_odpoctu = 15;
}
specials.numbers.gotoAndStop(sekundy_odpoctu + 4);
}
if (specialni_bonusy[vybrany_special][0] == 2) {
specials.numbers.gotoAndStop(21);
}
} else {
ukoncit_special();
}
}
}
po_kolika_zrychlovat = Math.round((kolik_sebrat[aktualni_level] - 5) / 2);
aktualni_rychlost = 1;
if (kolik_sebrat_v_levelu < (kolik_sebrat[aktualni_level] - 5)) {
aktualni_rychlost = 2;
}
if (kolik_sebrat_v_levelu <= po_kolika_zrychlovat) {
aktualni_rychlost = 3;
}
if (special_spusten && (specialni_bonusy[vybrany_special][3] == "zrychleni")) {
aktualni_rychlost = 4;
}
if (special_spusten && (specialni_bonusy[vybrany_special][3] == "zpomaleni")) {
aktualni_rychlost = 1;
}
if (((pocitadlo_snimku == 0) && (special_spusten)) && (specialni_bonusy[vybrany_special][3] == "reverse")) {
snake_reverse();
}
if (special_spusten && (specialni_bonusy[vybrany_special][3] == "storm")) {
start_clouds();
}
update_compas();
if (probiha_hra) {
if (pocitadlo_snimku == 0) {
nove_posuny();
pocitadlo_snimku = ps_vypocet[aktualni_rychlost] - 1;
} else {
pocitadlo_snimku--;
}
calculate_snake();
place_snake();
posun_obrazu();
koliduje = false;
if (hp.kolize.hitTest(snakedata[1].x + hpposx, snakedata[1].y + hpposy, true)) {
koliduje = true;
}
if ((((snakedata[1].x < souradnice_limit_x1) || (snakedata[1].x > souradnice_limit_x2)) || (snakedata[1].y < souradnice_limit_y1)) || (snakedata[1].y > souradnice_limit_y2)) {
koliduje = true;
}
i = 2;
while (i <= delka_hada) {
rozdil_x_souradnic = Math.abs(snakedata[1].x - snakedata[i].x);
rozdil_y_souradnic = Math.abs(snakedata[1].y - snakedata[i].y);
delsi_vzdalenost = ((rozdil_x_souradnic < rozdil_y_souradnic) ? (rozdil_y_souradnic) : (rozdil_x_souradnic));
if (delsi_vzdalenost < vzdalenost_pro_kolizi_kulicek) {
koliduje = true;
}
i++;
}
if (koliduje) {
po_kolizi();
}
koliduje = false;
if ((Math.round(bonuscounter / za_kolik_bonusu_special) - (bonuscounter / za_kolik_bonusu_special)) == 0) {
typ_tohoto_bonusu = 2;
} else {
typ_tohoto_bonusu = 1;
}
if (typ_tohoto_bonusu == 1) {
rozdil_x_souradnic = Math.abs(snakedata[1].x - pozice_bonusu[aktualni_level][bonuspozice][0]);
rozdil_y_souradnic = Math.abs(snakedata[1].y - pozice_bonusu[aktualni_level][bonuspozice][1]);
} else {
rozdil_x_souradnic = Math.abs(snakedata[1].x - pozice_specialu[aktualni_level][bonuspozice][0]);
rozdil_y_souradnic = Math.abs(snakedata[1].y - pozice_specialu[aktualni_level][bonuspozice][1]);
}
delsi_vzdalenost = ((rozdil_x_souradnic < rozdil_y_souradnic) ? (rozdil_y_souradnic) : (rozdil_x_souradnic));
if (delsi_vzdalenost < vzdalenost_pro_sebrani_bonusu) {
koliduje = true;
}
if (koliduje) {
bonus_sebran();
}
}
} else if (special_spusten && (specialni_bonusy[vybrany_special][3] == "reverse")) {
plynuly_posun_obrazu();
}
}
function goToHiScores() {
gotoAndStop (6);
}
sintab = new Array();
costab = new Array();
i = 0;
while (i < 360) {
cossin_rad = (i * Math.PI) / 180;
sintab[i] = Math.sin(cossin_rad);
costab[i] = Math.cos(cossin_rad);
i++;
}
sirka_hraci_plochy = 800;
vyska_hraci_plochy = 600;
startovni_delka_hada = 5;
startovaci_level = 1;
kolik_bodu_za_zivot = 5;
maximalni_delka_hada = 40;
delka_hada = startovni_delka_hada;
smer_hada = 0;
snakedata = new Array();
i = 1;
while (i <= maximalni_delka_hada) {
snakedata[i] = new Array();
snakedata[i].x = 0;
snakedata[i].y = 0;
snakedata[i].xposun = 0;
snakedata[i].yposun = 0;
snakedata[i].i = eval ("hp.had" + i);
snakedata[i].jump = 0;
snakedata[i].jumpcounter = 0;
snakedata[i].scale = 0;
i++;
}
temp_snakedata = new Array();
i = 1;
while (i <= maximalni_delka_hada) {
temp_snakedata[i] = new Array();
temp_snakedata[i].x = 0;
temp_snakedata[i].y = 0;
temp_snakedata[i].xposun = 0;
temp_snakedata[i].yposun = 0;
temp_snakedata[i].i = eval ("hp.had" + i);
temp_snakedata[i].jump = 0;
temp_snakedata[i].jumpcounter = 0;
temp_snakedata[i].scale = 0;
i++;
}
bonuscounter = 0;
bonuspozice = 0;
play_music = true;
play_sounds = true;
probiha_hra = false;
pauza_aktivni = 0;
score = 0;
aktualni_level = 1;
uhel_otaceni = 1.6;
aktualni_rychlost = 1;
pocitadlo_snimku = 0;
vzdalenost_kulicek = 20;
pocet_zivotu = 5;
looper1_akcelerace = 25;
looper1_zpozdeni = 2;
vzdalenost_pro_kolizi_kulicek = 9;
vzdalenost_pro_sebrani_bonusu = 11;
vzdalenost_pro_generovani_bonusu = 14;
zemetreseni = 0;
konstanta_pro_plynuly_posun = 10;
uhel_vetru = 0.6;
za_kolik_bonusu_special = 4;
clouds_active = false;
klavesa_vpravo = 39;
klavesa_vlevo = 37;
klavesa_pause = 80;
klavesa_zpet_do_menu = 27;
rychlosti_hada = new Array();
rychlosti_hada[1] = 3.333;
rychlosti_hada[2] = 4;
rychlosti_hada[3] = 5;
rychlosti_hada[4] = 6.667;
rychlosti_hada[5] = 10;
ps_vypocet = new Array();
ps_vypocet[1] = 6;
ps_vypocet[2] = 5;
ps_vypocet[3] = 4;
ps_vypocet[4] = 3;
ps_vypocet[5] = 2;
pocitadlo_frejmu = 0;
fps_start_time = new Date();
fps_end_time = new Date();
souradnice_limit_x1 = 0;
souradnice_limit_x2 = sirka_hraci_plochy;
souradnice_limit_y1 = 0;
souradnice_limit_y2 = vyska_hraci_plochy;
polovina_obrazu_x = 225;
polovina_obrazu_y = 165;
posun_limit_x1 = -351;
posun_limit_x2 = 0;
posun_limit_y1 = -271;
posun_limit_y2 = 0;
specialni_bonusy = new Array();
specialni_bonusy[0] = new Array(1, 6, 7, "zrychleni");
specialni_bonusy[1] = new Array(1, 6, 0, "zpomaleni");
specialni_bonusy[2] = new Array(1, 10, 1, "zemetreseni");
specialni_bonusy[3] = new Array(1, 6, 6, "wind_r");
specialni_bonusy[4] = new Array(1, 6, 5, "wind_l");
specialni_bonusy[5] = new Array(2, 3, 2, "reverse");
specialni_bonusy[6] = new Array(3, 3, 3, "storm");
specialni_bonusy[7] = new Array(3, 3, 4, "bonus2");
sound_bonus = new Sound(soundclip1);
sound_bonus.attachSound("snd_bonus");
sound_special = new Sound(soundclip2);
sound_special.attachSound("sbd_special");
sound_crash = new Sound(soundclip3);
sound_crash.attachSound("snd_crash");
sound_bgsound = new Sound(soundclip4);
sound_bgsound.attachSound("snd_bgsound");
music_volume = 60;
max_music_volume = 60;
sound_bgsound.setVolume(music_volume);
music_fade_in = false;
music_fade_out = false;
cislo_posledniho_levelu = 3;
pozice_hada = new Array();
pozice_hada[1] = new Array(260, 230);
pozice_hada[2] = new Array(223, 65);
pozice_hada[3] = new Array(290, 330);
vychozi_smer_hada = new Array();
vychozi_smer_hada[1] = 45;
vychozi_smer_hada[2] = 100;
vychozi_smer_hada[3] = 45;
kolik_sebrat = new Array();
kolik_sebrat[1] = 30;
kolik_sebrat[2] = 35;
kolik_sebrat[3] = 40;
pozice_bonusu = new Array();
pozice_bonusu[1] = new Array();
pozice_bonusu[1][0] = new Array(59, 384);
pozice_bonusu[1][1] = new Array(66, 473);
pozice_bonusu[1][2] = new Array(147, 466);
pozice_bonusu[1][3] = new Array(128, 530);
pozice_bonusu[1][4] = new Array(240, 564);
pozice_bonusu[1][5] = new Array(360, 535);
pozice_bonusu[1][6] = new Array(453, 509);
pozice_bonusu[1][7] = new Array(412, 442);
pozice_bonusu[1][8] = new Array(492, 454);
pozice_bonusu[1][9] = new Array(601, 455);
pozice_bonusu[1][10] = new Array(675, 393);
pozice_bonusu[1][11] = new Array(407, 382);
pozice_bonusu[1][12] = new Array(507, 317);
pozice_bonusu[1][13] = new Array(528, 388);
pozice_bonusu[1][14] = new Array(642, 283);
pozice_bonusu[1][15] = new Array(576, 227);
pozice_bonusu[1][16] = new Array(772, 170);
pozice_bonusu[1][17] = new Array(768, 259);
pozice_bonusu[1][18] = new Array(717, 93);
pozice_bonusu[1][19] = new Array(595, 117);
pozice_bonusu[1][20] = new Array(549, 29);
pozice_bonusu[1][21] = new Array(436, 44);
pozice_bonusu[1][22] = new Array(352, 82);
pozice_bonusu[1][23] = new Array(333, 172);
pozice_bonusu[1][24] = new Array(243, 187);
pozice_bonusu[1][25] = new Array(277, 322);
pozice_bonusu[1][26] = new Array(221, 259);
pozice_bonusu[1][27] = new Array(133, 218);
pozice_bonusu[1][28] = new Array(112, 265);
pozice_bonusu[1][29] = new Array(35, 247);
pozice_bonusu[1][30] = new Array(395, 292);
pozice_bonusu[1][31] = new Array(61, 192);
pozice_bonusu[1][32] = new Array(715, 383);
pozice_bonusu[1][33] = new Array(532, 72);
pozice_bonusu[1][34] = new Array(286, 336);
pozice_bonusu[1][35] = new Array(448, 379);
pozice_bonusu[1][36] = new Array(588, 285);
pozice_bonusu[1][37] = new Array(112, 545);
pozice_bonusu[1][38] = new Array(436, 535);
pozice_bonusu[1][39] = new Array(763, 148);
pozice_bonusu[1][40] = new Array(732, 341);
pozice_bonusu[2] = new Array();
pozice_bonusu[2][0] = new Array(158, 56);
pozice_bonusu[2][1] = new Array(78, 132);
pozice_bonusu[2][2] = new Array(47, 227);
pozice_bonusu[2][3] = new Array(98, 350);
pozice_bonusu[2][4] = new Array(195, 375);
pozice_bonusu[2][5] = new Array(323, 268);
pozice_bonusu[2][6] = new Array(365, 194);
pozice_bonusu[2][7] = new Array(253, 34);
pozice_bonusu[2][8] = new Array(308, 101);
pozice_bonusu[2][9] = new Array(416, 50);
pozice_bonusu[2][10] = new Array(472, 138);
pozice_bonusu[2][11] = new Array(580, 124);
pozice_bonusu[2][12] = new Array(694, 62);
pozice_bonusu[2][13] = new Array(747, 159);
pozice_bonusu[2][14] = new Array(739, 96);
pozice_bonusu[2][15] = new Array(652, 258);
pozice_bonusu[2][16] = new Array(696, 360);
pozice_bonusu[2][17] = new Array(551, 362);
pozice_bonusu[2][18] = new Array(649, 386);
pozice_bonusu[2][19] = new Array(735, 484);
pozice_bonusu[2][20] = new Array(672, 525);
pozice_bonusu[2][21] = new Array(609, 563);
pozice_bonusu[2][22] = new Array(524, 521);
pozice_bonusu[2][23] = new Array(432, 562);
pozice_bonusu[2][24] = new Array(340, 550);
pozice_bonusu[2][25] = new Array(355, 496);
pozice_bonusu[2][26] = new Array(311, 436);
pozice_bonusu[2][27] = new Array(115, 428);
pozice_bonusu[2][28] = new Array(267, 76);
pozice_bonusu[2][29] = new Array(61, 331);
pozice_bonusu[2][30] = new Array(347, 346);
pozice_bonusu[2][31] = new Array(652, 571);
pozice_bonusu[2][32] = new Array(770, 428);
pozice_bonusu[2][33] = new Array(22, 109);
pozice_bonusu[2][34] = new Array(179, 308);
pozice_bonusu[2][35] = new Array(526, 121);
pozice_bonusu[2][36] = new Array(146, 111);
pozice_bonusu[2][37] = new Array(588, 339);
pozice_bonusu[2][38] = new Array(373, 534);
pozice_bonusu[2][39] = new Array(600, 294);
pozice_bonusu[2][40] = new Array(158, 371);
pozice_bonusu[3] = new Array();
pozice_bonusu[3][0] = new Array(723, 75);
pozice_bonusu[3][1] = new Array(623, 28);
pozice_bonusu[3][2] = new Array(526, 42);
pozice_bonusu[3][3] = new Array(598, 102);
pozice_bonusu[3][4] = new Array(685, 163);
pozice_bonusu[3][5] = new Array(609, 195);
pozice_bonusu[3][6] = new Array(696, 242);
pozice_bonusu[3][7] = new Array(744, 340);
pozice_bonusu[3][8] = new Array(687, 387);
pozice_bonusu[3][9] = new Array(740, 440);
pozice_bonusu[3][10] = new Array(663, 513);
pozice_bonusu[3][11] = new Array(555, 506);
pozice_bonusu[3][12] = new Array(483, 452);
pozice_bonusu[3][13] = new Array(445, 121);
pozice_bonusu[3][14] = new Array(412, 193);
pozice_bonusu[3][15] = new Array(431, 253);
pozice_bonusu[3][16] = new Array(345, 226);
pozice_bonusu[3][17] = new Array(336, 321);
pozice_bonusu[3][18] = new Array(379, 386);
pozice_bonusu[3][19] = new Array(290, 385);
pozice_bonusu[3][20] = new Array(261, 316);
pozice_bonusu[3][21] = new Array(215, 271);
pozice_bonusu[3][22] = new Array(194, 354);
pozice_bonusu[3][23] = new Array(234, 433);
pozice_bonusu[3][24] = new Array(188, 515);
pozice_bonusu[3][25] = new Array(113, 506);
pozice_bonusu[3][26] = new Array(65, 490);
pozice_bonusu[3][27] = new Array(45, 452);
pozice_bonusu[3][28] = new Array(62, 396);
pozice_bonusu[3][29] = new Array(176, 435);
pozice_bonusu[3][30] = new Array(243, 189);
pozice_bonusu[3][31] = new Array(247, 111);
pozice_bonusu[3][32] = new Array(164, 33);
pozice_bonusu[3][33] = new Array(88, 89);
pozice_bonusu[3][34] = new Array(45, 151);
pozice_bonusu[3][35] = new Array(184, 135);
pozice_bonusu[3][36] = new Array(588, 208);
pozice_bonusu[3][37] = new Array(492, 154);
pozice_bonusu[3][38] = new Array(303, 329);
pozice_bonusu[3][39] = new Array(179, 430);
pozice_bonusu[3][40] = new Array(676, 184);
pozice_specialu = new Array();
pozice_specialu[1] = new Array();
pozice_specialu[1][0] = new Array(162, 238);
pozice_specialu[1][1] = new Array(80, 252);
pozice_specialu[1][2] = new Array(111, 495);
pozice_specialu[1][3] = new Array(453, 474);
pozice_specialu[1][4] = new Array(406, 349);
pozice_specialu[1][5] = new Array(584, 365);
pozice_specialu[1][6] = new Array(609, 268);
pozice_specialu[1][7] = new Array(707, 187);
pozice_specialu[1][8] = new Array(625, 75);
pozice_specialu[1][9] = new Array(591, 411);
pozice_specialu[1][10] = new Array(530, 337);
pozice_specialu[1][11] = new Array(281, 213);
pozice_specialu[1][12] = new Array(463, 398);
pozice_specialu[1][13] = new Array(657, 260);
pozice_specialu[1][14] = new Array(151, 520);
pozice_specialu[2] = new Array();
pozice_specialu[2][0] = new Array(700, 390);
pozice_specialu[2][1] = new Array(543, 355);
pozice_specialu[2][2] = new Array(610, 570);
pozice_specialu[2][3] = new Array(370, 535);
pozice_specialu[2][4] = new Array(180, 400);
pozice_specialu[2][5] = new Array(85, 350);
pozice_specialu[2][6] = new Array(332, 255);
pozice_specialu[2][7] = new Array(415, 60);
pozice_specialu[2][8] = new Array(110, 135);
pozice_specialu[2][9] = new Array(55, 350);
pozice_specialu[2][10] = new Array(136, 32);
pozice_specialu[2][11] = new Array(727, 155);
pozice_specialu[2][12] = new Array(625, 275);
pozice_specialu[2][13] = new Array(330, 465);
pozice_specialu[2][14] = new Array(450, 120);
pozice_specialu[3] = new Array();
pozice_specialu[3][0] = new Array(732, 469);
pozice_specialu[3][1] = new Array(634, 488);
pozice_specialu[3][2] = new Array(619, 77);
pozice_specialu[3][3] = new Array(492, 165);
pozice_specialu[3][4] = new Array(292, 320);
pozice_specialu[3][5] = new Array(201, 462);
pozice_specialu[3][6] = new Array(87, 418);
pozice_specialu[3][7] = new Array(607, 46);
pozice_specialu[3][8] = new Array(164, 36);
pozice_specialu[3][9] = new Array(70, 121);
pozice_specialu[3][10] = new Array(210, 192);
pozice_specialu[3][11] = new Array(688, 232);
pozice_specialu[3][12] = new Array(367, 359);
pozice_specialu[3][13] = new Array(540, 207);
pozice_specialu[3][14] = new Array(173, 366);
snimek_pozadi = new Array();
snimek_pozadi[1] = 2;
snimek_pozadi[2] = 3;
snimek_pozadi[3] = 4;
snimek_kolize = new Array();
snimek_kolize[1] = 2;
snimek_kolize[2] = 3;
snimek_kolize[3] = 4;
snimek_popredi = new Array();
snimek_popredi[1] = 2;
snimek_popredi[2] = 3;
snimek_popredi[3] = 4;
keycatcher.onEnterFrame = function () {
if (Key.isDown(klavesa_zpet_do_menu)) {
zpet_do_main_menu_esc();
}
if (probiha_hra) {
if (Key.isDown(klavesa_pause)) {
if (pauza_aktivni == 0) {
pauza_aktivni = 1;
show_pause();
}
if (pauza_aktivni == 2) {
pauza_aktivni = 3;
}
} else {
if (pauza_aktivni == 1) {
pauza_aktivni = 2;
}
if (pauza_aktivni == 3) {
pauza_aktivni = 0;
hide_pause();
}
}
}
if (probiha_hra && (pauza_aktivni == 0)) {
if (Key.isDown(klavesa_vpravo) && (snakedata[1].jump == 0)) {
smer_hada = smer_hada + (uhel_otaceni * rychlosti_hada[aktualni_rychlost]);
}
if (Key.isDown(klavesa_vlevo) && (snakedata[1].jump == 0)) {
smer_hada = smer_hada - (uhel_otaceni * rychlosti_hada[aktualni_rychlost]);
}
if ((!Key.isDown(klavesa_vpravo)) && (!Key.isDown(klavesa_vlevo))) {
if (special_spusten && (specialni_bonusy[vybrany_special][3] == "wind_r")) {
smer_hada = smer_hada - (uhel_vetru * rychlosti_hada[aktualni_rychlost]);
}
if (special_spusten && (specialni_bonusy[vybrany_special][3] == "wind_l")) {
smer_hada = smer_hada + (uhel_vetru * rychlosti_hada[aktualni_rychlost]);
}
}
}
};
general_init();
Frame 7
action_loop();
Frame 8
gotoAndPlay (7);
Symbol 15 MovieClip Frame 99
_parent.play();
stop();
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 2
_root.nastartovat_loop();
Symbol 65 MovieClip Frame 3
gotoAndPlay (2);
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 2
stop();
Symbol 69 MovieClip Frame 3
stop();
Symbol 69 MovieClip Frame 4
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 2
stop();
Symbol 76 MovieClip Frame 3
stop();
Symbol 76 MovieClip Frame 4
stop();
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 2
stop();
Symbol 82 MovieClip Frame 3
stop();
Symbol 85 MovieClip Frame 2
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 517
_root.stop_clouds();
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 2
stop();
Symbol 99 MovieClip Frame 3
stop();
Symbol 99 MovieClip Frame 4
stop();
Symbol 104 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 127 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 2
stop();
Symbol 165 MovieClip Frame 1
play();
Symbol 165 MovieClip Frame 200
stop();
Symbol 172 MovieClip Frame 1
if (_root.show_levelnum(1)) {
play();
} else {
stop();
}
Symbol 172 MovieClip Frame 106
stop();
Symbol 176 MovieClip Frame 1
if (_root.show_levelnum(2)) {
play();
} else {
stop();
}
Symbol 176 MovieClip Frame 106
stop();
Symbol 180 MovieClip Frame 1
if (_root.show_levelnum(3)) {
play();
} else {
stop();
}
Symbol 180 MovieClip Frame 106
stop();
Symbol 191 MovieClip Frame 1
if (_root.show_lives(1)) {
play();
} else {
stop();
}
Symbol 191 MovieClip Frame 106
stop();
Symbol 198 MovieClip Frame 1
if (_root.show_lives(2)) {
play();
} else {
stop();
}
Symbol 198 MovieClip Frame 106
stop();
Symbol 204 MovieClip Frame 1
if (_root.show_lives(3)) {
play();
} else {
stop();
}
Symbol 204 MovieClip Frame 106
stop();
Symbol 208 MovieClip Frame 1
if (_root.show_lives(4)) {
play();
} else {
stop();
}
Symbol 208 MovieClip Frame 106
stop();
Symbol 212 MovieClip Frame 1
if (_root.show_lives(5)) {
play();
} else {
stop();
}
Symbol 212 MovieClip Frame 106
stop();
Symbol 213 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 2
mask.gotoAndPlay(1);
Symbol 213 MovieClip Frame 42
_root.mezi_cleaner();
_root.novy_level();
Symbol 213 MovieClip Frame 150
_root.final_level();
Symbol 213 MovieClip Frame 201
_root.novy_level_start();
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 25
if (_root.button1active) {
stop();
}
Symbol 230 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 25
if (_root.button2active) {
stop();
}
Symbol 237 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 25
if (_root.button3active) {
stop();
}
Symbol 241 Button
on (release, keyPress "<Space>") {
_root.mainmenu_start_click();
}
on (rollOut, dragOut) {
_root.mainmenu_start_out();
}
on (rollOver) {
_root.mainmenu_start_over();
}
Symbol 243 Button
on (release) {
_root.options_click();
}
on (rollOut, dragOut) {
_root.options_out();
}
on (rollOver) {
_root.options_over();
}
Symbol 245 Button
on (release) {
_root.help_click();
}
on (rollOut, dragOut) {
_root.help_out();
}
on (rollOver) {
_root.help_over();
}
Symbol 251 Button
on (release) {
getURL ("http://www.miniclip.com/snake.htm", "_blank");
}
Symbol 255 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 258 Button
on (release) {
getURL ("http://www.miniclip.com/signup2.htm", "_blank");
}
Symbol 261 Button
on (release) {
getURL ("http://www.miniclip.com/download.htm", "_blank");
}
Symbol 262 MovieClip Frame 1
stop();
Instance of Symbol 230 MovieClip "options_anim" in Symbol 262 MovieClip Frame 1
on (release) {
_root.options_click();
}
Instance of Symbol 237 MovieClip "help_anim" in Symbol 262 MovieClip Frame 1
on (release) {
_root.help_click();
}
Symbol 262 MovieClip Frame 2
stop();
Symbol 269 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 2
stop();
Symbol 277 Button
on (release) {
_root.options_click_close();
}
Symbol 284 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 2
stop();
Symbol 287 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 2
stop();
Symbol 290 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 2
stop();
Symbol 292 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 2
stop();
Symbol 294 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 2
stop();
Symbol 300 Button
on (release) {
_root.music_click();
}
Symbol 302 Button
on (release) {
_root.sound_click();
}
Symbol 303 Button
on (release) {
_root.set_quality(3);
}
Symbol 304 Button
on (release) {
_root.set_quality(2);
}
Symbol 305 Button
on (release) {
_root.set_quality(1);
}
Symbol 306 MovieClip Frame 1
stop();
Instance of Symbol 284 MovieClip "sign_sound" in Symbol 306 MovieClip Frame 2
on (release) {
_root.zvuky_click();
}
Instance of Symbol 287 MovieClip "sign_music" in Symbol 306 MovieClip Frame 2
on (release) {
_root.hudba_click();
}
Symbol 326 Button
on (release) {
_root.help_click_close();
}
Symbol 331 Button
on (release) {
gotoAndStop (3);
}
Symbol 350 Button
on (release) {
gotoAndStop (2);
}
Symbol 351 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 2
_root.schovat_game_over();
stop();
Symbol 352 MovieClip Frame 3
_root.spustit_hru();
stop();
Symbol 356 Button
on (release) {
_root.zpet_do_menu();
}
Symbol 361 Button
on (release) {
getURL ("http://www.miniclip.com/snake.htm", "_blank");
}
Symbol 373 MovieClip Frame 1
stop();
Symbol 373 MovieClip Frame 2
stop();
Symbol 373 MovieClip Frame 3
stop();
Symbol 374 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 2
_root.mezi_cleaner();
_root.game_over_actions();
stop();
Instance of Symbol 362 MovieClip in Symbol 374 MovieClip Frame 2
onClipEvent (load) {
if (_root.score <= 0) {
this._visible = false;
}
}