Frame 1
mochi.as2.MochiServices.connect("a8aa409a649dd306");
var myMenu = new ContextMenu();
myMenu.builtInItems.print = false;
myMenu.builtInItems.zoom = false;
myMenu.builtInItems.play = false;
myMenu.builtInItems.loop = false;
myMenu.builtInItems.rewind = false;
myMenu.builtInItems.forward_back = false;
myMenu.builtInItems.quality = true;
_root.menu = myMenu;
Frame 2
rezTotal = getBytesTotal();
rezLoaded = getBytesLoaded();
_root.rezPercent = Math.round(rezLoaded / (rezTotal / 100));
if (rezTotal == rezLoaded) {
loaderbuttons.gotoAndStop(2);
this.stop();
}
Frame 3
gotoAndPlay (2);
Frame 30
var usercookie = SharedObject.getLocal("polarGlider", "/");
if (usercookie.data.unlocked == undefined) {
_global.otkljucanihNivoa = 1;
} else {
_global.otkljucanihNivoa = usercookie.data.unlocked;
}
_global.currentLevel = 1;
_global.totalScore = 0;
this.stop();
Frame 100
function vremeUpdate() {
var _local5 = Math.floor(_global.timer / 60);
var _local6 = _global.timer % 60;
var _local3 = Math.floor(_local6 / 10);
var _local4 = _local6 % 10;
_root.gameHolder_mc.game_mc.brojaci_mc.sec10_txt.text = _local3;
_root.gameHolder_mc.game_mc.brojaci_mc.sec_txt.text = _local4;
_local3 = Math.floor(_local5 / 10);
_local4 = _local5 % 10;
_root.gameHolder_mc.game_mc.brojaci_mc.min10_txt.text = _local3;
_root.gameHolder_mc.game_mc.brojaci_mc.min_txt.text = _local4;
}
_global.pauza = true;
_global.moving = true;
_global.rumbling = false;
_global.timer = 0;
clearInterval(countdownInterval);
countdown = function () {
if (_global.pauza == false) {
_global.timer++;
vremeUpdate();
if (_global.timer >= 900) {
_global.timer = 900;
}
}
};
trace("NAPRAVI COUNTER");
countdownInterval = setInterval(countdown, 1000);
var myListener = new Object();
myListener.onKeyDown = function () {
if ((_global.pauza == false) && (_global.moving == false)) {
if (Key.getCode() == 38) {
_root.gameHolder_mc.game_mc.hero.smerX = 0;
_root.gameHolder_mc.game_mc.hero.smerY = -1;
_root.gameHolder_mc.game_mc.hero.brzina = 2;
if (!_global.rumbling) {
sfx_slide2.gotoAndPlay(2);
}
_global.moving = true;
}
if (Key.getCode() == 40) {
_root.gameHolder_mc.game_mc.hero.smerX = 0;
_root.gameHolder_mc.game_mc.hero.smerY = 1;
_root.gameHolder_mc.game_mc.hero.brzina = 2;
if (!_global.rumbling) {
sfx_slide2.gotoAndPlay(2);
}
_global.moving = true;
}
if (Key.getCode() == 37) {
_root.gameHolder_mc.game_mc.hero.smerX = -1;
_root.gameHolder_mc.game_mc.hero.smerY = 0;
_root.gameHolder_mc.game_mc.hero.brzina = 2;
if (!_global.rumbling) {
sfx_slide2.gotoAndPlay(2);
}
_global.moving = true;
}
if (Key.getCode() == 39) {
_root.gameHolder_mc.game_mc.hero.smerX = 1;
_root.gameHolder_mc.game_mc.hero.smerY = 0;
_root.gameHolder_mc.game_mc.hero.brzina = 2;
if (!_global.rumbling) {
sfx_slide2.gotoAndPlay(2);
}
_global.moving = true;
}
if (Key.getCode() == 80) {
_global.pauza = true;
_global.izbor = "pauziraj";
_root.inGameMenu_mc.enabled = true;
_root.inGameMenu_mc._visible = true;
_root.inGameMenu_mc.gotoAndPlay(1);
}
if (Key.getCode() == 82) {
_root.gameHolder_mc.game_mc.buildMap(_root.gameHolder_mc.game_mc.maplevel01);
_global.pauza = !_global.pauza;
_root.gameHolder_mc.gotoAndPlay(25);
}
}
if (Key.getCode() == 77) {
if (_root.soundsw == 0) {
_root.soundsw = 1;
_root.soundon = true;
_root.gameSound.setVolume(30);
} else {
_root.soundsw = 0;
_root.soundon = false;
_root.gameSound.setVolume(0);
}
}
};
Key.addListener(myListener);
init = function () {
width = 892;
height = 616;
max_snowsize = 10;
snowflakes = 50;
i = 0;
while (i < snowflakes) {
t = attachMovie("snow", "snow" + i, i);
t._alpha = 20 + (Math.random() * 60);
t._x = (-(width / 2)) + (Math.random() * (1.5 * width));
t._y = (-(height / 2)) + (Math.random() * (1.5 * height));
t._xscale = (t._yscale = 50 + (Math.random() * (max_snowsize * 10)));
t.k = 1 + (Math.random() * 2);
t.wind = -1.5 + (Math.random() * 4.2);
t.onEnterFrame = mover;
i++;
}
};
mover = function () {
this._y = this._y + this.k;
this._x = this._x + this.wind;
if (this._y > (height + 10)) {
this._y = -20;
}
if (this._x > (width + 20)) {
this._x = (-(width / 2)) + (Math.random() * (1.5 * width));
this._y = -20;
} else if (this._x < -20) {
this._x = (-(width / 2)) + (Math.random() * (1.5 * width));
this._y = -20;
}
};
init();
Frame 101
var o = {n:[1, 11, 1, 4, 3, 10, 0, 12, 2, 5, 4, 4, 15, 0, 3, 14], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, score:_global.totalScore});
Frame 102
_root.gotoAndStop(30);
Frame 103
var o = {n:[1, 11, 1, 4, 3, 10, 0, 12, 2, 5, 4, 4, 15, 0, 3, 14], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID});
Frame 104
_root.gotoAndStop(30);
Frame 110
var gameSound = new Sound();
gameSound.setVolume(30);
gameSound.attachSound("soundtrack");
gameSound.stop();
gameSound.start();
gameSound.onSoundComplete = function () {
gameSound.start();
};
gotoAndPlay (29);
Symbol 295 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
class mochi.as2.MochiSync
{
var _syncContainer;
function MochiSync () {
_syncContainer = {};
}
function getProp(name) {
return(_syncContainer[name]);
}
function setProp(name, value) {
if (_syncContainer[name] == value) {
return(undefined);
}
_syncContainer[name] = value;
mochi.as2.MochiServices.send("sync_propUpdate", {name:name, value:value});
}
function triggerEvent(eventType, args) {
switch (eventType) {
case SYNC_REQUEST :
mochi.as2.MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY :
_syncContainer[args.name] = args.value;
}
}
static var SYNC_REQUEST = "SyncRequest";
static var SYNC_PROPERTY = "UpdateProperty";
}
Symbol 296 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.8 as2");
}
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 get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
break;
case "sync" :
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function updateCopy(args) {
send("coins_updateCopy", args, null, null);
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var servicesSync = new mochi.as2.MochiSync();
}
Symbol 297 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 298 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 299 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("coins_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("coins_hideLoginWidget");
}
static function requestLogin() {
mochi.as2.MochiServices.send("coins_requestLogin");
}
static function getUserInfo() {
mochi.as2.MochiServices.send("coins_getUserInfo");
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("coins_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 300 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 301 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 4 Button
on (release) {
getURL ("http://www.9p.com/?utm_source=brandedgames&utm_medium=polarglide", "_blank");
}
Symbol 15 MovieClip Frame 170
_root.preloader9p.gotoAndStop(2);
stop();
Symbol 17 MovieClip Frame 187
stop();
Symbol 19 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 2
stop();
Symbol 28 Button
on (release) {
_root.gotoAndPlay(110);
}
Symbol 29 MovieClip Frame 1
stop();
Instance of Symbol 23 MovieClip in Symbol 29 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = _root.rezPercent * 2.17;
}
Symbol 29 MovieClip Frame 2
stop();
Symbol 35 MovieClip [spriteCannonBall_mc] Frame 4
this.gotoAndStop(1);
Symbol 36 MovieClip [cannonBall_mc] Frame 1
this.onEnterFrame = function () {
if (_global.pauza == false) {
if (this.hitTest(_root.gameHolder_mc.game_mc.hero.heroHitBox)) {
_root.gameHolder_mc.game_mc.hero.heroSprite_mc.gotoAndStop("umri");
}
i = 0;
while (i < 15) {
if (this.hitTest(_root.gameHolder_mc.game_mc["enemy_" + i].sprite01_mc.enemyHitBox)) {
_root.gameHolder_mc.game_mc["enemy_" + i].sprite01_mc.gotoAndPlay("umri");
}
i++;
}
ballSprite_mc.nextFrame();
this.pomeraj = this.pomeraj + 18;
this._x = (this.pomeraj * this.smerX) + 10;
this._y = (this.pomeraj * this.smerY) + 10;
if (this.pomeraj > 800) {
this.removeMovieClip();
}
}
};
Symbol 41 MovieClip [spriteCannon_mc] Frame 1
this.stop();
Symbol 41 MovieClip [spriteCannon_mc] Frame 40
this._parent.removeMovieClip();
Symbol 42 MovieClip [reload_mc] Frame 1
this.stop();
Symbol 42 MovieClip [reload_mc] Frame 60
this.gotoAndStop(1);
this._parent.puca = false;
Symbol 43 MovieClip [cannonSprite_mc] Frame 1
tileYYY.text = this.tileY;
var cannonCount = 0;
spriteCannon_mc.swapDepths(20);
this.onEnterFrame = function () {
if ((_global.pauza != true) && (this.puca == true)) {
reload_mc.nextFrame();
}
if (((this.tileY == this._parent.hero.tileY) && (this.puca != true)) && ((this.smer * ((this._parent.hero.tileX - this.tileX) + 1)) > 0)) {
trace("PPPPP UUUU CCCCC AAAAA JJJJJ !!!!");
this.puca = true;
cannonCount++;
trace(cannonCount++);
cannonBallName = ("cannonBall_" + cannonCount) + "_mc";
trace(cannonBallName);
this.attachMovie("cannonBall_mc", cannonBallName, cannonCount, {_x:-10, _y:10});
this[cannonBallName].pomeraj = 0;
this[cannonBallName].smerX = -1;
this[cannonBallName].smerY = 0;
}
if (this.spriteCannon_mc.cannonHitBox_mc.hitTest(_root.gameHolder_mc.game_mc.hero.heroHitBox)) {
this.puca = true;
this.spriteCannon_mc.gotoAndPlay("umri");
}
};
Symbol 44 MovieClip [spriteCannonDesno_mc] Frame 1
this.stop();
Symbol 44 MovieClip [spriteCannonDesno_mc] Frame 40
this._parent.removeMovieClip();
Symbol 45 MovieClip [cannonSpriteDesno_mc] Frame 1
tileYYY.text = this.tileY;
var cannonCount = 0;
spriteCannon_mc.swapDepths(20);
this.onEnterFrame = function () {
if ((_global.pauza != true) && (this.puca == true)) {
reload_mc.nextFrame();
}
if (((this.tileY == this._parent.hero.tileY) && (this.puca != true)) && ((this.smer * ((this._parent.hero.tileX - this.tileX) + 1)) > 2)) {
this.puca = true;
cannonCount++;
cannonBallName = ("cannonBall_" + cannonCount) + "_mc";
this.attachMovie("cannonBall_mc", cannonBallName, cannonCount, {_x:-10, _y:10});
this[cannonBallName].pomeraj = 0;
this[cannonBallName].smerX = 1;
this[cannonBallName].smerY = 0;
}
if (this.spriteCannon_mc.cannonHitBox_mc.hitTest(_root.gameHolder_mc.game_mc.hero.heroHitBox)) {
this.puca = true;
this.spriteCannon_mc.gotoAndPlay("umri");
}
};
Symbol 46 MovieClip [spriteCannonDole_mc] Frame 1
this.stop();
Symbol 46 MovieClip [spriteCannonDole_mc] Frame 40
this._parent.removeMovieClip();
Symbol 47 MovieClip [cannonSpriteDole_mc] Frame 1
tileYYY.text = this.tileY;
var cannonCount = 0;
spriteCannon_mc.swapDepths(20);
this.onEnterFrame = function () {
if ((_global.pauza != true) && (this.puca == true)) {
reload_mc.nextFrame();
}
if (((this.tileX == this._parent.hero.tileX) && (this.puca != true)) && ((this.smer * ((this._parent.hero.tileY - this.tileY) + 1)) > 2)) {
trace("PPPPP UUUU CCCCC AAAAA JJJJJ !!!!");
this.puca = true;
cannonCount++;
trace("cannon " + cannonCount);
cannonBallName = ("cannonBall_" + cannonCount) + "_mc";
trace(cannonBallName);
this.attachMovie("cannonBall_mc", cannonBallName, cannonCount, {_x:-10, _y:10});
this[cannonBallName].pomeraj = 0;
this[cannonBallName].smerX = 0;
this[cannonBallName].smerY = 1;
if (this.cannonCount > 18) {
this.cannonCount = 1;
}
}
if (this.spriteCannon_mc.cannonHitBox_mc.hitTest(_root.gameHolder_mc.game_mc.hero.heroHitBox)) {
this.puca = true;
this.spriteCannon_mc.gotoAndPlay("umri");
}
};
Symbol 48 MovieClip [spriteCannonGore_mc] Frame 1
this.stop();
Symbol 48 MovieClip [spriteCannonGore_mc] Frame 40
this._parent.removeMovieClip();
Symbol 49 MovieClip [cannonSpriteGore_mc] Frame 1
tileYYY.text = this.tileY;
var cannonCount = 0;
spriteCannon_mc.swapDepths(20);
this.onEnterFrame = function () {
if ((_global.pauza != true) && (this.puca == true)) {
reload_mc.nextFrame();
}
if (((this.tileX == this._parent.hero.tileX) && (this.puca != true)) && ((this._parent.hero.tileY - this.tileY) < -1)) {
trace("PPPPP UUUU CCCCC AAAAA JJJJJ !!!!");
this.puca = true;
cannonCount++;
trace(cannonCount++);
cannonBallName = ("cannonBall_" + cannonCount) + "_mc";
trace(cannonBallName);
this.attachMovie("cannonBall_mc", cannonBallName, cannonCount, {_x:-10, _y:10});
this[cannonBallName].pomeraj = 0;
this[cannonBallName].smerX = 0;
this[cannonBallName].smerY = -1;
}
if (this.spriteCannon_mc.cannonHitBox_mc.hitTest(_root.gameHolder_mc.game_mc.hero.heroHitBox)) {
this.puca = true;
this.spriteCannon_mc.gotoAndPlay("umri");
}
};
Symbol 57 MovieClip [chooseLevelTile_mc] Frame 1
var nivo = parseInt(this._name.substring(5, 7));
if (nivo <= _global.otkljucanihNivoa) {
this.locked_mc._visible = false;
this.nivoText_txt.text = nivo;
} else {
this.enabled = false;
this.nivoText_txt.text = "";
this.locked_mc._visible = true;
}
this.onRollOver = function () {
this._xscale = (this._yscale = 110);
};
this.onRollOut = function () {
this._xscale = (this._yscale = 100);
};
this.onRelease = function () {
_global.currentLevel = nivo;
_global.izbor = "pokreni";
this._parent._parent.play();
};
Symbol 68 MovieClip [endLevelTile_mc] Frame 1
this.stop();
Symbol 68 MovieClip [endLevelTile_mc] Frame 40
this.gotoAndPlay(21);
Symbol 84 MovieClip [heroDieAnim] Frame 26
_global.pauza = true;
_global.izbor = "failed";
_root.inGameMenu_mc.enabled = true;
_root.inGameMenu_mc._visible = true;
_root.inGameMenu_mc.gotoAndPlay(1);
this._parent.gotoAndStop(1);
Symbol 85 MovieClip [puffPass_mc] Frame 1
this.stop();
Symbol 85 MovieClip [puffPass_mc] Frame 17
this.removeMovieClip();
Symbol 89 MovieClip Frame 1
this._parent._parent.specialOn = true;
Symbol 89 MovieClip Frame 41
this._parent._parent.specialOn = false;
Symbol 89 MovieClip Frame 77
this._parent._parent.specialOn = true;
Symbol 89 MovieClip Frame 82
this.gotoAndPlay(1);
Symbol 90 MovieClip [skretalica_mc] Frame 1
this.onEnterFrame = function () {
if (_global.pauza == false) {
this.blink_mc.nextFrame();
} else {
this.blink_mc.stop();
}
};
Symbol 100 MovieClip Frame 100
stop();
Symbol 101 MovieClip [sprite02_mc] Frame 8
this.gotoAndPlay(1);
Symbol 101 MovieClip [sprite02_mc] Frame 72
trace(this._parent);
_global.enemyCounter--;
this._parent._parent.brojaci_mc.neprijatelja_txt.text = _global.enemyCounter;
if (_global.enemyCounter == 0) {
this._parent._parent.endLevel_mc.gotoAndPlay(2);
}
this._parent.removeMovieClip();
Symbol 108 MovieClip Frame 100
stop();
Symbol 109 MovieClip [sprite01_mc] Frame 8
this.gotoAndPlay(1);
Symbol 109 MovieClip [sprite01_mc] Frame 72
trace(this._parent);
_global.enemyCounter--;
this._parent._parent.brojaci_mc.neprijatelja_txt.text = _global.enemyCounter;
if (_global.enemyCounter == 0) {
this._parent._parent.endLevel_mc.gotoAndPlay(2);
}
this._parent.removeMovieClip();
Symbol 110 MovieClip [cekaj_mc] Frame 1
this.stop();
Symbol 110 MovieClip [cekaj_mc] Frame 60
this.stop();
this._parent.bezi = false;
this._parent.smer = this._parent.smer * -1;
this._parent.sprite01_mc._xscale = this._parent.sprite01_mc._xscale * -1;
this._parent.brzina = 1;
Symbol 111 MovieClip [enemy01_mc] Frame 1
this.onEnterFrame = function () {
if (_global.pauza == false) {
this.sprite01_mc.nextFrame();
if (this.bezi == true) {
this.cekaj_mc.nextFrame();
}
xxx_txt.text = this.tileY;
if (((this.tileY == this._parent.hero.tileY) && (this.bezi != true)) && ((this.smer * (this._parent.hero.tileX - this.tileX)) > 0)) {
this.bezi = true;
this.smer = this.smer * -1;
this.sprite01_mc._xscale = this.sprite01_mc._xscale * -1;
trace(" B E Z I ! ! ! ");
}
if (this.sprite01_mc.enemyHitBox.hitTest(_root.gameHolder_mc.game_mc.hero.heroHitBox)) {
this.sprite01_mc.gotoAndPlay("umri");
} else {
sledeciKorakY = Math.floor((this._y - 10) / _global.tileH);
sledeciKorakX = Math.floor(((this._x + (this.brzina * this.smer)) + (15 * this.smer)) / _global.tileW);
tileIspred = (("tile_" + sledeciKorakX) + "_") + sledeciKorakY;
tileIspredIspod = (("tile_" + sledeciKorakX) + "_") + (sledeciKorakY + 1);
if (((_root.gameHolder_mc.game_mc[tileIspred].special == "air") && (_root.gameHolder_mc.game_mc[tileIspredIspod].special != "air")) && (_root.gameHolder_mc.game_mc[tileIspredIspod].walkable != false)) {
this._x = this._x + (this.brzina * this.smer);
this.tileX = sledeciKorakX;
} else if (this.bezi == true) {
this.cekaj_mc.gotoAndPlay(2);
this.brzina = 0;
} else {
this.smer = this.smer * -1;
this.sprite01_mc._xscale = this.sprite01_mc._xscale * -1;
}
}
} else {
this.sprite01_mc.stop();
}
};
Symbol 112 MovieClip [enemy02_mc] Frame 1
this.onEnterFrame = function () {
if (_global.pauza == false) {
this.sprite01_mc.nextFrame();
if (this.sprite01_mc.enemyHitBox.hitTest(_root.gameHolder_mc.game_mc.hero.heroHitBox)) {
this.sprite01_mc.gotoAndPlay("umri");
}
} else {
this.sprite01_mc.stop();
}
};
Symbol 113 MovieClip [enemy03_mc] Frame 1
this.onEnterFrame = function () {
if (_global.pauza == false) {
this.sprite01_mc.nextFrame();
if (this.sprite01_mc.enemyHitBox.hitTest(_root.gameHolder_mc.game_mc.hero.heroHitBox)) {
this.sprite01_mc.gotoAndPlay("umri");
}
} else {
this.sprite01_mc.stop();
}
};
Symbol 116 MovieClip [heroSprite_mc] Frame 1
Symbol 117 MovieClip [hero_mc] Frame 1
heroSprite_mc.gotoAndStop(1);
this.onEnterFrame = function () {
_root.xtxt.text = this.tileX;
_root.ytxt.text = this.tileY;
if ((_global.pauza == false) && (_global.moving == true)) {
sledeciKorakX = Math.floor(((this._x + (this.smerX * 22)) + (this.smerX * this.brzina)) / _global.tileW);
sledeciKorakY = Math.floor(((this._y + (this.smerY * 22)) + (this.smerY * this.brzina)) / _global.tileH);
tileIspred = (("tile_" + sledeciKorakX) + "_") + sledeciKorakY;
switch (_root.gameHolder_mc.game_mc[tileIspred].special) {
case "air" :
this._x = this._x + (this.brzina * this.smerX);
this._y = this._y + (this.brzina * this.smerY);
this.tileX = sledeciKorakX;
this.tileY = sledeciKorakY;
if (this.brzina <= 16) {
this.brzina = this.brzina + 1;
}
break;
case "wall" :
this.tileX = sledeciKorakX - this.smerX;
this.tileY = sledeciKorakY - this.smerY;
this._x = (this.tileX * _global.tileW) + 22;
this._y = (this.tileY * _global.tileH) + 22;
this.brzina = 0;
_global.moving = false;
_root.gameHolder_mc.gotoAndPlay("shake");
break;
case "right" :
if (this.smerX == 1) {
this._x = this._x + (this.brzina * this.smerX);
this._y = this._y + (this.brzina * this.smerY);
this.tileX = sledeciKorakX;
this.tileY = sledeciKorakY;
if (this.brzina <= 16) {
this.brzina = this.brzina + 1;
}
} else {
this.tileX = sledeciKorakX - this.smerX;
this.tileY = sledeciKorakY - this.smerY;
this._x = (this.tileX * _global.tileW) + 22;
this._y = (this.tileY * _global.tileH) + 22;
this.brzina = 0;
_global.moving = false;
_root.gameHolder_mc.gotoAndPlay("shake");
}
break;
case "down" :
if (this.smerY == 1) {
this._x = this._x + (this.brzina * this.smerX);
this._y = this._y + (this.brzina * this.smerY);
this.tileX = sledeciKorakX;
this.tileY = sledeciKorakY;
if (this.brzina <= 16) {
this.brzina = this.brzina + 1;
}
} else {
this.tileX = sledeciKorakX - this.smerX;
this.tileY = sledeciKorakY - this.smerY;
this._x = (this.tileX * _global.tileW) + 22;
this._y = (this.tileY * _global.tileH) + 22;
this.brzina = 0;
_global.moving = false;
_root.gameHolder_mc.gotoAndPlay("shake");
}
break;
case "left" :
if (this.smerX == -1) {
this._x = this._x + (this.brzina * this.smerX);
this._y = this._y + (this.brzina * this.smerY);
this.tileX = sledeciKorakX;
this.tileY = sledeciKorakY;
if (this.brzina <= 16) {
this.brzina = this.brzina + 1;
}
} else {
this.tileX = sledeciKorakX - this.smerX;
this.tileY = sledeciKorakY - this.smerY;
this._x = (this.tileX * _global.tileW) + 22;
this._y = (this.tileY * _global.tileH) + 22;
this.brzina = 0;
_global.moving = false;
_root.gameHolder_mc.gotoAndPlay("shake");
}
break;
case "up" :
if (this.smerY == -1) {
this._x = this._x + (this.brzina * this.smerX);
this._y = this._y + (this.brzina * this.smerY);
this.tileX = sledeciKorakX;
this.tileY = sledeciKorakY;
if (this.brzina <= 16) {
this.brzina = this.brzina + 1;
}
} else {
this.tileX = sledeciKorakX - this.smerX;
this.tileY = sledeciKorakY - this.smerY;
this._x = (this.tileX * _global.tileW) + 22;
this._y = (this.tileY * _global.tileH) + 22;
this.brzina = 0;
_global.moving = false;
_root.gameHolder_mc.gotoAndPlay("shake");
}
break;
case "spikeLeft" :
if (this.smerX == -1) {
this.heroSprite_mc.gotoAndPlay("umri");
trace("UMRI!!!");
} else {
this.tileX = sledeciKorakX - this.smerX;
this.tileY = sledeciKorakY - this.smerY;
this._x = (this.tileX * _global.tileW) + 22;
this._y = (this.tileY * _global.tileH) + 22;
this.brzina = 0;
_global.moving = false;
_root.gameHolder_mc.gotoAndPlay("shake");
}
break;
case "spikeUp" :
if (this.smerY == 1) {
this.heroSprite_mc.gotoAndPlay("umri");
trace("UMRI!!!");
} else {
this.tileX = sledeciKorakX - this.smerX;
this.tileY = sledeciKorakY - this.smerY;
this._x = (this.tileX * _global.tileW) + 22;
this._y = (this.tileY * _global.tileH) + 22;
this.brzina = 0;
_global.moving = false;
_root.gameHolder_mc.gotoAndPlay("shake");
}
break;
case "spikeRight" :
if (this.smerX == 1) {
this.heroSprite_mc.gotoAndPlay("umri");
trace("UMRI!!!");
} else {
this.tileX = sledeciKorakX - this.smerX;
this.tileY = sledeciKorakY - this.smerY;
this._x = (this.tileX * _global.tileW) + 22;
this._y = (this.tileY * _global.tileH) + 22;
this.brzina = 0;
_global.moving = false;
_root.gameHolder_mc.gotoAndPlay("shake");
}
break;
case "spikeDown" :
if (this.smerY == -1) {
this.heroSprite_mc.gotoAndPlay("umri");
trace("UMRI!!!");
} else {
this.tileX = sledeciKorakX - this.smerX;
this.tileY = sledeciKorakY - this.smerY;
this._x = (this.tileX * _global.tileW) + 22;
this._y = (this.tileY * _global.tileH) + 22;
this.brzina = 0;
_global.moving = false;
_root.gameHolder_mc.gotoAndPlay("shake");
}
break;
case "cracked" :
trace("Napukla");
_root.gameHolder_mc.game_mc[tileIspred].cracked.gotoAndPlay(2);
_root.gameHolder_mc.game_mc[tileIspred].special = "air";
_root.gameHolder_mc.game_mc[tileIspred].walkable = true;
trace("Posle " + _root.gameHolder_mc.game_mc[tileIspred].special);
this.tileX = sledeciKorakX - this.smerX;
this.tileY = sledeciKorakY - this.smerY;
this._x = (this.tileX * _global.tileW) + 22;
this._y = (this.tileY * _global.tileH) + 22;
this.brzina = 0;
_global.moving = false;
_root.gameHolder_mc.gotoAndPlay("shake");
break;
case "turnRight" :
sledeci2KorakX = Math.floor((((this._x + (this.smerX * 22)) + ((this.smerX * 2) * this.brzina)) + this.smerX) / _global.tileW);
sledeci2KorakY = Math.floor((((this._y + (this.smerY * 22)) + ((this.smerY * 2) * this.brzina)) + this.smerY) / _global.tileH);
tile2Ispred = (("tile_" + sledeci2KorakX) + "_") + sledeci2KorakY;
trace(tileIspred);
trace(tile2Ispred);
if ((tileIspred != tile2Ispred) && (_root.gameHolder_mc.game_mc[tileIspred].specialOn == true)) {
this._x = (sledeciKorakX * _global.tileW) + 22;
this._y = (sledeciKorakY * _global.tileH) + 22;
this.tileX = sledeciKorakX;
this.tileY = sledeciKorakY;
this.smerX = 1;
this.smerY = 0;
} else {
this._x = this._x + (this.brzina * this.smerX);
this._y = this._y + (this.brzina * this.smerY);
this.tileX = sledeciKorakX;
this.tileY = sledeciKorakY;
if (this.brzina <= 16) {
this.brzina = this.brzina + 1;
}
}
break;
case "turnDown" :
sledeci2KorakX = Math.floor((((this._x + (this.smerX * 22)) + ((this.smerX * 2) * this.brzina)) + this.smerX) / _global.tileW);
sledeci2KorakY = Math.floor((((this._y + (this.smerY * 22)) + ((this.smerY * 2) * this.brzina)) + this.smerY) / _global.tileH);
tile2Ispred = (("tile_" + sledeci2KorakX) + "_") + sledeci2KorakY;
trace(tileIspred);
trace(tile2Ispred);
if ((tileIspred != tile2Ispred) && (_root.gameHolder_mc.game_mc[tileIspred].specialOn == true)) {
this._x = (sledeciKorakX * _global.tileW) + 22;
this._y = (sledeciKorakY * _global.tileH) + 22;
this.tileX = sledeciKorakX;
this.tileY = sledeciKorakY;
this.smerX = 0;
this.smerY = 1;
} else {
this._x = this._x + (this.brzina * this.smerX);
this._y = this._y + (this.brzina * this.smerY);
this.tileX = sledeciKorakX;
this.tileY = sledeciKorakY;
if (this.brzina <= 16) {
this.brzina = this.brzina + 1;
}
}
break;
case "turnLeft" :
sledeci2KorakX = Math.floor((((this._x + (this.smerX * 22)) + ((this.smerX * 2) * this.brzina)) + this.smerX) / _global.tileW);
sledeci2KorakY = Math.floor((((this._y + (this.smerY * 22)) + ((this.smerY * 2) * this.brzina)) + this.smerY) / _global.tileH);
tile2Ispred = (("tile_" + sledeci2KorakX) + "_") + sledeci2KorakY;
trace(tileIspred);
trace(tile2Ispred);
if ((tileIspred != tile2Ispred) && (_root.gameHolder_mc.game_mc[tileIspred].specialOn == true)) {
this._x = (sledeciKorakX * _global.tileW) + 22;
this._y = (sledeciKorakY * _global.tileH) + 22;
this.tileX = sledeciKorakX;
this.tileY = sledeciKorakY;
this.smerX = -1;
this.smerY = 0;
} else {
this._x = this._x + (this.brzina * this.smerX);
this._y = this._y + (this.brzina * this.smerY);
this.tileX = sledeciKorakX;
this.tileY = sledeciKorakY;
if (this.brzina <= 16) {
this.brzina = this.brzina + 1;
}
}
break;
case "turnUp" :
sledeci2KorakX = Math.floor((((this._x + (this.smerX * 22)) + ((this.smerX * 2) * this.brzina)) + this.smerX) / _global.tileW);
sledeci2KorakY = Math.floor((((this._y + (this.smerY * 22)) + ((this.smerY * 2) * this.brzina)) + this.smerY) / _global.tileH);
tile2Ispred = (("tile_" + sledeci2KorakX) + "_") + sledeci2KorakY;
trace(tileIspred);
trace(tile2Ispred);
if ((tileIspred != tile2Ispred) && (_root.gameHolder_mc.game_mc[tileIspred].specialOn == true)) {
this._x = (sledeciKorakX * _global.tileW) + 22;
this._y = (sledeciKorakY * _global.tileH) + 22;
this.tileX = sledeciKorakX;
this.tileY = sledeciKorakY;
this.smerX = 0;
this.smerY = -1;
} else {
this._x = this._x + (this.brzina * this.smerX);
this._y = this._y + (this.brzina * this.smerY);
this.tileX = sledeciKorakX;
this.tileY = sledeciKorakY;
if (this.brzina <= 16) {
this.brzina = this.brzina + 1;
}
}
break;
case "endLevel" :
if (_global.enemyCounter == 0) {
this._x = (sledeciKorakX * _global.tileW) + 22;
this._y = (sledeciKorakY * _global.tileH) + 22;
this.tileX = sledeciKorakX;
this.tileY = sledeciKorakY;
_global.pauza = true;
if (_global.currentLevel == 24) {
_global.izbor = "pobeda";
} else {
_global.izbor = "kraj";
}
_root.inGameMenu_mc.enabled = true;
_root.inGameMenu_mc._visible = true;
_root.inGameMenu_mc.gotoAndPlay(1);
} else {
this.tileX = sledeciKorakX - this.smerX;
this.tileY = sledeciKorakY - this.smerY;
this._x = (this.tileX * _global.tileW) + 22;
this._y = (this.tileY * _global.tileH) + 22;
this.brzina = 0;
_global.moving = false;
_root.gameHolder_mc.gotoAndPlay("shake");
}
}
}
};
Symbol 130 MovieClip [crackedIce_mc] Frame 1
this.stop();
Symbol 130 MovieClip [crackedIce_mc] Frame 13
this._parent.gotoAndStop(1);
Symbol 153 MovieClip [background_mc] Frame 1
this.stop();
Symbol 171 Button
on (release) {
_root.soundsw = 0;
_root.soundon = false;
_root.gameSound.setVolume(0);
gotoAndStop (2);
}
Symbol 173 Button
on (press) {
_root.soundsw = 1;
_root.soundon = true;
_root.gameSound.setVolume(30);
gotoAndStop (1);
}
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 2
stop();
Symbol 181 MovieClip Frame 1
stop();
Instance of Symbol 174 MovieClip "sndbtn" in Symbol 182 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.soundsw == 0) {
this.gotoAndStop(2);
}
if (_root.soundsw == 1) {
this.gotoAndStop(1);
}
}
Symbol 183 MovieClip [game_mc] Frame 1
function buildMap(map) {
_global.moving = false;
brojaci_mc.rezultat_txt.text = _global.totalScore;
a = 0;
while (a < 25) {
this["enemy_" + a].removeMovieClip();
this["cannon_" + a].removeMovieClip();
a++;
}
background_mc.gotoAndStop(_global.currentLevel);
var _local8 = map[0].length;
var _local9 = map.length;
_global.enemyCounter = 0;
_global.cannonCounter = 0;
_global.timer = 0;
_root.gameHolder_mc.game_mc.brojaci_mc.sec10_txt.text = 0;
_root.gameHolder_mc.game_mc.brojaci_mc.sec_txt.text = 0;
_root.gameHolder_mc.game_mc.brojaci_mc.min10_txt.text = 0;
_root.gameHolder_mc.game_mc.brojaci_mc.min_txt.text = 0;
var _local6 = 0;
while (_local6 < _local9) {
var _local5 = 0;
while (_local5 < _local8) {
var _local4 = (("tile_" + _local5) + "_") + _local6;
_local4 = this.attachMovie("tile", _local4, (_local6 * 100) + (_local5 * 2));
_local4.tileX = _local5;
_local4.tileY = _local6;
_local4._x = _global.ofsetX + (_local5 * _global.tileW);
_local4._y = _global.ofsetY + (_local6 * _global.tileH);
_local4.gotoAndStop(map[_local6][_local5]);
switch (map[_local6][_local5]) {
case 1 :
_local4.walkable = false;
_local4.special = "air";
break;
case 10 :
_local4.walkable = true;
_local4.special = "wall";
break;
case 11 :
_local4.walkable = true;
_local4.special = "wall";
break;
case 12 :
_local4.walkable = true;
_local4.special = "wall";
break;
case 13 :
_local4.walkable = true;
_local4.special = "wall";
break;
case 14 :
_local4.walkable = true;
_local4.special = "wall";
break;
case 15 :
_local4.walkable = true;
_local4.special = "wall";
break;
case 16 :
_local4.walkable = true;
_local4.special = "wall";
break;
case 17 :
_local4.walkable = true;
_local4.special = "wall";
break;
case 18 :
_local4.walkable = true;
_local4.special = "wall";
break;
case 19 :
_local4.walkable = true;
_local4.special = "wall";
break;
case 20 :
_local4.walkable = true;
_local4.special = "right";
break;
case 25 :
_local4.walkable = true;
_local4.special = "down";
break;
case 30 :
_local4.walkable = true;
_local4.special = "left";
break;
case 35 :
_local4.walkable = true;
_local4.special = "up";
break;
case 40 :
_local4.special = "cracked";
_local4.walkable = true;
break;
case 50 :
_local4.special = "down";
_local4.walkable = false;
break;
case 60 :
_local4.special = "spikeLeft";
_local4.walkable = false;
break;
case 65 :
_local4.special = "spikeDown";
_local4.walkable = false;
break;
case 70 :
_local4.special = "spikeRight";
_local4.walkable = false;
break;
case 75 :
_local4.special = "spikeUp";
_local4.walkable = false;
break;
case 120 :
_local4.special = "turnRight";
_local4.walkable = false;
break;
case 125 :
_local4.special = "turnDown";
_local4.walkable = false;
break;
case 130 :
_local4.special = "turnLeft";
_local4.walkable = false;
break;
case 135 :
_local4.special = "turnUp";
_local4.walkable = false;
break;
case 210 :
_local4.walkable = true;
_local4.special = "air";
enemyName = "enemy_" + _global.enemyCounter;
trace(enemyName);
this.attachMovie("enemy01_mc", enemyName, _global.enemyCounter + 8500);
_global.enemyArr.push(enemyName);
this[enemyName]._x = (_global.ofsetX + (_local5 * _global.tileW)) + 20;
this[enemyName]._y = _global.ofsetY + ((_local6 + 1) * _global.tileH);
this[enemyName].tileX = _local5;
this[enemyName].tileY = _local6;
this[enemyName].brzina = 3;
this[enemyName].smer = 1;
_global.enemyCounter++;
break;
case 220 :
_local4.walkable = true;
_local4.special = "air";
enemyName = "enemy_" + _global.enemyCounter;
trace(enemyName);
this.attachMovie("enemy01_mc", enemyName, _global.enemyCounter + 8500);
_global.enemyCounter++;
_global.enemyArr.push(enemyName);
this[enemyName]._x = (_global.ofsetX + (_local5 * _global.tileW)) + 20;
this[enemyName]._y = _global.ofsetY + ((_local6 + 1) * _global.tileH);
this[enemyName].tileX = _local5;
this[enemyName].tileY = _local6;
this[enemyName].brzina = 3;
this[enemyName].smer = 1;
break;
case 230 :
_local4.walkable = true;
_local4.special = "air";
enemyName = "enemy_" + _global.enemyCounter;
trace(enemyName);
this.attachMovie("enemy02_mc", enemyName, _global.enemyCounter + 8500);
_global.enemyArr.push(enemyName);
this[enemyName]._x = (_global.ofsetX + (_local5 * _global.tileW)) + 20;
this[enemyName]._y = _global.ofsetY + ((_local6 + 1) * _global.tileH);
this[enemyName].tileX = _local5;
this[enemyName].tileY = _local6;
_global.enemyCounter++;
break;
case 240 :
_local4.walkable = true;
_local4.special = "air";
enemyName = "enemy_" + _global.enemyCounter;
trace(enemyName);
this.attachMovie("enemy03_mc", enemyName, _global.enemyCounter + 8500);
_global.enemyArr.push(enemyName);
this[enemyName]._x = (_global.ofsetX + (_local5 * _global.tileW)) + 20;
this[enemyName]._y = _global.ofsetY + ((_local6 + 1) * _global.tileH);
this[enemyName].tileX = _local5;
this[enemyName].tileY = _local6;
_global.enemyCounter++;
break;
case 280 :
_local4.walkable = false;
_local4.special = "wall";
cannonName = "cannon_" + _global.cannonCounter;
trace(cannonName);
this.attachMovie("cannonSprite_mc", cannonName, _global.cannonCounter + 8800);
_global.cannonCounter++;
_global.cannonArr.push(cannonName);
this[cannonName]._x = _global.ofsetX + (_local5 * _global.tileW);
this[cannonName]._y = _global.ofsetY + (_local6 * _global.tileH);
this[cannonName].tileX = _local5;
this[cannonName].tileY = _local6;
this[cannonName].smer = -1;
break;
case 290 :
_local4.walkable = false;
_local4.special = "wall";
cannonName = "cannon_" + _global.cannonCounter;
trace(cannonName);
this.attachMovie("cannonSpriteDole_mc", cannonName, _global.cannonCounter + 8800);
_global.cannonCounter++;
_global.cannonArr.push(cannonName);
this[cannonName]._x = _global.ofsetX + (_local5 * _global.tileW);
this[cannonName]._y = _global.ofsetY + (_local6 * _global.tileH);
this[cannonName].tileX = _local5;
this[cannonName].tileY = _local6;
this[cannonName].smer = 1;
break;
case 300 :
_local4.walkable = false;
_local4.special = "wall";
cannonName = "cannon_" + _global.cannonCounter;
trace(cannonName);
this.attachMovie("cannonSpriteDesno_mc", cannonName, _global.cannonCounter + 8800);
_global.cannonCounter++;
_global.cannonArr.push(cannonName);
this[cannonName]._x = _global.ofsetX + (_local5 * _global.tileW);
this[cannonName]._y = _global.ofsetY + (_local6 * _global.tileH);
this[cannonName].tileX = _local5;
this[cannonName].tileY = _local6;
this[cannonName].smer = 1;
break;
case 310 :
_local4.walkable = false;
_local4.special = "wall";
cannonName = "cannon_" + _global.cannonCounter;
trace(cannonName);
this.attachMovie("cannonSpriteGore_mc", cannonName, _global.cannonCounter + 8800);
_global.cannonCounter++;
_global.cannonArr.push(cannonName);
this[cannonName]._x = _global.ofsetX + (_local5 * _global.tileW);
this[cannonName]._y = _global.ofsetY + (_local6 * _global.tileH);
this[cannonName].tileX = _local5;
this[cannonName].tileY = _local6;
this[cannonName].smer = 1;
break;
case 390 :
_local4.walkable = false;
_local4.special = "endLevel";
this.attachMovie("endLevelTile_mc", "endLevel_mc", 8010);
this.endLevel_mc._x = _global.ofsetX + (_local5 * _global.tileW);
this.endLevel_mc._y = _global.ofsetY + (_local6 * _global.tileH);
break;
case 400 :
_local4.walkable = true;
_local4.special = "air";
this.attachMovie("hero_mc", "hero", 8000);
this.hero._x = (_global.ofsetX + (_local5 * _global.tileW)) + 22;
this.hero._y = (_global.ofsetY + (_local6 * _global.tileH)) + 22;
this.hero.brzina = 3;
this.hero.smerX = -1;
this.hero.smerY = 0;
}
_local5++;
}
_local6++;
}
this.brojaci_mc.neprijatelja_txt.text = _global.enemyCounter;
trace("map built");
trace("enemyArr " + _global.enemyArr);
trace("cannonArr " + _global.cannonArr);
}
_global.ofsetX = 0;
_global.ofsetY = 0;
_global.tileW = 44;
_global.tileH = 44;
_global.mapHeight = 14;
_global.mapWidth = 18;
_global.enemyArr = [];
_global.enemyCounter = 0;
_global.cannonArr = [];
_global.cannonCounter = 0;
switch (_global.currentLevel) {
case 1 :
_global.hintText = "Hint: Use the arrow keys to move. Kill all the aliens to open the padlock to exit the level!";
break;
case 2 :
_global.hintText = "";
break;
case 3 :
_global.hintText = "Hint: The cracked ice blocks will disappear when you smash into them.";
break;
case 4 :
_global.hintText = "Hint: If you get stuck, press R to reset the level.";
break;
case 5 :
_global.hintText = "Hint: Avoid the icicles, they are deadly!";
break;
case 6 :
_global.hintText = "";
break;
case 7 :
_global.hintText = "";
break;
case 8 :
_global.hintText = "Hint: These arrows can only be passed in one direction!";
break;
case 9 :
_global.hintText = "";
break;
case 10 :
_global.hintText = "";
break;
case 11 :
_global.hintText = "Hint: Catch a ride on these arrows... if you time it right!";
break;
case 12 :
_global.hintText = "";
break;
case 13 :
_global.hintText = "";
break;
case 14 :
_global.hintText = "";
break;
case 15 :
_global.hintText = "";
break;
case 16 :
_global.hintText = "";
break;
case 17 :
_global.hintText = "";
break;
case 18 :
_global.hintText = "";
break;
case 19 :
_global.hintText = "";
break;
case 20 :
_global.hintText = "";
break;
case 21 :
_global.hintText = "";
break;
case 22 :
_global.hintText = "";
break;
case 23 :
_global.hintText = "";
break;
case 24 :
_global.hintText = "";
}
brojaci_mc.swapDepths(9900);
brojaci_mc.pauza_btn.onRelease = function () {
_global.pauza = true;
_global.izbor = "pauziraj";
_root.inGameMenu_mc.enabled = true;
_root.inGameMenu_mc._visible = true;
_root.inGameMenu_mc.gotoAndPlay(1);
};
brojaci_mc.quit_btn.onRelease = function () {
_global.izbor = "kraj";
_root.gotoAndStop(30);
};
brojaci_mc.resetlevel_btn.onRelease = function () {
_root.gameHolder_mc.game_mc.buildMap(_root.gameHolder_mc.game_mc.maplevel01);
_global.pauza = !_global.pauza;
_root.gameHolder_mc.gotoAndPlay(25);
};
maplevel1 = [[10, 15, 10, 10, 17, 14, 17, 16, 16, 10, 19, 12, 13, 12, 10, 10, 18, 12], [15, 400, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10], [16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12], [12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 230, 1, 1, 1, 230, 1, 1, 14], [40, 1, 1, 1, 1, 1, 1, 1, 1, 1, 40, 12, 18, 40, 40, 15, 14, 15], [13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 18], [10, 1, 1, 1, 1, 1, 1, 230, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12], [15, 15, 13, 17, 19, 16, 13, 40, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17], [16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11], [17, 1, 1, 1, 1, 1, 1, 1, 1, 1, 230, 1, 1, 1, 230, 1, 1, 17], [15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 40, 16, 10, 11, 40, 11, 17, 10], [10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 16], [12, 1, 1, 1, 230, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 390], [11, 15, 10, 13, 40, 18, 15, 12, 10, 10, 10, 40, 10, 10, 14, 10, 19, 16]];
maplevel2 = [[10, 10, 12, 12, 16, 10, 16, 18, 10, 10, 12, 10, 10, 10, 10, 10, 390, 10], [12, 1, 1, 1, 230, 1, 1, 1, 1, 1, 1, 240, 1, 1, 400, 19, 1, 10], [17, 1, 1, 1, 40, 40, 40, 40, 40, 40, 40, 40, 1, 1, 1, 15, 1, 10], [10, 1, 1, 1, 1, 15, 18, 40, 40, 11, 13, 1, 1, 1, 1, 15, 1, 10], [10, 1, 1, 1, 1, 1, 15, 40, 40, 10, 1, 1, 1, 1, 1, 14, 1, 10], [18, 1, 1, 1, 1, 1, 1, 40, 40, 1, 1, 1, 1, 1, 1, 12, 1, 10], [17, 230, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10], [14, 12, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 13, 10], [10, 1, 1, 1, 1, 1, 1, 220, 1, 1, 1, 1, 1, 1, 1, 10, 12, 10], [10, 1, 1, 1, 11, 17, 12, 19, 12, 17, 12, 19, 1, 1, 1, 12, 40, 10], [10, 1, 1, 1, 1, 1, 40, 13, 17, 40, 1, 1, 1, 1, 1, 12, 19, 10], [10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 16, 17, 40], [11, 1, 220, 1, 1, 1, 1, 1, 1, 1, 1, 210, 1, 1, 1, 17, 11, 11], [11, 12, 11, 10, 11, 10, 19, 10, 10, 11, 10, 10, 10, 10, 10, 40, 10, 10]];
maplevel3 = [[10, 15, 15, 12, 10, 18, 18, 17, 12, 10, 16, 10, 11, 11, 10, 17, 10, 10], [10, 400, 1, 1, 1, 230, 1, 1, 1, 1, 1, 1, 1, 1, 1, 240, 1, 10], [10, 10, 12, 17, 12, 40, 11, 17, 18, 12, 40, 19, 11, 14, 12, 40, 40, 10], [15, 11, 16, 19, 14, 14, 15, 12, 17, 11, 10, 11, 10, 10, 16, 40, 40, 18], [10, 1, 1, 1, 1, 1, 230, 1, 1, 1, 1, 240, 1, 1, 1, 1, 1, 14], [19, 40, 40, 15, 15, 14, 40, 16, 16, 17, 10, 40, 14, 13, 16, 18, 10, 10], [10, 40, 40, 16, 11, 16, 40, 14, 14, 14, 16, 14, 14, 12, 10, 18, 16, 10], [10, 1, 1, 1, 1, 240, 1, 1, 1, 1, 1, 1, 230, 1, 1, 1, 1, 10], [10, 10, 19, 15, 12, 40, 17, 11, 18, 17, 18, 19, 40, 11, 12, 40, 40, 15], [10, 19, 16, 14, 19, 19, 12, 40, 16, 16, 10, 10, 18, 15, 13, 40, 40, 10], [15, 1, 1, 1, 1, 240, 1, 1, 1, 1, 1, 230, 1, 1, 1, 1, 1, 10], [18, 40, 40, 12, 12, 40, 18, 19, 11, 40, 13, 40, 18, 10, 10, 14, 14, 10], [15, 40, 40, 16, 15, 10, 15, 10, 19, 11, 12, 11, 12, 14, 18, 18, 19, 12], [10, 390, 10, 10, 10, 13, 10, 10, 15, 10, 10, 10, 16, 10, 15, 10, 10, 13]];
maplevel4 = [[10, 15, 11, 19, 16, 15, 17, 19, 10, 14, 18, 13, 10, 17, 10, 17, 19, 15], [390, 40, 1, 1, 1, 1, 1, 40, 40, 40, 40, 1, 1, 1, 1, 1, 40, 10], [19, 1, 1, 1, 1, 1, 1, 1, 40, 40, 1, 1, 1, 220, 1, 1, 1, 11], [16, 1, 1, 40, 40, 1, 1, 1, 17, 17, 1, 1, 1, 40, 40, 1, 1, 18], [16, 1, 1, 40, 40, 1, 1, 1, 14, 18, 1, 1, 1, 40, 40, 1, 1, 12], [14, 1, 1, 1, 1, 1, 1, 1, 19, 16, 1, 1, 1, 1, 1, 1, 1, 12], [10, 400, 1, 1, 1, 1, 1, 1, 10, 16, 1, 1, 1, 1, 1, 1, 1, 17], [10, 40, 1, 1, 220, 1, 1, 40, 17, 14, 40, 1, 1, 220, 1, 1, 40, 10], [10, 40, 18, 11, 13, 10, 17, 40, 12, 12, 40, 17, 12, 12, 17, 18, 40, 10], [10, 1, 12, 14, 1, 16, 13, 1, 14, 19, 1, 19, 12, 1, 11, 19, 1, 11], [10, 1, 15, 11, 1, 14, 11, 1, 16, 12, 1, 16, 11, 1, 14, 18, 1, 10], [10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10], [12, 1, 220, 1, 1, 1, 1, 1, 220, 1, 1, 1, 1, 220, 1, 1, 220, 15], [16, 10, 11, 10, 12, 13, 11, 15, 13, 18, 10, 17, 14, 10, 16, 19, 10, 10]];
maplevel5 = [[10, 40, 65, 65, 65, 65, 65, 65, 65, 65, 10, 10, 12, 13, 13, 11, 390, 18], [11, 16, 40, 1, 1, 1, 1, 1, 1, 70, 19, 1, 1, 1, 1, 1, 1, 11], [10, 14, 18, 40, 1, 1, 1, 1, 1, 70, 16, 1, 1, 1, 1, 1, 1, 18], [12, 13, 19, 10, 40, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10], [15, 1, 1, 1, 210, 1, 1, 1, 1, 1, 1, 1, 1, 1, 220, 1, 1, 16], [18, 1, 1, 40, 19, 19, 40, 15, 40, 11, 18, 1, 12, 13, 13, 19, 1, 10], [17, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14], [17, 1, 1, 1, 40, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 40, 17], [10, 1, 40, 19, 17, 1, 230, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 13], [19, 1, 12, 14, 15, 1, 40, 16, 14, 12, 11, 1, 1, 1, 1, 1, 1, 14], [13, 1, 1, 16, 18, 1, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12], [10, 1, 1, 1, 19, 1, 19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10], [19, 400, 1, 1, 1, 1, 19, 1, 1, 1, 220, 1, 1, 1, 1, 1, 1, 13], [11, 10, 12, 14, 11, 10, 15, 75, 75, 11, 14, 13, 17, 18, 75, 75, 75, 15]];
maplevel6 = [[10, 14, 18, 13, 18, 10, 15, 15, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10], [10, 40, 12, 400, 1, 1, 10, 1, 1, 1, 1, 1, 1, 1, 1, 11, 14, 10], [10, 16, 1, 1, 1, 1, 40, 230, 1, 1, 1, 240, 1, 1, 1, 1, 14, 13], [13, 1, 1, 1, 1, 1, 15, 17, 13, 17, 10, 40, 1, 1, 1, 1, 1, 13], [10, 1, 1, 1, 1, 1, 10, 65, 65, 65, 65, 40, 1, 1, 1, 1, 1, 16], [19, 40, 1, 1, 1, 1, 19, 18, 10, 11, 12, 15, 1, 1, 1, 1, 1, 10], [10, 1, 1, 1, 1, 1, 1, 220, 1, 1, 220, 1, 1, 1, 1, 1, 1, 390], [13, 1, 1, 1, 1, 1, 17, 10, 18, 18, 18, 13, 1, 1, 1, 1, 1, 10], [10, 1, 1, 1, 1, 1, 16, 75, 75, 75, 75, 16, 1, 1, 1, 1, 1, 17], [12, 1, 1, 1, 1, 40, 14, 19, 19, 18, 10, 10, 1, 1, 1, 1, 1, 10], [10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 40, 1, 1, 1, 1, 1, 10], [40, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 10], [12, 15, 10, 1, 1, 1, 1, 220, 1, 1, 220, 1, 1, 1, 1, 40, 14, 40], [16, 15, 40, 10, 10, 10, 10, 15, 10, 10, 17, 10, 10, 17, 13, 10, 12, 10]];
maplevel7 = [[40, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 40], [60, 1, 1, 1, 1, 1, 1, 40, 1, 1, 1, 1, 1, 1, 1, 40, 1, 70], [60, 1, 40, 1, 1, 1, 40, 1, 1, 1, 1, 1, 1, 1, 1, 1, 40, 70], [60, 1, 1, 1, 1, 1, 1, 1, 1, 1, 40, 1, 1, 1, 40, 1, 1, 70], [60, 1, 1, 40, 1, 1, 1, 1, 1, 1, 40, 1, 1, 1, 1, 1, 1, 70], [60, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 70], [60, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 70], [60, 40, 1, 1, 1, 40, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 70], [60, 1, 1, 1, 1, 1, 220, 1, 1, 1, 1, 1, 1, 1, 220, 1, 40, 70], [60, 1, 1, 1, 40, 1, 14, 13, 1, 40, 1, 1, 1, 1, 40, 1, 40, 70], [60, 1, 1, 1, 1, 1, 14, 390, 1, 1, 1, 1, 1, 1, 1, 1, 1, 70], [60, 1, 1, 1, 1, 1, 13, 15, 1, 1, 1, 1, 1, 1, 1, 40, 1, 70], [60, 40, 1, 40, 1, 1, 400, 11, 1, 1, 1, 40, 1, 1, 1, 1, 1, 70], [40, 75, 75, 75, 75, 75, 10, 10, 75, 75, 75, 75, 75, 75, 75, 75, 75, 40]];
maplevel8 = [[13, 10, 65, 65, 10, 16, 13, 13, 13, 15, 13, 19, 40, 65, 65, 65, 65, 14], [10, 1, 1, 1, 40, 1, 1, 1, 1, 1, 1, 1, 20, 1, 1, 1, 1, 12], [12, 1, 1, 1, 40, 1, 1, 1, 1, 1, 1, 1, 20, 1, 1, 1, 1, 17], [10, 1, 40, 40, 40, 1, 1, 1, 1, 1, 1, 1, 30, 1, 1, 220, 1, 10], [10, 1, 1, 1, 1, 1, 1, 1, 1, 40, 40, 40, 10, 16, 14, 18, 18, 13], [16, 1, 1, 1, 1, 40, 25, 25, 25, 40, 1, 1, 1, 1, 1, 1, 1, 10], [10, 1, 1, 1, 1, 20, 1, 1, 1, 30, 1, 1, 1, 1, 1, 1, 1, 10], [10, 1, 1, 1, 1, 20, 1, 1, 1, 30, 1, 1, 1, 1, 1, 1, 1, 17], [10, 1, 1, 1, 1, 20, 1, 1, 1, 30, 1, 1, 220, 1, 1, 1, 1, 10], [14, 1, 1, 1, 1, 40, 35, 35, 35, 40, 25, 25, 25, 12, 35, 35, 25, 10], [10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 1, 1, 1, 10], [12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 16, 1, 1, 1, 17], [10, 13, 1, 220, 1, 1, 220, 1, 1, 1, 1, 220, 1, 10, 400, 1, 1, 390], [19, 10, 11, 18, 13, 17, 15, 10, 10, 10, 10, 12, 10, 10, 17, 10, 14, 10]];
maplevel9 = [[10, 16, 10, 17, 10, 15, 10, 15, 65, 10, 17, 10, 12, 10, 10, 15, 19, 15], [18, 65, 65, 65, 65, 65, 65, 14, 1, 15, 65, 65, 65, 65, 65, 65, 65, 12], [17, 1, 1, 1, 1, 1, 1, 10, 1, 13, 1, 1, 1, 1, 1, 1, 1, 16], [10, 35, 35, 25, 1, 1, 25, 14, 25, 18, 40, 1, 1, 1, 25, 35, 35, 10], [10, 1, 1, 1, 1, 1, 1, 40, 1, 40, 1, 1, 1, 1, 1, 1, 1, 17], [13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10], [10, 1, 1, 1, 30, 1, 1, 1, 1, 1, 1, 1, 20, 1, 1, 1, 1, 11], [10, 1, 1, 1, 30, 1, 1, 1, 1, 1, 1, 1, 20, 1, 1, 1, 1, 15], [18, 1, 1, 1, 30, 1, 1, 230, 1, 240, 1, 1, 20, 1, 1, 1, 1, 17], [10, 1, 1, 1, 1, 1, 1, 14, 35, 10, 1, 1, 1, 1, 1, 1, 1, 17], [10, 25, 1, 1, 1, 1, 1, 19, 1, 19, 1, 1, 1, 1, 1, 1, 25, 19], [13, 1, 1, 1, 1, 1, 1, 15, 1, 19, 1, 1, 1, 1, 1, 1, 1, 13], [10, 75, 75, 75, 1, 1, 220, 10, 400, 390, 220, 1, 1, 1, 75, 75, 75, 10], [17, 10, 10, 14, 10, 13, 13, 13, 11, 10, 10, 12, 18, 10, 10, 18, 10, 10]];
maplevel10 = [[10, 10, 12, 65, 65, 65, 15, 10, 19, 10, 10, 65, 65, 65, 65, 13, 10, 18], [10, 17, 14, 1, 1, 1, 12, 10, 18, 14, 10, 1, 1, 1, 1, 17, 18, 14], [10, 16, 1, 1, 220, 1, 1, 17, 14, 18, 1, 1, 1, 220, 1, 1, 14, 11], [12, 1, 1, 14, 16, 15, 1, 1, 10, 1, 1, 14, 11, 18, 19, 1, 1, 15], [12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10], [12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 220, 1, 1, 15], [19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 25, 25, 25, 25, 25, 14], [13, 1, 1, 1, 1, 1, 1, 230, 1, 240, 1, 1, 1, 1, 1, 1, 1, 10], [10, 1, 1, 25, 25, 25, 25, 30, 1, 20, 1, 1, 1, 1, 1, 1, 1, 10], [11, 1, 1, 1, 1, 1, 1, 30, 35, 25, 1, 1, 1, 1, 1, 1, 1, 19], [10, 1, 1, 1, 1, 1, 1, 20, 1, 1, 1, 1, 1, 1, 1, 1, 230, 10], [11, 13, 1, 1, 1, 1, 1, 30, 1, 1, 1, 1, 1, 1, 1, 1, 14, 10], [13, 12, 14, 400, 1, 1, 1, 30, 1, 1, 1, 1, 1, 1, 220, 13, 18, 10], [10, 15, 10, 19, 15, 10, 12, 16, 390, 75, 75, 75, 75, 10, 10, 12, 15, 10]];
maplevel11 = [[10, 10, 12, 14, 10, 16, 10, 19, 10, 17, 14, 10, 15, 10, 390, 10, 10, 18], [10, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 1, 65, 65, 10], [11, 60, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 70, 17], [10, 60, 1, 40, 1, 1, 220, 220, 220, 220, 220, 220, 1, 1, 130, 1, 70, 10], [18, 60, 1, 1, 1, 11, 19, 10, 11, 12, 13, 18, 10, 1, 1, 1, 70, 18], [10, 60, 120, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 40, 70, 10], [10, 60, 1, 1, 230, 1, 1, 1, 125, 1, 1, 1, 1, 1, 1, 1, 70, 10], [15, 60, 1, 1, 40, 1, 1, 10, 400, 1, 1, 1, 1, 1, 135, 1, 70, 10], [10, 60, 1, 1, 1, 40, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 70, 13], [10, 60, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 1, 1, 1, 70, 15], [13, 60, 1, 1, 40, 1, 1, 1, 130, 1, 1, 1, 1, 1, 1, 40, 70, 10], [18, 60, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 70, 19], [10, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 10], [10, 10, 18, 10, 10, 13, 10, 10, 10, 12, 10, 15, 15, 18, 10, 10, 10, 15]];
maplevel12 = [[40, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 13], [15, 40, 1, 1, 1, 1, 1, 1, 125, 125, 1, 1, 1, 1, 1, 1, 30, 10], [12, 1, 1, 1, 220, 1, 1, 1, 125, 125, 240, 240, 240, 240, 240, 1, 30, 12], [18, 1, 1, 15, 15, 16, 18, 19, 1, 1, 11, 11, 13, 18, 40, 1, 30, 10], [11, 1, 1, 1, 1, 1, 1, 1, 75, 75, 1, 40, 40, 25, 25, 25, 25, 10], [11, 135, 1, 220, 220, 1, 130, 70, 19, 15, 60, 1, 1, 1, 1, 1, 1, 18], [10, 11, 10, 11, 10, 11, 1, 70, 17, 11, 60, 1, 125, 1, 1, 130, 1, 15], [17, 1, 1, 1, 1, 1, 1, 70, 15, 16, 60, 1, 1, 1, 75, 75, 75, 10], [10, 1, 1, 120, 1, 240, 135, 70, 16, 15, 60, 1, 1, 1, 19, 10, 18, 18], [10, 14, 19, 1, 11, 16, 14, 60, 65, 65, 1, 75, 120, 1, 1, 1, 1, 10], [10, 65, 65, 1, 30, 14, 125, 1, 1, 130, 70, 10, 75, 75, 75, 75, 240, 10], [15, 1, 1, 1, 30, 14, 1, 13, 60, 1, 70, 16, 12, 16, 14, 10, 40, 10], [10, 400, 1, 1, 30, 390, 130, 11, 60, 135, 1, 1, 40, 40, 40, 40, 40, 10], [10, 17, 19, 10, 10, 14, 10, 11, 10, 10, 13, 10, 14, 10, 10, 10, 10, 15]];
maplevel13 = [[15, 10, 10, 19, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 13, 10, 12, 18], [10, 15, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 65, 19, 13, 10], [10, 13, 1, 1, 125, 1, 1, 1, 1, 1, 1, 1, 1, 130, 1, 65, 11, 10], [10, 1, 1, 1, 1, 1, 120, 220, 1, 220, 1, 1, 1, 1, 40, 1, 65, 12], [12, 19, 18, 14, 40, 16, 1, 17, 19, 14, 15, 1, 1, 1, 1, 1, 1, 10], [18, 1, 1, 1, 1, 1, 1, 1, 40, 1, 1, 1, 1, 1, 1, 1, 1, 10], [10, 400, 1, 1, 1, 1, 1, 1, 120, 1, 1, 1, 135, 1, 1, 1, 130, 10], [10, 17, 17, 19, 18, 1, 1, 1, 1, 1, 1, 14, 17, 1, 1, 1, 1, 12], [16, 390, 1, 1, 120, 1, 1, 1, 1, 1, 1, 1, 40, 1, 1, 1, 1, 14], [13, 1, 1, 1, 1, 1, 135, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10], [10, 1, 1, 1, 1, 1, 220, 220, 220, 220, 1, 1, 1, 230, 1, 1, 1, 13], [12, 14, 1, 1, 1, 25, 25, 25, 25, 25, 25, 1, 1, 25, 1, 1, 30, 10], [10, 16, 18, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 16], [10, 15, 10, 12, 10, 11, 18, 10, 10, 12, 10, 10, 14, 10, 10, 10, 14, 10]];
maplevel14 = [[10, 14, 10, 10, 10, 10, 14, 10, 13, 10, 12, 10, 13, 14, 10, 10, 10, 13], [10, 1, 1, 1, 1, 1, 1, 1, 20, 1, 1, 1, 1, 1, 1, 1, 1, 11], [18, 1, 1, 1, 1, 1, 1, 1, 20, 220, 1, 1, 220, 1, 1, 1, 1, 12], [10, 240, 1, 1, 10, 35, 35, 18, 17, 13, 15, 13, 18, 11, 13, 25, 25, 19], [10, 10, 1, 1, 16, 1, 1, 1, 14, 1, 1, 1, 1, 1, 40, 1, 1, 10], [17, 1, 1, 1, 11, 1, 1, 1, 20, 1, 1, 1, 1, 1, 40, 1, 1, 11], [19, 1, 1, 230, 14, 400, 1, 1, 20, 1, 1, 1, 1, 1, 40, 1, 1, 10], [10, 1, 1, 19, 13, 25, 25, 18, 11, 1, 1, 1, 1, 1, 40, 1, 1, 19], [10, 1, 1, 1, 15, 1, 1, 20, 1, 1, 1, 1, 1, 1, 40, 1, 1, 10], [15, 240, 1, 1, 13, 1, 1, 20, 1, 1, 220, 220, 1, 1, 40, 230, 1, 17], [10, 14, 1, 1, 12, 1, 1, 19, 18, 12, 14, 18, 16, 17, 40, 25, 25, 19], [13, 1, 1, 1, 19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10], [10, 1, 1, 1, 40, 1, 220, 1, 220, 1, 220, 1, 220, 1, 1, 1, 1, 10], [10, 390, 15, 10, 19, 11, 10, 10, 10, 11, 13, 17, 16, 10, 15, 10, 10, 17]];
maplevel15 = [[15, 17, 11, 16, 10, 12, 17, 19, 10, 10, 17, 15, 10, 13, 10, 40, 40, 15], [10, 65, 65, 1, 65, 1, 65, 65, 65, 65, 1, 65, 70, 40, 17, 40, 65, 17], [10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 70, 16, 65, 65, 1, 13], [10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 30, 65, 1, 1, 40, 10], [11, 120, 1, 1, 1, 230, 1, 240, 1, 230, 1, 1, 30, 1, 1, 40, 40, 18], [10, 1, 1, 1, 1, 30, 1, 30, 1, 30, 1, 1, 30, 1, 1, 1, 1, 10], [15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 30, 1, 1, 1, 1, 13], [19, 1, 75, 75, 75, 75, 75, 75, 75, 75, 1, 1, 30, 220, 220, 1, 1, 10], [10, 35, 35, 35, 35, 35, 35, 35, 35, 14, 35, 25, 35, 35, 35, 35, 35, 13], [13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 30, 125, 1, 130, 10], [10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 30, 1, 1, 1, 15], [390, 135, 1, 220, 1, 220, 1, 1, 220, 1, 1, 1, 1, 30, 230, 1, 1, 10], [17, 75, 11, 12, 75, 17, 15, 75, 12, 15, 19, 17, 75, 75, 10, 15, 400, 10], [12, 10, 17, 10, 12, 10, 12, 10, 17, 19, 17, 12, 18, 12, 13, 18, 10, 10]];
maplevel16 = [[12, 17, 10, 13, 10, 19, 10, 17, 10, 19, 12, 10, 12, 10, 390, 10, 10, 10], [10, 400, 125, 70, 40, 120, 1, 230, 125, 70, 10, 1, 40, 40, 1, 65, 65, 10], [16, 1, 120, 1, 1, 135, 70, 40, 120, 1, 240, 1, 40, 1, 1, 40, 70, 13], [15, 40, 18, 12, 13, 13, 16, 17, 11, 10, 40, 12, 17, 1, 1, 1, 70, 14], [10, 1, 1, 1, 1, 1, 1, 1, 40, 1, 1, 1, 1, 1, 1, 1, 70, 10], [12, 120, 1, 1, 1, 1, 1, 1, 1, 1, 220, 1, 220, 1, 40, 1, 70, 17], [12, 1, 1, 40, 40, 40, 1, 1, 10, 25, 25, 25, 25, 25, 25, 1, 70, 12], [14, 1, 1, 1, 1, 1, 1, 1, 16, 1, 1, 1, 1, 1, 1, 1, 70, 15], [16, 25, 25, 19, 1, 120, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 70, 10], [12, 1, 1, 40, 1, 1, 125, 70, 15, 1, 1, 20, 1, 1, 1, 1, 70, 11], [13, 1, 1, 17, 1, 1, 1, 1, 17, 1, 1, 20, 1, 1, 1, 1, 70, 18], [10, 1, 1, 19, 1, 1, 1, 1, 40, 230, 1, 20, 220, 220, 1, 1, 70, 19], [12, 230, 1, 40, 1, 135, 1, 70, 10, 35, 35, 35, 35, 35, 35, 35, 70, 19], [19, 13, 10, 11, 12, 15, 10, 16, 10, 13, 18, 16, 15, 17, 10, 13, 12, 10]];
maplevel17 = [[12, 10, 10, 19, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10], [10, 40, 400, 1, 1, 1, 1, 1, 1, 1, 1, 1, 20, 1, 1, 1, 1, 10], [14, 1, 1, 1, 1, 220, 1, 1, 220, 1, 1, 40, 20, 1, 1, 1, 1, 10], [10, 1, 1, 70, 10, 15, 18, 18, 13, 16, 25, 16, 18, 1, 1, 1, 1, 14], [17, 1, 1, 70, 15, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 19], [10, 1, 1, 70, 15, 1, 1, 40, 1, 40, 1, 1, 16, 1, 1, 1, 1, 10], [10, 1, 1, 70, 15, 1, 1, 1, 1, 1, 1, 1, 19, 1, 1, 1, 1, 10], [16, 1, 1, 70, 11, 1, 230, 1, 1, 1, 230, 1, 16, 1, 1, 1, 1, 13], [17, 1, 1, 70, 10, 1, 13, 12, 12, 17, 13, 1, 12, 1, 1, 1, 1, 10], [18, 1, 1, 70, 18, 1, 1, 30, 1, 1, 1, 1, 10, 1, 1, 1, 1, 19], [19, 1, 1, 70, 15, 12, 25, 14, 12, 11, 35, 10, 10, 1, 1, 1, 1, 10], [12, 1, 1, 1, 1, 1, 1, 1, 1, 20, 1, 1, 1, 1, 1, 1, 1, 10], [10, 1, 1, 1, 1, 1, 1, 40, 13, 60, 1, 1, 1, 40, 220, 220, 1, 10], [12, 13, 10, 15, 10, 16, 10, 18, 16, 10, 10, 17, 10, 390, 10, 10, 15, 10]];
maplevel18 = [[12, 16, 10, 14, 10, 14, 15, 12, 10, 10, 11, 18, 15, 16, 10, 10, 15, 10], [10, 40, 65, 65, 65, 65, 65, 10, 400, 65, 65, 65, 65, 65, 65, 65, 40, 17], [10, 60, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 70, 11], [11, 60, 125, 40, 1, 230, 1, 1, 130, 1, 1, 240, 1, 230, 1, 130, 70, 10], [18, 60, 1, 1, 1, 11, 1, 1, 1, 1, 1, 35, 1, 20, 1, 1, 70, 11], [15, 60, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 70, 10], [10, 60, 1, 1, 1, 1, 1, 1, 230, 1, 1, 1, 1, 40, 1, 1, 70, 14], [14, 60, 1, 1, 1, 1, 1, 1, 40, 1, 1, 1, 1, 1, 1, 1, 70, 10], [390, 1, 1, 1, 230, 1, 1, 1, 120, 1, 1, 240, 1, 230, 1, 135, 70, 14], [10, 60, 40, 1, 40, 1, 1, 1, 1, 1, 1, 25, 1, 30, 1, 1, 70, 10], [17, 60, 1, 1, 1, 1, 1, 40, 1, 1, 1, 1, 1, 1, 1, 1, 70, 12], [10, 60, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 40, 1, 1, 1, 70, 10], [10, 40, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 40, 10], [10, 10, 10, 11, 12, 19, 17, 10, 10, 19, 13, 10, 13, 10, 15, 10, 10, 10]];
maplevel19 = [[12, 13, 40, 10, 14, 10, 40, 14, 10, 11, 10, 12, 10, 14, 40, 10, 18, 19], [16, 19, 16, 15, 40, 15, 13, 16, 13, 18, 10, 40, 10, 19, 17, 19, 15, 15], [11, 65, 290, 15, 290, 65, 290, 10, 290, 65, 290, 65, 290, 10, 290, 65, 16, 10], [40, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 65, 11], [10, 1, 1, 230, 1, 240, 1, 230, 1, 240, 1, 230, 1, 240, 1, 230, 1, 18], [10, 1, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 11], [10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 13], [10, 400, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12], [16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17], [16, 75, 230, 1, 240, 1, 230, 1, 240, 1, 230, 1, 240, 1, 230, 1, 1, 19], [13, 40, 40, 310, 18, 310, 11, 310, 11, 310, 12, 310, 12, 310, 19, 310, 1, 13], [390, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 19], [10, 18, 18, 15, 11, 18, 17, 18, 10, 15, 13, 19, 10, 12, 18, 13, 17, 10]];
maplevel20 = [[15, 12, 17, 16, 16, 17, 14, 11, 17, 11, 19, 40, 15, 10, 10, 10, 10, 18], [10, 65, 65, 65, 65, 65, 290, 65, 65, 65, 290, 65, 65, 65, 65, 65, 65, 10], [17, 1, 220, 1, 1, 130, 1, 1, 1, 1, 1, 30, 30, 1, 1, 1, 1, 17], [16, 19, 19, 18, 1, 1, 1, 1, 125, 1, 1, 1, 30, 30, 1, 1, 1, 10], [10, 1, 1, 1, 1, 1, 1, 25, 1, 25, 1, 1, 1, 1, 1, 1, 1, 15], [300, 1, 1, 1, 230, 1, 20, 1, 390, 1, 30, 1, 240, 1, 1, 1, 1, 280], [14, 1, 1, 1, 40, 1, 20, 1, 1, 1, 30, 1, 40, 1, 1, 1, 1, 10], [16, 1, 1, 1, 1, 1, 1, 14, 400, 10, 1, 135, 1, 1, 1, 1, 1, 10], [10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 30, 10], [10, 60, 1, 1, 1, 135, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 70, 10], [18, 60, 1, 1, 1, 1, 1, 1, 35, 1, 1, 1, 1, 1, 1, 1, 70, 10], [10, 60, 1, 1, 1, 1, 1, 35, 35, 35, 1, 1, 1, 1, 1, 1, 70, 10], [300, 60, 1, 1, 1, 1, 135, 35, 35, 35, 135, 1, 1, 1, 220, 1, 70, 10], [11, 10, 10, 15, 16, 10, 10, 10, 18, 14, 10, 10, 17, 10, 14, 10, 17, 18]];
maplevel21 = [[12, 14, 10, 290, 15, 11, 12, 10, 11, 18, 10, 16, 10, 19, 290, 10, 10, 11], [10, 60, 65, 1, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 1, 65, 70, 13], [10, 60, 1, 1, 1, 1, 1, 40, 40, 40, 1, 230, 1, 1, 1, 1, 70, 14], [12, 1, 1, 1, 1, 30, 1, 1, 1, 1, 1, 30, 1, 40, 1, 1, 70, 12], [10, 60, 1, 1, 1, 40, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 70, 13], [19, 60, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 70, 10], [10, 400, 1, 1, 1, 1, 1, 1, 135, 1, 1, 1, 18, 1, 1, 1, 70, 18], [10, 60, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 70, 10], [16, 60, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 70, 10], [14, 60, 1, 120, 1, 220, 1, 1, 220, 1, 1, 220, 1, 1, 40, 1, 70, 11], [14, 60, 1, 1, 25, 25, 390, 25, 25, 25, 25, 25, 25, 1, 1, 1, 70, 10], [18, 20, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 30, 11], [18, 20, 20, 1, 1, 1, 1, 1, 40, 40, 1, 1, 1, 1, 1, 30, 30, 10], [10, 11, 10, 14, 10, 17, 310, 16, 10, 13, 16, 310, 10, 17, 15, 10, 15, 10]];
maplevel22 = [[12, 17, 10, 17, 12, 19, 10, 15, 10, 19, 16, 10, 17, 10, 10, 290, 10, 17], [10, 400, 1, 1, 1, 1, 1, 125, 1, 1, 1, 1, 1, 1, 1, 1, 1, 16], [10, 1, 300, 1, 1, 230, 1, 220, 1, 1, 1, 1, 1, 220, 1, 1, 1, 10], [15, 1, 290, 1, 25, 25, 25, 25, 25, 1, 1, 1, 40, 40, 40, 1, 1, 12], [10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 12], [12, 1, 1, 1, 1, 1, 1, 1, 135, 1, 1, 1, 1, 1, 1, 1, 1, 10], [10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 14], [10, 120, 1, 125, 1, 1, 1, 70, 390, 1, 1, 1, 1, 1, 1, 230, 1, 13], [16, 1, 1, 1, 1, 1, 1, 1, 65, 1, 1, 1, 1, 1, 1, 40, 17, 15], [10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10], [17, 1, 1, 20, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 30, 1, 1, 10], [10, 1, 1, 20, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 30, 1, 1, 10], [19, 75, 75, 20, 1, 1, 220, 1, 220, 1, 1, 1, 1, 1, 30, 1, 1, 12], [14, 14, 10, 18, 10, 16, 10, 14, 14, 13, 16, 15, 18, 17, 13, 15, 17, 10]];
maplevel23 = [[12, 16, 11, 10, 10, 10, 17, 10, 16, 10, 19, 17, 13, 15, 10, 16, 17, 17], [18, 60, 65, 65, 1, 1, 1, 1, 1, 1, 25, 65, 65, 65, 65, 14, 400, 10], [11, 60, 125, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 14], [16, 60, 1, 40, 1, 1, 1, 1, 30, 1, 1, 1, 1, 1, 1, 1, 130, 19], [10, 60, 1, 240, 1, 1, 1, 1, 1, 1, 230, 1, 1, 1, 1, 1, 1, 280], [14, 60, 1, 15, 1, 1, 1, 1, 1, 1, 40, 1, 11, 35, 12, 1, 130, 10], [11, 60, 1, 1, 1, 240, 1, 1, 1, 230, 1, 1, 18, 35, 17, 1, 1, 280], [16, 60, 1, 1, 1, 16, 1, 1, 1, 12, 1, 1, 30, 35, 20, 1, 130, 10], [10, 60, 1, 1, 1, 1, 240, 1, 230, 1, 1, 1, 19, 25, 16, 1, 1, 280], [13, 60, 1, 1, 1, 1, 12, 1, 15, 1, 1, 1, 12, 25, 16, 1, 130, 16], [10, 60, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 280], [16, 12, 1, 75, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 70, 10], [10, 390, 40, 40, 75, 75, 75, 220, 220, 1, 135, 1, 1, 1, 1, 1, 70, 15], [10, 15, 10, 15, 10, 17, 10, 10, 18, 14, 16, 11, 11, 15, 10, 15, 16, 12]];
maplevel24 = [[10, 10, 10, 10, 10, 10, 10, 10, 10, 65, 65, 65, 65, 65, 10, 10, 10, 10], [10, 1, 1, 120, 1, 1, 125, 1, 1, 1, 1, 1, 40, 40, 30, 1, 1, 10], [10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 40, 1, 30, 1, 1, 10], [10, 400, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 30, 1, 1, 10], [10, 1, 1, 1, 1, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10], [300, 1, 1, 1, 1, 10, 125, 1, 1, 130, 1, 1, 25, 25, 25, 25, 1, 10], [300, 1, 1, 1, 1, 300, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10], [10, 1, 1, 1, 1, 10, 120, 1, 1, 1, 1, 1, 135, 1, 1, 1, 35, 10], [10, 10, 1, 1, 1, 210, 1, 1, 1, 220, 1, 1, 280, 1, 1, 1, 1, 10], [10, 1, 1, 1, 1, 10, 10, 10, 10, 10, 1, 290, 1, 40, 1, 1, 1, 10], [10, 1, 1, 1, 1, 10, 10, 10, 1, 1, 1, 1, 1, 40, 40, 40, 1, 70], [10, 240, 1, 1, 1, 10, 60, 1, 1, 1, 1, 1, 1, 40, 40, 40, 1, 70], [10, 10, 310, 1, 10, 10, 60, 220, 1, 1, 1, 1, 1, 1, 1, 10, 1, 10], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 75, 75, 75, 75, 75, 10, 390, 10]];
buildMap(this["maplevel" + _global.currentLevel]);
brojaci_mc.hintText_anim.gotoAndPlay(1);
Symbol 198 Button
on (release) {
getURL ("http://www.9p.com/?utm_source=brandedgames&utm_medium=polarglide", "_blank");
}
Symbol 216 MovieClip Frame 1
back2Menu_btn.onRelease = function () {
this._parent._parent.play();
};
Symbol 218 MovieClip [naslovna_mc] Frame 1
this.stop();
play_btn.onRelease = function () {
this._parent.choice = "igraj";
play();
};
instructions_btn.onRelease = function () {
this._parent.choice = "instructions";
play();
};
highscore_btn.onRelease = function () {
_root.gotoAndStop(103);
};
moreGames_btn.onRelease = function () {
getURL ("http://www.9p.com/?utm_source=brandedgames&utm_medium=polarglide", "_blank");
};
Symbol 218 MovieClip [naslovna_mc] Frame 28
if (this.choice == "instructions") {
this.gotoAndPlay(60);
}
Symbol 218 MovieClip [naslovna_mc] Frame 36
this.stop();
Symbol 218 MovieClip [naslovna_mc] Frame 45
this.gotoAndPlay(120);
Symbol 218 MovieClip [naslovna_mc] Frame 69
this.stop();
Symbol 218 MovieClip [naslovna_mc] Frame 77
this.gotoAndPlay(120);
Symbol 218 MovieClip [naslovna_mc] Frame 132
trace(this.choice);
if (this.choice == "igraj") {
_root.gotoAndStop(100);
} else {
this.gotoAndStop(1);
}
Symbol 220 MovieClip [gameHolder_mc] Frame 1
this.stop();
Symbol 220 MovieClip [gameHolder_mc] Frame 2
_global.rumbling = true;
Symbol 220 MovieClip [gameHolder_mc] Frame 6
_global.rumbling = false;
this.gotoAndStop(1);
Symbol 220 MovieClip [gameHolder_mc] Frame 25
this.attachMovie("game_mc", "copy_mc", 2123);
this.copy_mc._y = -616;
this.copy_mc.onEnterFrame = function () {
this._y = game_mc._y - 616;
};
Symbol 220 MovieClip [gameHolder_mc] Frame 70
this.stop();
this.copy_mc.removeMovieClip();
this.game_mc.buildMap(this.game_mc["maplevel" + _global.currentLevel]);
_global.pauza = !_global.pauza;
Symbol 222 MovieClip Frame 1
stop();
Symbol 285 MovieClip [pingiSay_bubble_mc] Frame 1
levelText_txt.text = _global.currentLevel;
var minuta = Math.floor(_global.timer / 60);
var sekundi = (_global.timer % 60);
var prviBroj = Math.floor(sekundi / 10);
var drugiBroj = (sekundi % 10);
sec10_txt.text = prviBroj;
sec_txt.text = drugiBroj;
prviBroj = Math.floor(minuta / 10);
drugiBroj = minuta % 10;
min10_txt.text = prviBroj;
min_txt.text = drugiBroj;
timeBonus_txt.text = 900 - _global.timer;
totalScore_txt.text = _global.totalScore;
replayLvl_btn.onRelease = function () {
_root.gameHolder_mc.gotoAndPlay(25);
this._parent._parent.play();
};
nextLvl_btn.onRelease = function () {
_global.currentLevel++;
_global.totalScore = _global.totalScore + (900 - _global.timer);
_root.gameHolder_mc.gotoAndPlay(25);
this._parent._parent.play();
};
moreGames_btn.onRelease = function () {
getURL ("http://www.9p.com/?utm_source=brandedgames&utm_medium=polarglide", "_blank");
};
Symbol 285 MovieClip [pingiSay_bubble_mc] Frame 50
levelText_txt.text = _global.currentLevel;
restartLvl_btn.onRelease = function () {
_root.gameHolder_mc.game_mc.buildMap(_root.gameHolder_mc.game_mc.maplevel01);
_root.gameHolder_mc.gotoAndPlay(25);
this._parent._parent.play();
};
continueLvl_btn.onRelease = function () {
this._parent._parent.play();
_global.pauza = false;
};
mainMenuLvl_btn.onRelease = function () {
this._parent._parent.play();
_root.gotoAndStop(30);
_global.totalScore = 0;
};
moreGames_btn.onRelease = function () {
getURL ("http://www.9p.com/?utm_source=brandedgames&utm_medium=polarglide", "_blank");
};
Symbol 285 MovieClip [pingiSay_bubble_mc] Frame 75
levelText_txt.text = _global.currentLevel;
replayLvl_btn.onRelease = function () {
_root.gameHolder_mc.gotoAndPlay(25);
this._parent._parent.play();
};
mainMenuLvl_btn.onRelease = function () {
_global.totalScore = _global.totalScore + (900 - _global.timer);
this._parent._parent.play();
_root.gotoAndStop(101);
};
moreGames_btn.onRelease = function () {
getURL ("http://www.9p.com/?utm_source=brandedgames&utm_medium=polarglide", "_blank");
};
Symbol 285 MovieClip [pingiSay_bubble_mc] Frame 100
levelText_txt.text = _global.currentLevel;
playLvl_btn.onRelease = function () {
_global.pauza = false;
this._parent._parent.play();
};
Symbol 285 MovieClip [pingiSay_bubble_mc] Frame 120
levelText_txt.text = _global.currentLevel;
replayLvl_btn.onRelease = function () {
_root.gameHolder_mc.gotoAndPlay(25);
this._parent._parent.play();
};
submit_btn.onRelease = function () {
_global.totalScore = _global.totalScore + (900 - _global.timer);
this._parent._parent.play();
_root.gotoAndStop(101);
};
moreGames_btn.onRelease = function () {
getURL ("http://www.9p.com/?utm_source=brandedgames&utm_medium=polarglide", "_blank");
};
Symbol 286 MovieClip [inGameMeni_mc] Frame 1
bloker_mc.onRollOver = function () {
};
this.gotoAndPlay(16);
Symbol 286 MovieClip [inGameMeni_mc] Frame 28
if (_global.izbor == "pauziraj") {
oingiSay_mc.gotoAndStop(50);
}
if (_global.izbor == "kraj") {
if (_global.currentLevel >= _root.usercookie.data.unlocked) {
_root.usercookie.data.unlocked = _global.currentLevel + 1;
_global.otkljucanihNivoa = _global.currentLevel + 1;
_root.usercookie.flush();
}
oingiSay_mc.gotoAndStop(10);
}
if (_global.izbor == "pokreni") {
oingiSay_mc.gotoAndStop(100);
}
if (_global.izbor == "failed") {
oingiSay_mc.gotoAndStop(75);
}
if (_global.izbor == "pobeda") {
oingiSay_mc.gotoAndStop(120);
}
Symbol 286 MovieClip [inGameMeni_mc] Frame 36
this.stop();
Symbol 286 MovieClip [inGameMeni_mc] Frame 44
this.gotoAndPlay(120);
Symbol 286 MovieClip [inGameMeni_mc] Frame 136
_root.gameHolder_mc.game_mc.brojaci_mc.hintText_anim.gotoAndPlay(2);
this.stop();
this._visible = false;
this.enabled = false;
Symbol 292 Button
on (release) {
getURL ("http://www.9p.com/?utm_source=brandedgames&utm_medium=polarglide", "_blank");
}