home *** CD-ROM | disk | FTP | other *** search
- 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 += 20;
- j++;
- }
- }
- };
-