Frame 1
Stage.showMenu = false;
Frame 64
gotoAndPlay (65);
Instance of Symbol 110 MovieClip in Frame 65
onClipEvent (load) {
Selection.setFocus("_level0.bn2");
}
onClipEvent (enterFrame) {
if (getTimer() > nextMove) {
nextMove = getTimer() + 300;
if (Key.isDown(9)) {
trace("nextMove:" + nextMove);
if (Selection.getFocus() == "_level0.bn1") {
Selection.setFocus("_level0.bn2");
} else if (Selection.getFocus() == "_level0.bn2") {
Selection.setFocus("_level0.bn3");
} else if (Selection.getFocus() == "_level0.bn3") {
Selection.setFocus("_level0.bn4");
} else {
Selection.setFocus("_level0.bn1");
}
}
if (Key.isDown(13)) {
if (Selection.getFocus() == "_level0.bn1") {
gotoAndStop (116);
} else if (Selection.getFocus() == "_level0.bn2") {
gotoAndPlay (67);
} else if (Selection.getFocus() == "_level0.bn3") {
gotoAndPlay (100);
} else if (Selection.getFocus() == "_level0.bn4") {
gotoAndPlay (106);
}
}
}
}
Frame 66
stop();
tellTarget ("_root.type0.piedbonhomme") {
stop();
};
tellTarget ("_root.bombintro") {
stop();
};
Frame 67
niveau = 0;
score = 0;
maintenant = new Date();
startTime = maintenant.getTime();
time = 0;
monstres = new Array();
pause = false;
mode2 = false;
arcade = false;
perdu = false;
if (joueurs == undefined) {
joueurs = new Array();
}
if (_root.joueur1 != undefined) {
_root.joueur1.vies = 3;
}
if (_root.j2 != undefined) {
delete _root.j2;
}
xoffset = 40;
yoffset = 40;
i = 1;
tableau = new Array(13);
i = 0;
while (i < 13) {
tableau[i] = new Array(13);
i++;
}
gotoAndPlay (80);
Instance of Symbol 112 MovieClip "bombe" in Frame 67
onClipEvent (load) {
if (String(_name) == "bombe") {
this.gotoAndStop("End");
} else {
_root.bombes.push(_name);
exploseTime = getTimer() + 999999;
}
}
onClipEvent (enterFrame) {
if (String(_name) != "bombe") {
if (this._explose && (!this._remove)) {
this.gotoAndPlay("Boom");
}
if (this._remove && (getTimer() > exploseTime)) {
this.removeMovieClip();
}
if (_malus) {
stop();
bombe.stop();
exploseTime = getTimer() + ((random(10) + 1) * 1000);
_malus = false;
}
if (getTimer() > exploseTime) {
this._explose = true;
}
}
}
onClipEvent (unload) {
cpt = 0;
while (cpt < _root.bombes.length) {
if (_root.bombes[cpt] == _name) {
_root.bombes.splice(cpt, 1);
}
cpt++;
}
}
Instance of Symbol 6 MovieClip "joueur" in Frame 67
onClipEvent (load) {
force = 1;
bombes = 1;
vies = 3;
_force_init = 1;
_bombes_init = 1;
_vitesse = 50;
malusExplose = false;
malusTaille = false;
malusTouche = false;
malusBombes = false;
telecommande = false;
myBombs = new Array();
}
onClipEvent (enterFrame) {
if ((String(_name) != "joueur") && (getTimer() > nextMove)) {
if (_dead) {
_alpha = 0;
nextMove = getTimer() + 5000;
_dead = false;
_force_init = 1;
_bombes_init = 1;
_root.j2._alpha = 0;
if (!_root.mode2) {
_root.perdu = true;
}
if (vies > 0) {
_root.gotoAndPlay("nouveauNiveau");
} else {
_root.gotoAndPlay("perdu");
}
}
if (Key.isDown(40) && (!_root.pause)) {
nextMove = getTimer() + this._vitesse;
this.bas();
}
if (Key.isDown(38) && (!_root.pause)) {
nextMove = getTimer() + this._vitesse;
this.haut();
}
if (Key.isDown(37) && (!_root.pause)) {
nextMove = getTimer() + this._vitesse;
this.gauche();
}
if (Key.isDown(39) && (!_root.pause)) {
nextMove = getTimer() + this._vitesse;
this.droite();
}
if (Key.isDown(80)) {
nextMove = getTimer() + 200;
_root.pause = !_root.pause;
cpt = 0;
while (cpt < _root.bombes.length) {
if (_root.pause) {
eval (("_root." + _root.bombes[cpt]) + ".bombe").stop();
eval ("_root." + _root.bombes[cpt]).stop();
} else {
eval (("_root." + _root.bombes[cpt]) + ".bombe").play();
eval ("_root." + _root.bombes[cpt]).play();
}
cpt++;
}
}
if ((Key.isDown(13) && (myBombs.length > 0)) && (!_root.pause)) {
eval ("_root." + myBombs.shift()).explose();
nextMove = getTimer() + 200;
}
if (Key.isDown(16) && (!_root.pause)) {
varx = pos_x();
vary = pos_y();
if ((bombes_actives < this.bombes) && (" BT".indexOf(_root.tableau[varx][vary].charAt(0)) <= 0)) {
bombe_panel = (bombe_panel % 10) + 1;
bombes_actives++;
bombe_level = 5000 + bombe_panel;
duplicateMovieClip (_root.bombe, "B" + bombe_level, bombe_level);
setProperty(eval ("_root.B" + bombe_level), _x , (varx * 40) + _root.xoffset);
setProperty(eval ("_root.B" + bombe_level), _y , (vary * 40) + _root.yoffset);
if (telecommande) {
eval ("_root.B" + bombe_level).stop();
eval ("_root.B" + bombe_level).bombe.stop();
myBombs.push("B" + bombe_level);
}
if (malusExplose) {
eval ("_root.B" + bombe_level)._malus = true;
}
eval ("_root.B" + bombe_level).parent = String(_name);
eval ("_root.B" + bombe_level).car = _root.tableau[varx][vary];
_root.tableau[varx][vary] = "B" + bombe_level;
}
}
if (getTimer() > invinsible) {
i = 0;
while (i < _root.monstres.length) {
if (this.joueur.contour.hittest(eval ("_root." + _root.monstres[i]))) {
invinsible = getTimer() + 2000;
if (eval ("_root." + _root.monstres[i]).type == "4") {
this.malus();
} else {
this.explose();
}
}
i++;
}
}
}
}
Instance of Symbol 197 MovieClip "monstre2" in Frame 67
onClipEvent (load) {
if (String(_name) != "monstre2") {
_root.monstres.push(_name);
nextMove = getTimer() + (random(5) * 100);
}
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (String(_name) != "monstre2")) {
if (getTimer() > nextMove) {
if (this.monstre._dead) {
_root.score = _root.score + this.points;
eval (_root.interface).refresh();
this.removeMovieClip();
} else {
this.deplace();
nextMove = getTimer() + _vitesse;
}
}
}
}
onClipEvent (unload) {
cpt = 0;
while (cpt < _root.monstres.length) {
if (_root.monstres[cpt] == _name) {
_root.monstres.splice(cpt, 1);
}
cpt++;
}
}
Instance of Symbol 221 MovieClip "porte" in Frame 67
onClipEvent (load) {
this.isActivate = false;
}
onClipEvent (enterFrame) {
if ((String(_name) != "porte") && (nextMove < getTimer())) {
if ((_root.monstres.length <= 0) && (!this.isActivate)) {
this.porte.gotoAndStop(2);
this.isActivate = true;
}
if ((_root.monstres.length > 0) && (this.isActivate)) {
this.porte.gotoAndStop(1);
this.isActivate = false;
}
if ((_root.monstres.length <= 0) && (_root.joueur1.hitTest(_x + 20, _y + 20))) {
_root.joueur1._alpha = 0;
_root.gotoAndPlay("nouveauNiveau");
}
nextMove = getTimer() + 150;
}
}
Instance of Symbol 230 MovieClip "trappe" in Frame 67
onClipEvent (load) {
newMonstre = getTimer() + 10000;
i = 1400;
monstre_ok = false;
}
onClipEvent (enterFrame) {
if (String(_name) != "trappe") {
if ((_root.monstres.length <= 5) && (getTimer() > newMonstre)) {
newMonstre = getTimer() + 10000;
this.gotoAndPlay(2);
}
if (monstre_ok) {
monstre_ok = false;
duplicateMovieClip ("_root.monstre" + type, "A" + i, i);
setProperty("_root.A" + i, _x , this._x);
setProperty("_root.A" + i, _y , this._y);
i++;
}
}
}
Instance of Symbol 249 MovieClip "monstre7" in Frame 67
onClipEvent (load) {
if (String(_name) != "monstre7") {
_root.monstres.push(_name);
nextMove = getTimer() + (random(5) * 100);
}
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (String(_name) != "monstre7")) {
if (getTimer() > nextMove) {
if (this.monstre._dead) {
_root.score = _root.score + this.points;
eval (_root.interface).refresh();
this.removeMovieClip();
} else {
this.deplace();
nextMove = getTimer() + _vitesse;
}
}
}
}
onClipEvent (unload) {
cpt = 0;
while (cpt < _root.monstres.length) {
if (_root.monstres[cpt] == _name) {
_root.monstres.splice(cpt, 1);
}
cpt++;
}
}
Instance of Symbol 263 MovieClip "monstre1" in Frame 67
onClipEvent (load) {
if (String(_name) != "monstre1") {
_root.monstres.push(_name);
nextMove = getTimer() + (random(5) * 100);
}
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (String(_name) != "monstre1")) {
if (getTimer() > nextMove) {
if (this.monstre._dead) {
_root.score = _root.score + this.points;
eval (_root.interface).refresh();
this.removeMovieClip();
} else {
this.deplace();
nextMove = getTimer() + _vitesse;
}
}
}
}
onClipEvent (unload) {
cpt = 0;
while (cpt < _root.monstres.length) {
if (_root.monstres[cpt] == _name) {
_root.monstres.splice(cpt, 1);
}
cpt++;
}
}
Instance of Symbol 273 MovieClip "monstre4" in Frame 67
onClipEvent (load) {
if (String(_name) != "monstre4") {
_root.monstres.push(_name);
nextMove = getTimer() + (random(5) * 100);
}
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (String(_name) != "monstre4")) {
if (getTimer() > nextMove) {
if (this.monstre._dead) {
_root.score = _root.score + this.points;
eval (_root.interface).refresh();
this.removeMovieClip();
} else {
this.deplace();
nextMove = getTimer() + _vitesse;
}
}
}
}
onClipEvent (unload) {
cpt = 0;
while (cpt < _root.monstres.length) {
if (_root.monstres[cpt] == _name) {
_root.monstres.splice(cpt, 1);
}
cpt++;
}
}
Instance of Symbol 301 MovieClip "monstre8" in Frame 67
onClipEvent (load) {
if (String(_name) != "monstre8") {
_root.monstres.push(_name);
poseBombe = (getTimer() + (Math.random() * 10000)) + 1000;
force = 2;
nextMove = getTimer() + (random(5) * 100);
}
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (String(_name) != "monstre8")) {
if (getTimer() > nextMove) {
if (this.monstre._dead) {
_root.score = _root.score + this.points;
eval (_root.interface).refresh();
this.removeMovieClip();
} else {
this.deplace();
nextMove = getTimer() + _vitesse;
if (getTimer() > poseBombe) {
varx = position().x;
vary = position().y;
poseBombe = (getTimer() + (Math.random() * 10000)) + 1000;
bombe_panel = (bombe_panel % 10) + 1;
depth = 1100 + bombe_panel;
duplicateMovieClip (_root.bombe, "B" + depth, depth);
setProperty(eval ("_root.B" + depth), _x , (varx * 40) + _root.xoffset);
setProperty(eval ("_root.B" + depth), _y , (vary * 40) + _root.yoffset);
eval ("_root.B" + depth).parent = String(_name);
eval ("_root.B" + depth).car = _root.tableau[varx][vary];
_root.tableau[varx][vary] = "B" + depth;
}
}
}
}
}
onClipEvent (unload) {
cpt = 0;
while (cpt < _root.monstres.length) {
if (_root.monstres[cpt] == _name) {
_root.monstres.splice(cpt, 1);
}
cpt++;
}
}
Instance of Symbol 318 MovieClip "monstre5" in Frame 67
onClipEvent (load) {
if (String(_name) != "monstre5") {
_root.monstres.push(_name);
nextMove = getTimer() + (random(5) * 100);
}
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (String(_name) != "monstre5")) {
if (getTimer() > nextMove) {
if (this.monstre._dead) {
_root.score = _root.score + this.points;
eval (_root.interface).refresh();
this.removeMovieClip();
} else {
this.deplace();
nextMove = getTimer() + _vitesse;
}
}
}
}
onClipEvent (unload) {
cpt = 0;
while (cpt < _root.monstres.length) {
if (_root.monstres[cpt] == _name) {
_root.monstres.splice(cpt, 1);
}
cpt++;
}
}
Instance of Symbol 334 MovieClip "monstre9" in Frame 67
onClipEvent (load) {
if (String(_name) != "monstre9") {
_root.monstres.push(_name);
nextMove = getTimer() + (random(5) * 100);
}
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (String(_name) != "monstre9")) {
if (getTimer() > nextMove) {
if (this.monstre._dead) {
_root.score = _root.score + this.points;
eval (_root.interface).refresh();
if (_xscale > 50) {
cpt = 0;
while (cpt < 3) {
duplicateMovieClip (_root.monstre9, "A" + _root.i, _root.i);
setProperty("_root.A" + _root.i, _x , (Math.floor(this._x / 40) * 40) + 10);
setProperty("_root.A" + _root.i, _y , (Math.floor(this._y / 40) * 40) + 10);
setProperty(eval ("_root.A" + _root.i), _xscale , 50);
setProperty(eval ("_root.A" + _root.i), _yscale , 50);
_root.objets.push("A" + _root.i);
_root.i++;
cpt++;
}
}
this.removeMovieClip();
} else {
this.deplace();
nextMove = getTimer() + _vitesse;
}
}
}
}
onClipEvent (unload) {
cpt = 0;
while (cpt < _root.monstres.length) {
if (_root.monstres[cpt] == _name) {
_root.monstres.splice(cpt, 1);
}
cpt++;
}
}
Instance of Symbol 365 MovieClip "monstre6" in Frame 67
onClipEvent (load) {
if (String(_name) != "monstre6") {
_root.monstres.push(_name);
nextMove = getTimer() + (random(5) * 100);
}
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (String(_name) != "monstre6")) {
if (getTimer() > nextMove) {
if (this.monstre._dead) {
_root.score = _root.score + this.points;
eval (_root.interface).refresh();
this.removeMovieClip();
} else if (_root.tableau[position().x][position().y].charAt(0) == "B") {
eval ("_root." + _root.tableau[position().x][position().y]).detruit();
this.monstre.gotoAndPlay("mange");
nextMove = getTimer() + 1000;
direction = "S";
} else {
this.deplace();
nextMove = getTimer() + _vitesse;
}
}
}
}
onClipEvent (unload) {
cpt = 0;
while (cpt < _root.monstres.length) {
if (_root.monstres[cpt] == _name) {
_root.monstres.splice(cpt, 1);
}
cpt++;
}
}
Instance of Symbol 389 MovieClip "monstre3" in Frame 67
onClipEvent (load) {
if (String(_name) != "monstre3") {
_root.monstres.push(_name);
vies = 2;
monstre.halo._alpha = 100;
nextMove = getTimer() + (random(5) * 100);
}
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (String(_name) != "monstre3")) {
if (getTimer() > nextMove) {
if (this.monstre._dead) {
_root.score = _root.score + this.points;
eval (_root.interface).refresh();
this.removeMovieClip();
} else {
this.deplace();
nextMove = getTimer() + _vitesse;
}
}
}
}
onClipEvent (unload) {
cpt = 0;
while (cpt < _root.monstres.length) {
if (_root.monstres[cpt] == _name) {
_root.monstres.splice(cpt, 1);
}
cpt++;
}
}
Instance of Symbol 406 MovieClip "libson" in Frame 67
onClipEvent (load) {
stop();
}
Instance of Symbol 410 MovieClip "teleporte" in Frame 67
onClipEvent (enterFrame) {
if ((String(_name) != "teleporte") && (nextMove < getTimer())) {
if (_root.joueur1.hitTest(_x + 20, _y + 20)) {
first = 0;
trouve = false;
i = 0;
while (i < _root.teleportes.length) {
if (Number(eval ("_root." + _root.teleportes[i]).type) == (Number(type) + 1)) {
_root.libson.gotoAndPlay("teleportation");
eval ("_root." + _root.teleportes[i]).nextMove = getTimer() + 2000;
_root.joueur1._x = eval ("_root." + _root.teleportes[i])._x;
_root.joueur1._y = eval ("_root." + _root.teleportes[i])._y;
trouve = true;
break;
}
if (Number(eval ("_root." + _root.teleportes[i]).type) < Number(eval ("_root." + _root.teleportes[first]).type)) {
first = i;
}
i++;
}
if (!trouve) {
_root.libson.gotoAndPlay("teleportation");
eval ("_root." + _root.teleportes[first]).nextMove = getTimer() + 2000;
_root.joueur1._x = eval ("_root." + _root.teleportes[first])._x;
_root.joueur1._y = eval ("_root." + _root.teleportes[first])._y;
}
}
nextMove = getTimer() + 1000;
}
}
Instance of Symbol 441 MovieClip "joueur2" in Frame 67
onClipEvent (load) {
force = 1;
bombes = 1;
_vitesse = 50;
vies = 3;
malusExplose = false;
malusTaille = false;
malusTouche = false;
malusBombes = false;
telecommande = false;
myBombs = new Array();
}
onClipEvent (enterFrame) {
if ((String(_name) != "joueur2") && (getTimer() > nextMove)) {
if (_dead) {
_alpha = 0;
nextMove = getTimer() + 5000;
_dead = false;
_root.joueur1._alpha = 0;
if (!_root.mode2) {
_root.niveau--;
}
if (vies > 0) {
_root.gotoAndPlay("nouveauNiveau");
} else {
_root.gotoAndPlay("perdu");
}
}
if (Key.isDown(66) && (!_root.pause)) {
nextMove = getTimer() + this._vitesse;
this.bas();
}
if (Key.isDown(71) && (!_root.pause)) {
nextMove = getTimer() + this._vitesse;
this.haut();
}
if (Key.isDown(86) && (!_root.pause)) {
nextMove = getTimer() + this._vitesse;
this.gauche();
}
if (Key.isDown(78) && (!_root.pause)) {
nextMove = getTimer() + this._vitesse;
this.droite();
}
if ((Key.isDown(89) && (myBombs.length > 0)) && (!_root.pause)) {
eval ("_root." + myBombs.shift()).explose();
nextMove = getTimer() + 200;
}
if (Key.isDown(87) && (!_root.pause)) {
varx = pos_x();
vary = pos_y();
if ((bombes_actives < this.bombes) && (_root.tableau[varx][vary].charAt(0) != "B")) {
bombe_panel = (bombe_panel % 10) + 1;
bombes_actives++;
bombe_level = 5100 + bombe_panel;
duplicateMovieClip (_root.bombe, "B" + bombe_level, bombe_level);
setProperty(eval ("_root.B" + bombe_level), _x , (varx * 40) + _root.xoffset);
setProperty(eval ("_root.B" + bombe_level), _y , (vary * 40) + _root.yoffset);
if (telecommande) {
eval ("_root.B" + bombe_level).stop();
eval ("_root.B" + bombe_level).bombe.stop();
myBombs.push("B" + bombe_level);
}
if (malusExplose) {
eval ("_root.B" + bombe_level)._malus = true;
}
eval ("_root.B" + bombe_level).parent = String(_name);
eval ("_root.B" + bombe_level).car = _root.tableau[varx][vary];
_root.tableau[varx][vary] = "B" + bombe_level;
}
}
if (getTimer() > invinsible) {
i = 0;
while (i < _root.monstres.length) {
if (this.joueur.contour.hittest(eval ("_root." + _root.monstres[i]))) {
invinsible = getTimer() + 2000;
if (eval ("_root." + _root.monstres[i]).type == "4") {
this.malus();
} else {
this.explose();
}
}
i++;
}
}
}
}
Frame 68
_root.interface.refresh();
_root.fond.gotoAndStop(_root.bgr);
stop();
Frame 80
function detruitObjects() {
x = 0;
while (x < 13) {
y = 0;
while (y < 13) {
if (length(_root.tableau[x][y]) > 0) {
eval ("_root." + tableau[x][y]).removeMovieClip();
}
y++;
}
x++;
}
i = 0;
while (i < monstres.length) {
eval ("_root." + monstres[i]).removeMovieClip();
i++;
}
i = 0;
while (i < teleportes.length) {
eval ("_root." + teleportes[i]).removeMovieClip();
i++;
}
i = 0;
while (i < bombes.length) {
eval ("_root." + bombes[i]).removeMovieClip();
i++;
}
delete monstres;
monstres = new Array();
delete teleportes;
teleportes = new Array();
delete coffres;
coffres = new Array();
delete bombes;
bombes = new Array();
}
detruitObjects();
if (_root.perdu) {
_root.perdu = false;
} else if (arcade) {
_root.niveau = random(25) + 1;
} else {
_root.niveau++;
}
if (mode2) {
niveau_txt._alpha = 0;
niveau_txt2._alpha = 0;
} else {
niveau_txt._alpha = 100;
niveau_txt2._alpha = 100;
}
if (_root.niveau == 26) {
gotoAndPlay (111);
}
Instance of Symbol 112 MovieClip "bombe" in Frame 80
onClipEvent (load) {
if (String(_name) == "bombe") {
this.gotoAndStop("End");
} else {
_root.bombes.push(_name);
exploseTime = getTimer() + 999999;
}
}
onClipEvent (enterFrame) {
if (String(_name) != "bombe") {
if (this._explose && (!this._remove)) {
this.gotoAndPlay("Boom");
}
if (this._remove && (getTimer() > exploseTime)) {
this.removeMovieClip();
}
if (_malus) {
stop();
bombe.stop();
exploseTime = getTimer() + ((random(10) + 1) * 1000);
_malus = false;
}
if (getTimer() > exploseTime) {
this._explose = true;
}
}
}
onClipEvent (unload) {
cpt = 0;
while (cpt < _root.bombes.length) {
if (_root.bombes[cpt] == _name) {
_root.bombes.splice(cpt, 1);
}
cpt++;
}
}
Instance of Symbol 6 MovieClip "joueur" in Frame 80
onClipEvent (load) {
force = 1;
bombes = 1;
vies = 3;
_force_init = 1;
_bombes_init = 1;
_vitesse = 50;
malusExplose = false;
malusTaille = false;
malusTouche = false;
malusBombes = false;
telecommande = false;
myBombs = new Array();
}
onClipEvent (enterFrame) {
if ((String(_name) != "joueur") && (getTimer() > nextMove)) {
if (_dead) {
_alpha = 0;
nextMove = getTimer() + 5000;
_dead = false;
_force_init = 1;
_bombes_init = 1;
_root.j2._alpha = 0;
if (!_root.mode2) {
_root.perdu = true;
}
if (vies > 0) {
_root.gotoAndPlay("nouveauNiveau");
} else {
_root.gotoAndPlay("perdu");
}
}
if (Key.isDown(40) && (!_root.pause)) {
nextMove = getTimer() + this._vitesse;
this.bas();
}
if (Key.isDown(38) && (!_root.pause)) {
nextMove = getTimer() + this._vitesse;
this.haut();
}
if (Key.isDown(37) && (!_root.pause)) {
nextMove = getTimer() + this._vitesse;
this.gauche();
}
if (Key.isDown(39) && (!_root.pause)) {
nextMove = getTimer() + this._vitesse;
this.droite();
}
if (Key.isDown(80)) {
nextMove = getTimer() + 200;
_root.pause = !_root.pause;
cpt = 0;
while (cpt < _root.bombes.length) {
if (_root.pause) {
eval (("_root." + _root.bombes[cpt]) + ".bombe").stop();
eval ("_root." + _root.bombes[cpt]).stop();
} else {
eval (("_root." + _root.bombes[cpt]) + ".bombe").play();
eval ("_root." + _root.bombes[cpt]).play();
}
cpt++;
}
}
if ((Key.isDown(13) && (myBombs.length > 0)) && (!_root.pause)) {
eval ("_root." + myBombs.shift()).explose();
nextMove = getTimer() + 200;
}
if (Key.isDown(16) && (!_root.pause)) {
varx = pos_x();
vary = pos_y();
if ((bombes_actives < this.bombes) && (" BT".indexOf(_root.tableau[varx][vary].charAt(0)) <= 0)) {
bombe_panel = (bombe_panel % 10) + 1;
bombes_actives++;
bombe_level = 5000 + bombe_panel;
duplicateMovieClip (_root.bombe, "B" + bombe_level, bombe_level);
setProperty(eval ("_root.B" + bombe_level), _x , (varx * 40) + _root.xoffset);
setProperty(eval ("_root.B" + bombe_level), _y , (vary * 40) + _root.yoffset);
if (telecommande) {
eval ("_root.B" + bombe_level).stop();
eval ("_root.B" + bombe_level).bombe.stop();
myBombs.push("B" + bombe_level);
}
if (malusExplose) {
eval ("_root.B" + bombe_level)._malus = true;
}
eval ("_root.B" + bombe_level).parent = String(_name);
eval ("_root.B" + bombe_level).car = _root.tableau[varx][vary];
_root.tableau[varx][vary] = "B" + bombe_level;
}
}
if (getTimer() > invinsible) {
i = 0;
while (i < _root.monstres.length) {
if (this.joueur.contour.hittest(eval ("_root." + _root.monstres[i]))) {
invinsible = getTimer() + 2000;
if (eval ("_root." + _root.monstres[i]).type == "4") {
this.malus();
} else {
this.explose();
}
}
i++;
}
}
}
}
Instance of Symbol 197 MovieClip "monstre2" in Frame 80
onClipEvent (load) {
if (String(_name) != "monstre2") {
_root.monstres.push(_name);
nextMove = getTimer() + (random(5) * 100);
}
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (String(_name) != "monstre2")) {
if (getTimer() > nextMove) {
if (this.monstre._dead) {
_root.score = _root.score + this.points;
eval (_root.interface).refresh();
this.removeMovieClip();
} else {
this.deplace();
nextMove = getTimer() + _vitesse;
}
}
}
}
onClipEvent (unload) {
cpt = 0;
while (cpt < _root.monstres.length) {
if (_root.monstres[cpt] == _name) {
_root.monstres.splice(cpt, 1);
}
cpt++;
}
}
Instance of Symbol 221 MovieClip "porte" in Frame 80
onClipEvent (load) {
this.isActivate = false;
}
onClipEvent (enterFrame) {
if ((String(_name) != "porte") && (nextMove < getTimer())) {
if ((_root.monstres.length <= 0) && (!this.isActivate)) {
this.porte.gotoAndStop(2);
this.isActivate = true;
}
if ((_root.monstres.length > 0) && (this.isActivate)) {
this.porte.gotoAndStop(1);
this.isActivate = false;
}
if ((_root.monstres.length <= 0) && (_root.joueur1.hitTest(_x + 20, _y + 20))) {
_root.joueur1._alpha = 0;
_root.gotoAndPlay("nouveauNiveau");
}
nextMove = getTimer() + 150;
}
}
Instance of Symbol 230 MovieClip "trappe" in Frame 80
onClipEvent (load) {
newMonstre = getTimer() + 10000;
i = 1400;
monstre_ok = false;
}
onClipEvent (enterFrame) {
if (String(_name) != "trappe") {
if ((_root.monstres.length <= 5) && (getTimer() > newMonstre)) {
newMonstre = getTimer() + 10000;
this.gotoAndPlay(2);
}
if (monstre_ok) {
monstre_ok = false;
duplicateMovieClip ("_root.monstre" + type, "A" + i, i);
setProperty("_root.A" + i, _x , this._x);
setProperty("_root.A" + i, _y , this._y);
i++;
}
}
}
Instance of Symbol 249 MovieClip "monstre7" in Frame 80
onClipEvent (load) {
if (String(_name) != "monstre7") {
_root.monstres.push(_name);
nextMove = getTimer() + (random(5) * 100);
}
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (String(_name) != "monstre7")) {
if (getTimer() > nextMove) {
if (this.monstre._dead) {
_root.score = _root.score + this.points;
eval (_root.interface).refresh();
this.removeMovieClip();
} else {
this.deplace();
nextMove = getTimer() + _vitesse;
}
}
}
}
onClipEvent (unload) {
cpt = 0;
while (cpt < _root.monstres.length) {
if (_root.monstres[cpt] == _name) {
_root.monstres.splice(cpt, 1);
}
cpt++;
}
}
Instance of Symbol 263 MovieClip "monstre1" in Frame 80
onClipEvent (load) {
if (String(_name) != "monstre1") {
_root.monstres.push(_name);
nextMove = getTimer() + (random(5) * 100);
}
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (String(_name) != "monstre1")) {
if (getTimer() > nextMove) {
if (this.monstre._dead) {
_root.score = _root.score + this.points;
eval (_root.interface).refresh();
this.removeMovieClip();
} else {
this.deplace();
nextMove = getTimer() + _vitesse;
}
}
}
}
onClipEvent (unload) {
cpt = 0;
while (cpt < _root.monstres.length) {
if (_root.monstres[cpt] == _name) {
_root.monstres.splice(cpt, 1);
}
cpt++;
}
}
Instance of Symbol 273 MovieClip "monstre4" in Frame 80
onClipEvent (load) {
if (String(_name) != "monstre4") {
_root.monstres.push(_name);
nextMove = getTimer() + (random(5) * 100);
}
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (String(_name) != "monstre4")) {
if (getTimer() > nextMove) {
if (this.monstre._dead) {
_root.score = _root.score + this.points;
eval (_root.interface).refresh();
this.removeMovieClip();
} else {
this.deplace();
nextMove = getTimer() + _vitesse;
}
}
}
}
onClipEvent (unload) {
cpt = 0;
while (cpt < _root.monstres.length) {
if (_root.monstres[cpt] == _name) {
_root.monstres.splice(cpt, 1);
}
cpt++;
}
}
Instance of Symbol 301 MovieClip "monstre8" in Frame 80
onClipEvent (load) {
if (String(_name) != "monstre8") {
_root.monstres.push(_name);
poseBombe = (getTimer() + (Math.random() * 10000)) + 1000;
force = 2;
nextMove = getTimer() + (random(5) * 100);
}
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (String(_name) != "monstre8")) {
if (getTimer() > nextMove) {
if (this.monstre._dead) {
_root.score = _root.score + this.points;
eval (_root.interface).refresh();
this.removeMovieClip();
} else {
this.deplace();
nextMove = getTimer() + _vitesse;
if (getTimer() > poseBombe) {
varx = position().x;
vary = position().y;
poseBombe = (getTimer() + (Math.random() * 10000)) + 1000;
bombe_panel = (bombe_panel % 10) + 1;
depth = 1100 + bombe_panel;
duplicateMovieClip (_root.bombe, "B" + depth, depth);
setProperty(eval ("_root.B" + depth), _x , (varx * 40) + _root.xoffset);
setProperty(eval ("_root.B" + depth), _y , (vary * 40) + _root.yoffset);
eval ("_root.B" + depth).parent = String(_name);
eval ("_root.B" + depth).car = _root.tableau[varx][vary];
_root.tableau[varx][vary] = "B" + depth;
}
}
}
}
}
onClipEvent (unload) {
cpt = 0;
while (cpt < _root.monstres.length) {
if (_root.monstres[cpt] == _name) {
_root.monstres.splice(cpt, 1);
}
cpt++;
}
}
Instance of Symbol 318 MovieClip "monstre5" in Frame 80
onClipEvent (load) {
if (String(_name) != "monstre5") {
_root.monstres.push(_name);
nextMove = getTimer() + (random(5) * 100);
}
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (String(_name) != "monstre5")) {
if (getTimer() > nextMove) {
if (this.monstre._dead) {
_root.score = _root.score + this.points;
eval (_root.interface).refresh();
this.removeMovieClip();
} else {
this.deplace();
nextMove = getTimer() + _vitesse;
}
}
}
}
onClipEvent (unload) {
cpt = 0;
while (cpt < _root.monstres.length) {
if (_root.monstres[cpt] == _name) {
_root.monstres.splice(cpt, 1);
}
cpt++;
}
}
Instance of Symbol 334 MovieClip "monstre9" in Frame 80
onClipEvent (load) {
if (String(_name) != "monstre9") {
_root.monstres.push(_name);
nextMove = getTimer() + (random(5) * 100);
}
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (String(_name) != "monstre9")) {
if (getTimer() > nextMove) {
if (this.monstre._dead) {
_root.score = _root.score + this.points;
eval (_root.interface).refresh();
if (_xscale > 50) {
cpt = 0;
while (cpt < 3) {
duplicateMovieClip (_root.monstre9, "A" + _root.i, _root.i);
setProperty("_root.A" + _root.i, _x , (Math.floor(this._x / 40) * 40) + 10);
setProperty("_root.A" + _root.i, _y , (Math.floor(this._y / 40) * 40) + 10);
setProperty(eval ("_root.A" + _root.i), _xscale , 50);
setProperty(eval ("_root.A" + _root.i), _yscale , 50);
_root.objets.push("A" + _root.i);
_root.i++;
cpt++;
}
}
this.removeMovieClip();
} else {
this.deplace();
nextMove = getTimer() + _vitesse;
}
}
}
}
onClipEvent (unload) {
cpt = 0;
while (cpt < _root.monstres.length) {
if (_root.monstres[cpt] == _name) {
_root.monstres.splice(cpt, 1);
}
cpt++;
}
}
Instance of Symbol 365 MovieClip "monstre6" in Frame 80
onClipEvent (load) {
if (String(_name) != "monstre6") {
_root.monstres.push(_name);
nextMove = getTimer() + (random(5) * 100);
}
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (String(_name) != "monstre6")) {
if (getTimer() > nextMove) {
if (this.monstre._dead) {
_root.score = _root.score + this.points;
eval (_root.interface).refresh();
this.removeMovieClip();
} else if (_root.tableau[position().x][position().y].charAt(0) == "B") {
eval ("_root." + _root.tableau[position().x][position().y]).detruit();
this.monstre.gotoAndPlay("mange");
nextMove = getTimer() + 1000;
direction = "S";
} else {
this.deplace();
nextMove = getTimer() + _vitesse;
}
}
}
}
onClipEvent (unload) {
cpt = 0;
while (cpt < _root.monstres.length) {
if (_root.monstres[cpt] == _name) {
_root.monstres.splice(cpt, 1);
}
cpt++;
}
}
Instance of Symbol 389 MovieClip "monstre3" in Frame 80
onClipEvent (load) {
if (String(_name) != "monstre3") {
_root.monstres.push(_name);
vies = 2;
monstre.halo._alpha = 100;
nextMove = getTimer() + (random(5) * 100);
}
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (String(_name) != "monstre3")) {
if (getTimer() > nextMove) {
if (this.monstre._dead) {
_root.score = _root.score + this.points;
eval (_root.interface).refresh();
this.removeMovieClip();
} else {
this.deplace();
nextMove = getTimer() + _vitesse;
}
}
}
}
onClipEvent (unload) {
cpt = 0;
while (cpt < _root.monstres.length) {
if (_root.monstres[cpt] == _name) {
_root.monstres.splice(cpt, 1);
}
cpt++;
}
}
Instance of Symbol 406 MovieClip "libson" in Frame 80
onClipEvent (load) {
stop();
}
Instance of Symbol 410 MovieClip "teleporte" in Frame 80
onClipEvent (enterFrame) {
if ((String(_name) != "teleporte") && (nextMove < getTimer())) {
if (_root.joueur1.hitTest(_x + 20, _y + 20)) {
first = 0;
trouve = false;
i = 0;
while (i < _root.teleportes.length) {
if (Number(eval ("_root." + _root.teleportes[i]).type) == (Number(type) + 1)) {
_root.libson.gotoAndPlay("teleportation");
eval ("_root." + _root.teleportes[i]).nextMove = getTimer() + 2000;
_root.joueur1._x = eval ("_root." + _root.teleportes[i])._x;
_root.joueur1._y = eval ("_root." + _root.teleportes[i])._y;
trouve = true;
break;
}
if (Number(eval ("_root." + _root.teleportes[i]).type) < Number(eval ("_root." + _root.teleportes[first]).type)) {
first = i;
}
i++;
}
if (!trouve) {
_root.libson.gotoAndPlay("teleportation");
eval ("_root." + _root.teleportes[first]).nextMove = getTimer() + 2000;
_root.joueur1._x = eval ("_root." + _root.teleportes[first])._x;
_root.joueur1._y = eval ("_root." + _root.teleportes[first])._y;
}
}
nextMove = getTimer() + 1000;
}
}
Instance of Symbol 441 MovieClip "joueur2" in Frame 80
onClipEvent (load) {
force = 1;
bombes = 1;
_vitesse = 50;
vies = 3;
malusExplose = false;
malusTaille = false;
malusTouche = false;
malusBombes = false;
telecommande = false;
myBombs = new Array();
}
onClipEvent (enterFrame) {
if ((String(_name) != "joueur2") && (getTimer() > nextMove)) {
if (_dead) {
_alpha = 0;
nextMove = getTimer() + 5000;
_dead = false;
_root.joueur1._alpha = 0;
if (!_root.mode2) {
_root.niveau--;
}
if (vies > 0) {
_root.gotoAndPlay("nouveauNiveau");
} else {
_root.gotoAndPlay("perdu");
}
}
if (Key.isDown(66) && (!_root.pause)) {
nextMove = getTimer() + this._vitesse;
this.bas();
}
if (Key.isDown(71) && (!_root.pause)) {
nextMove = getTimer() + this._vitesse;
this.haut();
}
if (Key.isDown(86) && (!_root.pause)) {
nextMove = getTimer() + this._vitesse;
this.gauche();
}
if (Key.isDown(78) && (!_root.pause)) {
nextMove = getTimer() + this._vitesse;
this.droite();
}
if ((Key.isDown(89) && (myBombs.length > 0)) && (!_root.pause)) {
eval ("_root." + myBombs.shift()).explose();
nextMove = getTimer() + 200;
}
if (Key.isDown(87) && (!_root.pause)) {
varx = pos_x();
vary = pos_y();
if ((bombes_actives < this.bombes) && (_root.tableau[varx][vary].charAt(0) != "B")) {
bombe_panel = (bombe_panel % 10) + 1;
bombes_actives++;
bombe_level = 5100 + bombe_panel;
duplicateMovieClip (_root.bombe, "B" + bombe_level, bombe_level);
setProperty(eval ("_root.B" + bombe_level), _x , (varx * 40) + _root.xoffset);
setProperty(eval ("_root.B" + bombe_level), _y , (vary * 40) + _root.yoffset);
if (telecommande) {
eval ("_root.B" + bombe_level).stop();
eval ("_root.B" + bombe_level).bombe.stop();
myBombs.push("B" + bombe_level);
}
if (malusExplose) {
eval ("_root.B" + bombe_level)._malus = true;
}
eval ("_root.B" + bombe_level).parent = String(_name);
eval ("_root.B" + bombe_level).car = _root.tableau[varx][vary];
_root.tableau[varx][vary] = "B" + bombe_level;
}
}
if (getTimer() > invinsible) {
i = 0;
while (i < _root.monstres.length) {
if (this.joueur.contour.hittest(eval ("_root." + _root.monstres[i]))) {
invinsible = getTimer() + 2000;
if (eval ("_root." + _root.monstres[i]).type == "4") {
this.malus();
} else {
this.explose();
}
}
i++;
}
}
}
}
Frame 99
function distribue(chaine) {
myArray = chaine.split(",");
cpt = 0;
while (cpt < myArray.length) {
varx = random(11);
vary = random(11);
if ((length(_root.tableau[varx + 1][vary + 1]) <= 0) && ((((varx - joueur1_x) + vary) - joueur1_y) >= 2)) {
_root.tableau[varx + 1][vary + 1] = myArray[cpt];
cpt++;
}
}
}
function distribue2(chaine) {
listeMurs = new Array();
myArray = chaine.split(",");
x = 0;
while (x < 13) {
y = 0;
while (y < 13) {
if (_root.tableau[x][y].charAt(0) == "L") {
listeMurs.push([x, y]);
}
y++;
}
x++;
}
cpt = 0;
while (cpt < myArray.length) {
myVar = random(listeMurs.length);
_root.tableau[listeMurs[myVar][0]][listeMurs[myVar][1]] = myArray[cpt];
listeMurs.splice(myVar, 1);
cpt++;
}
delete myArray;
}
function affiche() {
i = 1;
x = 0;
while (x < 13) {
y = 0;
while (y < 13) {
car0 = _root.tableau[x][y].charAt(0);
car1 = _root.tableau[x][y].charAt(1);
switch (car0) {
case "M" :
duplicateClip(_root.mur1, "M" + i, i, x, y);
break;
case "J" :
if (car1 == "1") {
if (_root.joueur1 == null) {
duplicateMovieClip (_root.joueur, "joueur1", 10000);
joueurs.push("joueur1");
_root.joueur1.vies = 3;
}
setProperty("joueur1", _x , (x * 40) + _root.xoffset);
setProperty("joueur1", _y , (y * 40) + _root.yoffset);
_root.joueur1.joueur.gotoAndStop(1);
_root.joueur1.init();
_root.tableau[x][y] = "";
}
if (car1 == "2") {
if (_root.j2 == null) {
duplicateMovieClip (_root.joueur2, "j2", 11000);
joueurs.push("j2");
_root.j2.vies = 3;
}
setProperty("j2", _x , (x * 40) + _root.xoffset);
setProperty("j2", _y , (y * 40) + _root.yoffset);
_root.j2.joueur.gotoAndStop(1);
_root.j2.init();
_root.tableau[x][y] = "";
}
break;
case "A" :
duplicateClip("_root.monstre" + car1, "A" + i, 500 + i, x, y);
eval ("A" + i).type = car1;
_root.tableau[x][y] = "";
break;
case "c" :
case "C" :
case "d" :
case "D" :
case "e" :
case "E" :
case "F" :
case "g" :
case "G" :
case "H" :
case "I" :
case "K" :
case "L" :
case "O" :
case "P" :
case "Q" :
case "R" :
case "U" :
case "z" :
case "Z" :
duplicateClip(_root.brique1, "L" + i, i, x, y);
eval ("L" + i).type = car0;
eval ("L" + i).vies = car1;
break;
case "V" :
duplicateClip(_root.coffre, "V" + i, i, x, y);
eval ("V" + i).type = car1;
coffres.push("V" + i);
break;
case "W" :
duplicateClip(_root.teleporte, "W" + i, i, x, y);
eval ("W" + i).type = car1;
teleportes.push("W" + i);
_root.tableau[x][y] = "";
break;
case "Y" :
duplicateClip(_root.trappe, "Y" + i, i, x, y);
eval ("Y" + i).type = Number(car1);
break;
default :
_root.tableau[x][y] = "";
}
i++;
y++;
}
x++;
}
}
function duplicateClip(clip, name, i, x, y) {
duplicateMovieClip (clip, name, i);
setProperty(name, _x , (x * 40) + _root.xoffset);
setProperty(name, _y , (y * 40) + _root.yoffset);
_root.tableau[x][y] = name;
}
function duplicateCadeau(clip, name, x, y) {
duplicateMovieClip (clip, name + i, i);
setProperty(name + i, _x , x);
setProperty(name + i, _y , y);
_root.tableau[Math.floor((x - _root.xoffset) / 40)][Math.floor((y - _root.yoffset) / 40)] = name + i;
i++;
}
if (niveau == 1) {
_root.tableau[0].splice(0, 13, "J1", " ", "", " ", "", " ", "", "", "", " ", "", " ", "");
_root.tableau[1].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[2].splice(0, 13, "", "", "", "", "L1", "", "", "", "L1", "", "", "", "");
_root.tableau[3].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[4].splice(0, 13, "", "", "L1", "", "", "", "A1", "", "", "", "L1", "", "");
_root.tableau[5].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[6].splice(0, 13, "", "", "", "", "", "", "L1", "", "", "", "", "", "");
_root.tableau[7].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[8].splice(0, 13, "", "", "L1", "", "", "", "A1", "", "", "", "L1", "", "");
_root.tableau[9].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[10].splice(0, 13, "", "", "", "", "L1", "", "", "", "L1", "", "", "", "");
_root.tableau[11].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[12].splice(0, 13, "", "", "", "", "", "", "", "", "", "", "", "", "");
chaine2 = "K1,O1,C1,D1";
chaine = "";
_root.bgr = 2;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 2) {
_root.tableau[0].splice(0, 13, "J1", " ", "", " ", "", " ", "", "", "", " ", "", " ", "");
_root.tableau[1].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[2].splice(0, 13, "", "L1", "", "", "", "L1", "", "", "", "L1", "", "L1", "");
_root.tableau[3].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[4].splice(0, 13, "", "L1", "", "L1", "", "L1", "A1", "L1", "", "L1", "", "L1", "");
_root.tableau[5].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[6].splice(0, 13, "", "", "", "L1", "", "L1", "", "L1", "A1", "", "", "L1", "");
_root.tableau[7].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[8].splice(0, 13, "", "L1", "", "L1", "", "L1", "A1", "L1", "", "L1", "", "L1", "");
_root.tableau[9].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[10].splice(0, 13, "", "L1", "", "", "", "L1", "", "", "", "L1", "", "L1", "");
_root.tableau[11].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[12].splice(0, 13, "", "", "", "", "", "", "", "", "", "", "", "", "A2");
chaine2 = "K1,O1,C1,C1,D1";
chaine = "";
_root.bgr = 2;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 3) {
_root.tableau[0].splice(0, 13, "J1", " ", "", "L1", "", "L1", "", "L1", "", " ", "", " ", "");
_root.tableau[1].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "L1", "M1", "");
_root.tableau[2].splice(0, 13, "", "", "", "L1", "", "L1", "", "L1", "", "", "A2", "", "");
_root.tableau[3].splice(0, 13, "L1", "M1", "L1", "M1", "", "M1", "", "M1", "", "M1", "L1", "M1", "");
_root.tableau[4].splice(0, 13, "", "", "", "", "A1", "L1", "", "L1", "", "", "", "", "");
_root.tableau[5].splice(0, 13, "L1", "M1", "L1", "M1", "L1", "M1", "", "M1", "L1", "M1", "L1", "M1", "L1");
_root.tableau[6].splice(0, 13, "", "", "", "", "", "", "", "", "", "", "", "", "");
_root.tableau[7].splice(0, 13, "L1", "M1", "L1", "M1", "L1", "M1", "", "M1", "L1", "M1", "L1", "M1", "L1");
_root.tableau[8].splice(0, 13, "", "", "", "", "", "L1", "", "L1", "", "", "", "", "");
_root.tableau[9].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "L1", "M1", "L1");
_root.tableau[10].splice(0, 13, "", "L1", "A2", "L1", "", "L1", "", "L1", "", "L1", "A1", "", "");
_root.tableau[11].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[12].splice(0, 13, "", "", "", "", "", "L1", "", "L1", "", "L1", "", "", "");
chaine2 = "K1,F1,c1,C1,C1,D1";
chaine = "";
_root.bgr = 2;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 4) {
_root.tableau[0].splice(0, 13, "", " ", "", "M1", "", "M1", "A1", " ", "", " ", "", " ", "");
_root.tableau[1].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[2].splice(0, 13, "", "L1", "", "", "", "L1", "", "M1", "", "L1", "A3", "", "");
_root.tableau[3].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "", "M1", "", "M1", "M1", "M1", "");
_root.tableau[4].splice(0, 13, "", "M1", "", "", "", "L1", "0", "0", "", "", "", "M1", "");
_root.tableau[5].splice(0, 13, "", "M1", "", "M1", "", "M1", "0", "M1", "", "M1", "", "M1", "");
_root.tableau[6].splice(0, 13, "A2", "L1", "", "L1", "", "M1", "J1", "M1", "", "L1", "", "L1", "");
_root.tableau[7].splice(0, 13, "", "M1", "", "M1", "", "M1", "0", "M1", "", "M1", "", "M1", "");
_root.tableau[8].splice(0, 13, "", "M1", "", "", "", "L1", "0", "0", "", "", "", "M1", "");
_root.tableau[9].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "", "M1", "", "M1", "M1", "M1", "");
_root.tableau[10].splice(0, 13, "", "L1", "", "", "", "L1", "", "M1", "", "L1", "A1", "", "");
_root.tableau[11].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[12].splice(0, 13, "", "", "", "M1", "", "M1", "", "", "", "", "", "", "");
chaine2 = "K1,C1,D1,C1,D1,O1,P1,c1";
chaine = "";
_root.bgr = 3;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 5) {
_root.tableau[0].splice(0, 13, "", " ", "", "M1", "", "M1", "A1", " ", "", " ", "", " ", "");
_root.tableau[1].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[2].splice(0, 13, "", "", "", "", "", "", "", "M1", "", "", "", "", "");
_root.tableau[3].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "L1", "M1", "", "M1", "M1", "M1", "");
_root.tableau[4].splice(0, 13, "", "M1", "", "L1", "", "L1", "0", "L1", "", "L1", "", "M1", "");
_root.tableau[5].splice(0, 13, "", "M1", "", "M1", "", "M1", "0", "M1", "", "M1", "", "M1", "");
_root.tableau[6].splice(0, 13, "A2", "L1", "A3", "L1", "", "M1", "J1", "M1", "", "L1", "A3", "L1", "");
_root.tableau[7].splice(0, 13, "", "M1", "", "M1", "", "M1", "0", "M1", "", "M1", "", "M1", "");
_root.tableau[8].splice(0, 13, "", "M1", "", "L1", "", "L1", "0", "L1", "", "L1", "", "M1", "");
_root.tableau[9].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "L1", "M1", "", "M1", "M1", "M1", "");
_root.tableau[10].splice(0, 13, "", "", "", "", "", "", "", "M1", "", "", "A2", "", "");
_root.tableau[11].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[12].splice(0, 13, "", "", "", "M1", "", "M1", "", "", "", "", "", "", "");
chaine2 = "C1,D1,K1,d1,E1,C1,D1,O1";
chaine = "";
_root.bgr = 3;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 6) {
_root.tableau[0].splice(0, 13, "A3", "", "", "", "", "M1", "", "M1", "", "", "", "", "A2");
_root.tableau[1].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "", "M1", "", "M1", "M1", "M1", "");
_root.tableau[2].splice(0, 13, "", "M1", "", "L1", "", "", "", "", "", "L1", "", "M1", "");
_root.tableau[3].splice(0, 13, "", "M1", "", "M1", "", "M1", "M1", "M1", "", "M1", "M1", "M1", "");
_root.tableau[4].splice(0, 13, "", "L1", "", "M1", "", "M1", "", "", "", "L1", "", "L1", "");
_root.tableau[5].splice(0, 13, "", "M1", "A4", "L1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[6].splice(0, 13, "L2", "M1", "", "M1", "A1", "L2", "L2", "M1", "M1", "M1", "M1", "M1", "L2");
_root.tableau[7].splice(0, 13, "", "M1", "", "L1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[8].splice(0, 13, "", "L1", "", "M1", "", "M1", "", "", "", "L1", "", "L1", "");
_root.tableau[9].splice(0, 13, "", "M1", "", "M1", "", "M1", "M1", "M1", "", "M1", "M1", "M1", "0");
_root.tableau[10].splice(0, 13, "", "M1", "", "L1", "", "", "", "", "", "L1", "", "M1", "0");
_root.tableau[11].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "M1", "M1", "", "M1", "M1", "M1", "0");
_root.tableau[12].splice(0, 13, "A3", "", "", "", "", "", "M1", "", "0", "0", "0", "0", "J1");
chaine2 = "K2,C1,D1,D2,C2,c1,d1,O1,P2,F2";
chaine = "";
_root.bgr = 4;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 7) {
_root.tableau[0].splice(0, 13, "", "", "", "", "", "M1", "", "M1", "", "", "", "", "A2");
_root.tableau[1].splice(0, 13, "", "M1", "M1", "M1", "L2", "M1", "", "M1", "L2", "M1", "M1", "M1", "");
_root.tableau[2].splice(0, 13, "", "M1", "", "", "", "", "", "", "", "", "", "M1", "");
_root.tableau[3].splice(0, 13, "", "M1", "", "M1", "L2", "M1", "M1", "M1", "L2", "M1", "M1", "M1", "");
_root.tableau[4].splice(0, 13, "", "L2", "", "M1", "", "M1", "", "", "", "", "", "L2", "");
_root.tableau[5].splice(0, 13, "", "M1", "", "L2", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[6].splice(0, 13, "", "M1", "A2", "M1", "A1", "L2", "A3", "M1", "M1", "M1", "M1", "M1", "");
_root.tableau[7].splice(0, 13, "", "M1", "", "L2", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[8].splice(0, 13, "", "L2", "", "M1", "", "M1", "", "", "", "", "", "L2", "");
_root.tableau[9].splice(0, 13, "", "M1", "", "M1", "L2", "M1", "M1", "M1", "L2", "M1", "M1", "M1", "0");
_root.tableau[10].splice(0, 13, "", "M1", "", "", "", "", "", "", "", "", "", "M1", "0");
_root.tableau[11].splice(0, 13, "", "M1", "M1", "M1", "L2", "M1", "M1", "M1", "L2", "M1", "M1", "M1", "0");
_root.tableau[12].splice(0, 13, "A3", "", "", "", "", "", "M1", "", "0", "0", "0", "0", "J1");
chaine2 = "K2,C1,D1,D2,D2,G2,e2,d2,E2,O2,P2";
chaine = "";
_root.bgr = 4;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 8) {
_root.tableau[0].splice(0, 13, "", "", "", "", "", "", "", "", "", "", "", "", "");
_root.tableau[1].splice(0, 13, "", "M1", "M1", "M1", "M1", "M1", "", "M1", "M1", "M1", "M1", "M1", "");
_root.tableau[2].splice(0, 13, "", "M1", "", "A3", "", "M1", "", "M1", "", "", "", "M1", "");
_root.tableau[3].splice(0, 13, "", "L2", "", "M1", "", "M1", "L2", "M1", "", "M1", "A1", "L2", "");
_root.tableau[4].splice(0, 13, "", "M1", "", "", "", "M1", "0", "M1", "", "", "", "M1", "");
_root.tableau[5].splice(0, 13, "", "M1", "M1", "M1", "M1", "M1", "0", "M1", "M1", "M1", "M1", "M1", "");
_root.tableau[6].splice(0, 13, "", "", "", "L2", "0", "0", "J1", "0", "0", "L2", "", "", "");
_root.tableau[7].splice(0, 13, "", "M1", "M1", "M1", "M1", "M1", "0", "M1", "M1", "M1", "M1", "M1", "");
_root.tableau[8].splice(0, 13, "", "M1", "", "A4", "", "M1", "0", "M1", "", "", "", "M1", "");
_root.tableau[9].splice(0, 13, "", "L2", "", "M1", "", "M1", "L2", "M1", "", "M1", "", "L2", "");
_root.tableau[10].splice(0, 13, "", "M1", "", "", "", "M1", "", "M1", "", "A2", "", "M1", "");
_root.tableau[11].splice(0, 13, "", "M1", "M1", "M1", "M1", "M1", "", "M1", "M1", "M1", "M1", "M1", "");
_root.tableau[12].splice(0, 13, "", "", "", "", "", "", "A5", "", "", "", "", "", "");
chaine2 = "K2,C2,D2,F2,Q2,R2,c2";
chaine = "";
_root.bgr = 5;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 9) {
_root.tableau[1].splice(0, 13, "", "M1", "M1", "M1", "M1", "M1", "L2", "M1", "M1", "M1", "M1", "M1", "");
_root.tableau[2].splice(0, 13, "", "M1", "", "A3", "", "M1", "", "M1", "", "", "", "M1", "");
_root.tableau[3].splice(0, 13, "", "M1", "", "M1", "", "L2", "", "L2", "", "M1", "Y1", "M1", "");
_root.tableau[4].splice(0, 13, "", "M1", "", "", "", "M1", "0", "M1", "", "", "", "M1", "");
_root.tableau[5].splice(0, 13, "", "M1", "M1", "L2", "M1", "M1", "0", "M1", "M1", "L2", "M1", "M1", "");
_root.tableau[6].splice(0, 13, "", "L2", "", "", "0", "0", "J1", "0", "0", "", "", "L2", "");
_root.tableau[7].splice(0, 13, "", "M1", "M1", "L2", "M1", "M1", "0", "M1", "M1", "L2", "M1", "M1", "");
_root.tableau[8].splice(0, 13, "", "M1", "", "A4", "", "M1", "0", "M1", "", "", "", "M1", "");
_root.tableau[9].splice(0, 13, "", "M1", "", "M1", "", "L2", "", "L2", "", "M1", "", "M1", "");
_root.tableau[10].splice(0, 13, "", "M1", "", "", "", "M1", "", "M1", "", "A2", "", "M1", "");
_root.tableau[11].splice(0, 13, "", "M1", "M1", "M1", "M1", "M1", "L2", "M1", "M1", "M1", "M1", "M1", "");
_root.tableau[12].splice(0, 13, "", "", "", "", "A5", "", "", "", "", "", "", "", "");
chaine2 = "K2,C2,D2,E2,Q2,P2,c2,e2";
chaine = "";
_root.bgr = 5;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 10) {
_root.tableau[0].splice(0, 13, "J1", " ", "M1", " ", "", "M1", "A1", "M1", "", "", "", "L3", "");
_root.tableau[1].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "", "M1", "", "M1", "M1", "M1", "");
_root.tableau[2].splice(0, 13, "", "", "L2", "", "A2", "L2", "", "L2", "", "", "M1", "", "");
_root.tableau[3].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "M1", "M1", "", "M1", "M1", "M1", "");
_root.tableau[4].splice(0, 13, "", "", "M1", "", "", "", "M1", "", "A3", "", "", "L2", "");
_root.tableau[5].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "M1", "M1", "", "M1", "", "M1", "");
_root.tableau[6].splice(0, 13, "", "L2", "A6", "L1", "", "", "L3", "", "", "", "", "L1", "");
_root.tableau[7].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "M1", "M1", "", "M1", "", "M1", "");
_root.tableau[8].splice(0, 13, "", "", "L2", "", "", "", "M1", "", "", "", "", "L2", "");
_root.tableau[9].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "M1", "M1", "", "M1", "M1", "M1", "");
_root.tableau[10].splice(0, 13, "", "", "M1", "", "", "L2", "", "L2", "", "", "M1", "", "A5");
_root.tableau[11].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "A4", "M1", "", "M1", "M1", "M1", "");
_root.tableau[12].splice(0, 13, "", "", "L3", "", "", "M1", "", "M1", "", "", "", "L3", "");
chaine2 = "K3,C2,D2,C2,D2,I2,F2,O2,P2,c2,d2,e2";
chaine = "";
_root.bgr = 6;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 11) {
_root.tableau[0].splice(0, 13, "J1", " ", "M1", " ", "", "M1", "A4", "M1", "", "", "", " ", "");
_root.tableau[1].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "", "M1", "", "M1", "M1", "M1", "");
_root.tableau[2].splice(0, 13, "", "", "", "", "", "L2", "", "L2", "", "", "M1", "", "A3");
_root.tableau[3].splice(0, 13, "L2", "M1", "M1", "M1", "L2", "M1", "M1", "M1", "L2", "M1", "M1", "M1", "");
_root.tableau[4].splice(0, 13, "", "", "M1", "", "A6", "", "M1", "", "", "", "", "", "");
_root.tableau[5].splice(0, 13, "", "M1", "M1", "M1", "L3", "M1", "M1", "M1", "L2", "M1", "L3", "M1", "L3");
_root.tableau[6].splice(0, 13, "", "", "", "", "", "", "", "", "A5", "", "", "", "");
_root.tableau[7].splice(0, 13, "L3", "M1", "M1", "M1", "L2", "M1", "M1", "M1", "L2", "M1", "L2", "M1", "");
_root.tableau[8].splice(0, 13, "A4", "", "", "", "", "", "M1", "", "", "", "", "", "");
_root.tableau[9].splice(0, 13, "", "M1", "M1", "M1", "L3", "M1", "M1", "M1", "L3", "M1", "M1", "M1", "L2");
_root.tableau[10].splice(0, 13, "", "", "M1", "", "", "", "", "", "", "", "M1", "", "");
_root.tableau[11].splice(0, 13, "L3", "M1", "M1", "M1", "L2", "M1", "", "M1", "L3", "M1", "M1", "M1", "");
_root.tableau[12].splice(0, 13, "", "", "", "", "", "M1", "Y2", "M1", "", "", "", "", "");
chaine2 = "K3,C2,D2,C3,D3,Z3,c2,d2,c2,g3,P3,Q3";
chaine = "";
_root.bgr = 6;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 12) {
_root.tableau[0].splice(0, 13, "J1", "", "M1", " ", "", "L3", "", "L3", "", " ", "M1", " ", "A5");
_root.tableau[1].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "", "M1", "", "M1", "M1", "M1", "");
_root.tableau[2].splice(0, 13, "", "", "", "", "", "L2", "", "L2", "", "", "", "", "");
_root.tableau[3].splice(0, 13, "L2", "M1", "M1", "M1", "L2", "M1", "", "M1", "L2", "M1", "M1", "M1", "");
_root.tableau[4].splice(0, 13, "", "", "", "", "", "M1", "", "M1", "", "", "", "L2", "");
_root.tableau[5].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[6].splice(0, 13, "", "M1", "L2", "M1", "", "L3", "", "L2", "", "M1", "Y2", "M1", "L3");
_root.tableau[7].splice(0, 13, "", "M1", "", "M1", "", "M1", "A7", "M1", "", "M1", "", "M1", "");
_root.tableau[8].splice(0, 13, "", "", "", "", "A4", "M1", "", "M1", "", "", "", "L2", "");
_root.tableau[9].splice(0, 13, "L2", "M1", "M1", "M1", "L2", "M1", "", "M1", "L2", "M1", "M1", "M1", "");
_root.tableau[10].splice(0, 13, "", "", "L2", "", "", "L2", "", "L3", "", "", "", "", "");
_root.tableau[11].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "", "M1", "", "M1", "M1", "M1", "");
_root.tableau[12].splice(0, 13, "A6", "", "M1", "", "", "L1", "", "L1", "", "", "M1", "", "A3");
chaine2 = "K3,C2,D2,C3,D3,c2,d2,d2,e2,I2,F3,R3,O2";
chaine = "";
_root.bgr = 7;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 13) {
_root.tableau[0].splice(0, 13, "J1", "", "M1", " ", "", "", "", "", "", " ", "M1", " ", "A5");
_root.tableau[1].splice(0, 13, "", "M1", "M1", "M1", "L3", "M1", "", "M1", "L2", "M1", "M1", "M1", "");
_root.tableau[2].splice(0, 13, "", "", "", "", "", "L3", "", "", "", "", "", "", "");
_root.tableau[3].splice(0, 13, "L2", "M1", "M1", "M1", "L3", "M1", "", "M1", "L2", "M1", "M1", "M1", "");
_root.tableau[4].splice(0, 13, "A6", "", "", "", "", "M1", "", "M1", "", "", "", "L3", "");
_root.tableau[5].splice(0, 13, "", "M1", "", "M1", "L2", "M1", "L3", "M1", "", "M1", "L2", "M1", "");
_root.tableau[6].splice(0, 13, "", "M1", "", "M1", "", "", "", "Y3", "", "M1", "V1", "M1", "L2");
_root.tableau[7].splice(0, 13, "", "M1", "L2", "M1", "", "M1", "L2", "M1", "", "M1", "L2", "M1", "");
_root.tableau[8].splice(0, 13, "", "L3", "", "", "A4", "M1", "", "M1", "", "", "", "L3", "");
_root.tableau[9].splice(0, 13, "L3", "M1", "M1", "M1", "L3", "M1", "", "M1", "L3", "M1", "M1", "M1", "");
_root.tableau[10].splice(0, 13, "", "", "", "", "", "", "", "L2", "", "", "", "", "");
_root.tableau[11].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "L3", "M1", "", "M1", "M1", "M1", "");
_root.tableau[12].splice(0, 13, "A6", "", "M1", "", "", "L2", "", "", "", "", "M1", "", "A7");
chaine2 = "K3,C2,D2,C3,D3,E3,F3,U3,c2,d2,d2,g1,Q3,O2";
chaine = "";
_root.bgr = 7;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 14) {
_root.tableau[0].splice(0, 13, "J1", "", "", "L2", "A7", "", "", "", "", "M1", "", "L3", "V2");
_root.tableau[1].splice(0, 13, "", "M1", "", "M1", "", "M1", "M1", "M1", "", "L3", "", "M1", "M1");
_root.tableau[2].splice(0, 13, "", "", "", "M1", "", "L2", "", "L2", "", "M1", "", "", "");
_root.tableau[3].splice(0, 13, "L3", "M1", "M1", "M1", "M1", "M1", "", "M1", "M1", "M1", "M1", "M1", "L2");
_root.tableau[4].splice(0, 13, "", "", "", "M1", "", "L2", "", "L1", "", "M1", "", "", "");
_root.tableau[5].splice(0, 13, "", "M1", "", "L3", "", "M1", "M1", "M1", "", "", "", "M1", "");
_root.tableau[6].splice(0, 13, "L3", "M1", "", "M1", "", "", "", "", "A8", "M1", "L3", "M1", "");
_root.tableau[7].splice(0, 13, "A3", "M1", "", "L3", "", "M1", "M1", "M1", "", "", "", "M1", "");
_root.tableau[8].splice(0, 13, "", "", "", "M1", "", "L3", "", "L2", "", "M1", "", "", "");
_root.tableau[9].splice(0, 13, "L2", "M1", "M1", "M1", "M1", "M1", "A4", "M1", "M1", "M1", "M1", "M1", "L2");
_root.tableau[10].splice(0, 13, "", "A6", "", "M1", "", "L2", "", "L2", "", "M1", "", "", "");
_root.tableau[11].splice(0, 13, "M1", "M1", "", "M1", "", "M1", "M1", "M1", "", "M1", "", "M1", "");
_root.tableau[12].splice(0, 13, "", "", "", "M1", "", "", "A5", "", "", "L2", "", "", "Y2");
chaine2 = "K3,C1,C3,D2,D3,G3,Z3,O3,P3,R3,c1,c2,d3,g1,U3";
chaine = "";
_root.bgr = 8;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 15) {
_root.tableau[0].splice(0, 13, "", "", "", "M1", "A5", "", "", "", "", "M1", "", "L2", "");
_root.tableau[1].splice(0, 13, "", "M1", "", "M1", "", "M1", "W3", "M1", "", "M1", "", "M1", "");
_root.tableau[2].splice(0, 13, "", "", "A3", "M1", "", "", "", "", "", "M1", "", "", "");
_root.tableau[3].splice(0, 13, "L3", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "L3", "M1", "L3");
_root.tableau[4].splice(0, 13, "", "", "", "M1", "", "", "", "", "", "M1", "", "", "");
_root.tableau[5].splice(0, 13, "", "M1", "", "L3", "", "M1", "M1", "M1", "", "L3", "", "M1", "");
_root.tableau[6].splice(0, 13, "J1", "M1", "", "M1", "", "L3", "Y2", "L3", "A6", "M1", "A7", "W1", "");
_root.tableau[7].splice(0, 13, "", "M1", "", "L3", "", "M1", "M1", "M1", "", "L3", "", "M1", "");
_root.tableau[8].splice(0, 13, "", "", "", "M1", "", "", "", "", "", "M1", "", "", "");
_root.tableau[9].splice(0, 13, "L3", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "L3", "M1", "L3");
_root.tableau[10].splice(0, 13, "", "", "", "M1", "A4", "", "", "", "", "M1", "", "", "");
_root.tableau[11].splice(0, 13, "", "M1", "", "M1", "", "M1", "W2", "M1", "", "M1", "", "M1", "");
_root.tableau[12].splice(0, 13, "", "", "", "M1", "", "", "", "", "", "M1", "", "L2", "");
chaine2 = "K3,C2,C3,D2,D3,c2,d2,E3,F2,I2,R3,g3";
chaine = "";
_root.bgr = 8;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 16) {
_root.tableau[0].splice(0, 13, "Y5", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "M1", "", "M1");
_root.tableau[1].splice(0, 13, "", "L2", "", "L2", "", "L2", "", "", "A7", "", "", "", "");
_root.tableau[2].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "M1", "", "M1");
_root.tableau[3].splice(0, 13, "", "", "", "", "", "", "", "", "", "L2", "", "", "");
_root.tableau[4].splice(0, 13, "M1", "L2", "M1", "", "M1", "L2", "M1", "L3", "M1", "M1", "M1", "M1", "L2");
_root.tableau[5].splice(0, 13, "M1", "", "M1", "", "M1", "", "M1", "", "", "A2", "", "", "");
_root.tableau[6].splice(0, 13, "M1", "J1", "M1", "L2", "M1", "A6", "M1", "M1", "M1", "", "M1", "M1", "");
_root.tableau[7].splice(0, 13, "M1", "", "M1", "", "M1", "", "M1", "", "", "", "A3", "", "");
_root.tableau[8].splice(0, 13, "M1", "L2", "M1", "", "M1", "L2", "M1", "L3", "M1", "M1", "M1", "M1", "L2");
_root.tableau[9].splice(0, 13, "", "", "", "", "", "", "", "", "", "", "", "", "");
_root.tableau[10].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "M1", "", "M1");
_root.tableau[11].splice(0, 13, "", "L2", "", "L2", "", "L2", "", "", "A8", "", "", "", "");
_root.tableau[12].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "M1", "", "M1");
chaine2 = "K3,D2,C2,C3,D3,z1,c1,d2,R3,F2";
chaine = "";
_root.bgr = 9;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 17) {
_root.tableau[0].splice(0, 13, "J1", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "M1", "", "M1");
_root.tableau[1].splice(0, 13, "", "M1", "", "M1", "", "L2", "", "L3", "", "L2", "", "A9", "");
_root.tableau[2].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "M1", "", "M1");
_root.tableau[3].splice(0, 13, "", "", "", "", "", "", "", "L3", "", "", "", "", "");
_root.tableau[4].splice(0, 13, "M1", "L2", "M1", "", "M1", "L2", "M1", "L2", "M1", "M1", "M1", "M1", "L2");
_root.tableau[5].splice(0, 13, "M1", "L3", "M1", "", "M1", "", "M1", "L2", "", "A6", "", "", "");
_root.tableau[6].splice(0, 13, "M1", "V2", "M1", "L3", "M1", "A5", "M1", "M1", "M1", "", "M1", "M1", "M1");
_root.tableau[7].splice(0, 13, "M1", "L3", "M1", "", "M1", "", "M1", "L2", "", "", "", "", "");
_root.tableau[8].splice(0, 13, "M1", "L2", "M1", "", "M1", "L2", "M1", "L2", "M1", "M1", "M1", "M1", "L2");
_root.tableau[9].splice(0, 13, "", "", "", "", "", "", "", "L3", "A2", "", "", "", "");
_root.tableau[10].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "M1", "", "M1");
_root.tableau[11].splice(0, 13, "", "M1", "", "M1", "", "L2", "", "L3", "", "L2", "", "Y3", "");
_root.tableau[12].splice(0, 13, "", "M1", "A7", "M1", "", "M1", "", "M1", "", "M1", "M1", "", "M1");
chaine2 = "K3,D2,C2,C3,D3,Z3,G3,I2,R3,Q2,d3,d2,c1,e2";
chaine = "";
_root.bgr = 9;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 18) {
_root.tableau[0].splice(0, 13, "", " ", "", " ", "", " ", "A5", " ", "", " ", "", " ", "");
_root.tableau[1].splice(0, 13, "", "M1", "M1", "M1", "M1", "M1", "L3", "M1", "M1", "M1", "M1", "M1", "");
_root.tableau[2].splice(0, 13, "", "M1", "", "", "", "", "", "", "", "", "", "M1", "");
_root.tableau[3].splice(0, 13, "", "M1", "", "M1", "M1", "M1", "L2", "M1", "M1", "M1", "", "M1", "");
_root.tableau[4].splice(0, 13, "", "M1", "", "M1", "", "", "A9", "", "", "M1", "", "M1", "");
_root.tableau[5].splice(0, 13, "", "M1", "", "M1", "", "M1", "L3", "M1", "", "M1", "", "M1", "");
_root.tableau[6].splice(0, 13, "A7", "L2", "", "L3", "", "L2", "Y2", "L2", "", "L3", "J1", "L2", "A7");
_root.tableau[7].splice(0, 13, "", "M1", "", "M1", "", "M1", "L3", "M1", "", "M1", "", "M1", "");
_root.tableau[8].splice(0, 13, "", "M1", "", "M1", "", "", "A9", "", "", "M1", "", "M1", "");
_root.tableau[9].splice(0, 13, "", "M1", "", "M1", "M1", "M1", "L2", "M1", "M1", "M1", "", "M1", "");
_root.tableau[10].splice(0, 13, "", "M1", "", "", "", "", "", "", "", "", "", "M1", "");
_root.tableau[11].splice(0, 13, "", "M1", "M1", "M1", "M1", "M1", "L3", "M1", "M1", "M1", "M1", "M1", "");
_root.tableau[12].splice(0, 13, "", "", "", "", "", "", "A5", "", "", "", "", "", "");
chaine2 = "K3,C2,C3,D2,C3,I2,c1,c3,d2,d3,R2";
chaine = "";
_root.bgr = 2;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 19) {
_root.tableau[0].splice(0, 13, "", "", "", "", "M1", "", "M1", "", "M1", "", "", "", "");
_root.tableau[1].splice(0, 13, "L3", "M1", "M1", "", "", "", "A5", "", "M1", "", "M1", "M1", "");
_root.tableau[2].splice(0, 13, "", "", "", "", "M1", "", "M1", "", "M1", "", "W1", "M1", "A4");
_root.tableau[3].splice(0, 13, "L2", "M1", "M1", "L3", "M1", "", "", "", "M1", "L2", "M1", "M1", "L3");
_root.tableau[4].splice(0, 13, "", "", "", "", "M1", "", "M1", "", "M1", "", "", "", "");
_root.tableau[5].splice(0, 13, "M1", "M1", "M1", "", "L2", "", "", "", "L2", "", "M1", "M1", "M1");
_root.tableau[6].splice(0, 13, "Y2", "", "", "W2", "M1", "M1", "M1", "M1", "M1", "", "", "", "J1");
_root.tableau[7].splice(0, 13, "M1", "M1", "M1", "", "L2", "", "", "", "L2", "", "M1", "M1", "M1");
_root.tableau[8].splice(0, 13, "", "", "A1", "", "M1", "", "M1", "", "M1", "", "", "", "");
_root.tableau[9].splice(0, 13, "L2", "M1", "M1", "L2", "M1", "", "A8", "", "M1", "L3", "M1", "M1", "L3");
_root.tableau[10].splice(0, 13, "", "", "", "", "M1", "", "M1", "", "M1", "", "W3", "M1", "");
_root.tableau[11].splice(0, 13, "", "M1", "M1", "", "", "", "", "", "M1", "", "M1", "M1", "");
_root.tableau[12].splice(0, 13, "", "", "", "", "M1", "", "M1", "", "M1", "", "", "A6", "");
chaine2 = "K3,C2,C3,D2,D3,F3,E3,c1,c2,d2,z1,R3,Q2";
chaine = "";
_root.bgr = 3;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 20) {
_root.tableau[0].splice(0, 13, "", "", "", "", "", "", "M1", "A7", "M1", "", "", "", "");
_root.tableau[1].splice(0, 13, "M1", "M1", "M1", "M1", "M1", "", "M1", "", "M1", "", "M1", "L2", "M1");
_root.tableau[2].splice(0, 13, "A5", "", "", "", "L3", "", "L3", "", "M1", "", "", "", "");
_root.tableau[3].splice(0, 13, "M1", "M1", "M1", "M1", "M1", "", "M1", "", "M1", "", "M1", "L2", "M1");
_root.tableau[4].splice(0, 13, "A5", "", "", "", "L3", "", "L3", "", "M1", "", "", "", "");
_root.tableau[5].splice(0, 13, "M1", "M1", "M1", "M1", "M1", "", "M1", "L3", "M1", "", "M1", "L2", "M1");
_root.tableau[6].splice(0, 13, "W1", "V5", "", "", "L3", "J1", "", "", "M1", "", "", "W2", "Y5");
_root.tableau[7].splice(0, 13, "M1", "M1", "M1", "M1", "M1", "", "M1", "L3", "M1", "", "M1", "L2", "M1");
_root.tableau[8].splice(0, 13, "A5", "", "", "", "L3", "", "L3", "", "M1", "", "", "", "");
_root.tableau[9].splice(0, 13, "M1", "M1", "M1", "M1", "M1", "", "M1", "", "M1", "", "M1", "L2", "M1");
_root.tableau[10].splice(0, 13, "A5", "", "", "", "L3", "", "L3", "", "M1", "", "", "", "");
_root.tableau[11].splice(0, 13, "M1", "M1", "M1", "M1", "M1", "", "M1", "", "M1", "", "M1", "L2", "M1");
_root.tableau[12].splice(0, 13, "", "", "", "", "", "", "M1", "A7", "M1", "", "", "", "");
chaine2 = "K3,C2,C3,D2,D3,G3,P3,Q3,R2,Z1,c1,d2,c2,d3,e2,U3";
chaine = "";
_root.bgr = 4;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 21) {
_root.tableau[0].splice(0, 13, "", "", "", "", "", "M1", "", "M1", "", "", "", "", "J1");
_root.tableau[1].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "A6", "M1", "", "M1", "M1", "M1", "");
_root.tableau[2].splice(0, 13, "", "L2", "", "M1", "", "M1", "", "M1", "", "M1", "", "L2", "");
_root.tableau[3].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "L2", "M1", "", "M1", "M1", "M1", "");
_root.tableau[4].splice(0, 13, "", "", "", "", "", "", "", "", "", "", "", "", "");
_root.tableau[5].splice(0, 13, "M1", "M1", "M1", "M1", "", "M1", "L2", "M1", "", "M1", "M1", "M1", "M1");
_root.tableau[6].splice(0, 13, "", "A6", "", "L2", "", "L2", "Y6", "L2", "", "L2", "A6", "", "");
_root.tableau[7].splice(0, 13, "M1", "M1", "M1", "M1", "", "M1", "L2", "M1", "", "M1", "M1", "M1", "M1");
_root.tableau[8].splice(0, 13, "", "", "", "", "", "", "", "", "", "", "", "", "");
_root.tableau[9].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "L2", "M1", "", "M1", "M1", "M1", "");
_root.tableau[10].splice(0, 13, "", "L2", "", "M1", "", "M1", "", "M1", "", "M1", "", "L2", "");
_root.tableau[11].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "A6", "M1", "", "M1", "M1", "M1", "");
_root.tableau[12].splice(0, 13, "", "", "", "", "", "M1", "", "M1", "", "", "", "", "");
chaine2 = "K2,C2,D2,G2,F2,c2,d3,g1";
chaine = "";
_root.bgr = 4;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 22) {
_root.tableau[0].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "", "", "", "");
_root.tableau[1].splice(0, 13, "", "M1", "", "M1", "A3", "M1", "", "M1", "", "M1", "M1", "M1", "");
_root.tableau[2].splice(0, 13, "", "L2", "", "L2", "", "L2", "", "L2", "", "L1", "A3", "M1", "");
_root.tableau[3].splice(0, 13, "", "M1", "", "M1", "L2", "M1", "", "M1", "", "M1", "M1", "M1", "");
_root.tableau[4].splice(0, 13, "L3", "M1", "", "", "", "", "", "M1", "", "", "", "", "");
_root.tableau[5].splice(0, 13, "L2", "M1", "", "M1", "L2", "M1", "", "M1", "", "M1", "M1", "M1", "");
_root.tableau[6].splice(0, 13, "Y2", "L3", "A9", "L3", "A5", "L3", "", "L3", "J1", "L2", "", "M1", "A7");
_root.tableau[7].splice(0, 13, "L2", "M1", "", "M1", "L2", "M1", "", "M1", "", "M1", "M1", "M1", "");
_root.tableau[8].splice(0, 13, "L3", "M1", "", "", "", "", "", "M1", "", "", "", "", "");
_root.tableau[9].splice(0, 13, "", "M1", "", "M1", "L3", "M1", "", "M1", "", "M1", "M1", "M1", "");
_root.tableau[10].splice(0, 13, "", "L2", "", "L2", "", "L2", "", "L2", "", "L2", "V1", "M1", "");
_root.tableau[11].splice(0, 13, "", "M1", "", "M1", "A6", "M1", "", "M2", "", "M1", "M1", "M1", "");
_root.tableau[12].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "", "", "", "");
chaine2 = "K3,C2,C3,D2,C3,c1,c3,d2,d2,I3,F2,P2,R3,U2";
chaine = "";
_root.bgr = 3;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 23) {
_root.tableau[0].splice(0, 13, "J1", "M1", "", "", "", "L3", "", "L3", "", "L3", "", "M1", "W1");
_root.tableau[1].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "L2");
_root.tableau[2].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "A4");
_root.tableau[3].splice(0, 13, "", "M1", "", "L2", "", "M1", "A9", "M1", "A2", "L2", "", "M1", "");
_root.tableau[4].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[5].splice(0, 13, "", "", "", "M1", "", "L3", "", "L3", "", "M1", "", "", "");
_root.tableau[6].splice(0, 13, "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1");
_root.tableau[7].splice(0, 13, "", "", "", "M1", "", "L3", "", "L3", "", "M1", "", "", "");
_root.tableau[8].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[9].splice(0, 13, "", "M1", "", "L2", "A7", "M1", "A5", "M1", "A9", "L2", "", "M1", "");
_root.tableau[10].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[11].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[12].splice(0, 13, "W2", "M1", "", "", "", "L3", "", "L3", "", "L3", "", "M1", "Y5");
chaine2 = "K3,C2,C3,D2,C3,c2,c3,d2,d2,E3,F2,P2,Q3";
chaine = "";
_root.bgr = 3;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 24) {
_root.tableau[0].splice(0, 13, "W1", "M1", "", "M1", "", "", "", "A5", "", "", "", "", "");
_root.tableau[1].splice(0, 13, "L2", "M1", "", "M1", "M1", "L2", "M1", "M1", "M1", "L2", "M1", "M1", "");
_root.tableau[2].splice(0, 13, "", "L2", "A7", "M1", "", "L2", "", "M1", "", "", "", "M1", "");
_root.tableau[3].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "A2", "", "M1", "", "L3", "");
_root.tableau[4].splice(0, 13, "", "M1", "", "M1", "", "M1", "M1", "L2", "M1", "M1", "M1", "L2", "M1");
_root.tableau[5].splice(0, 13, "", "M1", "L3", "M1", "", "", "", "", "", "", "", "", "W3");
_root.tableau[6].splice(0, 13, "", "J1", "", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1");
_root.tableau[7].splice(0, 13, "", "M1", "L3", "M1", "W2", "", "", "", "", "", "", "", "A9");
_root.tableau[8].splice(0, 13, "", "M1", "", "M1", "M1", "L2", "M1", "M1", "M1", "L2", "M1", "M1", "");
_root.tableau[9].splice(0, 13, "", "M1", "", "M1", "", "L2", "", "M1", "", "", "", "M1", "");
_root.tableau[10].splice(0, 13, "", "L2", "A3", "M1", "", "M1", "", "A6", "", "M1", "", "L3", "");
_root.tableau[11].splice(0, 13, "L2", "M1", "", "M1", "", "M1", "M1", "L2", "M1", "M1", "M1", "L2", "M1");
_root.tableau[12].splice(0, 13, "V5", "M1", "", "M1", "", "L3", "", "", "", "", "", "", "Y3");
chaine2 = "K3,C2,C3,D2,C3,c2,c3,d2,d2,g1,I3,C2,P2,R3,U2";
chaine = "";
_root.bgr = 3;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 25) {
_root.tableau[0].splice(0, 13, "", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "");
_root.tableau[1].splice(0, 13, "M1", "J1", "", "", "L2", "A6", "L2", "A4", "L2", "", "L2", "W1", "M1");
_root.tableau[2].splice(0, 13, "", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "");
_root.tableau[3].splice(0, 13, "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1");
_root.tableau[4].splice(0, 13, "", "", "", "", "", "M1", "", "M1", "", "", "", "", "");
_root.tableau[5].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "", "M1", "", "M1", "M1", "M1", "");
_root.tableau[6].splice(0, 13, "", "L1", "W3", "L2", "A2", "L2", "A7", "L2", "", "L2", "Y2", "L3", "");
_root.tableau[7].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "", "M1", "", "M1", "M1", "M1", "");
_root.tableau[8].splice(0, 13, "", "", "", "", "", "M1", "", "M1", "", "", "", "", "");
_root.tableau[9].splice(0, 13, "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1", "M1");
_root.tableau[10].splice(0, 13, "", "", "", "", "L3", "", "L3", "", "L3", "", "", "", "");
_root.tableau[11].splice(0, 13, "M1", "W2", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "A9", "M1");
_root.tableau[12].splice(0, 13, "A5", "", "", "", "L3", "", "L3", "", "L3", "", "", "", "");
chaine2 = "K3,C2,C3,D2,C3,c2,c3,d2,d2,E3,F2,P2,Q3";
chaine = "";
_root.bgr = 3;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 50) {
_root.tableau[0].splice(0, 13, "J1", " ", "", " ", "", " ", "", "", "", " ", "", " ", "");
_root.tableau[1].splice(0, 13, " ", "M1", "L1", "M1", "", "M1", "", "M1", "", "M1", "L1", "M1", "");
_root.tableau[2].splice(0, 13, "", "L1", "L1", "", "L1", "", "L1", "", "L1", "", "L1", "L1", "");
_root.tableau[3].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[4].splice(0, 13, "", "", "L1", "", "", "", "A1", "", "", "", "L1", "", "");
_root.tableau[5].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[6].splice(0, 13, "", "", "", "", "", "", "L1", "", "", "L1", "L1", "", "");
_root.tableau[7].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[8].splice(0, 13, "", "L1", "L1", "", "", "", "A1", "", "", "", "L1", "L1", "");
_root.tableau[9].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[10].splice(0, 13, "", "", "", "", "L1", "", "", "", "L1", "", "", "", "");
_root.tableau[11].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[12].splice(0, 13, "", "", "", "", "", "", "", "", "", "", "", "", "J2");
chaine2 = "C1,C1,C1,C1,C1,D1,D1,D1,D1,D1";
chaine = "";
_root.bgr = 2;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 51) {
_root.tableau[0].splice(0, 13, "J1", " ", "", " ", "", " ", "", "", "", " ", "", " ", "");
_root.tableau[1].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[2].splice(0, 13, "", "L1", "", "", "", "L1", "", "", "", "L1", "", "", "");
_root.tableau[3].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[4].splice(0, 13, "", "", "", "L1", "", "", "", "L1", "", "", "", "L1", "");
_root.tableau[5].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[6].splice(0, 13, "", "L1", "", "", "", "L1", "", "", "A1", "L1", "", "", "");
_root.tableau[7].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[8].splice(0, 13, "", "", "", "L1", "", "", "A1", "L1", "", "", "", "L1", "");
_root.tableau[9].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[10].splice(0, 13, "", "L1", "", "", "", "L1", "", "", "", "L1", "", "", "");
_root.tableau[11].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[12].splice(0, 13, "", "", "", "", "", "", "", "", "", "", "", "", "J2");
chaine2 = "C1,C1,C1,C1,C1,D1,D1,D1,D1,D1";
chaine = "";
_root.bgr = 3;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 52) {
_root.tableau[0].splice(0, 13, "J1", " ", "", " ", "", " ", "", "", "", " ", "", " ", "");
_root.tableau[1].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[2].splice(0, 13, "", "L1", "", "", "", "L1", "", "", "", "L1", "", "L1", "");
_root.tableau[3].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[4].splice(0, 13, "", "L1", "", "L1", "", "L1", "", "L1", "", "L1", "", "L1", "");
_root.tableau[5].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[6].splice(0, 13, "", "", "", "L1", "", "L1", "", "L1", "A1", "", "", "L1", "");
_root.tableau[7].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[8].splice(0, 13, "", "L1", "", "L1", "", "L1", "", "L1", "", "L1", "", "L1", "");
_root.tableau[9].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[10].splice(0, 13, "", "L1", "", "", "", "L1", "", "", "", "L1", "", "L1", "");
_root.tableau[11].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[12].splice(0, 13, "J2", "", "", "", "", "", "", "", "", "", "", "", "A2");
chaine2 = "C1,C1,C1,C1,C1,D1,D1,D1,D1,D1";
chaine = "";
_root.bgr = 4;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 53) {
_root.tableau[0].splice(0, 13, "J1", " ", "", "L1", "", "L1", "", "L1", "", " ", "", " ", "");
_root.tableau[1].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "L1", "M1", "");
_root.tableau[2].splice(0, 13, "", "", "", "L1", "", "L1", "", "L1", "", "", "A2", "", "");
_root.tableau[3].splice(0, 13, "L1", "M1", "L1", "M1", "", "M1", "", "M1", "", "M1", "L1", "M1", "");
_root.tableau[4].splice(0, 13, "", "", "", "", "", "L1", "", "L1", "", "", "", "", "");
_root.tableau[5].splice(0, 13, "L1", "M1", "L1", "M1", "L1", "M1", "", "M1", "L1", "M1", "L1", "M1", "L1");
_root.tableau[6].splice(0, 13, "", "", "", "", "", "", "", "", "", "", "", "", "");
_root.tableau[7].splice(0, 13, "L1", "M1", "L1", "M1", "L1", "M1", "", "M1", "L1", "M1", "L1", "M1", "L1");
_root.tableau[8].splice(0, 13, "", "", "", "", "", "L1", "", "L1", "", "", "", "", "");
_root.tableau[9].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "L1", "M1", "L1");
_root.tableau[10].splice(0, 13, "", "L1", "A2", "L1", "", "L1", "", "L1", "", "L1", "", "", "");
_root.tableau[11].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[12].splice(0, 13, "", "", "", "", "", "L1", "", "L1", "", "L1", "", "", "J2");
chaine2 = "C1,C1,C1,C1,C1,D1,D1,D1,D1,D1";
chaine = "";
_root.bgr = 5;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 54) {
_root.tableau[0].splice(0, 13, "", " ", "", "M1", "", "M1", "", " ", "", " ", "", " ", "");
_root.tableau[1].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[2].splice(0, 13, "", "L1", "", "", "", "L1", "", "M1", "", "L1", "A3", "", "");
_root.tableau[3].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "", "M1", "", "M1", "M1", "M1", "");
_root.tableau[4].splice(0, 13, "", "M1", "", "", "", "L1", "0", "0", "", "", "", "M1", "");
_root.tableau[5].splice(0, 13, "", "M1", "", "M1", "", "M1", "0", "M1", "", "M1", "", "M1", "");
_root.tableau[6].splice(0, 13, "A2", "L1", "", "L1", "", "M1", "J1", "M1", "", "L1", "", "L1", "");
_root.tableau[7].splice(0, 13, "", "M1", "", "M1", "", "M1", "0", "M1", "", "M1", "", "M1", "");
_root.tableau[8].splice(0, 13, "", "M1", "", "", "", "L1", "0", "0", "", "", "", "M1", "");
_root.tableau[9].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "", "M1", "", "M1", "M1", "M1", "");
_root.tableau[10].splice(0, 13, "", "L1", "", "", "", "L1", "", "M1", "", "L1", "", "", "");
_root.tableau[11].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[12].splice(0, 13, "", "", "", "M1", "", "M1", "", "", "", "", "", "", "J2");
chaine2 = "C1,C1,C1,C1,C1,D1,D1,D1,D1,D1";
chaine = "";
_root.bgr = 6;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 55) {
_root.tableau[0].splice(0, 13, "", " ", "", "M1", "", "M1", "", " ", "", " ", "", " ", "");
_root.tableau[1].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[2].splice(0, 13, "", "", "", "", "", "", "", "M1", "", "", "", "", "");
_root.tableau[3].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "L1", "M1", "", "M1", "M1", "M1", "");
_root.tableau[4].splice(0, 13, "", "M1", "", "L1", "", "L1", "0", "L1", "", "L1", "", "M1", "");
_root.tableau[5].splice(0, 13, "", "M1", "", "M1", "", "M1", "0", "M1", "", "M1", "", "M1", "");
_root.tableau[6].splice(0, 13, "A2", "L1", "", "L1", "", "M1", "J1", "M1", "", "L1", "A3", "L1", "");
_root.tableau[7].splice(0, 13, "", "M1", "", "M1", "", "M1", "0", "M1", "", "M1", "", "M1", "");
_root.tableau[8].splice(0, 13, "", "M1", "", "L1", "", "L1", "0", "L1", "", "L1", "", "M1", "");
_root.tableau[9].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "L1", "M1", "", "M1", "M1", "M1", "");
_root.tableau[10].splice(0, 13, "", "", "", "", "", "", "", "M1", "", "", "A2", "", "");
_root.tableau[11].splice(0, 13, "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[12].splice(0, 13, "", "", "", "M1", "", "M1", "", "", "", "", "", "", "J2");
chaine2 = "C1,C1,C1,C1,C1,D1,D1,D1,D1,D1";
chaine = "";
_root.bgr = 7;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 56) {
_root.tableau[0].splice(0, 13, "A3", "", "", "", "", "M1", "", "M1", "", "", "", "", "A2");
_root.tableau[1].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "", "M1", "", "M1", "M1", "M1", "");
_root.tableau[2].splice(0, 13, "", "M1", "", "L1", "", "", "", "", "", "L1", "", "M1", "");
_root.tableau[3].splice(0, 13, "", "M1", "", "M1", "", "M1", "M1", "M1", "", "M1", "M1", "M1", "");
_root.tableau[4].splice(0, 13, "", "L1", "", "M1", "", "M1", "", "", "", "L1", "", "L1", "");
_root.tableau[5].splice(0, 13, "", "M1", "", "L1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[6].splice(0, 13, "L2", "M1", "", "M1", "A1", "L2", "L2", "M1", "M1", "M1", "M1", "M1", "L2");
_root.tableau[7].splice(0, 13, "", "M1", "", "L1", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[8].splice(0, 13, "", "L1", "", "M1", "", "M1", "", "", "", "L1", "", "L1", "");
_root.tableau[9].splice(0, 13, "", "M1", "", "M1", "", "M1", "M1", "M1", "", "M1", "M1", "M1", "0");
_root.tableau[10].splice(0, 13, "", "M1", "", "L1", "", "", "", "", "", "L1", "", "M1", "0");
_root.tableau[11].splice(0, 13, "", "M1", "M1", "M1", "", "M1", "M1", "M1", "", "M1", "M1", "M1", "0");
_root.tableau[12].splice(0, 13, "A3", "", "", "", "", "", "M1", "", "0", "0", "0", "0", "J1");
chaine2 = "C1,C1,C1,C1,C1,D1,D1,D1,D1,D1";
chaine = "";
_root.bgr = 8;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 57) {
_root.tableau[0].splice(0, 13, "", "", "", "", "", "M1", "", "M1", "", "", "", "", "A2");
_root.tableau[1].splice(0, 13, "", "M1", "M1", "M1", "L2", "M1", "", "M1", "L2", "M1", "M1", "M1", "");
_root.tableau[2].splice(0, 13, "", "M1", "", "", "", "", "", "", "", "", "", "M1", "");
_root.tableau[3].splice(0, 13, "", "M1", "", "M1", "L2", "M1", "M1", "M1", "L2", "M1", "M1", "M1", "");
_root.tableau[4].splice(0, 13, "", "L2", "", "M1", "", "M1", "", "", "", "", "", "L2", "");
_root.tableau[5].splice(0, 13, "", "M1", "", "L2", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[6].splice(0, 13, "", "M1", "A2", "M1", "A1", "L2", "A3", "M1", "M1", "M1", "M1", "M1", "");
_root.tableau[7].splice(0, 13, "", "M1", "", "L2", "", "M1", "", "M1", "", "M1", "", "M1", "");
_root.tableau[8].splice(0, 13, "", "L2", "", "M1", "", "M1", "", "", "", "", "", "L2", "");
_root.tableau[9].splice(0, 13, "", "M1", "", "M1", "L2", "M1", "M1", "M1", "L2", "M1", "M1", "M1", "0");
_root.tableau[10].splice(0, 13, "", "M1", "", "", "", "", "", "", "", "", "", "M1", "0");
_root.tableau[11].splice(0, 13, "", "M1", "M1", "M1", "L2", "M1", "M1", "M1", "L2", "M1", "M1", "M1", "0");
_root.tableau[12].splice(0, 13, "A3", "", "", "", "", "", "M1", "", "0", "0", "0", "0", "J1");
chaine2 = "C1,C1,C1,C1,C1,D1,D1,D1,D1,D1";
chaine = "";
_root.bgr = 9;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 58) {
_root.tableau[0].splice(0, 13, "", "", "", "", "", "", "", "", "", "", "", "", "");
_root.tableau[1].splice(0, 13, "", "M1", "M1", "M1", "M1", "M1", "", "M1", "M1", "M1", "M1", "M1", "");
_root.tableau[2].splice(0, 13, "", "M1", "", "A3", "", "M1", "", "M1", "", "", "", "M1", "");
_root.tableau[3].splice(0, 13, "", "L2", "", "M1", "", "M1", "L2", "M1", "", "M1", "A1", "L2", "");
_root.tableau[4].splice(0, 13, "", "M1", "", "", "", "M1", "0", "M1", "", "", "", "M1", "");
_root.tableau[5].splice(0, 13, "", "M1", "M1", "M1", "M1", "M1", "0", "M1", "M1", "M1", "M1", "M1", "");
_root.tableau[6].splice(0, 13, "", "", "", "L2", "0", "0", "J1", "0", "0", "L2", "", "", "");
_root.tableau[7].splice(0, 13, "", "M1", "M1", "M1", "M1", "M1", "0", "M1", "M1", "M1", "M1", "M1", "");
_root.tableau[8].splice(0, 13, "", "M1", "", "A4", "", "M1", "0", "M1", "", "", "", "M1", "");
_root.tableau[9].splice(0, 13, "", "L2", "", "M1", "", "M1", "L2", "M1", "", "M1", "", "L2", "");
_root.tableau[10].splice(0, 13, "", "M1", "", "", "", "M1", "", "M1", "", "A2", "", "M1", "");
_root.tableau[11].splice(0, 13, "", "M1", "M1", "M1", "M1", "M1", "", "M1", "M1", "M1", "M1", "M1", "");
_root.tableau[12].splice(0, 13, "", "", "", "", "", "", "A5", "", "", "", "", "", "");
chaine2 = "C1,C1,C1,C1,C1,D1,D1,D1,D1,D1";
chaine = "";
_root.bgr = 2;
distribue(chaine);
distribue2(chaine2);
}
if (niveau == 59) {
_root.tableau[1].splice(0, 13, "", "M1", "M1", "M1", "M1", "M1", "L2", "M1", "M1", "M1", "M1", "M1", "");
_root.tableau[2].splice(0, 13, "", "M1", "", "A3", "", "M1", "", "M1", "", "", "", "M1", "");
_root.tableau[3].splice(0, 13, "", "M1", "", "M1", "", "L2", "", "L2", "", "M1", "Y1", "M1", "");
_root.tableau[4].splice(0, 13, "", "M1", "", "", "", "M1", "0", "M1", "", "", "", "M1", "");
_root.tableau[5].splice(0, 13, "", "M1", "M1", "L2", "M1", "M1", "0", "M1", "M1", "L2", "M1", "M1", "");
_root.tableau[6].splice(0, 13, "", "L2", "", "", "0", "0", "J1", "0", "0", "", "", "L2", "");
_root.tableau[7].splice(0, 13, "", "M1", "M1", "L2", "M1", "M1", "0", "M1", "M1", "L2", "M1", "M1", "");
_root.tableau[8].splice(0, 13, "", "M1", "", "A4", "", "M1", "0", "M1", "", "", "", "M1", "");
_root.tableau[9].splice(0, 13, "", "M1", "", "M1", "", "L2", "", "L2", "", "M1", "", "M1", "");
_root.tableau[10].splice(0, 13, "", "M1", "", "", "", "M1", "", "M1", "", "A2", "", "M1", "");
_root.tableau[11].splice(0, 13, "", "M1", "M1", "M1", "M1", "M1", "L2", "M1", "M1", "M1", "M1", "M1", "");
_root.tableau[12].splice(0, 13, "", "", "", "", "A5", "", "", "", "", "", "", "", "");
chaine2 = "C1,C1,C1,C1,C1,D1,D1,D1,D1,D1";
chaine = "";
_root.bgr = 3;
distribue(chaine);
distribue2(chaine2);
}
affiche();
gotoAndStop (68);
Frame 100
niveau = 49;
score = 0;
maintenant = new Date();
startTime = maintenant.getTime();
time = 0;
monstres = new Array();
pause = false;
mode2 = true;
arcade = false;
perdu = false;
if (joueurs == undefined) {
joueurs = new Array();
} else {
_root.joueur1.vies = 3;
_root.j2.vies = 3;
}
xoffset = 40;
yoffset = 40;
i = 1;
tableau = new Array(13);
i = 0;
while (i < 13) {
tableau[i] = new Array(13);
i++;
}
gotoAndPlay (80);
Frame 106
niveau = 0;
score = 0;
maintenant = new Date();
startTime = maintenant.getTime();
time = 0;
monstres = new Array();
pause = false;
mode2 = false;
arcade = true;
perdu = false;
if (joueurs == undefined) {
joueurs = new Array();
}
if (_root.joueur1 != undefined) {
_root.joueur1.vies = 3;
}
if (_root.j2 != undefined) {
delete _root.j2;
}
xoffset = 40;
yoffset = 40;
i = 1;
tableau = new Array(13);
i = 0;
while (i < 13) {
tableau[i] = new Array(13);
i++;
}
gotoAndPlay (80);
Frame 111
_root.detruitObjects();
maintenant = new Date();
_root.time = maintenant.getTime() - _root.startTime;
date2 = new Date(0, 0, 0, 0, 0, 0, maintenant.getTime() - _root.startTime);
_root.time = (((date2.getHours() + ":") + date2.getMinutes()) + ":") + date2.getSeconds();
if (mode2) {
if (_root.joueur1.vies <= 0) {
gotoAndPlay (173);
} else {
gotoAndPlay (163);
}
} else {
gotoAndPlay (150);
}
Frame 116
stop();
Frame 150
scorefin = _root.score;
Frame 160
stop();
Frame 161
stop();
Frame 162
stop();
Frame 172
stop();
stop();
Frame 182
stop();
stop();
Frame 183
scorefin = _root.score;
Frame 192
stop();
Instance of Symbol 603 MovieClip in Frame 193
onClipEvent (mouseDown) {
gotoAndStop (193);
}
Frame 212
stop();
Frame 213
scorefin = _root.score;
Frame 222
stop();
stop();
Symbol 8 MovieClip Frame 4
gotoAndPlay (1);
Symbol 8 MovieClip Frame 8
gotoAndPlay (5);
Symbol 8 MovieClip Frame 12
gotoAndPlay (1);
Symbol 8 MovieClip Frame 16
gotoAndPlay (13);
Symbol 26 MovieClip Frame 4
gotoAndPlay (1);
Symbol 26 MovieClip Frame 8
gotoAndPlay (5);
Symbol 26 MovieClip Frame 12
gotoAndPlay (9);
Symbol 26 MovieClip Frame 16
gotoAndPlay (13);
Symbol 7 MovieClip Frame 1
halo.gotoAndStop(1);
stop();
piedbonhomme.gotoAndPlay("piedface");
Symbol 7 MovieClip Frame 2
piedbonhomme.gotoAndPlay("piedleft");
Symbol 7 MovieClip Frame 3
piedbonhomme.gotoAndPlay("pieddos");
Symbol 7 MovieClip Frame 4
piedbonhomme.gotoAndPlay("piedright");
Symbol 7 MovieClip Frame 15
stop();
Symbol 7 MovieClip Frame 27
stop();
Symbol 7 MovieClip Frame 43
stop();
Symbol 7 MovieClip Frame 52
stop();
Symbol 7 MovieClip Frame 68
stop();
Symbol 6 MovieClip Frame 1
function init() {
force = _force_init;
bombes = _bombes_init;
bombes_actives = 0;
_vitesse = 50;
_armure = false;
_alpha = 100;
joueur.halo._alpha = 0;
malusExplose = false;
malusTaille = false;
malusTouche = false;
malusBombes = false;
nextMove = getTimer();
direction = "S";
}
function deplace(varx, vary) {
_x = varx;
_y = vary;
}
function peut_deplacer(chaine) {
switch (chaine.charAt(0)) {
case "M" :
return(false);
case "L" :
return(false);
case "B" :
return(false);
case "C" :
case "D" :
case "E" :
case "F" :
case "G" :
case "H" :
case "I" :
eval ("_root." + chaine).mange(this);
return(true);
case "K" :
eval ("_root." + chaine).explose();
return(true);
case "c" :
case "d" :
case "e" :
case "g" :
case "z" :
eval ("_root." + chaine).active();
eval (_root.interface).refresh();
return(true);
case "O" :
case "P" :
case "Q" :
case "R" :
eval ("_root." + chaine).mange(this);
return(true);
case "U" :
_root.libson.gotoAndPlay("bonus");
i = 0;
while (i < _root.coffres.length) {
eval ("_root." + _root.coffres[i]).open();
i++;
}
eval ("_root." + chaine).explose();
return(true);
case "V" :
if (eval ("_root." + chaine)._open) {
eval ("_root." + chaine).mange(this);
return(true);
}
return(false);
case "Z" :
eval ("_root." + chaine).mange(this);
return(true);
}
return(true);
}
function haut() {
varx = _x;
vary = _y - pas;
if (direction != "H") {
joueur.gotoAndStop("H");
}
x = pos_x();
y = Math.floor((vary - _root.yoffset) / 40);
if (y >= 0) {
if (y != pos_y()) {
if (peut_deplacer(_root.tableau[x][y])) {
deplace((x * 40) + _root.xoffset, vary);
}
} else {
deplace(varx, vary);
}
}
direction = "H";
}
function bas() {
if (direction != "B") {
joueur.gotoAndStop("B");
}
direction = "B";
varx = _x;
vary = _y + pas;
x = pos_x();
y = Math.floor(((vary + 39) - _root.yoffset) / 40);
if (y <= 12) {
if (y != pos_y()) {
if (peut_deplacer(_root.tableau[x][y])) {
deplace((x * 40) + _root.xoffset, vary);
}
} else {
deplace(varx, vary);
}
}
}
function gauche() {
if (direction != "G") {
joueur.gotoAndStop("G");
}
direction = "G";
varx = _x - pas;
vary = _y;
y = pos_y();
x = Math.floor((varx - _root.xoffset) / 40);
if (x >= 0) {
if (x != pos_x()) {
if (peut_deplacer(_root.tableau[x][y])) {
deplace(varx, (y * 40) + _root.yoffset);
}
} else {
deplace(varx, vary);
}
}
}
function droite() {
if (direction != "D") {
joueur.gotoAndStop("D");
}
direction = "D";
varx = _x + pas;
vary = _y;
y = pos_y();
x = Math.floor(((varx + 39) - _root.xoffset) / 40);
if (x <= 12) {
if (x != pos_x()) {
if (peut_deplacer(_root.tableau[x][y])) {
deplace(varx, (y * 40) + _root.yoffset);
}
} else {
deplace(varx, vary);
}
}
}
function pos_x() {
return(Math.round((_x - _root.xoffset) / 40));
}
function pos_y() {
return(Math.round((_y - _root.yoffset) / 40));
}
function explose() {
if (!_dead) {
if (_armure) {
_armure = false;
showArmure();
} else {
telecommande = false;
vies--;
choix = Math.floor((Math.random() * 100) % 5) + 1;
joueur.gotoAndPlay("mort" + choix);
nextMove = getTimer() + 1000;
_dead = true;
}
}
}
function showArmure() {
if (_armure) {
joueur.halo._alpha = 100;
} else {
joueur.halo._alpha = 0;
}
}
function malus() {
finished = false;
while (!finished) {
switch (random(5) + 1) {
case 1 :
if (vies > 1) {
finished = true;
vies--;
}
break;
case 2 :
if (bombes > 1) {
finished = true;
bombes--;
}
break;
case 3 :
if (force > 1) {
finished = true;
force--;
}
break;
case 4 :
_vitesse = _vitesse + 50;
finished = true;
break;
case 5 :
malusBombes = true;
finished = true;
}
}
eval (_root.interface).refresh();
}
var force;
var bombes;
var pas = 8;
var _explose = false;
var nextMove;
var _vitesse;
var _armure = false;
var vies;
var direction;
stop();
Symbol 88 Button
on (release) {
_root.pause = false;
_root.aide1._alpha = 0;
_root.aide1.removeMovieClip();
}
Symbol 1 MovieClip [mc_aide] Frame 1
Symbol 1 MovieClip [mc_aide] Frame 6
stop();
Symbol 94 MovieClip Frame 1
if (this.sessionstarted != 1) {
this.arcade = new LoadVars();
this.sessionvars = new LoadVars();
this.arcade.gamename = "jamesbomb";
this.arcade.sessdo = "sessionstart";
this.arcade.sendAndLoad("arcade.php", sessionvars, "POST");
this.sessionstarted = 1;
}
if (_root.gameover == 1) {
if ((this.askpermission != 1) && (this.sessionvars.connStatus == 1)) {
this.prequestvars = new LoadVars();
this.pranswer = new LoadVars();
this.prequestvars.gametime = this.sessionvars.gametime;
this.prequestvars.fakekey = this.sessionvars.initbar;
if (_root.score != 0) {
this.prequestvars.score = _root.score;
} else {
this.prequestvars.score = -1;
}
this.prequestvars.id = this.sessionvars.lastid;
this.prequestvars.sessdo = "permrequest";
this.prequestvars.note = (this.prequestvars.id * this.prequestvars.score) * this.prequestvars.fakekey;
this.prequestvars.sendAndLoad("./arcade.php", this.pranswer, "POST");
this.askpermission = 1;
}
if ((this.pranswer.validate == 1) && (this.finalsent != 1)) {
this.burnscore = new LoadVars();
this.burnscore.microone = this.pranswer.microone;
this.burnscore.gametime = this.prequestvars.gametime;
this.burnscore.id = this.prequestvars.id;
if (_root.score == 0) {
this.burnscore.noscore = 1;
}
this.burnscore.sessdo = "burn";
this.burnscore.send("./arcade.php", "_self", "POST");
this.finalsent = 1;
}
}
Symbol 102 Button
on (release) {
gotoAndStop (116);
}
Symbol 107 Button
on (release) {
gotoAndPlay (67);
}
Symbol 113 MovieClip Frame 1
Symbol 112 MovieClip Frame 1
function explose() {
_explose = true;
}
function detruit() {
x = Math.floor((_x - _root.xoffset) / 40);
y = Math.floor((_y - _root.yoffset) / 40);
_root.tableau[x][y] = car;
eval ("_root." + parent).bombes_actives--;
this.removeMovieClip();
}
var parent;
var _explose = false;
var car;
var _remove = false;
Symbol 112 MovieClip Frame 52
function explosion() {
x = Math.floor((_x - _root.xoffset) / 40);
y = Math.floor((_y - _root.yoffset) / 40);
force = eval ("_root." + parent).force;
_root.tableau[x][y] = car;
h = 1;
while (h <= 4) {
switch (h) {
case 1 :
i = 1;
j = 0;
explosion = "exp_d";
break;
case 2 :
i = -1;
j = 0;
explosion = "exp_g";
break;
case 3 :
i = 0;
j = 1;
explosion = "exp_b";
break;
case 4 :
i = 0;
j = -1;
explosion = "exp_h";
}
cpt = 0;
while (cpt <= force) {
if (((((x + (i * cpt)) < 0) || ((x + (i * cpt)) > 12)) || ((y + (j * cpt)) < 0)) || ((y + (j * cpt)) > 12)) {
break;
}
if (length(_root.tableau[x + (i * cpt)][y + (j * cpt)]) > 0) {
eval ("_root." + _root.tableau[x + (i * cpt)][y + (j * cpt)]).explose();
break;
}
cpt++;
}
if (force < cpt) {
cpt = force;
}
eval ("this." + explosion).gotoAndStop(cpt);
cpt = 0;
while (cpt < _root.monstres.length) {
if (eval ("_root." + _root.monstres[cpt]).hitTest(eval ("this." + explosion))) {
eval ("_root." + _root.monstres[cpt]).explose();
}
cpt++;
}
cpt = 0;
while (cpt < _root.joueurs.length) {
if (eval (("_root." + _root.joueurs[cpt]) + ".joueur.contour").hitTest(eval ("this." + explosion))) {
eval ("_root." + _root.joueurs[cpt]).explose();
}
cpt++;
}
h++;
}
eval ("_root." + parent).bombes_actives--;
_remove = true;
exploseTime = getTimer() + 50;
}
explosion();
stop();
Symbol 130 Button
on (release) {
getURL ("http://www.gargul-studio.com", "_blank");
}
Symbol 135 MovieClip Frame 1
etincelle.stop();
Symbol 134 Button
on (release) {
getURL ("demo.html");
}
Symbol 139 MovieClip Frame 1
stop();
Symbol 154 Button
on (release) {
gotoAndStop (116);
}
Symbol 155 Button
on (release) {
gotoAndPlay (67);
}
Symbol 163 MovieClip Frame 1
etincelle.stop();
Symbol 162 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 1
function refresh() {
if (_root.mode2) {
j2._alpha = 100;
haut._alpha = 0;
j1.bombes.gotoAndStop(_root.joueur1.bombes);
j1.vies.gotoAndStop(_root.joueur1.vies + 1);
j1.force.gotoAndStop(_root.joueur1.force);
j2.bombes.gotoAndStop(_root.j2.bombes);
j2.vies.gotoAndStop(_root.j2.vies + 1);
j2.force.gotoAndStop(_root.j2.force);
} else {
haut._alpha = 100;
j2._alpha = 0;
if ((Math.floor(_root.score / 5000) > Math.floor(score / 5000)) && (score > 0)) {
_root.joueur1.vies++;
}
j1.bombes.gotoAndStop(_root.joueur1.bombes);
j1.vies.gotoAndStop(_root.joueur1.vies + 1);
j1.force.gotoAndStop(_root.joueur1.force);
haut.score = _root.score;
haut.niveau = _root.niveau;
}
}
var score = 0;
stop();
Symbol 184 Button
on (release) {
getURL ("http://www.gargul-studio.com", "_blank");
}
Symbol 185 Button
on (release) {
getURL ("demo.html");
}
Symbol 188 MovieClip Frame 1
function explose() {
vies--;
if (vies <= 0) {
switch (type) {
case "c" :
_root.duplicateCadeau(_root.malus1, "c", _x, _y);
break;
case "C" :
_root.duplicateCadeau(_root.bonus1, "C", _x, _y);
break;
case "d" :
_root.duplicateCadeau(_root.malus2, "d", _x, _y);
break;
case "D" :
_root.duplicateCadeau(_root.bonus2, "D", _x, _y);
break;
case "e" :
_root.duplicateCadeau(_root.malus3, "e", _x, _y);
break;
case "E" :
_root.duplicateCadeau(_root.bonus3, "E", _x, _y);
break;
case "F" :
_root.duplicateCadeau(_root.bonus4, "F", _x, _y);
break;
case "g" :
_root.duplicateCadeau(_root.malus5, "g", _x, _y);
break;
case "G" :
_root.duplicateCadeau(_root.bonus5, "G", _x, _y);
break;
case "H" :
_root.duplicateCadeau(_root.bonus6, "H", _x, _y);
break;
case "I" :
_root.duplicateCadeau(_root.bonus7, "I", _x, _y);
break;
case "K" :
_root.duplicateCadeau(_root.porte, "T", _x, _y);
break;
case "O" :
_root.duplicateCadeau(_root.saphir, "O", _x, _y);
break;
case "P" :
_root.duplicateCadeau(_root.rubis, "P", _x, _y);
break;
case "Q" :
_root.duplicateCadeau(_root.emeraude, "Q", _x, _y);
break;
case "R" :
_root.duplicateCadeau(_root.diamand, "R", _x, _y);
break;
case "U" :
_root.duplicateCadeau(_root.clef, "U", _x, _y);
break;
case "z" :
_root.duplicateCadeau(_root.malus4, "z", _x, _y);
break;
case "Z" :
_root.duplicateCadeau(_root.telecommande, "Z", _x, _y);
break;
default :
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
}
this.removeMovieClip();
} else {
this.gotoAndPlay(this._currentframe + 1);
}
}
var type;
var vies;
stop();
Symbol 188 MovieClip Frame 6
stop();
Symbol 188 MovieClip Frame 10
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 10
_dead = true;
stop();
Symbol 197 MovieClip Frame 1
function deplace() {
pos = position();
x = pos.x;
y = pos.y;
varx = 0;
vary = 0;
direc = "1";
obstacle = "1MB";
if ((((x * 40) + _root.xoffset) == _x) && (((y * 40) + _root.yoffset) == _y)) {
if ((obstacle.indexOf(_root.tableau[x - 1][y].charAt(0)) <= 0) && (x > 0)) {
direc = direc + "G";
}
if ((obstacle.indexOf(_root.tableau[x][y - 1].charAt(0)) <= 0) && (y > 0)) {
direc = direc + "H";
}
if ((obstacle.indexOf(_root.tableau[x + 1][y].charAt(0)) <= 0) && (x < 12)) {
direc = direc + "D";
}
if ((obstacle.indexOf(_root.tableau[x][y + 1].charAt(0)) <= 0) && (y < 12)) {
direc = direc + "B";
}
if (direc.indexOf(direction) >= 0) {
direc = direc + ((direction + direction) + direction);
}
choix = ((Math.random() * 100) % (direc.length - 1)) + 1;
direction = direc.charAt(choix);
} else if (obstacle.indexOf(_root.tableau[x][y].charAt(0)) > 0) {
switch (direction) {
case "H" :
direction = "B";
break;
case "B" :
direction = "H";
break;
case "G" :
direction = "D";
break;
case "D" :
direction = "G";
}
}
switch (direction) {
case "H" :
vary = -pas;
monstre.gotoAndStop(3);
break;
case "B" :
vary = pas;
monstre.gotoAndStop(1);
break;
case "G" :
varx = -pas;
monstre.gotoAndStop(4);
break;
case "D" :
varx = pas;
monstre.gotoAndStop(2);
}
if ((varx != 0) || (vary != 0)) {
_x = (_x + varx);
_y = (_y + vary);
if (bonus.indexOf(_root.tableau[position().x][position().y].charAt(0)) >= 0) {
eval ("_root." + _root.tableau[position().x][position().y]).explose();
}
if (malus.indexOf(_root.tableau[position().x][position().y].charAt(0)) >= 0) {
eval ("_root." + _root.tableau[position().x][position().y]).active();
}
}
}
function position() {
monObjet = new Object();
monObjet.x = Math.round((_x - _root.xoffset) / 40);
monObjet.y = Math.round((_y - _root.yoffset) / 40);
return(monObjet);
}
function explose() {
monstre.gotoAndPlay(5);
nextMove = getTimer() + 1000;
}
var direction;
var pas = 8;
var nextMove;
var points = 200;
var _vitesse = 120;
var type;
var bonus = "CDEFGHI0PQRZ";
var malus = "cdegz";
Instance of Symbol 163 MovieClip in Symbol 209 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 163 MovieClip in Symbol 209 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 163 MovieClip in Symbol 209 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Symbol 208 MovieClip Frame 1
function explose() {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
function mange(joueur) {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
_root.libson.gotoAndPlay("bonus");
joueur.bombes++;
eval (_root.interface).refresh();
this.removeMovieClip();
}
Symbol 210 MovieClip Frame 1
function explose() {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
function mange(joueur) {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
_root.libson.gotoAndPlay("bonus");
joueur.force++;
eval (_root.interface).refresh();
this.removeMovieClip();
}
Instance of Symbol 211 MovieClip in Symbol 210 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Symbol 222 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 2
stop();
Symbol 221 MovieClip Frame 1
function explose() {
cpt = 0;
while (cpt < 3) {
duplicateMovieClip (_root.monstre3, "A" + i, i);
setProperty("_root.A" + i, _x , this._x);
setProperty("_root.A" + i, _y , this._y);
_root.objets.push("A" + i);
i++;
cpt++;
}
isActivate = false;
gotoAndStop (1);
}
var i = 1500;
Symbol 230 MovieClip Frame 1
function explose() {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
var type;
stop();
Symbol 230 MovieClip Frame 22
monstre_ok = true;
Symbol 234 MovieClip Frame 1
function explose() {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
function mange(joueur) {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
_root.libson.gotoAndPlay("bonus");
_root.score = _root.score + points;
eval (_root.interface).refresh();
this.removeMovieClip();
}
var points = 750;
Instance of Symbol 235 MovieClip in Symbol 234 MovieClip Frame 1
onClipEvent (load) {
}
Symbol 238 MovieClip Frame 1
function explose() {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
function mange(joueur) {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
_root.libson.gotoAndPlay("bonus");
joueur._vitesse = 30;
this.removeMovieClip();
}
var points = 100;
Symbol 240 MovieClip Frame 1
function explose() {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
function mange(joueur) {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
_root.libson.gotoAndPlay("bonus");
joueur._armure = true;
joueur.showArmure();
this.removeMovieClip();
}
var points = 100;
Symbol 242 MovieClip Frame 1
function explose() {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
function mange(joueur) {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
_root.libson.gotoAndPlay("bonus");
joueur.vies++;
eval (_root.interface).refresh();
this.removeMovieClip();
}
var points = 100;
Symbol 245 MovieClip Frame 1
function explose() {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
function mange(joueur) {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
_root.libson.gotoAndPlay("bonus");
switch (random(10)) {
case 1 :
joueur.vies++;
break;
case 3 :
joueur.bombes++;
break;
case 5 :
joueur._vitesse = 30;
break;
case 7 :
joueur._armure = true;
joueur.showArmure();
break;
default :
joueur.malus();
}
eval (_root.interface).refresh();
this.removeMovieClip();
}
var points = 100;
Symbol 247 MovieClip Frame 1
function explose() {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
function mange(joueur) {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
_root.libson.gotoAndPlay("bonus");
i = 0;
while (i < _root.monstres.length) {
eval ("_root." + _root.monstres[i])._vitesse = eval ("_root." + _root.monstres[i])._vitesse * 2;
i++;
}
this.removeMovieClip();
}
var points = 100;
Symbol 250 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 11
stop();
Symbol 250 MovieClip Frame 14
_dead = true;
stop();
Symbol 249 MovieClip Frame 1
function deplace() {
pos = position();
x = pos.x;
y = pos.y;
direc = "1";
obstacle = "1MLB";
if ((((x * 40) + _root.xoffset) == _x) && (((y * 40) + _root.yoffset) == _y)) {
if ((obstacle.indexOf(_root.tableau[x - 1][y].charAt(0)) <= 0) && (x > 0)) {
direc = direc + "G";
}
if ((obstacle.indexOf(_root.tableau[x][y - 1].charAt(0)) <= 0) && (y > 0)) {
direc = direc + "H";
}
if ((obstacle.indexOf(_root.tableau[x + 1][y].charAt(0)) <= 0) && (x < 12)) {
direc = direc + "D";
}
if ((obstacle.indexOf(_root.tableau[x][y + 1].charAt(0)) <= 0) && (y < 12)) {
direc = direc + "B";
}
if ((direc.indexOf(direction) <= 0) || (Math.floor((Math.random() * 100) % 5) == 1)) {
choix = ((Math.random() * 100) % (direc.length - 1)) + 1;
direction = direc.charAt(choix);
}
if (_invisible && (getTimer() > apparait)) {
_invisible = false;
}
switch (direction) {
case "H" :
varx = 0;
vary = -pas;
if (!_invisible) {
monstre.gotoAndStop(4);
}
break;
case "B" :
varx = 0;
vary = pas;
if (!_invisible) {
monstre.gotoAndStop(2);
}
break;
case "G" :
varx = -pas;
vary = 0;
if (!_invisible) {
if (Math.floor((Math.random() * 100) % 5) == 1) {
monstre.gotoAndPlay("invisible");
apparait = getTimer() + 4000;
_invisible = true;
} else {
monstre.gotoAndStop(1);
}
}
break;
case "D" :
varx = pas;
vary = 0;
if (_invisible) {
break;
}
monstre.gotoAndStop(3);
}
} else if (obstacle.indexOf(_root.tableau[x][y].charAt(0)) > 0) {
varx = -varx;
vary = -vary;
switch (direction) {
case "H" :
direction = "B";
break;
case "B" :
direction = "H";
break;
case "G" :
direction = "D";
break;
case "D" :
direction = "G";
}
}
if ((varx != 0) || (vary != 0)) {
_x = (_x + varx);
_y = (_y + vary);
if (bonus.indexOf(_root.tableau[position().x][position().y].charAt(0)) >= 0) {
eval ("_root." + _root.tableau[position().x][position().y]).explose();
}
if (malus.indexOf(_root.tableau[position().x][position().y].charAt(0)) >= 0) {
eval ("_root." + _root.tableau[position().x][position().y]).active();
}
}
}
function position() {
monObjet = new Object();
monObjet.x = Math.round((_x - _root.xoffset) / 40);
monObjet.y = Math.round((_y - _root.yoffset) / 40);
return(monObjet);
}
function explose() {
if (!_invisible) {
monstre.gotoAndPlay("explose");
nextMove = getTimer() + 1000;
}
}
var direction = "S";
var pas = 8;
var nextMove;
var varx;
var vary;
var apparait;
var points = 300;
var _vitesse = 120;
var type;
var bonus = "CDEFGHI0PQRZ";
var malus = "cdegz";
Symbol 264 MovieClip Frame 1
stop();
Symbol 264 MovieClip Frame 8
_dead = true;
stop();
Symbol 263 MovieClip Frame 1
function deplace() {
pos = position();
x = pos.x;
y = pos.y;
varx = 0;
vary = 0;
direc = "1";
obstacle = "1MLB";
if ((((x * 40) + _root.xoffset) == _x) && (((y * 40) + _root.yoffset) == _y)) {
if ((obstacle.indexOf(_root.tableau[x - 1][y].charAt(0)) <= 0) && (x > 0)) {
direc = direc + "G";
}
if ((obstacle.indexOf(_root.tableau[x][y - 1].charAt(0)) <= 0) && (y > 0)) {
direc = direc + "H";
}
if ((obstacle.indexOf(_root.tableau[x + 1][y].charAt(0)) <= 0) && (x < 12)) {
direc = direc + "D";
}
if ((obstacle.indexOf(_root.tableau[x][y + 1].charAt(0)) <= 0) && (y < 12)) {
direc = direc + "B";
}
if ((direc.indexOf(direction) <= 0) || (Math.floor((Math.random() * 100) % 5) == 1)) {
choix = ((Math.random() * 100) % (direc.length - 1)) + 1;
newdirection = direc.charAt(choix);
}
} else if (obstacle.indexOf(_root.tableau[x][y].charAt(0)) > 0) {
switch (newdirection) {
case "H" :
newdirection = "B";
break;
case "B" :
newdirection = "H";
break;
case "G" :
newdirection = "D";
break;
case "D" :
newdirection = "G";
}
}
switch (newdirection) {
case "H" :
vary = -pas;
if (newdirection != direction) {
monstre.gotoAndStop(3);
}
break;
case "B" :
vary = pas;
if (newdirection != direction) {
monstre.gotoAndStop(1);
}
break;
case "G" :
varx = -pas;
if (newdirection != direction) {
monstre.gotoAndStop(2);
}
break;
case "D" :
varx = pas;
if (newdirection != direction) {
monstre.gotoAndStop(4);
}
break;
default :
if (newdirection == direction) {
break;
}
monstre.gotoAndStop(1);
}
direction = newdirection;
if ((varx != 0) || (vary != 0)) {
_x = (_x + varx);
_y = (_y + vary);
if (bonus.indexOf(_root.tableau[position().x][position().y].charAt(0)) >= 0) {
eval ("_root." + _root.tableau[position().x][position().y]).explose();
}
if (malus.indexOf(_root.tableau[position().x][position().y].charAt(0)) >= 0) {
eval ("_root." + _root.tableau[position().x][position().y]).active();
}
}
}
function explose() {
monstre.gotoAndPlay(5);
nextMove = getTimer() + 1000;
}
function position() {
monObjet = new Object();
monObjet.x = Math.round((_x - _root.xoffset) / 40);
monObjet.y = Math.round((_y - _root.yoffset) / 40);
return(monObjet);
}
var direction = "S";
var newdirection = "S";
var pas = 8;
var nextMove;
var points = 150;
var _vitesse = 120;
var type;
var bonus = "CDEFGHI0PQRZ";
var malus = "cdegz";
Symbol 276 MovieClip Frame 4
gotoAndPlay (1);
Symbol 276 MovieClip Frame 9
gotoAndPlay (5);
Symbol 281 MovieClip Frame 9
gotoAndPlay (1);
Symbol 281 MovieClip Frame 10
stop();
Symbol 281 MovieClip Frame 14
stop();
Symbol 281 MovieClip Frame 18
stop();
Symbol 274 MovieClip Frame 1
yeuxmonstre.gotoAndStop("oeildroit");
piedvoleur.gotoAndPlay("piedprofil");
stop();
Symbol 274 MovieClip Frame 2
yeuxmonstre.gotoAndPlay("pasoeil");
piedvoleur.gotoAndPlay("piedface");
stop();
Symbol 274 MovieClip Frame 3
yeuxmonstre.gotoAndStop("oeilgauche");
piedvoleur.gotoAndPlay("piedprofil");
stop();
Symbol 274 MovieClip Frame 4
yeuxmonstre.gotoAndPlay("oeilface");
piedvoleur.gotoAndPlay("piedface");
stop();
Symbol 274 MovieClip Frame 11
_dead = true;
stop();
Symbol 273 MovieClip Frame 1
function direc(x, y, level) {
var G;
var D;
var H;
var B;
if ((((x < 0) || (x > 12)) || (y < 0)) || (y > 12)) {
return(0);
}
if ((x == position().x) && (y == position().y)) {
return(0);
}
switch (_root.tableau[x][y].charAt(0)) {
case "B" :
return(-8);
case "M" :
case "L" :
return(0);
}
x2 = _root.joueur1.pos_x();
y2 = _root.joueur1.pos_y();
distance = Math.round(Math.sqrt(((x - x2) * (x - x2)) + ((y - y2) * (y - y2))));
return(20 - distance);
}
function deplace() {
pos = position();
x = pos.x;
y = pos.y;
varx = 0;
vary = 0;
if ((((x * 40) + _root.xoffset) == _x) && (((y * 40) + _root.yoffset) == _y)) {
var possibilite = "";
choix[0] = [direc(x - 1, y, 0), "G"];
choix[1] = [direc(x + 1, y, 0), "D"];
choix[2] = [direc(x, y - 1, 0), "H"];
choix[3] = [direc(x, y + 1, 0), "B"];
max = 0;
car = "";
i = 3;
while (i >= 0) {
if (choix[i][0] > 0) {
if (choix[i][0] > max) {
max = choix[i][0];
car = choix[i][1];
} else if (choix[i][0] == max) {
car = car + choix[i][1];
}
possibilite = possibilite + choix[i][1];
if (choix[i][1] == direction) {
possibilite = possibilite + choix[i][1];
}
}
i--;
}
possibilite = possibilite + (car + car);
aleatoire = ((Math.random() * 100) % (possibilite.length - 1)) + 1;
newdirection = possibilite.charAt(aleatoire);
}
switch (newdirection) {
case "H" :
vary = -pas;
if (newdirection != direction) {
monstre.gotoAndStop("H");
}
break;
case "B" :
vary = pas;
if (newdirection != direction) {
monstre.gotoAndStop("B");
}
break;
case "G" :
varx = -pas;
if (newdirection != direction) {
monstre.gotoAndStop("G");
}
break;
case "D" :
varx = pas;
if (newdirection != direction) {
monstre.gotoAndStop("D");
}
break;
default :
if (newdirection == direction) {
break;
}
monstre.gotoAndStop("G");
}
direction = newdirection;
if ((varx != 0) || (vary != 0)) {
_x = (_x + varx);
_y = (_y + vary);
if (bonus.indexOf(_root.tableau[position().x][position().y].charAt(0)) >= 0) {
eval ("_root." + _root.tableau[position().x][position().y]).explose();
}
if (malus.indexOf(_root.tableau[position().x][position().y].charAt(0)) >= 0) {
eval ("_root." + _root.tableau[position().x][position().y]).active();
}
}
}
function explose() {
monstre.gotoAndPlay("explose");
nextMove = getTimer() + 1000;
}
function position() {
monObjet = new Object();
monObjet.x = Math.round((_x - _root.xoffset) / 40);
monObjet.y = Math.round((_y - _root.yoffset) / 40);
return(monObjet);
}
var direction = "S";
var newdirection = "S";
var pas = 8;
var nextMove;
var points = 150;
var _vitesse = 100;
var choix = new Array();
var nextHit;
var type;
var bonus = "CDEFGHI0PQRZ";
var malus = "cdegz";
Symbol 302 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 2
stop();
Symbol 302 MovieClip Frame 3
stop();
Symbol 302 MovieClip Frame 4
stop();
Symbol 302 MovieClip Frame 12
_dead = true;
stop();
Symbol 301 MovieClip Frame 1
function direc(x, y, level) {
var G;
var D;
var H;
var B;
if ((((x < 0) || (x > 12)) || (y < 0)) || (y > 12)) {
return(0);
}
if ((x == position().x) && (y == position().y)) {
return(0);
}
switch (_root.tableau[x][y].charAt(0)) {
case "B" :
return(-8);
case "M" :
case "L" :
return(0);
}
if (level <= 0) {
return(2);
}
G = direc(x - 1, y, level - 1);
D = direc(x + 1, y, level - 1);
H = direc(x, y - 1, level - 1);
B = direc(x, y + 1, level - 1);
val = ((G + D) + H) + B;
if (val & true) {
return(1);
}
if (val >= 0) {
return(2 + val);
}
return(1);
}
function deplace() {
pos = position();
x = pos.x;
y = pos.y;
varx = 0;
vary = 0;
if ((((x * 40) + _root.xoffset) == _x) && (((y * 40) + _root.yoffset) == _y)) {
var possibilite = "";
choix[0] = [direc(x - 1, y, 2), "G"];
choix[1] = [direc(x + 1, y, 2), "D"];
choix[2] = [direc(x, y - 1, 2), "H"];
choix[3] = [direc(x, y + 1, 2), "B"];
max = 0;
i = 3;
while (i >= 0) {
if (choix[i][0] > 0) {
if (choix[i][0] == max) {
possibilite = possibilite + (choix[i][1] + choix[i][1]);
}
if (choix[i][0] > max) {
max = choix[i][0];
possibilite = choix[i][1] + choix[i][1];
}
if ((choix[i][1] == direction) && (choix[i][0] > 4)) {
possibilite = possibilite + choix[i][1];
}
}
i--;
}
aleatoire = ((Math.random() * 100) % (possibilite.length - 1)) + 1;
newdirection = possibilite.charAt(aleatoire);
}
switch (newdirection) {
case "H" :
vary = -pas;
if (newdirection != direction) {
monstre.gotoAndStop("H");
}
break;
case "B" :
vary = pas;
if (newdirection != direction) {
monstre.gotoAndStop("B");
}
break;
case "G" :
varx = -pas;
if (newdirection != direction) {
monstre.gotoAndStop("G");
}
break;
case "D" :
varx = pas;
if (newdirection != direction) {
monstre.gotoAndStop("D");
}
break;
default :
if (newdirection == direction) {
break;
}
monstre.gotoAndStop("G");
}
direction = newdirection;
if ((varx != 0) || (vary != 0)) {
_x = (_x + varx);
_y = (_y + vary);
if (bonus.indexOf(_root.tableau[position().x][position().y].charAt(0)) >= 0) {
eval ("_root." + _root.tableau[position().x][position().y]).explose();
}
if (malus.indexOf(_root.tableau[position().x][position().y].charAt(0)) >= 0) {
eval ("_root." + _root.tableau[position().x][position().y]).active();
}
}
}
function explose() {
monstre.gotoAndPlay("explose");
nextMove = getTimer() + 1000;
}
function position() {
monObjet = new Object();
monObjet.x = Math.round((_x - _root.xoffset) / 40);
monObjet.y = Math.round((_y - _root.yoffset) / 40);
return(monObjet);
}
var direction = "S";
var newdirection = "S";
var pas = 8;
var nextMove;
var points = 150;
var _vitesse = 100;
var choix = new Array();
var type;
var bonus = "CDEFGHI0PQRZ";
var malus = "cdegz";
Symbol 319 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 13
_dead = true;
stop();
Symbol 318 MovieClip Frame 1
function deplace() {
pos = position();
x = pos.x;
y = pos.y;
varx = 0;
vary = 0;
direc = "1";
obstacle = "1MLB";
if ((((x * 40) + _root.xoffset) == _x) && (((y * 40) + _root.yoffset) == _y)) {
if ((obstacle.indexOf(_root.tableau[x - 1][y].charAt(0)) <= 0) && (x > 0)) {
direc = direc + "G";
}
if ((obstacle.indexOf(_root.tableau[x][y - 1].charAt(0)) <= 0) && (y > 0)) {
direc = direc + "H";
}
if ((obstacle.indexOf(_root.tableau[x + 1][y].charAt(0)) <= 0) && (x < 12)) {
direc = direc + "D";
}
if ((obstacle.indexOf(_root.tableau[x][y + 1].charAt(0)) <= 0) && (y < 12)) {
direc = direc + "B";
}
if ((direc.indexOf(direction) <= 0) || (Math.floor((Math.random() * 100) % 5) == 1)) {
choix = ((Math.random() * 100) % (direc.length - 1)) + 1;
newdirection = direc.charAt(choix);
}
} else if (obstacle.indexOf(_root.tableau[x][y].charAt(0)) > 0) {
switch (newdirection) {
case "H" :
newdirection = "B";
break;
case "B" :
newdirection = "H";
break;
case "G" :
newdirection = "D";
break;
case "D" :
newdirection = "G";
}
}
switch (newdirection) {
case "H" :
vary = -pas;
if (newdirection != direction) {
monstre.gotoAndStop("H");
}
break;
case "B" :
vary = pas;
if (newdirection != direction) {
monstre.gotoAndStop("B");
}
break;
case "G" :
varx = -pas;
if (newdirection != direction) {
monstre.gotoAndStop("G");
}
break;
case "D" :
varx = pas;
if (newdirection != direction) {
monstre.gotoAndStop("D");
}
break;
default :
if (newdirection == direction) {
break;
}
monstre.gotoAndStop("G");
}
direction = newdirection;
if ((varx != 0) || (vary != 0)) {
_x = (_x + varx);
_y = (_y + vary);
if (bonus.indexOf(_root.tableau[position().x][position().y].charAt(0)) >= 0) {
eval ("_root." + _root.tableau[position().x][position().y]).explose();
}
if (malus.indexOf(_root.tableau[position().x][position().y].charAt(0)) >= 0) {
eval ("_root." + _root.tableau[position().x][position().y]).active();
}
}
}
function explose() {
monstre.gotoAndPlay("explose");
nextMove = getTimer() + 1000;
}
function position() {
monObjet = new Object();
monObjet.x = Math.round((_x - _root.xoffset) / 40);
monObjet.y = Math.round((_y - _root.yoffset) / 40);
return(monObjet);
}
var direction = "S";
var newdirection = "S";
var pas = 8;
var nextMove;
var points = 150;
var _vitesse = 60;
var type;
var bonus = "CDEFGHI0PQRZ";
var malus = "cdegz";
Symbol 337 MovieClip Frame 5
gotoAndPlay (1);
Symbol 337 MovieClip Frame 10
gotoAndPlay (6);
Symbol 337 MovieClip Frame 15
gotoAndPlay (11);
Symbol 337 MovieClip Frame 16
stop();
Symbol 335 MovieClip Frame 1
bouche.gotoAndPlay("boucheright");
stop();
Symbol 335 MovieClip Frame 2
bouche.gotoAndPlay("pasbouche");
stop();
Symbol 335 MovieClip Frame 3
bouche.gotoAndPlay("boucheleft");
stop();
Symbol 335 MovieClip Frame 4
bouche.gotoAndPlay("boucheface");
stop();
Symbol 335 MovieClip Frame 12
_dead = true;
stop();
Symbol 334 MovieClip Frame 1
function deplace() {
pos = position();
x = pos.x;
y = pos.y;
varx = 0;
vary = 0;
direc = "1";
obstacle = "1MLB";
if ((((x * 40) + _root.xoffset) == realpos().x) && (((y * 40) + _root.yoffset) == realpos().y)) {
if ((obstacle.indexOf(_root.tableau[x - 1][y].charAt(0)) <= 0) && (x > 0)) {
direc = direc + "G";
}
if ((obstacle.indexOf(_root.tableau[x][y - 1].charAt(0)) <= 0) && (y > 0)) {
direc = direc + "H";
}
if ((obstacle.indexOf(_root.tableau[x + 1][y].charAt(0)) <= 0) && (x < 12)) {
direc = direc + "D";
}
if ((obstacle.indexOf(_root.tableau[x][y + 1].charAt(0)) <= 0) && (y < 12)) {
direc = direc + "B";
}
if ((direc.indexOf(direction) <= 0) || (Math.floor((Math.random() * 100) % 5) == 1)) {
choix = ((Math.random() * 100) % (direc.length - 1)) + 1;
newdirection = direc.charAt(choix);
}
} else if (obstacle.indexOf(_root.tableau[x][y].charAt(0)) > 0) {
switch (newdirection) {
case "H" :
newdirection = "B";
break;
case "B" :
newdirection = "H";
break;
case "G" :
newdirection = "D";
break;
case "D" :
newdirection = "G";
}
}
switch (newdirection) {
case "H" :
vary = -pas;
if (newdirection != direction) {
monstre.gotoAndStop("H");
}
break;
case "B" :
vary = pas;
if (newdirection != direction) {
monstre.gotoAndStop("B");
}
break;
case "G" :
varx = -pas;
if (newdirection != direction) {
monstre.gotoAndStop("G");
}
break;
case "D" :
varx = pas;
if (newdirection != direction) {
monstre.gotoAndStop("D");
}
break;
default :
if (newdirection == direction) {
break;
}
monstre.gotoAndStop("G");
}
direction = newdirection;
if ((varx != 0) || (vary != 0)) {
_x = (_x + varx);
_y = (_y + vary);
if (bonus.indexOf(_root.tableau[position().x][position().y].charAt(0)) >= 0) {
eval ("_root." + _root.tableau[position().x][position().y]).explose();
}
if (malus.indexOf(_root.tableau[position().x][position().y].charAt(0)) >= 0) {
eval ("_root." + _root.tableau[position().x][position().y]).active();
}
}
}
function explose() {
monstre.gotoAndPlay("explose");
nextMove = getTimer() + 1000;
}
function position() {
monObjet = new Object();
monObjet.x = Math.round((_x - _root.xoffset) / 40);
monObjet.y = Math.round((_y - _root.yoffset) / 40);
return(monObjet);
}
function realpos() {
objet = new Object();
if (_xscale > 50) {
objet.x = _x;
objet.y = _y;
} else {
objet.x = _x - 10;
objet.y = _y - 10;
}
return(objet);
}
var direction = "S";
var newdirection = "S";
var pas = 8;
var nextMove;
var points = 150;
var _vitesse = 100;
var type;
var bonus = "CDEFGHI0PQRZ";
var malus = "cdegz";
Symbol 368 MovieClip Frame 4
gotoAndPlay (1);
Symbol 368 MovieClip Frame 8
gotoAndPlay (5);
Symbol 368 MovieClip Frame 12
gotoAndPlay (9);
Symbol 368 MovieClip Frame 16
gotoAndPlay (13);
Symbol 366 MovieClip Frame 1
piedeater.gotoAndPlay("piedleft");
stop();
Symbol 366 MovieClip Frame 2
piedeater.gotoAndPlay("pieddos");
stop();
Symbol 366 MovieClip Frame 3
piedeater.gotoAndPlay("piedright");
stop();
Symbol 366 MovieClip Frame 4
piedeater.gotoAndPlay("piedface");
stop();
Symbol 366 MovieClip Frame 5
piedeater.gotoAndStop("piedface");
Symbol 366 MovieClip Frame 24
gotoAndStop (4);
Symbol 366 MovieClip Frame 26
_dead = true;
stop();
Symbol 365 MovieClip Frame 1
function deplace() {
pos = position();
x = pos.x;
y = pos.y;
varx = 0;
vary = 0;
direc = "1";
obstacle = "1ML";
if ((((x * 40) + _root.xoffset) == _x) && (((y * 40) + _root.yoffset) == _y)) {
if ((obstacle.indexOf(_root.tableau[x - 1][y].charAt(0)) <= 0) && (x > 0)) {
direc = direc + "G";
}
if ((obstacle.indexOf(_root.tableau[x][y - 1].charAt(0)) <= 0) && (y > 0)) {
direc = direc + "H";
}
if ((obstacle.indexOf(_root.tableau[x + 1][y].charAt(0)) <= 0) && (x < 12)) {
direc = direc + "D";
}
if ((obstacle.indexOf(_root.tableau[x][y + 1].charAt(0)) <= 0) && (y < 12)) {
direc = direc + "B";
}
if ((direc.indexOf(direction) <= 0) || (Math.floor((Math.random() * 100) % 5) == 1)) {
choix = ((Math.random() * 100) % (direc.length - 1)) + 1;
newdirection = direc.charAt(choix);
}
} else if (obstacle.indexOf(_root.tableau[x][y].charAt(0)) > 0) {
switch (newdirection) {
case "H" :
newdirection = "B";
break;
case "B" :
newdirection = "H";
break;
case "G" :
newdirection = "D";
break;
case "D" :
newdirection = "G";
}
}
switch (newdirection) {
case "H" :
vary = -pas;
if (newdirection != direction) {
monstre.gotoAndStop("H");
}
break;
case "B" :
vary = pas;
if (newdirection != direction) {
monstre.gotoAndStop("B");
}
break;
case "G" :
varx = -pas;
if (newdirection != direction) {
monstre.gotoAndStop("G");
}
break;
case "D" :
varx = pas;
if (newdirection != direction) {
monstre.gotoAndStop("D");
}
break;
default :
if (newdirection == direction) {
break;
}
monstre.gotoAndStop("G");
}
direction = newdirection;
if ((varx != 0) || (vary != 0)) {
_x = (_x + varx);
_y = (_y + vary);
if (bonus.indexOf(_root.tableau[position().x][position().y].charAt(0)) >= 0) {
eval ("_root." + _root.tableau[position().x][position().y]).explose();
}
if (malus.indexOf(_root.tableau[position().x][position().y].charAt(0)) >= 0) {
eval ("_root." + _root.tableau[position().x][position().y]).active();
}
}
}
function explose() {
monstre.gotoAndPlay("explose");
nextMove = getTimer() + 1000;
}
function position() {
monObjet = new Object();
monObjet.x = Math.round((_x - _root.xoffset) / 40);
monObjet.y = Math.round((_y - _root.yoffset) / 40);
return(monObjet);
}
var direction = "S";
var newdirection = "S";
var pas = 8;
var nextMove;
var points = 150;
var _vitesse = 100;
var type;
var bonus = "CDEFGHI0PQRZ";
var malus = "cdegz";
Symbol 390 MovieClip Frame 1
stop();
Symbol 390 MovieClip Frame 12
_dead = true;
stop();
Symbol 389 MovieClip Frame 1
function deplace() {
pos = position();
x = pos.x;
y = pos.y;
varx = 0;
vary = 0;
direc = "1";
obstacle = "1MLB";
if ((((x * 40) + _root.xoffset) == _x) && (((y * 40) + _root.yoffset) == _y)) {
if ((obstacle.indexOf(_root.tableau[x - 1][y].charAt(0)) <= 0) && (x > 0)) {
direc = direc + "G";
}
if ((obstacle.indexOf(_root.tableau[x][y - 1].charAt(0)) <= 0) && (y > 0)) {
direc = direc + "H";
}
if ((obstacle.indexOf(_root.tableau[x + 1][y].charAt(0)) <= 0) && (x < 12)) {
direc = direc + "D";
}
if ((obstacle.indexOf(_root.tableau[x][y + 1].charAt(0)) <= 0) && (y < 12)) {
direc = direc + "B";
}
if ((direc.indexOf(direction) <= 0) || (Math.floor((Math.random() * 100) % 5) == 1)) {
choix = ((Math.random() * 100) % (direc.length - 1)) + 1;
newdirection = direc.charAt(choix);
}
} else if (_root.tableau[x][y].charAt(0) == "B") {
switch (newdirection) {
case "H" :
newdirection = "B";
break;
case "B" :
newdirection = "H";
break;
case "G" :
newdirection = "D";
break;
case "D" :
newdirection = "G";
}
}
switch (newdirection) {
case "H" :
vary = -pas;
if (newdirection != direction) {
monstre.gotoAndStop("H");
}
break;
case "B" :
vary = pas;
if (newdirection != direction) {
monstre.gotoAndStop("B");
}
break;
case "G" :
varx = -pas;
if (newdirection != direction) {
monstre.gotoAndStop("G");
}
break;
case "D" :
varx = pas;
if (newdirection != direction) {
monstre.gotoAndStop("D");
}
break;
default :
if (newdirection == direction) {
break;
}
monstre.gotoAndStop("G");
}
direction = newdirection;
if ((varx != 0) || (vary != 0)) {
_x = (_x + varx);
_y = (_y + vary);
if (bonus.indexOf(_root.tableau[position().x][position().y].charAt(0)) >= 0) {
eval ("_root." + _root.tableau[position().x][position().y]).explose();
}
if (malus.indexOf(_root.tableau[position().x][position().y].charAt(0)) >= 0) {
eval ("_root." + _root.tableau[position().x][position().y]).active();
}
}
}
function explose() {
if (vies > 1) {
vies--;
monstre.halo._alpha = 0;
} else {
monstre.gotoAndPlay("explose");
nextMove = getTimer() + 1000;
}
}
function position() {
monObjet = new Object();
monObjet.x = Math.round((_x - _root.xoffset) / 40);
monObjet.y = Math.round((_y - _root.yoffset) / 40);
return(monObjet);
}
var direction = "S";
var newdirection = "S";
var pas = 8;
var nextMove;
var points = 150;
var _vitesse = 100;
var type;
var vies = 2;
var bonus = "CDEFGHI0PQRZ";
var malus = "cdegz";
Symbol 403 MovieClip Frame 1
function explose() {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
function mange(joueur) {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
_root.libson.gotoAndPlay("bonus");
_root.score = _root.score + points;
eval (_root.interface).refresh();
this.removeMovieClip();
}
var points = 500;
Instance of Symbol 235 MovieClip in Symbol 403 MovieClip Frame 1
onClipEvent (load) {
}
Symbol 404 MovieClip Frame 1
function explose() {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
function mange(joueur) {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
_root.libson.gotoAndPlay("bonus");
_root.score = _root.score + points;
eval (_root.interface).refresh();
this.removeMovieClip();
}
var points = 250;
Instance of Symbol 235 MovieClip in Symbol 404 MovieClip Frame 1
onClipEvent (load) {
}
Symbol 405 MovieClip Frame 1
function explose() {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
function mange(joueur) {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
_root.libson.gotoAndPlay("bonus");
_root.score = _root.score + points;
eval (_root.interface).refresh();
this.removeMovieClip();
}
var points = 1000;
Instance of Symbol 235 MovieClip in Symbol 405 MovieClip Frame 1
onClipEvent (load) {
}
Symbol 406 MovieClip Frame 1
stop();
Symbol 406 MovieClip Frame 11
stop();
Symbol 406 MovieClip Frame 23
stop();
Symbol 406 MovieClip Frame 32
stop();
Symbol 417 MovieClip Frame 1
function explose() {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
function mange(joueur) {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
_root.libson.gotoAndPlay("bonus");
joueur.telecommande = true;
eval (_root.interface).refresh();
this.removeMovieClip();
}
var points = 0;
Symbol 422 MovieClip Frame 1
stop();
function explose() {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
function mange(joueur) {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
_root.libson.gotoAndPlay("bonus");
switch (type) {
case "1" :
joueur.force++;
joueur._force_init++;
break;
case "2" :
joueur.bombes++;
joueur._bombes_init++;
break;
case "5" :
joueur.vie++;
}
eval (_root.interface).refresh();
this.removeMovieClip();
}
function open() {
_open = true;
if (type == "1") {
gotoAndStop (2);
}
if (type == "2") {
gotoAndStop (3);
}
if (type == "5") {
gotoAndStop (4);
}
}
var points = 0;
Symbol 422 MovieClip Frame 2
stop();
Symbol 426 MovieClip Frame 1
function explose() {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
var points = 0;
Symbol 429 MovieClip Frame 1
function explose() {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
function active() {
if (_root.joueur1.force > 1) {
_root.joueur1.force--;
}
eval (_root.interface).refresh();
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
Instance of Symbol 211 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Symbol 432 MovieClip Frame 1
function explose() {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
function active() {
if (_root.joueur1.bombes > 1) {
_root.joueur1.bombes--;
}
eval (_root.interface).refresh();
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
Symbol 433 MovieClip Frame 1
function explose() {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
function active() {
_root.joueur1._vitesse = 100;
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
var points = 100;
Symbol 435 MovieClip Frame 1
function explose() {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
function active() {
if (_root.joueur1.vies > 1) {
_root.joueur1.vies--;
}
eval (_root.interface).refresh();
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
var points = 100;
Symbol 438 MovieClip Frame 1
function explose() {
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
function active() {
_root.joueur1.malusExplose = true;
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
this.removeMovieClip();
}
var points = 0;
Symbol 442 MovieClip Frame 1
halo.gotoAndStop(1);
stop();
piedbonhomme.gotoAndPlay("piedface");
Symbol 442 MovieClip Frame 2
piedbonhomme.gotoAndPlay("piedleft");
Symbol 442 MovieClip Frame 3
piedbonhomme.gotoAndPlay("pieddos");
Symbol 442 MovieClip Frame 4
piedbonhomme.gotoAndPlay("piedright");
Symbol 442 MovieClip Frame 15
stop();
Symbol 442 MovieClip Frame 27
stop();
Symbol 442 MovieClip Frame 43
stop();
Symbol 442 MovieClip Frame 52
stop();
Symbol 442 MovieClip Frame 68
stop();
Symbol 441 MovieClip Frame 1
function init() {
force = 1;
bombes = 1;
_vitesse = 50;
_armure = false;
_alpha = 100;
bombes_actives = 0;
joueur.halo._alpha = 0;
malusExplose = false;
malusTaille = false;
malusTouche = false;
malusBombes = false;
nextMove = getTimer();
direction = "S";
}
function deplace(varx, vary) {
_x = varx;
_y = vary;
}
function peut_deplacer(chaine) {
switch (chaine.charAt(0)) {
case "M" :
return(false);
case "L" :
return(false);
case "B" :
return(false);
case "C" :
case "D" :
case "E" :
case "F" :
case "G" :
case "H" :
case "I" :
eval ("_root." + chaine).mange(this);
return(true);
case "K" :
eval ("_root." + chaine).explose();
return(true);
case "c" :
case "d" :
case "e" :
case "g" :
case "z" :
eval ("_root." + chaine).active();
eval (_root.interface).refresh();
return(true);
case "O" :
case "P" :
case "Q" :
case "R" :
eval ("_root." + chaine).mange(this);
return(true);
case "U" :
_root.libson.gotoAndPlay("bonus");
i = 0;
while (i < _root.coffres.length) {
eval ("_root." + _root.coffres[i]).open();
i++;
}
eval ("_root." + chaine).explose();
return(true);
case "V" :
if (eval ("_root." + chaine)._open) {
eval ("_root." + chaine).mange(this);
return(true);
}
return(false);
case "Z" :
eval ("_root." + chaine).mange(this);
return(true);
}
return(true);
}
function haut() {
varx = _x;
vary = _y - pas;
if (direction != "H") {
joueur.gotoAndStop("H");
}
x = pos_x();
y = Math.floor((vary - _root.yoffset) / 40);
if (y >= 0) {
if (y != pos_y()) {
if (peut_deplacer(_root.tableau[x][y])) {
deplace((x * 40) + _root.xoffset, vary);
}
} else {
deplace(varx, vary);
}
}
direction = "H";
}
function bas() {
if (direction != "B") {
joueur.gotoAndStop("B");
}
direction = "B";
varx = _x;
vary = _y + pas;
x = pos_x();
y = Math.floor(((vary + 39) - _root.yoffset) / 40);
if (y <= 12) {
if (y != pos_y()) {
if (peut_deplacer(_root.tableau[x][y])) {
deplace((x * 40) + _root.xoffset, vary);
}
} else {
deplace(varx, vary);
}
}
}
function gauche() {
if (direction != "G") {
joueur.gotoAndStop("G");
}
direction = "G";
varx = _x - pas;
vary = _y;
y = pos_y();
x = Math.floor((varx - _root.xoffset) / 40);
if (x >= 0) {
if (x != pos_x()) {
if (peut_deplacer(_root.tableau[x][y])) {
deplace(varx, (y * 40) + _root.yoffset);
}
} else {
deplace(varx, vary);
}
}
}
function droite() {
if (direction != "D") {
joueur.gotoAndStop("D");
}
direction = "D";
varx = _x + pas;
vary = _y;
y = pos_y();
x = Math.floor(((varx + 39) - _root.xoffset) / 40);
if (x <= 12) {
if (x != pos_x()) {
if (peut_deplacer(_root.tableau[x][y])) {
deplace(varx, (y * 40) + _root.yoffset);
}
} else {
deplace(varx, vary);
}
}
}
function pos_x() {
return(Math.round((_x - _root.xoffset) / 40));
}
function pos_y() {
return(Math.round((_y - _root.yoffset) / 40));
}
function explose() {
if (!_dead) {
if (_armure) {
_armure = false;
showArmure();
} else {
telecommande = false;
vies--;
choix = Math.floor((Math.random() * 100) % 5) + 1;
joueur.gotoAndPlay("mort" + choix);
nextMove = getTimer() + 1000;
_dead = true;
}
}
}
function showArmure() {
if (_armure) {
joueur.halo._alpha = 100;
} else {
joueur.halo._alpha = 0;
}
}
function malus() {
finished = false;
while (!finished) {
switch (random(5) + 1) {
case 1 :
if (vies > 1) {
finished = true;
vies--;
}
break;
case 2 :
if (bombes > 1) {
finished = true;
bombes--;
}
break;
case 3 :
if (force > 1) {
finished = true;
force--;
}
break;
case 4 :
_vitesse = _vitesse + 50;
finished = true;
break;
case 5 :
malusBombes = true;
finished = true;
}
}
eval (_root.interface).refresh();
}
var force;
var bombes;
var pas = 8;
var _explose = false;
var nextMove;
var _vitesse;
var _armure = false;
var vies;
var direction;
stop();
Symbol 456 Button
on (release) {
duplicateMovieClip (_root.help, "aide1", 15000);
setProperty("aide1", _x , 300);
setProperty("aide1", _y , 300);
_root.pause = true;
}
Symbol 460 MovieClip Frame 16
stop();
Symbol 463 Button
on (release) {
duplicateMovieClip (_root.help, "aide1", 15000);
setProperty("aide1", _x , 300);
setProperty("aide1", _y , 300);
_root.pause = true;
}
Symbol 477 Button
on (release) {
gotoAndPlay (65);
}
Symbol 484 Button
on (release) {
gotoAndStop (149);
}
Symbol 489 MovieClip Frame 5
stop();
Symbol 493 MovieClip Frame 4
stop();
Symbol 487 MovieClip Frame 1
function explose() {
vies--;
if (vies <= 0) {
switch (type) {
case "c" :
_root.duplicateCadeau(_root.malus1, "c", _x, _y);
break;
case "C" :
_root.duplicateCadeau(_root.bonus1, "C", _x, _y);
break;
case "d" :
_root.duplicateCadeau(_root.malus2, "d", _x, _y);
break;
case "D" :
_root.duplicateCadeau(_root.bonus2, "D", _x, _y);
break;
case "e" :
_root.duplicateCadeau(_root.malus3, "e", _x, _y);
break;
case "E" :
_root.duplicateCadeau(_root.bonus3, "E", _x, _y);
break;
case "F" :
_root.duplicateCadeau(_root.bonus4, "F", _x, _y);
break;
case "g" :
_root.duplicateCadeau(_root.malus5, "g", _x, _y);
break;
case "G" :
_root.duplicateCadeau(_root.bonus5, "G", _x, _y);
break;
case "H" :
_root.duplicateCadeau(_root.bonus6, "H", _x, _y);
break;
case "I" :
_root.duplicateCadeau(_root.bonus7, "I", _x, _y);
break;
case "K" :
_root.duplicateCadeau(_root.porte, "T", _x, _y);
break;
case "O" :
_root.duplicateCadeau(_root.saphir, "O", _x, _y);
break;
case "P" :
_root.duplicateCadeau(_root.rubis, "P", _x, _y);
break;
case "Q" :
_root.duplicateCadeau(_root.emeraude, "Q", _x, _y);
break;
case "R" :
_root.duplicateCadeau(_root.diamand, "R", _x, _y);
break;
case "U" :
_root.duplicateCadeau(_root.clef, "U", _x, _y);
break;
case "z" :
_root.duplicateCadeau(_root.malus4, "z", _x, _y);
break;
case "Z" :
_root.duplicateCadeau(_root.telecommande, "Z", _x, _y);
break;
default :
_root.tableau[(_x - _root.xoffset) / 40][(_y - _root.yoffset) / 40] = "";
}
this.removeMovieClip();
} else {
switch (vies) {
case 1 :
this.gotoAndStop(2);
return;
case 2 :
this.gotoAndStop(2);
}
}
}
var type;
var vies;
stop();
Symbol 500 MovieClip Frame 1
stop();
Symbol 500 MovieClip Frame 2
stop();
Symbol 506 Button
on (release) {
gotoAndPlay (65);
}
Symbol 519 Button
on (release) {
gotoAndPlay (65);
}
Symbol 520 Button
on (release) {
gotoAndStop (149);
}
Symbol 546 Button
on (release) {
gotoAndPlay (65);
}
Symbol 549 Button
on (release) {
_root.gameover = 1;
}
Symbol 550 Button
on (release) {
_root.gameover = 1;
}
Symbol 558 Button
on (release) {
getURL ("http://www.gargul-studio.com/games/james/score.html");
}
Symbol 565 MovieClip Frame 10
gotoAndPlay (7);
Symbol 574 Button
on (release) {
getURL ("http://www.gargul-studio.com/games/james/score.html");
}
Symbol 578 Button
on (release) {
_root.gameover = 1;
}
Symbol 581 Button
on (release) {
_root.gameover = 1;
}
Symbol 582 Button
on (release) {
_root.gameover = 1;
}
Symbol 587 Button
on (release) {
url = "http://www.gargul-studio.com/blaster/submit.php";
loadVariables (url, this, "POST");
}
Symbol 595 Button
on (release) {
_root.gameover = 1;
}
Symbol 597 Button
on (release) {
url = "http://www.gargul-studio.com/blaster/submit.php";
loadVariables (url, this, "POST");
}
Symbol 604 Button
on (release) {
_root.gotoAndPlay("intro", 1);
}
Symbol 603 MovieClip Frame 10
stop();
Symbol 613 Button
on (release) {
_root.gameover = 1;
}