home *** CD-ROM | disk | FTP | other *** search
- stop();
- wyspa._visible = true;
- attackTime = 0;
- level = 2;
- menu.level_txt.text = level;
- wyspa.onEnterFrame = function()
- {
- this._x -= 0.8;
- if(this._x < -200)
- {
- this._x = 700;
- }
- };
- muzyka3 = new Sound();
- muzyka3.attachSound("level2");
- muzyka3.setVolume(100);
- muzyka3.start(0,9999);
- next_lev = false;
- this.onEnterFrame = function()
- {
- if(attackTime == 50)
- {
- var sx = Math.random() * 180 + 100;
- ship_attack3("ship4",sx,6,7);
- }
- if(attackTime == 120)
- {
- ship_attack0("ship1MaW",3);
- }
- if(attackTime == 250)
- {
- var sx = Math.random() * 100 + 180;
- ship_attack2("ship5",sx,8,7);
- }
- if(attackTime == 350)
- {
- var sx = Math.random() * 120 + 120;
- ship_attack3("ship3",sx,5,-7);
- }
- if(attackTime == 400)
- {
- ship_attack0("ship1",2);
- }
- if(attackTime == 420)
- {
- ship_attack1("ship7",3);
- }
- if(attackTime == 440)
- {
- boss_attack1("boss2",600,150,laser2a);
- }
- if(attackTime == 600)
- {
- ship_attack1("ship1",3);
- }
- if(attackTime == 700)
- {
- ship_attack0("ship1MaW",2);
- }
- if(attackTime == 880)
- {
- boss_attack2("boss3MaW",600,150,laser2a);
- }
- if(attackTime == 905)
- {
- boss_attack1("boss1MaW",600,150,bullet_boss);
- }
- if(attackTime == 950)
- {
- var sx = Math.random() * 180 + 100;
- ship_attack3("ship5",sx,2,-7);
- }
- if(attackTime == 1050)
- {
- var sx = Math.random() * 100 + 180;
- ship_attack2("ship4",sx,5,7);
- }
- if(attackTime == 1120)
- {
- var sx = Math.random() * 120 + 120;
- ship_attack3("ship7",sx,6,7);
- }
- if(attackTime == 1290)
- {
- ship_attack1("ship1Maw",4);
- }
- if(attackTime == 1380)
- {
- boss_attack1("boss1MaW",600,150,laser2a);
- }
- if(attackTime == 1480)
- {
- var sx = Math.random() * 180 + 100;
- ship_attack3("ship5",sx,5,-8);
- }
- if(attackTime == 1500)
- {
- var sx = Math.random() * 180 + 100;
- ship_attack3("ship6",sx,5,8);
- }
- if(attackTime == 1600)
- {
- boss_level("boss_koniec_2",600,150,bullet1);
- }
- if(attackTime > 1650 && przenies <= 0 && next_lev == true)
- {
- delete this.onEnterFrame;
- delete wyspa.onEnterFrame;
- wyspa._visible = false;
- muzyka3.stop();
- gotoAndPlay(152);
- }
- attackTime++;
- trace(attackTime);
- };
-