Frame 1
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
prel.gotoAndStop(tgPrel);
if (b1 >= b2) {
gotoAndPlay ("intro");
}
Frame 4
if (Math.round(b1 / 1024) <= 35) {
gotoAndPlay ("loop1");
}
Frame 5
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
tg = tgprel - 1;
if (tg <= 9) {
procent = "0" + tg;
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 9
if (Math.round(b1 / 1024) <= 185) {
gotoAndPlay ("loop2");
}
Instance of Symbol 48 MovieClip in Frame 10
on (release) {
getURL ("http://www.freeonlinegames.com/?gemmania", "_blank");
}
Frame 11
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
tg = tgprel - 2;
if (tgprel <= 9) {
procent = "0" + tg;
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 14
if (b1 < b2) {
gotoAndPlay ("loop3");
}
Frame 15
procent = "--";
prel.gotoAndStop(100);
Frame 155
stopAllSounds();
fscommand ("fullscreen", "true");
fscommand ("fullscreen", "false");
sound4 = new Sound();
sound4.attachSound("fond");
t = getTimer() / 1000;
_root.resetlevel();
_root.removeall();
_root.tete._x = -150;
i = 1;
while (i <= 3) {
_root.boax[i] = -500;
i++;
}
Frame 156
_root.gotoAndStop("trei");
Frame 158
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() {
i = 1;
while (i <= long) {
corps.duplicateMovieClip("" + i, i);
_root["" + i]._x = boax[i];
_root["" + i]._x = boay[i];
i++;
}
i = 0;
while (i <= 13) {
j = 0;
while (j <= 19) {
switch (_root["ligne" + i][j]) {
case 1 :
duplicate(mur, i, j);
break;
case 2 :
duplicate(fruit, i, j);
}
j++;
}
i++;
}
}
function duplicate(clip, i, j) {
clip.duplicateMovieClip(clip._name + (5000 - ((20 * i) + j)), 5000 - ((20 * i) + j));
setProperty(clip._name + (5000 - ((20 * i) + j)), _x , (30 * j) + 15);
setProperty(clip._name + (5000 - ((20 * i) + j)), _y , (30 * i) + 15);
}
function removeall() {
i = 4;
while (i <= long) {
removeMovieClip("" + i);
i++;
}
}
function resetlevel() {
i = 5000;
while (i >= 4500) {
_root["fruit" + i].removeMovieClip();
_root["mur" + i].removeMovieClip();
i--;
}
}
function restart() {
resetlevel();
removeall();
long = 4;
manges = 0;
corpsok = true;
_root.ligne = (_root.colonne = 7);
boax = [225, 255, 285, 315];
boay = [225, 225, 225, 225];
tete._x = _root.boax[0];
tete._y = _root.boay[0];
tete._rotation = -90;
_root.affiche_level();
}
function calcultotal() {
total = 0;
i = 0;
while (i <= 13) {
j = 0;
while (j <= 19) {
if (_root["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]();
gleft = _root.total;
Instance of Symbol 121 MovieClip in Frame 158
on (release) {
getURL ("http://www.freeonlinegames.com/?gemmania", "_blank");
}
Instance of Symbol 141 MovieClip "fruit" in Frame 158
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++;
_root.lonx = _root.long - 2;
_root["" + _root.lonx].gotoAndStop(this._currentframe);
_root.gleft = _root.total - _root.manges;
if (_root.manges == _root.total) {
_root.level++;
_root.contx = 0;
_root.sound3.start();
if (_root.level <= 10) {
_root["level" + _root.level]();
} else {
_root.gotoAndStop("end");
}
}
this.removeMovieClip();
}
}
Instance of Symbol 143 MovieClip "corps" in Frame 158
onClipEvent (enterFrame) {
n = this._name;
if (_root.corpsok) {
this._x = _root.boax[n];
this._y = _root.boay[n];
i = 1;
while (i <= _root.contx) {
if ((Math.abs(this._x - _root.posx[i]) < 10) && (Math.abs(this._y - _root.posy[i]) < 10)) {
this._rotation = _root.rotx[i];
if (n == _root.long) {
j = i;
while (j < (_root.contx - 1)) {
_root.posx[j] = _root.posx[j + 1];
_root.posy[j] = _root.posy[j + 1];
_root.rotx[j] = _root.rotx[j + 1];
_root.contx = _root.contx - 1;
i = _root.contx + 1;
j++;
}
}
}
i++;
}
if (this.hitTest(_root.tete)) {
_root.vie--;
MonSon = new Sound();
_root.gogolaka.play();
MonSon.attachSound("Oh");
MonSon.start();
if (_root.vie < 0) {
_parent.gotoAndStop("gameover");
} else {
_root.sound2.start();
_root.restart();
}
}
}
}
Instance of Symbol 145 MovieClip "tete" in Frame 158
onClipEvent (load) {
this.swapDepths(9999);
this._x = _root.boax[0];
this._y = _root.boay[0];
_root.posx = new Array();
_root.posy = new Array();
_root.rotx = new Array();
_root.contx = 0;
oldmove = 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)) {
cmove = 1;
if (oldmove != cmove) {
_root.contx = _root.contx + 1;
oldmove = cmove;
_root.posx[_root.contx] = this._x;
_root.posy[_root.contx] = this._y;
_root.rotx[_root.contx] = 90;
}
_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)) {
cmove = 2;
if (oldmove != cmove) {
_root.contx = _root.contx + 1;
oldmove = cmove;
_root.posx[_root.contx] = this._x;
_root.posy[_root.contx] = this._y;
_root.rotx[_root.contx] = 0;
}
_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)) {
cmove = 3;
if (oldmove != cmove) {
_root.contx = _root.contx + 1;
oldmove = cmove;
_root.posx[_root.contx] = this._x;
_root.posy[_root.contx] = this._y;
_root.rotx[_root.contx] = 90;
}
_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)) {
cmove = 4;
if (oldmove != cmove) {
_root.contx = _root.contx + 1;
oldmove = cmove;
_root.posx[_root.contx] = this._x;
_root.posy[_root.contx] = this._y;
_root.rotx[_root.contx] = 0;
}
_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 159
_root.resetlevel();
_root.removeall();
_root.tete._x = -150;
i = 1;
while (i <= 3) {
_root.boax[i] = -500;
i++;
}
Frame 160
stop();
Frame 161
stop();
Frame 163
removeall();
resetlevel();
i = 1;
while (i <= 3) {
removeMovieClip("" + i);
i++;
}
tete._x = -300;
Symbol 4 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 50
stop();
_parent.play();
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 28
gotoAndPlay ("loop");
Symbol 57 MovieClip Frame 1
stop();
Symbol 62 Button
on (release) {
getURL ("http://freeonlinegames.com/downloads/GEMMania.exe", "_blank");
}
Symbol 66 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/?gemmania", "_blank");
}
Symbol 70 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?gemmania", "_blank");
}
Symbol 89 MovieClip Frame 26
gotoAndPlay ("loop");
Symbol 90 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?gemmania", "_blank");
}
Symbol 92 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?gemania", "_blank");
}
Symbol 101 Button
on (release) {
gotoAndStop ("start");
}
Symbol 106 MovieClip Frame 1
stop();
this.onRollOver = function () {
gotoAndPlay ("ou");
};
this.onRollOut = function () {
gotoAndPlay ("ov");
};
Symbol 106 MovieClip Frame 15
stop();
Symbol 115 Button
on (release) {
_root.gotoAndPlay("unu");
}
Symbol 130 Button
on (release) {
stopAllSounds();
}
Symbol 141 MovieClip Frame 2
stop();
gotoAndStop(random(7) + 3);
Symbol 143 MovieClip Frame 1
stop();
Instance of Symbol 156 MovieClip "skin" in Symbol 157 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(5) + 1);
}
Symbol 167 Button
on (release) {
_root.gotoAndPlay("unu");
}
Symbol 168 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/?gemmania", "_blank");
}