Frame 1
function sequenceDebut() {
var _local1 = _root;
for (i in _local1) {
_local1[i].removeMovieClip();
}
visAreaX = 12;
visAreaY = 12;
tileW = 32;
tileH = 32;
screenX = visAreaX * tileW;
screenY = (visAreaY * tileH) + 32;
indiceDecor = 52;
majorX = 0;
majorY = 0;
scrSpeedX = 0;
scrSpeedY = 0;
vitalite = 10;
collision = false;
kick = false;
direction = "droite";
shurikenDisponible = 3;
goldDisponible = 500;
shurikenExiste = false;
projectileFantome = false;
projectilePurple = false;
VarPlateforme = false;
interfaceDepth = 30000;
d = 1;
e = 10001;
f = 20000;
_local1.attachMovie("fondMenuDebut", "fondMenuDebut", 1);
_local1.fondMenuDebut._x = 0;
_local1.fondMenuDebut._y = 0;
_local1.fondMenuDebut._alpha = 100;
_local1.fondMenuDebut.onEnterFrame = function () {
if (Key.isDown(13) == true) {
_root.ChargementMap();
this.removeMovieClip();
}
};
}
function ChargementMap() {
var _local1 = _root;
visAreaX = 12;
visAreaY = 12;
tileW = 32;
tileH = 32;
screenX = visAreaX * tileW;
screenY = (visAreaY * tileH) + 32;
indiceDecor = 52;
indicePerso = 110;
majorX = 0;
majorY = 0;
scrSpeedX = 0;
scrSpeedY = 0;
collision = false;
kick = false;
direction = "droite";
shurikenExiste = false;
projectileFantome = false;
projectilePurple = false;
VarKey = false;
VarPlateforme = false;
interfaceDepth = 30000;
d = 1;
e = 10001;
f = 20000;
g = 30001;
_local1.attachMovie("transitionLevel", "transitionLevel", 1);
_local1.transitionLevel._x = 0;
_local1.transitionLevel._y = 0;
_local1.transitionLevel._alpha = 100;
_local1.transitionLevel.gotoAndStop(_local1.level);
if (_local1.level == 1) {
levelRow = 25;
levelCol = 20;
lev = "56,62,70,56,58,70,58,58,70,58,70,58,58,70,58,58,70,58,62,61;62,36,-1,63,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,35,62;59,-1,-1,6,-1,-1,-1,-1,-1,-1,-1,119,-1,-1,-1,-1,-1,12,33,61;90,88,-1,-1,-1,-1,-1,66,69,57,69,67,-1,-1,118,-1,-1,66,70,62;59,-1,-1,-1,121,-1,-1,-1,37,38,39,-1,-1,-1,-1,-1,-1,-1,-1,60;55,71,71,79,78,77,71,71,70,61,70,79,80,-1,-1,-1,-1,-1,-1,60;59,-1,-1,32,-1,32,-1,-1,-1,63,-1,32,-1,-1,-1,-1,-1,-1,-1,60;59,-1,-1,-1,-1,-1,126,-1,-1,63,8,-1,-1,-1,-1,-1,-1,-1,-1,60;59,-1,-1,66,71,71,79,84,13,64,79,80,-1,-1,-1,-1,-1,-1,-1,60;59,11,-1,-1,-1,-1,32,35,71,62,36,-1,7,-1,-1,7,-1,-1,-1,60;90,88,-1,-1,-1,-1,-1,-1,-1,32,-1,-1,60,69,57,74,84,-1,-1,60;59,-1,-1,11,40,11,-1,-1,-1,-1,-1,-1,32,35,58,36,35,67,-1,60;59,-1,-1,75,78,80,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,60;59,11,-1,-1,-1,30,-1,-1,-1,-1,-1,120,-1,-1,-1,-1,-1,-1,-1,60;90,88,-1,-1,-1,19,-1,-1,-1,-1,86,87,87,87,87,87,87,87,87,89;59,120,-1,-1,-1,19,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,30,-1,-1,60;90,87,87,87,88,19,-1,-1,-1,-1,-1,-1,-1,-1,126,-1,19,-1,11,60;59,-1,-1,-1,-1,19,-1,86,87,87,89,90,87,87,87,88,19,86,87,89;59,-1,-1,-1,-1,19,-1,-1,-1,-1,64,65,-1,-1,-1,-1,19,-1,-1,60;59,-1,-1,-1,-1,19,-1,-1,-1,-1,64,36,-1,-1,-1,-1,19,-1,-1,60;59,5,-1,7,-1,19,-1,-1,-1,-1,63,-1,-1,-1,-1,-1,19,-1,-1,60;55,71,71,61,34,19,31,123,92,15,63,-1,-1,-1,-1,-1,19,-1,-1,60;59,-1,-1,35,74,72,73,79,78,76,65,-1,-1,-1,-1,-1,19,-1,-1,60;59,14,-1,9,16,32,37,39,122,37,39,-1,-1,-1,99,100,19,-1,33,62;55,69,57,69,57,57,61,62,57,62,61,57,69,79,101,102,72,72,73,61";
_local1.map = lev.split(";");
i = 0;
while (i <= (levelRow + 1)) {
_local1.map[i] = _local1.map[i].split(",");
i++;
}
i = 0;
while (i < levelRow) {
j = 0;
while (j < levelCol) {
temp = _local1.map[i][j];
temp = Number(temp) + 1;
if (((temp >= 1) && (temp <= 25)) && (temp != 20)) {
temp = temp + 127;
}
_local1.map[i][j] = temp;
j++;
}
i++;
}
}
if (_local1.level == 2) {
levelRow = 35;
levelCol = 35;
lev = "55,70,70,70,70,70,61,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,54;59,-1,-1,-1,-1,-1,63,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,60;59,-1,-1,-1,-1,-1,63,12,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,60;90,87,87,88,-1,-1,64,71,69,69,69,69,69,69,69,67,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,66,71,71,61;59,-1,-1,-1,-1,-1,63,13,37,38,38,38,38,38,39,126,-1,-1,7,7,-1,91,99,100,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,60;59,-1,-1,-1,-1,-1,103,71,70,70,70,70,70,70,70,71,71,71,70,70,79,78,101,102,76,71,71,79,84,-1,-1,-1,-1,-1,60;59,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,30,-1,-1,-1,63,-1,35,36,32,-1,-1,35,74,84,-1,-1,-1,-1,60;59,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,19,-1,126,9,63,-1,-1,-1,-1,-1,-1,-1,103,65,-1,-1,-1,123,60;61,67,-1,66,71,71,71,71,71,71,69,71,71,71,71,67,19,66,71,71,65,-1,-1,-1,-1,-1,-1,-1,-1,63,-1,66,71,71,61;59,-1,-1,-1,-1,-1,-1,-1,-1,-1,63,-1,-1,-1,-1,-1,19,-1,-1,-1,63,-1,-1,15,-1,-1,-1,-1,-1,63,-1,-1,-1,-1,60;59,-1,-1,-1,-1,-1,-1,-1,-1,9,63,-1,-1,-1,-1,-1,19,-1,-1,-1,64,71,71,67,-1,-1,-1,-1,-1,63,-1,-1,-1,-1,60;59,-1,-1,-1,-1,-1,-1,66,71,71,82,-1,-1,-1,-1,-1,19,-1,-1,-1,63,-1,-1,-1,-1,-1,-1,-1,-1,63,0,-1,-1,-1,60;59,-1,-1,-1,-1,17,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,19,-1,-1,-1,63,-1,-1,-1,-1,68,-1,-1,-1,64,67,-1,-1,-1,60;62,34,7,-1,-1,-1,-1,120,-1,-1,-1,-1,-1,-1,-1,-1,19,-1,-1,-1,63,-1,-1,-1,-1,63,9,-1,-1,63,-1,-1,-1,66,61;61,62,70,69,69,69,71,71,71,71,71,79,84,-1,-1,-1,19,-1,-1,-1,63,-1,-1,-1,66,61,67,-1,-1,63,-1,-1,-1,-1,60;62,36,-1,35,62,36,-1,-1,-1,-1,-1,35,65,-1,-1,-1,19,-1,-1,-1,63,-1,-1,-1,-1,63,-1,-1,-1,63,118,-1,-1,-1,60;59,-1,-1,14,63,-1,-1,-1,-1,-1,-1,8,63,11,-1,-1,19,-1,-1,-1,64,67,-1,-1,-1,63,-1,-1,-1,63,-1,-1,-1,-1,60;59,-1,-1,66,65,-1,-1,-1,-1,66,71,71,61,67,-1,-1,19,-1,-1,-1,81,-1,-1,-1,7,63,-1,-1,-1,63,-1,-1,-1,118,60;62,34,-1,-1,16,-1,-1,-1,-1,-1,-1,-1,63,-1,-1,-1,19,-1,30,-1,-1,-1,-1,66,70,82,-1,-1,-1,63,-1,-1,-1,-1,60;61,62,71,71,79,84,-1,-1,-1,-1,-1,-1,63,-1,-1,-1,19,-1,19,-1,121,-1,-1,-1,-1,-1,-1,-1,7,63,118,-1,-1,-1,60;62,36,-1,-1,35,65,-1,-1,-1,-1,-1,-1,63,-1,-1,66,71,67,19,66,79,84,-1,-1,-1,-1,-1,66,70,65,-1,-1,-1,-1,60;59,-1,-1,-1,-1,103,67,-1,-1,30,-1,-1,63,-1,-1,-1,-1,-1,19,-1,64,65,-1,-1,-1,-1,-1,-1,-1,63,-1,-1,-1,118,60;59,10,-1,-1,-1,126,-1,-1,-1,19,-1,-1,63,-1,-1,-1,-1,-1,19,-1,35,74,84,-1,-1,-1,-1,-1,-1,64,67,-1,-1,-1,60;90,87,87,87,87,87,87,87,88,19,-1,83,73,67,-1,-1,-1,-1,19,-1,11,64,65,-1,-1,-1,-1,-1,33,65,-1,-1,-1,66,61;62,-1,-1,-1,-1,-1,-1,-1,-1,19,-1,64,36,-1,-1,-1,-1,-1,19,-1,83,73,74,80,-1,-1,-1,83,73,82,-1,-1,119,-1,60;59,-1,-1,-1,-1,-1,-1,-1,-1,19,-1,63,5,-1,-1,-1,-1,-1,19,-1,64,36,32,-1,-1,-1,83,73,36,-1,-1,-1,66,71,61;59,12,-1,-1,-1,-1,-1,-1,-1,19,-1,103,84,-1,-1,-1,-1,-1,19,-1,63,-1,-1,-1,-1,83,73,36,-1,-1,-1,-1,-1,-1,60;74,84,-1,-1,-1,-1,-1,-1,-1,19,-1,-1,63,-1,-1,-1,-1,68,19,-1,63,-1,-1,-1,-1,64,65,9,-1,-1,0,-1,-1,-1,60;61,36,-1,-1,-1,-1,-1,95,96,19,-1,33,65,-1,-1,-1,-1,32,19,-1,63,-1,-1,-1,66,70,70,71,79,72,84,-1,-1,-1,60;59,-1,-1,-1,-1,66,79,97,98,77,71,70,65,-1,-1,-1,-1,-1,19,-1,63,0,-1,-1,-1,-1,-1,-1,32,35,65,-1,-1,-1,60;59,-1,121,-1,-1,-1,35,70,70,36,-1,-1,63,-1,-1,-1,-1,-1,19,-1,64,67,-1,-1,-1,-1,-1,-1,-1,-1,103,67,-1,-1,60;74,72,84,-1,-1,-1,-1,-1,-1,-1,-1,33,61,34,-1,-1,-1,-1,19,-1,63,-1,68,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,60;62,61,74,84,-1,-1,-1,-1,-1,-1,83,73,62,65,-1,-1,-1,-1,19,-1,63,-1,32,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,66,61;61,62,61,74,84,-1,-1,-1,-1,119,37,38,38,39,-1,-1,-1,-1,19,33,61,34,-1,-1,99,100,-1,-1,-1,-1,-1,-1,-1,-1,125;62,61,62,61,74,72,72,72,72,72,73,61,62,61,69,69,69,69,69,61,62,61,79,72,101,102,72,20,21,24,72,77,69,69,61";
_local1.map = lev.split(";");
i = 0;
while (i <= (levelRow + 1)) {
_local1.map[i] = _local1.map[i].split(",");
i++;
}
i = 0;
while (i < levelRow) {
j = 0;
while (j < levelCol) {
temp = _local1.map[i][j];
temp = Number(temp) + 1;
if (((temp >= 1) && (temp <= 25)) && (temp != 20)) {
temp = temp + 127;
}
_local1.map[i][j] = temp;
j++;
}
i++;
}
}
if (_local1.level == 3) {
levelRow = 31;
levelCol = 31;
lev = "55,58,58,62,58,58,58,58,58,58,58,58,58,58,58,62,58,58,58,58,58,58,58,58,58,58,58,58,58,58,54;59,-1,-1,63,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,63,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,60;59,-1,-1,63,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,63,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,30,60;90,88,-1,63,-1,-1,-1,-1,-1,-1,-1,-1,126,15,9,63,8,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,125,-1,19,60;59,-1,-1,63,-1,-1,-1,-1,-1,86,87,87,87,87,87,89,67,-1,-1,-1,-1,68,118,-1,-1,-1,-1,83,84,19,60;59,-1,-1,64,71,67,-1,-1,-1,-1,-1,-1,-1,-1,-1,63,-1,-1,-1,83,76,36,-1,-1,-1,-1,-1,64,36,19,60;59,-1,7,63,-1,-1,-1,-1,-1,-1,-1,123,-1,-1,-1,63,-1,-1,-1,64,36,-1,31,7,7,7,7,63,-1,19,60;59,-1,103,65,-1,-1,-1,-1,83,76,79,84,-1,-1,-1,81,-1,-1,83,73,-1,83,73,70,70,70,70,82,-1,19,60;59,-1,-1,64,71,67,-1,-1,64,36,35,65,-1,-1,-1,121,-1,-1,64,82,-1,64,36,-1,-1,-1,-1,-1,-1,19,60;59,-1,-1,63,-1,-1,-1,-1,63,-1,-1,103,71,71,71,71,71,71,82,-1,-1,63,-1,120,31,-1,-1,-1,-1,19,60;59,-1,-1,63,-1,118,-1,-1,63,-1,-1,121,-1,-1,-1,-1,-1,-1,-1,-1,-1,63,-1,83,73,71,71,71,71,71,61;59,7,-1,63,-1,-1,-1,-1,63,-1,-1,83,76,71,71,71,71,71,71,71,71,82,-1,64,36,-1,-1,-1,-1,-1,60;61,82,-1,63,-1,-1,-1,66,65,-1,-1,64,82,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,63,14,-1,-1,-1,-1,-1,60;59,-1,-1,63,-1,-1,-1,-1,63,-1,-1,63,-1,-1,-1,-1,-1,-1,-1,-1,-1,83,76,70,71,71,84,-1,-1,-1,60;59,-1,-1,63,-1,118,-1,-1,63,-1,-1,63,-1,126,-1,-1,-1,-1,-1,-1,-1,125,65,-1,-1,-1,103,67,-1,-1,60;59,-1,-1,63,-1,-1,-1,-1,63,-1,7,63,-1,86,87,87,87,87,87,87,87,89,82,-1,-1,-1,-1,-1,-1,-1,125;59,-1,-1,63,-1,-1,-1,66,65,-1,103,65,-1,-1,-1,-1,-1,-1,-1,-1,-1,63,-1,-1,-1,86,87,87,87,87,89;59,-1,7,63,-1,-1,-1,-1,63,-1,-1,63,-1,-1,-1,-1,-1,-1,-1,-1,-1,63,-1,-1,-1,-1,-1,-1,-1,-1,60;59,-1,103,62,67,-1,-1,-1,63,-1,-1,63,-1,-1,-1,-1,-1,-1,-1,-1,-1,63,-1,-1,-1,-1,-1,-1,-1,118,60;59,-1,-1,63,-1,-1,-1,31,63,-1,-1,63,-1,-1,-1,-1,-1,-1,120,-1,-1,63,-1,-1,-1,-1,-1,-1,-1,119,60;59,-1,-1,63,-1,-1,-1,64,82,-1,-1,64,71,71,71,71,71,71,71,67,-1,63,-1,-1,-1,-1,-1,-1,66,71,61;59,-1,-1,63,-1,-1,-1,63,-1,-1,13,63,-1,-1,-1,-1,-1,-1,-1,-1,-1,63,-1,-1,-1,-1,-1,-1,-1,-1,60;59,-1,-1,63,-1,-1,0,63,-1,83,72,73,-1,-1,-1,41,-1,-1,-1,-1,-1,63,-1,-1,118,-1,-1,-1,-1,-1,60;59,-1,-1,63,-1,-1,66,65,-1,103,70,82,-1,83,72,78,84,-1,-1,-1,33,62,34,-1,31,-1,-1,-1,-1,-1,60;59,-1,-1,64,-1,-1,-1,63,-1,-1,-1,15,33,62,36,-1,16,-1,-1,83,73,70,70,71,70,71,67,-1,-1,-1,60;59,-1,7,63,0,-1,-1,63,-1,-1,83,72,73,65,-1,-1,83,72,72,73,82,-1,-1,-1,-1,-1,-1,-1,-1,-1,60;59,-1,103,70,67,-1,-1,63,-1,-1,64,70,70,82,-1,83,73,36,32,32,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,60;59,-1,-1,-1,-1,-1,-1,63,-1,-1,63,-1,-1,-1,-1,103,82,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,60;59,-1,-1,-1,-1,-1,-1,81,-1,-1,63,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,66,61;59,-1,-1,-1,-1,0,-1,121,-1,-1,124,-1,-1,-1,-1,-1,40,-1,-1,-1,-1,-1,120,-1,-1,-1,-1,-1,-1,-1,125;74,72,72,72,72,72,72,72,72,72,73,79,72,72,72,72,78,72,20,21,21,24,72,72,72,72,72,72,72,72,73";
_local1.map = lev.split(";");
i = 0;
while (i <= (levelRow + 1)) {
_local1.map[i] = _local1.map[i].split(",");
i++;
}
i = 0;
while (i < levelRow) {
j = 0;
while (j < levelCol) {
temp = _local1.map[i][j];
temp = Number(temp) + 1;
if (((temp >= 1) && (temp <= 25)) && (temp != 20)) {
temp = temp + 127;
}
_local1.map[i][j] = temp;
j++;
}
i++;
}
}
_local1.mapW = map[0].length;
_local1.mapH = map.length;
_local1.AreaH = mapH * tileH;
_local1.AreaW = mapW * tileW;
_local1.createEmptyMovieClip("compteur", 0);
compteur.time = getTimer();
compteur.onEnterFrame = function () {
newTime = getTimer();
if ((newTime - compteur.time) > 3000) {
delete _root.monFormat;
removeMovieClip(_level0.monTexte);
partie = new initialisation();
}
};
}
function initialisation() {
var _local1 = _root;
var _local2 = this;
_local1.transitionLevel.removeMovieClip();
_local1.attachMovie("ciel", "ciel", 1);
_local1.ciel._x = 0;
_local1.ciel._y = 0;
_local1.compteur.removeMovieClip();
_local1.createEmptyMovieClip("scrClip", 10);
_local1.scrClip._x = 0;
_local1.scrClip._y = 32;
_local1.afficheLives();
_local1.buildMap();
Key.addListener(_local1.scrClip.ninjack);
_local1.scrClip.attachMovie("ninjack", "ninjack", 10000);
_local1.scrClip.ninjack.nextPositionNinjack = nextPositionNinjack;
_local1.scrClip.ninjack.animationNinjack = animationNinjack;
_local1.scrClip.ninjack.graviteChute = graviteChute;
_local1.scrClip.ninjack.declarationPositionNinjack = declarationPositionNinjack;
_local1.scrClip.ninjack._x = 48;
_local1.scrClip.ninjack._y = 32;
_local1.scrClip.ninjack.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if ((_local2.collision == true) && ((getTimer() - _local2.debutImpact) > 1000)) {
_local2.collision = false;
_local2.debutImpact = 0;
}
_local1.graviteChute();
_local1.animationNinjack();
_local1.onKeyDown = nextPositionNinjack();
if (d > 9900) {
d = 11;
}
if (e > 19900) {
e = 10001;
}
if (f > 29900) {
f = 20000;
}
if (g > 39900) {
g = 30001;
}
_local1.declarationPositionNinjack();
};
_local1.fight.start(0, 1);
}
function afficheLives() {
var _local1 = _root;
_local1.attachMovie("barreStatus", "barreStatus", _local1.interfaceDepth++);
_local1.barreStatus._x = 0;
_local1.barreStatus._y = 0;
_local1.levelninjack.start(0, 1000);
}
function ComportementSortie() {
var _local1 = _root;
var _local2 = this;
if ((_local2._x > (_local1.scrClip.ninjack._x + 16)) || ((_local2._x + 32) < (_local1.scrClip.ninjack._x - 16))) {
} else if ((_local2._y > (_local1.scrClip.ninjack._y + 32)) || ((_local2._y + 32) < _local1.scrClip.ninjack._y)) {
} else {
_local1.levelninjack.stop();
for (i in _local1) {
_local1[i].removeMovieClip();
}
_local1.level = _local1.level + 1;
if (_local1.level == 4) {
_local1.level = 1;
_local1.sequenceDebut();
} else {
_local1.ChargementMap();
}
}
}
function sequenceFin() {
var _local1 = _root;
var _local2 = this;
_local1.levelninjack.stop();
for (i in _local1.scrClip) {
if (_local1.scrClip[i] != _local1.scrClip.ninjack) {
_local1.scrClip[i].removeMovieClip();
}
delete _local1.scrClip.ninjack.onEnterFrame;
_local1.attachMovie("fondMenuFin", "fondMenuFin", 2);
_local1.fondMenuFin._x = 0;
_local1.fondMenuFin._y = 0;
_local1.fondMenuFin._alpha = 0;
_local1.fondMenuFin.onEnterFrame = function () {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
};
_local1.scrClip.ninjack.gotoAndStop(12);
}
}
function buildMap() {
var _local1 = this;
var _local2 = _root;
i = 0;
while (i < (visAreaY + 1)) {
j = 0;
while (j < (visAreaX + 1)) {
tab0 = map[i][j];
if ((tab0 < indicePerso) && (tab0 != 0)) {
_local1.scrClip.attachMovie("tile", (("t_" + i) + "_") + j, d++);
scrClip[(("t_" + i) + "_") + j]._x = j * tileW;
scrClip[(("t_" + i) + "_") + j]._y = i * tileH;
scrClip[(("t_" + i) + "_") + j].gotoAndStop(tab0);
} else if (tab0 >= indicePerso) {
map[i][j] = 0;
_local2.GenerationPersonnage(i, j, tab0);
}
j++;
}
i++;
}
}
function doScroll(dir, decallage) {
var _local1 = this;
if (dir == "down") {
if (i < mapH) {
scrClip.ninjack._y = scrClip.ninjack._y + decallage;
_local1.scrClip._y = _local1.scrClip._y - decallage;
majorY = majorY + decallage;
if (majorY >= tileH) {
var _local3 = i;
while (_local3 < (i + 1)) {
var _local2 = (j - visareaX) - 1;
while (_local2 < j) {
var decor = map[_local3][_local2];
if ((decor != 0) && (decor != undefined)) {
if (decor < indicePerso) {
_local1.scrClip.attachMovie("tile", (("t_" + _local3) + "_") + _local2, d++);
var p = ((("t_" + _local3) + "_") + _local2);
_local1.scrClip[p]._x = _local2 * tileW;
_local1.scrClip[p]._y = _local3 * tileH;
_local1.scrClip[p].gotoAndStop(decor);
} else {
map[_local3][_local2] = 0;
new GenerationPersonnage(_local3, _local2, decor);
}
}
removeMovieClip(_local1.scrClip[(("t_" + ((_local3 - visAreaY) - 1)) + "_") + _local2]);
_local2++;
}
_local3++;
}
i++;
majorY = majorY - tileH;
}
} else {
scrClip.ninjack._y = scrClip.ninjack._y + scrSpeedY;
}
} else if (dir == "up") {
if ((i - visAreaY) > 1) {
scrClip.ninjack._y = scrClip.ninjack._y + decallage;
_local1.scrClip._y = _local1.scrClip._y - decallage;
majorY = majorY + decallage;
if (majorY <= 0) {
i--;
var _local3 = (i - visAreaY) - 1;
while (_local3 < (i - visAreaY)) {
var _local2 = (j - visareaX) - 1;
while (_local2 < j) {
var decor = map[_local3][_local2];
if ((decor != 0) && (decor != undefined)) {
if (decor < indicePerso) {
_local1.scrClip.attachMovie("tile", (("t_" + _local3) + "_") + _local2, d++);
var p = ((("t_" + _local3) + "_") + _local2);
_local1.scrClip[p]._x = _local2 * tileW;
_local1.scrClip[p]._y = _local3 * tileH;
_local1.scrClip[p].gotoAndStop(decor);
} else {
map[_local3][_local2] = 0;
new GenerationPersonnage(_local3, _local2, decor);
}
}
removeMovieClip(_local1.scrClip[(("t_" + ((_local3 + visAreaY) + 1)) + "_") + _local2]);
_local2++;
}
_local3++;
}
majorY = majorY + tileH;
}
} else {
scrClip.ninjack._y = scrClip.ninjack._y + scrSpeedY;
}
}
if (dir == "right") {
if ((j <= mapW) && ((scrClip.ninjack._x - 16) >= (_root.screenX / 2))) {
scrClip.ninjack._x = scrClip.ninjack._x + decallage;
_local1.scrClip._x = _local1.scrClip._x - decallage;
majorX = majorX + decallage;
if (majorX >= tileW) {
var _local3 = (i - visAreaY) - 1;
while (_local3 < i) {
var _local2 = j;
while (_local2 < (j + 1)) {
var decor = map[_local3][_local2];
if ((decor != 0) && (decor != undefined)) {
if (decor < indicePerso) {
_local1.scrClip.attachMovie("tile", (("t_" + _local3) + "_") + _local2, d++);
var p = ((("t_" + _local3) + "_") + _local2);
_local1.scrClip[p]._x = _local2 * tileW;
_local1.scrClip[p]._y = _local3 * tileH;
_local1.scrClip[p].gotoAndStop(decor);
} else {
map[_local3][_local2] = 0;
new GenerationPersonnage(_local3, _local2, decor);
}
}
removeMovieClip(_local1.scrClip[(("t_" + _local3) + "_") + ((_local2 - visAreaX) - 1)]);
_local2++;
}
_local3++;
}
j++;
majorX = majorX - tileW;
}
} else {
scrClip.ninjack._x = scrClip.ninjack._x + decallage;
}
} else if (dir == "left") {
if (((j - visAreaX) > 0) && (((AreaW - scrClip.ninjack._x) - 16) >= (_root.screenX / 2))) {
scrClip.ninjack._x = scrClip.ninjack._x + decallage;
_local1.scrClip._x = _local1.scrClip._x - decallage;
majorX = majorX + decallage;
if (majorX <= 0) {
j--;
var _local3 = (i - visAreaY) - 1;
while (_local3 < i) {
var _local2 = (j - visAreaX) - 1;
while (_local2 < (j - visAreaX)) {
var decor = map[_local3][_local2];
if (decor != 0) {
if (decor < indicePerso) {
_local1.scrClip.attachMovie("tile", (("t_" + _local3) + "_") + _local2, d++);
var p = ((("t_" + _local3) + "_") + _local2);
_local1.scrClip[p]._x = _local2 * tileW;
_local1.scrClip[p]._y = _local3 * tileH;
_local1.scrClip[p].gotoAndStop(decor);
} else {
map[_local3][_local2] = 0;
new GenerationPersonnage(_local3, _local2, decor);
}
}
removeMovieClip(_local1.scrClip[(("t_" + _local3) + "_") + ((_local2 + visAreaX) + 1)]);
_local2++;
}
_local3++;
}
majorX = majorX + tileW;
}
} else {
scrClip.ninjack._x = scrClip.ninjack._x + decallage;
}
}
}
function updateMajorY(scrClipY, ninjackY) {
decal = 32 - (ninjackY % 32);
return(decal);
}
function updateMajorX(scrClipX, ninjackX) {
decal = (ninjackX % 32) + 16;
return(decal);
}
function updateEdges(CX, CY, SpeedW, SpeedH) {
posL = Math.floor(((SpeedW + CX) + 1) / tileW);
posT = Math.floor(((SpeedH + CY) + 1) / tileH);
posR = Math.floor(((SpeedW + CX) + 31) / tileW);
posD = Math.floor(((SpeedH + CY) + 31) / tileH);
}
function nextPositionNinjack() {
var _local1 = _root;
if (Key.isDown(32) && (scrSpeedY == 0)) {
_local1.scrSpeedX = 0;
} else {
if (Key.isDown(38)) {
if ((scrSpeedY == 0) && (((map[posD][posL] >= indiceDecor) || (map[posD][posR] >= indiceDecor)) || (_local1.VarPlateforme == true))) {
_local1.NinjackSaute.start(0, 1);
scrSpeedY = -15;
}
} else if (Key.isDown(40) && (_local1.VarPlateforme == false)) {
_local1.scrSpeedY = 4;
_local1.updateEdges(scrClip.ninjack._x - 16, scrClip.ninjack._y, 0, scrSpeedY);
if ((map[posD][posL] < indiceDecor) && (map[posD][posR] < indiceDecor)) {
_local1.doScroll("down", scrSpeedY);
} else {
_local1.scrSpeedY = 0;
}
}
if (Key.isDown(37)) {
_local1.scrSpeedX = -4;
_local1.updateEdges(scrClip.ninjack._x - 16, scrClip.ninjack._y, scrSpeedX, 0);
if (((map[posT][posL] < indiceDecor) && (map[posD][posL] < indiceDecor)) && (map[posD][posL] != 144)) {
_local1.doScroll("left", scrSpeedX);
} else {
scrSpeedX = _local1.updateMajorX(scrClip._x, scrClip.ninjack._x) - 32;
_local1.doScroll("left", -scrSpeedX);
}
} else if (Key.isDown(39)) {
scrSpeedX = 4;
_local1.updateEdges(scrClip.ninjack._x - 16, scrClip.ninjack._y, scrSpeedX, 0);
if (((map[posT][posR] < indiceDecor) && (map[posD][posR] < indiceDecor)) && (map[posD][posR] != 144)) {
_local1.doScroll("right", scrSpeedX);
} else {
scrSpeedX = _local1.updateMajorX(scrClip._x, scrClip.ninjack._x) - 32;
_local1.doScroll("right", -scrSpeedX);
}
} else {
_local1.scrSpeedX = 0;
}
}
}
function animationNinjack() {
var _local1 = this;
var _local2 = _root;
if (_local2.VarEchelle == false) {
if ((scrSpeedY == 0) || (_local2.VarPlateforme == true)) {
if (Key.isDown(32)) {
if (Key.isDown(37)) {
if (_local2.direction == "droite") {
_local1.gotoAndStop(5);
} else {
_local1.gotoAndStop(6);
}
} else if (Key.isDown(39)) {
if (_local2.direction == "droite") {
_local1.gotoAndStop(6);
} else {
_local1.gotoAndStop(5);
}
} else if (Key.isDown(38)) {
_local1.gotoAndStop(7);
} else if (Key.isDown(40)) {
if (shurikenDisponible > 0) {
_local1.gotoAndStop(8);
} else {
_local1.gotoAndStop(3);
}
}
} else if (Key.isDown(39)) {
_local2.direction = "droite";
_local2.scrClip.ninjack._xscale = 100;
_local1.gotoAndStop(2);
} else if (Key.isDown(37)) {
_local2.direction = "gauche";
_local2.scrClip.ninjack._xscale = -100;
_local1.gotoAndStop(2);
} else if (Key.isDown(40)) {
_local1.gotoAndStop(3);
} else {
_local1.gotoAndStop(1);
}
} else if (Key.isDown(32)) {
_local1.gotoAndStop(4);
} else {
_local1.gotoAndStop(9);
if (scrSpeedX > 0) {
_local2.direction = "droite";
_local2.scrClip.ninjack._xscale = 100;
} else if (scrSpeedX < 0) {
_local2.direction = "gauche";
_local2.scrClip.ninjack._xscale = -100;
}
}
} else {
_local1.gotoAndStop(13);
}
}
function graviteChute() {
var _local1 = _root;
if (map[Ni][Nj] != 20) {
_local1.VarEchelle = false;
if (_local1.scrSpeedY >= 0) {
if (_local1.scrSpeedY < 8) {
_local1.scrSpeedY = _local1.scrSpeedY + 1;
}
_local1.updateEdges(scrClip.ninjack._x - 16, scrClip.ninjack._y, 0, scrSpeedY);
if ((map[posD][posL] < indiceDecor) && (map[posD][posR] < indiceDecor)) {
var _local2 = scrClip.ninjack._y + scrSpeedY;
var _local3 = scrSpeedY;
if ((_local2 <= (screenY / 2)) && (_local3 != 32)) {
scrClip.ninjack._y = _local2;
} else if (((_local2 >= (screenY / 2)) && (scrClip.ninjack._y < (screenY / 2))) && (_local3 != 32)) {
scrClip.ninjack._y = screenY / 2;
_local1.doScroll("down", _local2 - (screenY / 2));
} else if (_local3 != 32) {
_local1.doScroll("down", _local3);
}
} else {
scrSpeedY = _local1.updateMajorY(scrClip._y, scrClip.ninjack._y);
if (scrSpeedY != 32) {
var _local3 = scrSpeedY;
var _local2 = _local3 + scrClip.ninjack._y;
} else {
scrSpeedY = 0;
var _local3 = scrSpeedY;
var _local2 = scrClip.ninjack._y;
}
if ((_local2 <= (screenY / 2)) && (_local3 != 32)) {
scrClip.ninjack._y = _local2;
} else if (((_local2 >= (screenY / 2)) && (scrClip.ninjack._y < (screenY / 2))) && (_local3 != 32)) {
scrClip.ninjack._y = screenY / 2;
_local1.doScroll("down", _local2 - (screenY / 2));
} else if (_local3 != 32) {
_local1.doScroll("down", _local3);
}
}
}
if (scrSpeedY < 0) {
scrSpeedY = scrSpeedY + 1;
_local1.updateEdges(scrClip.ninjack._x - 16, scrClip.ninjack._y, 0, scrSpeedY);
if ((map[posT][posL] < indiceDecor) && (map[posT][posR] < indiceDecor)) {
var _local2 = scrClip.ninjack._y + scrSpeedY;
var _local3 = scrSpeedY;
} else {
var _local3 = _local1.updateMajorY(scrClip._y, scrClip.ninjack._y) - 32;
var _local2 = _local3 + scrClip.ninjack._y;
scrSpeedY = 0;
}
if (_local2 >= (AreaH - (screenY / 2))) {
scrClip.ninjack._y = _local2;
} else if ((_local2 <= (AreaH - (screenY / 2))) && (scrClip.ninjack._y > (AreaH - (screenY / 2)))) {
scrClip.ninjack._y = AreaH - (screenY / 2);
_local1.doScroll("up", _local2 - (AreaH - (screenY / 2)));
} else {
_local1.doScroll("up", _local3);
}
}
} else {
_local1.VarEchelle = true;
if (Key.isDown(38)) {
_local1.scrSpeedY = -4;
_local1.updateEdges(scrClip.ninjack._x - 16, scrClip.ninjack._y, 0, scrSpeedY);
if ((map[posD][posL] < indiceDecor) && (map[posD][posR] < indiceDecor)) {
_local1.doScroll("up", scrSpeedY);
} else {
_local1.scrSpeedY = 0;
}
} else if (Key.isDown(40)) {
_local1.scrSpeedY = 1;
_local1.updateEdges(scrClip.ninjack._x - 16, scrClip.ninjack._y, 0, scrSpeedY);
if ((map[posD][posL] < indiceDecor) && (map[posD][posR] < indiceDecor)) {
_local1.doScroll("down", scrSpeedY);
} else {
_local1.scrSpeedY = 0;
}
}
}
}
function lancerShuriken() {
var _local2 = _root;
var _local3 = this;
var _local1 = _local2.scrClip.attachMovie("shuriken", "shuriken", ++g);
_local1._y = _local2.scrClip.ninjack._y + 15;
if (_local2.direction == "droite") {
_local1._x = _local2.scrClip.ninjack._x + 20;
_local1.speed = 5;
} else {
_local1._x = _local2.scrClip.ninjack._x - 20;
_local1.speed = -5;
}
_local1.onEnterFrame = function () {
var _local1 = this;
_local1._x = _local1._x + _local1.speed;
var _local3 = Math.floor(_local1._y / tileH);
var _local2 = Math.floor(_local1._x / tileW);
if (map[_local3][_local2] >= indiceDecor) {
_root.shurikenMissed.start(0, 1);
shurikenExiste = false;
_local1.removeMovieClip();
}
};
}
function declarationPositionNinjack() {
_root.Nj = Math.floor(this._x / tileW);
_root.Ni = Math.floor((this._y + 15) / tileH);
}
function GenerationPersonnage(i, j, tab1) {
var _local2 = this;
var _local3 = j;
var _local1 = _root.scrClip.attachMovie("tile", (("p_" + i) + "_") + _local3, e++);
_local1._x = (_local3 * tileW) + 16;
_local1._y = i * tileH;
_local1.action = false;
_local1.type1 = tab1;
if ((tab1 == 123) || (tab1 == 124)) {
_local1.energie = 1;
} else {
_local1.energie = 2;
}
_local1.gotoAndStop(tab1);
_local1.collisionNinjack = collisionNinjack;
_local1.ennemieCoupPorte = ennemieCoupPorte;
_local1.effacementItem = effacementItem;
if ((tab1 == 126) || (tab1 == 125)) {
map[i][_local3] = 54;
_local1.Comportement = tourelle;
_local1.visibiliteFire = visibiliteFire;
_local1.onEnterFrame = function () {
this.Comportement();
};
}
if ((tab1 == 123) || (tab1 == 124)) {
_local1.speed = 2;
_local1.Comportement = ComportementDeplacementSimple;
_local1.visibiliteLigne = visibiliteLigne;
_local1.onEnterFrame = function () {
this.Comportement(this.speed);
};
}
if ((tab1 == 121) || (tab1 == 127)) {
_local1.speed = 2;
_local1.Comportement = ComportementDeplacementComplexe;
_local1.visibiliteFire = visibiliteFire;
_local1.onEnterFrame = function () {
this.Comportement(this.speed);
};
}
if (tab1 == 120) {
_local1.speed = 2;
_local1.Comportement = ComportementDeplacementSimpleFantome;
_local1.visibiliteLigne = visibiliteLigne;
_local1.onEnterFrame = function () {
this.Comportement(this.speed);
};
}
if (tab1 == 122) {
_local1.Comportement = collisionPicsMobile;
_local1.onEnterFrame = function () {
this.Comportement();
};
}
if (tab1 == 142) {
_local1.Comportement = ComportementSortie;
_local1.onEnterFrame = function () {
this.Comportement();
};
}
if (tab1 == 119) {
_local1.speed = 2;
_local1.collisionPlateforme = collisionPlateforme;
_local1.Comportement = ComportementPlateforme;
_local1.onEnterFrame = function () {
this.Comportement();
};
}
if (tab1 == 128) {
_local1.collisionTrampoline = collisionTrampoline;
_local1.onEnterFrame = function () {
this.collisionTrampoline(tab1);
};
}
if (((((((tab1 == 134) || (tab1 == 135)) || (tab1 == 148)) || (tab1 == 149)) || (tab1 == 150)) || (tab1 == 151)) || (tab1 == 152)) {
_local1.collisionPics = collisionPics;
_local1.onEnterFrame = function () {
this.collisionPics(tab1);
};
}
if ((tab1 >= 136) && (tab1 <= 140)) {
_local1.collisionGold = collisionGold;
_local1.onEnterFrame = function () {
this.collisionGold(tab1);
};
}
if (tab1 == 141) {
_local1.collisionKey = collisionKey;
_local1.onEnterFrame = function () {
this.collisionKey();
};
}
if (tab1 == 144) {
_local1.collisionPorte = collisionPorte;
_local1.onEnterFrame = function () {
this.collisionPorte();
};
}
if (tab1 == 133) {
_local1.collisionShurikens = collisionShurikens;
_local1.onEnterFrame = function () {
this.collisionShurikens();
};
}
if (tab1 == 143) {
_local1.collisionFioleFull = collisionFioleFull;
_local1.onEnterFrame = function () {
this.collisionFioleFull(tab1);
};
}
if (tab1 == 147) {
_local1.collisionEchelle = collisionEchelle;
_local1.onEnterFrame = function () {
this.collisionEchelle(tab1);
};
}
}
function ComportementDeplacementSimpleFantome() {
var _local1 = this;
var _local3 = Math.floor(_local1._x / tileW);
var Mi = Math.floor((_local1._y + 15) / tileH);
var _local2 = _local1.speed;
_local1.speed = _local2;
if ((((_local3 < (j - 15)) || (_local3 > (j + 3))) || (Mi < (i - 13))) || (Mi > (i + 1))) {
if (map[Mi][_local3] == 0) {
map[Mi][_local3] = _local1.type1;
_local1.removeMovieClip();
}
} else {
if (Mi == _root.Ni) {
if ((_local2 > 0) && (Nj < _local3)) {
_local1.speed = -_local2;
_local2 = -_local2;
_local1._xscale = -100;
if (projectileFantome == false) {
_local1["animation" + _local1.type1].gotoAndStop(3);
}
} else if ((_local2 < 0) && (Nj > _local3)) {
_local1.speed = -_local2;
_local2 = -_local2;
_local1._xscale = 100;
if (projectileFantome == false) {
_local1["animation" + _local1.type1].gotoAndStop(3);
}
} else if (projectileFantome == false) {
_local1["animation" + _local1.type1].gotoAndStop(3);
}
}
_root.updateEdges(_local1._x - 16, _local1._y, _local1.speed, 0);
if ((map[posD][posR] >= indiceDecor) || (map[posD][posL] >= indiceDecor)) {
_local1.speed = -_local2;
}
if (_local2 > 0) {
_local1._xscale = 100;
} else {
_local1._xscale = -100;
}
_local1._x = _local1._x + _local2;
}
if (!_root.collision) {
_local1.collisionNinjack(_local1._x, _local1._y, _local1.type1);
}
}
function ComportementDeplacementComplexe() {
var _local1 = this;
var _local2 = Math.floor(_local1._x / tileW);
var Mi = Math.floor((_local1._y + 15) / tileH);
var _local3 = _local1.speed;
_local1.speed = _local3;
if ((((_local2 < (j - 15)) || (_local2 > (j + 3))) || (Mi < (i - 13))) || (Mi > (i + 1))) {
if (map[Mi][_local2] == 0) {
map[Mi][_local2] = _local1.type1;
_local1.removeMovieClip();
}
} else if (_local1.visibiliteFire(Mi, _local2, Nj)) {
if (Mi == _root.Ni) {
if ((_local3 > 0) && (Nj > _local2)) {
if (projectilePurple == false) {
_local1["animation" + _local1.type1].gotoAndStop(5);
}
} else if ((_local3 < 0) && (Nj < _local2)) {
if (projectilePurple == false) {
_local1["animation" + _local1.type1].gotoAndStop(5);
}
}
}
}
_root.updateEdges(_local1._x - 16, _local1._y, _local1.speed, 0);
if ((((map[posD + 1][posR] == 0) || (map[posD + 1][posL] == 0)) || (map[posT][posL] >= indiceDecor)) || (map[posT][posR] >= indiceDecor)) {
_local1.speed = -_local3;
}
if (_local3 > 0) {
_local1._xscale = 100;
} else {
_local1._xscale = -100;
}
_local1._x = _local1._x + _local3;
if (!_root.collision) {
_local1.collisionNinjack(_local1._x, _local1._y, _local1.type1);
}
}
function tourelle() {
var _local1 = this;
var _local2 = Math.floor(_local1._x / tileW);
var _local3 = Math.floor((_local1._y + 15) / tileH);
if ((((_local2 < (j - 15)) || (_local2 > (j + 3))) || (_local3 < (i - 13))) || (_local3 > (i + 1))) {
map[_local3][_local2] = _local1.type1;
_local1.removeMovieClip();
} else if (_local1.visibiliteFire(_local3, _local2, Nj)) {
if (_local3 == _root.Ni) {
if ((_local1.type1 == 126) && (Nj < _local2)) {
if (projectilePurple == false) {
_local1["animation" + _local1.type1].gotoAndStop(2);
}
} else if ((_local1.type1 == 125) && (Nj > _local2)) {
if (projectilePurple == false) {
_local1["animation" + _local1.type1].gotoAndStop(2);
}
}
}
}
}
function ComportementDeplacementSimple() {
var _local1 = this;
var Mj = Math.floor(_local1._x / tileW);
var _local3 = Math.floor((_local1._y + 15) / tileH);
var _local2 = _local1.speed;
if ((((Mj < (j - 15)) || (Mj > (j + 3))) || (_local3 < (i - 13))) || (_local3 > (i + 1))) {
if (map[_local3][Mj] == 0) {
map[_local3][Mj] = _local1.type1;
_local1.removeMovieClip();
}
} else {
if (_local3 == _root.Ni) {
var vuNinjack = _local1.visibiliteLigne(_local3, Mj, _root.Nj);
if ((Math.abs(_local2) < 4) && (_local2 != 0)) {
_local1.speed = _local2 * _local1.Acceleration;
_local1["animation" + _local1.type1].gotoAndStop(1 * _local1.Acceleration);
}
} else {
difference = _local3 - _root.Ni;
if ((Math.abs(difference) > 3) && (_local2 != 0)) {
if (Math.abs(_local2 > 2)) {
_local1.Acceleration = 1;
_local1.speed = _local2 / 2;
_local1["animation" + _local1.type1].gotoAndStop(1 * _local1.Acceleration);
}
}
}
_root.updateEdges(_local1._x - 16, _local1._y, _local1.speed, 0);
if ((((map[posD + 1][posR] == 0) || (map[posD + 1][posL] == 0)) || (map[posT][posL] >= indiceDecor)) || (map[posT][posR] >= indiceDecor)) {
_local1.speed = -_local2;
}
if (_local2 > 0) {
_local1._xscale = 100;
} else if (_local2 < 0) {
_local1._xscale = -100;
}
_local1._x = _local1._x + _local2;
}
if (!_root.collision) {
_local1.collisionNinjack(_local1._x, _local1._y);
}
}
function collisionNinjack(PX, PY) {
var _local1 = _root;
var _local2 = this;
var _local3 = PX;
if (shurikenExiste == true) {
if (((_local3 - 16) > _local1.scrClip.shuriken._x) || ((_local3 + 16) < _local1.scrClip.shuriken._x)) {
} else if (((PY - 16) > _local1.scrClip.shuriken._y) || ((PY + 16) < _local1.scrClip.shuriken._y)) {
} else {
shurikenExiste = false;
delete _local2.onEnterFrame;
_local2["animation" + _local2.type1].gotoAndStop(4);
_local1.scrClip.shuriken.removeMovieClip();
}
}
if (((_local3 - 16) > (_local1.scrClip.ninjack._x + 6)) || ((_local3 + 16) < (_local1.scrClip.ninjack._x - 6))) {
} else if ((PY > _local1.scrClip.ninjack._y) || ((PY + 31) < _local1.scrClip.ninjack._y)) {
} else if ((!_local1.kick) && (!_local1.kickBack)) {
_local2.ennemieCoupPorte();
_local1.NinjackRecu.start(0, 1);
} else if (((((_local3 - 16) > _local1.scrClip.ninjack._x) && (_local1.direction == "gauche")) && (_local1.kick == true)) || ((((_local3 + 16) < _local1.scrClip.ninjack._x) && (_local1.direction == "droite")) && (_local1.kick == true))) {
_local2.ennemieCoupPorte();
} else if (((((_local3 - 16) > _local1.scrClip.ninjack._x) && (_local1.direction == "droite")) && (_local1.kickBack == true)) || ((((_local3 + 16) < _local1.scrClip.ninjack._x) && (_local1.direction == "gauche")) && (_local1.kickBack == true))) {
_local2.ennemieCoupPorte();
} else {
_local2.energie = _local2.energie - 1;
if (_local2.energie == 0) {
_local2.speed = 0;
delete _local2.onEnterFrame;
_local2["animation" + _local2.type1].gotoAndStop(4);
}
_local2.attachMovie("impactEnnemie", "impact", ++d);
_local2.impactEnnemie.onEnterFrame = function () {
this._x = _parent.impactEnnemie._x;
this._y = _parent.impactEnnemie._y;
};
var speed = _local2.speed;
_local2.speed = -speed;
}
}
function ennemieCoupPorte() {
var _local1 = _root;
var _local2 = this;
if ((_local2.speed != 0) && (_local2.type1 != 120)) {
_local2.temporaireVariable = _local2.speed;
_local2.speed = 0;
}
_local2["animation" + _local2.type1].gotoAndStop(3);
_local1.debutImpact = getTimer();
collision = true;
_local1.scrClip.ninjack.attachMovie("impactNinjack", "impact", ++d);
_local1.scrClip.ninjack.impactNinjack.onEnterFrame = function () {
this._x = _root.scrClip.ninjack._x;
this._y = _root.scrClip.ninjack._y;
};
_local1.scrSpeedY = -7;
_local1.scrClip.ninjack.gotoAndPlay(10);
_local1.vitalite = _local1.vitalite - 1;
_local1.barreStatus.iconeVitalite.gotoAndStop(_local1.vitalite);
_local1.barreStatus.energieBar._xscale = _local1.vitalite * 10;
if (_local1.vitalite <= 0) {
_local1.levelninjack.stop();
_local1.sequenceFin();
}
}
function visibiliteLigne(Mi, Mj, Nj) {
var _local3 = Math.max(Nj, Mj);
var _local1 = Math.min(Nj, Mj);
while (_local1 != _local3) {
var _local2 = map[Mi][_local1];
if (_local2 >= indiceDecor) {
break;
}
_local1++;
}
if (_local1 == _local3) {
this.acceleration = 2;
} else {
this.acceleration = 1;
}
}
function visibiliteFire(Mi, Mj, Nj) {
var _local3 = Math.max(Nj, Mj);
var _local1 = Math.min(Nj, Mj);
while (_local1 != _local3) {
var _local2 = map[Mi][_local1];
if (_local2 >= indiceDecor) {
break;
}
_local1++;
}
if (_local1 == _local3) {
this.acceleration = 2;
return(true);
}
this.acceleration = 1;
return(false);
}
function collisionEchelle() {
var _local1 = this;
var _local2 = Math.floor(_local1._x / tileW);
var _local3 = Math.floor((_local1._y + 15) / tileH);
_local1.effacementItem();
if ((_local3 == Ni) && (_local2 == Nj)) {
_root.VarEchelle = true;
}
}
function ComportementPlateforme() {
var _local1 = this;
var Mj = Math.floor((_local1._x + 15) / tileW);
var Mi = Math.floor((_local1._y + 15) / tileH);
var _local2 = _local1.speed;
_root.updateEdges(_local1._x - 16, _local1._y, _local1.speed, 0);
if ((map[posT][posL] >= indiceDecor) || (map[posT][posR] >= indiceDecor)) {
_local1.speed = -_local2;
}
_local1._x = _local1._x + _local2;
_local1.collisionPlateforme(_local1._x, _local1._y, _local2);
}
function collisionPlateforme(PX, PY, speed) {
var _local1 = _root;
var _local3 = speed;
if (((PX - 15) > (_local1.scrClip.ninjack._x + 10)) || ((PX + 15) < (_local1.scrClip.ninjack._x - 10))) {
_local1.VarPlateforme = false;
} else if ((PY > (_local1.scrClip.ninjack._y + 32)) || (PY < _local1.scrClip.ninjack._y)) {
_local1.VarPlateforme = false;
} else if ((PY - 20) <= _local1.scrClip.ninjack._y) {
} else {
_local1.VarPlateforme = true;
_local1.scrSpeedY = -1;
var de = (32 - _local1.updateMajorY(this._y, scrClip.ninjack._y));
scrClip.ninjack._y = scrClip.ninjack._y + (-de);
if (_local3 > 0) {
var _local2 = "right";
} else {
var _local2 = "left";
}
if (_local2 == "left") {
_local1.updateEdges(scrClip.ninjack._x - 16, scrClip.ninjack._y, this.speed, 0);
if ((map[posT][posL] < indiceDecor) && (map[posD][posL] < indiceDecor)) {
_local1.doScroll("left", _local3);
} else {
_local1.scrSpeedX = -1;
}
} else if (_local2 == "right") {
_local1.updateEdges(scrClip.ninjack._x - 16, scrClip.ninjack._y, this.speed, 0);
if ((map[posT][posR] < indiceDecor) && (map[posD][posR] < indiceDecor)) {
_local1.doScroll("right", _local3);
} else {
_local1.scrSpeedX = -1;
}
}
if (Key.isDown(38)) {
_local1.scrSpeedY = -15;
}
}
}
function effacementItem() {
var _local3 = this;
var _local1 = Math.floor(_local3._x / tileW);
var _local2 = Math.floor((_local3._y + 15) / tileH);
if ((((_local1 < ((j - visAreaX) - 3)) || (_local1 > (j + 3))) || (_local2 < (i - 15))) || (_local2 > (i + 3))) {
map[_local2][_local1] = _local3.type1;
_local3.removeMovieClip();
}
}
function collisionPics(tab1) {
var _local1 = _root;
var _local2 = this;
var _local3 = Math.floor(_local2._x / tileW);
var Mi = Math.floor((_local2._y + 15) / tileH);
_local2.effacementItem();
if ((Mi == Ni) && (_local3 == Nj)) {
_local1.debutImpact = getTimer();
collision = true;
_local1.scrClip.ninjack.attachMovie("impactNinjack", "impact", ++d);
_local1.scrClip.ninjack.impactNinjack.onEnterFrame = function () {
this._x = _root.scrClip.ninjack._x;
this._y = _root.scrClip.ninjack._y;
};
if (tab1 == 134) {
scrSpeedY = 8;
} else {
scrSpeedY = -10;
}
_local1.scrClip.ninjack.gotoAndPlay(10);
_local1.vitalite = _local1.vitalite - 1;
_local1.barreStatus.iconeVitalite.gotoAndStop(_local1.vitalite);
_local1.barreStatus.energieBar._xscale = _local1.vitalite * 10;
if (vitalite <= 0) {
_local1.sequenceFin();
}
}
}
function collisionPicsMobile(tab1) {
var _local1 = _root;
var _local2 = this;
var _local3 = Math.floor(_local2._x / tileW);
var Mi = Math.floor((_local2._y + 15) / tileH);
_local2.effacementItem();
if (((Mi == Ni) && (_local3 == Nj)) && (_local2.action)) {
_local1.debutImpact = getTimer();
collision = true;
_local1.scrClip.ninjack.attachMovie("impactNinjack", "impact", ++d);
_local1.scrClip.ninjack.impactNinjack.onEnterFrame = function () {
this._x = _root.scrClip.ninjack._x;
this._y = _root.scrClip.ninjack._y;
};
_local1.scrClip.ninjack.gotoAndPlay(10);
_local1.vitalite = _local1.vitalite - 1;
_local1.barreStatus.iconeVitalite.gotoAndStop(_local1.vitalite);
_local1.barreStatus.energieBar._xscale = _local1.vitalite * 10;
if (vitalite <= 0) {
_local1.sequenceFin();
}
}
}
function collisionTrampoline(tab1) {
var _local1 = this;
var _local2 = Math.floor(_local1._x / tileW);
var _local3 = Math.floor((_local1._y + 15) / tileH);
_local1.effacementItem();
if (((_local3 == Ni) && (_local2 == Nj)) && (scrSpeedY > 0)) {
_root.trampolineSon.start(0, 1);
_local1["animation" + tab1].play();
scrSpeedY = -22;
}
}
function collisionGold(tab1) {
var _local1 = this;
var _local2 = tab1;
var _local3 = Math.floor(_local1._x / tileW);
var Mi = Math.floor((_local1._y + 15) / tileH);
_local1.effacementItem();
if ((Mi == Ni) && (_local3 == Nj)) {
if (_local2 == 139) {
goldDisponible = goldDisponible + 5;
_local1.removeMovieClip();
} else if (_local2 == 138) {
goldDisponible = goldDisponible + 10;
_local1.removeMovieClip();
} else if (_local2 == 136) {
goldDisponible = goldDisponible + 20;
_local1.removeMovieClip();
} else {
goldDisponible = goldDisponible + 50;
_local1.removeMovieClip();
}
}
}
function collisionKey() {
var _local1 = this;
var _local2 = Math.floor(_local1._x / tileW);
var _local3 = Math.floor((_local1._y + 15) / tileH);
_local1.effacementItem();
if ((_local3 == Ni) && (_local2 == Nj)) {
_root.VarKey = true;
_root.barreStatus.IconKey.gotoAndStop(2);
_local1.removeMovieClip();
}
}
function collisionPorte() {
var _local3 = this;
var _local1 = Math.floor(_local3._x / tileW);
var _local2 = Math.floor((_local3._y + 15) / tileH);
if ((_local2 == Ni) && ((((_local1 + 1) == Nj) || ((_local1 - 1) == Nj)) || (_local1 == Nj))) {
if (VarKey == false) {
map[_local2][_local1] = 52;
} else {
map[_local2][_local1] = 51;
_local3.porteImage.gotoAndStop(2);
}
}
}
function collisionShurikens() {
var _local1 = this;
var _local2 = Math.floor(_local1._x / tileW);
var _local3 = Math.floor((_local1._y + 15) / tileH);
_local1.effacementItem();
if ((_local3 == Ni) && (_local2 == Nj)) {
shurikenDisponible = shurikenDisponible + 3;
_local1.removeMovieClip();
}
}
function collisionFioleFull() {
var _local1 = this;
var _local2 = _root;
var _local3 = Math.floor(_local1._x / tileW);
var Mi = Math.floor((_local1._y + 15) / tileH);
_local1.effacementItem();
if ((Mi == Ni) && (_local3 == Nj)) {
vitalite = 10;
_local2.barreStatus.iconeVitalite.gotoAndStop(_local2.vitalite);
_local2.barreStatus.energieBar._xscale = _local2.vitalite * 10;
_local1.removeMovieClip();
}
}
0(true);
_highquality = 0;
fscommand ("allowscale", false);
level = 1;
_root.sequenceDebut();
YouLose = new Sound();
YouLose.attachSound("YouLose");
fight = new Sound();
fight.attachSound("fight");
EnnemieKick = new Sound();
EnnemieKick.attachSound("EnnemieKick");
NinjackShuriken = new Sound();
NinjackShuriken.attachSound("NinjackShuriken");
NinjackSaute = new Sound();
NinjackSaute.attachSound("NinjackSaute");
NinjackRecu = new Sound();
NinjackRecu.attachSound("NinjackRecu");
NinjackKick = new Sound();
NinjackKick.attachSound("NinjackKick");
flammeSound = new Sound();
flammeSound.attachSound("flammeSound");
levelninjack = new Sound();
levelninjack.attachSound("levelninjack");
trampolineSon = new Sound();
trampolineSon.attachSound("trampolineSon");
shurikenMissed = new Sound();
shurikenMissed.attachSound("shurikenMissed");
Symbol 38 MovieClip [iconeVitalite] Frame 1
stop();
Symbol 38 MovieClip [iconeVitalite] Frame 2
stop();
Symbol 38 MovieClip [iconeVitalite] Frame 3
stop();
Symbol 38 MovieClip [iconeVitalite] Frame 4
stop();
Symbol 38 MovieClip [iconeVitalite] Frame 5
stop();
Symbol 38 MovieClip [iconeVitalite] Frame 6
stop();
Symbol 38 MovieClip [iconeVitalite] Frame 7
stop();
Symbol 38 MovieClip [iconeVitalite] Frame 8
stop();
Symbol 38 MovieClip [iconeVitalite] Frame 9
stop();
Symbol 38 MovieClip [iconeVitalite] Frame 10
stop();
Symbol 38 MovieClip [iconeVitalite] Frame 11
stop();
Symbol 258 MovieClip Frame 9
function ComportementBouleFeu() {
var _local1 = _root;
var _local2 = this;
_local2._x = _local2._x + _local2.vitesse;
if ((_local2._x < -32) || (_local2._x > (_local1.map[0].length * 32))) {
_local1.projectileFantome = false;
_local2.removeMovieClip();
} else {
var _local3 = Math.floor((_local2._x + 4) / _local1.tileW);
var Mi = Math.floor((_local2._y + 4) / _local1.tileH);
if (((Mi == _local1.Ni) && (_local3 == _local1.Nj)) && (_local1.scrClip.ninjack._currentFrame != 3)) {
_local1.debutImpact = getTimer();
_local1.scrClip.ninjack.attachMovie("impactNinjack", "impact", ++d);
_local1.scrClip.ninjack.impactNinjack.onEnterFrame = function () {
var _local1 = this;
_local1._x = _root.scrClip.ninjack._x;
_local1._y = _root.scrClip.ninjack._y;
_local1.removeMovieClip();
};
_local1.scrClip.ninjack.gotoAndPlay(10);
_local1.vitalite = _local1.vitalite - 1;
_local1.barreStatus.iconeVitalite.gotoAndStop(_local1.vitalite);
_local1.barreStatus.energieBar._xscale = _local1.vitalite * 10;
if (_local1.vitalite <= 0) {
_local1.sequenceFin();
}
_local1.projectileFantome = false;
_local2.removeMovieClip();
}
}
}
_root.projectileFantome = true;
_root.scrClip.attachMovie("bouleFeu", "boule", _root.g++);
_root.scrClip.boule._x = _parent._parent._x;
_root.scrClip.boule._y = _parent._parent._y + 16;
_root.scrClip.boule.ComportementBouleFeu = ComportementBouleFeu;
if (_parent._parent._xscale > 0) {
_root.scrClip.boule.vitesse = 6;
} else {
_root.scrClip.boule.vitesse = -6;
_root.scrClip.boule._xscale = -100;
}
_root.flammeSound.start(0, 1);
_root.scrClip.boule.onEnterFrame = function () {
this.ComportementBouleFeu();
};
Symbol 258 MovieClip Frame 25
_parent.gotoAndStop(1);
Symbol 269 MovieClip Frame 15
_parent._parent.removeMovieClip();
Symbol 270 MovieClip [fantome] Frame 1
stop();
Symbol 270 MovieClip [fantome] Frame 2
stop();
Symbol 270 MovieClip [fantome] Frame 3
stop();
Symbol 270 MovieClip [fantome] Frame 4
stop();
Symbol 299 MovieClip Frame 1
_root.EnnemieKick.start(0, 1);
Symbol 299 MovieClip Frame 11
_parent._parent.speed = _parent._parent.temporaireVariable;
_parent.gotoAndStop(2);
Symbol 308 MovieClip Frame 19
_parent._parent.removeMovieClip();
Symbol 317 MovieClip Frame 7
function ComportementBouleFeu() {
var _local1 = _root;
var _local2 = this;
_local2._x = _local2._x + _local2.vitesse;
if ((_local2._x < -32) || (_local2._x > (_local1.map[0].length * 32))) {
_local1.projectilePurple = false;
_local2.removeMovieClip();
} else {
var _local3 = Math.floor((_local2._x + 4) / _local1.tileW);
var Mi = Math.floor((_local2._y + 4) / _local1.tileH);
if (((Mi == _local1.Ni) && (_local3 == _local1.Nj)) && (_local1.scrClip.ninjack._currentFrame != 3)) {
_local1.debutImpact = getTimer();
_local1.scrClip.ninjack.attachMovie("impactNinjack", "impact", ++d);
_local1.scrClip.ninjack.impactNinjack.onEnterFrame = function () {
var _local1 = this;
_local1._x = _root.scrClip.ninjack._x;
_local1._y = _root.scrClip.ninjack._y;
_local1.removeMovieClip();
};
_local1.scrClip.ninjack.gotoAndPlay(10);
_local1.vitalite = _local1.vitalite - 1;
_local1.barreStatus.iconeVitalite.gotoAndStop(_local1.vitalite);
_local1.barreStatus.energieBar._xscale = _local1.vitalite * 10;
if (_local1.vitalite <= 0) {
_local1.sequenceFin();
}
_local1.projectilePurple = false;
_local2.removeMovieClip();
}
}
}
_root.projectilePurple = true;
_root.scrClip.attachMovie("bouleFeuSmall", "boule", _root.g++);
_root.scrClip.boule._x = _parent._parent._x;
_root.scrClip.boule._y = _parent._parent._y + 8;
_root.scrClip.boule.ComportementBouleFeu = ComportementBouleFeu;
if (_parent._parent._xscale > 0) {
_root.scrClip.boule.vitesse = 6;
} else {
_root.scrClip.boule.vitesse = -6;
_root.scrClip.boule._xscale = -100;
}
_root.flammeSound.start(0, 1);
_root.scrClip.boule.onEnterFrame = function () {
this.ComportementBouleFeu();
};
Symbol 317 MovieClip Frame 13
_parent.gotoAndStop(1);
Symbol 318 MovieClip Frame 1
stop();
Symbol 318 MovieClip Frame 2
stop();
Symbol 318 MovieClip Frame 3
stop();
Symbol 318 MovieClip Frame 4
stop();
Symbol 318 MovieClip Frame 5
stop();
Symbol 325 MovieClip Frame 37
_parent.action = true;
Symbol 325 MovieClip Frame 38
_parent.action = false;
Symbol 354 MovieClip Frame 1
_root.EnnemieKick.start(0, 1);
Symbol 354 MovieClip Frame 11
_parent._parent.speed = _parent._parent.temporaireVariable;
_parent.gotoAndStop(2);
Symbol 363 MovieClip Frame 19
_parent._parent.removeMovieClip();
Symbol 364 MovieClip Frame 1
stop();
Symbol 364 MovieClip Frame 2
stop();
Symbol 364 MovieClip Frame 3
stop();
Symbol 364 MovieClip Frame 4
stop();
Symbol 391 MovieClip Frame 1
_root.EnnemieKick.start(0, 1);
Symbol 391 MovieClip Frame 9
_parent._parent.speed = _parent._parent.temporaireVariable;
_parent.gotoAndStop(2);
Symbol 398 MovieClip Frame 18
_parent._parent.removeMovieClip();
Symbol 399 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 2
stop();
Symbol 399 MovieClip Frame 3
stop();
Symbol 399 MovieClip Frame 4
stop();
Symbol 402 MovieClip Frame 2
function ComportementBouleFeu() {
var _local1 = _root;
var _local2 = this;
_local2._x = _local2._x + _local2.vitesse;
if ((_local2._x < -32) || (_local2._x > (_local1.map[0].length * 32))) {
_local1.projectilePurple = false;
_local2.removeMovieClip();
} else {
var _local3 = Math.floor((_local2._x + 4) / _local1.tileW);
var Mi = Math.floor((_local2._y + 4) / _local1.tileH);
if ((Mi == _local1.Ni) && (_local3 == _local1.Nj)) {
_local1.debutImpact = getTimer();
_local1.scrClip.ninjack.attachMovie("impactNinjack", "impact", ++d);
_local1.scrClip.ninjack.impactNinjack.onEnterFrame = function () {
this._x = _root.scrClip.ninjack._x;
this._y = _root.scrClip.ninjack._y;
};
_local1.scrClip.ninjack.gotoAndPlay(10);
_local1.vitalite = _local1.vitalite - 1;
_local1.barreStatus.iconeVitalite.gotoAndStop(_local1.vitalite);
_local1.barreStatus.energieBar._xscale = _local1.vitalite * 10;
if (_local1.vitalite <= 0) {
_local1.sequenceFin();
}
_local1.projectilePurple = false;
_local2.removeMovieClip();
}
}
}
_root.projectilePurple = true;
_root.scrClip.attachMovie("bouleFeu", "boule", d++);
_root.scrClip.boule._x = _parent._parent._x;
_root.scrClip.boule._y = _parent._parent._y + 16;
_root.scrClip.boule.ComportementBouleFeu = ComportementBouleFeu;
_root.scrClip.boule.vitesse = 6;
_root.flammeSound.start(0, 1);
_root.scrClip.boule.onEnterFrame = function () {
this.ComportementBouleFeu();
};
Symbol 402 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 403 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 2
stop();
Symbol 404 MovieClip Frame 2
function ComportementBouleFeu() {
var _local1 = _root;
var _local2 = this;
_local2._x = _local2._x + _local2.vitesse;
if ((_local2._x < -32) || (_local2._x > (_local1.map[0].length * 32))) {
_local1.projectilePurple = false;
_local2.removeMovieClip();
} else {
var _local3 = Math.floor((_local2._x + 4) / _local1.tileW);
var Mi = Math.floor((_local2._y + 4) / _local1.tileH);
if ((Mi == _local1.Ni) && (_local3 == _local1.Nj)) {
_local1.debutImpact = getTimer();
_local1.scrClip.ninjack.attachMovie("impactNinjack", "impact", ++d);
_local1.scrClip.ninjack.impactNinjack.onEnterFrame = function () {
var _local1 = this;
_local1._x = _root.scrClip.ninjack._x;
_local1._y = _root.scrClip.ninjack._y;
_local1.removeMovieClip();
};
_local1.scrClip.ninjack.gotoAndPlay(10);
_local1.vitalite = _local1.vitalite - 1;
_local1.barreStatus.iconeVitalite.gotoAndStop(_local1.vitalite);
_local1.barreStatus.energieBar._xscale = _local1.vitalite * 10;
if (_local1.vitalite <= 0) {
_local1.sequenceFin();
}
_local1.projectilePurple = false;
_local2.removeMovieClip();
}
}
}
_root.projectilePurple = true;
_root.scrClip.attachMovie("bouleFeu", "boule", _root.g++);
_root.scrClip.boule._x = _parent._parent._x;
_root.scrClip.boule._y = _parent._parent._y + 8;
_root.scrClip.boule._xscale = -100;
_root.scrClip.boule.ComportementBouleFeu = ComportementBouleFeu;
_root.scrClip.boule.vitesse = -6;
_root.flammeSound.start(0, 1);
_root.scrClip.boule.onEnterFrame = function () {
this.ComportementBouleFeu();
};
Symbol 404 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 405 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 2
stop();
Symbol 434 MovieClip Frame 1
_root.EnnemieKick.start(0, 1);
Symbol 434 MovieClip Frame 11
_parent._parent.speed = _parent._parent.temporaireVariable;
_parent.gotoAndStop(2);
Symbol 443 MovieClip Frame 21
_parent._parent.removeMovieClip();
Symbol 452 MovieClip Frame 7
function ComportementBouleFeu() {
var _local1 = _root;
var _local2 = this;
_local2._x = _local2._x + _local2.vitesse;
if ((_local2._x < -32) || (_local2._x > (_local1.map[0].length * 32))) {
_local1.projectilePurple = false;
_local2.removeMovieClip();
} else {
var _local3 = Math.floor((_local2._x + 4) / _local1.tileW);
var Mi = Math.floor((_local2._y + 4) / _local1.tileH);
if (((Mi == _local1.Ni) && (_local3 == _local1.Nj)) && (_local1.scrClip.ninjack._currentFrame != 3)) {
_local1.debutImpact = getTimer();
_local1.scrClip.ninjack.attachMovie("impactNinjack", "impact", ++d);
_local1.scrClip.ninjack.impactNinjack.onEnterFrame = function () {
var _local1 = this;
_local1._x = _root.scrClip.ninjack._x;
_local1._y = _root.scrClip.ninjack._y;
_local1.removeMovieClip();
};
_local1.scrClip.ninjack.gotoAndPlay(10);
_local1.vitalite = _local1.vitalite - 1;
_local1.barreStatus.iconeVitalite.gotoAndStop(_local1.vitalite);
_local1.barreStatus.energieBar._xscale = _local1.vitalite * 10;
if (_local1.vitalite <= 0) {
_local1.sequenceFin();
}
_local1.projectilePurple = false;
_local2.removeMovieClip();
}
}
}
_root.projectilePurple = true;
_root.scrClip.attachMovie("bouleFeuSmall", "boule", _root.g++);
_root.scrClip.boule._x = _parent._parent._x + 10;
_root.scrClip.boule._y = _parent._parent._y;
_root.scrClip.boule.ComportementBouleFeu = ComportementBouleFeu;
if (_parent._parent._xscale > 0) {
_root.scrClip.boule.vitesse = 6;
} else {
_root.scrClip.boule.vitesse = -6;
_root.scrClip.boule._xscale = -100;
}
_root.flammeSound.start(0, 1);
_root.scrClip.boule.onEnterFrame = function () {
this.ComportementBouleFeu();
};
Symbol 452 MovieClip Frame 14
_parent.gotoAndStop(1);
Symbol 453 MovieClip Frame 1
stop();
Symbol 453 MovieClip Frame 2
stop();
Symbol 453 MovieClip Frame 3
stop();
Symbol 453 MovieClip Frame 4
stop();
Symbol 453 MovieClip Frame 5
stop();
Symbol 464 MovieClip [trampoline] Frame 1
stop();
Symbol 464 MovieClip [trampoline] Frame 11
gotoAndStop (1);
Symbol 476 MovieClip Frame 1
stop();
Symbol 476 MovieClip Frame 2
stop();
Symbol 478 MovieClip [tile] Frame 1
stop();
Symbol 485 MovieClip Frame 1
_root.kickBack = false;
_root.kick = false;
Symbol 494 MovieClip Frame 1
_root.kickBack = false;
_root.kick = false;
Symbol 502 MovieClip Frame 1
_root.kickBack = false;
_root.kick = false;
Symbol 502 MovieClip Frame 10
stop();
Symbol 511 MovieClip Frame 1
_root.NinjackKick.start(0, 1);
_root.kickBack = false;
_root.kick = false;
Symbol 511 MovieClip Frame 4
_root.kick = true;
Symbol 511 MovieClip Frame 12
_root.kick = false;
_parent.gotoAndStop(1);
stop();
Symbol 520 MovieClip Frame 1
_root.NinjackKick.start(0, 1);
_root.kickBack = false;
_root.kick = false;
Symbol 520 MovieClip Frame 7
_root.kickBack = true;
Symbol 520 MovieClip Frame 14
_root.kickBack = false;
_root.kick = false;
Symbol 520 MovieClip Frame 17
_root.kickBack = false;
_root.kick = false;
_parent.gotoAndStop(1);
stop();
Symbol 533 MovieClip Frame 1
_root.kick = true;
_root.kickBack = false;
Symbol 533 MovieClip Frame 4
_root.NinjackKick.start(0, 1);
Symbol 533 MovieClip Frame 13
_root.kick = false;
Symbol 533 MovieClip Frame 18
_root.kick = false;
_parent.gotoAndStop(1);
stop();
Symbol 546 MovieClip Frame 1
_root.kickBack = false;
_root.kick = false;
Symbol 546 MovieClip Frame 7
_root.NinjackKick.start(0, 1);
_root.kick = true;
Symbol 546 MovieClip Frame 15
_root.kick = false;
_parent.gotoAndStop(1);
stop();
Symbol 563 MovieClip Frame 1
_root.kickBack = false;
_root.kick = false;
Symbol 563 MovieClip Frame 5
_root.NinjackShuriken.start(0, 1);
Symbol 563 MovieClip Frame 11
_root.lancerShuriken();
_root.shurikenDisponible = _root.shurikenDisponible - 1;
_root.shurikenExiste = true;
Symbol 563 MovieClip Frame 17
_root.kick = false;
_parent.gotoAndStop(1);
stop();
Symbol 579 MovieClip Frame 1
_root.kickBack = false;
_root.kick = false;
if (_root.scrSpeedY > 0) {
gotoAndPlay (13);
}
Symbol 579 MovieClip Frame 10
stop();
if (_root.scrSpeedY < 0) {
play();
}
Symbol 579 MovieClip Frame 18
if (_root.scrSpeedY == 0) {
gotoAndStop (19);
}
stop();
Symbol 579 MovieClip Frame 19
stop();
Symbol 584 MovieClip Frame 1
_root.kickBack = false;
_root.kick = false;
Symbol 584 MovieClip Frame 10
_root.kick = false;
_parent.gotoAndStop(1);
stop();
Symbol 585 MovieClip Frame 1
_root.kickBack = false;
_root.kick = false;
Symbol 585 MovieClip Frame 5
stop();
Symbol 602 MovieClip Frame 41
_root.YouLose.start(0, 1);
Symbol 602 MovieClip Frame 200
_root.sequenceDebut();
stop();
Symbol 630 MovieClip Frame 1
_root.kickBack = false;
_root.kick = false;
Symbol 630 MovieClip Frame 7
_root.NinjackKick.start(0, 1);
_root.kick = true;
Symbol 630 MovieClip Frame 16
_root.kick = false;
Symbol 630 MovieClip Frame 18
_parent.gotoAndStop(1);
stop();
Symbol 631 MovieClip [ninjack] Frame 1
_root.kick = false;
stop();
Symbol 631 MovieClip [ninjack] Frame 2
_root.kick = false;
stop();
Symbol 631 MovieClip [ninjack] Frame 3
_root.kick = false;
stop();
Symbol 631 MovieClip [ninjack] Frame 4
stop();
Symbol 631 MovieClip [ninjack] Frame 5
stop();
Symbol 631 MovieClip [ninjack] Frame 6
stop();
Symbol 631 MovieClip [ninjack] Frame 7
stop();
Symbol 631 MovieClip [ninjack] Frame 8
_root.kick = false;
stop();
Symbol 631 MovieClip [ninjack] Frame 9
_root.kick = false;
Symbol 631 MovieClip [ninjack] Frame 10
_root.kick = false;
stop();
Symbol 631 MovieClip [ninjack] Frame 11
stop();
Symbol 631 MovieClip [ninjack] Frame 12
stop();
Symbol 631 MovieClip [ninjack] Frame 13
stop();
Symbol 631 MovieClip [ninjack] Frame 15
stop();
Symbol 632 MovieClip [perso] Frame 1
stop();
Symbol 641 MovieClip Frame 1
stop();
Symbol 641 MovieClip Frame 2
stop();
Instance of Symbol 634 MovieClip "energieBar" in Symbol 644 MovieClip [barreStatus] Frame 1
onClipEvent (load) {
this._xscale = _root.vitalite * 10;
}
Instance of Symbol 641 MovieClip "IconKey" in Symbol 644 MovieClip [barreStatus] Frame 1
/* no clip actions */
Symbol 663 MovieClip [impactEnnemie] Frame 12
this.removeMovieClip();
Symbol 676 MovieClip [impactNinjack] Frame 12
this.removeMovieClip();
Symbol 692 MovieClip [fondMenuFin] Frame 20
stop();
Symbol 724 MovieClip [transitionLevel] Frame 1
stop();
Symbol 724 MovieClip [transitionLevel] Frame 2
stop();
Symbol 724 MovieClip [transitionLevel] Frame 3
stop();
Symbol 724 MovieClip [transitionLevel] Frame 4
stop();
Symbol 724 MovieClip [transitionLevel] Frame 5
stop();
Symbol 724 MovieClip [transitionLevel] Frame 6
stop();
Symbol 724 MovieClip [transitionLevel] Frame 7
stop();
Symbol 724 MovieClip [transitionLevel] Frame 8
stop();
Symbol 724 MovieClip [transitionLevel] Frame 9
stop();
Symbol 724 MovieClip [transitionLevel] Frame 10
stop();
Symbol 735 Button
on (release) {
getURL ("http://www.fillpix.com", "_blank");
}
Symbol 741 Button
on (release) {
getURL ("javascript:doSharewire(58586, 1160, '', '', 1, 0, 292, 480);");
}
Symbol 743 Button
on (release) {
gotoAndStop (3);
}
Symbol 745 Button
on (release) {
_root.ChargementMap();
this.removeMovieClip();
}
Symbol 749 Button
on (release) {
gotoAndStop (2);
}
Symbol 760 MovieClip Frame 7
Symbol 762 MovieClip Frame 1
Symbol 763 MovieClip Frame 16
Symbol 763 MovieClip Frame 24
Symbol 769 Button
on (release) {
gotoAndStop (1);
}
Symbol 793 MovieClip [fondMenuDebut] Frame 1
stop();
Symbol 793 MovieClip [fondMenuDebut] Frame 2
stop();
Symbol 793 MovieClip [fondMenuDebut] Frame 3
monTexte = "<b>DEVICES COMPATIBILITY</b><br><br><b>Alcatel</b><br>OT-556 /OT-557 /OT-565 <br>OT-735 /OT-756 /OT-757 <br>OT-C551 /OT-C555 /OT-C651 /OT-C652 /OT-C656 <br>OT-S853<br><br><b>BenQ</b><br>A500<br>/A520<br>P50<br>S660C /S670C /S680C <br>S700 <br>S80<br>U700<br><br><b>Haier</b><br>V100 /V160 /V190<br>V6200 /V7000<br><br><b>Innostream</b><br>A10 /INNO 75 /INNO 78 /INNO 79 <br>INNO 30 /INNO 80 /INNO 89<br>INNO 50<br><br><b>LG</b><br>A7150 /C2200 /C3300 /C3310 /C3320 /C3400<br>B2000 /B2100 /C1100 /C1200 /G1610<br>F1200 /F2100 /F2300 /F2400 /F7250 /L3100 /L1100 /G5600<br>G4015 /G4020 /G5310 /G5400 /G5500 /G1600 /C1300 /C1400 /C3100 <br>G7050 /G7070 /G7100 /G7120 /L1150 /L1200 /PM-325 /VI-5225<br>G7200<br>LG M4300 /M4410 /L5100 /T5100<br>U8100 /U8110 /U8120 /U8150 /U8180 /U8200 /U8210<br><br><b>Maxon</b><br>MX-A30 /MX-C180 /MX-C20 /MX-C80<br>MX-C11 /MX-C90<br>MX-E10<br><br><b>Mitsubishi</b><br>M350 /M750<br>M520<br>M800<br><br><b>Motorola</b><br>A630 /A840 /A845 /C975 /C980<br>A830 /A835<br>C370 /C450 /C550 /E380<br>E1000 /E1060 /E1120 /V1000 /V1050 /V1150<br>i730 /i830<br>T720 /T725<br>V176 /V230 /V235 /V270 /V280 /V872 /V878 /V690 /V750 /A668<br>V180 /V186 /V188 /V220 /C380 /C650<br>V300 /V303 /V360 /V400<br>V500 /V505 /V525 /V535 /V547 /V551 /V555 /V557 /V560<br>V6 /V600 /V620 /V635 /Razor V3<br>V8 /V80 /V975 /V980 /E378i /E398 /MPx200 /MPx220 /i860<br><br><b>Nec</b><br>802<br>e101 /e606 /N100 /N109 /N110 /N710<br>e228 /e238 /e313 /e338<br>N150<br><br><b>Nokia</b><br>2650 /3100 /3105 /3108 /3120 /3200 /3205 /3300 /5100 /7200 /7210 /7250(i)<br>3125 /3220 /5140 /6020 /6021 /6170 /6230 /6255 /6585 /6822 /7260 /7270<br>3230 /6260 /6600 /6620 /6630 /6670 /6680 /6681 /7610 /N70 /N91<br>3410 /3585i /3590 /6310i<br>3510i /3520 /3530 /3560 /3586(i) /3587(i) /3595 /6010 /6012 /6015(i) /8910i<br>3600 /3620 /3650 /3660 /7650<br>6100 /6108 /6200 /6220 /6225 /6610(i) /6800 /6810 /6820<br>6101 /6060 /6111<br>6270 /6280<br>6650 /6651 /7600<br>N-Gage (QD)<br><br><b>Panasonic</b><br>A500 /X200 /X400 /X60 /X66<br>MX6 /MX7 /SA6 /SA7 /VS3 /VS7<br>X500<br>X700 /X800 /Z800<br><br><b>Pantech</b><br>G200 /G800 /G900 /GB200 /GF200 /GI100<br>G670 /GB300<br><br><b>Philips</b><br>550 /568 /650 /655 /755 /759 /760 /855 /859<br><br><b>Sagem</b><br>MyC3-2 /MyX-4 /MyX5-2 /MyX-7 /MyV-55 /MyV-65<br>MyS-7<br>MyV-75 /MyZ-3 /MyC5-2<br>MyX-8<br><br><b>Samsung</b><br>A500 /A600 /A670<br>A620 /A660 /A680 /A760 /D488 /P400 /P510 /P518<br>A700 /X810 /X900 /i250<br>A740 /C230 /E310 /E500 /E600 /X105 /X140<br>B100 /D550 /D600 /i300 /i750 /P850 /P860 /Z700<br>C100 /C110 /C200 /S200 /S208 /S300 /S307 /X100 /X108 /X600 /X608<br>D100 /D108 /S100 /S105 /X400 /X410 /X426 /X427 /X460<br>D410 /D415 /D418 /D500 /D510 /D710 /D720 /D730<br>E100 /E108 /E330 /E400 /E418 /E630 /E638 /E700 /E708 /E800 /E808 /E820<br>E105 /E300 /E316 /E340 /E350 /E710 /E715 /E810 /E850<br>E530 /E610 /E620 /E640 /E720 /E730 /E750 /E880<br>P705 /P710 /P730 /P735 /P777<br>X430 /X450 /X458 /X480 /X620 /X640 /X800 /X910<br>Z130 /Z140 /Z300 /Z500<br><br><b>Sendo</b><br>M570 /P600 /S600<br>SV663<br>X /X2<br><br><b>Sharp</b><br>802 /902 /GX25 /GZ200 /TM200 /V801SH<br>GX1 /GX10 /GX15 /GZ100<br>GX20 /GX22 /GX27 /GX30 /GX32 /TM100 /TM150<br><br><b>Siemens</b><br>AX75 /C65 /CV65 /SL65<br>C55 /M50<br>C75 /CX65 /CX70 /CX75 /M65 /M75 /S65 /SP65<br>CF62<br>CF75 /CFX65 /CL75 /SF65 /ST60<br>SX1<br>SX66 /SXG75 /U10<br><br><b>Sony-Ericsson</b><br>D750 /S600 /W600 /W800 /Z800<br>F500i /K500(i,c) /K506(c) /K508(c) /Z500(a,i) /Z520<br>J300 /K300<br>K600 /K608 /K700(i,c) /K750 /V600 /V800 /Z1010<br>S700(c,i) /S710<br>T610 /T616 /T618 /T628 /T630 /T637 /Z600 /Z608<br><br><b>VK Mobile</b><br>VK900";
stop();
Instance of Symbol 789 MovieClip in Symbol 793 MovieClip [fondMenuDebut] Frame 3
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.zoneTexte.scroll = _parent.zoneTexte.scroll - 1;
}
}
Instance of Symbol 791 MovieClip in Symbol 793 MovieClip [fondMenuDebut] Frame 3
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.zoneTexte.scroll = _parent.zoneTexte.scroll + 1;
}
}