Path: blob/main/projects/cannon-basketball-4/js/index.js
4626 views
! function(t) {1function e(t, e, a) {2this.onClick = new c, this.onDown = new c, this.onUp = new c, this.onOut = new c, e && (e = e.bind(a || this), this.onClick.add(e)), this.disposed = !1, this.isDown = !1, this.isOver = !1, this.name = "TintButton", this.upTint = 16777215, this.overTint = 15658734, this.downTint = 14540253, this.disableTint = 8947848, this.tint = this.upTint, PIXI.Sprite.call(this, t), this.mousedown = this.touchstart = this._mouseDown, this.mouseup = this.touchend = this.mouseupoutside = this.touchendoutside = this._mouseUp, this.mouseover = this._mouseOver, this.mouseout = this._mouseOut, this.click = this.tap = this._clickTap, this.interactive = !0, this.buttonMode = !0, this.anchor.set(.5, .5), this._cacheAnchorY = null3}45function a(t, e) {6PIXI.Container.call(this), this.name = t || "Item", this.zOrder = e || Z.zOrder.defaultZ, this._body = null, this.angleUpdate = !1, this.positionUpdate = !17}89function n() {10PIXI.Container.call(this);11var t = new PIXI.TextStyle({12fontFamily: "Impact",13fontSize: 42,14fill: "white",15align: "center"16}),17e = new PIXI.Graphics;18e.beginFill(0), e.drawRect(0, 0, Pt.gameWidth0, Pt.gameHeight0), e.endFill(), this.addChild(e), this._txtLoading = new PIXI.Text("Loading", t), this._txtLoading.scale.set(.5, .5), this._txtLoading.anchor.set(.5, .5), this._txtLoading.x = Pt.gameWidth0 / 2, this._txtLoading.y = Pt.gameHeight0 / 2 - 10, this.addChild(this._txtLoading), Pt.pixi.ticker.add(this._update, this), this._loaded = 0, this._curr = 019}2021function i() {22PIXI.Container.call(this);23var t = e.generateButton("splash", null, this._onBtnsClick, this);24t.anchor.set(.5, .5), t.scale.set(.5, .5), t.x = Pt.gameWidth0 / 2, t.y = Pt.gameHeight0 / 2, this.addChild(t)25}2627function s(t) {28this.app = t29}3031function o() {32EventTarget.call(this), this._event = {}, this._event.type = "", this._event.orientation = "", this._event.originalEvent = null, this._onVisibilityChange = this._onVisibilityChange.bind(this), this._onWebkitVisibilityChange = this._onWebkitVisibilityChange.bind(this), this._onPageShow = this._onPageShow.bind(this), this._onPageHide = this._onPageHide.bind(this), this._onFocus = this._onFocus.bind(this), this._onBlur = this._onBlur.bind(this), this._onResize = this._onResize.bind(this), this._onOrientationChange = this._onOrientationChange.bind(this), document.addEventListener("visibilitychange", this._onVisibilityChange, !1), document.addEventListener("webkitvisibilitychange", this._onWebkitVisibilityChange, !1), document.addEventListener("pageshow", this._onPageHide, !1), document.addEventListener("pagehide", this._onPageShow, !1), t.onfocus = this._onFocus, t.onblur = this._onBlur, this.orientation = this._getOrientation(), this._event.orientation = this.orientation, t.addEventListener("resize", this._onResize, !1), t.addEventListener("orientationchange", this._onOrientationChange, !1)33}3435function r(t, e, a, n, i) {36this.up = t, this.over = e, this.down = a, this.onClick = new c, this.onDown = new c, this.onUp = new c, this.onOut = new c, n && (n = n.bind(i || this), this.onClick.add(n)), this.name = "Button", this.disposed = !1, this.isDown = !1, this.isOver = !1, PIXI.Sprite.call(this, t), this.mousedown = this.touchstart = this._mouseDown, this.mouseup = this.touchend = this.mouseupoutside = this.touchendoutside = this._mouseUp, this.mouseover = this._mouseOver, this.mouseout = this._mouseOut, this.click = this.tap = this._clickTap, this.interactive = !0, this.anchor.set(.5, .5), this._cacheAnchorY = null37}3839function l(t, a, n, i) {40var s = Pt.assets.getTexture("btnNumLevel" + a, "atlasUI");41e.call(this, s, n, i), this.num = t, this.name = "ButtonLevel" + t;42var o = "levelNumbers_" + rt.pad(t + "", 4, "0", 1),43r = Pt.assets.getSprite(o, "atlasUI", !0);44if (r.anchor.set(.5, .5), r.x = this.width / 2 - 3, r.y = this.height / 2, this.addChild(r), null == r) {45var l = new PIXI.TextStyle({46fontFamily: "CroMagnum",47fontSize: 42,48fill: "#FEF4B0",49stroke: "#4D1604",50strokeThickness: 851});52this.setLabel(t + "", l)53}54var y = Pt.assets.getSprite("icoStarLevelBtn", "atlasUI");55y.anchor.set(.5, .5), y.x = s.width / 2, y.y = s.height - y.height / 2 + 3, this.addChild(y);56var h = Pt.assets.getSprite("icoStarLevelBtn", "atlasUI");57h.anchor.set(.5, .5), h.x = y.x - y.width + 3, h.y = y.y, this.addChild(h);58var d = Pt.assets.getSprite("icoStarLevelBtn", "atlasUI");59d.anchor.set(.5, .5), d.x = y.x + y.width - 3, d.y = y.y, this.addChild(d), this.scale.set(.5, .5), this._stars = [y, h, d]60}6162function y(t, a, n, i, s) {63PIXI.Container.call(this), this._callback = i, this._callbackScope = s, this._on = e.generateButton(t, n, this._onClick, this), this._on.name = "ON", this.addChild(this._on), this._off = e.generateButton(a, n, this._onClick, this), this._off.name = "OFF", this.addChild(this._off), this.on = !064}6566function h(t) {67this.name = t || "Collection#" + ++h.__id, this._arr = [], this.throwIfIn = !1, this.throwIfNotIn = !1, this.throwIfOut = !168}6970function d() {71Box2D.Dynamics.b2ContactListener.call(this), this._ee = new EventEmitter, this._eventNameBeginContact = "onBeginContact", this._eventNameEndContact = "onEndContact"72}7374function c() {75this.count = 0, this._callbacks = [], this._doItAfter = [], this._blocked = !1, this.disposed = !176}7778function p() {79this.startTime = Date.now(), this.prevTime = this.startTime, this.ms = 0, this.msMin = 1 / 0, this.msMax = 0, this.fps = 0, this.fpsMin = 1 / 0, this.fpsMax = 0, this.frames = 0, this.update = this.update.bind(this)80}8182function g(t) {83this.stage = t, this.mouse = new PIXI.InteractionData, this.touchs = {}, this.interactInvisible = !1, this.tempPoint = new PIXI.Point, this.mouseoverEnabled = !0, this.pool = [], this.interactiveItems = [], this.interactionDOMElement = null, this.onMouseMove = this.onMouseMove.bind(this), this.onMouseDown = this.onMouseDown.bind(this), this.onMouseOut = this.onMouseOut.bind(this), this.onMouseUp = this.onMouseUp.bind(this), this.onTouchStart = this.onTouchStart.bind(this), this.onTouchEnd = this.onTouchEnd.bind(this), this.onTouchMove = this.onTouchMove.bind(this), this.last = 084}8586function m() {87this.localStorageEnable = !1, this._storage = {};88try {89this.localStorageEnable = "localStorage" in t && null !== t.localStorage90} catch (t) {}91}9293function u(e) {94t.b2Vec2 = Box2D.Common.Math.b2Vec2, t.b2AABB = Box2D.Collision.b2AABB, t.b2BodyDef = Box2D.Dynamics.b2BodyDef, t.b2Body = Box2D.Dynamics.b2Body, t.b2FixtureDef = Box2D.Dynamics.b2FixtureDef, t.b2Fixture = Box2D.Dynamics.b2Fixture, t.b2World = Box2D.Dynamics.b2World, t.b2MassData = Box2D.Collision.Shapes.b2MassData, t.b2PolygonShape = Box2D.Collision.Shapes.b2PolygonShape, t.b2CircleShape = Box2D.Collision.Shapes.b2CircleShape, t.b2DebugDraw = Box2D.Dynamics.b2DebugDraw, t.b2MouseJointDef = Box2D.Dynamics.Joints.b2MouseJointDef, t.b2RevoluteJoint = Box2D.Dynamics.Joints.b2RevoluteJoint, t.b2RevoluteJointDef = Box2D.Dynamics.Joints.b2RevoluteJointDef, this.world = new ct(new lt(0, 12), !0), this.contactListener = new d, this.world.SetContactListener(this.contactListener), Pt.physWorld = this.world, this.clearDoIt(), this._canvas = null, this._context = null, e && this.enableDebugDraw(), Pt.pixi.ticker.add(this._update, this)95}9697function x(t) {98"undefined" == typeof t && (t = []), this.c = 1, this.s0 = 0, this.s1 = 0, this.s2 = 0, this.sow(t)99}100101function w(t) {102PIXI.Container.call(this);103var e = Pt.assets.getSprite("creditsBoard", "atlasUI");104e.scale.set(.5, .5), e.anchor.set(.5, .76), this.addChild(e);105var a = new PIXI.TextStyle({106fontFamily: "Arial",107fontSize: 42,108fill: "#EFE9BF",109stroke: "#4D1604",110strokeThickness: 8,111align: "center",112lineHeight: 42113}),114n = new PIXI.Text(t, a);115n.scale.set(.5, .5), n.anchor.set(.5, .45), this.addChild(n)116}117118function P(t, a) {119PIXI.Container.call(this), this.x = -Pt.gameWidth0;120var n = Pt.assets.getSprite("creditsBoard", "atlasUI");121n.scale.set(.5, .5), n.anchor.set(.5, .76), n.x = .5 * Pt.gameWidth0, n.y = .5 * Pt.gameHeight0, this.addChild(n);122var i = e.generateButton("btnBackCredits", "atlasUI", t, a);123i.name = "BackCredits", i.scale.set(.5, .5), i.x = Pt.gameWidth0 - i.width / 2 - 10, i.y = Pt.gameHeight0 - i.height / 2 - 5, this.addChild(i)124}125126function _(t, e) {127PIXI.Container.call(this), this._buttonsHandler = e;128var a = Pt.assets.getSprite("levelsBoard" + t, "atlasUI");129a.scale.set(.5, .5), a.anchor.set(.5, .5), this.addChild(a);130var n = 15 * (t - 1) + 1;131this._buttons = [], this._btnsContainer = new PIXI.Container, this.addChild(this._btnsContainer);132for (var i = 12, s = 7, o = 0, r = 8, y = 0; y < 2; y++) {133for (var h = 0; h < r; h++) {134var d = new l(n, t, this._onClick, this);135d.x += o + h * (i + d.width), d.y += y * (s + d.height), d.anchor.set(0, 0), this._btnsContainer.addChild(d), d.setLocked(n > Pt.levelMng.lastOpened), this._buttons.push(d), n++136}137r--, 2 == t && (o = i + d.width)138}139this._btnsContainer.x = -this._btnsContainer.width / 2, this._btnsContainer.y = -this._btnsContainer.height / 2 + 10140}141142function v(t, a) {143PIXI.Container.call(this), this._buttonsHandler = t;144var n = Pt.assets.getSprite("levelCompleted");145n.interactive = !0, this.addChild(n);146const i = .35;147this._btnRestart = e.generateButton("btnRestartComplete", "atlasUI", t, a), this._btnRestart.name = "Restart", this._btnRestart.scale.set(i, i), this._btnRestart.anchor.set(.5, .5), this._btnRestart.x = this._btnRestart.xIn = Pt.gameWidth0 / 2, this._btnRestart.y = this._btnRestart.yIn = Pt.gameHeight0 / 2 + 100, this._btnRestart.xOut = this._btnRestart.xIn, this._btnRestart.yOut = Pt.gameHeight0 + this._btnRestart.height / 2 + 10, this.addChild(this._btnRestart), this._btnMenu = e.generateButton("btnMenuComplete", "atlasUI", t, a), this._btnMenu.name = "Menu", this._btnMenu.scale.set(i, i), this._btnMenu.anchor.set(.5, .5), this._btnMenu.x = this._btnMenu.xIn = this._btnRestart.x - this._btnRestart.width / 2 - this._btnMenu.width / 2 - 20, this._btnMenu.y = this._btnMenu.yIn = this._btnRestart.y, this._btnMenu.xOut = -this._btnMenu.width / 2 - 10, this._btnMenu.yOut = this._btnMenu.yIn, this.addChild(this._btnMenu), this._btnNext = e.generateButton("btnNextComplete", "atlasUI", t, a), this._btnNext.name = "Next", this._btnNext.scale.set(i, i), this._btnNext.anchor.set(.5, .5), this._btnNext.x = this._btnNext.xIn = this._btnRestart.x + this._btnRestart.width / 2 + this._btnNext.width / 2 + 20, this._btnNext.y = this._btnNext.yIn = this._btnRestart.y, this._btnNext.xOut = Pt.gameWidth0 + this._btnNext.width / 2 + 10, this._btnNext.yOut = this._btnNext.yIn, this.addChild(this._btnNext);148var s = new PIXI.TextStyle({149fontFamily: "CroMagnum",150fontSize: 72,151fill: "#FFDC90",152stroke: "#4D1604",153strokeThickness: 6,154align: "center"155}),156o = "LEVEL " + Pt.levelMng.currLevel + " COMPLETED!";157Pt.levelMng.currLevel == Pt.levelMng.totalLevels && (o = "CONGRATULATIONS!\nYOU'VE PASSED THE GAME!", s.fontSize = 36), this._text = new PIXI.Text(o, s), this._text.anchor.set(.5, .5), this._text.scale.set(.5, .5), this._text.x = Pt.gameWidth0 / 2, this._text.y = Pt.gameHeight0 / 2 - 100, this.addChild(this._text);158var r = Pt.assets.getSprite("starComplete", "atlasUI");159r.anchor.set(.5, .5), r.scale.set(.5, .5), r.x = Pt.gameWidth0 / 2, r.y = Pt.gameHeight0 / 2, this.addChild(r);160var l = Pt.assets.getSprite("starComplete", "atlasUI");161l.anchor.set(.5, .5), l.scale.set(.5, .5), l.x = r.x - r.width / 2 - l.width / 2 - 10, l.y = r.y, this.addChild(l);162var y = Pt.assets.getSprite("starComplete", "atlasUI");163y.anchor.set(.5, .5), y.scale.set(.5, .5), y.x = r.x + r.width / 2 + y.width / 2 + 10, y.y = r.y, this.addChild(y), this._stars = [r, l, y], this.sndWin = Pt.assets.getSound("sndWin")164}165166function b(t, a, n) {167PIXI.Container.call(this), this._buttonsHandler = t, this.x = Pt.gameWidth0;168var i = new _(1, t);169i.x = 310, i.y = 122, this.addChild(i);170var s = new _(2, t);171s.x = 410, s.y = 320, this.addChild(s), this._boards = [i, s];172var o = e.generateButton("btnBackLevels", "atlasUI", a, n);173o.name = "BackLevels", o.scale.set(.5, .5), o.x = o.width / 2 + 10, o.y = Pt.gameHeight0 - o.height / 2 - 5, this.addChild(o)174}175176function S(t, a) {177PIXI.Container.call(this);178var n = Pt.assets.getSprite("gameName", null, !0);179n.scale.set(.45, .45), n.x = Pt.gameWidth0 / 2, n.y = Pt.gameHeight0 / 2 - n.height / 2, this.addChild(n);180var i = e.generateButton("btnPlayMenu", "atlasUI", t, a);181i.name = "Play", i.scale.set(.45, .45), i.x = n.x, i.y = n.y + n.height / 2 + i.height / 2 + 15, this.addChild(i);182var s = e.generateButton("btnMoreGames", "atlasUI", t, a);183s.name = "MoreGames", s.scale.set(.45, .45), s.x = i.x + i.width / 2 + s.width / 2 + 10, s.y = i.y + i.height / 2 - 10, this.addChild(s);184var o = e.generateButton("btnFB", "atlasUI", t, a);185o.name = "Facebook", o.scale.set(.45, .45), o.x = i.x - i.width / 2 - o.width / 2 - 10, o.y = s.y, this.addChild(o);186var r = e.generateButton("btnCreditsMenu", "atlasUI", t, a);187r.name = "Credits", r.scale.set(.45, .45), r.x = i.x, r.y = s.y + s.height / 2 + r.height / 2 + 5, this.addChild(r);188var l = new y("btnMusicOn", "btnMusicOff", "atlasUI", t, a);189l.name = "Music", l.scale.set(.5, .5), l.x = s.x, l.y = r.y, l.on = Pt.musicOn, this.addChild(l);190var h = new y("btnSoundOn", "btnSoundOff", "atlasUI", t, a);191h.name = "Sound", h.scale.set(.5, .5), h.x = o.x, h.y = r.y, h.on = Pt.soundOn, this.addChild(h), this.sndButton = Pt.assets.getSound("sndButton")192}193194function A(t, e) {195a.call(this, "Ball", Z.zOrder.ball);196var n = Pt.assets.getSprite("ball", "atlasGame");197n.scale.set(.5, .5), n.anchor.set(.5, .5), this.addChild(n), this.x = t, this.y = e;198var i = u.createCircleShape(7.5),199s = u.createFixtureDef(i, .5, .15, 1, {200item: this,201isBall: !0,202dynamic: !0203}),204o = u.createBodyDef(t, e, ht.b2_dynamicBody, !1, !0, 0, !0);205this._body = u.createBody(o, [s]), this._enableUpdate(), this.angleUpdate = !0, this.positionUpdate = !0206}207208function I(t, e) {209a.call(this, "Basket", Z.zOrder.basket), this.x = t, this.y = e;210var n = Pt.assets.getSprite("basket", "atlasGame");211n.scale.set(.55, .55), n.anchor.set(.5, -.12), this.addChild(n);212var i = 23,213s = u.createPolygonShape(22.5, 4, 0, 30 + i),214o = u.createFixtureDef(s, .5, .1, 1, this),215r = u.createPolygonShape(4, 42, 14.85, 10.85 + i, ot.toRadians(15)),216l = u.createFixtureDef(r, .5, .1, 1, this),217y = u.createPolygonShape(4, 42, -14.85, 10.85 + i, ot.toRadians(-15)),218h = u.createFixtureDef(y, .5, .1, 1, this),219d = u.createPolygonShape(7.5, 6.6, 22.8, -7.75 + i, ot.toRadians(-15)),220c = u.createFixtureDef(d, .5, .1, 1, this),221p = u.createPolygonShape(7.5, 6.6, -22.8, -7.75 + i, ot.toRadians(15)),222g = u.createFixtureDef(p, .5, .1, 1, this),223m = u.createPolygonShape(27, 4, 0, i),224x = u.createFixtureDef(m, .5, .1, 1, {225item: this,226basketSensor: !0227}, !0),228w = u.createBodyDef(t, e, ht.b2_staticBody);229this._body = u.createBody(w, [o, l, h, c, g, x]), Pt.physics.contactListener.addBeginContactListener(this._onBeginContact, this), this.sndBallInBasket = Pt.assets.getSound("sndBallInBasket")230}231232function D(t, e, n, i, s) {233a.call(this, "BasketRail", Z.zOrder.basket), this._orienation = 0 == n ? "v" : "h", this._end = i, this.x = t, this.y = e, this.id = s;234var o = Pt.assets.getSprite("railBasket", "atlasGame");235o.scale.set(.55, .55), o.anchor.set(.5, .46), this.addChild(o);236var r = u.createPolygonShape(22.5, 4, 0, 30),237l = u.createFixtureDef(r, .5, .1, 1, this),238y = u.createPolygonShape(4, 42, 14.85, 10.85, ot.toRadians(15)),239h = u.createFixtureDef(y, .5, .1, 1, this),240d = u.createPolygonShape(4, 42, -14.85, 10.85, ot.toRadians(-15)),241c = u.createFixtureDef(d, .5, .1, 1, this),242p = u.createPolygonShape(7.5, 6.6, 22.8, -7.75, ot.toRadians(-15)),243g = u.createFixtureDef(p, .5, .1, 1, this),244m = u.createPolygonShape(7.5, 6.6, -22.8, -7.75, ot.toRadians(15)),245x = u.createFixtureDef(m, .5, .1, 1, this),246w = u.createPolygonShape(27, 4),247f = u.createFixtureDef(w, .5, .1, 1, {248item: this,249basketSensor: !0250}, !0),251P = u.createBodyDef(t, e, ht.b2_kinematicBody);252this._body = u.createBody(P, [l, h, c, g, x, f]), this._createRails(), Pt.physics.contactListener.addBeginContactListener(this._onBeginContact, this), a.events.on(a.EVENT_TRIGGER_PRESSED, this._onTriggerEvent, this), this.sndStart = Pt.assets.getSound("sndRailStart"), this.sndStop = Pt.assets.getSound("sndRailStop")253}254255function C(t, e, n, i) {256a.call(this, "Box", Z.zOrder.defaultZ), this.x = t, this.y = e;257var s = Pt.assets.getSprite("box", "atlasGame");258s.scale.set(.5, .5), s.anchor.set(.5, .5), this.addChild(s);259var o = u.createPolygonShape(45, 45),260r = u.createFixtureDef(o, .5, 0, i, {261item: this,262dynamic: !0263}),264l = u.createBodyDef(t, e, ht.b2_dynamicBody, !1, !0, n);265this._body = u.createBody(l, [r]), this._enableUpdate(), this.angleUpdate = !0, this.positionUpdate = !0266}267268function B(t, e) {269a.call(this, "Cannon", Z.zOrder.cannon), this.lowerAngle = -45, this.upperAngle = 45, this.shotScale = 150, this.minPower = 250, this.maxPower = 500, this.x = t, this.y = e;270var n = Pt.assets.getSprite("cannonPlatform", "atlasGame");271n.anchor.set(.5, .7), n.scale.set(.5, .5), this.addChild(n);272var i = rt.generateFrameNames("cannon_", 1, 15, "", 4),273s = Pt.assets.getTextures(i, "atlasGame");274this._cannon = new PIXI.extras.AnimatedSprite(s), this._cannon.anchor.set(.5, 1.32), this._cannon.scale.set(.5, .5), this._cannon.animationSpeed = 1, this._cannon.loop = !1, this.addChildAt(this._cannon, 0);275var o = Pt.assets.getSprite("cannonPowerBarBG", "atlasGame");276o.anchor.set(.5, 1), o.x = 30, o.y = -60, this._cannon.addChild(o), this._powerBar = Pt.assets.getSprite("cannonPowerBar", "atlasGame"), this._powerBar.anchor.set(.5, 1), o.addChild(this._powerBar), this._powerBarMask = new PIXI.Graphics, o.addChild(this._powerBarMask), this._powerBarMask.beginFill(0), this._powerBarMask.drawRect(-this._powerBar.width / 2, -this._powerBar.height, this._powerBar.width, this._powerBar.height), this._powerBar.mask = this._powerBarMask, this._shotComplete = this._shotComplete.bind(this), this._cannon.onComplete = this._shotComplete, this._frameChanged = this._frameChanged.bind(this), this._cannon.onFrameChange = this._frameChanged, this._shot = this._shot.bind(this), Pt.playState.shotHandler.add(this._shot), this._helperPoint = new PIXI.Point, this._ballSpawnPoint = new PIXI.Point(0, -43), this._shoted = !1, Pt.pixi.ticker.add(this._update, this), this._isAllowMove = !0, Pt.playState.aimControl && (Pt.playState.bg.on("pointerdown", this._pointerDown, this), Pt.playState.bg.on("pointerup", this._pointerUp, this), Pt.playState.bg.on("pointerupoutside", this._pointerUp, this), this._isAllowMove = !1, this._countTouches = 0), this.graphics = new PIXI.Graphics, this.addChild(this.graphics), this.sndShot = Pt.assets.getSound("sndShot")277}278279function M(t, e) {280a.call(this, "Domino", Z.zOrder.defaultZ), this.x = t, this.y = e;281var n = Pt.assets.getSprite("domino", "atlasGame");282n.scale.set(.5, .5), n.anchor.set(.5, .5), this.addChild(n);283var i = u.createPolygonShape(10, 50),284s = u.createFixtureDef(i, .5, 0, .5, {285item: this,286dynamic: !0287}),288o = u.createBodyDef(t, e, ht.b2_dynamicBody);289this._body = u.createBody(o, [s]), this._enableUpdate(), this.angleUpdate = !0, this.positionUpdate = !0290}291292function E(t, e, n, i, s, o) {293a.call(this, "Gate", Z.zOrder.defaultZ);294var r = 0;295s = void 0 != s ? s : 90, o = o || !1, o && (r = s, s = 0, "right" == n && (r = -r)), this.inversed = o, r = ot.toRadians(r), this.x = t, this.y = e, this.rotation = r, this.openAngle = ot.toRadians(s), this.direction = n, this.opened = !1, this.rotation = r, this.id = i;296var l = Pt.assets.getSprite("gate_" + n, "atlasGame");297l.scale.set(.5, .5), "left" == n ? l.anchor.set(.2, .5) : "right" == n && l.anchor.set(.8, .5), this.addChild(l);298var y;299"left" == n ? y = u.createPolygonShape(30, 8, 11) : "right" == n && (y = u.createPolygonShape(30, 8, -11));300var h = u.createFixtureDef(y, 1, .1, .1),301d = u.createBodyDef(t, e, ht.b2_kinematicBody, !1, !0, r);302this._body = u.createBody(d, [h]), a.events.on(a.EVENT_TRIGGER_PRESSED, this._onTriggerEvent, this), this.sndGate = Pt.assets.getSound("sndGate")303}304305function T(t, e, n, i) {306a.call(this, "Hammer", Z.zOrder.defaultZ), i = i || 1, this.x = t, this.y = e, n = ot.toRadians(n), this.rotation = n;307var s = Pt.assets.getSprite("hammer", "atlasGame");308s.scale.set(.5, .5), s.anchor.set(.1, .5), this.addChild(s);309var o = u.createPolygonShape(12, 74, 62, 0),310r = u.createFixtureDef(o, .3, .1, i, {311item: this,312dynamic: !0313}),314l = u.createPolygonShape(59, 12, 26, 0),315y = u.createFixtureDef(l, .3, .1, i, {316item: this,317dynamic: !0318}),319h = u.createBodyDef(t, e, ht.b2_dynamicBody, !1, !0, n);320this._body = u.createBody(h, [r, y]);321var d = Pt.physWorld.GetGroundBody(),322c = new xt;323c.Initialize(d, this._body, this._body.GetPosition()), Pt.physWorld.CreateJoint(c), this._enableUpdate(), this.angleUpdate = !0, this.positionUpdate = !0324}325326function O(t, e, n, i, s) {327a.call(this, "Mill", Z.zOrder.defaultZ), this.x = t, this.y = e, this.enableMotor = n, this.motorSpeed = i, this.signalID = s;328var o = Pt.assets.getSprite("mill", "atlasGame");329o.scale.set(.5, .5), o.anchor.set(.5, .5), this.addChild(o);330var r = u.createPolygonShape(150, 14),331l = u.createFixtureDef(r, .5, 0, .2, {332item: this,333dynamic: !0334}),335y = u.createPolygonShape(14, 150),336h = u.createFixtureDef(y, .5, 0, .2, {337item: this,338dynamic: !0339}),340d = u.createBodyDef(t, e, ht.b2_dynamicBody);341this._body = u.createBody(d, [l, h]), this._enableUpdate(), this.angleUpdate = !0, this.positionUpdate = !0;342var c = new lt(t / Pt.physScale, e / Pt.physScale),343p = new xt;344if (p.Initialize(Pt.physWorld.GetGroundBody(), this._body, c), this._revJoint = Pt.physWorld.CreateJoint(p), this.enableMotor) {345var g = this.motorSpeed;346this._revJoint.EnableMotor(!0), this._revJoint.SetMotorSpeed(g), this._revJoint.SetMaxMotorTorque(Math.abs(g)), a.events.on(a.EVENT_TRIGGER_PRESSED, this._onTriggerEvent, this)347}348}349350function k(t, e) {351a.call(this, "Peg", Z.zOrder.defaultZ), this.x = t, this.y = e;352var n = Pt.assets.getSprite("peg", "atlasGame");353n.scale.set(.5, .5), n.anchor.set(.5, .5), this.addChild(n);354var i = u.createCircleShape(15),355s = u.createFixtureDef(i, .2, .1, 1, {356item: this,357isPeg: !0358}),359o = u.createBodyDef(t, e, ht.b2_staticBody);360this._body = u.createBody(o, [s]), Pt.physics.contactListener.addBeginContactListener(this._onBeginContact, this), this.sndPeg = Pt.assets.getSound("sndPeg")361}362363function R(t, e, n, i, s, o, r, l, y) {364if (a.call(this, "Pivot", Z.zOrder.pivot), this.x = t, this.y = e, this.type = n, "bolt" == this.type) {365var h = Pt.assets.getSprite("bolt", "atlasGame");366h.scale.set(.5, .5), h.anchor.set(.5, .5), this.addChild(h), this.boltLowerAngle = ot.toRadians(l), this.boltUpperAngle = ot.toRadians(y)367} else if ("gear" == this.type) {368var d = "gear" + s + "_",369c = rt.generateFrameNames(d, 1, 40, "", 4),370p = Pt.assets.getTextures(c, "atlasGame");371this._gear = new PIXI.extras.AnimatedSprite(p), this._gear.anchor.set(.5, .5), this._gear.scale.set(.5, .5), this._gear.animationSpeed = 1, this._gear.loop = !0, this.addChildAt(this._gear, 0), this.gearSignalID = i, this.gearColor = s, this.gearMaxAngle = o, this.gearPower = r, this.TO_DESTINATION = 1, this.TO_START_ANGLE = 2, this._movingTo = 0372}373for (var g = [], m = new lt(t / Pt.physScale, e / Pt.physScale), u = Pt.physWorld.GetBodyList(); null != u;) {374for (var x = u.GetFixtureList(); null != x;) {375var w = x.TestPoint(m);376if (w) {377g.push(u);378break379}380x = x.GetNext()381}382u = u.GetNext()383}384if (g.length > 2) throw "Too many bodies under pivot. Max is 2";3851 == g.length && (g[1] = g[0], g[0] = Pt.physWorld.GetGroundBody());386var f = g[0],387P = g[1];388if (f.type != ht.b2_staticBody && (f = P, P = g[0]), this._revJointDef = new xt, this._revJointDef.Initialize(f, P, m), "bolt" == this.type) this._revJoint = Pt.physWorld.CreateJoint(this._revJointDef), this._revJoint.EnableLimit(!0), this._revJoint.SetLimits(this.boltLowerAngle, this.boltUpperAngle);389else if ("gear" == this.type) {390if (this._trackBody = P, this._massData = new pt, this._trackBody.GetMassData(this._massData), this._massData.mass = .05, this._trackBody.SetUseOwnGravity(!0), this._trackBody.SetGravity(0, 0), this._trackBody.SetType(ht.b2_staticBody), this._trackBodyStartAngle = ot.toDegrees(this._trackBody.GetAngle()), a.events.on(a.EVENT_TRIGGER_PRESSED, this._onTriggerEvent, this), this._lowerAngle = -this._trackBody.GetAngle(), this._upperAngle = ot.toRadians(this.gearMaxAngle), this._lowerAngle > this._upperAngle) {391var _ = this._lowerAngle;392this._lowerAngle = this._upperAngle, this._upperAngle = _393}394this.sndGear = Pt.assets.getSound("sndGear")395}396}397398function L(t, e, n, i, s, o) {399i = ot.toRadians(i || 0);400var r = u.convertBodyTypeFromStringToNumber(s),401l = 18;402a.call(this, "Platform", Z.zOrder.platform), this.x = t, this.y = e, this.rotation = i;403var y = new PIXI.Container;404this.addChild(y);405var h = Pt.assets.getSprite("platform", "atlasGame");406h.scale.set(.5, .5), h.anchor.set(.5, .5), h.x = Pt.rnd.realInRange(0, h.width / 2 - n / 2), y.addChild(h);407var d = 1,408c = new PIXI.Graphics;409c.lineStyle(d, 1968900, 1), c.drawRect(-n / 2 - d / 2, -l / 2, n + d, l), this.addChild(c);410var p = u.createPolygonShape(n, l),411g = u.createFixtureDef(p, .1, .1, o, {412item: this,413dynamic: !0414}),415m = u.createBodyDef(t, e, r, !1, !0, i, !1);416this._body = u.createBody(m, [g]);417var x = new PIXI.Graphics;418x.beginFill(9160191, .4), x.drawRect(-n / 2, -l / 2, n, l), x.endFill(), y.addChild(x), y.mask = x, r != ht.b2_staticBody && (this._enableUpdate(), this.angleUpdate = !0, this.positionUpdate = !0)419}420421function G(t, e, n) {422a.call(this, "Rock", Z.zOrder.defaultZ), this.x = t, this.y = e;423var i = Pt.assets.getSprite("rock", "atlasGame");424i.scale.set(.5, .5), i.anchor.set(.5, .5), this.addChild(i);425var s = u.createCircleShape(24),426o = u.createFixtureDef(s, .5, 0, n, {427item: this,428dynamic: !0429}),430r = u.createBodyDef(t, e, ht.b2_dynamicBody);431this._body = u.createBody(r, [o]), this._enableUpdate(), this.angleUpdate = !0, this.positionUpdate = !0432}433434function U(t, e, n, i, s) {435a.call(this, "Spring", Z.zOrder.defaultZ), n = ot.toRadians(n), this.x = t, this.y = e, this.rotation = n, this.type = i, this.elasticity = s;436var o = rt.generateFrameNames("spring_", 1, 8, "", 4),437r = Pt.assets.getTextures(o, "atlasGame");438this._spring = new PIXI.extras.AnimatedSprite(r), this._spring.anchor.set(.5, .95), this._spring.scale.set(.5, .5), this._spring.animationSpeed = .5, this._spring.loop = !1, this._spring.stop(), this.addChildAt(this._spring, 0);439var l = u.createPolygonShape(14, 14),440y = u.createFixtureDef(l, .1, .1, .1),441h = u.createBodyDef(t, e, u.convertBodyTypeFromStringToNumber(this.type), !1, !0, n);442this._body = u.createBody(h, [y]);443var d = u.createPolygonShape(4, 10, -22, -26),444c = u.createFixtureDef(d, 1, 0, .2),445p = u.createPolygonShape(4, 10, 22, -26),446g = u.createFixtureDef(p, 1, 0, .2),447m = u.createPolygonShape(48, 6, 0, -24),448x = u.createFixtureDef(m, 1, 0, .1, this, !0),449w = u.createPolygonShape(44, 6, 0, -30),450f = u.createFixtureDef(w, 1, 0, .1, {451item: this,452isSensor: !1453}, !1),454P = u.createPolygonShape(14, 11, 0, -15),455_ = u.createFixtureDef(P, .1, .1, .1, this, "dynamic" == i),456v = u.createBodyDef(t, e, u.convertBodyTypeFromStringToNumber(this.type), !1, !0, n);457if (this._body2 = u.createBody(v, [c, g, x, f, _]), "dynamic" == i) {458var b = new wt;459b.Initialize(this._body, this._body2, new lt(t / Pt.physScale, e / Pt.physScale));460Pt.physWorld.CreateJoint(b)461}462Pt.physics.contactListener.addBeginContactListener(this._onBeginContact, this), "dynamic" == this.type && (this._enableUpdate(), this.angleUpdate = !0, this.positionUpdate = !0), this.sndSpring = Pt.assets.getSound("sndSpring")463}464465function F(t, e) {466a.call(this, "Star", Z.zOrder.defaultZ), this.x = t, this.y = e;467var n = rt.generateFrameNames("star_", 1, 52, "", 4),468i = Pt.assets.getTextures(n, "atlasGame"),469s = new PIXI.extras.AnimatedSprite(i);470s.anchor.set(.5, .5), s.scale.set(.5, .5), s.animationSpeed = 1, s.loop = !0, s.play(), this.addChildAt(s, 0);471var o = u.createCircleShape(10),472r = u.createFixtureDef(o, .2, .1, 1, {473item: this,474starSensor: !0475}, !0),476l = u.createBodyDef(t, e, ht.b2_staticBody);477this._body = u.createBody(l, [r]), Pt.physics.contactListener.addBeginContactListener(this._onBeginContact, this), this.sndStar = Pt.assets.getSound("sndStar")478}479480function V(t, e) {481a.call(this, "Stopper", Z.zOrder.defaultZ), this.x = t, this.y = e;482var n = Pt.assets.getSprite("stopper", "atlasGame");483n.scale.set(.5, .5), n.anchor.set(.5, .5), this.addChild(n);484var i = u.createCircleShape(5),485s = u.createFixtureDef(i, .2, .1, 1, this),486o = u.createBodyDef(t, e, ht.b2_staticBody);487this._body = u.createBody(o, [s])488}489490function X(t, e, n, i, s) {491a.call(this, "Swings", Z.zOrder.peg), n = ot.toRadians(n), this.x = t, this.y = e, this.rotation = n, this.lowerAngle = ot.toRadians(i), this.upperAngle = ot.toRadians(s);492var o = Pt.assets.getSprite("swings", "atlasGame");493o.scale.set(.5, .5), o.anchor.set(.5, .83), this.addChild(o);494var r = u.createPolygonShape(60, 11, 0, .5),495l = u.createFixtureDef(r, 1, 0, .4, this),496y = u.createPolygonShape(11, 30, 0, -20),497h = u.createFixtureDef(y, 1, 0, .4, this),498d = u.createBodyDef(t, e, ht.b2_dynamicBody, !1, !0, n);499this._body = u.createBody(d, [l, h]);500var c = Pt.physWorld.GetGroundBody(),501p = new xt;502p.Initialize(c, this._body, this._body.GetPosition());503var g = Pt.physWorld.CreateJoint(p);504g.EnableLimit(!0), g.SetLimits(this.lowerAngle - n, this.upperAngle - n), this._enableUpdate(), this.angleUpdate = !0, this.positionUpdate = !0505}506507function N(t, e, n, i, s, o) {508a.call(this, "Switcher", Z.zOrder.switcher), n = ot.toRadians(n), this.x = t, this.y = e, this.rotation = n, this.type = i, this.signalID = s, this.color = o;509var r = this.type + this.color + "_",510l = rt.generateFrameNames(r, 1, 6, "", 4),511y = Pt.assets.getTextures(l, "atlasGame");512this._switcher = new PIXI.extras.AnimatedSprite(y), this._switcher.anchor.set(.5, 1), this._switcher.scale.set(.5, .5), this._switcher.animationSpeed = 1, this._switcher.loop = !1, this.addChildAt(this._switcher, 0), this._on = !1;513var h = u.createPolygonShape(30, 8, 0, -12),514d = u.createFixtureDef(h, 1, 0, .1, {515item: this,516isSensor: !0517}, !0),518c = u.createPolygonShape(40, 10, 0, -4),519p = u.createFixtureDef(c, 1, 0, .1, this),520g = u.createBodyDef(t, e, ht.b2_staticBody, !1, !0, n);521this._body = u.createBody(g, [d, p]), Pt.physics.contactListener.addBeginContactListener(this._onBeginContact, this), "button" == this.type && Pt.physics.contactListener.addEndContactListener(this._onEndContact, this), this._countContacts = 0, this.sndSwitcher = Pt.assets.getSound("sndSwitcher")522}523524function W(t, e, n, i, s) {525a.call(this, "Teleport", Z.zOrder.teleport), i = ot.toRadians(i), this.x = t, this.y = e, this.rotation = i, this.id = n;526var o = rt.generateFrameNames("teleport" + s + "_", 1, 20, "", 4),527r = Pt.assets.getTextures(o, "atlasGame"),528l = new PIXI.extras.AnimatedSprite(r);529l.anchor.set(.5, .3), l.scale.set(.5, .5), l.animationSpeed = .5, l.loop = !0, l.play(), this.addChildAt(l, 0);530var y = u.createPolygonShape(6, 60, -20, 12),531h = u.createFixtureDef(y, 1, 0, .2),532d = u.createPolygonShape(6, 60, 20, 12),533c = u.createFixtureDef(d, 1, 0, .2),534p = u.createPolygonShape(44, 6, 0, 39),535g = u.createFixtureDef(p, 1, 0, 1),536m = u.createPolygonShape(44, 6),537x = u.createFixtureDef(m, 1, 0, 1, {538item: this,539teleportSensor: !0540}, !0),541w = u.createBodyDef(t, e, ht.b2_staticBody, !0, !0, i);542this._body = u.createBody(w, [h, c, g, x]), Pt.physics.contactListener.addBeginContactListener(this._onBeginContact, this), Pt.physics.contactListener.addEndContactListener(this._onEndContact, this), a.events.on(a.EVENT_TELEPORTATION, this._teleportation, this), this._inUse = !1, this.sndTeleport = Pt.assets.getSound("sndTeleport")543}544545function Y(t, e, n, i, s) {546a.call(this, "Tube", Z.zOrder.defaultZ), i = i || 0, s = s || 0, n = ot.toRadians(n), this.x = t, this.y = e, this.rotation = n;547var o = ot.vectorVelocityRad(n, 100);548this._force = new lt(o.x, o.y);549var r = Pt.assets.getSprite("tube", "atlasGame");550r.scale.set(.5, .5), r.anchor.set(.5, .5), this.addChild(r);551var l = i + s,552y = u.createPolygonShape(50, 6, 0, -13.5),553h = u.createFixtureDef(y, 1, .1, 1),554d = u.createPolygonShape(50, 6, 0, 13.5),555c = u.createFixtureDef(d, 1, .1, 1),556p = u.createPolygonShape(50 + l, 10, -i / 2 + s / 2),557g = u.createFixtureDef(p, 1, .1, 1, {558item: this,559tubeSensor: !0560}, !0),561m = u.createBodyDef(t, e, ht.b2_staticBody, !1, !0, n);562this._body = u.createBody(m, [c, g, h]), this._enableUpdate()563}564565function z(t) {566if (a.call(this, "Tutorial", Z.zOrder.tutorial), 1 == t) {567var e = Pt.assets.getSprite("tutorial1_1", "atlasUI");568e.scale.set(.5, .5), e.anchor.set(.5, .5), e.x = 380, e.y = 150, this.addChild(e);569var n = Pt.assets.getSprite("tutorial1_2", "atlasUI");570n.scale.set(.5, .5), n.anchor.set(.5, .5), n.x = 300, n.y = 450, this.addChild(n)571}572}573574function H(t, e, n) {575a.call(this, "WightBall", Z.zOrder.peg), n = n || 2, this.x = t, this.y = e;576var i = Pt.assets.getSprite("weightBall", "atlasGame");577i.scale.set(.5, .5), i.anchor.set(.5, .5), this.addChild(i);578var s = u.createCircleShape(40),579o = u.createFixtureDef(s, .2, .1, n, this),580r = u.createBodyDef(t, e, ht.b2_dynamicBody);581this._body = u.createBody(r, [o]), this._enableUpdate(), this.angleUpdate = !0, this.positionUpdate = !0582}583584function j() {585this.currLevel = 1, this.lastOpened = Pt.storage.get(Pt.SAVE_KEY_LAST_OPENED) || 1, this.totalLevels = ft.length586}587588function J() {589PIXI.Container.call(this), Pt.pixi.stage.addChild(this);590var t = new PIXI.Graphics;591t.beginFill(0), t.drawRect(0, 0, Pt.gameWidth0, Pt.gameHeight0), t.endFill(), this.addChild(t)592}593594function K() {595if (Pt.menuState) throw new Error("MenuState singelton!");596Pt.menuState = this, PIXI.Container.call(this), Pt.pixi.stage.addChildAt(this, 0);597var t = Pt.assets.getSprite("bg_menu");598t.scale.set(.5, .5), this.addChild(t), this._onBtnsLevelClick = this._onBtnsLevelClick.bind(this), this._menuDialog = new S(this._onClick, this), this.addChild(this._menuDialog), this._levelsDialog = new b(this._onBtnsLevelClick, this._onClick, this), this.addChild(this._levelsDialog), this._creditsDialog = new P(this._onClick, this), this.addChild(this._creditsDialog), this.sndButton = Pt.assets.getSound("sndButton")599}600601function Z() {602if (Pt.playState) throw new Error("MenuState singelton!");603Pt.playState = this, PIXI.Container.call(this), Pt.pixi.stage.addChildAt(this, 0), this.aimControl = !Pt.device.desktop && !Pt.device.chromeOS;604var t = Math.ceil(Pt.levelMng.currLevel / 15);605this.bg = Pt.assets.getSprite("bg_" + t), this.bg.scale.set(.5, .5), this.bg.interactive = !0, this.aimControl || this.bg.on("pointerdown", this._onStageClick, this), this.addChild(this.bg);606var e = new PIXI.Graphics;607e.alpha = .1, e.beginFill(0), e.drawRect(0, 0, Pt.gameWidth0, Pt.gameHeight0), e.endFill(), this.addChild(e), this.shotHandler = new c, this._onGameLayerChildAdded = this._onGameLayerChildAdded.bind(this), this.gameLayer = new PIXI.Container, this.gameLayer.onChildrenChange = this._onGameLayerChildAdded, this.addChild(this.gameLayer), this.ballLayer = new PIXI.Container, this.ballLayer.zOrder = Z.zOrder.ball, this.gameLayer.addChild(this.ballLayer), this.uiLayer = new PIXI.Container, this.addChild(this.uiLayer), this._createUI(), this._levelComplete = new v(this._onBtnsClick, this), this._levelComplete.hide(), this._isComplete = !1, Pt.levelMng.create(), Pt.levelMng.currLevel >= 1 && Pt.levelMng.currLevel <= 2 && this.gameLayer.addChild(new z(Pt.levelMng.currLevel)), this.sndButton = Pt.assets.getSound("sndButton"), this.aimControl && (this.aim = Pt.assets.getSprite("aim"), this.aim.scale.set(.5, .5), this.aim.anchor.set(.5, .5), this.aim.visible = !1, this.addChild(this.aim))608}609610function q() {611nt(), Pt.inited ? (Pt.pixi.renderer.autoResize = !0, Pt.pixi.renderer.resize(Pt.canvasWidth, Pt.canvasHeight), Pt.pixi.stage.scale.set(Pt.scale, Pt.scale), Pt.physics.enabledDD && Pt.physics.updateCanvasSize()) : $(), Pt.resizeHandler && Pt.resizeHandler.call(), Pt.imgRotate && (Pt.imgRotate.position.set(Pt.canvasWidth / 2, Pt.canvasHeight / 2), Pt.imgRotate.scale.x = Pt.imgRotate.scale.y = Pt.scale);612}613614function $() {615if (Pt.device = new Device, Pt.audioEnabled = !Pt.device.ie && (Pt.device.canPlayAudio("ogg") || Pt.device.canPlayAudio("m4a")), Pt.device.android && !Pt.device.chrome) {616var t = document.createElement("p"),617e = document.createTextNode("This game doesn't work correctly in default Android browser. Please install Chrome on your device.");618return t.appendChild(e), void document.getElementById("msg").appendChild(t)619}620var a = document.getElementById("msg");621a.parentNode.removeChild(a), Pt.pixi = new PIXI.Application(Pt.canvasWidth, Pt.canvasHeight, {622antialias: !0623}), Pt.pixi.renderer.backgroundColor = 0, Pt.pixi.stage.scale.set(Pt.scale, Pt.scale), document.body.appendChild(Pt.pixi.view), document.ontouchstart = function(t) {624t.preventDefault()625}, document.body.addEventListener("selectstart", function(t) {626t.preventDefault()627}, !1), console.log(Pt.pixi.renderer.view.width, Pt.pixi.renderer.view.height), Pt.physics = new u(!1), Pt.currLevelDebug = 4, Pt.browserEvents = new o, Pt.browserEvents.on("onResize", q), Pt.browserEvents.on("onOrientationChange", q), Pt.storage = new m;628var i = [];629i.push(Pt.SAVE_KEY_LAST_OPENED, Pt.SAVE_KEY_MUSIC, Pt.SAVE_KEY_SOUND);630for (var r = 1; r <= 30; r++) i.push(Pt.SAVE_KEY_STARS + r);631Pt.storage.read(i), Pt.assets = new s(Pt), Pt.rnd = new x([(Date.now() * Math.random()).toString()]);632try {633Pt.fps = new FPSMeter(document.body)634} catch (t) {}635if (Pt.levelMng = new j, Pt.shutter = new J, Pt.pixi.stage.addChild(Pt.preloader = new n), PIXI.loader.baseUrl = "assets", PIXI.loader.add("atlasUI", "images/atlasUI.json").add("atlasGame", "images/atlasGame.json").add("splash", "images/splash.png").add("bg_menu", "images/bg_menu.png").add("bg_1", "images/bg_1.png").add("bg_2", "images/bg_2.png"), Pt.audioEnabled) {636var l = Pt.device.iOS ? ".m4a" : ".ogg";637console.log(l), PIXI.loader.add("sndButton", "audio/button" + l).add("sndBallInBasket", "audio/ball_in_basket" + l).add("sndGear", "audio/gear" + l).add("sndShot", "audio/shot" + l).add("sndSpring", "audio/spring" + l).add("sndStar", "audio/star" + l).add("sndSwitcher", "audio/switcher" + l).add("sndTeleport", "audio/teleport" + l).add("sndTheme", "audio/theme" + l).add("sndWin", "audio/win" + l)638}639PIXI.loader.on("progress", Q).load(tt), Pt.inited = !0640}641642function Q(t, e) {643if (console.log("loading: " + e.url), Pt.preloader) {644var a = Math.round(t.progress);645Pt.preloader.setLoading(a)646}647}648649function tt() {650Pt.preloader ? (Pt.preloader.setLoading(100), Pt.preloader.loadedCallback(et)) : at()651}652653function et() {654Pt.splash = new i, Pt.splash.runAfter(at, 3e3), Pt.pixi.stage.addChild(Pt.splash)655}656657function at() {658if (Pt.preloader && (Pt.preloader.destroy(), Pt.preloader = null), Pt.splash && (Pt.splash.destroy(), Pt.splash = null), rt.atHome(["games.armorgames.com", "preview.armorgames.com", "cache.armorgames.com", "cdn.armorgames.com", "gamemedia.armorgames.com", "files.armorgames.com", "armorgames.com", "www.cb4.bitballoon.com", "cb4.bitballoon.com", "localhost"])) {659Pt._checkAudio();660var t = 1;6611 == t ? new K : 2 == t && (Pt.levelMng.currLevel = Pt.currLevelDebug, new Z), Pt.shutter.hide()662}663}664665function nt() {666var e = t.innerWidth,667a = t.innerHeight,668n = it(Pt.gameWidth0 / Pt.gameHeight0, e, a);669Pt.gameWidth1 = n.width, Pt.gameHeight1 = n.height, Pt.scale = Pt.gameWidth1 / Pt.gameWidth0, Pt.gameMaxWidth1 = Pt.gameMaxWidth0 * Pt.scale, Pt.gameMaxHeight1 = Pt.gameMaxHeight0 * Pt.scale, Pt.canvasWidth = Pt.gameMaxWidth1 > e ? e : Pt.gameMaxWidth1, Pt.canvasHeight = Pt.gameMaxHeight1 > a ? a : Pt.gameMaxHeight1;670var i = document.body;671i.style.width = Pt.canvasWidth + "px", i.style.height = Pt.canvasHeight + "px", i.style.marginLeft = e / 2 - Pt.canvasWidth / 2 + "px", i.style.marginTop = a / 2 - Pt.canvasHeight / 2 + "px"672}673674function it(t, e, a) {675var n = Math.floor(e),676i = Math.floor(a);677return t < 1 && e >= a ? n = Math.floor(a * t) : t >= 1 && e <= a ? i = Math.floor(e / t) : Math.floor(a * t) > e ? i = Math.floor(e / t) : n = Math.floor(a * t), {678width: n,679height: i680}681}682e.prototype = Object.create(PIXI.Sprite.prototype), e.prototype.constructor = e, e.prototype.destroy = function() {683this.disposed || (this.disposed = !0, this.parent && this.parent.removeChild(this), this.onClick.dispose(), this.onClick = null, this.onDown.dispose(), this.onDown = null, this.onUp.dispose(), this.onUp = null, this.onOut.dispose(), this.onOut = null, this._label && (this._label.destroy(), this._label = null), this.mousedown = this.touchstart = null, this.mouseup = this.touchend = this.mouseupoutside = this.touchendoutside = null, this.mouseover = null, this.mouseout = null, this.click = null, this.interactive = !1, this._cacheAnchorY = null)684}, e.prototype.setOpenURL = function(e) {685this.disposed || this.onClick.add(function(a) {686t.open(e, "_blank")687})688}, e.prototype.setIcon = function(t, e, a, n, i) {689if (!this.disposed) {690a = a || 0, n = n || 0, i = i || 1;691var s;692if ("string" == typeof t) s = this.app.assets.getTexture(t, e);693else if (t instanceof PIXI.Texture) s = t;694else if (t instanceof PIXI.Sprite) this.icon = t;695else if (null == t && this.icon) return this.removeChild(this.icon), void(this.icon = null);696s && (this.icon ? this.icon.setTexture(s) : this.icon = new PIXI.Sprite(s)), this.icon.anchor.set(.5, .5), this.icon.x = a, this.icon.y = n, this.icon.scale.set(i, i), this.addChild(this.icon)697}698}, e.prototype.setLabel = function(t, e, a, n) {699t = t || "", a = a || 0, n = n || 0, this._label || (this._label = new PIXI.Text(t, e), this.addChild(this._label)), this._label.text = t, e && (this._label.style = e), this._label.x = this.width / 2 - this._label.width / 2 + a, this._label.y = this.height / 2 - this._label.height / 2 + n700}, e.prototype._mouseOver = function(t) {701this.disposed || (this.isOver = !0, this.isDown || (this.tint = this.overTint))702}, e.prototype._mouseOut = function(t) {703this.disposed || (this.isOver = !1, this.onOut.call(t), this.isDown || (this.tint = this.upTint))704}, e.prototype._mouseDown = function(t) {705this.disposed || (this.isDown = !0, this.tint = this.downTint, this.onDown.call(t))706}, e.prototype._mouseUp = function(t) {707this.disposed || (this.isDown = !1, this.isOver ? this.tint = this.overTint : this.tint = this.upTint, this.onUp.call(t))708}, e.prototype._clickTap = function(t) {709this.disposed || this.onClick.call(t)710}, Object.defineProperty(e.prototype, "enable", {711get: function() {712return this.interactive713},714set: function(t) {715this.disposed || (this.interactive = t, t === !1 ? (this.isOver = !1, this._mouseUp(), this.tint = this.disableTint) : this.tint = this.upTint)716}717}), e.generateButton = function(t, a, n, i) {718var s = Pt.assets.getTexture(t, a);719return new e(s, n, i)720}, a.prototype = Object.create(PIXI.Container.prototype), a.prototype.constructor = a, a.prototype.destroy = function() {721PIXI.Container.prototype.destroy.call(this), this._body && Pt.physWorld.DestroyBody(this._body), this._body = null, Pt.pixi.ticker.remove(this._update, this)722}, a.prototype.setPosition = function(t, e) {723if (this._body) {724var a = this;725Pt.physics.doIt(function() {726a._body.SetPosition(new lt(t / Pt.physScale, e / Pt.physScale))727})728}729this.position.set(t, e)730}, a.prototype._enableUpdate = function() {731Pt.pixi.ticker.add(this._update, this)732}, a.prototype._disableUpdate = function() {733Pt.pixi.ticker.remove(this._update, this)734}, a.prototype._update = function() {735this.angleUpdate && (this.rotation = this._body.GetAngle()), this.positionUpdate && (this.x = this._body.GetPosition().x * Pt.physScale, this.y = this._body.GetPosition().y * Pt.physScale), this.y > 3e3 && (console.log("Item " + this.name + " has reached position of y at 3000. The item has been destroyed."), this.destroy())736}, a.prototype.GetBody = function() {737return this._body738}, a.events = new EventEmitter, a.EVENT_TRIGGER_PRESSED = "TriggerPressed", a.EVENT_TELEPORTATION = "Teleportation", n.prototype = Object.create(PIXI.Container.prototype), n.prototype.constructor = n, n.prototype.setLoading = function(t) {739this._loaded = t740}, n.prototype.loadedCallback = function(t) {741this._loadedCB = t742}, n.prototype._update = function() {743this._curr < this._loaded && (this._curr = Math.round(this._curr + 2 * Pt.pixi.ticker.deltaTime)), this._curr > this._loaded && (this._curr = this._loaded), this._txtLoading.text = "Loading " + this._curr + "%", 100 == this._curr && (Pt.pixi.ticker.remove(this._update, this), this._loadedCB && setTimeout(this._loadedCB, 500))744}, i.prototype = Object.create(PIXI.Container.prototype), i.prototype.constructor = i, i.prototype.runAfter = function(t, e) {745e = void 0 != e ? e : 1e3, setTimeout(t, e)746}, i.prototype._onBtnsClick = function(e) {747748}, s.prototype.constructor = s, s.prototype.getTexture = function(t, e) {749return e ? PIXI.loader.resources[e].textures[t] : PIXI.utils.TextureCache[t]750}, s.prototype.getTextures = function(t, e) {751var a;752a = e ? PIXI.loader.resources[e].textures : PIXI.utils.TextureCache;753for (var n = [], i = 0; i < t.length; i++) n.push(a[t[i]]);754return n755}, s.prototype.getSprite = function(t, e, a) {756var n = new PIXI.Sprite(this.getTexture(t, e));757return a && n.anchor.set(.5, .5), n758}, s.prototype.getSound = function(t) {759return 0 == Pt.audioEnabled ? null : PIXI.loader.resources[t].sound760}, o.prototype.constructor = o, o.prototype._onVisibilityChange = function(t) {761t.preventDefault(), this._event.originalEvent = t, this._event.type = document.hidden === !1 ? "onPageShow" : "onPageHide", this.emit(this._event)762}, o.prototype._onWebkitVisibilityChange = function(t) {763t.preventDefault(), this._event.originalEvent = t, this._event.type = document.webkitHidden === !1 ? "onPageShow" : "onPageHide", this.emit(this._event)764}, o.prototype._onPageShow = function(t) {765t.preventDefault(), this._event.originalEvent = t, this._event.type = "onPageShow", this.emit(this._event)766}, o.prototype._onPageHide = function(t) {767t.preventDefault(), this._event.originalEvent = t, this._event.type = "onPageHide", this.emit(this._event)768}, o.prototype._onFocus = function(t) {769t.preventDefault(), this._event.originalEvent = t, this._event.type = "onFocusGet", this.emit(this._event)770}, o.prototype._onBlur = function(t) {771t.preventDefault(), this._event.originalEvent = t, this._event.type = "onFocusLost", this.emit(this._event)772}, o.prototype._onResize = function(t) {773t.preventDefault(), this._event.originalEvent = t, this._event.type = "onResize", this.emit(this._event);774var e = this._getOrientation();775this.orientation !== e && (this._event.orientation = this.orientation = e, this._onOrientationChange(t))776}, o.prototype._onOrientationChange = function(t) {777t.preventDefault(), this._event.originalEvent = t, this._event.type = "onOrientationChange", this._event.orientation = this.orientation = this._getOrientation(), this.emit(this._event)778}, o.prototype._getOrientation = function() {779return t.innerWidth > t.innerHeight ? "landscape" : "portrait"780}, EventTarget = function() {781var t = {};782this.addEventListener = this.on = function(e, a) {783void 0 === t[e] && (t[e] = []), t[e].indexOf(a) === -1 && t[e].push(a)784}, this.dispatchEvent = this.emit = function(e) {785if (t[e.type] && t[e.type].length)786for (var a = 0, n = t[e.type].length; a < n; a++) t[e.type][a](e)787}, this.removeEventListener = this.off = function(e, a) {788var n = t[e].indexOf(a);789n !== -1 && t[e].splice(n, 1)790}, this.removeAllEventListeners = function(e) {791var a = t[e];792a && (a.length = 0)793}794}, r.prototype = Object.create(PIXI.Sprite.prototype), r.prototype.constructor = r, r.prototype.destroy = function() {795this.disposed || (this.disposed = !0, this.parent && this.parent.removeChild(this), this.onClick.dispose(), this.onClick = null, this.onDown.dispose(), this.onDown = null, this.onUp.dispose(), this.onUp = null, this.onOut.dispose(), this.onOut = null, this.up = null, this.over = null, this.down = null, this.mousedown = this.touchstart = null, this.mouseup = this.touchend = this.mouseupoutside = this.touchendoutside = null, this.mouseover = null, this.mouseout = null, this.click = null, this.interactive = !1, this._cacheAnchorY = null)796}, r.prototype.setOpenURL = function(e) {797this.disposed || this.onClick.add(function(a) {798t.open(e, "_blank")799})800}, r.prototype._mouseOver = function(t) {801this.disposed || (this.isOver = !0, this.isDown || (this.over ? this.texture = this.over : (this._cacheAnchorY = this.anchor.y, this.anchor.y -= .01)))802}, r.prototype._mouseOut = function(t) {803this.disposed || (this.isOver = !1, this.onOut.call(t), this.isDown || (this.texture = this.up, this._cacheAnchorY && (this.anchor.y = this._cacheAnchorY, this._cacheAnchorY = null)))804}, r.prototype._mouseDown = function(t) {805this.disposed || (this.isDown = !0, this.down && (this.texture = this.down), this.onDown.call(t))806}, r.prototype._mouseUp = function(t) {807this.disposed || (this.isDown = !1, this.isOver ? this.over ? this.texture = this.over : this.anchor.y = this._cacheAnchorY - .01 : (this.texture = this.up, this._cacheAnchorY && (this.anchor.y = this._cacheAnchorY, this._cacheAnchorY = null)), this.onUp.call(t))808}, r.prototype._clickTap = function(t) {809this.disposed || this.onClick.call(t)810}, Object.defineProperty(r.prototype, "enable", {811get: function() {812return this.interactive813},814set: function(t) {815this.disposed || (this.interactive = t, t === !1 && (this.isOver = !1, this._mouseUp()))816}817}), r.generateButton = function(t, e, a, n) {818var i, s, o;819i = Pt.assets.getTexture(t + "up", e);820try {821s = Pt.assets.getTexture(t + "over", e)822} catch (t) {}823try {824o = Pt.assets.getTexture(t + "down", e)825} catch (t) {}826return new r(i, s, o, a, n)827}, l.prototype = Object.create(e.prototype), l.prototype.constructor = l, l.prototype.setLocked = function(t) {828if (this.enable = !t, t) {829this.alpha = .5;830for (var e = 0; e < 3; e++) this._stars[e].visible = !1831} else {832for (var a = Pt.storage.get(Pt.SAVE_KEY_STARS + this.num), n = 0; n < 3; n++) this._stars[n].visible = n + 1 <= a;833this.alpha = 1834}835}, y.prototype = Object.create(PIXI.Container.prototype), y.prototype.constructor = l, y.prototype._onClick = function(t) {836t.target == this._on ? this.on = !1 : t.target == this._off && (this.on = !0), t.target = this, t.isOn = this.on, this._callback.call(this._callbackScope, t)837}, Object.defineProperty(y.prototype, "on", {838get: function() {839return this._on.visible840},841set: function(t) {842this.disposed || (this._on.visible = t, this._off.visible = !t)843}844}), h.__id = 0, h.prototype.add = function(t) {845var e = this._arr.indexOf(t);846return e >= 0 ? void(this.throwIfIn && new Error("Item already in collection. [" + this.name + "].")) : void(this._arr[this._arr.length] = t)847}, h.prototype.remove = function(t) {848var e = this._arr.indexOf(t);849return e < 0 ? void(this.throwIfNotIn && new Error("There is not item in collection. [" + this.name + "].")) : void this._arr.splice(e, 1)850}, h.prototype.at = function(t) {851return t < 0 ? (this.throwIfOut && new Error("Index is lower than zero. [" + this.name + "]."), t = 0) : t >= this._arr.length && (this.throwIfOut && new Error("Index is higher than total. [" + this.name + "]."), t = this._arr.length - 1), this._arr[t]852}, h.prototype.first = function() {853return this._arr[0]854}, h.prototype.last = function() {855return this._arr[this._arr.length - 1]856}, h.prototype.getByProperty = function(t, e) {857if (null == t || null == e) return null;858for (var a = this.total(), n = 0; n < a; n++) {859var i = this._arr[n];860if (i[t] && i[t] == e) return i861}862return null863}, h.prototype.has = function(t) {864return this._arr.indexOf(t) >= 0865}, h.prototype.clear = function() {866this._arr.splice(0, this._arr.length)867}, h.prototype.total = function() {868return this._arr.length869}, d.prototype = Object.create(Box2D.Dynamics.b2ContactListener.prototype), d.prototype.constructor = d, d.prototype.BeginContact = function(t) {870this._ee.emit(this._eventNameBeginContact, t)871}, d.prototype.EndContact = function(t) {872this._ee.emit(this._eventNameEndContact, t)873}, d.prototype.addBeginContactListener = function(t, e) {874this._ee.on(this._eventNameBeginContact, t, e)875}, d.prototype.removeBeginContactListener = function(t, e) {876this._ee.off(this._eventNameBeginContact, t, e)877}, d.prototype.addEndContactListener = function(t, e) {878this._ee.on(this._eventNameEndContact, t, e)879}, d.prototype.removeEndContactListener = function(t, e) {880this._ee.off(this._eventNameEndContact, t, e)881}, Device = function() {882this.patchAndroidClearRectBug = !1, this.desktop = !1, this.iOS = !1, this.cocoonJS = !1, this.ejecta = !1, this.android = !1, this.chromeOS = !1, this.linux = !1, this.macOS = !1, this.windows = !1, this.canvas = !1, this.file = !1, this.fileSystem = !1, this.localStorage = !1, this.webGL = !1, this.worker = !1, this.touch = !1, this.mspointer = !1, this.css3D = !1, this.pointerLock = !1, this.typedArray = !1, this.vibration = !1, this.quirksMode = !1, this.arora = !1, this.chrome = !1, this.epiphany = !1, this.firefox = !1, this.ie = !1, this.ieVersion = 0, this.trident = !1, this.tridentVersion = 0, this.mobileSafari = !1, this.midori = !1, this.opera = !1, this.safari = !1, this.webApp = !1, this.silk = !1, this.audioData = !1, this.webAudio = !1, this.ogg = !1, this.opus = !1, this.mp3 = !1, this.wav = !1, this.m4a = !1, this.webm = !1, this.iPhone = !1, this.iPhone4 = !1, this.iPad = !1, this.pixelRatio = 0, this.littleEndian = !1, this._checkAudio(), this._checkBrowser(), this._checkCSS3D(), this._checkDevice(), this._checkFeatures(), this._checkOS()883}, Device.prototype = {884_checkOS: function() {885var t = navigator.userAgent;886/Android/.test(t) ? this.android = !0 : /CrOS/.test(t) ? this.chromeOS = !0 : /iP[ao]d|iPhone/i.test(t) ? this.iOS = !0 : /Linux/.test(t) ? this.linux = !0 : /Mac OS/.test(t) ? this.macOS = !0 : /Windows/.test(t) && (this.windows = !0), (this.windows || this.macOS || this.linux && this.silk === !1) && (this.desktop = !0)887},888_checkFeatures: function() {889this.canvas = !!t.CanvasRenderingContext2D;890try {891this.localStorage = !!localStorage.getItem892} catch (t) {893this.localStorage = !1894}895this.file = !!(t.File && t.FileReader && t.FileList && t.Blob), this.fileSystem = !!t.requestFileSystem, this.webGL = function() {896try {897var e = document.createElement("canvas");898return !!t.WebGLRenderingContext && (e.getContext("webgl") || e.getContext("experimental-webgl"))899} catch (t) {900return !1901}902}(), null === this.webGL || this.webGL === !1 ? this.webGL = !1 : this.webGL = !0, this.worker = !!t.Worker, ("ontouchstart" in document.documentElement || t.navigator.maxTouchPoints && t.navigator.maxTouchPoints > 1) && (this.touch = !0), (t.navigator.msPointerEnabled || t.navigator.pointerEnabled) && (this.mspointer = !0), this.pointerLock = "pointerLockElement" in document || "mozPointerLockElement" in document || "webkitPointerLockElement" in document, this.quirksMode = "CSS1Compat" !== document.compatMode903},904_checkBrowser: function() {905var e = navigator.userAgent;906/Arora/.test(e) ? this.arora = !0 : /Chrome/.test(e) ? this.chrome = !0 : /Epiphany/.test(e) ? this.epiphany = !0 : /Firefox/.test(e) ? this.firefox = !0 : /Mobile Safari/.test(e) ? this.mobileSafari = !0 : /MSIE (\d+\.\d+);/.test(e) ? (this.ie = !0, this.ieVersion = parseInt(RegExp.$1, 10)) : /Midori/.test(e) ? this.midori = !0 : /Opera/.test(e) ? this.opera = !0 : /Safari/.test(e) ? this.safari = !0 : /Silk/.test(e) ? this.silk = !0 : /Trident\/(\d+\.\d+);/.test(e) && (this.ie = !0, this.trident = !0, this.tridentVersion = parseInt(RegExp.$1, 10)), navigator.standalone && (this.webApp = !0), navigator.isCocoonJS && (this.cocoonJS = !0), "undefined" != typeof t.ejecta && (this.ejecta = !0)907},908_checkAudio: function() {909this.audioData = !!t.Audio, this.webAudio = !(!t.webkitAudioContext && !t.AudioContext);910var e = document.createElement("audio"),911a = !1;912try {913(a = !!e.canPlayType) && (e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/, "") && (this.ogg = !0), e.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/, "") && (this.opus = !0), e.canPlayType("audio/mpeg;").replace(/^no$/, "") && (this.mp3 = !0), e.canPlayType('audio/wav; codecs="1"').replace(/^no$/, "") && (this.wav = !0), (e.canPlayType("audio/x-m4a;") || e.canPlayType("audio/aac;").replace(/^no$/, "")) && (this.m4a = !0), e.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/, "") && (this.webm = !0))914} catch (t) {}915},916_checkDevice: function() {917this.pixelRatio = t.devicePixelRatio || 1, this.iPhone = navigator.userAgent.toLowerCase().indexOf("iphone") != -1, this.iPhone4 = 2 == this.pixelRatio && this.iPhone, this.iPad = navigator.userAgent.toLowerCase().indexOf("ipad") != -1, "undefined" != typeof Int8Array ? (this.littleEndian = new Int8Array(new Int16Array([1]).buffer)[0] > 0, this.typedArray = !0) : (this.littleEndian = !1, this.typedArray = !1), navigator.vibrate = navigator.vibrate || navigator.webkitVibrate || navigator.mozVibrate || navigator.msVibrate, navigator.vibrate && (this.vibration = !0)918},919_checkCSS3D: function() {920var e, a = document.createElement("p"),921n = {922webkitTransform: "-webkit-transform",923OTransform: "-o-transform",924msTransform: "-ms-transform",925MozTransform: "-moz-transform",926transform: "transform"927};928document.body.insertBefore(a, null);929for (var i in n) void 0 !== a.style[i] && (a.style[i] = "translate3d(1px,1px,1px)", e = t.getComputedStyle(a).getPropertyValue(n[i]));930document.body.removeChild(a), this.css3D = void 0 !== e && e.length > 0 && "none" !== e931},932canPlayAudio: function(t) {933return !("mp3" != t || !this.mp3) || (!("ogg" != t || !this.ogg && !this.opus) || (!("m4a" != t || !this.m4a) || (!("wav" != t || !this.wav) || !("webm" != t || !this.webm))))934},935isConsoleOpen: function() {936return !(!t.console || !t.console.firebug) || !!t.console && (console.profile(), console.profileEnd(), console.clear && console.clear(), console.profiles.length > 0)937}938}, Device.prototype.constructor = Device, c.prototype.dispose = function() {939this.disposed || (this.disposed = !0, this.count = 0, this._callbacks = null, this._doItAfter = null)940}, c.prototype.has = function(t, e) {941if (!this.disposed) return this._callbacks.indexOf(t) >= 0942}, c.prototype.add = function(t) {943if (!this.disposed && !this.has(t)) {944var e = this,945a = function() {946e._callbacks[e.count] = t, e.count++947};948this._blocked ? this._doItAfter[this._doItAfter.length] = a : a()949}950}, c.prototype.remove = function(t) {951if (!(this.disposed || this._callbacks.indexOf(t) < 0)) {952var e = this,953a = function() {954var a = e._callbacks.indexOf(t);955e._callbacks.splice(a, 1), e.count--956};957this._blocked ? this._doItAfter[this._doItAfter.length] = a : a()958}959}, c.prototype.call = function() {960if (!this.disposed && this._callbacks.length > 0) {961var t;962for (this._blocked = !0, t = this._callbacks.length - 1; t >= 0; t--) this._callbacks[t].apply(null, arguments.length > 0 ? Array.prototype.slice.call(arguments) : null);963if (this._blocked = !1, this.disposed) return;964if (this._doItAfter.length > 0) {965for (t = this._doItAfter.length - 1; t >= 0; t--) this._doItAfter[t]();966this._doItAfter.splice(0, this._doItAfter.length)967}968}969}, p.prototype.update = function() {970var t = Date.now();971this.ms = t - this.startTime, this.msMin = Math.min(this.msMin, this.ms), this.msMax = Math.max(this.msMax, this.ms), this.frames++, t > this.prevTime + 1e3 && (this.fps = Math.round(1e3 * this.frames / (t - this.prevTime)), this.fpsMin = Math.min(this.fpsMin, this.fps), this.fpsMax = Math.max(this.fpsMax, this.fps), this.prevTime = t, this.frames = 0)972}, g.prototype.constructor = g;973var st = "";974g.prototype.collectInteractiveSprite = function(t, e) {975for (var a = t.children, n = a.length, i = 0; i < n; i++) {976var s = a[i];977s.visible === !1 && this.interactInvisible === !1 || (s.interactive ? (console.log(st, s.name), s.__iParent = e, this.interactiveItems.push(s), s.children.length > 0 && (st += "\t", this.collectInteractiveSprite(s, s))) : (s.__iParent = null, s.children.length > 0 && this.collectInteractiveSprite(s, e)))978}979st = ""980}, g.prototype.setTarget = function(t) {981this.target = t, null === this.interactionDOMElement && this.setTargetDomElement(t.view), document.body.addEventListener("mouseup", this.onMouseUp, !0)982}, g.prototype.setTargetDomElement = function(e) {983null !== this.interactionDOMElement && (this.interactionDOMElement.style["-ms-content-zooming"] = "", this.interactionDOMElement.style["-ms-touch-action"] = "", this.interactionDOMElement.removeEventListener("mousemove", this.onMouseMove, !0), this.interactionDOMElement.removeEventListener("mousedown", this.onMouseDown, !0), this.interactionDOMElement.removeEventListener("mouseout", this.onMouseOut, !0), this.interactionDOMElement.removeEventListener("touchstart", this.onTouchStart, !0), this.interactionDOMElement.removeEventListener("touchend", this.onTouchEnd, !0), this.interactionDOMElement.removeEventListener("touchmove", this.onTouchMove, !0)), t.navigator.msPointerEnabled && (e.style["-ms-content-zooming"] = "none", e.style["-ms-touch-action"] = "none"), this.interactionDOMElement = e, e.addEventListener("mousemove", this.onMouseMove, !0), e.addEventListener("mousedown", this.onMouseDown, !0), e.addEventListener("mouseout", this.onMouseOut, !0), e.addEventListener("touchstart", this.onTouchStart, !0), e.addEventListener("touchend", this.onTouchEnd, !0), e.addEventListener("touchmove", this.onTouchMove, !0)984}, g.prototype.update = function() {985if (this.target) {986var t = Date.now(),987e = t - this.last;988if (e = 30 * e / 1e3, !(e < 1)) {989this.last = t;990var a = 0;991this.dirty && (this.dirty = !1, this.interactiveItems = [], this.stage.interactive && this.interactiveItems.push(this.stage), this.collectInteractiveSprite(this.stage, this.stage));992this.interactionDOMElement.style.cursor = "inherit";993var n = this.interactiveItems.length;994for (a = n - 1; a >= 0; a--) {995var i = this.interactiveItems[a];996if (i.mouseover || i.mouseout || i.buttonMode) {997if (i.__iParent && i.__iParent.__target) continue;998i.__hit = null != i.__target || this.hitTest(i, this.mouse), i.__hit ? (i.buttonMode && (this.interactionDOMElement.style.cursor = i.defaultCursor), i.__iParent && (i.__iParent.__target = i), i.__target ? this.mouse.target = i.__target : this.mouse.target = i, i.__isOver || (i.mouseover && i.mouseover(this.mouse), i.__isOver = !0)) : i.__isOver && (i.mouseout && i.mouseout(this.mouse), i.__isOver = !1)999}1000}1001for (a = n - 1; a >= 0; a--) i = this.interactiveItems[a], i.__target = null1002}1003}1004}, g.prototype.onMouseMove = function(e) {1005this.mouse.originalEvent = e || t.event;1006var a = this.interactionDOMElement.getBoundingClientRect();1007this.mouse.global.x = (e.clientX - a.left) * (this.target.width / a.width), this.mouse.global.y = (e.clientY - a.top) * (this.target.height / a.height);1008for (var n = this.interactiveItems.length, i = 0; i < n; i++) {1009var s = this.interactiveItems[i];1010s.mousemove && s.mousemove(this.mouse)1011}1012}, g.prototype.onMouseDown = function(e) {1013this.mouse.originalEvent = e || t.event;1014for (var a = this.interactiveItems.length, n = function(t, e) {1015return t === e || !!t.__target && n(t.__target, e)1016}, i = null, s = 0, o = a - 1; o >= 0; o--) {1017var r = this.interactiveItems[o];1018if (r.mousedown || r.click) {1019if (r != i && i && 0 == n(r, i)) continue;1020r.__hit = r.__target || this.hitTest(r, this.mouse), s++, r.__hit && (i || (i = r), r.__iParent && (r.__iParent.__target = r.__target || r), this.mouse.target = r.__target || r, r.mousedown && r.mousedown(this.mouse), r.__isDown = !0)1021} else r.__iParent.__target = r.__target1022}1023for (console.log(s, a), o = a - 1; o >= 0; o--) r = this.interactiveItems[o], r.__target = null1024}, g.prototype.onMouseOut = function() {1025var t = this.interactiveItems.length;1026this.interactionDOMElement.style.cursor = "inherit";1027for (var e = 0; e < t; e++) {1028var a = this.interactiveItems[e];1029a.__isOver && (this.mouse.target = a, a.mouseout && a.mouseout(this.mouse), a.__isOver = !1)1030}1031}, g.prototype.onMouseUp = function(e) {1032this.mouse.originalEvent = e || t.event;1033for (var a = this.interactiveItems.length, n = !1, i = 0; i < a; i++) {1034var s = this.interactiveItems[i];1035s.__hit = this.hitTest(s, this.mouse), s.__hit && !n ? (s.mouseup && s.mouseup(this.mouse), s.__isDown && s.click && s.click(this.mouse), s.interactiveChildren || (n = !0)) : s.__isDown && s.mouseupoutside && s.mouseupoutside(this.mouse), s.__isDown = !11036}1037}, g.prototype.hitTest = function(t, e) {1038var a = e.global;1039if (!t.worldVisible) return !1;1040var n = t instanceof PIXI.Sprite,1041i = t.worldTransform,1042s = i[0],1043o = i[1],1044r = i[2],1045l = i[3],1046y = i[4],1047h = i[5],1048d = 1 / (s * y + o * -l),1049c = y * d * a.x + -o * d * a.y + (h * o - r * y) * d,1050p = s * d * a.y + -l * d * a.x + (-h * s + r * l) * d;1051if (t.hitArea && t.hitArea.contains) return !!t.hitArea.contains(c, p) && (e.target = t, !0);1052if (n) {1053var g, m = t.texture.frame.width,1054u = t.texture.frame.height,1055x = -m * t.anchor.x;1056if (c > x && c < x + m && (g = -u * t.anchor.y, p > g && p < g + u)) return e.target = t, !01057}1058for (var w = t.children.length, f = 0; f < w; f++) {1059var P = t.children[f],1060_ = this.hitTest(P, e);1061if (_) return e.target = P, e.currentTarget = t, !01062}1063return !11064}, g.prototype.onTouchMove = function(e) {1065var a, n = this.interactionDOMElement.getBoundingClientRect(),1066i = e.changedTouches,1067s = 0;1068for (s = 0; s < i.length; s++) {1069var o = i[s];1070a = this.touchs[o.identifier], a.originalEvent = e || t.event, a.global.x = (o.clientX - n.left) * (this.target.width / n.width), a.global.y = (o.clientY - n.top) * (this.target.height / n.height), navigator.isCocoonJS && (a.global.x = o.clientX, a.global.y = o.clientY)1071}1072var r = this.interactiveItems.length;1073for (s = 0; s < r; s++) {1074var l = this.interactiveItems[s];1075l.touchmove && l.touchmove(a)1076}1077}, g.prototype.onTouchStart = function(e) {1078for (var a = this.interactionDOMElement.getBoundingClientRect(), n = e.changedTouches, i = 0; i < n.length; i++) {1079var s = n[i],1080o = this.pool.pop();1081o || (o = new PIXI.InteractionData), o.originalEvent = e || t.event, this.touchs[s.identifier] = o, o.global.x = (s.clientX - a.left) * (this.target.width / a.width), o.global.y = (s.clientY - a.top) * (this.target.height / a.height), navigator.isCocoonJS && (o.global.x = s.clientX, o.global.y = s.clientY);1082for (var r = this.interactiveItems.length, l = 0; l < r; l++) {1083var y = this.interactiveItems[l];1084if ((y.touchstart || y.tap) && (y.__hit = this.hitTest(y, o), y.__hit && (y.touchstart && y.touchstart(o), y.__isDown = !0, y.__touchData = o, !y.interactiveChildren))) break1085}1086}1087}, g.prototype.onTouchEnd = function(e) {1088for (var a = this.interactionDOMElement.getBoundingClientRect(), n = e.changedTouches, i = 0; i < n.length; i++) {1089var s = n[i],1090o = this.touchs[s.identifier],1091r = !1;1092o.global.x = (s.clientX - a.left) * (this.target.width / a.width), o.global.y = (s.clientY - a.top) * (this.target.height / a.height), navigator.isCocoonJS && (o.global.x = s.clientX, o.global.y = s.clientY);1093for (var l = this.interactiveItems.length, y = 0; y < l; y++) {1094var h = this.interactiveItems[y],1095d = h.__touchData;1096h.__hit = this.hitTest(h, o), d === o && (o.originalEvent = e || t.event, (h.touchend || h.tap) && (h.__hit && !r ? (h.touchend && h.touchend(o), h.__isDown && h.tap && h.tap(o), h.interactiveChildren || (r = !0)) : h.__isDown && h.touchendoutside && h.touchendoutside(o), h.__isDown = !1), h.__touchData = null)1097}1098this.pool.push(o), this.touchs[s.identifier] = null1099}1100}, g.InteractionData = function() {1101this.global = new PIXI.Point, this.local = new PIXI.Point, this.currentTarget = null, this.target = null, this.originalEvent = null1102}, g.InteractionData.prototype.getLocalPosition = function(t) {1103var e = t.worldTransform,1104a = this.global,1105n = e[0],1106i = e[1],1107s = e[2],1108o = e[3],1109r = e[4],1110l = e[5],1111y = 1 / (n * r + i * -o);1112return new PIXI.Point(r * y * a.x + -i * y * a.y + (l * i - s * r) * y, n * y * a.y + -o * y * a.x + (-l * n + s * o) * y)1113}, g.InteractionData.prototype.constructor = g.InteractionData;1114var ot = {};1115ot.distance1 = function(t, e, a, n) {1116var i = a - t,1117s = n - e;1118return Math.sqrt(i * i + s * s)1119}, ot.distance2 = function(t, e) {1120var a = e.x - t.x,1121n = e.y - t.y;1122return Math.sqrt(a * a + n * n)1123}, ot.angleRad1 = function(t, e, a, n) {1124return Math.atan2(n - e, a - t)1125}, ot.angleDeg1 = function(t, e, a, n) {1126return Math.atan2(n - e, a - t) / Math.PI * 1801127}, ot.angleRad2 = function(t, e) {1128return Math.atan2(e.y - t.y, e.x - t.x)1129}, ot.angleDeg2 = function(t, e) {1130return Math.atan2(e.y - t.y, e.x - t.x) / Math.PI * 1801131}, ot.vectorVelocityRad = function(t, e) {1132return {1133x: Math.cos(t) * e,1134y: Math.sin(t) * e1135}1136}, ot.vectorVelocityDeg = function(t, e) {1137var a = t * Math.PI / 180;1138return {1139x: Math.cos(a) * e,1140y: Math.sin(a) * e1141}1142}, ot.equal = function(t, e, a) {1143return a = a || 1e-5, Math.abs(t - e) <= a1144}, ot.toDegrees = function(t) {1145return 180 * t / Math.PI1146}, ot.toRadians = function(t) {1147return t * Math.PI / 1801148}, ot.normAngleDeg = function(t, e) {1149return t %= 360, t = (t + 360) % 360, e && t > 180 && (t -= 360), t1150}, ot.pointLength = function(t) {1151return Math.sqrt(t.x * t.x + t.y * t.y)1152}, ot.pointNormalize = function(t, e) {1153var a = ot.pointLength(t);1154return 0 == a ? t : (t.x /= a, t.y /= a, e && (t.x *= e, t.y *= e), t)1155}, ot.intersection = function(t, e, a, n, i, s, o, r, l) {1156if (t === i && e === s) return null != l && (l.x = t, l.y = e), !0;1157if (t == o && e == r) return null != l && (l.x = t, l.y = e), !0;1158if (a == i && n == s) return null != l && (l.x = a, l.y = n), !0;1159if (a == o && n == r) return null != l && (l.x = a, l.y = n), !0;1160var y = a - t,1161h = n - e,1162d = o - i,1163c = r - s,1164p = -h,1165g = y,1166m = -(p * t + g * e),1167u = -c,1168x = d,1169w = -(u * i + x * s),1170P = u * t + x * e + w,1171_ = u * a + x * n + w,1172v = p * i + g * s + m,1173b = p * o + g * r + m;1174if (P * _ >= 0 || v * b >= 0) return !1;1175var S = P / (P - _);1176y *= S, h *= S;1177return null != l && (l.x = f.x, l.y = f.y), !01178}, ot.intersection = function(t, e, a, n, i) {1179if (t.x == a.x && t.y == a.y) return null != i && i.set(t), !0;1180if (t.x == n.x && t.y == n.y) return null != i && i.set(t), !0;1181if (e.x == a.x && e.y == a.y) return null != i && i.set(e), !0;1182if (e.x == n.x && e.y == n.y) return null != i && i.set(e), !0;1183var s = e.sub(t),1184o = n.sub(a),1185r = -s.y,1186l = s.x,1187y = -(r * t.x + l * t.y),1188h = -o.y,1189d = o.x,1190c = -(h * a.x + d * a.y),1191p = h * t.x + d * t.y + c,1192g = h * e.x + d * e.y + c,1193m = r * a.x + l * a.y + y,1194u = r * n.x + l * n.y + y;1195if (p * g >= 0 || m * u >= 0) return !1;1196var x = p / (p - g);1197s.x *= x, s.y *= x;1198var w = t.add(s);1199return null != i && (i.x = w.x), null != i && (i.y = w.y), !01200}, m.prototype.get = function(t) {1201return this._storage[t]1202}, m.prototype.set = function(t, e) {1203this._storage[t] = e.toString(), this.localStorageEnable && localStorage.setItem(t, e.toString())1204}, m.prototype.read = function(t) {1205if (this.localStorageEnable)1206for (var e = t.length, a = 0; a < e; a++) {1207var n = t[a],1208i = localStorage.getItem(n);1209i && (this._storage[n] = i)1210}1211}, m.prototype.clear = function() {1212this._storage = {}, localStorage.clear()1213};1214var rt = {};1215rt.generateFrameNames = function(t, e, a, n, i) {1216"undefined" == typeof n && (n = "");1217var s, o = [],1218r = "";1219if (e < a)1220for (s = e; s <= a; s++) r = "number" == typeof i ? rt.pad(s.toString(), i, "0", 1) : s.toString(), r = t + r + n, o.push(r);1221else1222for (s = e; s >= a; s--) r = "number" == typeof i ? Phaser.Utils.pad(s.toString(), i, "0", 1) : s.toString(), r = t + r + n, o.push(r);1223return o1224}, rt.pad = function(t, e, a, n) {1225"undefined" == typeof e && (e = 0), "undefined" == typeof a && (a = " "), "undefined" == typeof n && (n = 3);1226var i = 0;1227if (e + 1 >= t.length) switch (n) {1228case 1:1229t = Array(e + 1 - t.length).join(a) + t;1230break;1231case 3:1232var s = Math.ceil((i = e - t.length) / 2),1233o = i - s;1234t = Array(o + 1).join(a) + t + Array(s + 1).join(a);1235break;1236default:1237t += Array(e + 1 - t.length).join(a)1238}1239return t1240}, rt.atHome = function(e) {1241var a = t.location.hostname;1242return true1243};1244var lt = Box2D.Common.Math.b2Vec2,1245yt = (Box2D.Collision.b2AABB, Box2D.Dynamics.b2BodyDef),1246ht = Box2D.Dynamics.b2Body,1247dt = Box2D.Dynamics.b2FixtureDef,1248ct = (Box2D.Dynamics.b2Fixture, Box2D.Dynamics.b2World),1249pt = Box2D.Collision.Shapes.b2MassData,1250gt = Box2D.Collision.Shapes.b2PolygonShape,1251mt = Box2D.Collision.Shapes.b2CircleShape,1252ut = Box2D.Dynamics.b2DebugDraw,1253xt = (Box2D.Dynamics.Joints.b2MouseJointDef, Box2D.Dynamics.Joints.b2RevoluteJoint, Box2D.Dynamics.Joints.b2RevoluteJointDef),1254wt = Box2D.Dynamics.Joints.b2WeldJointDef;1255Box2D.Dynamics.Joints.b2WeldJoint;1256u.prototype.constructor = u, u.prototype.enableDebugDraw = function() {1257this.enabledDD = !0, this._canvas = document.createElement("canvas"), this._canvas.id = "PhysDebugDraw", this._canvas.width = Pt.pixi.renderer.width, this._canvas.height = Pt.pixi.renderer.height, this._canvas.style.zIndex = 1, this._canvas.style.left = 0, this._canvas.style.position = "absolute",1258this._canvas.style.pointerEvents = "none", document.body.appendChild(this._canvas), this._context = this._canvas.getContext("2d"), this._context.scale(Pt.scale, Pt.scale);1259var t = new ut;1260t.SetSprite(this._context), t.SetDrawScale(Pt.physScale), t.SetFillAlpha(.3), t.SetLineThickness(1), t.SetFlags(ut.e_shapeBit | ut.e_jointBit), this.world.SetDebugDraw(t)1261}, u.prototype.updateCanvasSize = function() {1262this.enabledDD && (this._canvas.width = Pt.pixi.renderer.width, this._canvas.height = Pt.pixi.renderer.height, this._canvas.style.width = Pt.pixi.view.style.width, this._canvas.style.height = Pt.pixi.view.style.height, this._context.scale(Pt.scale, Pt.scale))1263}, u.prototype.doIt = function(t) {1264return this.world.IsLocked() ? (this._doIt.push(t), !1) : (t.call(), !0)1265}, u.prototype.doItAll = function() {1266for (var t = this._doIt.length, e = 0; e < t; e++) {1267var a = this._doIt[e];1268a.call()1269}1270this.clearDoIt()1271}, u.prototype.clearDoIt = function() {1272this._doIt = []1273}, u.prototype._update = function() {1274this.world.Step(1 / 60, 10, 10), this.enabledDD && this.world.DrawDebugData(), this.world.ClearForces(), this._doIt.length > 0 && this.doItAll()1275}, u.prototype._createGround = function() {1276var t = new dt;1277t.density = 1, t.friction = .5, t.restitution = .2;1278var e = new yt;1279e.type = ht.b2_staticBody, t.shape = new gt, t.shape.SetAsBox((Pt.gameWidth0 / 2 - 4) / Pt.physScale, 10 / Pt.physScale), e.position.Set(Pt.gameWidth0 / 2 / Pt.physScale, Pt.gameHeight0 / Pt.physScale), this.world.CreateBody(e).CreateFixture(t)1280}, u.createCircleShape = function(t, e) {1281var a = new mt(t / Pt.physScale);1282return e && a.SetLocalPosition(e), a1283}, u.createPolygonShape = function(t, e, a, n, i) {1284a = a || 0, n = n || 0, i = i || 0;1285var s = new gt;1286return 0 == a && 0 == n && 0 == i ? s.SetAsBox(t / 2 / Pt.physScale, e / 2 / Pt.physScale) : s.SetAsOrientedBox(t / 2 / Pt.physScale, e / 2 / Pt.physScale, new lt(a / Pt.physScale, n / Pt.physScale), i), s1287}, u.createFixtureDef = function(t, e, a, n, i, s, o) {1288var r = new dt;1289return i = i || null, s = s || !1, o = o || null, r.shape = t, r.friction = e, r.restitution = a, r.density = n, r.isSensor = s, r.userData = i, o && (r.filter = o), r1290}, u.createBodyDef = function(t, e, a, n, i, s, o) {1291var r = new yt;1292return n = n || !1, i = i || !0, s = s || 0, o = o || !1, r.type = a, r.position.Set(t / Pt.physScale, e / Pt.physScale), r.angle = s, r.active = i, r.bullet = o, r.fixedRotation = n, r1293}, u.createBody = function(t, e) {1294var a = Pt.physWorld.CreateBody(t);1295if (e)1296for (var n = e.length, i = 0; i < n; i++) a.CreateFixture(e[i]);1297return a1298}, u.convertBodyTypeFromStringToNumber = function(t) {1299if ("static" == t) return ht.b2_staticBody;1300if ("dynamic" == t) return ht.b2_dynamicBody;1301if ("kinematic" == t) return ht.b2_kinematicBody;1302throw "Error! typeString has a wrong value."1303}, u.hasContactPairOfProperties = function(t, e, a) {1304var n = t.GetFixtureA(),1305i = t.GetFixtureB();1306if (null == n || null == i) return !1;1307var s = n.GetUserData(),1308o = i.GetUserData();1309if (null == s || null == o) return !1;1310var r = s.hasOwnProperty(e) && o.hasOwnProperty(a),1311l = s.hasOwnProperty(a) && o.hasOwnProperty(e);1312return r || l1313}, u.getAnotherOfContact = function(t, e) {1314var a = t.GetFixtureA(),1315n = t.GetFixtureB();1316if (null == a && null == n) return null;1317var i = a ? a.GetUserData() : null,1318s = n ? n.GetUserData() : null;1319if (null == i && null == s) return null;1320var o = null != i ? i.item : null,1321r = null != s ? s.item : null;1322return null == o && null == r ? null : o == e ? r : r == e ? o : null1323}, u.getAnotherUserDataOfContact = function(t, e) {1324var a = t.GetFixtureA(),1325n = t.GetFixtureB();1326if (null == a && null == n) return null;1327var i = a ? a.GetUserData() : null,1328s = n ? n.GetUserData() : null;1329if (null == i && null == s) return null;1330var o = null != i ? i.item : null,1331r = null != s ? s.item : null;1332return null == o && null == r ? null : o == e ? s : r == e ? i : null1333}, x.prototype = {1334rnd: function() {1335var t = 2091639 * this.s0 + 2.3283064365386963e-10 * this.c;1336return this.c = 0 | t, this.s0 = this.s1, this.s1 = this.s2, this.s2 = t - this.c, this.s21337},1338sow: function(t) {1339"undefined" == typeof t && (t = []), this.s0 = this.hash(" "), this.s1 = this.hash(this.s0), this.s2 = this.hash(this.s1), this.c = 1;1340for (var e, a = 0; e = t[a++];) this.s0 -= this.hash(e), this.s0 += ~~(this.s0 < 0), this.s1 -= this.hash(e), this.s1 += ~~(this.s1 < 0), this.s2 -= this.hash(e), this.s2 += ~~(this.s2 < 0)1341},1342hash: function(t) {1343var e, a, n;1344for (n = 4022871197, t = t.toString(), a = 0; a < t.length; a++) n += t.charCodeAt(a), e = .02519603282416938 * n, n = e >>> 0, e -= n, e *= n, n = e >>> 0, e -= n, n += 4294967296 * e;1345return 2.3283064365386963e-10 * (n >>> 0)1346},1347integer: function() {1348return 4294967296 * this.rnd.apply(this)1349},1350frac: function() {1351return this.rnd.apply(this) + 1.1102230246251565e-16 * (2097152 * this.rnd.apply(this) | 0)1352},1353real: function() {1354return this.integer() + this.frac()1355},1356integerInRange: function(t, e) {1357return Math.round(this.realInRange(t, e))1358},1359realInRange: function(t, e) {1360return this.frac() * (e - t) + t1361},1362normal: function() {1363return 1 - 2 * this.frac()1364},1365uuid: function() {1366var t = "",1367e = "";1368for (e = t = ""; t++ < 36; e += ~t % 5 | 3 * t & 4 ? (15 ^ t ? 8 ^ this.frac() * (20 ^ t ? 16 : 4) : 4).toString(16) : "-");1369return e1370},1371pick: function(t) {1372return t[this.integerInRange(0, t.length - 1)]1373},1374weightedPick: function(t) {1375return t[~~(Math.pow(this.frac(), 2) * t.length)]1376},1377timestamp: function(t, e) {1378return this.realInRange(t || 9466848e5, e || 1577862e6)1379}1380}, w.prototype = Object.create(PIXI.Container.prototype), w.prototype.constructor = w, w.prototype.show = function(t) {1381TweenMax.to(this, t, {1382x: 0,1383y: this.showY,1384ease: Expo.easeOut1385})1386}, P.prototype = Object.create(PIXI.Container.prototype), P.prototype.constructor = P, P.prototype.show = function(t) {1387TweenMax.to(this, t, {1388x: 0,1389y: this.showY,1390ease: Expo.easeOut1391})1392}, P.prototype.hide = function(t) {1393TweenMax.to(this, t, {1394x: -Pt.gameWidth0,1395y: this.hideY,1396ease: Expo.easeOut1397})1398}, _.prototype = Object.create(PIXI.Container.prototype), _.prototype.constructor = _, _.prototype._onClick = function(t) {1399this._buttonsHandler(t.target.num)1400}, _.prototype.refresh = function() {1401for (var t = this._buttons.length, e = 0; e < t; e++) {1402var a = this._buttons[e];1403a.setLocked(e + 1 > Pt.levelMng.lastOpened)1404}1405}, v.prototype = Object.create(PIXI.Container.prototype), v.prototype.constructor = v, v.prototype.show = function(t, e) {1406t = t || 0;1407var a = .4;1408this.visible = !0;1409var n = this;1410TweenMax.to(this, a, {1411delay: t,1412alpha: 11413}), TweenMax.to(this._text.scale, 2 * a, {1414delay: t += .1,1415x: .5,1416y: .5,1417ease: Elastic.easeOut,1418onStart: function() {1419Pt.soundOn && n.sndWin.play()1420}1421});1422for (var i = 0; i < 3; i++) {1423var s = this._stars[i];1424s.visible = i + 1 <= e, 0 != s.visible && (s.scale.set(0, 0), TweenMax.to(s.scale, 2 * a, {1425delay: t += .1,1426x: .5,1427y: .5,1428ease: Elastic.easeOut1429}))1430}1431var o = Quad.easeOut,1432r = this._btnMenu.xIn,1433l = this._btnMenu.yIn;1434TweenMax.to(this._btnMenu, a, {1435delay: t += .1,1436x: r,1437y: l,1438ease: o1439}), r = this._btnRestart.xIn, l = this._btnRestart.yIn, TweenMax.to(this._btnRestart, a, {1440delay: t += .05,1441x: r,1442y: l,1443ease: o1444}), this._btnNext.enable = Pt.levelMng.currLevel != Pt.levelMng.totalLevels, r = this._btnNext.xIn, l = this._btnNext.yIn, TweenMax.to(this._btnNext, a, {1445delay: t += .05,1446x: r,1447y: l,1448ease: o1449});1450var y = Pt.storage.get(Pt.SAVE_KEY_STARS + Pt.levelMng.currLevel) || 0;1451y < e && Pt.storage.set(Pt.SAVE_KEY_STARS + Pt.levelMng.currLevel, e)1452}, v.prototype.hide = function() {1453this.visible = !1, this.alpha = 0, this._btnRestart.x = this._btnRestart.xOut, this._btnRestart.y = this._btnRestart.yOut, this._btnMenu.x = this._btnMenu.xOut, this._btnMenu.y = this._btnMenu.yOut, this._btnNext.x = this._btnNext.xOut, this._btnNext.y = this._btnNext.yOut, this._text.scale.set(0, 0)1454}, b.prototype = Object.create(PIXI.Container.prototype), b.prototype.constructor = b, b.prototype.show = function(t) {1455TweenMax.to(this, t, {1456x: 0,1457ease: Expo.easeOut1458})1459}, b.prototype.hide = function(t) {1460TweenMax.to(this, t, {1461x: Pt.gameWidth0,1462y: this.hideY,1463ease: Expo.easeOut1464})1465}, b.prototype.refresh = function() {1466for (var t = this._boards.length, e = 0; e < t; e++) this._boards[e].refresh()1467}, S.prototype = Object.create(PIXI.Container.prototype), S.prototype.constructor = S, S.prototype.show = function(t) {1468TweenMax.to(this, t, {1469x: 0,1470ease: Expo.easeOut1471})1472}, S.prototype.hideToLeft = function(t) {1473TweenMax.to(this, t, {1474x: -Pt.gameWidth0,1475y: this.hideY,1476ease: Expo.easeOut1477})1478}, S.prototype.hideToRight = function(t) {1479TweenMax.to(this, t, {1480x: Pt.gameWidth0,1481y: this.hideY,1482ease: Expo.easeOut1483})1484}, A.prototype = Object.create(a.prototype), A.prototype.constructor = A, A.prototype.destroy = function() {1485a.prototype.destroy.call(this), A._balls.remove(this)1486}, A.prototype.setVelocity = function(t) {1487var e = new lt(t.x / Pt.physScale, t.y / Pt.physScale);1488this._body.SetLinearVelocity(e), this._body.SetAngularVelocity(e.x / 10 + .4), this._body.SetAwake(!0)1489}, A.prototype._update = function() {1490a.prototype._update.call(this), this.y > Pt.gameHeight0 + 50 && this.destroy()1491}, A._balls = new h("Balls"), A._maxBalls = 25, A.create = function(t, e, a) {1492if (A._balls.total() >= A._maxBalls) {1493var n = A._balls.first();1494n.destroy(), A._balls.remove(n)1495}1496var i = new A(t, e);1497return a.addChild(i), A._balls.add(i), i1498}, I.prototype = Object.create(a.prototype), I.prototype.constructor = I, I.prototype.destroy = function() {1499a.prototype.destroy.call(this), Pt.physics.contactListener.removeBeginContactListener(this._onBeginContact, this)1500}, I.prototype._onBeginContact = function(t) {1501var e = u.getAnotherOfContact(t, this);1502e instanceof A && this._ballInTheNet()1503}, I.prototype._ballInTheNet = function() {1504Pt.soundOn && this.sndBallInBasket.play(), Pt.playState.complete()1505}, D.prototype = Object.create(a.prototype), D.prototype.constructor = D, D.prototype.destroy = function() {1506a.prototype.destroy.call(this), Pt.physics.contactListener.removeBeginContactListener(this._onBeginContact, this), a.events.off(a.EVENT_TRIGGER_PRESSED, this._onTriggerEvent, this), this.sndStart && this.sndStart.stop(), this._rails.destroy(!0)1507}, D.prototype._createRails = function() {1508this._rails = new PIXI.Container, this._rails.x = this.x, this._rails.y = this.y, this._rails.zOrder = Z.zOrder.rail, Pt.playState.gameLayer.addChild(this._rails), this._endX = this.x, this._endY = this.y;1509var t;1510"v" == this._orienation ? (this._endY = this._end, this._rails.y = this.y - 22) : (this._endX = this._end, this._rails.y = this.y - 22), t = ot.distance1(this.x, this.y, this._endX, this._endY);1511var e = Pt.assets.getSprite("rail", "atlasGame").width / 2,1512a = Math.ceil(t / e);1513console.log(a);1514for (var n = 0; n < a; n++) {1515var i = Pt.assets.getSprite("rail", "atlasGame");1516i.scale.set(.5, .5), i.anchor.set(0, .5), i.x = (i.width - 1) * n, this._rails.addChild(i)1517}1518"v" == this._orienation ? (this._rails.rotation = ot.toRadians(90), this.y > this._endY && (this._rails.y -= t)) : this.x > this._endX && (this._rails.x -= t)1519}, D.prototype._onBeginContact = function(t) {1520var e = u.getAnotherOfContact(t, this);1521e instanceof A && this._ballInTheNet()1522}, D.prototype._ballInTheNet = function() {1523Pt.playState.complete()1524}, D.prototype._onTriggerEvent = function(t) {1525var e = t.id;1526this.id == e && this._move()1527}, D.prototype._move = function() {1528this._isMove || (this._isMove = !0, this._defDirection(), this._enableUpdate(), this.angleUpdate = !0, this.positionUpdate = !0, Pt.soundOn && this.sndStart.play())1529}, D.prototype._defDirection = function() {1530this._isUsed || (this._isUsed = !0, this._speed = 2, this._vel = new lt, this._stopVal = 0, "v" == this._orienation ? (this._vel.y = this._speed * (this.y > this._endY ? -1 : 1), this._stopVal = this._endY, this.y > this._endY && (this._rails.y -= length)) : (this._vel.x = this._speed * (this.x > this._endX ? -1 : 1), this._stopVal = this._endX), this._body.SetAwake(!0), this._body.GetLinearVelocity().Set(this._vel.x, this._vel.y))1531}, D.prototype._update = function() {1532a.prototype._update.call(this), this._isMove && ("v" == this._orienation ? ot.equal(this.y, this._stopVal, 3) && this._stop() : ot.equal(this.x, this._stopVal, 3) && this._stop())1533}, D.prototype._stop = function() {1534this._isMove = !1, this._body.GetLinearVelocity().SetZero(), Pt.soundOn && (this.sndStart.stop(), this.sndStop.play())1535}, C.prototype = Object.create(a.prototype), C.prototype.constructor = G, B.prototype = Object.create(a.prototype), B.prototype.constructor = B, B.prototype.destroy = function() {1536a.prototype.destroy.call(this), Pt.playState.bg.off("pointerdown", this._pointerDown, this), Pt.playState.bg.off("pointerup", this._pointerUp, this), Pt.playState.bg.off("pointerupoutside", this._pointerUp, this)1537}, B.prototype._shot = function(t) {1538this._cannon.playing || (this._shoted = !1, this._cannon.gotoAndStop(0), this._cannon.play(), Pt.soundOn && this.sndShot.play())1539}, B.prototype._pointerDown = function(t) {1540this._countTouches++, null == this._pointerData && (this._pointerData = t.data, this._isAllowMove = !0, Pt.playState.aim.visible = !0, Pt.playState.btnFire.enable = !1)1541}, B.prototype._pointerUp = function(t) {1542this._countTouches--, this._countTouches > 0 || (this._countTouches = 0, this._pointerData == t.data && (this._pointerData = null, this._isAllowMove = !1, Pt.playState.blinkBtnFire(), Pt.playState.btnFire.enable = !0))1543}, B.prototype._frameChanged = function(t) {1544if (t >= 8 && !this._shoted) {1545if (this._shoted = !0, void 0 == this._launchX || void 0 == this._launchY) return;1546var e = A.create(this._launchX, this._launchY, Pt.playState.ballLayer);1547e.setVelocity(this._direction)1548}1549}, B.prototype._shotComplete = function(t) {1550this._cannon.gotoAndStop(0)1551}, B.prototype._update = function(t) {1552if (this._isAllowMove) {1553var e = Pt.pixi.renderer.plugins.interaction,1554a = {};1555Pt.playState.aimControl ? (a.x = this._pointerData.global.x, a.y = this._pointerData.global.y) : a = e.pointer.global, a = {1556x: a.x / Pt.scale,1557y: a.y / Pt.scale1558}, Pt.playState.aimControl && (a.y -= 50, Pt.playState.aim.position.set(a.x, a.y)), this._helperPoint.set(this.x, this.y);1559var n = ot.angleDeg2(a, this._helperPoint) - 90;1560n = ot.normAngleDeg(n, !0), n < this.lowerAngle ? n = this.lowerAngle : n > this.upperAngle && (n = this.upperAngle), this._cannon.rotation = ot.toRadians(n), this._cannon.toLocal(this._ballSpawnPoint, this, this._helperPoint);1561var i = {1562x: -this._helperPoint.x,1563y: this._helperPoint.y1564};1565this._helperPoint.x *= -1;1566var s = 0,1567o = 0;1568Pt.playState.aimControl ? (s = Pt.playState.aim.position.x, o = Pt.playState.aim.position.y) : (e = Pt.pixi.renderer.plugins.interaction, a = e.pointer.global, s = a.x / Pt.scale, o = a.y / Pt.scale), this._launchX = this._helperPoint.x + this.x, this._launchY = this._helperPoint.y + this.y;1569var r = ot.distance1(this._launchX, this._launchY, s, o) / this.shotScale,1570l = ot.distance1(this.x, this.y, s, o),1571y = ot.distance1(this._launchX, this._launchY, s, o),1572h = ot.distance1(this.x, this.y, this._launchX, this._launchY);1573(l < h || l < y || o > this.y + 50) && (r = 0), r > 1 && (r = 1), this._powerBarMask.scale.y = r;1574var d = r * (this.maxPower - this.minPower) + this.minPower;1575this._direction = {1576x: this.x - this._launchX,1577y: this.y - this._launchY1578}, this._direction = ot.pointNormalize(this._direction, -d);1579var c = {1580x: this._direction.x,1581y: this._direction.y1582};1583ot.pointNormalize(c, d);1584var p = 360;1585this.graphics.clear(), this.graphics.drawCircle(i.x, i.y, 4);1586for (var g = 25, m = 4, u = .8, x = 1; x <= 15 * r; x++) this.graphics.beginFill(32110, u /= 1.1), this.graphics.drawCircle(i.x, i.y, m /= 1.05), this.graphics.endFill(), c.y += p / g, i.x += c.x / g, i.y += c.y / g1587}1588}, M.prototype = Object.create(a.prototype), M.prototype.constructor = M, E.prototype = Object.create(a.prototype), E.prototype.constructor = E, E.prototype.destroy = function() {1589a.prototype.destroy.call(this), a.events.off(a.EVENT_TRIGGER_PRESSED, this._onTriggerEvent, this)1590}, E.prototype._onTriggerEvent = function(t) {1591var e = t.id;1592if (this.id == e && !this.opened) {1593this.opened = !0;1594var a = 2;1595"left" == this.direction ? (this._body.SetAwake(!0), this._body.SetAngularVelocity(a * (this.inversed ? -1 : 1))) : "right" == this.direction && (this._body.SetAwake(!0), this._body.SetAngularVelocity(-a * (this.inversed ? -1 : 1))), this._enableUpdate(), this.angleUpdate = !0, this.positionUpdate = !0, Pt.soundOn && this.sndGate.play()1596}1597}, E.prototype._stop = function() {1598this._body.SetAngularVelocity(0), this._disableUpdate(), this.angleUpdate = !1, this.positionUpdate = !11599}, E.prototype._update = function() {1600a.prototype._update.call(this), this.inversed ? ("left" == this.direction && this._body.GetAngle() <= this.openAngle || "right" == this.direction && this._body.GetAngle() >= -this.openAngle) && this._stop() : ("left" == this.direction && this._body.GetAngle() >= this.openAngle || "right" == this.direction && this._body.GetAngle() <= -this.openAngle) && this._stop()1601}, T.prototype = Object.create(a.prototype), T.prototype.constructor = T, O.prototype = Object.create(a.prototype), O.prototype.constructor = O, O.prototype.destroy = function() {1602a.prototype.destroy.call(this), a.events.off(a.EVENT_TRIGGER_PRESSED, this._onTriggerEvent, this)1603}, O.prototype._onTriggerEvent = function(t) {1604var e = t.id;1605this.signalID == e && (this.motorSpeed *= -1, this._revJoint.SetMotorSpeed(this.motorSpeed))1606}, k.prototype = Object.create(a.prototype), k.prototype.constructor = k, k.prototype.destroy = function() {1607a.prototype.destroy.call(this), Pt.physics.contactListener.removeBeginContactListener(this._onBeginContact, this)1608}, k.prototype._onBeginContact = function(t) {1609var e = u.getAnotherOfContact(t, this);1610e instanceof A && this.unhook()1611}, k.prototype._update = function() {1612a.prototype._update.call(this), this.y > Pt.gameHeight0 + 50 && this.destroy()1613}, k.prototype.unhook = function() {1614Pt.physics.contactListener.removeBeginContactListener(this._onBeginContact, this), this._body.SetType(ht.b2_dynamicBody), this._body.SetAwake(!0), this._enableUpdate(), this.angleUpdate = !0, this.positionUpdate = !0, Pt.soundOn && this.sndPeg.play()1615}, R.prototype = Object.create(a.prototype), R.prototype.constructor = R, R.prototype.destroy = function() {1616a.prototype.destroy.call(this), a.events.off(a.EVENT_TRIGGER_PRESSED, this._onTriggerEvent, this)1617}, R.prototype._onTriggerEvent = function(t) {1618var e = t.id;1619t.state;1620this.gearSignalID == e && ("on" == this._state ? this._state = "off" : this._state = "on", "on" == this._state ? this._motorOn(this.gearPower, this.TO_DESTINATION) : "off" == this._state && this._motorOn(-this.gearPower, this.TO_START_ANGLE))1621}, R.prototype._motorOn = function(t, e) {1622if (!Pt.playState.isDestroying) {1623var a = this;1624Pt.physics.doIt(function() {1625a._revJoint = Pt.physWorld.CreateJoint(a._revJointDef), a._trackBody.SetType(ht.b2_dynamicBody), a._trackBody.SetMassData(a._massData), a._trackBody.SetAngularVelocity(0), a._trackBody.SetLinearVelocity(new lt(0, 0)), a._revJoint.EnableMotor(!0), a._revJoint.SetMotorSpeed(t), a._revJoint.SetMaxMotorTorque(Math.abs(t)), a._enableUpdate(), a._gear.play(), a._movingTo = e, Pt.soundOn && a.sndGear.play()1626})1627}1628}, R.prototype._motorOff = function() {1629var t = this;1630Pt.physics.doIt(function() {1631t._movingTo == t.TO_DESTINATION ? t._trackBody.SetAngle(ot.toRadians(t.gearMaxAngle)) : t._movingTo == t.TO_START_ANGLE && t._trackBody.SetAngle(ot.toRadians(t._trackBodyStartAngle)), Pt.physWorld.DestroyJoint(t._revJoint), t._revJoint = null, t._trackBody.SetType(ht.b2_staticBody), t._disableUpdate(), t._gear.stop(), t._movingTo = 01632})1633}, R.prototype._update = function() {1634a.prototype._update.call(this);1635var t = Math.floor(ot.toDegrees(this._trackBody.GetAngle()));1636this._movingTo == this.TO_DESTINATION ? ot.equal(t, this.gearMaxAngle, 2) && this._motorOff() : this._movingTo == this.TO_START_ANGLE && ot.equal(t, this._trackBodyStartAngle, 2) && this._motorOff()1637}, L.prototype = Object.create(a.prototype), L.prototype.constructor = L, G.prototype = Object.create(a.prototype), G.prototype.constructor = G, U.prototype = Object.create(a.prototype), U.prototype.constructor = U, U.prototype.destroy = function() {1638a.prototype.destroy.call(this), Pt.physics.contactListener.removeBeginContactListener(this._onBeginContact, this), Pt.physWorld.DestroyBody(this._body2)1639}, U.prototype._onBeginContact = function(t) {1640var e = u.getAnotherUserDataOfContact(t, this);1641null != e && 1 == e.dynamic && this._throwBody(e.item.GetBody())1642}, U.prototype._throwBody = function(t) {1643var e = ot.toDegrees(this.rotation) - 90,1644a = ot.vectorVelocityDeg(e, 5 * this.elasticity);1645t.SetLinearVelocity(a), this._spring.gotoAndPlay(0), this._spring.play(), Pt.soundOn && this.sndSpring.play()1646}, F.prototype = Object.create(a.prototype), F.prototype.constructor = F, F.prototype.destroy = function() {1647a.prototype.destroy.call(this), Pt.physics.contactListener.removeBeginContactListener(this._onBeginContact, this)1648}, F.prototype._onBeginContact = function(t) {1649var e = u.getAnotherOfContact(t, this);1650e instanceof A && this._catch()1651}, F.prototype._catch = function() {1652this._catched || (Pt.soundOn && this.sndStar.play(), this._catched = !0, TweenMax.to(this, 1, {1653alpha: 0,1654y: this.y - 30,1655onComplete: this.destroy,1656onCompleteScope: this1657}), Pt.playState.addStar())1658}, V.prototype = Object.create(a.prototype), V.prototype.constructor = V, X.prototype = Object.create(a.prototype), X.prototype.constructor = X, N.prototype = Object.create(a.prototype), N.prototype.constructor = N, N.prototype.destroy = function() {1659a.prototype.destroy.call(this), Pt.physics.contactListener.removeBeginContactListener(this._onBeginContact, this), Pt.physics.contactListener.removeEndContactListener(this._onEndContact, this)1660}, N.prototype._onBeginContact = function(t) {1661var e = u.getAnotherUserDataOfContact(t, this);1662if (null != e && 1 == e.dynamic) {1663if ("button" == this.type) {1664if (this._countContacts++, this._switcher.onComplete = null, this._on) return;1665this._on = !0, this._switcher.animationSpeed = 1, this._switcher.play();1666var n = this;1667this._switcher.onComplete = function() {1668n._on && a.events.emit(a.EVENT_TRIGGER_PRESSED, {1669id: n.signalID,1670state: "on"1671})1672}1673} else "toogle" == this.type && (this._on ? (this._on = !1, this._switcher.animationSpeed = -1, a.events.emit(a.EVENT_TRIGGER_PRESSED, {1674id: this.signalID,1675state: "off"1676})) : (this._on = !0, this._switcher.animationSpeed = 1, a.events.emit(a.EVENT_TRIGGER_PRESSED, {1677id: this.signalID,1678state: "on"1679})), this._switcher.play());1680Pt.soundOn && this.sndSwitcher.play()1681}1682}, N.prototype._onEndContact = function(t) {1683var e = u.getAnotherUserDataOfContact(t, this);1684if (null != e && 1 == e.dynamic && (this._switcher.onComplete = null, this._countContacts--, this._countContacts <= 0 && (this._countContacts = 0, "button" == this.type))) {1685if (0 == this._on) return;1686this._on = !1, this._switcher.stop(), this._switcher.animationSpeed = -1, this._switcher.play(), a.events.emit(a.EVENT_TRIGGER_PRESSED, {1687id: this.signalID,1688state: "off"1689})1690}1691}, W.prototype = Object.create(a.prototype), W.prototype.constructor = W, W.prototype.destroy = function() {1692a.prototype.destroy.call(this), Pt.physics.contactListener.removeBeginContactListener(this._onBeginContact, this), Pt.physics.contactListener.removeEndContactListener(this._onEndContact, this), a.events.off(a.EVENT_TELEPORTATION, this._teleportation, this)1693}, W.prototype._onBeginContact = function(t) {1694var e = u.getAnotherOfContact(t, this);1695e instanceof A && (null != e.teleportPhase && 0 != e.teleportPhase || (e.teleportPhase = 1, a.events.emit(a.EVENT_TELEPORTATION, {1696sender: this,1697ball: e,1698id: this.id1699})))1700}, W.prototype._onEndContact = function(t) {1701var e = u.getAnotherOfContact(t, this);1702e instanceof A && (e.teleportPhase++, e.teleportPhase >= 3 && (e.teleportPhase = 0))1703}, W.prototype._teleportation = function(t) {1704var e = t.sender,1705a = t.ball,1706n = t.id;1707if (e != this && n == this.id) {1708var i = this;1709Pt.physics.doIt(function() {1710a.setPosition(i.x, i.y);1711var t = a._body.GetLinearVelocity(),1712e = ot.vectorVelocityRad(i.rotation - ot.toRadians(90), t.Length() * i.mulVel),1713n = new lt(e.x, e.y);1714a._body.SetLinearVelocity(n)1715}), Pt.soundOn && this.sndTeleport.play()1716}1717}, Y.prototype = Object.create(a.prototype), Y.prototype.constructor = Y, Y.prototype.suck = function() {1718for (var t = this._body.GetContactList(); null != t;) {1719var e = t.contact;1720if (e.IsEnabled() && e.IsTouching()) {1721var a = u.getAnotherOfContact(e, this);1722a instanceof A && this.suckIt(a._body)1723}1724t = t.next1725}1726}, Y.prototype.suckIt = function(t) {1727t.GetLinearVelocity().SetZero(), t.ApplyForce(this._force, t.GetPosition())1728}, Y.prototype._update = function() {1729a.prototype._update.call(this), this.suck()1730}, z.prototype = Object.create(a.prototype), z.prototype.constructor = z, H.prototype = Object.create(a.prototype), H.prototype.constructor = H, H.prototype._update = function() {1731a.prototype._update.call(this), this.y > Pt.gameHeight0 + 100 && this.destroy()1732}, j.prototype.constructor = j, j.prototype.create = function(t) {1733t = t || this.currLevel, t < 1 ? t = 1 : t > this.totalLevels && (t = this.totalLevels), this.currLevel = t, t--;1734for (var e = ft[t].items, a = e.length, n = 0; n < a; n++) this._createItem(e[n])1735}, j.prototype.onLevelComplete = function() {1736this.currLevel == this.lastOpened && (this.lastOpened++, Pt.storage.set(Pt.SAVE_KEY_LAST_OPENED, this.lastOpened))1737}, j.prototype._createItem = function(t) {1738if ("Cannon" == t.name) {1739var e = new B(t.x, t.y);1740e.lowerAngle = void 0 != t.lowerAngle ? t.lowerAngle : -45, e.upperAngle = void 0 != t.upperAngle ? t.upperAngle : 45, Pt.playState.gameLayer.addChild(e)1741} else if ("Basket" == t.name) {1742var a = new I(t.x, t.y);1743Pt.playState.gameLayer.addChild(a)1744} else if ("Ball" == t.name) {1745var n = new A(t.x, t.y);1746Pt.playState.gameLayer.addChild(n)1747} else if ("Platform" == t.name) {1748var i = new L(t.x, t.y, t.width, t.angle, t.type, t.density);1749Pt.playState.gameLayer.addChild(i)1750} else if ("Star" == t.name) {1751var s = new F(t.x, t.y);1752Pt.playState.gameLayer.addChild(s)1753} else if ("Pivot" == t.name) {1754var o = new R(t.x, t.y, t.type, t.signalID, t.color, t.gearMaxAngle, t.gearPower, t.lowerAngle, t.upperAngle);1755Pt.playState.gameLayer.addChild(o)1756} else if ("Switcher" == t.name) {1757var r = new N(t.x, t.y, t.angle, t.type, t.signalID, t.color);1758Pt.playState.gameLayer.addChild(r)1759} else if ("Teleport" == t.name) {1760var l = new W(t.x, t.y, t.id, t.angle, t.color);1761l.mulVel = t.mulVel || 1, Pt.playState.gameLayer.addChild(l)1762} else if ("Spring" == t.name) {1763var y = new U(t.x, t.y, t.angle, t.type, t.elasticity);1764Pt.playState.gameLayer.addChild(y)1765} else if ("Mill" == t.name) {1766var h = new O(t.x, t.y, t.enableMotor, t.motorSpeed, t.signalID);1767Pt.playState.gameLayer.addChild(h)1768} else if ("Rock" == t.name) {1769var d = new G(t.x, t.y, t.density);1770Pt.playState.gameLayer.addChild(d)1771} else if ("Box" == t.name) {1772var c = new C(t.x, t.y, t.angle, t.density);1773Pt.playState.gameLayer.addChild(c)1774} else if ("Swings" == t.name) {1775var p = new X(t.x, t.y, t.angle, t.lowerAngle, t.upperAngle);1776Pt.playState.gameLayer.addChild(p)1777} else if ("Peg" == t.name) {1778var g = new k(t.x, t.y);1779Pt.playState.gameLayer.addChild(g)1780} else if ("Hammer" == t.name) {1781var m = new T(t.x, t.y, t.angle, t.hmDensity);1782Pt.playState.gameLayer.addChild(m)1783} else if ("WeightBall" == t.name) {1784var u = new H(t.x, t.y, t.wbDensity);1785Pt.playState.gameLayer.addChild(u)1786} else if ("Stopper" == t.name) {1787var x = new V(t.x, t.y);1788Pt.playState.gameLayer.addChild(x)1789} else if ("PushButton" == t.name) {1790var w = new PushButton(t.x, t.y, t.btnID, t.angle);1791Pt.playState.gameLayer.addChild(w)1792} else if ("Gate" == t.name) {1793var f = new E(t.x, t.y, t.direction, t.gateLeftID || t.gateRightID, t.openAngle, t.inversed || !1);1794Pt.playState.gameLayer.addChild(f)1795} else if ("Domino" == t.name) {1796var P = new M(t.x, t.y);1797Pt.playState.gameLayer.addChild(P)1798} else if ("Tube" == t.name) {1799var _ = new Y(t.x, t.y, t.angle, t.plusSensorFront, t.plusSensorBack);1800Pt.playState.gameLayer.addChild(_)1801} else if ("BasketRail" == t.name) {1802var v = new D(t.x, t.y, t.orientation, t.end, t.basketID);1803Pt.playState.gameLayer.addChild(v)1804}1805}, j.prototype.unlockAllLevels = function() {1806this.lastOpened = this.totalLevels1807};1808var ft = [];1809ft[0] = {1810items: [{1811name: "Cannon",1812x: 557.3,1813y: 383.8,1814lowerAngle: -70,1815upperAngle: 701816}, {1817name: "Basket",1818x: 221.55,1819y: 340.851820}, {1821name: "Platform",1822type: "static",1823x: 188.55,1824y: 312.95,1825density: 1,1826width: 82.1,1827angle: -901828}, {1829name: "Star",1830x: 277.9,1831y: 1671832}, {1833name: "Star",1834x: 369.35,1835y: 212.81836}, {1837name: "Star",1838x: 452.4,1839y: 261.251840}, {1841name: "Platform",1842type: "static",1843x: 256.55,1844y: 314.6,1845density: 1,1846width: 82.1,1847angle: -901848}, {1849name: "Platform",1850type: "static",1851x: 134.8,1852y: 229.2,1853density: 1,1854width: 149.3,1855angle: -1351856}, {1857name: "Platform",1858type: "static",1859x: 84.65,1860y: 98.05,1861density: 1,1862width: 174.2,1863angle: -901864}]1865}, ft[1] = {1866items: [{1867name: "Basket",1868x: 548.05,1869y: 399.81870}, {1871name: "Cannon",1872x: 328.2,1873y: 407.45,1874lowerAngle: -70,1875upperAngle: 701876}, {1877name: "Platform",1878type: "static",1879x: 498,1880y: 321.75,1881density: 1,1882width: 187.2,1883angle: 901884}, {1885name: "Platform",1886type: "static",1887x: 514.05,1888y: 277.3,1889density: 1,1890width: 47.5,1891angle: 301892}, {1893name: "Platform",1894type: "static",1895x: 517.2,1896y: 363.95,1897density: 1,1898width: 50.8,1899angle: 301900}, {1901name: "Platform",1902type: "static",1903x: 583.4,1904y: 327.85,1905density: 1,1906width: 179.2,1907angle: 901908}, {1909name: "Platform",1910type: "static",1911x: 630.05,1912y: 220.35,1913density: 1,1914width: 118.1,1915angle: 1501916}, {1917name: "Platform",1918type: "static",1919x: 568.2,1920y: 320.65,1921density: 1,1922width: 48.7,1923angle: -301924}, {1925name: "Star",1926x: 639.65,1927y: 89.81928}, {1929name: "Star",1930x: 453.3,1931y: 333.91932}, {1933name: "Star",1934x: 128.3,1935y: 273.551936}, {1937name: "Platform",1938type: "static",1939x: 558.15,1940y: 200.55,1941density: 1,1942width: 149.3,1943angle: 1501944}, {1945name: "Platform",1946type: "static",1947x: 676.7,1948y: 108.9,1949density: 1,1950width: 179.2,1951angle: 901952}, {1953name: "Platform",1954type: "static",1955x: 53.05,1956y: 125.8,1957density: 1,1958width: 187.2,1959angle: 901960}, {1961name: "Platform",1962type: "static",1963x: 83.6,1964y: 232.55,1965density: 1,1966width: 80.9,1967angle: 301968}, {1969name: "Platform",1970type: "static",1971x: 154,1972y: 211.85,1973density: 1,1974width: 187.2,1975angle: 901976}]1977}, ft[2] = {1978items: [{1979name: "Platform",1980type: "static",1981x: 236.4,1982y: 35.5,1983density: 1,1984width: 294.1,1985angle: -901986}, {1987name: "Platform",1988type: "dynamic",1989x: 235.4,1990y: 216.4,1991density: .6,1992width: 120,1993angle: 901994}, {1995name: "Basket",1996x: 198.45,1997y: 380.31998}, {1999name: "Cannon",2000x: 570.05,2001y: 407.5,2002lowerAngle: -70,2003upperAngle: 702004}, {2005name: "Platform",2006type: "static",2007x: 178,2008y: 289.5,2009density: 1,2010width: 132.8,2011angle: 02012}, {2013name: "Pivot",2014x: 235.6,2015y: 169.45,2016type: "bolt",2017color: "Red",2018gearMaxAngle: 0,2019gearPower: 1,2020lowerAngle: -360,2021upperAngle: 270,2022signalID: 02023}, {2024name: "Platform",2025type: "static",2026x: 41.75,2027y: 245.2,2028density: 1,2029width: 282.5,2030angle: 902031}, {2032name: "Platform",2033type: "static",2034x: 95.7,2035y: 299.75,2036density: 1,2037width: 47.1,2038angle: -302039}, {2040name: "Platform",2041type: "static",2042x: 101.7,2043y: 377.45,2044density: 1,2045width: 136,2046angle: 02047}, {2048name: "Platform",2049type: "static",2050x: 235.4,2051y: 338.65,2052density: 1,2053width: 116.3,2054angle: 902055}, {2056name: "Star",2057x: 292.3,2058y: 742059}, {2060name: "Star",2061x: 65.2,2062y: 281.152063}, {2064name: "Star",2065x: 541.3,2066y: 742067}]2068}, ft[3] = {2069items: [{2070name: "Platform",2071type: "static",2072x: 401.85,2073y: 423.5,2074density: 1,2075width: 227,2076angle: 902077}, {2078name: "Platform",2079type: "dynamic",2080x: 363.4,2081y: 318,2082density: 1,2083width: 94,2084angle: 02085}, {2086name: "Platform",2087type: "static",2088x: 103.15,2089y: 256.05,2090density: 1,2091width: 195.6,2092angle: 452093}, {2094name: "Platform",2095type: "static",2096x: 177.05,2097y: 320.55,2098density: 1,2099width: 213,2100angle: 902101}, {2102name: "Basket",2103x: 364,2104y: 329.252105}, {2106name: "Cannon",2107x: 626,2108y: 365,2109lowerAngle: -70,2110upperAngle: 702111}, {2112name: "Switcher",2113x: 117,2114y: 260,2115angle: 45,2116type: "button",2117color: "Red",2118signalID: 12119}, {2120name: "Pivot",2121x: 401.85,2122y: 317.2,2123type: "gear",2124color: "Red",2125gearMaxAngle: 90,2126gearPower: 6,2127lowerAngle: -360,2128upperAngle: 360,2129signalID: 12130}, {2131name: "Platform",2132type: "static",2133x: 36.65,2134y: 83.95,2135density: 1,2136width: 216.1,2137angle: 902138}, {2139name: "Star",2140x: 583.7,2141y: 39.52142}, {2143name: "Star",2144x: 215.35,2145y: 327.952146}, {2147name: "Star",2148x: 362.35,2149y: 285.152150}, {2151name: "Platform",2152type: "static",2153x: 324.85,2154y: 443.5,2155density: 1,2156width: 227,2157angle: 902158}, {2159name: "Box",2160x: 177.05,2161y: 191.55,2162angle: 0,2163density: 1.82164}, {2165name: "Platform",2166type: "static",2167x: 177.05,2168y: 57.55,2169density: 1,2170width: 213,2171angle: 902172}, {2173name: "Platform",2174type: "static",2175x: 109.15,2176y: 55.55,2177density: 1,2178width: 195.6,2179angle: 02180}]2181}, ft[4] = {2182items: [{2183name: "Platform",2184type: "static",2185x: 119.55,2186y: 217.95,2187density: 1,2188width: 18,2189angle: 02190}, {2191name: "Basket",2192x: 603.3,2193y: 97.352194}, {2195name: "Cannon",2196x: 461.05,2197y: 330.05,2198lowerAngle: -70,2199upperAngle: 702200}, {2201name: "Platform",2202type: "dynamic",2203x: 118.7,2204y: 192.35,2205density: 6,2206width: 168.9,2207angle: 882208}, {2209name: "Switcher",2210x: 18.75,2211y: 151.7,2212angle: 90,2213type: "toogle",2214color: "Red",2215signalID: 12216}, {2217name: "Platform",2218type: "static",2219x: 290.5,2220y: 330.95,2221density: 1,2222width: 90,2223angle: 902224}, {2225name: "Pivot",2226x: 119.55,2227y: 217.95,2228type: "bolt",2229color: "Red",2230gearMaxAngle: 0,2231gearPower: 1,2232lowerAngle: -720,2233upperAngle: 720,2234signalID: 02235}, {2236name: "Platform",2237type: "static",2238x: 190.5,2239y: 294.9,2240density: .9,2241width: 218.9,2242angle: 02243}, {2244name: "Platform",2245type: "static",2246x: 11,2247y: 209.3,2248density: 1,2249width: 201.3,2250angle: 902251}, {2252name: "Platform",2253type: "static",2254x: 59.1,2255y: 116.65,2256density: .9,2257width: 90.6,2258angle: 02259}, {2260name: "Platform",2261type: "static",2262x: 641.4,2263y: 177.85,2264density: 1,2265width: 387.1,2266angle: 902267}, {2268name: "Platform",2269type: "dynamic",2270x: 610.85,2271y: 85.75,2272density: 1,2273width: 79.1,2274angle: 02275}, {2276name: "Star",2277x: 57.55,2278y: 82.852279}, {2280name: "Star",2281x: 40.35,2282y: 294.852283}, {2284name: "Star",2285x: 315.35,2286y: 322.952287}, {2288name: "Pivot",2289x: 641.6,2290y: 84.65,2291type: "gear",2292color: "Red",2293gearMaxAngle: 60,2294gearPower: 8,2295lowerAngle: -360,2296upperAngle: 360,2297signalID: 12298}, {2299name: "Platform",2300type: "static",2301x: 683.55,2302y: 163.95,2303density: .9,2304width: 218.9,2305angle: 02306}, {2307name: "Platform",2308type: "static",2309x: 741.85,2310y: 362.4,2311density: .9,2312width: 218.9,2313angle: 02314}]2315}, ft[5] = {2316items: [{2317name: "Platform",2318type: "static",2319x: 612.15,2320y: 223.65,2321density: 1,2322width: 18,2323angle: 452324}, {2325name: "Platform",2326type: "static",2327x: 637.25,2328y: 149.35,2329density: 1,2330width: 53.8,2331angle: 902332}, {2333name: "Basket",2334x: 42,2335y: 284.12336}, {2337name: "Cannon",2338x: 341.2,2339y: 395.25,2340lowerAngle: -70,2341upperAngle: 702342}, {2343name: "Teleport",2344x: 108.15,2345y: 140.95,2346angle: 180,2347color: "Red",2348id: 0,2349mulVel: 12350}, {2351name: "Teleport",2352x: 651.55,2353y: 199.25,2354angle: -90,2355color: "Red",2356id: 0,2357mulVel: 12358}, {2359name: "Platform",2360type: "dynamic",2361x: 576.75,2362y: 270.45,2363density: 1,2364width: 136.7,2365angle: 1272366}, {2367name: "Platform",2368type: "static",2369x: 121.25,2370y: 225.5,2371density: 1,2372width: 157.9,2373angle: 1272374}, {2375name: "Switcher",2376x: 174.25,2377y: 200.05,2378angle: 90,2379type: "toogle",2380color: "Green",2381signalID: 12382}, {2383name: "Pivot",2384x: 612.15,2385y: 223.65,2386type: "gear",2387color: "Green",2388gearMaxAngle: 225,2389gearPower: 5,2390lowerAngle: -360,2391upperAngle: 360,2392signalID: 12393}, {2394name: "Platform",2395type: "static",2396x: 92.8,2397y: 76.7,2398density: 1,2399width: 160.5,2400angle: 1802401}, {2402name: "Star",2403x: 313.85,2404y: 352405}, {2406name: "Star",2407x: 65.35,2408y: 442409}, {2410name: "Star",2411x: 668.35,2412y: 151.352413}, {2414name: "Platform",2415type: "static",2416x: 166.5,2417y: 191.2,2418density: 1,2419width: 247,2420angle: 902421}, {2422name: "Platform",2423type: "static",2424x: 21.55,2425y: 177.8,2426density: 1,2427width: 217.9,2428angle: 902429}, {2430name: "Platform",2431type: "dynamic",2432x: 601.75,2433y: 178.5,2434density: .6,2435width: 136.7,2436angle: 1272437}, {2438name: "Pivot",2439x: 638,2440y: 129.65,2441type: "gear",2442color: "Green",2443gearMaxAngle: 225,2444gearPower: 5,2445lowerAngle: -360,2446upperAngle: 360,2447signalID: 12448}, {2449name: "Platform",2450type: "static",2451x: 698.25,2452y: 116.65,2453density: 1,2454width: 254.8,2455angle: 902456}, {2457name: "Platform",2458type: "static",2459x: 667.85,2460y: 238.6,2461density: 1,2462width: 78.9,2463angle: 02464}]2465}, ft[6] = {2466items: [{2467name: "Platform",2468type: "static",2469x: 609.6,2470y: 67.45,2471density: 1,2472width: 171.2,2473angle: 902474}, {2475name: "Platform",2476type: "static",2477x: 610,2478y: 144.45,2479density: 1,2480width: 86.2,2481angle: 02482}, {2483name: "Platform",2484type: "dynamic",2485x: 644.1,2486y: 181,2487density: 1,2488width: 91.1,2489angle: 902490}, {2491name: "Cannon",2492x: 119.2,2493y: 387.85,2494lowerAngle: -70,2495upperAngle: 702496}, {2497name: "Basket",2498x: 419.45,2499y: 73.42500}, {2501name: "Rock",2502x: 375.7,2503y: 204.55,2504density: 22505}, {2506name: "Platform",2507type: "static",2508x: 465.75,2509y: 173.15,2510density: 1,2511width: 294.1,2512angle: 902513}, {2514name: "Switcher",2515x: 610,2516y: 152.45,2517angle: -180,2518type: "button",2519color: "Blue",2520signalID: 12521}, {2522name: "Platform",2523type: "static",2524x: 377.6,2525y: 150.05,2526density: 1,2527width: 46.1,2528angle: 902529}, {2530name: "Platform",2531type: "static",2532x: 420.7,2533y: 136,2534density: 1,2535width: 104,2536angle: 02537}, {2538name: "Platform",2539type: "static",2540x: 421.75,2541y: 32.45,2542density: 1,2543width: 106.2,2544angle: 02545}, {2546name: "Star",2547x: 516.3,2548y: 384.22549}, {2550name: "Star",2551x: 47.35,2552y: 1062553}, {2554name: "Star",2555x: 437.3,2556y: 307.82557}, {2558name: "Platform",2559type: "dynamic",2560x: 377.6,2561y: 68.65,2562density: 1,2563width: 91.1,2564angle: 902565}, {2566name: "Pivot",2567x: 377.85,2568y: 31.85,2569type: "gear",2570color: "Blue",2571gearMaxAngle: 180,2572gearPower: 5,2573lowerAngle: -360,2574upperAngle: 360,2575signalID: 12576}, {2577name: "Platform",2578type: "static",2579x: 377.6,2580y: 260.05,2581density: 1,2582width: 60.2,2583angle: 902584}, {2585name: "Platform",2586type: "dynamic",2587x: 525.65,2588y: 267,2589density: .3,2590width: 253.8,2591angle: 02592}, {2593name: "Pivot",2594x: 465.45,2595y: 267.2,2596type: "bolt",2597color: "Blue",2598gearMaxAngle: 178,2599gearPower: 5,2600lowerAngle: -360,2601upperAngle: 360,2602signalID: 12603}, {2604name: "Platform",2605type: "static",2606x: 639.6,2607y: 302.55,2608density: 1,2609width: 43.1,2610angle: 902611}, {2612name: "Platform",2613type: "static",2614x: 377.6,2615y: 373.05,2616density: 1,2617width: 46.1,2618angle: 902619}, {2620name: "Rock",2621x: 375.7,2622y: 321.55,2623density: 22624}, {2625name: "Platform",2626type: "static",2627x: 421.25,2628y: 399.8,2629density: 1,2630width: 104,2631angle: 152632}, {2633name: "Platform",2634type: "static",2635x: 539.2,2636y: 412.95,2637density: 1,2638width: 141,2639angle: 02640}, {2641name: "Switcher",2642x: 642.15,2643y: 435.05,2644angle: 0,2645type: "button",2646color: "Green",2647signalID: 22648}, {2649name: "Platform",2650type: "static",2651x: 683.6,2652y: 377.55,2653density: 1,2654width: 143.2,2655angle: 902656}, {2657name: "Platform",2658type: "static",2659x: 600.7,2660y: 427,2661density: 1,2662width: 46.1,2663angle: 902664}, {2665name: "Platform",2666type: "static",2667x: 642.15,2668y: 441.05,2669density: 1,2670width: 100.9,2671angle: 02672}, {2673name: "Platform",2674type: "static",2675x: 662.15,2676y: 315.05,2677density: 1,2678width: 60.9,2679angle: 02680}, {2681name: "Pivot",2682x: 644.35,2683y: 143.8,2684type: "gear",2685color: "Green",2686gearMaxAngle: 0,2687gearPower: -5,2688lowerAngle: -360,2689upperAngle: 360,2690signalID: 22691}]2692}, ft[7] = {2693items: [{2694name: "Platform",2695type: "static",2696x: 571.45,2697y: 149.35,2698density: 1,2699width: 210.8,2700angle: -902701}, {2702name: "Platform",2703type: "static",2704x: 323.15,2705y: 147.25,2706density: 1,2707width: 42.4,2708angle: 02709}, {2710name: "Platform",2711type: "dynamic",2712x: 258.75,2713y: 147.35,2714density: 1,2715width: 117,2716angle: 02717}, {2718name: "Basket",2719x: 83.4,2720y: 313.32721}, {2722name: "Cannon",2723x: 486.15,2724y: 396.95,2725lowerAngle: -70,2726upperAngle: 702727}, {2728name: "Switcher",2729x: 644.85,2730y: 60,2731angle: 180,2732type: "toogle",2733color: "Purple",2734signalID: 12735}, {2736name: "Pivot",2737x: 309.9,2738y: 147.25,2739type: "gear",2740color: "Purple",2741gearMaxAngle: 60,2742gearPower: 5,2743lowerAngle: -360,2744upperAngle: 360,2745signalID: 12746}, {2747name: "Rock",2748x: 482.15,2749y: 187,2750density: .352751}, {2752name: "Platform",2753type: "static",2754x: 64.05,2755y: 245.75,2756density: 1,2757width: 120.3,2758angle: 902759}, {2760name: "Platform",2761type: "static",2762x: 106.55,2763y: 181.85,2764density: 1,2765width: 43.8,2766angle: -902767}, {2768name: "Platform",2769type: "static",2770x: 146.55,2771y: 181.85,2772density: 1,2773width: 43.8,2774angle: -902775}, {2776name: "Platform",2777type: "static",2778x: 188.05,2779y: 245.4,2780density: 1,2781width: 119.6,2782angle: 902783}, {2784name: "Platform",2785type: "static",2786x: 166.65,2787y: 154.55,2788density: 1,2789width: 56.8,2790angle: -152791}, {2792name: "Platform",2793type: "static",2794x: 126.55,2795y: 328.85,2796density: 1,2797width: 142.7,2798angle: 902799}, {2800name: "Swings",2801x: 126.55,2802y: 243.1,2803angle: -20,2804lowerAngle: -20,2805upperAngle: 202806}, {2807name: "Platform",2808type: "static",2809x: 91.05,2810y: 157.8,2811density: 1,2812width: 43.8,2813angle: 152814}, {2815name: "Platform",2816type: "static",2817x: 167.8,2818y: 194.8,2819density: 1,2820width: 60.5,2821angle: 02822}, {2823name: "Platform",2824type: "static",2825x: 85.1,2826y: 194.8,2827density: 1,2828width: 60,2829angle: 02830}, {2831name: "Platform",2832type: "static",2833x: 74.5,2834y: 97.5,2835density: 1,2836width: 129.5,2837angle: 902838}, {2839name: "Platform",2840type: "static",2841x: 710.8,2842y: 150.5,2843density: 1,2844width: 212.5,2845angle: 902846}, {2847name: "Star",2848x: 356.7,2849y: 3662850}, {2851name: "Star",2852x: 478.5,2853y: 802854}, {2855name: "Star",2856x: 652.45,2857y: 299.72858}, {2859name: "Platform",2860type: "static",2861x: 456.45,2862y: 232.85,2863density: 1,2864width: 43.8,2865angle: -902866}, {2867name: "Platform",2868type: "static",2869x: 506.45,2870y: 232.85,2871density: 1,2872width: 43.8,2873angle: -902874}, {2875name: "Platform",2876type: "static",2877x: 537.2,2878y: 245.8,2879density: 1,2880width: 79.5,2881angle: 02882}, {2883name: "Platform",2884type: "static",2885x: 385.25,2886y: 290.45,2887density: 1,2888width: 173.7,2889angle: -302890}, {2891name: "Spring",2892x: 282.45,2893y: 366.65,2894angle: -10,2895type: "static",2896elasticity: 32897}, {2898name: "Platform",2899type: "static",2900x: 336.35,2901y: 98.5,2902density: 1,2903width: 112.8,2904angle: -902905}, {2906name: "Platform",2907type: "static",2908x: 523.7,2909y: 52.25,2910density: 1,2911width: 392.7,2912angle: 02913}, {2914name: "Platform",2915type: "static",2916x: 354.35,2917y: 210.3,2918density: 1,2919width: 94.2,2920angle: -302921}, {2922name: "Platform",2923type: "static",2924x: 389.95,2925y: 122.9,2926density: 1,2927width: 151.8,2928angle: -902929}, {2930name: "Spring",2931x: 651.45,2932y: 395.55,2933angle: 0,2934type: "static",2935elasticity: 32936}]2937}, ft[8] = {2938items: [{2939name: "Platform",2940type: "static",2941x: 61.1,2942y: 271.25,2943density: 1,2944width: 71.6,2945angle: 132946}, {2947name: "Platform",2948type: "static",2949x: 533.95,2950y: 71.3,2951density: 1,2952width: 265,2953angle: 02954}, {2955name: "Basket",2956x: 573.05,2957y: 172.552958}, {2959name: "Cannon",2960x: 263.75,2961y: 230.1,2962lowerAngle: -70,2963upperAngle: 702964}, {2965name: "Platform",2966type: "dynamic",2967x: 411.6,2968y: 106.9,2969density: .1,2970width: 90.4,2971angle: 902972}, {2973name: "Box",2974x: 158.55,2975y: 169.55,2976angle: 0,2977density: .32978}, {2979name: "Platform",2980type: "static",2981x: 534.45,2982y: 238.1,2983density: 1,2984width: 263.3,2985angle: 02986}, {2987name: "Platform",2988type: "static",2989x: 457,2990y: 366.1,2991density: 1,2992width: 306.4,2993angle: 52994}, {2995name: "Platform",2996type: "static",2997x: 599.45,2998y: 401.1,2999density: 1,3000width: 59.6,3001angle: -903002}, {3003name: "Platform",3004type: "static",3005x: 657.7,3006y: 245.1,3007density: 1,3008width: 365.8,3009angle: -903010}, {3011name: "Switcher",3012x: 628.65,3013y: 414.8,3014angle: 0,3015type: "button",3016color: "Red",3017signalID: 23018}, {3019name: "Platform",3020type: "static",3021x: 628.75,3022y: 421.85,3023density: 1,3024width: 76.1,3025angle: 03026}, {3027name: "Platform",3028type: "static",3029x: 411.4,3030y: 202.25,3031density: 1,3032width: 91.6,3033angle: -903034}, {3035name: "Switcher",3036x: 61.55,3037y: 263.1,3038angle: 13,3039type: "button",3040color: "Green",3041signalID: 33042}, {3043name: "Star",3044x: 556.3,3045y: 443046}, {3047name: "Star",3048x: 22.35,3049y: 41.23050}, {3051name: "Star",3052x: 460.3,3053y: 207.153054}, {3055name: "Platform",3056type: "static",3057x: 611.25,3058y: 200.85,3059density: 1,3060width: 90.6,3061angle: -903062}, {3063name: "Platform",3064type: "dynamic",3065x: 581.05,3066y: 163.95,3067density: .1,3068width: 78.4,3069angle: 03070}, {3071name: "Pivot",3072x: 611,3073y: 165.75,3074type: "gear",3075color: "Blue",3076gearMaxAngle: 45,3077gearPower: 6,3078lowerAngle: -360,3079upperAngle: 360,3080signalID: 13081}, {3082name: "Platform",3083type: "static",3084x: 634.25,3085y: 165.8,3086density: 1,3087width: 160.6,3088angle: -903089}, {3090name: "Platform",3091type: "static",3092x: 577.75,3093y: 94.55,3094density: 1,3095width: 131,3096angle: 03097}, {3098name: "Platform",3099type: "dynamic",3100x: 522.15,3101y: 176.8,3102density: .1,3103width: 138.6,3104angle: -903105}, {3106name: "Pivot",3107x: 523,3108y: 237.15,3109type: "gear",3110color: "Red",3111gearMaxAngle: -135,3112gearPower: -6,3113lowerAngle: -360,3114upperAngle: 360,3115signalID: 23116}, {3117name: "Pivot",3118x: 411.15,3119y: 71.05,3120type: "gear",3121color: "Green",3122gearMaxAngle: 225,3123gearPower: 6,3124lowerAngle: -360,3125upperAngle: 360,3126signalID: 33127}, {3128name: "Platform",3129type: "static",3130x: 33.35,3131y: 160.8,3132density: 1,3133width: 203.4,3134angle: -903135}, {3136name: "Platform",3137type: "static",3138x: 271.1,3139y: 238.1,3140density: 1,3141width: 200.3,3142angle: 03143}, {3144name: "Platform",3145type: "static",3146x: 137.45,3147y: 258.95,3148density: 1,3149width: 130.4,3150angle: -903151}, {3152name: "Platform",3153type: "static",3154x: 192.35,3155y: 329.05,3156density: 1,3157width: 127,3158angle: 133159}, {3160name: "Switcher",3161x: 279.75,3162y: 394.85,3163angle: 0,3164type: "button",3165color: "Blue",3166signalID: 13167}, {3168name: "Platform",3169type: "static",3170x: 308.45,3171y: 317.7,3172density: 1,3173width: 175.5,3174angle: -903175}, {3176name: "Platform",3177type: "static",3178x: 280.3,3179y: 401.85,3180density: 1,3181width: 75.1,3182angle: 03183}, {3184name: "Platform",3185type: "static",3186x: 247.45,3187y: 373.35,3188density: 1,3189width: 76.6,3190angle: -903191}, {3192name: "Platform",3193type: "static",3194x: 2.75,3195y: 68.1,3196density: 1,3197width: 79.2,3198angle: 03199}, {3200name: "Platform",3201type: "static",3202x: 179.45,3203y: 219.95,3204density: 1,3205width: 52.4,3206angle: -903207}]3208}, ft[9] = {3209items: [{3210name: "Platform",3211type: "static",3212x: 36.45,3213y: 375.85,3214density: 1,3215width: 99.7,3216angle: -903217}, {3218name: "Platform",3219type: "dynamic",3220x: 103.85,3221y: 334.95,3222density: .1,3223width: 152.6,3224angle: 03225}, {3226name: "Platform",3227type: "static",3228x: 671.95,3229y: 401.35,3230density: 1,3231width: 18,3232angle: 03233}, {3234name: "Platform",3235type: "static",3236x: 104.95,3237y: 385.55,3238density: 1,3239width: 80.2,3240angle: -903241}, {3242name: "Platform",3243type: "static",3244x: 396.15,3245y: 161.3,3246density: 1,3247width: 18,3248angle: 03249}, {3250name: "Switcher",3251x: 494.35,3252y: 100.7,3253angle: -45,3254type: "button",3255color: "Red",3256signalID: 23257}, {3258name: "Platform",3259type: "static",3260x: 539.05,3261y: 67.4,3262density: 1,3263width: 153.3,3264angle: -453265}, {3266name: "Basket",3267x: 164.25,3268y: 111.43269}, {3270name: "Cannon",3271x: 293.75,3272y: 406.05,3273lowerAngle: -70,3274upperAngle: 703275}, {3276name: "Teleport",3277x: 137.75,3278y: 383.65,3279angle: 0,3280color: "Blue",3281id: 0,3282mulVel: 43283}, {3284name: "Teleport",3285x: 449.15,3286y: 362.65,3287angle: 0,3288color: "Blue",3289id: 0,3290mulVel: 1.43291}, {3292name: "Spring",3293x: 672.8,3294y: 401.15,3295angle: 20,3296type: "dynamic",3297elasticity: 2.43298}, {3299name: "Platform",3300type: "dynamic",3301x: 395.9,3302y: 102.2,3303density: .2,3304width: 137.7,3305angle: 903306}, {3307name: "Pivot",3308x: 396.15,3309y: 161.3,3310type: "bolt",3311color: "Red",3312gearMaxAngle: 0,3313gearPower: 5,3314lowerAngle: -360,3315upperAngle: 360,3316signalID: 03317}, {3318name: "Pivot",3319x: 672.95,3320y: 401.1,3321type: "gear",3322color: "Red",3323gearMaxAngle: -45,3324gearPower: -8,3325lowerAngle: -360,3326upperAngle: 360,3327signalID: 23328}, {3329name: "Pivot",3330x: 37.7,3331y: 335.7,3332type: "bolt",3333color: "Blue",3334gearMaxAngle: -90,3335gearPower: -5,3336lowerAngle: -180,3337upperAngle: 360,3338signalID: 33339}, {3340name: "Platform",3341type: "static",3342x: 373.9,3343y: 25.35,3344density: 1,3345width: 38.6,3346angle: -903347}, {3348name: "Star",3349x: 124.4,3350y: 513351}, {3352name: "Star",3353x: 48.45,3354y: 251.553355}, {3356name: "Star",3357x: 459.3,3358y: 39.953359}, {3360name: "Platform",3361type: "static",3362x: 416.9,3363y: 329.15,3364density: 1,3365width: 153.4,3366angle: -903367}, {3368name: "Platform",3369type: "static",3370x: 477.4,3371y: 261.45,3372density: 1,3373width: 137.6,3374angle: 153375}, {3376name: "Platform",3377type: "static",3378x: 472.75,3379y: 414.85,3380density: 1,3381width: 128.4,3382angle: 03383}, {3384name: "Platform",3385type: "static",3386x: 170.5,3387y: 385.35,3388density: 1,3389width: 79.5,3390angle: -903391}, {3392name: "Platform",3393type: "static",3394x: 691.45,3395y: 414.85,3396density: 1,3397width: 57,3398angle: 03399}, {3400name: "Platform",3401type: "static",3402x: 70.95,3403y: 416.95,3404density: 1,3405width: 86.5,3406angle: 03407}, {3408name: "Switcher",3409x: 71.2,3410y: 409.1,3411angle: 0,3412type: "button",3413color: "Blue",3414signalID: 33415}, {3416name: "Platform",3417type: "static",3418x: 126.8,3419y: 136.7,3420density: 1,3421width: 94.5,3422angle: -903423}, {3424name: "Platform",3425type: "dynamic",3426x: 163.85,3427y: 97.9,3428density: 1,3429width: 94.1,3430angle: 03431}, {3432name: "Pivot",3433x: 126.05,3434y: 98.65,3435type: "gear",3436color: "Blue",3437gearMaxAngle: -45,3438gearPower: -5,3439lowerAngle: -360,3440upperAngle: 360,3441signalID: 33442}, {3443name: "Platform",3444type: "static",3445x: 201.25,3446y: 145.9,3447density: 1,3448width: 73.5,3449angle: -903450}, {3451name: "Platform",3452type: "static",3453x: 164.1,3454y: 174.55,3455density: 1,3456width: 90.3,3457angle: 03458}, {3459name: "Platform",3460type: "static",3461x: 482.25,3462y: 15.05,3463density: 1,3464width: 234.5,3465angle: 03466}]3467}, ft[10] = {3468items: [{3469name: "Platform",3470type: "dynamic",3471x: 184.4,3472y: 74,3473density: 1,3474width: 128.5,3475angle: 903476}, {3477name: "Platform",3478type: "static",3479x: 237.65,3480y: 159.15,3481density: 1,3482width: 162.8,3483angle: -153484}, {3485name: "Platform",3486type: "static",3487x: 114.95,3488y: 313.75,3489density: 1,3490width: 151.5,3491angle: -903492}, {3493name: "Platform",3494type: "static",3495x: 629.7,3496y: 395.25,3497density: 1,3498width: 170.9,3499angle: 903500}, {3501name: "Spring",3502x: 662.9,3503y: 300.35,3504angle: -20,3505type: "static",3506elasticity: 23507}, {3508name: "Basket",3509x: 590.7,3510y: 419.73511}, {3512name: "Cannon",3513x: 413.55,3514y: 374.15,3515lowerAngle: -70,3516upperAngle: 703517}, {3518name: "Platform",3519type: "static",3520x: 329.65,3521y: 137.15,3522density: 1,3523width: 44.7,3524angle: 03525}, {3526name: "Switcher",3527x: 222.35,3528y: 27.85,3529angle: -90,3530type: "button",3531color: "Red",3532signalID: 23533}, {3534name: "Platform",3535type: "static",3536x: 447.15,3537y: 137.15,3538density: 1,3539width: 125.8,3540angle: 03541}, {3542name: "Platform",3543type: "dynamic",3544x: 142.65,3545y: 247.05,3546density: .1,3547width: 71.5,3548angle: 03549}, {3550name: "Pivot",3551x: 115.7,3552y: 247.95,3553type: "gear",3554color: "Green",3555gearMaxAngle: -45,3556gearPower: -4,3557lowerAngle: -360,3558upperAngle: 360,3559signalID: 13560}, {3561name: "Spring",3562x: 531.35,3563y: 190.3,3564angle: 20,3565type: "static",3566elasticity: 2.353567}, {3568name: "Rock",3569x: 334.95,3570y: 100.25,3571density: 53572}, {3573name: "Platform",3574type: "static",3575x: 664.95,3576y: 303.95,3577density: 1,3578width: 51.7,3579angle: -203580}, {3581name: "Platform",3582type: "static",3583x: 167.95,3584y: 300.5,3585density: 1,3586width: 79.6,3587angle: -903588}, {3589name: "Platform",3590type: "static",3591x: 431.25,3592y: 396.8,3593density: 1,3594width: 414,3595angle: 03596}, {3597name: "Platform",3598type: "static",3599x: 682.1,3600y: 55.9,3601density: 1,3602width: 96.1,3603angle: -903604}, {3605name: "Platform",3606type: "static",3607x: 365.35,3608y: 436.2,3609density: 1,3610width: 390.1,3611angle: 03612}, {3613name: "Switcher",3614x: 674.1,3615y: 80.95,3616angle: -90,3617type: "toogle",3618color: "Green",3619signalID: 13620}, {3621name: "Platform",3622type: "dynamic",3623x: 136.65,3624y: 402.6,3625density: 1,3626width: 77.4,3627angle: 453628}, {3629name: "Platform",3630type: "static",3631x: 198.4,3632y: 366.05,3633density: 1,3634width: 92.4,3635angle: 453636}, {3637name: "Platform",3638type: "static",3639x: 527.3,3640y: 193.5,3641density: 1,3642width: 58,3643angle: 203644}, {3645name: "Platform",3646type: "static",3647x: 231.6,3648y: 28.2,3649density: 1,3650width: 40.7,3651angle: 903652}, {3653name: "Star",3654x: 466.25,3655y: 1733656}, {3657name: "Star",3658x: 106.3,3659y: 203.23660}, {3661name: "Star",3662x: 206.35,3663y: 342.953664}, {3665name: "Platform",3666type: "static",3667x: 184.55,3668y: 68.15,3669density: 1,3670width: 18,3671angle: 03672}, {3673name: "Pivot",3674x: 184.55,3675y: 68.15,3676type: "bolt",3677color: "Red",3678gearMaxAngle: 180,3679gearPower: 5,3680lowerAngle: -360,3681upperAngle: 360,3682signalID: 23683}, {3684name: "Platform",3685type: "static",3686x: 504.35,3687y: 100.4,3688density: 1,3689width: 177,3690angle: 903691}, {3692name: "Platform",3693type: "static",3694x: 632.1,3695y: 111.4,3696density: 1,3697width: 85.1,3698angle: -903699}, {3700name: "Platform",3701type: "static",3702x: 652.7,3703y: 160.45,3704density: 1,3705width: 58,3706angle: 303707}, {3708name: "Platform",3709type: "static",3710x: 593.3,3711y: 18.15,3712density: 1,3713width: 195.7,3714angle: 03715}, {3716name: "Pivot",3717x: 115.7,3718y: 381.95,3719type: "gear",3720color: "Green",3721gearMaxAngle: 0,3722gearPower: -6,3723lowerAngle: -360,3724upperAngle: 360,3725signalID: 13726}, {3727name: "Platform",3728type: "static",3729x: 610.8,3730y: 318.75,3731density: 1,3732width: 54.9,3733angle: 03734}, {3735name: "Platform",3736type: "dynamic",3737x: 565.35,3738y: 271.95,3739density: .1,3740width: 120.9,3741angle: 603742}, {3743name: "Pivot",3744x: 593.55,3745y: 318.9,3746type: "gear",3747color: "Red",3748gearMaxAngle: 0,3749gearPower: -4,3750lowerAngle: -360,3751upperAngle: 360,3752signalID: 23753}]3754}, ft[11] = {3755items: [{3756name: "Platform",3757type: "static",3758x: 526.45,3759y: 380.1,3760density: 1,3761width: 18,3762angle: 03763}, {3764name: "Switcher",3765x: 608.95,3766y: 318.3,3767angle: 0,3768type: "button",3769color: "Blue",3770signalID: 23771}, {3772name: "Basket",3773x: 404.15,3774y: 149.43775}, {3776name: "Mill",3777x: 115,3778y: 161.3,3779enableMotor: !0,3780motorSpeed: 10,3781signalID: 23782}, {3783name: "Spring",3784x: 527.1,3785y: 378.2,3786angle: -15,3787type: "static",3788elasticity: 43789}, {3790name: "Switcher",3791x: 670.3,3792y: 318.3,3793angle: 0,3794type: "button",3795color: "Red",3796signalID: 13797}, {3798name: "Cannon",3799x: 315.25,3800y: 405.7,3801lowerAngle: -70,3802upperAngle: 703803}, {3804name: "Platform",3805type: "static",3806x: 639.4,3807y: 327.35,3808density: 1,3809width: 142.9,3810angle: 03811}, {3812name: "Platform",3813type: "static",3814x: 284.75,3815y: 161.65,3816density: 1,3817width: 181,3818angle: 03819}, {3820name: "Platform",3821type: "static",3822x: 254.4,3823y: 72.35,3824density: 1,3825width: 360.6,3826angle: 03827}, {3828name: "Star",3829x: 552.3,3830y: 1453831}, {3832name: "Star",3833x: 586.1,3834y: 377.23835}, {3836name: "Star",3837x: 44.35,3838y: 294.953839}, {3840name: "Platform",3841type: "static",3842x: 52.1,3843y: 225.85,3844density: 1,3845width: 205.7,3846angle: 453847}, {3848name: "Platform",3849type: "static",3850x: 33.05,3851y: 119.35,3852density: 1,3853width: 137.7,3854angle: 1353855}, {3856name: "Platform",3857type: "static",3858x: 425.75,3859y: 106.05,3860density: 1,3861width: 85.5,3862angle: 903863}, {3864name: "Teleport",3865x: 457.75,3866y: 105.5,3867angle: 180,3868color: "Red",3869id: 0,3870mulVel: 13871}, {3872name: "Teleport",3873x: 640.05,3874y: 156.6,3875angle: 180,3876color: "Red",3877id: 0,3878mulVel: 13879}, {3880name: "Platform",3881type: "static",3882x: 366.25,3883y: 195.4,3884density: 1,3885width: 85.5,3886angle: 903887}, {3888name: "Platform",3889type: "static",3890x: 395.25,3891y: 229.15,3892density: 1,3893width: 76.1,3894angle: 03895}, {3896name: "Platform",3897type: "dynamic",3898x: 172.35,3899y: 245.1,3900density: 1,3901width: 158.2,3902angle: 1353903}, {3904name: "Pivot",3905x: 122.9,3906y: 293.25,3907type: "gear",3908color: "Red",3909gearMaxAngle: 225,3910gearPower: 4,3911lowerAngle: -360,3912upperAngle: 360,3913signalID: 13914}, {3915name: "Platform",3916type: "static",3917x: 577.9,3918y: 258.5,3919density: 1,3920width: 120.3,3921angle: 903922}, {3923name: "Platform",3924type: "static",3925x: 620.4,3926y: 194.6,3927density: 1,3928width: 43.8,3929angle: -903930}, {3931name: "Platform",3932type: "static",3933x: 660.4,3934y: 194.6,3935density: 1,3936width: 43.8,3937angle: -903938}, {3939name: "Platform",3940type: "static",3941x: 701.9,3942y: 258.15,3943density: 1,3944width: 119.6,3945angle: 903946}, {3947name: "Swings",3948x: 640.4,3949y: 255.85,3950angle: -20,3951lowerAngle: -20,3952upperAngle: 203953}, {3954name: "Platform",3955type: "static",3956x: 681.65,3957y: 207.55,3958density: 1,3959width: 60.5,3960angle: 03961}, {3962name: "Platform",3963type: "static",3964x: 598.95,3965y: 207.55,3966density: 1,3967width: 60,3968angle: 03969}, {3970name: "Platform",3971type: "static",3972x: 607.5,3973y: 73.8,3974density: 1,3975width: 194.3,3976angle: 903977}, {3978name: "Platform",3979type: "static",3980x: 674.5,3981y: 73.8,3982density: 1,3983width: 192.3,3984angle: 903985}, {3986name: "Platform",3987type: "static",3988x: 638.4,3989y: 301.4,3990density: 1,3991width: 37.2,3992angle: 903993}]3994}, ft[12] = {3995items: [{3996name: "Platform",3997type: "static",3998x: 512.1,3999y: 123.1,4000density: 1,4001width: 18,4002angle: 04003}, {4004name: "Platform",4005type: "static",4006x: 661.45,4007y: 345.95,4008density: 1,4009width: 52.1,4010angle: 1204011}, {4012name: "Platform",4013type: "static",4014x: 548.75,4015y: 260.95,4016density: 1,4017width: 296.3,4018angle: 304019}, {4020name: "Platform",4021type: "dynamic",4022x: 489.15,4023y: 264.6,4024density: 5,4025width: 92.9,4026angle: 904027}, {4028name: "Pivot",4029x: 489.15,4030y: 227.15,4031type: "bolt",4032color: "Red",4033gearMaxAngle: 0,4034gearPower: 1,4035lowerAngle: -360,4036upperAngle: 360,4037signalID: 04038}, {4039name: "Platform",4040type: "dynamic",4041x: 583.15,4042y: 320.65,4043density: 5,4044width: 92.9,4045angle: 904046}, {4047name: "Pivot",4048x: 583.15,4049y: 283.2,4050type: "bolt",4051color: "Red",4052gearMaxAngle: 0,4053gearPower: 1,4054lowerAngle: -360,4055upperAngle: 360,4056signalID: 04057}, {4058name: "Platform",4059type: "static",4060x: 39.9,4061y: 333.7,4062density: 1,4063width: 18,4064angle: 1804065}, {4066name: "Basket",4067x: 152.65,4068y: 341.354069}, {4070name: "Cannon",4071x: 107.65,4072y: 246.75,4073lowerAngle: -70,4074upperAngle: 704075}, {4076name: "Platform",4077type: "dynamic",4078x: 105.5,4079y: 333.05,4080density: .1,4081width: 147.3,4082angle: 04083}, {4084name: "Teleport",4085x: 72.15,4086y: 377.7,4087angle: 30,4088color: "Red",4089id: 0,4090mulVel: 34091}, {4092name: "Teleport",4093x: 641.5,4094y: 392.65,4095angle: -60,4096color: "Red",4097id: 0,4098mulVel: 34099}, {4100name: "Pivot",4101x: 39.9,4102y: 333.7,4103type: "gear",4104color: "Red",4105gearMaxAngle: -20,4106gearPower: -6,4107lowerAngle: -360,4108upperAngle: 360,4109signalID: 14110}, {4111name: "Platform",4112type: "static",4113x: 190.8,4114y: 388,4115density: 1,4116width: 263.9,4117angle: 904118}, {4119name: "Star",4120x: 48.35,4121y: 32.64122}, {4123name: "Star",4124x: 219.6,4125y: 3774126}, {4127name: "Platform",4128type: "static",4129x: 562.6,4130y: 178.6,4131density: 1,4132width: 18,4133angle: 04134}, {4135name: "Switcher",4136x: 647.95,4137y: 155.4,4138angle: -45,4139type: "button",4140color: "Red",4141signalID: 14142}, {4143name: "Platform",4144type: "dynamic",4145x: 568.95,4146y: 101.55,4147density: .3,4148width: 135.9,4149angle: -204150}, {4151name: "Platform",4152type: "dynamic",4153x: 554.5,4154y: 154.45,4155density: 1,4156width: 70.2,4157angle: -1104158}, {4159name: "Pivot",4160x: 562.95,4161y: 178.3,4162type: "bolt",4163color: "Red",4164gearMaxAngle: 0,4165gearPower: 1,4166lowerAngle: -360,4167upperAngle: 360,4168signalID: 04169}, {4170name: "Pivot",4171x: 512.1,4172y: 123.1,4173type: "bolt",4174color: "Red",4175gearMaxAngle: 0,4176gearPower: 1,4177lowerAngle: -360,4178upperAngle: 360,4179signalID: 04180}, {4181name: "Platform",4182type: "static",4183x: 653.35,4184y: 160.8,4185density: 1,4186width: 46.9,4187angle: 1354188}, {4189name: "Star",4190x: 555.8,4191y: 72.44192}, {4193name: "Platform",4194type: "static",4195x: 46.6,4196y: 426.7,4197density: 1,4198width: 69.4,4199angle: 304200}, {4201name: "Platform",4202type: "static",4203x: 498.75,4204y: 341.95,4205density: 1,4206width: 264,4207angle: 304208}, {4209name: "Platform",4210type: "static",4211x: 87.35,4212y: 263.95,4213density: 1,4214width: 224.9,4215angle: 04216}]4217}, ft[13] = {4218items: [{4219name: "Platform",4220type: "static",4221x: 680,4222y: 269.9,4223density: 1,4224width: 311.5,4225angle: 904226}, {4227name: "Basket",4228x: 642.15,4229y: 348.64230}, {4231name: "Platform",4232type: "static",4233x: 642.4,4234y: 416.35,4235density: 1,4236width: 94.8,4237angle: 04238}, {4239name: "Platform",4240type: "static",4241x: 94.5,4242y: 262.1,4243density: 1,4244width: 91.7,4245angle: 904246}, {4247name: "Platform",4248type: "static",4249x: 249.5,4250y: 262.1,4251density: 1,4252width: 91.7,4253angle: 904254}, {4255name: "Swings",4256x: 172.55,4257y: 273.6,4258angle: -25,4259lowerAngle: -25,4260upperAngle: 254261}, {4262name: "Platform",4263type: "static",4264x: 233.25,4265y: 397.8,4266density: 1,4267width: 57.7,4268angle: 904269}, {4270name: "Switcher",4271x: 199.9,4272y: 410.9,4273angle: 0,4274type: "button",4275color: "Blue",4276signalID: 34277}, {4278name: "Switcher",4279x: 140.4,4280y: 410.9,4281angle: 0,4282type: "button",4283color: "Green",4284signalID: 24285}, {4286name: "Swings",4287x: 110.25,4288y: 352.45,4289angle: -25,4290lowerAngle: -25,4291upperAngle: 304292}, {4293name: "Swings",4294x: 230.25,4295y: 352.45,4296angle: -30,4297lowerAngle: -30,4298upperAngle: 254299}, {4300name: "Platform",4301type: "static",4302x: 170.25,4303y: 359.1,4304density: 1,4305width: 135.4,4306angle: 904307}, {4308name: "Platform",4309type: "static",4310x: 109.25,4311y: 397.9,4312density: 1,4313width: 58,4314angle: 904315}, {4316name: "Platform",4317type: "static",4318x: 73.4,4319y: 298.7,4320density: 1,4321width: 60.3,4322angle: 04323}, {4324name: "Platform",4325type: "static",4326x: 192.55,4327y: 208.6,4328density: 1,4329width: 50,4330angle: 904331}, {4332name: "Platform",4333type: "static",4334x: 151.55,4335y: 208.6,4336density: 1,4337width: 50,4338angle: 904339}, {4340name: "Platform",4341type: "static",4342x: 221.75,4343y: 224.95,4344density: 1,4345width: 75,4346angle: 04347}, {4348name: "Platform",4349type: "static",4350x: 123.65,4351y: 224.95,4352density: 1,4353width: 75.7,4354angle: 04355}, {4356name: "Platform",4357type: "static",4358x: 274.15,4359y: 298.7,4360density: 1,4361width: 67.2,4362angle: 04363}, {4364name: "Platform",4365type: "static",4366x: 51.25,4367y: 357.9,4368density: 1,4369width: 135,4370angle: 904371}, {4372name: "Platform",4373type: "static",4374x: 177.15,4375y: 417.9,4376density: 1,4377width: 265.8,4378angle: 04379}, {4380name: "Platform",4381type: "static",4382x: 124.3,4383y: 132.45,4384density: 1,4385width: 64.7,4386angle: 904387}, {4388name: "Platform",4389type: "static",4390x: 156.3,4391y: 108.1,4392density: 1,4393width: 80.7,4394angle: 04395}, {4396name: "Cannon",4397x: 435.35,4398y: 348.45,4399lowerAngle: -70,4400upperAngle: 704401}, {4402name: "Platform",4403type: "static",4404x: 301.8,4405y: 358.1,4406density: 1,4407width: 136,4408angle: 904409}, {4410name: "Platform",4411type: "static",4412x: 603.9,4413y: 270.35,4414density: 1,4415width: 312.1,4416angle: 904417}, {4418name: "Platform",4419type: "static",4420x: 137.65,4421y: 172.45,4422density: 1,4423width: 50,4424angle: -1354425}, {4426name: "Star",4427x: 136.1,4428y: 32.254429}, {4430name: "Star",4431x: 51.35,4432y: 249.94433}, {4434name: "Star",4435x: 575.75,4436y: 362.24437}, {4438name: "Platform",4439type: "dynamic",4440x: 615.9,4441y: 329.2,4442density: 1,4443width: 40,4444angle: 04445}, {4446name: "Pivot",4447x: 604.25,4448y: 328.4,4449type: "gear",4450color: "Yellow",4451gearMaxAngle: 40,4452gearPower: 5,4453lowerAngle: -360,4454upperAngle: 360,4455signalID: 44456}, {4457name: "Platform",4458type: "dynamic",4459x: 668.85,4460y: 329.2,4461density: 1,4462width: 40,4463angle: 04464}, {4465name: "Pivot",4466x: 680.25,4467y: 328.4,4468type: "gear",4469color: "Yellow",4470gearMaxAngle: -40,4471gearPower: -5,4472lowerAngle: -360,4473upperAngle: 360,4474signalID: 44475}, {4476name: "Switcher",4477x: 269.9,4478y: 410.9,4479angle: 0,4480type: "button",4481color: "Yellow",4482signalID: 44483}, {4484name: "Switcher",4485x: 79.9,4486y: 410.9,4487angle: 0,4488type: "button",4489color: "Red",4490signalID: 14491}, {4492name: "Platform",4493type: "dynamic",4494x: 615.9,4495y: 279.2,4496density: 1,4497width: 40,4498angle: 04499}, {4500name: "Pivot",4501x: 604.25,4502y: 278.4,4503type: "gear",4504color: "Blue",4505gearMaxAngle: 40,4506gearPower: 5,4507lowerAngle: -360,4508upperAngle: 360,4509signalID: 34510}, {4511name: "Platform",4512type: "dynamic",4513x: 668.85,4514y: 279.2,4515density: 1,4516width: 40,4517angle: 04518}, {4519name: "Pivot",4520x: 680.25,4521y: 278.4,4522type: "gear",4523color: "Blue",4524gearMaxAngle: -40,4525gearPower: -5,4526lowerAngle: -360,4527upperAngle: 360,4528signalID: 34529}, {4530name: "Platform",4531type: "dynamic",4532x: 615.9,4533y: 219.2,4534density: 1,4535width: 40,4536angle: 04537}, {4538name: "Pivot",4539x: 604.25,4540y: 218.4,4541type: "gear",4542color: "Green",4543gearMaxAngle: 40,4544gearPower: 5,4545lowerAngle: -360,4546upperAngle: 360,4547signalID: 24548}, {4549name: "Platform",4550type: "dynamic",4551x: 668.85,4552y: 219.2,4553density: 1,4554width: 40,4555angle: 04556}, {4557name: "Pivot",4558x: 680.25,4559y: 218.4,4560type: "gear",4561color: "Green",4562gearMaxAngle: -40,4563gearPower: -5,4564lowerAngle: -360,4565upperAngle: 360,4566signalID: 24567}, {4568name: "Platform",4569type: "dynamic",4570x: 615.9,4571y: 159.2,4572density: 1,4573width: 40,4574angle: 04575}, {4576name: "Pivot",4577x: 604.25,4578y: 158.4,4579type: "gear",4580color: "Red",4581gearMaxAngle: 40,4582gearPower: 5,4583lowerAngle: -360,4584upperAngle: 360,4585signalID: 14586}, {4587name: "Platform",4588type: "dynamic",4589x: 668.85,4590y: 159.2,4591density: 1,4592width: 40,4593angle: 04594}, {4595name: "Pivot",4596x: 680.25,4597y: 158.4,4598type: "gear",4599color: "Red",4600gearMaxAngle: -40,4601gearPower: -5,4602lowerAngle: -360,4603upperAngle: 360,4604signalID: 14605}, {4606name: "Platform",4607type: "dynamic",4608x: 603.85,4609y: 110,4610density: 1,4611width: 40,4612angle: -904613}, {4614name: "Pivot",4615x: 604.25,4616y: 121.4,4617type: "gear",4618color: "Red",4619gearMaxAngle: 0,4620gearPower: 5,4621lowerAngle: -360,4622upperAngle: 360,4623signalID: 14624}, {4625name: "Platform",4626type: "dynamic",4627x: 679.45,4628y: 110,4629density: 1,4630width: 40,4631angle: 904632}, {4633name: "Pivot",4634x: 680.25,4635y: 121.4,4636type: "gear",4637color: "Red",4638gearMaxAngle: 0,4639gearPower: -5,4640lowerAngle: -360,4641upperAngle: 360,4642signalID: 14643}]4644}, ft[14] = {4645items: [{4646name: "Platform",4647type: "static",4648x: 372.15,4649y: 319.1,4650density: 1,4651width: 18,4652angle: 04653}, {4654name: "Platform",4655type: "static",4656x: 153.75,4657y: 119.85,4658density: 1,4659width: 18,4660angle: 04661}, {4662name: "Platform",4663type: "static",4664x: 271.95,4665y: 119.85,4666density: 1,4667width: 18,4668angle: 04669}, {4670name: "Basket",4671x: 304.15,4672y: 361.354673}, {4674name: "Platform",4675type: "static",4676x: 137.85,4677y: 274.05,4678density: 1,4679width: 100,4680angle: 04681}, {4682name: "Box",4683x: 212.45,4684y: 104.6,4685angle: 0,4686density: 14687}, {4688name: "Cannon",4689x: 564.3,4690y: 410.85,4691lowerAngle: -70,4692upperAngle: 704693}, {4694name: "Platform",4695type: "dynamic",4696x: 350.2,4697y: 318.9,4698density: 1,4699width: 62.9,4700angle: 04701}, {4702name: "Pivot",4703x: 372.15,4704y: 319.1,4705type: "gear",4706color: "Yellow",4707gearMaxAngle: -35,4708gearPower: -5,4709lowerAngle: -360,4710upperAngle: 360,4711signalID: 24712}, {4713name: "Platform",4714type: "static",4715x: 178.1,4716y: 296.95,4717density: 1,4718width: 62.3,4719angle: 904720}, {4721name: "Platform",4722type: "static",4723x: 181.9,4724y: 319.1,4725density: 1,4726width: 25.8,4727angle: 04728}, {4729name: "Platform",4730type: "static",4731x: 330,4732y: 274.8,4733density: 1,4734width: 180,4735angle: 04736}, {4737name: "Platform",4738type: "static",4739x: 411.9,4740y: 289.15,4741density: 1,4742width: 307.2,4743angle: 904744}, {4745name: "Platform",4746type: "static",4747x: 340.95,4748y: 131.1,4749density: 1,4750width: 159.3,4751angle: 904752}, {4753name: "Platform",4754type: "static",4755x: 389.95,4756y: 257.1,4757density: 1,4758width: 65.2,4759angle: 1504760}, {4761name: "Platform",4762type: "dynamic",4763x: 176.9,4764y: 132.1,4765density: 1,4766width: 71.8,4767angle: 304768}, {4769name: "Platform",4770type: "dynamic",4771x: 248.95,4772y: 132.1,4773density: 1,4774width: 71.8,4775angle: -304776}, {4777name: "Pivot",4778x: 153.75,4779y: 119.85,4780type: "gear",4781color: "Green",4782gearMaxAngle: 90,4783gearPower: 6,4784lowerAngle: -360,4785upperAngle: 360,4786signalID: 14787}, {4788name: "Pivot",4789x: 271.95,4790y: 119.85,4791type: "gear",4792color: "Green",4793gearMaxAngle: -90,4794gearPower: -6,4795lowerAngle: -360,4796upperAngle: 360,4797signalID: 14798}, {4799name: "Switcher",4800x: 694.3,4801y: 105.4,4802angle: -90,4803type: "toogle",4804color: "Green",4805signalID: 14806}, {4807name: "Switcher",4808x: 49.85,4809y: 261.25,4810angle: 90,4811type: "toogle",4812color: "Yellow",4813signalID: 24814}, {4815name: "Ball",4816x: 333.15,4817y: 300.34818}, {4819name: "Platform",4820type: "static",4821x: 192.25,4822y: 60.4,4823density: 1,4824width: 316.9,4825angle: 04826}, {4827name: "Platform",4828type: "static",4829x: 42.85,4830y: 166.6,4831density: 1,4832width: 229.4,4833angle: 904834}, {4835name: "Platform",4836type: "static",4837x: 249.1,4838y: 296.25,4839density: 1,4840width: 61.7,4841angle: 904842}, {4843name: "Platform",4844type: "static",4845x: 245.5,4846y: 318.1,4847density: 1,4848width: 26.8,4849angle: 04850}, {4851name: "Platform",4852type: "static",4853x: 702,4854y: 99.5,4855density: 1,4856width: 71.3,4857angle: 904858}, {4859name: "Platform",4860type: "static",4861x: 680.75,4862y: 72.85,4863density: 1,4864width: 60.5,4865angle: 04866}, {4867name: "Star",4868x: 128.9,4869y: 334870}, {4871name: "Star",4872x: 214.35,4873y: 326.954874}, {4875name: "Star",4876x: 678.35,4877y: 47.054878}, {4879name: "Platform",4880type: "static",4881x: 330,4882y: 433.8,4883density: 1,4884width: 180,4885angle: 04886}, {4887name: "Platform",4888type: "static",4889x: 249.1,4890y: 388.25,4891density: 1,4892width: 105.7,4893angle: 904894}]4895}, ft[15] = {4896items: [{4897name: "Platform",4898type: "static",4899x: 630.8,4900y: 63.4,4901density: 1,4902width: 155.8,4903angle: -454904}, {4905name: "Platform",4906type: "static",4907x: 356.95,4908y: 400.7,4909density: 1,4910width: 18,4911angle: 04912}, {4913name: "Switcher",4914x: 431.95,4915y: 152.95,4916angle: 180,4917type: "toogle",4918color: "Purple",4919signalID: 34920}, {4921name: "Basket",4922x: 172.1,4923y: 290.34924}, {4925name: "Switcher",4926x: 20.3,4927y: 386.6,4928angle: 90,4929type: "toogle",4930color: "Blue",4931signalID: 14932}, {4933name: "Cannon",4934x: 498.75,4935y: 364.8,4936lowerAngle: -70,4937upperAngle: 704938}, {4939name: "Star",4940x: 273.3,4941y: 319.34942}, {4943name: "Star",4944x: 159.45,4945y: 2094946}, {4947name: "Star",4948x: 617.35,4949y: 36.954950}, {4951name: "Platform",4952type: "static",4953x: 435.5,4954y: 29.45,4955density: 1,4956width: 60.3,4957angle: -904958}, {4959name: "Platform",4960type: "static",4961x: 69.85,4962y: 29.45,4963density: 1,4964width: 60.3,4965angle: -904966}, {4967name: "Platform",4968type: "static",4969x: 185.25,4970y: 163,4971density: 1,4972width: 175.7,4973angle: 04974}, {4975name: "Platform",4976type: "static",4977x: 358.9,4978y: 162.95,4979density: 1,4980width: 94.4,4981angle: 04982}, {4983name: "Platform",4984type: "static",4985x: 101.15,4986y: 145,4987density: 1,4988width: 29,4989angle: 04990}, {4991name: "Platform",4992type: "static",4993x: 444.8,4994y: 144.95,4995density: 1,4996width: 113.5,4997angle: 04998}, {4999name: "Platform",5000type: "dynamic",5001x: 252.1,5002y: 31.4,5003density: .01,5004width: 266.7,5005angle: 05006}, {5007name: "Platform",5008type: "static",5009x: 106.65,5010y: 154,5011density: 1,5012width: 36,5013angle: -905014}, {5015name: "Platform",5016type: "static",5017x: 397.05,5018y: 154,5019density: 1,5020width: 36,5021angle: -905022}, {5023name: "Platform",5024type: "dynamic",5025x: 98.65,5026y: 50.65,5027density: 1,5028width: 75.8,5029angle: 05030}, {5031name: "Pivot",5032x: 67.95,5033y: 51.1,5034type: "gear",5035color: "Green",5036gearMaxAngle: 180,5037gearPower: 5,5038lowerAngle: -360,5039upperAngle: 360,5040signalID: 25041}, {5042name: "Platform",5043type: "dynamic",5044x: 406.05,5045y: 50.6,5046density: 1,5047width: 76.7,5048angle: 05049}, {5050name: "Platform",5051type: "dynamic",5052x: 565.5,5053y: 96.65,5054density: .1,5055width: 63.3,5056angle: 455057}, {5058name: "Rock",5059x: 581,5060y: 61.25,5061density: 105062}, {5063name: "Platform",5064type: "static",5065x: 63.1,5066y: 331.75,5067density: 1,5068width: 112,5069angle: 05070}, {5071name: "Platform",5072type: "static",5073x: 119.5,5074y: 256.4,5075density: 1,5076width: 168.8,5077angle: 905078}, {5079name: "Platform",5080type: "static",5081x: 223.25,5082y: 317.9,5083density: 1,5084width: 55,5085angle: 905086}, {5087name: "Platform",5088type: "dynamic",5089x: 131.45,5090y: 281.4,5091density: .8,5092width: 201.4,5093angle: 05094}, {5095name: "Pivot",5096x: 119.25,5097y: 281.4,5098type: "bolt",5099color: "Red",5100gearMaxAngle: 0,5101gearPower: 1,5102lowerAngle: -720,5103upperAngle: 720,5104signalID: 05105}, {5106name: "Pivot",5107x: 435.95,5108y: 51.1,5109type: "gear",5110color: "Green",5111gearMaxAngle: -180,5112gearPower: -5,5113lowerAngle: -360,5114upperAngle: 360,5115signalID: 25116}, {5117name: "Pivot",5118x: 581.95,5119y: 112.1,5120type: "gear",5121color: "Blue",5122gearMaxAngle: -20,5123gearPower: -5,5124lowerAngle: -360,5125upperAngle: 360,5126signalID: 15127}, {5128name: "Platform",5129type: "static",5130x: 11.55,5131y: 273.85,5132density: 1,5133width: 305.9,5134angle: 905135}, {5136name: "Spring",5137x: 358,5138y: 400.7,5139angle: 0,5140type: "dynamic",5141elasticity: 45142}, {5143name: "Pivot",5144x: 357.95,5145y: 399.7,5146type: "gear",5147color: "Purple",5148gearMaxAngle: -90,5149gearPower: -5,5150lowerAngle: -360,5151upperAngle: 360,5152signalID: 35153}, {5154name: "Platform",5155type: "static",5156x: 38.95,5157y: 11,5158density: 1,5159width: 72.7,5160angle: 05161}, {5162name: "Platform",5163type: "static",5164x: 626.5,5165y: 94.75,5166density: 1,5167width: 60.3,5168angle: -905169}, {5170name: "Platform",5171type: "dynamic",5172x: 626.5,5173y: 216.6,5174density: .8,5175width: 223.3,5176angle: 905177}, {5178name: "Pivot",5179x: 625.7,5180y: 113.65,5181type: "bolt",5182color: "Red",5183gearMaxAngle: 0,5184gearPower: 1,5185lowerAngle: -720,5186upperAngle: 720,5187signalID: 05188}, {5189name: "Switcher",5190x: 691.95,5191y: 302.75,5192angle: -90,5193type: "toogle",5194color: "Green",5195signalID: 25196}, {5197name: "Platform",5198type: "static",5199x: 699,5200y: 167.95,5201density: 1,5202width: 325,5203angle: -905204}, {5205name: "Platform",5206type: "static",5207x: 206.5,5208y: 424.15,5209density: 1,5210width: 229.8,5211angle: 35212}, {5213name: "Platform",5214type: "static",5215x: 360.15,5216y: 331.3,5217density: 1,5218width: 92.7,5219angle: 85220}, {5221name: "Platform",5222type: "static",5223x: 398.35,5224y: 379.95,5225density: 1,5226width: 102.1,5227angle: 905228}]5229}, ft[16] = {5230items: [{5231name: "Platform",5232type: "static",5233x: 616.4,5234y: 367.7,5235density: 1,5236width: 20,5237angle: 05238}, {5239name: "Platform",5240type: "static",5241x: 117.6,5242y: 224.5,5243density: 1,5244width: 114.1,5245angle: 905246}, {5247name: "Switcher",5248x: 255.55,5249y: 209.4,5250angle: 135,5251type: "toogle",5252color: "Yellow",5253signalID: 35254}, {5255name: "Basket",5256x: 84.6,5257y: 389.355258}, {5259name: "Cannon",5260x: 422.95,5261y: 394.95,5262lowerAngle: -70,5263upperAngle: 705264}, {5265name: "Switcher",5266x: 549.15,5267y: 169.15,5268angle: 30,5269type: "toogle",5270color: "Red",5271signalID: 15272}, {5273name: "Platform",5274type: "static",5275x: 708.2,5276y: 94.55,5277density: 1,5278width: 583.8,5279angle: 905280}, {5281name: "Platform",5282type: "static",5283x: 522.55,5284y: -8.55,5285density: 1,5286width: 567.9,5287angle: 905288}, {5289name: "Platform",5290type: "static",5291x: 542.85,5292y: 173.9,5293density: 1,5294width: 54.2,5295angle: -1505296}, {5297name: "Star",5298x: 481.3,5299y: 14.15300}, {5301name: "Teleport",5302x: 77.45,5303y: 237.15,5304angle: 0,5305color: "Red",5306id: 1,5307mulVel: 65308}, {5309name: "Platform",5310type: "static",5311x: 212.1,5312y: 404,5313density: 1,5314width: 223.8,5315angle: 145316}, {5317name: "Box",5318x: 233.5,5319y: 376.9,5320angle: 14,5321density: .55322}, {5323name: "Teleport",5324x: 271.05,5325y: 385.2,5326angle: -76,5327color: "Red",5328id: 1,5329mulVel: 105330}, {5331name: "Platform",5332type: "static",5333x: 26.25,5334y: 324.95,5335density: 1,5336width: 84.1,5337angle: 1045338}, {5339name: "Platform",5340type: "static",5341x: 39.05,5342y: 372.3,5343density: 1,5344width: 66.4,5345angle: 145346}, {5347name: "Platform",5348type: "static",5349x: 322.55,5350y: 397.35,5351density: 1,5352width: 83.1,5353angle: 1045354}, {5355name: "Platform",5356type: "static",5357x: 181.4,5358y: 328.65,5359density: 1,5360width: 318.9,5361angle: 145362}, {5363name: "Teleport",5364x: 77.2,5365y: 100.4,5366angle: 180,5367color: "Blue",5368id: 2,5369mulVel: 15370}, {5371name: "Teleport",5372x: 194.05,5373y: 237.15,5374angle: 0,5375color: "Blue",5376id: 2,5377mulVel: 15378}, {5379name: "Platform",5380type: "dynamic",5381x: 95.2,5382y: 171.4,5383density: .1,5384width: 61.1,5385angle: 105386}, {5387name: "Pivot",5388x: 116.35,5389y: 175.35,5390type: "gear",5391color: "Red",5392gearMaxAngle: -35,5393gearPower: -3,5394lowerAngle: -360,5395upperAngle: 360,5396signalID: 15397}, {5398name: "Platform",5399type: "static",5400x: 43.45,5401y: 162.3,5402density: 1,5403width: 25.5,5404angle: 105405}, {5406name: "Platform",5407type: "static",5408x: 37,5409y: 86.2,5410density: 1,5411width: 162.6,5412angle: 905413}, {5414name: "Platform",5415type: "static",5416x: 257.2,5417y: 197.9,5418density: 1,5419width: 85.6,5420angle: 1355421}, {5422name: "Platform",5423type: "static",5424x: 157.6,5425y: 206.45,5426density: 1,5427width: 150.1,5428angle: 905429}, {5430name: "Platform",5431type: "static",5432x: 135.25,5433y: 136.15,5434density: 1,5435width: 58.1,5436angle: 105437}, {5438name: "Spring",5439x: 616.4,5440y: 367.7,5441angle: -5,5442type: "dynamic",5443elasticity: 35444}, {5445name: "Pivot",5446x: 616.4,5447y: 367.7,5448type: "gear",5449color: "Yellow",5450gearMaxAngle: 5,5451gearPower: 5,5452lowerAngle: -360,5453upperAngle: 360,5454signalID: 35455}, {5456name: "Platform",5457type: "static",5458x: 229.6,5459y: 251,5460density: 1,5461width: 61.2,5462angle: 905463}, {5464name: "Mill",5465x: 345.5,5466y: 109.1,5467enableMotor: !0,5468motorSpeed: -10,5469signalID: 25470}, {5471name: "Star",5472x: 138.2,5473y: 266.455474}, {5475name: "Platform",5476type: "static",5477x: 424.05,5478y: 31.05,5479density: 1,5480width: 59.9,5481angle: 1355482}, {5483name: "Platform",5484type: "static",5485x: 31.8,5486y: 210.25,5487density: 1,5488width: 49.2,5489angle: 105490}, {5491name: "Platform",5492type: "static",5493x: 14,5494y: 109.75,5495density: 1,5496width: 211.5,5497angle: 905498}, {5499name: "Switcher",5500x: 682.2,5501y: 177.6,5502angle: -40,5503type: "toogle",5504color: "Green",5505signalID: 25506}, {5507name: "Platform",5508type: "static",5509x: 687.85,5510y: 181.85,5511density: 1,5512width: 54.2,5513angle: -405514}, {5515name: "Platform",5516type: "static",5517x: 227.85,5518y: 11.55,5519density: 1,5520width: 444.2,5521angle: 05522}, {5523name: "Platform",5524type: "static",5525x: 113.25,5526y: 69,5527density: 1,5528width: 138,5529angle: 905530}, {5531name: "Star",5532x: 679.3,5533y: 275.055534}]5535}, ft[17] = {5536items: [{5537name: "Platform",5538type: "static",5539x: 207.5,5540y: 404.8,5541density: 1,5542width: 18,5543angle: 05544}, {5545name: "Platform",5546type: "static",5547x: 377.35,5548y: 469.15,5549density: 1,5550width: 36,5551angle: 05552}, {5553name: "Basket",5554x: 486.55,5555y: 3945556}, {5557name: "Cannon",5558x: 621.25,5559y: 444.4,5560lowerAngle: -60,5561upperAngle: 705562}, {5563name: "Spring",5564x: 377.95,5565y: 463.55,5566angle: 45,5567type: "dynamic",5568elasticity: 45569}, {5570name: "Pivot",5571x: 377.35,5572y: 461.9,5573type: "gear",5574color: "Yellow",5575gearMaxAngle: 0,5576gearPower: -5,5577lowerAngle: -360,5578upperAngle: 360,5579signalID: 45580}, {5581name: "Platform",5582type: "static",5583x: 526.4,5584y: 442.55,5585density: 1,5586width: 143.1,5587angle: -905588}, {5589name: "Star",5590x: 485.75,5591y: 196.75592}, {5593name: "Platform",5594type: "static",5595x: 253.45,5596y: 251.05,5597density: 1,5598width: 18.7,5599angle: 05600}, {5601name: "Platform",5602type: "static",5603x: 162.45,5604y: 251.05,5605density: 1,5606width: 18.7,5607angle: 05608}, {5609name: "Platform",5610type: "dynamic",5611x: 237.5,5612y: 267,5613density: 1,5614width: 60,5615angle: -455616}, {5617name: "Platform",5618type: "dynamic",5619x: 177.5,5620y: 267,5621density: 1,5622width: 60,5623angle: 455624}, {5625name: "Rock",5626x: 207.5,5627y: 249,5628density: 15629}, {5630name: "Pivot",5631x: 162.5,5632y: 252,5633type: "gear",5634color: "Green",5635gearMaxAngle: 90,5636gearPower: 6,5637lowerAngle: -360,5638upperAngle: 360,5639signalID: 25640}, {5641name: "Pivot",5642x: 252.5,5643y: 252,5644type: "gear",5645color: "Green",5646gearMaxAngle: -90,5647gearPower: -6,5648lowerAngle: -360,5649upperAngle: 360,5650signalID: 25651}, {5652name: "Platform",5653type: "dynamic",5654x: 220.75,5655y: 403.65,5656density: .1,5657width: 242.6,5658angle: 85659}, {5660name: "Pivot",5661x: 207.5,5662y: 401.8,5663type: "gear",5664color: "Red",5665gearMaxAngle: -8,5666gearPower: -4,5667lowerAngle: -360,5668upperAngle: 360,5669signalID: 15670}, {5671name: "Spring",5672x: 49.35,5673y: 453.55,5674angle: 0,5675type: "static",5676elasticity: 4.15677}, {5678name: "Platform",5679type: "static",5680x: 49.35,5681y: 460.5,5682density: 1,5683width: 36,5684angle: 05685}, {5686name: "Platform",5687type: "static",5688x: 446.5,5689y: 326.6,5690density: 1,5691width: 368.9,5692angle: 905693}, {5694name: "Switcher",5695x: 679.5,5696y: 159.05,5697angle: 180,5698type: "toogle",5699color: "Red",5700signalID: 15701}, {5702name: "Platform",5703type: "static",5704x: 577.15,5705y: 151.3,5706density: 1,5707width: 281.5,5708angle: 05709}, {5710name: "Platform",5711type: "dynamic",5712x: 486.95,5713y: 359.25,5714density: .1,5715width: 96.9,5716angle: 05717}, {5718name: "Pivot",5719x: 446.7,5720y: 359.25,5721type: "gear",5722color: "Purple",5723gearMaxAngle: -45,5724gearPower: -6,5725lowerAngle: -360,5726upperAngle: 360,5727signalID: 55728}, {5729name: "Switcher",5730x: 584.5,5731y: 159.05,5732angle: 180,5733type: "toogle",5734color: "Green",5735signalID: 25736}, {5737name: "Switcher",5738x: 494.5,5739y: 159.05,5740angle: 180,5741type: "toogle",5742color: "Blue",5743signalID: 35744}, {5745name: "Platform",5746type: "static",5747x: 253.45,5748y: 161.05,5749density: 1,5750width: 18.7,5751angle: 05752}, {5753name: "Platform",5754type: "static",5755x: 162.45,5756y: 161.05,5757density: 1,5758width: 18.7,5759angle: 05760}, {5761name: "Platform",5762type: "dynamic",5763x: 237.5,5764y: 177,5765density: 1,5766width: 60,5767angle: -455768}, {5769name: "Platform",5770type: "dynamic",5771x: 177.5,5772y: 177,5773density: 1,5774width: 60,5775angle: 455776}, {5777name: "Rock",5778x: 207.5,5779y: 159,5780density: 15781}, {5782name: "Pivot",5783x: 162.5,5784y: 162,5785type: "gear",5786color: "Blue",5787gearMaxAngle: 90,5788gearPower: 6,5789lowerAngle: -360,5790upperAngle: 360,5791signalID: 35792}, {5793name: "Pivot",5794x: 252.5,5795y: 162,5796type: "gear",5797color: "Blue",5798gearMaxAngle: -90,5799gearPower: -6,5800lowerAngle: -360,5801upperAngle: 360,5802signalID: 35803}, {5804name: "Platform",5805type: "static",5806x: 215.2,5807y: 119.3,5808density: 1,5809width: 223.5,5810angle: 05811}, {5812name: "Spring",5813x: 17.55,5814y: 71.15,5815angle: 97,5816type: "static",5817elasticity: 2.25818}, {5819name: "Platform",5820type: "static",5821x: 208.4,5822y: 56.75,5823density: 1,5824width: 143.1,5825angle: -905826}, {5827name: "Switcher",5828x: 199.7,5829y: 89.3,5830angle: -90,5831type: "button",5832color: "Yellow",5833signalID: 45834}, {5835name: "Star",5836x: 549.75,5837y: 454.655838}, {5839name: "Star",5840x: 697.1,5841y: 458.655842}, {5843name: "Platform",5844type: "dynamic",5845x: 317.75,5846y: 169,5847density: .1,5848width: 116,5849angle: 905850}, {5851name: "Pivot",5852x: 317.7,5853y: 119.3,5854type: "gear",5855color: "Red",5856gearMaxAngle: 15,5857gearPower: -5,5858lowerAngle: -360,5859upperAngle: 360,5860signalID: 15861}, {5862name: "Platform",5863type: "static",5864x: 708.9,5865y: 70.25,5866density: 1,5867width: 180,5868angle: -905869}, {5870name: "Switcher",5871x: 700.2,5872y: 121.3,5873angle: -90,5874type: "button",5875color: "Purple",5876signalID: 55877}]5878}, ft[18] = {5879items: [{5880name: "Platform",5881type: "static",5882x: 311.85,5883y: 66.95,5884density: 1,5885width: 18,5886angle: 05887}, {5888name: "Platform",5889type: "static",5890x: 236.9,5891y: 355.65,5892density: 1,5893width: 82.1,5894angle: -305895}, {5896name: "Platform",5897type: "static",5898x: 85.55,5899y: 406.3,5900density: 1,5901width: 63.7,5902angle: 905903}, {5904name: "Platform",5905type: "static",5906x: 148.35,5907y: 81.75,5908density: 1,5909width: 74.3,5910angle: 05911}, {5912name: "Platform",5913type: "static",5914x: 120.15,5915y: 185.65,5916density: 1,5917width: 226.3,5918angle: 905919}, {5920name: "Platform",5921type: "static",5922x: 353.15,5923y: 350.15,5924density: 1,5925width: 165.5,5926angle: 05927}, {5928name: "Platform",5929type: "static",5930x: 216.35,5931y: 283.65,5932density: 1,5933width: 103.7,5934angle: 265935}, {5936name: "Platform",5937type: "dynamic",5938x: 147.35,5939y: 290.45,5940density: .5,5941width: 72.5,5942angle: 05943}, {5944name: "Pivot",5945x: 120.75,5946y: 290.45,5947type: "gear",5948color: "Red",5949gearMaxAngle: 25,5950gearPower: 5,5951lowerAngle: -360,5952upperAngle: 360,5953signalID: 15954}, {5955name: "Platform",5956type: "static",5957x: 175.2,5958y: 214.8,5959density: 1,5960width: 108.1,5961angle: 905962}, {5963name: "Platform",5964type: "dynamic",5965x: 205.65,5966y: 98.9,5967density: .5,5968width: 84.7,5969angle: 305970}, {5971name: "Pivot",5972x: 175.95,5973y: 81.75,5974type: "gear",5975color: "Red",5976gearMaxAngle: 90,5977gearPower: 6,5978lowerAngle: -360,5979upperAngle: 360,5980signalID: 15981}, {5982name: "Platform",5983type: "static",5984x: 466.8,5985y: 446.75,5986density: 1,5987width: 125.5,5988angle: 905989}, {5990name: "Spring",5991x: 312.5,5992y: 339.2,5993angle: -20,5994type: "static",5995elasticity: 2.55996}, {5997name: "Platform",5998type: "static",5999x: 343.5,6000y: 315.25,6001density: 1,6002width: 85.8,6003angle: 706004}, {6005name: "Platform",6006type: "static",6007x: 268.3,6008y: 328.4,6009density: 1,6010width: 57.8,6011angle: 706012}, {6013name: "Platform",6014type: "static",6015x: 449.2,6016y: 369.85,6017density: 1,6018width: 60.6,6019angle: 456020}, {6021name: "Star",6022x: 602,6023y: 31.556024}, {6025name: "Platform",6026type: "static",6027x: 373.75,6028y: 174.2,6029density: 1,6030width: 245.8,6031angle: 236032}, {6033name: "Platform",6034type: "static",6035x: 269.1,6036y: 164.9,6037density: 1,6038width: 82.9,6039angle: 906040}, {6041name: "Platform",6042type: "static",6043x: 375.5,6044y: 209.9,6045density: 1,6046width: 222.8,6047angle: 86048}, {6049name: "Cannon",6050x: 621.3,6051y: 437.75,6052lowerAngle: -70,6053upperAngle: 06054}, {6055name: "Basket",6056x: 164.8,6057y: 390.156058}, {6059name: "Platform",6060type: "dynamic",6061x: 311.8,6062y: 82.25,6063density: 1,6064width: 47.5,6065angle: 906066}, {6067name: "Rock",6068x: 272.5,6069y: 94.7,6070density: .86071}, {6072name: "Pivot",6073x: 311.85,6074y: 66.95,6075type: "gear",6076color: "Green",6077gearMaxAngle: 0,6078gearPower: -5,6079lowerAngle: -360,6080upperAngle: 360,6081signalID: 26082}, {6083name: "Switcher",6084x: 680.2,6085y: 258.65,6086angle: 0,6087type: "button",6088color: "Red",6089signalID: 16090}, {6091name: "Spring",6092x: 534.5,6093y: 248.6,6094angle: -15,6095type: "static",6096elasticity: 3.86097}, {6098name: "Platform",6099type: "static",6100x: 11.2,6101y: 127.2,6102density: 1,6103width: 624.2,6104angle: 906105}, {6106name: "Box",6107x: 418.95,6108y: 301.75,6109angle: 0,6110density: .56111}, {6112name: "Box",6113x: 418.95,6114y: 255.75,6115angle: 0,6116density: .56117}, {6118name: "Platform",6119type: "dynamic",6120x: 111,6121y: 382.45,6122density: .1,6123width: 165.5,6124angle: 06125}, {6126name: "Platform",6127type: "static",6128x: 37.25,6129y: 427.75,6130density: 1,6131width: 33.7,6132angle: 906133}, {6134name: "Pivot",6135x: 85.95,6136y: 382.65,6137type: "bolt",6138color: "Purple",6139gearMaxAngle: 45,6140gearPower: 6,6141lowerAngle: -360,6142upperAngle: 360,6143signalID: 36144}, {6145name: "Platform",6146type: "static",6147x: 709.2,6148y: 127.2,6149density: 1,6150width: 624.2,6151angle: 906152}, {6153name: "Platform",6154type: "static",6155x: 679.45,6156y: 266.4,6157density: 1,6158width: 80.9,6159angle: 06160}, {6161name: "Platform",6162type: "static",6163x: 567,6164y: 94.8,6165density: 1,6166width: 289.3,6167angle: 906168}, {6169name: "Platform",6170type: "static",6171x: 648.1,6172y: 251.2,6173density: 1,6174width: 48.4,6175angle: 906176}, {6177name: "Switcher",6178x: 680.2,6179y: 148.65,6180angle: 0,6181type: "button",6182color: "Green",6183signalID: 26184}, {6185name: "Platform",6186type: "static",6187x: 679.45,6188y: 156.4,6189density: 1,6190width: 80.9,6191angle: 06192}, {6193name: "Platform",6194type: "static",6195x: 648.1,6196y: 141.2,6197density: 1,6198width: 48.4,6199angle: 906200}, {6201name: "Platform",6202type: "static",6203x: 127.2,6204y: 408.3,6205density: 1,6206width: 33.7,6207angle: 906208}, {6209name: "Platform",6210type: "static",6211x: 399.15,6212y: 333.1,6213density: 1,6214width: 73.5,6215angle: 06216}, {6217name: "Star",6218x: 200.15,6219y: 245.56220}, {6221name: "Star",6222x: 653.65,6223y: 309.66224}]6225}, ft[19] = {6226items: [{6227name: "Basket",6228x: 184.55,6229y: 422.656230}, {6231name: "Cannon",6232x: 318,6233y: 294.1,6234lowerAngle: -70,6235upperAngle: 706236}, {6237name: "Platform",6238type: "static",6239x: 317.85,6240y: 301.95,6241density: 1,6242width: 55.7,6243angle: 06244}, {6245name: "Platform",6246type: "static",6247x: 570.35,6248y: 185.1,6249density: 2,6250width: 18,6251angle: 06252}, {6253name: "Platform",6254type: "static",6255x: 442.5,6256y: 371.1,6257density: 1,6258width: 70.7,6259angle: 06260}, {6261name: "Platform",6262type: "static",6263x: 439.85,6264y: 331.1,6265density: 1,6266width: 65.7,6267angle: 06268}, {6269name: "Platform",6270type: "static",6271x: 572.8,6272y: 371.1,6273density: 1,6274width: 74.6,6275angle: 06276}, {6277name: "Platform",6278type: "static",6279x: 660,6280y: 186.5,6281density: 1,6282width: 268.9,6283angle: 906284}, {6285name: "Platform",6286type: "static",6287x: 606.5,6288y: 316.4,6289density: 1,6290width: 49.2,6291angle: -456292}, {6293name: "Platform",6294type: "static",6295x: 564.4,6296y: 277,6297density: 1,6298width: 58.2,6299angle: 06300}, {6301name: "Platform",6302type: "static",6303x: 558.25,6304y: 220.6,6305density: 1,6306width: 46,6307angle: 06308}, {6309name: "Switcher",6310x: 573.55,6311y: 270.05,6312angle: 0,6313type: "button",6314color: "Red",6315signalID: 26316}, {6317name: "Box",6318x: 444,6319y: 247.3,6320angle: 0,6321density: .856322}, {6323name: "Spring",6324x: 570.9,6325y: 184.6,6326angle: 25,6327type: "dynamic",6328elasticity: 2.56329}, {6330name: "Platform",6331type: "static",6332x: 567.7,6333y: 111.65,6334density: 1,6335width: 123.9,6336angle: 256337}, {6338name: "Pivot",6339x: 571.1,6340y: 185.85,6341type: "gear",6342color: "Yellow",6343gearMaxAngle: -45,6344gearPower: -4,6345lowerAngle: -360,6346upperAngle: 360,6347signalID: 16348}, {6349name: "Platform",6350type: "static",6351x: 598,6352y: 200.55,6353density: 1,6354width: 64.8,6355angle: -456356}, {6357name: "Platform",6358type: "static",6359x: 442.05,6360y: 279.05,6361density: 2,6362width: 20,6363angle: 06364}, {6365name: "Platform",6366type: "static",6367x: 544.3,6368y: 248.85,6369density: 1,6370width: 74.3,6371angle: 906372}, {6373name: "Platform",6374type: "static",6375x: 602.9,6376y: 264.2,6377density: 1,6378width: 44.4,6379angle: 1356380}, {6381name: "Platform",6382type: "dynamic",6383x: 544.45,6384y: 399.3,6385density: .1,6386width: 74.5,6387angle: -906388}, {6389name: "Pivot",6390x: 544.45,6391y: 371.1,6392type: "gear",6393color: "Blue",6394gearMaxAngle: 0,6395gearPower: 4,6396lowerAngle: -360,6397upperAngle: 360,6398signalID: 56399}, {6400name: "Platform",6401type: "static",6402x: 621.25,6403y: 274.35,6404density: 1,6405width: 64,6406angle: 906407}, {6408name: "Platform",6409type: "static",6410x: 618.35,6411y: 156.6,6412density: 1,6413width: 54.4,6414angle: -906415}, {6416name: "Platform",6417type: "static",6418x: 382.8,6419y: 378.05,6420density: 1,6421width: 55.3,6422angle: -156423}, {6424name: "Platform",6425type: "static",6426x: 565.55,6427y: 331.1,6428density: 1,6429width: 60,6430angle: 06431}, {6432name: "Platform",6433type: "static",6434x: 633.1,6435y: 344.25,6436density: 1,6437width: 83.9,6438angle: -456439}, {6440name: "Platform",6441type: "static",6442x: 286.75,6443y: 363.65,6444density: 1,6445width: 254.3,6446angle: -156447}, {6448name: "Star",6449x: 344.85,6450y: 30.76451}, {6452name: "Star",6453x: 122.9,6454y: 166.756455}, {6456name: "Platform",6457type: "static",6458x: 425.05,6459y: 140.25,6460density: 1,6461width: 18,6462angle: 06463}, {6464name: "Platform",6465type: "dynamic",6466x: 356.25,6467y: 140.5,6468density: .1,6469width: 155.7,6470angle: 06471}, {6472name: "Pivot",6473x: 425.05,6474y: 140.25,6475type: "bolt",6476color: "Green",6477gearMaxAngle: 25,6478gearPower: 12,6479lowerAngle: 0,6480upperAngle: 360,6481signalID: 16482}, {6483name: "Platform",6484type: "static",6485x: 181.05,6486y: 140.45,6487density: 1,6488width: 188.8,6489angle: 06490}, {6491name: "Switcher",6492x: 104.35,6493y: 220.65,6494angle: 90,6495type: "toogle",6496color: "Yellow",6497signalID: 16498}, {6499name: "Platform",6500type: "static",6501x: 95.6,6502y: 254.35,6503density: 1,6504width: 245.4,6505angle: 906506}, {6507name: "Platform",6508type: "static",6509x: 34.45,6510y: 219.75,6511density: 1,6512width: 56.8,6513angle: 456514}, {6515name: "Platform",6516type: "static",6517x: 18.6,6518y: 106,6519density: 1,6520width: 200.2,6521angle: 906522}, {6523name: "Switcher",6524x: 40.85,6525y: 214.7,6526angle: 45,6527type: "toogle",6528color: "Blue",6529signalID: 56530}, {6531name: "Platform",6532type: "static",6533x: 51.9,6534y: 301.95,6535density: 1,6536width: 144.3,6537angle: 906538}, {6539name: "Platform",6540type: "static",6541x: 705.75,6542y: 12.55,6543density: 1,6544width: 136.9,6545angle: -456546}, {6547name: "Platform",6548type: "dynamic",6549x: 364.4,6550y: 452.65,6551density: .1,6552width: 157.2,6553angle: -906554}, {6555name: "Pivot",6556x: 364.45,6557y: 383.1,6558type: "gear",6559color: "Red",6560gearMaxAngle: -15,6561gearPower: 6,6562lowerAngle: -360,6563upperAngle: 360,6564signalID: 26565}, {6566name: "Platform",6567type: "static",6568x: 276.45,6569y: 158.7,6570density: 1,6571width: 18,6572angle: 06573}, {6574name: "Star",6575x: 511.1,6576y: 424.656577}, {6578name: "Platform",6579type: "static",6580x: 164,6581y: 13.45,6582density: 1,6583width: 308.8,6584angle: 06585}]6586}, ft[20] = {6587items: [{6588name: "Platform",6589type: "static",6590x: 128.95,6591y: 140,6592density: 1,6593width: 120,6594angle: 06595}, {6596name: "Platform",6597type: "static",6598x: 166.05,6599y: 411.8,6600density: 1,6601width: 140.4,6602angle: 906603}, {6604name: "Platform",6605type: "static",6606x: 263.05,6607y: 160,6608density: 1,6609width: 184.1,6610angle: 906611}, {6612name: "Basket",6613x: 221.75,6614y: 177.756615}, {6616name: "Cannon",6617x: 389.45,6618y: 369,6619lowerAngle: -70,6620upperAngle: 706621}, {6622name: "Platform",6623type: "static",6624x: 600,6625y: 169,6626density: 1,6627width: 4.5,6628angle: 06629}, {6630name: "Platform",6631type: "static",6632x: 577.95,6633y: 255.1,6634density: 1,6635width: 100.8,6636angle: 06637}, {6638name: "Switcher",6639x: 610.4,6640y: 391.65,6641angle: 0,6642type: "button",6643color: "Green",6644signalID: 26645}, {6646name: "Platform",6647type: "dynamic",6648x: 600,6649y: 170,6650density: .1,6651width: 172.9,6652angle: -506653}, {6654name: "Pivot",6655x: 600,6656y: 170,6657type: "gear",6658color: "Blue",6659gearMaxAngle: 50,6660gearPower: 5,6661lowerAngle: -360,6662upperAngle: 360,6663signalID: 36664}, {6665name: "Swings",6666x: 640,6667y: 337.15,6668angle: -20,6669lowerAngle: -20,6670upperAngle: 206671}, {6672name: "Platform",6673type: "static",6674x: 620,6675y: 271.25,6676density: 1,6677width: 50,6678angle: 906679}, {6680name: "Platform",6681type: "static",6682x: 660,6683y: 271,6684density: 1,6685width: 50,6686angle: 906687}, {6688name: "Platform",6689type: "static",6690x: 679.4,6691y: 248.25,6692density: 1,6693width: 53.9,6694angle: -146695}, {6696name: "Platform",6697type: "static",6698x: 640,6699y: 399.65,6700density: 1,6701width: 138.2,6702angle: 06703}, {6704name: "Switcher",6705x: 670,6706y: 391.65,6707angle: 0,6708type: "button",6709color: "Yellow",6710signalID: 46711}, {6712name: "Platform",6713type: "static",6714x: 640,6715y: 379.35,6716density: 1,6717width: 58.6,6718angle: 906719}, {6720name: "Platform",6721type: "static",6722x: 700,6723y: 204.2,6724density: 1,6725width: 408.4,6726angle: 906727}, {6728name: "Platform",6729type: "static",6730x: 579.5,6731y: 327.9,6732density: 1,6733width: 161.9,6734angle: 906735}, {6736name: "Star",6737x: 665.8,6738y: 193.156739}, {6740name: "Platform",6741type: "static",6742x: 550.25,6743y: 75.1,6744density: 1,6745width: 127.5,6746angle: 06747}, {6748name: "Platform",6749type: "static",6750x: 12.55,6751y: 269.25,6752density: 1,6753width: 439.1,6754angle: 906755}, {6756name: "Platform",6757type: "static",6758x: 689.25,6759y: 95.1,6760density: 1,6761width: 41.4,6762angle: 06763}, {6764name: "Switcher",6765x: 692.25,6766y: 58.65,6767angle: -90,6768type: "toogle",6769color: "Blue",6770signalID: 36771}, {6772name: "Platform",6773type: "static",6774x: 536.55,6775y: 42,6776density: 1,6777width: 84.2,6778angle: 906779}, {6780name: "Platform",6781type: "dynamic",6782x: 214.8,6783y: 243.15,6784density: 3,6785width: 115.5,6786angle: 06787}, {6788name: "Pivot",6789x: 263.8,6790y: 243.85,6791type: "bolt",6792color: "Red",6793gearMaxAngle: 50,6794gearPower: 5,6795lowerAngle: -360,6796upperAngle: 360,6797signalID: 66798}, {6799name: "Platform",6800type: "dynamic",6801x: 166.5,6802y: 306.5,6803density: 1,6804width: 99.1,6805angle: 906806}, {6807name: "Pivot",6808x: 166.25,6809y: 348.8,6810type: "bolt",6811color: "Red",6812gearMaxAngle: 50,6813gearPower: 5,6814lowerAngle: -360,6815upperAngle: 360,6816signalID: 66817}, {6818name: "Platform",6819type: "static",6820x: 83.4,6821y: 367.8,6822density: 1,6823width: 18,6824angle: 06825}, {6826name: "Platform",6827type: "static",6828x: 328.25,6829y: 75.1,6830density: 1,6831width: 147.5,6832angle: 06833}, {6834name: "Teleport",6835x: 47.15,6836y: 410.85,6837angle: 0,6838color: "Red",6839id: 1,6840mulVel: 16841}, {6842name: "Teleport",6843x: 219.75,6844y: 110.15,6845angle: 180,6846color: "Red",6847id: 1,6848mulVel: 16849}, {6850name: "Spring",6851x: 495,6852y: 77.8,6853angle: 0,6854type: "dynamic",6855elasticity: 26856}, {6857name: "Pivot",6858x: 495,6859y: 75.75,6860type: "gear",6861color: "Yellow",6862gearMaxAngle: -60,6863gearPower: -4,6864lowerAngle: -360,6865upperAngle: 360,6866signalID: 46867}, {6868name: "Platform",6869type: "static",6870x: 399.2,6871y: 9.1,6872density: 1,6873width: 289.5,6874angle: 06875}, {6876name: "Platform",6877type: "dynamic",6878x: 202.75,6879y: 140,6880density: 1,6881width: 54.5,6882angle: 06883}, {6884name: "Pivot",6885x: 183.8,6886y: 140.75,6887type: "gear",6888color: "Red",6889gearMaxAngle: 50,6890gearPower: 5,6891lowerAngle: -360,6892upperAngle: 360,6893signalID: 16894}, {6895name: "Platform",6896type: "static",6897x: 166.05,6898y: 189.05,6899density: 1,6900width: 80,6901angle: 906902}, {6903name: "Switcher",6904x: 43.9,6905y: 212.25,6906angle: 0,6907type: "button",6908color: "Red",6909signalID: 16910}, {6911name: "Platform",6912type: "static",6913x: 88.3,6914y: 220.05,6915density: 1,6916width: 167.4,6917angle: 06918}, {6919name: "Mill",6920x: 121.4,6921y: 51,6922enableMotor: !0,6923motorSpeed: -10,6924signalID: 26925}, {6926name: "Platform",6927type: "static",6928x: 21.5,6929y: 55.6,6930density: 1,6931width: 37,6932angle: 06933}, {6934name: "Star",6935x: 542.8,6936y: 386.356937}, {6938name: "Star",6939x: 43.85,6940y: 248.556941}, {6942name: "Platform",6943type: "static",6944x: 76.05,6945y: 181.05,6946density: 1,6947width: 96,6948angle: 906949}]6950}, ft[21] = {6951items: [{6952name: "Platform",6953type: "static",6954x: 531.85,6955y: 29.05,6956density: 1,6957width: 164.2,6958angle: 06959}, {6960name: "Platform",6961type: "static",6962x: 238.45,6963y: 123.75,6964density: 1,6965width: 18,6966angle: 06967}, {6968name: "Platform",6969type: "static",6970x: 318.45,6971y: 123.75,6972density: 1,6973width: 18,6974angle: 06975}, {6976name: "Cannon",6977x: 274.25,6978y: 371.4,6979lowerAngle: -70,6980upperAngle: 706981}, {6982name: "Platform",6983type: "static",6984x: 472.1,6985y: 161,6986density: 1,6987width: 63.3,6988angle: 06989}, {6990name: "Platform",6991type: "dynamic",6992x: 538.6,6993y: 160.9,6994density: 1,6995width: 106.1,6996angle: 06997}, {6998name: "Basket",6999x: 666.6,7000y: 354.67001}, {7002name: "Rock",7003x: 657.8,7004y: 282.95,7005density: 17006}, {7007name: "Pivot",7008x: 494.45,7009y: 160.95,7010type: "gear",7011color: "Red",7012gearMaxAngle: 90,7013gearPower: 5,7014lowerAngle: -360,7015upperAngle: 360,7016signalID: 17017}, {7018name: "Platform",7019type: "static",7020x: 604.85,7021y: 122.6,7022density: 1,7023width: 623.9,7024angle: 907025}, {7026name: "Platform",7027type: "static",7028x: 708.6,7029y: 236.35,7030density: 1,7031width: 396.6,7032angle: 907033}, {7034name: "Star",7035x: 47.65,7036y: 236.27037}, {7038name: "Platform",7039type: "dynamic",7040x: 584.55,7041y: 322.2,7042density: .1,7043width: 210.6,7044angle: 07045}, {7046name: "Pivot",7047x: 604.05,7048y: 323.4,7049type: "bolt",7050color: "Red",7051gearMaxAngle: 90,7052gearPower: 1,7053lowerAngle: -360,7054upperAngle: 360,7055signalID: 17056}, {7057name: "Platform",7058type: "static",7059x: 468.6,7060y: 278.65,7061density: 1,7062width: 253.7,7063angle: 907064}, {7065name: "Platform",7066type: "static",7067x: 491.25,7068y: 396.55,7069density: 1,7070width: 63.3,7071angle: 07072}, {7073name: "Platform",7074type: "static",7075x: 630.9,7076y: 382.55,7077density: 1,7078width: 102.6,7079angle: 907080}, {7081name: "Switcher",7082x: 111.4,7083y: 159,7084angle: 0,7085type: "button",7086color: "Red",7087signalID: 17088}, {7089name: "Spring",7090x: 449.8,7091y: 25.7,7092angle: -120,7093type: "static",7094elasticity: 2.37095}, {7096name: "Platform",7097type: "static",7098x: 141.55,7099y: 145.1,7100density: 1,7101width: 60.7,7102angle: 907103}, {7104name: "Platform",7105type: "static",7106x: 176.25,7107y: 122.8,7108density: 1,7109width: 87.4,7110angle: 07111}, {7112name: "Teleport",7113x: 655.3,7114y: 50.75,7115angle: -135,7116color: "Red",7117id: 0,7118mulVel: 17119}, {7120name: "Platform",7121type: "static",7122x: 640.25,7123y: 129.6,7124density: 1,7125width: 26.6,7126angle: 457127}, {7128name: "Platform",7129type: "static",7130x: 631.25,7131y: 210.55,7132density: 1,7133width: 60.6,7134angle: 457135}, {7136name: "Platform",7137type: "static",7138x: 684.1,7139y: 167.3,7140density: 1,7141width: 61.9,7142angle: -457143}, {7144name: "Platform",7145type: "static",7146x: 698,7147y: 20.35,7148density: 1,7149width: 76.8,7150angle: 457151}, {7152name: "Teleport",7153x: 277.25,7154y: 46.85,7155angle: 180,7156color: "Red",7157id: 0,7158mulVel: 17159}, {7160name: "Platform",7161type: "dynamic",7162x: 303.25,7163y: 123,7164density: .1,7165width: 47.4,7166angle: 07167}, {7168name: "Pivot",7169x: 317.45,7170y: 123.75,7171type: "bolt",7172color: "Red",7173gearMaxAngle: 90,7174gearPower: 5,7175lowerAngle: -360,7176upperAngle: 360,7177signalID: 17178}, {7179name: "Platform",7180type: "dynamic",7181x: 252.25,7182y: 123,7183density: .1,7184width: 47.4,7185angle: 07186}, {7187name: "Pivot",7188x: 237.45,7189y: 123.75,7190type: "bolt",7191color: "Red",7192gearMaxAngle: 90,7193gearPower: 5,7194lowerAngle: -360,7195upperAngle: 360,7196signalID: 17197}, {7198name: "Platform",7199type: "static",7200x: 249.25,7201y: 141,7202density: 1,7203width: 10,7204angle: 07205}, {7206name: "Platform",7207type: "static",7208x: 304.25,7209y: 141,7210density: 1,7211width: 10,7212angle: 07213}, {7214name: "Platform",7215type: "static",7216x: 237.45,7217y: -52.3,7218density: 1,7219width: 253.7,7220angle: 907221}, {7222name: "Platform",7223type: "static",7224x: 319.25,7225y: -52.3,7226density: 1,7227width: 253.7,7228angle: 907229}, {7230name: "Platform",7231type: "static",7232x: 81.55,7233y: 273.5,7234density: 1,7235width: 317.8,7236angle: 907237}, {7238name: "Platform",7239type: "static",7240x: 109.75,7241y: 166.8,7242density: 1,7243width: 74.4,7244angle: 07245}, {7246name: "Switcher",7247x: 176.25,7248y: 129.8,7249angle: 180,7250type: "toogle",7251color: "Blue",7252signalID: 27253}, {7254name: "Platform",7255type: "dynamic",7256x: 95.25,7257y: 123,7258density: .1,7259width: 47.4,7260angle: 07261}, {7262name: "Pivot",7263x: 80.45,7264y: 123.75,7265type: "gear",7266color: "Blue",7267gearMaxAngle: -90,7268gearPower: -5,7269lowerAngle: -360,7270upperAngle: 360,7271signalID: 27272}, {7273name: "Platform",7274type: "static",7275x: 11.55,7276y: 216.15,7277density: 1,7278width: 432.4,7279angle: 907280}, {7281name: "Platform",7282type: "static",7283x: 121.55,7284y: 9,7285density: 1,7286width: 242.3,7287angle: 07288}, {7289name: "Star",7290x: 499.6,7291y: 57.257292}, {7293name: "Star",7294x: 114.6,7295y: 310.27296}]7297}, ft[22] = {7298items: [{7299name: "Platform",7300type: "static",7301x: 651.75,7302y: 343,7303density: 1,7304width: 36.8,7305angle: 307306}, {7307name: "Platform",7308type: "static",7309x: 412.65,7310y: 299.05,7311density: 1,7312width: 36.8,7313angle: -307314}, {7315name: "Platform",7316type: "static",7317x: 412.65,7318y: 389.05,7319density: 1,7320width: 36.8,7321angle: -307322}, {7323name: "Platform",7324type: "static",7325x: 371.75,7326y: 343,7327density: 1,7328width: 36.8,7329angle: 307330}, {7331name: "Platform",7332type: "static",7333x: 692.65,7334y: 299.05,7335density: 1,7336width: 36.8,7337angle: -307338}, {7339name: "Platform",7340type: "static",7341x: 692.65,7342y: 389.05,7343density: 1,7344width: 36.8,7345angle: -307346}, {7347name: "Basket",7348x: 61.05,7349y: 424.27350}, {7351name: "Cannon",7352x: 548.6,7353y: 361.85,7354lowerAngle: -70,7355upperAngle: 707356}, {7357name: "Platform",7358type: "static",7359x: 248.05,7360y: 260,7361density: 1,7362width: 18,7363angle: 07364}, {7365name: "Switcher",7366x: 243.55,7367y: 446.05,7368angle: 0,7369type: "button",7370color: "Green",7371signalID: 37372}, {7373name: "Platform",7374type: "static",7375x: 138.05,7376y: 205.7,7377density: 1,7378width: 73.6,7379angle: -907380}, {7381name: "Platform",7382type: "static",7383x: 72.05,7384y: 251.35,7385density: 1,7386width: 165.3,7387angle: -907388}, {7389name: "Platform",7390type: "static",7391x: 121.6,7392y: 178,7393density: 1,7394width: 109.3,7395angle: 07396}, {7397name: "Platform",7398type: "static",7399x: 315.7,7400y: 178,7401density: 1,7402width: 234.9,7403angle: 07404}, {7405name: "Platform",7406type: "dynamic",7407x: 248.05,7408y: 260,7409density: .05,7410width: 193.9,7411angle: 107412}, {7413name: "Switcher",7414x: 385.55,7415y: 457.9,7416angle: 30,7417type: "toogle",7418color: "Red",7419signalID: 17420}, {7421name: "Platform",7422type: "static",7423x: 358.05,7424y: 367.75,7425density: 1,7426width: 187.6,7427angle: -907428}, {7429name: "Platform",7430type: "static",7431x: 138.05,7432y: 304,7433density: 1,7434width: 60,7435angle: -907436}, {7437name: "Platform",7438type: "static",7439x: 425.05,7440y: 298.55,7441density: 1,7442width: 259,7443angle: -907444}, {7445name: "Platform",7446type: "static",7447x: 207.15,7448y: 157,7449density: 1,7450width: 60,7451angle: -907452}, {7453name: "Platform",7454type: "static",7455x: 167.1,7456y: 157,7457density: 1,7458width: 60,7459angle: -907460}, {7461name: "Platform",7462type: "static",7463x: 229.1,7464y: 119.9,7465density: 1,7466width: 60,7467angle: -307468}, {7469name: "Platform",7470type: "static",7471x: 151.75,7472y: 114.95,7473density: 1,7474width: 60,7475angle: 457476}, {7477name: "Platform",7478type: "dynamic",7479x: 138.05,7480y: 248.1,7481density: 1,7482width: 41.7,7483angle: -907484}, {7485name: "Pivot",7486x: 138.05,7487y: 235.5,7488type: "gear",7489color: "Purple",7490gearMaxAngle: 0,7491gearPower: 6,7492lowerAngle: 180,7493upperAngle: 0,7494signalID: 47495}, {7496name: "Platform",7497type: "static",7498x: 209.65,7499y: 420.8,7500density: 1,7501width: 82.4,7502angle: -907503}, {7504name: "Box",7505x: 209.2,7506y: 357.1,7507angle: 0,7508density: .57509}, {7510name: "Platform",7511type: "static",7512x: 283,7513y: 453,7514density: 1,7515width: 165.8,7516angle: 07517}, {7518name: "Platform",7519type: "static",7520x: 358.05,7521y: 205.7,7522density: 1,7523width: 73.6,7524angle: -907525}, {7526name: "Platform",7527type: "dynamic",7528x: 358.05,7529y: 247.9,7530density: 1,7531width: 41.7,7532angle: 907533}, {7534name: "Pivot",7535x: 358.05,7536y: 235.5,7537type: "gear",7538color: "Green",7539gearMaxAngle: 1,7540gearPower: -6,7541lowerAngle: -720,7542upperAngle: 720,7543signalID: 37544}, {7545name: "Star",7546x: 455.9,7547y: 413.17548}, {7549name: "Star",7550x: 166.9,7551y: 29.67552}, {7553name: "Teleport",7554x: 106.05,7555y: 291.8,7556angle: 0,7557color: "Red",7558id: 1,7559mulVel: 17560}, {7561name: "Pivot",7562x: 248.05,7563y: 260,7564type: "gear",7565color: "Yellow",7566gearMaxAngle: -10,7567gearPower: -10,7568lowerAngle: 180,7569upperAngle: 0,7570signalID: 27571}, {7572name: "Platform",7573type: "static",7574x: 278.65,7575y: 423.5,7576density: 1,7577width: 77,7578angle: -907579}, {7580name: "Teleport",7581x: 304.85,7582y: 357.75,7583angle: -90,7584color: "Red",7585id: 1,7586mulVel: 57587}, {7588name: "Platform",7589type: "static",7590x: 133.2,7591y: 5,7592density: 1,7593width: 194,7594angle: -907595}, {7596name: "Platform",7597type: "static",7598x: 378.4,7599y: 463.4,7600density: 1,7601width: 46.2,7602angle: 307603}, {7604name: "Platform",7605type: "static",7606x: 47.4,7607y: 325.75,7608density: 1,7609width: 67.3,7610angle: 07611}, {7612name: "Platform",7613type: "static",7614x: 21.75,7615y: 398.65,7616density: 1,7617width: 165.3,7618angle: -907619}, {7620name: "Platform",7621type: "static",7622x: 102.05,7623y: 455,7624density: 1,7625width: 60,7626angle: -907627}, {7628name: "Platform",7629type: "dynamic",7630x: 102.1,7631y: 395.4,7632density: .1,7633width: 97,7634angle: -907635}, {7636name: "Pivot",7637x: 101.8,7638y: 435.25,7639type: "gear",7640color: "Red",7641gearMaxAngle: 0,7642gearPower: 3,7643lowerAngle: -720,7644upperAngle: 720,7645signalID: 17646}, {7647name: "Platform",7648type: "static",7649x: 704.05,7650y: 167.05,7651density: 1,7652width: 507,7653angle: -907654}, {7655name: "Platform",7656type: "static",7657x: 641.05,7658y: 308.4,7659density: 1,7660width: 293.9,7661angle: -907662}, {7663name: "Switcher",7664x: 668.55,7665y: 449.9,7666angle: 30,7667type: "toogle",7668color: "Yellow",7669signalID: 27670}, {7671name: "Platform",7672type: "static",7673x: 661.4,7674y: 455.4,7675density: 1,7676width: 46.2,7677angle: 307678}, {7679name: "Platform",7680type: "static",7681x: 675.5,7682y: 72,7683density: 1,7684width: 75.3,7685angle: 07686}, {7687name: "Switcher",7688x: 675,7689y: 64.25,7690angle: 0,7691type: "button",7692color: "Purple",7693signalID: 47694}, {7695name: "Platform",7696type: "static",7697x: 646.05,7698y: 62.95,7699density: 1,7700width: 37,7701angle: -907702}, {7703name: "Star",7704x: 617.9,7705y: 413.17706}]7707}, ft[23] = {7708items: [{7709name: "Platform",7710type: "static",7711x: 126.3,7712y: 302,7713density: 1,7714width: 32,7715angle: -907716}, {7717name: "Platform",7718type: "static",7719x: 643.75,7720y: 437.2,7721density: 1,7722width: 48.7,7723angle: -307724}, {7725name: "Platform",7726type: "static",7727x: 19.35,7728y: 239.75,7729density: 1,7730width: 18.5,7731angle: -907732}, {7733name: "Platform",7734type: "static",7735x: 620,7736y: 70,7737density: 1,7738width: 200,7739angle: 07740}, {7741name: "Basket",7742x: 630,7743y: 1307744}, {7745name: "Cannon",7746x: 360,7747y: 370,7748lowerAngle: -70,7749upperAngle: 707750}, {7751name: "Platform",7752type: "static",7753x: 100,7754y: 190,7755density: 1,7756width: 200,7757angle: 07758}, {7759name: "Platform",7760type: "static",7761x: 620,7762y: 190,7763density: 1,7764width: 200,7765angle: 07766}, {7767name: "Platform",7768type: "dynamic",7769x: 190.95,7770y: 241.45,7771density: .1,7772width: 110.6,7773angle: 907774}, {7775name: "Platform",7776type: "static",7777x: 100,7778y: 450,7779density: 1,7780width: 200,7781angle: 07782}, {7783name: "Pivot",7784x: 191,7785y: 190,7786type: "gear",7787color: "Red",7788gearMaxAngle: 0,7789gearPower: -4,7790lowerAngle: -360,7791upperAngle: 360,7792signalID: 17793}, {7794name: "Platform",7795type: "static",7796x: 620,7797y: 310,7798density: 1,7799width: 200,7800angle: 07801}, {7802name: "Platform",7803type: "static",7804x: 190.95,7805y: 121.1,7806density: 1,7807width: 119.8,7808angle: 907809}, {7810name: "Platform",7811type: "static",7812x: 620,7813y: 450,7814density: 1,7815width: 200,7816angle: 07817}, {7818name: "Platform",7819type: "dynamic",7820x: 529,7821y: 242,7822density: .1,7823width: 109.3,7824angle: 907825}, {7826name: "Pivot",7827x: 529,7828y: 190,7829type: "gear",7830color: "Blue",7831gearMaxAngle: 35,7832gearPower: -4,7833lowerAngle: -360,7834upperAngle: 360,7835signalID: 37836}, {7837name: "Platform",7838type: "dynamic",7839x: 528.95,7840y: 118.45,7841density: .1,7842width: 115.6,7843angle: 907844}, {7845name: "Pivot",7846x: 529,7847y: 69.5,7848type: "gear",7849color: "Yellow",7850gearMaxAngle: 180,7851gearPower: 5,7852lowerAngle: -360,7853upperAngle: 360,7854signalID: 47855}, {7856name: "Platform",7857type: "dynamic",7858x: 529,7859y: 393.2,7860density: .1,7861width: 132.1,7862angle: 907863}, {7864name: "Pivot",7865x: 530,7866y: 449.95,7867type: "gear",7868color: "Green",7869gearMaxAngle: 0,7870gearPower: -5,7871lowerAngle: -360,7872upperAngle: 360,7873signalID: 27874}, {7875name: "Platform",7876type: "static",7877x: 590,7878y: 169,7879density: 1,7880width: 60,7881angle: -907882}, {7883name: "Platform",7884type: "static",7885x: 670,7886y: 146,7887density: 1,7888width: 106,7889angle: -907890}, {7891name: "Platform",7892type: "static",7893x: 100,7894y: 70,7895density: 1,7896width: 200,7897angle: 07898}, {7899name: "Star",7900x: 100,7901y: 407902}, {7903name: "Star",7904x: 620,7905y: 407906}, {7907name: "Star",7908x: 36,7909y: 2147910}, {7911name: "Switcher",7912x: 93.35,7913y: 442.25,7914angle: 0,7915type: "button",7916color: "Red",7917signalID: 17918}, {7919name: "Platform",7920type: "static",7921x: 62.35,7922y: 410.75,7923density: 1,7924width: 96.5,7925angle: -907926}, {7927name: "Platform",7928type: "static",7929x: 123.3,7930y: 439,7931density: 1,7932width: 40,7933angle: -907934}, {7935name: "Rock",7936x: 88.4,7937y: 155.25,7938density: 27939}, {7940name: "Platform",7941type: "dynamic",7942x: 126.3,7943y: 271.3,7944density: 1,7945width: 44.7,7946angle: -907947}, {7948name: "Pivot",7949x: 126.3,7950y: 292,7951type: "bolt",7952color: "Green",7953gearMaxAngle: 180,7954gearPower: 5,7955lowerAngle: -360,7956upperAngle: 360,7957signalID: 27958}, {7959name: "Platform",7960type: "dynamic",7961x: 86.5,7962y: 239.5,7963density: 1,7964width: 153.1,7965angle: 07966}, {7967name: "Platform",7968type: "static",7969x: 154,7970y: 198.75,7971density: 1,7972width: 36.5,7973angle: -907974}, {7975name: "Switcher",7976x: 103.85,7977y: 197.75,7978angle: 180,7979type: "toogle",7980color: "Green",7981signalID: 27982}, {7983name: "Pivot",7984x: 19.35,7985y: 239.75,7986type: "bolt",7987color: "Green",7988gearMaxAngle: 180,7989gearPower: 5,7990lowerAngle: -360,7991upperAngle: 360,7992signalID: 27993}, {7994name: "Teleport",7995x: 618.6,7996y: 391.7,7997angle: -30,7998color: "Red",7999id: 1,8000mulVel: 18001}, {8002name: "Teleport",8003x: 142.05,8004y: 113.2,8005angle: -120,8006color: "Red",8007id: 1,8008mulVel: 1.58009}, {8010name: "Platform",8011type: "static",8012x: 10,8013y: 160.75,8014density: 1,8015width: 40.5,8016angle: -908017}, {8018name: "Switcher",8019x: 17.75,8020y: 161,8021angle: 90,8022type: "button",8023color: "Blue",8024signalID: 38025}, {8026name: "Spring",8027x: 711.55,8028y: 300.1,8029angle: -45,8030type: "static",8031elasticity: 2.58032}, {8033name: "Switcher",8034x: 626.35,8035y: 213,8036angle: 120,8037type: "toogle",8038color: "Yellow",8039signalID: 48040}, {8041name: "Platform",8042type: "static",8043x: 619.9,8044y: 209.2,8045density: 1,8046width: 43.5,8047angle: 1208048}, {8049name: "Platform",8050type: "static",8051x: 100,8052y: 310,8053density: 1,8054width: 200,8055angle: 08056}]8057}, ft[24] = {8058items: [{8059name: "Platform",8060type: "static",8061x: 704.05,8062y: 198.05,8063density: 1,8064width: 26.3,8065angle: -308066}, {8067name: "Platform",8068type: "static",8069x: 705.7,8070y: 358.6,8071density: 1,8072width: 190.9,8073angle: 908074}, {8075name: "Platform",8076type: "static",8077x: 77.8,8078y: 381.4,8079density: 1,8080width: 18,8081angle: 08082}, {8083name: "Platform",8084type: "static",8085x: 574.15,8086y: 372.15,8087density: 1,8088width: 18,8089angle: 08090}, {8091name: "Platform",8092type: "static",8093x: 457.65,8094y: 332.55,8095density: 1,8096width: 18,8097angle: 08098}, {8099name: "Platform",8100type: "static",8101x: 300.95,8102y: 282.2,8103density: 1,8104width: 18,8105angle: 08106}, {8107name: "Platform",8108type: "static",8109x: 96.05,8110y: 208.2,8111density: 1,8112width: 170.4,8113angle: 08114}, {8115name: "Basket",8116x: 668.75,8117y: 380.658118}, {8119name: "Cannon",8120x: 391.95,8121y: 199.35,8122lowerAngle: -70,8123upperAngle: 708124}, {8125name: "Platform",8126type: "static",8127x: 363.45,8128y: 444.1,8129density: 1,8130width: 701.7,8131angle: 08132}, {8133name: "Platform",8134type: "dynamic",8135x: 77.8,8136y: 378.4,8137density: 1,8138width: 71.3,8139angle: -158140}, {8141name: "Rock",8142x: 76.5,8143y: 343.9,8144density: .058145}, {8146name: "Platform",8147type: "static",8148x: 20.05,8149y: 325.25,8150density: 1,8151width: 250.8,8152angle: 908153}, {8154name: "Platform",8155type: "static",8156x: 141.75,8157y: 248,8158density: 1,8159width: 406.9,8160angle: 908161}, {8162name: "Switcher",8163x: 133.75,8164y: 347.85,8165angle: -90,8166type: "button",8167color: "Red",8168signalID: 18169}, {8170name: "Switcher",8171x: 28.05,8172y: 348.4,8173angle: 90,8174type: "button",8175color: "Blue",8176signalID: 28177}, {8178name: "Switcher",8179x: 542.95,8180y: 101.75,8181angle: -135,8182type: "toogle",8183color: "Green",8184signalID: 38185}, {8186name: "Platform",8187type: "static",8188x: 230.85,8189y: 256,8190density: 1,8191width: 106.1,8192angle: 178193}, {8194name: "Platform",8195type: "dynamic",8196x: 301.8,8197y: 346.6,8198density: 1,8199width: 155.2,8200angle: 908201}, {8202name: "Pivot",8203x: 300.95,8204y: 282.2,8205type: "gear",8206color: "Red",8207gearMaxAngle: 0,8208gearPower: -10,8209lowerAngle: -360,8210upperAngle: 360,8211signalID: 18212}, {8213name: "Platform",8214type: "static",8215x: 524.7,8216y: 72.35,8217density: 1,8218width: 130.1,8219angle: 458220}, {8221name: "Platform",8222type: "dynamic",8223x: 574.05,8224y: 396.05,8225density: 1,8226width: 70.2,8227angle: 908228}, {8229name: "Platform",8230type: "dynamic",8231x: 457.5,8232y: 374.65,8233density: 1,8234width: 107.2,8235angle: 908236}, {8237name: "Pivot",8238x: 457.65,8239y: 332.2,8240type: "gear",8241color: "Yellow",8242gearMaxAngle: 0,8243gearPower: -10,8244lowerAngle: -360,8245upperAngle: 360,8246signalID: 48247}, {8248name: "Pivot",8249x: 574.15,8250y: 372.15,8251type: "gear",8252color: "Blue",8253gearMaxAngle: 0,8254gearPower: -6,8255lowerAngle: -360,8256upperAngle: 360,8257signalID: 28258}, {8259name: "Spring",8260x: 703.65,8261y: 198.6,8262angle: -30,8263type: "static",8264elasticity: 2.68265}, {8266name: "Platform",8267type: "static",8268x: 672.1,8269y: 4.8,8270density: 1,8271width: 79.4,8272angle: -458273}, {8274name: "Pivot",8275x: 77.8,8276y: 378.4,8277type: "gear",8278color: "Green",8279gearMaxAngle: 15,8280gearPower: 12,8281lowerAngle: -360,8282upperAngle: 360,8283signalID: 38284}, {8285name: "Platform",8286type: "static",8287x: 350.05,8288y: 208.2,8289density: 1,8290width: 248.1,8291angle: 08292}, {8293name: "Platform",8294type: "static",8295x: 173.75,8296y: 224.05,8297density: 1,8298width: 48.9,8299angle: 908300}, {8301name: "Star",8302x: 44.25,8303y: 179.258304}, {8305name: "Switcher",8306x: 111.8,8307y: 200.5,8308angle: 0,8309type: "button",8310color: "Yellow",8311signalID: 48312}, {8313name: "Platform",8314type: "static",8315x: 39.4,8316y: 64.05,8317density: 1,8318width: 52.8,8319angle: 08320}, {8321name: "Swings",8322x: 77.45,8323y: 146.1,8324angle: 20,8325lowerAngle: -20,8326upperAngle: 208327}, {8328name: "Platform",8329type: "static",8330x: 57.45,8331y: 5.6,8332density: 1,8333width: 199.1,8334angle: 908335}, {8336name: "Platform",8337type: "static",8338x: 97.45,8339y: 79.95,8340density: 1,8341width: 50,8342angle: 908343}, {8344name: "Platform",8345type: "static",8346x: 116.85,8347y: 57.2,8348density: 1,8349width: 53.9,8350angle: -148351}, {8352name: "Platform",8353type: "static",8354x: 77.45,8355y: 188.3,8356density: 1,8357width: 58.6,8358angle: 908359}, {8360name: "Platform",8361type: "static",8362x: 19.95,8363y: 108.4,8364density: 1,8365width: 105,8366angle: 908367}, {8368name: "Platform",8369type: "static",8370x: 549.75,8371y: -31.5,8372density: 1,8373width: 201,8374angle: -458375}, {8376name: "Platform",8377type: "static",8378x: 580.6,8379y: 96.3,8380density: 1,8381width: 63.8,8382angle: -458383}, {8384name: "Star",8385x: 561.2,8386y: 70.458387}, {8388name: "Star",8389x: 375.2,8390y: 412.38391}, {8392name: "Platform",8393type: "static",8394x: 591.05,8395y: 238.2,8396density: 1,8397width: 250.5,8398angle: 158399}]8400}, ft[25] = {8401items: [{8402name: "Platform",8403type: "static",8404x: 443,8405y: 468.35,8406density: 1,8407width: 162.4,8408angle: 908409}, {8410name: "Platform",8411type: "static",8412x: 443,8413y: 305.85,8414density: 1,8415width: 93.4,8416angle: 908417}, {8418name: "Switcher",8419x: 219.7,8420y: 464.25,8421angle: 30,8422type: "toogle",8423color: "Red",8424signalID: 18425}, {8426name: "Platform",8427type: "static",8428x: 175.95,8429y: 459.1,8430density: 1,8431width: 92.1,8432angle: 908433}, {8434name: "Cannon",8435x: 176.6,8436y: 250.1,8437lowerAngle: -52,8438upperAngle: 708439}, {8440name: "Basket",8441x: 558.35,8442y: 433.458443}, {8444name: "Platform",8445type: "static",8446x: 170.4,8447y: 264.95,8448density: 1,8449width: 428.9,8450angle: 08451}, {8452name: "Platform",8453type: "static",8454x: 375.95,8455y: 264.95,8456density: 1,8457width: 670,8458angle: 908459}, {8460name: "Teleport",8461x: 176.35,8462y: 326.7,8463angle: 180,8464color: "Red",8465id: 1,8466mulVel: 18467}, {8468name: "Teleport",8469x: 317.1,8470y: 79.3,8471angle: -150,8472color: "Red",8473id: 1,8474mulVel: 18475}, {8476name: "Teleport",8477x: 70.55,8478y: 78.1,8479angle: 150,8480color: "Blue",8481id: 2,8482mulVel: 18483}, {8484name: "Platform",8485type: "static",8486x: 185.95,8487y: 47.95,8488density: 1,8489width: 86,8490angle: 908491}, {8492name: "Platform",8493type: "static",8494x: 176.4,8495y: 13.95,8496density: 1,8497width: 323.2,8498angle: 08499}, {8500name: "Teleport",8501x: 553.9,8502y: 49.65,8503angle: 180,8504color: "Blue",8505id: 2,8506mulVel: 18507}, {8508name: "Platform",8509type: "dynamic",8510x: 481.05,8511y: 286.5,8512density: .1,8513width: 104.2,8514angle: 308515}, {8516name: "Platform",8517type: "static",8518x: 670.5,8519y: 264.95,8520density: 1,8521width: 231.1,8522angle: 08523}, {8524name: "Pivot",8525x: 443.3,8526y: 266.3,8527type: "gear",8528color: "Red",8529gearMaxAngle: 0,8530gearPower: -4,8531lowerAngle: -360,8532upperAngle: 360,8533signalID: 18534}, {8535name: "Platform",8536type: "dynamic",8537x: 187.45,8538y: 397.6,8539density: .1,8540width: 62,8541angle: 1208542}, {8543name: "Pivot",8544x: 176.7,8545y: 417.7,8546type: "gear",8547color: "Red",8548gearMaxAngle: 60,8549gearPower: -4,8550lowerAngle: -360,8551upperAngle: 360,8552signalID: 18553}, {8554name: "Platform",8555type: "static",8556x: 556.95,8557y: 174.9,8558density: 1,8559width: 88.6,8560angle: 908561}, {8562name: "Platform",8563type: "dynamic",8564x: 544.7,8565y: 112.45,8566density: .1,8567width: 62,8568angle: 608569}, {8570name: "Pivot",8571x: 557.2,8572y: 133.75,8573type: "gear",8574color: "Blue",8575gearMaxAngle: 120,8576gearPower: 4,8577lowerAngle: -360,8578upperAngle: 360,8579signalID: 28580}, {8581name: "Switcher",8582x: 131.95,8583y: 464.3,8584angle: -30,8585type: "toogle",8586color: "Blue",8587signalID: 28588}, {8589name: "Platform",8590type: "static",8591x: 137.2,8592y: 469.9,8593density: 1,8594width: 84.6,8595angle: -308596}, {8597name: "Platform",8598type: "static",8599x: 214.2,8600y: 469.9,8601density: 1,8602width: 84.6,8603angle: 308604}, {8605name: "Platform",8606type: "static",8607x: 600.35,8608y: 320.2,8609density: 1,8610width: 202.9,8611angle: 1508612}, {8613name: "Switcher",8614x: 622.7,8615y: 234.5,8616angle: 30,8617type: "toogle",8618color: "Red",8619signalID: 18620}, {8621name: "Platform",8622type: "static",8623x: 610.55,8624y: 236.15,8625density: 1,8626width: 108.6,8627angle: 308628}, {8629name: "Platform",8630type: "dynamic",8631x: 481.1,8632y: 416.55,8633density: .1,8634width: 104.2,8635angle: 308636}, {8637name: "Pivot",8638x: 443.3,8639y: 396.3,8640type: "gear",8641color: "Blue",8642gearMaxAngle: 0,8643gearPower: -4,8644lowerAngle: -360,8645upperAngle: 360,8646signalID: 28647}, {8648name: "Star",8649x: 409.3,8650y: 413.958651}, {8652name: "Star",8653x: 705.05,8654y: 240.758655}, {8656name: "Star",8657x: 71.1,8658y: 480.78659}]8660}, ft[26] = {8661items: [{8662name: "Platform",8663type: "static",8664x: 586.75,8665y: 43.4,8666density: 1,8667width: 229,8668angle: 08669}, {8670name: "Platform",8671type: "static",8672x: 636.95,8673y: 385.65,8674density: 1,8675width: 34.1,8676angle: 08677}, {8678name: "Cannon",8679x: 360,8680y: 420,8681lowerAngle: -70,8682upperAngle: 708683}, {8684name: "Basket",8685x: 511.75,8686y: 245.58687}, {8688name: "Switcher",8689x: 325.75,8690y: 39.55,8691angle: 90,8692type: "button",8693color: "Red",8694signalID: 18695}, {8696name: "Platform",8697type: "static",8698x: 318.05,8699y: 102.7,8700density: 1,8701width: 172.4,8702angle: 908703}, {8704name: "Platform",8705type: "static",8706x: 335,8707y: 86.15,8708density: 1,8709width: 49.9,8710angle: 08711}, {8712name: "Platform",8713type: "dynamic",8714x: 376.6,8715y: 86.15,8716density: .2,8717width: 63.9,8718angle: 08719}, {8720name: "Pivot",8721x: 352.7,8722y: 86.1,8723type: "bolt",8724color: "Red",8725gearMaxAngle: 0,8726gearPower: 1,8727lowerAngle: -360,8728upperAngle: 0,8729signalID: 08730}, {8731name: "Star",8732x: 186.6,8733y: 442.18734}, {8735name: "Platform",8736type: "static",8737x: 557.85,8738y: 180.4,8739density: 1,8740width: 304,8741angle: 08742}, {8743name: "Spring",8744x: 636.95,8745y: 385.65,8746angle: 10,8747type: "dynamic",8748elasticity: 2.58749}, {8750name: "Platform",8751type: "static",8752x: 499.6,8753y: 211.1,8754density: 1,8755width: 112.2,8756angle: 1458757}, {8758name: "Platform",8759type: "static",8760x: 701.8,8761y: 197.4,8762density: 1,8763width: 51.9,8764angle: 908765}, {8766name: "Platform",8767type: "dynamic",8768x: 598.6,8769y: 224.35,8770density: .1,8771width: 104.8,8772angle: 1208773}, {8774name: "Pivot",8775x: 621,8776y: 181.15,8777type: "gear",8778color: "Red",8779gearMaxAngle: 50,8780gearPower: -4,8781lowerAngle: -360,8782upperAngle: 0,8783signalID: 18784}, {8785name: "Pivot",8786x: 636.95,8787y: 385.65,8788type: "gear",8789color: "Blue",8790gearMaxAngle: -15,8791gearPower: -2,8792lowerAngle: -360,8793upperAngle: 0,8794signalID: 28795}, {8796name: "Platform",8797type: "static",8798x: 685.4,8799y: 199.5,8800density: 1,8801width: 53,8802angle: 458803}, {8804name: "Switcher",8805x: 31.75,8806y: 93.1,8807angle: 90,8808type: "toogle",8809color: "Blue",8810signalID: 28811}, {8812name: "Platform",8813type: "static",8814x: 26,8815y: 368.7,8816density: 1,8817width: 120.3,8818angle: 908819}, {8820name: "Platform",8821type: "static",8822x: 68.5,8823y: 304.8,8824density: 1,8825width: 43.8,8826angle: -908827}, {8828name: "Platform",8829type: "static",8830x: 108.5,8831y: 304.8,8832density: 1,8833width: 43.8,8834angle: -908835}, {8836name: "Platform",8837type: "static",8838x: 150,8839y: 368.35,8840density: 1,8841width: 119.6,8842angle: 908843}, {8844name: "Swings",8845x: 88.5,8846y: 366.05,8847angle: -20,8848lowerAngle: -20,8849upperAngle: 208850}, {8851name: "Platform",8852type: "static",8853x: 129.75,8854y: 317.75,8855density: 1,8856width: 60.5,8857angle: 08858}, {8859name: "Platform",8860type: "static",8861x: 47.05,8862y: 317.75,8863density: 1,8864width: 60,8865angle: 08866}, {8867name: "Platform",8868type: "static",8869x: 86.5,8870y: 411.6,8871density: 1,8872width: 37.2,8873angle: 908874}, {8875name: "Teleport",8876x: 55.5,8877y: 445.5,8878angle: 0,8879color: "Blue",8880id: 2,8881mulVel: 18882}, {8883name: "Platform",8884type: "static",8885x: 46.35,8886y: 246.05,8887density: 1,8888width: 93.4,8889angle: -1208890}, {8891name: "Platform",8892type: "static",8893x: 121.35,8894y: 274.15,8895density: 1,8896width: 43.8,8897angle: -458898}, {8899name: "Platform",8900type: "static",8901x: 24.2,8902y: 114.05,8903density: 1,8904width: 193.7,8905angle: -908906}, {8907name: "Platform",8908type: "static",8909x: 458,8910y: 279.4,8911density: 1,8912width: 88.9,8913angle: 908914}, {8915name: "Platform",8916type: "static",8917x: 171,8918y: 25.4,8919density: 1,8920width: 312.2,8921angle: 08922}, {8923name: "Platform",8924type: "static",8925x: 171.35,8926y: 198.8,8927density: 1,8928width: 312.9,8929angle: 08930}, {8931name: "Teleport",8932x: 77.2,8933y: 165.4,8934angle: 90,8935color: "Blue",8936id: 2,8937mulVel: 108938}, {8939name: "Platform",8940type: "static",8941x: 171.9,8942y: 188.8,8943density: 1,8944width: 97.5,8945angle: -88946}, {8947name: "Platform",8948type: "static",8949x: 244,8950y: 168.95,8951density: 1,8952width: 73.9,8953angle: -238954}, {8955name: "Platform",8956type: "static",8957x: 285.4,8958y: 140.35,8959density: 1,8960width: 52.2,8961angle: -538962}, {8963name: "Platform",8964type: "static",8965x: 296.9,8966y: 100.15,8967density: 1,8968width: 52.2,8969angle: -988970}, {8971name: "Platform",8972type: "static",8973x: 274.2,8974y: 65.55,8975density: 1,8976width: 52.2,8977angle: -1438978}, {8979name: "Platform",8980type: "static",8981x: 134.45,8982y: 123.1,8983density: 1,8984width: 234.8,8985angle: 08986}, {8987name: "Platform",8988type: "static",8989x: 234.5,8990y: 54.15,8991density: 1,8992width: 52.2,8993angle: 1728994}, {8995name: "Platform",8996type: "static",8997x: 189.05,8998y: 67.85,8999density: 1,9000width: 52.2,9001angle: 1579002}, {9003name: "Switcher",9004x: 679.3,9005y: 204.8,9006angle: -135,9007type: "toogle",9008color: "Green",9009signalID: 39010}, {9011name: "Platform",9012type: "dynamic",9013x: 436.85,9014y: 43.4,9015density: .1,9016width: 110.9,9017angle: 09018}, {9019name: "Platform",9020type: "static",9021x: 543,9022y: -7.35,9023density: 1,9024width: 119.6,9025angle: 909026}, {9027name: "Platform",9028type: "static",9029x: 683.55,9030y: -7.35,9031density: 1,9032width: 119.6,9033angle: 909034}, {9035name: "Pivot",9036x: 481.7,9037y: 43.6,9038type: "gear",9039color: "Green",9040gearMaxAngle: 90,9041gearPower: 4,9042lowerAngle: -360,9043upperAngle: 0,9044signalID: 39045}, {9046name: "Platform",9047type: "static",9048x: 495.95,9049y: 315.9,9050density: 1,9051width: 93.9,9052angle: 09053}, {9054name: "Star",9055x: 119.6,9056y: 4519057}, {9058name: "Star",9059x: 686.9,9060y: 309.859061}, {9062name: "Platform",9063type: "static",9064x: 338.4,9065y: 180.4,9066density: 1,9067width: 61.1,9068angle: 09069}]9070}, ft[27] = {9071items: [{9072name: "Platform",9073type: "static",9074x: 90,9075y: 52.6,9076density: 1,9077width: 122.2,9078angle: 09079}, {9080name: "Platform",9081type: "static",9082x: 497.3,9083y: 95.9,9084density: 1,9085width: 172.8,9086angle: 09087}, {9088name: "Platform",9089type: "static",9090x: 480.4,9091y: 135.6,9092density: 1,9093width: 137.2,9094angle: 09095}, {9096name: "Platform",9097type: "static",9098x: 140.95,9099y: 340.9,9100density: 1,9101width: 88.1,9102angle: 909103}, {9104name: "Cannon",9105x: 421.5,9106y: 363,9107lowerAngle: -70,9108upperAngle: 709109}, {9110name: "Basket",9111x: 180.95,9112y: 319.99113}, {9114name: "Platform",9115type: "static",9116x: 209.95,9117y: 158.7,9118density: 1,9119width: 64.1,9120angle: 909121}, {9122name: "Platform",9123type: "static",9124x: 141.35,9125y: 158.05,9126density: 1,9127width: 63.2,9128angle: 909129}, {9130name: "Box",9131x: 176,9132y: 149,9133angle: 0,9134density: .19135}, {9136name: "Platform",9137type: "dynamic",9138x: 185.9,9139y: 181.75,9140density: .1,9141width: 66,9142angle: 09143}, {9144name: "Pivot",9145x: 210.3,9146y: 181.35,9147type: "gear",9148color: "Green",9149gearMaxAngle: -90,9150gearPower: -4,9151lowerAngle: -360,9152upperAngle: 360,9153signalID: 29154}, {9155name: "Platform",9156type: "static",9157x: 219.95,9158y: 349.9,9159density: 1,9160width: 66.1,9161angle: 909162}, {9163name: "Platform",9164type: "dynamic",9165x: 179.9,9166y: 305.95,9167density: .05,9168width: 96.1,9169angle: 09170}, {9171name: "Pivot",9172x: 141.3,9173y: 306.55,9174type: "gear",9175color: "Blue",9176gearMaxAngle: -90,9177gearPower: -6,9178lowerAngle: -360,9179upperAngle: 360,9180signalID: 39181}, {9182name: "Platform",9183type: "static",9184x: 123,9185y: 135.6,9186density: 1,9187width: 52.1,9188angle: 09189}, {9190name: "Platform",9191type: "static",9192x: 105.95,9193y: 158.45,9194density: 1,9195width: 63.6,9196angle: 909197}, {9198name: "Platform",9199type: "static",9200x: 37.35,9201y: 107.75,9202density: 1,9203width: 130.1,9204angle: 909205}, {9206name: "Platform",9207type: "static",9208x: 90.75,9209y: 207.55,9210density: 1,9211width: 57.4,9212angle: -529213}, {9214name: "Switcher",9215x: 85.55,9216y: 204.05,9217angle: -52,9218type: "toogle",9219color: "Green",9220signalID: 29221}, {9222name: "Platform",9223type: "static",9224x: 576.75,9225y: 242.3,9226density: 1,9227width: 57.3,9228angle: -459229}, {9230name: "Platform",9231type: "static",9232x: 606.6,9233y: 200.9,9234density: 1,9235width: 52.2,9236angle: -609237}, {9238name: "Platform",9239type: "static",9240x: 620.2,9241y: 168.15,9242density: 1,9243width: 29.1,9244angle: -759245}, {9246name: "Platform",9247type: "static",9248x: 617.55,9249y: 137.5,9250density: 1,9251width: 45.6,9252angle: -1059253}, {9254name: "Platform",9255type: "static",9256x: 596.5,9257y: 106.65,9258density: 1,9259width: 45.6,9260angle: -1509261}, {9262name: "Platform",9263type: "static",9264x: 536.85,9265y: 206.5,9266density: 1,9267width: 52.2,9268angle: -459269}, {9270name: "Platform",9271type: "static",9272x: 564.9,9273y: 166.9,9274density: 1,9275width: 52.2,9276angle: -609277}, {9278name: "Platform",9279type: "static",9280x: 564.3,9281y: 145.4,9282density: 1,9283width: 41.1,9284angle: -1509285}, {9286name: "Teleport",9287x: 526.7,9288y: 255.9,9289angle: 45,9290color: "Red",9291id: 1,9292mulVel: 69293}, {9294name: "Teleport",9295x: 543.2,9296y: 308.85,9297angle: -135,9298color: "Red",9299id: 1,9300mulVel: 39301}, {9302name: "Spring",9303x: 295.5,9304y: 120.6,9305angle: 90,9306type: "static",9307elasticity: 49308}, {9309name: "Platform",9310type: "static",9311x: 249,9312y: 135.6,9313density: 1,9314width: 96.1,9315angle: 09316}, {9317name: "Platform",9318type: "static",9319x: 289.25,9320y: 122.55,9321density: 1,9322width: 44.1,9323angle: 909324}, {9325name: "Platform",9326type: "dynamic",9327x: 379.45,9328y: 135.6,9329density: .1,9330width: 87.1,9331angle: 09332}, {9333name: "Platform",9334type: "dynamic",9335x: 379.75,9336y: 95.9,9337density: .1,9338width: 85.9,9339angle: 09340}, {9341name: "Pivot",9342x: 417.1,9343y: 135.35,9344type: "gear",9345color: "Red",9346gearMaxAngle: 20,9347gearPower: 4,9348lowerAngle: -360,9349upperAngle: 360,9350signalID: 19351}, {9352name: "Pivot",9353x: 417.1,9354y: 96.35,9355type: "gear",9356color: "Red",9357gearMaxAngle: 30,9358gearPower: 4,9359lowerAngle: -360,9360upperAngle: 360,9361signalID: 19362}, {9363name: "Switcher",9364x: 272.95,9365y: 430.35,9366angle: 90,9367type: "toogle",9368color: "Red",9369signalID: 19370}, {9371name: "Platform",9372type: "dynamic",9373x: 171.45,9374y: 52.6,9375density: .1,9376width: 73,9377angle: 09378}, {9379name: "Switcher",9380x: 501.1,9381y: 144.35,9382angle: 180,9383type: "toogle",9384color: "Blue",9385signalID: 39386}, {9387name: "Platform",9388type: "static",9389x: 263.95,9390y: 297.4,9391density: 1,9392width: 338.9,9393angle: 909394}, {9395name: "Platform",9396type: "static",9397x: 278,9398y: 52.6,9399density: 1,9400width: 126,9401angle: 09402}, {9403name: "Pivot",9404x: 141.85,9405y: 51.85,9406type: "gear",9407color: "Blue",9408gearMaxAngle: 90,9409gearPower: 4,9410lowerAngle: -360,9411upperAngle: 360,9412signalID: 39413}, {9414name: "Platform",9415type: "static",9416x: 279.05,9417y: 460.35,9418density: 1,9419width: 45.8,9420angle: 09421}, {9422name: "Platform",9423type: "static",9424x: 378.9,9425y: 396.1,9426density: 1,9427width: 18.1,9428angle: 09429}, {9430name: "Platform",9431type: "dynamic",9432x: 378.9,9433y: 418.05,9434density: .1,9435width: 52.6,9436angle: 909437}, {9438name: "Pivot",9439x: 379.65,9440y: 395.1,9441type: "bolt",9442color: "Red",9443gearMaxAngle: 20,9444gearPower: 4,9445lowerAngle: -360,9446upperAngle: 360,9447signalID: 19448}, {9449name: "Platform",9450type: "static",9451x: 348.7,9452y: 374.35,9453density: 1,9454width: 184.4,9455angle: 09456}, {9457name: "Platform",9458type: "static",9459x: 399.05,9460y: 460.35,9461density: 1,9462width: 85.8,9463angle: 09464}, {9465name: "Star",9466x: 289.55,9467y: 175.49468}, {9469name: "Star",9470x: 328.6,9471y: 471.959472}, {9473name: "Star",9474x: 473.5,9475y: 463.259476}]9477}, ft[28] = {9478items: [{9479name: "Platform",9480type: "static",9481x: 279.25,9482y: 108.5,9483density: 1,9484width: 17.8,9485angle: 09486}, {9487name: "Cannon",9488x: 681.95,9489y: 360.65,9490lowerAngle: -70,9491upperAngle: 09492}, {9493name: "Basket",9494x: 36,9495y: 286.59496}, {9497name: "Platform",9498type: "static",9499x: 114.35,9500y: 295.5,9501density: 1,9502width: 75.6,9503angle: 09504}, {9505name: "Box",9506x: 113.95,9507y: 169,9508angle: 0,9509density: .059510}, {9511name: "Box",9512x: 113.95,9513y: 217,9514angle: 0,9515density: .059516}, {9517name: "Box",9518x: 113.95,9519y: 264,9520angle: 0,9521density: .059522}, {9523name: "Box",9524x: 113.95,9525y: 122,9526angle: 0,9527density: .059528}, {9529name: "Platform",9530type: "static",9531x: 314.35,9532y: 295.5,9533density: 1,9534width: 75.6,9535angle: 09536}, {9537name: "Box",9538x: 313.95,9539y: 169,9540angle: 0,9541density: .059542}, {9543name: "Box",9544x: 313.95,9545y: 217,9546angle: 0,9547density: .059548}, {9549name: "Box",9550x: 313.95,9551y: 264,9552angle: 0,9553density: .059554}, {9555name: "Box",9556x: 313.95,9557y: 122,9558angle: 0,9559density: .059560}, {9561name: "Platform",9562type: "static",9563x: 514.35,9564y: 295.5,9565density: 1,9566width: 75.6,9567angle: 09568}, {9569name: "Box",9570x: 513.95,9571y: 169,9572angle: 0,9573density: .059574}, {9575name: "Box",9576x: 513.95,9577y: 217,9578angle: 0,9579density: .059580}, {9581name: "Box",9582x: 513.95,9583y: 264,9584angle: 0,9585density: .059586}, {9587name: "Box",9588x: 513.95,9589y: 122,9590angle: 0,9591density: .059592}, {9593name: "Platform",9594type: "dynamic",9595x: 279.35,9596y: 189.9,9597density: .1,9598width: 180.9,9599angle: 909600}, {9601name: "Pivot",9602x: 279.3,9603y: 108.35,9604type: "gear",9605color: "Green",9606gearMaxAngle: 0,9607gearPower: -10,9608lowerAngle: -360,9609upperAngle: 360,9610signalID: 29611}, {9612name: "Platform",9613type: "static",9614x: 79.25,9615y: 108.5,9616density: 1,9617width: 17.8,9618angle: 09619}, {9620name: "Platform",9621type: "dynamic",9622x: 79.35,9623y: 189.9,9624density: .1,9625width: 180.9,9626angle: 909627}, {9628name: "Pivot",9629x: 79.3,9630y: 108.35,9631type: "gear",9632color: "Blue",9633gearMaxAngle: 0,9634gearPower: -10,9635lowerAngle: -360,9636upperAngle: 360,9637signalID: 39638}, {9639name: "Platform",9640type: "static",9641x: 479.25,9642y: 108.5,9643density: 1,9644width: 17.8,9645angle: 09646}, {9647name: "Platform",9648type: "dynamic",9649x: 479.35,9650y: 189.9,9651density: .1,9652width: 180.9,9653angle: 909654}, {9655name: "Pivot",9656x: 479.3,9657y: 108.35,9658type: "gear",9659color: "Red",9660gearMaxAngle: 0,9661gearPower: -10,9662lowerAngle: -360,9663upperAngle: 360,9664signalID: 19665}, {9666name: "Platform",9667type: "static",9668x: 94.9,9669y: 81.55,9670density: 1,9671width: 429.5,9672angle: 09673}, {9674name: "Switcher",9675x: 521.1,9676y: 333.3,9677angle: 90,9678type: "toogle",9679color: "Red",9680signalID: 19681}, {9682name: "Platform",9683type: "static",9684x: 534.9,9685y: 81.55,9686density: 1,9687width: 429.5,9688angle: 09689}, {9690name: "Platform",9691type: "static",9692x: 313.35,9693y: 407.55,9694density: 1,9695width: 235.5,9696angle: 909697}, {9698name: "Platform",9699type: "static",9700x: 113.35,9701y: 407.55,9702density: 1,9703width: 235.5,9704angle: 909705}, {9706name: "Platform",9707type: "static",9708x: 513.35,9709y: 407.55,9710density: 1,9711width: 235.5,9712angle: 909713}, {9714name: "Switcher",9715x: 321.1,9716y: 333.3,9717angle: 90,9718type: "toogle",9719color: "Green",9720signalID: 29721}, {9722name: "Switcher",9723x: 121.1,9724y: 333.3,9725angle: 90,9726type: "toogle",9727color: "Blue",9728signalID: 39729}, {9730name: "Star",9731x: 416.3,9732y: 430.959733}, {9734name: "Star",9735x: 209.3,9736y: 430.959737}, {9738name: "Star",9739x: 614.3,9740y: 430.959741}]9742}, ft[29] = {9743items: [{9744name: "Platform",9745type: "static",9746x: 351.05,9747y: 321.3,9748density: 1,9749width: 97.5,9750angle: 09751}, {9752name: "Platform",9753type: "dynamic",9754x: 268.6,9755y: 300.55,9756density: .1,9757width: 86.2,9758angle: 309759}, {9760name: "Platform",9761type: "static",9762x: 513.1,9763y: 117.65,9764density: 1,9765width: 77,9766angle: -1409767}, {9768name: "Platform",9769type: "static",9770x: 338.7,9771y: 145.55,9772density: 1,9773width: 46.4,9774angle: 1229775}, {9776name: "Platform",9777type: "static",9778x: 560.7,9779y: 82.65,9780density: 1,9781width: 97.5,9782angle: 459783}, {9784name: "Platform",9785type: "static",9786x: 334.55,9787y: 57,9788density: 1,9789width: 88.7,9790angle: -229791}, {9792name: "Platform",9793type: "static",9794x: 591.4,9795y: 307.4,9796density: 1,9797width: 97.5,9798angle: -459799}, {9800name: "Basket",9801x: 672.45,9802y: 185.19803}, {9804name: "Cannon",9805x: 34.25,9806y: 370.7,9807lowerAngle: -70,9808upperAngle: 709809}, {9810name: "Teleport",9811x: 246.2,9812y: 400.45,9813angle: 90,9814color: "Red",9815id: 0,9816mulVel: 309817}, {9818name: "Platform",9819type: "static",9820x: 314.65,9821y: 413.25,9822density: 1,9823width: 99.6,9824angle: -159825}, {9826name: "Platform",9827type: "dynamic",9828x: 517.65,9829y: 354,9830density: .1,9831width: 107.9,9832angle: -209833}, {9834name: "Platform",9835type: "static",9836x: 630.2,9837y: 237.25,9838density: 1,9839width: 97.5,9840angle: -839841}, {9842name: "Platform",9843type: "static",9844x: 611.95,9845y: 152,9846density: .1,9847width: 94.4,9848angle: 609849}, {9850name: "Teleport",9851x: 152.7,9852y: 243.8,9853angle: -135,9854color: "Red",9855id: 0,9856mulVel: 19857}, {9858name: "Platform",9859type: "dynamic",9860x: 414.8,9861y: 34.65,9862density: .1,9863width: 92.7,9864angle: -79865}, {9866name: "Platform",9867type: "static",9868x: 259.3,9869y: 100.2,9870density: 1,9871width: 88.7,9872angle: -379873}, {9874name: "Platform",9875type: "static",9876x: 208.7,9877y: 162.5,9878density: 1,9879width: 88.7,9880angle: -679881}, {9882name: "Platform",9883type: "static",9884x: 208.7,9885y: 233.25,9886density: 1,9887width: 88.7,9888angle: -1129889}, {9890name: "Platform",9891type: "static",9892x: 441.05,9893y: 309,9894density: 1,9895width: 97.5,9896angle: -159897}, {9898name: "Platform",9899type: "static",9900x: 516.75,9901y: 275.85,9902density: 1,9903width: 88.4,9904angle: -309905}, {9906name: "Platform",9907type: "static",9908x: 562.8,9909y: 236.95,9910density: 1,9911width: 39.6,9912angle: -609913}, {9914name: "Platform",9915type: "static",9916x: 569.95,9917y: 201.7,9918density: 1,9919width: 46.5,9920angle: -959921}, {9922name: "Platform",9923type: "static",9924x: 554.6,9925y: 159.75,9926density: 1,9927width: 55.9,9928angle: -1259929}, {9930name: "Platform",9931type: "dynamic",9932x: 456.5,9933y: 100,9934density: .1,9935width: 64.1,9936angle: 1759937}, {9938name: "Platform",9939type: "dynamic",9940x: 383.1,9941y: 115.5,9942density: .1,9943width: 77,9944angle: 1609945}, {9946name: "Platform",9947type: "static",9948x: 341.55,9949y: 176.2,9950density: 1,9951width: 51.4,9952angle: 559953}, {9954name: "Platform",9955type: "static",9956x: 376.5,9957y: 245.45,9958density: 1,9959width: 48.3,9960angle: 159961}, {9962name: "Rock",9963x: 314.15,9964y: 371.2,9965density: 49966}, {9967name: "Switcher",9968x: 309.8,9969y: 58.55,9970angle: -23,9971type: "toogle",9972color: "Red",9973signalID: 19974}, {9975name: "Platform",9976type: "dynamic",9977x: 406.9,9978y: 388.55,9979density: .1,9980width: 113.6,9981angle: -159982}, {9983name: "Pivot",9984x: 564.1,9985y: 337.5,9986type: "gear",9987color: "Red",9988gearMaxAngle: 9,9989gearPower: 4,9990lowerAngle: -360,9991upperAngle: 360,9992signalID: 19993}, {9994name: "Pivot",9995x: 357.85,9996y: 402.35,9997type: "gear",9998color: "Red",9999gearMaxAngle: 30,10000gearPower: 4,10001lowerAngle: -360,10002upperAngle: 360,10003signalID: 110004}, {10005name: "Spring",10006x: 377.4,10007y: 248.15,10008angle: 12,10009type: "static",10010elasticity: 310011}, {10012name: "Platform",10013type: "static",10014x: 441.05,10015y: 239,10016density: 1,10017width: 97.5,10018angle: -1510019}, {10020name: "Pivot",10021x: 374.1,10022y: 40.45,10023type: "gear",10024color: "Green",10025gearMaxAngle: -43,10026gearPower: -4,10027lowerAngle: -360,10028upperAngle: 360,10029signalID: 210030}, {10031name: "Platform",10032type: "static",10033x: 251.75,10034y: -159.4,10035density: 1,10036width: 474.3,10037angle: -11210038}, {10039name: "Pivot",10040x: 351.1,10041y: 130.7,10042type: "gear",10043color: "Green",10044gearMaxAngle: 105,10045gearPower: -4,10046lowerAngle: -360,10047upperAngle: 360,10048signalID: 210049}, {10050name: "Pivot",10051x: 484.35,10052y: 99.35,10053type: "gear",10054color: "Green",10055gearMaxAngle: 240,10056gearPower: 4,10057lowerAngle: -360,10058upperAngle: 360,10059signalID: 210060}, {10061name: "Switcher",10062x: 54.45,10063y: 85.85,10064angle: 180,10065type: "toogle",10066color: "Green",10067signalID: 210068}, {10069name: "Platform",10070type: "static",10071x: 50.85,10072y: 77.15,10073density: 1,10074width: 101.7,10075angle: 010076}, {10077name: "Platform",10078type: "static",10079x: 709.45,10080y: 126.3,10081density: 1,10082width: 252.3,10083angle: 9010084}, {10085name: "Platform",10086type: "static",10087x: 503.3,10088y: 42,10089density: 1,10090width: 70.4,10091angle: 1510092}, {10093name: "Platform",10094type: "dynamic",10095x: 682.65,10096y: 176.8,10097density: .1,10098width: 69.6,10099angle: 010100}, {10101name: "Pivot",10102x: 709.6,10103y: 176,10104type: "gear",10105color: "Purple",10106gearMaxAngle: 45,10107gearPower: 4,10108lowerAngle: -360,10109upperAngle: 360,10110signalID: 310111}, {10112name: "Pivot",10113x: 305.3,10114y: 318.8,10115type: "gear",10116color: "Green",10117gearMaxAngle: 0,10118gearPower: -4,10119lowerAngle: -360,10120upperAngle: 360,10121signalID: 210122}, {10123name: "Platform",10124type: "static",10125x: 191.35,10126y: 253,10127density: 1,10128width: 59.3,10129angle: 13510130}, {10131name: "Platform",10132type: "static",10133x: 203.25,10134y: 366.25,10135density: 1,10136width: 75.7,10137angle: 010138}, {10139name: "Platform",10140type: "static",10141x: 174.4,10142y: 320.9,10143density: 1,10144width: 108.7,10145angle: 9010146}, {10147name: "Switcher",10148x: 205.85,10149y: 359.1,10150angle: 0,10151type: "button",10152color: "Purple",10153signalID: 310154}, {10155name: "Platform",10156type: "static",10157x: 235.85,10158y: 354.1,10159density: 1,10160width: 38.7,10161angle: 9010162}, {10163name: "Star",10164x: 686.3,10165y: 13710166}, {10167name: "Star",10168x: 630.4,10169y: 390.5510170}, {10171name: "Platform",10172type: "static",10173x: 9,10174y: 2.8,10175density: 1,10176width: 166.8,10177angle: 9010178}, {10179name: "Star",10180x: 479.2,10181y: 438.7510182}, {10183name: "Platform",10184type: "static",10185x: 269.15,10186y: 351.1,10187density: 1,10188width: 64.3,10189angle: -2110190}]10191}, J.prototype = Object.create(PIXI.Container.prototype), J.prototype.constructor = J, J.prototype.run = function(t, e) {10192t && this.once("onMiddle", t, e || this);10193var a = this;10194this.show(function() {10195TweenMax.delayedCall(.1, function() {10196a.emit("onMiddle"), TweenMax.delayedCall(.1, this.hide, null, this)10197}, null, this)10198}, this)10199}, J.prototype.show = function(t, e) {10200t && this.once("showComplete", t, e || this);10201var a = this;10202TweenMax.to(this, .4, {10203alpha: 1,10204onComplete: function() {10205a.emit("showComplete")10206}10207})10208}, J.prototype.hide = function(t, e) {10209t && this.once("hideComplete", t, e || this);10210var a = this;10211TweenMax.to(this, .4, {10212alpha: 0,10213onComplete: function() {10214a.emit("hideComplete")10215}10216})10217}, K.prototype = Object.create(PIXI.Container.prototype), K.prototype.constructor = K, K.prototype._onClick = function(e) {10218const a = 1;10219switch (e.target.name) {10220case "Play":10221this._menuDialog.hideToLeft(a), this._levelsDialog.show(a);10222try {10223parent.cmgGameEvent("start")10224} catch (t) {}10225break;10226case "BackLevels":10227this._menuDialog.show(a), this._levelsDialog.hide(a);10228break;10229case "Credits":10230this._menuDialog.hideToRight(a), this._creditsDialog.show(a);10231break;10232case "BackCredits":10233this._menuDialog.show(a), this._creditsDialog.hide(a);10234break;10235case "Music":10236Pt.setMusicEnable(e.isOn);10237break;10238case "Sound":10239Pt.setSoundEnable(e.isOn);10240break;10241case "MoreGames":1024210243break;10244case "Facebook":10245// t.open("http://www.facebook.com/ArmorGames")10246}10247Pt.soundOn && this.sndButton.play()10248}, K.prototype._onBtnsLevelClick = function(t) {10249Pt.levelMng.currLevel = t, Pt.shutter.run(function() {10250this.destroy({10251children: !010252}), Pt.menuState = null, new Z10253}, this), Pt.soundOn && this.sndButton.play();10254try {10255parent.cmgGameEvent("start", t)10256} catch (t) {}10257}, Z.prototype = Object.create(PIXI.Container.prototype), Z.prototype.constructor = Z, Z.prototype.destroy = function(t) {10258PIXI.Container.prototype.destroy.call(this, t)10259}, Z.prototype._onStageClick = function(t) {10260this._isComplete || this.shotHandler.call(t)10261}, Z.prototype._onGameLayerChildAdded = function() {10262this.updateLayersOrder()10263}, Z.prototype.updateLayersOrder = function() {10264this.gameLayer.children.sort(function(t, e) {10265return t.zOrder = t.zOrder || 0, e.zOrder = e.zOrder || 0, t.zOrder != e.zOrder ? t.zOrder - e.zOrder : t.y - e.y10266})10267}, Z.prototype.complete = function() {10268this._isComplete || (this._isComplete = !0, this.addChild(this._levelComplete), this._levelComplete.show(.5, this._catchedStars), Pt.levelMng.onLevelComplete())10269}, Z.zOrder = {10270defaultZ: 100,10271cannon: 100,10272ball: 50,10273basket: 100,10274platform: 150,10275switcher: 40,10276teleport: 41,10277rail: 30,10278tutorial: 20,10279pivot: 20010280}, Z.prototype._createUI = function() {10281var t = e.generateButton("btnMenuGame", "atlasUI", this._onBtnsClick, this);10282t.name = "Menu", t.scale.set(.5, .5), t.anchor.set(.5, 1), t.x = Pt.gameWidth0 - t.width / 2 - 5, t.y = t.height + 5, this.uiLayer.addChild(t);10283var a = e.generateButton("btnRestartGame", "atlasUI", this._onBtnsClick, this);10284a.name = "Restart", a.scale.set(.5, .5), a.anchor.set(.5, 1), a.x = t.x - t.width / 2 - a.width / 2 - 5, a.y = t.y, this.uiLayer.addChild(a);10285var n = e.generateButton("btnFBGame", "atlasUI", this._onBtnsClick, this);10286n.name = "Facebook", n.scale.set(.5, .5), n.anchor.set(.5, 1), n.x = a.x - a.width / 2 - n.width / 2 - 5, n.y = t.y, this.uiLayer.addChild(n);10287var i = e.generateButton("btnMoreGamesGame", "atlasUI", this._onBtnsClick, this);10288if (i.name = "Facebook", i.scale.set(.5, .5), i.anchor.set(.5, 1), i.x = n.x - n.width / 2 - i.width / 2 - 5, i.y = t.y, this.uiLayer.addChild(i), this.aimControl) {10289var s = e.generateButton("btnFire", "atlasUI", this._onBtnsClick, this);10290s.name = "Fire", s.scale.set(.4, .4), s.anchor.set(.5, .5), s.x = 40, s.y = Pt.gameHeight0 - 40, this.uiLayer.addChild(s), this.btnFire = s, this._btnFireBlinked = !1, this._blinker = Pt.assets.getSprite("btnFireBlink"), this._blinker.scale.set(.4, .4), this._blinker.anchor.set(.5, .5), this._blinker.x = s.x, this._blinker.y = s.y, this._blinker.visible = !1, this.addChild(this._blinker)10291}10292var o = new PIXI.TextStyle({10293fontFamily: "CroMagnum",10294fontSize: 42,10295fill: "#FFDC90",10296stroke: "#4D1604",10297strokeThickness: 8,10298align: "center",10299lineHeight: 4210300});10301this._txtLevel = new PIXI.Text("Level: " + Pt.levelMng.currLevel, o), this._txtLevel.x = 5, this._txtLevel.y = 5, this._txtLevel.scale.set(.5, .5), this.uiLayer.addChild(this._txtLevel);10302var r = Pt.assets.getSprite("toolbarStarPlace", "atlasUI");10303r.anchor.set(.5, .5), r.scale.set(.5, .5), r.x = Pt.gameWidth0 - r.width / 2 - 10, r.y = Pt.gameHeight0 - r.height / 2 - 5, r.empty = !0, this.addChild(r);10304var l = Pt.assets.getSprite("toolbarStarPlace", "atlasUI");10305l.anchor.set(.5, .5), l.scale.set(.5, .5), l.x = r.x - r.width / 2 - l.width / 2 - 5, l.y = r.y, l.empty = !0, this.addChild(l);10306var y = Pt.assets.getSprite("toolbarStarPlace", "atlasUI");10307y.anchor.set(.5, .5), y.scale.set(.5, .5), y.x = l.x - l.width / 2 - y.width / 2 - 5, y.y = r.y, y.empty = !0, this.addChild(y), this._starPlaces = [r, l, y], this._catchedStars = 010308}, Z.prototype.addStar = function() {10309for (var t = null, e = 0; e < this._starPlaces.length; e++)10310if (this._starPlaces[e].empty) {10311t = this._starPlaces[e], t.empty = !1;10312break10313}10314if (null != t) {10315var a = Pt.assets.getSprite("toolbarStar", "atlasUI");10316a.anchor.set(.5, .5), a.scale.set(.5, .5), a.x = t.x, a.y = t.y, a.alpha = 0, this.addChildAt(a, this.getChildIndex(t) + 1), TweenMax.to(a, 1, {10317alpha: 110318}), this._catchedStars++10319}10320}, Z.prototype.blinkBtnFire = function() {10321this._btnFireBlinked || (this._btnFireBlinked = !0, this._blinker.visible = !0, this._blinker.alpha = 0, this._blinkTween = TweenMax.to(this._blinker, .5, {10322alpha: 1,10323repeat: -1,10324yoyo: !010325}))10326}, Z.prototype.stopBlinkBtnFire = function() {10327this._blinkTween && (this._blinker.visible = !1, this._blinkTween.kill(), this._blinkTween = null)10328}, Z.prototype._onBtnsClick = function(e) {10329switch (e.target.name) {10330case "Menu":10331Pt.shutter.run(function() {10332this.destroy({10333children: !010334}), Pt.playState = null, new K10335}, this);10336break;10337case "Restart":10338Pt.shutter.run(function() {10339try {10340parent.cmgGameEvent("replay", Pt.levelMng.currLevel)10341} catch (t) {}10342Pt.playState.isDestroying = !0, this.destroy({10343children: !010344}), Pt.playState = null, new Z10345}, this);10346break;10347case "Next":10348Pt.shutter.run(function() {10349Pt.levelMng.currLevel++;10350try {10351parent.cmgGameEvent("start", Pt.levelMng.currLevel)10352} catch (t) {}10353Pt.playState.isDestroying = !0, this.destroy({10354children: !010355}), Pt.playState = null, new Z10356}, this);10357break;10358case "Fire":10359if (this._isComplete) return;10360this.shotHandler.call(e), this.stopBlinkBtnFire();10361break;10362case "Facebook":10363// t.open("http://www.facebook.com/ArmorGames");10364break;10365case "MoreGames":1036610367}10368Pt.soundOn && this.sndButton.play()10369};10370var Pt = {10371pixi: null,10372physics: null,10373physWorld: null,10374physScale: 30,10375soundMng: null,10376assets: null,10377inited: !1,10378audioEnabled: !1,10379musicOn: !0,10380soundOn: !0,10381levelMng: null,10382menuState: null,10383playState: null,10384shutter: null,10385tutorial: null,10386SAVE_KEY_LAST_OPENED: "cb4_lastOpened",10387SAVE_KEY_MUSIC: "cb4_saveMusic",10388SAVE_KEY_SOUND: "cb4_saveSound",10389SAVE_KEY_STARS: "cb4_saveStars",10390storage: null,10391browserEvents: null,10392gameWidth0: 720,10393gameHeight0: 500,10394gameMaxWidth0: 720,10395gameMaxHeight0: 500,10396gameWidth1: null,10397gameHeight1: null,10398gameMaxWidth1: null,10399gameMaxHeight1: null,10400border: null,10401canvasWidth: null,10402canvasHeight: null,10403scale: 1,10404imgRotate: null,10405rnd: null,10406device: null,10407fps: null,10408sponsorURL: ""10409};10410t.App = Pt, t.trace = console.log, q(), Pt.mainTheme = null, Pt._checkAudio = function() {10411Pt.audioEnabled ? (void 0 != Pt.storage.get(Pt.SAVE_KEY_MUSIC) && (Pt.musicOn = "true" == Pt.storage.get(Pt.SAVE_KEY_MUSIC)), void 0 != Pt.storage.get(Pt.SAVE_KEY_SOUND) && (Pt.soundOn = "true" == Pt.storage.get(Pt.SAVE_KEY_SOUND)), Pt.mainTheme = Pt.assets.getSound("sndTheme"), Pt.mainTheme.loop = !0, Pt.mainTheme.volume = .3, Pt.musicOn && Pt.mainTheme.play(), Pt.browserEvents.on("onPageShow", function(t) {10412PIXI.sound.resumeAll()10413}), Pt.browserEvents.on("onPageHide", function(t) {10414PIXI.sound.pauseAll()10415}), Pt.browserEvents.on("onFocusGet", function(t) {10416PIXI.sound.resumeAll()10417}), Pt.browserEvents.on("onFocusLost", function(t) {10418PIXI.sound.pauseAll()10419})) : (Pt.musicOn = !1, Pt.soundOn = !1)10420}, Pt.setMusicEnable = function(t) {10421Pt.audioEnabled !== !1 && (Pt.musicOn = t, Pt.musicOn ? Pt.mainTheme.isPlaying || (Pt.mainTheme.resume(), Pt.mainTheme.isPlaying || Pt.mainTheme.play()) : Pt.mainTheme.isPlaying && Pt.mainTheme.pause(), Pt.storage.set(Pt.SAVE_KEY_MUSIC, Pt.musicOn))10422}, Pt.switchMusicEnable = function() {10423Pt.setMusicEnable(!Pt.musicOn)10424}, Pt.setSoundEnable = function(t) {10425Pt.audioEnabled !== !1 && (Pt.soundOn = t, Pt.storage.set(Pt.SAVE_KEY_SOUND, Pt.soundOn))10426}, Pt.switchSoundEnable = function() {10427Pt.setSoundEnable(!Pt.soundOn)10428}, t.unlockAllLevels = function() {10429Pt.levelMng && Pt.levelMng.unlockAllLevels(), Pt.menuState && Pt.menuState._levelsDialog.refresh()10430}, parent.unlockAllLevels = t.unlockAllLevels10431}(window);1043210433