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=984";
Stage.scaleMode = "noScale";
fscommand ("trapallkeys", true);
fscommand ("showmenu", "false");
var hexcase = 0;
var b64pad = "";
var chrsz = 8;
Frame 3
loading._visible = false;
stop();
Frame 6
stop();
Frame 12
stop();
szczauka._visible = true;
resetY = hero._y;
score = 0;
range = 200;
skA = random(300) + 200;
Z = (skA / 2) + 25;
granica1 = 100;
granica2 = 200;
granica3 = 500;
czacha._x = 600;
demondays = function () {
demon._x = demon._x + 5;
if (demon._x >= 2000) {
demon._x = -50;
}
};
czaszka = function () {
if (czacha._currentframe == 1) {
czacha._x = czacha._x - 3;
}
if (czacha._x <= -30) {
czacha._x = 700;
}
};
reset = function () {
Y = 0;
X = 0;
resetMC.gotoAndStop(1);
hero._y = resetY;
lot.gotoAndStop(1);
hero.gotoAndStop(1);
skrzynia._x = 600;
skA = random(350) + 150;
Z = (skA / 2) + 25;
if (score >= granica2) {
if (dialog._currentframe == 4) {
dialog.gotoAndStop(5);
}
}
if (score >= granica3) {
if (dialog._currentframe == 6) {
dialog.gotoAndStop(7);
}
}
};
reset();
this.onEnterFrame = function () {
if (score >= granica2) {
czaszka();
}
if (score >= granica3) {
demondays();
}
dialog._x = hero._x;
szczauka._x = hero._x;
szczauka._y = hero._y;
szczauka.X = hero._x;
szczauka.Y = hero._y;
skrzynia._x = skrzynia._x + Math.round((skA - skrzynia._x) * 0.07);
skrzynia3._x = skrzynia3._x + Math.round((skA - skrzynia._x) * 0.07);
A = Math.round(_xmouse - szczauka._x);
B = Math.round(_ymouse - szczauka._y);
if (A >= range) {
A = range;
}
if (A <= (-range)) {
A = -range;
}
if (B >= range) {
B = range;
}
if (B <= (-range)) {
B = -range;
}
if (hero._currentframe == 1) {
hero._x = hero._x + Math.round((50 - hero._x) * 0.07);
} else {
hero._y = hero._y + Y;
hero._x = hero._x + Math.round((X - hero._x) * 0.05);
Y = Y + 3;
score++;
}
if (hero.tester.hitTest(skrzynia.tester)) {
points._x = skrzynia._x;
points.play();
reset();
skrzynia2.play();
zapora.play();
}
if (hero.tester.hitTest(czacha) && (czacha._currentframe == 1)) {
score = score + 100;
czacha.play();
}
if (hero.tester.hitTest(zapora)) {
smack.play();
zapora._x = zapora._x + 10;
X = 0;
}
if (hero.tester.hitTest(demon.tester)) {
smack2.play();
X = -10;
Y = 10;
}
if (hero._y >= 430) {
hero.gotoAndStop(1);
hero._y = 600;
resetMC.gotoAndStop(2);
}
zapora._x = zapora._x + Math.round((Z - zapora._x) * 0.05);
};
this.onMouseDown = function () {
if (szczauka._visible == true) {
hero.gotoAndStop(2);
Y = B / 5;
X = A * 5;
skrzynia2.gotoAndStop(2);
}
if (dialog._currentframe == 1) {
dialog.gotoAndStop(2);
}
if (dialog._currentframe == 3) {
dialog.gotoAndStop(4);
}
if (dialog._currentframe == 5) {
dialog.gotoAndStop(6);
}
if (dialog._currentframe == 7) {
dialog.gotoAndStop(8);
}
};
Instance of Symbol 150 MovieClip "szczauka" in Frame 12
onClipEvent (load) {
X = this._x;
Y = this._y;
}
onClipEvent (enterFrame) {
Xm = _parent._xmouse;
Ym = _parent._ymouse;
Xdiff = Xm - X;
Ydiff = Ym - Y;
radAngle = Math.atan2(Ydiff, Xdiff);
this._rotation = (radAngle * 360) / (Math.PI*2);
updateAfterEvent();
}
Symbol 6 Button
on (release) {
getURL (_root.companyURL, "_blank");
}
Symbol 76 MovieClip Frame 207
_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.gotoAndPlay("gameinit");
stop();
} else {
gotoAndPlay ("preload");
}
Symbol 86 Button
on (release) {
getURL (_root.companyURL, "_blank");
}
Symbol 98 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 13
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 116 Button
on (release) {
gotoAndStop ("gra");
}
Symbol 120 Button
on (release) {
getURL ("http://www.2dplay.com/showscores.php?gameid=984", "_blank");
}
Symbol 126 Button
on (release) {
getURL ("http://www.2dplay.com/downloadgame.php?gameid=984", "_blank");
}
Symbol 130 Button
on (release) {
getURL ("http://www.2dplay.com/index.php?gameid=984", "_blank");
}
Symbol 135 MovieClip Frame 10
stop();
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 16
_parent.Z = (_parent.skA / 2) + 25;
Symbol 143 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 1
this.onEnterFrame = function () {
if ((((_xmouse <= _parent.range) && (_parent.hero._currentframe == 1)) && (_rotation >= -90)) && (_rotation <= 0)) {
szcz._x = _xmouse;
maska._x = _xmouse;
_visible = true;
} else {
_visible = false;
}
};
Symbol 152 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 13
stop();
_x = 600;
gotoAndStop (1);
_parent.Z = 600;
if (_parent.score >= _root.granica1) {
bone1.bone.gotoAndStop(2);
}
if ((_parent.score >= _root.granica1) && (_parent.dialog._currentframe == 2)) {
_parent.dialog.gotoAndStop(3);
}
Symbol 167 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 34
_x = 600;
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 2
_parent.water.play();
Symbol 176 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 1
stop();
Symbol 185 Button
on (press) {
getURL ("http://www.2dplay.com/index.php?gameid=984", "_blank");
}
Symbol 191 Button
on (release) {
_parent.score = 0;
_parent.hero._x = 52;
_parent.skrzynia2.gotoAndStop(1);
_parent.szczauka._visible = true;
_parent.reset();
_parent.zapora.bone1.bone.gotoAndStop(1);
_parent.czacha._x = 600;
_parent.demon._x = -50;
}
Symbol 197 Button
on (release) {
_parent.gotoAndStop("menu");
}
Symbol 201 Button
on (press) {
_root.scores_link = "http://www.2dplay.com/highscores.php?gameid=984&hiscore=";
var hashkey = _root.hex_md5(("gameid=984&hiscore=" + _root.score) + "2DPlay.com/");
getURL (String(((_root.scores_link + _root.score) + "&hash=") + hashkey), "_blank");
}
Symbol 204 MovieClip Frame 2
_parent.czacha._x = 10000;
wynik = "Score: " + _parent.score;