Frame 2
tot = _root.getBytesTotal();
lu = _root.getBytesLoaded();
pc = Math.round((lu / tot) * 100);
loading._xscale = 100 - pc;
if (lu < tot) {
gotoAndPlay (1);
}
Frame 4
stop();
Frame 5
function bouge(clip) {
mvt = random(16);
if ((mvt == 1) and (clip.pasx > -4)) {
clip.pasx = clip.pasx - 0.5;
} else if ((mvt == 2) and (clip.pasx < 4)) {
clip.pasx = clip.pasx + 0.5;
} else if ((mvt == 3) and (clip.pasy > -4)) {
clip.pasy = clip.pasy - 0.5;
} else if ((mvt == 4) and (clip.pasy < 4)) {
clip.pasy = clip.pasy + 0.5;
} else if (mvt == 5) {
clip.pasx = Math.round((clip.pasx * 3) / 4);
} else if (mvt == 6) {
clip.pasy = Math.round((clip.pasy * 3) / 4);
}
depx = clip.pasx;
depy = clip.pasy;
eval (clip).xxx = eval (clip).xxx + depx;
eval (clip).yyy = eval (clip).yyy + depY;
}
stopAllSounds();
sonbanjo = new Sound(this);
sonbanjo.attachSound("banjo");
songrrr1 = new Sound(this);
songrrr1.attachSound("grrr1");
songrrr2 = new Sound(this);
songrrr2.attachSound("grrr2");
songrrr3 = new Sound(this);
songrrr3.attachSound("grrr3");
songrrr4 = new Sound(this);
songrrr4.attachSound("grrr4");
sonloup = new Sound(this);
sonloup.attachSound("loup");
sonloup.start(0, 1);
score = 0;
xmoi = 0;
ymoi = 0;
anglemoi = 0;
nbboulles = 20;
avantcommencer.duplicateMovieClip("av", 51000);
adresse.duplicateMovieClip("ad", 51001);
i = 1;
while (i <= nbboulles) {
boulle.duplicateMovieClip("b" add i, 100 + i);
eval ("b" add i).prof = 100 + i;
eval ("b" add i).xxx = 400 + random(700);
eval ("b" add i).yyy = random(700) - 350;
eval ("_root.b" add i).gotoAndStop(random(32) + 1);
eval ("b" add i).pasx = (random(80) / 10) - 4;
eval ("b" add i).pasy = (random(80) / 10) - 4;
myColor = new Color(eval ("_root.b" add i));
myColorTransform = new Object();
myColorTransform.ra = random(40) + 50;
myColorTransform.ga = random(40) + 50;
myColorTransform.ba = random(40) + 50;
myColorTransform.aa = 100;
myColorTransform.ab = 50;
myColor.setTransform(myColorTransform);
i++;
}
bouche._x = 250;
bouche._y = 180;
bouche.duplicateMovieClip("boucheloup", 51002);
bouche._x = 9999;
bouche._y = 9999;
boulle._y = 9999;
boulle.xxx = 9999;
boulle.yyy = 9999;
fscommand ("showmenu", "false");
Mouse.hide();
_root.viseur2.duplicateMovieClip("v2", 51003);
v2.startDrag(true);
Instance of Symbol 39 MovieClip "auloin" in Frame 5
onClipEvent (enterFrame) {
this._x = 250 - (_root.anglemoi * 2);
}
Instance of Symbol 65 MovieClip "boulle" in Frame 5
onClipEvent (enterFrame) {
hyp = Math.sqrt(((_root.xmoi - this.xxx) * (_root.xmoi - this.xxx)) + ((_root.ymoi - this.yyy) * (_root.ymoi - this.yyy)));
this.swapDepths(50000 - Math.round(hyp));
if (hyp < 20) {
_root.boucheloup.gotoAndPlay(2);
_root["songrrr" + (random(4) + 1)].start(0, 1);
_root.unCrocVal = 1000 - Math.round((getTimer() - _root.tempsdebut) / 100);
_root.score = _root.score + _root.unCrocVal;
_root.nbboulles--;
_root.scores.unCroc.gotoAndPlay(2);
this.removeMovieClip();
}
if (_root.nbboulles == 0) {
_root.gotoAndStop(15);
}
if (_root.nbboulles < 11) {
_root.bouge(this);
}
angleboulle = (Math.atan2(this.yyy - _root.ymoi, this.xxx - _root.xmoi) * 180) / Math.PI;
angle = angleboulle - _root.anglemoi;
if (angle < -180) {
angle = angle + 360;
}
if (angle > 180) {
angle = angle - 360;
}
angleregard = ((-Math.atan2(this.pasy, this.pasx)) * 180) / Math.PI;
if (angleregard < -180) {
angleregard = angleregard + 360;
}
if (angleregard > 180) {
angleregard = angleregard - 360;
}
this.regard = Math.round((angleregard + 180) / 45);
profil = Math.round((angleboulle + 180) / 45) + this.regard;
this.aveccitrouille.citouille.gotoAndStop(profil);
if (_root.nbboulles < 11) {
this.aveccitrouille.planche.gotoAndStop(profil + 1);
}
this._x = 225 + (angle * 5);
this._xscale = 10000 / hyp;
this._yscale = 10000 / hyp;
}
Instance of Symbol 8 MovieClip [viseur2] "viseur2" in Frame 5
/* no clip actions */
Frame 7
_root.av.removeMovieClip();
_root.ad.removeMovieClip();
sonbanjo.start(0, 9999);
Frame 10
tempsdebut = getTimer();
_root.legende.swapDepths(51005);
_root.scores.swapDepths(51006);
stop();
Instance of Symbol 71 MovieClip in Frame 10
onClipEvent (enterFrame) {
_root.xmouse = _root.centre._xmouse;
if (_root.xmouse > 7) {
bg = (_root.xmouse * _root.xmouse) / 5000;
_root.anglemoi = _root.anglemoi + bg;
if (_root.anglemoi > 180) {
_root.anglemoi = _root.anglemoi - 360;
}
} else if (_root.xmouse < -7) {
bg = (_root.xmouse * _root.xmouse) / 5000;
_root.anglemoi = _root.anglemoi - bg;
if (_root.anglemoi < -180) {
_root.anglemoi = _root.anglemoi + 360;
}
}
}
Instance of Symbol 71 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
_root.xmoi = _root.xmoi + (6 * Math.sin((((-_root.anglemoi) + 90) / 180) * Math.PI));
_root.ymoi = _root.ymoi + (6 * Math.cos((((-_root.anglemoi) + 90) / 180) * Math.PI));
}
if (Key.isDown(40)) {
_root.xmoi = _root.xmoi + (6 * Math.sin((((-_root.anglemoi) - 90) / 180) * Math.PI));
_root.ymoi = _root.ymoi + (6 * Math.cos((((-_root.anglemoi) - 90) / 180) * Math.PI));
}
if (Key.isDown(37)) {
_root.xmoi = _root.xmoi + (5 * Math.sin((((-_root.anglemoi) - 180) / 180) * Math.PI));
_root.ymoi = _root.ymoi + (5 * Math.cos((((-_root.anglemoi) - 180) / 180) * Math.PI));
}
if (Key.isDown(39)) {
_root.xmoi = _root.xmoi + (5 * Math.sin(((-_root.anglemoi) / 180) * Math.PI));
_root.ymoi = _root.ymoi + (5 * Math.cos(((-_root.anglemoi) / 180) * Math.PI));
}
}
Frame 15
sonloup.start(0, 1);
temps = Math.round((getTimer() - tempsdebut) / 1000);
total = score - temps;
Symbol 16 Button
on (release) {
getURL ("http://www.eric-marchal.fr.st", "_blank");
}
Symbol 24 Button
on (release) {
_root.play();
}
Symbol 54 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 83 Button
on (release) {
getURL ("http://www.eric-marchal.fr.st/games/wolf3d.htm", "_self");
}