Frame 1
fscommand ("fullscreen", "true");
fscommand ("fullscreen", "false");
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
sound4 = new Sound();
sound4.attachSound("fond");
t = getTimer() / 1000;
score1 = 0;
score2 = 0;
score3 = 0;
score4 = 0;
score5 = 0;
score6 = 0;
score7 = 0;
score8 = 0;
score9 = 0;
score10 = 0;
score11 = 0;
score12 = 0;
score13 = 0;
score14 = 0;
score15 = 0;
score16 = 0;
score17 = 0;
score18 = 0;
score19 = 0;
score20 = 0;
name1 = "";
name2 = "";
name3 = "";
name4 = "";
name5 = "";
name6 = "";
name7 = "";
name8 = "";
name9 = "";
name10 = "";
name11 = "";
name12 = "";
name13 = "";
name14 = "";
name15 = "";
name16 = "";
name17 = "";
name18 = "";
name19 = "";
name20 = "";
loadVariablesNum ("scores.txt", 0);
pourcent = (100 * loaded) / total;
pDisplay = Math.floor(pourcent) + "%";
lDisplay = ((Math.floor(loaded / 1024) + " Ko / ") + Math.floor(total / 1024)) + " Ko";
vDisplay = Math.floor((loaded / 1024) / t) + " Ko/s";
if (pourcent == 100) {
gotoAndStop (3);
} else {
barre.gotoAndStop(Math.floor(pourcent));
}
Frame 2
gotoAndPlay (1);
Frame 4
function level10() {
MonSon = new Sound();
MonSon.attachSound("applause");
MonSon.start();
manges = 0;
ligne0 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
ligne1 = [1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1];
ligne2 = [1, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 1];
ligne3 = [1, 0, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 1, 0, 1];
ligne4 = [1, 0, 1, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 1, 2, 1, 2, 1, 0, 1];
ligne5 = [1, 0, 1, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 1, 2, 1, 2, 1, 0, 1];
ligne6 = [1, 0, 1, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 1, 2, 1, 2, 1, 0, 1];
ligne7 = [1, 0, 1, 2, 1, 2, 1, 4, 3, 3, 3, 2, 2, 1, 2, 1, 2, 1, 0, 1];
ligne8 = [1, 0, 1, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 1, 2, 1, 2, 1, 0, 1];
ligne9 = [1, 0, 1, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 1, 2, 1, 2, 1, 0, 1];
ligne10 = [1, 0, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 1, 0, 1];
ligne11 = [1, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 0, 1];
ligne12 = [1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1];
ligne13 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
calcultotal();
restart();
}
function level9() {
MonSon = new Sound();
MonSon.attachSound("applause");
MonSon.start();
manges = 0;
ligne0 = [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1];
ligne1 = [1, 0, 2, 2, 2, 0, 1, 0, 0, 0, 0, 1, 2, 2, 2, 2, 2, 2, 2, 1];
ligne2 = [1, 2, 1, 1, 1, 2, 1, 0, 0, 0, 0, 1, 2, 1, 1, 1, 1, 1, 2, 1];
ligne3 = [1, 2, 1, 0, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 0, 0, 0, 1, 2, 1];
ligne4 = [1, 2, 1, 0, 1, 2, 1, 0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 1, 2, 1];
ligne5 = [1, 2, 1, 1, 1, 2, 1, 0, 0, 0, 0, 1, 2, 1, 1, 1, 1, 1, 2, 1];
ligne6 = [1, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 1, 0, 2, 2, 2, 2, 2, 2, 1];
ligne7 = [1, 2, 2, 2, 2, 0, 1, 4, 3, 3, 3, 1, 0, 0, 2, 2, 2, 2, 2, 1];
ligne8 = [1, 2, 1, 1, 1, 2, 1, 0, 0, 0, 0, 0, 2, 1, 1, 1, 1, 1, 2, 1];
ligne9 = [1, 2, 1, 0, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 0, 0, 0, 1, 2, 1];
ligne10 = [1, 2, 1, 0, 1, 2, 1, 0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 1, 2, 1];
ligne11 = [1, 2, 1, 1, 1, 2, 1, 0, 0, 0, 0, 1, 2, 1, 1, 1, 1, 1, 2, 1];
ligne12 = [1, 0, 2, 2, 2, 0, 1, 0, 0, 0, 0, 1, 2, 2, 2, 2, 2, 2, 2, 1];
ligne13 = [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1];
calcultotal();
restart();
}
function level8() {
MonSon = new Sound();
MonSon.attachSound("applause");
MonSon.start();
manges = 0;
ligne0 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
ligne1 = [1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1];
ligne2 = [1, 2, 0, 1, 1, 2, 2, 2, 0, 0, 1, 0, 2, 2, 2, 1, 1, 0, 2, 1];
ligne3 = [1, 2, 1, 1, 0, 0, 2, 1, 1, 1, 1, 1, 1, 2, 0, 0, 1, 1, 2, 1];
ligne4 = [1, 2, 1, 0, 1, 2, 2, 2, 0, 1, 0, 0, 2, 2, 2, 1, 0, 1, 2, 1];
ligne5 = [1, 2, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 2, 1];
ligne6 = [1, 2, 2, 0, 0, 0, 1, 1, 0, 0, 0, 2, 1, 1, 0, 0, 0, 0, 2, 1];
ligne7 = [1, 2, 0, 2, 0, 1, 1, 4, 3, 3, 3, 0, 0, 1, 1, 0, 0, 0, 2, 1];
ligne8 = [1, 2, 1, 1, 2, 0, 0, 0, 0, 2, 1, 1, 1, 1, 2, 0, 0, 0, 2, 1];
ligne9 = [1, 2, 0, 1, 1, 2, 0, 0, 2, 1, 1, 2, 2, 1, 1, 2, 0, 0, 2, 1];
ligne10 = [1, 2, 0, 0, 1, 1, 2, 2, 1, 1, 2, 0, 0, 2, 1, 1, 2, 0, 2, 1];
ligne11 = [1, 2, 0, 0, 0, 1, 1, 1, 1, 2, 0, 0, 0, 0, 2, 1, 1, 2, 2, 1];
ligne12 = [1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1];
ligne13 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
calcultotal();
restart();
}
function level7() {
MonSon = new Sound();
MonSon.attachSound("applause");
MonSon.start();
manges = 0;
ligne0 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
ligne1 = [1, 0, 0, 0, 0, 2, 2, 1, 1, 2, 2, 1, 1, 2, 2, 0, 0, 0, 0, 1];
ligne2 = [1, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 0, 1];
ligne3 = [1, 0, 2, 1, 0, 0, 2, 2, 0, 1, 1, 0, 2, 2, 0, 0, 1, 2, 0, 1];
ligne4 = [1, 0, 2, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 2, 0, 1];
ligne5 = [1, 0, 2, 1, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 1, 2, 0, 1];
ligne6 = [1, 0, 2, 2, 2, 2, 0, 1, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 0, 1];
ligne7 = [1, 0, 2, 2, 2, 2, 0, 4, 3, 3, 3, 0, 1, 0, 2, 2, 2, 2, 0, 1];
ligne8 = [1, 0, 2, 1, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 1, 2, 0, 1];
ligne9 = [1, 0, 2, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 2, 0, 1];
ligne10 = [1, 0, 2, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 2, 0, 1];
ligne11 = [1, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 0, 1];
ligne12 = [1, 0, 0, 0, 0, 2, 2, 1, 1, 2, 2, 1, 1, 2, 2, 0, 0, 0, 0, 1];
ligne13 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
calcultotal();
restart();
}
function level6() {
MonSon = new Sound();
MonSon.attachSound("applause");
MonSon.start();
manges = 0;
ligne0 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
ligne1 = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1];
ligne2 = [1, 2, 0, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 0, 2, 1];
ligne3 = [1, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 1];
ligne4 = [1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1];
ligne5 = [1, 2, 2, 2, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 2, 2, 2, 1];
ligne6 = [1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1];
ligne7 = [1, 0, 1, 1, 1, 1, 1, 4, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 0, 1];
ligne8 = [1, 2, 2, 2, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 2, 2, 2, 1];
ligne9 = [1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1];
ligne10 = [1, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 0, 1];
ligne11 = [1, 2, 0, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 0, 2, 1];
ligne12 = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1];
ligne13 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
calcultotal();
restart();
}
function level5() {
MonSon = new Sound();
MonSon.attachSound("applause");
MonSon.start();
manges = 0;
ligne0 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
ligne1 = [1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1];
ligne2 = [1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 1, 2, 1];
ligne3 = [1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1];
ligne4 = [1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1];
ligne5 = [1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 1];
ligne6 = [1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1];
ligne7 = [1, 0, 1, 0, 0, 0, 1, 4, 3, 3, 3, 0, 0, 1, 0, 0, 0, 1, 0, 1];
ligne8 = [1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 1];
ligne9 = [1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1];
ligne10 = [1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1];
ligne11 = [1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 1, 2, 1];
ligne12 = [1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1];
ligne13 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
calcultotal();
restart();
}
function level4() {
MonSon = new Sound();
MonSon.attachSound("applause");
MonSon.start();
manges = 0;
ligne0 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
ligne1 = [1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 2, 1];
ligne2 = [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 2, 2, 1];
ligne3 = [1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 2, 1];
ligne4 = [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 2, 2, 1];
ligne5 = [1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 2, 1];
ligne6 = [1, 2, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 2, 1, 2, 2, 1];
ligne7 = [1, 2, 0, 2, 0, 2, 0, 4, 3, 3, 3, 2, 0, 2, 0, 2, 0, 2, 2, 1];
ligne8 = [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 2, 2, 1];
ligne9 = [1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 2, 1];
ligne10 = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 1];
ligne11 = [1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1];
ligne12 = [1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1];
ligne13 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
calcultotal();
restart();
}
function level1() {
MonSon = new Sound();
MonSon.attachSound("applause");
MonSon.start();
manges = 0;
ligne0 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
ligne1 = [1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1];
ligne2 = [1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 2, 1];
ligne3 = [1, 2, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 0, 1];
ligne4 = [1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1];
ligne5 = [1, 2, 1, 2, 1, 2, 2, 0, 0, 0, 0, 0, 0, 2, 2, 1, 0, 1, 0, 1];
ligne6 = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 2, 1];
ligne7 = [1, 2, 0, 2, 1, 0, 0, 4, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 1];
ligne8 = [1, 0, 1, 0, 1, 2, 2, 0, 0, 0, 0, 0, 0, 2, 2, 1, 2, 1, 2, 1];
ligne9 = [1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1];
ligne10 = [1, 0, 1, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 1];
ligne11 = [1, 2, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1];
ligne12 = [1, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1];
ligne13 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
calcultotal();
restart();
}
function level3() {
MonSon = new Sound();
MonSon.attachSound("applause");
MonSon.start();
manges = 0;
ligne0 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
ligne1 = [1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 1];
ligne2 = [1, 1, 1, 1, 1, 2, 1, 0, 1, 0, 0, 0, 0, 0, 1, 2, 2, 2, 2, 1];
ligne3 = [1, 2, 2, 2, 2, 2, 1, 0, 1, 1, 1, 1, 1, 0, 0, 2, 1, 2, 2, 1];
ligne4 = [1, 2, 2, 2, 2, 2, 1, 0, 0, 0, 0, 0, 1, 1, 0, 2, 1, 2, 1, 1];
ligne5 = [1, 1, 1, 1, 1, 2, 1, 0, 0, 0, 0, 0, 0, 1, 0, 2, 1, 2, 2, 1];
ligne6 = [1, 0, 0, 0, 0, 2, 1, 1, 1, 1, 1, 1, 0, 1, 0, 2, 1, 1, 2, 1];
ligne7 = [1, 0, 1, 1, 0, 2, 0, 4, 3, 3, 3, 1, 0, 1, 0, 2, 1, 2, 2, 1];
ligne8 = [1, 0, 0, 0, 0, 2, 1, 1, 1, 1, 1, 1, 0, 1, 0, 2, 1, 2, 1, 1];
ligne9 = [1, 0, 1, 1, 0, 2, 1, 0, 0, 0, 0, 0, 0, 1, 0, 2, 1, 2, 2, 1];
ligne10 = [1, 0, 1, 1, 0, 2, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 2, 1];
ligne11 = [1, 2, 2, 1, 0, 2, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 2, 1];
ligne12 = [1, 2, 2, 2, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 1];
ligne13 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
calcultotal();
restart();
}
function level2() {
MonSon = new Sound();
MonSon.attachSound("applause");
MonSon.start();
manges = 0;
ligne0 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
ligne1 = [1, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 2, 2, 2, 1];
ligne2 = [1, 2, 1, 2, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 2, 1, 2, 1];
ligne3 = [1, 2, 1, 2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 2, 1, 2, 1];
ligne4 = [1, 2, 2, 2, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 2, 2, 2, 1];
ligne5 = [1, 1, 1, 2, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 0, 2, 1, 1, 1];
ligne6 = [1, 1, 2, 2, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 0, 2, 2, 1, 1];
ligne7 = [1, 1, 2, 2, 2, 2, 0, 4, 3, 3, 3, 1, 1, 0, 2, 2, 2, 2, 1, 1];
ligne8 = [1, 1, 1, 2, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 2, 1, 1, 1];
ligne9 = [1, 2, 2, 2, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 2, 2, 2, 1];
ligne10 = [1, 2, 1, 2, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1];
ligne11 = [1, 2, 1, 2, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 2, 1, 2, 1];
ligne12 = [1, 2, 2, 2, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 2, 2, 2, 1];
ligne13 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
calcultotal();
restart();
}
function affiche_level() {
var _local1 = _root;
i = 1;
while (i <= long) {
corps.duplicateMovieClip("" + i, i);
_local1["" + i]._x = boax[i];
_local1["" + i]._x = boay[i];
i++;
}
i = 0;
while (i <= 13) {
j = 0;
while (j <= 19) {
switch (_local1["ligne" + i][j]) {
case 1 :
duplicate(mur, i, j);
break;
case 2 :
duplicate(fruit, i, j);
}
j++;
}
i++;
}
}
function duplicate(clip, i, j) {
var _local1 = j;
var _local2 = i;
var _local3 = clip;
_local3.duplicateMovieClip(_local3._name + (5000 - ((20 * _local2) + _local1)), 5000 - ((20 * _local2) + _local1));
setProperty(_local3._name + (5000 - ((20 * _local2) + _local1)), _x , (30 * _local1) + 15);
setProperty(_local3._name + (5000 - ((20 * _local2) + _local1)), _y , (30 * _local2) + 15);
}
function removeall() {
i = 4;
while (i <= long) {
removeMovieClip("" + i);
i++;
}
}
function resetlevel() {
var _local1 = _root;
i = 5000;
while (i >= 4500) {
_local1["fruit" + i].removeMovieClip();
_local1["mur" + i].removeMovieClip();
i--;
}
}
function restart() {
var _local1 = _root;
resetlevel();
removeall();
long = 4;
manges = 0;
corpsok = true;
_local1.ligne = (_local1.colonne = 7);
boax = [225, 255, 285, 315];
boay = [225, 225, 225, 225];
tete._x = _local1.boax[0];
tete._y = _local1.boay[0];
tete._rotation = -90;
_local1.affiche_level();
}
function calcultotal() {
var _local1 = _root;
total = 0;
i = 0;
while (i <= 13) {
j = 0;
while (j <= 19) {
if (_local1["ligne" + i][j] == 2) {
total++;
}
j++;
}
i++;
}
}
stop();
sound1 = new Sound();
sound2 = new Sound();
sound3 = new Sound();
sound3.attachSound("yeah");
sound1.attachSound("mange");
sound2.attachSound("mort");
serveur = true;
long = 4;
level = 1;
vie = 3;
score = 0;
total = (manges = 0);
boax = [225, 255, 285, 315];
boay = [225, 225, 225, 225];
ligne = (colonne = 7);
corpsok = true;
_root["level" + level]();
Instance of Symbol 66 MovieClip "fruit" in Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.tete)) {
_root.sound1.start();
_root.long = _root.long + 1;
_root.corps.duplicateMovieClip("" + _root.long, _root.long);
_root.boax[_root.long] = _root.boax[_root.long - 1];
_root.boay[_root.long] = _root.boay[_root.long - 1];
_root.score = _root.score + (10 * _root.level);
_root.manges++;
if (_root.manges == _root.total) {
_root.level++;
_root.sound3.start();
if (_root.level <= 10) {
_root["level" + _root.level]();
} else {
_root.gotoAndStop("end");
}
}
this.removeMovieClip();
}
}
Instance of Symbol 29 MovieClip "corps" in Frame 4
onClipEvent (enterFrame) {
n = this._name;
if (_root.corpsok) {
this._x = _root.boax[n];
this._y = _root.boay[n];
if (this.hitTest(_root.tete)) {
_root.vie--;
MonSon = new Sound();
MonSon.attachSound("Oh");
MonSon.start();
if (_root.vie < 0) {
_parent.gotoAndStop("gameover");
} else {
_root.sound2.start();
_root.restart();
}
}
}
}
Instance of Symbol 34 MovieClip "tete" in Frame 4
onClipEvent (load) {
this.swapDepths(9999);
this._x = _root.boax[0];
this._y = _root.boay[0];
}
onClipEvent (keyUp) {
j = _root.long - 1;
if (_root.corpsok) {
do {
_root.boax[j] = _root.boax[j - 1];
_root.boay[j] = _root.boay[j - 1];
j--;
} while (j >= 1);
}
if (((Key.getCode() == 38) and (_rotation != 180)) and (_root["ligne" + (_root.ligne - 1)][_root.colonne] != 1)) {
_root.ligne = _root.ligne - 1;
_root.boay[0] = _root.boay[0] - 30;
_rotation = 0;
_root.corpsok = true;
} else if (((Key.getCode() == 39) and (_rotation != -90)) and (_root["ligne" + _root.ligne][_root.colonne + 1] != 1)) {
_root.colonne = _root.colonne + 1;
_root.boax[0] = _root.boax[0] + 30;
_rotation = 90;
_root.corpsok = true;
} else if (((Key.getCode() == 40) and (_rotation != 0)) and (_root["ligne" + (_root.ligne + 1)][_root.colonne] != 1)) {
_root.ligne = _root.ligne + 1;
_root.boay[0] = _root.boay[0] + 30;
_rotation = 180;
_root.corpsok = true;
} else if (((Key.getCode() == 37) and (_rotation != 90)) and (_root["ligne" + _root.ligne][_root.colonne - 1] != 1)) {
_root.colonne = _root.colonne - 1;
_root.boax[0] = _root.boax[0] - 30;
_rotation = -90;
_root.corpsok = true;
} else {
_root.corpsok = false;
}
this._x = _root.boax[0];
this._y = _root.boay[0];
}
Frame 5
_root.resetlevel();
_root.removeall();
_root.tete._x = -150;
i = 1;
while (i <= 3) {
_root.boax[i] = -500;
i++;
}
Frame 6
stop();
Frame 7
stop();
Frame 9
removeall();
resetlevel();
i = 1;
while (i <= 3) {
removeMovieClip("" + i);
i++;
}
tete._x = -300;
Symbol 20 Button
on (release) {
getURL ("mailto:info@lengele.com");
}
Symbol 27 Button
on (release) {
gotoAndStop ("start");
}
Symbol 34 MovieClip Frame 30
gotoAndPlay (1);
Symbol 41 MovieClip Frame 1
play();
sound4.start();
Symbol 41 MovieClip Frame 60
gotoAndPlay (1);
sound4.stop();
Symbol 49 Button
on (release) {
getURL ("http://www.lengele.com/");
}
Symbol 61 Button
on (release) {
stopAllSounds();
}
Symbol 69 Button
on (release) {
getURL ("http://www.lengele.com/");
}
Symbol 70 Button
on (release) {
loadMovieNum ("CaraySnake.swf", 0);
}
Symbol 118 MovieClip Frame 1
i = 1;
while (i <= 20) {
this["time" + i] = _root["score" + i];
i++;
}
Symbol 118 MovieClip Frame 175
stop();