Frame 2
if (_framesloaded == _totalframes) {
gotoAndPlay(_currentframe + 2);
} else {
play();
}
Frame 3
prevFrame();
Frame 4
play();
Frame 5
Object.prototype.getMovieFPS = function () {
if (switchFrame == null) {
switchFrame = true;
}
(switchFrame ? ((movieTimer = getTimer())) : ((movieSpeed = 1000 / (getTimer() - movieTimer))));
switchFrame = !switchFrame;
return(int(movieSpeed));
};
touche._visible = false;
Frame 6
function afficheTexte(x, y, contenu) {
this.attachMovie("InfoClip", "info", _global.texteDepth);
with (this.info) {
createTextField("texte2", 1, x - 1, y - 1, 550, 0);
createTextField("texte1", 2, x, y, 550, 0);
with (texte1) {
background = false;
border = false;
autoSize = "center";
selectable = false;
text = contenu;
}
with (texte2) {
background = false;
border = false;
autoSize = "center";
selectable = false;
text = contenu;
}
texte2.setTextFormat(_global.txtFormat1);
texte1.setTextFormat(_global.txtFormat0);
}
this.info.attachMovie("BlancClip", "blanc", 3);
with (this.info.blanc) {
_width = 550;
_height = _parent.texte1._height;
_x = x;
_y = y + (_height / 2);
}
this.info.saveTime = _global.fotemps;
}
function effaceTexte() {
if (this.info) {
var tempoFondu = 8;
if (_global.fotemps < (this.info.saveTime + tempoFondu)) {
this.info.blanc._height = this.info.texte1._height - (((_global.fotemps - this.info.saveTime) * this.info.texte1._height) / (tempoFondu - 1));
} else if ((_global.fotemps > ((this.info.saveTime + tempoFondu) + 24)) && (!this.info.fin)) {
this.info.saveTime2 = _global.fotemps;
this.info.fin++;
} else if (_global.fotemps < (this.info.saveTime2 + tempoFondu)) {
this.info.blanc._height = ((_global.fotemps - this.info.saveTime2) * this.info.texte1._height) / (tempoFondu - 1);
if (this.info.blanc._height == this.info.texte1._height) {
this.info.removeMovieClip();
}
}
delete tempoFondu;
}
}
_quality = "medium";
_global.fotemps = 0;
_global.distance = 0;
_root.score = 0;
_global.texteDepth = 2200;
_global.lifeBarDepth = 2100;
_global.powerBarDepth = 2000;
_global.traineeEauDepth = 1900;
_global.EauBasDepth = 1800;
_global.bullesEauDepth = 1700;
_global.vaisseauDepth = 1600;
_global.traineeDepth = 1500;
_global.bossDepth = 1400;
_global.ennemiDepth = 1300;
_global.tirVaisseauDepth = 1200;
_global.tirEnnemiDepth = 1100;
_global.bonusDepth = 1000;
_global.eclaboussureDepth = 900;
_global.bouclierDepth = 800;
_global.traineeVaisseauDepth = 700;
_global.decorsDepth = 600;
_global.maxTirEnnemi = 20;
_global.tabTirEnnemi = new Array();
_global.maxTirVaisseau = 10;
_global.tabTirVaisseau = new Array();
_global.txtFormat0 = new TextFormat();
with (_global.txtFormat0) {
_global.txtFormat0.font = "Impact";
_global.txtFormat0.size = 50;
_global.txtFormat0.color = 16777215 /* 0xFFFFFF */;
_global.txtFormat0.align = "center";
}
_global.txtFormat1 = new TextFormat();
with (_global.txtFormat1) {
_global.txtFormat1.font = "Impact";
_global.txtFormat1.size = 50;
_global.txtFormat1.color = 0;
_global.txtFormat1.align = "center";
}
MovieClip.prototype.killer = function () {
for (var a in this) {
this[a].removeMovieClip();
delete this[a];
}
delete a;
};
Frame 7
Vague = function () {
this.vitesse = 0;
};
Vague.prototype = new MovieClip();
Object.registerClass("VagueClip", Vague);
Vague.prototype.onEnterFrame = function () {
this._x = this._x - this.vitesse;
if (this._x < -300) {
this._x = 850;
}
};
Frame 8
Vaisseau = function () {
this._xscale = 80;
this._yscale = this._xscale;
this._x = 275;
this._y = 200;
this.vitesse = 20;
this.AnimPlayHaut = false;
this.AnimPlayBas = false;
this.vie = 1000;
this.power = 100;
this.maxTirdebase = 10;
this.tempsDernierTirdebase = 0;
this.delaiEntreDeuxTirdebase = 100;
this.nbrBombe = 10;
this.tempsDerniereBombe = 0;
this.delaiEntreDeuxBombe = 500;
this.mort = false;
this.touche = -1;
};
Vaisseau.prototype = new MovieClip();
Object.registerClass("VaisseauClip", Vaisseau);
Vaisseau.prototype.blesse = function () {
if (this.touche != -1) {
if (_global.fotemps < (this.touche + 10)) {
this._x = this._x + (5 * Math.cos(((random(360) * 2) * Math.PI) / 360));
this._y = this._y - (5 * Math.cos(((random(360) * 2) * Math.PI) / 360));
this._alpha = random(100);
} else {
this.touche = -1;
this._alpha = 100;
}
}
};
Vaisseau.prototype.onEnterFrame = function () {
if (this.vie > 0) {
this.move();
this.afficheTrainee();
this.protect();
this.tirnormal();
this.blesse();
this.lachebombe();
this.testTirEnnemi();
} else if (this.mort == false) {
this.gotoAndPlay("Mort");
this.mort = true;
}
if (_global.level == 1) {
this.afficheTraineeEau();
}
if (_global.level == 3) {
this.afficheTraineeFumee();
}
};
Vaisseau.prototype.testTirEnnemi = function () {
var len = _global.tabTirEnnemi.length;
var j = 0;
while (j < len) {
var i = _global.tabTirEnnemi[j];
var clip = this._parent.tirEnnemiClip["tirEnnemi" + i];
if (clip._currentframe < 3) {
if (this.hitTest(clip)) {
if (!this.bouclier) {
this._parent.score = this._parent.score - 100;
this.vie = this.vie - clip.degats;
this.touche = _global.fotemps;
}
clip.angle = Math.PI;
clip.play();
}
}
j++;
}
};
Vaisseau.prototype.move = function () {
if (Key.isDown(37)) {
if (this._x > 40) {
this._x = this._x - this.vitesse;
}
}
if (Key.isDown(39)) {
if (this._x < 550) {
this._x = this._x + this.vitesse;
}
}
if (Key.isDown(38)) {
if (this._y > 20) {
this._y = this._y - this.vitesse;
}
if (this.AnimPlayHaut == false) {
this.gotoAndPlay("NormalHaut");
}
this.AnimPlayHaut = true;
} else if (this.AnimPlayHaut == true) {
this.gotoAndPlay("HautNormal");
this.AnimPlayHaut = false;
}
if (Key.isDown(40)) {
if (this._y < 330) {
this._y = this._y + this.vitesse;
}
if (this.AnimPlayBas == false) {
this.gotoAndPlay("NormalBas");
}
this.AnimPlayBas = true;
} else if (this.AnimPlayBas == true) {
this.gotoAndPlay("HautNormal");
this.AnimPlayBas = false;
}
};
Vaisseau.prototype.afficheTrainee = function () {
if (!this._parent.trainee) {
this._parent.attachMovie("TraineeClip", "trainee", _global.traineeDepth);
}
this._parent.trainee._x = this._x;
this._parent.trainee._y = this._y;
};
Vaisseau.prototype.afficheTraineeEau = function () {
if (this._y > 300) {
if (!this._parent.traineeEau) {
this._parent.attachMovie("TraineeEauClip", "traineeEau", _global.traineeEauDepth);
this._parent.traineeEau._y = 380;
this._parent.traineeEau._alpha = 60;
}
this._parent.traineeEau._x = this._x;
this._parent.traineeEau._height = this._y - 300;
this._parent.traineeEau._width = 150;
this._y = this._y - random((this._y - 300) / 5);
} else {
this._parent.traineeEau.removeMovieClip();
}
};
Vaisseau.prototype.afficheTraineeFumee = function () {
if (this._y > 300) {
if (!this._parent.traineeFumee) {
this._parent.attachMovie("TraineeFumeeClip", "traineeFumee", _global.traineeEauDepth);
this._parent.traineeFumee._y = 380;
this._parent.traineeFumee._alpha = 60;
}
this._parent.traineeFumee._x = this._x;
this._parent.traineeFumee._height = this._y - 300;
this._parent.traineeFumee._width = 150;
this._y = this._y - random((this._y - 300) / 5);
} else {
this._parent.traineeFumee.removeMovieClip();
}
};
Vaisseau.prototype.protect = function () {
if (Key.isDown(66) && (this.power > 0)) {
if (!this.bouclier) {
this.attachMovie("BouclierClip", "bouclier", _global.bouclierDepth);
this.bouclier._x = -20;
this.bouclier._y = -10;
}
this.power--;
} else {
this.bouclier.removeMovieClip();
}
};
Vaisseau.prototype.tirnormal = function () {
if (Key.isDown(32)) {
if (getTimer() > (this.tempsDuDernierTirdebase + this.delaiEntreDeuxTirdebase)) {
this.tempsDuDernierTirdebase = getTimer();
var i = 0;
while (this._parent.tirVaisseauClip["tirVaisseau" + i]) {
i++;
if (i == _global.maxTirVaisseau) {
return(0);
}
}
this._parent.tirVaisseauClip.attachMovie("TirdebaseRClip", "tirVaisseau" + i, _global.tirVaisseauDepth + i);
var clip = this._parent.tirVaisseauClip["tirVaisseau" + i];
clip.angle = 0;
clip._x = this._x + 5;
clip._y = this._y;
}
}
};
Vaisseau.prototype.lachebombe = function () {
if (Key.isDown(86)) {
if ((getTimer() > (this.tempsDerniereBombe + this.delaiEntreDeuxBombe)) && (this.nbrBombe > 0)) {
this.tempsDerniereBombe = getTimer();
var i = 0;
while (this._parent.tirVaisseauClip["tirVaisseau" + i]) {
i++;
if (i == _global.maxTirVaisseau) {
return(0);
}
}
this._parent.tirVaisseauClip.attachMovie("BombeClip", "tirVaisseau" + i, _global.tirVaisseauDepth + i);
var clip = this._parent.tirVaisseauClip["tirVaisseau" + i];
clip._x = this._x - 5;
clip._y = this._y;
clip.num = i;
this.nbrBombe--;
}
}
};
Frame 9
Sprite = function () {
this.vitesse = 0;
this.trajectoire = "nothing";
};
Sprite.prototype = new MovieClip();
Sprite.prototype.onEnterFrame = function () {
this.move();
};
Sprite.prototype.move = function () {
switch (this.trajectoire) {
case "sinus" :
this.moveSinus();
break;
case "cercle" :
this.moveCercle();
break;
case "droite" :
this.moveDroite();
break;
case "atan" :
this.moveATan();
break;
}
if (this._x < -50) {
this.removeMovieClip();
}
};
Sprite.prototype.moveDroite = function () {
this._x = this._x + (this.vitesse * Math.cos(this.angle));
this._y = this._y + (this.vitesse * Math.sin(this.angle));
};
Sprite.prototype.moveCercle = function () {
this.savex = this.savex + (this.vitesse * -1);
this.savey = this.savey + (this.vitesse * 1.22460635382238E-16);
this._x = this.savex + (this.rayonx * Math.cos((this.angle = this.angle + 0.1)));
this._y = this.savey + (this.rayony * Math.sin(this.angle));
};
Sprite.prototype.moveSinus = function () {
this._x = this._x + (this.vitesse * Math.cos(this.angle));
this._y = this.savey + (Math.sin((this._x * Math.PI) / 180) * 50);
};
Sprite.prototype.moveATan = function () {
this._x = this._x + (this.vitesse * Math.cos(this.angle));
this._y = this.savey + (Math.atan((this._x - 580) / this.largeur) * this.hauteur);
};
Frame 10
Tirdebase = function () {
super();
this.typeTir = "tirdebase";
this.trajectoire = "droite";
this.angle = Math.PI;
this.vitesse = 40;
this.degats = 50;
};
Tirdebase.prototype = new Sprite();
Object.registerClass("TirdebaseRClip", Tirdebase);
Object.registerClass("TirdebaseBClip", Tirdebase);
Object.registerClass("TirCourbeClip", TirdeBase);
Object.registerClass("TirDirigeClip", TirdeBase);
Tirdebase.prototype.onEnterFrame = function () {
super.onEnterFrame();
if ((((this._x > 600) || (this._x < 0)) || (this._y < -50)) || (this._y > 450)) {
this.removeMovieClip();
}
};
Bombe = function () {
super();
this.typeTir = "bombe";
this.trajectoire = "droite";
this.vitesse = 20;
this.angle = (Math.PI/2);
this.degats = 100;
};
Bombe.prototype = new Sprite();
Object.registerClass("BombeClip", Bombe);
Bombe.prototype.onEnterFrame = function () {
super.onEnterFrame();
this._rotation = this._rotation + 5;
if (this._y > 350) {
this._parent.attachMovie("EclaboussureClip", "eclatboussure" + this.num, _global.eclaboussureDepth + this.num);
this._parent["eclatboussure" + this.num]._x = this._x;
this._parent["eclatboussure" + this.num]._y = this._y;
this.removeMovieClip();
}
};
Frame 11
Ennemi = function () {
super();
this.touche = false;
this.saveToucheTime = -1000;
this.vie = 100;
};
Ennemi.prototype = new Sprite();
Ennemi.prototype.onEnterFrame = function () {
super.onEnterFrame();
if (this.vie > 0) {
this.tirnormal();
this.testTirVaisseau();
this.clignote();
}
};
Ennemi.prototype.testTirVaisseau = function () {
var len = _global.tabTirVaisseau.length;
var j = 0;
while (j < len) {
var i = _global.tabTirVaisseau[j];
clip = this._parent.tirVaisseauClip["tirVaisseau" + i];
if (clip.touche != true) {
if (this.hitTest(clip._x, clip._y, false)) {
clip.touche = true;
this.vie = this.vie - clip.degats;
this._parent.score = this._parent.score + 300;
if (this.vie < 1) {
this.vitesse = 30;
this.trajectoire = "droite";
this.angle = Math.PI;
this._alpha = 100;
this.saveToucheTime = -5000;
this.play();
} else {
this.touche = true;
}
clip.angle = Math.PI;
clip.play();
}
}
j++;
}
};
Ennemi.prototype.clignote = function () {
if (this.touche == true) {
this.saveToucheTime = getTimer();
}
if (getTimer() < (this.saveToucheTime + 500)) {
this._alpha = 50 + (50 * Math.cos(this.tmp++));
this.touche = false;
} else {
this._alpha = 100;
}
};
Ennemi.prototype.chercheTirLibre = function () {
var i = 0;
while (this._parent.tirEnnemiClip["tirEnnemi" + i]) {
i++;
if (i == _global.maxTirEnnemi) {
return(-1);
}
}
return(i);
};
Frame 12
Monstre1 = function () {
super();
this.vitesse = 10;
this.vie = 100;
};
Monstre1.prototype = new Ennemi();
Object.registerClass("Monstre1Clip", Monstre1);
Monstre1.prototype.onEnterFrame = function () {
super.onEnterFrame();
this._rotation = 180 + ((this.angle * 360) / (Math.PI*2));
};
Monstre1.prototype.tirnormal = function () {
if (((_global.temps % 2) == 0) && (random(10) == 0)) {
i = this.chercheTirLibre();
if (i == -1) {
return(0);
}
this._parent.tirEnnemiClip.attachMovie("TirdebaseBClip", "tirEnnemi" + i, _global.tirEnnemiDepth + i);
var clip = this._parent.tirEnnemiClip["tirEnnemi" + i];
clip._x = this._x + (25 * Math.cos(this.angle));
clip._y = this._y + (25 * Math.sin(this.angle));
clip.angle = this.angle;
clip._rotation = this._rotation;
}
};
Frame 13
Monstre2 = function () {
super();
this.vitesse = 10;
this.vie = 300;
this.saveCalc = 57.2957795130823;
};
Monstre2.prototype = new Ennemi();
Object.registerClass("Monstre2Clip", Monstre2);
Monstre2.prototype.onEnterFrame = function () {
super.onEnterFrame();
this.teta = Math.atan2(this._parent.vesso._y - this._y, this._parent.vesso._x - this._x);
this._rotation = this.teta * this.saveCalc;
};
Monstre2.prototype.tirnormal = function () {
if (((_global.temps % 2) == 0) && (random(10) == 0)) {
i = this.chercheTirLibre();
if (i == -1) {
return(0);
}
this._parent.tirEnnemiClip.attachMovie("TirCourbeClip", "tirEnnemi" + i, _global.tirEnnemiDepth + i);
var clip = this._parent.tirEnnemiClip["tirEnnemi" + i];
clip._x = this._x;
clip._y = this._y;
clip.angle = this.teta;
clip._rotation = this._rotation + 180;
}
};
Frame 14
Monstre3 = function () {
super();
this.vitesse = 10;
this.vie = 300;
};
Monstre3.prototype = new Ennemi();
Object.registerClass("Monstre3Clip", Monstre3);
Monstre3.prototype.tirnormal = function () {
if (((_global.temps % 2) == 0) && (random(10) == 0)) {
var x = 30;
var j = 0;
while (j < 3) {
i = this.chercheTirLibre();
if (i == -1) {
return(0);
}
this._parent.tirEnnemiClip.attachMovie("TirCourbeClip", "tirEnnemi" + i, _global.tirEnnemiDepth + i);
var clip = this._parent.tirEnnemiClip["tirEnnemi" + i];
clip._x = this._x - x;
clip._y = this._y;
x = x + 20;
j++;
}
}
};
Frame 15
Monstre4 = function () {
super();
this.vitesse = 10;
this.vie = 2000;
};
Monstre4.prototype = new Ennemi();
Object.registerClass("Monstre4Clip", Monstre4);
Monstre4.prototype.onEnterFrame = function () {
super.onEnterFrame();
this._rotation = this._rotation + 8;
};
Monstre4.prototype.tirnormal = function () {
if (random(3) == 0) {
var teta = (((this._rotation * 2) * Math.PI) / 360);
var j = 0;
while (j < 8) {
var i = this.chercheTirLibre();
if (i == -1) {
return(0);
}
this._parent.tirEnnemiClip.attachMovie("TirDirigeClip", "tirEnnemi" + i, _global.tirEnnemiDepth + i);
var clip = this._parent.tirEnnemiClip["tirEnnemi" + i];
clip._x = this._x + ((this._width / 2) * Math.cos(teta));
clip._y = this._y + ((this._height / 2) * Math.sin(teta));
clip.angle = Math.atan2(clip._y - this._y, clip._x - this._x);
clip.vitesse = 15;
teta = teta + (Math.PI/4);
j++;
}
}
};
Frame 16
Boss1 = function () {
super();
this._x = 800;
this._y = 200;
this.vie = 5000;
this.tombe = false;
this.trajectoire = "cercle";
this.vitesse = 5;
this.savex = this._x;
this.savey = this._y;
this.rayonx = 0;
this.rayony = 20;
this.attachMovie("LifeBossBarClip", "lifeBossBar", 1);
this.lifeBossBar.init(-100, 130, 100, 10, "0xFF0000", "0xFFFFFF");
};
Boss1.prototype = new Ennemi();
Object.registerClass("Boss1ClipHaut", Boss1);
Boss1.prototype.onEnterFrame = function () {
if ((this._x == 400) && (!this.bossStop)) {
this.bossStop++;
this.vitesse = 0;
}
if (this.vie > 0) {
this.move();
this.tirnormal();
this.testTirVaisseau();
this.clignote();
} else {
this.explose();
this._parent.score = this._parent.score + 500;
if (this.tombe) {
this._x = this._x + -5;
this._rotation = this._rotation - 0.2;
this._y = this._y + 1;
if (this._x < -250) {
this.removeMovieClip();
}
}
}
};
Boss1.prototype.testTirVaisseau = function (bool) {
var j = 0;
while (j < _global.tabTirVaisseau.length) {
var i = _global.tabTirVaisseau[j];
clip = this._parent.tirVaisseauClip["tirVaisseau" + i];
if (clip._currentframe < 3) {
if (this.hitTest(clip._x, clip._y, true)) {
this.vie = this.vie - clip.degats;
clip.vitesse = 0;
this._parent.score = this._parent.score + 500;
this.touche = true;
clip.play();
}
}
j++;
}
};
Boss1.prototype.explose = function () {
this._alpha = 100;
this.numExp++;
this.attachMovie("ExplosionClip", "explosion" + this.numExp, this.numExp);
clip = this["explosion" + this.numExp];
clip._x = random(250) * Math.cos((Math.random() * Math.PI) * 2);
clip._y = random(150) * Math.sin((Math.random() * Math.PI) * 2);
clip._xscale = random(100) + 50;
clip._yscale = clip._xscale;
clip._rotation = random(500);
if (this.numExp > 40) {
this.savey = this._y;
this.tombe = true;
}
};
Boss1.prototype.tirnormal = function () {
if (random(5) == 0) {
var r = random(6);
if (r < 4) {
i = this.chercheTirLibre();
if (i == -1) {
return(0);
}
this._parent.tirEnnemiClip.attachMovie("TirDirigeClip", "tirEnnemi" + i, _global.tirEnnemiDepth + i);
var clip = this._parent.tirEnnemiClip["tirEnnemi" + i];
if (r == 0) {
clip._x = this._x - 170;
clip._y = this._y + 50;
} else if (r == 1) {
clip._x = this._x + 100;
clip._y = this._y - 90;
} else if (r == 2) {
clip._x = this._x - 95;
clip._y = this._y + 40;
} else if (r == 3) {
clip._x = this._x + 40;
clip._y = this._y - 50;
}
clip.angle = Math.atan2(this._parent.vesso._y - clip._y, this._parent.vesso._x - clip._x);
clip.vitesse = 15;
} else {
var angle = Math.atan2(this._parent.vesso._y - this._y, this._parent.vesso._x - this._x);
var j = 0;
while (j < 3) {
i = this.chercheTirLibre();
if (i == -1) {
return(0);
}
this._parent.tirEnnemiClip.attachMovie("TirDirigeClip", "tirEnnemi" + i, _global.tirEnnemiDepth + i);
var clip = this._parent.tirEnnemiClip["tirEnnemi" + i];
if (r == 4) {
if (j == 0) {
clip._x = this._x - 25;
clip._y = this._y + 10;
}
if (j == 1) {
clip._x = this._x - 25;
clip._y = this._y + 25;
}
if (j == 2) {
clip._x = this._x - 25;
clip._y = this._y + 40;
}
} else if (r == 5) {
if (j == 0) {
clip._x = this._x + 55;
clip._y = this._y + 5;
}
if (j == 1) {
clip._x = this._x + 70;
clip._y = this._y - 5;
}
if (j == 2) {
clip._x = this._x + 85;
clip._y = this._y - 10;
}
}
clip.angle = angle;
clip.vitesse = 15;
j++;
}
}
}
};
Frame 17
Bonus = function () {
super();
this._x = 580;
this._y = random(300) + 50;
this.vitesse = 5;
this.trajectoire = "sinus";
this.angle = Math.PI;
this.savey = this._y;
};
Bonus.prototype = new Sprite();
Bonus.prototype.onEnterFrame = function () {
super.onEnterFrame();
if (this.hitTest(this._parent.vesso)) {
this.bonifie();
this.removeMovieClip();
}
};
BonusBouclier = function () {
super();
};
BonusBouclier.prototype = new Bonus();
Object.registerClass("BonusBouclierClip", BonusBouclier);
BonusBouclier.prototype.bonifie = function () {
this._parent.vesso.power = 100;
};
BonusBombe = function () {
super();
};
BonusBombe.prototype = new Bonus();
Object.registerClass("BonusBombeClip", BonusBombe);
BonusBombe.prototype.bonifie = function () {
this._parent.vesso.nbrBombe = this._parent.vesso.nbrBombe + 5;
};
BonusVie = function () {
super();
};
BonusVie.prototype = new Bonus();
Object.registerClass("BonusVieClip", BonusVie);
BonusVie.prototype.bonifie = function () {
this._parent.vesso.vie = 1000;
};
Frame 18
ScrollBar = function () {
this._x = 0;
this._y = 0;
this.largeur = 100;
this.hauteur = 20;
this.donneeMax = 100;
};
ScrollBar.prototype = new MovieClip();
ScrollBar.prototype.onEnterFrame = function () {
if (this.donnee > -1) {
this.afficheBar();
}
};
ScrollBar.prototype.traceBar = function () {
this.beginFill(this.colorBar, 80);
this.moveTo(0, 0);
this.lineTo((this.donnee * this.largeur) / this.donneeMax, 0);
this.lineTo((this.donnee * this.largeur) / this.donneeMax, this.hauteur);
this.lineTo(0, this.hauteur);
this.lineTo(0, 0);
this.endFill();
};
ScrollBar.prototype.traceContour = function () {
this.lineStyle(1, this.colorline, 50);
this.moveTo(0, 0);
this.lineTo(this.largeur, 0);
this.lineTo(this.largeur, this.hauteur);
this.lineTo(0, this.hauteur);
this.lineTo(0, 0);
};
ScrollBar.prototype.afficheBar = function () {
this.clear();
this.traceBar();
this.traceContour();
};
ScrollBar.prototype.init = function (x, y, larg, haut, col, colLine) {
this._x = x;
this._y = y;
this.largeur = larg;
this.hauteur = haut;
this.colorBar = col;
this.colorline = colLine;
};
PowerScrollBar = function () {
super();
};
PowerScrollBar.prototype = new ScrollBar();
Object.registerClass("PowerBarClip", PowerScrollBar);
PowerScrollBar.prototype.onEnterFrame = function () {
super.onEnterFrame();
this.donnee = this._parent.vesso.power;
};
LifeScrollBar = function () {
super();
this.donneeMax = 1000;
};
LifeScrollBar.prototype = new ScrollBar();
Object.registerClass("LifeBarClip", LifeScrollBar);
LifeScrollBar.prototype.onEnterFrame = function () {
super.onEnterFrame();
this.donnee = this._parent.vesso.vie;
};
LifeBossScrollBar = function () {
super();
this.donneeMax = 5000;
};
LifeBossScrollBar.prototype = new ScrollBar();
Object.registerClass("LifeBossBarClip", LifeBossScrollBar);
LifeBossScrollBar.prototype.onEnterFrame = function () {
super.onEnterFrame();
this.donnee = this._parent.vie;
};
ScrollBar.prototype.traceContour = function () {
this.lineStyle(2, this.colorline, 50);
var i = 0;
while (i <= this.largeur) {
this.moveTo(i, 0);
this.lineTo(i, this.hauteur);
i = i + (this.largeur / 10);
}
this.moveTo(0, 0);
this.lineTo(this.largeur, 0);
this.moveTo(this.largeur, this.hauteur);
this.lineTo(0, this.hauteur);
};
Frame 24
stop();
Frame 29
gotoAndPlay (30);
Frame 30
Frame 31
_global.level = 1;
_global.fotemps = 0;
_global.temps = 0;
this.attachMovie("VagueClip", "vague00", _global.decorsDepth + 1);
this.vague00.vitesse = 40;
this.vague00._yscale = 120;
this.vague00._x = 0;
this.vague00._y = 340;
this.attachMovie("VagueClip", "vague01", _global.decorsDepth + 2);
this.vague01.vitesse = 40;
this.vague01._yscale = 120;
this.vague01._x = 600;
this.vague01._y = 340;
this.attachMovie("VagueClip", "vague10", _global.decorsDepth + 3);
this.vague10.vitesse = 30;
this.vague10._yscale = 80;
this.vague10._x = 0;
this.vague10._y = 240;
this.vague10._alpha = 40;
this.attachMovie("VagueClip", "vague11", _global.decorsDepth + 4);
this.vague11.vitesse = 30;
this.vague11._yscale = 80;
this.vague11._x = 600;
this.vague11._y = 240;
this.vague11._alpha = 40;
this.attachMovie("EauBasClip", "eauBas", _global.EauBasDepth);
this.eauBas._y = 320;
this.attachMovie("VaisseauClip", "vesso", _global.vaisseauDepth);
this.attachMovie("LifeBarClip", "lifeBar", _global.lifeBarDepth);
this.lifeBar.init(5, 70, 60, 10, "0xD81400", "0xFFFFFF");
this.attachMovie("PowerBarClip", "powerBar", _global.powerBarDepth);
this.powerBar.init(140, 35, 60, 10, "0x0000FF", "0xFFFFFF");
this.createEmptyMovieClip("tirEnnemiClip", _global.tirEnnemiDepth);
this.createEmptyMovieClip("tirVaisseauClip", _global.tirVaisseauDepth);
this.nivo = new Object();
Frame 32
this.nivo.m11++;
this.nivo.m12++;
this.nivo.m13++;
this.nivo.m14++;
this.nivo.m15++;
this.nivo.m16++;
this.nivo.m17++;
this.nivo.m18++;
this.nivo.m19++;
this.nivo.m20++;
this.nivo.m21++;
this.nivo.boss01++;
_global.fotemps = 720;
Frame 37
if ((_global.temps > 0) && (!this.nivo.texteIntro)) {
this.nivo.texteIntro++;
this.saveTime = 10000;
this.salvenum = 0;
this.afficheTexte(0, 180, "Level 1");
}
if ((_global.temps > 31) && (!this.nivo.m00)) {
this.nivo.m00++;
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 = Math.PI;
x = x - (80 * Math.cos(clip.angle));
y = y - (80 * Math.sin(clip.angle));
i++;
}
this.salvenum = this.salvenum + 4;
}
if ((_global.temps > 34) && (!this.nivo.m01)) {
this.nivo.m01++;
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 = Math.PI;
clip.savey = 100;
x = x + 80;
i++;
}
this.salvenum = this.salvenum + 3;
}
if ((_global.temps > 34) && (!this.nivo.m02)) {
this.nivo.m02++;
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 = Math.PI;
clip.savey = 300;
x = x + 80;
i++;
}
this.salvenum = this.salvenum + 3;
}
if ((_global.temps > 36) && (!this.nivo.m03)) {
this.nivo.m03++;
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 = Math.PI;
clip.savey = 200;
x = x + 80;
i++;
}
this.salvenum = this.salvenum + 10;
}
if ((_global.temps > 40) && (!this.nivo.m04)) {
this.nivo.m04++;
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.53429173528852;
x = x - (80 * Math.cos(clip.angle));
y = y - (80 * Math.sin(clip.angle));
i++;
}
this.salvenum = this.salvenum + 5;
}
if ((_global.temps > 43) && (!this.nivo.m05)) {
this.nivo.m05++;
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.74889357189107;
x = x - (80 * Math.cos(clip.angle));
y = y - (80 * Math.sin(clip.angle));
i++;
}
this.salvenum = this.salvenum + 5;
}
if ((_global.temps > 47) && (!this.nivo.m06)) {
this.nivo.m06++;
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 = Math.PI;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 47) && (!this.nivo.m07)) {
this.nivo.m07++;
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 = angle + Math.PI;
i++;
}
this.salvenum = this.salvenum + 2;
}
if ((_global.temps > 47) && (!this.nivo.m08)) {
this.nivo.m08++;
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 = angle + Math.PI;
i++;
}
this.salvenum = this.salvenum + 2;
}
if ((_global.temps > 51) && (!this.nivo.m09)) {
this.nivo.m09++;
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 = Math.PI;
clip.savey = 200;
clip.largeur = 200;
clip.hauteur = 100;
x = x + 80;
i++;
}
this.salvenum = this.salvenum + 5;
}
if ((_global.temps > 54) && (!this.nivo.m10)) {
this.nivo.m10++;
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 = Math.PI;
clip.savey = 200;
clip.largeur = 200;
clip.hauteur = -100;
x = x + 80;
i++;
}
this.salvenum = this.salvenum + 5;
}
if ((_global.temps > 57) && (!this.nivo.m11)) {
this.nivo.m11++;
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 = Math.PI;
clip.savey = 100;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 27) && (!this.nivo.m12)) {
this.nivo.m12++;
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 = Math.PI;
clip.savey = 300;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 27) && (!this.nivo.m13)) {
this.nivo.m13++;
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 = Math.PI;
clip.savey = 200;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 32) && (!this.nivo.m14)) {
afficheTexte(0, 320, "Mini Boss : Crazy Wheel");
this.nivo.m14++;
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 = Math.PI;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 42) && (!this.nivo.m15)) {
this.nivo.m15++;
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 = angle + 1.0471975511966;
i++;
}
this.salvenum = this.salvenum + 6;
}
if ((_global.temps > 45) && (!this.nivo.m16)) {
this.nivo.m16++;
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 = Math.PI;
clip.savey = 200;
clip.largeur = 200;
clip.hauteur = 100;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 46) && (!this.nivo.m17)) {
this.nivo.m17++;
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 = Math.PI;
clip.savey = 200;
clip.largeur = 200;
clip.hauteur = -100;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 47) && (!this.nivo.m18)) {
this.nivo.m18++;
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 = Math.PI;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 52) && (!this.nivo.m19)) {
this.nivo.m19++;
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 = Math.PI;
x = x - (80 * Math.cos(clip.angle));
y = y - (80 * Math.sin(clip.angle));
i++;
}
this.salvenum = this.salvenum + 4;
}
if ((_global.temps > 52) && (!this.nivo.m20)) {
this.nivo.m20++;
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 = Math.PI;
x = x - (80 * Math.cos(clip.angle));
y = y - (80 * Math.sin(clip.angle));
i++;
}
this.salvenum = this.salvenum + 4;
}
if ((_global.temps > 53) && (!this.nivo.m21)) {
this.nivo.m21++;
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 = Math.PI;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 20) && (!this.nivo.bonusBombe01)) {
this.nivo.bonusBombe01++;
this.attachMovie("BonusBombeClip", "superbonus", _global.bonusDepth);
}
if ((_global.temps > 40) && (!this.nivo.bonusBouclier01)) {
this.nivo.bonusBouclier01++;
this.attachMovie("BonusBouclierClip", "superbonus1", _global.bonusDepth + 1);
}
if ((_global.temps > 40) && (!this.nivo.bonusVie01)) {
this.nivo.bonusVie01++;
this.attachMovie("BonusVieClip", "superbonus2", _global.bonusDepth + 2);
}
if ((_global.temps > 60) && (!this.nivo.bonusBouclier02)) {
this.nivo.bonusBouclier02++;
this.attachMovie("BonusBouclierClip", "superbonus", _global.bonusDepth);
}
if (_global.temps > 60) {
if (!this.nivo.boss01) {
afficheTexte(0, 320, "Boss : Dead Cruiser");
this.nivo.boss01++;
this.attachMovie("Boss1ClipHaut", "boss", _global.bossDepth);
} else if ((!this.boss) && (!this.nivo.finNivo)) {
this.nivo.finNivo++;
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");
}
}
Frame 38
_global.fotemps++;
_global.temps = Math.round(_global.fotemps / 24);
if (_global.temps < 60) {
_global.distance = 60000 - Math.round((_global.fotemps / 24) * 1000);
} else {
_global.distance = 0;
}
distance = _global.distance;
temps = _global.temps;
_global.tabTirVaisseau = new Array();
var i = 0;
while (i < _global.maxTirVaisseau) {
if (this.tirVaisseauClip["tirVaisseau" + i]) {
_global.tabTirVaisseau.push(i);
}
i++;
}
_global.tabTirEnnemi = new Array();
var i = 0;
while (i < _global.maxTirEnnemi) {
if (this.tirEnnemiClip["tirEnnemi" + i]) {
_global.tabTirEnnemi.push(i);
}
i++;
}
this.effaceTexte();
this.gotoAndPlay(this._currentframe - 1);
Frame 46
_global.level = 2;
_global.fotemps = 0;
_global.temps = 0;
this.attachMovie("VaisseauClip", "vesso", _global.vaisseauDepth);
this.attachMovie("LifeBarClip", "lifeBar", _global.lifeBarDepth);
this.lifeBar.init(5, 70, 60, 10, "0xD81400", "0xFFFFFF");
this.attachMovie("PowerBarClip", "powerBar", _global.powerBarDepth);
this.powerBar.init(140, 35, 60, 10, "0x0000FF", "0xFFFFFF");
this.createEmptyMovieClip("tirEnnemiClip", _global.tirEnnemiDepth);
this.createEmptyMovieClip("tirVaisseauClip", _global.tirVaisseauDepth);
this.nivo = new Object();
Frame 47
this.nivo.m00++;
this.nivo.m01++;
this.nivo.m02++;
this.nivo.m03++;
this.nivo.m04++;
this.nivo.m07++;
this.nivo.m08++;
this.nivo.m09++;
this.nivo.m10++;
this.nivo.m11++;
this.nivo.m14++;
_global.fotemps = 720;
Frame 53
if ((_global.temps > 0) && (!this.nivo.texteIntro)) {
this.nivo.texteIntro++;
this.saveTime = 10000;
this.salvenum = 0;
this.afficheTexte(0, 180, "Level 2");
}
if ((_global.temps > 1) && (!this.nivo.m00)) {
this.nivo.m00++;
var x = 580;
var y = 200;
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 = Math.PI;
x = x - (80 * Math.cos(clip.angle));
y = y - (80 * Math.sin(clip.angle));
i++;
}
this.salvenum = this.salvenum + 4;
}
if ((_global.temps > 4) && (!this.nivo.m01)) {
this.nivo.m01++;
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 = Math.PI;
clip.savey = 100;
x = x + 80;
i++;
}
this.salvenum = this.salvenum + 3;
}
if ((_global.temps > 4) && (!this.nivo.m02)) {
this.nivo.m02++;
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 = Math.PI;
clip.savey = 300;
x = x + 80;
i++;
}
this.salvenum = this.salvenum + 3;
}
if ((_global.temps > 6) && (!this.nivo.m03)) {
this.nivo.m03++;
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 = Math.PI;
clip.savey = 200;
x = x + 80;
i++;
}
this.salvenum = this.salvenum + 10;
}
if ((_global.temps > 10) && (!this.nivo.m04)) {
this.nivo.m04++;
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.53429173528852;
x = x - (80 * Math.cos(clip.angle));
y = y - (80 * Math.sin(clip.angle));
i++;
}
this.salvenum = this.salvenum + 5;
}
if ((_global.temps > 35) && (!this.nivo.m05)) {
this.nivo.m05++;
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.74889357189107;
x = x - (80 * Math.cos(clip.angle));
y = y - (80 * Math.sin(clip.angle));
i++;
}
this.salvenum = this.salvenum + 5;
}
if ((_global.temps > 17) && (!this.nivo.m06)) {
this.nivo.m06++;
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 = Math.PI;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 17) && (!this.nivo.m07)) {
this.nivo.m07++;
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 = angle + Math.PI;
i++;
}
this.salvenum = this.salvenum + 2;
}
if ((_global.temps > 17) && (!this.nivo.m08)) {
this.nivo.m08++;
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 = angle + Math.PI;
i++;
}
this.salvenum = this.salvenum + 2;
}
if ((_global.temps > 21) && (!this.nivo.m09)) {
this.nivo.m09++;
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 = Math.PI;
clip.savey = 200;
clip.largeur = 200;
clip.hauteur = 100;
x = x + 80;
i++;
}
this.salvenum = this.salvenum + 5;
}
if ((_global.temps > 24) && (!this.nivo.m10)) {
this.nivo.m10++;
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 = Math.PI;
clip.savey = 200;
clip.largeur = 200;
clip.hauteur = -100;
x = x + 80;
i++;
}
this.salvenum = this.salvenum + 5;
}
if ((_global.temps > 27) && (!this.nivo.m11)) {
this.nivo.m11++;
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 = Math.PI;
clip.savey = 100;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 31) && (!this.nivo.m12)) {
this.nivo.m12++;
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 = Math.PI;
clip.savey = 300;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 33) && (!this.nivo.m13)) {
this.nivo.m13++;
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 = Math.PI;
clip.savey = 200;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 32) && (!this.nivo.m14)) {
afficheTexte(0, 320, "Mini Boss : Crazy Wheel");
this.nivo.m14++;
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 = Math.PI;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 42) && (!this.nivo.m15)) {
this.nivo.m15++;
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 = angle + 1.0471975511966;
i++;
}
this.salvenum = this.salvenum + 6;
}
if ((_global.temps > 45) && (!this.nivo.m16)) {
this.nivo.m16++;
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 = Math.PI;
clip.savey = 200;
clip.largeur = 200;
clip.hauteur = 100;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 46) && (!this.nivo.m17)) {
this.nivo.m17++;
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 = Math.PI;
clip.savey = 200;
clip.largeur = 200;
clip.hauteur = -100;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 47) && (!this.nivo.m18)) {
this.nivo.m18++;
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 = Math.PI;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 52) && (!this.nivo.m19)) {
this.nivo.m19++;
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 = Math.PI;
x = x - (80 * Math.cos(clip.angle));
y = y - (80 * Math.sin(clip.angle));
i++;
}
this.salvenum = this.salvenum + 4;
}
if ((_global.temps > 52) && (!this.nivo.m20)) {
this.nivo.m20++;
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 = Math.PI;
x = x - (80 * Math.cos(clip.angle));
y = y - (80 * Math.sin(clip.angle));
i++;
}
this.salvenum = this.salvenum + 4;
}
if ((_global.temps > 53) && (!this.nivo.m21)) {
this.nivo.m21++;
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 = Math.PI;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 20) && (!this.nivo.bonusBombe01)) {
this.nivo.bonusBombe01++;
this.attachMovie("BonusBombeClip", "superbonus", _global.bonusDepth);
}
if ((_global.temps > 40) && (!this.nivo.bonusBouclier01)) {
this.nivo.bonusBouclier01++;
this.attachMovie("BonusBouclierClip", "superbonus1", _global.bonusDepth + 1);
}
if ((_global.temps > 40) && (!this.nivo.bonusVie01)) {
this.nivo.bonusVie01++;
this.attachMovie("BonusVieClip", "superbonus2", _global.bonusDepth + 2);
}
if ((_global.temps > 60) && (!this.nivo.bonusBouclier02)) {
this.nivo.bonusBouclier02++;
this.attachMovie("BonusBouclierClip", "superbonus", _global.bonusDepth);
}
if (_global.temps > 60) {
if (!this.nivo.boss01) {
afficheTexte(0, 320, "Mini Boss : Crazy Wheel");
this.nivo.boss01++;
this.attachMovie("Monstre4Clip", "boss", _global.bossDepth);
this.boss._x = 580;
this.boss._y = 200;
this.boss.vitesse = 2;
this.boss.trajectoire = "droite";
this.boss.angle = Math.PI;
} else if ((!this.boss) && (!this.nivo.finNivo)) {
this.nivo.finNivo++;
afficheTexte(0, 180, "Level 2 Completed");
this.saveTime = _global.temps;
} else if (_global.temps > (this.saveTime + 3)) {
this.tirEnnemiClip.removeMovieClip();
this.tirVaisseauClip.removeMovieClip();
this.vesso.removeMovieClip();
this.lifeBar.removeMovieClip();
this.powerBar.removeMovieClip();
this.eauBas.removeMovieClip();
delete this.nivo;
this.gotoAndPlay("FL2");
}
}
Frame 54
_global.fotemps++;
_global.temps = Math.round(_global.fotemps / 24);
if (_global.temps < 60) {
_global.distance = 60000 - Math.round((_global.fotemps / 24) * 1000);
} else {
_global.distance = 0;
}
distance = _global.distance;
temps = _global.temps;
_global.tabTirVaisseau = new Array();
var i = 0;
while (i < _global.maxTirVaisseau) {
if (this.tirVaisseauClip["tirVaisseau" + i]) {
_global.tabTirVaisseau.push(i);
}
i++;
}
_global.tabTirEnnemi = new Array();
var i = 0;
while (i < _global.maxTirEnnemi) {
if (this.tirEnnemiClip["tirEnnemi" + i]) {
_global.tabTirEnnemi.push(i);
}
i++;
}
this.effaceTexte();
this.gotoAndPlay(this._currentframe - 1);
Frame 62
_global.level = 3;
_global.fotemps = 0;
_global.temps = 0;
this.attachMovie("VaisseauClip", "vesso", _global.vaisseauDepth);
this.attachMovie("LifeBarClip", "lifeBar", _global.lifeBarDepth);
this.lifeBar.init(5, 70, 60, 10, "0xD81400", "0xFFFFFF");
this.attachMovie("PowerBarClip", "powerBar", _global.powerBarDepth);
this.powerBar.init(140, 35, 60, 10, "0x0000FF", "0xFFFFFF");
this.createEmptyMovieClip("tirEnnemiClip", _global.tirEnnemiDepth);
this.createEmptyMovieClip("tirVaisseauClip", _global.tirVaisseauDepth);
this.nivo = new Object();
Frame 63
Frame 69
if ((_global.temps > 0) && (!this.nivo.texteIntro)) {
this.nivo.texteIntro++;
this.saveTime = 10000;
this.salvenum = 0;
this.afficheTexte(0, 180, "Level 3");
}
if ((_global.temps > 1) && (!this.nivo.m00)) {
this.nivo.m00++;
var x = 580;
var y = 200;
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 = Math.PI;
x = x - (80 * Math.cos(clip.angle));
y = y - (80 * Math.sin(clip.angle));
i++;
}
this.salvenum = this.salvenum + 4;
}
if ((_global.temps > 4) && (!this.nivo.m01)) {
this.nivo.m01++;
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 = Math.PI;
clip.savey = 100;
x = x + 80;
i++;
}
this.salvenum = this.salvenum + 3;
}
if ((_global.temps > 4) && (!this.nivo.m02)) {
this.nivo.m02++;
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 = Math.PI;
clip.savey = 300;
x = x + 80;
i++;
}
this.salvenum = this.salvenum + 3;
}
if ((_global.temps > 6) && (!this.nivo.m03)) {
this.nivo.m03++;
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 = Math.PI;
clip.savey = 200;
x = x + 80;
i++;
}
this.salvenum = this.salvenum + 10;
}
if ((_global.temps > 10) && (!this.nivo.m04)) {
this.nivo.m04++;
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.53429173528852;
x = x - (80 * Math.cos(clip.angle));
y = y - (80 * Math.sin(clip.angle));
i++;
}
this.salvenum = this.salvenum + 5;
}
if ((_global.temps > 13) && (!this.nivo.m05)) {
this.nivo.m05++;
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.74889357189107;
x = x - (80 * Math.cos(clip.angle));
y = y - (80 * Math.sin(clip.angle));
i++;
}
this.salvenum = this.salvenum + 5;
}
if ((_global.temps > 17) && (!this.nivo.m06)) {
this.nivo.m06++;
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 = Math.PI;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 17) && (!this.nivo.m07)) {
this.nivo.m07++;
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 = angle + Math.PI;
i++;
}
this.salvenum = this.salvenum + 2;
}
if ((_global.temps > 17) && (!this.nivo.m08)) {
this.nivo.m08++;
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 = angle + Math.PI;
i++;
}
this.salvenum = this.salvenum + 2;
}
if ((_global.temps > 21) && (!this.nivo.m09)) {
this.nivo.m09++;
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 = Math.PI;
clip.savey = 200;
clip.largeur = 200;
clip.hauteur = 100;
x = x + 80;
i++;
}
this.salvenum = this.salvenum + 5;
}
if ((_global.temps > 24) && (!this.nivo.m10)) {
this.nivo.m10++;
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 = Math.PI;
clip.savey = 200;
clip.largeur = 200;
clip.hauteur = -100;
x = x + 80;
i++;
}
this.salvenum = this.salvenum + 5;
}
if ((_global.temps > 27) && (!this.nivo.m11)) {
this.nivo.m11++;
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 = Math.PI;
clip.savey = 100;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 27) && (!this.nivo.m12)) {
this.nivo.m12++;
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 = Math.PI;
clip.savey = 300;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 27) && (!this.nivo.m13)) {
this.nivo.m13++;
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 = Math.PI;
clip.savey = 200;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 32) && (!this.nivo.m14)) {
afficheTexte(0, 320, "Mini Boss : Crazy Wheel");
this.nivo.m14++;
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 = Math.PI;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 42) && (!this.nivo.m15)) {
this.nivo.m15++;
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 = angle + 1.0471975511966;
i++;
}
this.salvenum = this.salvenum + 6;
}
if ((_global.temps > 45) && (!this.nivo.m16)) {
this.nivo.m16++;
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 = Math.PI;
clip.savey = 200;
clip.largeur = 200;
clip.hauteur = 100;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 46) && (!this.nivo.m17)) {
this.nivo.m17++;
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 = Math.PI;
clip.savey = 200;
clip.largeur = 200;
clip.hauteur = -100;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 47) && (!this.nivo.m18)) {
this.nivo.m18++;
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 = Math.PI;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 52) && (!this.nivo.m19)) {
this.nivo.m19++;
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 = Math.PI;
x = x - (80 * Math.cos(clip.angle));
y = y - (80 * Math.sin(clip.angle));
i++;
}
this.salvenum = this.salvenum + 4;
}
if ((_global.temps > 52) && (!this.nivo.m20)) {
this.nivo.m20++;
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 = Math.PI;
x = x - (80 * Math.cos(clip.angle));
y = y - (80 * Math.sin(clip.angle));
i++;
}
this.salvenum = this.salvenum + 4;
}
if ((_global.temps > 53) && (!this.nivo.m21)) {
this.nivo.m21++;
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 = Math.PI;
this.salvenum = this.salvenum + 1;
}
if ((_global.temps > 20) && (!this.nivo.bonusBombe01)) {
this.nivo.bonusBombe01++;
this.attachMovie("BonusBombeClip", "superbonus", _global.bonusDepth);
}
if ((_global.temps > 40) && (!this.nivo.bonusBouclier01)) {
this.nivo.bonusBouclier01++;
this.attachMovie("BonusBouclierClip", "superbonus1", _global.bonusDepth + 1);
}
if ((_global.temps > 40) && (!this.nivo.bonusVie01)) {
this.nivo.bonusVie01++;
this.attachMovie("BonusVieClip", "superbonus2", _global.bonusDepth + 2);
}
if ((_global.temps > 60) && (!this.nivo.bonusBouclier02)) {
this.nivo.bonusBouclier02++;
this.attachMovie("BonusBouclierClip", "superbonus", _global.bonusDepth);
}
if (_global.temps > 60) {
if (!this.nivo.boss01) {
afficheTexte(0, 320, "Boss : Dead Cruiser");
this.nivo.boss01++;
this.attachMovie("Boss1ClipHaut", "boss", _global.bossDepth);
} else if ((!this.boss) && (!this.nivo.finNivo)) {
this.nivo.finNivo++;
afficheTexte(0, 180, "Congratulations");
this.saveTime = _global.temps;
} else if (_global.temps > (this.saveTime + 3)) {
this.tirEnnemiClip.removeMovieClip();
this.tirVaisseauClip.removeMovieClip();
this.vesso.removeMovieClip();
this.lifeBar.removeMovieClip();
this.powerBar.removeMovieClip();
this.traineeFumee.removeMovieClip();
delete this.nivo;
this.gotoAndPlay("FL3");
}
}
Frame 70
_global.fotemps++;
_global.temps = Math.round(_global.fotemps / 24);
if (_global.temps < 60) {
_global.distance = 60000 - Math.round((_global.fotemps / 24) * 1000);
} else {
_global.distance = 0;
}
distance = _global.distance;
temps = _global.temps;
_global.tabTirVaisseau = new Array();
var i = 0;
while (i < _global.maxTirVaisseau) {
if (this.tirVaisseauClip["tirVaisseau" + i]) {
_global.tabTirVaisseau.push(i);
}
i++;
}
_global.tabTirEnnemi = new Array();
var i = 0;
while (i < _global.maxTirEnnemi) {
if (this.tirEnnemiClip["tirEnnemi" + i]) {
_global.tabTirEnnemi.push(i);
}
i++;
}
this.effaceTexte();
this.gotoAndPlay(this._currentframe - 1);
Frame 77
gotoAndPlay (5);
Symbol 31 MovieClip [ExplosionClip] Frame 16
this.removeMovieClip();
Symbol 32 MovieClip [VaisseauClip] Frame 1
stop();
Symbol 32 MovieClip [VaisseauClip] Frame 5
stop();
Symbol 32 MovieClip [VaisseauClip] Frame 9
gotoAndStop (1);
Symbol 32 MovieClip [VaisseauClip] Frame 13
stop();
Symbol 32 MovieClip [VaisseauClip] Frame 17
gotoAndStop (1);
Symbol 32 MovieClip [VaisseauClip] Frame 34
this._parent.afficheTexte(0, 180, "Game Over");
this.removeMovieClip();
Symbol 45 MovieClip [TirdebaseRClip] Frame 2
stop();
Symbol 45 MovieClip [TirdebaseRClip] Frame 18
this.removeMovieClip();
Symbol 49 MovieClip [EclaboussureClip] Frame 15
this.removeMovieClip();
Symbol 51 MovieClip [BombeClip] Frame 1
stop();
Symbol 51 MovieClip [BombeClip] Frame 17
this.removeMovieClip();
Symbol 54 MovieClip [TirdebaseBClip] Frame 2
stop();
Symbol 54 MovieClip [TirdebaseBClip] Frame 18
this.removeMovieClip();
Symbol 56 MovieClip [TirCourbeClip] Frame 1
stop();
Symbol 56 MovieClip [TirCourbeClip] Frame 17
this.removeMovieClip();
Symbol 62 MovieClip [Monstre4Clip] Frame 1
stop();
Symbol 62 MovieClip [Monstre4Clip] Frame 17
this.removeMovieClip();
Symbol 67 MovieClip [Monstre3Clip] Frame 1
stop();
Symbol 67 MovieClip [Monstre3Clip] Frame 17
this.removeMovieClip();
Symbol 72 MovieClip [Monstre2Clip] Frame 1
stop();
Symbol 72 MovieClip [Monstre2Clip] Frame 17
this.removeMovieClip();
Symbol 74 MovieClip [Monstre1Clip] Frame 1
stop();
Symbol 74 MovieClip [Monstre1Clip] Frame 17
this.removeMovieClip();
Symbol 78 MovieClip [TirDirigeClip] Frame 2
stop();
Symbol 78 MovieClip [TirDirigeClip] Frame 18
this.removeMovieClip();
Symbol 111 Button [Reset]
on (release) {
_global.fotemps = 0;
_global.distance = 0;
gotoAndPlay (62);
_root.killer();
_root.score = 0;
}
Symbol 112 Button [Reset]
on (release) {
_global.fotemps = 0;
_global.distance = 0;
gotoAndPlay (46);
_root.killer();
_root.score = 0;
}
Symbol 113 Button [Reset]
on (release) {
_global.fotemps = 0;
_global.distance = 0;
gotoAndPlay (30);
_root.killer();
_root.score = 0;
}
Symbol 144 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 2
stop();
Symbol 179 Button
on (release) {
gotoAndPlay (2);
touche.gotoAndStop(2);
}
Symbol 183 Button
on (release) {
gotoAndPlay (2);
touche.gotoAndStop(1);
}
Symbol 184 Button
on (release) {
if (touche._currentframe == 2) {
gotoAndPlay (11);
} else {
touche.gotoAndStop(2);
}
}
Symbol 185 Button
on (release) {
if (touche._currentframe == 1) {
gotoAndPlay (11);
} else {
touche.gotoAndStop(1);
}
}
Symbol 186 MovieClip Frame 1
this.touche.vesso.removeMovieClip();
this.onEnterFrame = function () {
};
stop();
Symbol 186 MovieClip Frame 10
this.onEnterFrame = function () {
if (touche._currentframe == 1) {
if (!this.touche.vesso) {
this.touche.createEmptyMovieClip("tirEnnemiClip", _global.tirEnnemiDepth);
this.touche.createEmptyMovieClip("tirVaisseauClip", _global.tirVaisseauDepth);
this.touche.attachMovie("VaisseauClip", "vesso", _global.vaisseauDepth);
this.touche.vesso._x = 50;
this.touche.vesso._y = 50;
}
if (this.touche.vesso._x > 210) {
this.touche.vesso._x = 210;
}
if (this.touche.vesso._y > 150) {
this.touche.vesso._y = 150;
}
}
if (touche._currentframe == 2) {
if (this.touche.vesso) {
this.touche.vesso.removeMovieClip();
}
}
};
stop();
stop();
Symbol 186 MovieClip Frame 11
this.touche.vesso.removeMovieClip();
this.onEnterFrame = function () {
};
Symbol 186 MovieClip Frame 20
stop();
Symbol 189 Button
on (release) {
stopAllSounds();
play();
}
Symbol 211 MovieClip Frame 7
stop();