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