Frame 1
(function (swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
});// not popped
("7e2c08da", this, 10301, true);
stop();
if (_root.gameOverAdTimer == undefined) {
_root.gameOverAdTimer = getTimer();
}
System.security.allowDomain("*.mochiads.com");
_global.ipb_get_gname = function () {
var _local4 = _root._url;
var _local5 = "";
var _local3 = "";
var _local6 = _local4.lastIndexOf("\\") + 1;
if ((_local6 == -1) || (_local6 == 0)) {
_local6 = _local4.lastIndexOf("/") + 1;
}
var _local2 = _local6;
var _local7 = String(_local4).length;
while (_local2 < String(_local4).length) {
_local3 = _local4.charAt(_local2);
if (_local3 == ".") {
break;
}
_local5 = _local5 + _local3;
_local2++;
}
return(_local5);
};
ipb_gname = _global.ipb_get_gname();
xx = new LoadVars();
xx.onLoad = function (success) {
if (success) {
_global.ipb_scoreVar = this.scoreVar;
}
};
fname = ((("arcade/gamedata/" + ipb_gname) + "/") + ipb_gname) + ".txt";
xx.load(fname);
Instance of Symbol 80 MovieClip "loading" in Frame 1
/* no clip actions */
Frame 2
if ((AppInfo.SHOW_ADS == false) && (mdm.Application.filename == undefined)) {
MochiAd.showPreloaderAd({id:"8c1aad78d0181ff7", res:"640x480"});
}
Frame 3
gotoAndStop ("frame_leveli");
Frame 33
_root.levelBuffer = new Object();
_root.levelBuffer.defaultLevel = new Object();
_root.levelBuffer.defaultLevel.odskok_lopti = new Object();
_root.levelBuffer.defaultLevel.odskok_lopti.normalna = {boja:"default", brzinax:70, gravitacija:410, bounce_off:[0, 70, 115, 155, 195, 235]};
_root.levelBuffer.defaultLevel.odskok_lopti.kontra = {brzinax:70, gravitacija:360, bounce_off:[0, 375, 335, 235, 120, 30]};
_root.levelBuffer.defaultLevel.odskok_lopti.kisobran = {boja:"default", brzina:120};
var lvl = ((_root.levelBuffer.editor_level1 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 45;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, bodovi1:1};
lvl.igraci = {p1_x:50, p1_y:60, p1_weapon:1};
var lvl = ((_level0.levelBuffer.single_level1 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 45;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, bodovi1:1};
lvl.igraci = {p1_x:340, p1_y:420, p1_weapon:1};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:129, y:295, sx:1, sy:1};
var lvl = ((_level0.levelBuffer.single_level2 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 45;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, vrijeme:1};
lvl.igraci = {p1_x:320, p1_y:420, p1_weapon:1};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:376, y:266, sx:1, sy:1};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:272, y:266, sx:-1, sy:1};
var lvl = ((_level0.levelBuffer.single_level3 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 45;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, vrijeme:1, bodovi1:1};
lvl.igraci = {p1_x:320, p1_y:420, p1_weapon:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:135, y:234, sx:1, sy:1};
var lvl = ((_level0.levelBuffer.single_level4 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_hook:1, vrijeme:1, uspori_lopte:1, shield_plain:1, bodovi1:1};
lvl.igraci = {p1_x:320, p1_y:200, p1_weapon:1};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:73, y:43, sx:1, sy:1};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:149, y:250, sx:1, sy:1};
lvl.tiles.ljestve2 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:300, t1y:200, t2x:320, t2y:420};
lvl.tiles.zid1 = {tip:"zid", t1x:10, t1y:200, t2x:630, t2y:210, soft:true};
var lvl = ((_level0.levelBuffer.single_level5 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, shield_plain:1, bodovi1:1};
lvl.igraci = {p1_x:300, p1_y:420, p1_weapon:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:263, y:59, sx:1, sy:1};
lvl.tiles.keks5 = {tip:"keks", item:"null", invis:false, t1x:280, t1y:140, t2x:330, t2y:150, soft:true};
lvl.tiles.keks4 = {tip:"keks", item:"null", invis:false, t1x:360, t1y:140, t2x:410, t2y:150, soft:true};
lvl.tiles.keks3 = {tip:"keks", item:"freeze", invis:false, t1x:200, t1y:140, t2x:250, t2y:150, soft:true};
lvl.tiles.zid2 = {tip:"zid", t1x:400, t1y:10, t2x:410, t2y:140, soft:true};
lvl.tiles.zid1 = {tip:"zid", t1x:200, t1y:10, t2x:210, t2y:140, soft:true};
var lvl = ((_level0.levelBuffer.single_level6 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, vrijeme:1, shield_plain:1, bodovi1:1};
lvl.igraci = {p1_x:330, p1_y:420, p1_weapon:1};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:55, y:257, sx:1, sy:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:516, y:295, sx:1, sy:1};
lvl.tiles.ljestve2 = {tip:"switch", color:"narandjasta", p2ok:undefined, t1x:470, t1y:230, t2x:630, t2y:240};
lvl.tiles.ljestve1 = {tip:"switch", color:"narandjasta", p2ok:undefined, t1x:460, t1y:230, t2x:470, t2y:420};
var lvl = ((_level0.levelBuffer.single_level7 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 30;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.igraci = {p1_x:350, p1_y:420, p1_weapon:1};
lvl.odskok_lopti = new Object();
lvl.odskok_lopti.normalna = {boja:"default", brzinax:70, gravitacija:360, bounce_off:[0, 140, 115, 155, 195, 235]};
lvl.lopte.normalna12 = {id:1, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:210, y:380, sx:1, sy:1};
lvl.lopte.normalna11 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:196, y:370, sx:1, sy:1};
lvl.lopte.normalna10 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:60, y:270, sx:1, sy:1};
lvl.lopte.normalna9 = {id:1, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:74, y:280, sx:1, sy:1};
lvl.lopte.normalna8 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:142, y:330, sx:1, sy:1};
lvl.lopte.normalna7 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:88, y:290, sx:1, sy:1};
lvl.lopte.normalna6 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:115, y:310, sx:1, sy:1};
lvl.lopte.normalna5 = {id:1, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:156, y:340, sx:1, sy:1};
lvl.lopte.normalna4 = {id:1, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:183, y:360, sx:1, sy:1};
lvl.lopte.normalna3 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:169, y:350, sx:1, sy:1};
lvl.lopte.normalna2 = {id:1, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:101, y:300, sx:1, sy:1};
lvl.lopte.normalna1 = {id:1, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:128, y:320, sx:1, sy:1};
var lvl = ((_level0.levelBuffer.single_level8 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 90;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, uspori_lopte:1, shield_plain:1, bodovi1:1, bodovi2:1};
lvl.igraci = {p1_x:320, p1_y:420, p1_weapon:1};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:54, y:43, sx:1, sy:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:41, y:170, sx:1, sy:1};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:145, y:292, sx:1, sy:1};
lvl.tiles.keks4 = {tip:"keks", item:"weapon_double", invis:true, t1x:170, t1y:220, t2x:180, t2y:230, soft:true};
lvl.tiles.switch3 = {tip:"switch", color:"zelena", t1x:10, t1y:130, t2x:170, t2y:140, soft:true};
lvl.tiles.zid2 = {tip:"zid", t1x:170, t1y:10, t2x:180, t2y:220, soft:true};
lvl.tiles.switch1 = {tip:"switch", color:"plava", t1x:10, t1y:210, t2x:170, t2y:220, soft:true};
var lvl = ((_level0.levelBuffer.single_level9 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_single:1, weapon_double:1, uspori_lopte:1, shield_plain:1, bodovi1:1, bodovi2:1};
lvl.igraci = {p1_x:310, p1_y:420, p1_weapon:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:233, y:204, sx:-1, sy:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:386, y:204, sx:1, sy:1};
var lvl = ((_level0.levelBuffer.single_level10 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 50;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, vrijeme:1, uspori_lopte:1, shield_plain:1, bodovi1:1, bodovi2:1};
lvl.igraci = {p1_x:40, p1_y:420, p1_weapon:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:true, x:313, y:206, sx:1, sy:1};
var lvl = ((_level0.levelBuffer.single_level11 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, vrijeme:1, shield_plain:1, extra_life:1};
lvl.igraci = {p1_x:320, p1_y:420, p1_weapon:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:216, y:101, sx:-1, sy:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:436, y:101, sx:1, sy:1};
lvl.tiles.zid6 = {tip:"zid", t1x:560, t1y:220, t2x:630, t2y:230, soft:true};
lvl.tiles.keks5 = {tip:"keks", item:"null", invis:false, t1x:460, t1y:220, t2x:510, t2y:230, soft:true};
lvl.tiles.zid4 = {tip:"zid", t1x:350, t1y:220, t2x:400, t2y:230, soft:true};
lvl.tiles.zid3 = {tip:"zid", t1x:240, t1y:220, t2x:290, t2y:230, soft:true};
lvl.tiles.keks2 = {tip:"keks", item:"null", invis:false, t1x:130, t1y:220, t2x:180, t2y:230, soft:true};
lvl.tiles.zid1 = {tip:"zid", t1x:10, t1y:220, t2x:80, t2y:230, soft:true};
var lvl = ((_level0.levelBuffer.single_level12 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 75;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, shield_plain:1};
lvl.igraci = {p1_x:330, p1_y:290, p1_weapon:1};
lvl.lopte.normalna4 = {id:2, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:546, y:289, sx:-1, sy:1};
lvl.lopte.normalna3 = {id:2, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:436, y:289, sx:1, sy:1};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:186, y:289, sx:-1, sy:1};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:76, y:289, sx:1, sy:1};
lvl.tiles.zid5 = {tip:"zid", t1x:320, t1y:300, t2x:330, t2y:330, soft:false};
lvl.tiles.ljestve4 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:290, t1y:290, t2x:310, t2y:420};
lvl.tiles.zid3 = {tip:"zid", t1x:320, t1y:360, t2x:330, t2y:390, soft:true};
lvl.tiles.ljestve2 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:340, t1y:290, t2x:360, t2y:420};
lvl.tiles.zid1 = {tip:"zid", t1x:290, t1y:290, t2x:360, t2y:300, soft:false};
var lvl = ((_level0.levelBuffer.single_level13 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 75;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, vrijeme:1, shield_plain:1, bodovi1:1, bodovi2:1};
lvl.igraci = {p1_x:330, p1_y:420, p1_weapon:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:127, y:199, sx:1, sy:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:true, x:419, y:207, sx:1, sy:1};
var lvl = ((_level0.levelBuffer.single_level14 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, vrijeme:3, weapon_hook:1};
lvl.igraci = {p1_x:40, p1_y:180, p1_weapon:1};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:319, y:238, sx:1, sy:1};
lvl.lopte.normalna3 = {id:2, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:372, y:52, sx:1, sy:1};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:257, y:52, sx:1, sy:1};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:49, y:52, sx:1, sy:1};
lvl.tiles.ljestve5 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:590, t1y:180, t2x:610, t2y:420};
lvl.tiles.ljestve4 = {tip:"switch", color:"zelena", p2ok:undefined, t1x:430, t1y:10, t2x:440, t2y:180};
lvl.tiles.ljestve3 = {tip:"switch", color:"narandjasta", p2ok:undefined, t1x:320, t1y:10, t2x:330, t2y:180};
lvl.tiles.ljestve2 = {tip:"switch", color:"zuta", p2ok:undefined, t1x:220, t1y:10, t2x:230, t2y:180};
lvl.tiles.zid1 = {tip:"zid", t1x:10, t1y:180, t2x:630, t2y:190, soft:true};
var lvl = ((_level0.levelBuffer.single_level15 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_laser:1, freeze:1, vrijeme:1, uspori_lopte:1, dinamit:2, shield_plain:1, bodovi2:1};
lvl.igraci = {p1_x:320, p1_y:90, p1_weapon:1};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:449, y:170, sx:1, sy:1};
lvl.tiles.zid1 = {tip:"zid", t1x:280, t1y:90, t2x:350, t2y:100, soft:true};
var lvl = ((_level0.levelBuffer.single_level16 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 95;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_laser:1, freeze:1, dinamit:1, shield_plain:1, bodovi1:1, bodovi2:1};
lvl.igraci = {p1_x:320, p1_y:420, p1_weapon:1};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:423, y:253, sx:1, sy:1};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:528, y:36, sx:1, sy:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:318, y:36, sx:1, sy:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:107, y:35, sx:1, sy:1};
lvl.tiles.zid9 = {tip:"zid", t1x:560, t1y:10, t2x:570, t2y:110, soft:true};
lvl.tiles.zid8 = {tip:"zid", t1x:490, t1y:10, t2x:500, t2y:110, soft:true};
lvl.tiles.switch7 = {tip:"switch", color:"crvena", t1x:500, t1y:100, t2x:560, t2y:110, soft:true};
lvl.tiles.zid6 = {tip:"zid", t1x:350, t1y:10, t2x:360, t2y:110, soft:true};
lvl.tiles.zid5 = {tip:"zid", t1x:280, t1y:10, t2x:290, t2y:110, soft:true};
lvl.tiles.switch4 = {tip:"switch", color:"zuta", t1x:290, t1y:100, t2x:350, t2y:110, soft:true};
lvl.tiles.zid3 = {tip:"zid", t1x:140, t1y:10, t2x:150, t2y:110, soft:true};
lvl.tiles.zid2 = {tip:"zid", t1x:70, t1y:10, t2x:80, t2y:110, soft:true};
lvl.tiles.switch1 = {tip:"switch", color:"crvena", t1x:80, t1y:100, t2x:140, t2y:110, soft:true};
var lvl = ((_level0.levelBuffer.single_level17 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 110;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_hook:1, shield_plain:1};
lvl.igraci = {p1_x:320, p1_y:420, p1_weapon:1};
lvl.lopte.normalna8 = {id:2, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:274, y:38, sx:1, sy:1};
lvl.lopte.normalna7 = {id:2, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:420, y:127, sx:-1, sy:1};
lvl.lopte.normalna6 = {id:2, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:469, y:219, sx:1, sy:1};
lvl.lopte.normalna5 = {id:2, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:91, y:219, sx:1, sy:1};
lvl.lopte.normalna4 = {id:2, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:270, y:127, sx:-1, sy:1};
lvl.lopte.normalna3 = {id:2, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:561, y:129, sx:-1, sy:1};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:454, y:38, sx:1, sy:1};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:90, y:38, sx:1, sy:1};
lvl.tiles.keks6 = {tip:"keks", item:"weapon_hook", invis:false, t1x:10, t1y:270, t2x:90, t2y:280, soft:true};
lvl.tiles.keks5 = {tip:"keks", item:"null", invis:false, t1x:560, t1y:180, t2x:630, t2y:190, soft:true};
lvl.tiles.keks4 = {tip:"keks", item:"null", invis:false, t1x:10, t1y:90, t2x:90, t2y:100, soft:true};
lvl.tiles.zid3 = {tip:"zid", t1x:90, t1y:270, t2x:560, t2y:280, soft:true};
lvl.tiles.zid2 = {tip:"zid", t1x:90, t1y:180, t2x:560, t2y:190, soft:true};
lvl.tiles.zid1 = {tip:"zid", t1x:90, t1y:90, t2x:560, t2y:100, soft:true};
var lvl = ((_level0.levelBuffer.single_level18 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 50;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.igraci = {p1_x:350, p1_y:420, p1_weapon:1};
lvl.odskok_lopti = new Object();
lvl.odskok_lopti.normalna = {boja:"default", brzinax:70, gravitacija:360, bounce_off:[0, 140, 115, 155, 195, 235]};
lvl.lopte.normalna24 = {id:1, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:560, y:296, sx:1, sy:1};
lvl.lopte.normalna23 = {id:1, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:546, y:306, sx:1, sy:1};
lvl.lopte.normalna22 = {id:1, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:533, y:316, sx:1, sy:1};
lvl.lopte.normalna21 = {id:1, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:506, y:336, sx:1, sy:1};
lvl.lopte.normalna20 = {id:1, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:519, y:326, sx:1, sy:1};
lvl.lopte.normalna19 = {id:1, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:424, y:397, sx:1, sy:1};
lvl.lopte.normalna18 = {id:1, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:410, y:406, sx:1, sy:1};
lvl.lopte.normalna17 = {id:1, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:451, y:377, sx:1, sy:1};
lvl.lopte.normalna16 = {id:1, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:438, y:388, sx:1, sy:1};
lvl.lopte.normalna15 = {id:1, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:478, y:356, sx:1, sy:1};
lvl.lopte.normalna14 = {id:1, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:492, y:347, sx:1, sy:1};
lvl.lopte.normalna13 = {id:1, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:465, y:366, sx:1, sy:1};
lvl.lopte.normalna12 = {id:1, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:210, y:380, sx:1, sy:1};
lvl.lopte.normalna11 = {id:1, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:196, y:370, sx:1, sy:1};
lvl.lopte.normalna10 = {id:1, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:88, y:290, sx:1, sy:1};
lvl.lopte.normalna9 = {id:1, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:60, y:270, sx:1, sy:1};
lvl.lopte.normalna8 = {id:1, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:74, y:280, sx:1, sy:1};
lvl.lopte.normalna7 = {id:1, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:101, y:300, sx:1, sy:1};
lvl.lopte.normalna6 = {id:1, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:115, y:310, sx:1, sy:1};
lvl.lopte.normalna5 = {id:1, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:128, y:320, sx:1, sy:1};
lvl.lopte.normalna4 = {id:1, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:142, y:330, sx:1, sy:1};
lvl.lopte.normalna3 = {id:1, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:156, y:340, sx:1, sy:1};
lvl.lopte.normalna2 = {id:1, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:169, y:350, sx:1, sy:1};
lvl.lopte.normalna1 = {id:1, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:183, y:360, sx:1, sy:1};
var lvl = ((_level0.levelBuffer.single_level19 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 70;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_hook:1, freeze:1, shield_plain:1, bodovi2:1};
lvl.igraci = {p1_x:330, p1_y:420, p1_weapon:1};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:386, y:68, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:436, y:247, sx:3, sy:3, rotacija:1};
var lvl = ((_level0.levelBuffer.single_level20 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 75;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, freeze:1, shield_plain:1, shield_invincible:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:330, p1_y:420, p1_weapon:1};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:462, y:129, sx:-1, sy:1};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:172, y:129, sx:1, sy:1};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:83, y:40, sx:-3, sy:3, rotacija:1};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:554, y:40, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:278, y:236, sx:-1, sy:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:380, y:236, sx:1, sy:1};
lvl.tiles.switch2 = {tip:"switch", color:"zuta", t1x:10, t1y:80, t2x:630, t2y:90, soft:true};
lvl.tiles.switch1 = {tip:"switch", color:"plava", t1x:10, t1y:170, t2x:630, t2y:180, soft:true};
var lvl = ((_level0.levelBuffer.single_level21 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 45;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, dinamit:1, shield_plain:1, bodovi2:1};
lvl.igraci = {p1_x:330, p1_y:420, p1_weapon:1};
lvl.lopte.normalna1 = {id:5, tip:"normalna", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:305, y:100, sx:1, sy:1};
lvl.tiles.keks8 = {tip:"keks", item:"bodovi3", invis:true, t1x:10, t1y:10, t2x:60, t2y:20, soft:true};
lvl.tiles.keks7 = {tip:"keks", item:"null", invis:false, t1x:40, t1y:200, t2x:90, t2y:210, soft:true};
lvl.tiles.keks6 = {tip:"keks", item:"freeze", invis:false, t1x:120, t1y:200, t2x:170, t2y:210, soft:true};
lvl.tiles.keks5 = {tip:"keks", item:"null", invis:false, t1x:550, t1y:200, t2x:600, t2y:210, soft:true};
lvl.tiles.keks4 = {tip:"keks", item:"null", invis:false, t1x:470, t1y:200, t2x:520, t2y:210, soft:true};
lvl.tiles.keks3 = {tip:"keks", item:"null", invis:false, t1x:380, t1y:200, t2x:430, t2y:210, soft:true};
lvl.tiles.keks2 = {tip:"keks", item:"null", invis:false, t1x:290, t1y:200, t2x:340, t2y:210, soft:true};
lvl.tiles.keks1 = {tip:"keks", item:"null", invis:false, t1x:200, t1y:200, t2x:250, t2y:210, soft:true};
var lvl = ((_level0.levelBuffer.single_level22 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 40;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, weapon_laser:1, freeze:1, uspori_lopte:1, dinamit:1, bodovi2:1, bodovi3:1, extra_life:1};
lvl.igraci = {p1_x:330, p1_y:420, p1_weapon:1};
lvl.lopte.kisobran3 = {id:3, tip:"kisobran", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:78, y:47, sx:3, sy:3, rotacija:-1};
lvl.lopte.kisobran2 = {id:4, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:278, y:67, sx:-3, sy:3, rotacija:1};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:442, y:47, sx:3, sy:3, rotacija:-1};
lvl.tiles.zid2 = {tip:"zid", t1x:120, t1y:130, t2x:130, t2y:280, soft:true};
lvl.tiles.zid1 = {tip:"zid", t1x:510, t1y:130, t2x:520, t2y:280, soft:true};
var lvl = ((_level0.levelBuffer.single_level23 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 35;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_hook:1, freeze:1, bodovi2:1};
lvl.igraci = {p1_x:330, p1_y:420, p1_weapon:1};
lvl.lopte.kontra1 = {id:4, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:312, y:55, sx:1, sy:-1};
var lvl = ((_level0.levelBuffer.single_level24 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 28;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_hook:1, freeze:1, bodovi2:1};
lvl.igraci = {p1_x:330, p1_y:420, p1_weapon:1};
lvl.lopte.kontra2 = {id:2, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:262, y:86, sx:-1, sy:1};
lvl.lopte.kontra1 = {id:2, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:397, y:86, sx:1, sy:1};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:true, x:265, y:253, sx:-1, sy:1};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:true, x:400, y:253, sx:1, sy:1};
var lvl = ((_level0.levelBuffer.single_level25 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 80;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_hook:1, freeze:1, vrijeme:1, uspori_lopte:1, shield_plain:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:330, p1_y:420, p1_weapon:1};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:146, y:116, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna7 = {id:3, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:63, y:109, sx:1, sy:1};
lvl.lopte.normalna6 = {id:3, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:178, y:51, sx:1, sy:1};
lvl.lopte.kisobran1 = {id:1, tip:"kisobran", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:27, y:236, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna5 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:456, y:77, sx:1, sy:1};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:123, y:341, sx:1, sy:1};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:216, y:234, sx:1, sy:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:543, y:40, sx:1, sy:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:501, y:267, sx:1, sy:1};
lvl.tiles.keks8 = {tip:"keks", item:"shield_plain", invis:false, t1x:10, t1y:10, t2x:50, t2y:20, soft:true};
lvl.tiles.ljestve7 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:30, t1y:180, t2x:50, t2y:420};
lvl.tiles.switch6 = {tip:"switch", color:"crvena", t1x:250, t1y:10, t2x:260, t2y:180, soft:true};
lvl.tiles.ljestve5 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:600, t1y:180, t2x:620, t2y:420};
lvl.tiles.switch4 = {tip:"switch", color:"zuta", t1x:580, t1y:190, t2x:590, t2y:420, soft:true};
lvl.tiles.zid3 = {tip:"zid", t1x:10, t1y:180, t2x:630, t2y:190, soft:true};
lvl.tiles.switch2 = {tip:"switch", color:"ljubicasta", t1x:280, t1y:190, t2x:290, t2y:420, soft:true};
lvl.tiles.zid1 = {tip:"zid", t1x:70, t1y:190, t2x:80, t2y:420, soft:true};
var lvl = ((_level0.levelBuffer.single_level26 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 35;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, vrijeme:1, uspori_lopte:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi3:1};
lvl.igraci = {p1_x:330, p1_y:420, p1_weapon:1};
lvl.lopte.normalna1 = {id:5, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:406, y:160, sx:1, sy:1};
var lvl = ((_level0.levelBuffer.single_level27 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 50;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, vrijeme:1, uspori_lopte:1, dinamit:1, shield_invincible:1, bodovi3:2};
lvl.igraci = {p1_x:330, p1_y:420, p1_weapon:1};
lvl.lopte.kisobran2 = {id:4, tip:"kisobran", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:true, x:200, y:78, sx:-3, sy:3, rotacija:-1};
lvl.lopte.kisobran1 = {id:4, tip:"kisobran", boja:"roza", splitway:"normal", battleId:0, ghostBall:true, x:440, y:78, sx:3, sy:3, rotacija:1};
var lvl = ((_level0.levelBuffer.single_level28 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_hook:1, weapon_laser:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:330, p1_y:420, p1_weapon:1};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:257, y:245, sx:-1, sy:1};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:407, y:245, sx:1, sy:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:545, y:44, sx:1, sy:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:88, y:44, sx:-1, sy:1};
lvl.tiles.keks6 = {tip:"keks", item:"weapon_hook", invis:true, t1x:300, t1y:190, t2x:350, t2y:200, soft:true};
lvl.tiles.ljestve5 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:600, t1y:180, t2x:620, t2y:420};
lvl.tiles.ljestve4 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:20, t1y:180, t2x:40, t2y:420};
lvl.tiles.led3 = {tip:"led", t1x:70, t1y:180, t2x:570, t2y:190, soft:true};
lvl.tiles.zid2 = {tip:"zid", t1x:570, t1y:180, t2x:630, t2y:190, soft:true};
lvl.tiles.zid1 = {tip:"zid", t1x:10, t1y:180, t2x:70, t2y:190, soft:true};
var lvl = ((_level0.levelBuffer.single_level29 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 120;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_hook:1, uspori_lopte:1, bodovi3:1};
lvl.igraci = {p1_x:550, p1_y:420, p1_weapon:1};
lvl.lopte.normalna14 = {id:3, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:true, x:384, y:174, sx:1, sy:-1};
lvl.lopte.normalna13 = {id:3, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:true, x:244, y:174, sx:1, sy:-1};
lvl.lopte.normalna12 = {id:3, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:true, x:178, y:67, sx:1, sy:1};
lvl.lopte.normalna11 = {id:3, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:true, x:314, y:67, sx:1, sy:1};
lvl.lopte.normalna10 = {id:3, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:true, x:456, y:67, sx:1, sy:1};
lvl.lopte.kisobran1 = {id:1, tip:"kisobran", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:37, y:26, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna9 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:true, x:81, y:402, sx:1, sy:-1};
lvl.lopte.normalna8 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:true, x:27, y:245, sx:1, sy:1};
lvl.lopte.normalna7 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:true, x:298, y:402, sx:1, sy:-1};
lvl.lopte.normalna6 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:true, x:399, y:402, sx:1, sy:-1};
lvl.lopte.normalna5 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:true, x:445, y:245, sx:1, sy:1};
lvl.lopte.normalna4 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:true, x:345, y:245, sx:1, sy:1};
lvl.lopte.normalna3 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:true, x:189, y:402, sx:1, sy:-1};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:true, x:235, y:245, sx:1, sy:1};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:true, x:135, y:245, sx:1, sy:1};
lvl.tiles.keks5 = {tip:"keks", item:"shield_invincible", invis:false, t1x:10, t1y:50, t2x:120, t2y:60, soft:true};
lvl.tiles.keks4 = {tip:"keks", item:"zvijezda", invis:false, t1x:580, t1y:10, t2x:630, t2y:20, soft:true};
lvl.tiles.switch3 = {tip:"switch", color:"zuta", t1x:120, t1y:10, t2x:130, t2y:200, soft:true};
lvl.tiles.zid2 = {tip:"zid", t1x:10, t1y:200, t2x:630, t2y:210, soft:true};
lvl.tiles.ljestve1 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:20, t1y:200, t2x:40, t2y:420};
var lvl = ((_level0.levelBuffer.single_level30 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 30;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, uspori_lopte:1, bodovi3:1};
lvl.igraci = {p1_x:550, p1_y:420, p1_weapon:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:297, y:183, sx:1, sy:1};
var lvl = ((_level0.levelBuffer.single_level31 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 45;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_hook:1, vrijeme:1, uspori_lopte:1, shield_plain:1};
lvl.igraci = {p1_x:330, p1_y:420, p1_weapon:1};
lvl.odskok_lopti = new Object();
lvl.odskok_lopti.normalna = {boja:"default", brzinax:70, gravitacija:360, bounce_off:[0, 235, 235, 235, 235, 235]};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:546, y:373, sx:1, sy:-1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:96, y:373, sx:-1, sy:-1};
lvl.lopte.kontra2 = {id:3, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:94, y:43, sx:-1, sy:1};
lvl.lopte.kontra1 = {id:3, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:571, y:44, sx:1, sy:1};
lvl.tiles.zid3 = {tip:"zid", t1x:270, t1y:200, t2x:390, t2y:210, soft:true};
lvl.tiles.zid2 = {tip:"zid", t1x:420, t1y:100, t2x:540, t2y:110, soft:true};
lvl.tiles.zid1 = {tip:"zid", t1x:120, t1y:100, t2x:240, t2y:110, soft:true};
var lvl = ((_level0.levelBuffer.single_level32 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_laser:1, shield_plain:1, bodovi3:1};
lvl.igraci = {p1_x:180, p1_y:420, p1_weapon:1};
lvl.lopte.normalna4 = {id:1, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:30, y:24, sx:1, sy:1};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:526, y:222, sx:1, sy:1};
lvl.lopte.normalna2 = {id:4, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:563, y:62, sx:1, sy:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:51, y:256, sx:1, sy:1};
lvl.tiles.switch10 = {tip:"switch", color:"plava", t1x:10, t1y:170, t2x:300, t2y:180, soft:true};
lvl.tiles.zid9 = {tip:"zid", t1x:60, t1y:10, t2x:70, t2y:50, soft:true};
lvl.tiles.keks8 = {tip:"keks", item:"null", invis:false, t1x:10, t1y:40, t2x:60, t2y:50, soft:true};
lvl.tiles.switch7 = {tip:"switch", color:"plava", t1x:490, t1y:140, t2x:630, t2y:150, soft:true};
lvl.tiles.switch6 = {tip:"switch", color:"plava", t1x:480, t1y:10, t2x:490, t2y:150, soft:true};
lvl.tiles.switch5 = {tip:"switch", color:"crvena", t1x:560, t1y:320, t2x:570, t2y:420, soft:true};
lvl.tiles.tramboline4 = {tip:"tramboline", t1x:360, t1y:240, t2x:410, t2y:250, soft:true};
lvl.tiles.ljestve3 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:590, t1y:310, t2x:610, t2y:420};
lvl.tiles.zid2 = {tip:"zid", t1x:530, t1y:310, t2x:630, t2y:320, soft:true};
lvl.tiles.tramboline1 = {tip:"tramboline", t1x:480, t1y:310, t2x:530, t2y:320, soft:true};
var lvl = ((_level0.levelBuffer.single_level33 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 65;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, shield_plain:1, bodovi2:1, bodovi3:1, extra_life:1};
lvl.igraci = {p1_x:180, p1_y:420, p1_weapon:1};
lvl.lopte.normalna9 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:357, y:125, sx:1, sy:1};
lvl.lopte.normalna8 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:535, y:50, sx:1, sy:1};
lvl.lopte.normalna7 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:228, y:92, sx:1, sy:1};
lvl.lopte.normalna6 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:160, y:46, sx:1, sy:1};
lvl.lopte.normalna5 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:399, y:50, sx:1, sy:1};
lvl.lopte.normalna4 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:61, y:55, sx:1, sy:1};
lvl.lopte.normalna3 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:308, y:61, sx:1, sy:1};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:160, y:125, sx:1, sy:1};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:499, y:134, sx:1, sy:1};
lvl.tiles.zid9 = {tip:"zid", t1x:580, t1y:190, t2x:630, t2y:200, soft:true};
lvl.tiles.zid8 = {tip:"zid", t1x:500, t1y:190, t2x:560, t2y:200, soft:true};
lvl.tiles.keks7 = {tip:"keks", item:"null", invis:false, t1x:430, t1y:190, t2x:480, t2y:200, soft:true};
lvl.tiles.zid6 = {tip:"zid", t1x:360, t1y:190, t2x:410, t2y:200, soft:true};
lvl.tiles.keks5 = {tip:"keks", item:"null", invis:false, t1x:290, t1y:190, t2x:340, t2y:200, soft:true};
lvl.tiles.zid4 = {tip:"zid", t1x:220, t1y:190, t2x:270, t2y:200, soft:true};
lvl.tiles.keks3 = {tip:"keks", item:"null", invis:false, t1x:150, t1y:190, t2x:200, t2y:200, soft:true};
lvl.tiles.zid2 = {tip:"zid", t1x:80, t1y:190, t2x:130, t2y:200, soft:true};
lvl.tiles.zid1 = {tip:"zid", t1x:10, t1y:190, t2x:60, t2y:200, soft:true};
var lvl = ((_level0.levelBuffer.single_level34 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 90;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_laser:1, freeze:1, vrijeme:1, uspori_lopte:1, shield_plain:1, shield_invincible:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:310, p1_y:420, p1_weapon:1};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:252, y:238, sx:-1, sy:1};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:368, y:238, sx:1, sy:1};
lvl.lopte.normalna2 = {id:5, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:91, y:91, sx:-1, sy:1};
lvl.lopte.normalna1 = {id:5, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:549, y:89, sx:1, sy:1};
lvl.tiles.switch8 = {tip:"switch", color:"ljubicasta", t1x:450, t1y:10, t2x:460, t2y:180, soft:true};
lvl.tiles.switch7 = {tip:"switch", color:"ljubicasta", t1x:450, t1y:180, t2x:630, t2y:190, soft:true};
lvl.tiles.switch6 = {tip:"switch", color:"crvena", t1x:460, t1y:10, t2x:470, t2y:170, soft:true};
lvl.tiles.switch5 = {tip:"switch", color:"crvena", t1x:460, t1y:170, t2x:630, t2y:180, soft:true};
lvl.tiles.switch4 = {tip:"switch", color:"ljubicasta", t1x:180, t1y:10, t2x:190, t2y:180, soft:true};
lvl.tiles.switch3 = {tip:"switch", color:"ljubicasta", t1x:10, t1y:180, t2x:190, t2y:190, soft:true};
lvl.tiles.switch2 = {tip:"switch", color:"crvena", t1x:170, t1y:10, t2x:180, t2y:170, soft:true};
lvl.tiles.switch1 = {tip:"switch", color:"crvena", t1x:10, t1y:170, t2x:180, t2y:180, soft:true};
var lvl = ((_level0.levelBuffer.single_level35 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 50;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, vrijeme:1, dinamit:1, shield_plain:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:310, p1_y:420, p1_weapon:1};
lvl.lopte.kisobran4 = {id:3, tip:"kisobran", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:248, y:222, sx:-3, sy:3, rotacija:-1};
lvl.lopte.kisobran3 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:377, y:222, sx:-3, sy:-3, rotacija:1};
lvl.lopte.normalna2 = {id:1, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:260, y:25, sx:1, sy:1};
lvl.lopte.normalna1 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:370, y:24, sx:1, sy:1};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:366, y:219, sx:-3, sy:3, rotacija:-1};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:299, y:226, sx:-3, sy:-3, rotacija:1};
lvl.tiles.switch20 = {tip:"switch", color:"crvena", t1x:200, t1y:260, t2x:430, t2y:270, soft:true};
lvl.tiles.ljestve19 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:20, t1y:160, t2x:40, t2y:290};
lvl.tiles.ljestve18 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:600, t1y:160, t2x:620, t2y:290};
lvl.tiles.keks17 = {tip:"keks", item:"null", invis:false, t1x:350, t1y:40, t2x:390, t2y:50, soft:true};
lvl.tiles.zid16 = {tip:"zid", t1x:380, t1y:10, t2x:390, t2y:40, soft:true};
lvl.tiles.zid15 = {tip:"zid", t1x:350, t1y:10, t2x:360, t2y:40, soft:true};
lvl.tiles.keks14 = {tip:"keks", item:"null", invis:false, t1x:240, t1y:40, t2x:280, t2y:50, soft:true};
lvl.tiles.zid13 = {tip:"zid", t1x:270, t1y:10, t2x:280, t2y:40, soft:true};
lvl.tiles.zid12 = {tip:"zid", t1x:240, t1y:10, t2x:250, t2y:40, soft:true};
lvl.tiles.tramboline11 = {tip:"tramboline", t1x:90, t1y:160, t2x:140, t2y:170, soft:true};
lvl.tiles.tramboline10 = {tip:"tramboline", t1x:490, t1y:160, t2x:540, t2y:170, soft:true};
lvl.tiles.zid9 = {tip:"zid", t1x:10, t1y:160, t2x:90, t2y:170, soft:true};
lvl.tiles.zid8 = {tip:"zid", t1x:540, t1y:160, t2x:630, t2y:170, soft:true};
lvl.tiles.ljestve7 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:530, t1y:290, t2x:550, t2y:420};
lvl.tiles.ljestve6 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:80, t1y:290, t2x:100, t2y:420};
lvl.tiles.zid5 = {tip:"zid", t1x:520, t1y:290, t2x:630, t2y:300, soft:true};
lvl.tiles.switch4 = {tip:"switch", color:"crvena", t1x:420, t1y:120, t2x:430, t2y:260, soft:true};
lvl.tiles.switch3 = {tip:"switch", color:"crvena", t1x:200, t1y:120, t2x:210, t2y:260, soft:true};
lvl.tiles.switch2 = {tip:"switch", color:"plava", t1x:210, t1y:180, t2x:420, t2y:190, soft:true};
lvl.tiles.zid1 = {tip:"zid", t1x:10, t1y:290, t2x:120, t2y:300, soft:true};
var lvl = ((_level0.levelBuffer.single_level36 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 37;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1};
lvl.igraci = {p1_x:310, p1_y:420, p1_weapon:1};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:326, y:144, sx:1, sy:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:86, y:144, sx:-1, sy:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:546, y:144, sx:1, sy:1};
lvl.tiles.ljestve10 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:420, t1y:280, t2x:440, t2y:420};
lvl.tiles.tramboline9 = {tip:"tramboline", t1x:410, t1y:280, t2x:450, t2y:290, soft:true};
lvl.tiles.ljestve8 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:470, t1y:280, t2x:490, t2y:420};
lvl.tiles.tramboline7 = {tip:"tramboline", t1x:460, t1y:280, t2x:500, t2y:290, soft:true};
lvl.tiles.zid6 = {tip:"zid", t1x:450, t1y:230, t2x:460, t2y:420, soft:true};
lvl.tiles.ljestve5 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:160, t1y:280, t2x:180, t2y:420};
lvl.tiles.tramboline4 = {tip:"tramboline", t1x:150, t1y:280, t2x:190, t2y:290, soft:true};
lvl.tiles.ljestve3 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:210, t1y:280, t2x:230, t2y:420};
lvl.tiles.tramboline2 = {tip:"tramboline", t1x:200, t1y:280, t2x:240, t2y:290, soft:true};
lvl.tiles.zid1 = {tip:"zid", t1x:190, t1y:230, t2x:200, t2y:420, soft:true};
var lvl = ((_level0.levelBuffer.single_level37 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 55;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_hook:1, uspori_lopte:1, dinamit:1};
lvl.igraci = {p1_x:310, p1_y:420, p1_weapon:1};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"zelena", splitway:"double", battleId:0, ghostBall:false, x:65, y:117, sx:1, sy:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"zelena", splitway:"double", battleId:0, ghostBall:false, x:535, y:113, sx:1, sy:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:257, y:60, sx:1, sy:1};
lvl.tiles.ljestve5 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:450, t1y:210, t2x:470, t2y:420};
lvl.tiles.zid4 = {tip:"zid", t1x:440, t1y:210, t2x:480, t2y:220, soft:true};
lvl.tiles.zid3 = {tip:"zid", t1x:170, t1y:20, t2x:180, t2y:150, soft:true};
lvl.tiles.zid2 = {tip:"zid", t1x:430, t1y:20, t2x:440, t2y:150, soft:true};
lvl.tiles.led1 = {tip:"led", t1x:170, t1y:210, t2x:440, t2y:220, soft:true};
var lvl = ((_level0.levelBuffer.single_level38 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 55;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_hook:1, uspori_lopte:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:330, p1_y:200, p1_weapon:1};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:235, y:234, sx:-1, sy:1};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:445, y:234, sx:1, sy:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:235, y:33, sx:-1, sy:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:445, y:33, sx:1, sy:1};
lvl.tiles.keks5 = {tip:"keks", item:"weapon_hook", invis:true, t1x:300, t1y:10, t2x:350, t2y:20, soft:true};
lvl.tiles.ljestve4 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:600, t1y:200, t2x:620, t2y:410};
lvl.tiles.ljestve3 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:20, t1y:200, t2x:40, t2y:410};
lvl.tiles.led2 = {tip:"led", t1x:10, t1y:410, t2x:630, t2y:420, soft:true};
lvl.tiles.led1 = {tip:"led", t1x:10, t1y:200, t2x:630, t2y:210, soft:true};
var lvl = ((_level0.levelBuffer.single_level39 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 55;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_laser:1, uspori_lopte:1, dinamit:1};
lvl.igraci = {p1_x:310, p1_y:410, p1_weapon:1};
lvl.lopte.normalna1 = {id:5, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:133, y:114, sx:1, sy:1};
lvl.tiles.keks4 = {tip:"keks", item:"shield_plain", invis:true, t1x:590, t1y:10, t2x:630, t2y:20, soft:true};
lvl.tiles.zid3 = {tip:"zid", t1x:590, t1y:70, t2x:630, t2y:80, soft:true};
lvl.tiles.ljestve2 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:600, t1y:70, t2x:620, t2y:410};
lvl.tiles.led1 = {tip:"led", t1x:10, t1y:410, t2x:630, t2y:420, soft:true};
var lvl = ((_level0.levelBuffer.single_level40 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 55;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_laser:1, uspori_lopte:1, dinamit:1};
lvl.igraci = {p1_x:310, p1_y:420, p1_weapon:1};
lvl.lopte.kisobran3 = {id:2, tip:"kisobran", boja:"zuta", splitway:"double", battleId:0, ghostBall:false, x:569, y:77, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran2 = {id:2, tip:"kisobran", boja:"zuta", splitway:"double", battleId:0, ghostBall:false, x:472, y:178, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran1 = {id:2, tip:"kisobran", boja:"zuta", splitway:"double", battleId:0, ghostBall:false, x:397, y:57, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:227, y:70, sx:1, sy:1};
lvl.tiles.keks6 = {tip:"keks", item:"null", invis:false, t1x:330, t1y:20, t2x:340, t2y:170, soft:true};
lvl.tiles.zid5 = {tip:"zid", t1x:130, t1y:20, t2x:140, t2y:170, soft:true};
lvl.tiles.traka4 = {tip:"traka", brz:60, t1x:270, t1y:290, t2x:390, t2y:300, soft:true};
lvl.tiles.zid3 = {tip:"zid", t1x:390, t1y:290, t2x:520, t2y:300, soft:true};
lvl.tiles.ljestve2 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:500, t1y:290, t2x:520, t2y:420};
lvl.tiles.zid1 = {tip:"zid", t1x:150, t1y:160, t2x:320, t2y:170, soft:true};
var lvl = ((_level0.levelBuffer.single_level41 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 55;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_laser:1, uspori_lopte:1, dinamit:1};
lvl.igraci = {p1_x:300, p1_y:290, p1_weapon:1};
lvl.lopte.normalna2 = {id:4, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:501, y:137, sx:1, sy:1};
lvl.lopte.normalna1 = {id:5, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:94, y:118, sx:1, sy:1};
lvl.tiles.zid8 = {tip:"zid", t1x:490, t1y:200, t2x:540, t2y:210, soft:true};
lvl.tiles.zid7 = {tip:"zid", t1x:420, t1y:200, t2x:470, t2y:210, soft:true};
lvl.tiles.zid6 = {tip:"zid", t1x:250, t1y:120, t2x:300, t2y:130, soft:true};
lvl.tiles.zid5 = {tip:"zid", t1x:180, t1y:120, t2x:230, t2y:130, soft:true};
lvl.tiles.keks4 = {tip:"keks", item:"zvijezda", invis:true, t1x:510, t1y:10, t2x:630, t2y:20, soft:true};
lvl.tiles.traka3 = {tip:"traka", brz:-60, t1x:40, t1y:30, t2x:590, t2y:40, soft:true};
lvl.tiles.zid2 = {tip:"zid", t1x:330, t1y:290, t2x:380, t2y:300, soft:true};
lvl.tiles.zid1 = {tip:"zid", t1x:260, t1y:290, t2x:310, t2y:300, soft:true};
var lvl = ((_level0.levelBuffer.single_level42 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 45;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_laser:1, vrijeme:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:320, p1_y:420, p1_weapon:1};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:284, y:207, sx:1, sy:1};
lvl.lopte.normalna2 = {id:4, tip:"normalna", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:167, y:127, sx:-1, sy:1};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:477, y:127, sx:1, sy:1};
lvl.tiles.keks5 = {tip:"keks", item:"bodovi3", invis:true, t1x:310, t1y:120, t2x:340, t2y:130, soft:true};
lvl.tiles.zid4 = {tip:"zid", t1x:520, t1y:230, t2x:530, t2y:240, soft:true};
lvl.tiles.zid3 = {tip:"zid", t1x:110, t1y:230, t2x:120, t2y:240, soft:true};
lvl.tiles.zid2 = {tip:"zid", t1x:310, t1y:110, t2x:340, t2y:120, soft:true};
lvl.tiles.keks1 = {tip:"keks", item:"null", invis:false, t1x:300, t1y:300, t2x:350, t2y:310, soft:true};
var lvl = ((_level0.levelBuffer.single_level43 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 45;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, vrijeme:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:320, p1_y:420, p1_weapon:1};
lvl.lopte.normalna7 = {id:4, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:357, y:184, sx:1, sy:1};
lvl.lopte.normalna6 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:567, y:254, sx:0, sy:1};
lvl.lopte.normalna5 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:507, y:254, sx:0, sy:1};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:447, y:254, sx:0, sy:1};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:217, y:254, sx:0, sy:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:157, y:254, sx:0, sy:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:97, y:254, sx:0, sy:1};
var lvl = ((_level0.levelBuffer.single_level44 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 85;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_laser:1, freeze:1, vrijeme:1, uspori_lopte:2, shield_plain:2, shield_invincible:1, bodovi3:2};
lvl.igraci = {p1_x:40, p1_y:420, p1_weapon:1};
lvl.lopte.normalna8 = {id:3, tip:"normalna", boja:"roza", splitway:"double", battleId:0, ghostBall:false, x:57, y:87, sx:1, sy:1};
lvl.lopte.normalna7 = {id:3, tip:"normalna", boja:"roza", splitway:"double", battleId:0, ghostBall:false, x:103, y:47, sx:1, sy:1};
lvl.lopte.normalna6 = {id:3, tip:"normalna", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:41, y:37, sx:1, sy:1};
lvl.lopte.normalna5 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:147, y:293, sx:1, sy:1};
lvl.lopte.normalna4 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:258, y:247, sx:1, sy:1};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:333, y:217, sx:1, sy:1};
lvl.lopte.normalna2 = {id:4, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:429, y:160, sx:1, sy:1};
lvl.lopte.normalna1 = {id:5, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:561, y:80, sx:1, sy:1};
lvl.tiles.switch6 = {tip:"switch", color:"zuta", t1x:130, t1y:10, t2x:140, t2y:130, soft:true};
lvl.tiles.switch5 = {tip:"switch", color:"zuta", t1x:10, t1y:120, t2x:130, t2y:130, soft:true};
lvl.tiles.switch4 = {tip:"switch", color:"crvena", t1x:230, t1y:10, t2x:240, t2y:420, soft:true};
lvl.tiles.switch3 = {tip:"switch", color:"ljubicasta", t1x:290, t1y:10, t2x:300, t2y:420, soft:true};
lvl.tiles.switch2 = {tip:"switch", color:"plava", t1x:370, t1y:10, t2x:380, t2y:420, soft:true};
lvl.tiles.switch1 = {tip:"switch", color:"zelena", t1x:480, t1y:10, t2x:490, t2y:420, soft:true};
var lvl = ((_level0.levelBuffer.single_level45 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 25;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:1, weapon_double:1, vrijeme:0, uspori_lopte:1, shield_invincible:1};
lvl.igraci = {p1_x:560, p1_y:420, p1_weapon:1};
lvl.lopte.normalna5 = {id:1, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:202, y:160, sx:1, sy:1};
lvl.lopte.normalna4 = {id:4, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:401, y:285, sx:1, sy:1};
lvl.lopte.normalna3 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:72, y:340, sx:1, sy:1};
lvl.lopte.normalna2 = {id:1, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:302, y:79, sx:1, sy:1};
lvl.lopte.normalna1 = {id:1, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:492, y:340, sx:1, sy:1};
lvl.tiles.keks35 = {tip:"keks", item:"shield_plain", invis:false, t1x:190, t1y:180, t2x:210, t2y:190, soft:true};
lvl.tiles.tramboline34 = {tip:"tramboline", t1x:90, t1y:350, t2x:140, t2y:360, soft:true};
lvl.tiles.switch33 = {tip:"switch", color:"zuta", t1x:180, t1y:150, t2x:190, t2y:190, soft:true};
lvl.tiles.keks32 = {tip:"keks", item:"vrijeme", invis:false, t1x:190, t1y:170, t2x:210, t2y:180, soft:true};
lvl.tiles.switch31 = {tip:"switch", color:"zuta", t1x:180, t1y:260, t2x:210, t2y:270, soft:true};
lvl.tiles.ljestve30 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:100, t1y:140, t2x:120, t2y:350};
lvl.tiles.switch29 = {tip:"switch", color:"zuta", t1x:90, t1y:140, t2x:240, t2y:150, soft:true};
lvl.tiles.ljestve28 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:220, t1y:140, t2x:240, t2y:220};
lvl.tiles.switch27 = {tip:"switch", color:"zuta", t1x:210, t1y:150, t2x:220, t2y:350, soft:true};
lvl.tiles.switch26 = {tip:"switch", color:"zuta", t1x:220, t1y:220, t2x:500, t2y:230, soft:true};
lvl.tiles.switch25 = {tip:"switch", color:"zuta", t1x:310, t1y:70, t2x:320, t2y:100, soft:true};
lvl.tiles.switch24 = {tip:"switch", color:"zuta", t1x:280, t1y:70, t2x:290, t2y:160, soft:true};
lvl.tiles.keks23 = {tip:"keks", item:"vrijeme", invis:false, t1x:290, t1y:90, t2x:310, t2y:100, soft:true};
lvl.tiles.switch22 = {tip:"switch", color:"zuta", t1x:80, t1y:70, t2x:90, t2y:360, soft:true};
lvl.tiles.traka21 = {tip:"traka", brz:60, t1x:290, t1y:150, t2x:430, t2y:160, soft:true};
lvl.tiles.switch20 = {tip:"switch", color:"zelena", t1x:430, t1y:150, t2x:470, t2y:160, soft:true};
lvl.tiles.switch19 = {tip:"switch", color:"plava", t1x:500, t1y:70, t2x:510, t2y:150, soft:true};
lvl.tiles.keks18 = {tip:"keks", item:"bodovi3", invis:true, t1x:520, t1y:250, t2x:550, t2y:260, soft:true};
lvl.tiles.switch17 = {tip:"switch", color:"zuta", t1x:50, t1y:330, t2x:60, t2y:360, soft:true};
lvl.tiles.keks16 = {tip:"keks", item:"vrijeme", invis:false, t1x:60, t1y:350, t2x:80, t2y:360, soft:true};
lvl.tiles.switch15 = {tip:"switch", color:"zuta", t1x:50, t1y:320, t2x:80, t2y:330, soft:true};
lvl.tiles.switch14 = {tip:"switch", color:"zuta", t1x:500, t1y:150, t2x:510, t2y:360, soft:true};
lvl.tiles.keks13 = {tip:"keks", item:"vrijeme", invis:false, t1x:480, t1y:350, t2x:500, t2y:360, soft:true};
lvl.tiles.switch12 = {tip:"switch", color:"zuta", t1x:470, t1y:320, t2x:500, t2y:330, soft:true};
lvl.tiles.ljestve11 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:20, t1y:60, t2x:40, t2y:420};
lvl.tiles.switch10 = {tip:"switch", color:"zuta", t1x:10, t1y:60, t2x:630, t2y:70, soft:true};
lvl.tiles.ljestve9 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:600, t1y:60, t2x:620, t2y:140};
lvl.tiles.ljestve8 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:600, t1y:330, t2x:620, t2y:420};
lvl.tiles.switch7 = {tip:"switch", color:"zuta", t1x:580, t1y:140, t2x:630, t2y:150, soft:true};
lvl.tiles.tramboline6 = {tip:"tramboline", t1x:510, t1y:240, t2x:560, t2y:250, soft:true};
lvl.tiles.tramboline5 = {tip:"tramboline", t1x:580, t1y:330, t2x:630, t2y:340, soft:true};
lvl.tiles.switch4 = {tip:"switch", color:"crvena", t1x:500, t1y:360, t2x:510, t2y:420, soft:true};
lvl.tiles.switch3 = {tip:"switch", color:"zuta", t1x:470, t1y:330, t2x:480, t2y:350, soft:true};
lvl.tiles.switch2 = {tip:"switch", color:"zuta", t1x:470, t1y:150, t2x:500, t2y:160, soft:true};
lvl.tiles.switch1 = {tip:"switch", color:"zuta", t1x:140, t1y:350, t2x:480, t2y:360, soft:true};
var lvl = ((_level0.levelBuffer.single_level46 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 100;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_laser:1, freeze:1, vrijeme:1, uspori_lopte:1, shield_plain:1, bodovi3:2};
lvl.igraci = {p1_x:560, p1_y:420, p1_weapon:1};
lvl.lopte.normalna5 = {id:4, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:354, y:112, sx:1, sy:1};
lvl.lopte.normalna4 = {id:4, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:316, y:112, sx:1, sy:1};
lvl.lopte.normalna3 = {id:5, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:475, y:99, sx:1, sy:1};
lvl.lopte.normalna2 = {id:4, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:335, y:69, sx:1, sy:1};
lvl.lopte.normalna1 = {id:5, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:195, y:99, sx:1, sy:1};
lvl.tiles.keks8 = {tip:"keks", item:"weapon_hook", invis:false, t1x:40, t1y:10, t2x:90, t2y:20, soft:true};
lvl.tiles.keks7 = {tip:"keks", item:"vrijeme", invis:false, t1x:410, t1y:240, t2x:540, t2y:250, soft:true};
lvl.tiles.keks6 = {tip:"keks", item:"null", invis:false, t1x:270, t1y:240, t2x:400, t2y:250, soft:true};
lvl.tiles.keks5 = {tip:"keks", item:"null", invis:false, t1x:130, t1y:240, t2x:260, t2y:250, soft:true};
lvl.tiles.zid4 = {tip:"zid", t1x:540, t1y:10, t2x:550, t2y:250, soft:true};
lvl.tiles.zid3 = {tip:"zid", t1x:400, t1y:10, t2x:410, t2y:250, soft:true};
lvl.tiles.zid2 = {tip:"zid", t1x:260, t1y:10, t2x:270, t2y:250, soft:true};
lvl.tiles.zid1 = {tip:"zid", t1x:120, t1y:10, t2x:130, t2y:250, soft:true};
var lvl = ((_level0.levelBuffer.single_level47 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 55;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_laser:1, dinamit:3, shield_plain:1, bodovi3:1};
lvl.igraci = {p1_x:320, p1_y:120, p1_weapon:1};
lvl.lopte.normalna3 = {id:4, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:120, y:64, sx:1, sy:1};
lvl.lopte.normalna2 = {id:4, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:520, y:64, sx:1, sy:1};
lvl.lopte.normalna1 = {id:5, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:329, y:196, sx:1, sy:1};
lvl.lopte.kisobran1 = {id:1, tip:"kisobran", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:325, y:24, sx:3, sy:3, rotacija:1};
lvl.tiles.switch16 = {tip:"switch", color:"zelena", t1x:10, t1y:120, t2x:230, t2y:130, soft:true};
lvl.tiles.switch15 = {tip:"switch", color:"zelena", t1x:410, t1y:120, t2x:630, t2y:130, soft:true};
lvl.tiles.zid14 = {tip:"zid", t1x:620, t1y:320, t2x:630, t2y:330, soft:true};
lvl.tiles.zid13 = {tip:"zid", t1x:10, t1y:320, t2x:20, t2y:330, soft:true};
lvl.tiles.zid12 = {tip:"zid", t1x:210, t1y:320, t2x:240, t2y:330, soft:true};
lvl.tiles.zid11 = {tip:"zid", t1x:140, t1y:320, t2x:170, t2y:330, soft:true};
lvl.tiles.zid10 = {tip:"zid", t1x:70, t1y:320, t2x:100, t2y:330, soft:true};
lvl.tiles.zid9 = {tip:"zid", t1x:540, t1y:320, t2x:570, t2y:330, soft:true};
lvl.tiles.zid8 = {tip:"zid", t1x:470, t1y:320, t2x:500, t2y:330, soft:true};
lvl.tiles.zid7 = {tip:"zid", t1x:400, t1y:320, t2x:430, t2y:330, soft:true};
lvl.tiles.zid6 = {tip:"zid", t1x:400, t1y:10, t2x:410, t2y:320, soft:true};
lvl.tiles.zid5 = {tip:"zid", t1x:230, t1y:10, t2x:240, t2y:320, soft:true};
lvl.tiles.switch4 = {tip:"switch", color:"zuta", t1x:240, t1y:120, t2x:400, t2y:130, soft:true};
lvl.tiles.zid3 = {tip:"zid", t1x:340, t1y:10, t2x:350, t2y:50, soft:true};
lvl.tiles.zid2 = {tip:"zid", t1x:300, t1y:10, t2x:310, t2y:50, soft:true};
lvl.tiles.keks1 = {tip:"keks", item:"shield_plain", invis:false, t1x:310, t1y:40, t2x:340, t2y:50, soft:true};
var lvl = ((_level0.levelBuffer.single_level48 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 80;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, freeze:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:110, p1_y:420, p1_weapon:1};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:511, y:302, sx:1, sy:1};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:288, y:318, sx:1, sy:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:368, y:268, sx:1, sy:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:208, y:268, sx:1, sy:1};
lvl.lopte.kontra3 = {id:3, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:560, y:44, sx:1, sy:1};
lvl.lopte.kontra2 = {id:3, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:300, y:44, sx:1, sy:1};
lvl.lopte.kontra1 = {id:3, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:50, y:44, sx:1, sy:1};
lvl.tiles.zid7 = {tip:"zid", t1x:540, t1y:210, t2x:630, t2y:250, soft:true};
lvl.tiles.switch6 = {tip:"switch", color:"crvena", t1x:410, t1y:230, t2x:420, t2y:380, soft:true};
lvl.tiles.zid5 = {tip:"zid", t1x:180, t1y:230, t2x:410, t2y:240, soft:true};
lvl.tiles.ljestve4 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:140, t1y:220, t2x:160, t2y:420};
lvl.tiles.zid3 = {tip:"zid", t1x:10, t1y:220, t2x:40, t2y:230, soft:true};
lvl.tiles.keks2 = {tip:"keks", item:"null", invis:false, t1x:130, t1y:220, t2x:450, t2y:230, soft:true};
lvl.tiles.switch1 = {tip:"switch", color:"crvena", t1x:170, t1y:230, t2x:180, t2y:380, soft:true};
var lvl = ((_level0.levelBuffer.single_level49 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 58;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_hook:1, dinamit:1, shield_plain:1, extra_life:1};
lvl.igraci = {p1_x:40, p1_y:220, p1_weapon:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:287, y:83, sx:-1, sy:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:357, y:83, sx:1, sy:1};
lvl.tiles.zid21 = {tip:"zid", t1x:550, t1y:230, t2x:560, t2y:400, soft:true};
lvl.tiles.zid20 = {tip:"zid", t1x:520, t1y:230, t2x:530, t2y:400, soft:true};
lvl.tiles.zid19 = {tip:"zid", t1x:520, t1y:400, t2x:560, t2y:410, soft:true};
lvl.tiles.zid18 = {tip:"zid", t1x:450, t1y:230, t2x:460, t2y:400, soft:true};
lvl.tiles.zid17 = {tip:"zid", t1x:420, t1y:230, t2x:430, t2y:400, soft:true};
lvl.tiles.zid16 = {tip:"zid", t1x:420, t1y:400, t2x:460, t2y:410, soft:true};
lvl.tiles.zid15 = {tip:"zid", t1x:330, t1y:230, t2x:340, t2y:400, soft:true};
lvl.tiles.zid14 = {tip:"zid", t1x:300, t1y:230, t2x:310, t2y:400, soft:true};
lvl.tiles.zid13 = {tip:"zid", t1x:300, t1y:400, t2x:340, t2y:410, soft:true};
lvl.tiles.zid12 = {tip:"zid", t1x:210, t1y:230, t2x:220, t2y:400, soft:true};
lvl.tiles.zid11 = {tip:"zid", t1x:180, t1y:230, t2x:190, t2y:400, soft:true};
lvl.tiles.zid10 = {tip:"zid", t1x:180, t1y:400, t2x:220, t2y:410, soft:true};
lvl.tiles.zid9 = {tip:"zid", t1x:110, t1y:230, t2x:120, t2y:400, soft:true};
lvl.tiles.zid8 = {tip:"zid", t1x:80, t1y:230, t2x:90, t2y:400, soft:true};
lvl.tiles.zid7 = {tip:"zid", t1x:80, t1y:400, t2x:120, t2y:410, soft:true};
lvl.tiles.traka6 = {tip:"traka", brz:-60, t1x:330, t1y:220, t2x:430, t2y:230, soft:true};
lvl.tiles.traka5 = {tip:"traka", brz:-60, t1x:450, t1y:220, t2x:530, t2y:230, soft:true};
lvl.tiles.traka4 = {tip:"traka", brz:-60, t1x:550, t1y:220, t2x:630, t2y:230, soft:true};
lvl.tiles.traka3 = {tip:"traka", brz:60, t1x:210, t1y:220, t2x:310, t2y:230, soft:true};
lvl.tiles.traka2 = {tip:"traka", brz:60, t1x:110, t1y:220, t2x:190, t2y:230, soft:true};
lvl.tiles.traka1 = {tip:"traka", brz:60, t1x:10, t1y:220, t2x:90, t2y:230, soft:true};
var lvl = ((_level0.levelBuffer.single_level50 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 130;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, freeze:1, vrijeme:1, uspori_lopte:1, dinamit:4, shield_plain:2, extra_life:1};
lvl.igraci = {p1_x:310, p1_y:420, p1_weapon:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:258, y:179, sx:1, sy:1};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:55, y:52, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran1 = {id:4, tip:"kisobran", boja:"plava", splitway:"double", battleId:0, ghostBall:false, x:582, y:54, sx:3, sy:3, rotacija:1};
lvl.tiles.zid14 = {tip:"zid", t1x:440, t1y:180, t2x:450, t2y:190, soft:true};
lvl.tiles.zid13 = {tip:"zid", t1x:10, t1y:90, t2x:100, t2y:100, soft:true};
lvl.tiles.switch12 = {tip:"switch", color:"narandjasta", t1x:90, t1y:10, t2x:100, t2y:90, soft:true};
lvl.tiles.zid11 = {tip:"zid", t1x:80, t1y:170, t2x:90, t2y:180, soft:true};
lvl.tiles.zid10 = {tip:"zid", t1x:250, t1y:110, t2x:260, t2y:120, soft:true};
lvl.tiles.zid9 = {tip:"zid", t1x:520, t1y:230, t2x:530, t2y:240, soft:true};
lvl.tiles.zid8 = {tip:"zid", t1x:380, t1y:130, t2x:390, t2y:140, soft:true};
lvl.tiles.zid7 = {tip:"zid", t1x:180, t1y:210, t2x:190, t2y:220, soft:true};
lvl.tiles.zid6 = {tip:"zid", t1x:100, t1y:270, t2x:110, t2y:280, soft:true};
lvl.tiles.zid5 = {tip:"zid", t1x:220, t1y:320, t2x:230, t2y:330, soft:true};
lvl.tiles.zid4 = {tip:"zid", t1x:310, t1y:290, t2x:320, t2y:300, soft:true};
lvl.tiles.zid3 = {tip:"zid", t1x:430, t1y:330, t2x:440, t2y:340, soft:true};
lvl.tiles.zid2 = {tip:"zid", t1x:530, t1y:100, t2x:630, t2y:110, soft:true};
lvl.tiles.switch1 = {tip:"switch", color:"narandjasta", t1x:520, t1y:10, t2x:530, t2y:110, soft:true};
var lvl = ((_level0.levelBuffer.single_level51 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 50;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, vrijeme:1, uspori_lopte:1, speed:1, shield_invincible:1};
lvl.igraci = {p1_x:310, p1_y:420, p1_weapon:1};
lvl.lopte.normalna16 = {id:1, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:605, y:24, sx:1, sy:1, metalna:false};
lvl.lopte.normalna15 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:562, y:100, sx:0, sy:1, metalna:true};
lvl.lopte.normalna14 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:514, y:140, sx:0, sy:1, metalna:true};
lvl.lopte.normalna13 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:467, y:190, sx:0, sy:1, metalna:true};
lvl.lopte.normalna12 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:419, y:141, sx:0, sy:1, metalna:true};
lvl.lopte.normalna11 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:372, y:101, sx:0, sy:1, metalna:true};
lvl.lopte.normalna10 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:312, y:190, sx:0, sy:1, metalna:true};
lvl.lopte.normalna9 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:264, y:140, sx:0, sy:1, metalna:true};
lvl.lopte.normalna8 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:217, y:100, sx:0, sy:1, metalna:true};
lvl.lopte.normalna7 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:169, y:141, sx:0, sy:1, metalna:true};
lvl.lopte.normalna6 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:122, y:191, sx:0, sy:1, metalna:true};
lvl.lopte.normalna5 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:539, y:278, sx:1, sy:1, metalna:true};
lvl.lopte.normalna4 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:319, y:278, sx:1, sy:1, metalna:true};
lvl.lopte.normalna3 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:99, y:278, sx:1, sy:1, metalna:true};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"roza", splitway:"double", battleId:0, ghostBall:false, x:426, y:267, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:1, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:35, y:24, sx:1, sy:1, metalna:false};
lvl.tiles.keks7 = {tip:"keks", item:"null", invis:false, t1x:10, t1y:40, t2x:60, t2y:50, soft:true};
lvl.tiles.zid6 = {tip:"zid", t1x:50, t1y:10, t2x:60, t2y:40, soft:true};
lvl.tiles.switch5 = {tip:"switch", color:"plava", t1x:10, t1y:50, t2x:60, t2y:60, soft:true};
lvl.tiles.zid4 = {tip:"zid", t1x:580, t1y:10, t2x:590, t2y:40, soft:true};
lvl.tiles.keks3 = {tip:"keks", item:"null", invis:false, t1x:580, t1y:40, t2x:630, t2y:50, soft:true};
lvl.tiles.ljestve2 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:20, t1y:200, t2x:40, t2y:420};
lvl.tiles.zid1 = {tip:"zid", t1x:10, t1y:200, t2x:630, t2y:210, soft:false};
var lvl = ((_level0.levelBuffer.single_level52 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 75;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, vrijeme:1, uspori_lopte:1, speed:1, shield_invincible:1};
lvl.igraci = {p1_x:500, p1_y:420, p1_weapon:1};
lvl.lopte.kisobran4 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:320, y:206, sx:-3, sy:-3, rotacija:1};
lvl.lopte.kisobran3 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:320, y:150, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:146, y:124, sx:-3, sy:-3, rotacija:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:546, y:154, sx:1, sy:1, metalna:false};
lvl.lopte.kontra1 = {id:3, tip:"kontra", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:322, y:83, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:146, y:174, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:496, y:154, sx:1, sy:1, metalna:false};
lvl.tiles.switch5 = {tip:"switch", color:"crvena", t1x:370, t1y:10, t2x:380, t2y:280, soft:true};
lvl.tiles.ljestve4 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:230, t1y:280, t2x:250, t2y:420};
lvl.tiles.zid3 = {tip:"zid", t1x:10, t1y:280, t2x:630, t2y:290, soft:true};
lvl.tiles.switch2 = {tip:"switch", color:"zuta", t1x:260, t1y:10, t2x:270, t2y:280, soft:true};
lvl.tiles.ljestve1 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:390, t1y:280, t2x:410, t2y:420};
var lvl = ((_level0.levelBuffer.single_level53 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 55;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, weapon_laser:1, uspori_lopte:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:450, p1_y:420, p1_weapon:1};
lvl.lopte.kontra2 = {id:3, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:489, y:71, sx:1, sy:1, metalna:false};
lvl.lopte.kontra1 = {id:3, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:429, y:71, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran1 = {id:4, tip:"kisobran", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:340, y:87, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:493, y:296, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:37, y:297, sx:1, sy:1, metalna:false};
lvl.tiles.keks6 = {tip:"keks", item:"shield_plain", invis:false, t1x:10, t1y:10, t2x:60, t2y:20, soft:true};
lvl.tiles.keks5 = {tip:"keks", item:"dinamit", invis:false, t1x:580, t1y:10, t2x:630, t2y:20, soft:true};
lvl.tiles.zid4 = {tip:"zid", t1x:10, t1y:270, t2x:230, t2y:280, soft:true};
lvl.tiles.zid3 = {tip:"zid", t1x:410, t1y:270, t2x:630, t2y:280, soft:true};
lvl.tiles.ljestve2 = {tip:"ljestve", p1ok:1, p2ok:1, t1x:310, t1y:340, t2x:330, t2y:420};
lvl.tiles.tramboline1 = {tip:"tramboline", t1x:280, t1y:340, t2x:360, t2y:350, soft:true};
var lvl = ((_level0.levelBuffer.single_level54 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 40;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_laser:1, freeze:1, uspori_lopte:1, dinamit:2, shield_plain:1, bodovi2:1, bodovi3:3};
lvl.igraci = {p1_x:30, p1_y:420, p1_weapon:1};
lvl.lopte.normalna9 = {id:2, tip:"normalna", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:549, y:307, sx:0, sy:1, metalna:false};
lvl.lopte.normalna8 = {id:2, tip:"normalna", boja:"zuta", splitway:"double", battleId:0, ghostBall:false, x:496, y:307, sx:0, sy:1, metalna:false};
lvl.lopte.normalna7 = {id:2, tip:"normalna", boja:"zelena", splitway:"double", battleId:0, ghostBall:false, x:444, y:307, sx:0, sy:1, metalna:false};
lvl.lopte.normalna6 = {id:2, tip:"normalna", boja:"roza", splitway:"double", battleId:0, ghostBall:false, x:391, y:307, sx:0, sy:1, metalna:false};
lvl.lopte.normalna5 = {id:2, tip:"normalna", boja:"plavozelena", splitway:"double", battleId:0, ghostBall:false, x:339, y:307, sx:0, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:2, tip:"normalna", boja:"plava", splitway:"double", battleId:0, ghostBall:false, x:286, y:307, sx:0, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:2, tip:"normalna", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:234, y:307, sx:0, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:181, y:307, sx:0, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:129, y:307, sx:0, sy:1, metalna:false};
lvl.tiles.keks1 = {tip:"keks", item:"speed", invis:true, t1x:10, t1y:200, t2x:60, t2y:210, soft:true};
var lvl = ((_level0.levelBuffer.single_level55 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 50;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_hook:3, speed:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi2:1, bodovi3:2};
lvl.igraci = {p1_x:510, p1_y:420, p1_weapon:1};
lvl.lopte.kisobran6 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:458, y:143, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran5 = {id:3, tip:"kisobran", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:184, y:74, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran4 = {id:3, tip:"kisobran", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:553, y:80, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran3 = {id:3, tip:"kisobran", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:238, y:132, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:373, y:67, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:83, y:62, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:139, y:206, sx:0, sy:1, metalna:true};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:419, y:206, sx:0, sy:1, metalna:true};
lvl.tiles.ljestve8 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:20, t1y:180, t2x:40, t2y:340};
lvl.tiles.zid7 = {tip:"zid", invis:false, t1x:10, t1y:180, t2x:630, t2y:190, soft:true};
lvl.tiles.zid6 = {tip:"zid", invis:false, t1x:10, t1y:340, t2x:70, t2y:350, soft:true};
lvl.tiles.zid5 = {tip:"zid", invis:true, t1x:70, t1y:340, t2x:210, t2y:350, soft:true};
lvl.tiles.zid4 = {tip:"zid", invis:false, t1x:210, t1y:340, t2x:350, t2y:350, soft:true};
lvl.tiles.zid3 = {tip:"zid", invis:true, t1x:350, t1y:340, t2x:490, t2y:350, soft:true};
lvl.tiles.ljestve2 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:560, t1y:340, t2x:580, t2y:420};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:490, t1y:340, t2x:630, t2y:350, soft:true};
var lvl = ((_level0.levelBuffer.single_level56 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 55;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, dinamit:1, shield_plain:1, bodovi3:1};
lvl.igraci = {p1_x:30, p1_y:420, p1_weapon:1};
lvl.lopte.normalna11 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:125, y:42, sx:1, sy:1, metalna:false};
lvl.lopte.normalna10 = {id:2, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:308, y:219, sx:1, sy:1, metalna:false};
lvl.lopte.normalna9 = {id:2, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:520, y:36, sx:0, sy:1, metalna:false};
lvl.lopte.normalna8 = {id:2, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:410, y:36, sx:0, sy:1, metalna:false};
lvl.lopte.normalna7 = {id:2, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:228, y:244, sx:1, sy:1, metalna:false};
lvl.lopte.normalna6 = {id:1, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:296, y:20, sx:1, sy:1, metalna:false};
lvl.lopte.normalna5 = {id:2, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:89, y:244, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:272, y:91, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:196, y:110, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:63, y:77, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:158, y:216, sx:1, sy:1, metalna:false};
lvl.tiles.zid24 = {tip:"zid", invis:true, t1x:250, t1y:180, t2x:330, t2y:190, soft:true};
lvl.tiles.zid23 = {tip:"zid", invis:true, t1x:190, t1y:180, t2x:250, t2y:190, soft:true};
lvl.tiles.zid22 = {tip:"zid", invis:true, t1x:130, t1y:180, t2x:190, t2y:190, soft:true};
lvl.tiles.zid21 = {tip:"zid", invis:true, t1x:70, t1y:180, t2x:130, t2y:190, soft:true};
lvl.tiles.zid20 = {tip:"zid", invis:true, t1x:10, t1y:180, t2x:70, t2y:190, soft:true};
lvl.tiles.ljestve19 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:20, t1y:180, t2x:40, t2y:340};
lvl.tiles.zid18 = {tip:"zid", invis:true, t1x:330, t1y:10, t2x:340, t2y:190, soft:true};
lvl.tiles.zid17 = {tip:"zid", invis:true, t1x:10, t1y:340, t2x:90, t2y:350, soft:true};
lvl.tiles.zid16 = {tip:"zid", invis:true, t1x:90, t1y:340, t2x:150, t2y:350, soft:true};
lvl.tiles.zid15 = {tip:"zid", invis:true, t1x:150, t1y:340, t2x:210, t2y:350, soft:true};
lvl.tiles.zid14 = {tip:"zid", invis:true, t1x:210, t1y:340, t2x:270, t2y:350, soft:true};
lvl.tiles.zid13 = {tip:"zid", invis:true, t1x:270, t1y:340, t2x:330, t2y:350, soft:true};
lvl.tiles.zid12 = {tip:"zid", invis:true, t1x:330, t1y:340, t2x:390, t2y:350, soft:true};
lvl.tiles.zid11 = {tip:"zid", invis:true, t1x:390, t1y:340, t2x:450, t2y:350, soft:true};
lvl.tiles.ljestve10 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:360, t1y:180, t2x:380, t2y:340};
lvl.tiles.zid9 = {tip:"zid", invis:false, t1x:450, t1y:190, t2x:460, t2y:340, soft:true};
lvl.tiles.zid8 = {tip:"zid", invis:true, t1x:340, t1y:180, t2x:480, t2y:190, soft:true};
lvl.tiles.zid7 = {tip:"zid", invis:false, t1x:450, t1y:340, t2x:480, t2y:350, soft:true};
lvl.tiles.ljestve6 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:600, t1y:150, t2x:620, t2y:420};
lvl.tiles.zid5 = {tip:"zid", invis:true, t1x:480, t1y:340, t2x:580, t2y:350, soft:true};
lvl.tiles.zid4 = {tip:"zid", invis:true, t1x:270, t1y:10, t2x:280, t2y:50, soft:true};
lvl.tiles.keks3 = {tip:"keks", item:"zvijezda", invis:false, t1x:280, t1y:40, t2x:330, t2y:50, soft:true};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:580, t1y:150, t2x:630, t2y:160, soft:true};
lvl.tiles.ljestve1 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:460, t1y:180, t2x:480, t2y:340};
var lvl = ((_level0.levelBuffer.single_level57 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 80;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, freeze:1, vrijeme:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, bodovi3:1};
lvl.igraci = {p1_x:310, p1_y:420, p1_weapon:1};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:178, y:147, sx:-3, sy:-3, rotacija:1};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:231, y:155, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna3 = {id:4, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:406, y:116, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:4, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:265, y:89, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:113, y:103, sx:1, sy:1, metalna:false};
lvl.tiles.keks7 = {tip:"keks", item:"weapon_double", invis:true, t1x:280, t1y:280, t2x:330, t2y:290, soft:true};
lvl.tiles.traka6 = {tip:"traka", brz:60, invis:false, t1x:320, t1y:270, t2x:540, t2y:280, soft:true};
lvl.tiles.traka5 = {tip:"traka", brz:-60, invis:false, t1x:100, t1y:270, t2x:320, t2y:280, soft:true};
lvl.tiles.ljestve4 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:590, t1y:340, t2x:610, t2y:420};
lvl.tiles.tramboline3 = {tip:"tramboline", invis:false, t1x:570, t1y:340, t2x:630, t2y:350, soft:true};
lvl.tiles.ljestve2 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:30, t1y:340, t2x:50, t2y:420};
lvl.tiles.tramboline1 = {tip:"tramboline", invis:false, t1x:10, t1y:340, t2x:70, t2y:350, soft:true};
var lvl = ((_level0.levelBuffer.single_level58 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 150;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, weapon_laser:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:2, bodovi3:1};
lvl.igraci = {p1_x:310, p1_y:410, p1_weapon:1};
lvl.lopte.normalna5 = {id:3, tip:"normalna", boja:"zelena", splitway:"double", battleId:0, ghostBall:false, x:466, y:46, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:286, y:48, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"zelena", splitway:"double", battleId:0, ghostBall:false, x:76, y:46, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:230, y:173, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:430, y:173, sx:1, sy:1, metalna:false};
lvl.tiles.switch4 = {tip:"switch", color:"narandjasta", invis:false, t1x:10, t1y:110, t2x:630, t2y:120, soft:true};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:570, t1y:410, t2x:630, t2y:420, soft:false};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:10, t1y:410, t2x:70, t2y:420, soft:false};
lvl.tiles.led1 = {tip:"led", invis:false, t1x:70, t1y:410, t2x:570, t2y:420, soft:false};
var lvl = ((_level0.levelBuffer.single_level59 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 80;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_hook:1, freeze:1, speed:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi3:1};
lvl.igraci = {p1_x:50, p1_y:110, p1_weapon:1};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:221, y:307, sx:3, sy:-3, rotacija:1};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:439, y:267, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna11 = {id:1, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:367, y:130, sx:1, sy:1, metalna:false};
lvl.lopte.normalna10 = {id:1, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:239, y:130, sx:1, sy:1, metalna:false};
lvl.lopte.normalna9 = {id:1, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:25, y:183, sx:1, sy:1, metalna:false};
lvl.lopte.normalna8 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:593, y:83, sx:0, sy:1, metalna:false};
lvl.lopte.normalna7 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:489, y:43, sx:0, sy:1, metalna:true};
lvl.lopte.normalna6 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:409, y:93, sx:0, sy:1, metalna:true};
lvl.lopte.normalna5 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:319, y:43, sx:0, sy:1, metalna:true};
lvl.lopte.normalna4 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:169, y:83, sx:0, sy:1, metalna:true};
lvl.lopte.normalna3 = {id:1, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:137, y:206, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:1, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:497, y:108, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:1, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:518, y:43, sx:0, sy:1, metalna:false};
lvl.tiles.zid15 = {tip:"zid", invis:false, t1x:510, t1y:140, t2x:530, t2y:150, soft:true};
lvl.tiles.zid14 = {tip:"zid", invis:false, t1x:550, t1y:220, t2x:560, t2y:250, soft:true};
lvl.tiles.switch13 = {tip:"switch", color:"zelena", invis:false, t1x:560, t1y:240, t2x:630, t2y:250, soft:true};
lvl.tiles.zid12 = {tip:"zid", invis:true, t1x:10, t1y:260, t2x:80, t2y:270, soft:true};
lvl.tiles.zid11 = {tip:"zid", invis:true, t1x:160, t1y:220, t2x:170, t2y:270, soft:true};
lvl.tiles.zid10 = {tip:"zid", invis:true, t1x:130, t1y:260, t2x:160, t2y:270, soft:true};
lvl.tiles.led9 = {tip:"led", invis:false, t1x:530, t1y:140, t2x:570, t2y:150, soft:true};
lvl.tiles.tramboline8 = {tip:"tramboline", invis:false, t1x:590, t1y:220, t2x:630, t2y:230, soft:true};
lvl.tiles.switch7 = {tip:"switch", color:"zuta", invis:false, t1x:560, t1y:230, t2x:630, t2y:240, soft:true};
lvl.tiles.switch6 = {tip:"switch", color:"crvena", invis:false, t1x:560, t1y:210, t2x:630, t2y:220, soft:true};
lvl.tiles.led5 = {tip:"led", invis:false, t1x:270, t1y:210, t2x:560, t2y:220, soft:true};
lvl.tiles.traka4 = {tip:"traka", brz:-60, invis:false, t1x:180, t1y:210, t2x:270, t2y:220, soft:true};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:160, t1y:210, t2x:180, t2y:220, soft:true};
lvl.tiles.tramboline2 = {tip:"tramboline", invis:false, t1x:80, t1y:260, t2x:130, t2y:270, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:10, t1y:110, t2x:70, t2y:120, soft:true};
var lvl = ((_level0.levelBuffer.single_level60 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 85;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:2, freeze:2, vrijeme:1, uspori_lopte:2, speed:1, dinamit:1, shield_plain:2, bodovi2:2, bodovi3:1};
lvl.igraci = {p1_x:310, p1_y:420, p1_weapon:1};
lvl.lopte.kisobran3 = {id:4, tip:"kisobran", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:315, y:149, sx:-3, sy:3, rotacija:1};
lvl.lopte.normalna6 = {id:2, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:599, y:34, sx:1, sy:1, metalna:false};
lvl.lopte.kontra5 = {id:3, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:206, y:37, sx:1, sy:-1, metalna:false};
lvl.lopte.kontra4 = {id:3, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:426, y:37, sx:1, sy:-1, metalna:false};
lvl.lopte.kontra3 = {id:3, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:546, y:37, sx:1, sy:-1, metalna:false};
lvl.lopte.kontra2 = {id:3, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:316, y:37, sx:1, sy:-1, metalna:false};
lvl.lopte.kontra1 = {id:3, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:106, y:37, sx:1, sy:-1, metalna:false};
lvl.lopte.kisobran2 = {id:4, tip:"kisobran", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:443, y:149, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran1 = {id:4, tip:"kisobran", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:183, y:149, sx:-3, sy:3, rotacija:1};
lvl.lopte.normalna5 = {id:2, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:40, y:34, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:2, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:154, y:34, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:2, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:259, y:34, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:370, y:34, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:486, y:34, sx:1, sy:1, metalna:false};
lvl.tiles.keks2 = {tip:"keks", item:"weapon_laser", invis:true, t1x:10, t1y:140, t2x:30, t2y:150, soft:true};
lvl.tiles.switch1 = {tip:"switch", color:"plavozelena", invis:false, t1x:10, t1y:70, t2x:630, t2y:80, soft:true};
var lvl = ((_level0.levelBuffer.single_level61 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 70;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:2, weapon_laser:2, freeze:2, vrijeme:1, uspori_lopte:2, speed:2, dinamit:1, shield_plain:2, shield_invincible:1, bodovi1:1, bodovi2:2, bodovi3:1};
lvl.igraci = {p1_x:350, p1_y:420, p1_weapon:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:246, y:67, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:154, y:324, sx:1, sy:1, metalna:false};
lvl.tiles.zid9 = {tip:"zid", invis:true, t1x:10, t1y:190, t2x:170, t2y:200, soft:true};
lvl.tiles.zid8 = {tip:"zid", invis:true, t1x:480, t1y:190, t2x:630, t2y:200, soft:true};
lvl.tiles.keks7 = {tip:"keks", item:"freeze", invis:false, t1x:170, t1y:260, t2x:200, t2y:270, soft:true};
lvl.tiles.keks6 = {tip:"keks", item:"freeze", invis:false, t1x:290, t1y:10, t2x:340, t2y:20, soft:true};
lvl.tiles.zid5 = {tip:"zid", invis:false, t1x:470, t1y:190, t2x:480, t2y:270, soft:true};
lvl.tiles.zid4 = {tip:"zid", invis:false, t1x:170, t1y:190, t2x:180, t2y:260, soft:true};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:180, t1y:190, t2x:470, t2y:200, soft:true};
lvl.tiles.ljestve2 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:450, t1y:190, t2x:470, t2y:420};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:200, t1y:260, t2x:470, t2y:270, soft:true};
var lvl = ((_level0.levelBuffer.single_level62 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 80;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:2, weapon_laser:2, freeze:2, vrijeme:1, uspori_lopte:2, speed:2, dinamit:1, shield_plain:2, shield_invincible:1, bodovi1:1, bodovi2:2, bodovi3:2};
lvl.igraci = {p1_x:350, p1_y:420, p1_weapon:1};
lvl.lopte.kontra2 = {id:4, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:527, y:72, sx:-1, sy:1, metalna:false};
lvl.lopte.kontra1 = {id:4, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:97, y:72, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:4, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:530, y:334, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:4, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:530, y:204, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:4, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:90, y:334, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:90, y:204, sx:1, sy:1, metalna:false};
lvl.tiles.keks2 = {tip:"keks", item:"null", invis:false, t1x:10, t1y:140, t2x:630, t2y:150, soft:true};
lvl.tiles.keks1 = {tip:"keks", item:"null", invis:false, t1x:40, t1y:260, t2x:600, t2y:270, soft:true};
var lvl = ((_level0.levelBuffer.single_level63 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 65;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:2, weapon_laser:2, freeze:2, vrijeme:1, uspori_lopte:2, speed:2, dinamit:1, shield_plain:2, shield_invincible:1, bodovi1:1, bodovi2:2, bodovi3:2};
lvl.igraci = {p1_x:340, p1_y:360, p1_weapon:1};
lvl.lopte.normalna2 = {id:4, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:411, y:201, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:261, y:201, sx:-1, sy:1, metalna:false};
lvl.tiles.ljestve6 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:320, t1y:360, t2x:340, t2y:420};
lvl.tiles.zid5 = {tip:"zid", invis:false, t1x:540, t1y:350, t2x:550, t2y:370, soft:true};
lvl.tiles.zid4 = {tip:"zid", invis:false, t1x:110, t1y:350, t2x:120, t2y:370, soft:true};
lvl.tiles.led3 = {tip:"led", invis:false, t1x:420, t1y:360, t2x:540, t2y:370, soft:true};
lvl.tiles.led2 = {tip:"led", invis:false, t1x:250, t1y:360, t2x:410, t2y:370, soft:true};
lvl.tiles.led1 = {tip:"led", invis:false, t1x:120, t1y:360, t2x:240, t2y:370, soft:true};
var lvl = ((_level0.levelBuffer.single_level64 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 40;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:2, weapon_laser:2, freeze:2, vrijeme:1, uspori_lopte:2, speed:2, dinamit:1, shield_plain:2, shield_invincible:1, bodovi1:1, bodovi2:2, bodovi3:2};
lvl.igraci = {p1_x:310, p1_y:410, p1_weapon:1};
lvl.lopte.normalna5 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:436, y:161, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:386, y:161, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:336, y:161, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:286, y:161, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:236, y:161, sx:1, sy:1, metalna:false};
lvl.tiles.led6 = {tip:"led", invis:false, t1x:10, t1y:410, t2x:630, t2y:420, soft:false};
lvl.tiles.ljestve5 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:330, t1y:190, t2x:350, t2y:410};
lvl.tiles.keks4 = {tip:"keks", item:"speed", invis:true, t1x:310, t1y:10, t2x:370, t2y:20, soft:true};
lvl.tiles.led3 = {tip:"led", invis:false, t1x:450, t1y:300, t2x:570, t2y:310, soft:true};
lvl.tiles.led2 = {tip:"led", invis:false, t1x:210, t1y:190, t2x:470, t2y:200, soft:true};
lvl.tiles.led1 = {tip:"led", invis:false, t1x:110, t1y:300, t2x:230, t2y:310, soft:true};
var lvl = ((_level0.levelBuffer.single_level65 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 140;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:2, freeze:1, vrijeme:2, uspori_lopte:1, speed:1, dinamit:1, shield_plain:2, shield_invincible:1, bodovi1:1, bodovi2:2, bodovi3:2};
lvl.igraci = {p1_x:330, p1_y:100, p1_weapon:1};
lvl.lopte.normalna8 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:162, y:388, sx:1, sy:1, metalna:false};
lvl.lopte.normalna7 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:102, y:388, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran3 = {id:3, tip:"kisobran", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:42, y:388, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna6 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:162, y:318, sx:1, sy:1, metalna:false};
lvl.lopte.normalna5 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:102, y:318, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"plavozelena", splitway:"double", battleId:0, ghostBall:false, x:42, y:318, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"plava", splitway:"double", battleId:0, ghostBall:false, x:162, y:248, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"plava", splitway:"double", battleId:0, ghostBall:false, x:102, y:248, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"plava", splitway:"double", battleId:0, ghostBall:false, x:42, y:248, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:62, y:159, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:42, y:49, sx:3, sy:3, rotacija:1};
lvl.tiles.switch4 = {tip:"switch", color:"narandjasta", invis:false, t1x:10, t1y:350, t2x:630, t2y:360, soft:false};
lvl.tiles.switch3 = {tip:"switch", color:"plava", invis:false, t1x:10, t1y:280, t2x:630, t2y:290, soft:false};
lvl.tiles.switch2 = {tip:"switch", color:"zelena", invis:false, t1x:10, t1y:210, t2x:630, t2y:220, soft:false};
lvl.tiles.switch1 = {tip:"switch", color:"zuta", invis:false, t1x:10, t1y:100, t2x:630, t2y:110, soft:true};
var lvl = ((_level0.levelBuffer.single_level66 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 80;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:2, weapon_laser:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:290, p1_y:410, p1_weapon:1};
lvl.lopte.kisobran2 = {id:4, tip:"kisobran", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:442, y:58, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna8 = {id:3, tip:"normalna", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:110, y:34, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna7 = {id:3, tip:"normalna", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:250, y:34, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna6 = {id:3, tip:"normalna", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:360, y:34, sx:1, sy:1, metalna:false};
lvl.lopte.normalna5 = {id:3, tip:"normalna", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:520, y:34, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran1 = {id:4, tip:"kisobran", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:442, y:250, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:110, y:226, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:250, y:226, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:360, y:226, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:520, y:226, sx:1, sy:1, metalna:false};
lvl.tiles.keks10 = {tip:"keks", item:"speed", invis:true, t1x:10, t1y:200, t2x:40, t2y:210, soft:true};
lvl.tiles.ljestve9 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:310, t1y:190, t2x:330, t2y:410};
lvl.tiles.traka8 = {tip:"traka", brz:60, invis:false, t1x:470, t1y:190, t2x:630, t2y:200, soft:true};
lvl.tiles.traka7 = {tip:"traka", brz:-60, invis:false, t1x:320, t1y:190, t2x:470, t2y:200, soft:true};
lvl.tiles.traka6 = {tip:"traka", brz:60, invis:false, t1x:170, t1y:190, t2x:320, t2y:200, soft:true};
lvl.tiles.traka5 = {tip:"traka", brz:-60, invis:false, t1x:10, t1y:190, t2x:170, t2y:200, soft:true};
lvl.tiles.traka4 = {tip:"traka", brz:60, invis:false, t1x:470, t1y:410, t2x:630, t2y:420, soft:true};
lvl.tiles.traka3 = {tip:"traka", brz:-60, invis:false, t1x:320, t1y:410, t2x:470, t2y:420, soft:true};
lvl.tiles.traka2 = {tip:"traka", brz:60, invis:false, t1x:170, t1y:410, t2x:320, t2y:420, soft:true};
lvl.tiles.traka1 = {tip:"traka", brz:-60, invis:false, t1x:10, t1y:410, t2x:170, t2y:420, soft:true};
var lvl = ((_level0.levelBuffer.single_level67 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 70;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:2, weapon_laser:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:320, p1_y:420, p1_weapon:1};
lvl.lopte.kisobran1 = {id:4, tip:"kisobran", boja:"zelena", splitway:"double", battleId:0, ghostBall:false, x:298, y:54, sx:3, sy:3, rotacija:1};
lvl.tiles.zid10 = {tip:"zid", invis:true, t1x:410, t1y:100, t2x:430, t2y:110, soft:true};
lvl.tiles.zid9 = {tip:"zid", invis:true, t1x:270, t1y:280, t2x:290, t2y:290, soft:true};
lvl.tiles.zid8 = {tip:"zid", invis:true, t1x:10, t1y:300, t2x:30, t2y:310, soft:true};
lvl.tiles.zid7 = {tip:"zid", invis:true, t1x:200, t1y:200, t2x:220, t2y:210, soft:true};
lvl.tiles.zid6 = {tip:"zid", invis:true, t1x:400, t1y:260, t2x:420, t2y:270, soft:true};
lvl.tiles.zid5 = {tip:"zid", invis:true, t1x:530, t1y:230, t2x:550, t2y:240, soft:true};
lvl.tiles.zid4 = {tip:"zid", invis:true, t1x:540, t1y:130, t2x:560, t2y:140, soft:true};
lvl.tiles.zid3 = {tip:"zid", invis:true, t1x:320, t1y:160, t2x:340, t2y:170, soft:true};
lvl.tiles.zid2 = {tip:"zid", invis:true, t1x:130, t1y:280, t2x:150, t2y:290, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:true, t1x:100, t1y:160, t2x:120, t2y:170, soft:true};
var lvl = ((_level0.levelBuffer.single_level68 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 110;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, weapon_laser:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:320, p1_y:420, p1_weapon:1};
lvl.lopte.normalna8 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:567, y:227, sx:1, sy:1, metalna:false};
lvl.lopte.normalna7 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:77, y:227, sx:1, sy:1, metalna:false};
lvl.lopte.normalna6 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:567, y:57, sx:1, sy:1, metalna:false};
lvl.lopte.normalna5 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:317, y:57, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:77, y:57, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:402, y:184, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:322, y:184, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:242, y:184, sx:1, sy:1, metalna:false};
lvl.tiles.switch7 = {tip:"switch", color:"crvena", invis:false, t1x:10, t1y:120, t2x:630, t2y:130, soft:true};
lvl.tiles.switch6 = {tip:"switch", color:"crvena", invis:false, t1x:490, t1y:130, t2x:500, t2y:320, soft:true};
lvl.tiles.switch5 = {tip:"switch", color:"crvena", invis:false, t1x:500, t1y:320, t2x:630, t2y:330, soft:true};
lvl.tiles.led4 = {tip:"led", invis:false, t1x:140, t1y:320, t2x:500, t2y:330, soft:true};
lvl.tiles.switch3 = {tip:"switch", color:"crvena", invis:false, t1x:140, t1y:130, t2x:150, t2y:320, soft:true};
lvl.tiles.ljestve2 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:280, t1y:320, t2x:300, t2y:420};
lvl.tiles.switch1 = {tip:"switch", color:"crvena", invis:false, t1x:10, t1y:320, t2x:140, t2y:330, soft:true};
var lvl = ((_level0.levelBuffer.single_level69 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 100;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, weapon_laser:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:300, p1_y:410, p1_weapon:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:75, y:283, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran1 = {id:4, tip:"kisobran", boja:"plava", splitway:"double", battleId:0, ghostBall:false, x:420, y:85, sx:3, sy:3, rotacija:1};
lvl.tiles.keks6 = {tip:"keks", item:"weapon_hook", invis:true, t1x:300, t1y:10, t2x:350, t2y:20, soft:true};
lvl.tiles.led5 = {tip:"led", invis:false, t1x:10, t1y:410, t2x:630, t2y:420, soft:true};
lvl.tiles.ljestve4 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:320, t1y:290, t2x:340, t2y:420};
lvl.tiles.tramboline3 = {tip:"tramboline", invis:false, t1x:260, t1y:290, t2x:390, t2y:300, soft:true};
lvl.tiles.traka2 = {tip:"traka", brz:-60, invis:false, t1x:400, t1y:240, t2x:540, t2y:250, soft:true};
lvl.tiles.traka1 = {tip:"traka", brz:60, invis:false, t1x:110, t1y:240, t2x:250, t2y:250, soft:true};
var lvl = ((_level0.levelBuffer.single_level70 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 100;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, weapon_laser:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:300, p1_y:420, p1_weapon:1};
lvl.lopte.kontra6 = {id:2, tip:"kontra", boja:"plava", splitway:"double", battleId:0, ghostBall:false, x:478, y:35, sx:1, sy:1, metalna:false};
lvl.lopte.kontra5 = {id:2, tip:"kontra", boja:"plava", splitway:"double", battleId:0, ghostBall:false, x:448, y:35, sx:1, sy:1, metalna:false};
lvl.lopte.kontra4 = {id:2, tip:"kontra", boja:"plava", splitway:"double", battleId:0, ghostBall:false, x:418, y:35, sx:1, sy:1, metalna:false};
lvl.lopte.normalna8 = {id:2, tip:"normalna", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:97, y:259, sx:1, sy:1, metalna:false};
lvl.lopte.normalna7 = {id:2, tip:"normalna", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:67, y:259, sx:1, sy:1, metalna:false};
lvl.lopte.normalna6 = {id:2, tip:"normalna", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:37, y:259, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran6 = {id:2, tip:"kisobran", boja:"plava", splitway:"double", battleId:0, ghostBall:false, x:312, y:124, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran5 = {id:2, tip:"kisobran", boja:"plava", splitway:"double", battleId:0, ghostBall:false, x:282, y:124, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran4 = {id:2, tip:"kisobran", boja:"plava", splitway:"double", battleId:0, ghostBall:false, x:252, y:124, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna5 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:459, y:237, sx:0, sy:1, metalna:true};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:179, y:237, sx:0, sy:1, metalna:true};
lvl.lopte.kontra3 = {id:2, tip:"kontra", boja:"plava", splitway:"double", battleId:0, ghostBall:false, x:508, y:65, sx:1, sy:1, metalna:false};
lvl.lopte.kontra2 = {id:2, tip:"kontra", boja:"plava", splitway:"double", battleId:0, ghostBall:false, x:478, y:65, sx:1, sy:1, metalna:false};
lvl.lopte.kontra1 = {id:2, tip:"kontra", boja:"plava", splitway:"double", battleId:0, ghostBall:false, x:448, y:65, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran3 = {id:2, tip:"kisobran", boja:"plava", splitway:"double", battleId:0, ghostBall:false, x:342, y:154, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran2 = {id:2, tip:"kisobran", boja:"plava", splitway:"double", battleId:0, ghostBall:false, x:312, y:154, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran1 = {id:2, tip:"kisobran", boja:"plava", splitway:"double", battleId:0, ghostBall:false, x:282, y:154, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna3 = {id:2, tip:"normalna", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:127, y:289, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:97, y:289, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:67, y:289, sx:1, sy:1, metalna:false};
var lvl = ((_level0.levelBuffer.single_level71 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 95;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, weapon_laser:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:300, p1_y:420, p1_weapon:1};
lvl.lopte.normalna6 = {id:4, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:242, y:62, sx:1, sy:1, metalna:false};
lvl.lopte.normalna5 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:352, y:65, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:4, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:462, y:62, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:571, y:60, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"zelena", splitway:"double", battleId:0, ghostBall:false, x:506, y:265, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"zelena", splitway:"double", battleId:0, ghostBall:false, x:106, y:265, sx:1, sy:1, metalna:false};
lvl.tiles.keks6 = {tip:"keks", item:"freeze", invis:true, t1x:10, t1y:10, t2x:60, t2y:20, soft:true};
lvl.tiles.switch5 = {tip:"switch", color:"ljubicasta", invis:false, t1x:520, t1y:10, t2x:530, t2y:120, soft:true};
lvl.tiles.switch4 = {tip:"switch", color:"narandjasta", invis:false, t1x:390, t1y:10, t2x:400, t2y:120, soft:true};
lvl.tiles.switch3 = {tip:"switch", color:"zuta", invis:false, t1x:300, t1y:10, t2x:310, t2y:120, soft:true};
lvl.tiles.switch2 = {tip:"switch", color:"zelena", invis:false, t1x:180, t1y:10, t2x:190, t2y:120, soft:true};
lvl.tiles.traka1 = {tip:"traka", brz:-60, invis:false, t1x:180, t1y:120, t2x:630, t2y:130, soft:true};
var lvl = ((_level0.levelBuffer.single_level72 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 175;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:2, weapon_hook:2, weapon_laser:1, freeze:2, uspori_lopte:2, speed:1, dinamit:2, shield_plain:2, shield_invincible:1, bodovi1:1, bodovi2:2, bodovi3:3};
lvl.igraci = {p1_x:300, p1_y:420, p1_weapon:1};
lvl.lopte.kisobran7 = {id:2, tip:"kisobran", boja:"plavozelena", splitway:"double", battleId:0, ghostBall:false, x:317, y:126, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran6 = {id:2, tip:"kisobran", boja:"plavozelena", splitway:"double", battleId:0, ghostBall:false, x:214, y:35, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran5 = {id:2, tip:"kisobran", boja:"plavozelena", splitway:"double", battleId:0, ghostBall:false, x:437, y:35, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran4 = {id:2, tip:"kisobran", boja:"plavozelena", splitway:"double", battleId:0, ghostBall:false, x:96, y:44, sx:3, sy:3, rotacija:1};
lvl.lopte.kontra4 = {id:3, tip:"kontra", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:327, y:83, sx:1, sy:1, metalna:false};
lvl.lopte.kontra3 = {id:3, tip:"kontra", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:221, y:90, sx:1, sy:1, metalna:false};
lvl.lopte.kontra2 = {id:3, tip:"kontra", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:71, y:123, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran3 = {id:3, tip:"kisobran", boja:"roza", splitway:"double", battleId:0, ghostBall:false, x:575, y:119, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"roza", splitway:"double", battleId:0, ghostBall:false, x:150, y:74, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"roza", splitway:"double", battleId:0, ghostBall:false, x:399, y:74, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna5 = {id:3, tip:"normalna", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:275, y:61, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:51, y:45, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:524, y:61, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"zelena", splitway:"double", battleId:0, ghostBall:true, x:506, y:265, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"zelena", splitway:"double", battleId:0, ghostBall:true, x:106, y:265, sx:1, sy:1, metalna:false};
lvl.lopte.kontra1 = {id:3, tip:"kontra", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:469, y:87, sx:1, sy:1, metalna:false};
lvl.tiles.keks21 = {tip:"keks", item:"dinamit", invis:false, t1x:360, t1y:200, t2x:410, t2y:210, soft:true};
lvl.tiles.keks20 = {tip:"keks", item:"freeze", invis:false, t1x:240, t1y:200, t2x:290, t2y:210, soft:true};
lvl.tiles.keks19 = {tip:"keks", item:"freeze", invis:false, t1x:30, t1y:170, t2x:150, t2y:180, soft:true};
lvl.tiles.keks18 = {tip:"keks", item:"weapon_laser", invis:false, t1x:490, t1y:170, t2x:610, t2y:180, soft:true};
lvl.tiles.zid17 = {tip:"zid", invis:false, t1x:450, t1y:160, t2x:460, t2y:190, soft:true};
lvl.tiles.zid16 = {tip:"zid", invis:false, t1x:440, t1y:150, t2x:450, t2y:160, soft:true};
lvl.tiles.zid15 = {tip:"zid", invis:false, t1x:420, t1y:200, t2x:440, t2y:210, soft:true};
lvl.tiles.zid14 = {tip:"zid", invis:false, t1x:440, t1y:190, t2x:450, t2y:200, soft:true};
lvl.tiles.zid13 = {tip:"zid", invis:false, t1x:420, t1y:140, t2x:440, t2y:150, soft:true};
lvl.tiles.zid12 = {tip:"zid", invis:false, t1x:410, t1y:140, t2x:420, t2y:210, soft:true};
lvl.tiles.zid11 = {tip:"zid", invis:false, t1x:350, t1y:140, t2x:360, t2y:210, soft:true};
lvl.tiles.zid10 = {tip:"zid", invis:false, t1x:340, t1y:190, t2x:350, t2y:200, soft:true};
lvl.tiles.zid9 = {tip:"zid", invis:false, t1x:330, t1y:180, t2x:340, t2y:190, soft:true};
lvl.tiles.zid8 = {tip:"zid", invis:false, t1x:320, t1y:170, t2x:330, t2y:180, soft:true};
lvl.tiles.zid7 = {tip:"zid", invis:false, t1x:310, t1y:160, t2x:320, t2y:170, soft:true};
lvl.tiles.zid6 = {tip:"zid", invis:false, t1x:300, t1y:150, t2x:310, t2y:160, soft:true};
lvl.tiles.zid5 = {tip:"zid", invis:false, t1x:290, t1y:140, t2x:300, t2y:210, soft:true};
lvl.tiles.zid4 = {tip:"zid", invis:false, t1x:190, t1y:170, t2x:240, t2y:180, soft:true};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:180, t1y:140, t2x:190, t2y:210, soft:true};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:190, t1y:200, t2x:240, t2y:210, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:190, t1y:140, t2x:240, t2y:150, soft:true};
init_defaultSA_level = function (levl) {
var _local4 = _root.levelBuffer.defaultLevel.odskok_lopti;
var _local3 = {xmin:10, xmax:630, ymin:10, ymax:420};
levl.tiles = new Object();
levl.lopte = new Object();
levl.odskok_lopti = new Object();
levl.granice = new Object();
levl.granice = _local3;
levl.odskok_lopti = new Object();
levl.odskok_lopti = _local4;
levl.igraci = {p1_x:70, p1_y:420, p1_weapon:2};
};
var lvl = ((_level0.levelBuffer.stayingalive1_level1 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 8;
lvl.moguce_lopte = [{tip:"normalna", boja:"crvena", minid:2, maxid:3, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level2 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 11;
lvl.moguce_lopte = [{tip:"normalna", boja:"zuta", minid:2, maxid:3, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level3 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 17;
lvl.moguce_lopte = [{tip:"normalna", boja:"zelena", minid:2, maxid:2, splitway:"normal"}, {tip:"kisobran", boja:"plava", minid:2, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level4 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 30;
lvl.moguce_lopte = [{tip:"normalna", boja:"crvena", minid:1, maxid:2, splitway:"normal"}, {tip:"normalna", boja:"plava", minid:1, maxid:2, splitway:"normal"}, {tip:"normalna", boja:"zuta", minid:1, maxid:2, splitway:"normal"}, {tip:"normalna", boja:"zelena", minid:1, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level5 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 2;
lvl.moguce_lopte = [{tip:"normalna", boja:"narandjasta", minid:5, maxid:5, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level6 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 17;
lvl.moguce_lopte = [{tip:"kisobran", boja:"zuta", minid:3, maxid:3, splitway:"normal"}, {tip:"kisobran", boja:"plava", minid:3, maxid:3, splitway:"normal"}, {tip:"kisobran", boja:"zelena", minid:3, maxid:3, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level7 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 1;
lvl.moguce_lopte = [{tip:"kontra", minid:5, maxid:5, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level8 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 10;
lvl.moguce_lopte = [{tip:"kisobran", boja:"zuta", minid:2, maxid:3, splitway:"normal"}, {tip:"kisobran", boja:"crvena", minid:2, maxid:3, splitway:"normal"}, {tip:"normalna", boja:"plava", minid:3, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"zelena", minid:3, maxid:4, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level9 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 10;
lvl.moguce_lopte = [{tip:"normalna", boja:"ljubicasta", minid:3, maxid:3, splitway:"double"}, {tip:"normalna", boja:"plava", minid:3, maxid:3, splitway:"normal"}, {tip:"kontra", minid:2, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level10 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 5;
lvl.moguce_lopte = [{tip:"normalna", boja:"roza", minid:4, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"plavozelena", minid:4, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"zelena", minid:4, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"zuta", minid:4, maxid:4, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level11 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 11;
lvl.moguce_lopte = [{tip:"normalna", metalna:true, boja:"roza", minid:2, maxid:2, splitway:"normal"}, {tip:"normalna", boja:"crvena", minid:3, maxid:3, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level12 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 40;
lvl.moguce_lopte = [{tip:"normalna", boja:"ljubicasta", minid:1, maxid:2, splitway:"normal"}, {tip:"normalna", boja:"plava", minid:1, maxid:2, splitway:"normal"}, {tip:"normalna", boja:"zelena", minid:1, maxid:2, splitway:"normal"}, {tip:"normalna", boja:"crvena", minid:1, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level13 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 1;
lvl.moguce_lopte = [{tip:"normalna", boja:"zuta", minid:4, maxid:4, splitway:"double"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level14 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 15;
lvl.moguce_lopte = [{tip:"kontra", boja:"zuta", minid:2, maxid:2, splitway:"double"}, {tip:"normalna", boja:"crvena", minid:3, maxid:4, splitway:"normal"}, {tip:"normalna", metalna:true, boja:"crvena", minid:2, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level15 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 23;
lvl.moguce_lopte = [{tip:"normalna", sx:0, boja:"zuta", minid:2, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level16 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 13;
lvl.moguce_lopte = [{tip:"kisobran", boja:"plava", minid:3, maxid:3, splitway:"normal"}, {tip:"normalna", boja:"crvena", minid:3, maxid:3, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level17 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 60;
lvl.moguce_lopte = [{tip:"kontra", boja:"zuta", minid:1, maxid:1, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level18 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 3;
lvl.moguce_lopte = [{tip:"normalna", boja:"roza", minid:5, maxid:5, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level19 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 35;
lvl.moguce_lopte = [{tip:"kisobran", boja:"zuta", minid:2, maxid:2, splitway:"normal"}, {tip:"kisobran", boja:"zelena", minid:2, maxid:2, splitway:"normal"}, {tip:"kisobran", boja:"crvena", minid:2, maxid:2, splitway:"normal"}, {tip:"kisobran", boja:"plavozelena", minid:2, maxid:2, splitway:"normal"}, {tip:"normalna", boja:"plavozelena", metalna:true, minid:2, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level20 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 14;
lvl.moguce_lopte = [{tip:"kisobran", boja:"zuta", minid:3, maxid:3, splitway:"normal"}, {tip:"normalna", boja:"ljubicasta", minid:3, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"plava", minid:1, maxid:3, splitway:"normal"}, {tip:"normalna", sx:0, boja:"roza", minid:2, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level21 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 16;
lvl.moguce_lopte = [{tip:"normalna", sx:0, boja:"zuta", minid:3, maxid:3, splitway:"normal"}, {tip:"normalna", metalna:true, boja:"ljubicasta", minid:2, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level22 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 15;
lvl.moguce_lopte = [{tip:"kontra", minid:3, maxid:3, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level23 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 15;
lvl.moguce_lopte = [{tip:"normalna", boja:"zuta", minid:2, maxid:3, splitway:"normal"}, {tip:"normalna", boja:"zelena", minid:3, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"crvena", minid:2, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"plavozelena", minid:3, maxid:4, splitway:"normal"}, {tip:"normalna", sx:0, boja:"ljubicasta", minid:2, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level24 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 28;
lvl.moguce_lopte = [{tip:"kisobran", boja:"plavozelena", minid:2, maxid:3, splitway:"normal"}, {tip:"normalna", sx:0, boja:"zelena", minid:2, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level25 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 4;
lvl.moguce_lopte = [{tip:"normalna", sx:0, boja:"plava", minid:2, maxid:4, splitway:"double"}, {tip:"normalna", sx:0, boja:"crvena", minid:2, maxid:4, splitway:"double"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level26 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 16;
lvl.moguce_lopte = [{tip:"normalna", boja:"crvena", minid:2, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"zuta", minid:2, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"narandjasta", minid:2, maxid:3, splitway:"double"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level27 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 19;
lvl.moguce_lopte = [{tip:"kontra", minid:2, maxid:3, splitway:"normal"}, {tip:"normalna", boja:"plava", minid:3, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"zelena", minid:2, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"ljubicasta", minid:2, maxid:4, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level28 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 17;
lvl.moguce_lopte = [{tip:"kisobran", boja:"narandjasta", minid:2, maxid:4, splitway:"normal"}, {tip:"kisobran", boja:"roza", minid:2, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"crvena", minid:2, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"zuta", minid:2, maxid:4, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level29 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 60;
lvl.moguce_lopte = [{tip:"kisobran", boja:"crvena", minid:1, maxid:2, splitway:"normal"}, {tip:"kisobran", boja:"ljubicasta", minid:1, maxid:2, splitway:"normal"}, {tip:"kisobran", boja:"narandjasta", minid:1, maxid:2, splitway:"normal"}, {tip:"kisobran", boja:"plava", minid:1, maxid:2, splitway:"normal"}, {tip:"kisobran", boja:"plavozelena", minid:1, maxid:2, splitway:"normal"}, {tip:"kisobran", boja:"roza", minid:1, maxid:2, splitway:"normal"}, {tip:"kisobran", boja:"zelena", minid:1, maxid:2, splitway:"normal"}, {tip:"kisobran", boja:"zuta", minid:1, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level30 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 4;
lvl.moguce_lopte = [{tip:"kontra", boja:"crvena", minid:3, maxid:4, splitway:"double"}, {tip:"normalna", boja:"roza", minid:3, maxid:4, splitway:"double"}];
var lvl = ((_level0.levelBuffer.stayingalive1_level31 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 1;
lvl.moguce_lopte = [{tip:"kisobran", boja:"zelena", minid:1, maxid:1, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.coop_level1 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 20;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, bodovi1:1};
lvl.igraci = {p1_x:310, p1_y:420, p1_weapon:1, p2_x:350, p2_y:420, p2_weapon:1};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:591, y:287, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:51, y:287, sx:1, sy:1, metalna:false};
var lvl = ((_level0.levelBuffer.coop_level2 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 45;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, bodovi1:1};
lvl.igraci = {p1_x:310, p1_y:420, p1_weapon:1, p2_x:350, p2_y:420, p2_weapon:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:331, y:277, sx:1, sy:1, metalna:false};
lvl.tiles.keks1 = {tip:"keks", item:"weapon_double", invis:false, t1x:300, t1y:310, t2x:360, t2y:320, soft:true};
var lvl = ((_level0.levelBuffer.coop_level3 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 45;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, bodovi1:1};
lvl.igraci = {p1_x:310, p1_y:420, p1_weapon:1, p2_x:350, p2_y:420, p2_weapon:1};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:443, y:182, sx:1, sy:1, metalna:false};
lvl.tiles.keks2 = {tip:"keks", item:"shield_plain", invis:false, t1x:470, t1y:110, t2x:520, t2y:120, soft:true};
lvl.tiles.keks1 = {tip:"keks", item:"null", invis:false, t1x:140, t1y:110, t2x:190, t2y:120, soft:true};
var lvl = ((_level0.levelBuffer.coop_level4 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 45;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, bodovi1:1};
lvl.igraci = {p1_x:180, p1_y:420, p1_weapon:1, p2_x:480, p2_y:420, p2_weapon:1};
lvl.lopte.normalna6 = {id:3, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:258, y:33, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna5 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:388, y:33, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:2, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:553, y:244, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:2, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:93, y:244, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:373, y:244, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:283, y:244, sx:-1, sy:1, metalna:false};
lvl.tiles.ljestve4 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:600, t1y:220, t2x:620, t2y:420};
lvl.tiles.ljestve3 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:20, t1y:220, t2x:40, t2y:420};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:320, t1y:230, t2x:330, t2y:420, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:10, t1y:220, t2x:630, t2y:230, soft:true};
var lvl = ((_level0.levelBuffer.coop_level5 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 45;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, bodovi1:1};
lvl.igraci = {p1_x:180, p1_y:420, p1_weapon:1, p2_x:480, p2_y:420, p2_weapon:1};
lvl.lopte.normalna3 = {id:4, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:318, y:52, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:363, y:241, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:273, y:241, sx:-1, sy:1, metalna:false};
lvl.tiles.zid5 = {tip:"zid", invis:false, t1x:10, t1y:200, t2x:630, t2y:210, soft:true};
lvl.tiles.ljestve4 = {tip:"ljestve", p1ok:0, p2ok:1, invis:false, t1x:400, t1y:300, t2x:420, t2y:420};
lvl.tiles.ljestve3 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:310, t1y:200, t2x:330, t2y:300};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:220, t1y:300, t2x:430, t2y:310, soft:true};
lvl.tiles.ljestve1 = {tip:"ljestve", p1ok:1, p2ok:0, invis:false, t1x:230, t1y:300, t2x:250, t2y:420};
var lvl = ((_level0.levelBuffer.coop_level6 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 45;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, bodovi1:1};
lvl.igraci = {p1_x:300, p1_y:420, p1_weapon:1, p2_x:340, p2_y:420, p2_weapon:1};
lvl.lopte.normalna2 = {id:4, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:392, y:214, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:232, y:214, sx:-1, sy:1, metalna:false};
var lvl = ((_level0.levelBuffer.coop_level7 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 45;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, bodovi1:1};
lvl.igraci = {p1_x:280, p1_y:420, p1_weapon:1, p2_x:360, p2_y:420, p2_weapon:1};
lvl.lopte.kisobran4 = {id:3, tip:"kisobran", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:262, y:144, sx:-3, sy:-3, rotacija:1};
lvl.lopte.kisobran3 = {id:3, tip:"kisobran", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:372, y:194, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:262, y:194, sx:-3, sy:3, rotacija:1};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:372, y:144, sx:3, sy:-3, rotacija:1};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:320, t1y:400, t2x:330, t2y:420, soft:true};
var lvl = ((_level0.levelBuffer.coop_level8 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 45;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, bodovi1:1};
lvl.igraci = {p1_x:280, p1_y:420, p1_weapon:1, p2_x:360, p2_y:420, p2_weapon:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:true, x:228, y:257, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:true, x:418, y:257, sx:1, sy:1, metalna:false};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:310, t1y:250, t2x:330, t2y:270, soft:true};
var lvl = ((_level0.levelBuffer.coop_level9 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 65;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, bodovi1:1};
lvl.igraci = {p1_x:280, p1_y:420, p1_weapon:1, p2_x:360, p2_y:420, p2_weapon:1};
lvl.lopte.normalna2 = {id:5, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:240, y:83, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:418, y:79, sx:1, sy:1, metalna:false};
lvl.tiles.keks7 = {tip:"keks", item:"null", invis:false, t1x:450, t1y:160, t2x:500, t2y:170, soft:true};
lvl.tiles.keks6 = {tip:"keks", item:"null", invis:false, t1x:130, t1y:160, t2x:180, t2y:170, soft:true};
lvl.tiles.keks5 = {tip:"keks", item:"null", invis:false, t1x:290, t1y:160, t2x:340, t2y:170, soft:true};
lvl.tiles.keks4 = {tip:"keks", item:"null", invis:false, t1x:370, t1y:160, t2x:420, t2y:170, soft:true};
lvl.tiles.keks3 = {tip:"keks", item:"freeze", invis:false, t1x:210, t1y:160, t2x:260, t2y:170, soft:true};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:490, t1y:10, t2x:500, t2y:160, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:130, t1y:10, t2x:140, t2y:160, soft:true};
var lvl = ((_level0.levelBuffer.coop_level10 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 100;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, bodovi1:1};
lvl.igraci = {p1_x:290, p1_y:420, p1_weapon:1, p2_x:330, p2_y:420, p2_weapon:1};
lvl.lopte.kisobran6 = {id:2, tip:"kisobran", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:217, y:241, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran5 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:584, y:232, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran4 = {id:5, tip:"kisobran", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:83, y:150, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran3 = {id:4, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:587, y:130, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran2 = {id:4, tip:"kisobran", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:213, y:130, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:339, y:267, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran1 = {id:4, tip:"kisobran", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:483, y:130, sx:3, sy:3, rotacija:1};
lvl.tiles.switch4 = {tip:"switch", color:"zelena", invis:false, t1x:150, t1y:10, t2x:160, t2y:420, soft:true};
lvl.tiles.switch3 = {tip:"switch", color:"ljubicasta", invis:false, t1x:530, t1y:10, t2x:540, t2y:420, soft:true};
lvl.tiles.switch2 = {tip:"switch", color:"zuta", invis:false, t1x:260, t1y:10, t2x:270, t2y:420, soft:true};
lvl.tiles.switch1 = {tip:"switch", color:"crvena", invis:false, t1x:420, t1y:10, t2x:430, t2y:420, soft:true};
var lvl = ((_level0.levelBuffer.coop_level11 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 25;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, bodovi1:1};
lvl.igraci = {p1_x:560, p1_y:420, p1_weapon:1, p2_x:600, p2_y:420, p2_weapon:1};
lvl.odskok_lopti = new Object();
lvl.odskok_lopti.normalna = {boja:"default", brzinax:70, gravitacija:360, bounce_off:[0, 140, 115, 155, 195, 235]};
lvl.lopte.normalna24 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:250, y:270, sx:1, sy:1, metalna:false};
lvl.lopte.normalna23 = {id:1, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:264, y:280, sx:1, sy:1, metalna:false};
lvl.lopte.normalna22 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:332, y:330, sx:1, sy:1, metalna:false};
lvl.lopte.normalna21 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:278, y:290, sx:1, sy:1, metalna:false};
lvl.lopte.normalna20 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:305, y:310, sx:1, sy:1, metalna:false};
lvl.lopte.normalna19 = {id:1, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:346, y:340, sx:1, sy:1, metalna:false};
lvl.lopte.normalna18 = {id:1, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:373, y:360, sx:1, sy:1, metalna:false};
lvl.lopte.normalna17 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:359, y:350, sx:1, sy:1, metalna:false};
lvl.lopte.normalna16 = {id:1, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:291, y:300, sx:1, sy:1, metalna:false};
lvl.lopte.normalna15 = {id:1, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:318, y:320, sx:1, sy:1, metalna:false};
lvl.lopte.normalna14 = {id:1, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:400, y:380, sx:1, sy:1, metalna:false};
lvl.lopte.normalna13 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:386, y:370, sx:1, sy:1, metalna:false};
lvl.lopte.normalna12 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:20, y:270, sx:1, sy:1, metalna:false};
lvl.lopte.normalna11 = {id:1, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:34, y:280, sx:1, sy:1, metalna:false};
lvl.lopte.normalna10 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:102, y:330, sx:1, sy:1, metalna:false};
lvl.lopte.normalna9 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:48, y:290, sx:1, sy:1, metalna:false};
lvl.lopte.normalna8 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:75, y:310, sx:1, sy:1, metalna:false};
lvl.lopte.normalna7 = {id:1, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:116, y:340, sx:1, sy:1, metalna:false};
lvl.lopte.normalna6 = {id:1, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:143, y:360, sx:1, sy:1, metalna:false};
lvl.lopte.normalna5 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:129, y:350, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:1, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:61, y:300, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:1, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:88, y:320, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:1, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:170, y:380, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:156, y:370, sx:1, sy:1, metalna:false};
var lvl = ((_level0.levelBuffer.coop_level12 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 40;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, bodovi1:1};
lvl.igraci = {p1_x:270, p1_y:420, p1_weapon:1, p2_x:380, p2_y:420, p2_weapon:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"plavozelena", splitway:"double", battleId:0, ghostBall:false, x:206, y:101, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"plavozelena", splitway:"double", battleId:0, ghostBall:false, x:436, y:101, sx:1, sy:1, metalna:false};
lvl.tiles.zid6 = {tip:"zid", invis:false, t1x:560, t1y:220, t2x:630, t2y:230, soft:true};
lvl.tiles.keks5 = {tip:"keks", item:"null", invis:false, t1x:460, t1y:220, t2x:510, t2y:230, soft:true};
lvl.tiles.zid4 = {tip:"zid", invis:false, t1x:350, t1y:220, t2x:400, t2y:230, soft:true};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:240, t1y:220, t2x:290, t2y:230, soft:true};
lvl.tiles.keks2 = {tip:"keks", item:"null", invis:false, t1x:130, t1y:220, t2x:180, t2y:230, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:10, t1y:220, t2x:80, t2y:230, soft:true};
var lvl = ((_level0.levelBuffer.coop_level13 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, bodovi1:1};
lvl.igraci = {p1_x:290, p1_y:90, p1_weapon:1, p2_x:340, p2_y:90, p2_weapon:1};
lvl.lopte.normalna2 = {id:4, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:203, y:170, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:449, y:170, sx:1, sy:1, metalna:false};
lvl.tiles.led1 = {tip:"led", invis:false, t1x:280, t1y:90, t2x:350, t2y:100, soft:true};
var lvl = ((_level0.levelBuffer.coop_level14 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 100;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, bodovi1:1};
lvl.igraci = {p1_x:290, p1_y:420, p1_weapon:1, p2_x:340, p2_y:420, p2_weapon:1};
lvl.lopte.kisobran6 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:394, y:40, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran5 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:474, y:40, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran4 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:253, y:40, sx:-3, sy:3, rotacija:1};
lvl.lopte.kisobran3 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:173, y:40, sx:-3, sy:3, rotacija:1};
lvl.lopte.normalna6 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:542, y:129, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna5 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:82, y:129, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:462, y:129, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:172, y:129, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:83, y:40, sx:-3, sy:3, rotacija:1};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:554, y:40, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:278, y:236, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:380, y:236, sx:1, sy:1, metalna:false};
lvl.tiles.switch2 = {tip:"switch", color:"zuta", invis:false, t1x:10, t1y:80, t2x:630, t2y:90, soft:true};
lvl.tiles.switch1 = {tip:"switch", color:"plava", invis:false, t1x:10, t1y:170, t2x:630, t2y:180, soft:true};
var lvl = ((_level0.levelBuffer.coop_level15 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 120;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, bodovi1:1};
lvl.igraci = {p1_x:290, p1_y:420, p1_weapon:1, p2_x:340, p2_y:420, p2_weapon:1};
lvl.lopte.normalna2 = {id:5, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:255, y:100, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:5, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:385, y:100, sx:1, sy:1, metalna:false};
lvl.tiles.keks8 = {tip:"keks", item:"bodovi3", invis:true, t1x:580, t1y:10, t2x:630, t2y:20, soft:true};
lvl.tiles.keks7 = {tip:"keks", item:"null", invis:false, t1x:40, t1y:200, t2x:90, t2y:210, soft:true};
lvl.tiles.keks6 = {tip:"keks", item:"freeze", invis:false, t1x:120, t1y:200, t2x:170, t2y:210, soft:true};
lvl.tiles.keks5 = {tip:"keks", item:"null", invis:false, t1x:550, t1y:200, t2x:600, t2y:210, soft:true};
lvl.tiles.keks4 = {tip:"keks", item:"null", invis:false, t1x:470, t1y:200, t2x:520, t2y:210, soft:true};
lvl.tiles.keks3 = {tip:"keks", item:"null", invis:false, t1x:380, t1y:200, t2x:430, t2y:210, soft:true};
lvl.tiles.keks2 = {tip:"keks", item:"null", invis:false, t1x:290, t1y:200, t2x:340, t2y:210, soft:true};
lvl.tiles.keks1 = {tip:"keks", item:"null", invis:false, t1x:200, t1y:200, t2x:250, t2y:210, soft:true};
var lvl = ((_level0.levelBuffer.coop_level16 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 80;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, bodovi1:1};
lvl.igraci = {p1_x:290, p1_y:420, p1_weapon:1, p2_x:340, p2_y:420, p2_weapon:1};
lvl.lopte.kontra2 = {id:4, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:272, y:55, sx:-1, sy:-1, metalna:false};
lvl.lopte.kontra1 = {id:4, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:362, y:55, sx:1, sy:-1, metalna:false};
var lvl = ((_level0.levelBuffer.coop_level17 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, bodovi1:1};
lvl.igraci = {p1_x:290, p1_y:420, p1_weapon:1, p2_x:340, p2_y:420, p2_weapon:1};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:530, y:240, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:466, y:163, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:133, y:317, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:85, y:232, sx:1, sy:1, metalna:false};
lvl.tiles.switch6 = {tip:"switch", color:"ljubicasta", invis:false, t1x:380, t1y:10, t2x:390, t2y:200, soft:true};
lvl.tiles.zid5 = {tip:"zid", invis:false, t1x:380, t1y:210, t2x:390, t2y:420, soft:true};
lvl.tiles.ljestve4 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:300, t1y:200, t2x:320, t2y:420};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:240, t1y:200, t2x:390, t2y:210, soft:true};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:240, t1y:210, t2x:250, t2y:420, soft:true};
var lvl = ((_level0.levelBuffer.coop_level18 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 95;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, bodovi1:1};
lvl.igraci = {p1_x:290, p1_y:420, p1_weapon:1, p2_x:340, p2_y:420, p2_weapon:1};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:290, y:52, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna6 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:467, y:245, sx:1, sy:1, metalna:false};
lvl.lopte.normalna5 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:197, y:245, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:257, y:245, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:407, y:245, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:545, y:44, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:88, y:44, sx:-1, sy:1, metalna:false};
lvl.tiles.keks7 = {tip:"keks", item:"weapon_hook", invis:true, t1x:300, t1y:190, t2x:350, t2y:200, soft:true};
lvl.tiles.ljestve6 = {tip:"ljestve", p1ok:0, p2ok:1, invis:false, t1x:600, t1y:180, t2x:620, t2y:420};
lvl.tiles.ljestve5 = {tip:"ljestve", p1ok:1, p2ok:0, invis:false, t1x:20, t1y:180, t2x:40, t2y:420};
lvl.tiles.led4 = {tip:"led", invis:false, t1x:70, t1y:180, t2x:570, t2y:190, soft:true};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:570, t1y:180, t2x:630, t2y:190, soft:true};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:10, t1y:180, t2x:70, t2y:190, soft:true};
var lvl = ((_level0.levelBuffer.coop_level19 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_laser:1, freeze:1, vrijeme:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:220, p1_y:420, p1_weapon:1, p2_x:270, p2_y:420, p2_weapon:1};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"roza", splitway:"double", battleId:0, ghostBall:false, x:497, y:183, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:447, y:183, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:397, y:183, sx:1, sy:1, metalna:false};
var lvl = ((_level0.levelBuffer.coop_level20 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 90;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_laser:1, freeze:1, vrijeme:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:220, p1_y:420, p1_weapon:1, p2_x:270, p2_y:420, p2_weapon:1};
lvl.lopte.normalna14 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:535, y:90, sx:1, sy:1, metalna:false};
lvl.lopte.normalna13 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:61, y:95, sx:1, sy:1, metalna:false};
lvl.lopte.normalna12 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:535, y:50, sx:1, sy:1, metalna:false};
lvl.lopte.normalna11 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:160, y:46, sx:1, sy:1, metalna:false};
lvl.lopte.normalna10 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:399, y:50, sx:1, sy:1, metalna:false};
lvl.lopte.normalna9 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:61, y:55, sx:1, sy:1, metalna:false};
lvl.lopte.normalna8 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:308, y:61, sx:1, sy:1, metalna:false};
lvl.lopte.normalna7 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:499, y:134, sx:1, sy:1, metalna:false};
lvl.lopte.normalna6 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:308, y:101, sx:1, sy:1, metalna:false};
lvl.lopte.normalna5 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:228, y:92, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:160, y:86, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:160, y:125, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:399, y:90, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:357, y:125, sx:1, sy:1, metalna:false};
lvl.tiles.zid9 = {tip:"zid", invis:false, t1x:580, t1y:190, t2x:630, t2y:200, soft:true};
lvl.tiles.zid8 = {tip:"zid", invis:false, t1x:500, t1y:190, t2x:560, t2y:200, soft:true};
lvl.tiles.keks7 = {tip:"keks", item:"freeze", invis:false, t1x:430, t1y:190, t2x:480, t2y:200, soft:true};
lvl.tiles.zid6 = {tip:"zid", invis:false, t1x:360, t1y:190, t2x:410, t2y:200, soft:true};
lvl.tiles.keks5 = {tip:"keks", item:"shield_plain", invis:false, t1x:290, t1y:190, t2x:340, t2y:200, soft:true};
lvl.tiles.zid4 = {tip:"zid", invis:false, t1x:220, t1y:190, t2x:270, t2y:200, soft:true};
lvl.tiles.keks3 = {tip:"keks", item:"dinamit", invis:false, t1x:150, t1y:190, t2x:200, t2y:200, soft:true};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:80, t1y:190, t2x:130, t2y:200, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:10, t1y:190, t2x:60, t2y:200, soft:true};
var lvl = ((_level0.levelBuffer.coop_level21 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 135;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_laser:1, freeze:1, vrijeme:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:300, p1_y:420, p1_weapon:1, p2_x:340, p2_y:420, p2_weapon:1};
lvl.lopte.normalna4 = {id:4, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:182, y:258, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:4, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:458, y:258, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:5, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:91, y:91, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:5, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:549, y:89, sx:1, sy:1, metalna:false};
lvl.tiles.switch8 = {tip:"switch", color:"ljubicasta", invis:false, t1x:450, t1y:10, t2x:460, t2y:180, soft:true};
lvl.tiles.switch7 = {tip:"switch", color:"ljubicasta", invis:false, t1x:450, t1y:180, t2x:630, t2y:190, soft:true};
lvl.tiles.switch6 = {tip:"switch", color:"crvena", invis:false, t1x:460, t1y:10, t2x:470, t2y:170, soft:true};
lvl.tiles.switch5 = {tip:"switch", color:"crvena", invis:false, t1x:460, t1y:170, t2x:630, t2y:180, soft:true};
lvl.tiles.switch4 = {tip:"switch", color:"ljubicasta", invis:false, t1x:180, t1y:10, t2x:190, t2y:180, soft:true};
lvl.tiles.switch3 = {tip:"switch", color:"ljubicasta", invis:false, t1x:10, t1y:180, t2x:190, t2y:190, soft:true};
lvl.tiles.switch2 = {tip:"switch", color:"crvena", invis:false, t1x:170, t1y:10, t2x:180, t2y:170, soft:true};
lvl.tiles.switch1 = {tip:"switch", color:"crvena", invis:false, t1x:10, t1y:170, t2x:180, t2y:180, soft:true};
var lvl = ((_level0.levelBuffer.coop_level22 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 45;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_laser:1, freeze:1, vrijeme:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:300, p1_y:420, p1_weapon:1, p2_x:340, p2_y:420, p2_weapon:1};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:163, y:48, sx:3, sy:-3, rotacija:1};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:493, y:48, sx:-3, sy:-3, rotacija:1};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:326, y:144, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:86, y:144, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:546, y:144, sx:1, sy:1, metalna:false};
lvl.tiles.ljestve10 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:420, t1y:280, t2x:440, t2y:420};
lvl.tiles.tramboline9 = {tip:"tramboline", invis:false, t1x:410, t1y:280, t2x:450, t2y:290, soft:true};
lvl.tiles.ljestve8 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:470, t1y:280, t2x:490, t2y:420};
lvl.tiles.tramboline7 = {tip:"tramboline", invis:false, t1x:460, t1y:280, t2x:500, t2y:290, soft:true};
lvl.tiles.zid6 = {tip:"zid", invis:false, t1x:450, t1y:230, t2x:460, t2y:420, soft:true};
lvl.tiles.ljestve5 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:160, t1y:280, t2x:180, t2y:420};
lvl.tiles.tramboline4 = {tip:"tramboline", invis:false, t1x:150, t1y:280, t2x:190, t2y:290, soft:true};
lvl.tiles.ljestve3 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:210, t1y:280, t2x:230, t2y:420};
lvl.tiles.tramboline2 = {tip:"tramboline", invis:false, t1x:200, t1y:280, t2x:240, t2y:290, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:190, t1y:230, t2x:200, t2y:420, soft:true};
var lvl = ((_level0.levelBuffer.coop_level23 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_laser:1, freeze:1, vrijeme:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:300, p1_y:410, p1_weapon:1, p2_x:340, p2_y:410, p2_weapon:1};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:235, y:234, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:445, y:234, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:235, y:33, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:445, y:33, sx:1, sy:1, metalna:false};
lvl.tiles.keks6 = {tip:"keks", item:"weapon_hook", invis:true, t1x:300, t1y:210, t2x:350, t2y:220, soft:true};
lvl.tiles.led5 = {tip:"led", invis:false, t1x:10, t1y:410, t2x:630, t2y:420, soft:true};
lvl.tiles.keks4 = {tip:"keks", item:"weapon_hook", invis:true, t1x:300, t1y:10, t2x:350, t2y:20, soft:true};
lvl.tiles.ljestve3 = {tip:"ljestve", p1ok:0, p2ok:1, invis:false, t1x:600, t1y:200, t2x:620, t2y:410};
lvl.tiles.ljestve2 = {tip:"ljestve", p1ok:1, p2ok:0, invis:false, t1x:20, t1y:200, t2x:40, t2y:410};
lvl.tiles.led1 = {tip:"led", invis:false, t1x:10, t1y:200, t2x:630, t2y:210, soft:true};
var lvl = ((_level0.levelBuffer.coop_level24 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 30;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_laser:1, freeze:1, vrijeme:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:300, p1_y:410, p1_weapon:1, p2_x:340, p2_y:410, p2_weapon:1};
lvl.lopte.normalna1 = {id:5, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:133, y:114, sx:1, sy:1, metalna:false};
lvl.tiles.led1 = {tip:"led", invis:false, t1x:10, t1y:410, t2x:630, t2y:420, soft:true};
var lvl = ((_level0.levelBuffer.coop_level25 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_laser:1, freeze:1, vrijeme:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:300, p1_y:420, p1_weapon:1, p2_x:340, p2_y:420, p2_weapon:1};
lvl.lopte.kisobran6 = {id:2, tip:"kisobran", boja:"zelena", splitway:"double", battleId:0, ghostBall:false, x:62, y:178, sx:-3, sy:3, rotacija:1};
lvl.lopte.kisobran5 = {id:2, tip:"kisobran", boja:"zelena", splitway:"double", battleId:0, ghostBall:false, x:137, y:57, sx:-3, sy:3, rotacija:1};
lvl.lopte.kisobran4 = {id:2, tip:"kisobran", boja:"zelena", splitway:"double", battleId:0, ghostBall:false, x:539, y:112, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran3 = {id:2, tip:"kisobran", boja:"zelena", splitway:"double", battleId:0, ghostBall:false, x:582, y:178, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran2 = {id:2, tip:"kisobran", boja:"zelena", splitway:"double", battleId:0, ghostBall:false, x:507, y:57, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:307, y:70, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran1 = {id:2, tip:"kisobran", boja:"zelena", splitway:"double", battleId:0, ghostBall:false, x:99, y:112, sx:-3, sy:3, rotacija:1};
lvl.tiles.zid8 = {tip:"zid", invis:false, t1x:90, t1y:290, t2x:170, t2y:300, soft:true};
lvl.tiles.traka7 = {tip:"traka", brz:-60, invis:false, t1x:170, t1y:290, t2x:320, t2y:300, soft:true};
lvl.tiles.keks6 = {tip:"keks", item:"null", invis:false, t1x:210, t1y:20, t2x:220, t2y:130, soft:true};
lvl.tiles.keks5 = {tip:"keks", item:"null", invis:false, t1x:410, t1y:20, t2x:420, t2y:130, soft:true};
lvl.tiles.traka4 = {tip:"traka", brz:60, invis:false, t1x:320, t1y:290, t2x:470, t2y:300, soft:true};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:470, t1y:290, t2x:550, t2y:300, soft:true};
lvl.tiles.ljestve2 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:310, t1y:290, t2x:330, t2y:420};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:230, t1y:130, t2x:400, t2y:140, soft:true};
var lvl = ((_level0.levelBuffer.coop_level26 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 85;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_laser:1, freeze:1, vrijeme:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:300, p1_y:140, p1_weapon:1, p2_x:340, p2_y:140, p2_weapon:1};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:324, y:239, sx:0, sy:1, metalna:false};
lvl.lopte.kisobran2 = {id:4, tip:"kisobran", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:135, y:113, sx:-3, sy:3, rotacija:-1};
lvl.lopte.kisobran1 = {id:4, tip:"kisobran", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:516, y:113, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:149, y:238, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:509, y:238, sx:1, sy:1, metalna:false};
lvl.tiles.switch3 = {tip:"switch", color:"crvena", invis:false, t1x:370, t1y:150, t2x:380, t2y:420, soft:true};
lvl.tiles.switch2 = {tip:"switch", color:"crvena", invis:false, t1x:270, t1y:150, t2x:280, t2y:420, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:270, t1y:140, t2x:380, t2y:150, soft:true};
var lvl = ((_level0.levelBuffer.coop_level27 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_laser:1, freeze:1, vrijeme:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:300, p1_y:420, p1_weapon:1, p2_x:350, p2_y:420, p2_weapon:1};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:364, y:207, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:284, y:207, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:4, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:167, y:127, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:477, y:127, sx:1, sy:1, metalna:false};
lvl.tiles.keks5 = {tip:"keks", item:"shield_invincible", invis:true, t1x:310, t1y:120, t2x:340, t2y:130, soft:true};
lvl.tiles.zid4 = {tip:"zid", invis:false, t1x:520, t1y:230, t2x:530, t2y:240, soft:true};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:110, t1y:230, t2x:120, t2y:240, soft:true};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:310, t1y:110, t2x:340, t2y:120, soft:true};
lvl.tiles.keks1 = {tip:"keks", item:"null", invis:false, t1x:300, t1y:300, t2x:350, t2y:310, soft:true};
var lvl = ((_level0.levelBuffer.coop_level28 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 100;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_laser:1, freeze:1, vrijeme:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:40, p1_y:420, p1_weapon:1, p2_x:90, p2_y:420, p2_weapon:1};
lvl.lopte.normalna8 = {id:3, tip:"normalna", boja:"roza", splitway:"double", battleId:0, ghostBall:false, x:57, y:87, sx:1, sy:1, metalna:false};
lvl.lopte.normalna7 = {id:3, tip:"normalna", boja:"roza", splitway:"double", battleId:0, ghostBall:false, x:103, y:47, sx:1, sy:1, metalna:false};
lvl.lopte.normalna6 = {id:3, tip:"normalna", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:41, y:37, sx:1, sy:1, metalna:false};
lvl.lopte.normalna5 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:113, y:300, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:205, y:257, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:4, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:285, y:237, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:5, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:412, y:180, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:5, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:561, y:80, sx:1, sy:1, metalna:false};
lvl.tiles.switch6 = {tip:"switch", color:"zuta", invis:false, t1x:130, t1y:10, t2x:140, t2y:130, soft:true};
lvl.tiles.switch5 = {tip:"switch", color:"zuta", invis:false, t1x:10, t1y:120, t2x:130, t2y:130, soft:true};
lvl.tiles.switch4 = {tip:"switch", color:"crvena", invis:false, t1x:170, t1y:10, t2x:180, t2y:420, soft:true};
lvl.tiles.switch3 = {tip:"switch", color:"ljubicasta", invis:false, t1x:230, t1y:10, t2x:240, t2y:420, soft:true};
lvl.tiles.switch2 = {tip:"switch", color:"plava", invis:false, t1x:330, t1y:10, t2x:340, t2y:420, soft:true};
lvl.tiles.switch1 = {tip:"switch", color:"zelena", invis:false, t1x:480, t1y:10, t2x:490, t2y:420, soft:true};
var lvl = ((_level0.levelBuffer.coop_level29 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 70;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:3, weapon_hook:1, weapon_laser:1, freeze:1, vrijeme:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:2, shield_invincible:1, bodovi3:2};
lvl.igraci = {p1_x:310, p1_y:420, p1_weapon:1, p2_x:360, p2_y:420, p2_weapon:1};
lvl.lopte.normalna5 = {id:4, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:354, y:112, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:4, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:316, y:112, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:5, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:475, y:99, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:4, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:335, y:69, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:5, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:195, y:99, sx:1, sy:1, metalna:false};
lvl.tiles.keks7 = {tip:"keks", item:"vrijeme", invis:false, t1x:410, t1y:240, t2x:540, t2y:250, soft:true};
lvl.tiles.keks6 = {tip:"keks", item:"null", invis:false, t1x:270, t1y:240, t2x:400, t2y:250, soft:true};
lvl.tiles.keks5 = {tip:"keks", item:"null", invis:false, t1x:130, t1y:240, t2x:260, t2y:250, soft:true};
lvl.tiles.zid4 = {tip:"zid", invis:false, t1x:540, t1y:10, t2x:550, t2y:250, soft:true};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:400, t1y:10, t2x:410, t2y:250, soft:true};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:260, t1y:10, t2x:270, t2y:250, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:120, t1y:10, t2x:130, t2y:250, soft:true};
var lvl = ((_level0.levelBuffer.coop_level30 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 40;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:3, weapon_hook:1, weapon_laser:1, freeze:1, vrijeme:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:2, shield_invincible:1, bodovi3:2};
lvl.igraci = {p1_x:310, p1_y:120, p1_weapon:1, p2_x:340, p2_y:120, p2_weapon:1};
lvl.lopte.normalna3 = {id:4, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:120, y:64, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:4, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:520, y:64, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:5, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:329, y:196, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran1 = {id:1, tip:"kisobran", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:325, y:24, sx:3, sy:3, rotacija:1};
lvl.tiles.keks16 = {tip:"keks", item:"shield_plain", invis:false, t1x:330, t1y:40, t2x:360, t2y:50, soft:true};
lvl.tiles.switch15 = {tip:"switch", color:"zelena", invis:false, t1x:10, t1y:120, t2x:230, t2y:130, soft:true};
lvl.tiles.switch14 = {tip:"switch", color:"zelena", invis:false, t1x:410, t1y:120, t2x:630, t2y:130, soft:true};
lvl.tiles.zid13 = {tip:"zid", invis:false, t1x:10, t1y:320, t2x:20, t2y:330, soft:true};
lvl.tiles.zid12 = {tip:"zid", invis:false, t1x:210, t1y:320, t2x:240, t2y:330, soft:true};
lvl.tiles.zid11 = {tip:"zid", invis:false, t1x:140, t1y:320, t2x:170, t2y:330, soft:true};
lvl.tiles.zid10 = {tip:"zid", invis:false, t1x:70, t1y:320, t2x:100, t2y:330, soft:true};
lvl.tiles.zid9 = {tip:"zid", invis:false, t1x:540, t1y:320, t2x:570, t2y:330, soft:true};
lvl.tiles.zid8 = {tip:"zid", invis:false, t1x:470, t1y:320, t2x:500, t2y:330, soft:true};
lvl.tiles.zid7 = {tip:"zid", invis:false, t1x:400, t1y:320, t2x:430, t2y:330, soft:true};
lvl.tiles.zid6 = {tip:"zid", invis:false, t1x:400, t1y:10, t2x:410, t2y:320, soft:true};
lvl.tiles.zid5 = {tip:"zid", invis:false, t1x:230, t1y:10, t2x:240, t2y:320, soft:true};
lvl.tiles.switch4 = {tip:"switch", color:"zuta", invis:false, t1x:240, t1y:120, t2x:400, t2y:130, soft:true};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:360, t1y:10, t2x:370, t2y:50, soft:true};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:280, t1y:10, t2x:290, t2y:50, soft:true};
lvl.tiles.keks1 = {tip:"keks", item:"shield_plain", invis:false, t1x:290, t1y:40, t2x:320, t2y:50, soft:true};
var lvl = ((_level0.levelBuffer.coop_level31 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 120;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, bodovi1:1};
lvl.igraci = {p1_x:290, p1_y:420, p1_weapon:1, p2_x:340, p2_y:420, p2_weapon:1};
lvl.lopte.normalna15 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:315, y:45, sx:1, sy:1, metalna:false};
lvl.lopte.normalna14 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:208, y:45, sx:1, sy:1, metalna:false};
lvl.lopte.normalna13 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:529, y:45, sx:1, sy:1, metalna:false};
lvl.lopte.normalna12 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:101, y:45, sx:1, sy:1, metalna:false};
lvl.lopte.normalna11 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:422, y:45, sx:1, sy:1, metalna:false};
lvl.lopte.normalna10 = {id:3, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:315, y:137, sx:1, sy:1, metalna:false};
lvl.lopte.normalna9 = {id:3, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:208, y:137, sx:1, sy:1, metalna:false};
lvl.lopte.normalna8 = {id:3, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:529, y:137, sx:1, sy:1, metalna:false};
lvl.lopte.normalna7 = {id:3, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:101, y:137, sx:1, sy:1, metalna:false};
lvl.lopte.normalna6 = {id:3, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:422, y:137, sx:1, sy:1, metalna:false};
lvl.lopte.normalna5 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:315, y:230, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:208, y:230, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:529, y:230, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:101, y:230, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:422, y:230, sx:1, sy:1, metalna:false};
lvl.tiles.keks3 = {tip:"keks", item:"shield_plain", invis:false, t1x:10, t1y:270, t2x:630, t2y:280, soft:true};
lvl.tiles.keks2 = {tip:"keks", item:"shield_plain", invis:false, t1x:10, t1y:180, t2x:630, t2y:190, soft:true};
lvl.tiles.keks1 = {tip:"keks", item:"shield_invincible", invis:false, t1x:10, t1y:90, t2x:630, t2y:100, soft:true};
var lvl = ((_level0.levelBuffer.coop_level32 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 90;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:280, p1_y:420, p1_weapon:1, p2_x:370, p2_y:420, p2_weapon:1};
lvl.lopte.normalna10 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:273, y:34, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna9 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:473, y:34, sx:1, sy:1, metalna:false};
lvl.lopte.normalna8 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:166, y:273, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna7 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:276, y:263, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna6 = {id:4, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:69, y:288, sx:1, sy:1, metalna:false};
lvl.lopte.normalna5 = {id:4, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:582, y:293, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:496, y:273, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:396, y:263, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:193, y:34, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:393, y:34, sx:1, sy:1, metalna:false};
lvl.tiles.ljestve8 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:20, t1y:200, t2x:40, t2y:420};
lvl.tiles.ljestve7 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:600, t1y:200, t2x:620, t2y:420};
lvl.tiles.switch6 = {tip:"switch", color:"crvena", invis:false, t1x:190, t1y:210, t2x:200, t2y:420, soft:true};
lvl.tiles.switch5 = {tip:"switch", color:"ljubicasta", invis:false, t1x:120, t1y:210, t2x:130, t2y:420, soft:true};
lvl.tiles.switch4 = {tip:"switch", color:"ljubicasta", invis:false, t1x:520, t1y:210, t2x:530, t2y:420, soft:true};
lvl.tiles.switch3 = {tip:"switch", color:"crvena", invis:false, t1x:450, t1y:210, t2x:460, t2y:420, soft:true};
lvl.tiles.led2 = {tip:"led", invis:false, t1x:10, t1y:200, t2x:630, t2y:210, soft:false};
lvl.tiles.switch1 = {tip:"switch", color:"narandjasta", invis:false, t1x:320, t1y:210, t2x:330, t2y:420, soft:true};
var lvl = ((_level0.levelBuffer.coop_level33 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 30;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:280, p1_y:220, p1_weapon:1, p2_x:370, p2_y:220, p2_weapon:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"plavozelena", splitway:"double", battleId:0, ghostBall:false, x:247, y:83, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"plavozelena", splitway:"double", battleId:0, ghostBall:false, x:397, y:83, sx:1, sy:1, metalna:false};
lvl.tiles.zid21 = {tip:"zid", invis:false, t1x:520, t1y:400, t2x:560, t2y:410, soft:true};
lvl.tiles.zid20 = {tip:"zid", invis:false, t1x:420, t1y:400, t2x:460, t2y:410, soft:true};
lvl.tiles.zid19 = {tip:"zid", invis:false, t1x:300, t1y:400, t2x:340, t2y:410, soft:true};
lvl.tiles.zid18 = {tip:"zid", invis:false, t1x:180, t1y:400, t2x:220, t2y:410, soft:true};
lvl.tiles.zid17 = {tip:"zid", invis:false, t1x:80, t1y:400, t2x:120, t2y:410, soft:true};
lvl.tiles.zid16 = {tip:"zid", invis:false, t1x:550, t1y:230, t2x:560, t2y:400, soft:true};
lvl.tiles.zid15 = {tip:"zid", invis:false, t1x:520, t1y:230, t2x:530, t2y:400, soft:true};
lvl.tiles.zid14 = {tip:"zid", invis:false, t1x:450, t1y:230, t2x:460, t2y:400, soft:true};
lvl.tiles.zid13 = {tip:"zid", invis:false, t1x:420, t1y:230, t2x:430, t2y:400, soft:true};
lvl.tiles.zid12 = {tip:"zid", invis:false, t1x:330, t1y:230, t2x:340, t2y:400, soft:true};
lvl.tiles.zid11 = {tip:"zid", invis:false, t1x:300, t1y:230, t2x:310, t2y:400, soft:true};
lvl.tiles.zid10 = {tip:"zid", invis:false, t1x:210, t1y:230, t2x:220, t2y:400, soft:true};
lvl.tiles.zid9 = {tip:"zid", invis:false, t1x:180, t1y:230, t2x:190, t2y:400, soft:true};
lvl.tiles.zid8 = {tip:"zid", invis:false, t1x:110, t1y:230, t2x:120, t2y:400, soft:true};
lvl.tiles.zid7 = {tip:"zid", invis:false, t1x:80, t1y:230, t2x:90, t2y:400, soft:true};
lvl.tiles.traka6 = {tip:"traka", brz:-60, invis:false, t1x:330, t1y:220, t2x:430, t2y:230, soft:true};
lvl.tiles.traka5 = {tip:"traka", brz:-60, invis:false, t1x:450, t1y:220, t2x:530, t2y:230, soft:true};
lvl.tiles.traka4 = {tip:"traka", brz:-60, invis:false, t1x:550, t1y:220, t2x:630, t2y:230, soft:true};
lvl.tiles.traka3 = {tip:"traka", brz:60, invis:false, t1x:210, t1y:220, t2x:310, t2y:230, soft:true};
lvl.tiles.traka2 = {tip:"traka", brz:60, invis:false, t1x:110, t1y:220, t2x:190, t2y:230, soft:true};
lvl.tiles.traka1 = {tip:"traka", brz:60, invis:false, t1x:10, t1y:220, t2x:90, t2y:230, soft:true};
var lvl = ((_level0.levelBuffer.coop_level34 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 110;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:280, p1_y:420, p1_weapon:1, p2_x:370, p2_y:420, p2_weapon:1};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:278, y:199, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:55, y:52, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran1 = {id:4, tip:"kisobran", boja:"plava", splitway:"double", battleId:0, ghostBall:false, x:582, y:54, sx:3, sy:3, rotacija:1};
lvl.tiles.zid14 = {tip:"zid", invis:false, t1x:440, t1y:180, t2x:450, t2y:190, soft:true};
lvl.tiles.zid13 = {tip:"zid", invis:false, t1x:10, t1y:90, t2x:100, t2y:100, soft:true};
lvl.tiles.switch12 = {tip:"switch", color:"narandjasta", invis:false, t1x:90, t1y:10, t2x:100, t2y:90, soft:true};
lvl.tiles.zid11 = {tip:"zid", invis:false, t1x:80, t1y:170, t2x:90, t2y:180, soft:true};
lvl.tiles.zid10 = {tip:"zid", invis:false, t1x:250, t1y:110, t2x:260, t2y:120, soft:true};
lvl.tiles.zid9 = {tip:"zid", invis:false, t1x:520, t1y:230, t2x:530, t2y:240, soft:true};
lvl.tiles.zid8 = {tip:"zid", invis:false, t1x:380, t1y:130, t2x:390, t2y:140, soft:true};
lvl.tiles.zid7 = {tip:"zid", invis:false, t1x:180, t1y:210, t2x:190, t2y:220, soft:true};
lvl.tiles.zid6 = {tip:"zid", invis:false, t1x:100, t1y:270, t2x:110, t2y:280, soft:true};
lvl.tiles.zid5 = {tip:"zid", invis:false, t1x:220, t1y:320, t2x:230, t2y:330, soft:true};
lvl.tiles.zid4 = {tip:"zid", invis:false, t1x:310, t1y:290, t2x:320, t2y:300, soft:true};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:430, t1y:330, t2x:440, t2y:340, soft:true};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:530, t1y:100, t2x:630, t2y:110, soft:true};
lvl.tiles.switch1 = {tip:"switch", color:"narandjasta", invis:false, t1x:520, t1y:10, t2x:530, t2y:110, soft:true};
var lvl = ((_level0.levelBuffer.coop_level35 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 25;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:260, p1_y:420, p1_weapon:1, p2_x:290, p2_y:420, p2_weapon:1};
lvl.lopte.normalna16 = {id:1, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:605, y:24, sx:1, sy:1, metalna:false};
lvl.lopte.normalna15 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:562, y:100, sx:0, sy:1, metalna:true};
lvl.lopte.normalna14 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:514, y:140, sx:0, sy:1, metalna:true};
lvl.lopte.normalna13 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:467, y:190, sx:0, sy:1, metalna:true};
lvl.lopte.normalna12 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:419, y:141, sx:0, sy:1, metalna:true};
lvl.lopte.normalna11 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:372, y:101, sx:0, sy:1, metalna:true};
lvl.lopte.normalna10 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:312, y:190, sx:0, sy:1, metalna:true};
lvl.lopte.normalna9 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:264, y:140, sx:0, sy:1, metalna:true};
lvl.lopte.normalna8 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:217, y:100, sx:0, sy:1, metalna:true};
lvl.lopte.normalna7 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:169, y:141, sx:0, sy:1, metalna:true};
lvl.lopte.normalna6 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:122, y:191, sx:0, sy:1, metalna:true};
lvl.lopte.normalna5 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:539, y:278, sx:1, sy:1, metalna:true};
lvl.lopte.normalna4 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:319, y:278, sx:1, sy:1, metalna:true};
lvl.lopte.normalna3 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:99, y:278, sx:1, sy:1, metalna:true};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"roza", splitway:"double", battleId:0, ghostBall:false, x:426, y:267, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:1, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:35, y:24, sx:1, sy:1, metalna:false};
lvl.tiles.keks7 = {tip:"keks", item:"null", invis:false, t1x:10, t1y:40, t2x:60, t2y:50, soft:true};
lvl.tiles.zid6 = {tip:"zid", invis:false, t1x:50, t1y:10, t2x:60, t2y:40, soft:true};
lvl.tiles.switch5 = {tip:"switch", color:"plava", invis:false, t1x:10, t1y:50, t2x:60, t2y:60, soft:true};
lvl.tiles.zid4 = {tip:"zid", invis:false, t1x:580, t1y:10, t2x:590, t2y:40, soft:true};
lvl.tiles.keks3 = {tip:"keks", item:"null", invis:false, t1x:580, t1y:40, t2x:630, t2y:50, soft:true};
lvl.tiles.ljestve2 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:20, t1y:200, t2x:40, t2y:420};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:10, t1y:200, t2x:630, t2y:210, soft:false};
var lvl = ((_level0.levelBuffer.coop_level36 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 40;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:270, p1_y:420, p1_weapon:1, p2_x:370, p2_y:420, p2_weapon:1};
lvl.lopte.kisobran4 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:320, y:206, sx:-3, sy:-3, rotacija:1};
lvl.lopte.kisobran3 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:320, y:150, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:146, y:124, sx:-3, sy:-3, rotacija:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:546, y:154, sx:1, sy:1, metalna:false};
lvl.lopte.kontra1 = {id:3, tip:"kontra", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:322, y:83, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:146, y:174, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:496, y:154, sx:1, sy:1, metalna:false};
lvl.tiles.switch5 = {tip:"switch", color:"crvena", invis:false, t1x:370, t1y:10, t2x:380, t2y:280, soft:true};
lvl.tiles.ljestve4 = {tip:"ljestve", p1ok:1, p2ok:0, invis:false, t1x:230, t1y:280, t2x:250, t2y:420};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:10, t1y:280, t2x:630, t2y:290, soft:true};
lvl.tiles.switch2 = {tip:"switch", color:"zuta", invis:false, t1x:260, t1y:10, t2x:270, t2y:280, soft:true};
lvl.tiles.ljestve1 = {tip:"ljestve", p1ok:0, p2ok:1, invis:false, t1x:390, t1y:280, t2x:410, t2y:420};
var lvl = ((_level0.levelBuffer.coop_level37 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 40;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:270, p1_y:420, p1_weapon:1, p2_x:370, p2_y:420, p2_weapon:1};
lvl.lopte.kontra2 = {id:3, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:489, y:71, sx:1, sy:1, metalna:false};
lvl.lopte.kontra1 = {id:3, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:429, y:71, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran1 = {id:4, tip:"kisobran", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:340, y:87, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:493, y:296, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:37, y:297, sx:1, sy:1, metalna:false};
lvl.tiles.keks6 = {tip:"keks", item:"shield_plain", invis:false, t1x:10, t1y:10, t2x:60, t2y:20, soft:true};
lvl.tiles.keks5 = {tip:"keks", item:"dinamit", invis:false, t1x:580, t1y:10, t2x:630, t2y:20, soft:true};
lvl.tiles.zid4 = {tip:"zid", invis:false, t1x:10, t1y:270, t2x:230, t2y:280, soft:true};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:410, t1y:270, t2x:630, t2y:280, soft:true};
lvl.tiles.ljestve2 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:310, t1y:340, t2x:330, t2y:420};
lvl.tiles.tramboline1 = {tip:"tramboline", invis:false, t1x:280, t1y:340, t2x:360, t2y:350, soft:true};
var lvl = ((_level0.levelBuffer.coop_level38 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 110;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:40, p1_y:420, p1_weapon:1, p2_x:600, p2_y:420, p2_weapon:1};
lvl.lopte.kisobran2 = {id:4, tip:"kisobran", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:329, y:89, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna5 = {id:5, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:533, y:122, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:5, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:123, y:122, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:325, y:245, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna3 = {id:4, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:234, y:262, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:72, y:257, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:572, y:257, sx:-1, sy:1, metalna:false};
lvl.tiles.switch3 = {tip:"switch", color:"plava", invis:false, t1x:10, t1y:200, t2x:630, t2y:210, soft:true};
lvl.tiles.switch2 = {tip:"switch", color:"zelena", invis:false, t1x:170, t1y:210, t2x:180, t2y:420, soft:true};
lvl.tiles.switch1 = {tip:"switch", color:"ljubicasta", invis:false, t1x:460, t1y:210, t2x:470, t2y:420, soft:true};
var lvl = ((_level0.levelBuffer.coop_level39 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:280, p1_y:420, p1_weapon:1, p2_x:350, p2_y:420, p2_weapon:1};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:178, y:147, sx:-3, sy:-3, rotacija:1};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:231, y:155, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna3 = {id:4, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:406, y:116, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:4, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:265, y:89, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:113, y:103, sx:1, sy:1, metalna:false};
lvl.tiles.keks7 = {tip:"keks", item:"weapon_double", invis:true, t1x:290, t1y:280, t2x:340, t2y:290, soft:true};
lvl.tiles.traka6 = {tip:"traka", brz:60, invis:false, t1x:320, t1y:270, t2x:540, t2y:280, soft:true};
lvl.tiles.traka5 = {tip:"traka", brz:-60, invis:false, t1x:100, t1y:270, t2x:320, t2y:280, soft:true};
lvl.tiles.ljestve4 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:590, t1y:340, t2x:610, t2y:420};
lvl.tiles.tramboline3 = {tip:"tramboline", invis:false, t1x:570, t1y:340, t2x:630, t2y:350, soft:true};
lvl.tiles.ljestve2 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:30, t1y:340, t2x:50, t2y:420};
lvl.tiles.tramboline1 = {tip:"tramboline", invis:false, t1x:10, t1y:340, t2x:70, t2y:350, soft:true};
var lvl = ((_level0.levelBuffer.coop_level40 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 120;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, freeze:1, uspori_lopte:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:280, p1_y:410, p1_weapon:1, p2_x:350, p2_y:410, p2_weapon:1};
lvl.lopte.normalna5 = {id:3, tip:"normalna", boja:"zelena", splitway:"double", battleId:0, ghostBall:false, x:466, y:36, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"crvena", splitway:"double", battleId:0, ghostBall:false, x:286, y:38, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"zelena", splitway:"double", battleId:0, ghostBall:false, x:76, y:36, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:230, y:173, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:430, y:173, sx:1, sy:1, metalna:false};
lvl.tiles.keks4 = {tip:"keks", item:"shield_plain", invis:false, t1x:10, t1y:110, t2x:630, t2y:120, soft:true};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:570, t1y:410, t2x:630, t2y:420, soft:false};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:10, t1y:410, t2x:70, t2y:420, soft:false};
lvl.tiles.led1 = {tip:"led", invis:false, t1x:70, t1y:410, t2x:570, t2y:420, soft:false};
var lvl = ((_level0.levelBuffer.coop_level41 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 90;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:280, p1_y:420, p1_weapon:1, p2_x:350, p2_y:420, p2_weapon:1};
lvl.lopte.kisobran3 = {id:4, tip:"kisobran", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:315, y:149, sx:-3, sy:3, rotacija:1};
lvl.lopte.normalna6 = {id:2, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:599, y:34, sx:1, sy:1, metalna:false};
lvl.lopte.kontra5 = {id:3, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:206, y:37, sx:1, sy:-1, metalna:false};
lvl.lopte.kontra4 = {id:3, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:426, y:37, sx:1, sy:-1, metalna:false};
lvl.lopte.kontra3 = {id:3, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:546, y:37, sx:1, sy:-1, metalna:false};
lvl.lopte.kontra2 = {id:3, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:316, y:37, sx:1, sy:-1, metalna:false};
lvl.lopte.kontra1 = {id:3, tip:"kontra", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:106, y:37, sx:1, sy:-1, metalna:false};
lvl.lopte.kisobran2 = {id:4, tip:"kisobran", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:443, y:149, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran1 = {id:4, tip:"kisobran", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:183, y:149, sx:-3, sy:3, rotacija:1};
lvl.lopte.normalna5 = {id:2, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:40, y:34, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:2, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:154, y:34, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:2, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:259, y:34, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:370, y:34, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:486, y:34, sx:1, sy:1, metalna:false};
lvl.tiles.keks3 = {tip:"keks", item:"shield_plain", invis:true, t1x:10, t1y:130, t2x:30, t2y:140, soft:true};
lvl.tiles.keks2 = {tip:"keks", item:"weapon_laser", invis:true, t1x:10, t1y:140, t2x:30, t2y:150, soft:true};
lvl.tiles.switch1 = {tip:"switch", color:"plavozelena", invis:false, t1x:10, t1y:70, t2x:630, t2y:80, soft:true};
var lvl = ((_level0.levelBuffer.coop_level42 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 45;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:280, p1_y:420, p1_weapon:1, p2_x:370, p2_y:420, p2_weapon:1};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:331, y:43, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna2 = {id:4, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:411, y:201, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:261, y:201, sx:-1, sy:1, metalna:false};
lvl.tiles.ljestve7 = {tip:"ljestve", p1ok:0, p2ok:1, invis:false, t1x:440, t1y:360, t2x:460, t2y:420};
lvl.tiles.ljestve6 = {tip:"ljestve", p1ok:1, p2ok:0, invis:false, t1x:200, t1y:360, t2x:220, t2y:420};
lvl.tiles.zid5 = {tip:"zid", invis:false, t1x:540, t1y:350, t2x:550, t2y:370, soft:true};
lvl.tiles.zid4 = {tip:"zid", invis:false, t1x:110, t1y:350, t2x:120, t2y:370, soft:true};
lvl.tiles.led3 = {tip:"led", invis:false, t1x:420, t1y:360, t2x:540, t2y:370, soft:true};
lvl.tiles.led2 = {tip:"led", invis:false, t1x:250, t1y:360, t2x:410, t2y:370, soft:true};
lvl.tiles.led1 = {tip:"led", invis:false, t1x:120, t1y:360, t2x:240, t2y:370, soft:true};
var lvl = ((_level0.levelBuffer.coop_level43 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 85;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:280, p1_y:100, p1_weapon:1, p2_x:370, p2_y:100, p2_weapon:1};
lvl.lopte.normalna8 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:162, y:388, sx:1, sy:1, metalna:false};
lvl.lopte.normalna7 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:102, y:388, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran3 = {id:3, tip:"kisobran", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:42, y:388, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna6 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:162, y:318, sx:1, sy:1, metalna:false};
lvl.lopte.normalna5 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:102, y:318, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"plavozelena", splitway:"double", battleId:0, ghostBall:false, x:42, y:318, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"plava", splitway:"double", battleId:0, ghostBall:false, x:162, y:248, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"plava", splitway:"double", battleId:0, ghostBall:false, x:102, y:248, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"plava", splitway:"double", battleId:0, ghostBall:false, x:42, y:248, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:62, y:159, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:42, y:49, sx:3, sy:3, rotacija:1};
lvl.tiles.switch4 = {tip:"switch", color:"narandjasta", invis:false, t1x:10, t1y:350, t2x:630, t2y:360, soft:false};
lvl.tiles.switch3 = {tip:"switch", color:"plava", invis:false, t1x:10, t1y:280, t2x:630, t2y:290, soft:false};
lvl.tiles.switch2 = {tip:"switch", color:"zelena", invis:false, t1x:10, t1y:210, t2x:630, t2y:220, soft:false};
lvl.tiles.switch1 = {tip:"switch", color:"zuta", invis:false, t1x:10, t1y:100, t2x:630, t2y:110, soft:true};
var lvl = ((_level0.levelBuffer.coop_level44 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:280, p1_y:420, p1_weapon:1, p2_x:370, p2_y:420, p2_weapon:1};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:28, y:312, sx:1, sy:1, metalna:true};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:613, y:312, sx:-1, sy:1, metalna:true};
lvl.lopte.kisobran4 = {id:3, tip:"kisobran", boja:"roza", splitway:"normal", battleId:3, ghostBall:false, x:576, y:219, sx:-3, sy:3, rotacija:1};
lvl.lopte.kisobran3 = {id:3, tip:"kisobran", boja:"roza", splitway:"normal", battleId:3, ghostBall:false, x:65, y:219, sx:3, sy:3, rotacija:-1};
lvl.lopte.kisobran2 = {id:4, tip:"kisobran", boja:"plavozelena", splitway:"normal", battleId:3, ghostBall:false, x:564, y:69, sx:-3, sy:3, rotacija:1};
lvl.lopte.kisobran1 = {id:4, tip:"kisobran", boja:"plavozelena", splitway:"normal", battleId:3, ghostBall:false, x:85, y:69, sx:3, sy:3, rotacija:-1};
lvl.tiles.keks3 = {tip:"keks", item:"freeze", invis:true, t1x:280, t1y:280, t2x:300, t2y:290, soft:true};
lvl.tiles.keks2 = {tip:"keks", item:"speed", invis:true, t1x:350, t1y:280, t2x:370, t2y:290, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:true, t1x:300, t1y:280, t2x:350, t2y:330, soft:true};
var lvl = ((_level0.levelBuffer.coop_level45 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 50;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:280, p1_y:420, p1_weapon:1, p2_x:370, p2_y:420, p2_weapon:1};
lvl.lopte.kisobran1 = {id:4, tip:"kisobran", boja:"zelena", splitway:"double", battleId:0, ghostBall:false, x:298, y:54, sx:3, sy:3, rotacija:1};
lvl.tiles.zid10 = {tip:"zid", invis:true, t1x:410, t1y:100, t2x:430, t2y:110, soft:true};
lvl.tiles.zid9 = {tip:"zid", invis:true, t1x:270, t1y:280, t2x:290, t2y:290, soft:true};
lvl.tiles.zid8 = {tip:"zid", invis:true, t1x:10, t1y:300, t2x:30, t2y:310, soft:true};
lvl.tiles.zid7 = {tip:"zid", invis:true, t1x:200, t1y:200, t2x:220, t2y:210, soft:true};
lvl.tiles.zid6 = {tip:"zid", invis:true, t1x:400, t1y:260, t2x:420, t2y:270, soft:true};
lvl.tiles.zid5 = {tip:"zid", invis:true, t1x:530, t1y:230, t2x:550, t2y:240, soft:true};
lvl.tiles.zid4 = {tip:"zid", invis:true, t1x:540, t1y:130, t2x:560, t2y:140, soft:true};
lvl.tiles.zid3 = {tip:"zid", invis:true, t1x:320, t1y:160, t2x:340, t2y:170, soft:true};
lvl.tiles.zid2 = {tip:"zid", invis:true, t1x:130, t1y:280, t2x:150, t2y:290, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:true, t1x:100, t1y:160, t2x:120, t2y:170, soft:true};
var lvl = ((_level0.levelBuffer.coop_level46 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 80;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, weapon_laser:1, freeze:1, vrijeme:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:270, p1_y:410, p1_weapon:1, p2_x:390, p2_y:410, p2_weapon:1};
lvl.lopte.normalna4 = {id:4, tip:"normalna", boja:"crvena", splitway:"normal", battleId:2, ghostBall:false, x:102, y:54, sx:-1, sy:1, metalna:false};
lvl.lopte.kisobran1 = {id:4, tip:"kisobran", boja:"zuta", splitway:"normal", battleId:1, ghostBall:false, x:572, y:54, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna3 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:325, y:257, sx:0, sy:1, metalna:true};
lvl.lopte.normalna2 = {id:4, tip:"normalna", boja:"plava", splitway:"normal", battleId:3, ghostBall:false, x:585, y:239, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"plava", splitway:"normal", battleId:3, ghostBall:false, x:58, y:239, sx:1, sy:1, metalna:false};
lvl.tiles.zid5 = {tip:"zid", invis:false, t1x:160, t1y:10, t2x:170, t2y:110, soft:true};
lvl.tiles.keks4 = {tip:"keks", item:"null", invis:false, t1x:10, t1y:100, t2x:160, t2y:110, soft:true};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:470, t1y:10, t2x:480, t2y:110, soft:true};
lvl.tiles.keks2 = {tip:"keks", item:"null", invis:false, t1x:480, t1y:100, t2x:630, t2y:110, soft:true};
lvl.tiles.led1 = {tip:"led", invis:false, t1x:10, t1y:410, t2x:630, t2y:420, soft:false};
var lvl = ((_level0.levelBuffer.coop_level47 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 25;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, weapon_laser:1, freeze:1, vrijeme:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:270, p1_y:420, p1_weapon:1, p2_x:390, p2_y:420, p2_weapon:1};
lvl.lopte.normalna3 = {id:4, tip:"normalna", boja:"zuta", splitway:"normal", battleId:3, ghostBall:false, x:333, y:146, sx:0, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:2, ghostBall:false, x:136, y:152, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:1, ghostBall:false, x:506, y:152, sx:1, sy:1, metalna:false};
lvl.tiles.zid2 = {tip:"zid", invis:true, t1x:160, t1y:130, t2x:170, t2y:280, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:true, t1x:470, t1y:130, t2x:480, t2y:280, soft:true};
var lvl = ((_level0.levelBuffer.coop_level48 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 45;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, weapon_laser:1, freeze:1, vrijeme:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:240, p1_y:420, p1_weapon:1, p2_x:420, p2_y:420, p2_weapon:1};
lvl.lopte.normalna6 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:377, y:173, sx:1, sy:-1, metalna:false};
lvl.lopte.normalna5 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:286, y:173, sx:-1, sy:-1, metalna:false};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:486, y:63, sx:1, sy:-1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:156, y:63, sx:-1, sy:-1, metalna:false};
lvl.lopte.normalna2 = {id:4, tip:"normalna", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:526, y:363, sx:1, sy:-1, metalna:false};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:116, y:363, sx:-1, sy:-1, metalna:false};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:270, t1y:200, t2x:390, t2y:210, soft:true};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:420, t1y:100, t2x:540, t2y:110, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:120, t1y:100, t2x:240, t2y:110, soft:true};
var lvl = ((_level0.levelBuffer.coop_level49 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 50;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, weapon_laser:1, freeze:1, vrijeme:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:180, p1_y:420, p1_weapon:1, p2_x:470, p2_y:420, p2_weapon:1};
lvl.lopte.normalna5 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:537, y:264, sx:0, sy:1, metalna:true};
lvl.lopte.normalna4 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:390, y:264, sx:0, sy:1, metalna:true};
lvl.lopte.normalna3 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:245, y:264, sx:0, sy:1, metalna:true};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:96, y:264, sx:0, sy:1, metalna:true};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"plavozelena", splitway:"double", battleId:0, ghostBall:false, x:113, y:113, sx:1, sy:1, metalna:false};
lvl.tiles.zid4 = {tip:"zid", invis:true, t1x:510, t1y:240, t2x:560, t2y:250, soft:true};
lvl.tiles.zid3 = {tip:"zid", invis:true, t1x:360, t1y:240, t2x:410, t2y:250, soft:true};
lvl.tiles.zid2 = {tip:"zid", invis:true, t1x:220, t1y:240, t2x:270, t2y:250, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:true, t1x:70, t1y:240, t2x:120, t2y:250, soft:true};
var lvl = ((_level0.levelBuffer.coop_level50 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.levelTime = 70;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, weapon_laser:1, freeze:1, vrijeme:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1, shield_invincible:1, bodovi1:1, bodovi2:1, bodovi3:1};
lvl.igraci = {p1_x:240, p1_y:410, p1_weapon:1, p2_x:290, p2_y:410, p2_weapon:1};
lvl.lopte.normalna3 = {id:4, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:312, y:205, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:5, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:90, y:164, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:5, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:555, y:162, sx:-1, sy:1, metalna:false};
lvl.tiles.led7 = {tip:"led", invis:false, t1x:220, t1y:410, t2x:420, t2y:420, soft:true};
lvl.tiles.zid6 = {tip:"zid", invis:false, t1x:420, t1y:100, t2x:430, t2y:420, soft:true};
lvl.tiles.zid5 = {tip:"zid", invis:false, t1x:210, t1y:100, t2x:220, t2y:420, soft:true};
lvl.tiles.ljestve4 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:310, t1y:90, t2x:330, t2y:420};
lvl.tiles.keks3 = {tip:"keks", item:"shield_plain", invis:false, t1x:380, t1y:10, t2x:430, t2y:20, soft:true};
lvl.tiles.keks2 = {tip:"keks", item:"shield_invincible", invis:false, t1x:220, t1y:10, t2x:270, t2y:20, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:210, t1y:90, t2x:430, t2y:100, soft:true};
var lvl = ((_level0.levelBuffer.vs_level1 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "normal_vs";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1};
lvl.igraci = {p1_x:310, p1_y:420, p1_weapon:1, p2_x:350, p2_y:420, p2_weapon:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:369, y:269, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:291, y:269, sx:-1, sy:1, metalna:false};
var lvl = ((_level0.levelBuffer.vs_level2 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "normal_vs";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1};
lvl.igraci = {p1_x:40, p1_y:420, p1_weapon:1, p2_x:600, p2_y:420, p2_weapon:1};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:318, y:179, sx:0, sy:1, metalna:false};
var lvl = ((_level0.levelBuffer.vs_level3 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "normal_vs";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, uspori_lopte:1};
lvl.igraci = {p1_x:70, p1_y:420, p1_weapon:1, p2_x:580, p2_y:420, p2_weapon:1};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:303, y:227, sx:-3, sy:3, rotacija:-1};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:353, y:227, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:343, y:55, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:303, y:55, sx:-1, sy:1, metalna:false};
lvl.tiles.ljestve3 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:600, t1y:190, t2x:620, t2y:420};
lvl.tiles.ljestve2 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:30, t1y:190, t2x:50, t2y:420};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:10, t1y:190, t2x:630, t2y:200, soft:true};
var lvl = ((_level0.levelBuffer.vs_level4 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "normal_vs";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, uspori_lopte:1};
lvl.igraci = {p1_x:70, p1_y:420, p1_weapon:1, p2_x:80, p2_y:420, p2_weapon:1};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:true, x:199, y:330, sx:1, sy:1, metalna:false};
var lvl = ((_level0.levelBuffer.vs_level5 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "normal_vs";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, uspori_lopte:1};
lvl.igraci = {p1_x:70, p1_y:420, p1_weapon:1, p2_x:80, p2_y:420, p2_weapon:1};
lvl.lopte.kisobran1 = {id:4, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:true, x:165, y:318, sx:3, sy:-3, rotacija:1};
var lvl = ((_level0.levelBuffer.vs_level6 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "normal_vs";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, weapon_hook:1, uspori_lopte:1};
lvl.igraci = {p1_x:310, p1_y:420, p1_weapon:1, p2_x:360, p2_y:420, p2_weapon:1};
lvl.lopte.normalna4 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:364, y:80, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:259, y:250, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:409, y:250, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:284, y:80, sx:-1, sy:1, metalna:false};
lvl.tiles.switch1 = {tip:"switch", color:"crvena", invis:false, t1x:10, t1y:210, t2x:630, t2y:220, soft:true};
var lvl = ((_level0.levelBuffer.vs_level7 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "normal_vs";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, dinamit:1};
lvl.igraci = {p1_x:50, p1_y:420, p1_weapon:1, p2_x:590, p2_y:420, p2_weapon:1};
lvl.lopte.normalna3 = {id:5, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:327, y:116, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:210, y:238, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:450, y:238, sx:1, sy:1, metalna:false};
lvl.tiles.switch2 = {tip:"switch", color:"ljubicasta", invis:false, t1x:240, t1y:10, t2x:250, t2y:420, soft:true};
lvl.tiles.switch1 = {tip:"switch", color:"plava", invis:false, t1x:400, t1y:10, t2x:410, t2y:420, soft:true};
var lvl = ((_level0.levelBuffer.vs_level8 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "normal_vs";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, dinamit:1};
lvl.igraci = {p1_x:230, p1_y:120, p1_weapon:1, p2_x:410, p2_y:120, p2_weapon:1};
lvl.lopte.normalna2 = {id:4, tip:"normalna", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:243, y:220, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:413, y:220, sx:1, sy:1, metalna:false};
lvl.tiles.led1 = {tip:"led", invis:false, t1x:210, t1y:120, t2x:440, t2y:130, soft:true};
var lvl = ((_level0.levelBuffer.vs_level9 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "normal_vs";
lvl.levelTime = 75;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, dinamit:1};
lvl.igraci = {p1_x:240, p1_y:420, p1_weapon:1, p2_x:420, p2_y:420, p2_weapon:1};
lvl.lopte.normalna9 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:242, y:236, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna8 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:527, y:35, sx:1, sy:1, metalna:false};
lvl.lopte.normalna7 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:458, y:36, sx:1, sy:1, metalna:false};
lvl.lopte.normalna6 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:387, y:35, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna5 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:247, y:35, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:419, y:236, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:178, y:36, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:107, y:35, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:322, y:35, sx:0, sy:1, metalna:false};
lvl.tiles.zid22 = {tip:"zid", invis:false, t1x:560, t1y:10, t2x:570, t2y:110, soft:true};
lvl.tiles.switch21 = {tip:"switch", color:"zuta", invis:false, t1x:500, t1y:100, t2x:560, t2y:110, soft:true};
lvl.tiles.zid20 = {tip:"zid", invis:false, t1x:560, t1y:10, t2x:570, t2y:110, soft:true};
lvl.tiles.switch19 = {tip:"switch", color:"zuta", invis:false, t1x:500, t1y:100, t2x:560, t2y:110, soft:true};
lvl.tiles.zid18 = {tip:"zid", invis:false, t1x:490, t1y:10, t2x:500, t2y:110, soft:true};
lvl.tiles.switch17 = {tip:"switch", color:"ljubicasta", invis:false, t1x:430, t1y:100, t2x:490, t2y:110, soft:true};
lvl.tiles.zid16 = {tip:"zid", invis:false, t1x:420, t1y:10, t2x:430, t2y:110, soft:true};
lvl.tiles.switch15 = {tip:"switch", color:"zuta", invis:false, t1x:360, t1y:100, t2x:420, t2y:110, soft:true};
lvl.tiles.zid14 = {tip:"zid", invis:false, t1x:350, t1y:10, t2x:360, t2y:110, soft:true};
lvl.tiles.switch13 = {tip:"switch", color:"ljubicasta", invis:false, t1x:290, t1y:100, t2x:350, t2y:110, soft:true};
lvl.tiles.zid12 = {tip:"zid", invis:false, t1x:280, t1y:10, t2x:290, t2y:110, soft:true};
lvl.tiles.switch11 = {tip:"switch", color:"zuta", invis:false, t1x:220, t1y:100, t2x:280, t2y:110, soft:true};
lvl.tiles.zid10 = {tip:"zid", invis:false, t1x:210, t1y:10, t2x:220, t2y:110, soft:true};
lvl.tiles.switch9 = {tip:"switch", color:"ljubicasta", invis:false, t1x:150, t1y:100, t2x:210, t2y:110, soft:true};
lvl.tiles.zid8 = {tip:"zid", invis:false, t1x:140, t1y:10, t2x:150, t2y:110, soft:true};
lvl.tiles.zid7 = {tip:"zid", invis:false, t1x:70, t1y:10, t2x:80, t2y:110, soft:true};
lvl.tiles.switch6 = {tip:"switch", color:"zuta", invis:false, t1x:80, t1y:100, t2x:140, t2y:110, soft:true};
lvl.tiles.zid5 = {tip:"zid", invis:false, t1x:210, t1y:10, t2x:220, t2y:110, soft:true};
lvl.tiles.switch4 = {tip:"switch", color:"ljubicasta", invis:false, t1x:150, t1y:100, t2x:210, t2y:110, soft:true};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:140, t1y:10, t2x:150, t2y:110, soft:true};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:70, t1y:10, t2x:80, t2y:110, soft:true};
lvl.tiles.switch1 = {tip:"switch", color:"zuta", invis:false, t1x:80, t1y:100, t2x:140, t2y:110, soft:true};
var lvl = ((_level0.levelBuffer.vs_level10 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "normal_vs";
lvl.levelTime = 55;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, dinamit:1};
lvl.igraci = {p1_x:240, p1_y:420, p1_weapon:1, p2_x:420, p2_y:420, p2_weapon:1};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:328, y:272, sx:0, sy:1, metalna:true};
lvl.lopte.kisobran4 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:578, y:47, sx:-3, sy:3, rotacija:1};
lvl.lopte.kisobran3 = {id:3, tip:"kisobran", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:78, y:47, sx:3, sy:3, rotacija:-1};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:188, y:47, sx:-3, sy:3, rotacija:1};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:442, y:47, sx:3, sy:3, rotacija:-1};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:120, t1y:130, t2x:130, t2y:280, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:510, t1y:130, t2x:520, t2y:280, soft:true};
var lvl = ((_level0.levelBuffer.vs_level11 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "normal_vs";
lvl.levelTime = 90;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, speed:2, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:240, p1_y:420, p1_weapon:1, p2_x:420, p2_y:420, p2_weapon:1};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:615, y:272, sx:-1, sy:1, metalna:true};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:28, y:272, sx:1, sy:1, metalna:true};
lvl.lopte.kisobran2 = {id:4, tip:"kisobran", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:true, x:200, y:128, sx:-3, sy:3, rotacija:-1};
lvl.lopte.kisobran1 = {id:4, tip:"kisobran", boja:"roza", splitway:"normal", battleId:0, ghostBall:true, x:440, y:128, sx:3, sy:3, rotacija:1};
var lvl = ((_level0.levelBuffer.vs_level12 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "normal_vs";
lvl.levelTime = 90;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, speed:2, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:240, p1_y:420, p1_weapon:1, p2_x:420, p2_y:420, p2_weapon:1};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:257, y:245, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:407, y:245, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:545, y:44, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:88, y:44, sx:-1, sy:1, metalna:false};
lvl.tiles.ljestve5 = {tip:"ljestve", p1ok:1, p2ok:0, invis:false, t1x:600, t1y:180, t2x:620, t2y:420};
lvl.tiles.ljestve4 = {tip:"ljestve", p1ok:0, p2ok:1, invis:false, t1x:20, t1y:180, t2x:40, t2y:420};
lvl.tiles.led3 = {tip:"led", invis:false, t1x:70, t1y:180, t2x:570, t2y:190, soft:true};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:570, t1y:180, t2x:630, t2y:190, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:10, t1y:180, t2x:70, t2y:190, soft:true};
var lvl = ((_level0.levelBuffer.vs_level13 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "normal_vs";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:2, freeze:2, uspori_lopte:2, speed:2, dinamit:2, shield_plain:2};
lvl.igraci = {p1_x:240, p1_y:420, p1_weapon:1, p2_x:420, p2_y:420, p2_weapon:1};
lvl.odskok_lopti = new Object();
lvl.odskok_lopti.normalna = {boja:"default", brzinax:70, gravitacija:360, bounce_off:[0, 235, 235, 235, 235, 235]};
lvl.lopte.normalna6 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:377, y:173, sx:1, sy:-1, metalna:false};
lvl.lopte.normalna5 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:286, y:173, sx:-1, sy:-1, metalna:false};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:486, y:63, sx:1, sy:-1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:156, y:63, sx:-1, sy:-1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:546, y:373, sx:1, sy:-1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:96, y:373, sx:-1, sy:-1, metalna:false};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:270, t1y:200, t2x:390, t2y:210, soft:true};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:420, t1y:100, t2x:540, t2y:110, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:120, t1y:100, t2x:240, t2y:110, soft:true};
var lvl = ((_level0.levelBuffer.vs_level14 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "normal_vs";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:2, freeze:2, uspori_lopte:2, speed:2, dinamit:2, shield_plain:2};
lvl.igraci = {p1_x:60, p1_y:420, p1_weapon:1, p2_x:580, p2_y:420, p2_weapon:1};
lvl.lopte.kisobran2 = {id:1, tip:"kisobran", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:23, y:21, sx:-3, sy:-3, rotacija:-1};
lvl.lopte.kisobran1 = {id:1, tip:"kisobran", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:618, y:21, sx:3, sy:-3, rotacija:1};
lvl.tiles.ljestve9 = {tip:"ljestve", p1ok:0, p2ok:1, invis:false, t1x:600, t1y:90, t2x:620, t2y:200};
lvl.tiles.ljestve8 = {tip:"ljestve", p1ok:1, p2ok:0, invis:false, t1x:600, t1y:200, t2x:620, t2y:310};
lvl.tiles.ljestve7 = {tip:"ljestve", p1ok:0, p2ok:1, invis:false, t1x:600, t1y:310, t2x:620, t2y:420};
lvl.tiles.ljestve6 = {tip:"ljestve", p1ok:1, p2ok:0, invis:false, t1x:20, t1y:90, t2x:40, t2y:200};
lvl.tiles.zid5 = {tip:"zid", invis:false, t1x:10, t1y:90, t2x:630, t2y:100, soft:true};
lvl.tiles.ljestve4 = {tip:"ljestve", p1ok:0, p2ok:1, invis:false, t1x:20, t1y:200, t2x:40, t2y:310};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:10, t1y:200, t2x:630, t2y:210, soft:true};
lvl.tiles.ljestve2 = {tip:"ljestve", p1ok:1, p2ok:0, invis:false, t1x:20, t1y:310, t2x:40, t2y:420};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:10, t1y:310, t2x:630, t2y:320, soft:true};
var lvl = ((_level0.levelBuffer.vs_level15 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "normal_vs";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:2, freeze:2, uspori_lopte:2, speed:2, dinamit:2, shield_plain:2};
lvl.igraci = {p1_x:60, p1_y:420, p1_weapon:1, p2_x:580, p2_y:420, p2_weapon:1};
lvl.lopte.normalna9 = {id:2, tip:"normalna", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:357, y:115, sx:1, sy:1, metalna:false};
lvl.lopte.normalna8 = {id:2, tip:"normalna", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:535, y:50, sx:1, sy:1, metalna:false};
lvl.lopte.normalna7 = {id:2, tip:"normalna", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:228, y:82, sx:1, sy:1, metalna:false};
lvl.lopte.normalna6 = {id:2, tip:"normalna", boja:"zelena", splitway:"double", battleId:0, ghostBall:false, x:308, y:61, sx:1, sy:1, metalna:false};
lvl.lopte.normalna5 = {id:2, tip:"normalna", boja:"zelena", splitway:"double", battleId:0, ghostBall:false, x:160, y:115, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:2, tip:"normalna", boja:"zelena", splitway:"double", battleId:0, ghostBall:false, x:499, y:124, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:2, tip:"normalna", boja:"zelena", splitway:"double", battleId:0, ghostBall:false, x:160, y:46, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"narandjasta", splitway:"double", battleId:0, ghostBall:false, x:61, y:55, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"zelena", splitway:"double", battleId:0, ghostBall:false, x:399, y:50, sx:1, sy:1, metalna:false};
lvl.tiles.zid9 = {tip:"zid", invis:false, t1x:580, t1y:180, t2x:630, t2y:190, soft:true};
lvl.tiles.zid8 = {tip:"zid", invis:false, t1x:500, t1y:180, t2x:560, t2y:190, soft:true};
lvl.tiles.keks7 = {tip:"keks", item:"null", invis:false, t1x:430, t1y:180, t2x:480, t2y:190, soft:true};
lvl.tiles.zid6 = {tip:"zid", invis:false, t1x:360, t1y:180, t2x:410, t2y:190, soft:true};
lvl.tiles.keks5 = {tip:"keks", item:"null", invis:false, t1x:290, t1y:180, t2x:340, t2y:190, soft:true};
lvl.tiles.zid4 = {tip:"zid", invis:false, t1x:220, t1y:180, t2x:270, t2y:190, soft:true};
lvl.tiles.keks3 = {tip:"keks", item:"null", invis:false, t1x:150, t1y:180, t2x:200, t2y:190, soft:true};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:80, t1y:180, t2x:130, t2y:190, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:10, t1y:180, t2x:60, t2y:190, soft:true};
var lvl = ((_level0.levelBuffer.vs_level16 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "normal_vs";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:2, freeze:2, uspori_lopte:2, speed:2, dinamit:2, shield_plain:2};
lvl.igraci = {p1_x:290, p1_y:200, p1_weapon:1, p2_x:360, p2_y:200, p2_weapon:1};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:235, y:234, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:445, y:234, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:235, y:33, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:445, y:33, sx:1, sy:1, metalna:false};
lvl.tiles.led4 = {tip:"led", invis:false, t1x:10, t1y:410, t2x:630, t2y:420, soft:true};
lvl.tiles.ljestve3 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:600, t1y:200, t2x:620, t2y:410};
lvl.tiles.ljestve2 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:20, t1y:200, t2x:40, t2y:410};
lvl.tiles.led1 = {tip:"led", invis:false, t1x:10, t1y:200, t2x:630, t2y:210, soft:true};
var lvl = ((_level0.levelBuffer.vs_level17 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "cloned";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:2, freeze:2, uspori_lopte:2, speed:2, dinamit:2, shield_plain:2};
lvl.igraci = {p1_x:40, p1_y:420, p1_weapon:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:111, y:268, sx:1, sy:1, metalna:false};
var lvl = ((_level0.levelBuffer.vs_level18 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "cloned";
lvl.levelTime = 40;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:40, p1_y:420, p1_weapon:1};
lvl.lopte.normalna2 = {id:4, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:160, y:147, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:141, y:288, sx:1, sy:1, metalna:false};
lvl.tiles.switch1 = {tip:"switch", color:"zuta", invis:false, t1x:10, t1y:240, t2x:310, t2y:250, soft:true};
var lvl = ((_level0.levelBuffer.vs_level19 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "cloned";
lvl.levelTime = 40;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:40, p1_y:420, p1_weapon:1};
lvl.lopte.normalna3 = {id:2, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:false, x:124, y:152, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:52, y:37, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:262, y:37, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:102, y:301, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:202, y:301, sx:1, sy:1, metalna:false};
lvl.tiles.ljestve2 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:150, t1y:270, t2x:170, t2y:420};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:10, t1y:270, t2x:310, t2y:280, soft:false};
var lvl = ((_level0.levelBuffer.vs_level20 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "cloned";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:40, p1_y:420, p1_weapon:1};
lvl.lopte.normalna6 = {id:2, tip:"normalna", boja:"plava", splitway:"normal", battleId:0, ghostBall:false, x:32, y:24, sx:1, sy:1, metalna:false};
lvl.lopte.normalna5 = {id:2, tip:"normalna", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:73, y:88, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:2, tip:"normalna", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:212, y:167, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:269, y:43, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:202, y:301, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:132, y:241, sx:1, sy:1, metalna:false};
lvl.tiles.keks8 = {tip:"keks", item:"speed", invis:false, t1x:10, t1y:40, t2x:60, t2y:50, soft:true};
lvl.tiles.zid7 = {tip:"zid", invis:false, t1x:50, t1y:10, t2x:60, t2y:40, soft:true};
lvl.tiles.switch6 = {tip:"switch", color:"plava", invis:false, t1x:220, t1y:10, t2x:230, t2y:100, soft:true};
lvl.tiles.switch5 = {tip:"switch", color:"plava", invis:false, t1x:230, t1y:90, t2x:310, t2y:100, soft:true};
lvl.tiles.zid4 = {tip:"zid", invis:false, t1x:10, t1y:180, t2x:130, t2y:190, soft:true};
lvl.tiles.tramboline3 = {tip:"tramboline", invis:false, t1x:130, t1y:270, t2x:180, t2y:280, soft:true};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:180, t1y:270, t2x:310, t2y:280, soft:true};
lvl.tiles.ljestve1 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:270, t1y:270, t2x:290, t2y:420};
var lvl = ((_level0.levelBuffer.vs_level21 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "cloned";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:60, p1_y:410, p1_weapon:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"ljubicasta", splitway:"double", battleId:0, ghostBall:false, x:91, y:199, sx:1, sy:1, metalna:false};
lvl.tiles.led1 = {tip:"led", invis:false, t1x:10, t1y:410, t2x:310, t2y:420, soft:false};
var lvl = ((_level0.levelBuffer.vs_level22 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "cloned";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:50, p1_y:420, p1_weapon:1};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:196, y:336, sx:3, sy:3, rotacija:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"zuta", splitway:"normal", battleId:0, ghostBall:true, x:163, y:230, sx:0, sy:1, metalna:false};
var lvl = ((_level0.levelBuffer.vs_level23 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "cloned";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:50, p1_y:420, p1_weapon:1};
lvl.lopte.normalna8 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:208, y:73, sx:1, sy:1, metalna:false};
lvl.lopte.normalna7 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:108, y:283, sx:1, sy:1, metalna:false};
lvl.lopte.normalna6 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:138, y:283, sx:1, sy:1, metalna:false};
lvl.lopte.normalna5 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:168, y:283, sx:1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:198, y:283, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:228, y:283, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:88, y:73, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:148, y:73, sx:1, sy:1, metalna:false};
lvl.tiles.ljestve2 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:280, t1y:210, t2x:300, t2y:420};
lvl.tiles.traka1 = {tip:"traka", brz:-60, invis:false, t1x:10, t1y:210, t2x:310, t2y:220, soft:false};
var lvl = ((_level0.levelBuffer.vs_level24 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "cloned";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:90, p1_y:420, p1_weapon:1};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"plavozelena", splitway:"normal", battleId:0, ghostBall:false, x:287, y:306, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran6 = {id:2, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:221, y:47, sx:-3, sy:3, rotacija:1};
lvl.lopte.kisobran5 = {id:2, tip:"kisobran", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:141, y:57, sx:3, sy:-3, rotacija:1};
lvl.lopte.kisobran4 = {id:2, tip:"kisobran", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:161, y:177, sx:-3, sy:3, rotacija:1};
lvl.lopte.kisobran3 = {id:2, tip:"kisobran", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:81, y:187, sx:3, sy:-3, rotacija:1};
lvl.lopte.kisobran2 = {id:2, tip:"kisobran", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:176, y:297, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran1 = {id:2, tip:"kisobran", boja:"narandjasta", splitway:"normal", battleId:0, ghostBall:false, x:116, y:307, sx:3, sy:3, rotacija:1};
lvl.tiles.switch5 = {tip:"switch", color:"zelena", invis:false, t1x:250, t1y:250, t2x:260, t2y:420, soft:true};
lvl.tiles.ljestve4 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:20, t1y:250, t2x:40, t2y:420};
lvl.tiles.ljestve3 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:280, t1y:130, t2x:300, t2y:250};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:10, t1y:130, t2x:310, t2y:140, soft:false};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:10, t1y:250, t2x:310, t2y:260, soft:false};
var lvl = ((_level0.levelBuffer.vs_level25 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "cloned";
lvl.levelTime = 45;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:160, p1_y:420, p1_weapon:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"roza", splitway:"normal", battleId:0, ghostBall:false, x:101, y:105, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"zelena", splitway:"normal", battleId:0, ghostBall:false, x:87, y:343, sx:1, sy:1, metalna:false};
lvl.tiles.zid10 = {tip:"zid", invis:false, t1x:70, t1y:320, t2x:110, t2y:330, soft:true};
lvl.tiles.zid9 = {tip:"zid", invis:false, t1x:100, t1y:330, t2x:110, t2y:420, soft:true};
lvl.tiles.keks8 = {tip:"keks", item:"shield_invincible", invis:false, t1x:60, t1y:360, t2x:100, t2y:370, soft:true};
lvl.tiles.zid7 = {tip:"zid", invis:false, t1x:60, t1y:70, t2x:70, t2y:360, soft:true};
lvl.tiles.ljestve6 = {tip:"ljestve", p1ok:1, p2ok:1, invis:false, t1x:280, t1y:320, t2x:300, t2y:420};
lvl.tiles.led5 = {tip:"led", invis:false, t1x:60, t1y:60, t2x:170, t2y:70, soft:true};
lvl.tiles.tramboline4 = {tip:"tramboline", invis:false, t1x:190, t1y:120, t2x:240, t2y:130, soft:true};
lvl.tiles.tramboline3 = {tip:"tramboline", invis:false, t1x:260, t1y:190, t2x:310, t2y:200, soft:true};
lvl.tiles.tramboline2 = {tip:"tramboline", invis:false, t1x:190, t1y:260, t2x:240, t2y:270, soft:true};
lvl.tiles.tramboline1 = {tip:"tramboline", invis:false, t1x:260, t1y:320, t2x:310, t2y:330, soft:true};
var lvl = ((_level0.levelBuffer.vs_level26 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "cloned";
lvl.levelTime = 45;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:160, p1_y:420, p1_weapon:1};
lvl.lopte.normalna1 = {id:5, tip:"normalna", boja:"ljubicasta", splitway:"normal", battleId:0, ghostBall:false, x:178, y:91, sx:1, sy:1, metalna:false};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:150, t1y:190, t2x:170, t2y:210, soft:true};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:240, t1y:240, t2x:260, t2y:260, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:60, t1y:240, t2x:80, t2y:260, soft:true};
var lvl = ((_level0.levelBuffer.vs_level27 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "cloned";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:160, p1_y:420, p1_weapon:1};
lvl.lopte.kisobran3 = {id:3, tip:"kisobran", boja:"plavozelena", splitway:"double", battleId:0, ghostBall:false, x:163, y:112, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran2 = {id:2, tip:"kisobran", boja:"zuta", splitway:"double", battleId:0, ghostBall:false, x:87, y:236, sx:3, sy:3, rotacija:1};
lvl.lopte.kisobran1 = {id:2, tip:"kisobran", boja:"zuta", splitway:"double", battleId:0, ghostBall:false, x:237, y:236, sx:3, sy:3, rotacija:1};
lvl.tiles.switch1 = {tip:"switch", color:"zuta", invis:false, t1x:10, t1y:190, t2x:310, t2y:200, soft:true};
var lvl = ((_level0.levelBuffer.vs_level28 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "tag";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:140, p1_y:420, p1_weapon:1, p2_x:480, p2_y:420, p2_weapon:1};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:2, ghostBall:false, x:146, y:236, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:1, ghostBall:false, x:476, y:236, sx:-1, sy:1, metalna:false};
var lvl = ((_level0.levelBuffer.vs_level29 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "tag";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:140, p1_y:420, p1_weapon:1, p2_x:470, p2_y:420, p2_weapon:1};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"crvena", splitway:"double", battleId:2, ghostBall:false, x:136, y:226, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"crvena", splitway:"double", battleId:1, ghostBall:false, x:466, y:226, sx:-1, sy:1, metalna:false};
var lvl = ((_level0.levelBuffer.vs_level30 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "tag";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:140, p1_y:420, p1_weapon:1, p2_x:470, p2_y:420, p2_weapon:1};
lvl.lopte.normalna3 = {id:4, tip:"normalna", boja:"crvena", splitway:"normal", battleId:3, ghostBall:false, x:333, y:146, sx:0, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:2, ghostBall:false, x:136, y:152, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:1, ghostBall:false, x:506, y:152, sx:1, sy:1, metalna:false};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:160, t1y:130, t2x:170, t2y:280, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:470, t1y:130, t2x:480, t2y:280, soft:true};
var lvl = ((_level0.levelBuffer.vs_level31 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "tag";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:280, p1_y:420, p1_weapon:1, p2_x:390, p2_y:420, p2_weapon:1};
lvl.lopte.kontra2 = {id:3, tip:"kontra", boja:"crvena", splitway:"normal", battleId:2, ghostBall:false, x:78, y:375, sx:-1, sy:1, metalna:false};
lvl.lopte.kontra1 = {id:3, tip:"kontra", boja:"crvena", splitway:"normal", battleId:1, ghostBall:false, x:568, y:375, sx:1, sy:1, metalna:false};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"crvena", splitway:"normal", battleId:3, ghostBall:false, x:230, y:147, sx:-3, sy:-3, rotacija:1};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"crvena", splitway:"normal", battleId:3, ghostBall:false, x:416, y:147, sx:3, sy:-3, rotacija:1};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:430, t1y:210, t2x:480, t2y:220, soft:true};
lvl.tiles.zid2 = {tip:"zid", invis:false, t1x:10, t1y:10, t2x:630, t2y:20, soft:true};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:180, t1y:210, t2x:230, t2y:220, soft:true};
var lvl = ((_level0.levelBuffer.vs_level32 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "tag";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:270, p1_y:410, p1_weapon:1, p2_x:390, p2_y:410, p2_weapon:1};
lvl.lopte.normalna5 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:2, ghostBall:false, x:82, y:48, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:1, ghostBall:false, x:552, y:48, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:3, ghostBall:false, x:325, y:257, sx:0, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:3, ghostBall:false, x:585, y:219, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:3, ghostBall:false, x:65, y:219, sx:1, sy:1, metalna:false};
lvl.tiles.zid5 = {tip:"zid", invis:false, t1x:160, t1y:10, t2x:170, t2y:110, soft:true};
lvl.tiles.keks4 = {tip:"keks", item:"null", invis:false, t1x:10, t1y:100, t2x:160, t2y:110, soft:true};
lvl.tiles.zid3 = {tip:"zid", invis:false, t1x:470, t1y:10, t2x:480, t2y:110, soft:true};
lvl.tiles.keks2 = {tip:"keks", item:"null", invis:false, t1x:480, t1y:100, t2x:630, t2y:110, soft:true};
lvl.tiles.led1 = {tip:"led", invis:false, t1x:10, t1y:410, t2x:630, t2y:420, soft:false};
var lvl = ((_level0.levelBuffer.vs_level33 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "tag";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:270, p1_y:420, p1_weapon:1, p2_x:390, p2_y:420, p2_weapon:1};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:2, ghostBall:false, x:576, y:49, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:1, ghostBall:false, x:65, y:49, sx:1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:3, ghostBall:false, x:576, y:259, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:3, ghostBall:false, x:65, y:259, sx:1, sy:1, metalna:false};
lvl.tiles.ljestve3 = {tip:"ljestve", p1ok:1, p2ok:0, invis:false, t1x:600, t1y:210, t2x:620, t2y:420};
lvl.tiles.ljestve2 = {tip:"ljestve", p1ok:0, p2ok:1, invis:false, t1x:20, t1y:210, t2x:40, t2y:420};
lvl.tiles.zid1 = {tip:"zid", invis:false, t1x:10, t1y:210, t2x:630, t2y:220, soft:true};
var lvl = ((_level0.levelBuffer.vs_level34 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "tag";
lvl.levelTime = 60;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:270, p1_y:210, p1_weapon:1, p2_x:390, p2_y:210, p2_weapon:1};
lvl.lopte.normalna4 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:1, ghostBall:false, x:65, y:259, sx:1, sy:1, metalna:false};
lvl.lopte.normalna3 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:3, ghostBall:false, x:576, y:49, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna2 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:3, ghostBall:false, x:65, y:49, sx:1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:3, tip:"normalna", boja:"crvena", splitway:"normal", battleId:2, ghostBall:false, x:576, y:259, sx:-1, sy:1, metalna:false};
lvl.tiles.led5 = {tip:"led", invis:false, t1x:150, t1y:210, t2x:500, t2y:220, soft:true};
lvl.tiles.traka4 = {tip:"traka", brz:60, invis:false, t1x:10, t1y:210, t2x:150, t2y:220, soft:true};
lvl.tiles.traka3 = {tip:"traka", brz:-60, invis:false, t1x:500, t1y:210, t2x:630, t2y:220, soft:true};
lvl.tiles.ljestve2 = {tip:"ljestve", p1ok:1, p2ok:0, invis:false, t1x:600, t1y:210, t2x:620, t2y:420};
lvl.tiles.ljestve1 = {tip:"ljestve", p1ok:0, p2ok:1, invis:false, t1x:20, t1y:210, t2x:40, t2y:420};
var lvl = ((_level0.levelBuffer.vs_level35 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "tag";
lvl.levelTime = 90;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:270, p1_y:420, p1_weapon:1, p2_x:390, p2_y:420, p2_weapon:1};
lvl.lopte.normalna2 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:28, y:312, sx:1, sy:1, metalna:true};
lvl.lopte.normalna1 = {id:2, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:613, y:312, sx:-1, sy:1, metalna:true};
lvl.lopte.kisobran4 = {id:3, tip:"kisobran", boja:"crvena", splitway:"normal", battleId:3, ghostBall:false, x:576, y:219, sx:-3, sy:3, rotacija:1};
lvl.lopte.kisobran3 = {id:3, tip:"kisobran", boja:"crvena", splitway:"normal", battleId:3, ghostBall:false, x:65, y:219, sx:3, sy:3, rotacija:-1};
lvl.lopte.kisobran2 = {id:3, tip:"kisobran", boja:"crvena", splitway:"normal", battleId:3, ghostBall:false, x:576, y:49, sx:-3, sy:3, rotacija:1};
lvl.lopte.kisobran1 = {id:3, tip:"kisobran", boja:"crvena", splitway:"normal", battleId:3, ghostBall:false, x:65, y:49, sx:3, sy:3, rotacija:-1};
var lvl = ((_level0.levelBuffer.vs_level36 = new Object()));
lvl.tiles = new Object();
lvl.lopte = new Object();
lvl.battle_mode = "tag";
lvl.levelTime = 90;
lvl.granice = {xmin:10, xmax:630, ymin:10, ymax:420};
lvl.ispadajuItemi = {frekvencija:3, weapon_double:1, freeze:1, uspori_lopte:1, speed:1, dinamit:1, shield_plain:1};
lvl.igraci = {p1_x:300, p1_y:420, p1_weapon:1, p2_x:360, p2_y:420, p2_weapon:1};
lvl.lopte.normalna4 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:22, y:306, sx:1, sy:1, metalna:true};
lvl.lopte.normalna3 = {id:1, tip:"normalna", boja:"crvena", splitway:"normal", battleId:0, ghostBall:false, x:607, y:306, sx:-1, sy:1, metalna:true};
lvl.lopte.normalna2 = {id:4, tip:"normalna", boja:"crvena", splitway:"normal", battleId:3, ghostBall:false, x:503, y:239, sx:-1, sy:1, metalna:false};
lvl.lopte.normalna1 = {id:4, tip:"normalna", boja:"crvena", splitway:"normal", battleId:3, ghostBall:false, x:125, y:239, sx:1, sy:1, metalna:false};
init_defaultSA_level = function (levl) {
var _local4 = _root.levelBuffer.defaultLevel.odskok_lopti;
var _local3 = {xmin:10, xmax:630, ymin:10, ymax:420};
levl.tiles = new Object();
levl.lopte = new Object();
levl.odskok_lopti = new Object();
levl.granice = new Object();
levl.granice = _local3;
levl.odskok_lopti = new Object();
levl.odskok_lopti = _local4;
levl.igraci = {p1_x:70, p1_y:420, p1_weapon:2, p2_x:120, p2_y:420, p2_weapon:2};
};
var lvl = ((_level0.levelBuffer.stayingalive2_level1 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 8;
lvl.moguce_lopte = [{tip:"normalna", boja:"crvena", minid:3, maxid:4, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level2 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 17;
lvl.moguce_lopte = [{tip:"normalna", boja:"zuta", minid:2, maxid:3, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level3 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 26;
lvl.moguce_lopte = [{tip:"normalna", boja:"zelena", minid:2, maxid:2, splitway:"normal"}, {tip:"kisobran", boja:"plava", minid:2, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level4 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 25;
lvl.moguce_lopte = [{tip:"normalna", boja:"crvena", minid:2, maxid:3, splitway:"normal"}, {tip:"normalna", boja:"plava", minid:1, maxid:2, splitway:"normal"}, {tip:"normalna", boja:"zuta", minid:1, maxid:2, splitway:"normal"}, {tip:"normalna", boja:"zelena", minid:1, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level5 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 4;
lvl.moguce_lopte = [{tip:"normalna", boja:"narandjasta", minid:5, maxid:5, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level6 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 22;
lvl.moguce_lopte = [{tip:"kisobran", boja:"zuta", minid:3, maxid:3, splitway:"normal"}, {tip:"kisobran", boja:"plava", minid:3, maxid:3, splitway:"normal"}, {tip:"kisobran", boja:"zelena", minid:3, maxid:3, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level7 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 2;
lvl.moguce_lopte = [{tip:"kontra", minid:3, maxid:5, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level8 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 15;
lvl.moguce_lopte = [{tip:"kisobran", boja:"zuta", minid:2, maxid:3, splitway:"normal"}, {tip:"kisobran", boja:"crvena", minid:2, maxid:3, splitway:"normal"}, {tip:"normalna", boja:"plava", minid:3, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"zelena", minid:3, maxid:4, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level9 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 14;
lvl.moguce_lopte = [{tip:"normalna", boja:"ljubicasta", minid:3, maxid:3, splitway:"double"}, {tip:"normalna", boja:"plava", minid:3, maxid:3, splitway:"normal"}, {tip:"kontra", minid:2, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level10 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 8;
lvl.moguce_lopte = [{tip:"normalna", boja:"roza", minid:4, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"plavozelena", minid:4, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"zelena", minid:4, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"zuta", minid:4, maxid:4, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level11 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 17;
lvl.moguce_lopte = [{tip:"normalna", metalna:true, boja:"roza", minid:2, maxid:2, splitway:"normal"}, {tip:"normalna", boja:"crvena", minid:3, maxid:3, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level12 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 35;
lvl.moguce_lopte = [{tip:"normalna", boja:"ljubicasta", minid:1, maxid:2, splitway:"normal"}, {tip:"normalna", boja:"plava", minid:1, maxid:2, splitway:"normal"}, {tip:"normalna", boja:"zelena", minid:2, maxid:3, splitway:"normal"}, {tip:"normalna", boja:"crvena", minid:2, maxid:3, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level13 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 2;
lvl.moguce_lopte = [{tip:"normalna", boja:"zuta", minid:4, maxid:4, splitway:"double"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level14 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 25;
lvl.moguce_lopte = [{tip:"kontra", boja:"zuta", minid:2, maxid:2, splitway:"double"}, {tip:"normalna", boja:"crvena", minid:3, maxid:4, splitway:"normal"}, {tip:"normalna", metalna:true, boja:"crvena", minid:2, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level15 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 37;
lvl.moguce_lopte = [{tip:"normalna", sx:0, boja:"zuta", minid:2, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level16 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 21;
lvl.moguce_lopte = [{tip:"kisobran", boja:"plava", minid:3, maxid:3, splitway:"normal"}, {tip:"normalna", boja:"crvena", minid:3, maxid:3, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level17 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 60;
lvl.moguce_lopte = [{tip:"kontra", boja:"zuta", minid:2, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level18 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 5;
lvl.moguce_lopte = [{tip:"normalna", boja:"roza", minid:5, maxid:5, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level19 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 45;
lvl.moguce_lopte = [{tip:"kisobran", boja:"zuta", minid:2, maxid:2, splitway:"normal"}, {tip:"kisobran", boja:"zelena", minid:2, maxid:2, splitway:"normal"}, {tip:"kisobran", boja:"crvena", minid:2, maxid:2, splitway:"normal"}, {tip:"kisobran", boja:"plavozelena", minid:2, maxid:2, splitway:"normal"}, {tip:"normalna", boja:"plavozelena", metalna:true, minid:2, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level20 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 24;
lvl.moguce_lopte = [{tip:"kisobran", boja:"zuta", minid:3, maxid:3, splitway:"normal"}, {tip:"normalna", boja:"ljubicasta", minid:3, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"plava", minid:1, maxid:3, splitway:"normal"}, {tip:"normalna", sx:0, boja:"roza", minid:2, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level21 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 19;
lvl.moguce_lopte = [{tip:"normalna", sx:0, boja:"zuta", minid:3, maxid:4, splitway:"normal"}, {tip:"normalna", metalna:true, boja:"ljubicasta", minid:2, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level22 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 25;
lvl.moguce_lopte = [{tip:"kontra", minid:3, maxid:3, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level23 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 25;
lvl.moguce_lopte = [{tip:"normalna", boja:"zuta", minid:2, maxid:3, splitway:"normal"}, {tip:"normalna", boja:"zelena", minid:3, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"crvena", minid:2, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"plavozelena", minid:3, maxid:4, splitway:"normal"}, {tip:"normalna", sx:0, boja:"ljubicasta", minid:2, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level24 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 40;
lvl.moguce_lopte = [{tip:"kisobran", boja:"plavozelena", minid:2, maxid:3, splitway:"normal"}, {tip:"normalna", sx:0, boja:"zelena", minid:2, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level25 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 6;
lvl.moguce_lopte = [{tip:"normalna", sx:0, boja:"plava", minid:2, maxid:4, splitway:"double"}, {tip:"normalna", sx:0, boja:"crvena", minid:2, maxid:4, splitway:"double"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level26 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 23;
lvl.moguce_lopte = [{tip:"normalna", boja:"crvena", minid:2, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"zuta", minid:3, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"narandjasta", minid:2, maxid:3, splitway:"double"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level27 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 28;
lvl.moguce_lopte = [{tip:"kontra", minid:2, maxid:3, splitway:"normal"}, {tip:"normalna", boja:"plava", minid:3, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"zelena", minid:2, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"ljubicasta", minid:2, maxid:4, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level28 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 27;
lvl.moguce_lopte = [{tip:"kisobran", boja:"narandjasta", minid:2, maxid:4, splitway:"normal"}, {tip:"kisobran", boja:"roza", minid:2, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"crvena", minid:2, maxid:4, splitway:"normal"}, {tip:"normalna", boja:"zuta", minid:2, maxid:4, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level29 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 60;
lvl.moguce_lopte = [{tip:"kisobran", boja:"crvena", minid:2, maxid:2, splitway:"normal"}, {tip:"kisobran", boja:"ljubicasta", minid:2, maxid:2, splitway:"normal"}, {tip:"kisobran", boja:"narandjasta", minid:2, maxid:2, splitway:"normal"}, {tip:"kisobran", boja:"plava", minid:2, maxid:2, splitway:"normal"}, {tip:"kisobran", boja:"plavozelena", minid:2, maxid:2, splitway:"normal"}, {tip:"kisobran", boja:"roza", minid:2, maxid:2, splitway:"normal"}, {tip:"kisobran", boja:"zelena", minid:2, maxid:2, splitway:"normal"}, {tip:"kisobran", boja:"zuta", minid:2, maxid:2, splitway:"normal"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level30 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 7;
lvl.moguce_lopte = [{tip:"kontra", boja:"crvena", minid:3, maxid:4, splitway:"double"}, {tip:"normalna", boja:"roza", minid:3, maxid:4, splitway:"double"}];
var lvl = ((_level0.levelBuffer.stayingalive2_level31 = new Object()));
init_defaultSA_level(lvl);
lvl.lopti_u_minuti = 2;
lvl.moguce_lopte = [{tip:"kisobran", boja:"zelena", minid:1, maxid:1, splitway:"normal"}];
_root.gotoAndStop("frame_kod");
Frame 34
function level() {
this.creationTime = getTimer();
this.isLevel = _root.crntGame.trenutniLevel;
this.availMods = new Array("single", "stayingalive1", "stayingalive2", "coop", "vs");
this.twopMods = new Array("coop", "vs", "stayingalive2");
this.battleMods = new Array("tag", "normal_vs", "cloned");
_root.pointsHistoryAddNew_game();
this.tiles = new Object();
this.tile_switches = new Object();
this.lopte = new Object();
this.ballTypes = new Array("normalna", "kisobran", "kontra");
this.ballSize = new Array(0, 12, 25, 45, 85, 125);
this.ballColors = new Array("zuta", "zelena", "ljubicasta", "crvena", "plava", "narandjasta", "plavozelena", "roza");
this.ballColorTransforms = {zuta:{ra:0, ga:0, ba:0, aa:100, rb:210, gb:210, bb:2, ab:0}, zelena:{ra:0, ga:0, ba:0, aa:100, rb:0, gb:196, bb:38, ab:0}, ljubicasta:{ra:0, ga:0, ba:0, aa:100, rb:132, gb:0, bb:221, ab:0}, crvena:{ra:0, ga:0, ba:0, aa:100, rb:221, gb:0, bb:0, ab:0}, plava:{ra:0, ga:0, ba:0, aa:100, rb:44, gb:0, bb:221, ab:0}, narandjasta:{ra:0, ga:0, ba:0, aa:100, rb:221, gb:132, bb:0, ab:0}, plavozelena:{ra:0, ga:0, ba:0, aa:100, rb:0, gb:169, bb:186, ab:0}, roza:{ra:0, ga:0, ba:0, aa:100, rb:221, gb:0, bb:177, ab:0}};
this.ballSizeRadius = new Array();
this.ballSizeRadiusPow = new Array();
var _local3 = 1;
while (_local3 <= 6) {
this.ballSizeRadius[_local3] = this.ballSize[_local3] / 2;
this.ballSizeRadiusPow[_local3] = Math.pow(this.ballSizeRadius[_local3], 2);
_local3++;
}
this.defaultBodovi = {normalna:4, kisobran:5, kontra:6};
this.ballSensitivityFactor = new Array(0, 0, 8, 15, 30, 50);
this.ballTickSize = new Array(0, 5, 10, 10, 10, 10);
this.ball_kisobranKutevi = [0, 0.87, 0.79, 0.71, 0.61, 0.5];
this.ballMaxNum = 400;
this.ball_startDepth = 3001;
this.cellSize = new Array(0, 20, 30, 50, 90, 130);
_local3 = 1;
while (_local3 < this.cellSize.length) {
this["ballCells" + _local3] = new Object();
_local3++;
}
this.aktivnihLopti_cloned = 0;
this.aktivnihLopti = 0;
this.aktivnih_lopti_boje = new Object();
_local3 = 0;
while (_local3 < this.ballColors.length) {
this.aktivnih_lopti_boje[this.ballColors[_local3]] = 0;
this.aktivnih_lopti_boje[this.ballColors[_local3] + "_cloned"] = 0;
_local3++;
}
this.players = new Object();
this.playerSize = {sir:30, vis:50};
this.playerHitSize = {sir:25, vis:45};
this.playerBallHitSize = {sir:15, vis:42};
this.playerTickSize = 1;
this.playerSpeed = {bx:115, brzinaPoLojtrama:70, pocetnaBrzinaPadanja:550, grav:1200, slidePoLojtrama:350};
this.playerCells = new Object();
this.pucnji = new Object();
this.pucanjMaxNum = 50;
this.pucanj_startDepth = 4001;
this.pucanj_maskaOffset = 100;
this.pucanj_CheckCollision = [0, "Single", "Single", "Laser", "Single"];
this.dropProbability = new Array();
this.spawnedItems = new Object();
this.item_startDepth = 2600;
this.itemMaxNum = 200;
this.bodItemi = ["bodovi1", "bodovi2", "bodovi3", "extra_life"];
this.knownItems = ["weapon_double", "weapon_single", "weapon_laser", "weapon_hook", "freeze", "vrijeme", "speed", "uspori_lopte", "dinamit", "zvijezda", "extra_life", "shield_plain", "shield_invincible", "bodovi1", "bodovi2", "bodovi3"];
this.playerDepth = 2800;
this.tileDepth = {min:1001, max:2000, crnt:1001};
this.ljestveDepth = {min:2001, max:2500, crnt:1901};
var _local4 = _root.createEmptyMovieClip("render_buff", 500);
_local4.createEmptyMovieClip("tileovi", 501);
_local4.createEmptyMovieClip("itemi", 502);
_local4.createEmptyMovieClip("pucnji", 503);
_local4.createEmptyMovieClip("igraci", 504);
_local4.createEmptyMovieClip("lopte", 505);
_local3 = 0;
while (_local3 <= this.ballMaxNum) {
_local4.lopte.createEmptyMovieClip("lopta" + _local3, this.ballStartDepth + _local3);
_local3++;
}
_local4.igraci.createEmptyMovieClip("igrac1", this.playerDepth + 1);
_local4.igraci.createEmptyMovieClip("igrac2", this.playerDepth + 2);
_local3 = 0;
while (_local3 <= this.pucanjMaxNum) {
_local4.pucnji.createEmptyMovieClip("pucanj" + _local3, this.pucanj_startDepth + _local3);
_local3++;
}
_local3 = this.pucanj_maskaOffset;
while (_local3 <= (this.pucanjMaxNum + this.pucanj_maskaOffset)) {
_local4.pucnji.createEmptyMovieClip("maska" + _local3, (this.pucanj_startDepth + _local3) + this.pucanj_maskaOffset);
_local3++;
}
_local3 = 0;
while (_local3 <= this.itemMaxNum) {
_local4.itemi.createEmptyMovieClip("item" + _local3, this.item_startDepth + _local3);
_local3++;
}
this.createLevelRenderer();
}
_root.value_in_array = function (arr, srch) {
for (var _local3 in arr) {
if (arr[_local3] == srch) {
return(true);
}
}
return(false);
};
_root.index_in_array = function (arr, needle) {
for (var _local3 in arr) {
if (_local3 == needle) {
return(true);
}
}
return(false);
};
_root.objectHasValue = function (obj) {
for (var _local2 in obj) {
return(true);
}
return(false);
};
_root.randRange = function (min, max) {
var _local1 = Math.round(Math.random() * (max - min)) + min;
return(_local1);
};
_root.returnDepth = function (obj) {
if ((obj != "tile") && (obj != "ljestve")) {
TRE(this, "DEBUG: Unknown zahtjev za returnDepth: " + obj);
return(false);
}
_root.crntLvl[obj + "Depth"].crnt++;
if (_root.crntLvl[obj + "Depth"].crnt == _root.crntLvl[obj + "Depth"].max) {
_root.crntLvl[obj + "Depth"].crnt = _root.crntLvl[obj + "Depth"].min;
trace("DEBUG: dosegao sam maximum depth Tileova. Funkcija _level0.returnDepth, obj:" + obj);
}
return((_root.crntLvl[obj + "Depth"].crnt - _root.crntLvl[obj + "Depth"].min) + 1);
};
if (AppInfo.DEBUG_MODE == true) {
_root.doTrace = true;
_root.traceLevel = -1;
_root.traceStacker = false;
_root.traceAllFunctions = false;
_root.traceFamerate = true;
_root.traceType = "HTML";
_root.ukljuciProof = true;
} else {
_root.doTrace = false;
_root.traceLevel = -1;
_root.traceStacker = false;
_root.traceAllFunctions = false;
_root.traceFamerate = false;
_root.traceType = "HTML";
_root.ukljuciProof = false;
}
if (_root.doTrace == false) {
_global.TRE = null;
} else {
_global.TRE = function (calee, msg, lvl) {
if ((lvl == 999) && (_root.traceStacker == false)) {
return(true);
}
if ((lvl == 888) && (_root.traceAllFunctions == false)) {
return(true);
}
if (((lvl == undefined) || (lvl <= _root.traceLevel)) || (_root.traceLevel == -1)) {
if (lvl == undefined) {
lvl = "x";
}
var _local7 = new Date();
var _local8 = String(_local7.getHours());
if (_local8.length == 1) {
_local8 = "0" + _local8;
}
var _local5 = String(_local7.getMinutes());
if (_local5.length == 1) {
_local5 = "0" + _local5;
}
var _local6 = String(_local7.getSeconds());
if (_local6.length == 1) {
_local6 = "0" + _local6;
}
var _local3 = String(_local7.getMilliseconds());
if (_local3.length == 2) {
_local3 = "0" + _local3;
}
if (_local3.length == 1) {
_local3 = "00" + _local3;
}
var _local4 = (((_local5 + ":") + _local6) + ":") + _local3;
if (_root.traceFamerate == true) {
_local4 = _local4 + ((" [frmrt: " + _root.countFramerate.framerate) + "]");
}
if (_root.traceType == "HTML") {
if ((lvl == "x") || (lvl <= 1)) {
var _local9 = "#FF0000";
} else if (lvl <= 6) {
var _local9 = "#CC3300";
} else if (lvl <= 10) {
var _local9 = "#996600";
} else if (lvl <= 20) {
var _local9 = "#009900";
} else if (lvl == 44) {
var _local9 = "#A29100";
} else if (lvl == 45) {
var _local9 = "#67477C";
} else if (lvl == 55) {
var _local9 = "#9900CC";
} else if (lvl == 60) {
var _local9 = "#DD00B1";
} else if (lvl == 999) {
var _local9 = "#9933FF";
} else if (lvl == 888) {
var _local9 = "#FF00FF";
}
if (MenuClass.igramOnline()) {
trace(((((((((("<FONT COLOR='" + _local9) + "'><br>") + _local4) + " [") + lvl) + "] |") + calee) + "| <b>") + msg) + "</b></FONT>");
} else {
TREJS.VIAZINC(((((((((("<FONT COLOR='" + _local9) + "'><br>") + _local4) + " [") + lvl) + "] |") + calee) + "| <b>") + msg) + "</b></FONT>");
}
} else {
trace(((((((_local4 + " [") + lvl) + "] ") + " |") + calee) + "|") + msg);
}
}
};
}
_root.startHTMLTracer = function () {
trace("<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>");
trace("<title>Flash trace</title>");
trace("<body bgcolor='#F0F0F0'>");
};
if (_root.traceAllFunctions == true) {
_root.traceType = "text";
} else if (_root.traceType == "HTML") {
_root.startHTMLTracer();
}
if (_root.traceFamerate == true) {
var cnt = _root.createEmptyMovieClip("countFramerate", 6);
cnt.sad = getTimer() + 1000;
cnt.smpls = 0;
cnt.framerate = "NA";
cnt.averageRate = new Array();
cnt.onEnterFrame = function () {
this.smpls++;
if (this.sad <= getTimer()) {
this.framerate = this.smpls;
this.smpls = 0;
this.sad = getTimer() + 1000;
this.averageRate.push(this.framerate);
}
};
}
if (_root.ukljuciProof == true) {
_global.ASProf = {};
ASProf.init = function () {
this._newid = -1;
this._totalTime = 0;
this._methods = {};
this._methodsArr = new this.Array();
this._segmentIDs = {};
this._openSamples = new this.Array();
};
ASProf.begin = function (s) {
if (s == null) {
return(false);
}
if (!this._segmentIDs[s]) {
this._segmentIDs[s] = this._addMethod(s);
}
this._begin(this._segmentIDs[s]);
return(true);
};
ASProf.end = function () {
var _local2 = this._openSamples.pop();
var _local3 = getTimer() - _local2.startTime;
_local2.method.totalTime = _local2.method.totalTime + _local3;
_local2.method.selfTime = _local2.method.selfTime + _local3;
if (_local2._parent) {
_local2._parent.method.selfTime = _local2._parent.method.selfTime - _local3;
} else {
ASProf._totalTime = ASProf._totalTime + _local3;
}
};
ASProf.profile = function (s) {
var f = eval (s);
if (!f) {
return(false);
}
var id = this._addMethod(s);
Set(s, function () {
ASProf._begin(id);
var _local3 = f.apply(this, arguments);
ASProf.end();
return(_local3);
});
ASSetPropFlags(f, null, 0, 1);
for (var i in f) {
Set((s + ".") + i, f[i]);
}
return(true);
};
ASProf.profileObject = function (s) {
var o = eval (s);
if (!o) {
return(false);
}
ASSetPropFlags(o, null, 0, 5);
for (var i in o) {
if (typeof(o[i]) == "function") {
this.profile((s + ".") + i);
}
}
};
ASProf.getFlatGraph = function (order) {
if (order == null) {
order = "selfTime,calls,name";
}
var _local2 = "Flat profile:\n\nEach sample counts as 0.001 seconds.\n % cumulative self self total\n time seconds seconds calls ms/call ms/call name\n";
var _local5 = 0;
this._methodsArr.sortMultiple(order);
var _local6 = this._methodsArr.length;
while (_local6-- , _local6 > -1) {
var _local3 = this._methodsArr[_local6];
if (!_local3.calls) {
} else {
_local2 = _local2 + this._formatNumber((_local3.selfTime ? ((100 * _local3.selfTime) / this._totalTime) : 0), 3, 6);
var _local4 = _local3.selfTime / 1000;
_local5 = _local5 + _local4;
_local2 = _local2 + this._formatNumber(_local5, 3, 10);
_local2 = _local2 + this._formatNumber(_local4, 3, 9);
_local2 = _local2 + this._formatNumber(_local3.calls, 0, 9);
_local2 = _local2 + this._formatNumber(_local3.selfTime / _local3.calls, 3, 9);
_local2 = _local2 + this._formatNumber(_local3.totalTime / _local3.calls, 3, 9);
_local2 = _local2 + ((" " + _local3.name) + newline);
}
}
return(_local2);
};
ASProf._addMethod = function (s) {
var _local2 = ++this._newid;
this._methods[_local2] = new this.Method(s);
this._methodsArr.push(this._methods[_local2]);
return(_local2);
};
ASProf._begin = function (id) {
var _local2 = this._methods[id];
var _local3 = new this.Sample(_local2);
_local2.calls++;
_local3._parent = this._openSamples[this._openSamples.length - 1];
this._openSamples.push(_local3);
};
ASProf._formatNumber = function (n, d, p) {
var _local1 = new ASProf.String(n);
var _local4 = _local1.indexOf(".");
if (_local4 > -1) {
_local1 = _local1.slice(0, (_local4 + d) + 1);
}
var _local2 = _local1.length;
while ((_local2++) < p) {
_local1 = " " + _local1;
}
return(_local1);
};
ASProf.Array = ASconstructor(252, 0);
ASSetNative(ASProf.Array.prototype, 252, "push,pop,concat,shift,unshift,slice,join,splice,toString,sort,reverse,sortOn", 1);
ASProf.Array.prototype.sortMultiple = function (l) {
var cmp = function (a, b, l) {
var _local1 = ASProf.Array.prototype.shift.apply(l);
var _local2 = a[_local1];
var _local3 = b[_local1];
return(((_local2 < _local3) ? -1 : (((_local2 > _local3) ? 1 : ((l.length ? (cmp(a, b, l)) : 0))))));
};
this.sort(function (a, b) {
return(cmp(a, b, ASProf.String.prototype.split.call(l, ",")));
});
};
ASSetPropFlags(ASProf.Array.prototype, null, 3, 7);
ASProf.String = ASconstructor(251, 0);
ASSetNative(ASProf.String.prototype, 251, "valueOf,toString,toUpperCase,toLowerCase,charAt,charCodeAt,concat,indexOf,lastIndexOf,slice,subsring,split,substr,fromCharCode", 1);
ASSetPropFlags(ASProf.String.prototype, null, 3, 7);
ASProf.Method = function (s) {
this.name = s;
this.calls = 0;
this.selfTime = 0;
this.totalTime = 0;
};
ASProf.Sample = function (m) {
this.method = m;
this._parent = null;
this.startTime = getTimer();
};
ASSetPropFlags(ASProf, null, 7);
ASSetPropFlags(_global, "ASProf", 7);
ASProf.init();
_root.keyListener = new Object();
_root.keyListener.onKeyDown = function () {
if (Key.getCode() == 35) {
_root.crntLvl.clearCurrentLevel();
TRE(this, "PROOFING NOW..");
var _local8 = 0;
var _local5 = 0;
while (_local5 < _root.countFramerate.averageRate.length) {
_local8 = _local8 + _root.countFramerate.averageRate[_local5];
_local5++;
}
TRE(this, "AVERAGE FRAMERATE WAS: " + (_local8 / (_root.countFramerate.averageRate.length + 1)));
var _local6 = ASProf.getFlatGraph();
var _local3 = "";
_local3 = _local3 + "<table border='1' cellpadding='1' cellspacing='1' style='border-collapse: collapse' bordercolor='#111111' width='70%' id='AutoNumber1'>";
_local3 = _local3 + "\n<tr>";
_local3 = _local3 + "\n <td width='10%' colspan='7' align='center'>";
var _local4 = 1;
ignorewhites = false;
var _local9 = true;
var _local7 = true;
_local5 = 0;
while (_local5 < _local6.length) {
if (_local6.charAt(_local5) == newline) {
_local4++;
if (_local4 == 5) {
} else if (_local4 == 4) {
_local3 = _local3 + "<tr><td width='10%' align='center'>%<p>time</td><td width='10%' align='center'>cumulative<p>seconds</td><td width='10%' align='center'>self<p>seconds</td><td width='10%' align='center'>calls</td><td width='10%' align='center'>self<p>ms/call</td><td width='10%' align='center'>total<p>ms/call</td><td width='10%' align='center'>name</td></tr>";
} else {
if (_local7) {
_local3 = _local3 + "</td>";
}
if (_local9) {
_local3 = _local3 + "\n</tr>";
}
if (_local4 < 4) {
_local3 = _local3 + "\n<tr>\n <td width='70%' colspan='7' align='center'>";
} else {
_local3 = _local3 + "\n<tr>\n <td width='10%' align='right'>";
}
_local7 = true;
_local9 = true;
ignorewhites = true;
}
} else if ((((_local4 >= 4) && (_local6.charAt(_local5) == " ")) && (_local4 != 4)) && (_local4 != 5)) {
if (ignorewhites == false) {
if (_local7) {
_local3 = _local3 + "</td>";
}
_local3 = _local3 + "\n <td width='10%' align='right'>";
_local7 = true;
ignorewhites = true;
}
} else if ((_local4 != 4) && (_local4 != 5)) {
_local3 = _local3 + _local6.charAt(_local5);
ignorewhites = false;
}
_local5++;
}
_local3 = _local3 + "</tr></table>";
trace(_local3);
Key.removeListener(this);
}
};
Key.addListener(_root.keyListener);
} else {
_global.ASProf = function () {
};
_global.ASProf.end = function () {
};
_global.ASProf.begin = function () {
};
}
_root.attached = 10000;
_root.disableAnimations = false;
_root.nacrtajTocku = function (tx, ty) {
_root.attached++;
var toc = _root.createEmptyMovieClip("tocka" + _root.attached, _root.attached);
TRE(this, (("Crtam debug tocku na X:" + tx) + ", Y:") + ty, 99);
var offset = 10;
with (toc) {
beginFill(255, 100);
lineStyle(1, 16711935, 100);
moveTo(tx - offset, ty - offset);
lineTo(tx + offset, ty - offset);
lineTo(tx + offset, ty + offset);
lineTo(tx - offset, ty + offset);
lineTo(tx - offset, ty - offset);
endFill();
}
};
_root.attached_kvadrat = 150000 /* 0x0249F0 */;
_root.nacrtajKvadrat = function (t1x, t1y, t2x, t2y, lvl) {
var toc = _root.createEmptyMovieClip("tocka" + (_root.attached_kvadrat + lvl), _root.attached_kvadrat + lvl);
TRE(this, (((((("Crtam kvadrat na X1:" + t1x) + ", Y1:") + t1y) + ", X2:") + t2x) + ", Y2:") + t2y, 99);
with (toc) {
beginFill(16711935, 50);
lineStyle(1, 255, 50);
moveTo(t1x, t1y);
lineTo(t2x, t1y);
lineTo(t2x, t2y);
lineTo(t1x, t2y);
lineTo(t1x, t1y);
endFill();
}
};
_root.attached_crta = 200000 /* 0x030D40 */;
_root.nacrtajCrtu = function (t1x, t1y, t2x, t2y, unique_ime) {
_root[unique_ime].removeMovieClip();
_root.attached_crta++;
var toc = _root.createEmptyMovieClip(unique_ime, _root.attached_crta);
with (toc) {
beginFill(16711935, 70);
lineStyle(1, 255, 70);
moveTo(t1x, t1y);
lineTo(t2x, t2y);
endFill();
}
};
_root.ocrtajGrid = function () {
var _local6 = _root.debugGridVel;
if ((_local6 < 6) and (_local6 > 0)) {
var _local5 = _root.createEmptyMovieClip("ocrtajGridM", 3);
var _local2 = _root.crntLvl.cellSize[_local6];
var _local4 = Math.floor(_root.crntLvl.xmin / _local2);
while (_local4 <= Math.floor(_root.crntLvl.xmax / _local2)) {
var _local3 = Math.floor(_root.crntLvl.ymin / _local2);
while (_local3 <= Math.floor(_root.crntLvl.ymax / _local2)) {
_local5.nacrtajGrid(_local4 * _local2, _local3 * _local2, (_local4 + 1) * _local2, (_local3 + 1) * _local2);
_local3++;
}
_local4++;
}
}
};
_root.ocrtajGridIspunjen = function () {
var _local8 = _root.debugCelija;
var _local6 = _root.debugGridVel;
if ((_local6 < 6) and (_local6 > 0)) {
var _local7 = _root.ocrtajGridM;
var _local2 = _root.crntLvl.cellSize[_local6];
var _local4 = Math.floor(_root.crntLvl.xmin / _local2) - 1;
while (_local4 <= (Math.floor(_root.crntLvl.xmax / _local2) + 1)) {
var _local3 = Math.floor(_root.crntLvl.ymin / _local2) - 1;
while (_local3 <= (Math.floor(_root.crntLvl.ymax / _local2) + 1)) {
var _local5 = false;
if (!_root.crntLvl["ballCells" + _local6][(("cell" + _local4) + "_") + _local3]) {
_local5 = true;
}
if (_local5 != true) {
_local7.nacrtajGrid(_local4 * _local2, _local3 * _local2, (_local4 + 1) * _local2, (_local3 + 1) * _local2);
}
_local3++;
}
_local4++;
}
}
};
_root.ocrtajPlayerGridIspunjen = function () {
var _local6 = _root.debugGridVel;
cw = _root.crntLvl.playerSize.sir;
ch = _root.crntLvl.playerSize.vis;
var _local5 = _root.createEmptyMovieClip("ocrtajGridM", 3);
var _local3 = Math.floor(_root.crntLvl.xmin / cw) - 1;
while (_local3 <= (Math.floor(_root.crntLvl.xmax / cw) + 1)) {
var _local2 = Math.floor(_root.crntLvl.ymin / ch) - 1;
while (_local2 <= (Math.floor(_root.crntLvl.ymax / ch) + 1)) {
var _local4 = false;
if (!_root.crntLvl.playerCells[(("cell" + _local3) + "_") + _local2]) {
_local4 = true;
}
if (_local4 != true) {
_local5.nacrtajGrid(_local3 * cw, _local2 * ch, (_local3 + 1) * cw, (_local2 + 1) * ch);
}
_local2++;
}
_local3++;
}
};
MovieClip.prototype.nacrtajGrid = function (x1, y1, x2, y2, obj) {
with (this) {
beginFill(255, 15);
lineStyle(0, 16711935, 100);
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
endFill();
}
};
MovieClip.prototype.createGameObject = function (mod, startLevel) {
if (mod != "editor") {
MenuKeyboard.enableKeyboardMenu(false);
}
delete _root.crntGame;
_root.crntGame = new Object();
_root.crntGame.bodovi = {p1:0, p2:0, coop:0, vs1:0, vs2:0};
_root.crntGame.zivoti = {p1:4, p2:4, coop:4, sa_staze:{}};
_root.crntGame.preciznost = {p1:0, p2:0, p1_hits:0, p2_hits:0};
_root.crntGame.mod = mod;
if (mod == "vs") {
_root.crntGame.vs_score = {p1:0, p2:0};
}
if (startLevel != undefined) {
_root.crntGame.trenutniLevel = startLevel;
_root.crntGame.sljedeciLevel = startLevel + 1;
} else {
_root.crntGame.trenutniLevel = 1;
_root.crntGame.sljedeciLevel = 2;
}
this.pointsHistoryCreateObject_game();
_root.crntGame.ukupniBrojLevela = 0;
var _local3 = 1;
while (_local3 <= 500) {
if (_root.levelBuffer[(mod + "_level") + _local3] == undefined) {
_root.crntGame.ukupniBrojLevela = _local3 - 1;
break;
}
_local3++;
}
if (_root.crntGame.ukupniBrojLevela == 0) {
TRE(this, "DEBUG: nemam levela za ovaj mod: " + mod);
} else {
TRE(this, (("Pronadeno levela za ovaj mod [" + mod) + "]: ") + _root.crntGame.ukupniBrojLevela, 10);
}
_root.attachMovie("ingame_pozadina", "ingame_pozadina", 301);
var _local6 = _root.attachMovie("pozadine_single", "pozadina", 401);
_local6._x = 10;
_local6._y = 10;
var _local7 = _root.attachMovie("interface_single", "ingame_interface", 5300);
_local7.gotoAndStop(mod);
if (mod != "editor") {
this.createMouseHider();
}
if (mod != "editor") {
if ((mod == "stayingalive1") || (mod == "stayingalive2")) {
_root.ingame_interface.stackerDo = this.ingameInterface_SA_game;
} else {
_root.ingame_interface.stackerDo = this.ingameInterface_game;
}
}
if (MenuClass.igramOnline() && (mod != "editor")) {
var _local5 = new LoadVars();
_local5.unique_id = MyCookie.getCookie(MyCookie.UNIQUE_ID);
_local5.play_mode = mod;
_local5.sendAndLoad(AppInfo.countGameUrl(), _local5);
}
_root.gotoAndStop("frame_igra");
};
MovieClip.prototype.createMouseHider = function () {
var _local4 = _root.createEmptyMovieClip("mouseHider", 300);
var _local3 = new Object();
_local3.onMouseMove = function () {
Mouse.show();
_root.mouseHider.startHiding = getTimer() + 2000;
_root.mouseHider.onEnterFrame = function () {
if (getTimer() > this.startHiding) {
Mouse.hide();
this.onEnterFrame = null;
}
};
};
Mouse.addListener(_local3);
Mouse.hide();
};
MovieClip.prototype.removeMouseHider = function () {
Mouse.removeListener(mouseListener);
Mouse.show();
_root.mouseHider.removeMovieClip();
};
MovieClip.prototype.startNewGame = function () {
_root.crntLvl = new level();
if ((_root.crntGame.mod == "stayingalive1") || (_root.crntGame.mod == "stayingalive2")) {
_root.crntLvl.buildLevel_SA();
} else {
_root.crntLvl.buildLevel();
}
};
MovieClip.prototype.finishGame = function (zavrsio) {
var _local6 = _root.crntGame.mod;
if (_local6 != "vs") {
switch (_local6) {
case "single" :
var _local4 = OnlineScores.PLAY_MODE_SINGLE;
var _local7 = MyCookie.OFFLINE_SCORES_SINGLE;
var _local5 = _root.crntGame.bodovi.p1;
break;
case "stayingalive1" :
_local4 = OnlineScores.PLAY_MODE_STAYING1;
_local7 = MyCookie.OFFLINE_SCORES_STAYIN1;
_local5 = _root.crntGame.bodovi.p1;
break;
case "stayingalive2" :
_local4 = OnlineScores.PLAY_MODE_STAYING2;
_local7 = MyCookie.OFFLINE_SCORES_STAYIN2;
_local5 = _root.crntGame.bodovi.coop;
break;
case "coop" :
_local4 = OnlineScores.PLAY_MODE_COOP;
_local7 = MyCookie.OFFLINE_SCORES_COOP;
_local5 = _root.crntGame.bodovi.coop;
break;
default :
TRE(this, "DEBUG nepoznat mod [finishGame] : " + _local6);
}
if (_root.crntGame.trenutniLevel > MyCookie.getCookie(MyCookie.SCORES, MyCookie["MAX_LEVEL_" + _local4])) {
MyCookie.setCookie(MyCookie.SCORES, MyCookie["MAX_LEVEL_" + _local4], _root.crntGame.trenutniLevel);
}
if (MenuClass.igramOnline() && (AppInfo.KORISTIM_SERVER)) {
if (_local5 > OnlineScores.getBestScore(_local4)) {
OnlineScores.setBestScore(_local4, _local5, _root.crntGame.trenutniLevel);
}
} else if (MenuClass.igramOnline() == false) {
OfflineScore.saveScoreIfHighEnough(_local7, _local5, _root.crntGame.trenutniLevel);
}
}
if (_local6 == "single") {
if (zavrsio == true) {
TRE(this, ("finishGame -> kraj igre - zavr\u0161io sve nivoe [" + _local6) + "]", 9);
} else {
TRE(this, ("finishGame -> kraj igre - popu\u0161io sve \u017Eivote ili pritisnuo quit [" + _local6) + "]", 9);
}
}
_root.crntLvl.clearCurrentLevel();
removeMovieClip(_root.ingame_pozadina);
removeMovieClip(_root.ingame_interface);
removeMovieClip(_root.pozadina);
_root.removeMouseHider();
if ((MenuClass.igramOnline() && (getTimer() > (_root.gameOverAdTimer + ((AppInfo.GAME_OVER_AD_PAUSE * 60) * 1000)))) && (AppInfo.SHOW_ADS == true)) {
_root.gameOverAdTimer = getTimer();
} else {
_root.ingame_interface.bodovi_total.bodovi.text = _root.crntGame.bodovi.vs1;
stopAllSounds();
score = _root.crntGame.bodovi.p1;
_root.CurrentScore = _root.crntGame.bodovi.p1;
_global.ipbSend(_root.CurrentScore);
_root._visible = false;
_root.enabled = false;
stop();
}
};
MovieClip.prototype.pointsHistoryCreateObject_game = function () {
_root.crntGame.pointsHistory = new Object();
_root.crntGame.pointsHistory.stavka_br = 0;
_root.crntGame.pointsHistory.brojZapocetihNivoa = 0;
_root.crntGame.pointsHistory.brojIzgubljenihZivota = 0;
_root.crntGame.pointsHistory.brojBonusZivota = 0;
_root.crntGame.pointsHistory.trenPoceo = getTimer();
_root.crntGame.pointsHistory.mod = _root.crntGame.mod;
};
MovieClip.prototype.pointsHistoryAddNew_game = function () {
_root.crntGame.pointsHistory.stavka_br++;
_root.crntGame.pointsHistoryContainer = (_root.crntGame.pointsHistory["stavka" + _root.crntGame.pointsHistory.stavka_br] = new Object());
_root.crntGame.pointsHistoryContainer.item_br = 0;
_root.pointsHistoryaddToList_game("lvl_start", _root.crntLvl.isLevel);
_root.crntGame.pointsHistory.brojZapocetihNivoa++;
};
MovieClip.prototype.pointsHistoryaddToList_game = function (itm, dodatak) {
if (dodatak == undefined) {
dodatak = "[nema dodatka]";
}
TRE("[pointsHistoryaddToList]", ((" item: " + itm) + ", dodatak: ") + dodatak, 60);
_root.crntGame.pointsHistoryContainer.item_br++;
if (dodatak == undefined) {
_root.crntGame.pointsHistoryContainer["item" + _root.crntGame.pointsHistoryContainer.item_br] = {vri:_root.rt.o, dog:itm};
} else {
_root.crntGame.pointsHistoryContainer["item" + _root.crntGame.pointsHistoryContainer.item_br] = {vri:_root.rt.o, dog:itm, dod:dodatak};
}
};
MovieClip.prototype.ispisiPointsHistory_trace = function () {
var _local3 = _root.crntGame.pointsHistory;
for (var _local5 in _local3) {
if (typeof(_local3[_local5]) == "object") {
hist_stav = _local3[_local5];
TRE(this, "  --| " + _local5);
for (var _local4 in hist_stav) {
if (typeof(hist_stav[_local4]) == "object") {
hist_itm = hist_stav[_local4];
TRE(this, "     --| " + _local4);
for (subitm in hist_itm) {
TRE(this, (("        ---|" + subitm) + " = ") + hist_itm[subitm]);
}
} else {
TRE(this, (("    *" + _local4) + " = ") + _root.crntGame.pointsHistory[_local5][_local4]);
}
}
} else {
TRE(this, (("  -" + _local5) + " = ") + _local3[_local5]);
}
}
};
MovieClip.prototype.ingameInterface_game = function () {
this.timeLeft = this.timeLeft - _root.rt.f;
var _local4 = this.timeLeft / this.start_time;
var _local3 = (this.start_x + this.max_x) - (this.max_x * _local4);
this.timebar.bar._x = _local3;
if (this.timeLeft <= 0) {
this.stackerDo = this.ingameOutOfTime_game;
this.attachMovie("ingame_outOfTime", "outofTime", 5401);
this.outofTime._x = ((_root.crntLvl.xmax - _root.crntLvl.xmin) / 2) + _root.crntLvl.xmin;
this.outofTime._y = ((_root.crntLvl.ymax - _root.crntLvl.ymin) / 2) + _root.crntLvl.ymin;
this.outofTime.ani_startTime = getTimer();
var _local5 = new MySound("vrijeme_isteklo", this.outofTime);
_root.rt.outOfTime();
}
};
MovieClip.prototype.ingameOutOfTime_game = function () {
var _local3 = Math.round((_root.rt.o - this.outofTime.ani_startTime) * 0.03) + 1;
this.outofTime.gotoAndStop(_local3);
if (_local3 >= this.outofTime._totalframes) {
removeMovieClip(this.outofTime);
this.stackerDo = this.ingameInterface_game;
this.died_player("vrijeme", 1);
}
};
MovieClip.prototype.ingameInterface_SA_game = function () {
for (var _local4 in _root.crntLvl.lopte) {
if (Math.round(_root.crntLvl.lopte[_local4]._alpha) == 60) {
var _local3 = true;
} else {
var _local3 = false;
}
break;
}
if (!_local3) {
this.thisLevelTime = this.thisLevelTime + _root.rt.f;
}
var _local5 = Math.round((this.thisLevelTime / this.defaultLevelTime) * _root.ingame_interface.stayalive_bar._totalframes);
_root.ingame_interface.stayalive_bar.gotoAndStop(_local5);
if (this.thisLevelTime > this.defaultLevelTime) {
this.thisLevelTime = 0;
_root.crntGame.trenutniLevel++;
_root.ingame_interface.interface_level.level_broj.text = _root.crntGame.trenutniLevel;
if (_root.crntGame.trenutniLevel > _root.crntGame.ukupniBrojLevela) {
this.stackerDo = null;
_root.crntLvl.lvl_hasFinishedTheGame();
} else {
if ((_root.crntGame.trenutniLevel % 2) == 0) {
this.spawnItem_SA("shield_plain");
}
if ((_root.crntGame.trenutniLevel % 5) == 0) {
this.spawnItem_SA("shield_invincible");
}
if ((_root.crntGame.trenutniLevel % 10) == 0) {
this.spawnItem_SA("extra_life", 1);
}
for (var _local4 in _root.crntLvl.lopte) {
if (_root.crntLvl.lopte[_local4].metalna == true) {
_root.crntLvl.lopte[_local4].unistiLoptu("funkcija-bounce_vanjska");
}
}
_root.pozadina.gotoAndStop(_root.crntGame.trenutniLevel);
_root.crntLvl.initLevel_SA();
}
} else if (_root.crntLvl.ispadajuLopte[Math.round(this.thisLevelTime)] != null) {
_root.crntLvl.loptaInit_vanjska(_root.crntLvl.ispadajuLopte[Math.round(this.thisLevelTime)]);
_root.crntLvl.ispadajuLopte[Math.round(this.thisLevelTime)] = null;
}
};
MovieClip.prototype.spawnItem_SA = function (item, num) {
if (num == undefined) {
num = 0;
for (var _local7 in _root.crntLvl.players) {
num++;
}
}
if (num == 1) {
this.spawnItem_item(item, 330 + _root.randRange(-10, 10), 20);
} else if (num == 2) {
var _local5 = [0, 30, 610];
var _local3 = 0;
for (var _local7 in _root.crntLvl.players) {
_local3++;
this.spawnItem_item(item, _local5[_local3] + _root.randRange(-10, 10), 20);
}
} else {
TRE(this, ((("DEBUG spawnItem_SA, kolko itema?:" + num) + "[") + item) + "]");
}
};
level.prototype.buildLevel = function () {
var _local9 = _root.crntGame.mod;
if (_root.value_in_array(this.battleMods, _root.levelBuffer[(_local9 + "_level") + this.isLevel].battle_mode)) {
this.battle_mode = _root.levelBuffer[(_local9 + "_level") + this.isLevel].battle_mode;
var _local12 = {cloned:Msg.INGAME_VS_TYPE_CLONED, tag:Msg.INGAME_VS_TYPE_TAG, normal_vs:Msg.INGAME_VS_TYPE_NORMAL_VS};
_root.ingame_interface.vs_mode.text = Msg.getMsg(_local12[this.battle_mode], _root.ingame_interface.vs_mode, MyStyles.INGAME_TITLE);
} else {
this.battle_mode = false;
}
_root.crntGame.preciznost.p1 = 0;
_root.crntGame.preciznost.p2 = 0;
_root.crntGame.preciznost.p1_hits = 0;
_root.crntGame.preciznost.p2_hits = 0;
this.xmin = _root.levelBuffer[(_local9 + "_level") + this.isLevel].granice.xmin;
this.xmax = _root.levelBuffer[(_local9 + "_level") + this.isLevel].granice.xmax;
this.ymin = _root.levelBuffer[(_local9 + "_level") + this.isLevel].granice.ymin;
this.ymax = _root.levelBuffer[(_local9 + "_level") + this.isLevel].granice.ymax;
var _local3 = _root.levelBuffer[(_local9 + "_level") + this.isLevel].tiles;
_local3.granica_u = {tip:"granica_u", t1x:this.xmin - 10, t1y:this.ymin - 10, t2x:this.xmax + 10, t2y:this.ymin};
_local3.granica_d = {tip:"granica_d", t1x:this.xmin - 10, t1y:this.ymax, t2x:this.xmax + 10, t2y:this.ymax + 10};
_local3.granica_l = {tip:"granica_l", t1x:this.xmin - 10, t1y:this.ymin, t2x:this.xmin, t2y:this.ymax};
_local3.granica_r = {tip:"granica_r", t1x:this.xmax, t1y:this.ymin, t2x:this.xmax + 10, t2y:this.ymax};
_local3 = _root.levelBuffer[(_local9 + "_level") + this.isLevel].odskok_lopti;
if ((((_local3 != undefined) && (_local3.normalna == undefined)) && (_local3.kontra == undefined)) && (_local3.kisobran == undefined)) {
TRE(this, ("DEBUG: definirao sam objekt odskok lopti ali u njemu nema informacije (lvl:" + this.isLevel) + ")");
} else if (_local3 == undefined) {
_local3 = _root.levelBuffer.defaultLevel.odskok_lopti;
} else {
TRE(this, ((("Ovaj level ima definiran objekt odskoka lopti (" + _local9) + "_level") + this.isLevel) + ")", 11);
if (_local3.normalna == undefined) {
_local3.normalna = _root.levelBuffer.defaultLevel.odskok_lopti.normalna;
}
if (_local3.kontra == undefined) {
_local3.kontra = _root.levelBuffer.defaultLevel.odskok_lopti.kontra;
}
if (_local3.kisobran == undefined) {
_local3.kisobran = _root.levelBuffer.defaultLevel.odskok_lopti.kisobran;
}
}
this.odskok_lopti = new Object();
for (var _local11 in _local3) {
if (_local11 == "normalna") {
if (this.odskok_lopti.normalna == undefined) {
this.odskok_lopti.normalna = new Object();
}
var _local8 = _local3[_local11].gravitacija;
this.odskok_lopti.normalna[_local3[_local11].boja] = new Object();
this.odskok_lopti.normalna[_local3[_local11].boja] = new Object();
this.odskok_lopti.normalna[_local3[_local11].boja].gravitacija = _local8;
this.odskok_lopti.normalna[_local3[_local11].boja].brzinax = _local3[_local11].brzinax;
this.odskok_lopti.normalna[_local3[_local11].boja].brzinay = [0];
this.odskok_lopti.normalna[_local3[_local11].boja].bounce_off = [0];
var _local6 = 1;
while (_local6 < _local3[_local11].bounce_off.length) {
this.odskok_lopti.normalna[_local3[_local11].boja].bounce_off[_local6] = _local3[_local11].bounce_off[_local6];
this.odskok_lopti.normalna[_local3[_local11].boja].brzinay[_local6] = -Math.sqrt((2 * _local8) * _local3[_local11].bounce_off[_local6]);
_local6++;
}
} else if (_local11 == "kontra") {
this.odskok_lopti.kontra = new Object();
var _local8 = -_local3[_local11].gravitacija;
this.odskok_lopti.kontra.gravitacija = _local8;
this.odskok_lopti.kontra.brzinax = _local3[_local11].brzinax;
this.odskok_lopti.kontra.brzinay = new Array();
this.odskok_lopti.kontra.bounce_off = [0];
var _local6 = 1;
while (_local6 < _local3[_local11].bounce_off.length) {
this.odskok_lopti.kontra.bounce_off[_local6] = _local3[_local11].bounce_off[_local6];
this.odskok_lopti.kontra.brzinay[_local6] = Math.sqrt((2 * Math.abs(_local8)) * _local3[_local11].bounce_off[_local6]);
_local6++;
}
} else if (_local11 == "kisobran") {
if (this.odskok_lopti.kisobran == undefined) {
this.odskok_lopti.kisobran = new Object();
}
this.odskok_lopti.kisobran[_local3[_local11].boja] = [0];
var _local6 = 1;
while (_local6 < this.ball_kisobranKutevi.length) {
this.odskok_lopti.kisobran[_local3[_local11].boja][_local6] = this.ball_kisobranKutevi[_local6] * _local3[_local11].brzina;
_local6++;
}
} else {
TRE(this, "DEBUG ERROR - \u017Eelim inicijalizirati odskok:" + _local11);
}
}
var _local6 = 0;
while (_local6 < this.ballColors.length) {
if (this.odskok_lopti.normalna.default != undefined) {
if (this.odskok_lopti.normalna[this.ballColors[_local6]] == undefined) {
this.odskok_lopti.normalna[this.ballColors[_local6]] = new Object();
this.odskok_lopti.normalna[this.ballColors[_local6]] = this.odskok_lopti.normalna.default;
}
}
if (this.odskok_lopti.kisobran.default != undefined) {
this.odskok_lopti.kisobran[this.ballColors[_local6]] = new Array();
this.odskok_lopti.kisobran[this.ballColors[_local6]] = this.odskok_lopti.kisobran.default;
}
_local6++;
}
var _local4 = _root.levelBuffer[(_local9 + "_level") + this.isLevel].tiles;
var _local10 = _root.levelBuffer[(_local9 + "_level") + this.isLevel].igraci;
var _local5 = _root.levelBuffer[(_local9 + "_level") + this.isLevel].lopte;
if (_root.levelBuffer[(_local9 + "_level") + this.isLevel].battle_mode != "cloned") {
for (var _local11 in _local4) {
this.makeTile(_local4[_local11], _local11);
}
this.initPlayer(1, _local10.p1_x, _local10.p1_y, _local10.p1_weapon);
if (_local10.p2_x != undefined) {
this.initPlayer(2, _local10.p2_x, _local10.p2_y, _local10.p2_weapon);
}
for (var _local11 in _local5) {
this.loptaInit(_local5[_local11]);
}
} else {
this.cloned = true;
var _local7 = 320;
for (var _local11 in _local4) {
this.makeTile(_local4[_local11], _local11);
_local4[_local11].t1x = _local4[_local11].t1x + _local7;
_local4[_local11].t2x = _local4[_local11].t2x + _local7;
this.makeTile(_local4[_local11], _local11 + "_clone", true);
_local4[_local11].t1x = _local4[_local11].t1x - _local7;
_local4[_local11].t2x = _local4[_local11].t2x - _local7;
}
this.makeTile({tip:"zid", t1x:310, t1y:10, t2x:330, t2y:420}, "battle_splitter");
this.initPlayer(1, _local10.p1_x, _local10.p1_y, _local10.p1_weapon);
this.initPlayer(2, _local10.p1_x + _local7, _local10.p1_y, _local10.p1_weapon);
for (var _local11 in _local5) {
this.loptaInit(_local5[_local11]);
_local5[_local11].cloned = true;
_local5[_local11].x = _local5[_local11].x + _local7;
this.loptaInit(_local5[_local11]);
delete _local5[_local11].cloned;
_local5[_local11].x = _local5[_local11].x - _local7;
}
}
this.calculateDropProbability_level(_root.levelBuffer[(_local9 + "_level") + this.isLevel]);
if (_root.ingame_interface.start_x == undefined) {
_root.ingame_interface.start_x = _root.ingame_interface.timebar.maska._x;
}
_root.ingame_interface.timebar.bar._x = _root.ingame_interface.start_x;
_root.ingame_interface.timeLeft = (_root.ingame_interface.start_time = _root.levelBuffer[(_local9 + "_level") + this.isLevel].levelTime);
_root.ingame_interface.max_x = _root.ingame_interface.timebar.maska._width;
if (_root.crntGame.mod == "vs") {
_root.ingame_interface.interface_level.level_broj.text = (this.isLevel + "/") + _root.crntGame.ukupniBrojLevela;
_root.crntGame.bodovi.p1 = 0;
_root.ingame_interface.bodovi.bodovi.text = 0;
_root.crntGame.bodovi.p2 = 0;
_root.ingame_interface.bodovi2.bodovi.text = 0;
} else {
_root.ingame_interface.interface_level.level_broj.text = this.isLevel;
}
if (this.isLevel > 50) {
_root.pozadina.gotoAndStop(this.isLevel - 35);
} else {
_root.pozadina.gotoAndStop(this.isLevel);
}
if (_local9 != "editor") {
this.createGetReadyAnimation();
var _local17 = new MySound("pocetak_levela");
}
TRE(this, (("Vremena potrebno za buildanje levela: " + (getTimer() - _root.crntLvl.creationTime)) + " ms *stvarno: ") + ((getTimer() - _root.crntLvl.creationTime) * 2), 3);
};
level.prototype.buildLevel_SA = function () {
var _local6 = _root.crntGame.mod;
this.xmin = _root.levelBuffer[(_local6 + "_level") + this.isLevel].granice.xmin;
this.xmax = _root.levelBuffer[(_local6 + "_level") + this.isLevel].granice.xmax;
this.ymin = _root.levelBuffer[(_local6 + "_level") + this.isLevel].granice.ymin;
this.ymax = _root.levelBuffer[(_local6 + "_level") + this.isLevel].granice.ymax;
var _local3 = _root.levelBuffer[(_local6 + "_level") + this.isLevel].tiles;
_local3.granica_u = {tip:"granica_u", t1x:this.xmin - 10, t1y:this.ymin - 10, t2x:this.xmax + 10, t2y:this.ymin};
_local3.granica_d = {tip:"granica_d", t1x:this.xmin - 10, t1y:this.ymax, t2x:this.xmax + 10, t2y:this.ymax + 10};
_local3.granica_l = {tip:"granica_l", t1x:this.xmin - 10, t1y:this.ymin, t2x:this.xmin, t2y:this.ymax};
_local3.granica_r = {tip:"granica_r", t1x:this.xmax, t1y:this.ymin, t2x:this.xmax + 10, t2y:this.ymax};
for (var _local7 in _local3) {
this.makeTile(_local3[_local7], _local7);
}
this.battle_mode = false;
_local3 = _root.levelBuffer[(_local6 + "_level") + this.isLevel].odskok_lopti;
if (((_local3.normalna == undefined) && (_local3.kontra == undefined)) && (_local3.kisobran == undefined)) {
TRE(this, ("DEBUG: definirao sam objekt odskok lopti ali u njemu nema informacije (lvl:" + this.isLevel) + ")");
}
if (_local3 == undefined) {
_local3 = _root.levelBuffer.defaultLevel.odskok_lopti;
TRE(this, "uzimam defaultne vrijednosti odskakanja lopti za ovaj level", 11);
}
this.odskok_lopti = new Object();
for (var _local7 in _local3) {
if (_local7 == "normalna") {
if (this.odskok_lopti.normalna == undefined) {
this.odskok_lopti.normalna = new Object();
}
var _local5 = _local3[_local7].gravitacija;
this.odskok_lopti.normalna[_local3[_local7].boja] = new Object();
this.odskok_lopti.normalna[_local3[_local7].boja] = new Object();
this.odskok_lopti.normalna[_local3[_local7].boja].gravitacija = _local5;
this.odskok_lopti.normalna[_local3[_local7].boja].brzinax = _local3[_local7].brzinax;
this.odskok_lopti.normalna[_local3[_local7].boja].brzinay = [0];
this.odskok_lopti.normalna[_local3[_local7].boja].bounce_off = [0];
var _local4 = 1;
while (_local4 < _local3[_local7].bounce_off.length) {
this.odskok_lopti.normalna[_local3[_local7].boja].bounce_off[_local4] = _local3[_local7].bounce_off[_local4];
this.odskok_lopti.normalna[_local3[_local7].boja].brzinay[_local4] = -Math.sqrt((2 * _local5) * _local3[_local7].bounce_off[_local4]);
_local4++;
}
} else if (_local7 == "kontra") {
this.odskok_lopti.kontra = new Object();
var _local5 = -_local3[_local7].gravitacija;
this.odskok_lopti.kontra.gravitacija = _local5;
this.odskok_lopti.kontra.brzinax = _local3[_local7].brzinax;
this.odskok_lopti.kontra.brzinay = new Array();
this.odskok_lopti.kontra.bounce_off = [0];
var _local4 = 1;
while (_local4 < _local3[_local7].bounce_off.length) {
this.odskok_lopti.kontra.bounce_off[_local4] = _local3[_local7].bounce_off[_local4];
this.odskok_lopti.kontra.brzinay[_local4] = Math.sqrt((2 * Math.abs(_local5)) * _local3[_local7].bounce_off[_local4]);
_local4++;
}
} else if (_local7 == "kisobran") {
if (this.odskok_lopti.kisobran == undefined) {
this.odskok_lopti.kisobran = new Object();
}
this.odskok_lopti.kisobran[_local3[_local7].boja] = [0];
var _local4 = 1;
while (_local4 < this.ball_kisobranKutevi.length) {
this.odskok_lopti.kisobran[_local3[_local7].boja][_local4] = this.ball_kisobranKutevi[_local4] * _local3[_local7].brzina;
_local4++;
}
} else {
TRE(this, "DEBUG ERROR - \u017Eelim inicijalizirati odskok:" + _local7);
}
}
var _local4 = 0;
while (_local4 < this.ballColors.length) {
if (this.odskok_lopti.normalna.default != undefined) {
if (this.odskok_lopti.normalna[this.ballColors[_local4]] == undefined) {
this.odskok_lopti.normalna[this.ballColors[_local4]] = new Object();
this.odskok_lopti.normalna[this.ballColors[_local4]] = this.odskok_lopti.normalna.default;
}
}
if (this.odskok_lopti.kisobran.default != undefined) {
this.odskok_lopti.kisobran[this.ballColors[_local4]] = new Array();
this.odskok_lopti.kisobran[this.ballColors[_local4]] = this.odskok_lopti.kisobran.default;
}
_local4++;
}
_root.ingame_interface.timeLeft = 0;
_root.ingame_interface.timer.sekunde_bijele.text = _root.ingame_interface.timeLeft;
_root.ingame_interface.timer.sekunde_crne.text = _root.ingame_interface.timeLeft;
this.initLevel_SA(true);
TRE(this, (("Vremena potrebno za buildanje levela (stayingAlive): " + (getTimer() - _root.crntLvl.creationTime)) + " ms *stvarno: ") + ((getTimer() - _root.crntLvl.creationTime) * 2), 3);
};
level.prototype.initLevel_SA = function (restart, defaultLevelTime) {
_root.ingame_interface.thisLevelTime = 0;
_root.ingame_interface.defaultLevelTime = 60;
this.calculateBallProbability_SA_level();
_root.ingame_interface.interface_level.level_broj.text = _root.crntGame.trenutniLevel;
if (restart == true) {
TRE(this, "restartam SA level...", 45);
var _local3 = _root.levelBuffer[_root.crntGame.mod + "_level1"].igraci;
this.initPlayer(1, _local3.p1_x, _local3.p1_y, _local3.p1_weapon);
if (_local3.p2_x != undefined) {
this.initPlayer(2, _local3.p2_x, _local3.p2_y, _local3.p2_weapon);
}
for (var _local4 in _root.crntLvl.lopte) {
_root.crntLvl.lopte[_local4].unistiLoptu("funkcija-initLevel_SA");
}
for (var _local6 in _root.crntLvl.pucnji) {
_root.pucanj_unisti(_root.crntLvl.pucnji[_local6]);
}
for (var _local5 in _root.render_buff.itemi) {
if (_root.render_buff.itemi[_local5].used == true) {
_root.render_buff.itemi[_local5].unistiItem_item();
}
}
_root.rt.purgeItems();
_root.rt.dodatci = new Object();
_root.rt.animacije = new Object();
this.dodatci.ingame_interface = _root.ingame_interface;
for (var _local7 in _root.crntLvl.players) {
_root.crntLvl.players[_local7].stackerDo = _root.crntLvl.players[_local7].movePlayer;
}
_root.rt.normalLevel();
}
};
level.prototype.addPoints_level = function (generator, tip, playerid, points) {
if (((playerid != 1) && (playerid != 2)) && (playerid != 3)) {
TRE(this, (((((("DEBUG: nepoznat ID playera u funkciji addPoints_level: " + generator) + ", ") + tip) + ", ") + playerid) + ", ") + points);
}
if ((points < 0) || (points > 10000000)) {
TRE(this, (((((("DEBUG: nepoznat broj bodova u funkciji addPoints_level: " + generator) + ", ") + tip) + ", ") + playerid) + ", ") + points);
}
if (((generator != "item") && (generator != "pop")) && (generator != "level_finish")) {
TRE(this, (((((("DEBUG: nepoznat generator u funkciji addPoints_level: " + generator) + ", ") + tip) + ", ") + playerid) + ", ") + points);
}
switch (_root.crntGame.mod) {
case "single" :
case "vs" :
case "stayingalive1" :
_root.crntGame.bodovi["p" + playerid] = _root.crntGame.bodovi["p" + playerid] + points;
_root.ingame_interface.bodovi.bodovi.text = _root.crntGame.bodovi.p1;
_root.ingame_interface.bodovi2.bodovi.text = _root.crntGame.bodovi.p2;
break;
case "coop" :
case "stayingalive2" :
_root.crntGame.bodovi.coop = _root.crntGame.bodovi.coop + points;
_root.ingame_interface.bodovi.bodovi.text = _root.crntGame.bodovi.coop;
break;
default :
TRE(this, "DEBUG, addPoints_level nepoznat case:" + _root.crntGame.mod);
}
_root.pointsHistoryaddToList_game(generator, points);
};
level.prototype.clearCurrentLevel = function () {
TRE(this, "cistim level!", 9);
removeMovieClip(_root.rt);
removeMovieClip(_root.render_buff);
delete _root.crntLvl;
};
level.prototype.makeTile = function (t, tName, cloned) {
var tip = t.tip;
var ime = tName;
var prioriteti = {granica:2, tileovi:2, traka:2, led:2, tramboline:1, ljestve:4};
if (tip.indexOf("granica") != -1) {
this.tiles[ime] = {tip:tip, t1x:t.t1x, t1y:t.t1y, t2x:t.t2x, t2y:t.t2y};
var tile = this.tiles[ime];
var i = 1;
while (i < this.cellSize.length) {
this.fillCells(this.cellSize[i], this.cellSize[i], tile, ime, this["ballCells" + i]);
i++;
}
this.fillCells(this.playerSize.vis, this.playerSize.sir, tile, ime, this.playerCells);
tile.priority = prioriteti.granica;
tile.tip = "granica";
tile.ocBall_left = "bounceNormal_left";
tile.ocBall_right = "bounceNormal_right";
tile.ocBall_up = "bounceNormal_up";
tile.ocBall_down = "bounceNormal_down";
tile.ocPlayer_left = "zid_left";
tile.ocPlayer_right = "zid_right";
tile.ocPlayer_up = "zid_up";
tile.ocPlayer_down = "zid_down";
} else if (((((((tip == "zid") || (tip == "keks")) || (tip == "traka")) || (tip == "led")) || (tip == "spikes")) || (tip == "tramboline")) || (tip == "switch")) {
this.tiles[ime] = {tip:t.tip, t1x:t.t1x, t1y:t.t1y, t2x:t.t2x, t2y:t.t2y};
var tile = this.tiles[ime];
var i = 1;
while (i < this.cellSize.length) {
this.fillCells(this.cellSize[i], this.cellSize[i], tile, ime, this["ballCells" + i]);
i++;
}
this.fillCells(this.playerSize.vis, this.playerSize.sir, tile, ime, this.playerCells);
tile.ocBall_left = "bounceNormal_left";
tile.ocBall_right = "bounceNormal_right";
if (t.soft == true) {
tile.ocBall_up = "bounceSoft_up";
} else {
tile.ocBall_up = "bounceNormal_up";
}
tile.ocBall_down = "bounceSoft_down";
tile.ocPlayer_left = "zid_left";
tile.ocPlayer_right = "zid_right";
tile.ocPlayer_up = "zid_up";
tile.ocPlayer_down = "zid_down";
tile.priority = prioriteti.tileovi;
if (tip == "traka") {
tile.ocPlayer_up = "traka_up";
tile.brz = t.brz;
tile.priority = prioriteti.traka;
tile.ocBall_up = "bounceNormal_up";
} else if (tip == "led") {
tile.ocPlayer_up = "led_up";
} else if (tip == "tramboline") {
tile.ocPlayer_up = "tramboline_up";
tile.priority = prioriteti.tramboline;
tile.ocBall_up = "bounceNormal_up";
} else if (tip == "spikes") {
tile.ocBall_down = "spikes_down";
} else if (tip == "keks") {
tile.drop_item = t.item;
} else if (tip == "switch") {
this.tile_switches[ime] = tile;
tile.color = t.color;
}
} else if (tip == "ljestve") {
this.tiles[ime] = {tip:t.tip, t1x:t.t1x, t1y:t.t1y, t2x:t.t2x, t2y:t.t2y, p1ok:t.p1ok, p2ok:t.p2ok};
var tile = this.tiles[ime];
this.fillCells(this.playerSize.vis, this.playerSize.sir, tile, ime, this.playerCells);
var offset = 10;
var sredina = (((t.t2x - t.t1x) / 2) + t.t1x);
tile.g_l = sredina - offset;
tile.g_r = sredina + offset;
tile.priority = prioriteti.ljestve;
} else {
TRE(this, "DEBUG: nepoznat tip tilea: " + tip);
}
tile.sirx = (tile.t2x - tile.t1x) / 2;
tile.siry = (tile.t2y - tile.t1y) / 2;
tile.sredx = tile.sirx + tile.t1x;
tile.sredy = tile.siry + tile.t1y;
tile.ime = ime;
if (cloned == true) {
tile.cloned = true;
}
if (tip.indexOf("granica") != -1) {
return(true);
}
var td = _root.returnDepth("tile");
var boja_zid = {ra:70, ga:70, ba:70, aa:100, rb:120, gb:120, bb:0, ab:0};
var boja_led = {ra:60, ga:60, ba:60, aa:100, rb:30, gb:70, bb:255, ab:0};
var boja_keks = {ra:70, ga:70, ba:70, aa:100, rb:61, gb:0, bb:0, ab:0};
var boja_traka = {ra:60, ga:60, ba:60, aa:100, rb:45, gb:65, bb:40, ab:0};
var boja_switch = {ra:50, ga:50, ba:50, aa:100, rb:0, gb:100, bb:0, ab:0};
if (((((((tip == "zid") || (tip == "led")) || (tip == "keks")) || (tip == "traka")) || (tip == "tramboline")) || (tip == "switch")) || (tip == "spikes")) {
if ((tip == "switch") && (tile.sirx < tile.siry)) {
tile.drawTile = _root.render_buff.tileovi.attachMovie("tile_switch_horiz", "tiles_zid_" + td, td + this.tileDepth.min);
} else {
tile.drawTile = _root.render_buff.tileovi.attachMovie("tile_" + tip, "tiles_zid_" + td, td + this.tileDepth.min);
}
tile.drawTile._x = tile.t1x;
tile.drawTile._y = tile.t1y;
tile.drawTile._width = tile.sirx * 2;
tile.drawTile._height = tile.siry * 2;
if (tip == "tramboline") {
MyStyles.applyFancyFormatting(tile.drawTile, MyStyles.INGAME_TILE_TRAMBOLINE);
} else if (tip == "switch") {
var my_color = new Color(tile.drawTile);
var myColorTransform = this.ballColorTransforms[tile.color];
myColorTransform.ra = (myColorTransform.ga = (myColorTransform.ba = 45));
my_color.setTransform(myColorTransform);
} else {
var my_color = new Color(tile.drawTile);
var myColorTransform = eval ("boja_" + tip);
my_color.setTransform(myColorTransform);
}
if (tip == "keks") {
tile.drawTile._alpha = 50;
} else if (tip == "traka") {
var vrh_sirina = 15;
var faktor = (100 / tile.drawTile._xscale);
var sirina_tilea = tile.drawTile._width;
var vrhici = tile.drawTile.createEmptyMovieClip("vrh_trake");
var vrh = 0;
while (vrh <= ((sirina_tilea / 10) - 1)) {
var novi_vrh = tile.drawTile.attachMovie("tile_traka_vrhic", "vrh" + vrh, vrh + 1);
novi_vrh._x = (vrh * 10) * faktor;
novi_vrh._width = vrh_sirina * faktor;
if (tile.brz > 0) {
_root.crntLvl.animate_dodatak((tile.ime + "_vrh_") + vrh, novi_vrh, "f", 0);
} else {
_root.crntLvl.animate_dodatak((tile.ime + "_vrh_") + vrh, novi_vrh, "b", 0);
}
vrh++;
}
}
tile.drawTile.cacheAsBitmap = true;
} else if (tip == "ljestve") {
if ((t.p1ok == 1) && (t.p2ok == 0)) {
var col = 1;
} else if ((t.p1ok == 0) && (t.p2ok == 1)) {
var col = 2;
} else {
col = 0;
}
this.drawLadderTile_level(tile.t1x, tile.t1y, 1, col);
var i = 10;
while (i < ((tile.t2y - tile.t1y) - 10)) {
this.drawLadderTile_level(tile.t1x, tile.t1y + i, 2, col);
i = i + 10;
}
this.drawLadderTile_level(tile.t1x, tile.t2y - 10, 3, col);
}
if (t.invis == true) {
if (_root.crntGame.mod != "editor") {
tile.invis = true;
tile.drawTile._visible = false;
tile.showIfHiddenTile = _root.showHiddenTile;
} else {
tile.drawTile._alpha = 50;
}
}
if (_root.crntGame.mod == "editor") {
tile.drawTile.tile_owner = tile;
tile.drawTile.onRelease = function () {
_level2.editItem("tile", this.tile_owner);
};
}
};
level.prototype.drawTile_level = function (x, y, frm) {
TRE("drawTile_level", "funkcija je izvan upotrebe, sad koristim 9-slices..");
var _local4 = _root.returnDepth("tile");
var _local3 = _root.render_buff.tileovi.attachMovie("tiles_zid_zuti", "tiles_zid_zuti_" + _local4, _local4 + this.tileDepth.min);
_local3._x = x;
_local3._y = y;
_local3.gotoAndStop(frm);
};
level.prototype.drawLadderTile_level = function (x, y, frm, col) {
var _local7 = _root.returnDepth("ljestve");
var _local5 = _root.render_buff.tileovi.attachMovie("tile_ljestve", "tiles_ljestve_" + _local7, _local7 + this.ljestveDepth.min);
_local5._x = x;
_local5._y = y;
if (col == 0) {
_local5.gotoAndStop("frm_" + frm);
} else {
_local5.gotoAndStop("frm_col_" + frm);
var _local8 = new flash.geom.Transform(_local5);
var _local3 = _level0["player_color_" + col];
var _local4 = new flash.geom.ColorTransform();
for (var _local6 in _local3) {
_local4[_local6] = _local3[_local6];
}
_local4.redMultiplier = 0.75;
_local4.greenMultiplier = 0.75;
_local4.blueMultiplier = 0.75;
_local8.colorTransform = _local4;
}
};
MovieClip.prototype.showHiddenTile = function () {
if (this.invis) {
var _local4 = 1.2;
var dodatak_name = this.ime;
if (_root.rt.dodatci[dodatak_name] != undefined) {
_root.rt.dodatci[dodatak_name].timeLeft = _local4;
} else {
var _local3 = new Object();
this.drawTile._visible = true;
_local3.timeLeft = _local4;
_local3.stackerDo = function () {
this.timeLeft = this.timeLeft - _root.rt.f;
if (this.timeLeft <= 0) {
this.tile.drawTile._visible = false;
delete _root.rt.dodatci[this.dodatak_name];
}
};
_root.rt.dodatci[dodatak_name] = _local3;
_root.rt.dodatci[dodatak_name].tile = this;
_root.rt.dodatci[dodatak_name].dodatak_name = dodatak_name;
}
}
};
MovieClip.prototype.unistiTile = function (t, razlog) {
TRE(this, (((((((("uni\u0161ti! tile: " + t.ime) + ", tip:") + t.tip) + ", razlog: ") + razlog) + ", mc: ") + t.drawTile) + ", invis:") + t.invis, 9);
if (_root.crntGame.mod == "editor") {
t.drawTile.removeMovieClip();
delete _root.crntLvl.tiles[t.ime];
return(false);
}
if ((razlog != "pucanj") && (razlog != "switch")) {
TRE(this, ((((((("DEBUG! nepoznat razlog uni\u0161tenja tile-a [" + t.ime) + ", tip:") + t.tip) + ", razlog: ") + razlog) + ", mc: ") + t.drawTile) + "]");
}
t.sredx = -1000;
if (((t.tip == "keks") || (t.tip == "switch")) && (t.invis != true)) {
_root.crntLvl.animate_dodatak(t.ime, t.drawTile, "f", 1, "destroy");
if (t.tip == "switch") {
var _local5 = new MySound("switch", t.drawTile);
}
} else {
t.drawTile.removeMovieClip();
}
};
level.prototype.fillCells = function (cellH, cellW, obj, ime, sustav) {
var _local17 = obj.t1x + 1;
var _local19 = obj.t1y + 1;
var _local16 = obj.t2x - 1;
var _local18 = obj.t2y - 1;
var _local9 = cellH;
var _local10 = cellW;
var _local11 = obj.tip;
var _local8 = Math.floor(_local17 / _local10);
var _local3 = Math.floor(_local16 / _local10);
var _local7 = Math.floor(_local19 / _local9);
var _local4 = Math.floor(_local18 / _local9);
var _local1 = _local8;
while (_local1 <= _local3) {
if (!sustav[(("cell" + _local1) + "_") + _local7]) {
sustav[(("cell" + _local1) + "_") + _local7] = new Object();
}
if (!sustav[(("cell" + _local1) + "_") + _local7].A) {
sustav[(("cell" + _local1) + "_") + _local7].A = new Object();
}
sustav[(("cell" + _local1) + "_") + _local7].A[ime] = obj;
if (!sustav[(("cell" + _local1) + "_") + _local7].B) {
sustav[(("cell" + _local1) + "_") + _local7].B = new Object();
}
sustav[(("cell" + _local1) + "_") + _local7].B[ime] = obj;
if (!sustav[(("cell" + _local1) + "_") + _local7].C) {
sustav[(("cell" + _local1) + "_") + _local7].C = new Object();
}
sustav[(("cell" + _local1) + "_") + _local7].C[ime] = obj;
if (!sustav[(("cell" + _local1) + "_") + _local7].D) {
sustav[(("cell" + _local1) + "_") + _local7].D = new Object();
}
sustav[(("cell" + _local1) + "_") + _local7].D[ime] = obj;
if (_local11 != "granica_u") {
if (((_local19 % _local9) - (_local9 / 2)) < 0) {
var _local12 = true;
if (!sustav[(("cell" + _local1) + "_") + (_local7 - 1)]) {
sustav[(("cell" + _local1) + "_") + (_local7 - 1)] = new Object();
}
if (!sustav[(("cell" + _local1) + "_") + (_local7 - 1)].C) {
sustav[(("cell" + _local1) + "_") + (_local7 - 1)].C = new Object();
}
sustav[(("cell" + _local1) + "_") + (_local7 - 1)].C[ime] = obj;
if (!sustav[(("cell" + _local1) + "_") + (_local7 - 1)].D) {
sustav[(("cell" + _local1) + "_") + (_local7 - 1)].D = new Object();
}
sustav[(("cell" + _local1) + "_") + (_local7 - 1)].D[ime] = obj;
}
}
_local1++;
}
_local1 = _local8;
while (_local1 <= _local3) {
if (!sustav[(("cell" + _local1) + "_") + _local4]) {
sustav[(("cell" + _local1) + "_") + _local4] = new Object();
}
if (!sustav[(("cell" + _local1) + "_") + _local4].A) {
sustav[(("cell" + _local1) + "_") + _local4].A = new Object();
}
sustav[(("cell" + _local1) + "_") + _local4].A[ime] = obj;
if (!sustav[(("cell" + _local1) + "_") + _local4].B) {
sustav[(("cell" + _local1) + "_") + _local4].B = new Object();
}
sustav[(("cell" + _local1) + "_") + _local4].B[ime] = obj;
if (!sustav[(("cell" + _local1) + "_") + _local4].C) {
sustav[(("cell" + _local1) + "_") + _local4].C = new Object();
}
sustav[(("cell" + _local1) + "_") + _local4].C[ime] = obj;
if (!sustav[(("cell" + _local1) + "_") + _local4].D) {
sustav[(("cell" + _local1) + "_") + _local4].D = new Object();
}
sustav[(("cell" + _local1) + "_") + _local4].D[ime] = obj;
if (_local11 != "granica_d") {
if (((_local18 % _local9) - (_local9 / 2)) > 0) {
var _local13 = true;
if (!sustav[(("cell" + _local1) + "_") + (_local4 + 1)]) {
sustav[(("cell" + _local1) + "_") + (_local4 + 1)] = new Object();
}
if (!sustav[(("cell" + _local1) + "_") + (_local4 + 1)].A) {
sustav[(("cell" + _local1) + "_") + (_local4 + 1)].A = new Object();
}
sustav[(("cell" + _local1) + "_") + (_local4 + 1)].A[ime] = obj;
if (!sustav[(("cell" + _local1) + "_") + (_local4 + 1)].B) {
sustav[(("cell" + _local1) + "_") + (_local4 + 1)].B = new Object();
}
sustav[(("cell" + _local1) + "_") + (_local4 + 1)].B[ime] = obj;
}
}
_local1++;
}
_local1 = _local7;
while (_local1 <= _local4) {
if (!sustav[(("cell" + _local8) + "_") + _local1]) {
sustav[(("cell" + _local8) + "_") + _local1] = new Object();
}
if (!sustav[(("cell" + _local8) + "_") + _local1].A) {
sustav[(("cell" + _local8) + "_") + _local1].A = new Object();
}
sustav[(("cell" + _local8) + "_") + _local1].A[ime] = obj;
if (!sustav[(("cell" + _local8) + "_") + _local1].B) {
sustav[(("cell" + _local8) + "_") + _local1].B = new Object();
}
sustav[(("cell" + _local8) + "_") + _local1].B[ime] = obj;
if (!sustav[(("cell" + _local8) + "_") + _local1].C) {
sustav[(("cell" + _local8) + "_") + _local1].C = new Object();
}
sustav[(("cell" + _local8) + "_") + _local1].C[ime] = obj;
if (!sustav[(("cell" + _local8) + "_") + _local1].D) {
sustav[(("cell" + _local8) + "_") + _local1].D = new Object();
}
sustav[(("cell" + _local8) + "_") + _local1].D[ime] = obj;
if (_local11 != "granica_l") {
if (((_local17 % _local10) - (_local10 / 2)) < 0) {
var _local14 = true;
if (!sustav[(("cell" + (_local8 - 1)) + "_") + _local1]) {
sustav[(("cell" + (_local8 - 1)) + "_") + _local1] = new Object();
}
if (!sustav[(("cell" + (_local8 - 1)) + "_") + _local1].B) {
sustav[(("cell" + (_local8 - 1)) + "_") + _local1].B = new Object();
}
sustav[(("cell" + (_local8 - 1)) + "_") + _local1].B[ime] = obj;
if (!sustav[(("cell" + (_local8 - 1)) + "_") + _local1].D) {
sustav[(("cell" + (_local8 - 1)) + "_") + _local1].D = new Object();
}
sustav[(("cell" + (_local8 - 1)) + "_") + _local1].D[ime] = obj;
}
}
_local1++;
}
_local1 = _local7;
while (_local1 <= _local4) {
if (!sustav[(("cell" + _local3) + "_") + _local1]) {
sustav[(("cell" + _local3) + "_") + _local1] = new Object();
}
if (!sustav[(("cell" + _local3) + "_") + _local1].A) {
sustav[(("cell" + _local3) + "_") + _local1].A = new Object();
}
sustav[(("cell" + _local3) + "_") + _local1].A[ime] = obj;
if (!sustav[(("cell" + _local3) + "_") + _local1].B) {
sustav[(("cell" + _local3) + "_") + _local1].B = new Object();
}
sustav[(("cell" + _local3) + "_") + _local1].B[ime] = obj;
if (!sustav[(("cell" + _local3) + "_") + _local1].C) {
sustav[(("cell" + _local3) + "_") + _local1].C = new Object();
}
sustav[(("cell" + _local3) + "_") + _local1].C[ime] = obj;
if (!sustav[(("cell" + _local3) + "_") + _local1].D) {
sustav[(("cell" + _local3) + "_") + _local1].D = new Object();
}
sustav[(("cell" + _local3) + "_") + _local1].D[ime] = obj;
if (_local11 != "granica_r") {
if ((_local16 % _local10) > (_local10 / 2)) {
var _local15 = true;
if (!sustav[(("cell" + (_local3 + 1)) + "_") + _local1]) {
sustav[(("cell" + (_local3 + 1)) + "_") + _local1] = new Object();
}
if (!sustav[(("cell" + (_local3 + 1)) + "_") + _local1].A) {
sustav[(("cell" + (_local3 + 1)) + "_") + _local1].A = new Object();
}
sustav[(("cell" + (_local3 + 1)) + "_") + _local1].A[ime] = obj;
if (!sustav[(("cell" + (_local3 + 1)) + "_") + _local1].C) {
sustav[(("cell" + (_local3 + 1)) + "_") + _local1].C = new Object();
}
sustav[(("cell" + (_local3 + 1)) + "_") + _local1].C[ime] = obj;
}
}
_local1++;
}
if (_local11.indexOf("granica") == -1) {
if (_local14 && (_local12)) {
if (!sustav[(("cell" + (_local8 - 1)) + "_") + (_local7 - 1)]) {
sustav[(("cell" + (_local8 - 1)) + "_") + (_local7 - 1)] = new Object();
}
if (!sustav[(("cell" + (_local8 - 1)) + "_") + (_local7 - 1)].D) {
sustav[(("cell" + (_local8 - 1)) + "_") + (_local7 - 1)].D = new Object();
}
sustav[(("cell" + (_local8 - 1)) + "_") + (_local7 - 1)].D[ime] = obj;
}
if (_local14 && (_local13)) {
if (!sustav[(("cell" + (_local8 - 1)) + "_") + (_local4 + 1)]) {
sustav[(("cell" + (_local8 - 1)) + "_") + (_local4 + 1)] = new Object();
}
if (!sustav[(("cell" + (_local8 - 1)) + "_") + (_local4 + 1)].B) {
sustav[(("cell" + (_local8 - 1)) + "_") + (_local4 + 1)].B = new Object();
}
sustav[(("cell" + (_local8 - 1)) + "_") + (_local4 + 1)].B[ime] = obj;
}
if (_local15 && (_local12)) {
if (!sustav[(("cell" + (_local3 + 1)) + "_") + (_local7 - 1)]) {
sustav[(("cell" + (_local3 + 1)) + "_") + (_local7 - 1)] = new Object();
}
if (!sustav[(("cell" + (_local3 + 1)) + "_") + (_local7 - 1)].C) {
sustav[(("cell" + (_local3 + 1)) + "_") + (_local7 - 1)].C = new Object();
}
sustav[(("cell" + (_local3 + 1)) + "_") + (_local7 - 1)].C[ime] = obj;
}
if (_local15 && (_local13)) {
if (!sustav[(("cell" + (_local3 + 1)) + "_") + (_local4 + 1)]) {
sustav[(("cell" + (_local3 + 1)) + "_") + (_local4 + 1)] = new Object();
}
if (!sustav[(("cell" + (_local3 + 1)) + "_") + (_local4 + 1)].A) {
sustav[(("cell" + (_local3 + 1)) + "_") + (_local4 + 1)].A = new Object();
}
sustav[(("cell" + (_local3 + 1)) + "_") + (_local4 + 1)].A[ime] = obj;
}
}
};
level.prototype.createLevelRenderer = function () {
_root.createEmptyMovieClip("rt", 4);
_root.rt.dodatci = new Object();
_root.rt.animacije = new Object();
_root.rt.normalLevel = function () {
this.currentState = "normalLevel";
this.o = getTimer();
this.dodatci.ingame_interface = _root.ingame_interface;
this.onEnterFrame = function () {
var _local9 = getTimer();
this.f = (_local9 - this.o) / 1000;
if (this.f > 0.5) {
TRE(this, "FRAME RATE MAXED!: " + this.f);
this.f = 0.1;
this.o = _local9 + 100;
} else {
this.o = _local9;
}
this.pucnji = [];
this.igracHit = [];
this.itemsToDestroy = [];
var _local4;
var _local8;
var _local7;
var _local6;
var _local3;
var _local5;
ASProf.begin("stack_renderer-dodatci");
for (_local4 in this.dodatci) {
this.dodatci[_local4].stackerDo();
}
ASProf.end();
ASProf.begin("stack_renderer-animacije");
for (_local8 in this.animacije) {
this.animacije[_local8].animiraj();
}
ASProf.end();
ASProf.begin("stack_renderer-igraci");
for (_local7 in _root.crntLvl.players) {
_root.crntLvl.players[_local7].stackerDo();
}
ASProf.end();
ASProf.begin("stack_renderer-pucnjevi2");
for (_local6 in _root.crntLvl.pucnji) {
_root.crntLvl.pucnji[_local6].stackerDo();
}
ASProf.end();
ASProf.begin("stack_renderer-lopte");
for (_local3 in _root.crntLvl.lopte) {
_root.crntLvl.lopte[_local3].stackerDo();
}
ASProf.end();
ASProf.begin("stack_renderer-itemi");
for (_local5 in _root.crntLvl.spawnedItems) {
_root.crntLvl.spawnedItems[_local5].stackerDo();
}
ASProf.end();
ASProf.begin("stack_renderer-stack_resolve");
if (_root.objectHasValue(this.pucnji) || (_root.objectHasValue(this.igracHit))) {
this.resolveStack();
}
ASProf.end();
ASProf.begin("stack_renderer-purge_items");
this.purgeItems();
ASProf.end();
};
};
_root.rt.aniIgraca = function () {
this.currentState = "aniIgraca";
this.o = getTimer();
this.onEnterFrame = function () {
var _local4 = getTimer();
this.f = (_local4 - this.o) / 1000;
this.o = _local4;
for (var _local3 in _root.crntLvl.players) {
_root.crntLvl.players[_local3].stackerDo();
}
};
};
_root.rt.animateDeath = function () {
this.currentState = "animateDeath";
this.o = getTimer();
this.onEnterFrame = function () {
var _local4 = getTimer();
this.f = (_local4 - this.o) / 1000;
this.o = _local4;
for (var _local3 in _root.crntLvl.players) {
_root.crntLvl.players[_local3].stackerDo();
}
};
};
_root.rt.getReady = function () {
this.currentState = "getReady";
this.o = getTimer();
this.onEnterFrame = function () {
var _local4 = getTimer();
this.f = (_local4 - this.o) / 1000;
this.o = _local4;
for (var _local3 in _root.crntLvl.players) {
_root.crntLvl.players[_local3].stackerDo();
}
_root.ingame_interface.getReadyAnimation.stackerDo();
};
};
_root.rt.bravoAni = function () {
this.currentState = "bravoAni";
this.o = getTimer();
this.onEnterFrame = function () {
var _local5 = getTimer();
this.f = (_local5 - this.o) / 1000;
this.o = _local5;
for (var _local4 in _root.crntLvl.players) {
_root.crntLvl.players[_local4].stackerDo();
}
for (var _local3 in this.animacije) {
if (!this.animacije[_local3].isWeapon) {
this.animacije[_local3].animiraj();
}
}
this.purgeItems();
_root.ingame_interface.bravoAnimation.stackerDo();
};
};
_root.rt.outOfTime = function () {
this.currentState = "animateDeath";
this.o = getTimer();
this.onEnterFrame = function () {
var _local3 = getTimer();
this.f = (_local3 - this.o) / 1000;
this.o = _local3;
_root.ingame_interface.stackerDo();
};
};
_root.rt.gameOver = function () {
this.currentState = "gameOver";
this.o = getTimer();
this.onEnterFrame = function () {
var _local3 = getTimer();
this.f = (_local3 - this.o) / 1000;
this.o = _local3;
_root.ingame_interface.gameOverMovie.stackerDo();
};
};
};
MovieClip.prototype.resolveStack = function () {
var _local6 = new Object();
var _local12 = new Object();
var _local5 = new Object();
this.pucnji.sortOn("tocka", Array.NUMERIC);
var _local4 = this.pucnji.length - 1;
while (_local4 >= 0) {
var _local2 = this.pucnji[_local4].pucanj;
var _local3 = this.pucnji[_local4];
if (_local6["pucanj" + _local2.id] != true) {
if (_local3.razlog == "tile") {
if (_local3.imetilea.tip == "keks") {
if (_local12[_local3.imetilea.ime] != true) {
this.spawnItem_item(_local3.imetilea.drop_item, _local3.imetilea.sredx, _local3.imetilea.sredy);
_local12[_local3.imetilea.ime] = true;
this.unistiTile(_local3.imetilea, "pucanj");
_local6["pucanj" + _local2.id] = true;
this.pucanj_unisti(_local2, _local3.imetilea.tip);
}
} else {
var _local10 = _local2.starty;
var _local8 = _local3.imetilea.t2y;
var _local11 = _local2._x;
var _local9 = _local2.player;
_local6["pucanj" + _local2.id] = true;
this.pucanj_unisti(_local2, "tile");
if (_local2.weapon == 4) {
_local9.createHook_pucanj(_local11, _local10, _local8);
}
}
_local3.imetilea.showIfHiddenTile();
} else if (_local3.razlog == "lopta") {
if (_local5[_local3.lopta.ld] != true) {
if (_local3.lopta.metalna != true) {
_local5[_local3.lopta.ld] = true;
}
_local3.lopta.gotShot(_local2.player.id, _local3.impact_x, _local3.impact_y);
_local6["pucanj" + _local2.id] = true;
this.pucanj_unisti(_local2, _local3.razlog);
}
} else if (_local3.razlog == "spikes") {
if (_local5[_local3.lopta.ld] != true) {
_local5[_local3.lopta.ld] = true;
_local3.lopta.brzy = undefined;
_local3.lopta.sy = 1;
_local3.lopta.id = 1;
_local3.lopta.gotShot(_local3.lopta.spawnedBy, _local3.impact_x, _local3.impact_y);
_local6["pucanj" + _local2.id] = true;
this.pucanj_unisti(_local2, _local3.razlog);
}
} else {
TRE(this, (((("DEBUG: neobja\u0161njiv razlog sudara pucnja: [" + _local3) + "][") + _local2) + "]") + _local3.razlog, 1);
}
}
_local4--;
}
_local4 = 0;
while (_local4 < this.igracHit.length) {
var _local3 = this.igracHit[_local4];
if ((_local5[_local3.lopta.ld] != true) && (_local3.igrac.vecUmro != true)) {
var _local7 = _local3.igrac.gotHitByBall_player(_local3);
if (_local7 == "uni\u0161ti") {
_local5[_local3.lopta.ld] = true;
_local3.lopta.gotShot(_local3.igrac.id, _local3.impact_x, _local3.impact_y);
} else if (_local7 == "killed") {
_local3.lopta._x = _local3.impact_x;
_local3.lopta._y = _local3.imapct_y;
return(true);
}
}
_local4++;
}
};
MovieClip.prototype.purgeItems = function () {
for (var _local6 in this.itemsToDestroy) {
var _local3 = this.itemsToDestroy[_local6];
var _local4 = _local3._parent;
if (_local4 == _level0.render_buff.itemi) {
var _local5 = _local3.id;
_root.render_buff.itemi.createEmptyMovieClip("item" + _local5, _root.crntLvl.item_startDepth + _local5);
} else if (_local4 == _level0.render_buff.lopte) {
var _local5 = _local3.ld;
_root.render_buff.lopte.createEmptyMovieClip("lopta" + _local5, _root.crntLvl.ball_startDepth + _local5);
} else if (_local4 == _root.render_buff.pucnji) {
var _local5 = _local3.id;
if (_local3.maska != undefined) {
_root.render_buff.pucnji.createEmptyMovieClip("maska" + _local5, (_root.crntLvl.pucanj_startDepth + _local5) + _root.crntLvl.pucanj_maskaOffset);
}
_root.render_buff.pucnji.createEmptyMovieClip("pucanj" + _local5, _root.crntLvl.pucanj_startDepth + _local5);
} else if (_local4 == "spikes") {
} else {
TRE(this, (("DEBUG: nepoznata klasa: " + _local4) + " in obj: ") + _local3, 1);
}
}
};
level.prototype.loptaInit = function (obj) {
if (tip != "kontra") {
var _local6 = obj.boja;
}
var id = obj.id;
var _local13 = obj.x;
var _local12 = obj.y;
var _local7 = obj.sx;
var _local8 = obj.sy;
var tip = obj.tip;
var _local11 = obj.splitway;
var _local10 = 0;
while (_local10 <= this.ballMaxNum) {
if (_root.render_buff.lopte["lopta" + _local10].used != true) {
var _local5 = _local10;
break;
}
_local10++;
}
if (((obj.battleId == 1) || (obj.battleId == 2)) || (obj.battleId == 3)) {
if (obj.battleId == 1) {
var _local6 = "crvena";
} else if (obj.battleId == 2) {
var _local6 = "plava";
} else {
var _local6 = "zuta";
}
var _local3 = _root.render_buff.lopte.attachMovie((("lopta_" + tip) + "_") + _local6, "lopta" + _local5, _local5 + this.ball_startDepth);
} else if (tip != "kontra") {
var _local3 = _root.render_buff.lopte.attachMovie((("lopta_" + tip) + "_") + _local6, "lopta" + _local5, _local5 + this.ball_startDepth);
} else {
var _local3 = _root.render_buff.lopte.attachMovie("lopta_" + tip, "lopta" + _local5, _local5 + this.ball_startDepth);
}
_local3._width = this.ballSize[id];
_local3._height = this.ballSize[id];
_local3.used = true;
_local3.cacheAsBitmap = true;
_root.crntLvl.lopte["lopta" + _local5] = _local3;
_local3.ld = _local5;
_local3._x = (_local3.x = _local13);
_local3._y = (_local3.y = _local12);
_local3.id = id;
_local3.sx = _local7;
_local3.sy = _local8;
_local3.tip = tip;
_local3.splitway = _local11;
_local3.cloned = obj.cloned;
_local3.ts = this.ballTickSize[id];
_local3.cs = this.cellSize[id];
_local3.su = this["ballCells" + id];
_local3.r = this.ballSizeRadius[id];
_local3.r2 = this.ballSizeRadiusPow[id];
_local3.hcs = this.cellSize[id] / 2;
_local3.modify_brz = 1;
_local3.ignoreTileStack = null;
if (obj.vrijediBodova == undefined) {
_local3.basePoints = this.defaultBodovi[_local3.tip];
} else {
_local3.basePoints = obj.vrijediBodova;
}
_local3.vrijediBodova = _local3.basePoints * (6 - _local3.id);
_local3.ghost_on._visible = false;
_local3.ghost_off._visible = false;
if (obj.ghostBall == true) {
_local3.ghostBall = true;
_local3.ghost_off._visible = true;
}
if (tip != "kontra") {
_local3.boja = _local6;
}
if (tip == "kisobran") {
_local3.rotacija = obj.rotacija;
}
if (obj.metalna == true) {
_local3.metalna = true;
} else {
_local3.metalna_mc._visible = false;
}
if (obj.combo_id == undefined) {
_local3.combo_id = 0;
} else {
_local3.combo_id = obj.combo_id;
}
if (obj.spawnedBy == undefined) {
_local3.spawnedBy = 3;
} else {
_local3.spawnedBy = obj.spawnedBy;
}
_local3.battleId = obj.battleId;
if (_root.crntLvl.battle_mode == "tag") {
_local3.creationTime = getTimer();
}
if ((obj.battleId == 1) || (obj.battleId == 2)) {
_local3.battle_tag_points.embedFonts = true;
_local3.battle_tag_points.cacheAsBitmap = true;
_local3.battle_tag_points.borderColor = 16252693 /* 0xF7FF15 */;
_local3.formatBattleTagTxt = function () {
if ((_root.crntLvl.battle_mode == "tag") && ((this.battleId == 1) || (this.battleId == 2))) {
var _local3 = Math.round((_root.rt.o - this.creationTime) / 1000);
if (_local3 < 1) {
_local3 = 1;
}
if (_local3 != this.battle_tag_points.text) {
this.battle_tag_points.text = _local3;
var _local4 = new TextFormat();
_local4.font = "menu font";
if ((this.id == 1) && (points < 10)) {
battle_tag_fontSize = [0, 12, 8, 6, 6, 6];
battle_tag_fontSizeOffset = [0, -8.5, -6.5, -5.5, -5.5, -5.5];
} else {
battle_tag_fontSize = [0, 9, 8, 6, 6, 6];
battle_tag_fontSizeOffset = [0, -6.5, -6.5, -5.5, -5.5, -5.5];
}
_local4.size = battle_tag_fontSize[id];
this.battle_tag_points.setTextFormat(_local4);
this.battle_tag_points._y = battle_tag_fontSizeOffset[id];
}
}
};
_root.rt.o = getTimer();
_local3.formatBattleTagTxt();
} else {
_local3.battle_tag_points.text = "";
}
if ((id == 1) || (_local11 != "double")) {
_local3.splitway_double._visible = false;
}
if (tip == "normalna") {
_local3.bym = this.odskok_lopti.normalna[_local6].brzinay[id];
_local3.bounce_off = _root.crntLvl.odskok_lopti.normalna[_local6].bounce_off[id];
_local3.grav = _root.crntLvl.odskok_lopti.normalna[_local6].gravitacija;
_local3.brzx = _local7 * _root.crntLvl.odskok_lopti.normalna[_local6].brzinax;
if (obj.brzy == undefined) {
if (_local8 > 0) {
_local3.brzy = 0;
_local3.maxy = _local3._y;
} else {
_local3.brzy = _local3.bym;
_local3.maxy = _local3._y - _local3.bounce_off;
}
} else {
_local3.brzy = -200 - ((5 - _local3.id) * 7);
_local3.maxy = _local3._y;
}
} else if (tip == "kontra") {
_local3.bym = this.odskok_lopti.kontra.brzinay[id];
_local3.bounce_off = _root.crntLvl.odskok_lopti.kontra.bounce_off[id];
_local3.grav = _root.crntLvl.odskok_lopti.kontra.gravitacija;
_local3.brzx = _local7 * _root.crntLvl.odskok_lopti.kontra.brzinax;
if (obj.brzy == undefined) {
if (_local8 < 0) {
_local3.brzy = 0;
_local3.maxy = _local3._y;
} else {
_local3.brzy = _local3.bym;
_local3.maxy = _local3._y + _local3.bounce_off;
}
} else {
_local3.brzy = obj.brzy;
_local3.maxy = _local3._y;
}
} else if (tip == "kisobran") {
_local3.brzx = this.odskok_lopti.kisobran[_local6][Math.abs(_local7)];
if (_local7 < 0) {
_local3.brzx = -_local3.brzx;
}
if (obj.brzy == undefined) {
_local3.brzy = this.odskok_lopti.kisobran[_local6][Math.abs(_local8)];
if (_local8 < 0) {
_local3.brzy = -_local3.brzy;
}
} else {
_local3.sy = -Math.abs(_local3.sy);
_local3.brzy = -Math.abs(obj.brzy);
}
_local3.brzr = 200 * _local3.rotacija;
} else {
TRE("loptaInit", ("DEBUG: Nisam zadao tip!!! [" + tip) + "]");
}
if (obj.tip == "kisobran") {
var _local9 = _local3.bounce_kisobran;
} else {
var _local9 = _local3.bounce_normalna;
}
_local3.gotShot = _local3["split_ball_" + _local3.splitway];
_local3.stackerDo = _local9;
if (_root.crntLvl.cloned == true) {
if ((_root.rt.dodatci.slowdown_ball1 != undefined) && (_local3.cloned != true)) {
_local3.modify_brz = _root.rt.dodatci.slowdown_ball1.speed_factor;
} else if ((_root.rt.dodatci.slowdown_ball2 != undefined) && (_local3.cloned == true)) {
_local3.modify_brz = _root.rt.dodatci.slowdown_ball2.speed_factor;
}
if (((_root.rt.dodatci.freezer1 != undefined) && (_local3.cloned != true)) || ((_root.rt.dodatci.freezer2 != undefined) && (_local3.cloned == true))) {
_local3.oldStackerDo = _local9;
_local3.stackerDo = _local3.freezeBall_ball;
_local3._alpha = 60;
} else {
_local3.stackerDo = _local9;
}
} else {
if (_root.rt.dodatci.slowdown_ball != undefined) {
_local3.modify_brz = _root.rt.dodatci.slowdown_ball.speed_factor;
}
if (_root.rt.dodatci.freezer != undefined) {
_local3.oldStackerDo = _local9;
_local3.stackerDo = _local3.freezeBall_ball;
_local3._alpha = 60;
} else {
_local3.stackerDo = _local9;
}
}
if (_local3.metalna == true) {
return(true);
}
if (_local3.cloned == true) {
_root.crntLvl.aktivnihLopti_cloned++;
_root.crntLvl.aktivnih_lopti_boje[_local3.boja + "_cloned"]++;
} else {
_root.crntLvl.aktivnihLopti++;
_root.crntLvl.aktivnih_lopti_boje[_local3.boja]++;
}
};
level.prototype.loptaInit_normalna = function (obj) {
TRE("loptaInit_normalna", "DEBUG!!!! NE smijem zvati ovu funkciju - vi\u0161e ne postoji!");
};
level.prototype.loptaInit_kontra = function (obj) {
TRE("loptaInit_kontra", "DEBUG!!!! NE smijem zvati ovu funkciju - vi\u0161e ne postoji!");
};
level.prototype.loptaInit_kisobran = function (obj) {
TRE("loptaInit_kisobran", "DEBUG!!!! NE smijem zvati ovu funkcij - vi\u0161e ne postoji!");
};
level.prototype.loptaInit_vanjska = function (obj) {
var _local8 = obj.boja;
var _local7 = obj.id;
var _local11 = obj.tip;
var _local9 = obj.splitway;
var _local4 = 0;
while (_local4 <= this.ballMaxNum) {
if (_root.render_buff.lopte["lopta" + _local4].used != true) {
var _local5 = _local4;
break;
}
_local4++;
}
if (obj.tip == "normalna") {
var _local3 = _root.render_buff.lopte.attachMovie("lopta_normalna_" + _local8, "lopta" + _local5, _local5 + this.ball_startDepth);
} else if (obj.tip == "kontra") {
var _local3 = _root.render_buff.lopte.attachMovie("lopta_kontra", "lopta" + _local5, _local5 + this.ball_startDepth);
} else if (obj.tip == "kisobran") {
var _local3 = _root.render_buff.lopte.attachMovie("lopta_kisobran_" + _local8, "lopta" + _local5, _local5 + this.ball_startDepth);
} else {
TRE(this, "DEBUG -- nepoznata vanjska lopta:" + obj.tip);
}
_local3._width = this.ballSize[_local7];
_local3._height = this.ballSize[_local7];
_local3.used = true;
_local3.cacheAsBitmap = true;
_root.crntLvl.lopte["lopta" + _local5] = _local3;
_local3.ld = _local5;
_local3.vanjska = true;
_local3.boja = _local8;
_local3.id = _local7;
if (obj.sx != undefined) {
_local3.sx = obj.sx;
}
_local3.tip = _local11;
_local3.splitway = _local9;
_local3.ts = this.ballTickSize[_local7];
_local3.cs = this.cellSize[_local7];
_local3.su = this["ballCells" + _local7];
_local3.r = this.ballSizeRadius[_local7];
_local3.r2 = this.ballSizeRadiusPow[_local7];
var _local10 = 10 + _local3.r;
_local3._x = (_local3.x = _root.randRange(_local10, 640 - _local10));
_local3._y = (_local3.y = -_local3.r);
_local3.hcs = this.cellSize[_local7] / 2;
_local3.modify_brz = 1;
_local3.ghost_on._visible = false;
_local3.ghost_off._visible = false;
if (obj.ghostBall == true) {
_local3.ghostBall = true;
_local3.ghost_ON = true;
_local3.ghost_off._visible = true;
}
if ((_local7 == 1) || (_local9 != "double")) {
_local3.splitway_double._visible = false;
}
if (obj.metalna == true) {
_local3.metalna = true;
} else {
_local3.metalna_mc._visible = false;
}
if (obj.vrijediBodova == undefined) {
_local3.basePoints = this.defaultBodovi[_local3.tip];
} else {
_local3.basePoints = obj.vrijediBodova;
}
_local3.vrijediBodova = _local3.basePoints * (6 - _local3.id);
_local3.spawnedBy = 3;
_local3.battle_tag_points.text = "";
if (_root.rt.dodatci.slowdown_ball != undefined) {
_local3.modify_brz = _root.rt.dodatci.slowdown_ball.speed_factor;
}
if (_root.rt.dodatci.freezer != undefined) {
_local3.oldStackerDo = _local3.bounce_vanjska;
_local3.stackerDo = _local3.freezeBall_ball;
_local3._alpha = 60;
} else {
_local3.stackerDo = _local3.bounce_vanjska;
}
};
level.prototype.initPlayer = function (id, posx, posy, weapon) {
var _local3 = _root.render_buff.igraci.attachMovie("lik_animacije", "igrac" + id, this.playerDepth + (id * 10));
_local3._x = posx;
_local3._y = posy - (this.playerHitSize.vis / 2);
_local3.bubbles_destroyed = 0;
this.players["player" + id] = _local3;
_local3.animation_state = "nul";
_local3.ladder_sensitive_climb = 10;
_local3.id = id;
_local3.activateWeapon(_local3, weapon);
_local3.weaponReady = true;
_local3.shieldType = "none";
_local3.vrijemePauzePomicanje_pucanj = getTimer();
_local3.vrijemePauzePucanj_pucanj = getTimer();
_local3.brzx = this.playerSpeed.bx;
_local3.def_grav = this.playerSpeed.grav;
_local3.grav = _local3.def_grav;
_local3.bpl = this.playerSpeed.brzinaPoLojtrama;
_local3.bpl_slide = this.playerSpeed.slidePoLojtrama;
_local3.add_move = _local3.brzx;
_local3.led_ubrzaj = _local3.brzx + 80;
_local3.led_uspori = _local3.brzx - 20;
_local3.holdAfterSlide = false;
_local3.slideToSafeY = null;
_local3.def_brzy = this.playerSpeed.pocetnaBrzinaPadanja;
_local3.brzy = _local3.def_brzy;
_local3.hh = this.playerHitSize.vis / 2;
_local3.hw = this.playerHitSize.sir / 2;
_local3.ball_hw_default = (_local3.ball_hw = this.playerBallHitSize.sir / 2);
_local3.ball_hh_default = (_local3.ball_hh = this.playerBallHitSize.vis / 2);
_local3.cw = this.playerSize.sir;
_local3.ch = this.playerSize.vis;
_local3.hcw = _local3.cw / 2;
_local3.hch = _local3.ch / 2;
_local3.su = _root.crntLvl.playerCells;
_local3.ts = this.playerTickSize;
_local3.ignoreTileStack = null;
_local3.emptyTileStack = false;
_local3.hasFloor = false;
_local3.laser_laticaParna = true;
_local3.laser_br_latica = 0;
_local3.laser_br_latica_max = 4;
if (_root.value_in_array(this.twopMods, _root.crntGame.mod)) {
var _local6 = "keys_two";
} else {
var _local6 = "keys_single";
}
_local3.key_u = _root.setups[_local6][("key" + id) + "_u"];
_local3.key_d = _root.setups[_local6][("key" + id) + "_d"];
_local3.key_l = _root.setups[_local6][("key" + id) + "_l"];
_local3.key_r = _root.setups[_local6][("key" + id) + "_r"];
_local3.key_w = _root.setups[_local6][("key" + id) + "_w"];
_local3.animate_player("stand");
_local3.stackerDo = _local3.movePlayer;
_local3.ani_frmRates = {stand:0.01, trci_left:0.04, trci_right:0.04, climbon:0.04, climboff:0.04, slide:0.03, bow:0.03, victory:0.03, wave:0.03, die:0.03};
_local3.ball_hh_default = this.playerBallHitSize.vis / 2;
_local3.ani_pucanj_offsets = {stand:0, trci_left:2, trci_right:2, climb:0, climbon:0, climboff:0, slide:1, bow:0, victory:0, wave:0, die:0};
if (_root.crntGame.mod == "editor") {
var _local5 = _root.attachMovie("lik_editor_hit-area", "player_hit_area" + id, 2900 + id);
_local5._x = _local3._x;
_local5._y = _local3._y;
_local5.plyr = _local3;
_local5._alpha = 20;
_local5.onEnterFrame = function () {
this._x = this.plyr._x;
this._y = this.plyr._y;
};
_local5.onPress = function () {
_level2.editItem("player", this.plyr);
};
}
};
level.prototype.calculateDropProbability_level = function (lvl) {
var _local14 = {normal:[0, 0, 1, 3, 7, 15], double:[0, 0, 1, 5, 21, 85]};
var _local12 = 0;
for (var _local15 in this.lopte) {
if (this.lopte[_local15].cloned != true) {
_local12 = _local12 + _local14[this.lopte[_local15].splitway][this.lopte[_local15].id];
}
}
var _local3 = new Array("null");
var _local5 = new Object();
for (var _local16 in lvl.ispadajuItemi) {
if (_local16 != "frekvencija") {
_local3.push(_local16);
if (lvl.ispadajuItemi[_local16] == 0) {
_local5[_local16] = 99999 /* 0x01869F */;
} else {
_local5[_local16] = lvl.ispadajuItemi[_local16];
}
}
}
var _local8 = 1;
while (_local8 <= _local12) {
var _local13 = _root.randRange(1, lvl.ispadajuItemi.frekvencija);
if (_local13 == lvl.ispadajuItemi.frekvencija) {
var _local10 = true;
var _local9 = _root.randRange(1, _local3.length - 1);
var _local7 = _local9;
while (_local7 <= ((_local9 + _local3.length) - 2)) {
var _local6 = (_local7 % (_local3.length - 1)) + 1;
var _local4 = _local3[_local6];
if (_local5[_local4] > 0) {
this.dropProbability.push(_local4);
_local5[_local4]--;
_local10 = false;
if (_local5[_local4] == 0) {
_local3 = MyArray.popIndex(_local3, _local6);
}
break;
}
_local7++;
}
if (_local10 == true) {
this.dropProbability.push("null");
}
} else {
this.dropProbability.push("null");
}
_local8++;
}
if (this.cloned == true) {
this.dropProbability_cloned = new Array();
_local8 = 0;
while (_local8 < this.dropProbability.length) {
this.dropProbability_cloned[_local8] = this.dropProbability[_local8];
_local8++;
}
}
};
level.prototype.calculateDropProbability_SA_level = function () {
TRE(this, "DEBUG: izbacio sam ovu funkciju - u stayingaliveu ne ispadaju itemi iz lopti! [calculateDropProbability_SA_level]");
var _local7 = _root.levelBuffer[(_root.crntGame.mod + "_level") + _root.crntGame.trenutniLevel];
TRE(this, (("crnLvl:" + _root.crntGame.mod) + "_level") + _root.crntGame.trenutniLevel);
var _local13 = 50;
var _local3 = new Array("null");
var _local5 = new Object();
for (var _local10 in _local7.ispadajuItemi) {
if (_local10 != "frekvencija") {
_local3.push(_local10);
if (_local7.ispadajuItemi[_local10] == 0) {
_local5[_local10] = 99999 /* 0x01869F */;
} else {
_local5[_local10] = _local7.ispadajuItemi[_local10];
}
}
}
var _local12 = 1;
while (_local12 <= _local13) {
var _local11 = _root.randRange(1, _local7.ispadajuItemi.frekvencija);
if (_local11 == _local7.ispadajuItemi.frekvencija) {
var _local8 = true;
var _local9 = _root.randRange(1, _local3.length - 1);
var _local4 = _local9;
while (_local4 <= ((_local9 + _local3.length) - 2)) {
var _local6 = (_local4 % (_local3.length - 1)) + 1;
if (_local5[_local10] > 0) {
this.dropProbability.push(_local3[_local6]);
_local5[_local10]--;
_local8 = false;
break;
}
_local4++;
}
if (_local8 == true) {
this.dropProbability.push("null");
}
} else {
this.dropProbability.push("null");
}
_local12++;
}
};
level.prototype.calculateBallProbability_SA_level = function () {
var _local9 = _root.levelBuffer[(_root.crntGame.mod + "_level") + _root.crntGame.trenutniLevel];
var _local7 = new Array();
if (_local9.lopti_u_minuti > _root.ingame_interface.defaultLevelTime) {
TRE(this, (("DEBUG: stayingalive, previ\u0161e lopti za level: " + _local9.lopti_u_minuti) + "|") + _root.ingame_interface.defaultLevelTime);
_local9.lopti_u_minuti = _root.ingame_interface.defaultLevelTime;
}
var _local4 = 1;
while (_local4 <= _local9.lopti_u_minuti) {
var _local8 = _root.randRange(1, _root.ingame_interface.defaultLevelTime);
if (_local7[_local8] == undefined) {
_local7[_local8] = true;
} else {
var _local6 = 0;
while (_local6 <= (_root.ingame_interface.defaultLevelTime - 1)) {
var _local5 = ((_local8 + _local6) % _root.ingame_interface.defaultLevelTime) + 1;
if (_local7[_local5] == undefined) {
_local7[_local5] = true;
break;
}
_local6++;
}
}
_local4++;
}
this.ispadajuLopte = new Array();
_local4 = 1;
while (_local4 <= _root.ingame_interface.defaultLevelTime) {
if (_local7[_local4] == true) {
var _local3 = _local9.moguce_lopte[_root.randRange(0, _local9.moguce_lopte.length - 1)];
this.ispadajuLopte[_local4] = new Object();
this.ispadajuLopte[_local4] = {tip:_local3.tip, boja:_local3.boja, splitway:_local3.splitway, metalna:_local3.metalna, sx:_local3.sx, id:_root.randRange(_local3.minid, _local3.maxid)};
} else {
this.ispadajuLopte[_local4] = null;
}
_local4++;
}
};
level.prototype.createGetReadyAnimation = function () {
_root.rt.getReady();
for (var _local4 in _root.crntLvl.players) {
_root.crntLvl.players[_local4].animate_static_player("stand");
}
var _local3 = _root.ingame_interface.attachMovie("getReady_animation", "getReadyAnimation", 7000);
_local3._x = ((this.xmax - this.xmin) / 2) + this.xmin;
_local3._y = ((this.ymax - this.ymin) / 2) + this.ymin;
_local3.ani_startTime = getTimer();
_local3.stackerDo = function () {
var _local4 = Math.round((_root.rt.o - this.ani_startTime) * 0.03) + 1;
if (_local4 > this._totalframes) {
this.gotoAndStop(this._totalframes);
for (var _local3 in _root.crntLvl.players) {
_root.crntLvl.players[_local3].stackerDo = _root.crntLvl.players[_local3].movePlayer;
}
_root.rt.normalLevel();
this.removeMovieClip();
} else {
this.gotoAndStop(_local4);
}
};
};
level.prototype.createGameOverAnimation = function (razlog, id) {
_root.rt.gameOver();
var _local3 = _root.ingame_interface.attachMovie("ingame_game_over", "gameOverMovie", 7002);
_local3._x = ((this.xmax - this.xmin) / 2) + this.xmin;
_local3._y = ((this.ymax - this.ymin) / 2) + this.ymin;
_local3.ani_startTime = getTimer();
_local3.stackerDo = function () {
var _local3 = Math.round((_root.rt.o - this.ani_startTime) * 0.03) + 1;
if (_local3 > this._totalframes) {
this.finishGame(false);
this.removeMovieClip();
} else {
this.gotoAndStop(_local3);
}
};
};
level.prototype.levelsIsFinishing = function (igrac_id) {
if (_root.crntLvl.battle_mode != false) {
this.levelsIsFinished(igrac_id);
return(true);
}
var _local5 = false;
for (var _local6 in _root.crntLvl.spawnedItems) {
if (_root.crntLvl.spawnedItems[_local6].bodItem == true) {
_local5 = true;
}
}
delete _root.rt.dodatci.ingame_interface;
var _local8 = "finishingLevel";
var _local9 = _root.crntLvl.item_startDepth;
var _local3 = _root.crntLvl.itemMaxNum;
while (_local3 >= 0) {
if (_root.render_buff.itemi["item" + _local3].used != true) {
var _local7 = _local3;
break;
}
_local3--;
}
var _local4 = _root.render_buff.itemi.createEmptyMovieClip("item" + _local7, _local9 + _local7);
_local4.used = true;
_local4.id = _local7;
_local4.dodatak_name = _local8;
_local4.igrac_id = igrac_id;
_local4.stackerDo = function () {
var _local3 = false;
for (var _local4 in _root.crntLvl.spawnedItems) {
if (_root.crntLvl.spawnedItems[_local4].bodItem == true) {
_local3 = true;
break;
}
}
if ((_local3 == false) && (this.nextRunFinishes != true)) {
this.nextRunFinishes = true;
this.timePassed = 0.5;
}
this.timePassed = this.timePassed - _root.rt.f;
if ((this.timePassed <= 0) && (this.nextRunFinishes == true)) {
TRE(this, "Zavr\u0161avam level po\u0161to su bod itemi nestali/pokupljeni", 9);
_root.crntLvl.levelsIsFinished(this.igrac_id);
}
};
_root.rt.dodatci[_local8] = _local4;
};
level.prototype.levelsIsFinished = function (player_id, player_died) {
if (_root.crntLvl.battle_mode != false) {
var _local3 = player_id;
var _local4 = "bravo_vs";
if ((_root.crntLvl.battle_mode == "tag") && (player_died != true)) {
if (_root.crntGame.bodovi.p1 > _root.crntGame.bodovi.p2) {
_local3 = 1;
} else if (_root.crntGame.bodovi.p2 > _root.crntGame.bodovi.p1) {
_local3 = 2;
} else {
_local3 = 0;
}
_local4 = "bravo_vs";
} else if ((_root.crntLvl.battle_mode == "normal_vs") && (player_died != true)) {
if (_root.crntLvl.players.player1.bubbles_destroyed > _root.crntLvl.players.player2.bubbles_destroyed) {
_local3 = 1;
} else if (_root.crntLvl.players.player2.bubbles_destroyed > _root.crntLvl.players.player1.bubbles_destroyed) {
_local3 = 2;
} else {
_local3 = 0;
}
_local4 = "bravo_vs";
}
if (_local3 != 0) {
if (_local3 == 1) {
var _local5 = 2;
} else {
var _local5 = 1;
}
_root.crntLvl.players["player" + _local3].animate_static_player("victory");
_root.crntGame.vs_score["p" + _local3]++;
} else {
_root.crntLvl.players["player" + _local3].animate_static_player("climboff");
_root.crntLvl.players["player" + _local5].animate_static_player("climboff");
}
if (_local3 == 1) {
_root.crntGame.bodovi.vs1++;
_root.ingame_interface.bodovi_total.bodovi.text = _root.crntGame.bodovi.vs1;
} else if (_local3 == 2) {
_root.crntGame.bodovi.vs2++;
_root.ingame_interface.bodovi_total2.bodovi.text = _root.crntGame.bodovi.vs2;
}
TRE(this, (("Igrao sam VS, mod: " + _root.crntLvl.battle_mode) + ", pobjednik je: igrac br. ") + _local3, 10);
} else if ((_root.crntGame.mod == "stayingalive1") || (_root.crntGame.mod == "stayingalive2")) {
for (igrac in _root.crntLvl.players) {
_root.crntLvl.players[igrac].animate_static_player("victory");
}
var _local4 = "ingame_bravo_stayingalive";
} else {
for (igrac in _root.crntLvl.players) {
_root.crntLvl.players[igrac].animate_static_player("victory");
}
var _local4 = "bravo_animation";
}
var _local6 = _root.ingame_interface.attachMovie(_local4, "bravoAnimation", 7001);
if (_root.crntLvl.battle_mode != false) {
_local6.bravo_txt.win_player = _local3;
} else {
_local6.time_bonus._visible = false;
_local6.accuracy_bonus._visible = false;
}
_local6._x = ((_root.crntLvl.xmax - _root.crntLvl.xmin) / 2) + _root.crntLvl.xmin;
_local6._y = ((_root.crntLvl.ymax - _root.crntLvl.ymin) / 2) + _root.crntLvl.ymin;
_local6.ani_startTime = getTimer();
_local6.stackerDo = function () {
var _local3 = Math.round((_root.rt.o - this.ani_startTime) * 0.03) + 1;
if (_local3 > this._totalframes) {
if (_root.crntLvl.battle_mode != false) {
this.pauzaPosljeBonusa = 2000;
this.stackerDo = this.lvl_pauzaPaKreniIduciLevel;
} else {
this.gotoAndStop(this._totalframes);
this.startTurningTimeToPoints = getTimer();
this.timeToPointsContainer = 0;
this.time_bonus.time_bonus_points.text = 0;
this.time_bonus._visible = true;
this.stackerDo = this.lvl_turnTimeIntoPoints;
var _local4 = new MySound("vrijeme-bonus", this, 9999);
}
} else {
this.gotoAndStop(_local3);
}
};
_root.rt.bravoAni();
};
MovieClip.prototype.lvl_turnTimeIntoPoints = function () {
var _local4 = _root.rt.f * 25;
var _local5 = 10;
_root.ingame_interface.timeLeft = _root.ingame_interface.timeLeft - _local4;
var _local8 = _root.ingame_interface.timeLeft / _root.ingame_interface.start_time;
var _local6 = (_root.ingame_interface.start_x + _root.ingame_interface.max_x) - (_root.ingame_interface.max_x * _local8);
_root.ingame_interface.timebar.bar._x = _local6;
this.timeToPointsContainer = this.timeToPointsContainer + _local4;
if (this.timeToPointsContainer >= 1) {
var _local3 = this.timeToPointsContainer % 1;
var _local7 = this.timeToPointsContainer - _local3;
this.time_bonus.time_bonus_points.text = Number(this.time_bonus.time_bonus_points.text) + _local7;
this.timeToPointsContainer = _local3;
}
if (_root.ingame_interface.timeLeft <= 0) {
this.pauzaZaBonus = 1500;
_root.crntLvl.addPoints_level("level_finish", _root.crntGame.mod, 1, Number(this.time_bonus.time_bonus_points.text) * _local5);
this.accuracy_bonus_points = 2000;
this.stackerDo = this.lvl_checkAccuracyBonus;
this.snd.stop();
}
};
MovieClip.prototype.lvl_checkAccuracyBonus = function () {
if ((_root.crntGame.mod == "single") || (_root.crntGame.mod == "coop")) {
if ((_root.crntGame.preciznost.p1 > 0) && (_root.crntGame.preciznost.p1 == _root.crntGame.preciznost.p1_hits)) {
this.accuracy_bonus._visible = true;
this.accuracy_bonus.accuracy_bonus_txt.text = ((Msg.getMsg("INGAME_ACCURACY_BONUS") + " (+") + this.accuracy_bonus_points) + ") ";
_root.crntLvl.addPoints_level("level_finish", "accuracy bonus", 1, this.accuracy_bonus_points);
this.pauzaZaBonus = this.pauzaZaBonus + 1500;
}
}
this.pauzaPosljeBonusa = getTimer() + this.pauzaZaBonus;
this.stackerDo = this.lvl_pauzaPaKreniIduciLevel;
};
MovieClip.prototype.lvl_pauzaPaKreniIduciLevel = function () {
if (getTimer() >= this.pauzaPosljeBonusa) {
_root.crntLvl.levelsIsFinished_andAnimated();
this.removeMovieClip();
}
};
level.prototype.levelsIsFinished_andAnimated = function () {
TRE(this, "levelsIsFinished_andAnimated!", 65);
if (_root.crntGame.trenutniLevel < _root.crntGame.ukupniBrojLevela) {
_root.crntLvl.clearCurrentLevel();
_root.crntGame.trenutniLevel = _root.crntGame.sljedeciLevel;
_root.crntGame.sljedeciLevel++;
_root.crntLvl = new level();
_root.crntLvl.buildLevel();
TRE(this, "levelsIsFinished -> crntLvl < ukupniBrojLevela (iduci level)", 7);
} else {
var _local3 = new MySound("kraj_igre");
_root.crntLvl.lvl_hasFinishedTheGame();
}
};
level.prototype.lvl_hasFinishedTheGame = function () {
TRE(this, "levelsIsFinished -> crntLvl >= ukupniBrojLevela (nemam vi\u0161e nivoa)>mod:" + _root.crntGame.mod, 7);
if (_root.crntGame.mod == "vs") {
var _local3 = _root.ingame_interface.attachMovie("ingame_finishGame_screen_vs", "bravoAnimation", 7003);
} else {
var _local3 = _root.ingame_interface.attachMovie("ingame_finishGame_screen", "bravoAnimation", 7003);
}
_local3._x = 320;
_local3._y = 240;
var _local4 = new MySound("pticice", _local3, 999);
_root.crntLvl.pauza("on");
};
level.prototype.pauza = function (val) {
if (val == "on") {
_root.ingame_interface.INGAME_INTERFACE_MENU_OPEN.deactivate();
delete _root.rt.f;
delete _root.rt.o;
_root.rt.onEnterFrame = null;
_root.rt.pauzaStisnuta = getTimer();
MySound.stopAllMySounds();
} else {
_root.ingame_interface.INGAME_INTERFACE_MENU_OPEN.activate();
var _local3 = getTimer() - _root.rt.pauzaStisnuta;
stanje = _root.rt.currentState;
if (stanje == "normalLevel") {
for (var _local7 in _root.crntLvl.players) {
_root.crntLvl.players[_local7].ani_startTime = _root.crntLvl.players[_local7].ani_startTime + _local3;
}
for (var _local5 in _root.rt.dodatci) {
if (_root.rt.dodatci[_local5].ani_startTime != undefined) {
_root.rt.dodatci[_local5].ani_startTime = _root.rt.dodatci[_local5].ani_startTime + _local3;
}
}
for (var _local6 in _root.rt.animacije) {
if (_root.rt.animacije[_local6].ani_startTime != undefined) {
_root.rt.animacije[_local6].ani_startTime = _root.rt.animacije[_local6].ani_startTime + _local3;
}
}
for (var _local4 in _root.crntLvl.lopte) {
if (_root.crntLvl.lopte[_local4].creationTime != undefined) {
_root.crntLvl.lopte[_local4].creationTime = _root.crntLvl.lopte[_local4].creationTime + _local3;
}
}
_root.rt.normalLevel();
} else if (stanje == "aniIgraca") {
for (var _local7 in _root.crntLvl.players) {
_root.crntLvl.players[_local7].ani_startTime = _root.crntLvl.players[_local7].ani_startTime + _local3;
}
_root.rt.aniIgraca();
} else if (stanje == "outOfTime") {
_root.ingame_interface.outofTime.ani_startTime = _root.ingame_interface.outofTime.ani_startTime + _local3;
_root.rt.outOfTime();
} else if (stanje == "gameOver") {
_root.ingame_interface.gameOverMovie.ani_startTime = _root.ingame_interface.gameOverMovie.ani_startTime + _local3;
_root.rt.gameOver();
} else if (stanje == "animateDeath") {
for (var _local7 in _root.crntLvl.players) {
_root.crntLvl.players[_local7].ani_startTime = _root.crntLvl.players[_local7].ani_startTime + _local3;
}
_root.rt.animateDeath();
} else if (stanje == "getReady") {
_root.ingame_interface.getReadyAnimation.ani_startTime = _root.ingame_interface.getReadyAnimation.ani_startTime + _local3;
for (var _local7 in _root.crntLvl.players) {
_root.crntLvl.players[_local7].ani_startTime = _root.crntLvl.players[_local7].ani_startTime + _local3;
}
_root.rt.getReady();
} else if (stanje == "bravoAni") {
_root.ingame_interface.bravoAnimation.ani_startTime = _root.ingame_interface.bravoAnimation.ani_startTime + _local3;
for (var _local7 in _root.crntLvl.players) {
_root.crntLvl.players[_local7].ani_startTime = _root.crntLvl.players[_local7].ani_startTime + _local3;
}
for (var _local6 in _root.rt.animacije) {
if (_root.rt.animacije[_local6].ani_startTime != undefined) {
_root.rt.animacije[_local6].ani_startTime = _root.rt.animacije[_local6].ani_startTime + _local3;
}
}
_root.rt.bravoAni();
} else {
TRE(this, "DEBUG: unknown restore state:" + stanje);
}
}
};
level.prototype.create_animation_item = function (link_id) {
var _local5 = 0;
while (_local5 <= _root.crntLvl.itemMaxNum) {
if (_root.render_buff.itemi["item" + _local5].used != true) {
this.laser_br_latica++;
var _local4 = _local5;
var _local3 = _root.render_buff.itemi.attachMovie(link_id, "item" + _local4, _local4 + _root.crntLvl.item_startDepth);
if (typeof(_local3) != "movieclip") {
TRE(this, "DEBUG! [create_animation_item] ovo nije dobar linkage indentifier - ne mogu napaviti MC: " + link_id);
}
_local3.used = true;
_local3.id = _local4;
_local3.stackerDo = null;
_root.crntLvl.spawnedItems["item" + _local4] = _local3;
return(_local3);
}
_local5++;
}
TRE(this, "DEBUG! nemam prazan level pa ne mogu napraviti item!!!!" + link_id);
};
level.prototype.animate_dodatak = function (ime_animacije, mc, playDirection, loopTimes, whenComplete) {
if (_root.rt.animacije[ime_animacije] != undefined) {
return(true);
}
mc.ime_animacije = ime_animacije;
_root.rt.animacije[ime_animacije] = mc;
if ((mc == undefined) || (typeof(mc) != "movieclip")) {
TRE(this, (((("DEBUG: [animate_dodatak:" + ime_animacije) + "], nepostojec MC ili nije movieclip! mc:") + mc) + ", typeof:") + typeof(mc));
}
if (((playDirection != "f") && (playDirection != "b")) && (playDirection != "t")) {
TRE(this, (((("DEBUG, [animate_dodatak:" + ime_animacije) + "][mc:") + mc) + "], playDirection treba biti 'f' ili 'b' ili 't'! playDirection:") + playDirection);
} else {
mc.playDirection = playDirection;
}
if ((whenComplete != undefined) && (((whenComplete != "destroyFunction") && (whenComplete != "destroy")) && (whenComplete != "stop"))) {
TRE(this, (((("DEBUG, [animate_dodatak:" + ime_animacije) + "][mc:") + mc) + "], whenComplete treba biti 'stop' ili 'destroy' ili 'destroyFunction'! whenComplete:") + whenComplete);
} else {
mc.whenComplete = whenComplete;
}
if ((loopTimes === 0) && (whenComplete != undefined)) {
TRE(this, ((((("DEBUG, [animate_dodatak:" + ime_animacije) + "][mc:") + mc) + "], zadao sam whenComplete: ") + whenComplete) + ", a film nikada ne staje zbog loopTimes=0!");
} else if (loopTimes === 0) {
mc.loopTimes = -1;
} else {
mc.loopTimes = loopTimes;
}
mc.ani_startTime = getTimer();
mc.animiraj = function () {
var _local3 = Math.round((_root.rt.o - this.ani_startTime) * 0.03) + 1;
if (this.playDirection == "b") {
_local3 = this._totalframes - _local3;
}
if (((_local3 >= this._totalframes) && (this.playDirection == "f")) || ((_local3 <= 1) && (this.playDirection == "b"))) {
this.ani_startTime = getTimer();
this.loopTimes--;
} else if (this.playDirection == "t") {
this.loopTimes = this.loopTimes - _root.rt.f;
if (this.loopTimes < 0) {
this.loopTimes = 0;
}
}
if (this.loopTimes == 0) {
this.lvl_dodatakAnimate_finished();
} else {
this.gotoAndStop(_local3);
}
};
};
MovieClip.prototype.lvl_dodatakAnimate_finished = function () {
delete _root.rt.animacije[this.ime_animacije];
if (this.whenComplete == "destroyFunction") {
if ((this.destroyFunction != undefined) && (typeof(this.destroyFunction) == "function")) {
this.destroyFunction();
} else {
TRE(this, (((("DEBUG! [animate_dodatak:" + this.ime_animacije) + "][mc:") + this) + "] - nema pravilnu destroyFunction: ") + this.destroyFunction);
}
} else if (this.whenComplete == "destroy") {
this.removeMovieClip();
} else if (this.whenComplete == "stop") {
this.animiraj = null;
this.gotoAndStop(1);
}
};
MovieClip.prototype.spawnItem_item = function (itemPop, x, y) {
if (((itemPop == "extra_life") || (itemPop == "extra_life_combo")) && (_root.crntGame.zivoti.sa_staze["lvl" + _root.crntGame.trenutniLevel])) {
return(true);
}
if (itemPop != "null") {
if (!_root.value_in_array(_root.crntLvl.knownItems, itemPop)) {
TRE(this, ("DEBUG: nepoznat item: '" + itemPop) + "'");
}
var _local3 = _root.crntLvl.create_animation_item("item_" + itemPop);
_local3.tip = itemPop;
if (_root.value_in_array(_root.crntLvl.bodItemi, itemPop)) {
_local3.bodItem = true;
}
_local3.defaultLife = 5.5;
_local3.itemLives = _local3.defaultLife;
_local3.startFlicker = 2;
_local3._x = x;
_local3._y = y;
_local3._xscale = (_local3._yscale = 115);
_local3.brzy = 90;
_local3.sir = 2;
_local3.vis = 2;
_local3.su = _root.crntLvl.ballCells1;
_local3.cs = _root.crntLvl.cellSize[1];
_local3.hcs = _local3.cs / 2;
_local3.cx = Math.floor(_local3._x / _local3.cs);
if ((_local3._x % _local3.cs) < _local3.hcs) {
_local3.sektori = "ljevi";
} else {
_local3.sektori = "desni";
}
_local3.stackerDo = _local3.itemFall_item;
}
};
MovieClip.prototype.itemVsTile_item = function (t) {
var _local5 = this._x - t.sredx;
var _local3 = (t.sirx + this.sir) - Math.abs(_local5);
if (_local3 >= 0) {
var _local6 = this._y - t.sredy;
var _local4 = (t.siry + this.vis) - Math.abs(_local6);
if (_local4 >= 0) {
return(true);
}
}
return(false);
};
MovieClip.prototype.itemVsPlayer_item = function (player) {
var _local2 = 5;
var _local6 = this._x - player._x;
var _local4 = ((player.hw + this.sir) + _local2) - Math.abs(_local6);
if (_local4 > 0) {
var _local7 = this._y - player._y;
var _local5 = ((player.hh + this.vis) + _local2) - Math.abs(_local7);
if (_local5 > 0) {
return(true);
}
}
return(false);
};
MovieClip.prototype.itemFall_item = function () {
var _local14 = _root.rt.f;
this.y = this._y;
var _local13 = _local14 * this.brzy;
absBy = Math.abs(_local13);
if (absBy > 2) {
var _local11 = Math.floor(absBy / 5) + 1;
this.vy = _local13 / _local11;
} else {
this.vy = _local13;
var _local11 = 1;
}
var _local9 = 1;
while (_local9 <= _local11) {
this.y = this.y + this.vy;
var _local8 = Math.floor(this.y / this.cs);
if (this.sektori == "ljevi") {
if ((this.y % this.cs) < this.hcs) {
var _local7 = "A";
} else {
var _local7 = "C";
}
} else if ((this.y % this.cs) < this.hcs) {
var _local7 = "B";
} else {
var _local7 = "D";
}
var _local5 = this.su[(("cell" + this.cx) + "_") + _local8][_local7];
var _local6 = 1000;
for (var _local10 in _local5) {
if (this.itemVsTile_item(_local5[_local10]) == true) {
var _local3 = _local5[_local10];
if (this.x < _local3.t1x) {
var _local4 = _local3.t1x - this.x;
} else if (this.x > _local3.t2x) {
var _local4 = this.x - _local3.t2x;
} else {
var _local4 = 0;
}
if (_local4 < _local6) {
_local6 = _local4;
this.hasHitTile = _local3;
this.y = (_local3.t1y - this.vis) + 1;
this.stackerDo = this.grounded_item;
this.nextFlick = getTimer();
this.cy = Math.floor(this._y / this.cs);
delete this.cx;
if ((this.y % this.cs) < this.hcs) {
this.sektori = "gornji";
} else {
this.sektori = "donji";
}
}
}
}
_local9++;
}
this._y = this.y;
for (var _local12 in _root.crntLvl.players) {
if (this.itemVsPlayer_item(_root.crntLvl.players[_local12]) == true) {
this.itemPokupljen_item(_root.crntLvl.players[_local12]);
}
}
};
MovieClip.prototype.grounded_item = function () {
if (this.itemVsTile_item(this.hasHitTile) == true) {
if (this.hasHitTile.tip == "traka") {
this.groundedOnTraka_item(this.hasHitTile);
} else {
this.flickerItem_item();
}
} else {
this.cx = Math.floor(this._x / this.cs);
delete this.cy;
if ((this._x % this.cs) < this.hcs) {
this.sektori = "ljevi";
} else {
this.sektori = "desni";
}
this.visible = true;
this.hasHitTile = null;
this.itemLives = this.defaultLife;
this.stackerDo = this.itemFall_item;
}
for (var _local3 in _root.crntLvl.players) {
if (this.itemVsPlayer_item(_root.crntLvl.players[_local3]) == true) {
this.itemPokupljen_item(_root.crntLvl.players[_local3]);
}
}
};
MovieClip.prototype.groundedOnTraka_item = function (traka) {
var _local21 = _root.rt.f;
this.x = this._x;
this.y = this._y;
var _local20 = _local21 * traka.brz;
absBx = Math.abs(_local20);
if (absBx > 5) {
var _local19 = Math.floor(absBx / 5) + 1;
this.vx = _local20 / _local19;
} else {
this.vx = _local20;
var _local19 = 1;
}
var _local17 = 1;
while (_local17 <= _local19) {
this.x = this.x + this.vx;
var _local15 = Math.floor(this.x / this.cs);
if (this.sektori == "donji") {
if ((this.x % this.cs) < this.hcs) {
var _local16 = "C";
} else {
var _local16 = "D";
}
} else if ((this.x % this.cs) < this.hcs) {
var _local16 = "A";
} else {
var _local16 = "B";
}
var _local6 = this.su[(("cell" + _local15) + "_") + this.cy][_local16];
var _local8 = false;
if (this.x < this.hasHitTile.t1x) {
var _local14 = this.hasHitTile.t1x - this.x;
} else if (this.x > this.hasHitTile.t2x) {
var _local14 = this.x - this.hasHitTile.t2x;
} else {
var _local14 = 0;
}
for (var _local18 in _local6) {
if (_local6[_local18] != this.hasHitTile) {
var _local3 = _local6[_local18];
var _local12 = this.x - _local3.sredx;
var _local4 = (_local3.sirx + this.sir) - Math.abs(_local12);
if (_local4 > 0) {
var _local11 = this.y - _local3.sredy;
var _local10 = (_local3.siry + this.vis) - Math.abs(_local11);
if (_local10 > 0) {
if (_local3.t1y < this.hasHitTile.t1y) {
var _local13 = true;
if (this.x > _local3.sredx) {
this.x = this.x + _local4;
} else {
this.x = this.x - _local4;
}
_local8 = false;
} else {
if (this.x < _local3.t1x) {
var _local5 = _local3.t1x - this.x;
} else if (this.x > _local3.t2x) {
var _local5 = this.x - _local3.t2x;
} else {
var _local5 = 0;
}
if (_local5 < _local14) {
var _local14 = _local5;
var _local7 = _local3;
var _local9 = 0;
_local8 = true;
}
}
}
}
}
}
if (_local13 == true) {
this.flickerItem_item();
} else if (_local8 == true) {
if (this.x > _local7.sredx) {
this.x = this.x + _local9;
} else {
this.x = this.x - _local9;
}
this.y = (_local7.t1y - this.vis) + 1;
this.hasHitTile = _local7;
}
_local17++;
}
this._x = this.x;
this._y = this.y;
};
MovieClip.prototype.itemPokupljen_item = function (igrac) {
if ((!(igrac.id === 1)) && (!(igrac.id === 2))) {
TRE(this, (("DEBUG: nije zadan player id u funkciji itemPokupljen_item (id:" + igrac.id) + ", igrac:") + igrac, 1);
}
TRE(this, (("Pokupljen item: " + this.tip) + ", igrac:") + igrac.id, 10);
if (this.tip == "weapon_single") {
this.activateWeapon(igrac, 1);
} else if (this.tip == "weapon_double") {
this.activateWeapon(igrac, 2);
} else if (this.tip == "weapon_laser") {
this.activateWeapon(igrac, 3);
} else if (this.tip == "weapon_hook") {
this.activateWeapon(igrac, 4);
} else if (this.tip == "vrijeme") {
_root.ingame_interface.timeLeft = _root.ingame_interface.timeLeft + 6;
if (_root.ingame_interface.timeLeft > _root.ingame_interface.start_time) {
_root.ingame_interface.timeLeft = _root.ingame_interface.start_time;
}
} else if (this.tip == "bodovi1") {
_root.crntLvl.addPoints_level("item", this.tip, igrac.id, 500);
} else if (this.tip == "bodovi2") {
_root.crntLvl.addPoints_level("item", this.tip, igrac.id, 1000);
} else if (this.tip == "bodovi3") {
_root.crntLvl.addPoints_level("item", this.tip, igrac.id, 1500);
} else if (this.tip == "uspori_lopte") {
_root.crntLvl.slowDownBalls_level(10, 0.7, igrac.id);
} else if (this.tip == "dinamit") {
_root.crntLvl.useDynamite_level(igrac.id);
} else if (this.tip == "zvijezda") {
_root.crntLvl.zvijezdaItem_level(igrac.id);
} else if (this.tip == "freeze") {
_root.crntLvl.freezeLevel_level(igrac.id);
} else if (this.tip == "speed") {
_root.crntLvl.activate_speed_player(igrac.id);
} else if (this.tip == "shield_plain") {
var _local4 = new MySound("stit_pali");
igrac.activate_shield_plain_player();
} else if (this.tip == "shield_invincible") {
var _local4 = new MySound("stit_pali");
igrac.activate_shield_invincible_player();
} else if ((this.tip == "extra_life") || (this.tip == "extra_life_combo")) {
switch (_root.crntGame.mod) {
case "single" :
case "stayingalive1" :
_root.crntGame.zivoti.p1++;
_root.ingame_interface.zivoti.gotoAndStop(_root.crntGame.zivoti.p1);
break;
case "stayingalive2" :
case "coop" :
_root.crntGame.zivoti.coop++;
_root.ingame_interface.zivoti.gotoAndStop(_root.crntGame.zivoti.coop);
break;
default :
TRE((("Ne znam mod (pokupljen extra life):" + _root.crntGame.mod) + ", p:") + player);
}
_root.crntGame.zivoti.sa_staze["lvl" + _root.crntGame.trenutniLevel] = true;
} else {
TRE(this, "DEBUG: Picked up unknown item:" + this.tip);
}
this.unistiItem_item();
};
level.prototype.freezeLevel_level = function (igrac_id) {
var _local6 = 6;
if (_root.crntLvl.cloned == true) {
var dodatak_name = ("freezer" + igrac_id);
} else {
var dodatak_name = "freezer";
}
var _local5 = _root.rt.dodatci[dodatak_name];
if (_local5 != undefined) {
TRE(this, ("Pokupio freeze: " + igrac_id) + "! dodajem vrijeme jer je vec aktiviran", 10);
_local5.timeLeft = _local5.timeLeft + _local6;
MyStyles.applyFancyFormatting(_local5.tekst_sec, MyStyles.INGAME_FREEZE_BALLS);
MyStyles.applyFancyFormatting(_local5.tekst_mili, MyStyles.INGAME_FREEZE_BALLS);
MyStyles.applyFancyFormatting(_local5.tekst_split, MyStyles.INGAME_FREEZE_BALLS);
dodatak.tekstStyle = false;
} else {
TRE(this, ("Pokupio freeze: " + igrac_id) + "!", 10);
var _local8 = _root.crntLvl.item_startDepth;
var _local4 = _root.crntLvl.itemMaxNum;
while (_local4 >= 0) {
if (_root.render_buff.itemi["item" + _local4].used != true) {
var _local7 = _local4;
break;
}
_local4--;
}
_local5 = _root.render_buff.itemi.attachMovie("ingame_countDownClock", "item" + _local7, _local8 + _local7);
MyStyles.applyFancyFormatting(_local5.tekst_sec, MyStyles.INGAME_FREEZE_BALLS);
MyStyles.applyFancyFormatting(_local5.tekst_mili, MyStyles.INGAME_FREEZE_BALLS);
MyStyles.applyFancyFormatting(_local5.tekst_split, MyStyles.INGAME_FREEZE_BALLS);
_local5.tekstStyle = false;
_local5.used = true;
_local5.id = _local7;
_local5._x = ((_root.crntLvl.xmax - _root.crntLvl.xmin) / 2) + _root.crntLvl.xmin;
if (_root.crntLvl.cloned == true) {
if (igrac_id == 1) {
_local5._x = _local5._x - 150;
} else {
_local5._x = _local5._x + 150;
}
}
_local5._y = ((_root.crntLvl.ymax - _root.crntLvl.ymin) / 2) + _root.crntLvl.ymin;
_local5.timeLeft = _local6;
_local5.dodatak_name = dodatak_name;
_local5.igrac_id = igrac_id;
_local5.stackerDo = function () {
if (this.timeLeft == -10) {
TRE(this, ("Gotov freeze: " + this.igrac_id) + "!", 10);
delete _root.rt.dodatci[this.dodatak_name];
if (_root.crntLvl.cloned == true) {
if (this.igrac_id == 1) {
for (var _local3 in _root.crntLvl.lopte) {
if (_root.crntLvl.lopte[_local3].cloned != true) {
_root.crntLvl.lopte[_local3].stackerDo = _root.crntLvl.lopte[_local3].oldStackerDo;
_root.crntLvl.lopte[_local3]._alpha = 100;
}
}
} else {
for (var _local3 in _root.crntLvl.lopte) {
if (_root.crntLvl.lopte[_local3].cloned == true) {
_root.crntLvl.lopte[_local3].stackerDo = _root.crntLvl.lopte[_local3].oldStackerDo;
_root.crntLvl.lopte[_local3]._alpha = 100;
}
}
}
} else {
for (var _local3 in _root.crntLvl.lopte) {
_root.crntLvl.lopte[_local3].stackerDo = _root.crntLvl.lopte[_local3].oldStackerDo;
_root.crntLvl.lopte[_local3]._alpha = 100;
}
}
this.unistiItem_item();
return(true);
}
this.timeLeft = this.timeLeft - _root.rt.f;
var _local6 = String(this.timeLeft % 1);
var _local5 = Math.floor(this.timeLeft);
var _local4 = _local6.substr(2, 2);
if (this.timeLeft < 0) {
this.timeLeft = -10;
_local5 = "0";
_local4 = "00";
}
if ((this.timeLeft < 1.5) && (this.tekstStyle == false)) {
MyStyles.applyFancyFormatting(this.tekst_sec, MyStyles.INGAME_FREEZE_BALLS_OFF);
MyStyles.applyFancyFormatting(this.tekst_mili, MyStyles.INGAME_FREEZE_BALLS_OFF);
MyStyles.applyFancyFormatting(this.tekst_split, MyStyles.INGAME_FREEZE_BALLS_OFF);
this.tekstStyle = true;
}
this.tekst_sec.text = _local5;
this.tekst_mili.text = _local4;
};
_root.rt.dodatci[dodatak_name] = _local5;
if (_root.crntLvl.cloned == true) {
if (igrac_id == 1) {
for (var _local3 in _root.crntLvl.lopte) {
if (_root.crntLvl.lopte[_local3].cloned != true) {
_root.crntLvl.lopte[_local3].oldStackerDo = _root.crntLvl.lopte[_local3].stackerDo;
_root.crntLvl.lopte[_local3].stackerDo = _root.crntLvl.lopte[_local3].freezeBall_ball;
_root.crntLvl.lopte[_local3]._alpha = 60;
}
}
} else {
for (var _local3 in _root.crntLvl.lopte) {
if (_root.crntLvl.lopte[_local3].cloned == true) {
_root.crntLvl.lopte[_local3].oldStackerDo = _root.crntLvl.lopte[_local3].stackerDo;
_root.crntLvl.lopte[_local3].stackerDo = _root.crntLvl.lopte[_local3].freezeBall_ball;
_root.crntLvl.lopte[_local3]._alpha = 60;
}
}
}
} else {
for (var _local3 in _root.crntLvl.lopte) {
_root.crntLvl.lopte[_local3].oldStackerDo = _root.crntLvl.lopte[_local3].stackerDo;
_root.crntLvl.lopte[_local3].stackerDo = _root.crntLvl.lopte[_local3].freezeBall_ball;
_root.crntLvl.lopte[_local3]._alpha = 60;
}
}
}
};
level.prototype.slowDownBalls_level = function (howlong_sec, factor, igrac_id) {
if (_root.crntLvl.cloned == true) {
var dodatak_name = ("slowdown_ball" + igrac_id);
} else {
var dodatak_name = "slowdown_ball";
}
var _local6 = _root.rt.dodatci[dodatak_name];
if (_local6 != undefined) {
if (((_local6.speed_factor > 0) && (factor > 0)) || ((_local6.speed_factor < 0) && (factor < 0))) {
_local6.timeLeft = _local6.timeLeft + howlong_sec;
MyStyles.applyFancyFormatting(_local6.tekst_sec, MyStyles.INGAME_SLOW_DOWN_BALLS);
MyStyles.applyFancyFormatting(_local6.tekst_mili, MyStyles.INGAME_SLOW_DOWN_BALLS);
MyStyles.applyFancyFormatting(_local6.tekst_split, MyStyles.INGAME_SLOW_DOWN_BALLS);
_local6.tekstStyle = false;
} else {
TRE(this, (((("DEBUG! Imam neprevidenu situaciju! [slowDownBalls_level]: " + howlong_sec) + ", ") + factor) + ", ") + igrac_id);
}
} else {
var _local9 = _root.crntLvl.item_startDepth;
var _local5 = _root.crntLvl.itemMaxNum;
while (_local5 >= 0) {
if (_root.render_buff.itemi["item" + _local5].used != true) {
var _local8 = _local5;
break;
}
_local5--;
}
_local6 = _root.render_buff.itemi.attachMovie("ingame_countDownClock", "item" + _local8, _local9 + _local8);
MyStyles.applyFancyFormatting(_local6.tekst_sec, MyStyles.INGAME_SLOW_DOWN_BALLS);
MyStyles.applyFancyFormatting(_local6.tekst_mili, MyStyles.INGAME_SLOW_DOWN_BALLS);
MyStyles.applyFancyFormatting(_local6.tekst_split, MyStyles.INGAME_SLOW_DOWN_BALLS);
_local6.tekstStyle = false;
_local6.used = true;
_local6.id = _local8;
_local6._x = ((_root.crntLvl.xmax - _root.crntLvl.xmin) / 2) + _root.crntLvl.xmin;
_local6._y = (((_root.crntLvl.ymax - _root.crntLvl.ymin) / 2) + _root.crntLvl.ymin) - 50;
if (_root.crntLvl.cloned == true) {
if (igrac_id == 1) {
_local6._x = _local6._x - 150;
} else {
_local6._x = _local6._x + 150;
}
}
_local6.timeLeft = howlong_sec;
_local6.speed_factor = factor;
_local6.dodatak_name = dodatak_name;
_local6.igrac_id = igrac_id;
_root.rt.dodatci[dodatak_name] = _local6;
_local6.stackerDo = function () {
if (this.timeLeft == -10) {
if (_root.crntLvl.cloned == true) {
if (this.igrac_id == 1) {
for (var _local3 in _root.crntLvl.lopte) {
if (_root.crntLvl.lopte[_local3].cloned != true) {
_root.crntLvl.lopte[_local3].modify_brz = 1;
}
}
} else {
for (var _local3 in _root.crntLvl.lopte) {
if (_root.crntLvl.lopte[_local3].cloned == true) {
_root.crntLvl.lopte[_local3].modify_brz = 1;
}
}
}
} else {
for (var _local3 in _root.crntLvl.lopte) {
_root.crntLvl.lopte[_local3].modify_brz = 1;
}
}
delete _root.rt.dodatci[this.dodatak_name];
this.unistiItem_item();
return(true);
}
this.timeLeft = this.timeLeft - _root.rt.f;
var _local6 = String(this.timeLeft % 1);
var _local5 = Math.floor(this.timeLeft);
var _local4 = _local6.substr(2, 2);
if (this.timeLeft < 0) {
this.timeLeft = -10;
_local5 = "0";
_local4 = "00";
}
if ((this.timeLeft <= 1.5) && (this.tekstStyle == false)) {
MyStyles.applyFancyFormatting(this.tekst_sec, MyStyles.INGAME_SLOW_DOWN_BALLS_OFF);
MyStyles.applyFancyFormatting(this.tekst_mili, MyStyles.INGAME_SLOW_DOWN_BALLS_OFF);
MyStyles.applyFancyFormatting(this.tekst_split, MyStyles.INGAME_SLOW_DOWN_BALLS_OFF);
this.tekstStyle = true;
}
this.tekst_sec.text = _local5;
this.tekst_mili.text = _local4;
};
if (_root.crntLvl.cloned == true) {
if (igrac_id == 1) {
for (var _local4 in _root.crntLvl.lopte) {
if (_root.crntLvl.lopte[_local4].cloned != true) {
_root.crntLvl.lopte[_local4].modify_brz = factor;
}
}
} else {
for (var _local4 in _root.crntLvl.lopte) {
if (_root.crntLvl.lopte[_local4].cloned == true) {
_root.crntLvl.lopte[_local4].modify_brz = factor;
}
}
}
} else {
for (var _local4 in _root.crntLvl.lopte) {
_root.crntLvl.lopte[_local4].modify_brz = factor;
}
}
}
};
level.prototype.activate_speed_player = function (igrac_id) {
TRE(this, ("Pokupio speed: " + igrac_id) + "!", 10);
_root.crntLvl.players["player" + igrac_id].brzx = _root.crntLvl.playerSpeed.bx + 50;
_root.crntLvl.players["player" + igrac_id].bpl = _root.crntLvl.playerSpeed.brzinaPoLojtrama + 35;
};
level.prototype.useDynamite_level = function (igrac_id) {
if (_root.crntLvl.cloned == true) {
var dodatak_name = ("dinamit" + igrac_id);
} else {
var dodatak_name = "dinamit";
}
if (_root.rt.dodatci[dodatak_name] != undefined) {
return(true);
}
var _local7 = _root.crntLvl.item_startDepth;
var _local3 = _root.crntLvl.itemMaxNum;
while (_local3 >= 0) {
if (_root.render_buff.itemi["item" + _local3].used != true) {
var _local4 = _local3;
break;
}
_local3--;
}
var _local5 = _root.render_buff.itemi.createEmptyMovieClip("item" + _local4, _local7 + _local4);
_local5.used = true;
_local5.id = _local4;
_local5.dodatak_name = dodatak_name;
if (_root.crntGame.mod == "vs") {
_local5.igrac_id = 3;
} else {
_local5.igrac_id = igrac_id;
}
_local5.timePassed = 0;
_local5.stackerDo = function () {
this.timePassed = this.timePassed + _root.rt.f;
if (this.timePassed > 0.5) {
this.timePassed = 0;
var _local3 = false;
if (_root.crntLvl.cloned == true) {
if (this.igrac_id == 1) {
for (var _local4 in _root.crntLvl.lopte) {
if ((_root.crntLvl.lopte[_local4].cloned != true) && (_root.crntLvl.lopte[_local4].id > 1)) {
_root.crntLvl.lopte[_local4]["split_ball_" + _root.crntLvl.lopte[_local4].splitway](this.igrac_id);
_local3 = true;
}
}
} else {
for (var _local4 in _root.crntLvl.lopte) {
if ((_root.crntLvl.lopte[_local4].cloned == true) && (_root.crntLvl.lopte[_local4].id > 1)) {
_root.crntLvl.lopte[_local4]["split_ball_" + _root.crntLvl.lopte[_local4].splitway](this.igrac_id);
_local3 = true;
}
}
}
} else {
for (var _local4 in _root.crntLvl.lopte) {
if (_root.crntLvl.lopte[_local4].id > 1) {
_root.crntLvl.lopte[_local4]["split_ball_" + _root.crntLvl.lopte[_local4].splitway](this.igrac_id);
_local3 = true;
}
}
}
if (_local3 == false) {
delete _root.rt.dodatci[this.dodatak_name];
this.unistiItem_item();
return(true);
}
}
};
_root.rt.dodatci[dodatak_name] = _local5;
};
level.prototype.zvijezdaItem_level = function (igrac_id) {
if (_root.crntLvl.cloned == true) {
var dodatak_name = ("zvijezda" + igrac_id);
} else {
var dodatak_name = "zvijezda";
}
if (_root.rt.dodatci[dodatak_name] != undefined) {
return(true);
}
var _local8 = _root.crntLvl.item_startDepth;
var _local3 = _root.crntLvl.itemMaxNum;
while (_local3 >= 0) {
if (_root.render_buff.itemi["item" + _local3].used != true) {
var _local4 = _local3;
break;
}
_local3--;
}
var _local5 = _root.render_buff.itemi.createEmptyMovieClip("item" + _local4, _local8 + _local4);
_local5.used = true;
_local5.id = _local4;
_local5.dodatak_name = dodatak_name;
if (_root.crntGame.mod == "vs") {
_local5.igrac_id = 3;
} else {
_local5.igrac_id = igrac_id;
}
_local5.timePassed = 0;
_local5.tip = "zvijezda";
_local5.stackerDo = function () {
this.timePassed = this.timePassed + _root.rt.f;
if (this.timePassed > 0.5) {
this.timePassed = 0;
var _local3 = false;
if (_root.crntLvl.cloned == true) {
if (this.igrac_id == 1) {
for (var _local4 in _root.crntLvl.lopte) {
if (_root.crntLvl.lopte[_local4].cloned != true) {
_root.crntLvl.lopte[_local4]["split_ball_" + _root.crntLvl.lopte[_local4].splitway](this.igrac_id);
_local3 = true;
}
}
} else {
for (var _local4 in _root.crntLvl.lopte) {
if (_root.crntLvl.lopte[_local4].cloned == true) {
_root.crntLvl.lopte[_local4]["split_ball_" + _root.crntLvl.lopte[_local4].splitway](this.igrac_id);
_local3 = true;
}
}
}
} else {
for (var _local4 in _root.crntLvl.lopte) {
_root.crntLvl.lopte[_local4]["split_ball_" + _root.crntLvl.lopte[_local4].splitway](this.igrac_id);
_local3 = true;
}
}
if (_local3 == false) {
delete _root.rt.dodatci[this.dodatak_name];
this.unistiItem_item();
return(true);
}
}
};
_local5.igracPointer = new Object();
if (_root.crntLvl.cloned == true) {
if (((igrac_id == 1) && (_root.crntLvl.lopte[lopta].cloned != true)) || ((igrac_id == 2) && (_root.crntLvl.lopte[lopta].cloned == true))) {
for (var _local6 in _root.crntLvl.players) {
if (_root.crntLvl.players[_local6].id == igrac_id) {
_root.crntLvl.players[_local6].ball_hw_default = -1000;
_root.crntLvl.players[_local6].ball_hw = -1000;
}
}
}
} else {
for (var _local6 in _root.crntLvl.players) {
_root.crntLvl.players[_local6].ball_hw_default = -1000;
_root.crntLvl.players[_local6].ball_hw = -1000;
}
}
_root.rt.dodatci[dodatak_name] = _local5;
};
MovieClip.prototype.flickerItem_item = function () {
this.itemLives = this.itemLives - _root.rt.f;
if (this.itemLives <= 0) {
this.unistiItem_item();
}
if ((this.nextFlick < _root.rt.o) && (this.itemLives < this.startFlicker)) {
this.nextFlick = _root.rt.o + 100;
if (this._visible == true) {
this._visible = false;
} else if (this._visible == false) {
this._visible = true;
}
}
};
MovieClip.prototype.unistiItem_item = function () {
if (this.ime_animacije != undefined) {
delete _root.rt.animacije[this.ime_animacije];
delete this.ime_animacije;
}
delete _root.crntLvl.spawnedItems["item" + this.id];
_root.rt.itemsToDestroy.push(this);
};
MovieClip.prototype.useWeapon = function () {
if (_root.rt.o <= this.vrijemePauzePucanj_pucanj) {
return(false);
}
if (this.weaponReady != true) {
if (this.myHook.weapon == "4b") {
this.myHook.lifeRemains = 0;
}
return(false);
}
this.weaponReady = false;
this.vrijemePauzePomicanje_pucanj = 50 + _root.rt.o;
this.vrijemePauzePucanj_pucanj = 150 + _root.rt.o;
var _local10 = _root.crntLvl.pucanj_startDepth;
var _local4 = 0;
while (_local4 <= _root.crntLvl.pucanjMaxNum) {
if (_root.render_buff.pucnji["pucanj" + _local4].used != true) {
var _local5 = _local4;
break;
}
_local4++;
}
var _local13 = this.ani_pucanj_offsets[this.animate_state];
switch (this.weapon) {
case 3 :
var _local3 = _root.render_buff.pucnji.attachMovie("pucanj_laser", "pucanj" + _local5, _local10 + _local5);
_local3.used = true;
var _local14 = new MySound("flower", _local3);
if ((this.laser_br_latica < this.laser_br_latica_max) && (_root.disableAnimations != true)) {
this.laser_br_latica++;
var _local9 = _root.crntLvl.create_animation_item("pucanj_laser_list_ani");
_local9._x = this._x;
_local9._y = (this._y - this.hh) - 5;
if (this.laser_laticaParna == true) {
this.laser_laticaParna = false;
} else {
this.laser_laticaParna = true;
_local9._xscale = -100;
}
_local9.parentPlayer = this;
_local9.destroyFunction = this.laser_unistiLaticu;
_root.crntLvl.animate_dodatak((("latica_" + this.id) + "_") + _local9.id, _local9, "f", 1, "destroyFunction");
}
_local3._x = this._x + _local13;
_local3._y = (this._y - this.hh) - 5;
_local3.vis_default = 10;
_local3.vis = _local3.vis_default;
_local3.visFull = _local3.vis * 2;
_local3.sir = 10;
_local3.su = _root.crntLvl.ballCells1;
_local3.cs = _root.crntLvl.cellSize[1];
_local3.hcs = _local3.cs / 2;
_local3.cx = Math.floor(_local3._x / _local3.cs);
if ((_local3._x % _local3.cs) < _local3.hcs) {
_local3.sektori = "ljevi";
} else {
_local3.sektori = "desni";
}
_local3.brzy = -600;
_local3.stackerDo = this.pucanj_laser;
this.weaponReady = true;
break;
case 2 :
var _local8 = 1;
for (_local3 in _root.crntLvl.pucnji) {
if (_root.crntLvl.pucnji[_local3].player == this) {
_local8++;
}
}
if (_local8 < 2) {
this.weaponReady = true;
}
case 4 :
case 1 :
if (this.weapon == 4) {
_local3 = _root.render_buff.pucnji.attachMovie("pucanj_hook_leti", "pucanj" + _local5, _local10 + _local5);
_local14 = new MySound("hook-shot", _local3);
} else {
_local3 = _root.render_buff.pucnji.attachMovie("pucanj_single", "pucanj" + _local5, _local10 + _local5);
_local14 = new MySound("twirl", _local3);
}
_local3.used = true;
var _local12 = _root.render_buff.pucnji.attachMovie("pucanj_single_maska", "maska" + _local5, (_local10 + _local5) + 100);
_local12._x = this._x;
_local12._y = this._y + this.hh;
_local3.maska = _local12;
_local3.setMask(_local12);
if (this.weapon != 4) {
_root.crntLvl.animate_dodatak("pucanj" + _local5, _local3, "f", 0);
}
_local3._x = this._x + _local13;
_local3._y = (this._y - this.hh) - 5;
_local3.y1 = _local3._y;
_local3.y2 = _local3.y1;
_local3.sir = 3;
_local3.starty = this._y + this.hh;
_local3.su = _root.crntLvl.ballCells1;
_local3.cs = _root.crntLvl.cellSize[1];
_local3.hcs = _local3.cs / 2;
_local3.cx = Math.floor(_local3._x / _local3.cs);
if ((_local3._x % _local3.cs) < _local3.hcs) {
_local3.sektori = "ljevi";
} else {
_local3.sektori = "desni";
}
_local3.brzy = -300;
_local3.stackerDo = this.pucanj_single;
}
_root.crntLvl.pucnji["pucanj" + _local5] = _local3;
_local3.id = _local5;
_local3.weapon = this.weapon;
_local3.player = this;
_local3.razlog_unistenja = null;
_local3.tockaUnistenja = 0;
_local3.collisionFunct = _local3[("pucanj" + _root.crntLvl.pucanj_CheckCollision[this.weapon]) + "VsBall_pucanj"];
if (((_root.crntGame.mod != "vs") && (_root.crntGame.mod != "coop")) && (_root.crntGame.mod != "stayingalive2")) {
} else {
var _local15 = new flash.geom.Transform(_local3);
var _local6 = _level0["player_color_" + this.id];
var _local7 = new flash.geom.ColorTransform();
for (var _local11 in _local6) {
_local7[_local11] = _local6[_local11];
}
_local7.redMultiplier = 0.75;
_local7.greenMultiplier = 0.75;
_local7.blueMultiplier = 0.75;
_local15.colorTransform = _local7;
}
_local3.cacheAsBitmap = true;
_local3.isWeapon = true;
return(true);
};
MovieClip.prototype.laser_unistiLaticu = function () {
this.parentPlayer.laser_br_latica--;
this.unistiItem_item();
};
MovieClip.prototype.activateWeapon = function (player, weapon_id) {
switch (_root.crntGame.mod) {
case "single" :
case "stayingalive1" :
_root.ingame_interface.active_weapon.gotoAndStop(weapon_id);
break;
case "coop" :
case "vs" :
case "stayingalive2" :
_root.ingame_interface["active_weapon_" + player.id].gotoAndStop(weapon_id);
break;
default :
TRE(this, "DEBUG: activateWeapon - nepoznat switch: " + _root.crntGame.mod);
}
player.weapon = weapon_id;
};
MovieClip.prototype.pucanj_single = function () {
var _local14 = _root.rt.f;
this.y = this._y;
var _local13 = _local14 * this.brzy;
absBy = Math.abs(_local13);
if (absBy > 5) {
var _local9 = Math.floor(absBy / 5) + 1;
this.vy = _local13 / _local9;
} else {
this.vy = _local13;
var _local9 = 1;
}
var _local4 = 1;
while (_local4 <= _local9) {
this.y = this.y + this.vy;
var _local10 = Math.floor(this.y / this.cs);
if (this.sektori == "ljevi") {
if ((this.y % this.cs) < this.hcs) {
var _local11 = "A";
} else {
var _local11 = "C";
}
} else if ((this.y % this.cs) < this.hcs) {
var _local11 = "B";
} else {
var _local11 = "D";
}
var _local3 = this.su[(("cell" + this.cx) + "_") + _local10][_local11];
for (var _local12 in _local3) {
if (this.checkPucanjSingleVsTile(_local3[_local12])) {
_root.rt.pucnji.push({pucanj:this, razlog:"tile", imetilea:_local3[_local12], tocka:this.y});
_local4 = _local9;
break;
}
}
_local4++;
}
this._y = this.y;
};
MovieClip.prototype.checkPucanjSingleVsTile = function (t) {
var _local7 = this._x - t.sredx;
var _local5 = t.sirx - Math.abs(_local7);
if (_local5 >= 0) {
var _local9 = this.y2 - this.y;
var _local3 = _local9 / 2;
var _local4 = _local3 + this.y;
var _local8 = _local4 - t.sredy;
var _local6 = (t.siry + _local3) - Math.abs(_local8);
if (_local6 >= 0) {
return(true);
}
}
return(false);
};
MovieClip.prototype.pucanjSingleVsBall_pucanj = function (lopta) {
var _local4 = lopta.x - this._x;
var _local6 = (lopta.r + this.sir) - Math.abs(_local4);
if (_local6 > 0) {
var _local9 = this.starty - this.y;
var _local5 = _local9 / 2;
var _local11 = _local5 + this.y;
var _local2 = lopta.y - _local11;
var _local7 = (_local5 + lopta.r) - Math.abs(_local2);
if (_local7 > 0) {
var _local12 = 0;
vtx_x = this._x;
if (_local2 < (-_local5)) {
var _local10 = this.y;
} else if (_local2 > _local5) {
var _local10 = this.starty;
} else {
return(this.y);
}
_local4 = lopta._x - vtx_x;
_local2 = lopta._y - _local10;
var _local8 = (_local4 * _local4) + (_local2 * _local2);
if (lopta.r2 > _local8) {
return(lopta._y - _local2);
}
}
}
return(false);
};
MovieClip.prototype.pucanj_laser = function () {
var _local14 = _root.rt.f;
this.y = this._y;
this.old_y = this.y;
var _local13 = _local14 * this.brzy;
absBy = Math.abs(_local13);
if (absBy > 5) {
var _local9 = Math.floor(absBy / 5) + 1;
this.vy = _local13 / _local9;
} else {
this.vy = _local13;
var _local9 = 1;
}
var _local4 = 1;
while (_local4 <= _local9) {
this.y = this.y + this.vy;
var _local10 = Math.floor(this.y / this.cs);
if (this.sektori == "ljevi") {
if ((this.y % this.cs) < this.hcs) {
var _local11 = "A";
} else {
var _local11 = "C";
}
} else if ((this.y % this.cs) < this.hcs) {
var _local11 = "B";
} else {
var _local11 = "D";
}
var _local3 = this.su[(("cell" + this.cx) + "_") + _local10][_local11];
for (var _local12 in _local3) {
if (this.checkPucanjLaserVsTile(_local3[_local12])) {
_root.rt.pucnji.push({pucanj:this, razlog:"tile", imetilea:_local3[_local12], tocka:_local3[_local12].t2y});
_local4 = _local9;
break;
}
}
_local4++;
}
this._y = this.y;
this.visFull = (this.old_y - this.y) + this.vis_default;
this.vis = this.visFull / 2;
};
MovieClip.prototype.checkPucanjLaserVsTile = function (t) {
var _local5 = this._x - t.sredx;
var _local3 = (t.sirx + this.sir) - Math.abs(_local5);
if (_local3 > 0) {
var _local6 = (this.y + this.vis) - t.sredy;
var _local4 = (t.siry + this.vis) - Math.abs(_local6);
if (_local4 > 0) {
return(true);
}
}
return(false);
};
MovieClip.prototype.pucanjLaserVsBall_pucanj = function (lopta) {
var _local4 = lopta.x - this._x;
var _local7 = (lopta.r + this.sir) - Math.abs(_local4);
if (_local7 > 0) {
var _local11 = this.visFull;
var _local5 = this.vis;
sredina_pucnja = this.old_y - _local5;
var _local2 = lopta.y - sredina_pucnja;
var _local8 = (_local5 + lopta.r) - Math.abs(_local2);
if (_local8 > 0) {
var _local10 = 0;
vtx_x = this._x;
if (_local2 < (-_local5)) {
var _local6 = this.y;
} else if (_local2 > _local5) {
var _local6 = this.y + this.visFull;
} else {
return(sredina_pucnja);
}
_local4 = lopta._x - vtx_x;
_local2 = lopta._y - _local6;
var _local9 = (_local4 * _local4) + (_local2 * _local2);
if (lopta.r2 > _local9) {
return(sredina_pucnja);
}
}
}
return(false);
};
MovieClip.prototype.createHook_pucanj = function (x, y_bot, y_top) {
this.weaponReady = false;
var _local7 = _root.crntLvl.pucanj_startDepth;
var _local4 = 0;
while (_local4 <= _root.crntLvl.pucanjMaxNum) {
if (_root.render_buff.pucnji["pucanj" + _local4].used != true) {
var _local5 = _local4;
break;
}
_local4++;
}
var _local3 = _root.render_buff.pucnji.attachMovie("pucanj_hook_zakacen", "pucanj" + _local5, _local7 + _local5);
_local3.used = true;
var _local10 = new MySound("hook-zakacen", _local3);
var _local6 = _root.render_buff.pucnji.attachMovie("pucanj_single_maska", "maska" + _local5, (_local7 + _local5) + 100);
_local6._x = x;
_local6._y = y_bot;
_local6._height = y_bot - y_top;
_local3.maska = _local6;
_local3.setMask(_local6);
_local3._x = x;
_local3._y = y_top;
_local3.y_top = y_top;
_local3.y_bottom = y_bot;
_local3.sirFull = 4;
_local3.sir = _local3.sirFull / 2;
_local3.vis = (y_bot - y_top) / 2;
_local3.sredy = _local3._y + _local3.vis;
_local3.lifeRemains = 3;
_local3.lifeFading = 0.75;
_local3.stackerDo = function () {
this.lifeRemains = this.lifeRemains - _root.rt.f;
if (this.lifeRemains <= 0) {
this._alpha = 70;
this.stackerDo = this.fadingOut;
}
};
_local3.fadingOut = function () {
this.lifeFading = this.lifeFading - _root.rt.f;
if (this.lifeFading <= 0) {
this.stackerDo = null;
_root.pucanj_unisti(this, "hook_lifepassed");
}
};
_root.crntLvl.pucnji["pucanj" + _local5] = _local3;
_local3.id = _local5;
_local3.weapon = this.weapon + "b";
_local3.player = this;
_local3.player.myHook = _local3;
_local3.razlog_unistenja = null;
_local3.tockaUnistenja = 0;
_local3.collisionFunct = _local3.pucanjHookVsBall_pucanj;
};
MovieClip.prototype.pucanjHookVsBall_pucanj = function (lopta) {
var _local4 = lopta.x - this._x;
var _local6 = (lopta.r + this.sir) - Math.abs(_local4);
if (_local6 > 0) {
var _local3 = lopta.y - this.sredy;
var _local7 = (this.vis + lopta.r) - Math.abs(_local3);
if (_local7 > 0) {
var _local9 = 0;
vtx_x = this._x;
if (_local3 < (-this.vis)) {
var _local5 = this._y;
} else if (_local3 > this.vis) {
var _local5 = this.sredy + this.vis;
} else {
return(lopta.y);
}
_local4 = lopta._x - vtx_x;
_local3 = lopta._y - _local5;
var _local8 = (_local4 * _local4) + (_local3 * _local3);
if (lopta.r2 > _local8) {
return(lopta.y);
}
}
}
return(false);
};
MovieClip.prototype.pucanj_unisti = function (pucanj, razlog) {
if (pucanj.weapon == "4b") {
delete pucanj.player.myHook;
} else if ((pucanj.weapon == 4) && (razlog == "tile")) {
} else {
_root.crntGame.preciznost["p" + pucanj.player.id]++;
if ((razlog == "keks") || (razlog == "lopta")) {
_root.crntGame.preciznost[("p" + pucanj.player.id) + "_hits"]++;
}
}
if (pucanj.ime_animacije != undefined) {
delete _root.rt.animacije[pucanj.ime_animacije];
delete pucanj.ime_animacije;
}
pucanj.snd.stop();
delete _root.crntLvl.pucnji["pucanj" + pucanj.id];
_root.rt.itemsToDestroy.push(pucanj);
pucanj.player.weaponReady = true;
};
MovieClip.prototype.movePlayer = function () {
var _local11 = _root.rt.f;
this.x = this._x;
this.y = this._y;
this.keys = this.handleKeyPress(_local11);
if (this.keys == false) {
return(true);
}
var _local4 = this.calcVectors(_local11);
var _local5 = 1;
while (_local5 <= _local4) {
this.x = this.x + this.vx;
this.y = this.y + this.vy;
var _local8 = Math.floor(this.x / this.cw);
var _local9 = Math.floor(this.y / this.ch);
if ((this.x % this.cw) < this.hcw) {
if ((this.y % this.ch) < this.hch) {
var _local7 = "A";
} else {
var _local7 = "C";
}
} else if ((this.y % this.ch) < this.hch) {
var _local7 = "B";
} else {
var _local7 = "D";
}
var _local3 = this.su[(("cell" + _local8) + "_") + _local9][_local7];
if ((this.floorName.tip == "ljestve") && (this.hasFloor == true)) {
if (this.k_u) {
if (this.y <= (this.floorName.t1y - this.ladder_sensitive_climb)) {
var _local6 = this.isThereFloor_player(this.floorName.t1y);
if (_local6 != false) {
if (this.simulateCollision_player(this.x, _local6.t1y - this.hh) == false) {
this.ignoreTileStack = null;
this.floorName = _local6;
this.hasFloor = true;
this._x = this.x;
this._y = this.floorName.t1y - this.hh;
this.animate_static_player("climbon");
return(true);
}
}
this.animate_climb_player(this.y);
return(true);
}
} else if (this.k_d) {
if (this.y >= (this.floorName.t2y - this.hh)) {
if (this.simulateCollision_player(this.x, this.floorName.t2y - this.hh) == false) {
this.ignoreTileStack = null;
this.hasFloor = false;
this.brzy = this.def_brzy;
this.grav = this.def_grav;
this._x = this.x;
this._y = this.floorName.t2y - this.hh;
return(true);
}
}
}
if (this.y < (_root.crntLvl.tiles.granica_u.t2y + this.hh)) {
this.y = _root.crntLvl.tiles.granica_u.t2y + this.hh;
} else if (this.y > (_root.crntLvl.tiles.granica_d.t1y - this.hh)) {
this.y = _root.crntLvl.tiles.granica_d.t1y - this.hh;
}
this.add_move = 0;
this.x = this.floorName.sredx;
this.animate_climb_player(this.y);
} else {
if (this.hasFloor) {
this.y = this.y + 0.001;
}
this.n_hasFloor = false;
this.emptyTileStack = true;
this.n_x = this.x;
this.n_y = this.y;
for (var _local10 in _local3) {
this.checkForCollision_player(_local3[_local10]);
}
if (this.emptyTileStack == true) {
this.ignoreTileStack = null;
}
if (this.n_hasFloor == false) {
if (this.hasFloor == true) {
this.brzy = (this.nby = this.def_brzy);
this.grav = this.def_grav;
this.collision_flag = true;
}
this.hasFloor = false;
} else {
this.hasFloor = true;
this[this.floorName.ocPlayer_up](0, this.n_py, this.floorName);
}
if (this.collision_flag) {
this.collision_flag = false;
this.x = this.n_x;
this.y = this.n_y;
if ((this.animate_state == "climbon") || (this.animate_state == "climboff")) {
break;
}
if (_local5 < _local4) {
_local4 = this.calcVectors(((_local4 - _local5) / _local4) * this.f);
_local5 = 0;
}
}
}
_local5++;
}
this.brzy = this.nby;
this._x = this.x;
this._y = this.y;
};
MovieClip.prototype.handleKeyPress = function (f) {
var _local5 = 0;
var _local6 = 0;
this.k_u = 0;
this.k_d = 0;
this.k_l = 0;
this.k_r = 0;
this.okrenut_smjer = 0;
if (getTimer() >= this.vrijemePauzePomicanje_pucanj) {
if (Key.isDown(this.key_l)) {
this.k_l = 1;
_local5 = -this.brzx;
this.okrenut_smjer = -this.brzx;
} else if (Key.isDown(this.key_r)) {
this.k_r = 1;
_local5 = this.brzx;
this.okrenut_smjer = this.brzx;
} else if (Key.isDown(this.key_u)) {
this.k_u = 1;
} else if (Key.isDown(this.key_d)) {
this.k_d = 1;
}
if (Key.isDown(this.key_w)) {
if (this.useWeapon()) {
_local5 = 0;
}
}
}
if (this.floorName.tip == "ljestve") {
if (this.hasFloor == true) {
if ((_local5 != 0) && (this.y < (this.floorName.t2y - this.hh))) {
var _local2 = this.y;
while (_local2 <= (this.floorName.t2y - this.hh)) {
if (this.simulateCollision_player(this.x, _local2) == false) {
break;
}
_local2 = _local2 + 1;
}
var _local3 = _local2 + 1;
while (_local3 <= ((this.floorName.t2y - this.hh) + 1)) {
var _local4 = this.simulateCollision_player(this.x, _local3);
if (_local4 != false) {
this.slideToSafeY = _local4.t1y - this.hh;
break;
}
_local3 = _local3 + 1;
}
if (this.slideToSafeY == null) {
this.holdAfterSlide = true;
this.slideToSafeY = this.floorName.t2y - this.hh;
}
this.hasFloor = false;
this.brzy = this.def_brzy;
this.grav = this.def_grav;
this.ignoreTileStack = true;
this.stackerDo = this.slideLadder_player;
return(false);
}
if (this.k_u) {
if (this.y >= (this.floorName.t1y - this.ladder_sensitive_climb)) {
_local6 = -this.bpl;
}
} else if (this.k_d) {
if (this.y <= (this.floorName.t2y - this.hh)) {
_local6 = this.bpl;
}
}
}
_local5 = 0;
}
if (_local5 < 0) {
this.animate_player("trci_left");
} else if (_local5 > 0) {
this.animate_player("trci_right");
} else {
this.animate_player("stand");
}
return({x:_local5, y:_local6});
};
MovieClip.prototype.calcVectors = function (f) {
this.f = f;
this.vx = 0;
this.vy = 0;
var _local3 = this.keys.x * f;
var _local5 = 0;
if (this.hasFloor == true) {
this.nby = 0;
if (this.floorName.tip == "ljestve") {
_local5 = this.keys.y * f;
}
} else {
this.nby = this.brzy + (f * this.grav);
_local5 = f * ((this.nby + this.brzy) / 2);
this.add_move = this.keys.x;
}
if (this.hasFloor == true) {
if (this.floorName.tip == "traka") {
_local3 = _local3 + (this.floorName.brz * f);
} else if (this.floorName.tip == "led") {
var _local2 = this.add_move;
if (_local3 != 0) {
if (this.k_l) {
if (_local2 > (-this.brzx)) {
_local2 = _local2 - (this.led_ubrzaj * f);
if (_local2 < (-this.brzx)) {
_local2 = -this.brzx;
}
}
} else if (_local2 < this.brzx) {
_local2 = _local2 + (this.led_ubrzaj * f);
if (_local2 > this.brzx) {
_local2 = this.brzx;
}
}
_local3 = _local2 * f;
} else if (_local2 != 0) {
if (_local2 < 0) {
if (_local2 < (-this.brzx)) {
_local2 = -this.brzx;
}
_local2 = _local2 + (this.led_uspori * f);
if (_local2 > 0) {
_local2 = 0;
}
} else {
if (_local2 > this.brzx) {
_local2 = this.brzx;
}
_local2 = _local2 - (this.led_uspori * f);
if (_local2 < 0) {
_local2 = 0;
}
}
_local3 = _local2 * f;
}
this.add_move = _local2;
}
}
var _local6 = Math.abs(_local3);
var _local7 = Math.abs(_local5);
if (_local6 > _local7) {
if (_local6 > this.ts) {
var _local8 = Math.floor(_local6 / this.ts) + 1;
this.vx = _local3 / _local8;
this.vy = _local5 / _local8;
} else {
this.vx = _local3;
this.vy = _local5;
var _local8 = 1;
}
} else if (_local7 > this.ts) {
var _local8 = Math.floor(_local7 / this.ts) + 1;
this.vy = _local5 / _local8;
this.vx = _local3 / _local8;
} else {
this.vy = _local5;
this.vx = _local3;
var _local8 = 1;
}
if (_local8 > 50) {
TRE(this, (((((((((("DEBUG: no je dosegao: " + _local8) + " ---- terminiram proces! Igrac") + this.id) + ", bx2: ") + _local3) + ", by2: ") + _local3) + ", vx: ") + this.vx) + ", vy: ") + this.vy);
return(20);
}
return(_local8);
};
MovieClip.prototype.slideLadder_player = function () {
var _local4 = _root.rt.f;
var _local3 = this.bpl_slide * _local4;
if ((this._y + _local3) < this.slideToSafeY) {
if (Key.isDown(this.key_u)) {
this.slideToSafeY = null;
this.holdAfterSlide = false;
this.hasFloor = true;
this.brzy = (this.grav = 0);
this.stackerDo = this.movePlayer;
this.animate_climb_player(this._y + _local3);
return(false);
}
if (Key.isDown(this.key_w)) {
this.useWeapon();
}
this.brzy = this.nby;
this._y = this._y + _local3;
this.animate_player("slide");
} else {
if (this.holdAfterSlide == true) {
TRE(this, "ostani!");
this.hasFloor = true;
this.brzy = (this.grav = 0);
this.animate_climb_player(this.slideToSafeY);
} else {
this.ignoreTileStack = null;
this.brzy = this.def_brzy;
this.hasFloor = false;
this.animate_player("stand");
}
this._y = this.slideToSafeY;
this.slideToSafeY = null;
this.holdAfterSlide = false;
this.stackerDo = this.movePlayer;
}
};
MovieClip.prototype.resolveLadder = function (t) {
if (t[("p" + this.id) + "ok"] == 1) {
if ((this.x > t.g_l) && (this.x < t.g_r)) {
if (this.k_u) {
if ((this.y > t.t1y) && (this.y < ((t.t2y - this.hh) + 1))) {
this.collision_flag = false;
this._x = (this.n_x = (this.x = t.sredx));
this._y = (this.n_y = (this.y = this.y - 1));
this.keys.x = 0;
this.floorName = t;
this.n_hasFloor = true;
}
} else if (this.k_d) {
if (this.y < (t.t2y - (this.hh * 2))) {
this.collision_flag = true;
this.n_x = t.sredx;
this.keys.x = 0;
this.floorName = t;
this.n_hasFloor = true;
this.animate_static_player("climboff");
}
}
}
}
};
MovieClip.prototype.zid_left = function (px, py, t) {
this.n_x = this.x + px;
this.keys.x = 0;
this.add_move = 0;
};
MovieClip.prototype.zid_right = MovieClip.prototype.zid_left;
MovieClip.prototype.zid_up = function (px, py, t) {
this.n_y = this.y + py;
this.add_move = this.okrenut_smjer;
};
MovieClip.prototype.zid_down = function (px, py, t) {
this.grav = this.def_grav;
this.brzy = 0;
this.n_y = this.y + py;
};
MovieClip.prototype.led_up = function (px, py, t) {
this.n_y = this.y + py;
};
MovieClip.prototype.traka_up = function (px, py, t) {
this.n_y = this.y + py;
this.add_move = this.okrenut_smjer;
};
MovieClip.prototype.ljestve_up = function (px, py, t) {
this.brzy = (this.grav = 0);
this.n_hasFloor = true;
this.n_y = this.y + py;
this.add_move = this.okrenut_smjer;
};
MovieClip.prototype.tramboline_up = function (px, py, t) {
this.brzy = -500;
this.grav = this.def_grav;
this.n_hasFloor = true;
this.n_y = this.y + py;
this.add_move = this.okrenut_smjer;
this.hasFloor = false;
_root.crntLvl.animate_dodatak(t.ime, t.drawTile, "f", 1, "stop");
var _local4 = new MySound("tramboline", t.drawTile);
};
MovieClip.prototype.checkForCollision_player = function (t) {
var _local7 = this.x - t.sredx;
var _local5 = (t.sirx + this.hw) - Math.abs(_local7);
if (_local5 > 0) {
var _local8 = this.y - t.sredy;
var _local6 = (t.siry + this.hh) - Math.abs(_local8);
if (_local6 > 0) {
var _local3 = 0;
var _local4 = 0;
t["distFromPlyr" + this.id] = 0;
if (_local7 < (-t.sirx)) {
var _local9 = t.t1x;
_local3 = -1;
t["distFromPlyr" + this.id] = _local9 - this.x;
} else if (_local7 > t.sirx) {
var _local9 = t.t2x;
_local3 = 1;
t["distFromPlyr" + this.id] = this.x - _local9;
}
if (_local8 < (-t.siry)) {
var _local10 = t.t1y;
_local4 = -1;
} else if (_local8 > t.siry) {
var _local10 = t.t2y;
_local4 = 1;
}
if (_local3 == 0) {
this.rijesiCollision_player(0, _local6 * _local4, 0, _local4, t);
} else if (_local4 == 0) {
this.rijesiCollision_player(_local5 * _local3, 0, _local3, 0, t);
} else if (Math.abs(_local5) < Math.abs(_local6)) {
this.rijesiCollision_player(_local5 * _local3, 0, _local3, 0, t);
} else {
this.rijesiCollision_player(0, _local6 * _local4, 0, _local4, t);
}
}
}
};
MovieClip.prototype.rijesiCollision_player = function (px, py, xv, yv, t) {
if (t.tip == "ljestve") {
this.resolveLadder(t);
} else {
if (this.ignoreTileStack != null) {
this.emptyTileStack = false;
return(true);
}
if (py == 0) {
if (xv < 0) {
this[t.ocPlayer_left](px, py, t);
} else {
this[t.ocPlayer_right](px, py, t);
}
} else if (px == 0) {
if (yv < 0) {
if (this.n_hasFloor == false) {
this.floorName = t;
} else {
if (t.priority < this.floorName.priority) {
return(true);
}
if (this.floorName.priority == t.priority) {
if (t["distFromPlyr" + this.id] > this.floorName["distFromPlyr" + this.id]) {
return(true);
}
}
}
this.floorName = t;
this.n_py = py;
this.n_hasFloor = true;
this.brzy = (this.grav = 0);
} else {
this[t.ocPlayer_down](px, py, t);
}
}
this.collision_flag = true;
}
};
MovieClip.prototype.collision_AABB_player = function (t) {
var _local5 = this.x - t.sredx;
var _local3 = (t.sirx + this.hw) - Math.abs(_local5);
if (_local3 > 0) {
var _local6 = this.y - t.sredy;
var _local4 = (t.siry + this.hh) - Math.abs(_local6);
if (_local4 > 0) {
return(true);
}
}
return(false);
};
MovieClip.prototype.simulateCollision_player = function (x, y) {
var _local11 = Math.floor(x / this.cw);
var _local13 = Math.floor(y / this.ch);
if ((x % this.cw) < this.hcw) {
if ((y % this.ch) < this.hch) {
var _local12 = "A";
} else {
var _local12 = "C";
}
} else if ((y % this.ch) < this.hch) {
var _local12 = "B";
} else {
var _local12 = "D";
}
var _local7 = this.su[(("cell" + _local11) + "_") + _local13][_local12];
for (var _local10 in _local7) {
var _local2 = _local7[_local10];
var _local5 = x - _local2.sredx;
var _local3 = (_local2.sirx + this.hw) - Math.abs(_local5);
if (_local2.tip != "ljestve") {
if (_local3 > 0) {
var _local6 = y - _local2.sredy;
var _local4 = (_local2.siry + this.hh) - Math.abs(_local6);
if (_local4 > 0) {
return(_local2);
}
}
}
}
return(false);
};
MovieClip.prototype.isThereFloor_player = function (floorCoord) {
var _local12 = Math.floor(this.x / this.cw);
var _local11 = Math.floor(this.y / this.ch);
if ((this.x % this.cw) < this.hcw) {
if ((this.y % this.ch) < this.hch) {
var _local10 = "A";
} else {
var _local10 = "C";
}
} else if ((this.y % this.ch) < this.hch) {
var _local10 = "B";
} else {
var _local10 = "D";
}
var _local7 = this.su[(("cell" + _local12) + "_") + _local11][_local10];
for (var _local8 in _local7) {
var _local2 = _local7[_local8];
var _local5 = this.x - _local2.sredx;
var _local3 = (_local2.sirx + this.hw) - Math.abs(_local5);
if (_local3 > 0) {
var _local6 = this.y - _local2.sredy;
var _local4 = (_local2.siry + this.hh) - Math.abs(_local6);
if (_local4 > 0) {
if ((_local2.t1y == floorCoord) and (_local2.ime != this.floorName.ime)) {
return(_local2);
}
}
}
}
return(false);
};
MovieClip.prototype.gotHitByBall_player = function (obj) {
if (this.shieldType == "none") {
if (this._x < obj.lopta._x) {
var _local3 = -1;
} else {
var _local3 = 1;
}
MySound.stopAllMySounds();
var _local4 = new MySound("player_hit", this);
this.animateDeathByBall_player(_local3, -850);
obj.lopta._x = obj.impact_x;
obj.lopta._y = obj.impact_y;
this.vecUmro = true;
return("killed");
}
if (this.shieldType == "shield_plain") {
this.deactivate_shield_player();
return("uni\u0161ti");
}
if (this.shieldType == "shield_invincible") {
TRE(this, "DEBUG: lupljen sam a imam invincible shield!");
return("ignoriraj");
}
if (this.shieldType == "invincible_waresoff") {
return("ignoriraj");
}
TRE(this, ("DEBUG: nepoznat tip \u0161tita! [" + this.shieldType) + "]", 2);
};
MovieClip.prototype.died_player = function (razlog, id) {
TRE(this, ((("Igrac je umro, razlog:[" + razlog) + "], mod:[") + _root.crntGame.mod) + "]", 45);
if ((_root.crntGame.mod == "single") || (_root.crntGame.mod == "coop")) {
_root.ingame_interface.combo.gotoAndStop(1);
}
switch (_root.crntGame.mod) {
case "stayingalive1" :
_root.crntGame.zivoti.p1--;
_root.ingame_interface.zivoti.gotoAndStop(_root.crntGame.zivoti.p1);
if (_root.crntGame.zivoti.p1 == 0) {
_root.crntLvl.createGameOverAnimation(razlog, id);
} else {
_root.crntLvl.initLevel_SA(true);
}
break;
case "stayingalive2" :
_root.crntGame.zivoti.coop--;
_root.ingame_interface.zivoti.gotoAndStop(_root.crntGame.zivoti.coop);
if (_root.crntGame.zivoti.coop == 0) {
_root.crntLvl.createGameOverAnimation(razlog, id);
} else {
_root.crntLvl.initLevel_SA(true);
}
break;
case "coop" :
_root.crntGame.zivoti.coop--;
if (_root.crntGame.zivoti.coop == 0) {
_root.crntLvl.createGameOverAnimation(razlog, id);
} else {
_root.crntLvl.clearCurrentLevel();
_root.ingame_interface.zivoti.gotoAndStop(_root.crntGame.zivoti.coop);
_root.crntLvl = new level();
_root.crntLvl.buildLevel();
}
break;
case "single" :
_root.crntGame.zivoti.p1--;
if (_root.crntGame.zivoti.p1 == 0) {
_root.crntLvl.createGameOverAnimation(razlog, id);
} else {
_root.crntLvl.clearCurrentLevel();
_root.ingame_interface.zivoti.gotoAndStop(_root.crntGame.zivoti.p1);
_root.crntLvl = new level();
_root.crntLvl.buildLevel();
}
break;
case "vs" :
if (razlog == "vrijeme") {
_root.crntLvl.levelsIsFinished(0, true);
} else if (id == 1) {
_root.crntLvl.players.player1.removeMovieClip();
_root.crntLvl.levelsIsFinished(2, true);
} else {
_root.crntLvl.players.player2.removeMovieClip();
_root.crntLvl.levelsIsFinished(1, true);
}
break;
default :
TRE(this, (("DEBUG, died_player [razlog:" + razlog) + "] - nisam zadao case:") + _root.crntGame.mod);
}
};
MovieClip.prototype.activate_shield_plain_player = function () {
var dodatak_name = ("stit" + this.id);
if ((_root.rt.dodatci[dodatak_name].purgeMe("shield_plain") == true) || (_root.rt.dodatci[dodatak_name] == undefined)) {
var _local3 = (_root.crntLvl.playerDepth + (this.id * 10)) + 1;
this.attachMovie("shield_plain", "stit_mc", _local3);
this.shieldType = "shield_plain";
this.stit_mc.purgeMe = function (purger) {
if (purger != "shield_plain") {
delete _root.rt.dodatci[this.dodatak_name];
this._parent.shieldType = "none";
if (purger != "wareing_off") {
this.removeMovieClip();
}
return(true);
}
return(false);
};
this.stit_mc.stackerDo = function () {
};
_root.rt.dodatci[dodatak_name] = this.stit_mc;
} else {
TRE(this, ("Nisam aktivirao plain_shield jer je po prioritetu manji od trenutnog (" + this.shieldType) + ")", 12);
}
};
MovieClip.prototype.activate_shield_invincible_player = function () {
var dodatak_name = ("stit" + this.id);
if ((_root.rt.dodatci[dodatak_name].purgeMe("shield_invincible") == true) || (_root.rt.dodatci[dodatak_name] == undefined)) {
var _local3 = (_root.crntLvl.playerDepth + (this.id * 10)) + 1;
this.attachMovie("shield_invincible", "stit_mc", _local3);
this.shieldType = "shield_invincible";
this.stit_mc.invinsibilityTime = 8;
this.ball_hw = -1000;
this.stit_mc.purgeMe = function (purger) {
if (purger == "shield_invincible") {
this.invinsibilityTime = 8;
return(false);
}
if (purger != "shield_plain") {
delete _root.rt.dodatci[this.dodatak_name];
this._parent.shieldType = "none";
this.invinsibilityTime = 0;
this._parent.ball_hw = this._parent.ball_hw_default;
if (purger != "wareing_off") {
this.removeMovieClip();
}
return(true);
}
return(false);
};
this.stit_mc.stackerDo = function () {
this.invinsibilityTime = this.invinsibilityTime - _root.rt.f;
if (this.invinsibilityTime <= 0) {
this._parent.deactivate_shield_player();
}
};
_root.rt.dodatci[dodatak_name] = this.stit_mc;
}
};
MovieClip.prototype.deactivate_shield_player = function () {
var dodatak_name = ("stit" + this.id);
if (_root.rt.dodatci[dodatak_name] != undefined) {
_root.rt.dodatci[dodatak_name].purgeMe("wareing_off");
}
this.shieldType = "invincible_waresoff";
if (this.stit_mc == undefined) {
TRE(this, "DEBUG: nemoguce, ne postoji movie koji je sadr\u017Eavao \u0161tit!");
}
this.ball_hw = -1000;
this.stit_mc.invincibilityTime = 2;
this.stit_mc.dodatak_name = dodatak_name;
this.stit_mc.purgeMe = function () {
delete _root.rt.dodatci[this.dodatak_name];
this._parent.shieldType = "none";
this.invincibilityTime = 0;
this.animateStatic_shwShieldOnClimb(this._parent, false);
this._parent.ball_hw = this._parent.ball_hw_default;
this.removeMovieClip();
return(true);
};
this.stit_mc.nextFlick = _root.rt.o;
this.stit_mc.stackerDo = function () {
this.invincibilityTime = this.invincibilityTime - _root.rt.f;
if (this.invincibilityTime <= 0) {
this.purgeMe();
}
if (this.nextFlick < _root.rt.o) {
this.nextFlick = _root.rt.o + 100;
if ((this._parent.animate_state == "climboff") || (this._parent.animate_state == "climbon")) {
this._visible = false;
} else if (this._visible == true) {
this._visible = false;
} else if (this._visible == false) {
this._visible = true;
}
}
};
_root.rt.dodatci[dodatak_name] = this.stit_mc;
};
MovieClip.prototype.animate_climb_player = function (mojapos) {
this.animate_state = "climb";
this.gotoAndStop("char_climb");
var _local2 = Math.round(((mojapos - (this.floorName.t1y - this.ladder_sensitive_climb)) / 3) % this.animacija._totalframes) + 1;
this.animacija.gotoAndStop(_local2);
};
MovieClip.prototype.animate_player = function (faza) {
if (this.animate_state != faza) {
this.animate_state = faza;
this.gotoAndStop("char_" + faza);
this.ani_startTime = getTimer();
} else {
var _local3 = (Math.round((_root.rt.o - this.ani_startTime) * this.ani_frmRates[this.animate_state]) % this.animacija._totalframes) + 1;
this.animacija.gotoAndStop(_local3);
this.plast.gotoAndStop(_local3);
}
};
MovieClip.prototype.animate_player_plast = function () {
if (((_root.crntGame.mod != "vs") && (_root.crntGame.mod != "coop")) && (_root.crntGame.mod != "stayingalive2")) {
this.plast._visible = false;
} else {
var _local3 = new flash.geom.Transform(this.plast);
_local3.colorTransform = _level0["player_color_" + this.id];
}
};
MovieClip.prototype.animate_static_player = function (faza) {
this.animate_state = faza;
this.gotoAndStop("char_" + faza);
this.ani_startTime = getTimer();
this.animateStatic_shwShieldOnClimb(this, true);
this.stackerDo = this.animate_static_playerFunction;
if ((faza == "climboff") || (faza == "climbon")) {
this.ball_hh = 8;
this.stit_mc._visible = false;
}
};
MovieClip.prototype.animate_static_playerFunction = function () {
var _local3 = Math.round((_root.rt.o - this.ani_startTime) * this.ani_frmRates[this.animate_state]) + 1;
if (_local3 > this.animacija._totalframes) {
this.animacija.gotoAndStop(this.animacija._totalframes);
if (this.animate_state == "climboff") {
this.ball_hh = this.ball_hh_default;
this._y = this.floorName.t1y - this.ladder_sensitive_climb;
this.animate_climb_player(this._y);
this.stackerDo = this.movePlayer;
if (this.stit_mc != undefined) {
this.stit_mc._visible = true;
}
} else if (this.animate_state == "climbon") {
this.ball_hh = this.ball_hh_default;
this.animate_player("stand");
this.stackerDo = this.movePlayer;
if (this.stit_mc != undefined) {
this.stit_mc._visible = true;
}
} else if ((this.animate_state == "wave") || (this.animate_state == "stand")) {
this.ani_startTime = getTimer();
} else if (this.animate_state == "victory") {
this.stackerDo = null;
} else {
TRE(this, "DEBUG: nepoznata animacija je dovr\u0161ena:" + this.animate_state);
}
} else {
this.animacija.gotoAndStop(_local3);
this.plast.gotoAndStop(_local3);
}
this.animateStatic_shwShieldOnClimb(this, true);
};
MovieClip.prototype.animateStatic_shwShieldOnClimb = function (mc, flag) {
mc.animacija.shield_plain._visible = false;
mc.animacija.shield_invincible._visible = false;
if ((mc.stit_mc != undefined) && (flag)) {
mc.animacija[mc.shieldType]._visible = true;
}
};
MovieClip.prototype.animateDeathByBall_player = function (umrix, intenzitet) {
for (var _local3 in _root.crntLvl.players) {
_root.crntLvl.players[_local3].stackerDo = null;
}
_root.rt.animateDeath();
this.brzy = intenzitet;
this.umrix = umrix;
this.grav = this.def_grav;
this.countDown = 1;
this.stackerDo = this.animateDeath_playerFunction_start;
};
MovieClip.prototype.animateDeath_playerFunction_start = function () {
this.countDown = this.countDown - _root.rt.f;
if (this.countDown <= 0) {
this.gotoAndStop("char_die");
this.ani_startTime = getTimer();
this.animacija._xscale = this.umrix * 100;
this.plast._xscale = this.umrix * 100;
this.stackerDo = this.animateDeath_playerFunction_sredina;
}
};
MovieClip.prototype.animateDeath_playerFunction_sredina = function () {
var _local3 = (Math.round((_root.rt.o - this.ani_startTime) * this.ani_frmRates.die) % this.animacija._totalframes) + 1;
this.animacija.gotoAndStop(_local3);
this._y = this._y - (_root.rt.f * 200);
this._x = this._x + ((_root.rt.f * this.umrix) * 800);
if ((this._x < (_root.crntLvl.xmin + this.hw)) || (this._x > (_root.crntLvl.xmax - this.hw))) {
if (this._x < (_root.crntLvl.xmin + this.hw)) {
this._x = _root.crntLvl.xmin + this.hw;
} else {
this._x = _root.crntLvl.xmax - this.hw;
}
this.brzy = -300;
this.stackerDo = this.animateDeath_playerFunction_end;
this.umrix = this.umrix * -1;
this.animacija._xscale = this.umrix * 100;
this.plast._xscale = this.umrix * 100;
}
};
MovieClip.prototype.animateDeath_playerFunction_end = function () {
var _local3 = (Math.round((_root.rt.o - this.ani_startTime) * this.ani_frmRates.die) % this.animacija._totalframes) + 1;
this.animacija.gotoAndStop(_local3);
this.nby = this.brzy + (_root.rt.f * this.grav);
var _local4 = _root.rt.f * ((this.nby + this.brzy) / 2);
this.brzy = this.nby;
this._y = this._y + _local4;
this._x = this._x + ((_root.rt.f * this.umrix) * 250);
if ((this._x < (_root.crntLvl.xmin + this.hw)) || (this._x > (_root.crntLvl.xmax - this.hw))) {
if (this._x < (_root.crntLvl.xmin + this.hw)) {
this._x = _root.crntLvl.xmin + this.hw;
} else {
this._x = _root.crntLvl.xmax - this.hw;
}
this.umrix = this.umrix * -1;
this.animacija._xscale = this.umrix * 100;
this.plast._xscale = this.umrix * 100;
}
if (this._y > 700) {
this.stackerDo = null;
this.died_player("ball", this.id);
}
};
MovieClip.prototype.bounce_normalna = function () {
var _local11 = _root.rt.f * this.modify_brz;
this.x = this._x;
this.y = this._y;
var _local9 = this.calcVectors_normal_ball(_local11);
var _local5 = 1;
while (_local5 <= _local9) {
this.x = this.x + this.vx;
this.y = this.y + this.vy;
var _local7 = Math.floor(this.x / this.cs);
var _local8 = Math.floor(this.y / this.cs);
if ((this.x % this.cs) < this.hcs) {
if ((this.y % this.cs) < this.hcs) {
var _local6 = "A";
} else {
var _local6 = "C";
}
} else if ((this.y % this.cs) < this.hcs) {
var _local6 = "B";
} else {
var _local6 = "D";
}
this.emptyTileStack = true;
var _local3 = this.su[(("cell" + _local7) + "_") + _local8][_local6];
for (var _local10 in _local3) {
this.checkForCollision_ball(_local3[_local10]);
}
if (this.collision_flag) {
this.collision_flag = false;
this.brzx = this.n_brzx;
this.nby = (this.brzy = this.n_nby);
var _local4 = this.f - (this.f * Math.abs((this._y - this.y) / this.by));
if (_local4 > 0) {
_local9 = this.calcVectors_normal_ball(_local4);
_local5 = 0;
}
this.combo_id = 0;
if (this.ghostBall == true) {
if (this.ghost_off._visible == true) {
this.checkIfSomethingsHit_ball = null;
this.ghost_on._visible = true;
this.ghost_off._visible = false;
} else {
this.checkIfSomethingsHit_ball = MovieClip.prototype.checkIfSomethingsHit_ball;
this.ghost_off._visible = true;
this.ghost_on._visible = false;
}
}
} else {
this["provjeriMaxy_" + this.tip]();
}
if (this.emptyTileStack == true) {
this.ignoreTileStack = null;
}
this.checkIfSomethingsHit_ball();
_local5++;
}
this._x = this.x;
this.brzy = this.nby;
this._y = this.y;
this.formatBattleTagTxt();
};
MovieClip.prototype.provjeriMaxy_normalna = function () {
if (this.nby > 0) {
if (this.brzy < 0) {
if (Math.abs(this.y - this.maxy) > 6) {
this.maxy = this.y;
}
}
}
};
MovieClip.prototype.provjeriMaxy_kontra = function () {
if (this.nby < 0) {
if (this.brzy > 0) {
if (Math.abs(this.y - this.maxy) > 6) {
this.maxy = this.y;
}
}
}
};
MovieClip.prototype.bounce_kisobran = function () {
var _local11 = _root.rt.f * this.modify_brz;
this.x = this._x;
this.y = this._y;
var _local9 = this.calcVectors_kisobran_ball(_local11);
this.n_sx = this.sx;
this.n_sy = this.sy;
this.n_brzy = this.brzy;
this.n_brzx = this.brzx;
var _local5 = 1;
while (_local5 <= _local9) {
this.x = this.x + this.vx;
this.y = this.y + this.vy;
this._rotation = this._rotation + this.vr;
var _local7 = Math.floor(this.x / this.cs);
var _local8 = Math.floor(this.y / this.cs);
if ((this.x % this.cs) < this.hcs) {
if ((this.y % this.cs) < this.hcs) {
var _local6 = "A";
} else {
var _local6 = "C";
}
} else if ((this.y % this.cs) < this.hcs) {
var _local6 = "B";
} else {
var _local6 = "D";
}
this.emptyTileStack = true;
var _local3 = this.su[(("cell" + _local7) + "_") + _local8][_local6];
for (var _local10 in _local3) {
this.checkForCollision_ball(_local3[_local10]);
}
if (this.collision_flag) {
this.collision_flag = false;
this.brzx = this.n_brzx;
this.brzy = this.n_brzy;
this.sx = this.n_sx;
this.sy = this.n_sy;
this.combo_id = 0;
if (this.ghostBall == true) {
if (this.ghost_off._visible == true) {
this.checkIfSomethingsHit_ball = null;
this.ghost_on._visible = true;
this.ghost_off._visible = false;
} else {
this.checkIfSomethingsHit_ball = MovieClip.prototype.checkIfSomethingsHit_ball;
this.ghost_off._visible = true;
this.ghost_on._visible = false;
}
}
var _local4 = this.f - (this.f * Math.abs((this._y - this.y) / this.brzy));
if (_local4 > 0) {
_local9 = this.calcVectors_kisobran_ball(_local4);
_local5 = 0;
}
}
if (this.emptyTileStack == true) {
this.ignoreTileStack = null;
}
this.checkIfSomethingsHit_ball();
_local5++;
}
this._x = this.x;
this._y = this.y;
this.formatBattleTagTxt();
};
MovieClip.prototype.bounce_vanjska = function () {
this.x = this._x;
this.y = this._y;
this.by = (50 * _root.rt.f) * this.modify_brz;
var _local15 = Math.abs(this.by);
if (_local15 > this.ts) {
var _local14 = Math.floor(_local15 / this.ts) + 1;
this.vy = this.by / _local14;
} else {
this.vy = this.by;
var _local14 = 1;
}
var _local6 = 1;
while (_local6 <= _local14) {
this.y = this.y + this.vy;
if ((this.simulateCollision_ball(this.x, this.y) == false) && (this.y > 0)) {
if (this.sx != undefined) {
var sx = this.sx;
} else {
var _local4 = _root.randRange(1, 6);
var sx = Math.pow(-1, _local4);
}
var _local3 = 1;
if (this.tip == "kisobran") {
sx = 3 * sx;
_local3 = 3;
}
var _local5 = {id:this.id, tip:this.tip, boja:this.boja, splitway:this.splitway, x:this.x, y:this.y, sx:sx, sy:_local3, metalna:this.metalna, rotacija:Math.pow(-1, _local4), vrijediBodova:this.vrijediBodova};
if (this.ghostBall == true) {
_local5.ghostBall = true;
}
_root.crntLvl.loptaInit(_local5);
this.unistiLoptu("funkcija-bounce_vanjska");
return(true);
}
_local6++;
}
this._x = this.x;
this._y = this.y;
};
MovieClip.prototype.whattheguck = function () {
};
MovieClip.prototype.checkIfSomethingsHit_ball = function () {
for (var _local12 in _root.crntLvl.players) {
if (this.checkBallVsPlayer(_root.crntLvl.players[_local12])) {
_root.rt.igracHit.push({lopta:this, igrac:_root.crntLvl.players[_local12], impact_x:this.x, impact_y:this.y});
}
}
for (var _local13 in _root.crntLvl.pucnji) {
var _local4 = _root.crntLvl.pucnji[_local13];
var _local3 = _local4.collisionFunct(this);
if (_local3 != false) {
_root.rt.pucnji.push({pucanj:_root.crntLvl.pucnji[_local13], razlog:"lopta", lopta:this, tocka:_local3, impact_x:this.x, impact_y:this.y});
}
}
};
MovieClip.prototype.freezeBall_ball = function () {
for (var _local11 in _root.crntLvl.pucnji) {
var _local4 = _root.crntLvl.pucnji[_local11];
var _local3 = _local4.collisionFunct(this);
if (_local3 != false) {
_root.rt.pucnji.push({pucanj:_root.crntLvl.pucnji[_local11], razlog:"lopta", lopta:this, tocka:_local3, impact_x:this.x, impact_y:this.y});
}
}
};
MovieClip.prototype.calcVectors_normal_ball = function (f) {
this.f = f;
this.nby = this.brzy + (f * this.grav);
this.by = f * ((this.nby + this.brzy) / 2);
var _local2 = f * this.brzx;
var _local3 = Math.abs(_local2);
var _local4 = Math.abs(this.by);
if (_local3 > _local4) {
if (_local3 > this.ts) {
var _local5 = Math.floor(_local3 / this.ts) + 1;
this.vx = _local2 / _local5;
this.vy = this.by / _local5;
} else {
this.vx = _local2;
this.vy = this.by;
var _local5 = 1;
}
} else if (_local4 > this.ts) {
var _local5 = Math.floor(_local4 / this.ts) + 1;
this.vy = this.by / _local5;
this.vx = _local2 / _local5;
} else {
this.vy = this.by;
this.vx = _local2;
var _local5 = 1;
}
if (_local5 > 10) {
return(10);
}
return(_local5);
};
MovieClip.prototype.calcVectors_kisobran_ball = function (f) {
this.f = f;
this.vr = this.brzr * f;
var _local2 = f * this.brzx;
var _local3 = f * this.brzy;
var _local4 = Math.abs(_local2);
var _local5 = Math.abs(_local3);
if (_local4 > _local5) {
if (_local4 > this.ts) {
var _local6 = Math.floor(_local4 / this.ts) + 1;
this.vx = _local2 / _local6;
this.vy = _local3 / _local6;
} else {
this.vx = _local2;
this.vy = _local3;
var _local6 = 1;
}
} else if (_local5 > this.ts) {
var _local6 = Math.floor(_local5 / this.ts) + 1;
this.vy = _local3 / _local6;
this.vx = _local2 / _local6;
} else {
this.vy = _local3;
this.vx = _local2;
var _local6 = 1;
}
if (_local6 > 10) {
return(10);
}
return(_local6);
};
MovieClip.prototype.checkForCollision_ball = function (t) {
var _local7 = this.x - t.sredx;
var _local6 = (t.sirx + this.r) - Math.abs(_local7);
if (_local6 > 0) {
var _local11 = this.y - t.sredy;
var _local5 = (t.siry + this.r) - Math.abs(_local11);
if (_local5 > 0) {
if (t.ime == this.ignoreTileStack) {
this.emptyTileStack = false;
return(true);
}
var _local4 = 0;
var _local3 = 0;
if (_local7 < (-t.sirx)) {
var _local8 = t.t1x;
_local4 = -1;
} else if (_local7 > t.sirx) {
var _local8 = t.t2x;
_local4 = 1;
}
if (_local11 < (-t.siry)) {
var _local10 = t.t1y;
_local3 = -1;
} else if (_local11 > t.siry) {
var _local10 = t.t2y;
_local3 = 1;
}
if (_local4 == 0) {
if (_local3 == 0) {
TRE(this, "DEBUG: naizgled (ne)moguce: -- xv=0 i yv=0!!");
}
this.rijesiCollision_ball(0, _local5 * _local3, 0, _local3, t);
} else if (_local3 == 0) {
this.rijesiCollision_ball(_local6 * _local4, 0, _local4, 0, t);
} else {
_local7 = this.x - _local8;
_local11 = this.y - _local10;
var _local24 = (_local7 * _local7) + (_local11 * _local11);
if (this.r2 > _local24) {
var _local18 = this.x - this.vx;
var _local20 = this.y - this.vy;
var _local25 = (_local8 - _local20) + this.y;
var _local26 = (_local10 - this.x) + _local18;
var _local9 = this.vy / this.vx;
var _local13 = _local9 * _local9;
var _local19 = (((_local8 + (_local9 * _local10)) + (_local13 * _local18)) - (_local9 * _local20)) / (_local13 + 1);
var _local16 = (((_local20 + (_local9 * _local8)) + (_local13 * _local10)) - (_local9 * _local18)) / (_local13 + 1);
var _local21 = _local8 - _local19;
var _local22 = _local10 - _local16;
var _local23 = Math.sqrt((_local21 * _local21) + (_local22 * _local22));
var _local12 = Math.sqrt(this.r2 - (_local23 * _local23));
var _local14 = Math.atan(this.vx / this.vy);
if (this.vy > 0) {
var _local15 = _local19 - (_local12 * Math.sin(_local14));
var _local17 = _local16 - (_local12 * Math.cos(_local14));
} else {
var _local15 = _local19 + (_local12 * Math.sin(_local14));
var _local17 = _local16 + (_local12 * Math.cos(_local14));
}
if (_local15 < t.t1x) {
_local4 = -1;
} else if (_local15 > t.t2x) {
_local4 = 1;
}
if (_local17 < t.t1y) {
_local3 = -1;
} else if (_local17 > t.t2y) {
_local3 = 1;
}
if (_local4 == 0) {
if (_local3 == 0) {
TRE(this, "DEBUG: naizgled (ne)moguce - funkcija dijagnonalnog sudara: -- xv=0 i yv=0!!");
}
if (_local3 == 1) {
_local5 = t.t2y - this.y;
} else {
_local5 = this.y - t.t1y;
}
this.rijesiCollision_ball(0, _local5, 0, _local3, t);
} else if (_local3 == 0) {
if (_local4 == 1) {
_local6 = t.t2x - this.x;
} else {
_local6 = this.x - t.t1x;
}
this.rijesiCollision_ball(_local6, 0, _local4, 0, t);
} else {
_local6 = -(this.x - _local15);
_local5 = -(this.y - _local17);
this.rijesiCollision_ball(_local6, _local5, _local4, _local3, t, _local8, _local10);
}
}
}
}
}
};
MovieClip.prototype.rijesiCollision_ball = function (px, py, xv, yv, t, vtx_x, vtx_y) {
this.collision_flag = true;
if (py == 0) {
if (xv < 0) {
var _local8 = this[(t.ocBall_left + "_") + this.tip](px, py, t);
} else {
var _local8 = this[(t.ocBall_right + "_") + this.tip](px, py, t);
}
} else if (px == 0) {
if (yv < 0) {
var _local8 = this[(t.ocBall_up + "_") + this.tip](px, py, t);
} else {
var _local8 = this[(t.ocBall_down + "_") + this.tip](px, py, t);
}
} else {
this.n_brzx = this.brzx;
this.n_nby = this.nby;
if (t.tip != "granica") {
var _local7 = Math.abs(this.x - vtx_x);
var _local6 = Math.abs(this.y - vtx_y);
if (_local7 > _local6) {
if (_local7 > _root.crntLvl.ballSensitivityFactor[this.id]) {
if (xv > 0) {
if (this.vx < 0) {
if (this.simulateCollision_ball(vtx_x + this.r, this.y + py) == false) {
var _local8 = this[(t.ocBall_right + "_") + this.tip](px, py, t);
var _local11 = true;
}
}
} else if (this.vx > 0) {
if (this.simulateCollision_ball(vtx_x - this.r, this.y + py) == false) {
var _local8 = this[(t.ocBall_left + "_") + this.tip](px, py, t);
var _local11 = true;
}
}
}
} else if (_local6 > _root.crntLvl.ballSensitivityFactor[this.id]) {
if (yv > 0) {
if (this.vy < 0) {
if (this.simulateCollision_ball(this.x + px, vtx_y + this.r) == false) {
var _local11 = true;
var _local8 = this[(t.ocBall_down + "_") + this.tip](px, py, t);
}
}
} else if (this.vy > 0) {
if (this.simulateCollision_ball(this.x + px, vtx_y - this.r) == false) {
if (this.maxy <= (t.t1y - this.r)) {
var _local11 = true;
var _local8 = this[(t.ocBall_up + "_") + this.tip](px, py, t);
}
}
}
}
}
if (_local11 != true) {
if (xv < 0) {
if (this.vx > 0) {
this[(t.ocBall_left + "_") + this.tip](px, py, t);
}
} else if (this.vx < 0) {
this[(t.ocBall_right + "_") + this.tip](px, py, t);
}
if (yv < 0) {
if (this.vy > 0) {
this[(t.ocBall_up + "_") + this.tip](px, py, t);
}
} else if (this.vy < 0) {
this[(t.ocBall_down + "_") + this.tip](px, py, t);
}
var _local8 = {newx:this.x + px, newy:this.y + py};
}
}
this.x = _local8.newx;
this.y = _local8.newy;
};
MovieClip.prototype.bounceNormal_left_normalna = function (px, py, t) {
if (py == 0) {
py = (-this.vy) / Math.abs(this.vx / px);
var _local3 = this.f * (((this._y - this.y) - py) / this.by);
this.n_nby = this.brzy - (_local3 * this.grav);
}
this.n_brzx = -this.brzx;
t.showIfHiddenTile();
return({newx:this.x + px, newy:this.y + py});
};
MovieClip.prototype.bounceNormal_up_normalna = function (px, py, t) {
if (px == 0) {
px = (-this.vx) / Math.abs(this.vy / py);
this.n_brzx = this.brzx;
}
this.n_nby = this.bym;
if (this.landedOnTraka == true) {
this.n_brzx = (Math.abs(this.n_brzx) / this.n_brzx) * _root.crntLvl.odskok_lopti.normalna[this.boja].brzinax;
delete this.landedOnTraka;
}
if (t.tip == "tramboline") {
this.n_nby = this.bym * 1.3;
_root.crntLvl.animate_dodatak(t.ime, t.drawTile, "f", 1, "stop");
var _local6 = new MySound("tramboline", t.drawTile);
} else if (t.tip == "traka") {
this.n_brzx = this.brzx + (t.brz / 4);
this.landedOnTraka = true;
}
this.maxy = (this.y + py) - this.bounce_off;
t.showIfHiddenTile();
return({newx:this.x + px, newy:this.y + py});
};
MovieClip.prototype.bounceSoft_down_normalna = function (px, py, t) {
if (px == 0) {
px = (-this.vx) / Math.abs(this.vy / py);
this.n_brzx = this.brzx;
}
var _local2 = this.f * (((this._y - this.y) - py) / this.by);
this.n_nby = Math.abs(this.brzy - (_local2 * this.grav));
t.showIfHiddenTile();
return({newx:this.x + px, newy:this.y + py});
};
MovieClip.prototype.bounceSoft_up_normalna = function (px, py, t) {
if (px == 0) {
px = (-this.vx) / Math.abs(this.vy / py);
this.n_brzx = this.brzx;
}
if (this.landedOnTraka == true) {
this.n_brzx = (Math.abs(this.n_brzx) / this.n_brzx) * _root.crntLvl.odskok_lopti.normalna[this.boja].brzinax;
delete this.landedOnTraka;
}
var _local4 = this.y + py;
var _local3 = _local4 - this.maxy;
if (_local3 <= 0) {
_local3 = 1;
}
this.n_nby = -Math.sqrt(Math.abs((2 * this.grav) * _local3));
t.showIfHiddenTile();
return({newx:this.x + px, newy:_local4});
};
MovieClip.prototype.bounceNormal_down_normalna = MovieClip.prototype.bounceSoft_down_normalna;
MovieClip.prototype.bounceNormal_right_normalna = MovieClip.prototype.bounceNormal_left_normalna;
MovieClip.prototype.spikes_down_normalna = function (px, py, t) {
if (px == 0) {
px = (-this.vx) / Math.abs(this.vy / py);
this.n_brzx = this.brzx;
}
var _local6 = this.f * (((this._y - this.y) - py) / this.by);
this.n_nby = Math.abs(this.brzy - (_local6 * this.grav));
_root.rt.pucnji.push({pucanj:{_parent:"spikes", id:999999999 + this.ld}, razlog:"spikes", lopta:this, tocka:this.x + this.r, impact_x:this.x + px, impact_y:this.y + py});
t.showIfHiddenTile();
return({newx:this.x + px, newy:this.y + py});
};
MovieClip.prototype.bounceNormal_down_kontra = function (px, py, t) {
if (px == 0) {
px = (-this.vx) / Math.abs(this.vy / py);
this.n_brzx = this.brzx;
}
this.n_nby = this.bym;
this.maxy = (this.y + py) + this.bounce_off;
t.showIfHiddenTile();
return({newx:this.x + px, newy:this.y + py});
};
MovieClip.prototype.bounceSoft_up_kontra = function (px, py, t) {
if (px == 0) {
px = (-this.vx) / Math.abs(this.vy / py);
this.n_brzx = this.brzx;
}
var _local4 = this.f * (((this._y - this.y) - py) / this.by);
this.n_nby = -Math.abs(this.brzy - (_local4 * this.grav));
if (this.landedOnTraka == true) {
this.n_brzx = (Math.abs(this.n_brzx) / this.n_brzx) * _root.crntLvl.odskok_lopti.kontra.brzinax;
delete this.landedOnTraka;
}
if (t.tip == "tramboline") {
_root.crntLvl.animate_dodatak(t.ime, t.drawTile, "f", 1, "stop");
var _local7 = new MySound("tramboline", t.drawTile);
} else if (t.tip == "traka") {
this.n_brzx = this.brzx + (t.brz / 4);
this.landedOnTraka = true;
}
t.showIfHiddenTile();
return({newx:this.x + px, newy:this.y + py});
};
MovieClip.prototype.bounceSoft_down_kontra = function (px, py, t) {
if (px == 0) {
px = (-this.vx) / Math.abs(this.vy / py);
this.n_brzx = this.brzx;
}
var _local3 = this.y + py;
var _local2 = this.maxy - _local3;
if (_local2 <= 0) {
_local2 = 1;
}
this.n_nby = Math.sqrt(Math.abs((2 * Math.abs(this.grav)) * _local2));
t.showIfHiddenTile();
return({newx:this.x + px, newy:_local3});
};
MovieClip.prototype.bounceNormal_left_kontra = MovieClip.prototype.bounceNormal_left_normalna;
MovieClip.prototype.bounceNormal_right_kontra = MovieClip.prototype.bounceNormal_left_normalna;
MovieClip.prototype.bounceNormal_up_kontra = MovieClip.prototype.bounceSoft_up_kontra;
MovieClip.prototype.bounceNormal_left_kisobran = function (px, py, t) {
if (py == 0) {
py = (-this.vy) / Math.abs(this.vx / px);
var _local4 = Math.abs(this.sx);
var _local3 = Math.abs(this.sy);
if (this.vy < 0) {
if (this.brzr > 0) {
if (_local3 > 2) {
this.n_sy = _local3 - 1;
this.n_sx = _local4 + 1;
}
} else if (_local3 < 5) {
this.n_sy = _local3 + 1;
this.n_sx = _local4 - 1;
}
} else if (this.brzr > 0) {
if (_local3 < 5) {
this.n_sy = _local3 + 1;
this.n_sx = _local4 - 1;
}
} else if (_local3 > 2) {
this.n_sy = _local3 - 1;
this.n_sx = _local4 + 1;
}
this.n_brzy = _root.crntLvl.odskok_lopti.kisobran[this.boja][Math.abs(this.n_sy)];
if (this.sy < 0) {
this.n_brzy = -this.n_brzy;
this.n_sy = -Math.abs(this.n_sy);
} else {
this.n_sy = Math.abs(this.n_sy);
}
}
this.n_brzx = -_root.crntLvl.odskok_lopti.kisobran[this.boja][Math.abs(this.n_sx)];
this.n_sx = -Math.abs(this.n_sx);
t.showIfHiddenTile();
return({newx:this.x + px, newy:this.y + py});
};
MovieClip.prototype.bounceNormal_right_kisobran = function (px, py, t) {
if (py == 0) {
py = (-this.vy) / Math.abs(this.vx / px);
var _local4 = Math.abs(this.sx);
var _local3 = Math.abs(this.sy);
if (this.vy < 0) {
if (this.brzr > 0) {
if (_local3 < 5) {
this.n_sy = _local3 + 1;
this.n_sx = _local4 - 1;
}
} else if (_local3 > 2) {
this.n_sy = _local3 - 1;
this.n_sx = _local4 + 1;
}
} else if (this.brzr > 0) {
if (_local3 > 2) {
this.n_sy = _local3 - 1;
this.n_sx = _local4 + 1;
}
} else if (_local3 < 5) {
this.n_sy = _local3 + 1;
this.n_sx = _local4 - 1;
}
this.n_brzy = _root.crntLvl.odskok_lopti.kisobran[this.boja][Math.abs(this.n_sy)];
if (this.sy < 0) {
this.n_brzy = -this.n_brzy;
this.n_sy = -Math.abs(this.n_sy);
} else {
this.n_sy = Math.abs(this.n_sy);
}
}
this.n_sx = Math.abs(this.n_sx);
this.n_brzx = _root.crntLvl.odskok_lopti.kisobran[this.boja][Math.abs(this.n_sx)];
t.showIfHiddenTile();
return({newx:this.x + px, newy:this.y + py});
};
MovieClip.prototype.bounceNormal_up_kisobran = function (px, py, t) {
if (px == 0) {
px = (-this.vx) / Math.abs(this.vy / py);
var _local4 = Math.abs(this.sx);
var _local3 = Math.abs(this.sy);
if (this.vx < 0) {
if (this.brzr > 0) {
if (_local3 > 2) {
this.n_sy = _local3 - 1;
this.n_sx = _local4 + 1;
}
} else if (_local3 < 5) {
this.n_sy = _local3 + 1;
this.n_sx = _local4 - 1;
}
} else if (this.brzr > 0) {
if (_local3 < 5) {
this.n_sy = _local3 + 1;
this.n_sx = _local4 - 1;
}
} else if (_local3 > 2) {
this.n_sy = _local3 - 1;
this.n_sx = _local4 + 1;
}
this.n_brzx = _root.crntLvl.odskok_lopti.kisobran[this.boja][Math.abs(this.n_sx)];
if (this.sx < 0) {
this.n_brzx = -this.n_brzx;
this.n_sx = -Math.abs(this.n_sx);
} else {
this.n_sx = Math.abs(this.n_sx);
}
}
this.n_brzy = -_root.crntLvl.odskok_lopti.kisobran[this.boja][Math.abs(this.n_sy)];
this.n_sy = -Math.abs(this.n_sy);
if (t.tip == "tramboline") {
_root.crntLvl.animate_dodatak(t.ime, t.drawTile, "f", 1, "stop");
var _local9 = new MySound("tramboline", t.drawTile);
}
t.showIfHiddenTile();
return({newx:this.x + px, newy:this.y + py});
};
MovieClip.prototype.bounceNormal_down_kisobran = function (px, py, t) {
if (px == 0) {
px = (-this.vx) / Math.abs(this.vy / py);
var _local4 = Math.abs(this.sx);
var _local3 = Math.abs(this.sy);
if (this.vx < 0) {
if (this.brzr > 0) {
if (_local3 < 5) {
this.n_sy = _local3 + 1;
this.n_sx = _local4 - 1;
}
} else if (_local3 > 2) {
this.n_sy = _local3 - 1;
this.n_sx = _local4 + 1;
}
} else if (this.brzr > 0) {
if (_local3 > 2) {
this.n_sy = _local3 - 1;
this.n_sx = _local4 + 1;
}
} else if (_local3 < 5) {
this.n_sy = _local3 + 1;
this.n_sx = _local4 - 1;
}
this.n_brzx = _root.crntLvl.odskok_lopti.kisobran[this.boja][Math.abs(this.n_sx)];
if (this.sx < 0) {
this.n_brzx = -this.n_brzx;
this.n_sx = -Math.abs(this.n_sx);
} else {
this.n_sx = Math.abs(this.n_sx);
}
}
this.n_brzy = _root.crntLvl.odskok_lopti.kisobran[this.boja][Math.abs(this.n_sy)];
this.n_sy = Math.abs(this.n_sy);
t.showIfHiddenTile();
return({newx:this.x + px, newy:this.y + py});
};
MovieClip.prototype.bounceSoft_down_kisobran = MovieClip.prototype.bounceNormal_down_kisobran;
MovieClip.prototype.bounceSoft_up_kisobran = MovieClip.prototype.bounceNormal_up_kisobran;
MovieClip.prototype.bounceSoft_left_kisobran = MovieClip.prototype.bounceNormal_left_kisobran;
MovieClip.prototype.bounceSoft_right_kisobran = MovieClip.prototype.bounceNormal_right_kisobran;
MovieClip.prototype.simulateCollision_ball = function (x, y) {
var _local18 = Math.floor(x / this.cs);
var _local17 = Math.floor(y / this.cs);
if ((this.x % this.cs) < this.hcs) {
if ((this.y % this.cs) < this.hcs) {
var _local16 = "A";
} else {
var _local16 = "C";
}
} else if ((this.y % this.cs) < this.hcs) {
var _local16 = "B";
} else {
var _local16 = "D";
}
var _local12 = this.su[(("cell" + _local18) + "_") + _local17][_local16];
for (var _local15 in _local12) {
var _local2 = _local12[_local15];
var _local3 = x - _local2.sredx;
var _local7 = (_local2.sirx + this.r) - Math.abs(_local3);
if ((_local7 > 0) && (_local2.tip != "ljestve")) {
var _local4 = y - _local2.sredy;
var _local8 = (_local2.siry + this.r) - Math.abs(_local4);
if (_local8 > 0) {
var _local5 = 0;
var _local6 = 0;
if (_local3 < (-_local2.sirx)) {
var _local11 = _local2.t1x;
_local5 = -1;
} else if (_local3 > _local2.sirx) {
var _local11 = _local2.t2x;
_local5 = 1;
}
if (_local4 < (-_local2.siry)) {
var _local10 = _local2.t1y;
_local6 = -1;
} else if (_local4 > _local2.siry) {
var _local10 = _local2.t2y;
_local6 = 1;
}
if (_local5 == 0) {
return(true);
}
if (_local6 == 0) {
return(true);
}
_local3 = this.x - _local11;
_local4 = this.y - _local10;
var _local9 = (_local3 * _local3) + (_local4 * _local4);
if (this.r2 > _local9) {
return(true);
}
}
}
}
return(false);
};
MovieClip.prototype.checkBallVsPlayer = function (player) {
var _local3 = this.x - player._x;
var _local7 = (player.ball_hw + this.r) - Math.abs(_local3);
if (_local7 > 0) {
var _local4 = this.y - player._y;
var _local8 = (player.ball_hh + this.r) - Math.abs(_local4);
if (_local8 > 0) {
if (_local3 < (-player.ball_hw)) {
var _local5 = player._x - player.ball_hw;
} else if (_local3 > player.ball_hw) {
var _local5 = player._x + player.ball_hw;
} else {
return(true);
}
if (_local4 < (-player.ball_hh)) {
var _local6 = player._y - player.ball_hh;
} else if (_local4 > player.ball_hh) {
var _local6 = player._y + player.ball_hh;
} else {
return(true);
}
_local3 = this.x - _local5;
_local4 = this.y - _local6;
var _local9 = (_local3 * _local3) + (_local4 * _local4);
if (this.r2 > _local9) {
return(true);
}
}
}
return(false);
};
MovieClip.prototype.split_ball_normal = function (player_id, xpos, ypos, split_double) {
if (((player_id != 1) && (player_id != 2)) && (player_id != 3)) {
TRE(this, "DEBUG: nepoznat ID playera (split_ball_normal funkcija):" + player_id);
}
if (this.metalna == true) {
var _local27 = new MySound("metalna", this);
return(true);
}
var _local13 = true;
if (xpos == undefined) {
xpos = this.x;
ypos = this.y;
_local13 = false;
}
if ((this.battleId != player_id) && (((this.battleId == 1) || (this.battleId == 2)) || (this.battleId == 3))) {
var _local14 = player_id;
if (this.brzx == 0) {
var _local17 = 0;
} else if (this.brzx < 0) {
var _local17 = -1;
} else {
var _local17 = 1;
}
var _local8 = {brzy:this.brzy, x:xpos, y:ypos, boja:this.boja, tip:this.tip, splitway:this.splitway, id:this.id, sx:_local17, sy:this.sy, rotacija:this.rotacija, cloned:this.cloned, spawnedBy:player_id, battleId:_local14, vrijediBodova:this.basePoints, combo_id:combo_id};
if (this.ghostBall == true) {
_local8.ghostBall = true;
}
if (this.tip == "kisobran") {
}
_root.crntLvl.loptaInit(_local8);
this.unistiLoptu(player_id);
return(true);
}
var _local5 = _root.crntLvl.create_animation_item("lopta_pop");
var _local16 = new Color(_local5);
_local16.setTransform(_root.crntLvl.ballColorTransforms[this.boja]);
_local5.tip = "pop_animation";
_local5._x = xpos;
_local5._y = ypos;
_local5._width = this._width;
_local5._height = this._height;
_local5._rotation = _root.randRange(0, 360);
_local5.destroyFunction = this.unistiItem_item;
_root.crntLvl.animate_dodatak("loptapop" + _local5.id, _local5, "f", 1, "destroyFunction");
var _local15 = _root.randRange(1, 3);
var _local27 = new MySound("pop" + _local15);
var _local10 = 0;
if (((((_root.crntGame.mod != "vs") && (_root.crntGame.mod != "stayingalive1")) && (_root.crntGame.mod != "stayingalive2")) && ((this.spawnedBy == player_id) || (this.spawnedBy == 3))) && (_local13 == true)) {
_local10 = this.combo_id + 1;
if (_local10 >= 2) {
this.vrijediBodova = this.vrijediBodova * _local10;
var _local4 = _root.crntLvl.create_animation_item("ingame_showText");
_root.ingame_interface.combo.gotoAndStop(_root.ingame_interface.combo._currentframe + _local10);
if (_root.ingame_interface.combo._currentframe >= _root.ingame_interface.combo._totalframes) {
_root.ingame_interface.combo.gotoAndStop(1);
var _local20 = true;
_local4.tekst.text = "COMBO BONUS!";
MyStyles.applyFancyFormatting(_local4.tekst, MyStyles.INGAME_COMBO_BONUS);
_local4._xscale = (_local4._yscale = 85);
switch (_root.crntGame.mod) {
case "single" :
_root.crntLvl.activate_speed_player(player_id);
_root.crntLvl.players["player" + player_id].activate_shield_plain_player();
break;
case "coop" :
_root.crntLvl.activate_speed_player(1);
_root.crntLvl.activate_speed_player(2);
_root.crntLvl.players.player1.activate_shield_plain_player();
_root.crntLvl.players.player2.activate_shield_plain_player();
break;
default :
TRE(this, "DEBUG, ballgotshot (combo), nepoznat case:" + _root.crntGame.mod);
}
} else {
_local4.tekst.text = ("COMBO X" + _local10) + " !";
MyStyles.applyFancyFormatting(_local4.tekst, MyStyles.INGAME_COMBO);
_local4._xscale = (_local4._yscale = 50 + (this.combo_id * 10));
}
_local4.tip = (("combo_id" + _local10) + "_player_id") + player_id;
_local4._x = xpos;
_local4._y = ypos - (this.r * 2);
if (_local4._x > (_root.crntLvl.xmax - 50)) {
_local4._x = _root.crntLvl.xmax - 50;
} else if (_local4._x < (_root.crntLvl.xmin + 60)) {
_local4._x = _root.crntLvl.xmin + 60;
}
if (_local4._y > (_root.crntLvl.ymax - 10)) {
_local4._y = _root.crntLvl.ymax - 10;
} else if (_local4._y < (_root.crntLvl.ymin + 10)) {
_local4._y = _root.crntLvl.ymin + 10;
}
_local4.destroyFunction = _local4.unistiItem_item;
_root.crntLvl.animate_dodatak("combo_" + _local4.id, _local4, "t", 1.5, "destroyFunction");
}
}
if (((_root.crntLvl.battle_mode == "tag") && ((player_id == 1) || (player_id == 2))) && (this.battleId != 3)) {
var _local9 = _root.crntLvl.create_animation_item("ingame_showText");
var _local11 = Math.round((_root.rt.o - this.creationTime) / 1000);
if (_local11 < 1) {
_local11 = 1;
}
MyStyles.applyFancyFormatting(_local9.tekst, MyStyles["INGAME_TAG_POINTS_" + player_id]);
_local9.tekst.text = _local11;
_local9.tip = "battle_points_id" + player_id;
_local9._x = xpos;
_local9._y = ypos - (this.r * 2);
_local9.timeAlive = 0;
_local9.stackerDo = function () {
this.timeAlive = this.timeAlive + _root.rt.f;
if (this.timeAlive >= 1) {
this.unistiItem_item();
}
};
}
if (this.id > 1) {
var _local12 = this.id - 1;
var _local14 = this.battleId;
if (this.battleId == 3) {
_local14 = player_id;
}
if (this.tip == "kisobran") {
var _local17 = -Math.abs(this.sx);
} else {
var _local17 = -1;
}
var _local8 = {brzy:this.brzy, x:xpos - (_root.crntLvl.ballSizeRadius[_local12] / 2), y:ypos, boja:this.boja, tip:this.tip, splitway:this.splitway, id:_local12, sx:_local17, sy:this.sy, rotacija:this.rotacija, cloned:this.cloned, spawnedBy:player_id, battleId:_local14, vrijediBodova:this.basePoints, combo_id:_local10};
if (this.ghostBall == true) {
_local8.ghostBall = true;
}
if (this.tip == "kisobran") {
}
_root.crntLvl.loptaInit(_local8);
_local8.x = _local8.x + _root.crntLvl.ballSizeRadius[_local12];
_local8.sx = -_local8.sx;
_root.crntLvl.loptaInit(_local8);
if (((split_double != true) && (_root.crntGame.mod != "stayingalive1")) && (_root.crntGame.mod != "stayingalive2")) {
if (_root.crntLvl.cloned == true) {
if (this.cloned == true) {
this.spawnItem_item(_root.crntLvl.dropProbability_cloned.pop(), xpos, ypos);
} else {
this.spawnItem_item(_root.crntLvl.dropProbability.pop(), xpos, ypos);
}
} else {
this.spawnItem_item(_root.crntLvl.dropProbability.pop(), xpos, ypos);
}
}
}
if (_root.crntLvl.battle_mode == "tag") {
_root.crntLvl.addPoints_level("pop", (("tip_" + this.tip) + "_id_") + this.id, player_id, _local11);
} else if (((_root.crntLvl.battle_mode == "normal_vs") || (_root.crntGame.mod == "stayingalive1")) || (_root.crntGame.mod == "stayingalive2")) {
_root.crntLvl.addPoints_level("pop", (("tip_" + this.tip) + "_id_") + this.id, player_id, 1);
} else if (!(player_id === 3)) {
_root.crntLvl.addPoints_level("pop", (("tip_" + this.tip) + "_id_") + this.id, player_id, this.vrijediBodova);
} else if (player_id == 3) {
} else {
TRE(this, (((("Ne znam tko je uni\u0161tio ovu loptu:" + player_id) + ", x:") + xpos) + ", y:") + ypos);
}
TRE("[Ball got shot]", (((("Ball got shot > tip: " + this.tip) + ", id: ") + this.id) + ", pl_id: ") + player_id, 55);
if (split_double != true) {
this.unistiLoptu(player_id);
}
};
MovieClip.prototype.split_ball_double = function (player_id, xpos, ypos) {
if (this.id > 1) {
var _local3 = this.r / 2;
if (xpos != undefined) {
this.split_ball_normal(player_id, xpos - _local3, ypos, true);
this.split_ball_normal(player_id, xpos + _local3, ypos);
} else {
this.x = this.x - _local3;
this.split_ball_normal(player_id, xpos, ypos, true);
this.x = this.x + (2 * _local3);
this.split_ball_normal(player_id, xpos, ypos);
}
} else {
this.split_ball_normal(player_id, xpos, ypos);
}
};
MovieClip.prototype.ball_activates_switch = function (player_id) {
for (var _local5 in _root.crntLvl.tile_switches) {
var _local3 = _root.crntLvl.tile_switches[_local5];
if (_local3.color == this.boja) {
if ((_root.crntLvl.cloned != true) || (((player_id == 1) && (_local3.cloned != true)) || ((player_id == 2) && (_local3.cloned == true)))) {
this.unistiTile(_local3, "switch");
}
}
}
};
MovieClip.prototype.unistiLoptu = function (player_id) {
if ((player_id == 1) || (player_id == 2)) {
_root.crntLvl.players["player" + player_id].bubbles_destroyed++;
} else if (player_id == "funkcija-bounce_vanjska") {
} else if (player_id == "funkcija-initLevel_SA") {
} else if (player_id == 3) {
} else {
TRE("DEBUG: uni\u0161tena lopta (ballGotShot) a ne znam tko: " + player_id);
}
delete _root.crntLvl.lopte["lopta" + this.ld];
_root.rt.itemsToDestroy.push(this);
if (this.cloned == true) {
_root.crntLvl.aktivnihLopti_cloned--;
_root.crntLvl.aktivnih_lopti_boje[this.boja + "_cloned"]--;
if (_root.crntLvl.aktivnih_lopti_boje[this.boja + "_cloned"] == 0) {
this.ball_activates_switch(player_id);
}
} else {
_root.crntLvl.aktivnihLopti--;
_root.crntLvl.aktivnih_lopti_boje[this.boja]--;
if (_root.crntLvl.aktivnih_lopti_boje[this.boja] == 0) {
this.ball_activates_switch(player_id);
}
}
if (((_root.crntGame.mod != "stayingalive1") && (_root.crntGame.mod != "stayingalive2")) && ((_root.crntLvl.aktivnihLopti == 0) || ((_root.crntLvl.cloned == true) && (_root.crntLvl.aktivnihLopti_cloned == 0)))) {
_root.crntLvl.levelsIsFinishing(player_id);
var _local4 = new MySound("gong");
TRE(this, "unistiLoptu -> gotov level! zbog igraca:" + player_id, 9);
}
};
_root.gotoAndStop("frame_mainmenu");
Frame 35
_root.ingame_pozadina.removeMovieClip();
_root.pozadina.removeMovieClip();
_root.createEmptyMovieClip("menu_popups", 200);
var initMenuClass = new MenuClass();
var initCookie = new MyCookie();
var initMsg = new Msg();
var initStyle = new MyStyles();
MyCookie.init();
MenuClass.init();
if (_root == _level0) {
play();
} else {
_root.createGameObject("editor");
}
Frame 36
stop();
Frame 37
TRE(this, "Generating styles...[inside flash - not eclipse!]", 45);
var tempStyles = new MyStyles();
MyStyles.INGAME_TITLE_FILTERS = MyStyles_INGAME_TITLE.filters;
MyStyles.INGAME_SUBTITLE_FILTERS = MyStyles_INGAME_SUBTITLES.filters;
MyStyles.INGAME_SLOW_DOWN_BALLS_FILTERS = MyStyles_INGAME_SLOW_DOWN_BALLS.filters;
MyStyles.INGAME_SLOW_DOWN_BALLS_OFF_FILTERS = MyStyles_INGAME_SLOW_DOWN_BALLS_OFF.filters;
MyStyles.INGAME_FREEZE_BALLS_FILTERS = MyStyles_INGAME_FREEZE_BALLS.filters;
MyStyles.INGAME_FREEZE_BALLS_OFF_FILTERS = MyStyles_INGAME_FREEZE_BALLS_OFF.filters;
MyStyles.INGAME_TAG_POINTS_1_FILTERS = MyStyles_INGAME_TAG_POINTS_1.filters;
MyStyles.INGAME_TAG_POINTS_2_FILTERS = MyStyles_INGAME_TAG_POINTS_2.filters;
MyStyles.INGAME_COMBO_FILTERS = MyStyles_INGAME_COMBO.filters;
MyStyles.INGAME_COMBO_BONUS_FILTERS = MyStyles_INGAME_COMBO_BONUS.filters;
MyStyles.INGAME_TILE_TRAMBOLINE_FILTERS = MyStyles_INGAME_TILE_TRAMBOLINE.filters;
if (_root.crntGame.mod == "vs") {
MyStyles.applyFancyFormatting(_root.ingame_interface.bodovi_total.bodovi, MyStyles.INGAME_TAG_POINTS_1);
MyStyles.applyFancyFormatting(_root.ingame_interface.bodovi_total2.bodovi, MyStyles.INGAME_TAG_POINTS_2);
}
startNewGame();
Frame 45
if (mdm.Application.filename == undefined) {
MochiAd.showTimedAd({id:"be954f389e8fe49b", res:"640x480"});
}
Frame 46
_root.gotoAndStop("frame_mainmenu");
Symbol 80 MovieClip Frame 1
var gameBytesTotal = 0;
var gameBytesLoaded = 0;
var percent = 0;
Symbol 80 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.sad = getTimer();
_root.play();
} else {
gotoAndPlay ("2dpreload");
}
Symbol 1054 MovieClip Frame 1
if (yy.savescore == 1) {
if (ipb_score == undefined) {
ipb_score = eval (_global.ipb_scoreVar);
}
xx = new LoadVars();
xx.arcadegid = _root.ibpro_gameid;
xx.gscore = ipb_score;
xx.gname = _global.ipb_get_gname();
xx.enscore = (ipb_score * yy.randchar) ^ yy.randchar2;
xx.send("index.php?autocom=arcade&do=savescore", "_self", "POST");
stop();
}
_global.ipbSend = function (ipb_score) {
_root._visible = false;
_root.enabled = false;
xx = new LoadVars();
yy = new LoadVars();
xx.sendAndLoad("index.php?autocom=arcade&do=verifyscore", yy, "POST");
};
Symbol 3 MovieClip Frame 1
bravo_txt.text = Msg.getMsg(Msg["INGAME_VS_FINISH_LEVEL_" + this.win_player], bravo_txt, MyStyles.INGAME_TITLE);
Symbol 14 MovieClip [default_menu_option] Frame 1
#initclip 20
Object.registerClass("default_menu_option", MyButton);
#endinitclip
stop();
hitArea_mc._alpha = 0;
Symbol 15 MovieClip [ingame_finishGame_screen_vs] Frame 1
if (_root.crntGame.vs_score.p1 > _root.crntGame.vs_score.p2) {
congrats_txt.text = Msg.getMsg(Msg.INGAME_VS_FINISH_LEVEL_1, congrats_txt, MyStyles.INGAME_TITLE);
} else if (_root.crntGame.vs_score.p2 > _root.crntGame.vs_score.p1) {
congrats_txt.text = Msg.getMsg(Msg.INGAME_VS_FINISH_LEVEL_2, congrats_txt, MyStyles.INGAME_TITLE);
} else {
congrats_txt.text = Msg.getMsg(Msg.INGAME_VS_FINISH_LEVEL_0, congrats_txt, MyStyles.INGAME_TITLE);
}
finish_txt.text = Msg.getMsg(Msg.FINISHED_ALL_LEVELS_TXT, finish_txt);
FINISHED_ALL_LEVELS_OK_BUTTON.alwaysActive();
FINISHED_ALL_LEVELS_OK_BUTTON.akcija = function () {
stopAllSounds();
score = _root.crntGame.bodovi.p1;
_root.CurrentScore = _root.crntGame.bodovi.p1;
_global.ipbSend(_root.CurrentScore);
stop();
};
Symbol 24 MovieClip [interface_level] Frame 1
level_text.text = Msg.getMsg("INGAME_INTERFACE_LEVEL", level_text);
Symbol 30 MovieClip [interface_zivoti] Frame 1
stop();
Symbol 44 MovieClip [ingame_interface_active_weapon] Frame 1
stop();
Symbol 49 MovieClip [interface_combo] Frame 1
stop();
Symbol 54 MovieClip [menu_button_S] Frame 1
#initclip 19
Object.registerClass("menu_button_S", MyButton_S);
#endinitclip
stop();
hitArea_mc._alpha = 0;
Symbol 61 MovieClip Frame 1
stop();
Symbol 62 MovieClip [interface_single] Frame 1
INGAME_INTERFACE_MENU_OPEN.akcija = function () {
_root.crntLvl.pauza("on");
_root.attachMovie("ingame_menu", "highest_active_menu", 8000);
};
zivoti.gotoAndStop(_root.crntGame.zivoti.p1);
bodovi.bodovi.text = 0;
Symbol 62 MovieClip [interface_single] Frame 2
INGAME_INTERFACE_MENU_OPEN.akcija = function () {
_root.crntLvl.pauza("on");
_root.attachMovie("ingame_menu", "highest_active_menu", 8000);
};
zivoti.gotoAndStop(_root.crntGame.zivoti.coop);
bodovi.bodovi.text = 0;
Symbol 62 MovieClip [interface_single] Frame 3
INGAME_INTERFACE_MENU_OPEN.akcija = function () {
_root.crntLvl.pauza("on");
_root.attachMovie("ingame_menu", "highest_active_menu", 8000);
};
vs_mode.text = "";
bodovi.bodovi.text = 0;
bodovi2.bodovi.text = 0;
bodovi_total.bodovi.text = 0;
bodovi_total2.bodovi.text = 0;
Symbol 62 MovieClip [interface_single] Frame 4
INGAME_INTERFACE_MENU_OPEN.akcija = function () {
_root.crntLvl.pauza("on");
_root.attachMovie("ingame_menu", "highest_active_menu", 8000);
};
zivoti.gotoAndStop(_root.crntGame.zivoti.p1);
bodovi.bodovi.text = 0;
Symbol 62 MovieClip [interface_single] Frame 5
INGAME_INTERFACE_MENU_OPEN.akcija = function () {
_root.crntLvl.pauza("on");
_root.attachMovie("ingame_menu", "highest_active_menu", 8000);
};
zivoti.gotoAndStop(_root.crntGame.zivoti.coop);
bodovi.bodovi.text = 0;
Symbol 1036 MovieClip [__Packages.MyStyles] Frame 0
class MyStyles
{
function MyStyles () {
}
static function setTextboxStyle(txt_box) {
txt_box.borderColor = 16252693 /* 0xF7FF15 */;
txt_box.backgroundColor = 2007233 /* 0x1EA0C1 */;
}
static function applyFancyFormatting(txt_box_or_mc, style) {
if (style == undefined) {
TREJS.THIS("DEBUG! Nedefiniran style za :" + txt_box_or_mc);
}
txt_box_or_mc.embedFonts = true;
txt_box_or_mc.cacheAsBitmap = true;
if (MyStyles[style + "_FILTERS"] != undefined) {
txt_box_or_mc.filters = MyStyles[style + "_FILTERS"];
} else {
TREJS.THIS(((("DEBUG! nepoznat stil!: " + style) + " (za ") + txt_box_or_mc) + ")");
}
}
static var MENU_TITLE = "MENU_TITLE";
static var MENU_TITLE_FILTERS = new Array(new flash.filters.GlowFilter(9772551, 1, 2, 2, 5, 3, false, false));
static var INGAME_TITLE = "INGAME_TITLE";
static var INGAME_SUBTITLE = "INGAME_SUBTITLE";
static var INGAME_SLOW_DOWN_BALLS = "INGAME_SLOW_DOWN_BALLS";
static var INGAME_SLOW_DOWN_BALLS_OFF = "INGAME_SLOW_DOWN_BALLS_OFF";
static var INGAME_FREEZE_BALLS = "INGAME_FREEZE_BALLS";
static var INGAME_FREEZE_BALLS_OFF = "INGAME_FREEZE_BALLS_OFF";
static var INGAME_TAG_POINTS_1 = "INGAME_TAG_POINTS_1";
static var INGAME_TAG_POINTS_2 = "INGAME_TAG_POINTS_2";
static var INGAME_COMBO = "INGAME_COMBO";
static var INGAME_COMBO_BONUS = "INGAME_COMBO_BONUS";
static var INGAME_TILE_TRAMBOLINE = "INGAME_TILE_TRAMBOLINE";
static var NO_STYLE = "NO_STYLE";
static var NO_STYLE_FILTERS = new Array();
}
Symbol 1037 MovieClip [__Packages.TREJS] Frame 0
class TREJS
{
static var zincFilePrepared;
function TREJS () {
}
static function THIS(msg) {
if (AppInfo.DEBUG_MODE == false) {
return(true);
}
if (_global.TRE == undefined) {
trace(msg);
} else {
_global.TRE("menu", msg, 45);
}
}
static function prepareZincTrace() {
if (!zincFilePrepared) {
zincFilePrepared = true;
mdm.FileSystem.saveFile(outputFile, "");
VIAZINC("<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>");
VIAZINC("<title>Flash trace</title>");
VIAZINC("<body bgcolor='#F0F0F0'>");
}
}
static function VIAZINC(msg) {
msg = msg + "<br>";
mdm.FileSystem.appendFile(outputFile, msg);
}
static var debugFile = "";
static var outputFile = "D:\\aditon\\bs2_radna\\zinc_flashlog.htm";
}
Symbol 1038 MovieClip [__Packages.AppInfo] Frame 0
class AppInfo
{
function AppInfo () {
}
static function getAppVer() {
return(APPLICATION_VERSION);
}
static function isAppOnline() {
return(MenuClass.igramOnline());
}
static function getAppURL() {
return(APPLICATION_URL);
}
static function getNewNicknameUrl() {
if (DEBUG_MODE) {
return(DEBUG_BASE_URL + NICKNAME_URL);
}
return(BASE_URL + NICKNAME_URL);
}
static function getHighscoresUrl() {
if (DEBUG_MODE) {
return(DEBUG_BASE_URL + HIGHSCORES_URL);
}
return(BASE_URL + HIGHSCORES_URL);
}
static function setHighscoresUrl() {
if (DEBUG_MODE) {
return(DEBUG_BASE_URL + SEND_HIGHSCORES_URL);
}
return(BASE_URL + SEND_HIGHSCORES_URL);
}
static function serverMessagesUrl() {
if (DEBUG_MODE) {
return(DEBUG_BASE_URL + SERVER_MESSAGES_URL);
}
return(BASE_URL + SERVER_MESSAGES_URL);
}
static function countGameUrl() {
if (DEBUG_MODE) {
return(DEBUG_BASE_URL + COUNT_GAME_URL);
}
return(BASE_URL + COUNT_GAME_URL);
}
static var DEBUG_MODE = false;
static var SHOW_ADS = true;
static var GAME_OVER_AD_PAUSE = 6;
static var KORISTIM_SERVER = false;
static var APPLICATION_VERSION = 0.06;
static var APPLICATION_URL = "";
static var BASE_URL = "";
static var DEBUG_BASE_URL = "";
static var NICKNAME_URL = "new_nickname.php";
static var HIGHSCORES_URL = "get_highscores.php";
static var SEND_HIGHSCORES_URL = "set_highscores.php";
static var SERVER_MESSAGES_URL = "serverMessages.php";
static var COUNT_GAME_URL = "countGame.php";
}
Symbol 1039 MovieClip [__Packages.MenuClass] Frame 0
class MenuClass
{
static var activeLevel, igramOffline, activeLevelButtons, activeProfileId;
function MenuClass (root_mc) {
activeLevel = 1;
MySound.resetCounter();
TREJS.THIS(("[MENU STARTED] [root.mc = " + _root) + "]");
if (mdm.Application.filename != undefined) {
igramOffline = true;
TREJS.prepareZincTrace();
} else {
igramOffline = false;
}
Msg.setLanguage(Msg.LANGUAGE_ENGLISH);
activeLevelButtons = new Array();
activeLevelButtons[1] = new Array();
MenuKeyboard.activate();
}
static function init() {
if ((MyCookie.getGlobalCookie(MyCookie.GLOBAL_COOKIE_VERSION) < AppInfo.getAppVer()) || (MyCookie.getGlobalCookie(MyCookie.GLOBAL_COOKIE_VERSION) == false)) {
MyCookie.clearAllCookies(true);
}
if (MyCookie.globalCookieObjectExists() == false) {
if (MyCookie.createGlobalCookieObject()) {
MyCookie.setGlobalCookie(MyCookie.GLOBAL_NUMOFPROFILES, 0);
MyCookie.setGlobalCookie(MyCookie.GLOBAL_PROFILE_COUNTER, 0);
MyCookie.setGlobalCookie(MyCookie.GLOBAL_COOKIE_VERSION, AppInfo.getAppVer());
if (!igramOnline()) {
OfflineScore.createBlankHighscoreSpaces(MyCookie.OFFLINE_SCORES_SINGLE);
OfflineScore.createBlankHighscoreSpaces(MyCookie.OFFLINE_SCORES_STAYIN1);
OfflineScore.createBlankHighscoreSpaces(MyCookie.OFFLINE_SCORES_COOP);
OfflineScore.createBlankHighscoreSpaces(MyCookie.OFFLINE_SCORES_STAYIN2);
}
} else if (igramOnline()) {
TREJS.THIS("DEBUG, ne mogu napraviti globalni cookie objekt (online)!");
} else {
TREJS.THIS("DEBUG, ne mogu napraviti globalni cookie objekt (offline)!");
}
} else {
TREJS.THIS("Global cookie exists!");
}
mdm.Dialogs.prompt("Hi MDM. If you can see this dialog you got more than I did!");
if (igramOnline() == false) {
if (MyCookie.getGlobalCookie(MyCookie.ZASTITA) != MyCookie.TRUE) {
provjeriFullVerziju();
}
}
}
static function provjeriFullVerziju(ser) {
if (ser == undefined) {
ser = "";
}
var _local1 = mdm.Dialogs.inputBox("Enter your licence code here:", ser);
if (_local1 == "") {
mdm.Application.exit();
} else if (mdm.Application.Trial.activate(_local1) == true) {
mdm.Dialogs.prompt("Activation was succesfull!");
MyCookie.setGlobalCookie(MyCookie.ZASTITA, MyCookie.TRUE);
} else {
mdm.Dialogs.prompt("Wrong licence code, please try again!");
provjeriFullVerziju(_local1);
}
}
static function igramOnline() {
return(!igramOffline);
}
static function createNewProfile() {
var _local4 = MyCookie.getGlobalCookie(MyCookie.GLOBAL_NUMOFPROFILES);
MyCookie.setGlobalCookie(MyCookie.GLOBAL_NUMOFPROFILES, _local4 + 1);
var _local3 = MyCookie.getGlobalCookie(MyCookie.GLOBAL_PROFILE_COUNTER);
var _local1 = _local3 + 1;
MyCookie.setGlobalCookie(MyCookie.GLOBAL_PROFILE_COUNTER, _local1);
var _local2 = MyCookie.createProfileSpace(_local1);
if (_local2 == false) {
TREJS.THIS("DEBUG! ne mogu napraviti prostor za novi profil:" + _local2);
} else {
TREJS.THIS("radim i aktiviram profil: " + _local1);
}
activeProfileId = "profile" + _local1;
MyCookie.setCookie(MyCookie.UNIQUE_ID, MyCookie.FALSE);
MyCookie.setCookie(MyCookie.SINGLE, MyCookie.SINGLE_KEY_LEFT, 37);
MyCookie.setCookie(MyCookie.SINGLE, MyCookie.SINGLE_KEY_RIGHT, 39);
MyCookie.setCookie(MyCookie.SINGLE, MyCookie.SINGLE_KEY_UP, 38);
MyCookie.setCookie(MyCookie.SINGLE, MyCookie.SINGLE_KEY_DOWN, 40);
MyCookie.setCookie(MyCookie.SINGLE, MyCookie.SINGLE_KEY_FIRE, 32);
MyCookie.setCookie(MyCookie.TWOP, MyCookie.TWOP_P2_NICK, MyCookie.FALSE);
MyCookie.setCookie(MyCookie.TWOP, MyCookie.TWOP_P1_COLOR, MyCookie.FALSE);
MyCookie.setCookie(MyCookie.TWOP, MyCookie.TWOP_P2_COLOR, MyCookie.FALSE);
MyCookie.setCookie(MyCookie.TWOP, MyCookie.TWOP_P1_KEY_LEFT, 65);
MyCookie.setCookie(MyCookie.TWOP, MyCookie.TWOP_P1_KEY_RIGHT, 68);
MyCookie.setCookie(MyCookie.TWOP, MyCookie.TWOP_P1_KEY_UP, 87);
MyCookie.setCookie(MyCookie.TWOP, MyCookie.TWOP_P1_KEY_DOWN, 83);
MyCookie.setCookie(MyCookie.TWOP, MyCookie.TWOP_P1_KEY_FIRE, 81);
MyCookie.setCookie(MyCookie.TWOP, MyCookie.TWOP_P2_KEY_LEFT, 37);
MyCookie.setCookie(MyCookie.TWOP, MyCookie.TWOP_P2_KEY_RIGHT, 39);
MyCookie.setCookie(MyCookie.TWOP, MyCookie.TWOP_P2_KEY_UP, 38);
MyCookie.setCookie(MyCookie.TWOP, MyCookie.TWOP_P2_KEY_DOWN, 40);
MyCookie.setCookie(MyCookie.TWOP, MyCookie.TWOP_P2_KEY_FIRE, 96);
MyCookie.setCookie(MyCookie.SOUND_EFFECTS, MyCookie.TRUE);
if (igramOnline()) {
OnlineScores.resetAllBestScores();
}
setActiveProfile("profile" + _local1);
}
static function setActiveProfile(profileId) {
activeProfileId = profileId;
TREJS.THIS("setiram aktivni profil:" + profileId);
MyCookie.setGlobalCookie(MyCookie.GLOBAL_LAST_ACTIVE_PROFILE, profileId);
if (profileId == MyCookie.FALSE) {
return(false);
}
loadUserSettings();
if (MyCookie.getCookie(MyCookie.SOUND_EFFECTS) == MyCookie.TRUE) {
MySound.soundsAreEnabled = true;
} else {
MySound.soundsAreEnabled = false;
}
OnlineScores.submitHighscoreIfNeeded();
checkServerMessages();
OfflineVersion.InitOfflineVersion();
if ((MyCookie.getCookie(MyCookie.FULL_SCREEN) == MyCookie.TRUE) && (!OfflineVersion.isFullScreen)) {
OfflineVersion.goFullScreen();
}
if ((MyCookie.getCookie(MyCookie.FULL_SCREEN) == MyCookie.FALSE) && (OfflineVersion.isFullScreen)) {
OfflineVersion.goWindowMode();
}
}
static function loadUserSettings() {
_level0.setups = new Object();
_level0.setups.keys_single = {key1_u:MyCookie.getCookie(MyCookie.SINGLE, MyCookie.SINGLE_KEY_UP), key1_d:MyCookie.getCookie(MyCookie.SINGLE, MyCookie.SINGLE_KEY_DOWN), key1_l:MyCookie.getCookie(MyCookie.SINGLE, MyCookie.SINGLE_KEY_LEFT), key1_r:MyCookie.getCookie(MyCookie.SINGLE, MyCookie.SINGLE_KEY_RIGHT), key1_w:MyCookie.getCookie(MyCookie.SINGLE, MyCookie.SINGLE_KEY_FIRE)};
_level0.setups.keys_two = {key1_u:MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P1_KEY_UP), key1_d:MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P1_KEY_DOWN), key1_l:MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P1_KEY_LEFT), key1_r:MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P1_KEY_RIGHT), key1_w:MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P1_KEY_FIRE), key2_u:MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P2_KEY_UP), key2_d:MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P2_KEY_DOWN), key2_l:MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P2_KEY_LEFT), key2_r:MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P2_KEY_RIGHT), key2_w:MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P2_KEY_FIRE)};
}
static function getActiveProfile() {
if (MyCookie.getGlobalCookie(MyCookie.GLOBAL_LAST_ACTIVE_PROFILE) == MyCookie.FALSE) {
return(false);
}
return(MyCookie.getGlobalCookie(MyCookie.GLOBAL_LAST_ACTIVE_PROFILE));
}
static function getNumberOfProfiles() {
return(MyCookie.getGlobalCookie(MyCookie.GLOBAL_NUMOFPROFILES));
}
static function deleteProfile(profileId) {
if (profileId == getActiveProfile()) {
setActiveProfile(MyCookie.FALSE);
}
MyCookie.deleteProfileSpace(profileId);
MyCookie.setGlobalCookie(MyCookie.GLOBAL_NUMOFPROFILES, MyCookie.getGlobalCookie(MyCookie.GLOBAL_NUMOFPROFILES) - 1);
}
static function openPopup(popupName, parent_mc) {
if (parent_mc == undefined) {
TREJS.THIS(("Ne smije\u0139\u02C7 otvoriti popup bez parenta [" + popupName) + "]");
}
activeLevel++;
if (_root.menu_popups == undefined) {
TREJS.THIS((("Jo\u0139\u02C7 nije inicijaliziran POPUP OBJEKT!" + _root.menu_popups) + ", _root:") + _root);
}
var _local2 = _root.menu_popups.attachMovie("_allPopups", "popup" + activeLevel, activeLevel);
_local2.gotoAndStop(popupName);
_local2.level = activeLevel;
_local2.myparent = parent_mc;
_local2.popupName = popupName;
activeLevelButtons[activeLevel] = new Array();
return(_local2);
}
static function closePopup(mc_pointer, initializeParent) {
if (initializeParent == false) {
TREJS.THIS((((("Popup (" + mc_pointer.popupName) + ") is NOT initializing parent [") + mc_pointer.myparent.popupName) + "]: ") + mc_pointer.myparent);
}
if (mc_pointer.myparent.initialize != undefined) {
mc_pointer.myparent.initialize();
}
mc_pointer.removeMovieClip();
activeLevel--;
MenuKeyboard.activeButtonId = 0;
MenuKeyboard.scrollButton();
}
static function loadKeys(whose, where) {
loadUserSettings();
if (whose == "p2") {
where.up1.gotoAndStop(MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P1_KEY_UP));
where.down1.gotoAndStop(MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P1_KEY_DOWN));
where.left1.gotoAndStop(MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P1_KEY_LEFT));
where.right1.gotoAndStop(MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P1_KEY_RIGHT));
where.fire1.gotoAndStop(MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P1_KEY_FIRE));
where.up2.gotoAndStop(MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P2_KEY_UP));
where.down2.gotoAndStop(MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P2_KEY_DOWN));
where.left2.gotoAndStop(MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P2_KEY_LEFT));
where.right2.gotoAndStop(MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P2_KEY_RIGHT));
where.fire2.gotoAndStop(MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P2_KEY_FIRE));
} else if (whose == "p1") {
where.up1.gotoAndStop(MyCookie.getCookie(MyCookie.SINGLE, MyCookie.SINGLE_KEY_UP));
where.down1.gotoAndStop(MyCookie.getCookie(MyCookie.SINGLE, MyCookie.SINGLE_KEY_DOWN));
where.left1.gotoAndStop(MyCookie.getCookie(MyCookie.SINGLE, MyCookie.SINGLE_KEY_LEFT));
where.right1.gotoAndStop(MyCookie.getCookie(MyCookie.SINGLE, MyCookie.SINGLE_KEY_RIGHT));
where.fire1.gotoAndStop(MyCookie.getCookie(MyCookie.SINGLE, MyCookie.SINGLE_KEY_FIRE));
} else {
TREJS.THIS(("Can't load keys for :" + whose) + " (MenuClass - loadKeys)");
}
}
static function checkServerMessages() {
TREJS.THIS("Gledam jel na serveru ima koja poruka za mene!");
if (!igramOnline()) {
TREJS.THIS("Ipak ne gledam.. igram offline...");
return(true);
}
if (!AppInfo.KORISTIM_SERVER) {
TREJS.THIS("Ipak ne gledam.. ne koristim server...");
return(true);
}
_root.menu_mc.MENU_SINGLE_PLAYER_MSG.onQueryComplete = function (return_obj) {
if (return_obj.result == "true") {
switch (return_obj.msg_id) {
case "SERVER_MESSAGE_WRONG_VERSION" :
TREJS.THIS("Poruka od servera da nemam dobru verziju!");
var _local5 = MenuClass.openPopup("infoMsg", _root);
_local5.MENU_INFO_MSG.text = Msg.getMsg(Msg.SERVER_MESSAGE_WRONG_VERSION);
return(true);
case "SERVER_MESSAGE_RESET_SCORES" :
TREJS.THIS("Poruka od servera da resetiram score!");
OnlineScores.resetAllBestScores();
_root.menu_mc.MENU_SINGLE_PLAYER_MSG.onQueryComplete = function (return_obj) {
if (return_obj.result != "true") {
TREJS.THIS("DEBUG! Primio poruku od servera ali ju nisam ozna\u00C4\u0164io kao pro\u00C4\u0164itanu!" + return_obj.msg_id);
} else {
TREJS.THIS("Score i poruka na serveru uspje\u0139\u02C7no resetirani!");
}
};
_root.menu_mc.MENU_SINGLE_PLAYER_MSG.sendNewQuery(AppInfo.serverMessagesUrl(), {operation:"set", msg_id:return_obj.msg_id});
break;
case "SERVER_MESSAGE_SVE_OK" :
TREJS.THIS("Sve ok, na serveru nema poruka! Borj odigranih igara:" + return_obj.countAllGames);
_root.menu_mc.games_played_num.text = return_obj.countAllGames;
MyStyles.applyFancyFormatting(_root.menu_mcgames_played_num.tekst, MyStyles.NO_STYLE);
break;
default :
TREJS.THIS("DEBUG: nepoznata poruka sa severa (MenuClass.checkServerMessages): " + return_obj.msg_id);
}
MenuClass.syncFlags();
} else {
var _local4 = MenuClass.openPopup("alert", this._parent);
_local4.poruka.text = return_obj.prompt;
}
};
_root.menu_mc.MENU_SINGLE_PLAYER_MSG.sendNewQuery(AppInfo.serverMessagesUrl(), {operation:"get"});
}
static function syncFlags() {
var _local2 = MyCookie.getCookie(MyCookie.FLAGS_TO_CHECK);
for (var _local7 in _local2) {
if (MyCookie.getCookie(MyCookie.FLAGS_CHECKED, _local7) != _local2[_local7]) {
TREJS.THIS((("Setting flag[" + _local7) + "]:") + _local2[_local7]);
_root.menu_mc.MENU_SINGLE_PLAYER_MSG.onQueryComplete = function (return_obj) {
if (return_obj.result != "true") {
TREJS.THIS((("DEBUG! Nisam uspje\u0139\u02C7no ozna\u00C4\u0164io flag!!" + return_obj.flag_name) + ">") + return_obj.flag_value);
} else {
TREJS.THIS(((("Flag uspje\u0139\u02C7no setiran [" + return_obj.flag_name) + ">") + return_obj.flag_value) + "]!");
MyCookie.setCookie(MyCookie.FLAGS_CHECKED, return_obj.flag_name, return_obj.flag_value);
MenuClass.syncFlags();
}
};
_root.menu_mc.MENU_SINGLE_PLAYER_MSG.sendNewQuery(AppInfo.serverMessagesUrl(), {operation:"set", msg_id:"SERVER_MESSAGE_SET_FLAG", flag_name:_local7, flag_value:_local2[_local7]});
break;
}
}
}
static var MAX_NUM_OF_PROFILES = 7;
static var MAX_NUM_OF_CHARS_IN_NICK = 15;
static var MIN_NUM_OF_CHARS_IN_NICK = 3;
static var nick_restrict = "^<>\\/*'%\"!$ ";
}
Symbol 1040 MovieClip [__Packages.MySound] Frame 0
class MySound
{
static var soundsAreEnabled, soundCounter, allSounds;
function MySound (snd, target, looptimes, offset) {
if (soundsAreEnabled && ((target.snd == undefined) || (target.snd.position >= target.snd.duration))) {
soundCounter++;
if (target == undefined) {
target = _level0.zvukovi.createEmptyMovieClip((snd + "_") + soundCounter, soundCounter);
}
if (offset == undefined) {
offset = 0;
}
if (looptimes == undefined) {
looptimes = 1;
}
var _local4 = new Sound(target);
_local4.attachSound(snd);
_local4.start(offset, looptimes);
target.snd_id = snd;
target.snd = _local4;
for (var _local3 in allSounds) {
if (allSounds[_local3] == target) {
var _local1 = true;
}
}
if (!_local1) {
allSounds.push(target);
}
}
}
static function stopAllMySounds() {
for (var _local1 in allSounds) {
allSounds[_local1].snd.stop();
}
}
static function resetCounter() {
soundCounter = 0;
allSounds = new Array();
if (_level0.zvukovi) {
_level0.zvukovi.removeMovieClip();
}
_level0.createEmptyMovieClip("zvukovi", 5500);
}
}
Symbol 1041 MovieClip [__Packages.Msg] Frame 0
class Msg
{
static var myLanguage;
function Msg () {
}
static function setLanguage(lang) {
switch (lang) {
case LANGUAGE_ENGLISH :
case LANGUAGE_HRVATSKI :
break;
default :
TREJS.THIS("DEBUG, nepoznat jezik: " + lang);
}
myLanguage = lang;
}
static function getLanguage() {
if (myLanguage == undefined) {
TREJS.THIS("DEBUG ERROR (Msg.as): JEZIK JO\u00C5\u00A0 NIJE SETIRAN!");
} else {
return(myLanguage);
}
}
static function getMsg(msgId, text_field, style) {
var _local1 = "";
if (Msg[(msgId + "_") + getLanguage()] == null) {
TREJS.THIS((("DEBUG: nema poruke:" + msgId) + ", na jeziku:") + getLanguage());
} else {
_local1 = Msg[(msgId + "_") + getLanguage()];
}
if (_local1.indexOf(NICKNAME) != -1) {
_local1 = MyString.replace(_local1, NICKNAME, MyCookie.getCookie(MyCookie.NICK_NAME));
}
if (_local1.indexOf(TWOP_NICK1) != -1) {
_local1 = MyString.replace(_local1, TWOP_NICK1, MyCookie.getCookie(MyCookie.NICK_NAME));
}
if (_local1.indexOf(TWOP_NICK2) != -1) {
_local1 = MyString.replace(_local1, TWOP_NICK2, MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P2_NICK));
}
if (_local1.indexOf(GAME_URL) != -1) {
_local1 = MyString.replace(_local1, GAME_URL, AppInfo.getAppURL());
}
if ((text_field == undefined) && (text_field != "BUTTON_INSTANCE")) {
TREJS.THIS("DEBUG!!! [Msg.as] Nema zadan objekt za poruku: " + msgId);
} else if (text_field != undefined) {
if (style == undefined) {
style = MyStyles.NO_STYLE;
}
MyStyles.applyFancyFormatting(text_field, style);
}
return(_local1);
}
static var LANGUAGE_ENGLISH = "ENG";
static var LANGUAGE_HRVATSKI = "HRV";
static var NICKNAME = "<XNICKX>";
static var TWOP_NICK1 = "<XNICK1X>";
static var TWOP_NICK2 = "<XNICK2X>";
static var GAME_URL = "<XURLX>";
static var INGAME_GET_READY1 = "INGAME_GET_READY1";
static var INGAME_GET_READY1_ENG = "GOOD LUCK!";
static var INGAME_GET_READY1_HRV = "SRETNO!";
static var INGAME_GET_READY2 = "INGAME_GET_READY2";
static var INGAME_GET_READY2_ENG = "GET READY!";
static var INGAME_GET_READY2_HRV = "PRIPREMI SE!";
static var INGAME_GET_READY3 = "INGAME_GET_READY3";
static var INGAME_GET_READY3_ENG = "READY!";
static var INGAME_GET_READY3_HRV = "KRE\u0106EMO!";
static var INGAME_FINISH_LEVEL1 = "INGAME_FINISH_LEVEL1";
static var INGAME_FINISH_LEVEL1_ENG = "BRAVO!";
static var INGAME_FINISH_LEVEL1_HRV = "BRAVO!";
static var INGAME_FINISH_LEVEL2 = "INGAME_FINISH_LEVEL2";
static var INGAME_FINISH_LEVEL2_ENG = "CONGRATULATIONS!";
static var INGAME_FINISH_LEVEL2_HRV = "TAKO TREBA!";
static var INGAME_FINISH_LEVEL3 = "INGAME_FINISH_LEVEL3";
static var INGAME_FINISH_LEVEL3_ENG = "GOOD JOB!";
static var INGAME_FINISH_LEVEL3_HRV = "SUPER!";
static var INGAME_VS_FINISH_LEVEL_1 = "INGAME_VS_FINISH_LEVEL_1";
static var INGAME_VS_FINISH_LEVEL_1_ENG = TWOP_NICK1 + " WINS!";
static var INGAME_VS_FINISH_LEVEL_1_HRV = "POBJEDIO JE IGRA\u010C 1!";
static var INGAME_VS_FINISH_LEVEL_2 = "INGAME_VS_FINISH_LEVEL_2";
static var INGAME_VS_FINISH_LEVEL_2_ENG = TWOP_NICK2 + " WINS!";
static var INGAME_VS_FINISH_LEVEL_2_HRV = "POBJEDIO JE IGRA\u010C 2!";
static var INGAME_VS_FINISH_LEVEL_0 = "INGAME_VS_FINISH_LEVEL_0";
static var INGAME_VS_FINISH_LEVEL_0_ENG = "IT'S A TIE!";
static var INGAME_VS_FINISH_LEVEL_0_HRV = "IZJEDNA\u010CENA IGRA!";
static var INGAME_VS_TYPE_CLONED = "INGAME_VS_TYPE_CLONED";
static var INGAME_VS_TYPE_CLONED_ENG = "VS MODE: CLONE";
static var INGAME_VS_TYPE_CLONED_HRV = "VS MOD: KLON";
static var INGAME_VS_TYPE_TAG = "INGAME_VS_TYPE_TAG";
static var INGAME_VS_TYPE_TAG_ENG = "VS MODE: TAG";
static var INGAME_VS_TYPE_TAG_HRV = "VS MOD: OZNA\u010CI";
static var INGAME_VS_TYPE_NORMAL_VS = "INGAME_VS_TYPE_NORMAL_VS";
static var INGAME_VS_TYPE_NORMAL_VS_ENG = "VS MODE: NORMAL";
static var INGAME_VS_TYPE_NORMAL_VS_HRV = "VS MOD: OBI\u010CNI";
static var INGAME_TIME_BONUS = "INGAME_TIME_BONUS";
static var INGAME_TIME_BONUS_ENG = "TIME BONUS:";
static var INGAME_TIME_BONUS_HRV = "NAGRADA ZA VRIJEME:";
static var INGAME_ACCURACY_BONUS = "INGAME_ACCURACY_BONUS";
static var INGAME_ACCURACY_BONUS_ENG = "ACCURATE SHOOTING";
static var INGAME_ACCURACY_BONUS_HRV = "PRECIZNO GA\u0110ANJE";
static var INGAME_GAME_OVER1 = "INGAME_GAME_OVER1";
static var INGAME_GAME_OVER1_ENG = "BETTER LUCK NEXT TIME!";
static var INGAME_GAME_OVER1_HRV = "VI\u0160E SRE\u0106E DRUGI PUTA!";
static var INGAME_GAME_OVER2 = "INGAME_GAME_OVER2";
static var INGAME_GAME_OVER2_ENG = "NICE TRY!";
static var INGAME_GAME_OVER2_HRV = "PROBAJ OPET!";
static var INGAME_OUT_OF_TIME = "INGAME_OUT_OF_TIME";
static var INGAME_OUT_OF_TIME_ENG = "TIME'S UP!";
static var INGAME_OUT_OF_TIME_HRV = "ODE \u0106UKA!";
static var FINISHED_ALL_LEVELS_HI = "FINISHED_ALL_LEVELS_HI";
static var FINISHED_ALL_LEVELS_HI_ENG = "CONGRATULATIONS!";
static var FINISHED_ALL_LEVELS_HI_HRV = "\u010CESTITAM!";
static var FINISHED_ALL_LEVELS_TXT = "FINISHED_ALL_LEVELS_TXT";
static var FINISHED_ALL_LEVELS_TXT_ENG = "You've finished 'Bubble Struggle 2: Rebubbled'!\nHad enough bubbles for today? :)\nThen get out and catch some fresh air!!!\n\nThank you for playing!\n\nMADE BY: Kresimir Cvitanovic\nIDEA FROM: Capcom's 'PANG' series";
static var FINISHED_ALL_LEVELS_TXT_HRV = "Uspje\u0161no ste zavr\u0161ili 'Bubble Struggle 2: Rebubbled'!\nI \u0161ta sad? :)\nNi\u0161ta. Iza\u0111i malo van na fri\u0161ki zrak!!!\n\nHvala na igranju!\n\nNAPRAVIO: Kre\u0161imir Cvitanovi\u0107\nIDEJA: Capcom-ov 'PANG' serijal";
static var FINISHED_ALL_LEVELS_OK_BUTTON = "FINISHED_ALL_LEVELS_OK_BUTTON";
static var FINISHED_ALL_LEVELS_OK_BUTTON_ENG = "BYEEE!";
static var FINISHED_ALL_LEVELS_OK_BUTTON_HRV = "BOOOK!";
static var INGAME_INTERFACE_LEVEL = "INGAME_INTERFACE_LEVEL";
static var INGAME_INTERFACE_LEVEL_ENG = "LEVEL";
static var INGAME_INTERFACE_LEVEL_HRV = "STAZA";
static var INGAME_INTERFACE_MENU_OPEN = "INGAME_INTERFACE_MENU_OPEN";
static var INGAME_INTERFACE_MENU_OPEN_ENG = "MENU";
static var INGAME_INTERFACE_MENU_OPEN_HRV = "MENU";
static var INGAME_MENU_TITLE = "INGAME_MENU_TITLE";
static var INGAME_MENU_TITLE_ENG = "GAME IS PAUSED";
static var INGAME_MENU_TITLE_HRV = "IGRA JE ZAUSTAVLJENA";
static var INGAME_MENU_QUIT_TO_MAINMENU = "INGAME_MENU_QUIT_TO_MAINMENU";
static var INGAME_MENU_QUIT_TO_MAINMENU_ENG = "QUIT TO MAIN MENU";
static var INGAME_MENU_QUIT_TO_MAINMENU_HRV = "ODUSTANI OD IGRE";
static var INGAME_MENU_BACK_TO_GAME = "INGAME_MENU_BACK_TO_GAME";
static var INGAME_MENU_BACK_TO_GAME_ENG = "BACK TO GAME";
static var INGAME_MENU_BACK_TO_GAME_HRV = "VRATI SE U IGRU";
static var MENU_NOLABEL = "MENU_NOLABEL";
static var MENU_NOLABEL_ENG = "";
static var MENU_NOLABEL_HRV = "";
static var MENU_COMMON_WORD_YES = "MENU_COMMON_WORD_YES";
static var MENU_COMMON_WORD_YES_ENG = "YES";
static var MENU_COMMON_WORD_YES_HRV = "DA";
static var MENU_COMMON_WORD_NO = "MENU_COMMON_WORD_NO";
static var MENU_COMMON_WORD_NO_ENG = "NO";
static var MENU_COMMON_WORD_NO_HRV = "NE";
static var MENU_COMMON_WORD_OK = "MENU_COMMON_WORD_OK";
static var MENU_COMMON_WORD_OK_ENG = "OK";
static var MENU_COMMON_WORD_OK_HRV = "OK";
static var MENU_SINGLE_PLAYER_MSG = "MENU_SINGLE_PLAYER_MSG";
static var MENU_SINGLE_PLAYER_MSG_ENG = "SINGLE PLAYER";
static var MENU_SINGLE_PLAYER_MSG_HRV = "JEDAN IGRA\u010C";
static var MENU_STAYING_ALIVE_MSG = "MENU_STAYING_ALIVE_MSG";
static var MENU_STAYING_ALIVE_MSG_ENG = "STAYING ALIVE";
static var MENU_STAYING_ALIVE_MSG_HRV = "OSTANI \u017DIV";
static var MENU_TWO_PLAYERS_MSG = "MENU_TWO_PLAYERS_MSG";
static var MENU_TWO_PLAYERS_MSG_ENG = "TWO PLAYERS";
static var MENU_TWO_PLAYERS_MSG_HRV = "DVA IGRA\u010CA";
static var MENU_SETUP_MSG = "MENU_SETUP_MSG";
static var MENU_SETUP_MSG_ENG = "SETUP";
static var MENU_SETUP_MSG_HRV = "POSTAVKE";
static var MENU_HIGHSCORES_MSG = "MENU_HIGHSCORES_MSG";
static var MENU_HIGHSCORES_MSG_ENG = "HIGHSCORES";
static var MENU_HIGHSCORES_MSG_HRV = "NAJ REZULTATI";
static var MENU_QUIT_MSG = "MENU_QUIT_MSG";
static var MENU_QUIT_MSG_ENG = "QUIT";
static var MENU_QUIT_MSG_HRV = "IZLAZ";
static var MENU_DOWNLOAD_NOW = "MENU_DOWNLOAD_NOW";
static var MENU_DOWNLOAD_NOW_ENG = "DOWNLOAD NOW";
static var MENU_DOWNLOAD_NOW_HRV = "DOWNLOAD";
static var MENU_HELP = "MENU_HELP";
static var MENU_HELP_ENG = "HELP";
static var MENU_HELP_HRV = "POMO\u0106";
static var MENU_CHANGE_PROFILE_ONLOAD = "MENU_CHANGE_PROFILE_ONLOAD";
static var MENU_CHANGE_PROFILE_ONLOAD_ENG = "YOU ARE...?";
static var MENU_CHANGE_PROFILE_ONLOAD_HRV = "TI SI...?";
static var MENU_CHANGE_PROFILE = "MENU_CHANGE_PROFILE";
static var MENU_CHANGE_PROFILE_ENG = ("NOT " + NICKNAME) + "?";
static var MENU_CHANGE_PROFILE_HRV = ("NISI " + NICKNAME) + "?";
static var MENU_GAMES_PLAYED_TEXT = "MENU_GAMES_PLAYED_TEXT";
static var MENU_GAMES_PLAYED_TEXT_ENG = "GAMES PLAYED:";
static var MENU_GAMES_PLAYED_TEXT_HRV = "ODIGRANIH IGARA:";
static var PLAY_AT_REBUBBLED_COM = "PLAY_AT_REBUBBLED_COM";
static var PLAY_AT_REBUBBLED_COM_ENG = "HIGHSCORES AVAILABLE ON WWW.REBUBBLED.COM";
static var PLAY_AT_REBUBBLED_COM_HRV = "IGRAJ SA REZULTATIMA NA WWW.REBUBBLED.COM";
static var MENU_TWOP_COOPERATIVE = "MENU_TWOP_COOPERATIVE";
static var MENU_TWOP_COOPERATIVE_ENG = "COOPERATIVE";
static var MENU_TWOP_COOPERATIVE_HRV = "UDRU\u017DENO";
static var MENU_TWOP_BATTLE = "MENU_TWOP_BATTLE";
static var MENU_TWOP_BATTLE_ENG = "BATTLE";
static var MENU_TWOP_BATTLE_HRV = "BORBA";
static var MENU_TWOP_STAYIN = "MENU_TWOP_STAYIN";
static var MENU_TWOP_STAYIN_ENG = "STAYING ALIVE";
static var MENU_TWOP_STAYIN_HRV = "OSTANITE \u017DIVI";
static var MENU_TWOP_PLAYER_1 = "MENU_TWOP_PLAYER_1";
static var MENU_TWOP_PLAYER_1_ENG = "PLAYER 1";
static var MENU_TWOP_PLAYER_1_HRV = "IGRA\u010C 1";
static var MENU_TWOP_PLAYER_2 = "MENU_TWOP_PLAYER_2";
static var MENU_TWOP_PLAYER_2_ENG = "PLAYER 2";
static var MENU_TWOP_PLAYER_2_HRV = "IGRA\u010C 2";
static var MENU_TWOP_CHANGE_COLOR = "MENU_TWOP_CHANGE_COLOR";
static var MENU_TWOP_CHANGE_COLOR_ENG = "CHANGE COLOR";
static var MENU_TWOP_CHANGE_COLOR_HRV = "PROMJENI BOJU";
static var MENU_TWOP_CHANGE_KEYS = "MENU_TWOP_CHANGE_KEYS";
static var MENU_TWOP_CHANGE_KEYS_ENG = "CHANGE KEYS";
static var MENU_TWOP_CHANGE_KEYS_HRV = "PROMJENI TIPKE";
static var MENU_CREATE_NICKNAME_HI = "MENU_CREATE_NICKNAME_HI";
static var MENU_CREATE_NICKNAME_HI_ENG = "HI!";
static var MENU_CREATE_NICKNAME_HI_HRV = "BOK!";
static var MENU_CREATE_NICKNAME_ENTER_NICK = "MENU_CREATE_NICKNAME_ENTER_NICK";
static var MENU_CREATE_NICKNAME_ENTER_NICK_ENG = "ENTER YOUR NICKNAME:";
static var MENU_CREATE_NICKNAME_ENTER_NICK_HRV = "UPI\u0160I SVOJ NADIMAK:";
static var MENU_SELECT_LEVEL_INFO = "MENU_SELECT_LEVEL_INFO";
static var MENU_SELECT_LEVEL_INFO_ENG = "START FROM WHICH LEVEL?";
static var MENU_SELECT_LEVEL_INFO_HRV = "PO\u010CETI SA KOJEG NIVOA?";
static var MENU_HIGHSCORE_TITLE_WEEK = "MENU_HIGHSCORE_TITLE_WEEK";
static var MENU_HIGHSCORE_TITLE_WEEK_ENG = "10 DAY HIGHSCORE LIST";
static var MENU_HIGHSCORE_TITLE_WEEK_HRV = "10 DNEVNI POPIS NAJBOLJIH IGRA\u010CA";
static var MENU_HIGHSCORE_TITLE_MONTH = "MENU_HIGHSCORE_TITLE_MONTH";
static var MENU_HIGHSCORE_TITLE_MONTH_ENG = "MONTHLY HIGHSCORE LIST";
static var MENU_HIGHSCORE_TITLE_MONTH_HRV = "MJESE\u010CNI POPIS NAJBOLJIH IGRA\u010CA";
static var MENU_HIGHSCORE_YOURSCORE_TEXT_WEEK = "MENU_HIGHSCORE_YOURSCORE_TEXT_WEEK";
static var MENU_HIGHSCORE_YOURSCORE_TEXT_WEEK_ENG = "Your 10 day best score:";
static var MENU_HIGHSCORE_YOURSCORE_TEXT_WEEK_HRV = "Tvoj najbolji rezultat u 10 dana:";
static var MENU_HIGHSCORE_YOURSCORE_TEXT_MONTH = "MENU_HIGHSCORE_YOURSCORE_TEXT_MONTH";
static var MENU_HIGHSCORE_YOURSCORE_TEXT_MONTH_ENG = "Your this month's best score:";
static var MENU_HIGHSCORE_YOURSCORE_TEXT_MONTH_HRV = "Tvoj najbolji rezultat ovog mjeseca:";
static var MENU_HIGHSCORE_NO_SCORE_YET_WEEK = "MENU_HIGHSCORE_NO_SCORE_YET_WEEK";
static var MENU_HIGHSCORE_NO_SCORE_YET_WEEK_ENG = "You haven't played in this 10 day period yet";
static var MENU_HIGHSCORE_NO_SCORE_YET_WEEK_HRV = "Jo\u0161 nema\u0161 rezultat za ovaj period od 10 dana";
static var MENU_HIGHSCORE_NO_SCORE_YET_MONTH = "MENU_HIGHSCORE_NO_SCORE_YET_MONTH";
static var MENU_HIGHSCORE_NO_SCORE_YET_MONTH_ENG = "You haven't played this month yet";
static var MENU_HIGHSCORE_NO_SCORE_YET_MONTH_HRV = "Jo\u0161 nema\u0161 rezultat za ovaj mjesec";
static var HIGH_SINGLE = "HIGH_SINGLE";
static var HIGH_SINGLE_ENG = "1 player";
static var HIGH_SINGLE_HRV = "1 igra\u010D";
static var HIGH_SA1 = "HIGH_SA1";
static var HIGH_SA1_ENG = "Stayin. 1PL";
static var HIGH_SA1_HRV = "Pre\u017Eivi 1 ig.";
static var HIGH_2PL = "HIGH_2PL";
static var HIGH_2PL_ENG = "Cooperative";
static var HIGH_2PL_HRV = "Zajedno";
static var HIGH_SA2 = "HIGH_SA2";
static var HIGH_SA2_ENG = "Stayin. 2PL";
static var HIGH_SA2_HRV = "Pre\u017Eivi 2 igr.";
static var HIGH_WEEKLY = "HIGH_WEEKLY";
static var HIGH_WEEKLY_ENG = "10 DAY SCORES";
static var HIGH_WEEKLY_HRV = "10 DNEVNI REZULTATI";
static var HIGH_MONTHLY = "HIGH_MONTHLY";
static var HIGH_MONTHLY_ENG = "MONTHLY SCORES";
static var HIGH_MONTHLY_HRV = "Mjese\u010Dni rezultati";
static var HIGH_OFFLINE_TITLE = "HIGH_OFFLINE_TITLE";
static var HIGH_OFFLINE_TITLE_ENG = "HIGHSCORES";
static var HIGH_OFFLINE_TITLE_HRV = "NAJBOLJI REZULTATI";
static var MENU_ERROR_CONNECTING_TO_PHP = "MENU_ERROR_CONNECTING_TO_PHP";
static var MENU_ERROR_CONNECTING_TO_PHP_ENG = "ERROR WHILE CONNECTING TO SERVER!";
static var MENU_ERROR_CONNECTING_TO_PHP_HRV = "GRE\u0160KA KOD SPAJANJA NA SERVER!";
static var MENU_PROFILE_MAN_NICK1_MSG = "MENU_PROFILE_MAN_NICK1_MSG";
static var MENU_PROFILE_MAN_NICK2_MSG = "MENU_PROFILE_MAN_NICK2_MSG";
static var MENU_PROFILE_MAN_NICK3_MSG = "MENU_PROFILE_MAN_NICK3_MSG";
static var MENU_PROFILE_MAN_NICK4_MSG = "MENU_PROFILE_MAN_NICK4_MSG";
static var MENU_PROFILE_MAN_NICK5_MSG = "MENU_PROFILE_MAN_NICK5_MSG";
static var MENU_PROFILE_MAN_NICK6_MSG = "MENU_PROFILE_MAN_NICK6_MSG";
static var MENU_PROFILE_MAN_NICK7_MSG = "MENU_PROFILE_MAN_NICK7_MSG";
static var MENU_PROFILE_MAN_NICK8_MSG = "MENU_PROFILE_MAN_NICK8_MSG";
static var MENU_PROFILE_MAN_NICK9_MSG = "MENU_PROFILE_MAN_NICK9_MSG";
static var MENU_PROFILE_MAN_NICK1_MSG_ENG = "";
static var MENU_PROFILE_MAN_NICK2_MSG_ENG = "";
static var MENU_PROFILE_MAN_NICK3_MSG_ENG = "";
static var MENU_PROFILE_MAN_NICK4_MSG_ENG = "";
static var MENU_PROFILE_MAN_NICK5_MSG_ENG = "";
static var MENU_PROFILE_MAN_NICK6_MSG_ENG = "";
static var MENU_PROFILE_MAN_NICK7_MSG_ENG = "";
static var MENU_PROFILE_MAN_NICK8_MSG_ENG = "";
static var MENU_PROFILE_MAN_NICK9_MSG_ENG = "";
static var MENU_PROFILE_MAN_NICK1_MSG_HRV = "";
static var MENU_PROFILE_MAN_NICK2_MSG_HRV = "";
static var MENU_PROFILE_MAN_NICK3_MSG_HRV = "";
static var MENU_PROFILE_MAN_NICK4_MSG_HRV = "";
static var MENU_PROFILE_MAN_NICK5_MSG_HRV = "";
static var MENU_PROFILE_MAN_NICK6_MSG_HRV = "";
static var MENU_PROFILE_MAN_NICK7_MSG_HRV = "";
static var MENU_PROFILE_MAN_NICK8_MSG_HRV = "";
static var MENU_PROFILE_MAN_NICK9_MSG_HRV = "";
static var MENU_PROFILE_MAN_DEL1_MSG = "";
static var MENU_PROFILE_MAN_DEL_MSG_PROTOTYPE_ENG = "X";
static var MENU_PROFILE_MAN_DEL_MSG_PROTOTYPE_HRV = "X";
static var MENU_PROFILE_MAN_DEL1_MSG_ENG = MENU_PROFILE_MAN_DEL_MSG_PROTOTYPE_ENG;
static var MENU_PROFILE_MAN_DEL2_MSG_ENG = MENU_PROFILE_MAN_DEL_MSG_PROTOTYPE_ENG;
static var MENU_PROFILE_MAN_DEL3_MSG_ENG = MENU_PROFILE_MAN_DEL_MSG_PROTOTYPE_ENG;
static var MENU_PROFILE_MAN_DEL4_MSG_ENG = MENU_PROFILE_MAN_DEL_MSG_PROTOTYPE_ENG;
static var MENU_PROFILE_MAN_DEL5_MSG_ENG = MENU_PROFILE_MAN_DEL_MSG_PROTOTYPE_ENG;
static var MENU_PROFILE_MAN_DEL6_MSG_ENG = MENU_PROFILE_MAN_DEL_MSG_PROTOTYPE_ENG;
static var MENU_PROFILE_MAN_DEL7_MSG_ENG = MENU_PROFILE_MAN_DEL_MSG_PROTOTYPE_ENG;
static var MENU_PROFILE_MAN_DEL8_MSG_ENG = MENU_PROFILE_MAN_DEL_MSG_PROTOTYPE_ENG;
static var MENU_PROFILE_MAN_DEL9_MSG_ENG = MENU_PROFILE_MAN_DEL_MSG_PROTOTYPE_ENG;
static var MENU_PROFILE_MAN_DEL1_MSG_HRV = MENU_PROFILE_MAN_DEL_MSG_PROTOTYPE_HRV;
static var MENU_PROFILE_MAN_DEL2_MSG_HRV = MENU_PROFILE_MAN_DEL_MSG_PROTOTYPE_HRV;
static var MENU_PROFILE_MAN_DEL3_MSG_HRV = MENU_PROFILE_MAN_DEL_MSG_PROTOTYPE_HRV;
static var MENU_PROFILE_MAN_DEL4_MSG_HRV = MENU_PROFILE_MAN_DEL_MSG_PROTOTYPE_HRV;
static var MENU_PROFILE_MAN_DEL5_MSG_HRV = MENU_PROFILE_MAN_DEL_MSG_PROTOTYPE_HRV;
static var MENU_PROFILE_MAN_DEL6_MSG_HRV = MENU_PROFILE_MAN_DEL_MSG_PROTOTYPE_HRV;
static var MENU_PROFILE_MAN_DEL7_MSG_HRV = MENU_PROFILE_MAN_DEL_MSG_PROTOTYPE_HRV;
static var MENU_PROFILE_MAN_DEL8_MSG_HRV = MENU_PROFILE_MAN_DEL_MSG_PROTOTYPE_HRV;
static var MENU_PROFILE_MAN_DEL9_MSG_HRV = MENU_PROFILE_MAN_DEL_MSG_PROTOTYPE_HRV;
static var MENU_PROFILE_MAN_CREATE_NICK_MSG = "MENU_PROFILE_MAN_CREATE_NICK_MSG";
static var MENU_PROFILE_MAN_CREATE_NICK_MSG_ENG = "Create a";
static var MENU_PROFILE_MAN_CREATE_NICK_MSG_HRV = "Napravi";
static var MENU_PROFILE_MAN_SELECT_PROF_MSG = "MENU_PROFILE_MAN_SELECT_PROF_MSG";
static var MENU_PROFILE_MAN_SELECT_PROF_MSG_ENG = "Select a nickname from the list:";
static var MENU_PROFILE_MAN_SELECT_PROF_MSG_HRV = "Izaberite nadimak sa popisa:";
static var MENU_PROFILE_MAN_CREATE_NEW_MSG = "MENU_PROFILE_MAN_CREATE_NEW_MSG";
static var MENU_PROFILE_MAN_CREATE_NEW_MSG_ENG = "New nickname";
static var MENU_PROFILE_MAN_CREATE_NEW_MSG_HRV = "Novi nadimak";
static var MENU_PROFILE_MAN_BACK_MSG = "MENU_PROFILE_MAN_BACK_MSG";
static var MENU_PROFILE_MAN_BACK_MSG_ENG = "BACK";
static var MENU_PROFILE_MAN_BACK_MSG_HRV = "NAZAD";
static var MENU_POPUP_CLASSIC_BACK = "MENU_POPUP_CLASSIC_BACK";
static var MENU_POPUP_CLASSIC_BACK_ENG = "BACK";
static var MENU_POPUP_CLASSIC_BACK_HRV = "ZATVORI";
static var MENU_POPUP_CLASSIC_OK = "MENU_POPUP_CLASSIC_OK";
static var MENU_POPUP_CLASSIC_OK_ENG = "OK";
static var MENU_POPUP_CLASSIC_OK_HRV = "OK";
static var MENU_LOADING_QUERY_WAIT = "MENU_LOADING_QUERY_WAIT";
static var MENU_LOADING_QUERY_WAIT_ENG = "\n\nJust a sec... ";
static var MENU_LOADING_QUERY_WAIT_HRV = "\n\nSam' malo... ";
static var GIVE_ME_COOKIE_SPACE_MSG = "GIVE_ME_COOKIE_SPACE_MSG";
static var GIVE_ME_COOKIE_SPACE_MSG_ENG = "Now you won't be able to play. You should right-click >HERE< :), click on 'Settings' and 'Allow storage'";
static var GIVE_ME_COOKIE_SPACE_MSG_HRV = "Sad ne\u0107e\u0161 mo\u0107i igrati... Bolje ti je da klikne\u0161 desnom tipkom >OVDJE< :)\n Klikni na 'Settings', zatim 'Alow storage'";
static var NOT_ENOUGH_CHARS_IN_NICK_MSG = "NOT_ENOUGH_CHARS_IN_NICK_MSG";
static var NOT_ENOUGH_CHARS_IN_NICK_MSG_ENG = ("Nickname must have at least " + MenuClass.MIN_NUM_OF_CHARS_IN_NICK) + " characters!";
static var NOT_ENOUGH_CHARS_IN_NICK_MSG_HRV = ("Nadimak mora imati bar " + MenuClass.MIN_NUM_OF_CHARS_IN_NICK) + " znakova!";
static var MAX_NUM_OF_PROFILES_MSG = "MAX_NUM_OF_PROFILES_MSG";
static var MAX_NUM_OF_PROFILES_MSG_ENG = "There is no room for a new nickname, delete one first!";
static var MAX_NUM_OF_PROFILES_MSG_HRV = "Nema mjesta za novi nadimak, prvo pobri\u0161i jedan stari!";
static var ARE_YOU_SURE_DELETEPROFILE_MSG = "ARE_YOU_SURE_DELETEPROFILE_MSG";
static var ARE_YOU_SURE_DELETEPROFILE_MSG_ENG = "Are you sure you want to delete this nickname?";
static var ARE_YOU_SURE_DELETEPROFILE_MSG_HRV = "Da li ste sigurni da \u017Eelite pobrisati ovaj nadimak?";
static var ACTIVATE_A_PROFILE_FIRST_MSG = "ACTIVATE_A_PROFILE_FIRST_MSG";
static var ACTIVATE_A_PROFILE_FIRST_MSG_ENG = "First select a nickname with wich you want to play, or create a new one!";
static var ACTIVATE_A_PROFILE_FIRST_MSG_HRV = "Prvo izaberite nadimak s kojim \u017Eelite igrati ili napravite novi!";
static var PLEASE_ENTER_P2_NICK_MSG = "PLEASE_ENTER_P2_NICK_MSG";
static var PLEASE_ENTER_P2_NICK_MSG_ENG = "Enter a nickname for player 2!";
static var PLEASE_ENTER_P2_NICK_MSG_HRV = "Unesite nadimak za igra\u010Da 2!";
static var TWOP_MODIFY_KEYS_MSG = "TWOP_MODIFY_KEYS_MSG";
static var TWOP_MODIFY_KEYS_MSG_ENG = "Press a new key...";
static var TWOP_MODIFY_KEYS_MSG_HRV = "Kliknite novi gumb...";
static var EXIT_WITHOUT_SELECTING_PROFILE_MSG = "EXIT_WITHOUT_SELECTING_PROFILE_MSG";
static var EXIT_WITHOUT_SELECTING_PROFILE_MSG_ENG = "On your last exit you didn't select a nickname. Select a nickname from the list or create a new one!";
static var EXIT_WITHOUT_SELECTING_PROFILE_MSG_HRV = "Zadnji puta kada ste napustili igru niste izabrali nadimak. Izaberite nadimak sa liste ili napravite novi!";
static var REALLY_QUIT_MSG = "REALLY_QUIT_MSG";
static var REALLY_QUIT_MSG_ENG = "Are you sure you want to quit?";
static var REALLY_QUIT_MSG_HRV = "Sigurno \u017Eelite napustiti igru?";
static var MENU_HELP_MOVIES = "MENU_HELP_MOVIES";
static var MENU_HELP_MOVIES_ENG = "HELP MOVIES";
static var MENU_HELP_MOVIES_HRV = "VIDEO UPUTE";
static var MENU_HELP_MOVIES_BASICS = "MENU_HELP_MOVIES_BASICS";
static var MENU_HELP_MOVIES_BASICS_ENG = "BASICS OF THE GAME";
static var MENU_HELP_MOVIES_BASICS_HRV = "OSNOVE IGRANJA";
static var MENU_HELP_MOVIES_BATTLE_MODE = "MENU_HELP_MOVIES_BATTLE_MODE";
static var MENU_HELP_MOVIES_BATTLE_MODE_ENG = "2P BATTLE MODE (soon...)";
static var MENU_HELP_MOVIES_BATTLE_MODE_HRV = "2 IGRA\u010CA - BORBA";
static var MENU_HELP_ITEMS = "MENU_HELP_ITEMS";
static var MENU_HELP_ITEMS_ENG = "ITEMS";
static var MENU_HELP_ITEMS_HRV = "DODACI";
static var HELP_ITEMS_500 = "HELP_ITEMS_500";
static var HELP_ITEMS_500_ENG = "500 points";
static var HELP_ITEMS_500_HRV = "500 bodova";
static var HELP_ITEMS_1000 = "HELP_ITEMS_1000";
static var HELP_ITEMS_1000_ENG = "1000 points";
static var HELP_ITEMS_1000_HRV = "1000 bodova";
static var HELP_ITEMS_1500 = "HELP_ITEMS_1500";
static var HELP_ITEMS_1500_ENG = "1500 points";
static var HELP_ITEMS_1500_HRV = "1500 bodova";
static var HELP_ITEMS_DYNAMITE = "HELP_ITEMS_DYNAMITE";
static var HELP_ITEMS_DYNAMITE_ENG = "dynamite";
static var HELP_ITEMS_DYNAMITE_HRV = "dinamit";
static var HELP_ITEMS_DYNAMITE_SUB = "HELP_ITEMS_DYNAMITE_SUB";
static var HELP_ITEMS_DYNAMITE_SUB_ENG = "pops all bubbles to smallest size";
static var HELP_ITEMS_DYNAMITE_SUB_HRV = "uni\u0161tava sve balone do najmanjeg";
static var HELP_ITEMS_EXTRA_LIFE = "HELP_ITEMS_EXTRA_LIFE";
static var HELP_ITEMS_EXTRA_LIFE_ENG = "extra life";
static var HELP_ITEMS_EXTRA_LIFE_HRV = "dodatni \u017Eivot";
static var HELP_ITEMS_FREEZER = "HELP_ITEMS_FREEZER";
static var HELP_ITEMS_FREEZER_ENG = "freezer";
static var HELP_ITEMS_FREEZER_HRV = "zale\u0111iva\u010D";
static var HELP_ITEMS_FREEZER_SUB = "HELP_ITEMS_FREEZER_SUB";
static var HELP_ITEMS_FREEZER_SUB_ENG = "stops all bubbles";
static var HELP_ITEMS_FREEZER_SUB_HRV = "zaustavlja sve balone";
static var HELP_ITEMS_SHIELD = "HELP_ITEMS_SHIELD";
static var HELP_ITEMS_SHIELD_ENG = "shield";
static var HELP_ITEMS_SHIELD_HRV = "\u0161tit";
static var HELP_ITEMS_SHIELD_SUB = "HELP_ITEMS_SHIELD_SUB";
static var HELP_ITEMS_SHIELD_SUB_ENG = "invincibility until hit by bubble";
static var HELP_ITEMS_SHIELD_SUB_HRV = "neranjivost dok te ne pogodi balon";
static var HELP_ITEMS_SHIELD_INVINC = "HELP_ITEMS_SHIELD_INVINC";
static var HELP_ITEMS_SHIELD_INVINC_ENG = "shield, invincible";
static var HELP_ITEMS_SHIELD_INVINC_HRV = "\u0161tit, neranjivost";
static var HELP_ITEMS_SHIELD_INVINC_SUB = "HELP_ITEMS_SHIELD_INVINC_SUB";
static var HELP_ITEMS_SHIELD_INVINC_SUB_ENG = "invincibility, lasts 8 seconds";
static var HELP_ITEMS_SHIELD_INVINC_SUB_HRV = "neranjivost, traje 8 sekundi";
static var HELP_ITEMS_BOOTS = "HELP_ITEMS_BOOTS";
static var HELP_ITEMS_BOOTS_ENG = "boots";
static var HELP_ITEMS_BOOTS_HRV = "\u010Dizmice";
static var HELP_ITEMS_BOOTS_SUB = "HELP_ITEMS_BOOTS_SUB";
static var HELP_ITEMS_BOOTS_SUB_ENG = "faster movement";
static var HELP_ITEMS_BOOTS_SUB_HRV = "br\u017Ee kretanje";
static var HELP_ITEMS_SLOMO = "HELP_ITEMS_SLOMO";
static var HELP_ITEMS_SLOMO_ENG = "slow motion";
static var HELP_ITEMS_SLOMO_HRV = "uspori micanje";
static var HELP_ITEMS_SLOMO_SUB = "HELP_ITEMS_SLOMO_SUB";
static var HELP_ITEMS_SLOMO_SUB_ENG = "slows down bubbles";
static var HELP_ITEMS_SLOMO_SUB_HRV = "usporava balone";
static var HELP_ITEMS_EXTRATIME = "HELP_ITEMS_EXTRATIME";
static var HELP_ITEMS_EXTRATIME_ENG = "extra time";
static var HELP_ITEMS_EXTRATIME_HRV = "dodatno vrijeme";
static var HELP_ITEMS_DOUBLE_HARP = "HELP_ITEMS_DOUBLE_HARP";
static var HELP_ITEMS_DOUBLE_HARP_ENG = "double harpoon weapon";
static var HELP_ITEMS_DOUBLE_HARP_HRV = "dvostruki harpun, oru\u017Eje";
static var HELP_ITEMS_ICE_WINE = "HELP_ITEMS_ICE_WINE";
static var HELP_ITEMS_ICE_WINE_ENG = "ice vine weapon";
static var HELP_ITEMS_ICE_WINE_HRV = "ledena stabljika, oru\u017Eje";
static var HELP_ITEMS_FLOWER = "HELP_ITEMS_FLOWER";
static var HELP_ITEMS_FLOWER_ENG = "flower weapon";
static var HELP_ITEMS_FLOWER_HRV = "cvijet, oru\u017Eje";
static var HELP_ITEMS_MEDAL = "HELP_ITEMS_MEDAL";
static var HELP_ITEMS_MEDAL_ENG = "medal";
static var HELP_ITEMS_MEDAL_HRV = "medalja";
static var HELP_ITEMS_MEDAL_SUB = "HELP_ITEMS_MEDAL_SUB";
static var HELP_ITEMS_MEDAL_SUB_ENG = "pops all bubbles";
static var HELP_ITEMS_MEDAL_SUB_HRV = "uni\u0161tava sve balone";
static var SETUP_CONTROLS = "SETUP_CONTROLS";
static var SETUP_CONTROLS_ENG = "CHANGE YOUR KEYS";
static var SETUP_CONTROLS_HRV = "PROMJENI TIPKE";
static var SOUND_EFFECTS = "SOUND_EFFECTS";
static var SOUND_EFFECTS_ENG = "SOUND EFFECTS";
static var SOUND_EFFECTS_HRV = "ZVU\u010CNI EFEKTI";
static var SOUND_EFFECTS_BTN_ON = "SOUND_EFFECTS_BTN_ON";
static var SOUND_EFFECTS_BTN_ON_ENG = "on";
static var SOUND_EFFECTS_BTN_ON_HRV = "da";
static var SOUND_EFFECTS_BTN_OFF = "SOUND_EFFECTS_BTN_OFF";
static var SOUND_EFFECTS_BTN_OFF_ENG = "off";
static var SOUND_EFFECTS_BTN_OFF_HRV = "ne";
static var FULL_SCREEN = "FULL_SCREEN";
static var FULL_SCREEN_ENG = "FULL SCREEN:";
static var FULL_SCREEN_HRV = "CJELI EKRAN";
static var FULL_SCREEN_BTN_ON = "FULL_SCREEN_BTN_ON";
static var FULL_SCREEN_BTN_ON_ENG = "on";
static var FULL_SCREEN_BTN_ON_HRV = "da";
static var FULL_SCREEN_BTN_OFF = "FULL_SCREEN_BTN_OFF";
static var FULL_SCREEN_BTN_OFF_ENG = "off";
static var FULL_SCREEN_BTN_OFF_HRV = "ne";
static var SERVER_MESSAGE_WRONG_VERSION = "SERVER_MESSAGE_WRONG_VERSION";
static var SERVER_MESSAGE_WRONG_VERSION_ENG = ("You are using old version of the game. To load the new one, please empty your browser cache and reload the page\n(" + GAME_URL) + ")";
static var SERVER_MESSAGE_WRONG_VERSION_HRV = ("Koristi\u0161 staru verziju igrice. Isprazni 'cache' svojeg 'browsera' i ponovo u\u010Ditaj stranicu\n(" + GAME_URL) + ")";
static var NO_FULL_SCREEN = "NO_FULL_SCREEN";
static var NO_FULL_SCREEN_ENG = "Please play the game from the following url: " + GAME_URL;
static var NO_FULL_SCREEN_HRV = "Igru je mogu\u0107e igrati samo s ove adrese: " + GAME_URL;
static var GOTO_REBUBBLED = "GOTO_REBUBBLED";
static var GOTO_REBUBBLED_ENG = "VISIT REBUBBLED.COM";
static var GOTO_REBUBBLED_HRV = "POSJETI REBUBBLED.COM";
}
Symbol 1042 MovieClip [__Packages.MyString] Frame 0
class MyString
{
function MyString () {
}
static function replace(input, needle, repl) {
var _local4 = "";
var _local1 = 0;
while (_local1 <= input.length) {
if (input.substr(_local1, needle.length) == needle) {
_local4 = _local4 + repl;
_local1 = _local1 + (needle.length - 1);
} else {
_local4 = _local4 + input.charAt(_local1);
}
_local1++;
}
return(_local4);
}
static function stringToObject(input, separator) {
var _local7 = new Object();
var _local1 = input;
var _local3 = "";
while (_local1.length > 0) {
var _local5 = _local1.indexOf(separator) + separator.length;
var _local4 = _local1.indexOf(separator, _local5);
if (_local4 == -1) {
trace("KRAJ!");
break;
}
var _local2 = _local1.substring(_local5, _local4);
if (_local3 == "") {
_local3 = _local2;
} else {
if (_local2.substr(0, 6) == "NUMBER") {
_local7[_local3] = Number(_local2.substr(6));
} else {
_local7[_local3] = _local2;
}
_local3 = "";
}
_local1 = _local1.substring(_local4);
}
return(_local7);
}
}
Symbol 1043 MovieClip [__Packages.MyCookie] Frame 0
class MyCookie
{
static var cookieObject, PATH_SEPARATOR, offlinePath, encrypt_key;
function MyCookie () {
}
static function init() {
if (MenuClass.igramOnline()) {
TREJS.THIS("Igram online..");
cookieObject = SharedObject.getLocal(onlineCookieName, "/");
} else {
TREJS.THIS("Igram offline..");
if (System.capabilities.os.toLowerCase().substr(0, 3) == "win") {
PATH_SEPARATOR = "\\";
} else {
PATH_SEPARATOR = mdm.Application.path.substr(-1);
}
offlinePath = mdm.Application.path;
TREJS.THIS("Current offline dir:" + offlinePath);
encrypt_key = mdm.Application.getSecureVar("encrypt_key");
}
}
static function clearAllCookies(are_you_sure) {
if (are_you_sure) {
cookieObject.clear();
}
}
static function getOnlineCookieObject() {
return(cookieObject.data);
}
static function writeOnlineCookie() {
return(cookieObject.flush());
}
static function encrypt(val) {
if (typeof(val) == "number") {
return("NUMBER" + val);
}
return(val);
}
static function decrypt(val) {
var _local1 = val;
if (_local1.substr(0, 6) == "NUMBER") {
return(Number(_local1.substr(6)));
}
return(_local1);
}
static function getProfilePath() {
return((((offlinePath + OFF_PROFILES) + PATH_SEPARATOR) + MenuClass.activeProfileId) + PATH_SEPARATOR);
}
static function createProfileSpace(profileId) {
if (MenuClass.igramOnline()) {
var _local2 = getOnlineCookieObject();
if (_local2["profile" + profileId] != null) {
TREJS.THIS(("DEBUG, MyCookie.createProfileSpace(), profile" + profileId) + " ve\u00C4\u2021 postoji!!!");
return(false);
}
_local2["profile" + profileId] = new Object();
if (!writeOnlineCookie()) {
return(false);
}
return(true);
}
mdm.FileSystem.makeFolder((((offlinePath + OFF_PROFILES) + PATH_SEPARATOR) + "profile") + profileId);
return(true);
}
static function deleteProfileSpace(profileId) {
if (MenuClass.igramOnline()) {
var _local2 = getOnlineCookieObject();
if (_local2[profileId] == null) {
TREJS.THIS(("DEBUG, MyCookie.deleteProfileSpace(), profile: " + profileId) + " NE POSTOJI!!");
return(false);
}
delete _local2[profileId];
if (!writeOnlineCookie()) {
return(false);
}
return(true);
}
mdm.FileSystem.deleteFolder(((offlinePath + OFF_PROFILES) + PATH_SEPARATOR) + profileId, "noask");
return(true);
}
static function globalCookieObjectExists() {
if (MenuClass.igramOnline()) {
var _local1 = getOnlineCookieObject();
if (_local1.globalCookie != null) {
return(true);
}
return(false);
}
return(mdm.FileSystem.folderExists(offlinePath + OFF_GLOB_OBJ));
}
static function createGlobalCookieObject() {
if (MenuClass.igramOnline()) {
var _local1 = getOnlineCookieObject();
_local1.globalCookie = new Object();
if (!writeOnlineCookie()) {
return(false);
}
return(true);
}
mdm.FileSystem.makeFolder(offlinePath + OFF_GLOB_OBJ);
mdm.FileSystem.makeFolder(offlinePath + OFF_PROFILES);
return(true);
}
static function setGlobalCookie(cookieName, cookieValue) {
if (MenuClass.igramOnline()) {
var _local3 = getOnlineCookieObject();
_local3.globalCookie[cookieName] = cookieValue;
if (!writeOnlineCookie()) {
TREJS.THIS((("DEBUG, ne mogu napraviti globalni cookie: " + cookieName) + ", ") + cookieValue);
}
} else {
mdm.FileSystem.saveFile(((offlinePath + OFF_GLOB_OBJ) + PATH_SEPARATOR) + cookieName, encrypt(cookieValue));
}
}
static function getGlobalCookie(cookieName) {
if (MenuClass.igramOnline()) {
var _local2 = getOnlineCookieObject();
if (_local2.globalCookie[cookieName] != null) {
return(_local2.globalCookie[cookieName]);
}
return(false);
}
if (!mdm.FileSystem.fileExists(((offlinePath + OFF_GLOB_OBJ) + PATH_SEPARATOR) + cookieName)) {
return(false);
}
return(decrypt(mdm.FileSystem.loadFile(((offlinePath + OFF_GLOB_OBJ) + PATH_SEPARATOR) + cookieName)));
}
static function getListOfProfiles() {
if (MenuClass.igramOnline()) {
var _local3 = getOnlineCookieObject();
var _local6 = new Array();
var _local1 = 1;
while (_local1 <= getGlobalCookie(GLOBAL_PROFILE_COUNTER)) {
if (_local3["profile" + _local1][NICK_NAME] != null) {
_local6.push({nick:_local3["profile" + _local1][NICK_NAME], profileId:"profile" + _local1});
}
_local1++;
}
return(_local6);
}
var _local2 = mdm.FileSystem.getFolderList(offlinePath + OFF_PROFILES);
var _local6 = new Array();
var _local1 = 0;
while (_local1 < _local2.length) {
var _local5 = decrypt(mdm.FileSystem.loadFile(((((offlinePath + OFF_PROFILES) + PATH_SEPARATOR) + _local2[_local1]) + PATH_SEPARATOR) + NICK_NAME));
_local6.push({nick:_local5, profileId:_local2[_local1]});
_local1++;
}
return(_local6);
}
static function getCookie(cookieGroup, cookieName) {
var _local4 = true;
if (cookieName == null) {
cookieName = cookieGroup;
_local4 = false;
}
if (MenuClass.igramOnline()) {
var _local2 = getOnlineCookieObject();
if (!_local4) {
if (_local2[MenuClass.activeProfileId][cookieName] != null) {
return(_local2[MenuClass.activeProfileId][cookieName]);
}
return(false);
}
if (_local2[MenuClass.activeProfileId][cookieGroup] != null) {
if (_local2[MenuClass.activeProfileId][cookieGroup][cookieName] != null) {
return(_local2[MenuClass.activeProfileId][cookieGroup][cookieName]);
}
return(false);
}
return(false);
}
if (!_local4) {
if (mdm.FileSystem.fileExists(getProfilePath() + cookieName)) {
return(decrypt(mdm.FileSystem.loadFile(getProfilePath() + cookieName)));
}
return(false);
}
if (mdm.FileSystem.folderExists(getProfilePath() + cookieGroup)) {
if (mdm.FileSystem.fileExists(((getProfilePath() + cookieGroup) + PATH_SEPARATOR) + cookieName)) {
return(decrypt(mdm.FileSystem.loadFile(((getProfilePath() + cookieGroup) + PATH_SEPARATOR) + cookieName)));
}
return(false);
}
return(false);
}
static function setCookie(cookieGroup, cookieName, cookieValue) {
var _local5 = true;
if (cookieValue == null) {
cookieValue = cookieName;
cookieName = cookieGroup;
_local5 = false;
}
if (MenuClass.igramOnline()) {
var _local4 = getOnlineCookieObject();
if (!_local5) {
_local4[MenuClass.activeProfileId][cookieName] = cookieValue;
} else {
if (_local4[MenuClass.activeProfileId][cookieGroup] == null) {
_local4[MenuClass.activeProfileId][cookieGroup] = new Object();
}
_local4[MenuClass.activeProfileId][cookieGroup][cookieName] = cookieValue;
}
if (!writeOnlineCookie()) {
TREJS.THIS((((("NE mogu zapisati cookie:" + cookieGroup) + ", ") + cookieName) + ", ") + cookieValue);
}
} else if (!_local5) {
mdm.FileSystem.saveFile(getProfilePath() + cookieName, encrypt(cookieValue));
} else {
if (mdm.FileSystem.folderExists(getProfilePath() + cookieGroup) == false) {
mdm.FileSystem.makeFolder(getProfilePath() + cookieGroup);
}
mdm.FileSystem.saveFile(((getProfilePath() + cookieGroup) + PATH_SEPARATOR) + cookieName, encrypt(cookieValue));
}
}
static function deleteCookie(cookieGroup, cookieName) {
var _local3 = true;
if (cookieName == null) {
cookieName = cookieGroup;
_local3 = false;
}
if (MenuClass.igramOnline()) {
var _local2 = getOnlineCookieObject();
if (!_local3) {
delete _local2[MenuClass.activeProfileId][cookieName];
} else {
delete _local2[MenuClass.activeProfileId][cookieGroup][cookieName];
}
if (!writeOnlineCookie()) {
TREJS.THIS((("DEBUG, ne mogu pobrisati online Cookie: " + cookieGroup) + ", ") + cookieName);
}
} else {
TREJS.THIS("******************NISAM NAPRAVIO FUNKCIJU ZA OFFLINE BRISANJE COOKIEA!!!");
}
}
static var onlineCookieName = "bs2profiles";
static var OFF_GLOB_OBJ = "data";
static var OFF_PROFILES = "profiles";
static var FALSE = "ne";
static var TRUE = "da";
static var GLOBAL_NUMOFPROFILES = "GLOBAL_NUMOFPROFILES";
static var GLOBAL_PROFILE_COUNTER = "GLOBAL_PROFILE_COUNTER";
static var GLOBAL_LAST_ACTIVE_PROFILE = "GLOBAL_LAST_ACTIVE_PROFILE";
static var GLOBAL_COOKIE_VERSION = "GLOBAL_COOKIE_VERSION";
static var NICK_NAME = "NICK_NAME";
static var SEND_HIGHSCORE_ONLINE = "SEND_HIGHSCORE_ONLINE";
static var SHOW_COUNTRY_FLAG = "SHOW_COUNTRY_FLAG";
static var MY_COUNTRY = "MY_COUNTRY";
static var UNIQUE_ID = "UNIQUE_ID";
static var FLAGS_TO_CHECK = "FLAGS_TO_CHECK";
static var FLAGS_CHECKED = "FLAGS_CHECKED";
static var FLAG_ALL_LEVELS_ARCADE = "FLAG_ALL_LEVELS_ARCADE";
static var FLAG_ALL_LEVELS_COOP = "FLAG_ALL_LEVELS_COOP";
static var FLAG_ALL_LEVELS_STAYINGALIVE1 = "FLAG_ALL_LEVELS_STAYINGALIVE1";
static var FLAG_ALL_LEVELS_STAYINGALIVE2 = "FLAG_ALL_LEVELS_STAYINGALIVE2";
static var SCORES = "SCORES";
static var OFFLINE_SCORES_SINGLE = "OFFLINE_SCORES_SINGLE";
static var OFFLINE_SCORES_STAYIN1 = "OFFLINE_SCORES_STAYIN1";
static var OFFLINE_SCORES_COOP = "OFFLINE_SCORES_COOP";
static var OFFLINE_SCORES_STAYIN2 = "OFFLINE_SCORES_STAYIN2";
static var ONLINE_SCORES = "ONLINE_SCORES";
static var MAX_LEVEL_ARCADE = "MAX_LEVEL_ARCADE";
static var BEST_ONLINE_ARCADE_SCORE = "BEST_ONLINE_ARCADE_SCORE";
static var BEST_ONLINE_ARCADE_LEVEL = "BEST_ONLINE_ARCADE_LEVEL";
static var BEST_ONLINE_ARCADE_IS_ONLINE = "BEST_ONLINE_ARCADE_IS_ONLINE";
static var MAX_LEVEL_COOP = "MAX_LEVEL_COOP";
static var BEST_ONLINE_COOP_SCORE = "BEST_ONLINE_COOP_SCORE";
static var BEST_ONLINE_COOP_LEVEL = "BEST_ONLINE_COOP_LEVEL";
static var BEST_ONLINE_COOP_IS_ONLINE = "BEST_ONLINE_COOP_IS_ONLINE";
static var MAX_LEVEL_STAYINGALIVE1 = "MAX_LEVEL_STAYINGALIVE1";
static var BEST_ONLINE_STAYINGALIVE1_SCORE = "BEST_ONLINE_STAYINGALIVE1_SCORE";
static var BEST_ONLINE_STAYINGALIVE1_LEVEL = "BEST_ONLINE_STAYINGALIVE1_LEVEL";
static var BEST_ONLINE_STAYINGALIVE1_IS_ONLINE = "BEST_ONLINE_STAYINGALIVE1_IS_ONLINE";
static var MAX_LEVEL_STAYINGALIVE2 = "MAX_LEVEL_STAYINGALIVE2";
static var BEST_ONLINE_STAYINGALIVE2_SCORE = "BEST_ONLINE_STAYINGALIVE2_SCORE";
static var BEST_ONLINE_STAYINGALIVE2_LEVEL = "BEST_ONLINE_STAYINGALIVE2_LEVEL";
static var BEST_ONLINE_STAYINGALIVE2_IS_ONLINE = "BEST_ONLINE_STAYINGALIVE2_IS_ONLINE";
static var SINGLE = "SINGLE";
static var SINGLE_KEY_LEFT = "SINGLE_KEY_LEFT";
static var SINGLE_KEY_RIGHT = "SINGLE_KEY_RIGHT";
static var SINGLE_KEY_UP = "SINGLE_KEY_UP";
static var SINGLE_KEY_DOWN = "SINGLE_KEY_DOWN";
static var SINGLE_KEY_FIRE = "SINGLE_KEY_FIRE";
static var TWOP = "TWOP";
static var TWOP_P2_NICK = "TWOP_P2_NICK";
static var TWOP_P1_COLOR = "TWOP_P1_COLOR";
static var TWOP_P2_COLOR = "TWOP_P2_COLOR";
static var TWOP_P1_KEY_LEFT = "TWOP_P1_KEY_LEFT";
static var TWOP_P1_KEY_RIGHT = "TWOP_P1_KEY_RIGHT";
static var TWOP_P1_KEY_UP = "TWOP_P1_KEY_UP";
static var TWOP_P1_KEY_DOWN = "TWOP_P1_KEY_DOWN";
static var TWOP_P1_KEY_FIRE = "TWOP_P1_KEY_FIRE";
static var TWOP_P2_KEY_LEFT = "TWOP_P2_KEY_LEFT";
static var TWOP_P2_KEY_RIGHT = "TWOP_P2_KEY_RIGHT";
static var TWOP_P2_KEY_UP = "TWOP_P2_KEY_UP";
static var TWOP_P2_KEY_DOWN = "TWOP_P2_KEY_DOWN";
static var TWOP_P2_KEY_FIRE = "TWOP_P2_KEY_FIRE";
static var SOUND_EFFECTS = "SOUND_EFFECTS";
static var FULL_SCREEN = "FULL_SCREEN";
static var ZASTITA = "ZASTITA";
}
Symbol 1044 MovieClip [__Packages.MenuKeyboard] Frame 0
class MenuKeyboard
{
static var keyboard_actve, activeButtonId, hasUsedKeyboard, activeButton, listener_obj;
function MenuKeyboard () {
}
static function activate() {
TREJS.THIS("Activating keyboard lestener...");
if (keyboard_actve != true) {
keyboard_actve = true;
} else {
return(true);
}
activeButtonId = 0;
hasUsedKeyboard = false;
enableKeyboardMenu(true);
}
static function pritisnoGumb() {
if (((((Key.getCode() == 38) || (Key.getCode() == 37)) || (Key.getCode() == 40)) || (Key.getCode() == 39)) || (Key.getCode() == 13)) {
hasUsedKeyboard = true;
}
if ((Key.getCode() == 38) || (Key.getCode() == 37)) {
scrollButton(-1);
} else if ((Key.getCode() == 40) || (Key.getCode() == 39)) {
scrollButton(1);
} else if (Key.getCode() == 13) {
clickButton();
}
}
static function hoverWithMouse(btn) {
if (btn == activeButton) {
return(true);
}
var _local2 = MenuClass.activeLevel;
var _local1 = 0;
while (_local1 < MenuClass.activeLevelButtons[_local2].length) {
if (MenuClass.activeLevelButtons[_local2][_local1] == btn) {
activeButtonId = _local1;
activeButton = btn;
hasUsedKeyboard = false;
return(true);
}
_local1++;
}
}
static function scrollButton(direction) {
activeButton.hitArea_mc.onRollOut();
var _local1 = MenuClass.activeLevel;
if ((hasUsedKeyboard != true) || (((direction == undefined) && (MenuClass.activeLevel == 1)) && (hasUsedKeyboard != true))) {
return(true);
}
var _local4 = activeButtonId;
if (direction === 1) {
_local4 = activeButtonId + 1;
} else if (direction === -1) {
_local4 = activeButtonId - 1;
} else {
_local4 = 0;
}
var _local3 = 0;
while (_local3 < MenuClass.activeLevelButtons[_local1].length) {
if (direction === 1) {
var _local2 = ((_local3 + _local4) + MenuClass.activeLevelButtons[_local1].length) % MenuClass.activeLevelButtons[_local1].length;
} else {
var _local2 = ((_local4 - _local3) + MenuClass.activeLevelButtons[_local1].length) % MenuClass.activeLevelButtons[_local1].length;
}
if (MenuClass.activeLevelButtons[_local1][_local2].isActive && (MenuClass.activeLevelButtons[_local1][_local2].isClickable())) {
activeButtonId = _local2;
activeButton = MenuClass.activeLevelButtons[_local1][_local2];
activeButton.hitArea_mc.onRollOver();
return(true);
}
_local3++;
}
}
static function clickButton() {
activeButton.hitArea_mc.onPress();
}
static function enableKeyboardMenu(flag) {
if (flag) {
Key.removeListener(listener_obj);
listener_obj = new Object();
listener_obj.onKeyDown = pritisnoGumb;
Key.addListener(listener_obj);
} else {
Key.removeListener(listener_obj);
}
}
}
Symbol 1045 MovieClip [__Packages.MyButton] Frame 0
class MyButton extends MovieClip
{
var blurFilter_off, blurFilter_on, gotoAndStop, _parent, myLevel, akcija, _name, hitArea_mc, _visible, tekstPolje, createTextField, _height, tekst_x, tekst_y;
function MyButton () {
super();
blurFilter_off = new flash.filters.GlowFilter(9772551, 1, 2, 2, 5, 3, false, false);
blurFilter_on = new flash.filters.GlowFilter(9772551, 0.5, 2, 2, 5, 3, false, false);
overrideMe();
gotoAndStop(1);
if ((_parent._name == "menu_mc") || (_parent._name == "ingame_interface")) {
myLevel = 1;
} else {
myLevel = _parent.level;
}
if (akcija == undefined) {
akcija = null;
}
writeLabel(Msg.getMsg(_name, "BUTTON_INSTANCE"));
MenuClass.activeLevelButtons[myLevel].push(this);
MenuKeyboard.scrollButton();
hitArea_mc.useHandCursor = false;
hitArea_mc.onRollOver = function () {
if (this._parent.isClickable()) {
MenuKeyboard.hoverWithMouse(this._parent);
this._parent.gotoAndStop(2);
this._parent.tekstPolje.filters = [this._parent.blurFilter_on];
this._parent.tekstPolje._x = this.tekst_x + 1;
this._parent.tekstPolje._y = this.tekst_y + 1;
this._parent.rollOverAddOn();
}
};
hitArea_mc.onRollOut = function () {
if (this._parent.isClickable()) {
this._parent.gotoAndStop(1);
this._parent.tekstPolje.filters = [this._parent.blurFilter_off];
this._parent.tekstPolje._x = this.tekst_x;
this._parent.tekstPolje._y = this.tekst_y;
this._parent.rollOutAddOn();
}
};
hitArea_mc.onPress = function () {
if (this._parent.isClickable()) {
MenuKeyboard.scrollButton(this._parent);
this.onRollOut();
this._parent.akcija();
}
};
}
function isClickable() {
if ((isActive && (_visible)) && ((myLevel == MenuClass.activeLevel) || (_alwaysActive))) {
return(true);
}
return(false);
}
function overrideMe() {
}
function writeLabel(txt_lbl) {
tekstPolje = createTextField("txtField", 3, txt_create_x, 0, txt_full_width, txt_height);
tekstPolje.text = txt_lbl;
tekstPolje.embedFonts = true;
tekstPolje.selectable = false;
tekstPolje.autoSize = "center";
var _local2 = new TextFormat();
_local2.font = "menu font";
_local2.size = 32;
_local2.color = 16705792 /* 0xFEE900 */;
_local2.align = "center";
tekstPolje.setTextFormat(_local2);
if (tekstPolje._width > txt_width) {
var _local3 = false;
while (!_local3) {
_local2.size = _local2.size - 1;
tekstPolje.setTextFormat(_local2);
if (tekstPolje._width <= txt_width) {
_local3 = true;
}
}
}
tekstPolje._y = ((_height / 2) - (tekstPolje._height / 2)) - (txt_offset_y / 2);
tekstPolje.filters = [blurFilter_off];
tekst_x = tekstPolje._x;
tekst_y = tekstPolje._y;
}
function alwaysActive() {
_alwaysActive = true;
}
function deactivate() {
isActive = false;
}
function activate() {
isActive = true;
}
function sendNewQuery(query_url, query_obj) {
SendQuery.newQuery(query_url, query_obj, this);
}
var enabled = true;
var txt_create_x = 0;
var txt_offset_y = 10;
var txt_full_width = 200;
var txt_width = 185;
var txt_height = 29;
var _alwaysActive = false;
var isActive = true;
var isSendingQuery = false;
}
Symbol 1046 MovieClip [__Packages.SendQuery] Frame 0
class SendQuery
{
static var sendQueryStack, sendingQuery, sendVars;
function SendQuery () {
}
static function newQuery(query_url, vars, varSender) {
if (sendQueryStack == undefined) {
sendQueryStack = new Array();
}
if (sendingQuery == undefined) {
sendingQuery = false;
}
if (varSender.isSendingQuery == true) {
TREJS.THIS(((((((("DEBUG! Gumb: [" + varSender) + "] ve\u00C4\u2021 \u0139\u02C7alje query, ne mogu poslati jo\u0139\u02C7 jedan [") + query_url) + ", ") + vars) + ", ") + varSender) + "]");
} else {
varSender.isSendingQuery = true;
}
sendQueryStack.push({query_url:query_url, vars:vars, varSender:varSender});
getNextQueryFromStack();
}
static function getNextQueryFromStack() {
if (sendingQuery == true) {
return(true);
}
if (sendQueryStack.length == 0) {
return(false);
}
var _local1 = sendQueryStack.pop();
sendThisQuery(_local1.query_url, _local1.vars, _local1.varSender);
}
static function sendThisQuery(query_url, vars, varSender) {
if (MenuClass.igramOnline() == false) {
TREJS.THIS((("\u0139\u00A0aljem query [sendThisQuery] a offline sam, URL:" + query_url) + ", sender:") + varSender);
return(true);
}
sendingQuery = true;
sendVars = new LoadVars();
for (var _local4 in vars) {
sendVars[_local4] = vars[_local4];
}
if (sendVars.language != undefined) {
TREJS.THIS("DEBUG (SendQuery.as), ve\u00C4\u2021 je definirana varijabla language:" + sendVars.language);
} else {
sendVars.language = Msg.getLanguage();
}
if (MyCookie.getCookie(MyCookie.UNIQUE_ID) != MyCookie.FALSE) {
sendVars.unique_id = MyCookie.getCookie(MyCookie.UNIQUE_ID);
}
sendVars.verzija = AppInfo.getAppVer();
if (varSender.initialize != undefined) {
TREJS.THIS("DEBUG ERROR: Zakrpa u SendQuery.as ne valja - gumb ipak ima initialize()!");
} else {
sendVars.loadingPopup = MenuClass.openPopup("infoMsg", varSender);
}
sendVars.loadingPopup.MENU_INFO_MSG.text = Msg.getMsg(Msg.MENU_LOADING_QUERY_WAIT, sendVars.loadingPopup.MENU_INFO_MSG);
sendVars.onLoad = function (success) {
TREJS.THIS(("SendQuery, onLoad: " + success) + ">");
MenuClass.closePopup(this.loadingPopup);
delete this.loadingPopup;
varSender.isSendingQuery = false;
if (success) {
if (varSender.onQueryComplete == undefined) {
TREJS.THIS("DEBUG (SendQuery.as): Ne mogu vratiti varijable jer ne postoji funkcija onQueryComplete: " + varSender);
} else {
varSender.onQueryComplete(this);
}
} else {
var _local2 = MenuClass.openPopup("alert", this);
_local2.poruka.text = Msg.getMsg(Msg.MENU_ERROR_CONNECTING_TO_PHP);
}
SendQuery.sendingQuery = false;
SendQuery.getNextQueryFromStack();
};
TREJS.THIS(("SendQuery, URL: " + query_url) + ">");
var _local3 = query_url + "?";
for (var _local4 in sendVars) {
_local3 = _local3 + ((("&" + _local4) + "=") + sendVars[_local4]);
}
TREJS.THIS("SEND QUERY FLUSH: " + _local3);
sendVars.sendAndLoad(query_url, sendVars);
}
}
Symbol 1047 MovieClip [__Packages.OfflineScore] Frame 0
class OfflineScore
{
function OfflineScore () {
}
static function createBlankHighscoreSpaces(listName) {
TREJS.THIS("createBlankHighscoreSpaces for list:" + listName);
var _local3 = SEPARATOR;
var _local2 = 1;
while (_local2 <= 10) {
var _local1 = 0;
while (_local1 < info.length) {
if (typeof(def_vals[_local1]) == "number") {
_local3 = _local3 + (((((info[_local1] + _local2) + SEPARATOR) + "NUMBER") + def_vals[_local1]) + SEPARATOR);
} else {
_local3 = _local3 + ((((info[_local1] + _local2) + SEPARATOR) + def_vals[_local1]) + SEPARATOR);
}
_local1++;
}
_local2++;
}
MyCookie.setGlobalCookie(listName, _local3);
}
static function getAllHighscores(listName) {
var _local4 = MyCookie.getGlobalCookie(listName);
var _local1 = MyString.stringToObject(_local4, SEPARATOR);
var _local2 = new Object();
for (var _local3 in _local1) {
_local2[_local3] = _local1[_local3];
}
return(_local2);
}
static function saveScoreIfHighEnough(listName, score, level) {
TREJS.THIS((((("Spremam off sore:" + listName) + ",") + score) + ",") + level);
var _local6 = MyCookie.getCookie(MyCookie.NICK_NAME);
var _local1 = new Object();
_local1 = getAllHighscores(listName);
var _local3 = 1;
while (_local3 <= 10) {
if (_local1["score" + _local3] < score) {
var _local2 = 9;
while (_local2 > _local3) {
_local1["name" + _local2] = _local1["name" + (_local2 - 1)];
_local1["score" + _local2] = _local1["score" + (_local2 - 1)];
_local1["level" + _local2] = _local1["level" + (_local2 - 1)];
_local1["ver" + _local2] = _local1["ver" + (_local2 - 1)];
_local2--;
}
_local1["name" + _local3] = _local6;
_local1["score" + _local3] = score;
_local1["level" + _local3] = level;
_local1["ver" + _local3] = AppInfo.getAppVer();
break;
}
_local3++;
}
var _local4 = SEPARATOR;
_local3 = 1;
while (_local3 <= 10) {
_local4 = _local4 + (((("name" + _local3) + SEPARATOR) + _local1["name" + _local3]) + SEPARATOR);
_local4 = _local4 + ((((("score" + _local3) + SEPARATOR) + "NUMBER") + _local1["score" + _local3]) + SEPARATOR);
_local4 = _local4 + ((((("level" + _local3) + SEPARATOR) + "NUMBER") + _local1["level" + _local3]) + SEPARATOR);
_local4 = _local4 + ((((("ver" + _local3) + SEPARATOR) + "NUMBER") + _local1["ver" + _local3]) + SEPARATOR);
_local3++;
}
MyCookie.setGlobalCookie(listName, _local4);
}
static var SEPARATOR = "|x|";
static var info = ["name", "score", "level", "ver"];
static var def_vals = ["none", 0, 0, AppInfo.getAppVer()];
}
Symbol 1048 MovieClip [__Packages.OnlineScores] Frame 0
class OnlineScores
{
function OnlineScores () {
}
static function getHighestLevel(play_mode) {
return(MyCookie.getCookie(MyCookie.ONLINE_SCORES, MyCookie[("BEST_ONLINE_" + play_mode) + "_SCORE"]));
}
static function getBestScore(play_mode) {
TREJS.THIS((("DEBUG! getBestScore play_mode: " + play_mode) + ">") + MyCookie.getCookie(MyCookie.ONLINE_SCORES, MyCookie[("BEST_ONLINE_" + play_mode) + "_SCORE"]));
return(MyCookie.getCookie(MyCookie.ONLINE_SCORES, MyCookie[("BEST_ONLINE_" + play_mode) + "_SCORE"]));
}
static function setBestScore(play_mode, score, level) {
MyCookie.setCookie(MyCookie.ONLINE_SCORES, MyCookie[("BEST_ONLINE_" + play_mode) + "_SCORE"], score);
MyCookie.setCookie(MyCookie.ONLINE_SCORES, MyCookie[("BEST_ONLINE_" + play_mode) + "_LEVEL"], level);
MyCookie.setCookie(MyCookie.ONLINE_SCORES, MyCookie[("BEST_ONLINE_" + play_mode) + "_IS_ONLINE"], MyCookie.FALSE);
TREJS.THIS("setBestScore Cookie set:" + MyCookie.getCookie(MyCookie.ONLINE_SCORES, MyCookie[("BEST_ONLINE_" + play_mode) + "_SCORE"]));
}
static function resetBestScore(play_mode) {
TREJS.THIS("resetBestScore! mode: " + play_mode);
MyCookie.setCookie(MyCookie.ONLINE_SCORES, MyCookie[("BEST_ONLINE_" + play_mode) + "_SCORE"], 0);
MyCookie.setCookie(MyCookie.ONLINE_SCORES, MyCookie[("BEST_ONLINE_" + play_mode) + "_LEVEL"], 0);
MyCookie.setCookie(MyCookie.ONLINE_SCORES, MyCookie[("BEST_ONLINE_" + play_mode) + "_IS_ONLINE"], MyCookie.TRUE);
}
static function resetAllBestScores() {
resetBestScore(PLAY_MODE_SINGLE);
resetBestScore(PLAY_MODE_COOP);
resetBestScore(PLAY_MODE_STAYING1);
resetBestScore(PLAY_MODE_STAYING2);
}
static function submitHighscoreIfNeeded() {
if (_root.menu_mc.MENU_HIGHSCORES_MSG == undefined) {
TREJS.THIS("DEBUG! Ne znam di sam - nemrem slati score! (OnlineScores.as)!");
}
var _local6 = new Array(PLAY_MODE_SINGLE, PLAY_MODE_COOP, PLAY_MODE_STAYING1, PLAY_MODE_STAYING2);
var _local4 = 0;
while (_local4 < _local6.length) {
var _local3 = _local6[_local4];
if (MyCookie.getCookie(MyCookie.ONLINE_SCORES, MyCookie[("BEST_ONLINE_" + _local3) + "_IS_ONLINE"]) == MyCookie.FALSE) {
var _local9 = getBestScore(_local3);
var _local7 = MyCookie.getCookie(MyCookie.ONLINE_SCORES, MyCookie[("BEST_ONLINE_" + _local3) + "_LEVEL"]);
TREJS.THIS((((("\u0139\u00A0aljem najbolji rezultat mode: " + _local3) + ", score: ") + _local9) + ", lvl:") + _local7);
_root.menu_mc.MENU_HIGHSCORES_MSG.onQueryComplete = function (return_obj) {
if (return_obj.result == "true") {
MyCookie.setCookie(MyCookie.ONLINE_SCORES, MyCookie[("BEST_ONLINE_" + return_obj.mode) + "_IS_ONLINE"], MyCookie.TRUE);
OnlineScores.submitHighscoreIfNeeded();
} else {
var _local2 = MenuClass.openPopup("alert", this._parent);
_local2.poruka.text = return_obj.prompt;
}
};
_root.menu_mc.MENU_HIGHSCORES_MSG.sendNewQuery(AppInfo.setHighscoresUrl(), {score:_local9, level:_local7, mode:_local3});
break;
}
_local4++;
}
}
static var PLAY_MODE_SINGLE = "ARCADE";
static var PLAY_MODE_COOP = "COOP";
static var PLAY_MODE_STAYING1 = "STAYINGALIVE1";
static var PLAY_MODE_STAYING2 = "STAYINGALIVE2";
static var online_modes = new Array(PLAY_MODE_SINGLE, PLAY_MODE_COOP, PLAY_MODE_STAYING1, PLAY_MODE_STAYING2);
}
Symbol 1049 MovieClip [__Packages.OfflineVersion] Frame 0
class OfflineVersion
{
static var isFullScreen;
function OfflineVersion () {
}
static function InitOfflineVersion() {
if (isFullScreen == undefined) {
isFullScreen = false;
}
}
static function goFullScreen() {
TREJS.THIS("Going full screen");
MyCookie.setCookie(MyCookie.FULL_SCREEN, MyCookie.TRUE);
if (System.capabilities.os.toLowerCase().substr(0, 3) == "win") {
mdm.System.DirectX.enable(640, 480, 16);
mdm.Forms.thisForm.x = 0;
mdm.Application.bringToFront();
} else {
mdm.Forms.MainForm.showFullScreen(true);
}
mdm.Application.maximize();
isFullScreen = true;
}
static function goWindowMode() {
TREJS.THIS("Going window mode");
MyCookie.setCookie(MyCookie.FULL_SCREEN, MyCookie.FALSE);
if (System.capabilities.os.toLowerCase().substr(0, 3) == "win") {
mdm.System.DirectX.disable();
}
mdm.Application.restore();
isFullScreen = false;
}
}
Symbol 1050 MovieClip [__Packages.MyButton_S] Frame 0
class MyButton_S extends MyButton
{
var txt_create_x, txt_full_width, txt_width;
function MyButton_S () {
super();
}
function overrideMe() {
txt_create_x = -10;
txt_full_width = 150;
txt_width = 120;
}
}
Symbol 1051 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function showPreloaderAd(options) {
var _local29 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812};
options = _parseOptions(options, _local29);
var _local15 = options.clip;
var _local25 = 11000;
var _local28 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(undefined);
}
_local15.stop();
var mc = _local15._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local16 = _getRes(options);
var _local5 = _local16[0];
var _local14 = _local16[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local8 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local8._x = 10;
_local8._y = _local14 - 20;
var _local24 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local26 = options.outline;
delete options.outline;
var _local6 = _local8.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local8.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local24);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local7 = _local8.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local26, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local5 - 20, 0);
_local7.lineTo(_local5 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local25;
chk.ad_timeout = _local28;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
var _local15 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd"};
options = _parseOptions(options, _local15);
var _local6 = options.clip;
var _local12 = 11000;
var _local14 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(undefined);
}
_local6.stop();
var mc = _local6._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local7 = _getRes(options);
var _local16 = _local7[0];
var _local13 = _local7[1];
mc._x = _local16 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local12;
chk.ad_timeout = _local14;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local25 = {clip:_root, com_server:"", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local25);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = "1.4";
var _local18 = options.clip;
var _local20 = "" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local24 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local24);
var _local11 = _local17.createEmptyMovieClip("", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb) {
cb = parseInt(cb);
var _local4 = this._callbacks[cb];
if (!_local4) {
return(undefined);
}
delete this._callbacks[cb];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = "1.4";
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 1052 MovieClip [__Packages.MyButton_XXS] Frame 0
class MyButton_XXS extends MyButton
{
var txt_create_x, txt_full_width, txt_width;
function MyButton_XXS () {
super();
}
function overrideMe() {
txt_create_x = -2;
txt_full_width = 45;
txt_width = 35;
}
}
Symbol 1053 MovieClip [__Packages.MyArray] Frame 0
class MyArray
{
function MyArray () {
}
static function popIndex(arr, index) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < arr.length) {
if (_local1 != index) {
_local3.push(arr[_local1]);
}
_local1++;
}
return(_local3);
}
}
Symbol 89 MovieClip [_Button_XXS] Frame 1
#initclip 24
Object.registerClass("_Button_XXS", MyButton_XXS);
#endinitclip
stop();
hitArea_mc._alpha = 0;
Symbol 95 MovieClip [_Button_Green] Frame 1
#initclip 21
Object.registerClass("_Button_Green", MyButton);
#endinitclip
stop();
hitArea_mc._alpha = 0;
Symbol 100 MovieClip [_Button_Blue] Frame 1
#initclip 22
Object.registerClass("_Button_Blue", MyButton);
#endinitclip
stop();
hitArea_mc._alpha = 0;
Symbol 159 MovieClip [_allPopups] Frame 1
stop();
Symbol 159 MovieClip [_allPopups] Frame 2
getallSingle.akcija = function () {
MyCookie.setCookie(MyCookie.SCORES, MyCookie.MAX_LEVEL_ARCADE, 67);
};
getallCoop.akcija = function () {
MyCookie.setCookie(MyCookie.SCORES, MyCookie.MAX_LEVEL_COOP, 50);
};
initialize = function () {
};
MENU_POPUP_CLASSIC_BACK.akcija = function () {
MenuClass.closePopup(this._parent);
};
MENU_SELECT_LEVEL_INFO.text = Msg.getMsg(Msg.MENU_SELECT_LEVEL_INFO, MENU_SELECT_LEVEL_INFO, MyStyles.MENU_TITLE);
var levelBtns = new Array();
var cntr = 0;
for (var name in this) {
if (this[name]._name == "MENU_NOLABEL") {
var mc = this[name];
cntr++;
mc._name = "CHOOSE_LEVEL" + cntr;
levelBtns.push({mc:mc, x:mc._x, y:mc._y});
}
}
levelBtns.sortOn(["y", "x"], Array.NUMERIC);
var maxLevel = MyCookie.getCookie(MyCookie.SCORES, MyCookie["MAX_LEVEL_" + this.play_mode]);
var i = 0;
while (i < levelBtns.length) {
if (i < maxLevel) {
levelBtns[i].mc.writeLabel(i + 1);
levelBtns[i].mc.gotoLevel = i + 1;
levelBtns[i].mc.play_mode = this.play_mode;
levelBtns[i].mc.akcija = function () {
switch (this.play_mode) {
case OnlineScores.PLAY_MODE_SINGLE :
var _local2 = "single";
break;
case OnlineScores.PLAY_MODE_COOP :
_local2 = "coop";
}
_level0.createGameObject(_local2, this.gotoLevel);
MenuClass.closePopup(this._parent);
};
} else {
levelBtns[i].mc._visible = false;
}
i++;
}
Symbol 159 MovieClip [_allPopups] Frame 3
initialize = function () {
var _local4 = MyCookie.getListOfProfiles();
MENU_PROFILE_MAN_CREATE_NICK_MSG.text = Msg.getMsg(Msg.MENU_PROFILE_MAN_CREATE_NICK_MSG, MENU_PROFILE_MAN_CREATE_NICK_MSG, MyStyles.MENU_TITLE);
if (_local4.length >= 1) {
MENU_PROFILE_MAN_SELECT_PROF_MSG.text = Msg.getMsg(Msg.MENU_PROFILE_MAN_SELECT_PROF_MSG, MENU_PROFILE_MAN_SELECT_PROF_MSG, MyStyles.MENU_TITLE);
} else {
MENU_PROFILE_MAN_SELECT_PROF_MSG.text = "";
}
var _local2 = 1;
while (_local2 <= MenuClass.MAX_NUM_OF_PROFILES) {
if (_local4[_local2 - 1]) {
this["nick" + (_local2 + 1)].text = _local4[_local2 - 1].nick;
this[("MENU_PROFILE_MAN_NICK" + _local2) + "_MSG"].writeLabel(_local4[_local2 - 1].nick);
if (_local4[_local2 - 1].profileId == MenuClass.getActiveProfile()) {
this["nick" + (_local2 + 1)].border = true;
this["nick" + (_local2 + 1)].backgroundColor = 16711680 /* 0xFF0000 */;
}
this[("MENU_PROFILE_MAN_NICK" + _local2) + "_MSG"]._visible = true;
this[("MENU_PROFILE_MAN_NICK" + _local2) + "_MSG"].profileId = _local4[_local2 - 1].profileId;
this[("MENU_PROFILE_MAN_NICK" + _local2) + "_MSG"].akcija = function () {
MenuClass.setActiveProfile(this.profileId);
MenuClass.closePopup(this._parent);
};
this[("MENU_PROFILE_MAN_DEL" + _local2) + "_MSG"]._visible = true;
this[("MENU_PROFILE_MAN_DEL" + _local2) + "_MSG"].profileId = _local4[_local2 - 1].profileId;
this[("MENU_PROFILE_MAN_DEL" + _local2) + "_MSG"].akcija = function () {
var _local2 = MenuClass.openPopup("poruka", this._parent);
_local2.poruka.text = Msg.getMsg(Msg.ARE_YOU_SURE_DELETEPROFILE_MSG, _local2.poruka);
_local2.MENU_POPUP_CLASSIC_OK.profileId = this.profileId;
_local2.MENU_POPUP_CLASSIC_OK.akcija = function () {
MenuClass.deleteProfile(this.profileId);
MenuClass.closePopup(this._parent);
};
_local2.MENU_POPUP_CLASSIC_BACK.akcija = function () {
MenuClass.closePopup(this._parent);
};
_local2.MENU_POPUP_CLASSIC_OK._name = Msg.MENU_COMMON_WORD_YES;
_local2.MENU_POPUP_CLASSIC_BACK._name = Msg.MENU_COMMON_WORD_NO;
};
} else {
this[("MENU_PROFILE_MAN_NICK" + _local2) + "_MSG"]._visible = false;
this[("MENU_PROFILE_MAN_DEL" + _local2) + "_MSG"]._visible = false;
}
_local2++;
}
};
initialize();
MENU_PROFILE_MAN_CREATE_NEW_MSG.akcija = function () {
if (MenuClass.getNumberOfProfiles() == MenuClass.MAX_NUM_OF_PROFILES) {
var _local2 = MenuClass.openPopup("alert", this._parent);
_local2.poruka.text = Msg.getMsg(Msg.MAX_NUM_OF_PROFILES_MSG, _local2.poruka);
} else {
MenuClass.openPopup("newprofile", this._parent);
}
};
MENU_PROFILE_MAN_BACK_MSG.akcija = function () {
if (MenuClass.getActiveProfile() === false) {
var _local2 = MenuClass.openPopup("alert", this._parent);
_local2.poruka.text = Msg.getMsg(Msg.ACTIVATE_A_PROFILE_FIRST_MSG, _local2.poruka);
} else {
MenuClass.closePopup(this._parent);
}
};
Symbol 159 MovieClip [_allPopups] Frame 4
initialize = function () {
};
nick_name.maxChars = MenuClass.MAX_NUM_OF_CHARS_IN_NICK;
nick_name.restrict = MenuClass.nick_restrict;
MENU_CREATE_NICKNAME_HI.text = Msg.getMsg(Msg.MENU_CREATE_NICKNAME_HI, MENU_CREATE_NICKNAME_HI, MyStyles.MENU_TITLE);
MENU_CREATE_NICKNAME_ENTER_NICK.text = Msg.getMsg(Msg.MENU_CREATE_NICKNAME_ENTER_NICK, MENU_CREATE_NICKNAME_ENTER_NICK);
MyStyles.setTextboxStyle(nick_name);
MENU_COMMON_WORD_OK.akcija = function () {
if (nick_name.length < MenuClass.MIN_NUM_OF_CHARS_IN_NICK) {
var _local2 = MenuClass.openPopup("alert", this._parent);
_local2.poruka.text = Msg.getMsg(Msg.NOT_ENOUGH_CHARS_IN_NICK_MSG, _local2.poruka);
return(false);
}
if (MenuClass.igramOnline()) {
if (AppInfo.KORISTIM_SERVER) {
this.sendNewQuery(AppInfo.getNewNicknameUrl(), {nickname:nick_name.text});
} else {
this.onQueryComplete({result:"true", unique_id:0});
}
} else {
this.onQueryComplete({result:"true", unique_id:0});
}
};
MENU_COMMON_WORD_OK.onQueryComplete = function (return_obj) {
if (return_obj.result == "true") {
MenuClass.createNewProfile();
MyCookie.setCookie(MyCookie.NICK_NAME, nick_name.text);
MyCookie.setCookie(MyCookie.UNIQUE_ID, return_obj.unique_id);
if (check_online._currentframe == 1) {
MyCookie.setCookie(MyCookie.SEND_HIGHSCORE_ONLINE, MyCookie.FALSE);
} else {
MyCookie.setCookie(MyCookie.SEND_HIGHSCORE_ONLINE, MyCookie.TRUE);
}
if (check_flag._currentframe == 1) {
MyCookie.setCookie(MyCookie.SHOW_COUNTRY_FLAG, MyCookie.FALSE);
} else {
MyCookie.setCookie(MyCookie.SHOW_COUNTRY_FLAG, MyCookie.TRUE);
}
MyCookie.setCookie(MyCookie.MY_COUNTRY, "Croatia");
if (this._parent.level == 3) {
MenuClass.closePopup(this._parent.myparent, false);
}
MenuClass.closePopup(this._parent);
} else {
var _local2 = MenuClass.openPopup("alert", this._parent);
MyStyles.applyFancyFormatting(_local2.poruka, MyStyles.INGAME_COMBO_BONUS);
_local2.poruka.text = return_obj.prompt;
}
};
Symbol 159 MovieClip [_allPopups] Frame 5
initialize = function () {
};
Symbol 159 MovieClip [_allPopups] Frame 6
initialize = function () {
};
if (MENU_COMMON_WORD_OK.akcija == null) {
MENU_COMMON_WORD_OK.akcija = function () {
MenuClass.closePopup(this._parent);
};
}
Symbol 159 MovieClip [_allPopups] Frame 7
if (MenuClass.igramOnline()) {
this.period = "WEEK";
this.mode = "SINGLE";
initialize = function () {
MENU_HIGHSCORE_TITLE.text = Msg.getMsg(Msg["MENU_HIGHSCORE_TITLE_" + this.period], MENU_HIGHSCORE_TITLE, MyStyles.MENU_TITLE);
MENU_HIGHSCORE_YOURSCORE_TEXT.text = Msg.getMsg(Msg["MENU_HIGHSCORE_YOURSCORE_TEXT_" + this.period], MENU_HIGHSCORE_YOURSCORE_TEXT, MyStyles.MENU_TITLE);
var _local2 = 1;
while (_local2 <= 10) {
this._parent["MENU_HIGHSCORE_SLOT" + _local2].text = "";
this._parent["MENU_HIGHSCORE_NAME_SLOT" + _local2].text = "";
this._parent["MENU_HIGHSCORE_SCORE_SLOT" + _local2].text = "";
this._parent["MENU_HIGHSCORE_LEVEL_SLOT" + _local2].text = "";
_local2++;
}
this._parent.MENU_HIGHSCORE_MYSLOT.text = "";
this._parent.MENU_HIGHSCORE_NAME_MYSLOT.text = "";
this._parent.MENU_HIGHSCORE_SCORE_MYSLOT.text = "";
this._parent.MENU_HIGHSCORE_LEVEL_MYSLOT.text = "";
};
initialize();
MENU_POPUP_CLASSIC_BACK.akcija = function () {
MenuClass.closePopup(this._parent);
};
HIGH_WEEKLY.akcija = function () {
var _local2 = "WEEK";
this._parent.period = _local2;
MENU_POPUP_CLASSIC_BACK.sendNewQuery(AppInfo.getHighscoresUrl(), {mode:this._parent.mode, period:_local2});
HIGH_MONTHLY.activate();
HIGH_MONTHLY._alpha = 100;
this.deactivate();
this._alpha = 60;
};
HIGH_MONTHLY.akcija = function () {
var _local2 = "MONTH";
this._parent.period = _local2;
MENU_POPUP_CLASSIC_BACK.sendNewQuery(AppInfo.getHighscoresUrl(), {mode:this._parent.mode, period:_local2});
HIGH_WEEKLY.activate();
HIGH_WEEKLY._alpha = 100;
this.deactivate();
this._alpha = 60;
};
HIGH_SINGLE.akcija = function () {
var _local3 = "SINGLE";
this._parent.mode = _local3;
MENU_POPUP_CLASSIC_BACK.sendNewQuery(AppInfo.getHighscoresUrl(), {mode:_local3, period:this._parent.period});
this._parent.sposobiModeOsim(this);
};
HIGH_SA1.akcija = function () {
var _local3 = "STAYIN1";
this._parent.mode = _local3;
MENU_POPUP_CLASSIC_BACK.sendNewQuery(AppInfo.getHighscoresUrl(), {mode:_local3, period:this._parent.period});
this._parent.sposobiModeOsim(this);
};
HIGH_2PL.akcija = function () {
var _local3 = "COOP";
this._parent.mode = _local3;
MENU_POPUP_CLASSIC_BACK.sendNewQuery(AppInfo.getHighscoresUrl(), {mode:_local3, period:this._parent.period});
this._parent.sposobiModeOsim(this);
};
HIGH_SA2.akcija = function () {
var _local3 = "STAYIN2";
this._parent.mode = _local3;
MENU_POPUP_CLASSIC_BACK.sendNewQuery(AppInfo.getHighscoresUrl(), {mode:_local3, period:this._parent.period});
this._parent.sposobiModeOsim(this);
};
HIGH_SINGLE.akcija();
HIGH_WEEKLY._alpha = 60;
HIGH_WEEKLY.deactivate();
MENU_POPUP_CLASSIC_BACK.onQueryComplete = function (result_obj) {
this._parent.MENU_HIGHSCORE_TITLE.text = Msg.getMsg(Msg["MENU_HIGHSCORE_TITLE_" + this._parent.period], this._parent.MENU_HIGHSCORE_TITLE, MyStyles.MENU_TITLE);
var _local2 = 1;
while (_local2 <= 10) {
this._parent["MENU_HIGHSCORE_SLOT" + _local2].text = _local2 + ".)";
MyStyles.applyFancyFormatting(this._parent["MENU_HIGHSCORE_SLOT" + _local2], MyStyles.NO_STYLE);
if (result_obj["nickname" + _local2] != undefined) {
this._parent["MENU_HIGHSCORE_NAME_SLOT" + _local2].text = result_obj["nickname" + _local2];
MyStyles.applyFancyFormatting(this._parent["MENU_HIGHSCORE_NAME_SLOT" + _local2], MyStyles.NO_STYLE);
} else {
this._parent["MENU_HIGHSCORE_NAME_SLOT" + _local2].text = " x";
MyStyles.applyFancyFormatting(this._parent["MENU_HIGHSCORE_NAME_SLOT" + _local2], MyStyles.NO_STYLE);
}
if (result_obj["score" + _local2] != undefined) {
this._parent["MENU_HIGHSCORE_SCORE_SLOT" + _local2].text = result_obj["score" + _local2];
MyStyles.applyFancyFormatting(this._parent["MENU_HIGHSCORE_SCORE_SLOT" + _local2], MyStyles.NO_STYLE);
} else {
this._parent["MENU_HIGHSCORE_SCORE_SLOT" + _local2].text = "x";
MyStyles.applyFancyFormatting(this._parent["MENU_HIGHSCORE_SCORE_SLOT" + _local2], MyStyles.NO_STYLE);
}
if (result_obj["level" + _local2] != undefined) {
this._parent["MENU_HIGHSCORE_LEVEL_SLOT" + _local2].text = result_obj["level" + _local2];
MyStyles.applyFancyFormatting(this._parent["MENU_HIGHSCORE_LEVEL_SLOT" + _local2], MyStyles.NO_STYLE);
} else {
this._parent["MENU_HIGHSCORE_LEVEL_SLOT" + _local2].text = "x";
MyStyles.applyFancyFormatting(this._parent["MENU_HIGHSCORE_LEVEL_SLOT" + _local2], MyStyles.NO_STYLE);
}
_local2++;
}
if (result_obj.my_pos == "0") {
this._parent.MENU_HIGHSCORE_YOURSCORE_TEXT.text = Msg.getMsg(Msg["MENU_HIGHSCORE_NO_SCORE_YET_" + this._parent.period], this._parent.MENU_HIGHSCORE_YOURSCORE_TEXT, MyStyles.MENU_TITLE);
this._parent.MENU_HIGHSCORE_MYSLOT.text = "x.)";
this._parent.MENU_HIGHSCORE_NAME_MYSLOT.text = MyCookie.getCookie(MyCookie.NICK_NAME);
this._parent.MENU_HIGHSCORE_SCORE_MYSLOT.text = "x";
this._parent.MENU_HIGHSCORE_LEVEL_MYSLOT.text = "x";
} else {
MENU_HIGHSCORE_YOURSCORE_TEXT.text = Msg.getMsg(Msg["MENU_HIGHSCORE_YOURSCORE_TEXT_" + this._parent.period], MENU_HIGHSCORE_YOURSCORE_TEXT, MyStyles.MENU_TITLE);
this._parent.MENU_HIGHSCORE_MYSLOT.text = result_obj.my_pos + ".)";
this._parent.MENU_HIGHSCORE_NAME_MYSLOT.text = MyCookie.getCookie(MyCookie.NICK_NAME);
this._parent.MENU_HIGHSCORE_SCORE_MYSLOT.text = result_obj.my_score;
this._parent.MENU_HIGHSCORE_LEVEL_MYSLOT.text = result_obj.my_level;
}
MyStyles.applyFancyFormatting(this._parent.MENU_HIGHSCORE_MYSLOT, MyStyles.NO_STYLE);
MyStyles.applyFancyFormatting(this._parent.MENU_HIGHSCORE_NAME_MYSLOT, MyStyles.NO_STYLE);
MyStyles.applyFancyFormatting(this._parent.MENU_HIGHSCORE_SCORE_MYSLOT, MyStyles.NO_STYLE);
MyStyles.applyFancyFormatting(this._parent.MENU_HIGHSCORE_LEVEL_MYSLOT, MyStyles.NO_STYLE);
};
} else {
MENU_HIGHSCORE_TITLE.text = Msg.getMsg(Msg.HIGH_OFFLINE_TITLE, MENU_HIGHSCORE_TITLE, MyStyles.MENU_TITLE);
MENU_HIGHSCORE_YOURSCORE_TEXT.text = "";
HIGH_WEEKLY._visible = false;
HIGH_MONTHLY._visible = false;
MENU_POPUP_CLASSIC_BACK.akcija = function () {
MenuClass.closePopup(this._parent);
};
upisiScoreve = function (mode) {
var _local3 = new Object();
_local3 = OfflineScore.getAllHighscores(mode);
var _local2 = 1;
while (_local2 <= 10) {
this["MENU_HIGHSCORE_NAME_SLOT" + _local2].text = _local3["name" + _local2];
this["MENU_HIGHSCORE_SCORE_SLOT" + _local2].text = _local3["score" + _local2];
this["MENU_HIGHSCORE_LEVEL_SLOT" + _local2].text = _local3["level" + _local2];
MyStyles.applyFancyFormatting(this["MENU_HIGHSCORE_NAME_SLOT" + _local2], MyStyles.NO_STYLE);
MyStyles.applyFancyFormatting(this["MENU_HIGHSCORE_SCORE_SLOT" + _local2], MyStyles.NO_STYLE);
MyStyles.applyFancyFormatting(this["MENU_HIGHSCORE_LEVEL_SLOT" + _local2], MyStyles.NO_STYLE);
_local2++;
}
};
HIGH_SINGLE.akcija = function () {
var _local2 = MyCookie.OFFLINE_SCORES_SINGLE;
this._parent.upisiScoreve(_local2);
this._parent.sposobiModeOsim(this);
};
HIGH_SA1.akcija = function () {
var _local2 = MyCookie.OFFLINE_SCORES_STAYIN1;
this._parent.upisiScoreve(_local2);
this._parent.sposobiModeOsim(this);
};
HIGH_2PL.akcija = function () {
var _local2 = MyCookie.OFFLINE_SCORES_COOP;
this._parent.upisiScoreve(_local2);
this._parent.sposobiModeOsim(this);
};
HIGH_SA2.akcija = function () {
var _local2 = MyCookie.OFFLINE_SCORES_STAYIN2;
this._parent.upisiScoreve(_local2);
this._parent.sposobiModeOsim(this);
};
sposobiModeOsim = function (md) {
HIGH_SINGLE.activate();
HIGH_SA1.activate();
HIGH_2PL.activate();
HIGH_SA2.activate();
HIGH_SINGLE._alpha = 100;
HIGH_SA1._alpha = 100;
HIGH_2PL._alpha = 100;
HIGH_SA2._alpha = 100;
md.deactivate();
md._alpha = 60;
};
HIGH_SINGLE.akcija();
}
Symbol 159 MovieClip [_allPopups] Frame 8
initialize = function () {
};
initialize();
Symbol 159 MovieClip [_allPopups] Frame 9
INGAME_MENU_TITLE.text = Msg.getMsg(Msg.INGAME_MENU_TITLE, INGAME_MENU_TITLE, MyStyles.MENU_TITLE);
Symbol 164 MovieClip [menu_back] Frame 1
#initclip 23
Object.registerClass("menu_back", MyButton);
#endinitclip
Symbol 171 Button
on (release) {
this.removeMovieClip();
}
Symbol 174 MovieClip [obfus] Frame 2
gotoAndPlay(random(50) + 2);
Symbol 174 MovieClip [obfus] Frame 115
gotoAndPlay(random(50) + 2);
Symbol 275 MovieClip [pozadine_single] Frame 1
stop();
Symbol 279 MovieClip [ingame_countDownClock] Frame 1
tekst_sec.text = "";
tekst_mili.text = "";
tekst_split.text = ":";
Symbol 281 MovieClip [ingame_menu] Frame 1
INGAME_MENU_TITLE.text = Msg.getMsg(Msg.INGAME_MENU_TITLE, INGAME_MENU_TITLE, MyStyles.MENU_TITLE);
INGAME_MENU_QUIT_TO_MAINMENU.text = Msg.getMsg(Msg.INGAME_MENU_QUIT_TO_MAINMENU);
INGAME_MENU_QUIT_TO_MAINMENU.alwaysActive();
INGAME_MENU_BACK_TO_GAME.text = Msg.getMsg(Msg.INGAME_MENU_BACK_TO_GAME);
INGAME_MENU_BACK_TO_GAME.alwaysActive();
INGAME_MENU_QUIT_TO_MAINMENU.akcija = function () {
removeMovieClip(_root.highest_active_menu);
_root.finishGame(false);
};
INGAME_MENU_BACK_TO_GAME.akcija = function () {
_root.crntLvl.pauza("off");
_root.disableMenu_game(true);
removeMovieClip(_root.highest_active_menu);
};
Symbol 287 MovieClip [ingame_showText] Frame 1
Symbol 289 MovieClip Frame 1
var randomExp = _root.randRange(1, 3);
bravo_txt.text = Msg.getMsg(Msg["INGAME_FINISH_LEVEL" + randomExp], bravo_txt, MyStyles.INGAME_TITLE);
Symbol 292 MovieClip Frame 1
time_bonus_txt.text = Msg.getMsg(Msg.INGAME_TIME_BONUS, time_bonus_txt, MyStyles.INGAME_SUBTITLE);
time_bonus_points.text = Msg.getMsg(Msg.MENU_NOLABEL, time_bonus_points, MyStyles.INGAME_SUBTITLE);
Symbol 294 MovieClip Frame 1
accuracy_bonus_txt.text = Msg.getMsg(Msg.INGAME_ACCURACY_BONUS, accuracy_bonus_txt, MyStyles.INGAME_SUBTITLE);
Symbol 298 MovieClip [ingame_finishGame_screen] Frame 1
function zavrsioIgruFlag(play_mode) {
TRE(this, "Zavrsio..." + play_mode);
MyCookie.setCookie(MyCookie.FLAGS_TO_CHECK, MyCookie["FLAG_ALL_LEVELS_" + play_mode], MyCookie.TRUE);
}
switch (_root.crntGame.mod) {
case "single" :
zavrsioIgruFlag(OnlineScores.PLAY_MODE_SINGLE);
break;
case "coop" :
zavrsioIgruFlag(OnlineScores.PLAY_MODE_COOP);
break;
case "stayingalive1" :
zavrsioIgruFlag(OnlineScores.PLAY_MODE_STAYING1);
break;
case "stayingalive2" :
zavrsioIgruFlag(OnlineScores.PLAY_MODE_STAYING2);
break;
case "vs" :
break;
default :
TRE(this, "DEBUG! zavrsioIgruFlag, nepoznat mode:" + _root.crntGame.mod);
}
congrats_txt.text = Msg.getMsg(Msg.FINISHED_ALL_LEVELS_HI, congrats_txt, MyStyles.INGAME_TITLE);
finish_txt.text = Msg.getMsg(Msg.FINISHED_ALL_LEVELS_TXT, finish_txt);
FINISHED_ALL_LEVELS_OK_BUTTON.alwaysActive();
FINISHED_ALL_LEVELS_OK_BUTTON.akcija = function () {
_root.finishGame(true);
};
Symbol 300 MovieClip Frame 1
gameover_txt.text = Msg.getMsg(Msg["INGAME_GAME_OVER" + this._parent.randomExp], gameover_txt, MyStyles.INGAME_TITLE);
Symbol 301 MovieClip [ingame_game_over] Frame 1
this.randomExp = _root.randRange(1, 2);
Symbol 304 MovieClip Frame 1
getReady_txt.text = Msg.getMsg(Msg["INGAME_GET_READY" + this._parent.randomExp], getReady_txt, MyStyles.INGAME_TITLE);
Symbol 305 MovieClip [getReady_animation] Frame 1
this.randomExp = _root.randRange(1, 3);
Symbol 308 MovieClip Frame 1
outOfTime_txt.text = Msg.getMsg(Msg.INGAME_OUT_OF_TIME, outOfTime_txt, MyStyles.INGAME_TITLE);
Symbol 699 MovieClip [lik_animacije] Frame 1
stop();
Symbol 699 MovieClip [lik_animacije] Frame 2
this.animate_player_plast();
Instance of Symbol 382 MovieClip "animacija" in Symbol 699 MovieClip [lik_animacije] Frame 2
onClipEvent (load) {
stop();
}
Symbol 699 MovieClip [lik_animacije] Frame 14
this.animate_player_plast();
Instance of Symbol 425 MovieClip "animacija" in Symbol 699 MovieClip [lik_animacije] Frame 14
onClipEvent (load) {
stop();
}
Symbol 699 MovieClip [lik_animacije] Frame 27
this.animate_player_plast();
Instance of Symbol 487 MovieClip "animacija" in Symbol 699 MovieClip [lik_animacije] Frame 27
onClipEvent (load) {
stop();
}
Symbol 699 MovieClip [lik_animacije] Frame 39
this.animate_player_plast();
Instance of Symbol 529 MovieClip "animacija" in Symbol 699 MovieClip [lik_animacije] Frame 39
onClipEvent (load) {
stop();
}
Symbol 699 MovieClip [lik_animacije] Frame 47
this.animate_player_plast();
Instance of Symbol 571 MovieClip "animacija" in Symbol 699 MovieClip [lik_animacije] Frame 47
onClipEvent (load) {
stop();
}
Instance of Symbol 587 MovieClip "plast" in Symbol 699 MovieClip [lik_animacije] Frame 47
onClipEvent (load) {
stop();
}
Symbol 699 MovieClip [lik_animacije] Frame 57
this.animate_player_plast();
Instance of Symbol 588 MovieClip "animacija" in Symbol 699 MovieClip [lik_animacije] Frame 57
onClipEvent (load) {
stop();
}
Instance of Symbol 593 MovieClip "plast" in Symbol 699 MovieClip [lik_animacije] Frame 57
onClipEvent (load) {
stop();
}
Symbol 699 MovieClip [lik_animacije] Frame 67
this.animate_player_plast();
Instance of Symbol 596 MovieClip "animacija" in Symbol 699 MovieClip [lik_animacije] Frame 67
onClipEvent (load) {
stop();
}
Instance of Symbol 619 MovieClip "animacija" in Symbol 699 MovieClip [lik_animacije] Frame 75
onClipEvent (load) {
stop();
}
Symbol 699 MovieClip [lik_animacije] Frame 83
this.animate_player_plast();
Instance of Symbol 660 MovieClip "animacija" in Symbol 699 MovieClip [lik_animacije] Frame 83
onClipEvent (load) {
stop();
}
Instance of Symbol 693 MovieClip "animacija" in Symbol 699 MovieClip [lik_animacije] Frame 93
onClipEvent (load) {
stop();
}
Symbol 699 MovieClip [lik_animacije] Frame 101
this.animate_player_plast();
Instance of Symbol 696 MovieClip "animacija" in Symbol 699 MovieClip [lik_animacije] Frame 101
onClipEvent (load) {
stop();
}
Instance of Symbol 698 MovieClip "plast" in Symbol 699 MovieClip [lik_animacije] Frame 101
onClipEvent (load) {
stop();
}
Symbol 703 MovieClip [lopta_pop] Frame 1
stop();
Symbol 786 MovieClip [pucanj_laser] Frame 1
stop();
Symbol 789 MovieClip [pucanj_laser_list_ani] Frame 1
stop();
Symbol 796 MovieClip [pucanj_single] Frame 1
stop();
Symbol 804 MovieClip [tile_keks] Frame 1
stop();
Symbol 830 MovieClip [tile_switch] Frame 1
stop();
Symbol 838 MovieClip [tile_switch_horiz] Frame 1
stop();
Symbol 842 MovieClip Frame 1
this._width = (100 / this._parent._xscale) * 6;
this._parent.pozicionirajKruzicTrake(this);
Symbol 843 MovieClip [tile_traka] Frame 1
pozicionirajKruzicTrake = function (krug) {
if (krug._x < 10) {
krug._x = (100 / this._xscale) * krug._x;
this.pozicionirajKruzicTrakeRazmak = krug._x;
} else {
krug._x = 40 - this.pozicionirajKruzicTrakeRazmak;
}
};
Symbol 846 MovieClip [tile_traka_vrhic] Frame 1
stop();
Symbol 853 MovieClip [tile_tramboline] Frame 1
stop();
Symbol 889 MovieClip Frame 1
stop();
if (this.firstStart == undefined) {
this.firstStart = true;
this.gotoAndStop(random(this._totalframes));
}
this.framerate = 50;
this.then = getTimer() + this.framerate;
this.timeMistake = 2;
this.onEnterFrame = function () {
var _local2 = getTimer();
if (_local2 > this.then) {
if (this._currentframe < this._totalframes) {
this.nextFrame();
} else {
this.gotoAndStop(1);
}
this.then = (_local2 + this.framerate) + ((random(3) * -1) * this.timeMistake);
}
};
Symbol 901 MovieClip Frame 1
stop();
Symbol 1022 MovieClip Frame 1
stop();
Symbol 1024 MovieClip Frame 1
activate = function () {
_root.menu_mc.changeKeys.keyListener = new Object();
_root.menu_mc.changeKeys.keyListener.onKeyDown = function () {
if (_root.menu_mc.changeKeys.mod == "twop") {
MyCookie.setCookie(MyCookie.TWOP, MyCookie[(("TWOP_P" + _root.menu_mc.changeKeys.pl_id) + "_KEY_") + _root.menu_mc.changeKeys.tipka.toUpperCase()], Key.getCode());
} else {
MyCookie.setCookie(MyCookie.SINGLE, MyCookie["SINGLE_KEY_" + _root.menu_mc.changeKeys.tipka.toUpperCase()], Key.getCode());
}
_root.menu_mc.changeKeys.deactivate();
};
Key.addListener(_root.menu_mc.changeKeys.keyListener);
};
deactivate = function () {
Key.removeListener(_root.menu_mc.changeKeys.keyListener);
if (_root.menu_mc.changeKeys.mod == "twop") {
MenuClass.loadKeys("p2", this._parent);
} else {
MenuClass.loadKeys("p1", this._parent);
}
this._visible = false;
};
menu_background_disabler.onRelease = function () {
};
menu_background_disabler.useHandCursor = false;
Symbol 1035 MovieClip Frame 1
if ((_level0.isset != "unset") && (AppInfo.KORISTIM_SERVER)) {
var popup = MenuClass.openPopup("infoMsg", this._parent);
popup.MENU_INFO_MSG.text = Msg.getMsg(Msg.NO_FULL_SCREEN, popup.MENU_INFO_MSG);
}
MenuKeyboard.enableKeyboardMenu(true);
if (MenuClass.igramOnline()) {
quit._visible = false;
}
if (MenuClass.getNumberOfProfiles() < 1) {
MenuClass.openPopup("newprofile", this);
} else if (MenuClass.getActiveProfile() == false) {
var popup = MenuClass.openPopup("profilemanager", this);
var popup2 = MenuClass.openPopup("alert", popup);
popup2.poruka.text = Msg.getMsg(Msg.EXIT_WITHOUT_SELECTING_PROFILE_MSG, popup2.poruka);
} else {
MenuClass.setActiveProfile(MyCookie.getGlobalCookie(MyCookie.GLOBAL_LAST_ACTIVE_PROFILE));
}
initialize = function () {
if (!(MyCookie.getCookie(MyCookie.NICK_NAME) === false)) {
MENU_CHANGE_PROFILE_ONLOAD.writeLabel(Msg.getMsg(Msg.MENU_CHANGE_PROFILE, "BUTTON_INSTANCE"));
} else {
MENU_CHANGE_PROFILE_ONLOAD.writeLabel(Msg.getMsg(Msg.MENU_CHANGE_PROFILE_ONLOAD, "BUTTON_INSTANCE"));
}
};
initialize();
MENU_CHANGE_PROFILE_ONLOAD.akcija = function () {
var _local2 = MenuClass.openPopup("profileManager", this._parent);
_local2.ok.akcija = function () {
};
_local2.back.akcija = function () {
};
};
MENU_SINGLE_PLAYER_MSG.rollOverAddOn = function () {
lik_poses.gotoAndStop("single_player_pose");
};
MENU_SINGLE_PLAYER_MSG.rollOutAddOn = function () {
lik_poses.gotoAndStop("idle_pose");
};
MENU_SINGLE_PLAYER_MSG.akcija = function () {
var _local2 = MyCookie.getCookie(MyCookie.SCORES, MyCookie.MAX_LEVEL_ARCADE);
if ((!_local2) || (_local2 === 1)) {
TREJS.THIS("zapo\u010Dni igru, nema odigranih levela za arcade.. maxLevel:" + _local2);
_level0.createGameObject("single");
} else {
TREJS.THIS("biraj sa kojeg levela \u017Eeli\u0161 po\u010Deti.. maxLevel:" + _local2);
var _local3 = MenuClass.openPopup("chooselevel", this._parent);
_local3.play_mode = OnlineScores.PLAY_MODE_SINGLE;
}
};
MENU_STAYING_ALIVE_MSG.akcija = function () {
_level0.createGameObject("stayingalive1");
};
MENU_TWO_PLAYERS_MSG.akcija = function () {
this._parent.gotoAndStop("twoplayer");
};
MENU_HIGHSCORES_MSG.rollOverAddOn = function () {
lik_poses.gotoAndStop("highscore_pose");
};
MENU_HIGHSCORES_MSG.rollOutAddOn = function () {
lik_poses.gotoAndStop("idle_pose");
};
if (AppInfo.KORISTIM_SERVER) {
MENU_HIGHSCORES_MSG.akcija = function () {
var _local2 = MenuClass.openPopup("highscoresPopup", this._parent);
};
} else {
MENU_HIGHSCORES_MSG.akcija = function () {
var _local2 = MenuClass.openPopup("alert", this._parent);
_local2.poruka.html = true;
_local2.poruka.htmlText = Msg.getMsg(Msg.PLAY_AT_REBUBBLED_COM);
};
}
MENU_SETUP_MSG.akcija = function () {
this._parent.gotoAndStop("setup_frame");
};
if (MenuClass.igramOnline()) {
MENU_QUIT_MSG.writeLabel(Msg.getMsg(Msg.MENU_DOWNLOAD_NOW));
MENU_QUIT_MSG.akcija = function () {
getURL ("http://www.rebubbled.com/download.html", "_blank");
};
} else {
MENU_QUIT_MSG.akcija = function () {
var _local2 = MenuClass.openPopup("poruka", this._parent);
_local2.poruka.text = Msg.getMsg(Msg.REALLY_QUIT_MSG, _local2.poruka);
_local2.MENU_POPUP_CLASSIC_OK.akcija = function () {
mdm.Application.exit();
};
_local2.MENU_POPUP_CLASSIC_BACK.akcija = function () {
MenuClass.closePopup(this._parent);
};
};
}
MENU_HELP.akcija = function () {
this._parent.gotoAndStop("help_frame");
};
if (MenuClass.igramOnline() && (AppInfo.KORISTIM_SERVER)) {
games_played_txt.text = Msg.getMsg(Msg.MENU_GAMES_PLAYED_TEXT, games_played_txt);
GOTO_REBUBBLED.deactivate();
GOTO_REBUBBLED._visible = false;
} else {
games_played_txt.text = "";
}
if (MenuClass.igramOnline() && (!AppInfo.KORISTIM_SERVER)) {
GOTO_REBUBBLED.akcija = function () {
getURL ("http://www.rebubbled.com/", "_blank");
};
} else {
GOTO_REBUBBLED.deactivate();
GOTO_REBUBBLED._visible = false;
}
stop();
Symbol 1035 MovieClip Frame 2
MENU_PROFILE_MAN_BACK_MSG.akcija = function () {
this._parent.gotoAndStop("main");
};
items_title.text = Msg.getMsg(Msg.MENU_HELP_ITEMS, items_title, MyStyles.MENU_TITLE);
items_500.text = Msg.getMsg(Msg.HELP_ITEMS_500, items_500, MyStyles.NO_STYLE);
items_1000.text = Msg.getMsg(Msg.HELP_ITEMS_1000, items_1000, MyStyles.NO_STYLE);
items_1500.text = Msg.getMsg(Msg.HELP_ITEMS_1500, items_1500, MyStyles.NO_STYLE);
items_dynamite.text = Msg.getMsg(Msg.HELP_ITEMS_DYNAMITE, items_dynamite, MyStyles.NO_STYLE);
items_dynamite_sub.text = Msg.getMsg(Msg.HELP_ITEMS_DYNAMITE_SUB, items_dynamite_sub, MyStyles.NO_STYLE);
items_extra.text = Msg.getMsg(Msg.HELP_ITEMS_EXTRA_LIFE, items_extra, MyStyles.NO_STYLE);
items_freezer.text = Msg.getMsg(Msg.HELP_ITEMS_FREEZER, items_freezer, MyStyles.NO_STYLE);
items_freezer_sub.text = Msg.getMsg(Msg.HELP_ITEMS_FREEZER_SUB, items_freezer_sub, MyStyles.NO_STYLE);
items_shield.text = Msg.getMsg(Msg.HELP_ITEMS_SHIELD, items_shield, MyStyles.NO_STYLE);
items_shield_sub.text = Msg.getMsg(Msg.HELP_ITEMS_SHIELD_SUB, items_shield_sub, MyStyles.NO_STYLE);
items_invinc.text = Msg.getMsg(Msg.HELP_ITEMS_SHIELD_INVINC, items_invinc, MyStyles.NO_STYLE);
items_invinc_sub.text = Msg.getMsg(Msg.HELP_ITEMS_SHIELD_INVINC_SUB, items_invinc_sub, MyStyles.NO_STYLE);
items_boots.text = Msg.getMsg(Msg.HELP_ITEMS_BOOTS, items_boots, MyStyles.NO_STYLE);
items_boots_sub.text = Msg.getMsg(Msg.HELP_ITEMS_BOOTS_SUB, items_boots_sub, MyStyles.NO_STYLE);
items_slomo.text = Msg.getMsg(Msg.HELP_ITEMS_SLOMO, items_slomo, MyStyles.NO_STYLE);
items_slomo_sub.text = Msg.getMsg(Msg.HELP_ITEMS_SLOMO_SUB, items_slomo_sub, MyStyles.NO_STYLE);
items_extratime.text = Msg.getMsg(Msg.HELP_ITEMS_EXTRATIME, items_extratime, MyStyles.NO_STYLE);
items_doubleharp.text = Msg.getMsg(Msg.HELP_ITEMS_DOUBLE_HARP, items_doubleharp, MyStyles.NO_STYLE);
items_icevine.text = Msg.getMsg(Msg.HELP_ITEMS_ICE_WINE, items_icevine, MyStyles.NO_STYLE);
items_flower.text = Msg.getMsg(Msg.HELP_ITEMS_FLOWER, items_flower, MyStyles.NO_STYLE);
items_medal.text = Msg.getMsg(Msg.HELP_ITEMS_MEDAL, items_medal, MyStyles.NO_STYLE);
items_medal_sub.text = Msg.getMsg(Msg.HELP_ITEMS_MEDAL_SUB, items_medal_sub, MyStyles.NO_STYLE);
help_movies.text = Msg.getMsg(Msg.MENU_HELP_MOVIES, help_movies, MyStyles.MENU_TITLE);
MENU_HELP_MOVIES_BASICS.akcija = function () {
getURL ("http://video.google.com/videoplay?docid=-4551167608137092930&q=bubble+struggle", "_blank");
};
Symbol 1035 MovieClip Frame 3
initialize = function () {
MENU_LOADING_QUERY_WAIT.writeLabel(MyCookie.getCookie(MyCookie.NICK_NAME));
MENU_LOADING_QUERY_WAIT.deactivate();
MenuClass.loadKeys("p1", this);
};
initialize();
MENU_PROFILE_MAN_BACK_MSG.akcija = function () {
this._parent.gotoAndStop("main");
};
changeKeys._visible = false;
changeKeys.mod = "singlep";
var tipke = ["up", "down", "left", "right", "fire"];
var i = 1;
while (i <= 2) {
for (var tipka in tipke) {
var ky = tipke[tipka];
this[ky + i].tipka = ky;
this[ky + i].id = i;
this[ky + i].onPress = function () {
if (this._parent.changeKeys._visible == false) {
this._parent.changeKeys._visible = true;
this._parent.changeKeys.pl_id = this.id;
this._parent.changeKeys.tipka = this.tipka;
this._parent.changeKeys.poruka.text = Msg.getMsg(Msg.TWOP_MODIFY_KEYS_MSG, this._parent.changeKeys.poruka);
this._parent.changeKeys.activate();
}
};
}
i++;
}
function initSound() {
if (MyCookie.getCookie(MyCookie.SOUND_EFFECTS) == MyCookie.TRUE) {
SOUND_EFFECTS_BTN.writeLabel(Msg.getMsg(Msg.SOUND_EFFECTS_BTN_ON, "BUTTON_INSTANCE"));
SOUND_EFFECTS_BTN.akcija = function () {
MyCookie.setCookie(MyCookie.SOUND_EFFECTS, MyCookie.FALSE);
MySound.soundsAreEnabled = false;
this._parent.initSound();
};
} else {
SOUND_EFFECTS_BTN.writeLabel(Msg.getMsg(Msg.SOUND_EFFECTS_BTN_OFF, "BUTTON_INSTANCE"));
SOUND_EFFECTS_BTN.akcija = function () {
MyCookie.setCookie(MyCookie.SOUND_EFFECTS, MyCookie.TRUE);
MySound.soundsAreEnabled = true;
var _local2 = new MySound("kravica");
this._parent.initSound();
};
}
}
setup_controls.text = Msg.getMsg(Msg.SETUP_CONTROLS, setup_controls, MyStyles.MENU_TITLE);
sound_effects.text = Msg.getMsg(Msg.SOUND_EFFECTS, sound_effects, MyStyles.MENU_TITLE);
initSound();
if (MenuClass.igramOnline()) {
full_screen.text = "";
FULL_SCREEN_BTN.deactivate();
FULL_SCREEN_BTN._visible = false;
} else {
full_screen.text = Msg.getMsg(Msg.FULL_SCREEN, full_screen, MyStyles.MENU_TITLE);
initFullscreen = function () {
if (MyCookie.getCookie(MyCookie.FULL_SCREEN) == MyCookie.TRUE) {
FULL_SCREEN_BTN.writeLabel(Msg.getMsg(Msg.FULL_SCREEN_BTN_ON, "BUTTON_INSTANCE"));
FULL_SCREEN_BTN.akcija = function () {
OfflineVersion.goWindowMode();
this._parent.initFullscreen();
};
} else {
FULL_SCREEN_BTN.writeLabel(Msg.getMsg(Msg.FULL_SCREEN_BTN_OFF, "BUTTON_INSTANCE"));
FULL_SCREEN_BTN.akcija = function () {
OfflineVersion.goFullScreen();
this._parent.initFullscreen();
};
}
};
initFullscreen();
}
Symbol 1035 MovieClip Frame 4
initialize = function () {
MENU_LOADING_QUERY_WAIT.writeLabel(MyCookie.getCookie(MyCookie.NICK_NAME));
MENU_LOADING_QUERY_WAIT.deactivate();
nameP2.maxChars = MenuClass.MAX_NUM_OF_CHARS_IN_NICK;
nameP2.restrict = MenuClass.nick_restrict;
var _local2 = MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P2_NICK);
if (!(_local2 === MyCookie.FALSE)) {
nameP2.text = _local2;
}
MyStyles.setTextboxStyle(nameP2);
MenuClass.loadKeys("p2", this);
};
initialize();
check_p2_nick = function () {
if (nameP2.length == 0) {
var _local2 = MenuClass.openPopup("alert", this);
_local2.poruka.text = Msg.getMsg(Msg.PLEASE_ENTER_P2_NICK_MSG, _local2.poruka);
return(false);
}
if (nameP2.length < MenuClass.MIN_NUM_OF_CHARS_IN_NICK) {
var _local2 = MenuClass.openPopup("alert", this);
_local2.poruka.text = Msg.getMsg(Msg.NOT_ENOUGH_CHARS_IN_NICK_MSG, _local2.poruka);
return(false);
}
MyCookie.setCookie(MyCookie.TWOP, MyCookie.TWOP_P2_NICK, nameP2.text);
return(true);
};
player_1.text = Msg.getMsg(Msg.MENU_TWOP_PLAYER_1, player_1, MyStyles.MENU_TITLE);
player_2.text = Msg.getMsg(Msg.MENU_TWOP_PLAYER_2, player_2, MyStyles.MENU_TITLE);
changeKeys._visible = false;
changeKeys.mod = "twop";
var tipke = ["up", "down", "left", "right", "fire"];
var i = 1;
while (i <= 2) {
for (var tipka in tipke) {
var ky = tipke[tipka];
this[ky + i].tipka = ky;
this[ky + i].id = i;
this[ky + i].onPress = function () {
if (this._parent.changeKeys._visible == false) {
this._parent.changeKeys._visible = true;
this._parent.changeKeys.pl_id = this.id;
this._parent.changeKeys.tipka = this.tipka;
this._parent.changeKeys.poruka.text = Msg.getMsg(Msg.TWOP_MODIFY_KEYS_MSG, this._parent.changeKeys.poruka);
this._parent.changeKeys.activate();
}
};
}
i++;
}
MENU_TWOP_COOPERATIVE.akcija = function () {
if (check_p2_nick() === true) {
var _local2 = MyCookie.getCookie(MyCookie.SCORES, MyCookie.MAX_LEVEL_COOP);
if ((!_local2) || (_local2 === 1)) {
TREJS.THIS("zapo\u010Dni igru, nema odigranih levela za coop.. maxLevel:" + _local2);
_level0.createGameObject("coop");
} else {
TREJS.THIS("biraj sa kojeg levela \u017Eeli\u0161 po\u010Deti.. maxLevel:" + _local2);
var _local3 = MenuClass.openPopup("chooselevel", this._parent);
_local3.play_mode = OnlineScores.PLAY_MODE_COOP;
}
}
};
MENU_TWOP_BATTLE.akcija = function () {
if (check_p2_nick() === true) {
_level0.createGameObject("vs");
}
};
MENU_TWOP_STAYIN.akcija = function () {
if (check_p2_nick() === true) {
_level0.createGameObject("stayingalive2");
}
};
MENU_PROFILE_MAN_BACK_MSG.akcija = function () {
this._parent.gotoAndStop("main");
};
var j = 1;
while (j <= 2) {
var i = 0;
while (i <= 9) {
this[(("col" + j) + "_") + i].pl_id = j;
this[(("col" + j) + "_") + i].col_id = i;
this[(("col" + j) + "_") + i].onRelease = function () {
var _local4 = new Color(this);
var _local7 = _local4.getRGB().toString(16);
var _local6 = new Color(this._parent["lik_" + this.pl_id].plast);
var _local3 = "0x" + _local7;
_local6.setRGB(_local3);
MyCookie.setCookie(MyCookie.TWOP, MyCookie[("TWOP_P" + this.pl_id) + "_COLOR"], this.col_id);
var _local5 = new flash.geom.Transform(this._parent["lik_" + this.pl_id].plast);
_level0["player_color_" + this.pl_id] = _local5.colorTransform;
var _local2 = 0;
while (_local2 <= 9) {
if (this.pl_id == 1) {
l = 2;
} else {
l = 1;
}
if (_local2 == this.col_id) {
this._parent[(("col" + l) + "_") + _local2].enabled = false;
this._parent[(("col" + l) + "_") + _local2]._alpha = 10;
} else {
this._parent[(("col" + l) + "_") + _local2].enabled = true;
this._parent[(("col" + l) + "_") + _local2]._alpha = 100;
}
_local2++;
}
};
i++;
}
j++;
}
if (MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P1_COLOR) != MyCookie.FALSE) {
this["col1_" + MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P1_COLOR)].onRelease();
this["col2_" + MyCookie.getCookie(MyCookie.TWOP, MyCookie.TWOP_P2_COLOR)].onRelease();
} else {
this.col1_4.onRelease();
this.col2_6.onRelease();
}
change_color.text = Msg.getMsg(Msg.MENU_TWOP_CHANGE_COLOR, change_color, MyStyles.MENU_TITLE);
change_keys.text = Msg.getMsg(Msg.MENU_TWOP_CHANGE_KEYS, change_keys, MyStyles.MENU_TITLE);
stop();