Frame 1
fscommand ("trapallkeys", true);
system.usecodepage = true;
fscommand ("showmenu", false);
fscommand ("allowscale", false);
_root.attachMovie("ramma", "ramma", 99000);
_root.ramma._x = 272.6;
_root.ramma._y = 197.6;
stop();
Frame 2
_root.reklamaopa2._visible = false;
stop();
Frame 3
function initgame() {
var _local1 = _root;
stop();
_local1.attachMovie("my", "my", 102);
_local1.my._x = 250;
_local1.my._y = 300;
_local1.my._xscale = 70;
_local1.my._yscale = 70;
_local1.attachMovie("tablo", "tablo", 3000);
_local1.tablo._alpha = 50;
_local1.tablo._x = 275;
_local1.tablo._y = 355;
_local1.attachMovie("t_text_d", "t_text_d", 3003);
_local1.t_text_d._alpha = 100;
_local1.t_text_d._x = 43;
_local1.t_text_d._y = 330;
_local1.attachMovie("t_dest", "t_dest", 3001);
_local1.t_dest._alpha = 100;
_local1.t_dest._x = 15;
_local1.t_dest._y = 345;
_local1.attachMovie("t_text_f", "t_text_f", 3004);
_local1.t_text_f._alpha = 100;
_local1.t_text_f._x = 43;
_local1.t_text_f._y = 365;
_local1.attachMovie("t_fuel", "t_fuel", 3002);
_local1.t_fuel._alpha = 100;
_local1.t_fuel._x = 15;
_local1.t_fuel._y = 380;
_local1.attachMovie("t_text_s", "t_text_s", 3006);
_local1.t_text_s._alpha = 100;
_local1.t_text_s._x = 200;
_local1.t_text_s._y = 330;
_local1.attachMovie("tablo_shield", "t_shield", 3007);
_local1.t_shield._alpha = 100;
_local1.t_shield._x = 171;
_local1.t_shield._y = 345;
_local1.t_shield._xscale = 0;
_local1.attachMovie("tablo_text_alien", "tablo_text_alien", 3008);
_local1.tablo_text_alien._alpha = 100;
_local1.tablo_text_alien._x = 200;
_local1.tablo_text_alien._y = 360;
_local1.attachMovie("tablo_alien_kill", "tablo_alien_kill", 3009);
_local1.tablo_alien_kill._alpha = 100;
_local1.tablo_alien_kill._x = 250;
_local1.tablo_alien_kill._y = 360;
_local1.attachMovie("tablo_text_life", "tablo_text_life", 3010);
_local1.tablo_text_life._alpha = 100;
_local1.tablo_text_life._x = 200;
_local1.tablo_text_life._y = 377;
_local1.attachMovie("tablo_life", "tablo_life", 3011);
_local1.tablo_life._alpha = 100;
_local1.tablo_life._x = 250;
_local1.tablo_life._y = 377;
_local1.attachMovie("tablo_text_score", "tablo_text_score", 3023);
_local1.tablo_text_score._alpha = 100;
_local1.tablo_text_score._x = 350;
_local1.tablo_text_score._y = 360;
_local1.attachMovie("tablo_score", "tablo_score", 3013);
_local1.tablo_score._alpha = 100;
_local1.tablo_score._x = 420;
_local1.tablo_score._y = 360;
_local1.attachMovie("logo_alpha_2", "logo_alpha_2", 3018);
_local1.logo_alpha_2._x = 275;
_local1.logo_alpha_2._y = 200;
_local1.attachMovie("fuel_critical", "fuel_critical", 3019);
_local1.fuel_critical._x = 470;
_local1.fuel_critical._y = 20;
_local1.attachMovie("fuel_text_critical", "fuel_text_critical", 3020);
_local1.fuel_text_critical._x = 510;
_local1.fuel_text_critical._y = 20;
_local1.attachMovie("tablo_df", "tablo_df", 3021);
_local1.tablo_df._x = 318;
_local1.tablo_df._y = 345;
_local1.attachMovie("tablo_df_text", "tablo_df_text", 3022);
_local1.tablo_df_text._x = 346;
_local1.tablo_df_text._y = 330;
_local1.tablo_df_text._visible = false;
_local1.tablo_df._visible = false;
_local1.attachMovie("tablo_alien_lost", "tablo_alien_lost", 3024);
_local1.tablo_alien_lost._x = 13.3;
_local1.tablo_alien_lost._y = 22.1;
_local1.attachMovie("tablo_alien_lost_ramka", "tablo_alien_lost_ramka", 3025);
_local1.tablo_alien_lost_ramka._x = 68.2;
_local1.tablo_alien_lost_ramka._y = 21.4;
_local1.attachMovie("tablo_lost_alien_text", "tablo_lost_alien_text", 3026);
_local1.tablo_lost_alien_text._x = 42;
_local1.tablo_lost_alien_text._y = 7;
yourgameuser = "";
score_user = 0;
score_user_temp = 0;
alien1_dvig = false;
alien2_dvig = false;
alien3_dvig = false;
alien4_dvig = false;
alien5_dvig = false;
alien6_dvig = false;
pike = false;
pike1 = 0;
rocket_alien1 = false;
rocket_alien2 = false;
rocket_alien3 = false;
rocket_alien4 = false;
rocket_alien5 = false;
rocket_alien6 = false;
rocket1_boss = false;
rocket2_boss = false;
life = 5;
end = false;
alien1_hit = 0;
alien4_hit = 0;
alien5_hit = 0;
alien1_bonus = false;
alien1_bonus_dvig = false;
alien2_hit = 0;
alien2_bonus = false;
alien2_bonus_dvig = false;
alien4_bonus = false;
alien5_bonus = false;
alien5_bonus_dvig = false;
alien4_bonus_dvig = false;
alien6_bonus = false;
alien6_bonus_dvig = false;
fuel = 800;
alien3_bonus = false;
alien3_bonus_dvig = false;
km = 6000;
boss_nakat = false;
boss_dvig = false;
alien_boss_hit = 50;
win = false;
dune1_dvig = false;
dune2_dvig = false;
dune3_dvig = false;
palma1_dvig = false;
palma2_dvig = false;
palma3_dvig = false;
oazis1_dvig = false;
oazis2_dvig = false;
u = 1000;
my_shield = false;
my_shield_dvig = false;
shield_hit = 400;
alien_kill = 0;
alien1_raspad = false;
alien2_raspad = false;
alien3_raspad = false;
alien4_raspad = false;
alien5_raspad = false;
alien6_raspad = false;
pause_game = false;
way_percent = 0;
kill_percent = 0;
aliens_create = 0;
bomb_bonus = false;
bomb_bonus_dvig = false;
double_fire_bonus = false;
double_fire_dvig = false;
double_fire_true = false;
double_fire_time = 200;
scor_500_bonus = false;
scor_500_dvig = false;
score_50_bonus = false;
score_50_dvig = false;
alien_lost = 0;
alien_lost_all = 0;
rocket_vip = 0;
}
function game() {
var _local1 = _root;
math_my();
if (score_user != score_user_temp) {
score_user_temp++;
}
if (score_user != score_user_temp) {
score_user_temp++;
}
if (score_user != score_user_temp) {
score_user_temp++;
}
if (score_user != score_user_temp) {
score_user_temp++;
}
if (score_user != score_user_temp) {
score_user_temp++;
}
if (score_user != score_user_temp) {
score_user_temp++;
}
if (km == 6000) {
_local1.attachMovie("stage1", "stage1", 3014);
_local1.stage1._x = 280;
_local1.stage1._y = 150;
}
if (km == 4000) {
_local1.attachMovie("stage2", "stage2", 3015);
_local1.stage2._x = 280;
_local1.stage2._y = 150;
alien_lost = 0;
}
if (km == 2000) {
_local1.attachMovie("stage3", "stage3", 3016);
_local1.stage3._x = 280;
_local1.stage3._y = 150;
alien_lost = 0;
}
if (km == 100) {
_local1.attachMovie("stage4", "stage4", 3017);
_local1.stage4._x = 280;
_local1.stage4._y = 150;
alien_lost = 0;
}
_local1.t_dest._xscale = km / 60;
_local1.t_fuel._xscale = fuel / 8;
_local1.tablo_alien_lost._xscale = alien_lost * 2;
speed = _local1.my._xmouse / 10;
speed2 = _local1.my._ymouse / 10;
_local1.my._x = _local1.my._x + speed;
_local1.my._y = _local1.my._y + speed2;
if (_local1.my._x > 550) {
_local1.my._x = 550;
}
if (_local1.my._x < 0) {
_local1.my._x = 0;
}
if (_local1.my._y > 400) {
_local1.my._y = 400;
}
if (_local1.my._y < 0) {
_local1.my._y = 0;
}
if ((alien1_dvig == false) and (random(10) == 1)) {
if (km >= 4000) {
_local1.attachMovie("alien1", "alien1", 103);
_local1.alien1._xscale = 80;
_local1.alien1._yscale = 80;
}
if (km < 4000) {
_local1.attachMovie("alien11", "alien1", 103);
_local1.alien1._xscale = 75;
_local1.alien1._yscale = 75;
}
aliens_create++;
alien1_raspad = false;
alien1_dvig = true;
_local1.alien1._x = random(500);
_local1.alien1._y = -100;
}
if (alien1_dvig == true) {
_local1.alien1._y = _local1.alien1._y + 5;
if (_local1.alien1._x > _local1.my._x) {
_local1.alien1._x = _local1.alien1._x - 2;
}
if (_local1.alien1._x < _local1.my._x) {
_local1.alien1._x = _local1.alien1._x + 2;
}
}
if (_local1.alien1._y > 500) {
alien1_dvig = false;
_local1.alien1.removemovieclip();
alien_lost++;
alien_lost_all++;
}
i = 1000;
while (i <= 1010) {
if (_local1["fff" + i].hitTest(_local1.alien1.hit)) {
_local1["fff" + i].removemovieclip();
alien1_hit = alien1_hit + 1;
alien_kill++;
score_user = score_user + 50;
if (alien1_hit == 15) {
alien1_hit = 0;
alien1_bonus = true;
}
if ((alien1_hit == 5) or (alien1_hit == 10)) {
bomb_bonus = true;
}
if ((alien1_hit == 7) or (alien1_hit == 13)) {
double_fire_bonus = true;
}
_local1.alien1.gotoandplay(2);
}
i++;
}
if (double_fire_bonus == true) {
_local1.attachMovie("double_fire", "double_fire", 134);
double_fire_bonus = false;
_local1.double_fire._xscale = 90;
_local1.double_fire._yscale = 90;
_local1.double_fire._x = _local1.alien1._x;
_local1.double_fire._y = _local1.alien1._y;
double_fire_dvig = true;
}
if (double_fire_dvig == true) {
_local1.double_fire._y = _local1.double_fire._y + 3;
}
if (_local1.double_fire._y > 500) {
double_fire_dvig = false;
_local1.double_fire.removemovieclip();
}
if (_local1.double_fire.hitTest(_local1.my.hit)) {
double_fire_true = true;
_local1.tablo_df_text._visible = true;
_local1.tablo_df._visible = true;
double_fire_time = 200;
double_fire_dvig = false;
_local1.attachMovie("oreol", "oreol", 135);
_local1.oreol._x = _local1.double_fire._x;
_local1.oreol._y = _local1.double_fire._y;
_local1.double_fire.removemovieclip();
score_user = score_user + 200;
}
if ((double_fire_true == true) and (double_fire_time > 0)) {
double_fire_time--;
_local1.tablo_df._xscale = double_fire_time / 2;
}
if (double_fire_time == 0) {
double_fire_true = false;
_local1.tablo_df_text._visible = false;
_local1.tablo_df._visible = false;
}
if (bomb_bonus == true) {
_local1.attachMovie("bomb", "bomb", 132);
bomb_bonus = false;
_local1.bomb._xscale = 90;
_local1.bomb._yscale = 90;
_local1.bomb._x = _local1.alien1._x;
_local1.bomb._y = _local1.alien1._y;
bomb_bonus_dvig = true;
}
if (bomb_bonus_dvig == true) {
_local1.bomb._y = _local1.bomb._y + 3;
}
if (_local1.bomb._y > 500) {
bomb_bonus_dvig = false;
_local1.bomb.removemovieclip();
}
if (_local1.bomb.hitTest(_local1.my.hit)) {
bomb_bonus_dvig = false;
_local1.attachMovie("bomb_oreol", "bomb_oreol", 133);
_local1.bomb_oreol._x = _local1.bomb._x;
_local1.bomb_oreol._y = _local1.bomb._y;
_local1.bomb.removemovieclip();
score_user = score_user + 100;
sound1 = new Sound();
sound1.attachSound("flam");
sound1.start();
}
if (_local1.bomb_oreol.hitTest(_local1.alien1.hit)) {
alien1_hit = alien1_hit + 1;
alien_kill++;
score_user = score_user + 50;
if (alien1_hit == 15) {
alien1_hit = 0;
alien1_bonus = true;
}
if ((alien1_hit == 5) or (alien1_hit == 10)) {
bomb_bonus = true;
}
if ((alien1_hit == 7) or (alien1_hit == 13)) {
double_fire_bonus = true;
}
_local1.alien1.gotoandplay(2);
}
if (_local1.bomb_oreol.hitTest(_local1.alien2.hit)) {
alien2_hit = alien2_hit + 1;
alien_kill++;
score_user = score_user + 40;
if ((alien2_hit == 3) or (alien2_hit == 6)) {
alien2_bonus = true;
}
if (alien2_hit == 8) {
alien2_hit = 0;
scor_500_bonus = true;
}
if (((alien2_hit == 2) or (alien2_hit == 5)) or (alien2_hit == 7)) {
score_50_bonus = true;
}
_local1.alien2.gotoandplay(2);
}
if (_local1.bomb_oreol.hitTest(_local1.alien3.hit)) {
alien_kill++;
score_user = score_user + 30;
if (alien3_bonus_dvig == false) {
alien3_bonus = true;
}
_local1.alien3.gotoandplay(2);
}
if (_local1.bomb_oreol.hitTest(_local1.alien4.hit)) {
alien4_hit = alien4_hit + 1;
alien_kill++;
score_user = score_user + 30;
if (alien4_hit == 4) {
alien4_hit = 0;
alien4_bonus = true;
}
_local1.alien4.gotoandplay(2);
}
if (_local1.bomb_oreol.hitTest(_local1.alien5.hit)) {
alien5_hit = alien5_hit + 1;
alien_kill++;
score_user = score_user + 35;
if (alien5_hit == 6) {
alien5_hit = 0;
alien5_bonus = true;
}
_local1.alien5.gotoandplay(2);
}
if (_local1.bomb_oreol.hitTest(_local1.alien6.hit)) {
alien6_hit = alien6_hit + 1;
alien_kill++;
score_user = score_user + 45;
if (alien6_hit == 2) {
alien6_hit = 0;
alien6_bonus = true;
}
_local1.alien6.gotoandplay(2);
}
if (alien1_bonus == true) {
_local1.attachMovie("life_my", "life_my", 109);
alien1_bonus = false;
_local1.life_my._xscale = 90;
_local1.life_my._yscale = 90;
_local1.life_my._x = _local1.alien1._x;
_local1.life_my._y = _local1.alien1._y;
alien1_bonus_dvig = true;
}
if (alien1_bonus_dvig == true) {
_local1.life_my._y = _local1.life_my._y + 3;
}
if (_local1.life_my._y > 600) {
alien1_bonus_dvig = false;
_local1.life_my.removemovieclip();
}
if (_local1.life_my.hitTest(_local1.my.hit)) {
alien1_bonus_dvig = false;
_local1.attachMovie("oreol", "oreol", 115);
_local1.oreol._x = _local1.life_my._x;
_local1.oreol._y = _local1.life_my._y;
_local1.life_my.removemovieclip();
life = life + 1;
score_user = score_user + 150;
sound1 = new Sound();
sound1.attachSound("lifewav");
sound1.start();
}
if (_local1.my.hit.hitTest(_local1.alien1.hit)) {
if (pike == false) {
_local1.my.gotoandplay(5);
}
}
if (alien1_raspad == false) {
if ((rocket_alien1 == false) && (alien1_dvig == true)) {
_local1.attachMovie("fir", "fir_alien1", 104);
_local1.fir_alien1._rotation = _local1.fir_alien1._rotation - 180;
rocket_alien1 = true;
_local1.fir_alien1._y = _local1.alien1._y;
_local1.fir_alien1._x = _local1.alien1._x;
}
}
if (rocket_alien1 == true) {
_local1.fir_alien1._y = _local1.fir_alien1._y + 10;
if (_local1.my._x > _local1.fir_alien1._x) {
_local1.fir_alien1._x = _local1.fir_alien1._x + 3;
}
if (_local1.my._x < _local1.fir_alien1._x) {
_local1.fir_alien1._x = _local1.fir_alien1._x - 3;
}
}
if (_local1.fir_alien1._y > 600) {
rocket_alien1 = false;
_local1.fir_alien1.removemovieclip();
}
if (_local1.fir_alien1.hitTest(_local1.my.hit)) {
if (pike == false) {
_local1.my.gotoandplay(5);
}
}
if ((alien2_dvig == false) and (random(10) == 1)) {
if (km >= 3000) {
_local1.attachMovie("alien2", "alien2", 105);
_local1.alien2._xscale = 80;
_local1.alien2._yscale = 80;
}
if (km < 3000) {
_local1.attachMovie("alien22", "alien2", 105);
_local1.alien2._xscale = 75;
_local1.alien2._yscale = 75;
}
aliens_create++;
alien2_raspad = false;
alien2_dvig = true;
_local1.alien2._x = random(500);
_local1.alien2._y = -120;
}
if (alien2_dvig == true) {
_local1.alien2._y = _local1.alien2._y + 5;
}
if (_local1.alien2._y > 500) {
alien2_dvig = false;
_local1.alien2.removemovieclip();
alien_lost++;
alien_lost_all++;
}
i = 1000;
while (i <= 1010) {
if (_local1["fff" + i].hitTest(_local1.alien2.hit)) {
_local1["fff" + i].removemovieclip();
alien2_hit = alien2_hit + 1;
alien_kill++;
score_user = score_user + 40;
if ((alien2_hit == 3) or (alien2_hit == 6)) {
alien2_bonus = true;
}
if (alien2_hit == 8) {
alien2_hit = 0;
scor_500_bonus = true;
}
if (((alien2_hit == 2) or (alien2_hit == 5)) or (alien2_hit == 7)) {
score_50_bonus = true;
}
_local1.alien2.gotoandplay(2);
}
i++;
}
if (score_50_bonus == true) {
_local1.attachMovie("score_50", "score_50", 138);
score_50_bonus = false;
_local1.score_50._xscale = 90;
_local1.score_50._yscale = 90;
_local1.score_50._x = _local1.alien2._x;
_local1.score_50._y = _local1.alien2._y;
score_50_dvig = true;
}
if (score_50_dvig == true) {
_local1.score_50._y = _local1.score_50._y + 2;
}
if (_local1.score_50._y > 550) {
score_50_dvig = false;
_local1.score_50.removemovieclip();
}
if (_local1.score_50.hitTest(_local1.my.hit)) {
score_50_dvig = false;
_local1.attachMovie("oreol3", "oreol_50", 139);
_local1.oreol_50._x = _local1.score_50._x;
_local1.oreol_50._y = _local1.score_50._y;
_local1.score_50.removemovieclip();
score_user = score_user + 50;
sound1 = new Sound();
sound1.attachSound("lifewav");
sound1.start();
}
if (scor_500_bonus == true) {
_local1.attachMovie("score_500", "score_500", 136);
scor_500_bonus = false;
_local1.score_500._xscale = 90;
_local1.score_500._yscale = 90;
_local1.score_500._x = _local1.alien2._x;
_local1.score_500._y = _local1.alien2._y;
scor_500_dvig = true;
}
if (scor_500_dvig == true) {
_local1.score_500._y = _local1.score_500._y + 3;
}
if (_local1.score_500._y > 550) {
scor_500_dvig = false;
_local1.score_500.removemovieclip();
}
if (_local1.score_500.hitTest(_local1.my.hit)) {
scor_500_dvig = false;
_local1.attachMovie("oreol", "oreol_500", 137);
_local1.oreol_500._x = _local1.score_500._x;
_local1.oreol_500._y = _local1.score_500._y;
_local1.score_500.removemovieclip();
score_user = score_user + 500;
sound1 = new Sound();
sound1.attachSound("lifewav");
sound1.start();
}
if (_local1.my.hit.hitTest(_local1.alien2.hit)) {
if (pike == false) {
_local1.my.gotoandplay(5);
}
}
if (alien2_raspad == false) {
if ((rocket_alien2 == false) && (alien2_dvig == true)) {
_local1.attachMovie("fir", "fir_alien2", 106);
_local1.fir_alien2._rotation = _local1.fir_alien2._rotation - 180;
rocket_alien2 = true;
_local1.fir_alien2._y = _local1.alien2._y;
_local1.fir_alien2._x = _local1.alien2._x;
}
}
if (rocket_alien2 == true) {
_local1.fir_alien2._y = _local1.fir_alien2._y + 10;
if (_local1.my._x > _local1.fir_alien2._x) {
_local1.fir_alien2._x = _local1.fir_alien2._x + 1;
}
if (_local1.my._x < _local1.fir_alien2._x) {
_local1.fir_alien2._x = _local1.fir_alien2._x - 1;
}
}
if (_local1.fir_alien2._y > 600) {
rocket_alien2 = false;
_local1.fir_alien2.removemovieclip();
}
if (_local1.fir_alien2.hitTest(_local1.my.hit)) {
if (pike == false) {
_local1.my.gotoandplay(5);
}
}
if ((alien3_dvig == false) and (random(10) == 1)) {
if (km >= 2000) {
_local1.attachMovie("alien3", "alien3", 107);
_local1.alien3._xscale = 80;
_local1.alien3._yscale = 80;
}
if (km < 2000) {
_local1.attachMovie("alien33", "alien3", 107);
_local1.alien3._xscale = 75;
_local1.alien3._yscale = 75;
}
aliens_create++;
alien3_raspad = false;
alien3_dvig = true;
_local1.alien3._x = random(500);
_local1.alien3._y = -110;
}
if (alien3_dvig == true) {
_local1.alien3._y = _local1.alien3._y + 5;
if (_local1.alien3._x > _local1.my._x) {
_local1.alien3._x = _local1.alien3._x - 1;
}
if (_local1.alien3._x < _local1.my._x) {
_local1.alien3._x = _local1.alien3._x + 1;
}
}
if (_local1.alien3._y > 500) {
alien3_dvig = false;
_local1.alien3.removemovieclip();
alien_lost++;
alien_lost_all++;
}
i = 1000;
while (i <= 1010) {
if (_local1["fff" + i].hitTest(_local1.alien3.hit)) {
_local1["fff" + i].removemovieclip();
alien_kill++;
score_user = score_user + 30;
if (alien3_bonus_dvig == false) {
alien3_bonus = true;
}
_local1.alien3.gotoandplay(2);
}
i++;
}
if (alien3_bonus == true) {
_local1.attachMovie("fuel_my", "fuel_my", 110);
alien3_bonus = false;
_local1.fuel_my._xscale = 90;
_local1.fuel_my._yscale = 90;
_local1.fuel_my._x = _local1.alien3._x;
_local1.fuel_my._y = _local1.alien3._y;
alien3_bonus_dvig = true;
}
if (alien3_bonus_dvig == true) {
_local1.fuel_my._y = _local1.fuel_my._y + 3;
}
if (_local1.fuel_my._y > 600) {
alien3_bonus_dvig = false;
_local1.fuel_my.removemovieclip();
}
if (_local1.fuel_my.hitTest(_local1.my.hit)) {
alien3_bonus_dvig = false;
_local1.attachMovie("oreol3", "oreol3", 116);
_local1.oreol3._x = _local1.fuel_my._x;
_local1.oreol3._y = _local1.fuel_my._y;
_local1.fuel_my.removemovieclip();
fuel = fuel + 250;
score_user = score_user + 70;
if (fuel > 800) {
fuel = 800;
}
sound1 = new Sound();
sound1.attachSound("sound_l");
sound1.start();
}
if (_local1.my.hit.hitTest(_local1.alien3.hit)) {
if (pike == false) {
_local1.my.gotoandplay(5);
}
}
if (alien3_raspad == false) {
if ((rocket_alien3 == false) && (alien3_dvig == true)) {
_local1.attachMovie("fir", "fir_alien3", 108);
_local1.fir_alien3._rotation = _local1.fir_alien3._rotation - 180;
rocket_alien3 = true;
_local1.fir_alien3._y = _local1.alien3._y;
_local1.fir_alien3._x = _local1.alien3._x;
}
}
if (rocket_alien3 == true) {
_local1.fir_alien3._y = _local1.fir_alien3._y + 10;
}
if (_local1.fir_alien3._y > 600) {
rocket_alien3 = false;
_local1.fir_alien3.removemovieclip();
}
if (_local1.fir_alien3.hitTest(_local1.my.hit)) {
if (pike == false) {
_local1.my.gotoandplay(5);
}
}
if (pike == true) {
pike1 = pike1 + 1;
}
if (pike1 > 40) {
pike = false;
pike1 = 0;
}
if (alien_lost >= 50) {
alien_lost = 50;
_local1.end = true;
}
if (end == true) {
_local1.alien_boss.removemovieclip();
removeall();
gotoAndPlay (49);
}
if ((pike == false) && (end == false)) {
fuel = fuel - 1;
}
if (fuel < 1) {
fuel = 800;
_local1.my.gotoandplay(5);
}
if ((km > 0) & (end == false)) {
km = km - 1;
}
if (km == 0) {
boss_nakat = true;
}
if ((boss_nakat == true) && (boss_dvig == false)) {
_local1.attachMovie("alien_boss", "alien_boss", 111);
sound1 = new Sound();
sound1.attachSound("bosswav");
sound1.start();
_local1.alien_boss._x = random(500);
_local1.alien_boss._y = -100;
boss_dvig = true;
_local1.attachMovie("tablo_boss", "tablo_boss", 3005);
_local1.tablo_boss._alpha = 80;
_local1.tablo_boss._x = 350;
_local1.tablo_boss._y = 10;
}
if ((boss_dvig == true) && (end == false)) {
if ((_local1.alien_boss._y < 200) && (_local1.my._y > _local1.alien_boss._y)) {
_local1.alien_boss._y = _local1.alien_boss._y + 2;
}
if (_local1.alien_boss._x > _local1.my._x) {
_local1.alien_boss._x = _local1.alien_boss._x - 1;
}
if (_local1.alien_boss._x < _local1.my._x) {
_local1.alien_boss._x = _local1.alien_boss._x + 1;
}
if (_local1.alien_boss._y > _local1.my._y) {
_local1.alien_boss._y = _local1.alien_boss._y - 1;
}
}
if (_local1.my.hit.hitTest(_local1.alien_boss.hit)) {
if (pike == false) {
_local1.my.gotoandplay(5);
}
}
i = 1000;
while (i <= 1010) {
if (_local1["fff" + i].hitTest(_local1.alien_boss.hit)) {
_local1["fff" + i].removemovieclip();
alien_boss_hit = alien_boss_hit - 1;
score_user = score_user + 20;
_local1.tablo_boss._xscale = alien_boss_hit * 2;
if (alien_boss_hit == 0) {
_local1.alien_boss.gotoandplay(2);
win = true;
}
_local1.attachMovie("oreol5", "oreol5", 117);
}
i++;
}
if (win == true) {
removeall();
gotoAndPlay (49);
}
if ((rocket1_boss == false) && (boss_dvig == true)) {
_local1.attachMovie("fir", "fir1_boss", 112);
_local1.fir1_boss._rotation = _local1.fir1_boss._rotation - 180;
rocket1_boss = true;
_local1.fir1_boss._y = _local1.alien_boss._y;
_local1.fir1_boss._x = _local1.alien_boss._x;
}
if (rocket1_boss == true) {
_local1.fir1_boss._y = _local1.fir1_boss._y + 10;
if (_local1.my._x > _local1.fir1_boss._x) {
_local1.fir1_boss._x = _local1.fir1_boss._x + 3;
}
if (_local1.my._x < _local1.fir1_boss._x) {
_local1.fir1_boss._x = _local1.fir1_boss._x - 3;
}
}
if (_local1.fir1_boss._y > 600) {
rocket1_boss = false;
_local1.fir1_boss.removemovieclip();
}
if (_local1.fir1_boss.hitTest(_local1.my.hit)) {
if (pike == false) {
_local1.my.gotoandplay(5);
}
}
if ((rocket2_boss == false) && (boss_dvig == true)) {
_local1.attachMovie("fir", "fir2_boss", 113);
_local1.fir2_boss._rotation = _local1.fir2_boss._rotation - 180;
rocket2_boss = true;
_local1.fir2_boss._y = _local1.alien_boss._y;
_local1.fir2_boss._x = _local1.alien_boss._x;
}
if (rocket2_boss == true) {
_local1.fir2_boss._y = _local1.fir2_boss._y + 5;
if (_local1.my._x > _local1.fir2_boss._x) {
_local1.fir2_boss._x = _local1.fir2_boss._x + 3;
}
if (_local1.my._x < _local1.fir2_boss._x) {
_local1.fir2_boss._x = _local1.fir2_boss._x - 3;
}
}
if (_local1.fir2_boss._y > 600) {
rocket2_boss = false;
_local1.fir2_boss.removemovieclip();
}
if (_local1.fir2_boss.hitTest(_local1.my.hit)) {
if (pike == false) {
_local1.my.gotoandplay(5);
}
}
if (dune1_dvig == false) {
_local1.attachMovie("dune", "dune1", 1);
_local1.dune1._x = random(500);
_local1.dune1._y = -100;
_local1.dune1._alpha = 50;
dune1_dvig = true;
}
if (dune1_dvig == true) {
_local1.dune1._y = _local1.dune1._y + 1;
}
if (_local1.dune1._y > 500) {
_local1.dune1.removemovieclip();
dune1_dvig = false;
}
if ((dune2_dvig == false) && (_local1.dune1._y > random(400))) {
_local1.attachMovie("dune_dr", "dune2", 2);
_local1.dune2._x = random(500);
_local1.dune2._y = -100;
_local1.dune2._alpha = 50;
dune2_dvig = true;
}
if (dune2_dvig == true) {
_local1.dune2._y = _local1.dune2._y + 1;
}
if (_local1.dune2._y > 500) {
_local1.dune2.removemovieclip();
dune2_dvig = false;
}
if ((dune3_dvig == false) && (_local1.dune2._y > random(400))) {
_local1.attachMovie("dune_dr", "dune3", 3);
_local1.dune3._x = random(500);
_local1.dune3._y = -100;
_local1.dune3._alpha = 50;
dune3_dvig = true;
}
if (dune3_dvig == true) {
_local1.dune3._y = _local1.dune3._y + 1;
}
if (_local1.dune3._y > 500) {
_local1.dune3.removemovieclip();
dune3_dvig = false;
}
if (palma1_dvig == false) {
_local1.attachMovie("palma", "palma1", 4);
_local1.palma1._x = random(500);
_local1.palma1._y = -100;
_local1.palma1._alpha = 70;
palma1_dvig = true;
}
if (palma1_dvig == true) {
_local1.palma1._y = _local1.palma1._y + 1;
}
if (_local1.palma1._y > 500) {
_local1.palma1.removemovieclip();
palma1_dvig = false;
}
if ((palma2_dvig == false) && (_local1.palma1._y > random(400))) {
_local1.attachMovie("palma", "palma2", 5);
_local1.palma2._x = random(500);
_local1.palma2._y = -100;
palma2_dvig = true;
}
if (palma2_dvig == true) {
_local1.palma2._y = _local1.palma2._y + 1;
}
if (_local1.palma2._y > 500) {
_local1.palma2.removemovieclip();
palma2_dvig = false;
}
if ((palma3_dvig == false) && (_local1.palma2._y > random(400))) {
_local1.attachMovie("palma", "palma3", 6);
_local1.palma3._x = random(500);
_local1.palma3._y = -100;
palma3_dvig = true;
}
if (palma3_dvig == true) {
_local1.palma3._y = _local1.palma3._y + 1;
}
if (_local1.palma3._y > 500) {
_local1.palma3.removemovieclip();
palma3_dvig = false;
}
if ((oazis1_dvig == false) && (_local1.dune3._y > random(300))) {
_local1.attachMovie("oazis", "oazis1", 7);
_local1.oazis1._x = random(500);
_local1.oazis1._y = -100;
_local1.oazis1._alpha = 70;
oazis1_dvig = true;
}
if (oazis1_dvig == true) {
_local1.oazis1._y = _local1.oazis1._y + 1;
}
if (_local1.oazis1._y > 500) {
_local1.oazis1.removemovieclip();
oazis1_dvig = false;
}
if ((oazis2_dvig == false) && (_local1.oazis1._y > random(500))) {
_local1.attachMovie("oazis2", "oazis2", 8);
_local1.oazis2._x = random(500);
_local1.oazis2._y = -100;
_local1.oazis2._alpha = 70;
oazis2_dvig = true;
}
if (oazis2_dvig == true) {
_local1.oazis2._y = _local1.oazis2._y + 1;
}
if (_local1.oazis2._y > 500) {
_local1.oazis2.removemovieclip();
oazis2_dvig = false;
}
i = 1000;
while (i <= 1010) {
_local1["fff" + i]._y = _local1["fff" + i]._y - 20;
if (_local1["fff" + i]._y < 0) {
_local1["fff" + i].removemovieclip();
}
i++;
}
if (alien2_bonus == true) {
_local1.attachMovie("shield2", "shield2", 118);
alien2_bonus = false;
_local1.shield2._xscale = 90;
_local1.shield2._yscale = 90;
_local1.shield2._x = _local1.alien2._x;
_local1.shield2._y = _local1.alien2._y;
_local1.shield2._xscale = 80;
_local1.shield2._yscale = 80;
alien2_bonus_dvig = true;
}
if (alien2_bonus_dvig == true) {
_local1.shield2._y = _local1.shield2._y + 3;
}
if (_local1.shield2._y > 600) {
alien2_bonus_dvig = false;
_local1.shield2.removemovieclip();
}
if (_local1.shield2.hitTest(_local1.my.hit) && (my_shield_dvig == false)) {
alien2_bonus_dvig = false;
_local1.attachMovie("oreol7", "oreol7", 120);
_local1.oreol7._x = _local1.shield2._x;
_local1.oreol7._y = _local1.shield2._y;
_local1.shield2.removemovieclip();
my_shield = true;
score_user = score_user + 125;
sound1 = new Sound();
sound1.attachSound("shieldwav");
sound1.start();
}
if (my_shield == true) {
_local1.attachMovie("shield", "shield", 119);
my_shield = false;
_local1.shield._x = _local1.my._x;
_local1.shield._y = _local1.my._y;
_local1.shield._xscale = 100;
_local1.shield._yscale = 100;
my_shield_dvig = true;
}
if (my_shield_dvig == true) {
shield_hit = shield_hit - 1;
_local1.t_shield._xscale = shield_hit / 4;
_local1.shield._x = _local1.my._x;
_local1.shield._y = _local1.my._y;
if (shield_hit == 0) {
my_shield_dvig = false;
_local1.shield.removemovieclip();
shield_hit = 400;
}
}
if (_local1.shield2.hitTest(_local1.my.hit) && (my_shield_dvig == true)) {
shield_hit = 400;
if (_local1.shield._xscale < 150) {
_local1.shield._xscale = _local1.shield._xscale + 5;
_local1.shield._yscale = _local1.shield._yscale + 5;
}
alien2_bonus_dvig = false;
_local1.attachMovie("oreol7", "oreol7", 120);
_local1.oreol7._x = _local1.shield2._x;
_local1.oreol7._y = _local1.shield2._y;
_local1.shield2.removemovieclip();
score_user = score_user + 15;
sound1 = new Sound();
sound1.attachSound("shieldwav");
sound1.start();
}
if (_local1.shield.hit.hitTest(_local1.alien1.hit) or _local1.shield.hit1.hitTest(_local1.alien1.hit)) {
alien1_hit = alien1_hit + 1;
alien_kill++;
score_user = score_user + 40;
if (alien1_hit == 15) {
alien1_hit = 0;
alien1_bonus = true;
}
if ((alien1_hit == 5) or (alien1_hit == 10)) {
bomb_bonus = true;
}
if ((alien1_hit == 7) or (alien1_hit == 13)) {
double_fire_bonus = true;
}
_local1.alien1.gotoandplay(2);
}
if (_local1.shield.hit.hitTest(_local1.alien2.hit) or _local1.shield.hit1.hitTest(_local1.alien2.hit)) {
alien2_hit = alien2_hit + 1;
alien_kill++;
score_user = score_user + 40;
if ((alien2_hit == 3) or (alien2_hit == 6)) {
alien2_bonus = true;
}
if (alien2_hit == 8) {
alien2_hit = 0;
scor_500_bonus = true;
}
if (((alien2_hit == 2) or (alien2_hit == 5)) or (alien2_hit == 7)) {
score_50_bonus = true;
}
_local1.alien2.gotoandplay(2);
}
if (_local1.shield.hit.hitTest(_local1.alien3.hit) or _local1.shield.hit1.hitTest(_local1.alien3.hit)) {
alien_kill++;
score_user = score_user + 40;
if (alien3_bonus_dvig == false) {
alien3_bonus = true;
}
_local1.alien3.gotoandplay(2);
}
if (alien4_dvig == false) {
if (random(12) == 1) {
_local1.attachMovie("alien4", "alien4", 114);
_local1.alien4._xscale = 95;
_local1.alien4._yscale = 95;
aliens_create++;
alien4_raspad = false;
alien4_dvig = true;
_local1.alien4._x = random(500);
_local1.alien4._y = -100;
}
}
if (alien4_dvig == true) {
_local1.alien4._y = _local1.alien4._y + 7;
if (_local1.alien4._x > _local1.my._x) {
_local1.alien4._x = _local1.alien4._x - 2;
}
if (_local1.alien4._x < _local1.my._x) {
_local1.alien4._x = _local1.alien4._x + 2;
}
}
if (_local1.alien4._y > 450) {
alien4_dvig = false;
_local1.alien4.removemovieclip();
alien_lost++;
alien_lost_all++;
}
i = 1000;
while (i <= 1010) {
if (_local1["fff" + i].hitTest(_local1.alien4.hit)) {
_local1["fff" + i].removemovieclip();
alien4_hit = alien4_hit + 1;
alien_kill++;
score_user = score_user + 30;
if (alien4_hit == 4) {
alien4_hit = 0;
alien4_bonus = true;
}
_local1.alien4.gotoandplay(2);
}
i++;
}
if (_local1.my.hit.hitTest(_local1.alien4.hit)) {
if (pike == false) {
_local1.my.gotoandplay(5);
}
}
if (alien4_raspad == false) {
if ((rocket_alien4 == false) && (alien4_dvig == true)) {
_local1.attachMovie("fir", "fir_alien4", 121);
_local1.fir_alien4._rotation = _local1.fir_alien4._rotation - 180;
rocket_alien4 = true;
_local1.fir_alien4._y = _local1.alien4._y;
_local1.fir_alien4._x = _local1.alien4._x;
}
}
if (rocket_alien4 == true) {
_local1.fir_alien4._y = _local1.fir_alien4._y + 12;
if (_local1.my._x > _local1.fir_alien4._x) {
_local1.fir_alien4._x = _local1.fir_alien4._x + 2;
}
if (_local1.my._x < _local1.fir_alien4._x) {
_local1.fir_alien4._x = _local1.fir_alien4._x - 2;
}
}
if (_local1.fir_alien4._y > 600) {
rocket_alien4 = false;
_local1.fir_alien4.removemovieclip();
}
if (_local1.fir_alien4.hitTest(_local1.my.hit)) {
if (pike == false) {
_local1.my.gotoandplay(5);
}
}
if (_local1.shield.hit.hitTest(_local1.alien4.hit) or _local1.shield.hit1.hitTest(_local1.alien4.hit)) {
alien4_hit = alien4_hit + 1;
alien_kill++;
score_user = score_user + 60;
if (alien4_hit == 4) {
alien4_hit = 0;
alien4_bonus = true;
}
_local1.alien4.gotoandplay(2);
}
if (alien4_bonus == true) {
_local1.attachMovie("score_150", "score_150", 126);
alien4_bonus = false;
_local1.score_150._xscale = 90;
_local1.score_150._yscale = 90;
_local1.score_150._x = _local1.alien4._x;
_local1.score_150._y = _local1.alien4._y;
alien4_bonus_dvig = true;
}
if (alien4_bonus_dvig == true) {
_local1.score_150._y = _local1.score_150._y + 5;
}
if (_local1.score_150._y > 500) {
alien4_bonus_dvig = false;
_local1.score_150.removemovieclip();
}
if (_local1.score_150.hitTest(_local1.my.hit)) {
alien4_bonus_dvig = false;
_local1.attachMovie("oreol3", "oreol150", 127);
_local1.oreol150._x = _local1.score_150._x;
_local1.oreol150._y = _local1.score_150._y;
_local1.score_150.removemovieclip();
score_user = score_user + 150;
sound1 = new Sound();
sound1.attachSound("lifewav");
sound1.start();
}
if (alien5_dvig == false) {
if (random(12) == 1) {
if (km >= 4000) {
_local1.attachMovie("alien5", "alien5", 122);
_local1.alien5._xscale = 95;
_local1.alien5._yscale = 95;
}
if (km < 4000) {
_local1.attachMovie("tu-134-1", "alien5", 122);
_local1.alien5._xscale = 65;
_local1.alien5._yscale = 65;
}
aliens_create++;
alien5_raspad = false;
alien5_dvig = true;
_local1.alien5._x = random(500);
_local1.alien5._y = -100;
}
}
if (alien5_dvig == true) {
_local1.alien5._y = _local1.alien5._y + 6;
if (_local1.alien5._x > _local1.my._x) {
_local1.alien5._x = _local1.alien5._x - 3;
}
if (_local1.alien5._x < _local1.my._x) {
_local1.alien5._x = _local1.alien5._x + 3;
}
}
if (_local1.alien5._y > 450) {
alien5_dvig = false;
_local1.alien5.removemovieclip();
alien_lost++;
alien_lost_all++;
}
i = 1000;
while (i <= 1010) {
if (_local1["fff" + i].hitTest(_local1.alien5.hit)) {
_local1["fff" + i].removemovieclip();
alien5_hit = alien5_hit + 1;
alien_kill++;
score_user = score_user + 35;
if (alien5_hit == 6) {
alien5_hit = 0;
alien5_bonus = true;
}
_local1.alien5.gotoandplay(2);
}
i++;
}
if (_local1.my.hit.hitTest(_local1.alien5.hit)) {
if (pike == false) {
_local1.my.gotoandplay(5);
}
}
if (alien5_raspad == false) {
if ((rocket_alien5 == false) && (alien5_dvig == true)) {
_local1.attachMovie("fir", "fir_alien5", 123);
_local1.fir_alien5._rotation = _local1.fir_alien5._rotation - 180;
rocket_alien5 = true;
_local1.fir_alien5._y = _local1.alien5._y;
_local1.fir_alien5._x = _local1.alien5._x;
}
}
if (rocket_alien5 == true) {
_local1.fir_alien5._y = _local1.fir_alien5._y + 11;
if (_local1.my._x > _local1.fir_alien5._x) {
_local1.fir_alien5._x = _local1.fir_alien5._x + 1;
}
if (_local1.my._x < _local1.fir_alien5._x) {
_local1.fir_alien5._x = _local1.fir_alien5._x - 1;
}
}
if (_local1.fir_alien5._y > 600) {
rocket_alien5 = false;
_local1.fir_alien5.removemovieclip();
}
if (_local1.fir_alien5.hitTest(_local1.my.hit)) {
if (pike == false) {
_local1.my.gotoandplay(5);
}
}
if (_local1.shield.hit.hitTest(_local1.alien5.hit) or _local1.shield.hit1.hitTest(_local1.alien5.hit)) {
alien5_hit = alien5_hit + 1;
alien_kill++;
score_user = score_user + 75;
if (alien5_hit == 6) {
alien5_hit = 0;
alien5_bonus = true;
}
_local1.alien5.gotoandplay(2);
}
if (alien5_bonus == true) {
_local1.attachMovie("score_300", "score_300", 124);
alien5_bonus = false;
_local1.score_300._xscale = 90;
_local1.score_300._yscale = 90;
_local1.score_300._x = _local1.alien5._x;
_local1.score_300._y = _local1.alien5._y;
alien5_bonus_dvig = true;
}
if (alien5_bonus_dvig == true) {
_local1.score_300._y = _local1.score_300._y + 4;
}
if (_local1.score_300._y > 500) {
alien5_bonus_dvig = false;
_local1.score_300.removemovieclip();
}
if (_local1.score_300.hitTest(_local1.my.hit)) {
alien5_bonus_dvig = false;
_local1.attachMovie("oreol3", "oreol300", 125);
_local1.oreol300._x = _local1.score_300._x;
_local1.oreol300._y = _local1.score_300._y;
_local1.score_300.removemovieclip();
score_user = score_user + 300;
sound1 = new Sound();
sound1.attachSound("lifewav");
sound1.start();
}
if (alien6_dvig == false) {
if (random(12) == 1) {
if (km >= 4000) {
_local1.attachMovie("alien6", "alien6", 128);
_local1.alien6._xscale = 95;
_local1.alien6._yscale = 95;
}
if (km < 4000) {
_local1.attachMovie("tu-134", "alien6", 128);
_local1.alien6._xscale = 65;
_local1.alien6._yscale = 65;
}
aliens_create++;
alien6_raspad = false;
alien6_dvig = true;
_local1.alien6._x = random(500);
_local1.alien6._y = -100;
}
}
if (alien6_dvig == true) {
_local1.alien6._y = _local1.alien6._y + 6;
if (_local1.alien6._x > _local1.my._x) {
_local1.alien6._x = _local1.alien6._x - 1;
}
if (_local1.alien6._x < _local1.my._x) {
_local1.alien6._x = _local1.alien6._x + 1;
}
}
if (_local1.alien6._y > 450) {
alien6_dvig = false;
_local1.alien6.removemovieclip();
alien_lost++;
alien_lost_all++;
}
i = 1000;
while (i <= 1010) {
if (_local1["fff" + i].hitTest(_local1.alien6.hit)) {
_local1["fff" + i].removemovieclip();
alien6_hit = alien6_hit + 1;
alien_kill++;
score_user = score_user + 45;
if (alien6_hit == 2) {
alien6_hit = 0;
alien6_bonus = true;
}
_local1.alien6.gotoandplay(2);
}
i++;
}
if (_local1.my.hit.hitTest(_local1.alien6.hit)) {
if (pike == false) {
_local1.my.gotoandplay(5);
}
}
if (alien6_raspad == false) {
if ((rocket_alien6 == false) && (alien6_dvig == true)) {
_local1.attachMovie("fir", "fir_alien6", 129);
_local1.fir_alien6._rotation = _local1.fir_alien6._rotation - 180;
rocket_alien6 = true;
_local1.fir_alien6._y = _local1.alien6._y;
_local1.fir_alien6._x = _local1.alien6._x;
}
}
if (rocket_alien6 == true) {
_local1.fir_alien6._y = _local1.fir_alien6._y + 12;
if (_local1.my._x > _local1.fir_alien6._x) {
_local1.fir_alien6._x = _local1.fir_alien6._x + 2;
}
if (_local1.my._x < _local1.fir_alien6._x) {
_local1.fir_alien6._x = _local1.fir_alien6._x - 2;
}
}
if (_local1.fir_alien6._y > 500) {
rocket_alien6 = false;
_local1.fir_alien6.removemovieclip();
}
if (_local1.fir_alien6.hitTest(_local1.my.hit)) {
if (pike == false) {
_local1.my.gotoandplay(5);
}
}
if (_local1.shield.hit.hitTest(_local1.alien6.hit) or _local1.shield.hit1.hitTest(_local1.alien6.hit)) {
alien6_hit = alien6_hit + 1;
alien_kill++;
score_user = score_user + 55;
if (alien6_hit == 2) {
alien6_hit = 0;
alien6_bonus = true;
}
_local1.alien6.gotoandplay(2);
}
if (alien6_bonus == true) {
_local1.attachMovie("score_100", "score_100", 130);
alien6_bonus = false;
_local1.score_100._xscale = 90;
_local1.score_100._yscale = 90;
_local1.score_100._x = _local1.alien6._x;
_local1.score_100._y = _local1.alien6._y;
alien6_bonus_dvig = true;
}
if (alien6_bonus_dvig == true) {
_local1.score_100._y = _local1.score_100._y + 3;
}
if (_local1.score_100._y > 500) {
alien6_bonus_dvig = false;
_local1.score_100.removemovieclip();
}
if (_local1.score_100.hitTest(_local1.my.hit)) {
alien6_bonus_dvig = false;
_local1.attachMovie("oreol3", "oreol100", 131);
_local1.oreol100._x = _local1.score_100._x;
_local1.oreol100._y = _local1.score_100._y;
_local1.score_100.removemovieclip();
score_user = score_user + 100;
sound1 = new Sound();
sound1.attachSound("lifewav");
sound1.start();
}
}
function pulemet() {
var _local1 = _root;
u++;
if (double_fire_true == false) {
}
if (double_fire_true == true) {
}
if (u > 1010) {
u = 1000;
}
attachmovie("fir_my", "fff" + u, u);
rocket_vip++;
if (double_fire_true == false) {
_local1["fff" + u]._x = _local1.my._x;
}
if (double_fire_true == true) {
_local1["fff" + u]._x = _local1.my._x + 5;
}
_local1["fff" + u]._y = _local1.my._y;
if (double_fire_true == true) {
u++;
if (u > 1010) {
u = 1000;
}
attachmovie("fir_my", "fff" + u, u);
rocket_vip++;
_local1["fff" + u]._x = _local1.my._x - 5;
_local1["fff" + u]._y = _local1.my._y;
}
}
function removeall() {
var _local1 = _root;
_local1.tablo_lost_alien_text.removemovieclip();
_local1.tablo_alien_lost.removemovieclip();
_local1.tablo_alien_lost_ramka.removemovieclip();
_local1.score_50.removemovieclip();
_local1.score_500.removemovieclip();
_local1.tablo_df_text.removemovieclip();
_local1.tablo_df.removemovieclip();
_local1.double_fire.removemovieclip();
_local1.score_300.removemovieclip();
_local1.bomb.removemovieclip();
_local1.score_150.removemovieclip();
_local1.score_100.removemovieclip();
_local1.tablo_text_score.removemovieclip();
_local1.tablo_score.removemovieclip();
_local1.alien1.removemovieclip();
_local1.alien2.removemovieclip();
_local1.alien3.removemovieclip();
_local1.alien4.removemovieclip();
_local1.alien5.removemovieclip();
_local1.alien6.removemovieclip();
_local1.fir_alien1.removemovieclip();
_local1.fir_alien2.removemovieclip();
_local1.fir_alien3.removemovieclip();
_local1.fir_alien4.removemovieclip();
_local1.fir_alien5.removemovieclip();
_local1.fir_alien6.removemovieclip();
_local1.fir1_boss.removemovieclip();
_local1.fir2_boss.removemovieclip();
i = 1000;
while (i <= 1010) {
_local1["fff" + i].removemovieclip();
i++;
}
_local1.my.removemovieclip();
_local1.shield2.removemovieclip();
_local1.life_my.removemovieclip();
_local1.fuel_my.removemovieclip();
_local1.tablo_boss.removemovieclip();
_local1.shield.removemovieclip();
_local1.palma1.removemovieclip();
_local1.palma2.removemovieclip();
_local1.palma3.removemovieclip();
_local1.oazis1.removemovieclip();
_local1.oazis2.removemovieclip();
_local1.dune1.removemovieclip();
_local1.dune2.removemovieclip();
_local1.dune3.removemovieclip();
_local1.tablo.removemovieclip();
_local1.tablo_alien_kill.removemovieclip();
_local1.tablo_boss.removemovieclip();
_local1.t_dest.removemovieclip();
_local1.t_fuel.removemovieclip();
_local1.tablo_life.removemovieclip();
_local1.t_shield.removemovieclip();
_local1.tablo_text_alien.removemovieclip();
_local1.t_text_d.removemovieclip();
_local1.t_text_f.removemovieclip();
_local1.tablo_text_life.removemovieclip();
_local1.t_text_s.removemovieclip();
math_my();
_local1.attachMovie("logo_alpha_3", "logo_alpha_3", 3018);
_local1.logo_alpha_3._x = 275;
_local1.logo_alpha_3._y = 200;
_local1.fuel_text_critical.removemovieclip();
_local1.fuel_critical.removemovieclip();
}
function math_my() {
way_percent = math.round(((6000 - km) / 6000) * 100);
kill_percent = math.round((alien_kill / aliens_create) * 100);
}
stop();
fscommand ("showmenu", false);
Instance of Symbol 373 MovieClip in Frame 3
onClipEvent (load) {
_root.initgame();
}
onClipEvent (enterFrame) {
if (_root.pause_game == false) {
_root.game();
}
}
onClipEvent (mouseUp) {
if (_root.pause_game == false) {
_root.pulemet();
}
}
on (keyPress "<Space>") {
if (_root.pause_game == false) {
_root.pause_game = true;
_root.attachMovie("pause_text1", "pause_text1", 3012);
_root.pause_text1._x = 280;
_root.pause_text1._y = 200;
} else if (_root.pause_game == true) {
_root.pause_game = false;
_root.pause_text1.removemovieclip();
}
}
Frame 48
stop();
Frame 49
_root.hits_percent = 0;
_root.hits_percent_more = 0;
_root.hits_percent = math.round((_root.alien_kill / _root.rocket_vip) * 100);
if (_root.hits_percent > 80) {
_root.hits_percent_more = _root.hits_percent - 80;
_root.hits_percent_more = _root.hits_percent_more * 200;
}
_root.zakrit._visible = true;
_root.button_submit._visible = false;
_root.b_again._visible = false;
_root.game_user_name_text._visible = false;
_root.game_user_name._visible = false;
if (_root.win == false) {
_root.mission_status = "Failed";
}
if (_root.win == true) {
_root.mission_status = "Success";
}
if (((_root.life == 0) and (_root.alien_lost < 50)) and (_root.win == false)) {
_root.note_stat = "You have lost all Lifes...";
}
if (((_root.alien_lost >= 50) and (_root.life > 0)) and (_root.win == false)) {
_root.note_stat = "You much have lost targets...";
}
if (((_root.alien_lost >= 50) and (_root.life == 0)) and (_root.win == false)) {
_root.note_stat = "You much have lost targets...You have lost all Lifes...";
}
if (_root.win == true) {
_root.note_stat = "UUppSS... Mission Successfully...";
}
stop();
Symbol 26 MovieClip [alien3] Frame 1
stop();
Symbol 26 MovieClip [alien3] Frame 2
_root.alien3_raspad = true;
Symbol 26 MovieClip [alien3] Frame 13
_root.alien3_dvig = false;
_root.alien3.removemovieclip();
Symbol 28 MovieClip [alien2] Frame 1
stop();
Symbol 28 MovieClip [alien2] Frame 2
_root.alien2_raspad = true;
Symbol 28 MovieClip [alien2] Frame 13
_root.alien2_dvig = false;
_root.alien2.removemovieclip();
Symbol 30 MovieClip [alien1] Frame 1
stop();
Symbol 30 MovieClip [alien1] Frame 2
_root.alien1_raspad = true;
Symbol 30 MovieClip [alien1] Frame 13
_root.alien1_dvig = false;
_root.alien1.removemovieclip();
Symbol 44 MovieClip [alien4] Frame 1
stop();
Symbol 44 MovieClip [alien4] Frame 2
_root.alien4_raspad = true;
Symbol 44 MovieClip [alien4] Frame 15
_root.alien4_dvig = false;
_root.alien4.removemovieclip();
Symbol 54 MovieClip [alien6] Frame 1
stop();
Symbol 54 MovieClip [alien6] Frame 2
_root.alien6_raspad = true;
Symbol 54 MovieClip [alien6] Frame 13
_root.alien6_dvig = false;
_root.alien6.removemovieclip();
Symbol 56 MovieClip [alien5] Frame 1
stop();
Symbol 56 MovieClip [alien5] Frame 2
_root.alien5_raspad = true;
Symbol 56 MovieClip [alien5] Frame 13
_root.alien5_dvig = false;
_root.alien5.removemovieclip();
Symbol 58 MovieClip [fir_my] Frame 1
Symbol 60 MovieClip [fir] Frame 1
Symbol 65 MovieClip [my] Frame 1
stop();
Symbol 65 MovieClip [my] Frame 5
_root.pike = true;
_root.life = _root.life - 1;
if (_root.life == 0) {
_root.end = true;
}
play();
Symbol 65 MovieClip [my] Frame 15
if (_root.pike == false) {
gotoAndPlay (1);
}
if (_root.pike == true) {
gotoAndPlay (9);
}
Symbol 74 MovieClip [oreol] Frame 20
_root.oreol.removemovieclip();
stop();
Symbol 77 MovieClip [oreol3] Frame 20
_root.oreol3.removemovieclip();
stop();
Symbol 80 MovieClip [oreol5] Frame 1
_root.oreol5._x = _root.alien_boss._x;
_root.oreol5._y = _root.alien_boss._y;
Symbol 80 MovieClip [oreol5] Frame 10
_root.oreol5.removemovieclip();
stop();
Symbol 89 MovieClip [oreol7] Frame 20
_root.oreol7.removemovieclip();
stop();
Symbol 132 MovieClip [tablo_lost_alien_text] Frame 5
if (_root.alien_lost < 40) {
gotoAndPlay (1);
}
Symbol 132 MovieClip [tablo_lost_alien_text] Frame 11
if (_root.alien_lost >= 40) {
gotoAndPlay (5);
}
Symbol 149 MovieClip [alien33] Frame 1
stop();
Symbol 149 MovieClip [alien33] Frame 2
_root.alien3_raspad = true;
Symbol 149 MovieClip [alien33] Frame 13
_root.alien3_dvig = false;
_root.alien3.removemovieclip();
Symbol 150 MovieClip [alien22] Frame 1
stop();
Symbol 150 MovieClip [alien22] Frame 2
_root.alien2_raspad = true;
Symbol 150 MovieClip [alien22] Frame 13
_root.alien2_dvig = false;
_root.alien2.removemovieclip();
Symbol 151 MovieClip [alien11] Frame 1
stop();
Symbol 151 MovieClip [alien11] Frame 2
_root.alien1_raspad = true;
Symbol 151 MovieClip [alien11] Frame 13
_root.alien1_dvig = false;
_root.alien1.removemovieclip();
Symbol 169 MovieClip [alien_boss] Frame 1
stop();
Symbol 169 MovieClip [alien_boss] Frame 20
_root.alien_boss.removemovieclip();
Symbol 172 MovieClip [stage1] Frame 30
_root.stage1.removemovieclip();
Symbol 175 MovieClip [stage2] Frame 30
_root.stage2.removemovieclip();
Symbol 178 MovieClip [stage3] Frame 30
_root.stage3.removemovieclip();
Symbol 181 MovieClip [stage4] Frame 30
_root.stage4.removemovieclip();
Symbol 184 MovieClip [logo_alpha_2] Frame 20
_root.logo_alpha_2.removemovieclip();
Symbol 185 MovieClip [logo_alpha_3] Frame 14
_root.logo_alpha_3.removemovieclip();
Symbol 190 MovieClip [fuel_critical] Frame 5
if (_root.fuel > 300) {
gotoAndPlay (1);
}
Symbol 190 MovieClip [fuel_critical] Frame 15
if (_root.fuel < 200) {
gotoAndPlay (6);
}
Symbol 193 MovieClip [bomb_oreol] Frame 15
_root.bomb_oreol.removemovieclip();
stop();
Symbol 205 MovieClip [score_50] Frame 20
gotoAndPlay (10);
Symbol 218 MovieClip [tu-134-1] Frame 1
stop();
Symbol 218 MovieClip [tu-134-1] Frame 2
_root.alien5_raspad = true;
Symbol 218 MovieClip [tu-134-1] Frame 20
_root.alien5_dvig = false;
_root.alien5.removemovieclip();
Symbol 219 MovieClip [tu-134] Frame 1
stop();
Symbol 219 MovieClip [tu-134] Frame 2
_root.alien6_raspad = true;
Symbol 219 MovieClip [tu-134] Frame 20
_root.alien6_dvig = false;
_root.alien6.removemovieclip();
Symbol 226 MovieClip [double_fire] Frame 20
gotoAndPlay (10);
Symbol 231 MovieClip [shield2] Frame 20
gotoAndPlay (10);
Symbol 235 MovieClip [bomb] Frame 20
gotoAndPlay (10);
Symbol 238 MovieClip [life_my] Frame 19
gotoAndPlay (10);
Symbol 241 MovieClip [fuel_my] Frame 20
gotoAndPlay (10);
Symbol 244 MovieClip [score_500] Frame 20
gotoAndPlay (10);
Symbol 247 MovieClip [score_300] Frame 20
gotoAndPlay (10);
Symbol 251 MovieClip [score_150] Frame 20
gotoAndPlay (10);
Symbol 254 MovieClip [score_100] Frame 20
gotoAndPlay (10);
Symbol 263 MovieClip Frame 82
_root.button_skip._visible = false;
Symbol 263 MovieClip Frame 98
stop();
_root.play();
Symbol 267 Button
on (release) {
gotoAndPlay (2);
}
Symbol 275 MovieClip Frame 7
stop();
Symbol 278 MovieClip Frame 15
stop();
Symbol 282 Button
on (release) {
_root.logo_alpha_1.play(2);
}
Symbol 286 MovieClip Frame 15
stop();
Symbol 287 Button
on (release) {
getURL ("http://www.webgari.com", "_blank");
}
Symbol 294 MovieClip Frame 15
stop();
Symbol 297 Button
on (release) {
gotoAndPlay (4);
}
Symbol 305 MovieClip Frame 40
stop();
Symbol 331 MovieClip Frame 30
_root.reklamaopa2.opa2.gotoAndPlay(2);
Symbol 331 MovieClip Frame 48
stop();
Symbol 336 Button
on (release) {
_quality = "low";
}
Symbol 338 Button
on (release) {
_quality = "medium";
}
Symbol 340 Button
on (release) {
_quality = "high";
}
Symbol 370 MovieClip Frame 1
stop();
Instance of Symbol 369 MovieClip in Symbol 370 MovieClip Frame 15
on (release) {
getURL ("http://www.opa.ru", "_blank");
}
Symbol 370 MovieClip Frame 31
stop();
Symbol 372 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 15
_root.play();
Symbol 394 Button
on (release) {
gotoAndPlay (2);
}
Symbol 400 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 11
selection.setFocus("_root.game_user_name");
stop();
Symbol 403 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 55
stop();
Symbol 410 MovieClip Frame 1
stop();
Symbol 410 MovieClip Frame 2
play();
Symbol 410 MovieClip Frame 15
play();
Symbol 410 MovieClip Frame 23
stop();
Symbol 413 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 2
play();
Symbol 413 MovieClip Frame 20
play();
Symbol 413 MovieClip Frame 28
stop();
Symbol 416 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 2
play();
Symbol 416 MovieClip Frame 25
play();
Symbol 416 MovieClip Frame 33
stop();
Symbol 419 MovieClip Frame 1
stop();
Symbol 419 MovieClip Frame 2
play();
Symbol 419 MovieClip Frame 30
play();
Symbol 419 MovieClip Frame 38
stop();
Symbol 422 MovieClip Frame 1
stop();
Symbol 422 MovieClip Frame 2
play();
Symbol 422 MovieClip Frame 10
play();
Symbol 422 MovieClip Frame 18
stop();
Symbol 425 Button
on (release) {
_root.attachMovie("logo_alpha_3", "logo_alpha_3", 3018);
_root.logo_alpha_3._x = 275;
_root.logo_alpha_3._y = 200;
gotoAndPlay (2);
}
Symbol 431 MovieClip Frame 1
stop();
Symbol 431 MovieClip Frame 2
play();
Symbol 431 MovieClip Frame 5
play();
Symbol 431 MovieClip Frame 12
stop();
Symbol 435 MovieClip Frame 1
stop();
Symbol 435 MovieClip Frame 2
play();
Symbol 435 MovieClip Frame 3
play();
Symbol 435 MovieClip Frame 9
stop();
Symbol 438 MovieClip Frame 1
stop();
Symbol 438 MovieClip Frame 2
play();
Symbol 438 MovieClip Frame 35
play();
Symbol 438 MovieClip Frame 45
stop();
Symbol 443 MovieClip Frame 1
stop();
Symbol 443 MovieClip Frame 16
stop();
Symbol 445 Button
on (release) {
if (_root.game_user_name.text == "") {
_root.edit_submit.gotoAndPlay(2);
}
if (_root.game_user_name.text ne "") {
_root.button_submit._visible = false;
_root.game_user_name_text._visible = false;
_root.game_user_name._visible = false;
_root.edit_submit._visible = false;
_root.yourgameuser = _root.game_user_name.text;
if (_root.score_user > 2000) {
loadVariables ("http://www.webgari.com/send1.php", this, "GET");
}
_root.b_again._x = 270;
_root.success_submit.gotoAndPlay(2);
}
}
Symbol 457 MovieClip Frame 30
stop();
Symbol 458 MovieClip Frame 1
stop();
Symbol 458 MovieClip Frame 2
stop();
Symbol 468 MovieClip Frame 50
stop();
Symbol 469 MovieClip Frame 1
stop();
Symbol 469 MovieClip Frame 2
stop();
Symbol 506 Button
on (release) {
_root.zakrit._visible = false;
_root.stat_shapka_sborn._visible = false;
_root.button_submit._visible = true;
_root.b_again._visible = true;
_root.game_user_name_text._visible = true;
_root.game_user_name._visible = true;
_root.edit_submit.gotoAndPlay(2);
_root.medal_percent1.medal_percent.text_percent.text = _root.way_percent + "%";
_root.medal_percent1.gotoandplay(2);
_root.medal_kill_percent1.medal_kill_percent.text_kill_percent.text = _root.kill_percent + "%";
_root.medal_kill_percent1.gotoandplay(2);
if (_root.kill_percent > 90) {
_root.medal_sniper1.gotoandplay(2);
}
if (_root.alien_kill > 25) {
_root.medal_25_1.gotoandplay(2);
}
if (_root.alien_kill > 50) {
_root.medal_50_1.gotoandplay(2);
}
if (_root.alien_kill > 100) {
_root.medal_100_1.gotoandplay(2);
}
if (_root.alien_kill > 200) {
_root.medal_200_1.gotoandplay(2);
}
if (_root.win == true) {
_root.medal_boss_1.gotoandplay(2);
_root.congrat.gotoandplay(2);
}
if (_root.end == true) {
_root.game_over.gotoandplay(2);
}
_root.score_result_dvig.gotoAndPlay(2);
if (_root.best_result < _root.score_user) {
_root.best_result = _root.score_user;
}
}
Symbol 507 MovieClip Frame 69
stop();
_root.score_user = _root.score_user + _root.hits_percent_more;