home *** CD-ROM | disk | FTP | other *** search
- if(_global.temps > 0 && !this.nivo.texteIntro)
- {
- this.nivo.texteIntro = this.nivo.texteIntro + 1;
- this.saveTime = 10000;
- this.salvenum = 0;
- this.afficheTexte(0,180,"Level 1");
- }
- if(_global.temps > 31 && !this.nivo.m00)
- {
- this.nivo.m00 = this.nivo.m00 + 1;
- var x = 580;
- var y = 150;
- var i = 0;
- while(i < 4)
- {
- this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
- clip = this["ennemi" + this.salvenum + i];
- clip._x = x;
- clip._y = y;
- clip.vitesse = 10;
- clip.trajectoire = "droite";
- clip.angle = 3.141592653589793;
- x -= 80 * Math.cos(clip.angle);
- y -= 80 * Math.sin(clip.angle);
- i++;
- }
- this.salvenum += 4;
- }
- if(_global.temps > 34 && !this.nivo.m01)
- {
- this.nivo.m01 = this.nivo.m01 + 1;
- var x = 580;
- var i = 0;
- while(i < 4)
- {
- this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
- clip = this["ennemi" + this.salvenum + i];
- clip._x = x;
- clip._y = 100;
- clip.vitesse = 10;
- clip.trajectoire = "sinus";
- clip.angle = 3.141592653589793;
- clip.savey = 100;
- x += 80;
- i++;
- }
- this.salvenum += 3;
- }
- if(_global.temps > 34 && !this.nivo.m02)
- {
- this.nivo.m02 = this.nivo.m02 + 1;
- var x = 580;
- var i = 0;
- while(i < 3)
- {
- this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
- clip = this["ennemi" + this.salvenum + i];
- clip._x = x;
- clip._y = 300;
- clip.vitesse = 10;
- clip.trajectoire = "sinus";
- clip.angle = 3.141592653589793;
- clip.savey = 300;
- x += 80;
- i++;
- }
- this.salvenum += 3;
- }
- if(_global.temps > 36 && !this.nivo.m03)
- {
- this.nivo.m03 = this.nivo.m03 + 1;
- var x = 580;
- var i = 0;
- while(i < 8)
- {
- this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
- clip = this["ennemi" + this.salvenum + i];
- clip._x = x;
- clip._y = 200;
- clip.vitesse = 10;
- clip.trajectoire = "sinus";
- clip.angle = 3.141592653589793;
- clip.savey = 200;
- x += 80;
- i++;
- }
- this.salvenum += 10;
- }
- if(_global.temps > 40 && !this.nivo.m04)
- {
- this.nivo.m04 = this.nivo.m04 + 1;
- var x = 580;
- var y = 350;
- var i = 0;
- while(i < 5)
- {
- this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
- clip = this["ennemi" + this.salvenum + i];
- clip._x = x;
- clip._y = y;
- clip.vitesse = 10;
- clip.trajectoire = "droite";
- clip.angle = 3.5342917352885173;
- x -= 80 * Math.cos(clip.angle);
- y -= 80 * Math.sin(clip.angle);
- i++;
- }
- this.salvenum += 5;
- }
- if(_global.temps > 43 && !this.nivo.m05)
- {
- this.nivo.m05 = this.nivo.m05 + 1;
- var x = 580;
- var y = 50;
- var i = 0;
- while(i < 5)
- {
- this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
- clip = this["ennemi" + this.salvenum + i];
- clip._x = x;
- clip._y = y;
- clip.vitesse = 10;
- clip.trajectoire = "droite";
- clip.angle = 2.748893571891069;
- x -= 80 * Math.cos(clip.angle);
- y -= 80 * Math.sin(clip.angle);
- i++;
- }
- this.salvenum += 5;
- }
- if(_global.temps > 47 && !this.nivo.m06)
- {
- this.nivo.m06 = this.nivo.m06 + 1;
- this.attachMovie("Monstre3Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
- clip = this["ennemi" + this.salvenum + i];
- clip._x = 580;
- clip._y = 200;
- clip.vitesse = 5;
- clip.trajectoire = "droite";
- clip.angle = 3.141592653589793;
- this.salvenum += 1;
- }
- if(_global.temps > 47 && !this.nivo.m07)
- {
- this.nivo.m07 = this.nivo.m07 + 1;
- var angle = 0;
- var i = 0;
- while(i < 2)
- {
- this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
- clip = this["ennemi" + this.salvenum + i];
- clip.vitesse = 5;
- clip.trajectoire = "cercle";
- clip._x = 580;
- clip.savex = 580;
- clip.savey = 80;
- clip.rayonx = 25;
- clip.rayony = 25;
- clip.angle = angle;
- angle += 3.141592653589793;
- i++;
- }
- this.salvenum += 2;
- }
- if(_global.temps > 47 && !this.nivo.m08)
- {
- this.nivo.m08 = this.nivo.m08 + 1;
- var angle = 0;
- var i = 0;
- while(i < 2)
- {
- this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
- clip = this["ennemi" + this.salvenum + i];
- clip.vitesse = 5;
- clip.trajectoire = "cercle";
- clip._x = 580;
- clip.savex = 580;
- clip.savey = 320;
- clip.rayonx = 25;
- clip.rayony = 25;
- clip.angle = angle;
- angle += 3.141592653589793;
- i++;
- }
- this.salvenum += 2;
- }
- if(_global.temps > 51 && !this.nivo.m09)
- {
- this.nivo.m09 = this.nivo.m09 + 1;
- var x = 580;
- var i = 0;
- while(i < 5)
- {
- this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
- clip = this["ennemi" + this.salvenum + i];
- clip._x = x;
- clip.vitesse = 10;
- clip.trajectoire = "atan";
- clip.angle = 3.141592653589793;
- clip.savey = 200;
- clip.largeur = 200;
- clip.hauteur = 100;
- x += 80;
- i++;
- }
- this.salvenum += 5;
- }
- if(_global.temps > 54 && !this.nivo.m10)
- {
- this.nivo.m10 = this.nivo.m10 + 1;
- var x = 580;
- var i = 0;
- while(i < 5)
- {
- this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
- clip = this["ennemi" + this.salvenum + i];
- clip._x = x;
- clip.vitesse = 10;
- clip.trajectoire = "atan";
- clip.angle = 3.141592653589793;
- clip.savey = 200;
- clip.largeur = 200;
- clip.hauteur = -100;
- x += 80;
- i++;
- }
- this.salvenum += 5;
- }
- if(_global.temps > 57 && !this.nivo.m11)
- {
- this.nivo.m11 = this.nivo.m11 + 1;
- this.attachMovie("Monstre3Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
- clip = this["ennemi" + this.salvenum + i];
- clip._x = 580;
- clip._y = 100;
- clip.vitesse = 3;
- clip.trajectoire = "sinus";
- clip.angle = 3.141592653589793;
- clip.savey = 100;
- this.salvenum += 1;
- }
- if(_global.temps > 27 && !this.nivo.m12)
- {
- this.nivo.m12 = this.nivo.m12 + 1;
- this.attachMovie("Monstre3Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
- clip = this["ennemi" + this.salvenum + i];
- clip._x = 580;
- clip._y = 300;
- clip.vitesse = 3;
- clip.trajectoire = "sinus";
- clip.angle = 3.141592653589793;
- clip.savey = 300;
- this.salvenum += 1;
- }
- if(_global.temps > 27 && !this.nivo.m13)
- {
- this.nivo.m13 = this.nivo.m13 + 1;
- this.attachMovie("Monstre3Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
- clip = this["ennemi" + this.salvenum + i];
- clip._x = 600;
- clip._y = 200;
- clip.vitesse = 3;
- clip.trajectoire = "sinus";
- clip.angle = 3.141592653589793;
- clip.savey = 200;
- this.salvenum += 1;
- }
- if(_global.temps > 32 && !this.nivo.m14)
- {
- afficheTexte(0,320,"Mini Boss : Crazy Wheel");
- this.nivo.m14 = this.nivo.m14 + 1;
- this.attachMovie("Monstre4Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
- clip = this["ennemi" + this.salvenum + i];
- clip._x = 580;
- clip._y = 200;
- clip.vitesse = 2;
- clip.trajectoire = "droite";
- clip.angle = 3.141592653589793;
- this.salvenum += 1;
- }
- if(_global.temps > 42 && !this.nivo.m15)
- {
- this.nivo.m15 = this.nivo.m15 + 1;
- var angle = 0;
- var i = 0;
- while(i < 6)
- {
- this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
- clip = this["ennemi" + this.salvenum + i];
- clip.vitesse = 5;
- clip.trajectoire = "cercle";
- clip._x = 580;
- clip.savex = 580;
- clip.savey = 200;
- clip.rayonx = 50;
- clip.rayony = 150;
- clip.angle = angle;
- angle += 1.0471975511965976;
- i++;
- }
- this.salvenum += 6;
- }
- if(_global.temps > 45 && !this.nivo.m16)
- {
- this.nivo.m16 = this.nivo.m16 + 1;
- this.attachMovie("Monstre2Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
- clip = this["ennemi" + this.salvenum + i];
- clip._x = 600;
- clip.vitesse = 4;
- clip.trajectoire = "atan";
- clip.angle = 3.141592653589793;
- clip.savey = 200;
- clip.largeur = 200;
- clip.hauteur = 100;
- this.salvenum += 1;
- }
- if(_global.temps > 46 && !this.nivo.m17)
- {
- this.nivo.m17 = this.nivo.m17 + 1;
- this.attachMovie("Monstre2Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
- clip = this["ennemi" + this.salvenum + i];
- clip._x = 600;
- clip.vitesse = 4;
- clip.trajectoire = "atan";
- clip.angle = 3.141592653589793;
- clip.savey = 200;
- clip.largeur = 200;
- clip.hauteur = -100;
- this.salvenum += 1;
- }
- if(_global.temps > 47 && !this.nivo.m18)
- {
- this.nivo.m18 = this.nivo.m18 + 1;
- this.attachMovie("Monstre2Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
- clip = this["ennemi" + this.salvenum + i];
- clip._x = 600;
- clip._y = 200;
- clip.vitesse = 4;
- clip.trajectoire = "droite";
- clip.angle = 3.141592653589793;
- this.salvenum += 1;
- }
- if(_global.temps > 52 && !this.nivo.m19)
- {
- this.nivo.m19 = this.nivo.m19 + 1;
- var x = 580;
- var y = 100;
- var i = 0;
- while(i < 4)
- {
- this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
- clip = this["ennemi" + this.salvenum + i];
- clip._x = x;
- clip._y = y;
- clip.vitesse = 4;
- clip.trajectoire = "droite";
- clip.angle = 3.141592653589793;
- x -= 80 * Math.cos(clip.angle);
- y -= 80 * Math.sin(clip.angle);
- i++;
- }
- this.salvenum += 4;
- }
- if(_global.temps > 52 && !this.nivo.m20)
- {
- this.nivo.m20 = this.nivo.m20 + 1;
- var x = 580;
- var y = 300;
- var i = 0;
- while(i < 4)
- {
- this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
- clip = this["ennemi" + this.salvenum + i];
- clip._x = x;
- clip._y = y;
- clip.vitesse = 4;
- clip.trajectoire = "droite";
- clip.angle = 3.141592653589793;
- x -= 80 * Math.cos(clip.angle);
- y -= 80 * Math.sin(clip.angle);
- i++;
- }
- this.salvenum += 4;
- }
- if(_global.temps > 53 && !this.nivo.m21)
- {
- this.nivo.m21 = this.nivo.m21 + 1;
- this.attachMovie("Monstre2Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
- clip = this["ennemi" + this.salvenum + i];
- clip._x = 580;
- clip._y = 200;
- clip.vitesse = 4;
- clip.trajectoire = "droite";
- clip.angle = 3.141592653589793;
- this.salvenum += 1;
- }
- if(_global.temps > 20 && !this.nivo.bonusBombe01)
- {
- this.nivo.bonusBombe01 = this.nivo.bonusBombe01 + 1;
- this.attachMovie("BonusBombeClip","superbonus",_global.bonusDepth);
- }
- if(_global.temps > 40 && !this.nivo.bonusBouclier01)
- {
- this.nivo.bonusBouclier01 = this.nivo.bonusBouclier01 + 1;
- this.attachMovie("BonusBouclierClip","superbonus1",_global.bonusDepth + 1);
- }
- if(_global.temps > 40 && !this.nivo.bonusVie01)
- {
- this.nivo.bonusVie01 = this.nivo.bonusVie01 + 1;
- this.attachMovie("BonusVieClip","superbonus2",_global.bonusDepth + 2);
- }
- if(_global.temps > 60 && !this.nivo.bonusBouclier02)
- {
- this.nivo.bonusBouclier02 = this.nivo.bonusBouclier02 + 1;
- this.attachMovie("BonusBouclierClip","superbonus",_global.bonusDepth);
- }
- if(_global.temps > 60)
- {
- if(!this.nivo.boss01)
- {
- afficheTexte(0,320,"Boss : Dead Cruiser");
- this.nivo.boss01 = this.nivo.boss01 + 1;
- this.attachMovie("Boss1ClipHaut","boss",_global.bossDepth);
- }
- else if(!this.boss && !this.nivo.finNivo)
- {
- this.nivo.finNivo = this.nivo.finNivo + 1;
- afficheTexte(0,180,"Level 1 Completed");
- this.saveTime = _global.temps;
- }
- else if(_global.temps > this.saveTime + 3)
- {
- this.tirEnnemiClip.removeMovieClip();
- this.tirVaisseauClip.removeMovieClip();
- this.vesso.removeMovieClip();
- this.vague00.removeMovieClip();
- this.vague01.removeMovieClip();
- this.vague10.removeMovieClip();
- this.vague11.removeMovieClip();
- this.lifeBar.removeMovieClip();
- this.powerBar.removeMovieClip();
- this.eauBas.removeMovieClip();
- this.traineeEau.removeMovieClip();
- delete this.nivo;
- this.gotoAndPlay("FL1");
- }
- }
-