home *** CD-ROM | disk | FTP | other *** search
- function §\x04\x05§()
- {
- set("\x03",1306 % 511 * true);
- return eval("\x03");
- }
- var §\x01§ = 452 + "\x04\x05"();
- while(true)
- {
- if(eval("\x01") == 736)
- {
- set("\x01",eval("\x01") - 110);
- §§push(true);
- }
- else
- {
- if(eval("\x01") == 372)
- {
- set("\x01",eval("\x01") + 186);
- §§push(!ord(function §\x04\x05§()
- {
- set("\x03",1306 % 511 * true);
- return eval("\x03");
- }));
- break;
- }
- if(eval("\x01") == 626)
- {
- set("\x01",eval("\x01") - 254);
- if(function §\x04\x05§()
- {
- set("\x03",1306 % 511 * true);
- return eval("\x03");
- })
- {
- set("\x01",eval("\x01") + 186);
- }
- }
- else if(eval("\x01") == 410)
- {
- set("\x01",eval("\x01") + 434);
- if(function §\x04\x05§()
- {
- set("\x03",1306 % 511 * true);
- return eval("\x03");
- })
- {
- set("\x01",eval("\x01") + 59);
- }
- }
- else if(eval("\x01") == 503)
- {
- set("\x01",eval("\x01") - 93);
- §§push(!function §\x04\x05§()
- {
- set("\x03",1306 % 511 * true);
- return eval("\x03");
- });
- }
- else if(eval("\x01") == 558)
- {
- set("\x01",eval("\x01") + 281);
- }
- else if(eval("\x01") == 919)
- {
- set("\x01",eval("\x01") - 80);
- }
- else if(eval("\x01") == 839)
- {
- set("\x01",eval("\x01") - 712);
- §§push("\x0f");
- §§push(1);
- }
- else if(eval("\x01") == 127)
- {
- set("\x01",eval("\x01") + 584);
- var §§pop() = function §\x04\x05§()
- {
- set("\x03",1306 % 511 * true);
- return eval("\x03");
- };
- }
- else if(eval("\x01") == 711)
- {
- set("\x01",eval("\x01") - 475);
- §§push("\x0f");
- }
- else if(eval("\x01") == 236)
- {
- set("\x01",eval("\x01") + 267);
- §§push(eval(function §\x04\x05§()
- {
- set("\x03",1306 % 511 * true);
- return eval("\x03");
- }));
- }
- else
- {
- if(eval("\x01") != 844)
- {
- if(eval("\x01") == 903)
- {
- set("\x01",eval("\x01") - 902);
- playAmbient(amb1);
- range = 200;
- pNr = 0;
- score = 6;
- currentPNr = 0;
- p0.destX = 50;
- pLevel = 100;
- jumpsLeft = 25;
- tloDest = tlo._x;
- attachMovie("heroStarter","heroStarter",50);
- attachMovie("hero","hero",300);
- attachMovie("arrowMC","arrowMC",250);
- woda.swapDepths(1000);
- hero._visible = false;
- heroStarter._x = 100;
- heroStarter._y = -50;
- b1._alpha = 150;
- onEnterFrame = function()
- {
- if(gramy == true)
- {
- if(b1._alpha >= 0)
- {
- b1._alpha -= 4;
- }
- tlo._x += Math.round((tloDest - tlo._x) * 0.2);
- hero._x = eval("p" + currentPNr)._x;
- hero._y = eval("p" + currentPNr)._y;
- arrowMC._x = hero._x;
- arrowMC._y = hero._y - 10;
- X = arrowMC._x;
- Y = arrowMC._y;
- Xm = _xmouse;
- Ym = _ymouse;
- Xdiff = Xm - X;
- Ydiff = Ym - Y;
- radAngle = Math.atan2(Ydiff,Xdiff);
- arrowMC._rotation = radAngle * 360 / 6.283185307179586;
- if(jumper._visible == true && jumper._y >= 420)
- {
- attachMovie("splashMC","splashMC",700);
- splashMC._y = 370;
- splashMC._x = jumper._x;
- gramy = false;
- jumper._y = -1000;
- splashSound.start();
- }
- if(jumper.tester2.hitTest(endPlatform))
- {
- removeAllAtaczes();
- gotoAndStop("escaped");
- }
- if(jumper.tester.hitTest(eval("p" + (pNr - 1) + ".tester")))
- {
- eval("p" + (pNr - 1)).destX = 55;
- currentPNr++;
- woda.play();
- tloDest -= 50;
- if(jumpsLeft <= 20)
- {
- ataczCoin();
- }
- hero._x = eval("p" + currentPNr)._x;
- hero._y = eval("p" + currentPNr)._y;
- hero.play();
- jumpsLeft--;
- if(jumpsLeft > 0)
- {
- ataczPlatform();
- }
- else
- {
- ataczEndPlatform();
- }
- playSound(landSound);
- jumpsLeftNapis();
- b1._alpha = 150;
- hero._visible = true;
- removeMovieClip("jumper");
- }
- }
- };
- onMouseDown = function()
- {
- if(gramy == true)
- {
- if(arrowMC._visible == true)
- {
- hero.play();
- Mouse.show();
- }
- }
- };
- jump = function()
- {
- eval("p" + (pNr - 2)).destX = -200;
- hero._visible = false;
- ataczJumper();
- };
- ataczPlatform = function()
- {
- attachMovie("p","p" + pNr,pLevel + pNr);
- this["p" + pNr]._x = 800;
- if(pNr == 0)
- {
- p0.destX = 55;
- }
- else
- {
- this["p" + pNr].destX = random(250) + 250;
- }
- this["p" + pNr]._y = 320;
- this["p" + pNr].onEnterFrame = locatePlatform;
- if(jumpsLeft <= 15)
- {
- ataczRura(this["p" + pNr].destX);
- }
- pNr++;
- };
- ataczEndPlatform = function()
- {
- pNr++;
- eval("rura" + (ruraNr - 1)).destX = -200;
- attachMovie("endPlatform","endPlatform",pLevel + pNr + 1);
- endPlatform._x = 800;
- endPlatform.destX = 400;
- endPlatform._y = 320;
- endPlatform.onEnterFrame = locatePlatform;
- };
- locatePlatform = function()
- {
- if(gramy == true)
- {
- this._x += Math.round((this.destX - this._x) * 0.1);
- if(this._x <= -150)
- {
- removeMovieClip(this);
- }
- }
- };
- ataczJumper = function()
- {
- attachMovie("jumper","jumper",200);
- jumper._x = hero._x;
- jumper._y = hero._y;
- sila = arrowMC._alpha / 2;
- jumper.shotxspeed = sila * Math.sin((arrowMC._rotation + 90) * 0.017453292519943295);
- jumper.shotyspeed = sila * Math.cos((arrowMC._rotation + 90) * 0.017453292519943295);
- jumper.grav = 0;
- jumper.wind = 0;
- jumper.onEnterFrame = jumperEF;
- };
- jumperEF = function()
- {
- if(gramy == true)
- {
- if(this._visible == true)
- {
- root.scored(1);
- }
- this._x += this.shotxspeed;
- this._y -= this.shotyspeed;
- this._y += this.grav;
- this.grav += 5;
- this._x -= this.wind;
- this.wind += 0.5;
- this.diff = this.shotyspeed - this.grav;
- if(this.diff <= 0 & this._currentframe == 1)
- {
- this.gotoAndStop(2);
- }
- }
- };
- coinLevel = 700;
- coinNr = 1;
- ataczCoin = function()
- {
- attachMovie("coin","coin" + coinNr,coinLevel + coinNr);
- this["coin" + coinNr]._x = 600;
- this["coin" + coinNr]._y = random(100) + 100;
- this["coin" + coinNr].onEnterFrame = coinMove;
- coinNr++;
- };
- coinMove = function()
- {
- if(gramy == true)
- {
- this._x -= 5;
- }
- if(this._x <= -10)
- {
- removeMovieClip(this);
- }
- if(this.hitTest(root.jumper))
- {
- scored(25);
- playSound(coinSound);
- AtaczCoinDisplay(this._name);
- removeMovieClip(this);
- }
- };
- ruraLevel = 650;
- ruraNr = 1;
- ataczRura = function(num)
- {
- eval("rura" + (ruraNr - 1)).destX = -200;
- attachMovie("rura","rura" + ruraNr,coinLevel + ruraNr);
- this["rura" + ruraNr]._x = 590;
- this["rura" + ruraNr]._y = 210;
- this["rura" + ruraNr].destX = (num - 55) / 2 + 55;
- this["rura" + ruraNr].onEnterFrame = ruraMove;
- ruraNr++;
- };
- ruraMove = function()
- {
- if(gramy == true)
- {
- this._x += Math.round((this.destX - this._x) * 0.1);
- if(this._x <= -150)
- {
- removeMovieClip(this);
- }
- if(this.tester.hitTest(root.jumper.tester) && jumper.shotxspeed > 0)
- {
- this._x += 20;
- jumper.shotxspeed = -5;
- playSound(hitSound);
- }
- }
- };
- collectedDisplayNr = 1;
- collectedDisplayLevel = 600;
- AtaczCoinDisplay = function(gdzie)
- {
- attachMovie("collectedDisplay","collectedDisplay" + collectedDisplayNr,collectedDisplayLevel + collectedDisplayNr);
- this["collectedDisplay" + collectedDisplayNr]._x = eval(gdzie)._x;
- this["collectedDisplay" + collectedDisplayNr]._y = eval(gdzie)._y;
- collectedDisplayNr++;
- };
- removeAllAtaczes = function()
- {
- removeMovieClip("hero");
- removeMovieClip("woda");
- removeMovieClip("arrowMC");
- removeMovieClip("jumper");
- removeMovieClip("splashMC");
- removeMovieClip("endPlatform");
- i = 0;
- while(i < 30)
- {
- removeMovieClip("p" + i);
- removeMovieClip("coin" + i);
- removeMovieClip("rura" + i);
- i++;
- }
- };
- ataczPlatform();
- jumpsLeftNapis = function()
- {
- if(jezyk == "eng")
- {
- jumpsLeftTXT = jumpsLeft + " jump left";
- }
- else if(jezyk == "fra")
- {
- jumpsLeftTXT = "plus que " + jumpsLeft + " sauts";
- }
- else if(jezyk == "hol")
- {
- jumpsLeftTXT = "nog " + jumpsLeft + " sprongen";
- }
- else if(jezyk == "ger")
- {
- jumpsLeftTXT = jumpsLeft + " sprunge ubrig";
- }
- else if(jezyk == "esp")
- {
- jumpsLeftTXT = "quedan " + jumpsLeft + " saltos";
- }
- else if(jezyk == "pol")
- {
- jumpsLeftTXT = "zostalo " + jumpsLeft + " skokow";
- }
- b1.napis = jumpsLeftTXT;
- };
- jumpsLeftNapis();
- break;
- }
- if(eval("\x01") == 1)
- {
- set("\x01",eval("\x01") - 1);
- }
- break;
- }
- set("\x01",eval("\x01") + 59);
- }
- }
- }
-