Frame 2
function hex_md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * chrsz)));
}
function b64_md5(s) {
return(binl2b64(core_md5(str2binl(s), s.length * chrsz)));
}
function str_md5(s) {
return(binl2str(core_md5(str2binl(s), s.length * chrsz)));
}
function hex_hmac_md5(key, data) {
return(binl2hex(core_hmac_md5(key, data)));
}
function b64_hmac_md5(key, data) {
return(binl2b64(core_hmac_md5(key, data)));
}
function str_hmac_md5(key, data) {
return(binl2str(core_hmac_md5(key, data)));
}
function md5_vm_test() {
return(hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72");
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var a = 1732584193;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var i = 0;
while (i < x.length) {
var olda = a;
var oldb = _local3;
var oldc = _local2;
var oldd = _local1;
a = md5_ff(a, _local3, _local2, _local1, x[i + 0], 7, -680876936);
_local1 = md5_ff(_local1, a, _local3, _local2, x[i + 1], 12, -389564586);
_local2 = md5_ff(_local2, _local1, a, _local3, x[i + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local2, _local1, a, x[i + 3], 22, -1044525330);
a = md5_ff(a, _local3, _local2, _local1, x[i + 4], 7, -176418897);
_local1 = md5_ff(_local1, a, _local3, _local2, x[i + 5], 12, 1200080426);
_local2 = md5_ff(_local2, _local1, a, _local3, x[i + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local2, _local1, a, x[i + 7], 22, -45705983);
a = md5_ff(a, _local3, _local2, _local1, x[i + 8], 7, 1770035416);
_local1 = md5_ff(_local1, a, _local3, _local2, x[i + 9], 12, -1958414417);
_local2 = md5_ff(_local2, _local1, a, _local3, x[i + 10], 17, -42063);
_local3 = md5_ff(_local3, _local2, _local1, a, x[i + 11], 22, -1990404162);
a = md5_ff(a, _local3, _local2, _local1, x[i + 12], 7, 1804603682);
_local1 = md5_ff(_local1, a, _local3, _local2, x[i + 13], 12, -40341101);
_local2 = md5_ff(_local2, _local1, a, _local3, x[i + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local2, _local1, a, x[i + 15], 22, 1236535329);
a = md5_gg(a, _local3, _local2, _local1, x[i + 1], 5, -165796510);
_local1 = md5_gg(_local1, a, _local3, _local2, x[i + 6], 9, -1069501632);
_local2 = md5_gg(_local2, _local1, a, _local3, x[i + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local2, _local1, a, x[i + 0], 20, -373897302);
a = md5_gg(a, _local3, _local2, _local1, x[i + 5], 5, -701558691);
_local1 = md5_gg(_local1, a, _local3, _local2, x[i + 10], 9, 38016083);
_local2 = md5_gg(_local2, _local1, a, _local3, x[i + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local2, _local1, a, x[i + 4], 20, -405537848);
a = md5_gg(a, _local3, _local2, _local1, x[i + 9], 5, 568446438);
_local1 = md5_gg(_local1, a, _local3, _local2, x[i + 14], 9, -1019803690);
_local2 = md5_gg(_local2, _local1, a, _local3, x[i + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local2, _local1, a, x[i + 8], 20, 1163531501);
a = md5_gg(a, _local3, _local2, _local1, x[i + 13], 5, -1444681467);
_local1 = md5_gg(_local1, a, _local3, _local2, x[i + 2], 9, -51403784);
_local2 = md5_gg(_local2, _local1, a, _local3, x[i + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local2, _local1, a, x[i + 12], 20, -1926607734);
a = md5_hh(a, _local3, _local2, _local1, x[i + 5], 4, -378558);
_local1 = md5_hh(_local1, a, _local3, _local2, x[i + 8], 11, -2022574463);
_local2 = md5_hh(_local2, _local1, a, _local3, x[i + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local2, _local1, a, x[i + 14], 23, -35309556);
a = md5_hh(a, _local3, _local2, _local1, x[i + 1], 4, -1530992060);
_local1 = md5_hh(_local1, a, _local3, _local2, x[i + 4], 11, 1272893353);
_local2 = md5_hh(_local2, _local1, a, _local3, x[i + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local2, _local1, a, x[i + 10], 23, -1094730640);
a = md5_hh(a, _local3, _local2, _local1, x[i + 13], 4, 681279174);
_local1 = md5_hh(_local1, a, _local3, _local2, x[i + 0], 11, -358537222);
_local2 = md5_hh(_local2, _local1, a, _local3, x[i + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local2, _local1, a, x[i + 6], 23, 76029189);
a = md5_hh(a, _local3, _local2, _local1, x[i + 9], 4, -640364487);
_local1 = md5_hh(_local1, a, _local3, _local2, x[i + 12], 11, -421815835);
_local2 = md5_hh(_local2, _local1, a, _local3, x[i + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local2, _local1, a, x[i + 2], 23, -995338651);
a = md5_ii(a, _local3, _local2, _local1, x[i + 0], 6, -198630844);
_local1 = md5_ii(_local1, a, _local3, _local2, x[i + 7], 10, 1126891415);
_local2 = md5_ii(_local2, _local1, a, _local3, x[i + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local2, _local1, a, x[i + 5], 21, -57434055);
a = md5_ii(a, _local3, _local2, _local1, x[i + 12], 6, 1700485571);
_local1 = md5_ii(_local1, a, _local3, _local2, x[i + 3], 10, -1894986606);
_local2 = md5_ii(_local2, _local1, a, _local3, x[i + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local2, _local1, a, x[i + 1], 21, -2054922799);
a = md5_ii(a, _local3, _local2, _local1, x[i + 8], 6, 1873313359);
_local1 = md5_ii(_local1, a, _local3, _local2, x[i + 15], 10, -30611744);
_local2 = md5_ii(_local2, _local1, a, _local3, x[i + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local2, _local1, a, x[i + 13], 21, 1309151649);
a = md5_ii(a, _local3, _local2, _local1, x[i + 4], 6, -145523070);
_local1 = md5_ii(_local1, a, _local3, _local2, x[i + 11], 10, -1120210379);
_local2 = md5_ii(_local2, _local1, a, _local3, x[i + 2], 15, 718787259);
_local3 = md5_ii(_local3, _local2, _local1, a, x[i + 9], 21, -343485551);
a = safe_add(a, olda);
_local3 = safe_add(_local3, oldb);
_local2 = safe_add(_local2, oldc);
_local1 = safe_add(_local1, oldd);
i = i + 16;
}
return(Array(a, _local3, _local2, _local1));
}
function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function md5_ff(a, b, c, d, x, s, t) {
var _local1 = b;
return(md5_cmn((_local1 & c) | ((~_local1) & d), a, _local1, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function core_hmac_md5(key, data) {
var _local2 = str2binl(key);
if (_local2.length > 16) {
_local2 = core_md5(_local2, key.length * chrsz);
}
var _local3 = Array(16);
var opad = Array(16);
var _local1 = 0;
while (_local1 < 16) {
_local3[_local1] = _local2[_local1] ^ 909522486;
opad[_local1] = _local2[_local1] ^ 1549556828;
_local1++;
}
var hash = core_md5(_local3.concat(str2binl(data)), 512 + (data.length * chrsz));
return(core_md5(opad.concat(hash), 640));
}
function safe_add(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local2 = str;
var _local3 = Array();
var mask = ((1 << chrsz) - 1);
var _local1 = 0;
while (_local1 < (_local2.length * chrsz)) {
_local3[_local1 >> 5] = _local3[_local1 >> 5] | ((_local2.charCodeAt(_local1 / chrsz) & mask) << (_local1 % 32));
_local1 = _local1 + chrsz;
}
return(_local3);
}
function binl2str(bin) {
var _local2 = bin;
var _local3 = "";
var mask = ((1 << chrsz) - 1);
var _local1 = 0;
while (_local1 < (_local2.length * 32)) {
_local3 = _local3 + String.fromCharCode((_local2[_local1 >> 5] >>> (_local1 % 32)) & mask);
_local1 = _local1 + chrsz;
}
return(_local3);
}
function binl2hex(binarray) {
var _local2 = binarray;
var _local3 = (hexcase ? "0123456789ABCDEF" : "0123456789abcdef");
var str = "";
var _local1 = 0;
while (_local1 < (_local2.length * 4)) {
str = str + (_local3.charAt((_local2[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((_local2[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(str);
}
function binl2b64(binarray) {
var _local3 = binarray;
var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var str = "";
var _local2 = 0;
while (_local2 < (_local3.length * 4)) {
var triplet = (((((_local3[_local2 >> 2] >> (8 * (_local2 % 4))) & 255) << 16) | (((_local3[(_local2 + 1) >> 2] >> (8 * ((_local2 + 1) % 4))) & 255) << 8)) | ((_local3[(_local2 + 2) >> 2] >> (8 * ((_local2 + 2) % 4))) & 255));
var _local1 = 0;
while (_local1 < 4) {
if (((_local2 * 8) + (_local1 * 6)) > (_local3.length * 32)) {
str = str + b64pad;
} else {
str = str + tab.charAt((triplet >> (6 * (3 - _local1))) & 63);
}
_local1++;
}
_local2 = _local2 + 3;
}
return(str);
}
_root.companyURL = "http://www.2dplay.com/index.php?gameid=1152";
fscommand ("trapallkeys", true);
fscommand ("showmenu", "false");
var hexcase = 0;
var b64pad = "";
var chrsz = 8;
Frame 3
loading._visible = false;
stop();
Frame 5
stop();
Button.prototype.useHandCursor = true;
Frame 20
time = 20;
Frame 29
stop();
grawitacja = 0;
score = 0;
score2 = 0;
step = 6;
energy = 100;
lvl = 1;
n = -2;
enemyGo = false;
timeGranica = 10;
Button.prototype.useHandCursor = false;
gramy = true;
spada = false;
silaSkoku = 10;
this.onEnterFrame = function () {
if (gramy == true) {
if (hero._y >= 250) {
gotoAndStop ("fall");
}
enemy._x = enemy._x - (2 * lvl);
if (enemy._x <= -10) {
enemy._x = 610;
}
enemy2._x = enemy2._x + (2 * lvl);
if (enemy2._x >= 610) {
enemy2._x = -10;
}
if (enemyGo == true) {
enemy3._x = enemy3._x - 1;
if (enemy3._x <= -10) {
enemy3._x = 610;
}
}
if (_xmouse <= (hero._x - 20)) {
waza._x = waza._x + step;
coin1._x = coin1._x + step;
coin2._x = coin2._x + step;
coin3._x = coin3._x + step;
coin4._x = coin4._x + step;
enemy2._x = enemy2._x + step;
enemy._x = enemy._x + step;
platforms._x = platforms._x + step;
platforms2._x = platforms2._x + (step / 2);
hero._xscale = -100;
if (enemyGo == true) {
enemy3._x = enemy3._x + step;
}
} else if (_xmouse >= (hero._x + 20)) {
waza._x = waza._x - step;
coin1._x = coin1._x - step;
coin2._x = coin2._x - step;
coin3._x = coin3._x - step;
coin4._x = coin4._x - step;
enemy2._x = enemy2._x - step;
enemy._x = enemy._x - step;
platforms._x = platforms._x - step;
platforms2._x = platforms2._x - (step / 2);
hero._xscale = 100;
if (enemyGo == true) {
enemy3._x = enemy3._x - step;
}
}
grawitacja++;
hero._y = hero._y + grawitacja;
if ((platforms.hitTest(hero._x - 5, hero._y, true) && (hero._y <= (platforms._y + 15))) || (platforms.hitTest(hero._x + 5, hero._y, true) && (hero._y <= (platforms._y + 15)))) {
grawitacja = 0;
hero.gotoAndStop(1);
hero._y = platforms._y;
}
if (waza.hitTest(hero) && (waza.waza1._currentframe == 1)) {
if (energy < 100) {
energybar.play();
}
energy = energy + 20;
time = time + 2;
waza.stop();
waza.waza1.play();
banzai.gotoAndPlay(1);
}
if (enemy.tester.hitTest(hero.tester)) {
energy = energy - 10;
grawitacja = -silaSkoku;
hero.gotoAndStop(2);
auc.play();
enemy.pods.play();
}
if (enemy2.tester.hitTest(hero.tester)) {
energy = energy - 10;
grawitacja = -silaSkoku;
hero.gotoAndStop(2);
auc.play();
enemy2.pods.play();
}
if (enemy3.tester.hitTest(hero.tester)) {
energy = energy - 10;
grawitacja = -silaSkoku;
hero.gotoAndStop(2);
auc.play();
enemy3.body.pods.play();
}
if (enemyGo == true) {
enemy3._x = enemy3._x + n;
}
}
if (time <= -1) {
if (lvl == 1) {
gotoAndStop ("lvl2intro");
}
if (lvl == 2) {
gotoAndStop ("lvl3intro");
}
if (lvl == 3) {
gotoAndStop ("ende");
}
}
if (time <= timeGranica) {
enemyGo = true;
}
energybar._xscale = energybar._xscale + ((energy - energybar._xscale) * 0.07);
if (energy >= 100) {
energy = 100;
}
if (energy <= -10) {
gotoAndStop ("noEnergy");
}
};
i = 0;
while (i < 10) {
var refBut = eval ("coin" + i);
refBut.onEnterFrame = function () {
var _local1 = this;
if (_local1.hitTest(hero) && (_local1.cc._currentframe == 1)) {
_local1.stop();
_local1.cc.gotoAndStop(2);
buya.gotoAndPlay(2);
score = score + 10;
time++;
}
};
i++;
}
coin1.gotoAndPlay(5);
coin2.gotoAndPlay(5);
coin3.gotoAndPlay(5);
coin4.gotoAndPlay(5);
Instance of Symbol 236 MovieClip "enemy3" in Frame 29
/* no clip actions */
Frame 37
time = 40;
Frame 45
lvl = 2;
energy = 100;
enemyGo = false;
timeGranica = 20;
Instance of Symbol 236 MovieClip "enemy3" in Frame 45
/* no clip actions */
Frame 53
time = 60;
Frame 61
lvl = 3;
energy = 100;
enemyGo = false;
timeGranica = 30;
Instance of Symbol 236 MovieClip "enemy3" in Frame 61
/* no clip actions */
Frame 69
Button.prototype.useHandCursor = true;
b1._visible = false;
b2._visible = false;
b3._visible = false;
b4._visible = false;
gramy = false;
stopAllSounds();
Frame 75
stopAllSounds();
Frame 84
Button.prototype.useHandCursor = true;
score2 = "Your score: " + score;
stopAllSounds();
Symbol 6 Button
on (release) {
getURL (_root.companyURL, "_blank");
}
Symbol 76 MovieClip Frame 151
_root.loading._visible = true;
stop();
Symbol 82 MovieClip Frame 1
var gameBytesTotal = 0;
var gameBytesLoaded = 0;
var percent = 0;
var count = 0;
var loadingDelayCount = 40;
Symbol 82 MovieClip Frame 3
gameBytesTotal = _root.getBytesTotal();
gameBytesLoaded = _root.getBytesLoaded();
percent = Math.round((gameBytesLoaded / gameBytesTotal) * 100);
bar.loadbar._xscale = percent;
if (((gameBytesLoaded >= gameBytesTotal) && (gameBytesTotal > 0)) && (_root.logo._currentframe >= _root.logo._totalframes)) {
_root.gotoAndStop("menu");
stop();
} else {
gotoAndPlay ("preload");
}
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 2
stop();
Symbol 106 Button
on (release) {
gotoAndStop ("gra");
}
Symbol 110 Button
on (release) {
getURL ("http://www.2dplay.com/showscores.php?gameid=1152", "_blank");
}
Symbol 114 Button
on (press) {
getURL ("http://www.2dplay.com/index.php?gameid=1152", "_blank");
}
Symbol 118 Button
on (release) {
getURL ("http://www.2dplay.com/downloadgame.php?gameid=1152", "_blank");
}
Symbol 128 MovieClip Frame 1
stop();
Symbol 135 Button
on (release) {
_parent.soundMC.gotoAndStop(2);
stopAllSounds();
gotoAndStop (2);
}
Symbol 137 Button
on (release) {
_parent.soundMC.gotoAndStop(1);
gotoAndStop (1);
}
Symbol 138 MovieClip Frame 1
stop();
Symbol 148 Button
on (release) {
getURL (_root.companyURL, "_blank");
}
Symbol 155 Button
on (release) {
nextFrame();
}
Symbol 158 Button
on (release) {
_parent.gotoAndStop("lvl1intro");
}
Symbol 176 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if ((_xmouse <= 20) && (_xmouse >= -20)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
};
Symbol 181 MovieClip Frame 1
stop();
Symbol 183 Button
on (press) {
jumper.play();
}
Symbol 185 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 18
_parent._parent.gotoAndPlay(1);
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 2
stop();
Symbol 191 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 2
stop();
Symbol 196 Button
on (release) {
_parent.gotoAndStop("lvl1intro");
}
Symbol 201 MovieClip Frame 1
stop();
step = 6;
this.onEnterFrame = function () {
if (_xmouse <= (hero._x - 20)) {
hero._x = hero._x - step;
hero._xscale = -100;
}
if (_xmouse >= (hero._x + 20)) {
hero._x = hero._x + step;
hero._xscale = 100;
}
};
Symbol 208 Button
on (press) {
getURL ("http://www.2dplay.com/index.php?gameid=1152", "_blank");
}
Symbol 220 MovieClip Frame 89
_parent.gotoAndStop("lvl1");
Symbol 222 Button
on (press) {
if (((hero._currentframe == 1) && (gramy == true)) && (hero._y <= platforms._y)) {
hero._y = hero._y - 15;
grawitacja = -silaSkoku;
hero.gotoAndStop(2);
}
}
Symbol 237 MovieClip Frame 1
function pauseFor(theTime) {
stop();
timer.timerLength = theTime;
timer.startTime = getTimer();
timer.target = this;
}
_x = random(600);
waza1.gotoAndStop(1);
this.createEmptyMovieClip("timer", 50);
timer.onEnterFrame = function () {
var _local1 = this;
if (_local1.startTime > 0) {
var _local2 = getTimer() - _local1.startTime;
if (_local2 > _local1.timerLength) {
_local1.target.play();
_local1.startTime = 0;
}
}
};
Symbol 237 MovieClip Frame 3
pauseFor(random(5000) + 5000);
Symbol 238 MovieClip Frame 1
function pauseFor(theTime) {
stop();
timer.timerLength = theTime;
timer.startTime = getTimer();
timer.target = this;
}
_x = random(600);
cc.gotoAndStop(1);
this.createEmptyMovieClip("timer", 50);
timer.onEnterFrame = function () {
var _local1 = this;
if (_local1.startTime > 0) {
var _local2 = getTimer() - _local1.startTime;
if (_local2 > _local1.timerLength) {
_local1.target.play();
_local1.startTime = 0;
}
}
};
Symbol 238 MovieClip Frame 3
pauseFor(random(3000));
Symbol 240 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 22
_parent.time--;
Symbol 251 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 89
_parent.grawitacja = 0;
_parent.gotoAndStop("lvl2");
Symbol 273 MovieClip Frame 87
_parent.grawitacja = 0;
_parent.gotoAndStop("lvl3");
Symbol 298 MovieClip Frame 16
stop();
_parent.b1._visible = true;
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
Symbol 303 Button
on (release) {
gotoAndStop ("lvl1Intro");
grawitacja = 0;
}
Symbol 307 Button
on (press) {
_root.scores_link = "http://www.2dplay.com/highscores.php?gameid=1152&hiscore=";
var hashkey = _root.hex_md5(("gameid=1152&hiscore=" + _root.score) + "2DPlay.com/");
getURL (String(((_root.scores_link + _root.score) + "&hash=") + hashkey), "_blank");
}
Symbol 311 Button
on (press) {
getURL ("http://www.2dplay.com/index.php?gameid=1152", "_blank");
}
Symbol 315 Button
on (press) {
gotoAndStop ("menu");
}
Symbol 318 MovieClip Frame 26
stop();
_parent.falling.play();
Symbol 320 MovieClip Frame 1
gotoAndStop(_parent.lvl + 1);
Symbol 323 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 19
_parent.energy = 100;
_parent.gotoAndStop("fall");