diff --git a/docs/ast/source/parallax.mjs.json b/docs/ast/source/parallax.mjs.json index b2b5693..1da8ed1 100644 --- a/docs/ast/source/parallax.mjs.json +++ b/docs/ast/source/parallax.mjs.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 9342, + "end": 9174, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 196, + "line": 198, "column": 20 } }, "program": { "type": "Program", "start": 0, - "end": 9342, + "end": 9174, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 196, + "line": 198, "column": 20 } }, @@ -117,14 +117,14 @@ { "type": "Identifier", "start": 53, - "end": 9275, + "end": 9107, "loc": { "start": { "line": 3, "column": 0 }, "end": { - "line": 193, + "line": 195, "column": 1 } }, @@ -149,14 +149,14 @@ "body": { "type": "ClassBody", "start": 77, - "end": 9275, + "end": 9107, "loc": { "start": { "line": 3, "column": 24 }, "end": { - "line": 193, + "line": 195, "column": 1 } }, @@ -799,14 +799,14 @@ { "type": "ClassMethod", "start": 1706, - "end": 2781, + "end": 2964, "loc": { "start": { "line": 43, "column": 4 }, "end": { - "line": 63, + "line": 67, "column": 5 } }, @@ -925,14 +925,14 @@ "body": { "type": "BlockStatement", "start": 1750, - "end": 2781, + "end": 2964, "loc": { "start": { "line": 43, "column": 48 }, "end": { - "line": 63, + "line": 67, "column": 5 } }, @@ -940,14 +940,14 @@ { "type": "IfStatement", "start": 1761, - "end": 2774, + "end": 2957, "loc": { "start": { "line": 44, "column": 8 }, "end": { - "line": 62, + "line": 66, "column": 9 } }, @@ -971,14 +971,14 @@ "consequent": { "type": "BlockStatement", "start": 1776, - "end": 2674, + "end": 2857, "loc": { "start": { "line": 44, "column": 23 }, "end": { - "line": 60, + "line": 64, "column": 9 } }, @@ -986,14 +986,14 @@ { "type": "IfStatement", "start": 1791, - "end": 2663, + "end": 2846, "loc": { "start": { "line": 45, "column": 12 }, "end": { - "line": 59, + "line": 63, "column": 13 } }, @@ -1050,14 +1050,14 @@ "consequent": { "type": "BlockStatement", "start": 1828, - "end": 2529, + "end": 2712, "loc": { "start": { "line": 45, "column": 49 }, "end": { - "line": 57, + "line": 61, "column": 13 } }, @@ -1065,14 +1065,14 @@ { "type": "IfStatement", "start": 1847, - "end": 2514, + "end": 2697, "loc": { "start": { "line": 46, "column": 16 }, "end": { - "line": 56, + "line": 60, "column": 17 } }, @@ -1214,14 +1214,14 @@ "consequent": { "type": "BlockStatement", "start": 1888, - "end": 2514, + "end": 2697, "loc": { "start": { "line": 46, "column": 57 }, "end": { - "line": 56, + "line": 60, "column": 17 } }, @@ -1993,35 +1993,36 @@ { "type": "ExpressionStatement", "start": 2262, - "end": 2308, + "end": 2423, "loc": { "start": { "line": 52, "column": 20 }, "end": { - "line": 52, - "column": 66 + "line": 55, + "column": 21 } }, "expression": { - "type": "CallExpression", + "type": "AssignmentExpression", "start": 2262, - "end": 2307, + "end": 2423, "loc": { "start": { "line": 52, "column": 20 }, "end": { - "line": 52, - "column": 65 + "line": 55, + "column": 21 } }, - "callee": { + "operator": "=", + "left": { "type": "MemberExpression", "start": 2262, - "end": 2271, + "end": 2285, "loc": { "start": { "line": 52, @@ -2029,13 +2030,13 @@ }, "end": { "line": 52, - "column": 29 + "column": 43 } }, "object": { - "type": "ThisExpression", + "type": "Identifier", "start": 2262, - "end": 2266, + "end": 2274, "loc": { "start": { "line": 52, @@ -2043,21 +2044,452 @@ }, "end": { "line": 52, + "column": 32 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "property": { + "type": "Identifier", + "start": 2275, + "end": 2285, + "loc": { + "start": { + "line": 52, + "column": 33 + }, + "end": { + "line": 52, + "column": 43 + }, + "identifierName": "lastCamPos" + }, + "name": "lastCamPos" + }, + "computed": false + }, + "right": { + "type": "ObjectExpression", + "start": 2288, + "end": 2423, + "loc": { + "start": { + "line": 52, + "column": 46 + }, + "end": { + "line": 55, + "column": 21 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 2315, + "end": 2344, + "loc": { + "start": { + "line": 53, + "column": 24 + }, + "end": { + "line": 53, + "column": 53 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2315, + "end": 2316, + "loc": { + "start": { + "line": 53, + "column": 24 + }, + "end": { + "line": 53, + "column": 25 + }, + "identifierName": "x" + }, + "name": "x" + }, + "value": { + "type": "MemberExpression", + "start": 2318, + "end": 2344, + "loc": { + "start": { + "line": 53, + "column": 27 + }, + "end": { + "line": 53, + "column": 53 + } + }, + "object": { + "type": "CallExpression", + "start": 2318, + "end": 2342, + "loc": { + "start": { + "line": 53, + "column": 27 + }, + "end": { + "line": 53, + "column": 51 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2318, + "end": 2340, + "loc": { + "start": { + "line": 53, + "column": 27 + }, + "end": { + "line": 53, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 2318, + "end": 2329, + "loc": { + "start": { + "line": 53, + "column": 27 + }, + "end": { + "line": 53, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 2318, + "end": 2322, + "loc": { + "start": { + "line": 53, + "column": 27 + }, + "end": { + "line": 53, + "column": 31 + }, + "identifierName": "VYLO" + }, + "name": "VYLO" + }, + "property": { + "type": "Identifier", + "start": 2323, + "end": 2329, + "loc": { + "start": { + "line": 53, + "column": 32 + }, + "end": { + "line": 53, + "column": 38 + }, + "identifierName": "Client" + }, + "name": "Client" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2330, + "end": 2340, + "loc": { + "start": { + "line": 53, + "column": 39 + }, + "end": { + "line": 53, + "column": 49 + }, + "identifierName": "getViewEye" + }, + "name": "getViewEye" + }, + "computed": false + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 2343, + "end": 2344, + "loc": { + "start": { + "line": 53, + "column": 52 + }, + "end": { + "line": 53, + "column": 53 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + } + }, + { + "type": "ObjectProperty", + "start": 2371, + "end": 2400, + "loc": { + "start": { + "line": 54, + "column": 24 + }, + "end": { + "line": 54, + "column": 53 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2371, + "end": 2372, + "loc": { + "start": { + "line": 54, + "column": 24 + }, + "end": { + "line": 54, + "column": 25 + }, + "identifierName": "y" + }, + "name": "y" + }, + "value": { + "type": "MemberExpression", + "start": 2374, + "end": 2400, + "loc": { + "start": { + "line": 54, + "column": 27 + }, + "end": { + "line": 54, + "column": 53 + } + }, + "object": { + "type": "CallExpression", + "start": 2374, + "end": 2398, + "loc": { + "start": { + "line": 54, + "column": 27 + }, + "end": { + "line": 54, + "column": 51 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2374, + "end": 2396, + "loc": { + "start": { + "line": 54, + "column": 27 + }, + "end": { + "line": 54, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 2374, + "end": 2385, + "loc": { + "start": { + "line": 54, + "column": 27 + }, + "end": { + "line": 54, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 2374, + "end": 2378, + "loc": { + "start": { + "line": 54, + "column": 27 + }, + "end": { + "line": 54, + "column": 31 + }, + "identifierName": "VYLO" + }, + "name": "VYLO" + }, + "property": { + "type": "Identifier", + "start": 2379, + "end": 2385, + "loc": { + "start": { + "line": 54, + "column": 32 + }, + "end": { + "line": 54, + "column": 38 + }, + "identifierName": "Client" + }, + "name": "Client" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2386, + "end": 2396, + "loc": { + "start": { + "line": 54, + "column": 39 + }, + "end": { + "line": 54, + "column": 49 + }, + "identifierName": "getViewEye" + }, + "name": "getViewEye" + }, + "computed": false + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 2399, + "end": 2400, + "loc": { + "start": { + "line": 54, + "column": 52 + }, + "end": { + "line": 54, + "column": 53 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + } + } + ] + } + } + }, + { + "type": "ExpressionStatement", + "start": 2445, + "end": 2491, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, + "column": 66 + } + }, + "expression": { + "type": "CallExpression", + "start": 2445, + "end": 2490, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, + "column": 65 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2445, + "end": 2454, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 2445, + "end": 2449, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, "column": 24 } } }, "property": { "type": "Identifier", - "start": 2267, - "end": 2271, + "start": 2450, + "end": 2454, "loc": { "start": { - "line": 52, + "line": 56, "column": 25 }, "end": { - "line": 52, + "line": 56, "column": 29 }, "identifierName": "init" @@ -2069,15 +2501,15 @@ "arguments": [ { "type": "Identifier", - "start": 2272, - "end": 2281, + "start": 2455, + "end": 2464, "loc": { "start": { - "line": 52, + "line": 56, "column": 30 }, "end": { - "line": 52, + "line": 56, "column": 39 }, "identifierName": "pInstance" @@ -2086,15 +2518,15 @@ }, { "type": "Identifier", - "start": 2283, - "end": 2295, + "start": 2466, + "end": 2478, "loc": { "start": { - "line": 52, + "line": 56, "column": 41 }, "end": { - "line": 52, + "line": 56, "column": 53 }, "identifierName": "parallaxInfo" @@ -2103,15 +2535,15 @@ }, { "type": "Identifier", - "start": 2297, - "end": 2298, + "start": 2480, + "end": 2481, "loc": { "start": { - "line": 52, + "line": 56, "column": 55 }, "end": { - "line": 52, + "line": 56, "column": 56 }, "identifierName": "x" @@ -2120,15 +2552,15 @@ }, { "type": "Identifier", - "start": 2300, - "end": 2301, + "start": 2483, + "end": 2484, "loc": { "start": { - "line": 52, + "line": 56, "column": 58 }, "end": { - "line": 52, + "line": 56, "column": 59 }, "identifierName": "y" @@ -2137,15 +2569,15 @@ }, { "type": "Identifier", - "start": 2303, - "end": 2306, + "start": 2486, + "end": 2489, "loc": { "start": { - "line": 52, + "line": 56, "column": 61 }, "end": { - "line": 52, + "line": 56, "column": 64 }, "identifierName": "map" @@ -2158,15 +2590,15 @@ { "type": "CommentLine", "value": " Set the parallax info to the instance", - "start": 2330, - "end": 2370, + "start": 2513, + "end": 2553, "loc": { "start": { - "line": 53, + "line": 57, "column": 20 }, "end": { - "line": 53, + "line": 57, "column": 60 } } @@ -2175,71 +2607,71 @@ }, { "type": "ExpressionStatement", - "start": 2392, - "end": 2442, + "start": 2575, + "end": 2625, "loc": { "start": { - "line": 54, + "line": 58, "column": 20 }, "end": { - "line": 54, + "line": 58, "column": 70 } }, "expression": { "type": "CallExpression", - "start": 2392, - "end": 2441, + "start": 2575, + "end": 2624, "loc": { "start": { - "line": 54, + "line": 58, "column": 20 }, "end": { - "line": 54, + "line": 58, "column": 69 } }, "callee": { "type": "MemberExpression", - "start": 2392, - "end": 2416, + "start": 2575, + "end": 2599, "loc": { "start": { - "line": 54, + "line": 58, "column": 20 }, "end": { - "line": 54, + "line": 58, "column": 44 } }, "object": { "type": "MemberExpression", - "start": 2392, - "end": 2412, + "start": 2575, + "end": 2595, "loc": { "start": { - "line": 54, + "line": 58, "column": 20 }, "end": { - "line": 54, + "line": 58, "column": 40 } }, "object": { "type": "ThisExpression", - "start": 2392, - "end": 2396, + "start": 2575, + "end": 2579, "loc": { "start": { - "line": 54, + "line": 58, "column": 20 }, "end": { - "line": 54, + "line": 58, "column": 24 } }, @@ -2247,15 +2679,15 @@ }, "property": { "type": "Identifier", - "start": 2397, - "end": 2412, + "start": 2580, + "end": 2595, "loc": { "start": { - "line": 54, + "line": 58, "column": 25 }, "end": { - "line": 54, + "line": 58, "column": 40 }, "identifierName": "instanceWeakMap" @@ -2267,15 +2699,15 @@ }, "property": { "type": "Identifier", - "start": 2413, - "end": 2416, + "start": 2596, + "end": 2599, "loc": { "start": { - "line": 54, + "line": 58, "column": 41 }, "end": { - "line": 54, + "line": 58, "column": 44 }, "identifierName": "set" @@ -2288,15 +2720,15 @@ "arguments": [ { "type": "Identifier", - "start": 2417, - "end": 2426, + "start": 2600, + "end": 2609, "loc": { "start": { - "line": 54, + "line": 58, "column": 45 }, "end": { - "line": 54, + "line": 58, "column": 54 }, "identifierName": "pInstance" @@ -2305,15 +2737,15 @@ }, { "type": "Identifier", - "start": 2428, - "end": 2440, + "start": 2611, + "end": 2623, "loc": { "start": { - "line": 54, + "line": 58, "column": 56 }, "end": { - "line": 54, + "line": 58, "column": 68 }, "identifierName": "parallaxInfo" @@ -2327,15 +2759,15 @@ { "type": "CommentLine", "value": " Set the parallax info to the instance", - "start": 2330, - "end": 2370, + "start": 2513, + "end": 2553, "loc": { "start": { - "line": 53, + "line": 57, "column": 20 }, "end": { - "line": 53, + "line": 57, "column": 60 } } @@ -2344,86 +2776,86 @@ }, { "type": "ExpressionStatement", - "start": 2464, - "end": 2495, + "start": 2647, + "end": 2678, "loc": { "start": { - "line": 55, + "line": 59, "column": 20 }, "end": { - "line": 55, + "line": 59, "column": 51 } }, "expression": { "type": "CallExpression", - "start": 2464, - "end": 2494, + "start": 2647, + "end": 2677, "loc": { "start": { - "line": 55, + "line": 59, "column": 20 }, "end": { - "line": 55, + "line": 59, "column": 50 } }, "callee": { "type": "MemberExpression", - "start": 2464, - "end": 2483, + "start": 2647, + "end": 2666, "loc": { "start": { - "line": 55, + "line": 59, "column": 20 }, "end": { - "line": 55, + "line": 59, "column": 39 } }, "object": { "type": "MemberExpression", - "start": 2464, - "end": 2478, + "start": 2647, + "end": 2661, "loc": { "start": { - "line": 55, + "line": 59, "column": 20 }, "end": { - "line": 55, + "line": 59, "column": 34 } }, "object": { "type": "ThisExpression", - "start": 2464, - "end": 2468, + "start": 2647, + "end": 2651, "loc": { "start": { - "line": 55, + "line": 59, "column": 20 }, "end": { - "line": 55, + "line": 59, "column": 24 } } }, "property": { "type": "Identifier", - "start": 2469, - "end": 2478, + "start": 2652, + "end": 2661, "loc": { "start": { - "line": 55, + "line": 59, "column": 25 }, "end": { - "line": 55, + "line": 59, "column": 34 }, "identifierName": "instances" @@ -2434,15 +2866,15 @@ }, "property": { "type": "Identifier", - "start": 2479, - "end": 2483, + "start": 2662, + "end": 2666, "loc": { "start": { - "line": 55, + "line": 59, "column": 35 }, "end": { - "line": 55, + "line": 59, "column": 39 }, "identifierName": "push" @@ -2454,15 +2886,15 @@ "arguments": [ { "type": "Identifier", - "start": 2484, - "end": 2493, + "start": 2667, + "end": 2676, "loc": { "start": { - "line": 55, + "line": 59, "column": 40 }, "end": { - "line": 55, + "line": 59, "column": 49 }, "identifierName": "pInstance" @@ -2482,129 +2914,129 @@ }, "alternate": { "type": "BlockStatement", - "start": 2535, - "end": 2663, + "start": 2718, + "end": 2846, "loc": { "start": { - "line": 57, + "line": 61, "column": 19 }, "end": { - "line": 59, + "line": 63, "column": 13 } }, "body": [ { "type": "ExpressionStatement", - "start": 2554, - "end": 2648, + "start": 2737, + "end": 2831, "loc": { "start": { - "line": 58, + "line": 62, "column": 16 }, "end": { - "line": 58, + "line": 62, "column": 110 } }, "expression": { "type": "CallExpression", - "start": 2554, - "end": 2647, + "start": 2737, + "end": 2830, "loc": { "start": { - "line": 58, + "line": 62, "column": 16 }, "end": { - "line": 58, + "line": 62, "column": 109 } }, "callee": { "type": "MemberExpression", - "start": 2554, - "end": 2597, + "start": 2737, + "end": 2780, "loc": { "start": { - "line": 58, + "line": 62, "column": 16 }, "end": { - "line": 58, + "line": 62, "column": 59 } }, "object": { "type": "CallExpression", - "start": 2554, - "end": 2591, + "start": 2737, + "end": 2774, "loc": { "start": { - "line": 58, + "line": 62, "column": 16 }, "end": { - "line": 58, + "line": 62, "column": 53 } }, "callee": { "type": "MemberExpression", - "start": 2554, - "end": 2572, + "start": 2737, + "end": 2755, "loc": { "start": { - "line": 58, + "line": 62, "column": 16 }, "end": { - "line": 58, + "line": 62, "column": 34 } }, "object": { "type": "MemberExpression", - "start": 2554, - "end": 2565, + "start": 2737, + "end": 2748, "loc": { "start": { - "line": 58, + "line": 62, "column": 16 }, "end": { - "line": 58, + "line": 62, "column": 27 } }, "object": { "type": "ThisExpression", - "start": 2554, - "end": 2558, + "start": 2737, + "end": 2741, "loc": { "start": { - "line": 58, + "line": 62, "column": 16 }, "end": { - "line": 58, + "line": 62, "column": 20 } } }, "property": { "type": "Identifier", - "start": 2559, - "end": 2565, + "start": 2742, + "end": 2748, "loc": { "start": { - "line": 58, + "line": 62, "column": 21 }, "end": { - "line": 58, + "line": 62, "column": 27 }, "identifierName": "logger" @@ -2615,15 +3047,15 @@ }, "property": { "type": "Identifier", - "start": 2566, - "end": 2572, + "start": 2749, + "end": 2755, "loc": { "start": { - "line": 58, + "line": 62, "column": 28 }, "end": { - "line": 58, + "line": 62, "column": 34 }, "identifierName": "prefix" @@ -2635,15 +3067,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 2573, - "end": 2590, + "start": 2756, + "end": 2773, "loc": { "start": { - "line": 58, + "line": 62, "column": 35 }, "end": { - "line": 58, + "line": 62, "column": 52 } }, @@ -2657,15 +3089,15 @@ }, "property": { "type": "Identifier", - "start": 2592, - "end": 2597, + "start": 2775, + "end": 2780, "loc": { "start": { - "line": 58, + "line": 62, "column": 54 }, "end": { - "line": 58, + "line": 62, "column": 59 }, "identifierName": "error" @@ -2677,15 +3109,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 2598, - "end": 2646, + "start": 2781, + "end": 2829, "loc": { "start": { - "line": 58, + "line": 62, "column": 60 }, "end": { - "line": 58, + "line": 62, "column": 108 } }, @@ -2707,129 +3139,129 @@ }, "alternate": { "type": "BlockStatement", - "start": 2680, - "end": 2774, + "start": 2863, + "end": 2957, "loc": { "start": { - "line": 60, + "line": 64, "column": 15 }, "end": { - "line": 62, + "line": 66, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 2695, - "end": 2763, + "start": 2878, + "end": 2946, "loc": { "start": { - "line": 61, + "line": 65, "column": 12 }, "end": { - "line": 61, + "line": 65, "column": 80 } }, "expression": { "type": "CallExpression", - "start": 2695, - "end": 2762, + "start": 2878, + "end": 2945, "loc": { "start": { - "line": 61, + "line": 65, "column": 12 }, "end": { - "line": 61, + "line": 65, "column": 79 } }, "callee": { "type": "MemberExpression", - "start": 2695, - "end": 2738, + "start": 2878, + "end": 2921, "loc": { "start": { - "line": 61, + "line": 65, "column": 12 }, "end": { - "line": 61, + "line": 65, "column": 55 } }, "object": { "type": "CallExpression", - "start": 2695, - "end": 2732, + "start": 2878, + "end": 2915, "loc": { "start": { - "line": 61, + "line": 65, "column": 12 }, "end": { - "line": 61, + "line": 65, "column": 49 } }, "callee": { "type": "MemberExpression", - "start": 2695, - "end": 2713, + "start": 2878, + "end": 2896, "loc": { "start": { - "line": 61, + "line": 65, "column": 12 }, "end": { - "line": 61, + "line": 65, "column": 30 } }, "object": { "type": "MemberExpression", - "start": 2695, - "end": 2706, + "start": 2878, + "end": 2889, "loc": { "start": { - "line": 61, + "line": 65, "column": 12 }, "end": { - "line": 61, + "line": 65, "column": 23 } }, "object": { "type": "ThisExpression", - "start": 2695, - "end": 2699, + "start": 2878, + "end": 2882, "loc": { "start": { - "line": 61, + "line": 65, "column": 12 }, "end": { - "line": 61, + "line": 65, "column": 16 } } }, "property": { "type": "Identifier", - "start": 2700, - "end": 2706, + "start": 2883, + "end": 2889, "loc": { "start": { - "line": 61, + "line": 65, "column": 17 }, "end": { - "line": 61, + "line": 65, "column": 23 }, "identifierName": "logger" @@ -2840,15 +3272,15 @@ }, "property": { "type": "Identifier", - "start": 2707, - "end": 2713, + "start": 2890, + "end": 2896, "loc": { "start": { - "line": 61, + "line": 65, "column": 24 }, "end": { - "line": 61, + "line": 65, "column": 30 }, "identifierName": "prefix" @@ -2860,15 +3292,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 2714, - "end": 2731, + "start": 2897, + "end": 2914, "loc": { "start": { - "line": 61, + "line": 65, "column": 31 }, "end": { - "line": 61, + "line": 65, "column": 48 } }, @@ -2882,15 +3314,15 @@ }, "property": { "type": "Identifier", - "start": 2733, - "end": 2738, + "start": 2916, + "end": 2921, "loc": { "start": { - "line": 61, + "line": 65, "column": 50 }, "end": { - "line": 61, + "line": 65, "column": 55 }, "identifierName": "error" @@ -2902,15 +3334,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 2739, - "end": 2761, + "start": 2922, + "end": 2944, "loc": { "start": { - "line": 61, + "line": 65, "column": 56 }, "end": { - "line": 61, + "line": 65, "column": 78 } }, @@ -2953,15 +3385,15 @@ { "type": "CommentBlock", "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", - "start": 2787, - "end": 3680, + "start": 2970, + "end": 3863, "loc": { "start": { - "line": 64, + "line": 68, "column": 4 }, "end": { - "line": 75, + "line": 79, "column": 7 } } @@ -2970,15 +3402,15 @@ }, { "type": "ClassMethod", - "start": 3686, - "end": 5787, + "start": 3869, + "end": 5870, "loc": { "start": { - "line": 76, + "line": 80, "column": 4 }, "end": { - "line": 117, + "line": 119, "column": 5 } }, @@ -2986,15 +3418,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3686, - "end": 3690, + "start": 3869, + "end": 3873, "loc": { "start": { - "line": 76, + "line": 80, "column": 4 }, "end": { - "line": 76, + "line": 80, "column": 8 }, "identifierName": "init" @@ -3010,15 +3442,15 @@ "params": [ { "type": "Identifier", - "start": 3691, - "end": 3700, + "start": 3874, + "end": 3883, "loc": { "start": { - "line": 76, + "line": 80, "column": 9 }, "end": { - "line": 76, + "line": 80, "column": 18 }, "identifierName": "pInstance" @@ -3027,15 +3459,15 @@ }, { "type": "Identifier", - "start": 3702, - "end": 3715, + "start": 3885, + "end": 3898, "loc": { "start": { - "line": 76, + "line": 80, "column": 20 }, "end": { - "line": 76, + "line": 80, "column": 33 }, "identifierName": "pParallaxInfo" @@ -3044,15 +3476,15 @@ }, { "type": "Identifier", - "start": 3717, - "end": 3719, + "start": 3900, + "end": 3902, "loc": { "start": { - "line": 76, + "line": 80, "column": 35 }, "end": { - "line": 76, + "line": 80, "column": 37 }, "identifierName": "pX" @@ -3061,15 +3493,15 @@ }, { "type": "Identifier", - "start": 3721, - "end": 3723, + "start": 3904, + "end": 3906, "loc": { "start": { - "line": 76, + "line": 80, "column": 39 }, "end": { - "line": 76, + "line": 80, "column": 41 }, "identifierName": "pY" @@ -3078,15 +3510,15 @@ }, { "type": "Identifier", - "start": 3725, - "end": 3729, + "start": 3908, + "end": 3912, "loc": { "start": { - "line": 76, + "line": 80, "column": 43 }, "end": { - "line": 76, + "line": 80, "column": 47 }, "identifierName": "pMap" @@ -3096,44 +3528,44 @@ ], "body": { "type": "BlockStatement", - "start": 3731, - "end": 5787, + "start": 3914, + "end": 5870, "loc": { "start": { - "line": 76, + "line": 80, "column": 49 }, "end": { - "line": 117, + "line": 119, "column": 5 } }, "body": [ { "type": "IfStatement", - "start": 3742, - "end": 5780, + "start": 3925, + "end": 5863, "loc": { "start": { - "line": 77, + "line": 81, "column": 8 }, "end": { - "line": 116, + "line": 118, "column": 9 } }, "test": { "type": "Identifier", - "start": 3746, - "end": 3750, + "start": 3929, + "end": 3933, "loc": { "start": { - "line": 77, + "line": 81, "column": 12 }, "end": { - "line": 77, + "line": 81, "column": 16 }, "identifierName": "VYLO" @@ -3142,299 +3574,58 @@ }, "consequent": { "type": "BlockStatement", - "start": 3752, - "end": 5614, + "start": 3935, + "end": 5697, "loc": { "start": { - "line": 77, + "line": 81, "column": 18 }, "end": { - "line": 114, + "line": 116, "column": 9 } }, "body": [ - { - "type": "ExpressionStatement", - "start": 3809, - "end": 3853, - "loc": { - "start": { - "line": 79, - "column": 12 - }, - "end": { - "line": 79, - "column": 56 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 3809, - "end": 3852, - "loc": { - "start": { - "line": 79, - "column": 12 - }, - "end": { - "line": 79, - "column": 55 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 3809, - "end": 3833, - "loc": { - "start": { - "line": 79, - "column": 12 - }, - "end": { - "line": 79, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 3809, - "end": 3822, - "loc": { - "start": { - "line": 79, - "column": 12 - }, - "end": { - "line": 79, - "column": 25 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 3823, - "end": 3833, - "loc": { - "start": { - "line": 79, - "column": 26 - }, - "end": { - "line": 79, - "column": 36 - }, - "identifierName": "initialPos" - }, - "name": "initialPos" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "ObjectExpression", - "start": 3836, - "end": 3852, - "loc": { - "start": { - "line": 79, - "column": 39 - }, - "end": { - "line": 79, - "column": 55 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3838, - "end": 3843, - "loc": { - "start": { - "line": 79, - "column": 41 - }, - "end": { - "line": 79, - "column": 46 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3838, - "end": 3839, - "loc": { - "start": { - "line": 79, - "column": 41 - }, - "end": { - "line": 79, - "column": 42 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "Identifier", - "start": 3841, - "end": 3843, - "loc": { - "start": { - "line": 79, - "column": 44 - }, - "end": { - "line": 79, - "column": 46 - }, - "identifierName": "pX" - }, - "name": "pX" - } - }, - { - "type": "ObjectProperty", - "start": 3845, - "end": 3850, - "loc": { - "start": { - "line": 79, - "column": 48 - }, - "end": { - "line": 79, - "column": 53 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3845, - "end": 3846, - "loc": { - "start": { - "line": 79, - "column": 48 - }, - "end": { - "line": 79, - "column": 49 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "Identifier", - "start": 3848, - "end": 3850, - "loc": { - "start": { - "line": 79, - "column": 51 - }, - "end": { - "line": 79, - "column": 53 - }, - "identifierName": "pY" - }, - "name": "pY" - } - } - ] - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Set the initial position.", - "start": 3767, - "end": 3795, - "loc": { - "start": { - "line": 78, - "column": 12 - }, - "end": { - "line": 78, - "column": 40 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " If this instance is set to loop, then it needs a left and right clone", - "start": 3867, - "end": 3939, - "loc": { - "start": { - "line": 80, - "column": 12 - }, - "end": { - "line": 80, - "column": 84 - } - } - } - ] - }, { "type": "IfStatement", - "start": 3953, - "end": 5502, + "start": 4036, + "end": 5585, "loc": { "start": { - "line": 81, + "line": 83, "column": 12 }, "end": { - "line": 110, + "line": 112, "column": 13 } }, "test": { "type": "MemberExpression", - "start": 3957, - "end": 3975, + "start": 4040, + "end": 4058, "loc": { "start": { - "line": 81, + "line": 83, "column": 16 }, "end": { - "line": 81, + "line": 83, "column": 34 } }, "object": { "type": "Identifier", - "start": 3957, - "end": 3970, + "start": 4040, + "end": 4053, "loc": { "start": { - "line": 81, + "line": 83, "column": 16 }, "end": { - "line": 81, + "line": 83, "column": 29 }, "identifierName": "pParallaxInfo" @@ -3444,15 +3635,15 @@ }, "property": { "type": "Identifier", - "start": 3971, - "end": 3975, + "start": 4054, + "end": 4058, "loc": { "start": { - "line": 81, + "line": 83, "column": 30 }, "end": { - "line": 81, + "line": 83, "column": 34 }, "identifierName": "loop" @@ -3464,59 +3655,59 @@ }, "consequent": { "type": "BlockStatement", - "start": 3977, - "end": 5502, + "start": 4060, + "end": 5585, "loc": { "start": { - "line": 81, + "line": 83, "column": 36 }, "end": { - "line": 110, + "line": 112, "column": 13 } }, "body": [ { "type": "VariableDeclaration", - "start": 4046, - "end": 4084, + "start": 4129, + "end": 4167, "loc": { "start": { - "line": 83, + "line": 85, "column": 16 }, "end": { - "line": 83, + "line": 85, "column": 54 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 4052, - "end": 4083, + "start": 4135, + "end": 4166, "loc": { "start": { - "line": 83, + "line": 85, "column": 22 }, "end": { - "line": 83, + "line": 85, "column": 53 } }, "id": { "type": "Identifier", - "start": 4052, - "end": 4056, + "start": 4135, + "end": 4139, "loc": { "start": { - "line": 83, + "line": 85, "column": 22 }, "end": { - "line": 83, + "line": 85, "column": 26 }, "identifierName": "left" @@ -3526,43 +3717,43 @@ }, "init": { "type": "CallExpression", - "start": 4059, - "end": 4083, + "start": 4142, + "end": 4166, "loc": { "start": { - "line": 83, + "line": 85, "column": 29 }, "end": { - "line": 83, + "line": 85, "column": 53 } }, "callee": { "type": "MemberExpression", - "start": 4059, - "end": 4071, + "start": 4142, + "end": 4154, "loc": { "start": { - "line": 83, + "line": 85, "column": 29 }, "end": { - "line": 83, + "line": 85, "column": 41 } }, "object": { "type": "Identifier", - "start": 4059, - "end": 4063, + "start": 4142, + "end": 4146, "loc": { "start": { - "line": 83, + "line": 85, "column": 29 }, "end": { - "line": 83, + "line": 85, "column": 33 }, "identifierName": "VYLO" @@ -3571,15 +3762,15 @@ }, "property": { "type": "Identifier", - "start": 4064, - "end": 4071, + "start": 4147, + "end": 4154, "loc": { "start": { - "line": 83, + "line": 85, "column": 34 }, "end": { - "line": 83, + "line": 85, "column": 41 }, "identifierName": "newDiob" @@ -3591,15 +3782,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 4072, - "end": 4082, + "start": 4155, + "end": 4165, "loc": { "start": { - "line": 83, + "line": 85, "column": 42 }, "end": { - "line": 83, + "line": 85, "column": 52 } }, @@ -3619,15 +3810,15 @@ { "type": "CommentLine", "value": " Create a left and right clone", - "start": 3996, - "end": 4028, + "start": 4079, + "end": 4111, "loc": { "start": { - "line": 82, + "line": 84, "column": 16 }, "end": { - "line": 82, + "line": 84, "column": 48 } } @@ -3636,44 +3827,44 @@ }, { "type": "VariableDeclaration", - "start": 4102, - "end": 4141, + "start": 4185, + "end": 4224, "loc": { "start": { - "line": 84, + "line": 86, "column": 16 }, "end": { - "line": 84, + "line": 86, "column": 55 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 4108, - "end": 4140, + "start": 4191, + "end": 4223, "loc": { "start": { - "line": 84, + "line": 86, "column": 22 }, "end": { - "line": 84, + "line": 86, "column": 54 } }, "id": { "type": "Identifier", - "start": 4108, - "end": 4113, + "start": 4191, + "end": 4196, "loc": { "start": { - "line": 84, + "line": 86, "column": 22 }, "end": { - "line": 84, + "line": 86, "column": 27 }, "identifierName": "right" @@ -3682,43 +3873,43 @@ }, "init": { "type": "CallExpression", - "start": 4116, - "end": 4140, + "start": 4199, + "end": 4223, "loc": { "start": { - "line": 84, + "line": 86, "column": 30 }, "end": { - "line": 84, + "line": 86, "column": 54 } }, "callee": { "type": "MemberExpression", - "start": 4116, - "end": 4128, + "start": 4199, + "end": 4211, "loc": { "start": { - "line": 84, + "line": 86, "column": 30 }, "end": { - "line": 84, + "line": 86, "column": 42 } }, "object": { "type": "Identifier", - "start": 4116, - "end": 4120, + "start": 4199, + "end": 4203, "loc": { "start": { - "line": 84, + "line": 86, "column": 30 }, "end": { - "line": 84, + "line": 86, "column": 34 }, "identifierName": "VYLO" @@ -3727,15 +3918,15 @@ }, "property": { "type": "Identifier", - "start": 4121, - "end": 4128, + "start": 4204, + "end": 4211, "loc": { "start": { - "line": 84, + "line": 86, "column": 35 }, "end": { - "line": 84, + "line": 86, "column": 42 }, "identifierName": "newDiob" @@ -3747,15 +3938,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 4129, - "end": 4139, + "start": 4212, + "end": 4222, "loc": { "start": { - "line": 84, + "line": 86, "column": 43 }, "end": { - "line": 84, + "line": 86, "column": 53 } }, @@ -3774,15 +3965,15 @@ { "type": "CommentLine", "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4159, - "end": 4238, + "start": 4242, + "end": 4321, "loc": { "start": { - "line": 85, + "line": 87, "column": 16 }, "end": { - "line": 85, + "line": 87, "column": 95 } } @@ -3791,57 +3982,57 @@ }, { "type": "ExpressionStatement", - "start": 4256, - "end": 4286, + "start": 4339, + "end": 4369, "loc": { "start": { - "line": 86, + "line": 88, "column": 16 }, "end": { - "line": 86, + "line": 88, "column": 46 } }, "expression": { "type": "CallExpression", - "start": 4256, - "end": 4285, + "start": 4339, + "end": 4368, "loc": { "start": { - "line": 86, + "line": 88, "column": 16 }, "end": { - "line": 86, + "line": 88, "column": 45 } }, "callee": { "type": "MemberExpression", - "start": 4256, - "end": 4274, + "start": 4339, + "end": 4357, "loc": { "start": { - "line": 86, + "line": 88, "column": 16 }, "end": { - "line": 86, + "line": 88, "column": 34 } }, "object": { "type": "Identifier", - "start": 4256, - "end": 4260, + "start": 4339, + "end": 4343, "loc": { "start": { - "line": 86, + "line": 88, "column": 16 }, "end": { - "line": 86, + "line": 88, "column": 20 }, "identifierName": "left" @@ -3851,15 +4042,15 @@ }, "property": { "type": "Identifier", - "start": 4261, - "end": 4274, + "start": 4344, + "end": 4357, "loc": { "start": { - "line": 86, + "line": 88, "column": 21 }, "end": { - "line": 86, + "line": 88, "column": 34 }, "identifierName": "setAppearance" @@ -3872,15 +4063,15 @@ "arguments": [ { "type": "Identifier", - "start": 4275, - "end": 4284, + "start": 4358, + "end": 4367, "loc": { "start": { - "line": 86, + "line": 88, "column": 35 }, "end": { - "line": 86, + "line": 88, "column": 44 }, "identifierName": "pInstance" @@ -3894,15 +4085,15 @@ { "type": "CommentLine", "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4159, - "end": 4238, + "start": 4242, + "end": 4321, "loc": { "start": { - "line": 85, + "line": 87, "column": 16 }, "end": { - "line": 85, + "line": 87, "column": 95 } } @@ -3911,57 +4102,57 @@ }, { "type": "ExpressionStatement", - "start": 4304, - "end": 4335, + "start": 4387, + "end": 4418, "loc": { "start": { - "line": 87, + "line": 89, "column": 16 }, "end": { - "line": 87, + "line": 89, "column": 47 } }, "expression": { "type": "CallExpression", - "start": 4304, - "end": 4334, + "start": 4387, + "end": 4417, "loc": { "start": { - "line": 87, + "line": 89, "column": 16 }, "end": { - "line": 87, + "line": 89, "column": 46 } }, "callee": { "type": "MemberExpression", - "start": 4304, - "end": 4323, + "start": 4387, + "end": 4406, "loc": { "start": { - "line": 87, + "line": 89, "column": 16 }, "end": { - "line": 87, + "line": 89, "column": 35 } }, "object": { "type": "Identifier", - "start": 4304, - "end": 4309, + "start": 4387, + "end": 4392, "loc": { "start": { - "line": 87, + "line": 89, "column": 16 }, "end": { - "line": 87, + "line": 89, "column": 21 }, "identifierName": "right" @@ -3970,15 +4161,15 @@ }, "property": { "type": "Identifier", - "start": 4310, - "end": 4323, + "start": 4393, + "end": 4406, "loc": { "start": { - "line": 87, + "line": 89, "column": 22 }, "end": { - "line": 87, + "line": 89, "column": 35 }, "identifierName": "setAppearance" @@ -3990,15 +4181,15 @@ "arguments": [ { "type": "Identifier", - "start": 4324, - "end": 4333, + "start": 4407, + "end": 4416, "loc": { "start": { - "line": 87, + "line": 89, "column": 36 }, "end": { - "line": 87, + "line": 89, "column": 45 }, "identifierName": "pInstance" @@ -4011,15 +4202,15 @@ { "type": "CommentLine", "value": " Position the left clone", - "start": 4353, - "end": 4379, + "start": 4436, + "end": 4462, "loc": { "start": { - "line": 88, + "line": 90, "column": 16 }, "end": { - "line": 88, + "line": 90, "column": 42 } } @@ -4028,58 +4219,58 @@ }, { "type": "ExpressionStatement", - "start": 4397, - "end": 4432, + "start": 4480, + "end": 4515, "loc": { "start": { - "line": 89, + "line": 91, "column": 16 }, "end": { - "line": 89, + "line": 91, "column": 51 } }, "expression": { "type": "AssignmentExpression", - "start": 4397, - "end": 4431, + "start": 4480, + "end": 4514, "loc": { "start": { - "line": 89, + "line": 91, "column": 16 }, "end": { - "line": 89, + "line": 91, "column": 50 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 4397, - "end": 4403, + "start": 4480, + "end": 4486, "loc": { "start": { - "line": 89, + "line": 91, "column": 16 }, "end": { - "line": 89, + "line": 91, "column": 22 } }, "object": { "type": "Identifier", - "start": 4397, - "end": 4401, + "start": 4480, + "end": 4484, "loc": { "start": { - "line": 89, + "line": 91, "column": 16 }, "end": { - "line": 89, + "line": 91, "column": 20 }, "identifierName": "left" @@ -4089,15 +4280,15 @@ }, "property": { "type": "Identifier", - "start": 4402, - "end": 4403, + "start": 4485, + "end": 4486, "loc": { "start": { - "line": 89, + "line": 91, "column": 21 }, "end": { - "line": 89, + "line": 91, "column": 22 }, "identifierName": "x" @@ -4109,29 +4300,29 @@ }, "right": { "type": "BinaryExpression", - "start": 4406, - "end": 4431, + "start": 4489, + "end": 4514, "loc": { "start": { - "line": 89, + "line": 91, "column": 25 }, "end": { - "line": 89, + "line": 91, "column": 50 } }, "left": { "type": "Identifier", - "start": 4406, - "end": 4408, + "start": 4489, + "end": 4491, "loc": { "start": { - "line": 89, + "line": 91, "column": 25 }, "end": { - "line": 89, + "line": 91, "column": 27 }, "identifierName": "pX" @@ -4141,43 +4332,43 @@ "operator": "-", "right": { "type": "MemberExpression", - "start": 4411, - "end": 4431, + "start": 4494, + "end": 4514, "loc": { "start": { - "line": 89, + "line": 91, "column": 30 }, "end": { - "line": 89, + "line": 91, "column": 50 } }, "object": { "type": "MemberExpression", - "start": 4411, - "end": 4425, + "start": 4494, + "end": 4508, "loc": { "start": { - "line": 89, + "line": 91, "column": 30 }, "end": { - "line": 89, + "line": 91, "column": 44 } }, "object": { "type": "Identifier", - "start": 4411, - "end": 4420, + "start": 4494, + "end": 4503, "loc": { "start": { - "line": 89, + "line": 91, "column": 30 }, "end": { - "line": 89, + "line": 91, "column": 39 }, "identifierName": "pInstance" @@ -4186,15 +4377,15 @@ }, "property": { "type": "Identifier", - "start": 4421, - "end": 4425, + "start": 4504, + "end": 4508, "loc": { "start": { - "line": 89, + "line": 91, "column": 40 }, "end": { - "line": 89, + "line": 91, "column": 44 }, "identifierName": "icon" @@ -4205,15 +4396,15 @@ }, "property": { "type": "Identifier", - "start": 4426, - "end": 4431, + "start": 4509, + "end": 4514, "loc": { "start": { - "line": 89, + "line": 91, "column": 45 }, "end": { - "line": 89, + "line": 91, "column": 50 }, "identifierName": "width" @@ -4229,15 +4420,15 @@ { "type": "CommentLine", "value": " Position the left clone", - "start": 4353, - "end": 4379, + "start": 4436, + "end": 4462, "loc": { "start": { - "line": 88, + "line": 90, "column": 16 }, "end": { - "line": 88, + "line": 90, "column": 42 } } @@ -4246,58 +4437,58 @@ }, { "type": "ExpressionStatement", - "start": 4450, - "end": 4462, + "start": 4533, + "end": 4545, "loc": { "start": { - "line": 90, + "line": 92, "column": 16 }, "end": { - "line": 90, + "line": 92, "column": 28 } }, "expression": { "type": "AssignmentExpression", - "start": 4450, - "end": 4461, + "start": 4533, + "end": 4544, "loc": { "start": { - "line": 90, + "line": 92, "column": 16 }, "end": { - "line": 90, + "line": 92, "column": 27 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 4450, - "end": 4456, + "start": 4533, + "end": 4539, "loc": { "start": { - "line": 90, + "line": 92, "column": 16 }, "end": { - "line": 90, + "line": 92, "column": 22 } }, "object": { "type": "Identifier", - "start": 4450, - "end": 4454, + "start": 4533, + "end": 4537, "loc": { "start": { - "line": 90, + "line": 92, "column": 16 }, "end": { - "line": 90, + "line": 92, "column": 20 }, "identifierName": "left" @@ -4306,15 +4497,15 @@ }, "property": { "type": "Identifier", - "start": 4455, - "end": 4456, + "start": 4538, + "end": 4539, "loc": { "start": { - "line": 90, + "line": 92, "column": 21 }, "end": { - "line": 90, + "line": 92, "column": 22 }, "identifierName": "y" @@ -4325,15 +4516,15 @@ }, "right": { "type": "Identifier", - "start": 4459, - "end": 4461, + "start": 4542, + "end": 4544, "loc": { "start": { - "line": 90, + "line": 92, "column": 25 }, "end": { - "line": 90, + "line": 92, "column": 27 }, "identifierName": "pY" @@ -4345,15 +4536,15 @@ { "type": "CommentLine", "value": " Position the right clone", - "start": 4480, - "end": 4507, + "start": 4563, + "end": 4590, "loc": { "start": { - "line": 91, + "line": 93, "column": 16 }, "end": { - "line": 91, + "line": 93, "column": 43 } } @@ -4362,58 +4553,58 @@ }, { "type": "ExpressionStatement", - "start": 4525, - "end": 4561, + "start": 4608, + "end": 4644, "loc": { "start": { - "line": 92, + "line": 94, "column": 16 }, "end": { - "line": 92, + "line": 94, "column": 52 } }, "expression": { "type": "AssignmentExpression", - "start": 4525, - "end": 4560, + "start": 4608, + "end": 4643, "loc": { "start": { - "line": 92, + "line": 94, "column": 16 }, "end": { - "line": 92, + "line": 94, "column": 51 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 4525, - "end": 4532, + "start": 4608, + "end": 4615, "loc": { "start": { - "line": 92, + "line": 94, "column": 16 }, "end": { - "line": 92, + "line": 94, "column": 23 } }, "object": { "type": "Identifier", - "start": 4525, - "end": 4530, + "start": 4608, + "end": 4613, "loc": { "start": { - "line": 92, + "line": 94, "column": 16 }, "end": { - "line": 92, + "line": 94, "column": 21 }, "identifierName": "right" @@ -4423,15 +4614,15 @@ }, "property": { "type": "Identifier", - "start": 4531, - "end": 4532, + "start": 4614, + "end": 4615, "loc": { "start": { - "line": 92, + "line": 94, "column": 22 }, "end": { - "line": 92, + "line": 94, "column": 23 }, "identifierName": "x" @@ -4443,29 +4634,29 @@ }, "right": { "type": "BinaryExpression", - "start": 4535, - "end": 4560, + "start": 4618, + "end": 4643, "loc": { "start": { - "line": 92, + "line": 94, "column": 26 }, "end": { - "line": 92, + "line": 94, "column": 51 } }, "left": { "type": "Identifier", - "start": 4535, - "end": 4537, + "start": 4618, + "end": 4620, "loc": { "start": { - "line": 92, + "line": 94, "column": 26 }, "end": { - "line": 92, + "line": 94, "column": 28 }, "identifierName": "pX" @@ -4475,43 +4666,43 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 4540, - "end": 4560, + "start": 4623, + "end": 4643, "loc": { "start": { - "line": 92, + "line": 94, "column": 31 }, "end": { - "line": 92, + "line": 94, "column": 51 } }, "object": { "type": "MemberExpression", - "start": 4540, - "end": 4554, + "start": 4623, + "end": 4637, "loc": { "start": { - "line": 92, + "line": 94, "column": 31 }, "end": { - "line": 92, + "line": 94, "column": 45 } }, "object": { "type": "Identifier", - "start": 4540, - "end": 4549, + "start": 4623, + "end": 4632, "loc": { "start": { - "line": 92, + "line": 94, "column": 31 }, "end": { - "line": 92, + "line": 94, "column": 40 }, "identifierName": "pInstance" @@ -4520,15 +4711,15 @@ }, "property": { "type": "Identifier", - "start": 4550, - "end": 4554, + "start": 4633, + "end": 4637, "loc": { "start": { - "line": 92, + "line": 94, "column": 41 }, "end": { - "line": 92, + "line": 94, "column": 45 }, "identifierName": "icon" @@ -4539,15 +4730,15 @@ }, "property": { "type": "Identifier", - "start": 4555, - "end": 4560, + "start": 4638, + "end": 4643, "loc": { "start": { - "line": 92, + "line": 94, "column": 46 }, "end": { - "line": 92, + "line": 94, "column": 51 }, "identifierName": "width" @@ -4563,15 +4754,15 @@ { "type": "CommentLine", "value": " Position the right clone", - "start": 4480, - "end": 4507, + "start": 4563, + "end": 4590, "loc": { "start": { - "line": 91, + "line": 93, "column": 16 }, "end": { - "line": 91, + "line": 93, "column": 43 } } @@ -4580,58 +4771,58 @@ }, { "type": "ExpressionStatement", - "start": 4579, - "end": 4592, + "start": 4662, + "end": 4675, "loc": { "start": { - "line": 93, + "line": 95, "column": 16 }, "end": { - "line": 93, + "line": 95, "column": 29 } }, "expression": { "type": "AssignmentExpression", - "start": 4579, - "end": 4591, + "start": 4662, + "end": 4674, "loc": { "start": { - "line": 93, + "line": 95, "column": 16 }, "end": { - "line": 93, + "line": 95, "column": 28 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 4579, - "end": 4586, + "start": 4662, + "end": 4669, "loc": { "start": { - "line": 93, + "line": 95, "column": 16 }, "end": { - "line": 93, + "line": 95, "column": 23 } }, "object": { "type": "Identifier", - "start": 4579, - "end": 4584, + "start": 4662, + "end": 4667, "loc": { "start": { - "line": 93, + "line": 95, "column": 16 }, "end": { - "line": 93, + "line": 95, "column": 21 }, "identifierName": "right" @@ -4640,15 +4831,15 @@ }, "property": { "type": "Identifier", - "start": 4585, - "end": 4586, + "start": 4668, + "end": 4669, "loc": { "start": { - "line": 93, + "line": 95, "column": 22 }, "end": { - "line": 93, + "line": 95, "column": 23 }, "identifierName": "y" @@ -4659,15 +4850,15 @@ }, "right": { "type": "Identifier", - "start": 4589, - "end": 4591, + "start": 4672, + "end": 4674, "loc": { "start": { - "line": 93, + "line": 95, "column": 26 }, "end": { - "line": 93, + "line": 95, "column": 28 }, "identifierName": "pY" @@ -4679,15 +4870,15 @@ { "type": "CommentLine", "value": " Store the clones in a temporary array", - "start": 4610, - "end": 4650, + "start": 4693, + "end": 4733, "loc": { "start": { - "line": 94, + "line": 96, "column": 16 }, "end": { - "line": 94, + "line": 96, "column": 56 } } @@ -4696,44 +4887,44 @@ }, { "type": "VariableDeclaration", - "start": 4668, - "end": 4699, + "start": 4751, + "end": 4782, "loc": { "start": { - "line": 95, + "line": 97, "column": 16 }, "end": { - "line": 95, + "line": 97, "column": 47 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 4674, - "end": 4698, + "start": 4757, + "end": 4781, "loc": { "start": { - "line": 95, + "line": 97, "column": 22 }, "end": { - "line": 95, + "line": 97, "column": 46 } }, "id": { "type": "Identifier", - "start": 4674, - "end": 4682, + "start": 4757, + "end": 4765, "loc": { "start": { - "line": 95, + "line": 97, "column": 22 }, "end": { - "line": 95, + "line": 97, "column": 30 }, "identifierName": "children" @@ -4743,30 +4934,30 @@ }, "init": { "type": "ArrayExpression", - "start": 4685, - "end": 4698, + "start": 4768, + "end": 4781, "loc": { "start": { - "line": 95, + "line": 97, "column": 33 }, "end": { - "line": 95, + "line": 97, "column": 46 } }, "elements": [ { "type": "Identifier", - "start": 4686, - "end": 4690, + "start": 4769, + "end": 4773, "loc": { "start": { - "line": 95, + "line": 97, "column": 34 }, "end": { - "line": 95, + "line": 97, "column": 38 }, "identifierName": "left" @@ -4775,15 +4966,15 @@ }, { "type": "Identifier", - "start": 4692, - "end": 4697, + "start": 4775, + "end": 4780, "loc": { "start": { - "line": 95, + "line": 97, "column": 40 }, "end": { - "line": 95, + "line": 97, "column": 45 }, "identifierName": "right" @@ -4800,15 +4991,15 @@ { "type": "CommentLine", "value": " Store the clones in a temporary array", - "start": 4610, - "end": 4650, + "start": 4693, + "end": 4733, "loc": { "start": { - "line": 94, + "line": 96, "column": 16 }, "end": { - "line": 94, + "line": 96, "column": 56 } } @@ -4818,15 +5009,15 @@ { "type": "CommentLine", "value": " Loop the clones and store their relative positions to the main instance", - "start": 4717, - "end": 4791, + "start": 4800, + "end": 4874, "loc": { "start": { - "line": 96, + "line": 98, "column": 16 }, "end": { - "line": 96, + "line": 98, "column": 90 } } @@ -4835,57 +5026,57 @@ }, { "type": "ExpressionStatement", - "start": 4809, - "end": 4970, + "start": 4892, + "end": 5053, "loc": { "start": { - "line": 97, + "line": 99, "column": 16 }, "end": { - "line": 100, + "line": 102, "column": 19 } }, "expression": { "type": "CallExpression", - "start": 4809, - "end": 4969, + "start": 4892, + "end": 5052, "loc": { "start": { - "line": 97, + "line": 99, "column": 16 }, "end": { - "line": 100, + "line": 102, "column": 18 } }, "callee": { "type": "MemberExpression", - "start": 4809, - "end": 4825, + "start": 4892, + "end": 4908, "loc": { "start": { - "line": 97, + "line": 99, "column": 16 }, "end": { - "line": 97, + "line": 99, "column": 32 } }, "object": { "type": "Identifier", - "start": 4809, - "end": 4817, + "start": 4892, + "end": 4900, "loc": { "start": { - "line": 97, + "line": 99, "column": 16 }, "end": { - "line": 97, + "line": 99, "column": 24 }, "identifierName": "children" @@ -4895,15 +5086,15 @@ }, "property": { "type": "Identifier", - "start": 4818, - "end": 4825, + "start": 4901, + "end": 4908, "loc": { "start": { - "line": 97, + "line": 99, "column": 25 }, "end": { - "line": 97, + "line": 99, "column": 32 }, "identifierName": "forEach" @@ -4916,15 +5107,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 4826, - "end": 4968, + "start": 4909, + "end": 5051, "loc": { "start": { - "line": 97, + "line": 99, "column": 33 }, "end": { - "line": 100, + "line": 102, "column": 17 } }, @@ -4935,15 +5126,15 @@ "params": [ { "type": "Identifier", - "start": 4827, - "end": 4833, + "start": 4910, + "end": 4916, "loc": { "start": { - "line": 97, + "line": 99, "column": 34 }, "end": { - "line": 97, + "line": 99, "column": 40 }, "identifierName": "pChild" @@ -4953,73 +5144,73 @@ ], "body": { "type": "BlockStatement", - "start": 4838, - "end": 4968, + "start": 4921, + "end": 5051, "loc": { "start": { - "line": 97, + "line": 99, "column": 45 }, "end": { - "line": 100, + "line": 102, "column": 17 } }, "body": [ { "type": "ExpressionStatement", - "start": 4861, - "end": 4894, + "start": 4944, + "end": 4977, "loc": { "start": { - "line": 98, + "line": 100, "column": 20 }, "end": { - "line": 98, + "line": 100, "column": 53 } }, "expression": { "type": "AssignmentExpression", - "start": 4861, - "end": 4893, + "start": 4944, + "end": 4976, "loc": { "start": { - "line": 98, + "line": 100, "column": 20 }, "end": { - "line": 98, + "line": 100, "column": 52 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 4861, - "end": 4877, + "start": 4944, + "end": 4960, "loc": { "start": { - "line": 98, + "line": 100, "column": 20 }, "end": { - "line": 98, + "line": 100, "column": 36 } }, "object": { "type": "Identifier", - "start": 4861, - "end": 4867, + "start": 4944, + "end": 4950, "loc": { "start": { - "line": 98, + "line": 100, "column": 20 }, "end": { - "line": 98, + "line": 100, "column": 26 }, "identifierName": "pChild" @@ -5028,15 +5219,15 @@ }, "property": { "type": "Identifier", - "start": 4868, - "end": 4877, + "start": 4951, + "end": 4960, "loc": { "start": { - "line": 98, + "line": 100, "column": 27 }, "end": { - "line": 98, + "line": 100, "column": 36 }, "identifierName": "relativeX" @@ -5047,43 +5238,43 @@ }, "right": { "type": "BinaryExpression", - "start": 4880, - "end": 4893, + "start": 4963, + "end": 4976, "loc": { "start": { - "line": 98, + "line": 100, "column": 39 }, "end": { - "line": 98, + "line": 100, "column": 52 } }, "left": { "type": "MemberExpression", - "start": 4880, - "end": 4888, + "start": 4963, + "end": 4971, "loc": { "start": { - "line": 98, + "line": 100, "column": 39 }, "end": { - "line": 98, + "line": 100, "column": 47 } }, "object": { "type": "Identifier", - "start": 4880, - "end": 4886, + "start": 4963, + "end": 4969, "loc": { "start": { - "line": 98, + "line": 100, "column": 39 }, "end": { - "line": 98, + "line": 100, "column": 45 }, "identifierName": "pChild" @@ -5092,15 +5283,15 @@ }, "property": { "type": "Identifier", - "start": 4887, - "end": 4888, + "start": 4970, + "end": 4971, "loc": { "start": { - "line": 98, + "line": 100, "column": 46 }, "end": { - "line": 98, + "line": 100, "column": 47 }, "identifierName": "x" @@ -5112,15 +5303,15 @@ "operator": "-", "right": { "type": "Identifier", - "start": 4891, - "end": 4893, + "start": 4974, + "end": 4976, "loc": { "start": { - "line": 98, + "line": 100, "column": 50 }, "end": { - "line": 98, + "line": 100, "column": 52 }, "identifierName": "pX" @@ -5132,58 +5323,58 @@ }, { "type": "ExpressionStatement", - "start": 4916, - "end": 4949, + "start": 4999, + "end": 5032, "loc": { "start": { - "line": 99, + "line": 101, "column": 20 }, "end": { - "line": 99, + "line": 101, "column": 53 } }, "expression": { "type": "AssignmentExpression", - "start": 4916, - "end": 4948, + "start": 4999, + "end": 5031, "loc": { "start": { - "line": 99, + "line": 101, "column": 20 }, "end": { - "line": 99, + "line": 101, "column": 52 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 4916, - "end": 4932, + "start": 4999, + "end": 5015, "loc": { "start": { - "line": 99, + "line": 101, "column": 20 }, "end": { - "line": 99, + "line": 101, "column": 36 } }, "object": { "type": "Identifier", - "start": 4916, - "end": 4922, + "start": 4999, + "end": 5005, "loc": { "start": { - "line": 99, + "line": 101, "column": 20 }, "end": { - "line": 99, + "line": 101, "column": 26 }, "identifierName": "pChild" @@ -5192,15 +5383,15 @@ }, "property": { "type": "Identifier", - "start": 4923, - "end": 4932, + "start": 5006, + "end": 5015, "loc": { "start": { - "line": 99, + "line": 101, "column": 27 }, "end": { - "line": 99, + "line": 101, "column": 36 }, "identifierName": "relativeY" @@ -5211,43 +5402,43 @@ }, "right": { "type": "BinaryExpression", - "start": 4935, - "end": 4948, + "start": 5018, + "end": 5031, "loc": { "start": { - "line": 99, + "line": 101, "column": 39 }, "end": { - "line": 99, + "line": 101, "column": 52 } }, "left": { "type": "MemberExpression", - "start": 4935, - "end": 4943, + "start": 5018, + "end": 5026, "loc": { "start": { - "line": 99, + "line": 101, "column": 39 }, "end": { - "line": 99, + "line": 101, "column": 47 } }, "object": { "type": "Identifier", - "start": 4935, - "end": 4941, + "start": 5018, + "end": 5024, "loc": { "start": { - "line": 99, + "line": 101, "column": 39 }, "end": { - "line": 99, + "line": 101, "column": 45 }, "identifierName": "pChild" @@ -5256,15 +5447,15 @@ }, "property": { "type": "Identifier", - "start": 4942, - "end": 4943, + "start": 5025, + "end": 5026, "loc": { "start": { - "line": 99, + "line": 101, "column": 46 }, "end": { - "line": 99, + "line": 101, "column": 47 }, "identifierName": "y" @@ -5276,15 +5467,15 @@ "operator": "-", "right": { "type": "Identifier", - "start": 4946, - "end": 4948, + "start": 5029, + "end": 5031, "loc": { "start": { - "line": 99, + "line": 101, "column": 50 }, "end": { - "line": 99, + "line": 101, "column": 52 }, "identifierName": "pY" @@ -5305,15 +5496,15 @@ { "type": "CommentLine", "value": " Loop the clones and store their relative positions to the main instance", - "start": 4717, - "end": 4791, + "start": 4800, + "end": 4874, "loc": { "start": { - "line": 96, + "line": 98, "column": 16 }, "end": { - "line": 96, + "line": 98, "column": 90 } } @@ -5323,15 +5514,15 @@ { "type": "CommentLine", "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 4988, - "end": 5072, + "start": 5071, + "end": 5155, "loc": { "start": { - "line": 101, + "line": 103, "column": 16 }, "end": { - "line": 101, + "line": 103, "column": 100 } } @@ -5340,58 +5531,58 @@ }, { "type": "ExpressionStatement", - "start": 5090, - "end": 5487, + "start": 5173, + "end": 5570, "loc": { "start": { - "line": 102, + "line": 104, "column": 16 }, "end": { - "line": 109, + "line": 111, "column": 17 } }, "expression": { "type": "AssignmentExpression", - "start": 5090, - "end": 5487, + "start": 5173, + "end": 5570, "loc": { "start": { - "line": 102, + "line": 104, "column": 16 }, "end": { - "line": 109, + "line": 111, "column": 17 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 5090, - "end": 5111, + "start": 5173, + "end": 5194, "loc": { "start": { - "line": 102, + "line": 104, "column": 16 }, "end": { - "line": 102, + "line": 104, "column": 37 } }, "object": { "type": "Identifier", - "start": 5090, - "end": 5099, + "start": 5173, + "end": 5182, "loc": { "start": { - "line": 102, + "line": 104, "column": 16 }, "end": { - "line": 102, + "line": 104, "column": 25 }, "identifierName": "pInstance" @@ -5401,15 +5592,15 @@ }, "property": { "type": "Identifier", - "start": 5100, - "end": 5111, + "start": 5183, + "end": 5194, "loc": { "start": { - "line": 102, + "line": 104, "column": 26 }, "end": { - "line": 102, + "line": 104, "column": 37 }, "identifierName": "onRelocated" @@ -5421,15 +5612,15 @@ }, "right": { "type": "FunctionExpression", - "start": 5114, - "end": 5487, + "start": 5197, + "end": 5570, "loc": { "start": { - "line": 102, + "line": 104, "column": 40 }, "end": { - "line": 109, + "line": 111, "column": 17 } }, @@ -5440,15 +5631,15 @@ "params": [ { "type": "Identifier", - "start": 5123, - "end": 5125, + "start": 5206, + "end": 5208, "loc": { "start": { - "line": 102, + "line": 104, "column": 49 }, "end": { - "line": 102, + "line": 104, "column": 51 }, "identifierName": "pX" @@ -5457,15 +5648,15 @@ }, { "type": "Identifier", - "start": 5127, - "end": 5129, + "start": 5210, + "end": 5212, "loc": { "start": { - "line": 102, + "line": 104, "column": 53 }, "end": { - "line": 102, + "line": 104, "column": 55 }, "identifierName": "pY" @@ -5475,72 +5666,72 @@ ], "body": { "type": "BlockStatement", - "start": 5131, - "end": 5487, + "start": 5214, + "end": 5570, "loc": { "start": { - "line": 102, + "line": 104, "column": 57 }, "end": { - "line": 109, + "line": 111, "column": 17 } }, "body": [ { "type": "ExpressionStatement", - "start": 5231, - "end": 5468, + "start": 5314, + "end": 5551, "loc": { "start": { - "line": 104, + "line": 106, "column": 20 }, "end": { - "line": 108, + "line": 110, "column": 23 } }, "expression": { "type": "CallExpression", - "start": 5231, - "end": 5467, + "start": 5314, + "end": 5550, "loc": { "start": { - "line": 104, + "line": 106, "column": 20 }, "end": { - "line": 108, + "line": 110, "column": 22 } }, "callee": { "type": "MemberExpression", - "start": 5231, - "end": 5247, + "start": 5314, + "end": 5330, "loc": { "start": { - "line": 104, + "line": 106, "column": 20 }, "end": { - "line": 104, + "line": 106, "column": 36 } }, "object": { "type": "Identifier", - "start": 5231, - "end": 5239, + "start": 5314, + "end": 5322, "loc": { "start": { - "line": 104, + "line": 106, "column": 20 }, "end": { - "line": 104, + "line": 106, "column": 28 }, "identifierName": "children" @@ -5550,15 +5741,15 @@ }, "property": { "type": "Identifier", - "start": 5240, - "end": 5247, + "start": 5323, + "end": 5330, "loc": { "start": { - "line": 104, + "line": 106, "column": 29 }, "end": { - "line": 104, + "line": 106, "column": 36 }, "identifierName": "forEach" @@ -5571,15 +5762,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 5248, - "end": 5466, + "start": 5331, + "end": 5549, "loc": { "start": { - "line": 104, + "line": 106, "column": 37 }, "end": { - "line": 108, + "line": 110, "column": 21 } }, @@ -5590,15 +5781,15 @@ "params": [ { "type": "Identifier", - "start": 5249, - "end": 5255, + "start": 5332, + "end": 5338, "loc": { "start": { - "line": 104, + "line": 106, "column": 38 }, "end": { - "line": 104, + "line": 106, "column": 44 }, "identifierName": "pChild" @@ -5608,73 +5799,73 @@ ], "body": { "type": "BlockStatement", - "start": 5260, - "end": 5466, + "start": 5343, + "end": 5549, "loc": { "start": { - "line": 104, + "line": 106, "column": 49 }, "end": { - "line": 108, + "line": 110, "column": 21 } }, "body": [ { "type": "ExpressionStatement", - "start": 5287, - "end": 5324, + "start": 5370, + "end": 5407, "loc": { "start": { - "line": 105, + "line": 107, "column": 24 }, "end": { - "line": 105, + "line": 107, "column": 61 } }, "expression": { "type": "AssignmentExpression", - "start": 5287, - "end": 5323, + "start": 5370, + "end": 5406, "loc": { "start": { - "line": 105, + "line": 107, "column": 24 }, "end": { - "line": 105, + "line": 107, "column": 60 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 5287, - "end": 5295, + "start": 5370, + "end": 5378, "loc": { "start": { - "line": 105, + "line": 107, "column": 24 }, "end": { - "line": 105, + "line": 107, "column": 32 } }, "object": { "type": "Identifier", - "start": 5287, - "end": 5293, + "start": 5370, + "end": 5376, "loc": { "start": { - "line": 105, + "line": 107, "column": 24 }, "end": { - "line": 105, + "line": 107, "column": 30 }, "identifierName": "pChild" @@ -5683,15 +5874,15 @@ }, "property": { "type": "Identifier", - "start": 5294, - "end": 5295, + "start": 5377, + "end": 5378, "loc": { "start": { - "line": 105, + "line": 107, "column": 31 }, "end": { - "line": 105, + "line": 107, "column": 32 }, "identifierName": "x" @@ -5702,58 +5893,58 @@ }, "right": { "type": "BinaryExpression", - "start": 5298, - "end": 5323, + "start": 5381, + "end": 5406, "loc": { "start": { - "line": 105, + "line": 107, "column": 35 }, "end": { - "line": 105, + "line": 107, "column": 60 } }, "left": { "type": "MemberExpression", - "start": 5298, - "end": 5304, + "start": 5381, + "end": 5387, "loc": { "start": { - "line": 105, + "line": 107, "column": 35 }, "end": { - "line": 105, + "line": 107, "column": 41 } }, "object": { "type": "ThisExpression", - "start": 5298, - "end": 5302, + "start": 5381, + "end": 5385, "loc": { "start": { - "line": 105, + "line": 107, "column": 35 }, "end": { - "line": 105, + "line": 107, "column": 39 } } }, "property": { "type": "Identifier", - "start": 5303, - "end": 5304, + "start": 5386, + "end": 5387, "loc": { "start": { - "line": 105, + "line": 107, "column": 40 }, "end": { - "line": 105, + "line": 107, "column": 41 }, "identifierName": "x" @@ -5765,29 +5956,29 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 5307, - "end": 5323, + "start": 5390, + "end": 5406, "loc": { "start": { - "line": 105, + "line": 107, "column": 44 }, "end": { - "line": 105, + "line": 107, "column": 60 } }, "object": { "type": "Identifier", - "start": 5307, - "end": 5313, + "start": 5390, + "end": 5396, "loc": { "start": { - "line": 105, + "line": 107, "column": 44 }, "end": { - "line": 105, + "line": 107, "column": 50 }, "identifierName": "pChild" @@ -5796,15 +5987,15 @@ }, "property": { "type": "Identifier", - "start": 5314, - "end": 5323, + "start": 5397, + "end": 5406, "loc": { "start": { - "line": 105, + "line": 107, "column": 51 }, "end": { - "line": 105, + "line": 107, "column": 60 }, "identifierName": "relativeX" @@ -5818,58 +6009,58 @@ }, { "type": "ExpressionStatement", - "start": 5350, - "end": 5387, + "start": 5433, + "end": 5470, "loc": { "start": { - "line": 106, + "line": 108, "column": 24 }, "end": { - "line": 106, + "line": 108, "column": 61 } }, "expression": { "type": "AssignmentExpression", - "start": 5350, - "end": 5386, + "start": 5433, + "end": 5469, "loc": { "start": { - "line": 106, + "line": 108, "column": 24 }, "end": { - "line": 106, + "line": 108, "column": 60 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 5350, - "end": 5358, + "start": 5433, + "end": 5441, "loc": { "start": { - "line": 106, + "line": 108, "column": 24 }, "end": { - "line": 106, + "line": 108, "column": 32 } }, "object": { "type": "Identifier", - "start": 5350, - "end": 5356, + "start": 5433, + "end": 5439, "loc": { "start": { - "line": 106, + "line": 108, "column": 24 }, "end": { - "line": 106, + "line": 108, "column": 30 }, "identifierName": "pChild" @@ -5878,15 +6069,15 @@ }, "property": { "type": "Identifier", - "start": 5357, - "end": 5358, + "start": 5440, + "end": 5441, "loc": { "start": { - "line": 106, + "line": 108, "column": 31 }, "end": { - "line": 106, + "line": 108, "column": 32 }, "identifierName": "y" @@ -5897,58 +6088,58 @@ }, "right": { "type": "BinaryExpression", - "start": 5361, - "end": 5386, + "start": 5444, + "end": 5469, "loc": { "start": { - "line": 106, + "line": 108, "column": 35 }, "end": { - "line": 106, + "line": 108, "column": 60 } }, "left": { "type": "MemberExpression", - "start": 5361, - "end": 5367, + "start": 5444, + "end": 5450, "loc": { "start": { - "line": 106, + "line": 108, "column": 35 }, "end": { - "line": 106, + "line": 108, "column": 41 } }, "object": { "type": "ThisExpression", - "start": 5361, - "end": 5365, + "start": 5444, + "end": 5448, "loc": { "start": { - "line": 106, + "line": 108, "column": 35 }, "end": { - "line": 106, + "line": 108, "column": 39 } } }, "property": { "type": "Identifier", - "start": 5366, - "end": 5367, + "start": 5449, + "end": 5450, "loc": { "start": { - "line": 106, + "line": 108, "column": 40 }, "end": { - "line": 106, + "line": 108, "column": 41 }, "identifierName": "y" @@ -5960,29 +6151,29 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 5370, - "end": 5386, + "start": 5453, + "end": 5469, "loc": { "start": { - "line": 106, + "line": 108, "column": 44 }, "end": { - "line": 106, + "line": 108, "column": 60 } }, "object": { "type": "Identifier", - "start": 5370, - "end": 5376, + "start": 5453, + "end": 5459, "loc": { "start": { - "line": 106, + "line": 108, "column": 44 }, "end": { - "line": 106, + "line": 108, "column": 50 }, "identifierName": "pChild" @@ -5991,15 +6182,15 @@ }, "property": { "type": "Identifier", - "start": 5377, - "end": 5386, + "start": 5460, + "end": 5469, "loc": { "start": { - "line": 106, + "line": 108, "column": 51 }, "end": { - "line": 106, + "line": 108, "column": 60 }, "identifierName": "relativeY" @@ -6013,58 +6204,58 @@ }, { "type": "ExpressionStatement", - "start": 5413, - "end": 5443, + "start": 5496, + "end": 5526, "loc": { "start": { - "line": 107, + "line": 109, "column": 24 }, "end": { - "line": 107, + "line": 109, "column": 54 } }, "expression": { "type": "AssignmentExpression", - "start": 5413, - "end": 5442, + "start": 5496, + "end": 5525, "loc": { "start": { - "line": 107, + "line": 109, "column": 24 }, "end": { - "line": 107, + "line": 109, "column": 53 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 5413, - "end": 5427, + "start": 5496, + "end": 5510, "loc": { "start": { - "line": 107, + "line": 109, "column": 24 }, "end": { - "line": 107, + "line": 109, "column": 38 } }, "object": { "type": "Identifier", - "start": 5413, - "end": 5419, + "start": 5496, + "end": 5502, "loc": { "start": { - "line": 107, + "line": 109, "column": 24 }, "end": { - "line": 107, + "line": 109, "column": 30 }, "identifierName": "pChild" @@ -6073,15 +6264,15 @@ }, "property": { "type": "Identifier", - "start": 5420, - "end": 5427, + "start": 5503, + "end": 5510, "loc": { "start": { - "line": 107, + "line": 109, "column": 31 }, "end": { - "line": 107, + "line": 109, "column": 38 }, "identifierName": "mapName" @@ -6092,44 +6283,44 @@ }, "right": { "type": "MemberExpression", - "start": 5430, - "end": 5442, + "start": 5513, + "end": 5525, "loc": { "start": { - "line": 107, + "line": 109, "column": 41 }, "end": { - "line": 107, + "line": 109, "column": 53 } }, "object": { "type": "ThisExpression", - "start": 5430, - "end": 5434, + "start": 5513, + "end": 5517, "loc": { "start": { - "line": 107, + "line": 109, "column": 41 }, "end": { - "line": 107, + "line": 109, "column": 45 } } }, "property": { "type": "Identifier", - "start": 5435, - "end": 5442, + "start": 5518, + "end": 5525, "loc": { "start": { - "line": 107, + "line": 109, "column": 46 }, "end": { - "line": 107, + "line": 109, "column": 53 }, "identifierName": "mapName" @@ -6151,15 +6342,15 @@ { "type": "CommentLine", "value": " Update the children's position when the parent moves", - "start": 5154, - "end": 5209, + "start": 5237, + "end": 5292, "loc": { "start": { - "line": 103, + "line": 105, "column": 20 }, "end": { - "line": 103, + "line": 105, "column": 75 } } @@ -6176,15 +6367,15 @@ { "type": "CommentLine", "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 4988, - "end": 5072, + "start": 5071, + "end": 5155, "loc": { "start": { - "line": 101, + "line": 103, "column": 16 }, "end": { - "line": 101, + "line": 103, "column": 100 } } @@ -6199,15 +6390,15 @@ { "type": "CommentLine", "value": " If this instance is set to loop, then it needs a left and right clone", - "start": 3867, - "end": 3939, + "start": 3950, + "end": 4022, "loc": { "start": { - "line": 80, + "line": 82, "column": 12 }, "end": { - "line": 80, + "line": 82, "column": 84 } } @@ -6216,58 +6407,58 @@ }, { "type": "ExpressionStatement", - "start": 5516, - "end": 5533, + "start": 5599, + "end": 5616, "loc": { "start": { - "line": 111, + "line": 113, "column": 12 }, "end": { - "line": 111, + "line": 113, "column": 29 } }, "expression": { "type": "AssignmentExpression", - "start": 5516, - "end": 5532, + "start": 5599, + "end": 5615, "loc": { "start": { - "line": 111, + "line": 113, "column": 12 }, "end": { - "line": 111, + "line": 113, "column": 28 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 5516, - "end": 5527, + "start": 5599, + "end": 5610, "loc": { "start": { - "line": 111, + "line": 113, "column": 12 }, "end": { - "line": 111, + "line": 113, "column": 23 } }, "object": { "type": "Identifier", - "start": 5516, - "end": 5525, + "start": 5599, + "end": 5608, "loc": { "start": { - "line": 111, + "line": 113, "column": 12 }, "end": { - "line": 111, + "line": 113, "column": 21 }, "identifierName": "pInstance" @@ -6276,15 +6467,15 @@ }, "property": { "type": "Identifier", - "start": 5526, - "end": 5527, + "start": 5609, + "end": 5610, "loc": { "start": { - "line": 111, + "line": 113, "column": 22 }, "end": { - "line": 111, + "line": 113, "column": 23 }, "identifierName": "x" @@ -6295,15 +6486,15 @@ }, "right": { "type": "Identifier", - "start": 5530, - "end": 5532, + "start": 5613, + "end": 5615, "loc": { "start": { - "line": 111, + "line": 113, "column": 26 }, "end": { - "line": 111, + "line": 113, "column": 28 }, "identifierName": "pX" @@ -6314,58 +6505,58 @@ }, { "type": "ExpressionStatement", - "start": 5547, - "end": 5564, + "start": 5630, + "end": 5647, "loc": { "start": { - "line": 112, + "line": 114, "column": 12 }, "end": { - "line": 112, + "line": 114, "column": 29 } }, "expression": { "type": "AssignmentExpression", - "start": 5547, - "end": 5563, + "start": 5630, + "end": 5646, "loc": { "start": { - "line": 112, + "line": 114, "column": 12 }, "end": { - "line": 112, + "line": 114, "column": 28 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 5547, - "end": 5558, + "start": 5630, + "end": 5641, "loc": { "start": { - "line": 112, + "line": 114, "column": 12 }, "end": { - "line": 112, + "line": 114, "column": 23 } }, "object": { "type": "Identifier", - "start": 5547, - "end": 5556, + "start": 5630, + "end": 5639, "loc": { "start": { - "line": 112, + "line": 114, "column": 12 }, "end": { - "line": 112, + "line": 114, "column": 21 }, "identifierName": "pInstance" @@ -6374,15 +6565,15 @@ }, "property": { "type": "Identifier", - "start": 5557, - "end": 5558, + "start": 5640, + "end": 5641, "loc": { "start": { - "line": 112, + "line": 114, "column": 22 }, "end": { - "line": 112, + "line": 114, "column": 23 }, "identifierName": "y" @@ -6393,15 +6584,15 @@ }, "right": { "type": "Identifier", - "start": 5561, - "end": 5563, + "start": 5644, + "end": 5646, "loc": { "start": { - "line": 112, + "line": 114, "column": 26 }, "end": { - "line": 112, + "line": 114, "column": 28 }, "identifierName": "pY" @@ -6412,58 +6603,58 @@ }, { "type": "ExpressionStatement", - "start": 5578, - "end": 5603, + "start": 5661, + "end": 5686, "loc": { "start": { - "line": 113, + "line": 115, "column": 12 }, "end": { - "line": 113, + "line": 115, "column": 37 } }, "expression": { "type": "AssignmentExpression", - "start": 5578, - "end": 5602, + "start": 5661, + "end": 5685, "loc": { "start": { - "line": 113, + "line": 115, "column": 12 }, "end": { - "line": 113, + "line": 115, "column": 36 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 5578, - "end": 5595, + "start": 5661, + "end": 5678, "loc": { "start": { - "line": 113, + "line": 115, "column": 12 }, "end": { - "line": 113, + "line": 115, "column": 29 } }, "object": { "type": "Identifier", - "start": 5578, - "end": 5587, + "start": 5661, + "end": 5670, "loc": { "start": { - "line": 113, + "line": 115, "column": 12 }, "end": { - "line": 113, + "line": 115, "column": 21 }, "identifierName": "pInstance" @@ -6472,15 +6663,15 @@ }, "property": { "type": "Identifier", - "start": 5588, - "end": 5595, + "start": 5671, + "end": 5678, "loc": { "start": { - "line": 113, + "line": 115, "column": 22 }, "end": { - "line": 113, + "line": 115, "column": 29 }, "identifierName": "mapName" @@ -6491,15 +6682,15 @@ }, "right": { "type": "Identifier", - "start": 5598, - "end": 5602, + "start": 5681, + "end": 5685, "loc": { "start": { - "line": 113, + "line": 115, "column": 32 }, "end": { - "line": 113, + "line": 115, "column": 36 }, "identifierName": "pMap" @@ -6513,129 +6704,129 @@ }, "alternate": { "type": "BlockStatement", - "start": 5620, - "end": 5780, + "start": 5703, + "end": 5863, "loc": { "start": { - "line": 114, + "line": 116, "column": 15 }, "end": { - "line": 116, + "line": 118, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 5635, - "end": 5769, + "start": 5718, + "end": 5852, "loc": { "start": { - "line": 115, + "line": 117, "column": 12 }, "end": { - "line": 115, + "line": 117, "column": 146 } }, "expression": { "type": "CallExpression", - "start": 5635, - "end": 5768, + "start": 5718, + "end": 5851, "loc": { "start": { - "line": 115, + "line": 117, "column": 12 }, "end": { - "line": 115, + "line": 117, "column": 145 } }, "callee": { "type": "MemberExpression", - "start": 5635, - "end": 5678, + "start": 5718, + "end": 5761, "loc": { "start": { - "line": 115, + "line": 117, "column": 12 }, "end": { - "line": 115, + "line": 117, "column": 55 } }, "object": { "type": "CallExpression", - "start": 5635, - "end": 5672, + "start": 5718, + "end": 5755, "loc": { "start": { - "line": 115, + "line": 117, "column": 12 }, "end": { - "line": 115, + "line": 117, "column": 49 } }, "callee": { "type": "MemberExpression", - "start": 5635, - "end": 5653, + "start": 5718, + "end": 5736, "loc": { "start": { - "line": 115, + "line": 117, "column": 12 }, "end": { - "line": 115, + "line": 117, "column": 30 } }, "object": { "type": "MemberExpression", - "start": 5635, - "end": 5646, + "start": 5718, + "end": 5729, "loc": { "start": { - "line": 115, + "line": 117, "column": 12 }, "end": { - "line": 115, + "line": 117, "column": 23 } }, "object": { "type": "ThisExpression", - "start": 5635, - "end": 5639, + "start": 5718, + "end": 5722, "loc": { "start": { - "line": 115, + "line": 117, "column": 12 }, "end": { - "line": 115, + "line": 117, "column": 16 } } }, "property": { "type": "Identifier", - "start": 5640, - "end": 5646, + "start": 5723, + "end": 5729, "loc": { "start": { - "line": 115, + "line": 117, "column": 17 }, "end": { - "line": 115, + "line": 117, "column": 23 }, "identifierName": "logger" @@ -6646,15 +6837,15 @@ }, "property": { "type": "Identifier", - "start": 5647, - "end": 5653, + "start": 5730, + "end": 5736, "loc": { "start": { - "line": 115, + "line": 117, "column": 24 }, "end": { - "line": 115, + "line": 117, "column": 30 }, "identifierName": "prefix" @@ -6666,15 +6857,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 5654, - "end": 5671, + "start": 5737, + "end": 5754, "loc": { "start": { - "line": 115, + "line": 117, "column": 31 }, "end": { - "line": 115, + "line": 117, "column": 48 } }, @@ -6688,15 +6879,15 @@ }, "property": { "type": "Identifier", - "start": 5673, - "end": 5678, + "start": 5756, + "end": 5761, "loc": { "start": { - "line": 115, + "line": 117, "column": 50 }, "end": { - "line": 115, + "line": 117, "column": 55 }, "identifierName": "error" @@ -6708,15 +6899,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 5679, - "end": 5767, + "start": 5762, + "end": 5850, "loc": { "start": { - "line": 115, + "line": 117, "column": 56 }, "end": { - "line": 115, + "line": 117, "column": 144 } }, @@ -6741,15 +6932,15 @@ { "type": "CommentBlock", "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", - "start": 2787, - "end": 3680, + "start": 2970, + "end": 3863, "loc": { "start": { - "line": 64, + "line": 68, "column": 4 }, "end": { - "line": 75, + "line": 79, "column": 7 } } @@ -6759,15 +6950,15 @@ { "type": "CommentBlock", "value": "*\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n ", - "start": 5793, - "end": 5940, + "start": 5876, + "end": 6023, "loc": { "start": { - "line": 118, + "line": 120, "column": 4 }, "end": { - "line": 121, + "line": 123, "column": 7 } } @@ -6776,15 +6967,15 @@ }, { "type": "ClassMethod", - "start": 5946, - "end": 6257, + "start": 6029, + "end": 6340, "loc": { "start": { - "line": 122, + "line": 124, "column": 4 }, "end": { - "line": 130, + "line": 132, "column": 5 } }, @@ -6792,15 +6983,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 5946, - "end": 5952, + "start": 6029, + "end": 6035, "loc": { "start": { - "line": 122, + "line": 124, "column": 4 }, "end": { - "line": 122, + "line": 124, "column": 10 }, "identifierName": "remove" @@ -6816,15 +7007,15 @@ "params": [ { "type": "Identifier", - "start": 5953, - "end": 5962, + "start": 6036, + "end": 6045, "loc": { "start": { - "line": 122, + "line": 124, "column": 11 }, "end": { - "line": 122, + "line": 124, "column": 20 }, "identifierName": "pInstance" @@ -6834,44 +7025,44 @@ ], "body": { "type": "BlockStatement", - "start": 5964, - "end": 6257, + "start": 6047, + "end": 6340, "loc": { "start": { - "line": 122, + "line": 124, "column": 22 }, "end": { - "line": 130, + "line": 132, "column": 5 } }, "body": [ { "type": "IfStatement", - "start": 5975, - "end": 6250, + "start": 6058, + "end": 6333, "loc": { "start": { - "line": 123, + "line": 125, "column": 8 }, "end": { - "line": 129, + "line": 131, "column": 9 } }, "test": { "type": "Identifier", - "start": 5979, - "end": 5988, + "start": 6062, + "end": 6071, "loc": { "start": { - "line": 123, + "line": 125, "column": 12 }, "end": { - "line": 123, + "line": 125, "column": 21 }, "identifierName": "pInstance" @@ -6880,101 +7071,101 @@ }, "consequent": { "type": "BlockStatement", - "start": 5990, - "end": 6150, + "start": 6073, + "end": 6233, "loc": { "start": { - "line": 123, + "line": 125, "column": 23 }, "end": { - "line": 127, + "line": 129, "column": 9 } }, "body": [ { "type": "IfStatement", - "start": 6005, - "end": 6139, + "start": 6088, + "end": 6222, "loc": { "start": { - "line": 124, + "line": 126, "column": 12 }, "end": { - "line": 126, + "line": 128, "column": 13 } }, "test": { "type": "CallExpression", - "start": 6009, - "end": 6043, + "start": 6092, + "end": 6126, "loc": { "start": { - "line": 124, + "line": 126, "column": 16 }, "end": { - "line": 124, + "line": 126, "column": 50 } }, "callee": { "type": "MemberExpression", - "start": 6009, - "end": 6032, + "start": 6092, + "end": 6115, "loc": { "start": { - "line": 124, + "line": 126, "column": 16 }, "end": { - "line": 124, + "line": 126, "column": 39 } }, "object": { "type": "MemberExpression", - "start": 6009, - "end": 6023, + "start": 6092, + "end": 6106, "loc": { "start": { - "line": 124, + "line": 126, "column": 16 }, "end": { - "line": 124, + "line": 126, "column": 30 } }, "object": { "type": "ThisExpression", - "start": 6009, - "end": 6013, + "start": 6092, + "end": 6096, "loc": { "start": { - "line": 124, + "line": 126, "column": 16 }, "end": { - "line": 124, + "line": 126, "column": 20 } } }, "property": { "type": "Identifier", - "start": 6014, - "end": 6023, + "start": 6097, + "end": 6106, "loc": { "start": { - "line": 124, + "line": 126, "column": 21 }, "end": { - "line": 124, + "line": 126, "column": 30 }, "identifierName": "instances" @@ -6985,15 +7176,15 @@ }, "property": { "type": "Identifier", - "start": 6024, - "end": 6032, + "start": 6107, + "end": 6115, "loc": { "start": { - "line": 124, + "line": 126, "column": 31 }, "end": { - "line": 124, + "line": 126, "column": 39 }, "identifierName": "includes" @@ -7005,15 +7196,15 @@ "arguments": [ { "type": "Identifier", - "start": 6033, - "end": 6042, + "start": 6116, + "end": 6125, "loc": { "start": { - "line": 124, + "line": 126, "column": 40 }, "end": { - "line": 124, + "line": 126, "column": 49 }, "identifierName": "pInstance" @@ -7024,101 +7215,101 @@ }, "consequent": { "type": "BlockStatement", - "start": 6045, - "end": 6139, + "start": 6128, + "end": 6222, "loc": { "start": { - "line": 124, + "line": 126, "column": 52 }, "end": { - "line": 126, + "line": 128, "column": 13 } }, "body": [ { "type": "ExpressionStatement", - "start": 6064, - "end": 6124, + "start": 6147, + "end": 6207, "loc": { "start": { - "line": 125, + "line": 127, "column": 16 }, "end": { - "line": 125, + "line": 127, "column": 76 } }, "expression": { "type": "CallExpression", - "start": 6064, - "end": 6123, + "start": 6147, + "end": 6206, "loc": { "start": { - "line": 125, + "line": 127, "column": 16 }, "end": { - "line": 125, + "line": 127, "column": 75 } }, "callee": { "type": "MemberExpression", - "start": 6064, - "end": 6085, + "start": 6147, + "end": 6168, "loc": { "start": { - "line": 125, + "line": 127, "column": 16 }, "end": { - "line": 125, + "line": 127, "column": 37 } }, "object": { "type": "MemberExpression", - "start": 6064, - "end": 6078, + "start": 6147, + "end": 6161, "loc": { "start": { - "line": 125, + "line": 127, "column": 16 }, "end": { - "line": 125, + "line": 127, "column": 30 } }, "object": { "type": "ThisExpression", - "start": 6064, - "end": 6068, + "start": 6147, + "end": 6151, "loc": { "start": { - "line": 125, + "line": 127, "column": 16 }, "end": { - "line": 125, + "line": 127, "column": 20 } } }, "property": { "type": "Identifier", - "start": 6069, - "end": 6078, + "start": 6152, + "end": 6161, "loc": { "start": { - "line": 125, + "line": 127, "column": 21 }, "end": { - "line": 125, + "line": 127, "column": 30 }, "identifierName": "instances" @@ -7129,15 +7320,15 @@ }, "property": { "type": "Identifier", - "start": 6079, - "end": 6085, + "start": 6162, + "end": 6168, "loc": { "start": { - "line": 125, + "line": 127, "column": 31 }, "end": { - "line": 125, + "line": 127, "column": 37 }, "identifierName": "splice" @@ -7149,72 +7340,72 @@ "arguments": [ { "type": "CallExpression", - "start": 6086, - "end": 6119, + "start": 6169, + "end": 6202, "loc": { "start": { - "line": 125, + "line": 127, "column": 38 }, "end": { - "line": 125, + "line": 127, "column": 71 } }, "callee": { "type": "MemberExpression", - "start": 6086, - "end": 6108, + "start": 6169, + "end": 6191, "loc": { "start": { - "line": 125, + "line": 127, "column": 38 }, "end": { - "line": 125, + "line": 127, "column": 60 } }, "object": { "type": "MemberExpression", - "start": 6086, - "end": 6100, + "start": 6169, + "end": 6183, "loc": { "start": { - "line": 125, + "line": 127, "column": 38 }, "end": { - "line": 125, + "line": 127, "column": 52 } }, "object": { "type": "ThisExpression", - "start": 6086, - "end": 6090, + "start": 6169, + "end": 6173, "loc": { "start": { - "line": 125, + "line": 127, "column": 38 }, "end": { - "line": 125, + "line": 127, "column": 42 } } }, "property": { "type": "Identifier", - "start": 6091, - "end": 6100, + "start": 6174, + "end": 6183, "loc": { "start": { - "line": 125, + "line": 127, "column": 43 }, "end": { - "line": 125, + "line": 127, "column": 52 }, "identifierName": "instances" @@ -7225,15 +7416,15 @@ }, "property": { "type": "Identifier", - "start": 6101, - "end": 6108, + "start": 6184, + "end": 6191, "loc": { "start": { - "line": 125, + "line": 127, "column": 53 }, "end": { - "line": 125, + "line": 127, "column": 60 }, "identifierName": "indexOf" @@ -7245,15 +7436,15 @@ "arguments": [ { "type": "Identifier", - "start": 6109, - "end": 6118, + "start": 6192, + "end": 6201, "loc": { "start": { - "line": 125, + "line": 127, "column": 61 }, "end": { - "line": 125, + "line": 127, "column": 70 }, "identifierName": "pInstance" @@ -7264,15 +7455,15 @@ }, { "type": "NumericLiteral", - "start": 6121, - "end": 6122, + "start": 6204, + "end": 6205, "loc": { "start": { - "line": 125, + "line": 127, "column": 73 }, "end": { - "line": 125, + "line": 127, "column": 74 } }, @@ -7295,129 +7486,129 @@ }, "alternate": { "type": "BlockStatement", - "start": 6156, - "end": 6250, + "start": 6239, + "end": 6333, "loc": { "start": { - "line": 127, + "line": 129, "column": 15 }, "end": { - "line": 129, + "line": 131, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 6171, - "end": 6239, + "start": 6254, + "end": 6322, "loc": { "start": { - "line": 128, + "line": 130, "column": 12 }, "end": { - "line": 128, + "line": 130, "column": 80 } }, "expression": { "type": "CallExpression", - "start": 6171, - "end": 6238, + "start": 6254, + "end": 6321, "loc": { "start": { - "line": 128, + "line": 130, "column": 12 }, "end": { - "line": 128, + "line": 130, "column": 79 } }, "callee": { "type": "MemberExpression", - "start": 6171, - "end": 6214, + "start": 6254, + "end": 6297, "loc": { "start": { - "line": 128, + "line": 130, "column": 12 }, "end": { - "line": 128, + "line": 130, "column": 55 } }, "object": { "type": "CallExpression", - "start": 6171, - "end": 6208, + "start": 6254, + "end": 6291, "loc": { "start": { - "line": 128, + "line": 130, "column": 12 }, "end": { - "line": 128, + "line": 130, "column": 49 } }, "callee": { "type": "MemberExpression", - "start": 6171, - "end": 6189, + "start": 6254, + "end": 6272, "loc": { "start": { - "line": 128, + "line": 130, "column": 12 }, "end": { - "line": 128, + "line": 130, "column": 30 } }, "object": { "type": "MemberExpression", - "start": 6171, - "end": 6182, + "start": 6254, + "end": 6265, "loc": { "start": { - "line": 128, + "line": 130, "column": 12 }, "end": { - "line": 128, + "line": 130, "column": 23 } }, "object": { "type": "ThisExpression", - "start": 6171, - "end": 6175, + "start": 6254, + "end": 6258, "loc": { "start": { - "line": 128, + "line": 130, "column": 12 }, "end": { - "line": 128, + "line": 130, "column": 16 } } }, "property": { "type": "Identifier", - "start": 6176, - "end": 6182, + "start": 6259, + "end": 6265, "loc": { "start": { - "line": 128, + "line": 130, "column": 17 }, "end": { - "line": 128, + "line": 130, "column": 23 }, "identifierName": "logger" @@ -7428,15 +7619,15 @@ }, "property": { "type": "Identifier", - "start": 6183, - "end": 6189, + "start": 6266, + "end": 6272, "loc": { "start": { - "line": 128, + "line": 130, "column": 24 }, "end": { - "line": 128, + "line": 130, "column": 30 }, "identifierName": "prefix" @@ -7448,15 +7639,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 6190, - "end": 6207, + "start": 6273, + "end": 6290, "loc": { "start": { - "line": 128, + "line": 130, "column": 31 }, "end": { - "line": 128, + "line": 130, "column": 48 } }, @@ -7470,15 +7661,15 @@ }, "property": { "type": "Identifier", - "start": 6209, - "end": 6214, + "start": 6292, + "end": 6297, "loc": { "start": { - "line": 128, + "line": 130, "column": 50 }, "end": { - "line": 128, + "line": 130, "column": 55 }, "identifierName": "error" @@ -7490,15 +7681,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 6215, - "end": 6237, + "start": 6298, + "end": 6320, "loc": { "start": { - "line": 128, + "line": 130, "column": 56 }, "end": { - "line": 128, + "line": 130, "column": 78 } }, @@ -7523,15 +7714,15 @@ { "type": "CommentBlock", "value": "*\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n ", - "start": 5793, - "end": 5940, + "start": 5876, + "end": 6023, "loc": { "start": { - "line": 118, + "line": 120, "column": 4 }, "end": { - "line": 121, + "line": 123, "column": 7 } } @@ -7541,15 +7732,15 @@ { "type": "CommentBlock", "value": "*\r\n * Updates the parallax system\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n * @param {number} pSimulatedPosition - The simulated position. This is used to simulate a position larger than possible, but internally it treats it as its downscaled position.\r\n * One such reason for using this paramater would be to simulate a map larger than you actually have, to convince the parallax that it is infinite.\r\n ", - "start": 6263, - "end": 6777, + "start": 6346, + "end": 6860, "loc": { "start": { - "line": 131, + "line": 133, "column": 4 }, "end": { - "line": 137, + "line": 139, "column": 7 } } @@ -7558,15 +7749,15 @@ }, { "type": "ClassMethod", - "start": 6783, - "end": 9272, + "start": 6866, + "end": 9104, "loc": { "start": { - "line": 138, + "line": 140, "column": 4 }, "end": { - "line": 192, + "line": 194, "column": 5 } }, @@ -7574,15 +7765,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 6783, - "end": 6789, + "start": 6866, + "end": 6872, "loc": { "start": { - "line": 138, + "line": 140, "column": 4 }, "end": { - "line": 138, + "line": 140, "column": 10 }, "identifierName": "update" @@ -7598,29 +7789,29 @@ "params": [ { "type": "AssignmentPattern", - "start": 6790, - "end": 6802, + "start": 6873, + "end": 6885, "loc": { "start": { - "line": 138, + "line": 140, "column": 11 }, "end": { - "line": 138, + "line": 140, "column": 23 } }, "left": { "type": "Identifier", - "start": 6790, - "end": 6798, + "start": 6873, + "end": 6881, "loc": { "start": { - "line": 138, + "line": 140, "column": 11 }, "end": { - "line": 138, + "line": 140, "column": 19 }, "identifierName": "pCameraX" @@ -7629,15 +7820,15 @@ }, "right": { "type": "NumericLiteral", - "start": 6801, - "end": 6802, + "start": 6884, + "end": 6885, "loc": { "start": { - "line": 138, + "line": 140, "column": 22 }, "end": { - "line": 138, + "line": 140, "column": 23 } }, @@ -7650,29 +7841,29 @@ }, { "type": "AssignmentPattern", - "start": 6804, - "end": 6816, + "start": 6887, + "end": 6899, "loc": { "start": { - "line": 138, + "line": 140, "column": 25 }, "end": { - "line": 138, + "line": 140, "column": 37 } }, "left": { "type": "Identifier", - "start": 6804, - "end": 6812, + "start": 6887, + "end": 6895, "loc": { "start": { - "line": 138, + "line": 140, "column": 25 }, "end": { - "line": 138, + "line": 140, "column": 33 }, "identifierName": "pCameraY" @@ -7681,15 +7872,15 @@ }, "right": { "type": "NumericLiteral", - "start": 6815, - "end": 6816, + "start": 6898, + "end": 6899, "loc": { "start": { - "line": 138, + "line": 140, "column": 36 }, "end": { - "line": 138, + "line": 140, "column": 37 } }, @@ -7702,15 +7893,15 @@ }, { "type": "Identifier", - "start": 6818, - "end": 6836, + "start": 6901, + "end": 6919, "loc": { "start": { - "line": 138, + "line": 140, "column": 39 }, "end": { - "line": 138, + "line": 140, "column": 57 }, "identifierName": "pSimulatedPosition" @@ -7720,73 +7911,73 @@ ], "body": { "type": "BlockStatement", - "start": 6838, - "end": 9272, + "start": 6921, + "end": 9104, "loc": { "start": { - "line": 138, + "line": 140, "column": 59 }, "end": { - "line": 192, + "line": 194, "column": 5 } }, "body": [ { "type": "ForOfStatement", - "start": 6849, - "end": 9257, + "start": 6932, + "end": 9097, "loc": { "start": { - "line": 139, + "line": 141, "column": 8 }, "end": { - "line": 191, + "line": 193, "column": 9 } }, "left": { "type": "VariableDeclaration", - "start": 6854, - "end": 6868, + "start": 6937, + "end": 6951, "loc": { "start": { - "line": 139, + "line": 141, "column": 13 }, "end": { - "line": 139, + "line": 141, "column": 27 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 6860, - "end": 6868, + "start": 6943, + "end": 6951, "loc": { "start": { - "line": 139, + "line": 141, "column": 19 }, "end": { - "line": 139, + "line": 141, "column": 27 } }, "id": { "type": "Identifier", - "start": 6860, - "end": 6868, + "start": 6943, + "end": 6951, "loc": { "start": { - "line": 139, + "line": 141, "column": 19 }, "end": { - "line": 139, + "line": 141, "column": 27 }, "identifierName": "instance" @@ -7800,44 +7991,44 @@ }, "right": { "type": "MemberExpression", - "start": 6872, - "end": 6886, + "start": 6955, + "end": 6969, "loc": { "start": { - "line": 139, + "line": 141, "column": 31 }, "end": { - "line": 139, + "line": 141, "column": 45 } }, "object": { "type": "ThisExpression", - "start": 6872, - "end": 6876, + "start": 6955, + "end": 6959, "loc": { "start": { - "line": 139, + "line": 141, "column": 31 }, "end": { - "line": 139, + "line": 141, "column": 35 } } }, "property": { "type": "Identifier", - "start": 6877, - "end": 6886, + "start": 6960, + "end": 6969, "loc": { "start": { - "line": 139, + "line": 141, "column": 36 }, "end": { - "line": 139, + "line": 141, "column": 45 }, "identifierName": "instances" @@ -7848,59 +8039,59 @@ }, "body": { "type": "BlockStatement", - "start": 6888, - "end": 9257, + "start": 6971, + "end": 9097, "loc": { "start": { - "line": 139, + "line": 141, "column": 47 }, "end": { - "line": 191, + "line": 193, "column": 9 } }, "body": [ { "type": "VariableDeclaration", - "start": 7056, - "end": 7079, + "start": 7074, + "end": 7097, "loc": { "start": { - "line": 144, + "line": 143, "column": 12 }, "end": { - "line": 144, + "line": 143, "column": 35 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 7060, - "end": 7078, + "start": 7078, + "end": 7096, "loc": { "start": { - "line": 144, + "line": 143, "column": 16 }, "end": { - "line": 144, + "line": 143, "column": 34 } }, "id": { "type": "Identifier", - "start": 7060, - "end": 7067, + "start": 7078, + "end": 7085, "loc": { "start": { - "line": 144, + "line": 143, "column": 16 }, "end": { - "line": 144, + "line": 143, "column": 23 }, "identifierName": "cameraX" @@ -7910,15 +8101,15 @@ }, "init": { "type": "Identifier", - "start": 7070, - "end": 7078, + "start": 7088, + "end": 7096, "loc": { "start": { - "line": 144, + "line": 143, "column": 26 }, "end": { - "line": 144, + "line": 143, "column": 34 }, "identifierName": "pCameraX" @@ -7931,36 +8122,36 @@ "kind": "let", "leadingComments": [ { - "type": "CommentBlock", - "value": "*\r\n * The camera's x position. May be adjusted if pSimulatedPosition is used.\r\n * @type {number}\r\n ", - "start": 6903, - "end": 7042, + "type": "CommentLine", + "value": " The camera's x position. May be adjusted if pSimulatedPosition is used.", + "start": 6986, + "end": 7060, "loc": { "start": { - "line": 140, + "line": 142, "column": 12 }, "end": { - "line": 143, - "column": 15 + "line": 142, + "column": 86 } } } ], "trailingComments": [ { - "type": "CommentBlock", - "value": "*\r\n * The camera's x position. May be adjusted if pSimulatedPosition is used.\r\n * @type {number}\r\n ", - "start": 7093, - "end": 7232, + "type": "CommentLine", + "value": " The camera's x position. May be adjusted if pSimulatedPosition is used.", + "start": 7111, + "end": 7185, "loc": { "start": { - "line": 145, + "line": 144, "column": 12 }, "end": { - "line": 148, - "column": 15 + "line": 144, + "column": 86 } } } @@ -7968,44 +8159,44 @@ }, { "type": "VariableDeclaration", - "start": 7246, - "end": 7269, + "start": 7199, + "end": 7222, "loc": { "start": { - "line": 149, + "line": 145, "column": 12 }, "end": { - "line": 149, + "line": 145, "column": 35 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 7250, - "end": 7268, + "start": 7203, + "end": 7221, "loc": { "start": { - "line": 149, + "line": 145, "column": 16 }, "end": { - "line": 149, + "line": 145, "column": 34 } }, "id": { "type": "Identifier", - "start": 7250, - "end": 7257, + "start": 7203, + "end": 7210, "loc": { "start": { - "line": 149, + "line": 145, "column": 16 }, "end": { - "line": 149, + "line": 145, "column": 23 }, "identifierName": "cameraY" @@ -8015,15 +8206,15 @@ }, "init": { "type": "Identifier", - "start": 7260, - "end": 7268, + "start": 7213, + "end": 7221, "loc": { "start": { - "line": 149, + "line": 145, "column": 26 }, "end": { - "line": 149, + "line": 145, "column": 34 }, "identifierName": "pCameraY" @@ -8036,18 +8227,18 @@ "kind": "let", "leadingComments": [ { - "type": "CommentBlock", - "value": "*\r\n * The camera's x position. May be adjusted if pSimulatedPosition is used.\r\n * @type {number}\r\n ", - "start": 7093, - "end": 7232, + "type": "CommentLine", + "value": " The camera's x position. May be adjusted if pSimulatedPosition is used.", + "start": 7111, + "end": 7185, "loc": { "start": { - "line": 145, + "line": 144, "column": 12 }, "end": { - "line": 148, - "column": 15 + "line": 144, + "column": 86 } } } @@ -8055,44 +8246,44 @@ }, { "type": "VariableDeclaration", - "start": 7285, - "end": 7341, + "start": 7238, + "end": 7294, "loc": { "start": { - "line": 151, + "line": 147, "column": 12 }, "end": { - "line": 151, + "line": 147, "column": 68 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 7291, - "end": 7340, + "start": 7244, + "end": 7293, "loc": { "start": { - "line": 151, + "line": 147, "column": 18 }, "end": { - "line": 151, + "line": 147, "column": 67 } }, "id": { "type": "Identifier", - "start": 7291, - "end": 7303, + "start": 7244, + "end": 7256, "loc": { "start": { - "line": 151, + "line": 147, "column": 18 }, "end": { - "line": 151, + "line": 147, "column": 30 }, "identifierName": "parallaxInfo" @@ -8101,72 +8292,72 @@ }, "init": { "type": "CallExpression", - "start": 7306, - "end": 7340, + "start": 7259, + "end": 7293, "loc": { "start": { - "line": 151, + "line": 147, "column": 33 }, "end": { - "line": 151, + "line": 147, "column": 67 } }, "callee": { "type": "MemberExpression", - "start": 7306, - "end": 7330, + "start": 7259, + "end": 7283, "loc": { "start": { - "line": 151, + "line": 147, "column": 33 }, "end": { - "line": 151, + "line": 147, "column": 57 } }, "object": { "type": "MemberExpression", - "start": 7306, - "end": 7326, + "start": 7259, + "end": 7279, "loc": { "start": { - "line": 151, + "line": 147, "column": 33 }, "end": { - "line": 151, + "line": 147, "column": 53 } }, "object": { "type": "ThisExpression", - "start": 7306, - "end": 7310, + "start": 7259, + "end": 7263, "loc": { "start": { - "line": 151, + "line": 147, "column": 33 }, "end": { - "line": 151, + "line": 147, "column": 37 } } }, "property": { "type": "Identifier", - "start": 7311, - "end": 7326, + "start": 7264, + "end": 7279, "loc": { "start": { - "line": 151, + "line": 147, "column": 38 }, "end": { - "line": 151, + "line": 147, "column": 53 }, "identifierName": "instanceWeakMap" @@ -8177,15 +8368,15 @@ }, "property": { "type": "Identifier", - "start": 7327, - "end": 7330, + "start": 7280, + "end": 7283, "loc": { "start": { - "line": 151, + "line": 147, "column": 54 }, "end": { - "line": 151, + "line": 147, "column": 57 }, "identifierName": "get" @@ -8197,15 +8388,15 @@ "arguments": [ { "type": "Identifier", - "start": 7331, - "end": 7339, + "start": 7284, + "end": 7292, "loc": { "start": { - "line": 151, + "line": 147, "column": 58 }, "end": { - "line": 151, + "line": 147, "column": 66 }, "identifierName": "instance" @@ -8220,17 +8411,173 @@ "trailingComments": [ { "type": "CommentLine", - "value": " How far we moved from the start point", - "start": 7355, - "end": 7395, + "value": " Move the instance with the camera if the parallax is set to 0", + "start": 7310, + "end": 7374, "loc": { "start": { - "line": 152, + "line": 149, "column": 12 }, "end": { - "line": 152, - "column": 52 + "line": 149, + "column": 76 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 7388, + "end": 7431, + "loc": { + "start": { + "line": 150, + "column": 12 + }, + "end": { + "line": 150, + "column": 55 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 7394, + "end": 7430, + "loc": { + "start": { + "line": 150, + "column": 18 + }, + "end": { + "line": 150, + "column": 54 + } + }, + "id": { + "type": "Identifier", + "start": 7394, + "end": 7407, + "loc": { + "start": { + "line": 150, + "column": 18 + }, + "end": { + "line": 150, + "column": 31 + }, + "identifierName": "isBackgroundX" + }, + "name": "isBackgroundX", + "leadingComments": null + }, + "init": { + "type": "BinaryExpression", + "start": 7410, + "end": 7430, + "loc": { + "start": { + "line": 150, + "column": 34 + }, + "end": { + "line": 150, + "column": 54 + } + }, + "left": { + "type": "MemberExpression", + "start": 7410, + "end": 7424, + "loc": { + "start": { + "line": 150, + "column": 34 + }, + "end": { + "line": 150, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 7410, + "end": 7422, + "loc": { + "start": { + "line": 150, + "column": 34 + }, + "end": { + "line": 150, + "column": 46 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "property": { + "type": "Identifier", + "start": 7423, + "end": 7424, + "loc": { + "start": { + "line": 150, + "column": 47 + }, + "end": { + "line": 150, + "column": 48 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "NumericLiteral", + "start": 7429, + "end": 7430, + "loc": { + "start": { + "line": 150, + "column": 53 + }, + "end": { + "line": 150, + "column": 54 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentLine", + "value": " Move the instance with the camera if the parallax is set to 0", + "start": 7310, + "end": 7374, + "loc": { + "start": { + "line": 149, + "column": 12 + }, + "end": { + "line": 149, + "column": 76 } } } @@ -8238,8 +8585,144 @@ }, { "type": "VariableDeclaration", - "start": 7409, - "end": 7448, + "start": 7445, + "end": 7488, + "loc": { + "start": { + "line": 151, + "column": 12 + }, + "end": { + "line": 151, + "column": 55 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 7451, + "end": 7487, + "loc": { + "start": { + "line": 151, + "column": 18 + }, + "end": { + "line": 151, + "column": 54 + } + }, + "id": { + "type": "Identifier", + "start": 7451, + "end": 7464, + "loc": { + "start": { + "line": 151, + "column": 18 + }, + "end": { + "line": 151, + "column": 31 + }, + "identifierName": "isBackgroundY" + }, + "name": "isBackgroundY" + }, + "init": { + "type": "BinaryExpression", + "start": 7467, + "end": 7487, + "loc": { + "start": { + "line": 151, + "column": 34 + }, + "end": { + "line": 151, + "column": 54 + } + }, + "left": { + "type": "MemberExpression", + "start": 7467, + "end": 7481, + "loc": { + "start": { + "line": 151, + "column": 34 + }, + "end": { + "line": 151, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 7467, + "end": 7479, + "loc": { + "start": { + "line": 151, + "column": 34 + }, + "end": { + "line": 151, + "column": 46 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "property": { + "type": "Identifier", + "start": 7480, + "end": 7481, + "loc": { + "start": { + "line": 151, + "column": 47 + }, + "end": { + "line": 151, + "column": 48 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "NumericLiteral", + "start": 7486, + "end": 7487, + "loc": { + "start": { + "line": 151, + "column": 53 + }, + "end": { + "line": 151, + "column": 54 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 7504, + "end": 7555, "loc": { "start": { "line": 153, @@ -8247,14 +8730,14 @@ }, "end": { "line": 153, - "column": 51 + "column": 63 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 7415, - "end": 7447, + "start": 7510, + "end": 7554, "loc": { "start": { "line": 153, @@ -8262,13 +8745,13 @@ }, "end": { "line": 153, - "column": 50 + "column": 62 } }, "id": { "type": "Identifier", - "start": 7415, - "end": 7420, + "start": 7510, + "end": 7516, "loc": { "start": { "line": 153, @@ -8276,88 +8759,120 @@ }, "end": { "line": 153, - "column": 23 + "column": 24 }, - "identifierName": "distX" + "identifierName": "deltaX" }, - "name": "distX", - "leadingComments": null + "name": "deltaX" }, "init": { "type": "BinaryExpression", - "start": 7423, - "end": 7447, + "start": 7519, + "end": 7554, "loc": { "start": { "line": 153, - "column": 26 + "column": 27 }, "end": { "line": 153, - "column": 50 + "column": 62 } }, "left": { "type": "Identifier", - "start": 7423, - "end": 7430, + "start": 7519, + "end": 7526, "loc": { "start": { "line": 153, - "column": 26 + "column": 27 }, "end": { "line": 153, - "column": 33 + "column": 34 }, "identifierName": "cameraX" }, "name": "cameraX" }, - "operator": "*", + "operator": "-", "right": { "type": "MemberExpression", - "start": 7433, - "end": 7447, + "start": 7529, + "end": 7554, "loc": { "start": { "line": 153, - "column": 36 + "column": 37 }, "end": { "line": 153, - "column": 50 + "column": 62 } }, "object": { - "type": "Identifier", - "start": 7433, - "end": 7445, + "type": "MemberExpression", + "start": 7529, + "end": 7552, "loc": { "start": { "line": 153, - "column": 36 + "column": 37 }, "end": { "line": 153, - "column": 48 + "column": 60 + } + }, + "object": { + "type": "Identifier", + "start": 7529, + "end": 7541, + "loc": { + "start": { + "line": 153, + "column": 37 + }, + "end": { + "line": 153, + "column": 49 + }, + "identifierName": "parallaxInfo" }, - "identifierName": "parallaxInfo" + "name": "parallaxInfo" }, - "name": "parallaxInfo" + "property": { + "type": "Identifier", + "start": 7542, + "end": 7552, + "loc": { + "start": { + "line": 153, + "column": 50 + }, + "end": { + "line": 153, + "column": 60 + }, + "identifierName": "lastCamPos" + }, + "name": "lastCamPos" + }, + "computed": false }, "property": { "type": "Identifier", - "start": 7446, - "end": 7447, + "start": 7553, + "end": 7554, "loc": { "start": { "line": 153, - "column": 49 + "column": 61 }, "end": { "line": 153, - "column": 50 + "column": 62 }, "identifierName": "x" }, @@ -8365,34 +8880,15 @@ }, "computed": false } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " How far we moved from the start point", - "start": 7355, - "end": 7395, - "loc": { - "start": { - "line": 152, - "column": 12 - }, - "end": { - "line": 152, - "column": 52 - } } } - ] + ], + "kind": "const" }, { "type": "VariableDeclaration", - "start": 7462, - "end": 7501, + "start": 7569, + "end": 7620, "loc": { "start": { "line": 154, @@ -8400,14 +8896,14 @@ }, "end": { "line": 154, - "column": 51 + "column": 63 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 7468, - "end": 7500, + "start": 7575, + "end": 7619, "loc": { "start": { "line": 154, @@ -8415,13 +8911,13 @@ }, "end": { "line": 154, - "column": 50 + "column": 62 } }, "id": { "type": "Identifier", - "start": 7468, - "end": 7473, + "start": 7575, + "end": 7581, "loc": { "start": { "line": 154, @@ -8429,87 +8925,120 @@ }, "end": { "line": 154, - "column": 23 + "column": 24 }, - "identifierName": "distY" + "identifierName": "deltaY" }, - "name": "distY" + "name": "deltaY" }, "init": { "type": "BinaryExpression", - "start": 7476, - "end": 7500, + "start": 7584, + "end": 7619, "loc": { "start": { "line": 154, - "column": 26 + "column": 27 }, "end": { "line": 154, - "column": 50 + "column": 62 } }, "left": { "type": "Identifier", - "start": 7476, - "end": 7483, + "start": 7584, + "end": 7591, "loc": { "start": { "line": 154, - "column": 26 + "column": 27 }, "end": { "line": 154, - "column": 33 + "column": 34 }, "identifierName": "cameraY" }, "name": "cameraY" }, - "operator": "*", + "operator": "-", "right": { "type": "MemberExpression", - "start": 7486, - "end": 7500, + "start": 7594, + "end": 7619, "loc": { "start": { "line": 154, - "column": 36 + "column": 37 }, "end": { "line": 154, - "column": 50 + "column": 62 } }, "object": { - "type": "Identifier", - "start": 7486, - "end": 7498, + "type": "MemberExpression", + "start": 7594, + "end": 7617, "loc": { "start": { "line": 154, - "column": 36 + "column": 37 }, "end": { "line": 154, - "column": 48 + "column": 60 + } + }, + "object": { + "type": "Identifier", + "start": 7594, + "end": 7606, + "loc": { + "start": { + "line": 154, + "column": 37 + }, + "end": { + "line": 154, + "column": 49 + }, + "identifierName": "parallaxInfo" }, - "identifierName": "parallaxInfo" + "name": "parallaxInfo" }, - "name": "parallaxInfo" + "property": { + "type": "Identifier", + "start": 7607, + "end": 7617, + "loc": { + "start": { + "line": 154, + "column": 50 + }, + "end": { + "line": 154, + "column": 60 + }, + "identifierName": "lastCamPos" + }, + "name": "lastCamPos" + }, + "computed": false }, "property": { "type": "Identifier", - "start": 7499, - "end": 7500, + "start": 7618, + "end": 7619, "loc": { "start": { "line": 154, - "column": 49 + "column": 61 }, "end": { "line": 154, - "column": 50 + "column": 62 }, "identifierName": "y" }, @@ -8524,9 +9053,9 @@ "trailingComments": [ { "type": "CommentLine", - "value": " Position to set the instance to. We take into account the simulated posiiton if it is passed.", - "start": 7517, - "end": 7613, + "value": " How far we moved from the start point", + "start": 7636, + "end": 7676, "loc": { "start": { "line": 156, @@ -8534,7 +9063,7 @@ }, "end": { "line": 156, - "column": 108 + "column": 52 } } } @@ -8542,8 +9071,8 @@ }, { "type": "VariableDeclaration", - "start": 7627, - "end": 7742, + "start": 7690, + "end": 7728, "loc": { "start": { "line": 157, @@ -8551,314 +9080,135 @@ }, "end": { "line": 157, - "column": 127 + "column": 50 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 7631, - "end": 7741, + "start": 7696, + "end": 7727, "loc": { "start": { "line": 157, - "column": 16 + "column": 18 }, "end": { "line": 157, - "column": 126 + "column": 49 } }, "id": { "type": "Identifier", - "start": 7631, - "end": 7632, + "start": 7696, + "end": 7701, "loc": { "start": { "line": 157, - "column": 16 + "column": 18 }, "end": { "line": 157, - "column": 17 + "column": 23 }, - "identifierName": "x" + "identifierName": "distX" }, - "name": "x", + "name": "distX", "leadingComments": null }, "init": { "type": "BinaryExpression", - "start": 7635, - "end": 7741, + "start": 7704, + "end": 7727, "loc": { "start": { "line": 157, - "column": 20 + "column": 26 }, "end": { "line": 157, - "column": 126 + "column": 49 } }, "left": { - "type": "MemberExpression", - "start": 7635, - "end": 7660, + "type": "Identifier", + "start": 7704, + "end": 7710, "loc": { "start": { "line": 157, - "column": 20 + "column": 26 }, "end": { "line": 157, - "column": 45 - } - }, - "object": { - "type": "MemberExpression", - "start": 7635, - "end": 7658, - "loc": { - "start": { - "line": 157, - "column": 20 - }, - "end": { - "line": 157, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 7635, - "end": 7647, - "loc": { - "start": { - "line": 157, - "column": 20 - }, - "end": { - "line": 157, - "column": 32 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 7648, - "end": 7658, - "loc": { - "start": { - "line": 157, - "column": 33 - }, - "end": { - "line": 157, - "column": 43 - }, - "identifierName": "initialPos" - }, - "name": "initialPos" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 7659, - "end": 7660, - "loc": { - "start": { - "line": 157, - "column": 44 - }, - "end": { - "line": 157, - "column": 45 - }, - "identifierName": "x" + "column": 32 }, - "name": "x" + "identifierName": "deltaX" }, - "computed": false + "name": "deltaX" }, - "operator": "+", + "operator": "*", "right": { - "type": "ConditionalExpression", - "start": 7664, - "end": 7740, + "type": "MemberExpression", + "start": 7713, + "end": 7727, "loc": { "start": { "line": 157, - "column": 49 + "column": 35 }, "end": { "line": 157, - "column": 125 - } - }, - "test": { - "type": "BinaryExpression", - "start": 7664, - "end": 7703, - "loc": { - "start": { - "line": 157, - "column": 49 - }, - "end": { - "line": 157, - "column": 88 - } - }, - "left": { - "type": "UnaryExpression", - "start": 7664, - "end": 7690, - "loc": { - "start": { - "line": 157, - "column": 49 - }, - "end": { - "line": 157, - "column": 75 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 7671, - "end": 7689, - "loc": { - "start": { - "line": 157, - "column": 56 - }, - "end": { - "line": 157, - "column": 74 - }, - "identifierName": "pSimulatedPosition" - }, - "name": "pSimulatedPosition", - "extra": { - "parenthesized": true, - "parenStart": 7670 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 7695, - "end": 7703, - "loc": { - "start": { - "line": 157, - "column": 80 - }, - "end": { - "line": 157, - "column": 88 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" + "column": 49 } }, - "consequent": { - "type": "BinaryExpression", - "start": 7706, - "end": 7732, + "object": { + "type": "Identifier", + "start": 7713, + "end": 7725, "loc": { "start": { "line": 157, - "column": 91 + "column": 35 }, "end": { "line": 157, - "column": 117 - } - }, - "left": { - "type": "Identifier", - "start": 7706, - "end": 7711, - "loc": { - "start": { - "line": 157, - "column": 91 - }, - "end": { - "line": 157, - "column": 96 - }, - "identifierName": "distX" + "column": 47 }, - "name": "distX" + "identifierName": "parallaxInfo" }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 7714, - "end": 7732, - "loc": { - "start": { - "line": 157, - "column": 99 - }, - "end": { - "line": 157, - "column": 117 - }, - "identifierName": "pSimulatedPosition" - }, - "name": "pSimulatedPosition" - } + "name": "parallaxInfo" }, - "alternate": { + "property": { "type": "Identifier", - "start": 7735, - "end": 7740, + "start": 7726, + "end": 7727, "loc": { "start": { "line": 157, - "column": 120 + "column": 48 }, "end": { "line": 157, - "column": 125 + "column": 49 }, - "identifierName": "distX" + "identifierName": "x" }, - "name": "distX" + "name": "x" }, - "extra": { - "parenthesized": true, - "parenStart": 7663 - } + "computed": false } }, "leadingComments": null } ], - "kind": "let", + "kind": "const", "leadingComments": [ { "type": "CommentLine", - "value": " Position to set the instance to. We take into account the simulated posiiton if it is passed.", - "start": 7517, - "end": 7613, + "value": " How far we moved from the start point", + "start": 7636, + "end": 7676, "loc": { "start": { "line": 156, @@ -8866,7 +9216,7 @@ }, "end": { "line": 156, - "column": 108 + "column": 52 } } } @@ -8874,8 +9224,8 @@ }, { "type": "VariableDeclaration", - "start": 7756, - "end": 7798, + "start": 7742, + "end": 7780, "loc": { "start": { "line": 158, @@ -8883,166 +9233,133 @@ }, "end": { "line": 158, - "column": 54 + "column": 50 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 7760, - "end": 7797, + "start": 7748, + "end": 7779, "loc": { "start": { "line": 158, - "column": 16 + "column": 18 }, "end": { "line": 158, - "column": 53 + "column": 49 } }, "id": { "type": "Identifier", - "start": 7760, - "end": 7761, + "start": 7748, + "end": 7753, "loc": { "start": { "line": 158, - "column": 16 + "column": 18 }, "end": { "line": 158, - "column": 17 + "column": 23 }, - "identifierName": "y" + "identifierName": "distY" }, - "name": "y" + "name": "distY" }, "init": { "type": "BinaryExpression", - "start": 7764, - "end": 7797, + "start": 7756, + "end": 7779, "loc": { "start": { "line": 158, - "column": 20 + "column": 26 }, "end": { "line": 158, - "column": 53 + "column": 49 } }, "left": { + "type": "Identifier", + "start": 7756, + "end": 7762, + "loc": { + "start": { + "line": 158, + "column": 26 + }, + "end": { + "line": 158, + "column": 32 + }, + "identifierName": "deltaY" + }, + "name": "deltaY" + }, + "operator": "*", + "right": { "type": "MemberExpression", - "start": 7764, - "end": 7789, + "start": 7765, + "end": 7779, "loc": { "start": { "line": 158, - "column": 20 + "column": 35 }, "end": { "line": 158, - "column": 45 + "column": 49 } }, "object": { - "type": "MemberExpression", - "start": 7764, - "end": 7787, + "type": "Identifier", + "start": 7765, + "end": 7777, "loc": { "start": { "line": 158, - "column": 20 + "column": 35 }, "end": { "line": 158, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 7764, - "end": 7776, - "loc": { - "start": { - "line": 158, - "column": 20 - }, - "end": { - "line": 158, - "column": 32 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 7777, - "end": 7787, - "loc": { - "start": { - "line": 158, - "column": 33 - }, - "end": { - "line": 158, - "column": 43 - }, - "identifierName": "initialPos" + "column": 47 }, - "name": "initialPos" + "identifierName": "parallaxInfo" }, - "computed": false + "name": "parallaxInfo" }, "property": { "type": "Identifier", - "start": 7788, - "end": 7789, + "start": 7778, + "end": 7779, "loc": { "start": { "line": 158, - "column": 44 + "column": 48 }, "end": { "line": 158, - "column": 45 + "column": 49 }, "identifierName": "y" }, "name": "y" }, "computed": false - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 7792, - "end": 7797, - "loc": { - "start": { - "line": 158, - "column": 48 - }, - "end": { - "line": 158, - "column": 53 - }, - "identifierName": "distY" - }, - "name": "distY" } } } ], - "kind": "let", + "kind": "const", "trailingComments": [ { "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 7826, - "end": 7890, + "value": " Position to set the instance to.", + "start": 7796, + "end": 7831, "loc": { "start": { "line": 160, @@ -9050,44 +9367,31 @@ }, "end": { "line": 160, - "column": 76 + "column": 47 } } } ] }, { - "type": "IfStatement", - "start": 7904, - "end": 8144, + "type": "VariableDeclaration", + "start": 7845, + "end": 7872, "loc": { "start": { "line": 161, "column": 12 }, "end": { - "line": 166, - "column": 13 + "line": 161, + "column": 39 } }, - "test": { - "type": "BinaryExpression", - "start": 7908, - "end": 7928, - "loc": { - "start": { - "line": 161, - "column": 16 - }, - "end": { - "line": 161, - "column": 36 - } - }, - "left": { - "type": "MemberExpression", - "start": 7908, - "end": 7922, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 7849, + "end": 7871, "loc": { "start": { "line": 161, @@ -9095,13 +9399,13 @@ }, "end": { "line": 161, - "column": 30 + "column": 38 } }, - "object": { + "id": { "type": "Identifier", - "start": 7908, - "end": 7920, + "start": 7849, + "end": 7850, "loc": { "start": { "line": 161, @@ -9109,89 +9413,183 @@ }, "end": { "line": 161, - "column": 28 + "column": 17 }, - "identifierName": "parallaxInfo" + "identifierName": "x" }, - "name": "parallaxInfo", + "name": "x", "leadingComments": null }, - "property": { - "type": "Identifier", - "start": 7921, - "end": 7922, + "init": { + "type": "BinaryExpression", + "start": 7853, + "end": 7871, "loc": { "start": { "line": 161, - "column": 29 + "column": 20 }, "end": { "line": 161, - "column": 30 + "column": 38 + } + }, + "left": { + "type": "MemberExpression", + "start": 7853, + "end": 7863, + "loc": { + "start": { + "line": 161, + "column": 20 + }, + "end": { + "line": 161, + "column": 30 + } }, - "identifierName": "x" + "object": { + "type": "Identifier", + "start": 7853, + "end": 7861, + "loc": { + "start": { + "line": 161, + "column": 20 + }, + "end": { + "line": 161, + "column": 28 + }, + "identifierName": "instance" + }, + "name": "instance" + }, + "property": { + "type": "Identifier", + "start": 7862, + "end": 7863, + "loc": { + "start": { + "line": 161, + "column": 29 + }, + "end": { + "line": 161, + "column": 30 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false }, - "name": "x" + "operator": "+", + "right": { + "type": "Identifier", + "start": 7866, + "end": 7871, + "loc": { + "start": { + "line": 161, + "column": 33 + }, + "end": { + "line": 161, + "column": 38 + }, + "identifierName": "distX" + }, + "name": "distX" + } }, - "computed": false, "leadingComments": null - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 7927, - "end": 7928, + } + ], + "kind": "let", + "leadingComments": [ + { + "type": "CommentLine", + "value": " Position to set the instance to.", + "start": 7796, + "end": 7831, "loc": { "start": { - "line": 161, - "column": 35 + "line": 160, + "column": 12 }, "end": { - "line": 161, - "column": 36 + "line": 160, + "column": 47 } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 7886, + "end": 7913, + "loc": { + "start": { + "line": 162, + "column": 12 }, - "leadingComments": null + "end": { + "line": 162, + "column": 39 + } }, - "consequent": { - "type": "BlockStatement", - "start": 7930, - "end": 8144, - "loc": { - "start": { - "line": 161, - "column": 38 + "declarations": [ + { + "type": "VariableDeclarator", + "start": 7890, + "end": 7912, + "loc": { + "start": { + "line": 162, + "column": 16 + }, + "end": { + "line": 162, + "column": 38 + } }, - "end": { - "line": 166, - "column": 13 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 7949, - "end": 8073, + "id": { + "type": "Identifier", + "start": 7890, + "end": 7891, "loc": { "start": { "line": 162, "column": 16 }, "end": { - "line": 164, + "line": 162, "column": 17 + }, + "identifierName": "y" + }, + "name": "y" + }, + "init": { + "type": "BinaryExpression", + "start": 7894, + "end": 7912, + "loc": { + "start": { + "line": 162, + "column": 20 + }, + "end": { + "line": 162, + "column": 38 } }, - "test": { - "type": "BinaryExpression", - "start": 7953, - "end": 7992, + "left": { + "type": "MemberExpression", + "start": 7894, + "end": 7904, "loc": { "start": { "line": 162, @@ -9199,13 +9597,13 @@ }, "end": { "line": 162, - "column": 59 + "column": 30 } }, - "left": { - "type": "UnaryExpression", - "start": 7953, - "end": 7979, + "object": { + "type": "Identifier", + "start": 7894, + "end": 7902, "loc": { "start": { "line": 162, @@ -9213,216 +9611,159 @@ }, "end": { "line": 162, - "column": 46 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 7960, - "end": 7978, - "loc": { - "start": { - "line": 162, - "column": 27 - }, - "end": { - "line": 162, - "column": 45 - }, - "identifierName": "pSimulatedPosition" + "column": 28 }, - "name": "pSimulatedPosition", - "extra": { - "parenthesized": true, - "parenStart": 7959 - } + "identifierName": "instance" }, - "extra": { - "parenthesizedArgument": false - } + "name": "instance" }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 7984, - "end": 7992, + "property": { + "type": "Identifier", + "start": 7903, + "end": 7904, "loc": { "start": { "line": 162, - "column": 51 + "column": 29 }, "end": { "line": 162, - "column": 59 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" + "column": 30 + }, + "identifierName": "y" }, - "value": "number" - } + "name": "y" + }, + "computed": false }, - "consequent": { - "type": "BlockStatement", - "start": 7994, - "end": 8073, + "operator": "+", + "right": { + "type": "Identifier", + "start": 7907, + "end": 7912, "loc": { "start": { "line": 162, - "column": 61 + "column": 33 }, "end": { - "line": 164, - "column": 17 - } + "line": 162, + "column": 38 + }, + "identifierName": "distY" }, - "body": [ - { - "type": "ExpressionStatement", - "start": 8017, - "end": 8054, - "loc": { - "start": { - "line": 163, - "column": 20 - }, - "end": { - "line": 163, - "column": 57 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 8017, - "end": 8053, - "loc": { - "start": { - "line": 163, - "column": 20 - }, - "end": { - "line": 163, - "column": 56 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 8017, - "end": 8024, - "loc": { - "start": { - "line": 163, - "column": 20 - }, - "end": { - "line": 163, - "column": 27 - }, - "identifierName": "cameraX" - }, - "name": "cameraX" - }, - "right": { - "type": "BinaryExpression", - "start": 8027, - "end": 8053, - "loc": { - "start": { - "line": 163, - "column": 30 - }, - "end": { - "line": 163, - "column": 56 - } - }, - "left": { - "type": "Identifier", - "start": 8027, - "end": 8032, - "loc": { - "start": { - "line": 163, - "column": 30 - }, - "end": { - "line": 163, - "column": 35 - }, - "identifierName": "distX" - }, - "name": "distX" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 8035, - "end": 8053, - "loc": { - "start": { - "line": 163, - "column": 38 - }, - "end": { - "line": 163, - "column": 56 - }, - "identifierName": "pSimulatedPosition" - }, - "name": "pSimulatedPosition" - } - } - } - } - ], - "directives": [] + "name": "distY" + } + } + } + ], + "kind": "let", + "trailingComments": [ + { + "type": "CommentLine", + "value": " Hard code in static backgrounds", + "start": 7929, + "end": 7963, + "loc": { + "start": { + "line": 164, + "column": 12 }, - "alternate": null + "end": { + "line": 164, + "column": 46 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 7977, + "end": 8068, + "loc": { + "start": { + "line": 165, + "column": 12 + }, + "end": { + "line": 167, + "column": 13 + } + }, + "test": { + "type": "Identifier", + "start": 7981, + "end": 7994, + "loc": { + "start": { + "line": 165, + "column": 16 + }, + "end": { + "line": 165, + "column": 29 + }, + "identifierName": "isBackgroundX" + }, + "name": "isBackgroundX", + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 7996, + "end": 8068, + "loc": { + "start": { + "line": 165, + "column": 31 }, + "end": { + "line": 167, + "column": 13 + } + }, + "body": [ { "type": "ExpressionStatement", - "start": 8091, - "end": 8129, + "start": 8015, + "end": 8053, "loc": { "start": { - "line": 165, + "line": 166, "column": 16 }, "end": { - "line": 165, + "line": 166, "column": 54 } }, "expression": { "type": "AssignmentExpression", - "start": 8091, - "end": 8128, + "start": 8015, + "end": 8052, "loc": { "start": { - "line": 165, + "line": 166, "column": 16 }, "end": { - "line": 165, + "line": 166, "column": 53 } }, "operator": "=", "left": { "type": "Identifier", - "start": 8091, - "end": 8092, + "start": 8015, + "end": 8016, "loc": { "start": { - "line": 165, + "line": 166, "column": 16 }, "end": { - "line": 165, + "line": 166, "column": 17 }, "identifierName": "x" @@ -9431,29 +9772,29 @@ }, "right": { "type": "BinaryExpression", - "start": 8095, - "end": 8128, + "start": 8019, + "end": 8052, "loc": { "start": { - "line": 165, + "line": 166, "column": 20 }, "end": { - "line": 165, + "line": 166, "column": 53 } }, "left": { "type": "Identifier", - "start": 8095, - "end": 8102, + "start": 8019, + "end": 8026, "loc": { "start": { - "line": 165, + "line": 166, "column": 20 }, "end": { - "line": 165, + "line": 166, "column": 27 }, "identifierName": "cameraX" @@ -9463,57 +9804,57 @@ "operator": "-", "right": { "type": "BinaryExpression", - "start": 8105, - "end": 8128, + "start": 8029, + "end": 8052, "loc": { "start": { - "line": 165, + "line": 166, "column": 30 }, "end": { - "line": 165, + "line": 166, "column": 53 } }, "left": { "type": "MemberExpression", - "start": 8105, - "end": 8124, + "start": 8029, + "end": 8048, "loc": { "start": { - "line": 165, + "line": 166, "column": 30 }, "end": { - "line": 165, + "line": 166, "column": 49 } }, "object": { "type": "MemberExpression", - "start": 8105, - "end": 8118, + "start": 8029, + "end": 8042, "loc": { "start": { - "line": 165, + "line": 166, "column": 30 }, "end": { - "line": 165, + "line": 166, "column": 43 } }, "object": { "type": "Identifier", - "start": 8105, - "end": 8113, + "start": 8029, + "end": 8037, "loc": { "start": { - "line": 165, + "line": 166, "column": 30 }, "end": { - "line": 165, + "line": 166, "column": 38 }, "identifierName": "instance" @@ -9522,15 +9863,15 @@ }, "property": { "type": "Identifier", - "start": 8114, - "end": 8118, + "start": 8038, + "end": 8042, "loc": { "start": { - "line": 165, + "line": 166, "column": 39 }, "end": { - "line": 165, + "line": 166, "column": 43 }, "identifierName": "icon" @@ -9541,15 +9882,15 @@ }, "property": { "type": "Identifier", - "start": 8119, - "end": 8124, + "start": 8043, + "end": 8048, "loc": { "start": { - "line": 165, + "line": 166, "column": 44 }, "end": { - "line": 165, + "line": 166, "column": 49 }, "identifierName": "width" @@ -9561,15 +9902,15 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 8127, - "end": 8128, + "start": 8051, + "end": 8052, "loc": { "start": { - "line": 165, + "line": 166, "column": 52 }, "end": { - "line": 165, + "line": 166, "column": 53 } }, @@ -9584,42 +9925,23 @@ } } ], - "directives": [], - "trailingComments": null + "directives": [] }, "alternate": null, "leadingComments": [ { "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 7826, - "end": 7890, - "loc": { - "start": { - "line": 160, - "column": 12 - }, - "end": { - "line": 160, - "column": 76 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 8158, - "end": 8222, + "value": " Hard code in static backgrounds", + "start": 7929, + "end": 7963, "loc": { "start": { - "line": 167, + "line": 164, "column": 12 }, "end": { - "line": 167, - "column": 76 + "line": 164, + "column": 46 } } } @@ -9627,8 +9949,8 @@ }, { "type": "IfStatement", - "start": 8236, - "end": 8335, + "start": 8082, + "end": 8174, "loc": { "start": { "line": 168, @@ -9640,9 +9962,9 @@ } }, "test": { - "type": "BinaryExpression", - "start": 8240, - "end": 8260, + "type": "Identifier", + "start": 8086, + "end": 8099, "loc": { "start": { "line": 168, @@ -9650,92 +9972,20 @@ }, "end": { "line": 168, - "column": 36 - } - }, - "left": { - "type": "MemberExpression", - "start": 8240, - "end": 8254, - "loc": { - "start": { - "line": 168, - "column": 16 - }, - "end": { - "line": 168, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 8240, - "end": 8252, - "loc": { - "start": { - "line": 168, - "column": 16 - }, - "end": { - "line": 168, - "column": 28 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 8253, - "end": 8254, - "loc": { - "start": { - "line": 168, - "column": 29 - }, - "end": { - "line": 168, - "column": 30 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false, - "leadingComments": null - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 8259, - "end": 8260, - "loc": { - "start": { - "line": 168, - "column": 35 - }, - "end": { - "line": 168, - "column": 36 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" + "column": 29 }, - "value": 1 + "identifierName": "isBackgroundY" }, - "leadingComments": null + "name": "isBackgroundY" }, "consequent": { "type": "BlockStatement", - "start": 8262, - "end": 8335, + "start": 8101, + "end": 8174, "loc": { "start": { "line": 168, - "column": 38 + "column": 31 }, "end": { "line": 170, @@ -9745,8 +9995,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8281, - "end": 8320, + "start": 8120, + "end": 8159, "loc": { "start": { "line": 169, @@ -9759,8 +10009,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8281, - "end": 8319, + "start": 8120, + "end": 8158, "loc": { "start": { "line": 169, @@ -9774,8 +10024,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 8281, - "end": 8282, + "start": 8120, + "end": 8121, "loc": { "start": { "line": 169, @@ -9791,8 +10041,8 @@ }, "right": { "type": "BinaryExpression", - "start": 8285, - "end": 8319, + "start": 8124, + "end": 8158, "loc": { "start": { "line": 169, @@ -9805,8 +10055,8 @@ }, "left": { "type": "Identifier", - "start": 8285, - "end": 8292, + "start": 8124, + "end": 8131, "loc": { "start": { "line": 169, @@ -9823,8 +10073,8 @@ "operator": "-", "right": { "type": "BinaryExpression", - "start": 8295, - "end": 8319, + "start": 8134, + "end": 8158, "loc": { "start": { "line": 169, @@ -9837,8 +10087,8 @@ }, "left": { "type": "MemberExpression", - "start": 8295, - "end": 8315, + "start": 8134, + "end": 8154, "loc": { "start": { "line": 169, @@ -9851,8 +10101,8 @@ }, "object": { "type": "MemberExpression", - "start": 8295, - "end": 8308, + "start": 8134, + "end": 8147, "loc": { "start": { "line": 169, @@ -9865,8 +10115,8 @@ }, "object": { "type": "Identifier", - "start": 8295, - "end": 8303, + "start": 8134, + "end": 8142, "loc": { "start": { "line": 169, @@ -9882,8 +10132,8 @@ }, "property": { "type": "Identifier", - "start": 8304, - "end": 8308, + "start": 8143, + "end": 8147, "loc": { "start": { "line": 169, @@ -9901,8 +10151,8 @@ }, "property": { "type": "Identifier", - "start": 8309, - "end": 8315, + "start": 8148, + "end": 8154, "loc": { "start": { "line": 169, @@ -9921,8 +10171,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 8318, - "end": 8319, + "start": 8157, + "end": 8158, "loc": { "start": { "line": 169, @@ -9948,30 +10198,12 @@ "trailingComments": null }, "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 8158, - "end": 8222, - "loc": { - "start": { - "line": 167, - "column": 12 - }, - "end": { - "line": 167, - "column": 76 - } - } - } - ], "trailingComments": [ { "type": "CommentLine", "value": " Set the position", - "start": 8351, - "end": 8370, + "start": 8190, + "end": 8209, "loc": { "start": { "line": 172, @@ -9987,8 +10219,8 @@ }, { "type": "ExpressionStatement", - "start": 8384, - "end": 8399, + "start": 8223, + "end": 8238, "loc": { "start": { "line": 173, @@ -10001,8 +10233,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8384, - "end": 8398, + "start": 8223, + "end": 8237, "loc": { "start": { "line": 173, @@ -10016,8 +10248,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8384, - "end": 8394, + "start": 8223, + "end": 8233, "loc": { "start": { "line": 173, @@ -10030,8 +10262,8 @@ }, "object": { "type": "Identifier", - "start": 8384, - "end": 8392, + "start": 8223, + "end": 8231, "loc": { "start": { "line": 173, @@ -10048,8 +10280,8 @@ }, "property": { "type": "Identifier", - "start": 8393, - "end": 8394, + "start": 8232, + "end": 8233, "loc": { "start": { "line": 173, @@ -10068,8 +10300,8 @@ }, "right": { "type": "Identifier", - "start": 8397, - "end": 8398, + "start": 8236, + "end": 8237, "loc": { "start": { "line": 173, @@ -10089,8 +10321,8 @@ { "type": "CommentLine", "value": " Set the position", - "start": 8351, - "end": 8370, + "start": 8190, + "end": 8209, "loc": { "start": { "line": 172, @@ -10106,8 +10338,8 @@ }, { "type": "ExpressionStatement", - "start": 8413, - "end": 8428, + "start": 8252, + "end": 8267, "loc": { "start": { "line": 174, @@ -10120,8 +10352,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8413, - "end": 8427, + "start": 8252, + "end": 8266, "loc": { "start": { "line": 174, @@ -10135,8 +10367,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8413, - "end": 8423, + "start": 8252, + "end": 8262, "loc": { "start": { "line": 174, @@ -10149,8 +10381,8 @@ }, "object": { "type": "Identifier", - "start": 8413, - "end": 8421, + "start": 8252, + "end": 8260, "loc": { "start": { "line": 174, @@ -10166,8 +10398,8 @@ }, "property": { "type": "Identifier", - "start": 8422, - "end": 8423, + "start": 8261, + "end": 8262, "loc": { "start": { "line": 174, @@ -10185,8 +10417,8 @@ }, "right": { "type": "Identifier", - "start": 8426, - "end": 8427, + "start": 8265, + "end": 8266, "loc": { "start": { "line": 174, @@ -10203,44 +10435,306 @@ } }, { - "type": "IfStatement", - "start": 8444, - "end": 9246, + "type": "ExpressionStatement", + "start": 8283, + "end": 8319, "loc": { "start": { "line": 176, "column": 12 }, "end": { - "line": 190, + "line": 176, + "column": 48 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 8283, + "end": 8318, + "loc": { + "start": { + "line": 176, + "column": 12 + }, + "end": { + "line": 176, + "column": 47 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 8283, + "end": 8308, + "loc": { + "start": { + "line": 176, + "column": 12 + }, + "end": { + "line": 176, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 8283, + "end": 8306, + "loc": { + "start": { + "line": 176, + "column": 12 + }, + "end": { + "line": 176, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 8283, + "end": 8295, + "loc": { + "start": { + "line": 176, + "column": 12 + }, + "end": { + "line": 176, + "column": 24 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "property": { + "type": "Identifier", + "start": 8296, + "end": 8306, + "loc": { + "start": { + "line": 176, + "column": 25 + }, + "end": { + "line": 176, + "column": 35 + }, + "identifierName": "lastCamPos" + }, + "name": "lastCamPos" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 8307, + "end": 8308, + "loc": { + "start": { + "line": 176, + "column": 36 + }, + "end": { + "line": 176, + "column": 37 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 8311, + "end": 8318, + "loc": { + "start": { + "line": 176, + "column": 40 + }, + "end": { + "line": 176, + "column": 47 + }, + "identifierName": "cameraX" + }, + "name": "cameraX" + } + } + }, + { + "type": "ExpressionStatement", + "start": 8333, + "end": 8369, + "loc": { + "start": { + "line": 177, + "column": 12 + }, + "end": { + "line": 177, + "column": 48 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 8333, + "end": 8368, + "loc": { + "start": { + "line": 177, + "column": 12 + }, + "end": { + "line": 177, + "column": 47 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 8333, + "end": 8358, + "loc": { + "start": { + "line": 177, + "column": 12 + }, + "end": { + "line": 177, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 8333, + "end": 8356, + "loc": { + "start": { + "line": 177, + "column": 12 + }, + "end": { + "line": 177, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 8333, + "end": 8345, + "loc": { + "start": { + "line": 177, + "column": 12 + }, + "end": { + "line": 177, + "column": 24 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "property": { + "type": "Identifier", + "start": 8346, + "end": 8356, + "loc": { + "start": { + "line": 177, + "column": 25 + }, + "end": { + "line": 177, + "column": 35 + }, + "identifierName": "lastCamPos" + }, + "name": "lastCamPos" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 8357, + "end": 8358, + "loc": { + "start": { + "line": 177, + "column": 36 + }, + "end": { + "line": 177, + "column": 37 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 8361, + "end": 8368, + "loc": { + "start": { + "line": 177, + "column": 40 + }, + "end": { + "line": 177, + "column": 47 + }, + "identifierName": "cameraY" + }, + "name": "cameraY" + } + } + }, + { + "type": "IfStatement", + "start": 8385, + "end": 9086, + "loc": { + "start": { + "line": 179, + "column": 12 + }, + "end": { + "line": 192, "column": 13 } }, "test": { "type": "MemberExpression", - "start": 8448, - "end": 8465, + "start": 8389, + "end": 8406, "loc": { "start": { - "line": 176, + "line": 179, "column": 16 }, "end": { - "line": 176, + "line": 179, "column": 33 } }, "object": { "type": "Identifier", - "start": 8448, - "end": 8460, + "start": 8389, + "end": 8401, "loc": { "start": { - "line": 176, + "line": 179, "column": 16 }, "end": { - "line": 176, + "line": 179, "column": 28 }, "identifierName": "parallaxInfo" @@ -10249,15 +10743,15 @@ }, "property": { "type": "Identifier", - "start": 8461, - "end": 8465, + "start": 8402, + "end": 8406, "loc": { "start": { - "line": 176, + "line": 179, "column": 29 }, "end": { - "line": 176, + "line": 179, "column": 33 }, "identifierName": "loop" @@ -10268,482 +10762,245 @@ }, "consequent": { "type": "BlockStatement", - "start": 8467, - "end": 9246, + "start": 8408, + "end": 9086, "loc": { "start": { - "line": 176, + "line": 179, "column": 35 }, "end": { - "line": 190, + "line": 192, "column": 13 } }, "body": [ { "type": "IfStatement", - "start": 8486, - "end": 9231, + "start": 8515, + "end": 9071, "loc": { "start": { - "line": 177, + "line": 181, "column": 16 }, "end": { - "line": 189, + "line": 191, "column": 17 } }, "test": { - "type": "BinaryExpression", - "start": 8490, - "end": 8510, + "type": "LogicalExpression", + "start": 8519, + "end": 8551, "loc": { "start": { - "line": 177, + "line": 181, "column": 20 }, "end": { - "line": 177, - "column": 40 + "line": 181, + "column": 52 } }, "left": { - "type": "MemberExpression", - "start": 8490, - "end": 8504, + "type": "UnaryExpression", + "start": 8519, + "end": 8533, "loc": { "start": { - "line": 177, + "line": 181, "column": 20 }, "end": { - "line": 177, + "line": 181, "column": 34 } }, - "object": { - "type": "Identifier", - "start": 8490, - "end": 8502, - "loc": { - "start": { - "line": 177, - "column": 20 - }, - "end": { - "line": 177, - "column": 32 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { + "operator": "!", + "prefix": true, + "argument": { "type": "Identifier", - "start": 8503, - "end": 8504, + "start": 8520, + "end": 8533, "loc": { "start": { - "line": 177, - "column": 33 + "line": 181, + "column": 21 }, "end": { - "line": 177, + "line": 181, "column": 34 }, - "identifierName": "x" + "identifierName": "isBackgroundX" }, - "name": "x" + "name": "isBackgroundX", + "leadingComments": null }, - "computed": false + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null }, - "operator": "!==", + "operator": "&&", "right": { - "type": "NumericLiteral", - "start": 8509, - "end": 8510, + "type": "UnaryExpression", + "start": 8537, + "end": 8551, "loc": { "start": { - "line": 177, - "column": 39 + "line": 181, + "column": 38 }, "end": { - "line": 177, - "column": 40 + "line": 181, + "column": 52 } }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 8512, - "end": 9231, - "loc": { - "start": { - "line": 177, - "column": 42 - }, - "end": { - "line": 189, - "column": 17 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 8599, - "end": 8648, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 8538, + "end": 8551, "loc": { "start": { - "line": 179, - "column": 20 + "line": 181, + "column": 39 }, "end": { - "line": 179, - "column": 69 - } + "line": 181, + "column": 52 + }, + "identifierName": "isBackgroundY" }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8605, - "end": 8647, - "loc": { - "start": { - "line": 179, - "column": 26 - }, - "end": { - "line": 179, - "column": 68 - } - }, - "id": { - "type": "Identifier", - "start": 8605, - "end": 8614, - "loc": { - "start": { - "line": 179, - "column": 26 - }, - "end": { - "line": 179, - "column": 35 - }, - "identifierName": "relativeX" - }, - "name": "relativeX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 8617, - "end": 8647, - "loc": { - "start": { - "line": 179, - "column": 38 - }, - "end": { - "line": 179, - "column": 68 - } - }, - "left": { - "type": "Identifier", - "start": 8617, - "end": 8624, - "loc": { - "start": { - "line": 179, - "column": 38 - }, - "end": { - "line": 179, - "column": 45 - }, - "identifierName": "cameraX" - }, - "name": "cameraX" - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 8628, - "end": 8646, - "loc": { - "start": { - "line": 179, - "column": 49 - }, - "end": { - "line": 179, - "column": 67 - } - }, - "left": { - "type": "NumericLiteral", - "start": 8628, - "end": 8629, - "loc": { - "start": { - "line": 179, - "column": 49 - }, - "end": { - "line": 179, - "column": 50 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 8632, - "end": 8646, - "loc": { - "start": { - "line": 179, - "column": 53 - }, - "end": { - "line": 179, - "column": 67 - } - }, - "object": { - "type": "Identifier", - "start": 8632, - "end": 8644, - "loc": { - "start": { - "line": 179, - "column": 53 - }, - "end": { - "line": 179, - "column": 65 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 8645, - "end": 8646, - "loc": { - "start": { - "line": 179, - "column": 66 - }, - "end": { - "line": 179, - "column": 67 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 8627 - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " How far we moved relative to the camera", - "start": 8535, - "end": 8577, - "loc": { - "start": { - "line": 178, - "column": 20 - }, - "end": { - "line": 178, - "column": 62 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " The start pos + total width", - "start": 8670, - "end": 8700, - "loc": { - "start": { - "line": 180, - "column": 20 - }, - "end": { - "line": 180, - "column": 50 - } - } - } - ] + "name": "isBackgroundY" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 8553, + "end": 9071, + "loc": { + "start": { + "line": 181, + "column": 54 }, + "end": { + "line": 191, + "column": 17 + } + }, + "body": [ { "type": "VariableDeclaration", - "start": 8722, - "end": 8783, + "start": 8628, + "end": 8678, "loc": { "start": { - "line": 181, + "line": 183, "column": 20 }, "end": { - "line": 181, - "column": 81 + "line": 183, + "column": 70 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 8728, - "end": 8782, + "start": 8634, + "end": 8677, "loc": { "start": { - "line": 181, + "line": 183, "column": 26 }, "end": { - "line": 181, - "column": 80 + "line": 183, + "column": 69 } }, "id": { "type": "Identifier", - "start": 8728, - "end": 8732, + "start": 8634, + "end": 8642, "loc": { "start": { - "line": 181, + "line": 183, "column": 26 }, "end": { - "line": 181, - "column": 30 + "line": 183, + "column": 34 }, - "identifierName": "endX" + "identifierName": "rightEnd" }, - "name": "endX", + "name": "rightEnd", "leadingComments": null }, "init": { "type": "BinaryExpression", - "start": 8735, - "end": 8782, + "start": 8645, + "end": 8677, "loc": { "start": { - "line": 181, - "column": 33 + "line": 183, + "column": 37 }, "end": { - "line": 181, - "column": 80 + "line": 183, + "column": 69 } }, "left": { "type": "MemberExpression", - "start": 8735, - "end": 8760, + "start": 8645, + "end": 8655, "loc": { "start": { - "line": 181, - "column": 33 + "line": 183, + "column": 37 }, "end": { - "line": 181, - "column": 58 + "line": 183, + "column": 47 } }, "object": { - "type": "MemberExpression", - "start": 8735, - "end": 8758, + "type": "Identifier", + "start": 8645, + "end": 8653, "loc": { "start": { - "line": 181, - "column": 33 + "line": 183, + "column": 37 }, "end": { - "line": 181, - "column": 56 - } - }, - "object": { - "type": "Identifier", - "start": 8735, - "end": 8747, - "loc": { - "start": { - "line": 181, - "column": 33 - }, - "end": { - "line": 181, - "column": 45 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 8748, - "end": 8758, - "loc": { - "start": { - "line": 181, - "column": 46 - }, - "end": { - "line": 181, - "column": 56 - }, - "identifierName": "initialPos" + "line": 183, + "column": 45 }, - "name": "initialPos" + "identifierName": "instance" }, - "computed": false + "name": "instance" }, "property": { "type": "Identifier", - "start": 8759, - "end": 8760, + "start": 8654, + "end": 8655, "loc": { "start": { - "line": 181, - "column": 57 + "line": 183, + "column": 46 }, "end": { - "line": 181, - "column": 58 + "line": 183, + "column": 47 }, "identifierName": "x" }, @@ -10754,44 +11011,44 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 8763, - "end": 8782, + "start": 8658, + "end": 8677, "loc": { "start": { - "line": 181, - "column": 61 + "line": 183, + "column": 50 }, "end": { - "line": 181, - "column": 80 + "line": 183, + "column": 69 } }, "object": { "type": "MemberExpression", - "start": 8763, - "end": 8776, + "start": 8658, + "end": 8671, "loc": { "start": { - "line": 181, - "column": 61 + "line": 183, + "column": 50 }, "end": { - "line": 181, - "column": 74 + "line": 183, + "column": 63 } }, "object": { "type": "Identifier", - "start": 8763, - "end": 8771, + "start": 8658, + "end": 8666, "loc": { "start": { - "line": 181, - "column": 61 + "line": 183, + "column": 50 }, "end": { - "line": 181, - "column": 69 + "line": 183, + "column": 58 }, "identifierName": "instance" }, @@ -10799,16 +11056,16 @@ }, "property": { "type": "Identifier", - "start": 8772, - "end": 8776, + "start": 8667, + "end": 8671, "loc": { "start": { - "line": 181, - "column": 70 + "line": 183, + "column": 59 }, "end": { - "line": 181, - "column": 74 + "line": 183, + "column": 63 }, "identifierName": "icon" }, @@ -10818,16 +11075,16 @@ }, "property": { "type": "Identifier", - "start": 8777, - "end": 8782, + "start": 8672, + "end": 8677, "loc": { "start": { - "line": 181, - "column": 75 + "line": 183, + "column": 64 }, "end": { - "line": 181, - "column": 80 + "line": 183, + "column": 69 }, "identifierName": "width" }, @@ -10844,15 +11101,15 @@ { "type": "CommentLine", "value": " The start pos + total width", - "start": 8670, - "end": 8700, + "start": 8576, + "end": 8606, "loc": { "start": { - "line": 180, + "line": 182, "column": 20 }, "end": { - "line": 180, + "line": 182, "column": 50 } } @@ -10862,15 +11119,15 @@ { "type": "CommentLine", "value": " The start pos - total width / 2", - "start": 8805, - "end": 8839, + "start": 8700, + "end": 8734, "loc": { "start": { - "line": 182, + "line": 184, "column": 20 }, "end": { - "line": 182, + "line": 184, "column": 54 } } @@ -10879,141 +11136,108 @@ }, { "type": "VariableDeclaration", - "start": 8861, - "end": 8934, + "start": 8756, + "end": 8809, "loc": { "start": { - "line": 183, + "line": 185, "column": 20 }, "end": { - "line": 183, - "column": 93 + "line": 185, + "column": 73 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 8867, - "end": 8933, + "start": 8762, + "end": 8808, "loc": { "start": { - "line": 183, + "line": 185, "column": 26 }, "end": { - "line": 183, - "column": 92 + "line": 185, + "column": 72 } }, "id": { "type": "Identifier", - "start": 8867, - "end": 8879, + "start": 8762, + "end": 8769, "loc": { "start": { - "line": 183, + "line": 185, "column": 26 }, "end": { - "line": 183, - "column": 38 + "line": 185, + "column": 33 }, - "identifierName": "negativeEndX" + "identifierName": "leftEnd" }, - "name": "negativeEndX", + "name": "leftEnd", "leadingComments": null }, "init": { "type": "BinaryExpression", - "start": 8882, - "end": 8933, + "start": 8772, + "end": 8808, "loc": { "start": { - "line": 183, - "column": 41 + "line": 185, + "column": 36 }, "end": { - "line": 183, - "column": 92 + "line": 185, + "column": 72 } }, "left": { "type": "MemberExpression", - "start": 8882, - "end": 8907, + "start": 8772, + "end": 8782, "loc": { "start": { - "line": 183, - "column": 41 + "line": 185, + "column": 36 }, "end": { - "line": 183, - "column": 66 + "line": 185, + "column": 46 } }, "object": { - "type": "MemberExpression", - "start": 8882, - "end": 8905, + "type": "Identifier", + "start": 8772, + "end": 8780, "loc": { "start": { - "line": 183, - "column": 41 + "line": 185, + "column": 36 }, "end": { - "line": 183, - "column": 64 - } - }, - "object": { - "type": "Identifier", - "start": 8882, - "end": 8894, - "loc": { - "start": { - "line": 183, - "column": 41 - }, - "end": { - "line": 183, - "column": 53 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 8895, - "end": 8905, - "loc": { - "start": { - "line": 183, - "column": 54 - }, - "end": { - "line": 183, - "column": 64 - }, - "identifierName": "initialPos" + "line": 185, + "column": 44 }, - "name": "initialPos" + "identifierName": "instance" }, - "computed": false + "name": "instance" }, "property": { "type": "Identifier", - "start": 8906, - "end": 8907, + "start": 8781, + "end": 8782, "loc": { "start": { - "line": 183, - "column": 65 + "line": 185, + "column": 45 }, "end": { - "line": 183, - "column": 66 + "line": 185, + "column": 46 }, "identifierName": "x" }, @@ -11024,58 +11248,58 @@ "operator": "-", "right": { "type": "BinaryExpression", - "start": 8910, - "end": 8933, + "start": 8785, + "end": 8808, "loc": { "start": { - "line": 183, - "column": 69 + "line": 185, + "column": 49 }, "end": { - "line": 183, - "column": 92 + "line": 185, + "column": 72 } }, "left": { "type": "MemberExpression", - "start": 8910, - "end": 8929, + "start": 8785, + "end": 8804, "loc": { "start": { - "line": 183, - "column": 69 + "line": 185, + "column": 49 }, "end": { - "line": 183, - "column": 88 + "line": 185, + "column": 68 } }, "object": { "type": "MemberExpression", - "start": 8910, - "end": 8923, + "start": 8785, + "end": 8798, "loc": { "start": { - "line": 183, - "column": 69 + "line": 185, + "column": 49 }, "end": { - "line": 183, - "column": 82 + "line": 185, + "column": 62 } }, "object": { "type": "Identifier", - "start": 8910, - "end": 8918, + "start": 8785, + "end": 8793, "loc": { "start": { - "line": 183, - "column": 69 + "line": 185, + "column": 49 }, "end": { - "line": 183, - "column": 77 + "line": 185, + "column": 57 }, "identifierName": "instance" }, @@ -11083,16 +11307,16 @@ }, "property": { "type": "Identifier", - "start": 8919, - "end": 8923, + "start": 8794, + "end": 8798, "loc": { "start": { - "line": 183, - "column": 78 + "line": 185, + "column": 58 }, "end": { - "line": 183, - "column": 82 + "line": 185, + "column": 62 }, "identifierName": "icon" }, @@ -11102,16 +11326,16 @@ }, "property": { "type": "Identifier", - "start": 8924, - "end": 8929, + "start": 8799, + "end": 8804, "loc": { "start": { - "line": 183, - "column": 83 + "line": 185, + "column": 63 }, "end": { - "line": 183, - "column": 88 + "line": 185, + "column": 68 }, "identifierName": "width" }, @@ -11122,23 +11346,23 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 8932, - "end": 8933, + "start": 8807, + "end": 8808, "loc": { "start": { - "line": 183, - "column": 91 + "line": 185, + "column": 71 }, "end": { - "line": 183, - "column": 92 + "line": 185, + "column": 72 } }, "extra": { - "rawValue": 2, - "raw": "2" + "rawValue": 6, + "raw": "6" }, - "value": 2 + "value": 6 } } }, @@ -11150,15 +11374,15 @@ { "type": "CommentLine", "value": " The start pos - total width / 2", - "start": 8805, - "end": 8839, + "start": 8700, + "end": 8734, "loc": { "start": { - "line": 182, + "line": 184, "column": 20 }, "end": { - "line": 182, + "line": 184, "column": 54 } } @@ -11167,188 +11391,155 @@ }, { "type": "IfStatement", - "start": 8956, - "end": 9212, + "start": 8831, + "end": 9052, "loc": { "start": { - "line": 184, + "line": 186, "column": 20 }, "end": { - "line": 188, + "line": 190, "column": 21 } }, "test": { "type": "BinaryExpression", - "start": 8960, - "end": 8976, + "start": 8835, + "end": 8853, "loc": { "start": { - "line": 184, + "line": 186, "column": 24 }, "end": { - "line": 184, - "column": 40 + "line": 186, + "column": 42 } }, "left": { "type": "Identifier", - "start": 8960, - "end": 8969, + "start": 8835, + "end": 8842, "loc": { "start": { - "line": 184, + "line": 186, "column": 24 }, "end": { - "line": 184, - "column": 33 + "line": 186, + "column": 31 }, - "identifierName": "relativeX" + "identifierName": "cameraX" }, - "name": "relativeX" + "name": "cameraX" }, "operator": ">", "right": { "type": "Identifier", - "start": 8972, - "end": 8976, + "start": 8845, + "end": 8853, "loc": { "start": { - "line": 184, - "column": 36 + "line": 186, + "column": 34 }, "end": { - "line": 184, - "column": 40 + "line": 186, + "column": 42 }, - "identifierName": "endX" + "identifierName": "rightEnd" }, - "name": "endX" + "name": "rightEnd" } }, "consequent": { "type": "BlockStatement", - "start": 8978, - "end": 9077, + "start": 8855, + "end": 8939, "loc": { "start": { - "line": 184, - "column": 42 + "line": 186, + "column": 44 }, "end": { - "line": 186, + "line": 188, "column": 21 } }, "body": [ { "type": "ExpressionStatement", - "start": 9005, - "end": 9054, + "start": 8882, + "end": 8916, "loc": { "start": { - "line": 185, + "line": 187, "column": 24 }, "end": { - "line": 185, - "column": 73 + "line": 187, + "column": 58 } }, "expression": { "type": "AssignmentExpression", - "start": 9005, - "end": 9053, + "start": 8882, + "end": 8915, "loc": { "start": { - "line": 185, + "line": 187, "column": 24 }, "end": { - "line": 185, - "column": 72 + "line": 187, + "column": 57 } }, "operator": "+=", "left": { "type": "MemberExpression", - "start": 9005, - "end": 9030, + "start": 8882, + "end": 8892, "loc": { "start": { - "line": 185, + "line": 187, "column": 24 }, "end": { - "line": 185, - "column": 49 + "line": 187, + "column": 34 } }, "object": { - "type": "MemberExpression", - "start": 9005, - "end": 9028, + "type": "Identifier", + "start": 8882, + "end": 8890, "loc": { "start": { - "line": 185, + "line": 187, "column": 24 }, "end": { - "line": 185, - "column": 47 - } - }, - "object": { - "type": "Identifier", - "start": 9005, - "end": 9017, - "loc": { - "start": { - "line": 185, - "column": 24 - }, - "end": { - "line": 185, - "column": 36 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 9018, - "end": 9028, - "loc": { - "start": { - "line": 185, - "column": 37 - }, - "end": { - "line": 185, - "column": 47 - }, - "identifierName": "initialPos" + "line": 187, + "column": 32 }, - "name": "initialPos" + "identifierName": "instance" }, - "computed": false + "name": "instance" }, "property": { "type": "Identifier", - "start": 9029, - "end": 9030, + "start": 8891, + "end": 8892, "loc": { "start": { - "line": 185, - "column": 48 + "line": 187, + "column": 33 }, "end": { - "line": 185, - "column": 49 + "line": 187, + "column": 34 }, "identifierName": "x" }, @@ -11358,44 +11549,44 @@ }, "right": { "type": "MemberExpression", - "start": 9034, - "end": 9053, + "start": 8896, + "end": 8915, "loc": { "start": { - "line": 185, - "column": 53 + "line": 187, + "column": 38 }, "end": { - "line": 185, - "column": 72 + "line": 187, + "column": 57 } }, "object": { "type": "MemberExpression", - "start": 9034, - "end": 9047, + "start": 8896, + "end": 8909, "loc": { "start": { - "line": 185, - "column": 53 + "line": 187, + "column": 38 }, "end": { - "line": 185, - "column": 66 + "line": 187, + "column": 51 } }, "object": { "type": "Identifier", - "start": 9034, - "end": 9042, + "start": 8896, + "end": 8904, "loc": { "start": { - "line": 185, - "column": 53 + "line": 187, + "column": 38 }, "end": { - "line": 185, - "column": 61 + "line": 187, + "column": 46 }, "identifierName": "instance" }, @@ -11403,16 +11594,16 @@ }, "property": { "type": "Identifier", - "start": 9043, - "end": 9047, + "start": 8905, + "end": 8909, "loc": { "start": { - "line": 185, - "column": 62 + "line": 187, + "column": 47 }, "end": { - "line": 185, - "column": 66 + "line": 187, + "column": 51 }, "identifierName": "icon" }, @@ -11422,16 +11613,16 @@ }, "property": { "type": "Identifier", - "start": 9048, - "end": 9053, + "start": 8910, + "end": 8915, "loc": { "start": { - "line": 185, - "column": 67 + "line": 187, + "column": 52 }, "end": { - "line": 185, - "column": 72 + "line": 187, + "column": 57 }, "identifierName": "width" }, @@ -11446,188 +11637,155 @@ }, "alternate": { "type": "IfStatement", - "start": 9083, - "end": 9212, + "start": 8945, + "end": 9052, "loc": { "start": { - "line": 186, + "line": 188, "column": 27 }, "end": { - "line": 188, + "line": 190, "column": 21 } }, "test": { "type": "BinaryExpression", - "start": 9087, - "end": 9111, + "start": 8949, + "end": 8966, "loc": { "start": { - "line": 186, + "line": 188, "column": 31 }, "end": { - "line": 186, - "column": 55 + "line": 188, + "column": 48 } }, "left": { "type": "Identifier", - "start": 9087, - "end": 9096, + "start": 8949, + "end": 8956, "loc": { "start": { - "line": 186, + "line": 188, "column": 31 }, "end": { - "line": 186, - "column": 40 + "line": 188, + "column": 38 }, - "identifierName": "relativeX" + "identifierName": "cameraX" }, - "name": "relativeX" + "name": "cameraX" }, "operator": "<", "right": { "type": "Identifier", - "start": 9099, - "end": 9111, + "start": 8959, + "end": 8966, "loc": { "start": { - "line": 186, - "column": 43 + "line": 188, + "column": 41 }, "end": { - "line": 186, - "column": 55 + "line": 188, + "column": 48 }, - "identifierName": "negativeEndX" + "identifierName": "leftEnd" }, - "name": "negativeEndX" + "name": "leftEnd" } }, "consequent": { "type": "BlockStatement", - "start": 9113, - "end": 9212, + "start": 8968, + "end": 9052, "loc": { "start": { - "line": 186, - "column": 57 + "line": 188, + "column": 50 }, "end": { - "line": 188, + "line": 190, "column": 21 } }, "body": [ { "type": "ExpressionStatement", - "start": 9140, - "end": 9189, + "start": 8995, + "end": 9029, "loc": { "start": { - "line": 187, + "line": 189, "column": 24 }, "end": { - "line": 187, - "column": 73 + "line": 189, + "column": 58 } }, "expression": { "type": "AssignmentExpression", - "start": 9140, - "end": 9188, + "start": 8995, + "end": 9028, "loc": { "start": { - "line": 187, + "line": 189, "column": 24 }, "end": { - "line": 187, - "column": 72 + "line": 189, + "column": 57 } }, "operator": "-=", "left": { "type": "MemberExpression", - "start": 9140, - "end": 9165, + "start": 8995, + "end": 9005, "loc": { "start": { - "line": 187, + "line": 189, "column": 24 }, "end": { - "line": 187, - "column": 49 + "line": 189, + "column": 34 } }, "object": { - "type": "MemberExpression", - "start": 9140, - "end": 9163, + "type": "Identifier", + "start": 8995, + "end": 9003, "loc": { "start": { - "line": 187, + "line": 189, "column": 24 }, "end": { - "line": 187, - "column": 47 - } - }, - "object": { - "type": "Identifier", - "start": 9140, - "end": 9152, - "loc": { - "start": { - "line": 187, - "column": 24 - }, - "end": { - "line": 187, - "column": 36 - }, - "identifierName": "parallaxInfo" + "line": 189, + "column": 32 }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 9153, - "end": 9163, - "loc": { - "start": { - "line": 187, - "column": 37 - }, - "end": { - "line": 187, - "column": 47 - }, - "identifierName": "initialPos" - }, - "name": "initialPos" + "identifierName": "instance" }, - "computed": false + "name": "instance" }, "property": { "type": "Identifier", - "start": 9164, - "end": 9165, + "start": 9004, + "end": 9005, "loc": { "start": { - "line": 187, - "column": 48 + "line": 189, + "column": 33 }, "end": { - "line": 187, - "column": 49 + "line": 189, + "column": 34 }, "identifierName": "x" }, @@ -11637,44 +11795,44 @@ }, "right": { "type": "MemberExpression", - "start": 9169, - "end": 9188, + "start": 9009, + "end": 9028, "loc": { "start": { - "line": 187, - "column": 53 + "line": 189, + "column": 38 }, "end": { - "line": 187, - "column": 72 + "line": 189, + "column": 57 } }, "object": { "type": "MemberExpression", - "start": 9169, - "end": 9182, + "start": 9009, + "end": 9022, "loc": { "start": { - "line": 187, - "column": 53 + "line": 189, + "column": 38 }, "end": { - "line": 187, - "column": 66 + "line": 189, + "column": 51 } }, "object": { "type": "Identifier", - "start": 9169, - "end": 9177, + "start": 9009, + "end": 9017, "loc": { "start": { - "line": 187, - "column": 53 + "line": 189, + "column": 38 }, "end": { - "line": 187, - "column": 61 + "line": 189, + "column": 46 }, "identifierName": "instance" }, @@ -11682,16 +11840,16 @@ }, "property": { "type": "Identifier", - "start": 9178, - "end": 9182, + "start": 9018, + "end": 9022, "loc": { "start": { - "line": 187, - "column": 62 + "line": 189, + "column": 47 }, "end": { - "line": 187, - "column": 66 + "line": 189, + "column": 51 }, "identifierName": "icon" }, @@ -11701,16 +11859,16 @@ }, "property": { "type": "Identifier", - "start": 9183, - "end": 9188, + "start": 9023, + "end": 9028, "loc": { "start": { - "line": 187, - "column": 67 + "line": 189, + "column": 52 }, "end": { - "line": 187, - "column": 72 + "line": 189, + "column": 57 }, "identifierName": "width" }, @@ -11729,7 +11887,25 @@ ], "directives": [] }, - "alternate": null + "alternate": null, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Logic cannot be ran on background instances as they should not loop", + "start": 8427, + "end": 8497, + "loc": { + "start": { + "line": 180, + "column": 16 + }, + "end": { + "line": 180, + "column": 86 + } + } + } + ] } ], "directives": [] @@ -11747,15 +11923,15 @@ { "type": "CommentBlock", "value": "*\r\n * Updates the parallax system\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n * @param {number} pSimulatedPosition - The simulated position. This is used to simulate a position larger than possible, but internally it treats it as its downscaled position.\r\n * One such reason for using this paramater would be to simulate a map larger than you actually have, to convince the parallax that it is infinite.\r\n ", - "start": 6263, - "end": 6777, + "start": 6346, + "end": 6860, "loc": { "start": { - "line": 131, + "line": 133, "column": 4 }, "end": { - "line": 137, + "line": 139, "column": 7 } } @@ -11770,44 +11946,44 @@ }, { "type": "Identifier", - "start": 9279, - "end": 9320, + "start": 9111, + "end": 9152, "loc": { "start": { - "line": 195, + "line": 197, "column": 0 }, "end": { - "line": 195, + "line": 197, "column": 41 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 9285, - "end": 9319, + "start": 9117, + "end": 9151, "loc": { "start": { - "line": 195, + "line": 197, "column": 6 }, "end": { - "line": 195, + "line": 197, "column": 40 } }, "id": { "type": "Identifier", - "start": 9285, - "end": 9293, + "start": 9117, + "end": 9125, "loc": { "start": { - "line": 195, + "line": 197, "column": 6 }, "end": { - "line": 195, + "line": 197, "column": 14 }, "identifierName": "Parallax" @@ -11816,29 +11992,29 @@ }, "init": { "type": "NewExpression", - "start": 9296, - "end": 9319, + "start": 9128, + "end": 9151, "loc": { "start": { - "line": 195, + "line": 197, "column": 17 }, "end": { - "line": 195, + "line": 197, "column": 40 } }, "callee": { "type": "Identifier", - "start": 9300, - "end": 9317, + "start": 9132, + "end": 9149, "loc": { "start": { - "line": 195, + "line": 197, "column": 21 }, "end": { - "line": 195, + "line": 197, "column": 38 }, "identifierName": "ParallaxSingleton" @@ -11856,15 +12032,15 @@ }, { "type": "ExportNamedDeclaration", - "start": 9322, - "end": 9342, + "start": 9154, + "end": 9174, "loc": { "start": { - "line": 196, + "line": 198, "column": 0 }, "end": { - "line": 196, + "line": 198, "column": 20 } }, @@ -11872,29 +12048,29 @@ "specifiers": [ { "type": "ExportSpecifier", - "start": 9331, - "end": 9339, + "start": 9163, + "end": 9171, "loc": { "start": { - "line": 196, + "line": 198, "column": 9 }, "end": { - "line": 196, + "line": 198, "column": 17 } }, "local": { "type": "Identifier", - "start": 9331, - "end": 9339, + "start": 9163, + "end": 9171, "loc": { "start": { - "line": 196, + "line": 198, "column": 9 }, "end": { - "line": 196, + "line": 198, "column": 17 }, "identifierName": "Parallax" @@ -11903,15 +12079,15 @@ }, "exported": { "type": "Identifier", - "start": 9331, - "end": 9339, + "start": 9163, + "end": 9171, "loc": { "start": { - "line": 196, + "line": 198, "column": 9 }, "end": { - "line": 196, + "line": 198, "column": 17 }, "identifierName": "Parallax" @@ -11924,58 +12100,58 @@ }, { "type": "ExportNamedDeclaration", - "start": 9322, - "end": 9342, + "start": 9154, + "end": 9174, "loc": { "start": { - "line": 196, + "line": 198, "column": 0 }, "end": { - "line": 196, + "line": 198, "column": 20 } }, "declaration": { "type": "VariableDeclaration", - "start": 9279, - "end": 9320, + "start": 9111, + "end": 9152, "loc": { "start": { - "line": 195, + "line": 197, "column": 0 }, "end": { - "line": 195, + "line": 197, "column": 41 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 9285, - "end": 9319, + "start": 9117, + "end": 9151, "loc": { "start": { - "line": 195, + "line": 197, "column": 6 }, "end": { - "line": 195, + "line": 197, "column": 40 } }, "id": { "type": "Identifier", - "start": 9285, - "end": 9293, + "start": 9117, + "end": 9125, "loc": { "start": { - "line": 195, + "line": 197, "column": 6 }, "end": { - "line": 195, + "line": 197, "column": 14 }, "identifierName": "Parallax" @@ -11984,29 +12160,29 @@ }, "init": { "type": "NewExpression", - "start": 9296, - "end": 9319, + "start": 9128, + "end": 9151, "loc": { "start": { - "line": 195, + "line": 197, "column": 17 }, "end": { - "line": 195, + "line": 197, "column": 40 } }, "callee": { "type": "Identifier", - "start": 9300, - "end": 9317, + "start": 9132, + "end": 9149, "loc": { "start": { - "line": 195, + "line": 197, "column": 21 }, "end": { - "line": 195, + "line": 197, "column": 38 }, "identifierName": "ParallaxSingleton" @@ -12026,29 +12202,29 @@ }, { "type": "ExportNamedDeclaration", - "start": 9322, - "end": 9342, + "start": 9154, + "end": 9174, "loc": { "start": { - "line": 196, + "line": 198, "column": 0 }, "end": { - "line": 196, + "line": 198, "column": 20 } }, "declaration": { "type": "ClassDeclaration", "start": 53, - "end": 9275, + "end": 9107, "loc": { "start": { "line": 3, "column": 0 }, "end": { - "line": 193, + "line": 195, "column": 1 } }, @@ -12073,14 +12249,14 @@ "body": { "type": "ClassBody", "start": 77, - "end": 9275, + "end": 9107, "loc": { "start": { "line": 3, "column": 24 }, "end": { - "line": 193, + "line": 195, "column": 1 } }, @@ -12723,14 +12899,14 @@ { "type": "ClassMethod", "start": 1706, - "end": 2781, + "end": 2964, "loc": { "start": { "line": 43, "column": 4 }, "end": { - "line": 63, + "line": 67, "column": 5 } }, @@ -12849,14 +13025,14 @@ "body": { "type": "BlockStatement", "start": 1750, - "end": 2781, + "end": 2964, "loc": { "start": { "line": 43, "column": 48 }, "end": { - "line": 63, + "line": 67, "column": 5 } }, @@ -12864,14 +13040,14 @@ { "type": "IfStatement", "start": 1761, - "end": 2774, + "end": 2957, "loc": { "start": { "line": 44, "column": 8 }, "end": { - "line": 62, + "line": 66, "column": 9 } }, @@ -12895,14 +13071,14 @@ "consequent": { "type": "BlockStatement", "start": 1776, - "end": 2674, + "end": 2857, "loc": { "start": { "line": 44, "column": 23 }, "end": { - "line": 60, + "line": 64, "column": 9 } }, @@ -12910,14 +13086,14 @@ { "type": "IfStatement", "start": 1791, - "end": 2663, + "end": 2846, "loc": { "start": { "line": 45, "column": 12 }, "end": { - "line": 59, + "line": 63, "column": 13 } }, @@ -12974,14 +13150,14 @@ "consequent": { "type": "BlockStatement", "start": 1828, - "end": 2529, + "end": 2712, "loc": { "start": { "line": 45, "column": 49 }, "end": { - "line": 57, + "line": 61, "column": 13 } }, @@ -12989,14 +13165,14 @@ { "type": "IfStatement", "start": 1847, - "end": 2514, + "end": 2697, "loc": { "start": { "line": 46, "column": 16 }, "end": { - "line": 56, + "line": 60, "column": 17 } }, @@ -13138,14 +13314,14 @@ "consequent": { "type": "BlockStatement", "start": 1888, - "end": 2514, + "end": 2697, "loc": { "start": { "line": 46, "column": 57 }, "end": { - "line": 56, + "line": 60, "column": 17 } }, @@ -13917,35 +14093,36 @@ { "type": "ExpressionStatement", "start": 2262, - "end": 2308, + "end": 2423, "loc": { "start": { "line": 52, "column": 20 }, "end": { - "line": 52, - "column": 66 + "line": 55, + "column": 21 } }, "expression": { - "type": "CallExpression", + "type": "AssignmentExpression", "start": 2262, - "end": 2307, + "end": 2423, "loc": { "start": { "line": 52, "column": 20 }, "end": { - "line": 52, - "column": 65 + "line": 55, + "column": 21 } }, - "callee": { + "operator": "=", + "left": { "type": "MemberExpression", "start": 2262, - "end": 2271, + "end": 2285, "loc": { "start": { "line": 52, @@ -13953,13 +14130,13 @@ }, "end": { "line": 52, - "column": 29 + "column": 43 } }, "object": { - "type": "ThisExpression", + "type": "Identifier", "start": 2262, - "end": 2266, + "end": 2274, "loc": { "start": { "line": 52, @@ -13967,21 +14144,452 @@ }, "end": { "line": 52, + "column": 32 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "property": { + "type": "Identifier", + "start": 2275, + "end": 2285, + "loc": { + "start": { + "line": 52, + "column": 33 + }, + "end": { + "line": 52, + "column": 43 + }, + "identifierName": "lastCamPos" + }, + "name": "lastCamPos" + }, + "computed": false + }, + "right": { + "type": "ObjectExpression", + "start": 2288, + "end": 2423, + "loc": { + "start": { + "line": 52, + "column": 46 + }, + "end": { + "line": 55, + "column": 21 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 2315, + "end": 2344, + "loc": { + "start": { + "line": 53, + "column": 24 + }, + "end": { + "line": 53, + "column": 53 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2315, + "end": 2316, + "loc": { + "start": { + "line": 53, + "column": 24 + }, + "end": { + "line": 53, + "column": 25 + }, + "identifierName": "x" + }, + "name": "x" + }, + "value": { + "type": "MemberExpression", + "start": 2318, + "end": 2344, + "loc": { + "start": { + "line": 53, + "column": 27 + }, + "end": { + "line": 53, + "column": 53 + } + }, + "object": { + "type": "CallExpression", + "start": 2318, + "end": 2342, + "loc": { + "start": { + "line": 53, + "column": 27 + }, + "end": { + "line": 53, + "column": 51 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2318, + "end": 2340, + "loc": { + "start": { + "line": 53, + "column": 27 + }, + "end": { + "line": 53, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 2318, + "end": 2329, + "loc": { + "start": { + "line": 53, + "column": 27 + }, + "end": { + "line": 53, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 2318, + "end": 2322, + "loc": { + "start": { + "line": 53, + "column": 27 + }, + "end": { + "line": 53, + "column": 31 + }, + "identifierName": "VYLO" + }, + "name": "VYLO" + }, + "property": { + "type": "Identifier", + "start": 2323, + "end": 2329, + "loc": { + "start": { + "line": 53, + "column": 32 + }, + "end": { + "line": 53, + "column": 38 + }, + "identifierName": "Client" + }, + "name": "Client" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2330, + "end": 2340, + "loc": { + "start": { + "line": 53, + "column": 39 + }, + "end": { + "line": 53, + "column": 49 + }, + "identifierName": "getViewEye" + }, + "name": "getViewEye" + }, + "computed": false + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 2343, + "end": 2344, + "loc": { + "start": { + "line": 53, + "column": 52 + }, + "end": { + "line": 53, + "column": 53 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + } + }, + { + "type": "ObjectProperty", + "start": 2371, + "end": 2400, + "loc": { + "start": { + "line": 54, + "column": 24 + }, + "end": { + "line": 54, + "column": 53 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2371, + "end": 2372, + "loc": { + "start": { + "line": 54, + "column": 24 + }, + "end": { + "line": 54, + "column": 25 + }, + "identifierName": "y" + }, + "name": "y" + }, + "value": { + "type": "MemberExpression", + "start": 2374, + "end": 2400, + "loc": { + "start": { + "line": 54, + "column": 27 + }, + "end": { + "line": 54, + "column": 53 + } + }, + "object": { + "type": "CallExpression", + "start": 2374, + "end": 2398, + "loc": { + "start": { + "line": 54, + "column": 27 + }, + "end": { + "line": 54, + "column": 51 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2374, + "end": 2396, + "loc": { + "start": { + "line": 54, + "column": 27 + }, + "end": { + "line": 54, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 2374, + "end": 2385, + "loc": { + "start": { + "line": 54, + "column": 27 + }, + "end": { + "line": 54, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 2374, + "end": 2378, + "loc": { + "start": { + "line": 54, + "column": 27 + }, + "end": { + "line": 54, + "column": 31 + }, + "identifierName": "VYLO" + }, + "name": "VYLO" + }, + "property": { + "type": "Identifier", + "start": 2379, + "end": 2385, + "loc": { + "start": { + "line": 54, + "column": 32 + }, + "end": { + "line": 54, + "column": 38 + }, + "identifierName": "Client" + }, + "name": "Client" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2386, + "end": 2396, + "loc": { + "start": { + "line": 54, + "column": 39 + }, + "end": { + "line": 54, + "column": 49 + }, + "identifierName": "getViewEye" + }, + "name": "getViewEye" + }, + "computed": false + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 2399, + "end": 2400, + "loc": { + "start": { + "line": 54, + "column": 52 + }, + "end": { + "line": 54, + "column": 53 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + } + } + ] + } + } + }, + { + "type": "ExpressionStatement", + "start": 2445, + "end": 2491, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, + "column": 66 + } + }, + "expression": { + "type": "CallExpression", + "start": 2445, + "end": 2490, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, + "column": 65 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2445, + "end": 2454, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 2445, + "end": 2449, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, "column": 24 } } }, "property": { "type": "Identifier", - "start": 2267, - "end": 2271, + "start": 2450, + "end": 2454, "loc": { "start": { - "line": 52, + "line": 56, "column": 25 }, "end": { - "line": 52, + "line": 56, "column": 29 }, "identifierName": "init" @@ -13993,15 +14601,15 @@ "arguments": [ { "type": "Identifier", - "start": 2272, - "end": 2281, + "start": 2455, + "end": 2464, "loc": { "start": { - "line": 52, + "line": 56, "column": 30 }, "end": { - "line": 52, + "line": 56, "column": 39 }, "identifierName": "pInstance" @@ -14010,15 +14618,15 @@ }, { "type": "Identifier", - "start": 2283, - "end": 2295, + "start": 2466, + "end": 2478, "loc": { "start": { - "line": 52, + "line": 56, "column": 41 }, "end": { - "line": 52, + "line": 56, "column": 53 }, "identifierName": "parallaxInfo" @@ -14027,15 +14635,15 @@ }, { "type": "Identifier", - "start": 2297, - "end": 2298, + "start": 2480, + "end": 2481, "loc": { "start": { - "line": 52, + "line": 56, "column": 55 }, "end": { - "line": 52, + "line": 56, "column": 56 }, "identifierName": "x" @@ -14044,15 +14652,15 @@ }, { "type": "Identifier", - "start": 2300, - "end": 2301, + "start": 2483, + "end": 2484, "loc": { "start": { - "line": 52, + "line": 56, "column": 58 }, "end": { - "line": 52, + "line": 56, "column": 59 }, "identifierName": "y" @@ -14061,15 +14669,15 @@ }, { "type": "Identifier", - "start": 2303, - "end": 2306, + "start": 2486, + "end": 2489, "loc": { "start": { - "line": 52, + "line": 56, "column": 61 }, "end": { - "line": 52, + "line": 56, "column": 64 }, "identifierName": "map" @@ -14082,15 +14690,15 @@ { "type": "CommentLine", "value": " Set the parallax info to the instance", - "start": 2330, - "end": 2370, + "start": 2513, + "end": 2553, "loc": { "start": { - "line": 53, + "line": 57, "column": 20 }, "end": { - "line": 53, + "line": 57, "column": 60 } } @@ -14099,71 +14707,71 @@ }, { "type": "ExpressionStatement", - "start": 2392, - "end": 2442, + "start": 2575, + "end": 2625, "loc": { "start": { - "line": 54, + "line": 58, "column": 20 }, "end": { - "line": 54, + "line": 58, "column": 70 } }, "expression": { "type": "CallExpression", - "start": 2392, - "end": 2441, + "start": 2575, + "end": 2624, "loc": { "start": { - "line": 54, + "line": 58, "column": 20 }, "end": { - "line": 54, + "line": 58, "column": 69 } }, "callee": { "type": "MemberExpression", - "start": 2392, - "end": 2416, + "start": 2575, + "end": 2599, "loc": { "start": { - "line": 54, + "line": 58, "column": 20 }, "end": { - "line": 54, + "line": 58, "column": 44 } }, "object": { "type": "MemberExpression", - "start": 2392, - "end": 2412, + "start": 2575, + "end": 2595, "loc": { "start": { - "line": 54, + "line": 58, "column": 20 }, "end": { - "line": 54, + "line": 58, "column": 40 } }, "object": { "type": "ThisExpression", - "start": 2392, - "end": 2396, + "start": 2575, + "end": 2579, "loc": { "start": { - "line": 54, + "line": 58, "column": 20 }, "end": { - "line": 54, + "line": 58, "column": 24 } }, @@ -14171,15 +14779,15 @@ }, "property": { "type": "Identifier", - "start": 2397, - "end": 2412, + "start": 2580, + "end": 2595, "loc": { "start": { - "line": 54, + "line": 58, "column": 25 }, "end": { - "line": 54, + "line": 58, "column": 40 }, "identifierName": "instanceWeakMap" @@ -14191,15 +14799,15 @@ }, "property": { "type": "Identifier", - "start": 2413, - "end": 2416, + "start": 2596, + "end": 2599, "loc": { "start": { - "line": 54, + "line": 58, "column": 41 }, "end": { - "line": 54, + "line": 58, "column": 44 }, "identifierName": "set" @@ -14212,15 +14820,15 @@ "arguments": [ { "type": "Identifier", - "start": 2417, - "end": 2426, + "start": 2600, + "end": 2609, "loc": { "start": { - "line": 54, + "line": 58, "column": 45 }, "end": { - "line": 54, + "line": 58, "column": 54 }, "identifierName": "pInstance" @@ -14229,15 +14837,15 @@ }, { "type": "Identifier", - "start": 2428, - "end": 2440, + "start": 2611, + "end": 2623, "loc": { "start": { - "line": 54, + "line": 58, "column": 56 }, "end": { - "line": 54, + "line": 58, "column": 68 }, "identifierName": "parallaxInfo" @@ -14251,15 +14859,15 @@ { "type": "CommentLine", "value": " Set the parallax info to the instance", - "start": 2330, - "end": 2370, + "start": 2513, + "end": 2553, "loc": { "start": { - "line": 53, + "line": 57, "column": 20 }, "end": { - "line": 53, + "line": 57, "column": 60 } } @@ -14268,86 +14876,86 @@ }, { "type": "ExpressionStatement", - "start": 2464, - "end": 2495, + "start": 2647, + "end": 2678, "loc": { "start": { - "line": 55, + "line": 59, "column": 20 }, "end": { - "line": 55, + "line": 59, "column": 51 } }, "expression": { "type": "CallExpression", - "start": 2464, - "end": 2494, + "start": 2647, + "end": 2677, "loc": { "start": { - "line": 55, + "line": 59, "column": 20 }, "end": { - "line": 55, + "line": 59, "column": 50 } }, "callee": { "type": "MemberExpression", - "start": 2464, - "end": 2483, + "start": 2647, + "end": 2666, "loc": { "start": { - "line": 55, + "line": 59, "column": 20 }, "end": { - "line": 55, + "line": 59, "column": 39 } }, "object": { "type": "MemberExpression", - "start": 2464, - "end": 2478, + "start": 2647, + "end": 2661, "loc": { "start": { - "line": 55, + "line": 59, "column": 20 }, "end": { - "line": 55, + "line": 59, "column": 34 } }, "object": { "type": "ThisExpression", - "start": 2464, - "end": 2468, + "start": 2647, + "end": 2651, "loc": { "start": { - "line": 55, + "line": 59, "column": 20 }, "end": { - "line": 55, + "line": 59, "column": 24 } } }, "property": { "type": "Identifier", - "start": 2469, - "end": 2478, + "start": 2652, + "end": 2661, "loc": { "start": { - "line": 55, + "line": 59, "column": 25 }, "end": { - "line": 55, + "line": 59, "column": 34 }, "identifierName": "instances" @@ -14358,15 +14966,15 @@ }, "property": { "type": "Identifier", - "start": 2479, - "end": 2483, + "start": 2662, + "end": 2666, "loc": { "start": { - "line": 55, + "line": 59, "column": 35 }, "end": { - "line": 55, + "line": 59, "column": 39 }, "identifierName": "push" @@ -14378,15 +14986,15 @@ "arguments": [ { "type": "Identifier", - "start": 2484, - "end": 2493, + "start": 2667, + "end": 2676, "loc": { "start": { - "line": 55, + "line": 59, "column": 40 }, "end": { - "line": 55, + "line": 59, "column": 49 }, "identifierName": "pInstance" @@ -14406,129 +15014,129 @@ }, "alternate": { "type": "BlockStatement", - "start": 2535, - "end": 2663, + "start": 2718, + "end": 2846, "loc": { "start": { - "line": 57, + "line": 61, "column": 19 }, "end": { - "line": 59, + "line": 63, "column": 13 } }, "body": [ { "type": "ExpressionStatement", - "start": 2554, - "end": 2648, + "start": 2737, + "end": 2831, "loc": { "start": { - "line": 58, + "line": 62, "column": 16 }, "end": { - "line": 58, + "line": 62, "column": 110 } }, "expression": { "type": "CallExpression", - "start": 2554, - "end": 2647, + "start": 2737, + "end": 2830, "loc": { "start": { - "line": 58, + "line": 62, "column": 16 }, "end": { - "line": 58, + "line": 62, "column": 109 } }, "callee": { "type": "MemberExpression", - "start": 2554, - "end": 2597, + "start": 2737, + "end": 2780, "loc": { "start": { - "line": 58, + "line": 62, "column": 16 }, "end": { - "line": 58, + "line": 62, "column": 59 } }, "object": { "type": "CallExpression", - "start": 2554, - "end": 2591, + "start": 2737, + "end": 2774, "loc": { "start": { - "line": 58, + "line": 62, "column": 16 }, "end": { - "line": 58, + "line": 62, "column": 53 } }, "callee": { "type": "MemberExpression", - "start": 2554, - "end": 2572, + "start": 2737, + "end": 2755, "loc": { "start": { - "line": 58, + "line": 62, "column": 16 }, "end": { - "line": 58, + "line": 62, "column": 34 } }, "object": { "type": "MemberExpression", - "start": 2554, - "end": 2565, + "start": 2737, + "end": 2748, "loc": { "start": { - "line": 58, + "line": 62, "column": 16 }, "end": { - "line": 58, + "line": 62, "column": 27 } }, "object": { "type": "ThisExpression", - "start": 2554, - "end": 2558, + "start": 2737, + "end": 2741, "loc": { "start": { - "line": 58, + "line": 62, "column": 16 }, "end": { - "line": 58, + "line": 62, "column": 20 } } }, "property": { "type": "Identifier", - "start": 2559, - "end": 2565, + "start": 2742, + "end": 2748, "loc": { "start": { - "line": 58, + "line": 62, "column": 21 }, "end": { - "line": 58, + "line": 62, "column": 27 }, "identifierName": "logger" @@ -14539,15 +15147,15 @@ }, "property": { "type": "Identifier", - "start": 2566, - "end": 2572, + "start": 2749, + "end": 2755, "loc": { "start": { - "line": 58, + "line": 62, "column": 28 }, "end": { - "line": 58, + "line": 62, "column": 34 }, "identifierName": "prefix" @@ -14559,15 +15167,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 2573, - "end": 2590, + "start": 2756, + "end": 2773, "loc": { "start": { - "line": 58, + "line": 62, "column": 35 }, "end": { - "line": 58, + "line": 62, "column": 52 } }, @@ -14581,15 +15189,15 @@ }, "property": { "type": "Identifier", - "start": 2592, - "end": 2597, + "start": 2775, + "end": 2780, "loc": { "start": { - "line": 58, + "line": 62, "column": 54 }, "end": { - "line": 58, + "line": 62, "column": 59 }, "identifierName": "error" @@ -14601,15 +15209,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 2598, - "end": 2646, + "start": 2781, + "end": 2829, "loc": { "start": { - "line": 58, + "line": 62, "column": 60 }, "end": { - "line": 58, + "line": 62, "column": 108 } }, @@ -14631,129 +15239,129 @@ }, "alternate": { "type": "BlockStatement", - "start": 2680, - "end": 2774, + "start": 2863, + "end": 2957, "loc": { "start": { - "line": 60, + "line": 64, "column": 15 }, "end": { - "line": 62, + "line": 66, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 2695, - "end": 2763, + "start": 2878, + "end": 2946, "loc": { "start": { - "line": 61, + "line": 65, "column": 12 }, "end": { - "line": 61, + "line": 65, "column": 80 } }, "expression": { "type": "CallExpression", - "start": 2695, - "end": 2762, + "start": 2878, + "end": 2945, "loc": { "start": { - "line": 61, + "line": 65, "column": 12 }, "end": { - "line": 61, + "line": 65, "column": 79 } }, "callee": { "type": "MemberExpression", - "start": 2695, - "end": 2738, + "start": 2878, + "end": 2921, "loc": { "start": { - "line": 61, + "line": 65, "column": 12 }, "end": { - "line": 61, + "line": 65, "column": 55 } }, "object": { "type": "CallExpression", - "start": 2695, - "end": 2732, + "start": 2878, + "end": 2915, "loc": { "start": { - "line": 61, + "line": 65, "column": 12 }, "end": { - "line": 61, + "line": 65, "column": 49 } }, "callee": { "type": "MemberExpression", - "start": 2695, - "end": 2713, + "start": 2878, + "end": 2896, "loc": { "start": { - "line": 61, + "line": 65, "column": 12 }, "end": { - "line": 61, + "line": 65, "column": 30 } }, "object": { "type": "MemberExpression", - "start": 2695, - "end": 2706, + "start": 2878, + "end": 2889, "loc": { "start": { - "line": 61, + "line": 65, "column": 12 }, "end": { - "line": 61, + "line": 65, "column": 23 } }, "object": { "type": "ThisExpression", - "start": 2695, - "end": 2699, + "start": 2878, + "end": 2882, "loc": { "start": { - "line": 61, + "line": 65, "column": 12 }, "end": { - "line": 61, + "line": 65, "column": 16 } } }, "property": { "type": "Identifier", - "start": 2700, - "end": 2706, + "start": 2883, + "end": 2889, "loc": { "start": { - "line": 61, + "line": 65, "column": 17 }, "end": { - "line": 61, + "line": 65, "column": 23 }, "identifierName": "logger" @@ -14764,15 +15372,15 @@ }, "property": { "type": "Identifier", - "start": 2707, - "end": 2713, + "start": 2890, + "end": 2896, "loc": { "start": { - "line": 61, + "line": 65, "column": 24 }, "end": { - "line": 61, + "line": 65, "column": 30 }, "identifierName": "prefix" @@ -14784,15 +15392,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 2714, - "end": 2731, + "start": 2897, + "end": 2914, "loc": { "start": { - "line": 61, + "line": 65, "column": 31 }, "end": { - "line": 61, + "line": 65, "column": 48 } }, @@ -14806,15 +15414,15 @@ }, "property": { "type": "Identifier", - "start": 2733, - "end": 2738, + "start": 2916, + "end": 2921, "loc": { "start": { - "line": 61, + "line": 65, "column": 50 }, "end": { - "line": 61, + "line": 65, "column": 55 }, "identifierName": "error" @@ -14826,15 +15434,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 2739, - "end": 2761, + "start": 2922, + "end": 2944, "loc": { "start": { - "line": 61, + "line": 65, "column": 56 }, "end": { - "line": 61, + "line": 65, "column": 78 } }, @@ -14877,15 +15485,15 @@ { "type": "CommentBlock", "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", - "start": 2787, - "end": 3680, + "start": 2970, + "end": 3863, "loc": { "start": { - "line": 64, + "line": 68, "column": 4 }, "end": { - "line": 75, + "line": 79, "column": 7 } } @@ -14894,15 +15502,15 @@ }, { "type": "ClassMethod", - "start": 3686, - "end": 5787, + "start": 3869, + "end": 5870, "loc": { "start": { - "line": 76, + "line": 80, "column": 4 }, "end": { - "line": 117, + "line": 119, "column": 5 } }, @@ -14910,15 +15518,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3686, - "end": 3690, + "start": 3869, + "end": 3873, "loc": { "start": { - "line": 76, + "line": 80, "column": 4 }, "end": { - "line": 76, + "line": 80, "column": 8 }, "identifierName": "init" @@ -14934,15 +15542,15 @@ "params": [ { "type": "Identifier", - "start": 3691, - "end": 3700, + "start": 3874, + "end": 3883, "loc": { "start": { - "line": 76, + "line": 80, "column": 9 }, "end": { - "line": 76, + "line": 80, "column": 18 }, "identifierName": "pInstance" @@ -14951,15 +15559,15 @@ }, { "type": "Identifier", - "start": 3702, - "end": 3715, + "start": 3885, + "end": 3898, "loc": { "start": { - "line": 76, + "line": 80, "column": 20 }, "end": { - "line": 76, + "line": 80, "column": 33 }, "identifierName": "pParallaxInfo" @@ -14968,15 +15576,15 @@ }, { "type": "Identifier", - "start": 3717, - "end": 3719, + "start": 3900, + "end": 3902, "loc": { "start": { - "line": 76, + "line": 80, "column": 35 }, "end": { - "line": 76, + "line": 80, "column": 37 }, "identifierName": "pX" @@ -14985,15 +15593,15 @@ }, { "type": "Identifier", - "start": 3721, - "end": 3723, + "start": 3904, + "end": 3906, "loc": { "start": { - "line": 76, + "line": 80, "column": 39 }, "end": { - "line": 76, + "line": 80, "column": 41 }, "identifierName": "pY" @@ -15002,15 +15610,15 @@ }, { "type": "Identifier", - "start": 3725, - "end": 3729, + "start": 3908, + "end": 3912, "loc": { "start": { - "line": 76, + "line": 80, "column": 43 }, "end": { - "line": 76, + "line": 80, "column": 47 }, "identifierName": "pMap" @@ -15020,44 +15628,44 @@ ], "body": { "type": "BlockStatement", - "start": 3731, - "end": 5787, + "start": 3914, + "end": 5870, "loc": { "start": { - "line": 76, + "line": 80, "column": 49 }, "end": { - "line": 117, + "line": 119, "column": 5 } }, "body": [ { "type": "IfStatement", - "start": 3742, - "end": 5780, + "start": 3925, + "end": 5863, "loc": { "start": { - "line": 77, + "line": 81, "column": 8 }, "end": { - "line": 116, + "line": 118, "column": 9 } }, "test": { "type": "Identifier", - "start": 3746, - "end": 3750, + "start": 3929, + "end": 3933, "loc": { "start": { - "line": 77, + "line": 81, "column": 12 }, "end": { - "line": 77, + "line": 81, "column": 16 }, "identifierName": "VYLO" @@ -15066,299 +15674,58 @@ }, "consequent": { "type": "BlockStatement", - "start": 3752, - "end": 5614, + "start": 3935, + "end": 5697, "loc": { "start": { - "line": 77, + "line": 81, "column": 18 }, "end": { - "line": 114, + "line": 116, "column": 9 } }, "body": [ - { - "type": "ExpressionStatement", - "start": 3809, - "end": 3853, - "loc": { - "start": { - "line": 79, - "column": 12 - }, - "end": { - "line": 79, - "column": 56 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 3809, - "end": 3852, - "loc": { - "start": { - "line": 79, - "column": 12 - }, - "end": { - "line": 79, - "column": 55 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 3809, - "end": 3833, - "loc": { - "start": { - "line": 79, - "column": 12 - }, - "end": { - "line": 79, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 3809, - "end": 3822, - "loc": { - "start": { - "line": 79, - "column": 12 - }, - "end": { - "line": 79, - "column": 25 - }, - "identifierName": "pParallaxInfo" - }, - "name": "pParallaxInfo", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 3823, - "end": 3833, - "loc": { - "start": { - "line": 79, - "column": 26 - }, - "end": { - "line": 79, - "column": 36 - }, - "identifierName": "initialPos" - }, - "name": "initialPos" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "ObjectExpression", - "start": 3836, - "end": 3852, - "loc": { - "start": { - "line": 79, - "column": 39 - }, - "end": { - "line": 79, - "column": 55 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3838, - "end": 3843, - "loc": { - "start": { - "line": 79, - "column": 41 - }, - "end": { - "line": 79, - "column": 46 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3838, - "end": 3839, - "loc": { - "start": { - "line": 79, - "column": 41 - }, - "end": { - "line": 79, - "column": 42 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "Identifier", - "start": 3841, - "end": 3843, - "loc": { - "start": { - "line": 79, - "column": 44 - }, - "end": { - "line": 79, - "column": 46 - }, - "identifierName": "pX" - }, - "name": "pX" - } - }, - { - "type": "ObjectProperty", - "start": 3845, - "end": 3850, - "loc": { - "start": { - "line": 79, - "column": 48 - }, - "end": { - "line": 79, - "column": 53 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3845, - "end": 3846, - "loc": { - "start": { - "line": 79, - "column": 48 - }, - "end": { - "line": 79, - "column": 49 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "Identifier", - "start": 3848, - "end": 3850, - "loc": { - "start": { - "line": 79, - "column": 51 - }, - "end": { - "line": 79, - "column": 53 - }, - "identifierName": "pY" - }, - "name": "pY" - } - } - ] - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Set the initial position.", - "start": 3767, - "end": 3795, - "loc": { - "start": { - "line": 78, - "column": 12 - }, - "end": { - "line": 78, - "column": 40 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " If this instance is set to loop, then it needs a left and right clone", - "start": 3867, - "end": 3939, - "loc": { - "start": { - "line": 80, - "column": 12 - }, - "end": { - "line": 80, - "column": 84 - } - } - } - ] - }, { "type": "IfStatement", - "start": 3953, - "end": 5502, + "start": 4036, + "end": 5585, "loc": { "start": { - "line": 81, + "line": 83, "column": 12 }, "end": { - "line": 110, + "line": 112, "column": 13 } }, "test": { "type": "MemberExpression", - "start": 3957, - "end": 3975, + "start": 4040, + "end": 4058, "loc": { "start": { - "line": 81, + "line": 83, "column": 16 }, "end": { - "line": 81, + "line": 83, "column": 34 } }, "object": { "type": "Identifier", - "start": 3957, - "end": 3970, + "start": 4040, + "end": 4053, "loc": { "start": { - "line": 81, + "line": 83, "column": 16 }, "end": { - "line": 81, + "line": 83, "column": 29 }, "identifierName": "pParallaxInfo" @@ -15368,15 +15735,15 @@ }, "property": { "type": "Identifier", - "start": 3971, - "end": 3975, + "start": 4054, + "end": 4058, "loc": { "start": { - "line": 81, + "line": 83, "column": 30 }, "end": { - "line": 81, + "line": 83, "column": 34 }, "identifierName": "loop" @@ -15388,59 +15755,59 @@ }, "consequent": { "type": "BlockStatement", - "start": 3977, - "end": 5502, + "start": 4060, + "end": 5585, "loc": { "start": { - "line": 81, + "line": 83, "column": 36 }, "end": { - "line": 110, + "line": 112, "column": 13 } }, "body": [ { "type": "VariableDeclaration", - "start": 4046, - "end": 4084, + "start": 4129, + "end": 4167, "loc": { "start": { - "line": 83, + "line": 85, "column": 16 }, "end": { - "line": 83, + "line": 85, "column": 54 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 4052, - "end": 4083, + "start": 4135, + "end": 4166, "loc": { "start": { - "line": 83, + "line": 85, "column": 22 }, "end": { - "line": 83, + "line": 85, "column": 53 } }, "id": { "type": "Identifier", - "start": 4052, - "end": 4056, + "start": 4135, + "end": 4139, "loc": { "start": { - "line": 83, + "line": 85, "column": 22 }, "end": { - "line": 83, + "line": 85, "column": 26 }, "identifierName": "left" @@ -15450,43 +15817,43 @@ }, "init": { "type": "CallExpression", - "start": 4059, - "end": 4083, + "start": 4142, + "end": 4166, "loc": { "start": { - "line": 83, + "line": 85, "column": 29 }, "end": { - "line": 83, + "line": 85, "column": 53 } }, "callee": { "type": "MemberExpression", - "start": 4059, - "end": 4071, + "start": 4142, + "end": 4154, "loc": { "start": { - "line": 83, + "line": 85, "column": 29 }, "end": { - "line": 83, + "line": 85, "column": 41 } }, "object": { "type": "Identifier", - "start": 4059, - "end": 4063, + "start": 4142, + "end": 4146, "loc": { "start": { - "line": 83, + "line": 85, "column": 29 }, "end": { - "line": 83, + "line": 85, "column": 33 }, "identifierName": "VYLO" @@ -15495,15 +15862,15 @@ }, "property": { "type": "Identifier", - "start": 4064, - "end": 4071, + "start": 4147, + "end": 4154, "loc": { "start": { - "line": 83, + "line": 85, "column": 34 }, "end": { - "line": 83, + "line": 85, "column": 41 }, "identifierName": "newDiob" @@ -15515,15 +15882,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 4072, - "end": 4082, + "start": 4155, + "end": 4165, "loc": { "start": { - "line": 83, + "line": 85, "column": 42 }, "end": { - "line": 83, + "line": 85, "column": 52 } }, @@ -15543,15 +15910,15 @@ { "type": "CommentLine", "value": " Create a left and right clone", - "start": 3996, - "end": 4028, + "start": 4079, + "end": 4111, "loc": { "start": { - "line": 82, + "line": 84, "column": 16 }, "end": { - "line": 82, + "line": 84, "column": 48 } } @@ -15560,44 +15927,44 @@ }, { "type": "VariableDeclaration", - "start": 4102, - "end": 4141, + "start": 4185, + "end": 4224, "loc": { "start": { - "line": 84, + "line": 86, "column": 16 }, "end": { - "line": 84, + "line": 86, "column": 55 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 4108, - "end": 4140, + "start": 4191, + "end": 4223, "loc": { "start": { - "line": 84, + "line": 86, "column": 22 }, "end": { - "line": 84, + "line": 86, "column": 54 } }, "id": { "type": "Identifier", - "start": 4108, - "end": 4113, + "start": 4191, + "end": 4196, "loc": { "start": { - "line": 84, + "line": 86, "column": 22 }, "end": { - "line": 84, + "line": 86, "column": 27 }, "identifierName": "right" @@ -15606,43 +15973,43 @@ }, "init": { "type": "CallExpression", - "start": 4116, - "end": 4140, + "start": 4199, + "end": 4223, "loc": { "start": { - "line": 84, + "line": 86, "column": 30 }, "end": { - "line": 84, + "line": 86, "column": 54 } }, "callee": { "type": "MemberExpression", - "start": 4116, - "end": 4128, + "start": 4199, + "end": 4211, "loc": { "start": { - "line": 84, + "line": 86, "column": 30 }, "end": { - "line": 84, + "line": 86, "column": 42 } }, "object": { "type": "Identifier", - "start": 4116, - "end": 4120, + "start": 4199, + "end": 4203, "loc": { "start": { - "line": 84, + "line": 86, "column": 30 }, "end": { - "line": 84, + "line": 86, "column": 34 }, "identifierName": "VYLO" @@ -15651,15 +16018,15 @@ }, "property": { "type": "Identifier", - "start": 4121, - "end": 4128, + "start": 4204, + "end": 4211, "loc": { "start": { - "line": 84, + "line": 86, "column": 35 }, "end": { - "line": 84, + "line": 86, "column": 42 }, "identifierName": "newDiob" @@ -15671,15 +16038,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 4129, - "end": 4139, + "start": 4212, + "end": 4222, "loc": { "start": { - "line": 84, + "line": 86, "column": 43 }, "end": { - "line": 84, + "line": 86, "column": 53 } }, @@ -15698,15 +16065,15 @@ { "type": "CommentLine", "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4159, - "end": 4238, + "start": 4242, + "end": 4321, "loc": { "start": { - "line": 85, + "line": 87, "column": 16 }, "end": { - "line": 85, + "line": 87, "column": 95 } } @@ -15715,57 +16082,57 @@ }, { "type": "ExpressionStatement", - "start": 4256, - "end": 4286, + "start": 4339, + "end": 4369, "loc": { "start": { - "line": 86, + "line": 88, "column": 16 }, "end": { - "line": 86, + "line": 88, "column": 46 } }, "expression": { "type": "CallExpression", - "start": 4256, - "end": 4285, + "start": 4339, + "end": 4368, "loc": { "start": { - "line": 86, + "line": 88, "column": 16 }, "end": { - "line": 86, + "line": 88, "column": 45 } }, "callee": { "type": "MemberExpression", - "start": 4256, - "end": 4274, + "start": 4339, + "end": 4357, "loc": { "start": { - "line": 86, + "line": 88, "column": 16 }, "end": { - "line": 86, + "line": 88, "column": 34 } }, "object": { "type": "Identifier", - "start": 4256, - "end": 4260, + "start": 4339, + "end": 4343, "loc": { "start": { - "line": 86, + "line": 88, "column": 16 }, "end": { - "line": 86, + "line": 88, "column": 20 }, "identifierName": "left" @@ -15775,15 +16142,15 @@ }, "property": { "type": "Identifier", - "start": 4261, - "end": 4274, + "start": 4344, + "end": 4357, "loc": { "start": { - "line": 86, + "line": 88, "column": 21 }, "end": { - "line": 86, + "line": 88, "column": 34 }, "identifierName": "setAppearance" @@ -15796,15 +16163,15 @@ "arguments": [ { "type": "Identifier", - "start": 4275, - "end": 4284, + "start": 4358, + "end": 4367, "loc": { "start": { - "line": 86, + "line": 88, "column": 35 }, "end": { - "line": 86, + "line": 88, "column": 44 }, "identifierName": "pInstance" @@ -15818,15 +16185,15 @@ { "type": "CommentLine", "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4159, - "end": 4238, + "start": 4242, + "end": 4321, "loc": { "start": { - "line": 85, + "line": 87, "column": 16 }, "end": { - "line": 85, + "line": 87, "column": 95 } } @@ -15835,57 +16202,57 @@ }, { "type": "ExpressionStatement", - "start": 4304, - "end": 4335, + "start": 4387, + "end": 4418, "loc": { "start": { - "line": 87, + "line": 89, "column": 16 }, "end": { - "line": 87, + "line": 89, "column": 47 } }, "expression": { "type": "CallExpression", - "start": 4304, - "end": 4334, + "start": 4387, + "end": 4417, "loc": { "start": { - "line": 87, + "line": 89, "column": 16 }, "end": { - "line": 87, + "line": 89, "column": 46 } }, "callee": { "type": "MemberExpression", - "start": 4304, - "end": 4323, + "start": 4387, + "end": 4406, "loc": { "start": { - "line": 87, + "line": 89, "column": 16 }, "end": { - "line": 87, + "line": 89, "column": 35 } }, "object": { "type": "Identifier", - "start": 4304, - "end": 4309, + "start": 4387, + "end": 4392, "loc": { "start": { - "line": 87, + "line": 89, "column": 16 }, "end": { - "line": 87, + "line": 89, "column": 21 }, "identifierName": "right" @@ -15894,15 +16261,15 @@ }, "property": { "type": "Identifier", - "start": 4310, - "end": 4323, + "start": 4393, + "end": 4406, "loc": { "start": { - "line": 87, + "line": 89, "column": 22 }, "end": { - "line": 87, + "line": 89, "column": 35 }, "identifierName": "setAppearance" @@ -15914,15 +16281,15 @@ "arguments": [ { "type": "Identifier", - "start": 4324, - "end": 4333, + "start": 4407, + "end": 4416, "loc": { "start": { - "line": 87, + "line": 89, "column": 36 }, "end": { - "line": 87, + "line": 89, "column": 45 }, "identifierName": "pInstance" @@ -15935,15 +16302,15 @@ { "type": "CommentLine", "value": " Position the left clone", - "start": 4353, - "end": 4379, + "start": 4436, + "end": 4462, "loc": { "start": { - "line": 88, + "line": 90, "column": 16 }, "end": { - "line": 88, + "line": 90, "column": 42 } } @@ -15952,58 +16319,58 @@ }, { "type": "ExpressionStatement", - "start": 4397, - "end": 4432, + "start": 4480, + "end": 4515, "loc": { "start": { - "line": 89, + "line": 91, "column": 16 }, "end": { - "line": 89, + "line": 91, "column": 51 } }, "expression": { "type": "AssignmentExpression", - "start": 4397, - "end": 4431, + "start": 4480, + "end": 4514, "loc": { "start": { - "line": 89, + "line": 91, "column": 16 }, "end": { - "line": 89, + "line": 91, "column": 50 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 4397, - "end": 4403, + "start": 4480, + "end": 4486, "loc": { "start": { - "line": 89, + "line": 91, "column": 16 }, "end": { - "line": 89, + "line": 91, "column": 22 } }, "object": { "type": "Identifier", - "start": 4397, - "end": 4401, + "start": 4480, + "end": 4484, "loc": { "start": { - "line": 89, + "line": 91, "column": 16 }, "end": { - "line": 89, + "line": 91, "column": 20 }, "identifierName": "left" @@ -16013,15 +16380,15 @@ }, "property": { "type": "Identifier", - "start": 4402, - "end": 4403, + "start": 4485, + "end": 4486, "loc": { "start": { - "line": 89, + "line": 91, "column": 21 }, "end": { - "line": 89, + "line": 91, "column": 22 }, "identifierName": "x" @@ -16033,29 +16400,29 @@ }, "right": { "type": "BinaryExpression", - "start": 4406, - "end": 4431, + "start": 4489, + "end": 4514, "loc": { "start": { - "line": 89, + "line": 91, "column": 25 }, "end": { - "line": 89, + "line": 91, "column": 50 } }, "left": { "type": "Identifier", - "start": 4406, - "end": 4408, + "start": 4489, + "end": 4491, "loc": { "start": { - "line": 89, + "line": 91, "column": 25 }, "end": { - "line": 89, + "line": 91, "column": 27 }, "identifierName": "pX" @@ -16065,43 +16432,43 @@ "operator": "-", "right": { "type": "MemberExpression", - "start": 4411, - "end": 4431, + "start": 4494, + "end": 4514, "loc": { "start": { - "line": 89, + "line": 91, "column": 30 }, "end": { - "line": 89, + "line": 91, "column": 50 } }, "object": { "type": "MemberExpression", - "start": 4411, - "end": 4425, + "start": 4494, + "end": 4508, "loc": { "start": { - "line": 89, + "line": 91, "column": 30 }, "end": { - "line": 89, + "line": 91, "column": 44 } }, "object": { "type": "Identifier", - "start": 4411, - "end": 4420, + "start": 4494, + "end": 4503, "loc": { "start": { - "line": 89, + "line": 91, "column": 30 }, "end": { - "line": 89, + "line": 91, "column": 39 }, "identifierName": "pInstance" @@ -16110,15 +16477,15 @@ }, "property": { "type": "Identifier", - "start": 4421, - "end": 4425, + "start": 4504, + "end": 4508, "loc": { "start": { - "line": 89, + "line": 91, "column": 40 }, "end": { - "line": 89, + "line": 91, "column": 44 }, "identifierName": "icon" @@ -16129,15 +16496,15 @@ }, "property": { "type": "Identifier", - "start": 4426, - "end": 4431, + "start": 4509, + "end": 4514, "loc": { "start": { - "line": 89, + "line": 91, "column": 45 }, "end": { - "line": 89, + "line": 91, "column": 50 }, "identifierName": "width" @@ -16153,15 +16520,15 @@ { "type": "CommentLine", "value": " Position the left clone", - "start": 4353, - "end": 4379, + "start": 4436, + "end": 4462, "loc": { "start": { - "line": 88, + "line": 90, "column": 16 }, "end": { - "line": 88, + "line": 90, "column": 42 } } @@ -16170,58 +16537,58 @@ }, { "type": "ExpressionStatement", - "start": 4450, - "end": 4462, + "start": 4533, + "end": 4545, "loc": { "start": { - "line": 90, + "line": 92, "column": 16 }, "end": { - "line": 90, + "line": 92, "column": 28 } }, "expression": { "type": "AssignmentExpression", - "start": 4450, - "end": 4461, + "start": 4533, + "end": 4544, "loc": { "start": { - "line": 90, + "line": 92, "column": 16 }, "end": { - "line": 90, + "line": 92, "column": 27 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 4450, - "end": 4456, + "start": 4533, + "end": 4539, "loc": { "start": { - "line": 90, + "line": 92, "column": 16 }, "end": { - "line": 90, + "line": 92, "column": 22 } }, "object": { "type": "Identifier", - "start": 4450, - "end": 4454, + "start": 4533, + "end": 4537, "loc": { "start": { - "line": 90, + "line": 92, "column": 16 }, "end": { - "line": 90, + "line": 92, "column": 20 }, "identifierName": "left" @@ -16230,15 +16597,15 @@ }, "property": { "type": "Identifier", - "start": 4455, - "end": 4456, + "start": 4538, + "end": 4539, "loc": { "start": { - "line": 90, + "line": 92, "column": 21 }, "end": { - "line": 90, + "line": 92, "column": 22 }, "identifierName": "y" @@ -16249,15 +16616,15 @@ }, "right": { "type": "Identifier", - "start": 4459, - "end": 4461, + "start": 4542, + "end": 4544, "loc": { "start": { - "line": 90, + "line": 92, "column": 25 }, "end": { - "line": 90, + "line": 92, "column": 27 }, "identifierName": "pY" @@ -16269,15 +16636,15 @@ { "type": "CommentLine", "value": " Position the right clone", - "start": 4480, - "end": 4507, + "start": 4563, + "end": 4590, "loc": { "start": { - "line": 91, + "line": 93, "column": 16 }, "end": { - "line": 91, + "line": 93, "column": 43 } } @@ -16286,58 +16653,58 @@ }, { "type": "ExpressionStatement", - "start": 4525, - "end": 4561, + "start": 4608, + "end": 4644, "loc": { "start": { - "line": 92, + "line": 94, "column": 16 }, "end": { - "line": 92, + "line": 94, "column": 52 } }, "expression": { "type": "AssignmentExpression", - "start": 4525, - "end": 4560, + "start": 4608, + "end": 4643, "loc": { "start": { - "line": 92, + "line": 94, "column": 16 }, "end": { - "line": 92, + "line": 94, "column": 51 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 4525, - "end": 4532, + "start": 4608, + "end": 4615, "loc": { "start": { - "line": 92, + "line": 94, "column": 16 }, "end": { - "line": 92, + "line": 94, "column": 23 } }, "object": { "type": "Identifier", - "start": 4525, - "end": 4530, + "start": 4608, + "end": 4613, "loc": { "start": { - "line": 92, + "line": 94, "column": 16 }, "end": { - "line": 92, + "line": 94, "column": 21 }, "identifierName": "right" @@ -16347,15 +16714,15 @@ }, "property": { "type": "Identifier", - "start": 4531, - "end": 4532, + "start": 4614, + "end": 4615, "loc": { "start": { - "line": 92, + "line": 94, "column": 22 }, "end": { - "line": 92, + "line": 94, "column": 23 }, "identifierName": "x" @@ -16367,29 +16734,29 @@ }, "right": { "type": "BinaryExpression", - "start": 4535, - "end": 4560, + "start": 4618, + "end": 4643, "loc": { "start": { - "line": 92, + "line": 94, "column": 26 }, "end": { - "line": 92, + "line": 94, "column": 51 } }, "left": { "type": "Identifier", - "start": 4535, - "end": 4537, + "start": 4618, + "end": 4620, "loc": { "start": { - "line": 92, + "line": 94, "column": 26 }, "end": { - "line": 92, + "line": 94, "column": 28 }, "identifierName": "pX" @@ -16399,43 +16766,43 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 4540, - "end": 4560, + "start": 4623, + "end": 4643, "loc": { "start": { - "line": 92, + "line": 94, "column": 31 }, "end": { - "line": 92, + "line": 94, "column": 51 } }, "object": { "type": "MemberExpression", - "start": 4540, - "end": 4554, + "start": 4623, + "end": 4637, "loc": { "start": { - "line": 92, + "line": 94, "column": 31 }, "end": { - "line": 92, + "line": 94, "column": 45 } }, "object": { "type": "Identifier", - "start": 4540, - "end": 4549, + "start": 4623, + "end": 4632, "loc": { "start": { - "line": 92, + "line": 94, "column": 31 }, "end": { - "line": 92, + "line": 94, "column": 40 }, "identifierName": "pInstance" @@ -16444,15 +16811,15 @@ }, "property": { "type": "Identifier", - "start": 4550, - "end": 4554, + "start": 4633, + "end": 4637, "loc": { "start": { - "line": 92, + "line": 94, "column": 41 }, "end": { - "line": 92, + "line": 94, "column": 45 }, "identifierName": "icon" @@ -16463,15 +16830,15 @@ }, "property": { "type": "Identifier", - "start": 4555, - "end": 4560, + "start": 4638, + "end": 4643, "loc": { "start": { - "line": 92, + "line": 94, "column": 46 }, "end": { - "line": 92, + "line": 94, "column": 51 }, "identifierName": "width" @@ -16487,15 +16854,15 @@ { "type": "CommentLine", "value": " Position the right clone", - "start": 4480, - "end": 4507, + "start": 4563, + "end": 4590, "loc": { "start": { - "line": 91, + "line": 93, "column": 16 }, "end": { - "line": 91, + "line": 93, "column": 43 } } @@ -16504,58 +16871,58 @@ }, { "type": "ExpressionStatement", - "start": 4579, - "end": 4592, + "start": 4662, + "end": 4675, "loc": { "start": { - "line": 93, + "line": 95, "column": 16 }, "end": { - "line": 93, + "line": 95, "column": 29 } }, "expression": { "type": "AssignmentExpression", - "start": 4579, - "end": 4591, + "start": 4662, + "end": 4674, "loc": { "start": { - "line": 93, + "line": 95, "column": 16 }, "end": { - "line": 93, + "line": 95, "column": 28 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 4579, - "end": 4586, + "start": 4662, + "end": 4669, "loc": { "start": { - "line": 93, + "line": 95, "column": 16 }, "end": { - "line": 93, + "line": 95, "column": 23 } }, "object": { "type": "Identifier", - "start": 4579, - "end": 4584, + "start": 4662, + "end": 4667, "loc": { "start": { - "line": 93, + "line": 95, "column": 16 }, "end": { - "line": 93, + "line": 95, "column": 21 }, "identifierName": "right" @@ -16564,15 +16931,15 @@ }, "property": { "type": "Identifier", - "start": 4585, - "end": 4586, + "start": 4668, + "end": 4669, "loc": { "start": { - "line": 93, + "line": 95, "column": 22 }, "end": { - "line": 93, + "line": 95, "column": 23 }, "identifierName": "y" @@ -16583,15 +16950,15 @@ }, "right": { "type": "Identifier", - "start": 4589, - "end": 4591, + "start": 4672, + "end": 4674, "loc": { "start": { - "line": 93, + "line": 95, "column": 26 }, "end": { - "line": 93, + "line": 95, "column": 28 }, "identifierName": "pY" @@ -16603,15 +16970,15 @@ { "type": "CommentLine", "value": " Store the clones in a temporary array", - "start": 4610, - "end": 4650, + "start": 4693, + "end": 4733, "loc": { "start": { - "line": 94, + "line": 96, "column": 16 }, "end": { - "line": 94, + "line": 96, "column": 56 } } @@ -16620,44 +16987,44 @@ }, { "type": "VariableDeclaration", - "start": 4668, - "end": 4699, + "start": 4751, + "end": 4782, "loc": { "start": { - "line": 95, + "line": 97, "column": 16 }, "end": { - "line": 95, + "line": 97, "column": 47 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 4674, - "end": 4698, + "start": 4757, + "end": 4781, "loc": { "start": { - "line": 95, + "line": 97, "column": 22 }, "end": { - "line": 95, + "line": 97, "column": 46 } }, "id": { "type": "Identifier", - "start": 4674, - "end": 4682, + "start": 4757, + "end": 4765, "loc": { "start": { - "line": 95, + "line": 97, "column": 22 }, "end": { - "line": 95, + "line": 97, "column": 30 }, "identifierName": "children" @@ -16667,30 +17034,30 @@ }, "init": { "type": "ArrayExpression", - "start": 4685, - "end": 4698, + "start": 4768, + "end": 4781, "loc": { "start": { - "line": 95, + "line": 97, "column": 33 }, "end": { - "line": 95, + "line": 97, "column": 46 } }, "elements": [ { "type": "Identifier", - "start": 4686, - "end": 4690, + "start": 4769, + "end": 4773, "loc": { "start": { - "line": 95, + "line": 97, "column": 34 }, "end": { - "line": 95, + "line": 97, "column": 38 }, "identifierName": "left" @@ -16699,15 +17066,15 @@ }, { "type": "Identifier", - "start": 4692, - "end": 4697, + "start": 4775, + "end": 4780, "loc": { "start": { - "line": 95, + "line": 97, "column": 40 }, "end": { - "line": 95, + "line": 97, "column": 45 }, "identifierName": "right" @@ -16724,15 +17091,15 @@ { "type": "CommentLine", "value": " Store the clones in a temporary array", - "start": 4610, - "end": 4650, + "start": 4693, + "end": 4733, "loc": { "start": { - "line": 94, + "line": 96, "column": 16 }, "end": { - "line": 94, + "line": 96, "column": 56 } } @@ -16742,15 +17109,15 @@ { "type": "CommentLine", "value": " Loop the clones and store their relative positions to the main instance", - "start": 4717, - "end": 4791, + "start": 4800, + "end": 4874, "loc": { "start": { - "line": 96, + "line": 98, "column": 16 }, "end": { - "line": 96, + "line": 98, "column": 90 } } @@ -16759,57 +17126,57 @@ }, { "type": "ExpressionStatement", - "start": 4809, - "end": 4970, + "start": 4892, + "end": 5053, "loc": { "start": { - "line": 97, + "line": 99, "column": 16 }, "end": { - "line": 100, + "line": 102, "column": 19 } }, "expression": { "type": "CallExpression", - "start": 4809, - "end": 4969, + "start": 4892, + "end": 5052, "loc": { "start": { - "line": 97, + "line": 99, "column": 16 }, "end": { - "line": 100, + "line": 102, "column": 18 } }, "callee": { "type": "MemberExpression", - "start": 4809, - "end": 4825, + "start": 4892, + "end": 4908, "loc": { "start": { - "line": 97, + "line": 99, "column": 16 }, "end": { - "line": 97, + "line": 99, "column": 32 } }, "object": { "type": "Identifier", - "start": 4809, - "end": 4817, + "start": 4892, + "end": 4900, "loc": { "start": { - "line": 97, + "line": 99, "column": 16 }, "end": { - "line": 97, + "line": 99, "column": 24 }, "identifierName": "children" @@ -16819,15 +17186,15 @@ }, "property": { "type": "Identifier", - "start": 4818, - "end": 4825, + "start": 4901, + "end": 4908, "loc": { "start": { - "line": 97, + "line": 99, "column": 25 }, "end": { - "line": 97, + "line": 99, "column": 32 }, "identifierName": "forEach" @@ -16840,15 +17207,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 4826, - "end": 4968, + "start": 4909, + "end": 5051, "loc": { "start": { - "line": 97, + "line": 99, "column": 33 }, "end": { - "line": 100, + "line": 102, "column": 17 } }, @@ -16859,15 +17226,15 @@ "params": [ { "type": "Identifier", - "start": 4827, - "end": 4833, + "start": 4910, + "end": 4916, "loc": { "start": { - "line": 97, + "line": 99, "column": 34 }, "end": { - "line": 97, + "line": 99, "column": 40 }, "identifierName": "pChild" @@ -16877,73 +17244,73 @@ ], "body": { "type": "BlockStatement", - "start": 4838, - "end": 4968, + "start": 4921, + "end": 5051, "loc": { "start": { - "line": 97, + "line": 99, "column": 45 }, "end": { - "line": 100, + "line": 102, "column": 17 } }, "body": [ { "type": "ExpressionStatement", - "start": 4861, - "end": 4894, + "start": 4944, + "end": 4977, "loc": { "start": { - "line": 98, + "line": 100, "column": 20 }, "end": { - "line": 98, + "line": 100, "column": 53 } }, "expression": { "type": "AssignmentExpression", - "start": 4861, - "end": 4893, + "start": 4944, + "end": 4976, "loc": { "start": { - "line": 98, + "line": 100, "column": 20 }, "end": { - "line": 98, + "line": 100, "column": 52 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 4861, - "end": 4877, + "start": 4944, + "end": 4960, "loc": { "start": { - "line": 98, + "line": 100, "column": 20 }, "end": { - "line": 98, + "line": 100, "column": 36 } }, "object": { "type": "Identifier", - "start": 4861, - "end": 4867, + "start": 4944, + "end": 4950, "loc": { "start": { - "line": 98, + "line": 100, "column": 20 }, "end": { - "line": 98, + "line": 100, "column": 26 }, "identifierName": "pChild" @@ -16952,15 +17319,15 @@ }, "property": { "type": "Identifier", - "start": 4868, - "end": 4877, + "start": 4951, + "end": 4960, "loc": { "start": { - "line": 98, + "line": 100, "column": 27 }, "end": { - "line": 98, + "line": 100, "column": 36 }, "identifierName": "relativeX" @@ -16971,43 +17338,43 @@ }, "right": { "type": "BinaryExpression", - "start": 4880, - "end": 4893, + "start": 4963, + "end": 4976, "loc": { "start": { - "line": 98, + "line": 100, "column": 39 }, "end": { - "line": 98, + "line": 100, "column": 52 } }, "left": { "type": "MemberExpression", - "start": 4880, - "end": 4888, + "start": 4963, + "end": 4971, "loc": { "start": { - "line": 98, + "line": 100, "column": 39 }, "end": { - "line": 98, + "line": 100, "column": 47 } }, "object": { "type": "Identifier", - "start": 4880, - "end": 4886, + "start": 4963, + "end": 4969, "loc": { "start": { - "line": 98, + "line": 100, "column": 39 }, "end": { - "line": 98, + "line": 100, "column": 45 }, "identifierName": "pChild" @@ -17016,15 +17383,15 @@ }, "property": { "type": "Identifier", - "start": 4887, - "end": 4888, + "start": 4970, + "end": 4971, "loc": { "start": { - "line": 98, + "line": 100, "column": 46 }, "end": { - "line": 98, + "line": 100, "column": 47 }, "identifierName": "x" @@ -17036,15 +17403,15 @@ "operator": "-", "right": { "type": "Identifier", - "start": 4891, - "end": 4893, + "start": 4974, + "end": 4976, "loc": { "start": { - "line": 98, + "line": 100, "column": 50 }, "end": { - "line": 98, + "line": 100, "column": 52 }, "identifierName": "pX" @@ -17056,58 +17423,58 @@ }, { "type": "ExpressionStatement", - "start": 4916, - "end": 4949, + "start": 4999, + "end": 5032, "loc": { "start": { - "line": 99, + "line": 101, "column": 20 }, "end": { - "line": 99, + "line": 101, "column": 53 } }, "expression": { "type": "AssignmentExpression", - "start": 4916, - "end": 4948, + "start": 4999, + "end": 5031, "loc": { "start": { - "line": 99, + "line": 101, "column": 20 }, "end": { - "line": 99, + "line": 101, "column": 52 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 4916, - "end": 4932, + "start": 4999, + "end": 5015, "loc": { "start": { - "line": 99, + "line": 101, "column": 20 }, "end": { - "line": 99, + "line": 101, "column": 36 } }, "object": { "type": "Identifier", - "start": 4916, - "end": 4922, + "start": 4999, + "end": 5005, "loc": { "start": { - "line": 99, + "line": 101, "column": 20 }, "end": { - "line": 99, + "line": 101, "column": 26 }, "identifierName": "pChild" @@ -17116,15 +17483,15 @@ }, "property": { "type": "Identifier", - "start": 4923, - "end": 4932, + "start": 5006, + "end": 5015, "loc": { "start": { - "line": 99, + "line": 101, "column": 27 }, "end": { - "line": 99, + "line": 101, "column": 36 }, "identifierName": "relativeY" @@ -17135,43 +17502,43 @@ }, "right": { "type": "BinaryExpression", - "start": 4935, - "end": 4948, + "start": 5018, + "end": 5031, "loc": { "start": { - "line": 99, + "line": 101, "column": 39 }, "end": { - "line": 99, + "line": 101, "column": 52 } }, "left": { "type": "MemberExpression", - "start": 4935, - "end": 4943, + "start": 5018, + "end": 5026, "loc": { "start": { - "line": 99, + "line": 101, "column": 39 }, "end": { - "line": 99, + "line": 101, "column": 47 } }, "object": { "type": "Identifier", - "start": 4935, - "end": 4941, + "start": 5018, + "end": 5024, "loc": { "start": { - "line": 99, + "line": 101, "column": 39 }, "end": { - "line": 99, + "line": 101, "column": 45 }, "identifierName": "pChild" @@ -17180,15 +17547,15 @@ }, "property": { "type": "Identifier", - "start": 4942, - "end": 4943, + "start": 5025, + "end": 5026, "loc": { "start": { - "line": 99, + "line": 101, "column": 46 }, "end": { - "line": 99, + "line": 101, "column": 47 }, "identifierName": "y" @@ -17200,15 +17567,15 @@ "operator": "-", "right": { "type": "Identifier", - "start": 4946, - "end": 4948, + "start": 5029, + "end": 5031, "loc": { "start": { - "line": 99, + "line": 101, "column": 50 }, "end": { - "line": 99, + "line": 101, "column": 52 }, "identifierName": "pY" @@ -17229,15 +17596,15 @@ { "type": "CommentLine", "value": " Loop the clones and store their relative positions to the main instance", - "start": 4717, - "end": 4791, + "start": 4800, + "end": 4874, "loc": { "start": { - "line": 96, + "line": 98, "column": 16 }, "end": { - "line": 96, + "line": 98, "column": 90 } } @@ -17247,15 +17614,15 @@ { "type": "CommentLine", "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 4988, - "end": 5072, + "start": 5071, + "end": 5155, "loc": { "start": { - "line": 101, + "line": 103, "column": 16 }, "end": { - "line": 101, + "line": 103, "column": 100 } } @@ -17264,58 +17631,58 @@ }, { "type": "ExpressionStatement", - "start": 5090, - "end": 5487, + "start": 5173, + "end": 5570, "loc": { "start": { - "line": 102, + "line": 104, "column": 16 }, "end": { - "line": 109, + "line": 111, "column": 17 } }, "expression": { "type": "AssignmentExpression", - "start": 5090, - "end": 5487, + "start": 5173, + "end": 5570, "loc": { "start": { - "line": 102, + "line": 104, "column": 16 }, "end": { - "line": 109, + "line": 111, "column": 17 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 5090, - "end": 5111, + "start": 5173, + "end": 5194, "loc": { "start": { - "line": 102, + "line": 104, "column": 16 }, "end": { - "line": 102, + "line": 104, "column": 37 } }, "object": { "type": "Identifier", - "start": 5090, - "end": 5099, + "start": 5173, + "end": 5182, "loc": { "start": { - "line": 102, + "line": 104, "column": 16 }, "end": { - "line": 102, + "line": 104, "column": 25 }, "identifierName": "pInstance" @@ -17325,15 +17692,15 @@ }, "property": { "type": "Identifier", - "start": 5100, - "end": 5111, + "start": 5183, + "end": 5194, "loc": { "start": { - "line": 102, + "line": 104, "column": 26 }, "end": { - "line": 102, + "line": 104, "column": 37 }, "identifierName": "onRelocated" @@ -17345,15 +17712,15 @@ }, "right": { "type": "FunctionExpression", - "start": 5114, - "end": 5487, + "start": 5197, + "end": 5570, "loc": { "start": { - "line": 102, + "line": 104, "column": 40 }, "end": { - "line": 109, + "line": 111, "column": 17 } }, @@ -17364,15 +17731,15 @@ "params": [ { "type": "Identifier", - "start": 5123, - "end": 5125, + "start": 5206, + "end": 5208, "loc": { "start": { - "line": 102, + "line": 104, "column": 49 }, "end": { - "line": 102, + "line": 104, "column": 51 }, "identifierName": "pX" @@ -17381,15 +17748,15 @@ }, { "type": "Identifier", - "start": 5127, - "end": 5129, + "start": 5210, + "end": 5212, "loc": { "start": { - "line": 102, + "line": 104, "column": 53 }, "end": { - "line": 102, + "line": 104, "column": 55 }, "identifierName": "pY" @@ -17399,72 +17766,72 @@ ], "body": { "type": "BlockStatement", - "start": 5131, - "end": 5487, + "start": 5214, + "end": 5570, "loc": { "start": { - "line": 102, + "line": 104, "column": 57 }, "end": { - "line": 109, + "line": 111, "column": 17 } }, "body": [ { "type": "ExpressionStatement", - "start": 5231, - "end": 5468, + "start": 5314, + "end": 5551, "loc": { "start": { - "line": 104, + "line": 106, "column": 20 }, "end": { - "line": 108, + "line": 110, "column": 23 } }, "expression": { "type": "CallExpression", - "start": 5231, - "end": 5467, + "start": 5314, + "end": 5550, "loc": { "start": { - "line": 104, + "line": 106, "column": 20 }, "end": { - "line": 108, + "line": 110, "column": 22 } }, "callee": { "type": "MemberExpression", - "start": 5231, - "end": 5247, + "start": 5314, + "end": 5330, "loc": { "start": { - "line": 104, + "line": 106, "column": 20 }, "end": { - "line": 104, + "line": 106, "column": 36 } }, "object": { "type": "Identifier", - "start": 5231, - "end": 5239, + "start": 5314, + "end": 5322, "loc": { "start": { - "line": 104, + "line": 106, "column": 20 }, "end": { - "line": 104, + "line": 106, "column": 28 }, "identifierName": "children" @@ -17474,15 +17841,15 @@ }, "property": { "type": "Identifier", - "start": 5240, - "end": 5247, + "start": 5323, + "end": 5330, "loc": { "start": { - "line": 104, + "line": 106, "column": 29 }, "end": { - "line": 104, + "line": 106, "column": 36 }, "identifierName": "forEach" @@ -17495,15 +17862,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 5248, - "end": 5466, + "start": 5331, + "end": 5549, "loc": { "start": { - "line": 104, + "line": 106, "column": 37 }, "end": { - "line": 108, + "line": 110, "column": 21 } }, @@ -17514,15 +17881,15 @@ "params": [ { "type": "Identifier", - "start": 5249, - "end": 5255, + "start": 5332, + "end": 5338, "loc": { "start": { - "line": 104, + "line": 106, "column": 38 }, "end": { - "line": 104, + "line": 106, "column": 44 }, "identifierName": "pChild" @@ -17532,73 +17899,73 @@ ], "body": { "type": "BlockStatement", - "start": 5260, - "end": 5466, + "start": 5343, + "end": 5549, "loc": { "start": { - "line": 104, + "line": 106, "column": 49 }, "end": { - "line": 108, + "line": 110, "column": 21 } }, "body": [ { "type": "ExpressionStatement", - "start": 5287, - "end": 5324, + "start": 5370, + "end": 5407, "loc": { "start": { - "line": 105, + "line": 107, "column": 24 }, "end": { - "line": 105, + "line": 107, "column": 61 } }, "expression": { "type": "AssignmentExpression", - "start": 5287, - "end": 5323, + "start": 5370, + "end": 5406, "loc": { "start": { - "line": 105, + "line": 107, "column": 24 }, "end": { - "line": 105, + "line": 107, "column": 60 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 5287, - "end": 5295, + "start": 5370, + "end": 5378, "loc": { "start": { - "line": 105, + "line": 107, "column": 24 }, "end": { - "line": 105, + "line": 107, "column": 32 } }, "object": { "type": "Identifier", - "start": 5287, - "end": 5293, + "start": 5370, + "end": 5376, "loc": { "start": { - "line": 105, + "line": 107, "column": 24 }, "end": { - "line": 105, + "line": 107, "column": 30 }, "identifierName": "pChild" @@ -17607,15 +17974,15 @@ }, "property": { "type": "Identifier", - "start": 5294, - "end": 5295, + "start": 5377, + "end": 5378, "loc": { "start": { - "line": 105, + "line": 107, "column": 31 }, "end": { - "line": 105, + "line": 107, "column": 32 }, "identifierName": "x" @@ -17626,58 +17993,58 @@ }, "right": { "type": "BinaryExpression", - "start": 5298, - "end": 5323, + "start": 5381, + "end": 5406, "loc": { "start": { - "line": 105, + "line": 107, "column": 35 }, "end": { - "line": 105, + "line": 107, "column": 60 } }, "left": { "type": "MemberExpression", - "start": 5298, - "end": 5304, + "start": 5381, + "end": 5387, "loc": { "start": { - "line": 105, + "line": 107, "column": 35 }, "end": { - "line": 105, + "line": 107, "column": 41 } }, "object": { "type": "ThisExpression", - "start": 5298, - "end": 5302, + "start": 5381, + "end": 5385, "loc": { "start": { - "line": 105, + "line": 107, "column": 35 }, "end": { - "line": 105, + "line": 107, "column": 39 } } }, "property": { "type": "Identifier", - "start": 5303, - "end": 5304, + "start": 5386, + "end": 5387, "loc": { "start": { - "line": 105, + "line": 107, "column": 40 }, "end": { - "line": 105, + "line": 107, "column": 41 }, "identifierName": "x" @@ -17689,29 +18056,29 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 5307, - "end": 5323, + "start": 5390, + "end": 5406, "loc": { "start": { - "line": 105, + "line": 107, "column": 44 }, "end": { - "line": 105, + "line": 107, "column": 60 } }, "object": { "type": "Identifier", - "start": 5307, - "end": 5313, + "start": 5390, + "end": 5396, "loc": { "start": { - "line": 105, + "line": 107, "column": 44 }, "end": { - "line": 105, + "line": 107, "column": 50 }, "identifierName": "pChild" @@ -17720,15 +18087,15 @@ }, "property": { "type": "Identifier", - "start": 5314, - "end": 5323, + "start": 5397, + "end": 5406, "loc": { "start": { - "line": 105, + "line": 107, "column": 51 }, "end": { - "line": 105, + "line": 107, "column": 60 }, "identifierName": "relativeX" @@ -17742,58 +18109,58 @@ }, { "type": "ExpressionStatement", - "start": 5350, - "end": 5387, + "start": 5433, + "end": 5470, "loc": { "start": { - "line": 106, + "line": 108, "column": 24 }, "end": { - "line": 106, + "line": 108, "column": 61 } }, "expression": { "type": "AssignmentExpression", - "start": 5350, - "end": 5386, + "start": 5433, + "end": 5469, "loc": { "start": { - "line": 106, + "line": 108, "column": 24 }, "end": { - "line": 106, + "line": 108, "column": 60 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 5350, - "end": 5358, + "start": 5433, + "end": 5441, "loc": { "start": { - "line": 106, + "line": 108, "column": 24 }, "end": { - "line": 106, + "line": 108, "column": 32 } }, "object": { "type": "Identifier", - "start": 5350, - "end": 5356, + "start": 5433, + "end": 5439, "loc": { "start": { - "line": 106, + "line": 108, "column": 24 }, "end": { - "line": 106, + "line": 108, "column": 30 }, "identifierName": "pChild" @@ -17802,15 +18169,15 @@ }, "property": { "type": "Identifier", - "start": 5357, - "end": 5358, + "start": 5440, + "end": 5441, "loc": { "start": { - "line": 106, + "line": 108, "column": 31 }, "end": { - "line": 106, + "line": 108, "column": 32 }, "identifierName": "y" @@ -17821,58 +18188,58 @@ }, "right": { "type": "BinaryExpression", - "start": 5361, - "end": 5386, + "start": 5444, + "end": 5469, "loc": { "start": { - "line": 106, + "line": 108, "column": 35 }, "end": { - "line": 106, + "line": 108, "column": 60 } }, "left": { "type": "MemberExpression", - "start": 5361, - "end": 5367, + "start": 5444, + "end": 5450, "loc": { "start": { - "line": 106, + "line": 108, "column": 35 }, "end": { - "line": 106, + "line": 108, "column": 41 } }, "object": { "type": "ThisExpression", - "start": 5361, - "end": 5365, + "start": 5444, + "end": 5448, "loc": { "start": { - "line": 106, + "line": 108, "column": 35 }, "end": { - "line": 106, + "line": 108, "column": 39 } } }, "property": { "type": "Identifier", - "start": 5366, - "end": 5367, + "start": 5449, + "end": 5450, "loc": { "start": { - "line": 106, + "line": 108, "column": 40 }, "end": { - "line": 106, + "line": 108, "column": 41 }, "identifierName": "y" @@ -17884,29 +18251,29 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 5370, - "end": 5386, + "start": 5453, + "end": 5469, "loc": { "start": { - "line": 106, + "line": 108, "column": 44 }, "end": { - "line": 106, + "line": 108, "column": 60 } }, "object": { "type": "Identifier", - "start": 5370, - "end": 5376, + "start": 5453, + "end": 5459, "loc": { "start": { - "line": 106, + "line": 108, "column": 44 }, "end": { - "line": 106, + "line": 108, "column": 50 }, "identifierName": "pChild" @@ -17915,15 +18282,15 @@ }, "property": { "type": "Identifier", - "start": 5377, - "end": 5386, + "start": 5460, + "end": 5469, "loc": { "start": { - "line": 106, + "line": 108, "column": 51 }, "end": { - "line": 106, + "line": 108, "column": 60 }, "identifierName": "relativeY" @@ -17937,58 +18304,58 @@ }, { "type": "ExpressionStatement", - "start": 5413, - "end": 5443, + "start": 5496, + "end": 5526, "loc": { "start": { - "line": 107, + "line": 109, "column": 24 }, "end": { - "line": 107, + "line": 109, "column": 54 } }, "expression": { "type": "AssignmentExpression", - "start": 5413, - "end": 5442, + "start": 5496, + "end": 5525, "loc": { "start": { - "line": 107, + "line": 109, "column": 24 }, "end": { - "line": 107, + "line": 109, "column": 53 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 5413, - "end": 5427, + "start": 5496, + "end": 5510, "loc": { "start": { - "line": 107, + "line": 109, "column": 24 }, "end": { - "line": 107, + "line": 109, "column": 38 } }, "object": { "type": "Identifier", - "start": 5413, - "end": 5419, + "start": 5496, + "end": 5502, "loc": { "start": { - "line": 107, + "line": 109, "column": 24 }, "end": { - "line": 107, + "line": 109, "column": 30 }, "identifierName": "pChild" @@ -17997,15 +18364,15 @@ }, "property": { "type": "Identifier", - "start": 5420, - "end": 5427, + "start": 5503, + "end": 5510, "loc": { "start": { - "line": 107, + "line": 109, "column": 31 }, "end": { - "line": 107, + "line": 109, "column": 38 }, "identifierName": "mapName" @@ -18016,44 +18383,44 @@ }, "right": { "type": "MemberExpression", - "start": 5430, - "end": 5442, + "start": 5513, + "end": 5525, "loc": { "start": { - "line": 107, + "line": 109, "column": 41 }, "end": { - "line": 107, + "line": 109, "column": 53 } }, "object": { "type": "ThisExpression", - "start": 5430, - "end": 5434, + "start": 5513, + "end": 5517, "loc": { "start": { - "line": 107, + "line": 109, "column": 41 }, "end": { - "line": 107, + "line": 109, "column": 45 } } }, "property": { "type": "Identifier", - "start": 5435, - "end": 5442, + "start": 5518, + "end": 5525, "loc": { "start": { - "line": 107, + "line": 109, "column": 46 }, "end": { - "line": 107, + "line": 109, "column": 53 }, "identifierName": "mapName" @@ -18075,15 +18442,15 @@ { "type": "CommentLine", "value": " Update the children's position when the parent moves", - "start": 5154, - "end": 5209, + "start": 5237, + "end": 5292, "loc": { "start": { - "line": 103, + "line": 105, "column": 20 }, "end": { - "line": 103, + "line": 105, "column": 75 } } @@ -18100,15 +18467,15 @@ { "type": "CommentLine", "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 4988, - "end": 5072, + "start": 5071, + "end": 5155, "loc": { "start": { - "line": 101, + "line": 103, "column": 16 }, "end": { - "line": 101, + "line": 103, "column": 100 } } @@ -18123,15 +18490,15 @@ { "type": "CommentLine", "value": " If this instance is set to loop, then it needs a left and right clone", - "start": 3867, - "end": 3939, + "start": 3950, + "end": 4022, "loc": { "start": { - "line": 80, + "line": 82, "column": 12 }, "end": { - "line": 80, + "line": 82, "column": 84 } } @@ -18140,58 +18507,58 @@ }, { "type": "ExpressionStatement", - "start": 5516, - "end": 5533, + "start": 5599, + "end": 5616, "loc": { "start": { - "line": 111, + "line": 113, "column": 12 }, "end": { - "line": 111, + "line": 113, "column": 29 } }, "expression": { "type": "AssignmentExpression", - "start": 5516, - "end": 5532, + "start": 5599, + "end": 5615, "loc": { "start": { - "line": 111, + "line": 113, "column": 12 }, "end": { - "line": 111, + "line": 113, "column": 28 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 5516, - "end": 5527, + "start": 5599, + "end": 5610, "loc": { "start": { - "line": 111, + "line": 113, "column": 12 }, "end": { - "line": 111, + "line": 113, "column": 23 } }, "object": { "type": "Identifier", - "start": 5516, - "end": 5525, + "start": 5599, + "end": 5608, "loc": { "start": { - "line": 111, + "line": 113, "column": 12 }, "end": { - "line": 111, + "line": 113, "column": 21 }, "identifierName": "pInstance" @@ -18200,15 +18567,15 @@ }, "property": { "type": "Identifier", - "start": 5526, - "end": 5527, + "start": 5609, + "end": 5610, "loc": { "start": { - "line": 111, + "line": 113, "column": 22 }, "end": { - "line": 111, + "line": 113, "column": 23 }, "identifierName": "x" @@ -18219,15 +18586,15 @@ }, "right": { "type": "Identifier", - "start": 5530, - "end": 5532, + "start": 5613, + "end": 5615, "loc": { "start": { - "line": 111, + "line": 113, "column": 26 }, "end": { - "line": 111, + "line": 113, "column": 28 }, "identifierName": "pX" @@ -18238,58 +18605,58 @@ }, { "type": "ExpressionStatement", - "start": 5547, - "end": 5564, + "start": 5630, + "end": 5647, "loc": { "start": { - "line": 112, + "line": 114, "column": 12 }, "end": { - "line": 112, + "line": 114, "column": 29 } }, "expression": { "type": "AssignmentExpression", - "start": 5547, - "end": 5563, + "start": 5630, + "end": 5646, "loc": { "start": { - "line": 112, + "line": 114, "column": 12 }, "end": { - "line": 112, + "line": 114, "column": 28 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 5547, - "end": 5558, + "start": 5630, + "end": 5641, "loc": { "start": { - "line": 112, + "line": 114, "column": 12 }, "end": { - "line": 112, + "line": 114, "column": 23 } }, "object": { "type": "Identifier", - "start": 5547, - "end": 5556, + "start": 5630, + "end": 5639, "loc": { "start": { - "line": 112, + "line": 114, "column": 12 }, "end": { - "line": 112, + "line": 114, "column": 21 }, "identifierName": "pInstance" @@ -18298,15 +18665,15 @@ }, "property": { "type": "Identifier", - "start": 5557, - "end": 5558, + "start": 5640, + "end": 5641, "loc": { "start": { - "line": 112, + "line": 114, "column": 22 }, "end": { - "line": 112, + "line": 114, "column": 23 }, "identifierName": "y" @@ -18317,15 +18684,15 @@ }, "right": { "type": "Identifier", - "start": 5561, - "end": 5563, + "start": 5644, + "end": 5646, "loc": { "start": { - "line": 112, + "line": 114, "column": 26 }, "end": { - "line": 112, + "line": 114, "column": 28 }, "identifierName": "pY" @@ -18336,58 +18703,58 @@ }, { "type": "ExpressionStatement", - "start": 5578, - "end": 5603, + "start": 5661, + "end": 5686, "loc": { "start": { - "line": 113, + "line": 115, "column": 12 }, "end": { - "line": 113, + "line": 115, "column": 37 } }, "expression": { "type": "AssignmentExpression", - "start": 5578, - "end": 5602, + "start": 5661, + "end": 5685, "loc": { "start": { - "line": 113, + "line": 115, "column": 12 }, "end": { - "line": 113, + "line": 115, "column": 36 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 5578, - "end": 5595, + "start": 5661, + "end": 5678, "loc": { "start": { - "line": 113, + "line": 115, "column": 12 }, "end": { - "line": 113, + "line": 115, "column": 29 } }, "object": { "type": "Identifier", - "start": 5578, - "end": 5587, + "start": 5661, + "end": 5670, "loc": { "start": { - "line": 113, + "line": 115, "column": 12 }, "end": { - "line": 113, + "line": 115, "column": 21 }, "identifierName": "pInstance" @@ -18396,15 +18763,15 @@ }, "property": { "type": "Identifier", - "start": 5588, - "end": 5595, + "start": 5671, + "end": 5678, "loc": { "start": { - "line": 113, + "line": 115, "column": 22 }, "end": { - "line": 113, + "line": 115, "column": 29 }, "identifierName": "mapName" @@ -18415,15 +18782,15 @@ }, "right": { "type": "Identifier", - "start": 5598, - "end": 5602, + "start": 5681, + "end": 5685, "loc": { "start": { - "line": 113, + "line": 115, "column": 32 }, "end": { - "line": 113, + "line": 115, "column": 36 }, "identifierName": "pMap" @@ -18437,129 +18804,129 @@ }, "alternate": { "type": "BlockStatement", - "start": 5620, - "end": 5780, + "start": 5703, + "end": 5863, "loc": { "start": { - "line": 114, + "line": 116, "column": 15 }, "end": { - "line": 116, + "line": 118, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 5635, - "end": 5769, + "start": 5718, + "end": 5852, "loc": { "start": { - "line": 115, + "line": 117, "column": 12 }, "end": { - "line": 115, + "line": 117, "column": 146 } }, "expression": { "type": "CallExpression", - "start": 5635, - "end": 5768, + "start": 5718, + "end": 5851, "loc": { "start": { - "line": 115, + "line": 117, "column": 12 }, "end": { - "line": 115, + "line": 117, "column": 145 } }, "callee": { "type": "MemberExpression", - "start": 5635, - "end": 5678, + "start": 5718, + "end": 5761, "loc": { "start": { - "line": 115, + "line": 117, "column": 12 }, "end": { - "line": 115, + "line": 117, "column": 55 } }, "object": { "type": "CallExpression", - "start": 5635, - "end": 5672, + "start": 5718, + "end": 5755, "loc": { "start": { - "line": 115, + "line": 117, "column": 12 }, "end": { - "line": 115, + "line": 117, "column": 49 } }, "callee": { "type": "MemberExpression", - "start": 5635, - "end": 5653, + "start": 5718, + "end": 5736, "loc": { "start": { - "line": 115, + "line": 117, "column": 12 }, "end": { - "line": 115, + "line": 117, "column": 30 } }, "object": { "type": "MemberExpression", - "start": 5635, - "end": 5646, + "start": 5718, + "end": 5729, "loc": { "start": { - "line": 115, + "line": 117, "column": 12 }, "end": { - "line": 115, + "line": 117, "column": 23 } }, "object": { "type": "ThisExpression", - "start": 5635, - "end": 5639, + "start": 5718, + "end": 5722, "loc": { "start": { - "line": 115, + "line": 117, "column": 12 }, "end": { - "line": 115, + "line": 117, "column": 16 } } }, "property": { "type": "Identifier", - "start": 5640, - "end": 5646, + "start": 5723, + "end": 5729, "loc": { "start": { - "line": 115, + "line": 117, "column": 17 }, "end": { - "line": 115, + "line": 117, "column": 23 }, "identifierName": "logger" @@ -18570,15 +18937,15 @@ }, "property": { "type": "Identifier", - "start": 5647, - "end": 5653, + "start": 5730, + "end": 5736, "loc": { "start": { - "line": 115, + "line": 117, "column": 24 }, "end": { - "line": 115, + "line": 117, "column": 30 }, "identifierName": "prefix" @@ -18590,15 +18957,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 5654, - "end": 5671, + "start": 5737, + "end": 5754, "loc": { "start": { - "line": 115, + "line": 117, "column": 31 }, "end": { - "line": 115, + "line": 117, "column": 48 } }, @@ -18612,15 +18979,15 @@ }, "property": { "type": "Identifier", - "start": 5673, - "end": 5678, + "start": 5756, + "end": 5761, "loc": { "start": { - "line": 115, + "line": 117, "column": 50 }, "end": { - "line": 115, + "line": 117, "column": 55 }, "identifierName": "error" @@ -18632,15 +18999,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 5679, - "end": 5767, + "start": 5762, + "end": 5850, "loc": { "start": { - "line": 115, + "line": 117, "column": 56 }, "end": { - "line": 115, + "line": 117, "column": 144 } }, @@ -18665,15 +19032,15 @@ { "type": "CommentBlock", "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", - "start": 2787, - "end": 3680, + "start": 2970, + "end": 3863, "loc": { "start": { - "line": 64, + "line": 68, "column": 4 }, "end": { - "line": 75, + "line": 79, "column": 7 } } @@ -18683,15 +19050,15 @@ { "type": "CommentBlock", "value": "*\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n ", - "start": 5793, - "end": 5940, + "start": 5876, + "end": 6023, "loc": { "start": { - "line": 118, + "line": 120, "column": 4 }, "end": { - "line": 121, + "line": 123, "column": 7 } } @@ -18700,15 +19067,15 @@ }, { "type": "ClassMethod", - "start": 5946, - "end": 6257, + "start": 6029, + "end": 6340, "loc": { "start": { - "line": 122, + "line": 124, "column": 4 }, "end": { - "line": 130, + "line": 132, "column": 5 } }, @@ -18716,15 +19083,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 5946, - "end": 5952, + "start": 6029, + "end": 6035, "loc": { "start": { - "line": 122, + "line": 124, "column": 4 }, "end": { - "line": 122, + "line": 124, "column": 10 }, "identifierName": "remove" @@ -18740,15 +19107,15 @@ "params": [ { "type": "Identifier", - "start": 5953, - "end": 5962, + "start": 6036, + "end": 6045, "loc": { "start": { - "line": 122, + "line": 124, "column": 11 }, "end": { - "line": 122, + "line": 124, "column": 20 }, "identifierName": "pInstance" @@ -18758,44 +19125,44 @@ ], "body": { "type": "BlockStatement", - "start": 5964, - "end": 6257, + "start": 6047, + "end": 6340, "loc": { "start": { - "line": 122, + "line": 124, "column": 22 }, "end": { - "line": 130, + "line": 132, "column": 5 } }, "body": [ { "type": "IfStatement", - "start": 5975, - "end": 6250, + "start": 6058, + "end": 6333, "loc": { "start": { - "line": 123, + "line": 125, "column": 8 }, "end": { - "line": 129, + "line": 131, "column": 9 } }, "test": { "type": "Identifier", - "start": 5979, - "end": 5988, + "start": 6062, + "end": 6071, "loc": { "start": { - "line": 123, + "line": 125, "column": 12 }, "end": { - "line": 123, + "line": 125, "column": 21 }, "identifierName": "pInstance" @@ -18804,101 +19171,101 @@ }, "consequent": { "type": "BlockStatement", - "start": 5990, - "end": 6150, + "start": 6073, + "end": 6233, "loc": { "start": { - "line": 123, + "line": 125, "column": 23 }, "end": { - "line": 127, + "line": 129, "column": 9 } }, "body": [ { "type": "IfStatement", - "start": 6005, - "end": 6139, + "start": 6088, + "end": 6222, "loc": { "start": { - "line": 124, + "line": 126, "column": 12 }, "end": { - "line": 126, + "line": 128, "column": 13 } }, "test": { "type": "CallExpression", - "start": 6009, - "end": 6043, + "start": 6092, + "end": 6126, "loc": { "start": { - "line": 124, + "line": 126, "column": 16 }, "end": { - "line": 124, + "line": 126, "column": 50 } }, "callee": { "type": "MemberExpression", - "start": 6009, - "end": 6032, + "start": 6092, + "end": 6115, "loc": { "start": { - "line": 124, + "line": 126, "column": 16 }, "end": { - "line": 124, + "line": 126, "column": 39 } }, "object": { "type": "MemberExpression", - "start": 6009, - "end": 6023, + "start": 6092, + "end": 6106, "loc": { "start": { - "line": 124, + "line": 126, "column": 16 }, "end": { - "line": 124, + "line": 126, "column": 30 } }, "object": { "type": "ThisExpression", - "start": 6009, - "end": 6013, + "start": 6092, + "end": 6096, "loc": { "start": { - "line": 124, + "line": 126, "column": 16 }, "end": { - "line": 124, + "line": 126, "column": 20 } } }, "property": { "type": "Identifier", - "start": 6014, - "end": 6023, + "start": 6097, + "end": 6106, "loc": { "start": { - "line": 124, + "line": 126, "column": 21 }, "end": { - "line": 124, + "line": 126, "column": 30 }, "identifierName": "instances" @@ -18909,15 +19276,15 @@ }, "property": { "type": "Identifier", - "start": 6024, - "end": 6032, + "start": 6107, + "end": 6115, "loc": { "start": { - "line": 124, + "line": 126, "column": 31 }, "end": { - "line": 124, + "line": 126, "column": 39 }, "identifierName": "includes" @@ -18929,15 +19296,15 @@ "arguments": [ { "type": "Identifier", - "start": 6033, - "end": 6042, + "start": 6116, + "end": 6125, "loc": { "start": { - "line": 124, + "line": 126, "column": 40 }, "end": { - "line": 124, + "line": 126, "column": 49 }, "identifierName": "pInstance" @@ -18948,101 +19315,101 @@ }, "consequent": { "type": "BlockStatement", - "start": 6045, - "end": 6139, + "start": 6128, + "end": 6222, "loc": { "start": { - "line": 124, + "line": 126, "column": 52 }, "end": { - "line": 126, + "line": 128, "column": 13 } }, "body": [ { "type": "ExpressionStatement", - "start": 6064, - "end": 6124, + "start": 6147, + "end": 6207, "loc": { "start": { - "line": 125, + "line": 127, "column": 16 }, "end": { - "line": 125, + "line": 127, "column": 76 } }, "expression": { "type": "CallExpression", - "start": 6064, - "end": 6123, + "start": 6147, + "end": 6206, "loc": { "start": { - "line": 125, + "line": 127, "column": 16 }, "end": { - "line": 125, + "line": 127, "column": 75 } }, "callee": { "type": "MemberExpression", - "start": 6064, - "end": 6085, + "start": 6147, + "end": 6168, "loc": { "start": { - "line": 125, + "line": 127, "column": 16 }, "end": { - "line": 125, + "line": 127, "column": 37 } }, "object": { "type": "MemberExpression", - "start": 6064, - "end": 6078, + "start": 6147, + "end": 6161, "loc": { "start": { - "line": 125, + "line": 127, "column": 16 }, "end": { - "line": 125, + "line": 127, "column": 30 } }, "object": { "type": "ThisExpression", - "start": 6064, - "end": 6068, + "start": 6147, + "end": 6151, "loc": { "start": { - "line": 125, + "line": 127, "column": 16 }, "end": { - "line": 125, + "line": 127, "column": 20 } } }, "property": { "type": "Identifier", - "start": 6069, - "end": 6078, + "start": 6152, + "end": 6161, "loc": { "start": { - "line": 125, + "line": 127, "column": 21 }, "end": { - "line": 125, + "line": 127, "column": 30 }, "identifierName": "instances" @@ -19053,15 +19420,15 @@ }, "property": { "type": "Identifier", - "start": 6079, - "end": 6085, + "start": 6162, + "end": 6168, "loc": { "start": { - "line": 125, + "line": 127, "column": 31 }, "end": { - "line": 125, + "line": 127, "column": 37 }, "identifierName": "splice" @@ -19073,72 +19440,72 @@ "arguments": [ { "type": "CallExpression", - "start": 6086, - "end": 6119, + "start": 6169, + "end": 6202, "loc": { "start": { - "line": 125, + "line": 127, "column": 38 }, "end": { - "line": 125, + "line": 127, "column": 71 } }, "callee": { "type": "MemberExpression", - "start": 6086, - "end": 6108, + "start": 6169, + "end": 6191, "loc": { "start": { - "line": 125, + "line": 127, "column": 38 }, "end": { - "line": 125, + "line": 127, "column": 60 } }, "object": { "type": "MemberExpression", - "start": 6086, - "end": 6100, + "start": 6169, + "end": 6183, "loc": { "start": { - "line": 125, + "line": 127, "column": 38 }, "end": { - "line": 125, + "line": 127, "column": 52 } }, "object": { "type": "ThisExpression", - "start": 6086, - "end": 6090, + "start": 6169, + "end": 6173, "loc": { "start": { - "line": 125, + "line": 127, "column": 38 }, "end": { - "line": 125, + "line": 127, "column": 42 } } }, "property": { "type": "Identifier", - "start": 6091, - "end": 6100, + "start": 6174, + "end": 6183, "loc": { "start": { - "line": 125, + "line": 127, "column": 43 }, "end": { - "line": 125, + "line": 127, "column": 52 }, "identifierName": "instances" @@ -19149,15 +19516,15 @@ }, "property": { "type": "Identifier", - "start": 6101, - "end": 6108, + "start": 6184, + "end": 6191, "loc": { "start": { - "line": 125, + "line": 127, "column": 53 }, "end": { - "line": 125, + "line": 127, "column": 60 }, "identifierName": "indexOf" @@ -19169,15 +19536,15 @@ "arguments": [ { "type": "Identifier", - "start": 6109, - "end": 6118, + "start": 6192, + "end": 6201, "loc": { "start": { - "line": 125, + "line": 127, "column": 61 }, "end": { - "line": 125, + "line": 127, "column": 70 }, "identifierName": "pInstance" @@ -19188,15 +19555,15 @@ }, { "type": "NumericLiteral", - "start": 6121, - "end": 6122, + "start": 6204, + "end": 6205, "loc": { "start": { - "line": 125, + "line": 127, "column": 73 }, "end": { - "line": 125, + "line": 127, "column": 74 } }, @@ -19219,129 +19586,129 @@ }, "alternate": { "type": "BlockStatement", - "start": 6156, - "end": 6250, + "start": 6239, + "end": 6333, "loc": { "start": { - "line": 127, + "line": 129, "column": 15 }, "end": { - "line": 129, + "line": 131, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 6171, - "end": 6239, + "start": 6254, + "end": 6322, "loc": { "start": { - "line": 128, + "line": 130, "column": 12 }, "end": { - "line": 128, + "line": 130, "column": 80 } }, "expression": { "type": "CallExpression", - "start": 6171, - "end": 6238, + "start": 6254, + "end": 6321, "loc": { "start": { - "line": 128, + "line": 130, "column": 12 }, "end": { - "line": 128, + "line": 130, "column": 79 } }, "callee": { "type": "MemberExpression", - "start": 6171, - "end": 6214, + "start": 6254, + "end": 6297, "loc": { "start": { - "line": 128, + "line": 130, "column": 12 }, "end": { - "line": 128, + "line": 130, "column": 55 } }, "object": { "type": "CallExpression", - "start": 6171, - "end": 6208, + "start": 6254, + "end": 6291, "loc": { "start": { - "line": 128, + "line": 130, "column": 12 }, "end": { - "line": 128, + "line": 130, "column": 49 } }, "callee": { "type": "MemberExpression", - "start": 6171, - "end": 6189, + "start": 6254, + "end": 6272, "loc": { "start": { - "line": 128, + "line": 130, "column": 12 }, "end": { - "line": 128, + "line": 130, "column": 30 } }, "object": { "type": "MemberExpression", - "start": 6171, - "end": 6182, + "start": 6254, + "end": 6265, "loc": { "start": { - "line": 128, + "line": 130, "column": 12 }, "end": { - "line": 128, + "line": 130, "column": 23 } }, "object": { "type": "ThisExpression", - "start": 6171, - "end": 6175, + "start": 6254, + "end": 6258, "loc": { "start": { - "line": 128, + "line": 130, "column": 12 }, "end": { - "line": 128, + "line": 130, "column": 16 } } }, "property": { "type": "Identifier", - "start": 6176, - "end": 6182, + "start": 6259, + "end": 6265, "loc": { "start": { - "line": 128, + "line": 130, "column": 17 }, "end": { - "line": 128, + "line": 130, "column": 23 }, "identifierName": "logger" @@ -19352,15 +19719,15 @@ }, "property": { "type": "Identifier", - "start": 6183, - "end": 6189, + "start": 6266, + "end": 6272, "loc": { "start": { - "line": 128, + "line": 130, "column": 24 }, "end": { - "line": 128, + "line": 130, "column": 30 }, "identifierName": "prefix" @@ -19372,15 +19739,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 6190, - "end": 6207, + "start": 6273, + "end": 6290, "loc": { "start": { - "line": 128, + "line": 130, "column": 31 }, "end": { - "line": 128, + "line": 130, "column": 48 } }, @@ -19394,15 +19761,15 @@ }, "property": { "type": "Identifier", - "start": 6209, - "end": 6214, + "start": 6292, + "end": 6297, "loc": { "start": { - "line": 128, + "line": 130, "column": 50 }, "end": { - "line": 128, + "line": 130, "column": 55 }, "identifierName": "error" @@ -19414,15 +19781,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 6215, - "end": 6237, + "start": 6298, + "end": 6320, "loc": { "start": { - "line": 128, + "line": 130, "column": 56 }, "end": { - "line": 128, + "line": 130, "column": 78 } }, @@ -19447,15 +19814,15 @@ { "type": "CommentBlock", "value": "*\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n ", - "start": 5793, - "end": 5940, + "start": 5876, + "end": 6023, "loc": { "start": { - "line": 118, + "line": 120, "column": 4 }, "end": { - "line": 121, + "line": 123, "column": 7 } } @@ -19465,15 +19832,15 @@ { "type": "CommentBlock", "value": "*\r\n * Updates the parallax system\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n * @param {number} pSimulatedPosition - The simulated position. This is used to simulate a position larger than possible, but internally it treats it as its downscaled position.\r\n * One such reason for using this paramater would be to simulate a map larger than you actually have, to convince the parallax that it is infinite.\r\n ", - "start": 6263, - "end": 6777, + "start": 6346, + "end": 6860, "loc": { "start": { - "line": 131, + "line": 133, "column": 4 }, "end": { - "line": 137, + "line": 139, "column": 7 } } @@ -19482,15 +19849,15 @@ }, { "type": "ClassMethod", - "start": 6783, - "end": 9272, + "start": 6866, + "end": 9104, "loc": { "start": { - "line": 138, + "line": 140, "column": 4 }, "end": { - "line": 192, + "line": 194, "column": 5 } }, @@ -19498,15 +19865,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 6783, - "end": 6789, + "start": 6866, + "end": 6872, "loc": { "start": { - "line": 138, + "line": 140, "column": 4 }, "end": { - "line": 138, + "line": 140, "column": 10 }, "identifierName": "update" @@ -19522,29 +19889,29 @@ "params": [ { "type": "AssignmentPattern", - "start": 6790, - "end": 6802, + "start": 6873, + "end": 6885, "loc": { "start": { - "line": 138, + "line": 140, "column": 11 }, "end": { - "line": 138, + "line": 140, "column": 23 } }, "left": { "type": "Identifier", - "start": 6790, - "end": 6798, + "start": 6873, + "end": 6881, "loc": { "start": { - "line": 138, + "line": 140, "column": 11 }, "end": { - "line": 138, + "line": 140, "column": 19 }, "identifierName": "pCameraX" @@ -19553,15 +19920,15 @@ }, "right": { "type": "NumericLiteral", - "start": 6801, - "end": 6802, + "start": 6884, + "end": 6885, "loc": { "start": { - "line": 138, + "line": 140, "column": 22 }, "end": { - "line": 138, + "line": 140, "column": 23 } }, @@ -19574,29 +19941,29 @@ }, { "type": "AssignmentPattern", - "start": 6804, - "end": 6816, + "start": 6887, + "end": 6899, "loc": { "start": { - "line": 138, + "line": 140, "column": 25 }, "end": { - "line": 138, + "line": 140, "column": 37 } }, "left": { "type": "Identifier", - "start": 6804, - "end": 6812, + "start": 6887, + "end": 6895, "loc": { "start": { - "line": 138, + "line": 140, "column": 25 }, "end": { - "line": 138, + "line": 140, "column": 33 }, "identifierName": "pCameraY" @@ -19605,15 +19972,15 @@ }, "right": { "type": "NumericLiteral", - "start": 6815, - "end": 6816, + "start": 6898, + "end": 6899, "loc": { "start": { - "line": 138, + "line": 140, "column": 36 }, "end": { - "line": 138, + "line": 140, "column": 37 } }, @@ -19626,15 +19993,15 @@ }, { "type": "Identifier", - "start": 6818, - "end": 6836, + "start": 6901, + "end": 6919, "loc": { "start": { - "line": 138, + "line": 140, "column": 39 }, "end": { - "line": 138, + "line": 140, "column": 57 }, "identifierName": "pSimulatedPosition" @@ -19644,73 +20011,73 @@ ], "body": { "type": "BlockStatement", - "start": 6838, - "end": 9272, + "start": 6921, + "end": 9104, "loc": { "start": { - "line": 138, + "line": 140, "column": 59 }, "end": { - "line": 192, + "line": 194, "column": 5 } }, "body": [ { "type": "ForOfStatement", - "start": 6849, - "end": 9257, + "start": 6932, + "end": 9097, "loc": { "start": { - "line": 139, + "line": 141, "column": 8 }, "end": { - "line": 191, + "line": 193, "column": 9 } }, "left": { "type": "VariableDeclaration", - "start": 6854, - "end": 6868, + "start": 6937, + "end": 6951, "loc": { "start": { - "line": 139, + "line": 141, "column": 13 }, "end": { - "line": 139, + "line": 141, "column": 27 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 6860, - "end": 6868, + "start": 6943, + "end": 6951, "loc": { "start": { - "line": 139, + "line": 141, "column": 19 }, "end": { - "line": 139, + "line": 141, "column": 27 } }, "id": { "type": "Identifier", - "start": 6860, - "end": 6868, + "start": 6943, + "end": 6951, "loc": { "start": { - "line": 139, + "line": 141, "column": 19 }, "end": { - "line": 139, + "line": 141, "column": 27 }, "identifierName": "instance" @@ -19724,44 +20091,44 @@ }, "right": { "type": "MemberExpression", - "start": 6872, - "end": 6886, + "start": 6955, + "end": 6969, "loc": { "start": { - "line": 139, + "line": 141, "column": 31 }, "end": { - "line": 139, + "line": 141, "column": 45 } }, "object": { "type": "ThisExpression", - "start": 6872, - "end": 6876, + "start": 6955, + "end": 6959, "loc": { "start": { - "line": 139, + "line": 141, "column": 31 }, "end": { - "line": 139, + "line": 141, "column": 35 } } }, "property": { "type": "Identifier", - "start": 6877, - "end": 6886, + "start": 6960, + "end": 6969, "loc": { "start": { - "line": 139, + "line": 141, "column": 36 }, "end": { - "line": 139, + "line": 141, "column": 45 }, "identifierName": "instances" @@ -19772,59 +20139,59 @@ }, "body": { "type": "BlockStatement", - "start": 6888, - "end": 9257, + "start": 6971, + "end": 9097, "loc": { "start": { - "line": 139, + "line": 141, "column": 47 }, "end": { - "line": 191, + "line": 193, "column": 9 } }, "body": [ { "type": "VariableDeclaration", - "start": 7056, - "end": 7079, + "start": 7074, + "end": 7097, "loc": { "start": { - "line": 144, + "line": 143, "column": 12 }, "end": { - "line": 144, + "line": 143, "column": 35 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 7060, - "end": 7078, + "start": 7078, + "end": 7096, "loc": { "start": { - "line": 144, + "line": 143, "column": 16 }, "end": { - "line": 144, + "line": 143, "column": 34 } }, "id": { "type": "Identifier", - "start": 7060, - "end": 7067, + "start": 7078, + "end": 7085, "loc": { "start": { - "line": 144, + "line": 143, "column": 16 }, "end": { - "line": 144, + "line": 143, "column": 23 }, "identifierName": "cameraX" @@ -19834,15 +20201,15 @@ }, "init": { "type": "Identifier", - "start": 7070, - "end": 7078, + "start": 7088, + "end": 7096, "loc": { "start": { - "line": 144, + "line": 143, "column": 26 }, "end": { - "line": 144, + "line": 143, "column": 34 }, "identifierName": "pCameraX" @@ -19855,36 +20222,36 @@ "kind": "let", "leadingComments": [ { - "type": "CommentBlock", - "value": "*\r\n * The camera's x position. May be adjusted if pSimulatedPosition is used.\r\n * @type {number}\r\n ", - "start": 6903, - "end": 7042, + "type": "CommentLine", + "value": " The camera's x position. May be adjusted if pSimulatedPosition is used.", + "start": 6986, + "end": 7060, "loc": { "start": { - "line": 140, + "line": 142, "column": 12 }, "end": { - "line": 143, - "column": 15 + "line": 142, + "column": 86 } } } ], "trailingComments": [ { - "type": "CommentBlock", - "value": "*\r\n * The camera's x position. May be adjusted if pSimulatedPosition is used.\r\n * @type {number}\r\n ", - "start": 7093, - "end": 7232, + "type": "CommentLine", + "value": " The camera's x position. May be adjusted if pSimulatedPosition is used.", + "start": 7111, + "end": 7185, "loc": { "start": { - "line": 145, + "line": 144, "column": 12 }, "end": { - "line": 148, - "column": 15 + "line": 144, + "column": 86 } } } @@ -19892,44 +20259,44 @@ }, { "type": "VariableDeclaration", - "start": 7246, - "end": 7269, + "start": 7199, + "end": 7222, "loc": { "start": { - "line": 149, + "line": 145, "column": 12 }, "end": { - "line": 149, + "line": 145, "column": 35 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 7250, - "end": 7268, + "start": 7203, + "end": 7221, "loc": { "start": { - "line": 149, + "line": 145, "column": 16 }, "end": { - "line": 149, + "line": 145, "column": 34 } }, "id": { "type": "Identifier", - "start": 7250, - "end": 7257, + "start": 7203, + "end": 7210, "loc": { "start": { - "line": 149, + "line": 145, "column": 16 }, "end": { - "line": 149, + "line": 145, "column": 23 }, "identifierName": "cameraY" @@ -19939,15 +20306,15 @@ }, "init": { "type": "Identifier", - "start": 7260, - "end": 7268, + "start": 7213, + "end": 7221, "loc": { "start": { - "line": 149, + "line": 145, "column": 26 }, "end": { - "line": 149, + "line": 145, "column": 34 }, "identifierName": "pCameraY" @@ -19960,18 +20327,18 @@ "kind": "let", "leadingComments": [ { - "type": "CommentBlock", - "value": "*\r\n * The camera's x position. May be adjusted if pSimulatedPosition is used.\r\n * @type {number}\r\n ", - "start": 7093, - "end": 7232, + "type": "CommentLine", + "value": " The camera's x position. May be adjusted if pSimulatedPosition is used.", + "start": 7111, + "end": 7185, "loc": { "start": { - "line": 145, + "line": 144, "column": 12 }, "end": { - "line": 148, - "column": 15 + "line": 144, + "column": 86 } } } @@ -19979,44 +20346,44 @@ }, { "type": "VariableDeclaration", - "start": 7285, - "end": 7341, + "start": 7238, + "end": 7294, "loc": { "start": { - "line": 151, + "line": 147, "column": 12 }, "end": { - "line": 151, + "line": 147, "column": 68 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 7291, - "end": 7340, + "start": 7244, + "end": 7293, "loc": { "start": { - "line": 151, + "line": 147, "column": 18 }, "end": { - "line": 151, + "line": 147, "column": 67 } }, "id": { "type": "Identifier", - "start": 7291, - "end": 7303, + "start": 7244, + "end": 7256, "loc": { "start": { - "line": 151, + "line": 147, "column": 18 }, "end": { - "line": 151, + "line": 147, "column": 30 }, "identifierName": "parallaxInfo" @@ -20025,72 +20392,72 @@ }, "init": { "type": "CallExpression", - "start": 7306, - "end": 7340, + "start": 7259, + "end": 7293, "loc": { "start": { - "line": 151, + "line": 147, "column": 33 }, "end": { - "line": 151, + "line": 147, "column": 67 } }, "callee": { "type": "MemberExpression", - "start": 7306, - "end": 7330, + "start": 7259, + "end": 7283, "loc": { "start": { - "line": 151, + "line": 147, "column": 33 }, "end": { - "line": 151, + "line": 147, "column": 57 } }, "object": { "type": "MemberExpression", - "start": 7306, - "end": 7326, + "start": 7259, + "end": 7279, "loc": { "start": { - "line": 151, + "line": 147, "column": 33 }, "end": { - "line": 151, + "line": 147, "column": 53 } }, "object": { "type": "ThisExpression", - "start": 7306, - "end": 7310, + "start": 7259, + "end": 7263, "loc": { "start": { - "line": 151, + "line": 147, "column": 33 }, "end": { - "line": 151, + "line": 147, "column": 37 } } }, "property": { "type": "Identifier", - "start": 7311, - "end": 7326, + "start": 7264, + "end": 7279, "loc": { "start": { - "line": 151, + "line": 147, "column": 38 }, "end": { - "line": 151, + "line": 147, "column": 53 }, "identifierName": "instanceWeakMap" @@ -20101,15 +20468,15 @@ }, "property": { "type": "Identifier", - "start": 7327, - "end": 7330, + "start": 7280, + "end": 7283, "loc": { "start": { - "line": 151, + "line": 147, "column": 54 }, "end": { - "line": 151, + "line": 147, "column": 57 }, "identifierName": "get" @@ -20121,15 +20488,15 @@ "arguments": [ { "type": "Identifier", - "start": 7331, - "end": 7339, + "start": 7284, + "end": 7292, "loc": { "start": { - "line": 151, + "line": 147, "column": 58 }, "end": { - "line": 151, + "line": 147, "column": 66 }, "identifierName": "instance" @@ -20144,17 +20511,173 @@ "trailingComments": [ { "type": "CommentLine", - "value": " How far we moved from the start point", - "start": 7355, - "end": 7395, + "value": " Move the instance with the camera if the parallax is set to 0", + "start": 7310, + "end": 7374, "loc": { "start": { - "line": 152, + "line": 149, "column": 12 }, "end": { - "line": 152, - "column": 52 + "line": 149, + "column": 76 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 7388, + "end": 7431, + "loc": { + "start": { + "line": 150, + "column": 12 + }, + "end": { + "line": 150, + "column": 55 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 7394, + "end": 7430, + "loc": { + "start": { + "line": 150, + "column": 18 + }, + "end": { + "line": 150, + "column": 54 + } + }, + "id": { + "type": "Identifier", + "start": 7394, + "end": 7407, + "loc": { + "start": { + "line": 150, + "column": 18 + }, + "end": { + "line": 150, + "column": 31 + }, + "identifierName": "isBackgroundX" + }, + "name": "isBackgroundX", + "leadingComments": null + }, + "init": { + "type": "BinaryExpression", + "start": 7410, + "end": 7430, + "loc": { + "start": { + "line": 150, + "column": 34 + }, + "end": { + "line": 150, + "column": 54 + } + }, + "left": { + "type": "MemberExpression", + "start": 7410, + "end": 7424, + "loc": { + "start": { + "line": 150, + "column": 34 + }, + "end": { + "line": 150, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 7410, + "end": 7422, + "loc": { + "start": { + "line": 150, + "column": 34 + }, + "end": { + "line": 150, + "column": 46 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "property": { + "type": "Identifier", + "start": 7423, + "end": 7424, + "loc": { + "start": { + "line": 150, + "column": 47 + }, + "end": { + "line": 150, + "column": 48 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "NumericLiteral", + "start": 7429, + "end": 7430, + "loc": { + "start": { + "line": 150, + "column": 53 + }, + "end": { + "line": 150, + "column": 54 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentLine", + "value": " Move the instance with the camera if the parallax is set to 0", + "start": 7310, + "end": 7374, + "loc": { + "start": { + "line": 149, + "column": 12 + }, + "end": { + "line": 149, + "column": 76 } } } @@ -20162,8 +20685,144 @@ }, { "type": "VariableDeclaration", - "start": 7409, - "end": 7448, + "start": 7445, + "end": 7488, + "loc": { + "start": { + "line": 151, + "column": 12 + }, + "end": { + "line": 151, + "column": 55 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 7451, + "end": 7487, + "loc": { + "start": { + "line": 151, + "column": 18 + }, + "end": { + "line": 151, + "column": 54 + } + }, + "id": { + "type": "Identifier", + "start": 7451, + "end": 7464, + "loc": { + "start": { + "line": 151, + "column": 18 + }, + "end": { + "line": 151, + "column": 31 + }, + "identifierName": "isBackgroundY" + }, + "name": "isBackgroundY" + }, + "init": { + "type": "BinaryExpression", + "start": 7467, + "end": 7487, + "loc": { + "start": { + "line": 151, + "column": 34 + }, + "end": { + "line": 151, + "column": 54 + } + }, + "left": { + "type": "MemberExpression", + "start": 7467, + "end": 7481, + "loc": { + "start": { + "line": 151, + "column": 34 + }, + "end": { + "line": 151, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 7467, + "end": 7479, + "loc": { + "start": { + "line": 151, + "column": 34 + }, + "end": { + "line": 151, + "column": 46 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "property": { + "type": "Identifier", + "start": 7480, + "end": 7481, + "loc": { + "start": { + "line": 151, + "column": 47 + }, + "end": { + "line": 151, + "column": 48 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "NumericLiteral", + "start": 7486, + "end": 7487, + "loc": { + "start": { + "line": 151, + "column": 53 + }, + "end": { + "line": 151, + "column": 54 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 7504, + "end": 7555, "loc": { "start": { "line": 153, @@ -20171,14 +20830,14 @@ }, "end": { "line": 153, - "column": 51 + "column": 63 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 7415, - "end": 7447, + "start": 7510, + "end": 7554, "loc": { "start": { "line": 153, @@ -20186,13 +20845,13 @@ }, "end": { "line": 153, - "column": 50 + "column": 62 } }, "id": { "type": "Identifier", - "start": 7415, - "end": 7420, + "start": 7510, + "end": 7516, "loc": { "start": { "line": 153, @@ -20200,71 +20859,421 @@ }, "end": { "line": 153, - "column": 23 + "column": 24 }, - "identifierName": "distX" + "identifierName": "deltaX" }, - "name": "distX", - "leadingComments": null + "name": "deltaX" }, "init": { "type": "BinaryExpression", - "start": 7423, - "end": 7447, + "start": 7519, + "end": 7554, "loc": { "start": { "line": 153, - "column": 26 + "column": 27 }, "end": { "line": 153, - "column": 50 + "column": 62 } }, "left": { "type": "Identifier", - "start": 7423, - "end": 7430, + "start": 7519, + "end": 7526, "loc": { "start": { "line": 153, - "column": 26 + "column": 27 }, "end": { "line": 153, - "column": 33 + "column": 34 }, "identifierName": "cameraX" }, "name": "cameraX" }, - "operator": "*", + "operator": "-", "right": { "type": "MemberExpression", - "start": 7433, - "end": 7447, + "start": 7529, + "end": 7554, "loc": { "start": { "line": 153, - "column": 36 + "column": 37 }, "end": { "line": 153, - "column": 50 + "column": 62 } }, "object": { + "type": "MemberExpression", + "start": 7529, + "end": 7552, + "loc": { + "start": { + "line": 153, + "column": 37 + }, + "end": { + "line": 153, + "column": 60 + } + }, + "object": { + "type": "Identifier", + "start": 7529, + "end": 7541, + "loc": { + "start": { + "line": 153, + "column": 37 + }, + "end": { + "line": 153, + "column": 49 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "property": { + "type": "Identifier", + "start": 7542, + "end": 7552, + "loc": { + "start": { + "line": 153, + "column": 50 + }, + "end": { + "line": 153, + "column": 60 + }, + "identifierName": "lastCamPos" + }, + "name": "lastCamPos" + }, + "computed": false + }, + "property": { "type": "Identifier", - "start": 7433, - "end": 7445, + "start": 7553, + "end": 7554, "loc": { "start": { "line": 153, - "column": 36 + "column": 61 }, "end": { "line": 153, - "column": 48 + "column": 62 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false + } + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 7569, + "end": 7620, + "loc": { + "start": { + "line": 154, + "column": 12 + }, + "end": { + "line": 154, + "column": 63 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 7575, + "end": 7619, + "loc": { + "start": { + "line": 154, + "column": 18 + }, + "end": { + "line": 154, + "column": 62 + } + }, + "id": { + "type": "Identifier", + "start": 7575, + "end": 7581, + "loc": { + "start": { + "line": 154, + "column": 18 + }, + "end": { + "line": 154, + "column": 24 + }, + "identifierName": "deltaY" + }, + "name": "deltaY" + }, + "init": { + "type": "BinaryExpression", + "start": 7584, + "end": 7619, + "loc": { + "start": { + "line": 154, + "column": 27 + }, + "end": { + "line": 154, + "column": 62 + } + }, + "left": { + "type": "Identifier", + "start": 7584, + "end": 7591, + "loc": { + "start": { + "line": 154, + "column": 27 + }, + "end": { + "line": 154, + "column": 34 + }, + "identifierName": "cameraY" + }, + "name": "cameraY" + }, + "operator": "-", + "right": { + "type": "MemberExpression", + "start": 7594, + "end": 7619, + "loc": { + "start": { + "line": 154, + "column": 37 + }, + "end": { + "line": 154, + "column": 62 + } + }, + "object": { + "type": "MemberExpression", + "start": 7594, + "end": 7617, + "loc": { + "start": { + "line": 154, + "column": 37 + }, + "end": { + "line": 154, + "column": 60 + } + }, + "object": { + "type": "Identifier", + "start": 7594, + "end": 7606, + "loc": { + "start": { + "line": 154, + "column": 37 + }, + "end": { + "line": 154, + "column": 49 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "property": { + "type": "Identifier", + "start": 7607, + "end": 7617, + "loc": { + "start": { + "line": 154, + "column": 50 + }, + "end": { + "line": 154, + "column": 60 + }, + "identifierName": "lastCamPos" + }, + "name": "lastCamPos" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 7618, + "end": 7619, + "loc": { + "start": { + "line": 154, + "column": 61 + }, + "end": { + "line": 154, + "column": 62 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + } + } + } + ], + "kind": "const", + "trailingComments": [ + { + "type": "CommentLine", + "value": " How far we moved from the start point", + "start": 7636, + "end": 7676, + "loc": { + "start": { + "line": 156, + "column": 12 + }, + "end": { + "line": 156, + "column": 52 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 7690, + "end": 7728, + "loc": { + "start": { + "line": 157, + "column": 12 + }, + "end": { + "line": 157, + "column": 50 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 7696, + "end": 7727, + "loc": { + "start": { + "line": 157, + "column": 18 + }, + "end": { + "line": 157, + "column": 49 + } + }, + "id": { + "type": "Identifier", + "start": 7696, + "end": 7701, + "loc": { + "start": { + "line": 157, + "column": 18 + }, + "end": { + "line": 157, + "column": 23 + }, + "identifierName": "distX" + }, + "name": "distX", + "leadingComments": null + }, + "init": { + "type": "BinaryExpression", + "start": 7704, + "end": 7727, + "loc": { + "start": { + "line": 157, + "column": 26 + }, + "end": { + "line": 157, + "column": 49 + } + }, + "left": { + "type": "Identifier", + "start": 7704, + "end": 7710, + "loc": { + "start": { + "line": 157, + "column": 26 + }, + "end": { + "line": 157, + "column": 32 + }, + "identifierName": "deltaX" + }, + "name": "deltaX" + }, + "operator": "*", + "right": { + "type": "MemberExpression", + "start": 7713, + "end": 7727, + "loc": { + "start": { + "line": 157, + "column": 35 + }, + "end": { + "line": 157, + "column": 49 + } + }, + "object": { + "type": "Identifier", + "start": 7713, + "end": 7725, + "loc": { + "start": { + "line": 157, + "column": 35 + }, + "end": { + "line": 157, + "column": 47 }, "identifierName": "parallaxInfo" }, @@ -20272,16 +21281,16 @@ }, "property": { "type": "Identifier", - "start": 7446, - "end": 7447, + "start": 7726, + "end": 7727, "loc": { "start": { - "line": 153, - "column": 49 + "line": 157, + "column": 48 }, "end": { - "line": 153, - "column": 50 + "line": 157, + "column": 49 }, "identifierName": "x" }, @@ -20298,15 +21307,15 @@ { "type": "CommentLine", "value": " How far we moved from the start point", - "start": 7355, - "end": 7395, + "start": 7636, + "end": 7676, "loc": { "start": { - "line": 152, + "line": 156, "column": 12 }, "end": { - "line": 152, + "line": 156, "column": 52 } } @@ -20315,44 +21324,44 @@ }, { "type": "VariableDeclaration", - "start": 7462, - "end": 7501, + "start": 7742, + "end": 7780, "loc": { "start": { - "line": 154, + "line": 158, "column": 12 }, "end": { - "line": 154, - "column": 51 + "line": 158, + "column": 50 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 7468, - "end": 7500, + "start": 7748, + "end": 7779, "loc": { "start": { - "line": 154, + "line": 158, "column": 18 }, "end": { - "line": 154, - "column": 50 + "line": 158, + "column": 49 } }, "id": { "type": "Identifier", - "start": 7468, - "end": 7473, + "start": 7748, + "end": 7753, "loc": { "start": { - "line": 154, + "line": 158, "column": 18 }, "end": { - "line": 154, + "line": 158, "column": 23 }, "identifierName": "distY" @@ -20361,62 +21370,62 @@ }, "init": { "type": "BinaryExpression", - "start": 7476, - "end": 7500, + "start": 7756, + "end": 7779, "loc": { "start": { - "line": 154, + "line": 158, "column": 26 }, "end": { - "line": 154, - "column": 50 + "line": 158, + "column": 49 } }, "left": { "type": "Identifier", - "start": 7476, - "end": 7483, + "start": 7756, + "end": 7762, "loc": { "start": { - "line": 154, + "line": 158, "column": 26 }, "end": { - "line": 154, - "column": 33 + "line": 158, + "column": 32 }, - "identifierName": "cameraY" + "identifierName": "deltaY" }, - "name": "cameraY" + "name": "deltaY" }, "operator": "*", "right": { "type": "MemberExpression", - "start": 7486, - "end": 7500, + "start": 7765, + "end": 7779, "loc": { "start": { - "line": 154, - "column": 36 + "line": 158, + "column": 35 }, "end": { - "line": 154, - "column": 50 + "line": 158, + "column": 49 } }, "object": { "type": "Identifier", - "start": 7486, - "end": 7498, + "start": 7765, + "end": 7777, "loc": { "start": { - "line": 154, - "column": 36 + "line": 158, + "column": 35 }, "end": { - "line": 154, - "column": 48 + "line": 158, + "column": 47 }, "identifierName": "parallaxInfo" }, @@ -20424,16 +21433,16 @@ }, "property": { "type": "Identifier", - "start": 7499, - "end": 7500, + "start": 7778, + "end": 7779, "loc": { "start": { - "line": 154, - "column": 49 + "line": 158, + "column": 48 }, "end": { - "line": 154, - "column": 50 + "line": 158, + "column": 49 }, "identifierName": "y" }, @@ -20448,17 +21457,17 @@ "trailingComments": [ { "type": "CommentLine", - "value": " Position to set the instance to. We take into account the simulated posiiton if it is passed.", - "start": 7517, - "end": 7613, + "value": " Position to set the instance to.", + "start": 7796, + "end": 7831, "loc": { "start": { - "line": 156, + "line": 160, "column": 12 }, "end": { - "line": 156, - "column": 108 + "line": 160, + "column": 47 } } } @@ -20466,44 +21475,44 @@ }, { "type": "VariableDeclaration", - "start": 7627, - "end": 7742, + "start": 7845, + "end": 7872, "loc": { "start": { - "line": 157, + "line": 161, "column": 12 }, "end": { - "line": 157, - "column": 127 + "line": 161, + "column": 39 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 7631, - "end": 7741, + "start": 7849, + "end": 7871, "loc": { "start": { - "line": 157, + "line": 161, "column": 16 }, "end": { - "line": 157, - "column": 126 + "line": 161, + "column": 38 } }, "id": { "type": "Identifier", - "start": 7631, - "end": 7632, + "start": 7849, + "end": 7850, "loc": { "start": { - "line": 157, + "line": 161, "column": 16 }, "end": { - "line": 157, + "line": 161, "column": 17 }, "identifierName": "x" @@ -20513,94 +21522,61 @@ }, "init": { "type": "BinaryExpression", - "start": 7635, - "end": 7741, + "start": 7853, + "end": 7871, "loc": { "start": { - "line": 157, + "line": 161, "column": 20 }, "end": { - "line": 157, - "column": 126 + "line": 161, + "column": 38 } }, "left": { "type": "MemberExpression", - "start": 7635, - "end": 7660, + "start": 7853, + "end": 7863, "loc": { "start": { - "line": 157, + "line": 161, "column": 20 }, "end": { - "line": 157, - "column": 45 + "line": 161, + "column": 30 } }, "object": { - "type": "MemberExpression", - "start": 7635, - "end": 7658, + "type": "Identifier", + "start": 7853, + "end": 7861, "loc": { "start": { - "line": 157, + "line": 161, "column": 20 }, "end": { - "line": 157, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 7635, - "end": 7647, - "loc": { - "start": { - "line": 157, - "column": 20 - }, - "end": { - "line": 157, - "column": 32 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 7648, - "end": 7658, - "loc": { - "start": { - "line": 157, - "column": 33 - }, - "end": { - "line": 157, - "column": 43 - }, - "identifierName": "initialPos" + "line": 161, + "column": 28 }, - "name": "initialPos" + "identifierName": "instance" }, - "computed": false + "name": "instance" }, "property": { "type": "Identifier", - "start": 7659, - "end": 7660, + "start": 7862, + "end": 7863, "loc": { "start": { - "line": 157, - "column": 44 + "line": 161, + "column": 29 }, "end": { - "line": 157, - "column": 45 + "line": 161, + "column": 30 }, "identifierName": "x" }, @@ -20610,167 +21586,21 @@ }, "operator": "+", "right": { - "type": "ConditionalExpression", - "start": 7664, - "end": 7740, + "type": "Identifier", + "start": 7866, + "end": 7871, "loc": { "start": { - "line": 157, - "column": 49 + "line": 161, + "column": 33 }, "end": { - "line": 157, - "column": 125 - } - }, - "test": { - "type": "BinaryExpression", - "start": 7664, - "end": 7703, - "loc": { - "start": { - "line": 157, - "column": 49 - }, - "end": { - "line": 157, - "column": 88 - } - }, - "left": { - "type": "UnaryExpression", - "start": 7664, - "end": 7690, - "loc": { - "start": { - "line": 157, - "column": 49 - }, - "end": { - "line": 157, - "column": 75 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 7671, - "end": 7689, - "loc": { - "start": { - "line": 157, - "column": 56 - }, - "end": { - "line": 157, - "column": 74 - }, - "identifierName": "pSimulatedPosition" - }, - "name": "pSimulatedPosition", - "extra": { - "parenthesized": true, - "parenStart": 7670 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 7695, - "end": 7703, - "loc": { - "start": { - "line": 157, - "column": 80 - }, - "end": { - "line": 157, - "column": 88 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - } - }, - "consequent": { - "type": "BinaryExpression", - "start": 7706, - "end": 7732, - "loc": { - "start": { - "line": 157, - "column": 91 - }, - "end": { - "line": 157, - "column": 117 - } - }, - "left": { - "type": "Identifier", - "start": 7706, - "end": 7711, - "loc": { - "start": { - "line": 157, - "column": 91 - }, - "end": { - "line": 157, - "column": 96 - }, - "identifierName": "distX" - }, - "name": "distX" + "line": 161, + "column": 38 }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 7714, - "end": 7732, - "loc": { - "start": { - "line": 157, - "column": 99 - }, - "end": { - "line": 157, - "column": 117 - }, - "identifierName": "pSimulatedPosition" - }, - "name": "pSimulatedPosition" - } - }, - "alternate": { - "type": "Identifier", - "start": 7735, - "end": 7740, - "loc": { - "start": { - "line": 157, - "column": 120 - }, - "end": { - "line": 157, - "column": 125 - }, - "identifierName": "distX" - }, - "name": "distX" + "identifierName": "distX" }, - "extra": { - "parenthesized": true, - "parenStart": 7663 - } + "name": "distX" } }, "leadingComments": null @@ -20780,17 +21610,17 @@ "leadingComments": [ { "type": "CommentLine", - "value": " Position to set the instance to. We take into account the simulated posiiton if it is passed.", - "start": 7517, - "end": 7613, + "value": " Position to set the instance to.", + "start": 7796, + "end": 7831, "loc": { "start": { - "line": 156, + "line": 160, "column": 12 }, "end": { - "line": 156, - "column": 108 + "line": 160, + "column": 47 } } } @@ -20798,44 +21628,44 @@ }, { "type": "VariableDeclaration", - "start": 7756, - "end": 7798, + "start": 7886, + "end": 7913, "loc": { "start": { - "line": 158, + "line": 162, "column": 12 }, "end": { - "line": 158, - "column": 54 + "line": 162, + "column": 39 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 7760, - "end": 7797, + "start": 7890, + "end": 7912, "loc": { "start": { - "line": 158, + "line": 162, "column": 16 }, "end": { - "line": 158, - "column": 53 + "line": 162, + "column": 38 } }, "id": { "type": "Identifier", - "start": 7760, - "end": 7761, + "start": 7890, + "end": 7891, "loc": { "start": { - "line": 158, + "line": 162, "column": 16 }, "end": { - "line": 158, + "line": 162, "column": 17 }, "identifierName": "y" @@ -20844,94 +21674,61 @@ }, "init": { "type": "BinaryExpression", - "start": 7764, - "end": 7797, + "start": 7894, + "end": 7912, "loc": { "start": { - "line": 158, + "line": 162, "column": 20 }, "end": { - "line": 158, - "column": 53 + "line": 162, + "column": 38 } }, "left": { "type": "MemberExpression", - "start": 7764, - "end": 7789, + "start": 7894, + "end": 7904, "loc": { "start": { - "line": 158, + "line": 162, "column": 20 }, "end": { - "line": 158, - "column": 45 + "line": 162, + "column": 30 } }, "object": { - "type": "MemberExpression", - "start": 7764, - "end": 7787, + "type": "Identifier", + "start": 7894, + "end": 7902, "loc": { "start": { - "line": 158, + "line": 162, "column": 20 }, "end": { - "line": 158, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 7764, - "end": 7776, - "loc": { - "start": { - "line": 158, - "column": 20 - }, - "end": { - "line": 158, - "column": 32 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 7777, - "end": 7787, - "loc": { - "start": { - "line": 158, - "column": 33 - }, - "end": { - "line": 158, - "column": 43 - }, - "identifierName": "initialPos" + "line": 162, + "column": 28 }, - "name": "initialPos" + "identifierName": "instance" }, - "computed": false + "name": "instance" }, "property": { "type": "Identifier", - "start": 7788, - "end": 7789, + "start": 7903, + "end": 7904, "loc": { "start": { - "line": 158, - "column": 44 + "line": 162, + "column": 29 }, "end": { - "line": 158, - "column": 45 + "line": 162, + "column": 30 }, "identifierName": "y" }, @@ -20942,16 +21739,16 @@ "operator": "+", "right": { "type": "Identifier", - "start": 7792, - "end": 7797, + "start": 7907, + "end": 7912, "loc": { "start": { - "line": 158, - "column": 48 + "line": 162, + "column": 33 }, "end": { - "line": 158, - "column": 53 + "line": 162, + "column": 38 }, "identifierName": "distY" }, @@ -20964,17 +21761,17 @@ "trailingComments": [ { "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 7826, - "end": 7890, + "value": " Hard code in static backgrounds", + "start": 7929, + "end": 7963, "loc": { "start": { - "line": 160, + "line": 164, "column": 12 }, "end": { - "line": 160, - "column": 76 + "line": 164, + "column": 46 } } } @@ -20982,371 +21779,91 @@ }, { "type": "IfStatement", - "start": 7904, - "end": 8144, + "start": 7977, + "end": 8068, "loc": { "start": { - "line": 161, + "line": 165, "column": 12 }, "end": { - "line": 166, + "line": 167, "column": 13 } }, "test": { - "type": "BinaryExpression", - "start": 7908, - "end": 7928, + "type": "Identifier", + "start": 7981, + "end": 7994, "loc": { "start": { - "line": 161, + "line": 165, "column": 16 }, "end": { - "line": 161, - "column": 36 - } - }, - "left": { - "type": "MemberExpression", - "start": 7908, - "end": 7922, - "loc": { - "start": { - "line": 161, - "column": 16 - }, - "end": { - "line": 161, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 7908, - "end": 7920, - "loc": { - "start": { - "line": 161, - "column": 16 - }, - "end": { - "line": 161, - "column": 28 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 7921, - "end": 7922, - "loc": { - "start": { - "line": 161, - "column": 29 - }, - "end": { - "line": 161, - "column": 30 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false, - "leadingComments": null - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 7927, - "end": 7928, - "loc": { - "start": { - "line": 161, - "column": 35 - }, - "end": { - "line": 161, - "column": 36 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" + "line": 165, + "column": 29 }, - "value": 1 + "identifierName": "isBackgroundX" }, + "name": "isBackgroundX", "leadingComments": null }, "consequent": { "type": "BlockStatement", - "start": 7930, - "end": 8144, + "start": 7996, + "end": 8068, "loc": { "start": { - "line": 161, - "column": 38 + "line": 165, + "column": 31 }, "end": { - "line": 166, + "line": 167, "column": 13 } }, "body": [ - { - "type": "IfStatement", - "start": 7949, - "end": 8073, - "loc": { - "start": { - "line": 162, - "column": 16 - }, - "end": { - "line": 164, - "column": 17 - } - }, - "test": { - "type": "BinaryExpression", - "start": 7953, - "end": 7992, - "loc": { - "start": { - "line": 162, - "column": 20 - }, - "end": { - "line": 162, - "column": 59 - } - }, - "left": { - "type": "UnaryExpression", - "start": 7953, - "end": 7979, - "loc": { - "start": { - "line": 162, - "column": 20 - }, - "end": { - "line": 162, - "column": 46 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 7960, - "end": 7978, - "loc": { - "start": { - "line": 162, - "column": 27 - }, - "end": { - "line": 162, - "column": 45 - }, - "identifierName": "pSimulatedPosition" - }, - "name": "pSimulatedPosition", - "extra": { - "parenthesized": true, - "parenStart": 7959 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 7984, - "end": 7992, - "loc": { - "start": { - "line": 162, - "column": 51 - }, - "end": { - "line": 162, - "column": 59 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 7994, - "end": 8073, - "loc": { - "start": { - "line": 162, - "column": 61 - }, - "end": { - "line": 164, - "column": 17 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 8017, - "end": 8054, - "loc": { - "start": { - "line": 163, - "column": 20 - }, - "end": { - "line": 163, - "column": 57 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 8017, - "end": 8053, - "loc": { - "start": { - "line": 163, - "column": 20 - }, - "end": { - "line": 163, - "column": 56 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 8017, - "end": 8024, - "loc": { - "start": { - "line": 163, - "column": 20 - }, - "end": { - "line": 163, - "column": 27 - }, - "identifierName": "cameraX" - }, - "name": "cameraX" - }, - "right": { - "type": "BinaryExpression", - "start": 8027, - "end": 8053, - "loc": { - "start": { - "line": 163, - "column": 30 - }, - "end": { - "line": 163, - "column": 56 - } - }, - "left": { - "type": "Identifier", - "start": 8027, - "end": 8032, - "loc": { - "start": { - "line": 163, - "column": 30 - }, - "end": { - "line": 163, - "column": 35 - }, - "identifierName": "distX" - }, - "name": "distX" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 8035, - "end": 8053, - "loc": { - "start": { - "line": 163, - "column": 38 - }, - "end": { - "line": 163, - "column": 56 - }, - "identifierName": "pSimulatedPosition" - }, - "name": "pSimulatedPosition" - } - } - } - } - ], - "directives": [] - }, - "alternate": null - }, { "type": "ExpressionStatement", - "start": 8091, - "end": 8129, + "start": 8015, + "end": 8053, "loc": { "start": { - "line": 165, + "line": 166, "column": 16 }, "end": { - "line": 165, + "line": 166, "column": 54 } }, "expression": { "type": "AssignmentExpression", - "start": 8091, - "end": 8128, + "start": 8015, + "end": 8052, "loc": { "start": { - "line": 165, + "line": 166, "column": 16 }, "end": { - "line": 165, + "line": 166, "column": 53 } }, "operator": "=", "left": { "type": "Identifier", - "start": 8091, - "end": 8092, + "start": 8015, + "end": 8016, "loc": { "start": { - "line": 165, + "line": 166, "column": 16 }, "end": { - "line": 165, + "line": 166, "column": 17 }, "identifierName": "x" @@ -21355,29 +21872,29 @@ }, "right": { "type": "BinaryExpression", - "start": 8095, - "end": 8128, + "start": 8019, + "end": 8052, "loc": { "start": { - "line": 165, + "line": 166, "column": 20 }, "end": { - "line": 165, + "line": 166, "column": 53 } }, "left": { "type": "Identifier", - "start": 8095, - "end": 8102, + "start": 8019, + "end": 8026, "loc": { "start": { - "line": 165, + "line": 166, "column": 20 }, "end": { - "line": 165, + "line": 166, "column": 27 }, "identifierName": "cameraX" @@ -21387,57 +21904,57 @@ "operator": "-", "right": { "type": "BinaryExpression", - "start": 8105, - "end": 8128, + "start": 8029, + "end": 8052, "loc": { "start": { - "line": 165, + "line": 166, "column": 30 }, "end": { - "line": 165, + "line": 166, "column": 53 } }, "left": { "type": "MemberExpression", - "start": 8105, - "end": 8124, + "start": 8029, + "end": 8048, "loc": { "start": { - "line": 165, + "line": 166, "column": 30 }, "end": { - "line": 165, + "line": 166, "column": 49 } }, "object": { "type": "MemberExpression", - "start": 8105, - "end": 8118, + "start": 8029, + "end": 8042, "loc": { "start": { - "line": 165, + "line": 166, "column": 30 }, "end": { - "line": 165, + "line": 166, "column": 43 } }, "object": { "type": "Identifier", - "start": 8105, - "end": 8113, + "start": 8029, + "end": 8037, "loc": { "start": { - "line": 165, + "line": 166, "column": 30 }, "end": { - "line": 165, + "line": 166, "column": 38 }, "identifierName": "instance" @@ -21446,15 +21963,15 @@ }, "property": { "type": "Identifier", - "start": 8114, - "end": 8118, + "start": 8038, + "end": 8042, "loc": { "start": { - "line": 165, + "line": 166, "column": 39 }, "end": { - "line": 165, + "line": 166, "column": 43 }, "identifierName": "icon" @@ -21465,15 +21982,15 @@ }, "property": { "type": "Identifier", - "start": 8119, - "end": 8124, + "start": 8043, + "end": 8048, "loc": { "start": { - "line": 165, + "line": 166, "column": 44 }, "end": { - "line": 165, + "line": 166, "column": 49 }, "identifierName": "width" @@ -21485,15 +22002,15 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 8127, - "end": 8128, + "start": 8051, + "end": 8052, "loc": { "start": { - "line": 165, + "line": 166, "column": 52 }, "end": { - "line": 165, + "line": 166, "column": 53 } }, @@ -21506,44 +22023,25 @@ } } } - } - ], - "directives": [], - "trailingComments": null - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 7826, - "end": 7890, - "loc": { - "start": { - "line": 160, - "column": 12 - }, - "end": { - "line": 160, - "column": 76 - } - } - } - ], - "trailingComments": [ + } + ], + "directives": [] + }, + "alternate": null, + "leadingComments": [ { "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 8158, - "end": 8222, + "value": " Hard code in static backgrounds", + "start": 7929, + "end": 7963, "loc": { "start": { - "line": 167, + "line": 164, "column": 12 }, "end": { - "line": 167, - "column": 76 + "line": 164, + "column": 46 } } } @@ -21551,8 +22049,8 @@ }, { "type": "IfStatement", - "start": 8236, - "end": 8335, + "start": 8082, + "end": 8174, "loc": { "start": { "line": 168, @@ -21564,9 +22062,9 @@ } }, "test": { - "type": "BinaryExpression", - "start": 8240, - "end": 8260, + "type": "Identifier", + "start": 8086, + "end": 8099, "loc": { "start": { "line": 168, @@ -21574,92 +22072,20 @@ }, "end": { "line": 168, - "column": 36 - } - }, - "left": { - "type": "MemberExpression", - "start": 8240, - "end": 8254, - "loc": { - "start": { - "line": 168, - "column": 16 - }, - "end": { - "line": 168, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 8240, - "end": 8252, - "loc": { - "start": { - "line": 168, - "column": 16 - }, - "end": { - "line": 168, - "column": 28 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 8253, - "end": 8254, - "loc": { - "start": { - "line": 168, - "column": 29 - }, - "end": { - "line": 168, - "column": 30 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false, - "leadingComments": null - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 8259, - "end": 8260, - "loc": { - "start": { - "line": 168, - "column": 35 - }, - "end": { - "line": 168, - "column": 36 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" + "column": 29 }, - "value": 1 + "identifierName": "isBackgroundY" }, - "leadingComments": null + "name": "isBackgroundY" }, "consequent": { "type": "BlockStatement", - "start": 8262, - "end": 8335, + "start": 8101, + "end": 8174, "loc": { "start": { "line": 168, - "column": 38 + "column": 31 }, "end": { "line": 170, @@ -21669,8 +22095,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8281, - "end": 8320, + "start": 8120, + "end": 8159, "loc": { "start": { "line": 169, @@ -21683,8 +22109,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8281, - "end": 8319, + "start": 8120, + "end": 8158, "loc": { "start": { "line": 169, @@ -21698,8 +22124,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 8281, - "end": 8282, + "start": 8120, + "end": 8121, "loc": { "start": { "line": 169, @@ -21715,8 +22141,8 @@ }, "right": { "type": "BinaryExpression", - "start": 8285, - "end": 8319, + "start": 8124, + "end": 8158, "loc": { "start": { "line": 169, @@ -21729,8 +22155,8 @@ }, "left": { "type": "Identifier", - "start": 8285, - "end": 8292, + "start": 8124, + "end": 8131, "loc": { "start": { "line": 169, @@ -21747,8 +22173,8 @@ "operator": "-", "right": { "type": "BinaryExpression", - "start": 8295, - "end": 8319, + "start": 8134, + "end": 8158, "loc": { "start": { "line": 169, @@ -21761,8 +22187,8 @@ }, "left": { "type": "MemberExpression", - "start": 8295, - "end": 8315, + "start": 8134, + "end": 8154, "loc": { "start": { "line": 169, @@ -21775,8 +22201,8 @@ }, "object": { "type": "MemberExpression", - "start": 8295, - "end": 8308, + "start": 8134, + "end": 8147, "loc": { "start": { "line": 169, @@ -21789,8 +22215,8 @@ }, "object": { "type": "Identifier", - "start": 8295, - "end": 8303, + "start": 8134, + "end": 8142, "loc": { "start": { "line": 169, @@ -21806,8 +22232,8 @@ }, "property": { "type": "Identifier", - "start": 8304, - "end": 8308, + "start": 8143, + "end": 8147, "loc": { "start": { "line": 169, @@ -21825,8 +22251,8 @@ }, "property": { "type": "Identifier", - "start": 8309, - "end": 8315, + "start": 8148, + "end": 8154, "loc": { "start": { "line": 169, @@ -21845,8 +22271,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 8318, - "end": 8319, + "start": 8157, + "end": 8158, "loc": { "start": { "line": 169, @@ -21872,30 +22298,12 @@ "trailingComments": null }, "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 8158, - "end": 8222, - "loc": { - "start": { - "line": 167, - "column": 12 - }, - "end": { - "line": 167, - "column": 76 - } - } - } - ], "trailingComments": [ { "type": "CommentLine", "value": " Set the position", - "start": 8351, - "end": 8370, + "start": 8190, + "end": 8209, "loc": { "start": { "line": 172, @@ -21911,8 +22319,8 @@ }, { "type": "ExpressionStatement", - "start": 8384, - "end": 8399, + "start": 8223, + "end": 8238, "loc": { "start": { "line": 173, @@ -21925,8 +22333,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8384, - "end": 8398, + "start": 8223, + "end": 8237, "loc": { "start": { "line": 173, @@ -21940,8 +22348,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8384, - "end": 8394, + "start": 8223, + "end": 8233, "loc": { "start": { "line": 173, @@ -21954,8 +22362,8 @@ }, "object": { "type": "Identifier", - "start": 8384, - "end": 8392, + "start": 8223, + "end": 8231, "loc": { "start": { "line": 173, @@ -21972,8 +22380,8 @@ }, "property": { "type": "Identifier", - "start": 8393, - "end": 8394, + "start": 8232, + "end": 8233, "loc": { "start": { "line": 173, @@ -21992,8 +22400,8 @@ }, "right": { "type": "Identifier", - "start": 8397, - "end": 8398, + "start": 8236, + "end": 8237, "loc": { "start": { "line": 173, @@ -22013,8 +22421,8 @@ { "type": "CommentLine", "value": " Set the position", - "start": 8351, - "end": 8370, + "start": 8190, + "end": 8209, "loc": { "start": { "line": 172, @@ -22030,8 +22438,8 @@ }, { "type": "ExpressionStatement", - "start": 8413, - "end": 8428, + "start": 8252, + "end": 8267, "loc": { "start": { "line": 174, @@ -22044,8 +22452,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8413, - "end": 8427, + "start": 8252, + "end": 8266, "loc": { "start": { "line": 174, @@ -22059,8 +22467,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8413, - "end": 8423, + "start": 8252, + "end": 8262, "loc": { "start": { "line": 174, @@ -22073,8 +22481,8 @@ }, "object": { "type": "Identifier", - "start": 8413, - "end": 8421, + "start": 8252, + "end": 8260, "loc": { "start": { "line": 174, @@ -22090,8 +22498,8 @@ }, "property": { "type": "Identifier", - "start": 8422, - "end": 8423, + "start": 8261, + "end": 8262, "loc": { "start": { "line": 174, @@ -22109,8 +22517,8 @@ }, "right": { "type": "Identifier", - "start": 8426, - "end": 8427, + "start": 8265, + "end": 8266, "loc": { "start": { "line": 174, @@ -22127,547 +22535,572 @@ } }, { - "type": "IfStatement", - "start": 8444, - "end": 9246, + "type": "ExpressionStatement", + "start": 8283, + "end": 8319, "loc": { "start": { "line": 176, "column": 12 }, "end": { - "line": 190, - "column": 13 + "line": 176, + "column": 48 } }, - "test": { - "type": "MemberExpression", - "start": 8448, - "end": 8465, + "expression": { + "type": "AssignmentExpression", + "start": 8283, + "end": 8318, "loc": { "start": { "line": 176, - "column": 16 + "column": 12 }, "end": { "line": 176, - "column": 33 + "column": 47 } }, - "object": { - "type": "Identifier", - "start": 8448, - "end": 8460, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 8283, + "end": 8308, "loc": { "start": { "line": 176, - "column": 16 + "column": 12 }, "end": { "line": 176, - "column": 28 + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 8283, + "end": 8306, + "loc": { + "start": { + "line": 176, + "column": 12 + }, + "end": { + "line": 176, + "column": 35 + } }, - "identifierName": "parallaxInfo" + "object": { + "type": "Identifier", + "start": 8283, + "end": 8295, + "loc": { + "start": { + "line": 176, + "column": 12 + }, + "end": { + "line": 176, + "column": 24 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "property": { + "type": "Identifier", + "start": 8296, + "end": 8306, + "loc": { + "start": { + "line": 176, + "column": 25 + }, + "end": { + "line": 176, + "column": 35 + }, + "identifierName": "lastCamPos" + }, + "name": "lastCamPos" + }, + "computed": false }, - "name": "parallaxInfo" + "property": { + "type": "Identifier", + "start": 8307, + "end": 8308, + "loc": { + "start": { + "line": 176, + "column": 36 + }, + "end": { + "line": 176, + "column": 37 + }, + "identifierName": "x" + }, + "name": "x" + }, + "computed": false }, - "property": { + "right": { "type": "Identifier", - "start": 8461, - "end": 8465, + "start": 8311, + "end": 8318, "loc": { "start": { "line": 176, - "column": 29 + "column": 40 }, "end": { "line": 176, - "column": 33 + "column": 47 }, - "identifierName": "loop" + "identifierName": "cameraX" }, - "name": "loop" + "name": "cameraX" + } + } + }, + { + "type": "ExpressionStatement", + "start": 8333, + "end": 8369, + "loc": { + "start": { + "line": 177, + "column": 12 }, - "computed": false + "end": { + "line": 177, + "column": 48 + } }, - "consequent": { - "type": "BlockStatement", - "start": 8467, - "end": 9246, + "expression": { + "type": "AssignmentExpression", + "start": 8333, + "end": 8368, "loc": { "start": { - "line": 176, - "column": 35 + "line": 177, + "column": 12 }, "end": { - "line": 190, - "column": 13 + "line": 177, + "column": 47 } }, - "body": [ - { - "type": "IfStatement", - "start": 8486, - "end": 9231, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 8333, + "end": 8358, + "loc": { + "start": { + "line": 177, + "column": 12 + }, + "end": { + "line": 177, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 8333, + "end": 8356, "loc": { "start": { "line": 177, - "column": 16 + "column": 12 }, "end": { - "line": 189, - "column": 17 + "line": 177, + "column": 35 } }, - "test": { - "type": "BinaryExpression", - "start": 8490, - "end": 8510, + "object": { + "type": "Identifier", + "start": 8333, + "end": 8345, "loc": { "start": { "line": 177, - "column": 20 + "column": 12 }, "end": { "line": 177, - "column": 40 - } - }, - "left": { - "type": "MemberExpression", - "start": 8490, - "end": 8504, - "loc": { - "start": { - "line": 177, - "column": 20 - }, - "end": { - "line": 177, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 8490, - "end": 8502, - "loc": { - "start": { - "line": 177, - "column": 20 - }, - "end": { - "line": 177, - "column": 32 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 8503, - "end": 8504, - "loc": { - "start": { - "line": 177, - "column": 33 - }, - "end": { - "line": 177, - "column": 34 - }, - "identifierName": "x" - }, - "name": "x" + "column": 24 }, - "computed": false + "identifierName": "parallaxInfo" }, - "operator": "!==", - "right": { - "type": "NumericLiteral", - "start": 8509, - "end": 8510, - "loc": { - "start": { - "line": 177, - "column": 39 - }, - "end": { - "line": 177, - "column": 40 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } + "name": "parallaxInfo" }, - "consequent": { - "type": "BlockStatement", - "start": 8512, - "end": 9231, + "property": { + "type": "Identifier", + "start": 8346, + "end": 8356, "loc": { "start": { "line": 177, - "column": 42 + "column": 25 }, "end": { - "line": 189, - "column": 17 - } + "line": 177, + "column": 35 + }, + "identifierName": "lastCamPos" }, - "body": [ - { - "type": "VariableDeclaration", - "start": 8599, - "end": 8648, - "loc": { - "start": { - "line": 179, - "column": 20 - }, - "end": { - "line": 179, - "column": 69 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8605, - "end": 8647, - "loc": { - "start": { - "line": 179, - "column": 26 - }, - "end": { - "line": 179, - "column": 68 - } - }, - "id": { - "type": "Identifier", - "start": 8605, - "end": 8614, - "loc": { - "start": { - "line": 179, - "column": 26 - }, - "end": { - "line": 179, - "column": 35 - }, - "identifierName": "relativeX" - }, - "name": "relativeX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 8617, - "end": 8647, - "loc": { - "start": { - "line": 179, - "column": 38 - }, - "end": { - "line": 179, - "column": 68 - } - }, - "left": { - "type": "Identifier", - "start": 8617, - "end": 8624, - "loc": { - "start": { - "line": 179, - "column": 38 - }, - "end": { - "line": 179, - "column": 45 - }, - "identifierName": "cameraX" - }, - "name": "cameraX" - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 8628, - "end": 8646, - "loc": { - "start": { - "line": 179, - "column": 49 - }, - "end": { - "line": 179, - "column": 67 - } - }, - "left": { - "type": "NumericLiteral", - "start": 8628, - "end": 8629, - "loc": { - "start": { - "line": 179, - "column": 49 - }, - "end": { - "line": 179, - "column": 50 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 8632, - "end": 8646, - "loc": { - "start": { - "line": 179, - "column": 53 - }, - "end": { - "line": 179, - "column": 67 - } - }, - "object": { - "type": "Identifier", - "start": 8632, - "end": 8644, - "loc": { - "start": { - "line": 179, - "column": 53 - }, - "end": { - "line": 179, - "column": 65 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 8645, - "end": 8646, - "loc": { - "start": { - "line": 179, - "column": 66 - }, - "end": { - "line": 179, - "column": 67 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 8627 - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " How far we moved relative to the camera", - "start": 8535, - "end": 8577, - "loc": { - "start": { - "line": 178, - "column": 20 - }, - "end": { - "line": 178, - "column": 62 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " The start pos + total width", - "start": 8670, - "end": 8700, - "loc": { - "start": { - "line": 180, - "column": 20 - }, - "end": { - "line": 180, - "column": 50 - } - } - } - ] + "name": "lastCamPos" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 8357, + "end": 8358, + "loc": { + "start": { + "line": 177, + "column": 36 + }, + "end": { + "line": 177, + "column": 37 + }, + "identifierName": "y" + }, + "name": "y" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 8361, + "end": 8368, + "loc": { + "start": { + "line": 177, + "column": 40 + }, + "end": { + "line": 177, + "column": 47 + }, + "identifierName": "cameraY" + }, + "name": "cameraY" + } + } + }, + { + "type": "IfStatement", + "start": 8385, + "end": 9086, + "loc": { + "start": { + "line": 179, + "column": 12 + }, + "end": { + "line": 192, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 8389, + "end": 8406, + "loc": { + "start": { + "line": 179, + "column": 16 + }, + "end": { + "line": 179, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 8389, + "end": 8401, + "loc": { + "start": { + "line": 179, + "column": 16 + }, + "end": { + "line": 179, + "column": 28 + }, + "identifierName": "parallaxInfo" + }, + "name": "parallaxInfo" + }, + "property": { + "type": "Identifier", + "start": 8402, + "end": 8406, + "loc": { + "start": { + "line": 179, + "column": 29 + }, + "end": { + "line": 179, + "column": 33 + }, + "identifierName": "loop" + }, + "name": "loop" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 8408, + "end": 9086, + "loc": { + "start": { + "line": 179, + "column": 35 + }, + "end": { + "line": 192, + "column": 13 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 8515, + "end": 9071, + "loc": { + "start": { + "line": 181, + "column": 16 + }, + "end": { + "line": 191, + "column": 17 + } + }, + "test": { + "type": "LogicalExpression", + "start": 8519, + "end": 8551, + "loc": { + "start": { + "line": 181, + "column": 20 + }, + "end": { + "line": 181, + "column": 52 + } + }, + "left": { + "type": "UnaryExpression", + "start": 8519, + "end": 8533, + "loc": { + "start": { + "line": 181, + "column": 20 + }, + "end": { + "line": 181, + "column": 34 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 8520, + "end": 8533, + "loc": { + "start": { + "line": 181, + "column": 21 + }, + "end": { + "line": 181, + "column": 34 + }, + "identifierName": "isBackgroundX" + }, + "name": "isBackgroundX", + "leadingComments": null + }, + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null + }, + "operator": "&&", + "right": { + "type": "UnaryExpression", + "start": 8537, + "end": 8551, + "loc": { + "start": { + "line": 181, + "column": 38 + }, + "end": { + "line": 181, + "column": 52 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 8538, + "end": 8551, + "loc": { + "start": { + "line": 181, + "column": 39 + }, + "end": { + "line": 181, + "column": 52 + }, + "identifierName": "isBackgroundY" + }, + "name": "isBackgroundY" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 8553, + "end": 9071, + "loc": { + "start": { + "line": 181, + "column": 54 }, + "end": { + "line": 191, + "column": 17 + } + }, + "body": [ { "type": "VariableDeclaration", - "start": 8722, - "end": 8783, + "start": 8628, + "end": 8678, "loc": { "start": { - "line": 181, + "line": 183, "column": 20 }, "end": { - "line": 181, - "column": 81 + "line": 183, + "column": 70 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 8728, - "end": 8782, + "start": 8634, + "end": 8677, "loc": { "start": { - "line": 181, + "line": 183, "column": 26 }, "end": { - "line": 181, - "column": 80 + "line": 183, + "column": 69 } }, "id": { "type": "Identifier", - "start": 8728, - "end": 8732, + "start": 8634, + "end": 8642, "loc": { "start": { - "line": 181, + "line": 183, "column": 26 }, "end": { - "line": 181, - "column": 30 + "line": 183, + "column": 34 }, - "identifierName": "endX" + "identifierName": "rightEnd" }, - "name": "endX", + "name": "rightEnd", "leadingComments": null }, "init": { "type": "BinaryExpression", - "start": 8735, - "end": 8782, + "start": 8645, + "end": 8677, "loc": { "start": { - "line": 181, - "column": 33 + "line": 183, + "column": 37 }, "end": { - "line": 181, - "column": 80 + "line": 183, + "column": 69 } }, "left": { "type": "MemberExpression", - "start": 8735, - "end": 8760, + "start": 8645, + "end": 8655, "loc": { "start": { - "line": 181, - "column": 33 + "line": 183, + "column": 37 }, "end": { - "line": 181, - "column": 58 + "line": 183, + "column": 47 } }, "object": { - "type": "MemberExpression", - "start": 8735, - "end": 8758, + "type": "Identifier", + "start": 8645, + "end": 8653, "loc": { "start": { - "line": 181, - "column": 33 + "line": 183, + "column": 37 }, "end": { - "line": 181, - "column": 56 - } - }, - "object": { - "type": "Identifier", - "start": 8735, - "end": 8747, - "loc": { - "start": { - "line": 181, - "column": 33 - }, - "end": { - "line": 181, - "column": 45 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 8748, - "end": 8758, - "loc": { - "start": { - "line": 181, - "column": 46 - }, - "end": { - "line": 181, - "column": 56 - }, - "identifierName": "initialPos" + "line": 183, + "column": 45 }, - "name": "initialPos" + "identifierName": "instance" }, - "computed": false + "name": "instance" }, "property": { "type": "Identifier", - "start": 8759, - "end": 8760, + "start": 8654, + "end": 8655, "loc": { "start": { - "line": 181, - "column": 57 + "line": 183, + "column": 46 }, "end": { - "line": 181, - "column": 58 + "line": 183, + "column": 47 }, "identifierName": "x" }, @@ -22678,44 +23111,44 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 8763, - "end": 8782, + "start": 8658, + "end": 8677, "loc": { "start": { - "line": 181, - "column": 61 + "line": 183, + "column": 50 }, "end": { - "line": 181, - "column": 80 + "line": 183, + "column": 69 } }, "object": { "type": "MemberExpression", - "start": 8763, - "end": 8776, + "start": 8658, + "end": 8671, "loc": { "start": { - "line": 181, - "column": 61 + "line": 183, + "column": 50 }, "end": { - "line": 181, - "column": 74 + "line": 183, + "column": 63 } }, "object": { "type": "Identifier", - "start": 8763, - "end": 8771, + "start": 8658, + "end": 8666, "loc": { "start": { - "line": 181, - "column": 61 + "line": 183, + "column": 50 }, "end": { - "line": 181, - "column": 69 + "line": 183, + "column": 58 }, "identifierName": "instance" }, @@ -22723,16 +23156,16 @@ }, "property": { "type": "Identifier", - "start": 8772, - "end": 8776, + "start": 8667, + "end": 8671, "loc": { "start": { - "line": 181, - "column": 70 + "line": 183, + "column": 59 }, "end": { - "line": 181, - "column": 74 + "line": 183, + "column": 63 }, "identifierName": "icon" }, @@ -22742,16 +23175,16 @@ }, "property": { "type": "Identifier", - "start": 8777, - "end": 8782, + "start": 8672, + "end": 8677, "loc": { "start": { - "line": 181, - "column": 75 + "line": 183, + "column": 64 }, "end": { - "line": 181, - "column": 80 + "line": 183, + "column": 69 }, "identifierName": "width" }, @@ -22768,15 +23201,15 @@ { "type": "CommentLine", "value": " The start pos + total width", - "start": 8670, - "end": 8700, + "start": 8576, + "end": 8606, "loc": { "start": { - "line": 180, + "line": 182, "column": 20 }, "end": { - "line": 180, + "line": 182, "column": 50 } } @@ -22786,15 +23219,15 @@ { "type": "CommentLine", "value": " The start pos - total width / 2", - "start": 8805, - "end": 8839, + "start": 8700, + "end": 8734, "loc": { "start": { - "line": 182, + "line": 184, "column": 20 }, "end": { - "line": 182, + "line": 184, "column": 54 } } @@ -22803,141 +23236,108 @@ }, { "type": "VariableDeclaration", - "start": 8861, - "end": 8934, + "start": 8756, + "end": 8809, "loc": { "start": { - "line": 183, + "line": 185, "column": 20 }, "end": { - "line": 183, - "column": 93 + "line": 185, + "column": 73 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 8867, - "end": 8933, + "start": 8762, + "end": 8808, "loc": { "start": { - "line": 183, + "line": 185, "column": 26 }, "end": { - "line": 183, - "column": 92 + "line": 185, + "column": 72 } }, "id": { "type": "Identifier", - "start": 8867, - "end": 8879, + "start": 8762, + "end": 8769, "loc": { "start": { - "line": 183, + "line": 185, "column": 26 }, "end": { - "line": 183, - "column": 38 + "line": 185, + "column": 33 }, - "identifierName": "negativeEndX" + "identifierName": "leftEnd" }, - "name": "negativeEndX", + "name": "leftEnd", "leadingComments": null }, "init": { "type": "BinaryExpression", - "start": 8882, - "end": 8933, + "start": 8772, + "end": 8808, "loc": { "start": { - "line": 183, - "column": 41 + "line": 185, + "column": 36 }, "end": { - "line": 183, - "column": 92 + "line": 185, + "column": 72 } }, "left": { "type": "MemberExpression", - "start": 8882, - "end": 8907, + "start": 8772, + "end": 8782, "loc": { "start": { - "line": 183, - "column": 41 + "line": 185, + "column": 36 }, "end": { - "line": 183, - "column": 66 + "line": 185, + "column": 46 } }, "object": { - "type": "MemberExpression", - "start": 8882, - "end": 8905, + "type": "Identifier", + "start": 8772, + "end": 8780, "loc": { "start": { - "line": 183, - "column": 41 + "line": 185, + "column": 36 }, "end": { - "line": 183, - "column": 64 - } - }, - "object": { - "type": "Identifier", - "start": 8882, - "end": 8894, - "loc": { - "start": { - "line": 183, - "column": 41 - }, - "end": { - "line": 183, - "column": 53 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 8895, - "end": 8905, - "loc": { - "start": { - "line": 183, - "column": 54 - }, - "end": { - "line": 183, - "column": 64 - }, - "identifierName": "initialPos" + "line": 185, + "column": 44 }, - "name": "initialPos" + "identifierName": "instance" }, - "computed": false + "name": "instance" }, "property": { "type": "Identifier", - "start": 8906, - "end": 8907, + "start": 8781, + "end": 8782, "loc": { "start": { - "line": 183, - "column": 65 + "line": 185, + "column": 45 }, "end": { - "line": 183, - "column": 66 + "line": 185, + "column": 46 }, "identifierName": "x" }, @@ -22948,58 +23348,58 @@ "operator": "-", "right": { "type": "BinaryExpression", - "start": 8910, - "end": 8933, + "start": 8785, + "end": 8808, "loc": { "start": { - "line": 183, - "column": 69 + "line": 185, + "column": 49 }, "end": { - "line": 183, - "column": 92 + "line": 185, + "column": 72 } }, "left": { "type": "MemberExpression", - "start": 8910, - "end": 8929, + "start": 8785, + "end": 8804, "loc": { "start": { - "line": 183, - "column": 69 + "line": 185, + "column": 49 }, "end": { - "line": 183, - "column": 88 + "line": 185, + "column": 68 } }, "object": { "type": "MemberExpression", - "start": 8910, - "end": 8923, + "start": 8785, + "end": 8798, "loc": { "start": { - "line": 183, - "column": 69 + "line": 185, + "column": 49 }, "end": { - "line": 183, - "column": 82 + "line": 185, + "column": 62 } }, "object": { "type": "Identifier", - "start": 8910, - "end": 8918, + "start": 8785, + "end": 8793, "loc": { "start": { - "line": 183, - "column": 69 + "line": 185, + "column": 49 }, "end": { - "line": 183, - "column": 77 + "line": 185, + "column": 57 }, "identifierName": "instance" }, @@ -23007,16 +23407,16 @@ }, "property": { "type": "Identifier", - "start": 8919, - "end": 8923, + "start": 8794, + "end": 8798, "loc": { "start": { - "line": 183, - "column": 78 + "line": 185, + "column": 58 }, "end": { - "line": 183, - "column": 82 + "line": 185, + "column": 62 }, "identifierName": "icon" }, @@ -23026,16 +23426,16 @@ }, "property": { "type": "Identifier", - "start": 8924, - "end": 8929, + "start": 8799, + "end": 8804, "loc": { "start": { - "line": 183, - "column": 83 + "line": 185, + "column": 63 }, "end": { - "line": 183, - "column": 88 + "line": 185, + "column": 68 }, "identifierName": "width" }, @@ -23046,23 +23446,23 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 8932, - "end": 8933, + "start": 8807, + "end": 8808, "loc": { "start": { - "line": 183, - "column": 91 + "line": 185, + "column": 71 }, "end": { - "line": 183, - "column": 92 + "line": 185, + "column": 72 } }, "extra": { - "rawValue": 2, - "raw": "2" + "rawValue": 6, + "raw": "6" }, - "value": 2 + "value": 6 } } }, @@ -23074,15 +23474,15 @@ { "type": "CommentLine", "value": " The start pos - total width / 2", - "start": 8805, - "end": 8839, + "start": 8700, + "end": 8734, "loc": { "start": { - "line": 182, + "line": 184, "column": 20 }, "end": { - "line": 182, + "line": 184, "column": 54 } } @@ -23091,188 +23491,155 @@ }, { "type": "IfStatement", - "start": 8956, - "end": 9212, + "start": 8831, + "end": 9052, "loc": { "start": { - "line": 184, + "line": 186, "column": 20 }, "end": { - "line": 188, + "line": 190, "column": 21 } }, "test": { "type": "BinaryExpression", - "start": 8960, - "end": 8976, + "start": 8835, + "end": 8853, "loc": { "start": { - "line": 184, + "line": 186, "column": 24 }, "end": { - "line": 184, - "column": 40 + "line": 186, + "column": 42 } }, "left": { "type": "Identifier", - "start": 8960, - "end": 8969, + "start": 8835, + "end": 8842, "loc": { "start": { - "line": 184, + "line": 186, "column": 24 }, "end": { - "line": 184, - "column": 33 + "line": 186, + "column": 31 }, - "identifierName": "relativeX" + "identifierName": "cameraX" }, - "name": "relativeX" + "name": "cameraX" }, "operator": ">", "right": { "type": "Identifier", - "start": 8972, - "end": 8976, + "start": 8845, + "end": 8853, "loc": { "start": { - "line": 184, - "column": 36 + "line": 186, + "column": 34 }, "end": { - "line": 184, - "column": 40 + "line": 186, + "column": 42 }, - "identifierName": "endX" + "identifierName": "rightEnd" }, - "name": "endX" + "name": "rightEnd" } }, "consequent": { "type": "BlockStatement", - "start": 8978, - "end": 9077, + "start": 8855, + "end": 8939, "loc": { "start": { - "line": 184, - "column": 42 + "line": 186, + "column": 44 }, "end": { - "line": 186, + "line": 188, "column": 21 } }, "body": [ { "type": "ExpressionStatement", - "start": 9005, - "end": 9054, + "start": 8882, + "end": 8916, "loc": { "start": { - "line": 185, + "line": 187, "column": 24 }, "end": { - "line": 185, - "column": 73 + "line": 187, + "column": 58 } }, "expression": { "type": "AssignmentExpression", - "start": 9005, - "end": 9053, + "start": 8882, + "end": 8915, "loc": { "start": { - "line": 185, + "line": 187, "column": 24 }, "end": { - "line": 185, - "column": 72 + "line": 187, + "column": 57 } }, "operator": "+=", "left": { "type": "MemberExpression", - "start": 9005, - "end": 9030, + "start": 8882, + "end": 8892, "loc": { "start": { - "line": 185, + "line": 187, "column": 24 }, "end": { - "line": 185, - "column": 49 + "line": 187, + "column": 34 } }, "object": { - "type": "MemberExpression", - "start": 9005, - "end": 9028, + "type": "Identifier", + "start": 8882, + "end": 8890, "loc": { "start": { - "line": 185, + "line": 187, "column": 24 }, "end": { - "line": 185, - "column": 47 - } - }, - "object": { - "type": "Identifier", - "start": 9005, - "end": 9017, - "loc": { - "start": { - "line": 185, - "column": 24 - }, - "end": { - "line": 185, - "column": 36 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 9018, - "end": 9028, - "loc": { - "start": { - "line": 185, - "column": 37 - }, - "end": { - "line": 185, - "column": 47 - }, - "identifierName": "initialPos" + "line": 187, + "column": 32 }, - "name": "initialPos" + "identifierName": "instance" }, - "computed": false + "name": "instance" }, "property": { "type": "Identifier", - "start": 9029, - "end": 9030, + "start": 8891, + "end": 8892, "loc": { "start": { - "line": 185, - "column": 48 + "line": 187, + "column": 33 }, "end": { - "line": 185, - "column": 49 + "line": 187, + "column": 34 }, "identifierName": "x" }, @@ -23282,44 +23649,44 @@ }, "right": { "type": "MemberExpression", - "start": 9034, - "end": 9053, + "start": 8896, + "end": 8915, "loc": { "start": { - "line": 185, - "column": 53 + "line": 187, + "column": 38 }, "end": { - "line": 185, - "column": 72 + "line": 187, + "column": 57 } }, "object": { "type": "MemberExpression", - "start": 9034, - "end": 9047, + "start": 8896, + "end": 8909, "loc": { "start": { - "line": 185, - "column": 53 + "line": 187, + "column": 38 }, "end": { - "line": 185, - "column": 66 + "line": 187, + "column": 51 } }, "object": { "type": "Identifier", - "start": 9034, - "end": 9042, + "start": 8896, + "end": 8904, "loc": { "start": { - "line": 185, - "column": 53 + "line": 187, + "column": 38 }, "end": { - "line": 185, - "column": 61 + "line": 187, + "column": 46 }, "identifierName": "instance" }, @@ -23327,16 +23694,16 @@ }, "property": { "type": "Identifier", - "start": 9043, - "end": 9047, + "start": 8905, + "end": 8909, "loc": { "start": { - "line": 185, - "column": 62 + "line": 187, + "column": 47 }, "end": { - "line": 185, - "column": 66 + "line": 187, + "column": 51 }, "identifierName": "icon" }, @@ -23346,16 +23713,16 @@ }, "property": { "type": "Identifier", - "start": 9048, - "end": 9053, + "start": 8910, + "end": 8915, "loc": { "start": { - "line": 185, - "column": 67 + "line": 187, + "column": 52 }, "end": { - "line": 185, - "column": 72 + "line": 187, + "column": 57 }, "identifierName": "width" }, @@ -23370,188 +23737,155 @@ }, "alternate": { "type": "IfStatement", - "start": 9083, - "end": 9212, + "start": 8945, + "end": 9052, "loc": { "start": { - "line": 186, + "line": 188, "column": 27 }, "end": { - "line": 188, + "line": 190, "column": 21 } }, "test": { "type": "BinaryExpression", - "start": 9087, - "end": 9111, + "start": 8949, + "end": 8966, "loc": { "start": { - "line": 186, + "line": 188, "column": 31 }, "end": { - "line": 186, - "column": 55 + "line": 188, + "column": 48 } }, "left": { "type": "Identifier", - "start": 9087, - "end": 9096, + "start": 8949, + "end": 8956, "loc": { "start": { - "line": 186, + "line": 188, "column": 31 }, "end": { - "line": 186, - "column": 40 + "line": 188, + "column": 38 }, - "identifierName": "relativeX" + "identifierName": "cameraX" }, - "name": "relativeX" + "name": "cameraX" }, "operator": "<", "right": { "type": "Identifier", - "start": 9099, - "end": 9111, + "start": 8959, + "end": 8966, "loc": { "start": { - "line": 186, - "column": 43 + "line": 188, + "column": 41 }, "end": { - "line": 186, - "column": 55 + "line": 188, + "column": 48 }, - "identifierName": "negativeEndX" + "identifierName": "leftEnd" }, - "name": "negativeEndX" + "name": "leftEnd" } }, "consequent": { "type": "BlockStatement", - "start": 9113, - "end": 9212, + "start": 8968, + "end": 9052, "loc": { "start": { - "line": 186, - "column": 57 + "line": 188, + "column": 50 }, "end": { - "line": 188, + "line": 190, "column": 21 } }, "body": [ { "type": "ExpressionStatement", - "start": 9140, - "end": 9189, + "start": 8995, + "end": 9029, "loc": { "start": { - "line": 187, + "line": 189, "column": 24 }, "end": { - "line": 187, - "column": 73 + "line": 189, + "column": 58 } }, "expression": { "type": "AssignmentExpression", - "start": 9140, - "end": 9188, + "start": 8995, + "end": 9028, "loc": { "start": { - "line": 187, + "line": 189, "column": 24 }, "end": { - "line": 187, - "column": 72 + "line": 189, + "column": 57 } }, "operator": "-=", "left": { "type": "MemberExpression", - "start": 9140, - "end": 9165, + "start": 8995, + "end": 9005, "loc": { "start": { - "line": 187, + "line": 189, "column": 24 }, "end": { - "line": 187, - "column": 49 + "line": 189, + "column": 34 } }, "object": { - "type": "MemberExpression", - "start": 9140, - "end": 9163, + "type": "Identifier", + "start": 8995, + "end": 9003, "loc": { "start": { - "line": 187, + "line": 189, "column": 24 }, "end": { - "line": 187, - "column": 47 - } - }, - "object": { - "type": "Identifier", - "start": 9140, - "end": 9152, - "loc": { - "start": { - "line": 187, - "column": 24 - }, - "end": { - "line": 187, - "column": 36 - }, - "identifierName": "parallaxInfo" - }, - "name": "parallaxInfo" - }, - "property": { - "type": "Identifier", - "start": 9153, - "end": 9163, - "loc": { - "start": { - "line": 187, - "column": 37 - }, - "end": { - "line": 187, - "column": 47 - }, - "identifierName": "initialPos" + "line": 189, + "column": 32 }, - "name": "initialPos" + "identifierName": "instance" }, - "computed": false + "name": "instance" }, "property": { "type": "Identifier", - "start": 9164, - "end": 9165, + "start": 9004, + "end": 9005, "loc": { "start": { - "line": 187, - "column": 48 + "line": 189, + "column": 33 }, "end": { - "line": 187, - "column": 49 + "line": 189, + "column": 34 }, "identifierName": "x" }, @@ -23561,44 +23895,44 @@ }, "right": { "type": "MemberExpression", - "start": 9169, - "end": 9188, + "start": 9009, + "end": 9028, "loc": { "start": { - "line": 187, - "column": 53 + "line": 189, + "column": 38 }, "end": { - "line": 187, - "column": 72 + "line": 189, + "column": 57 } }, "object": { "type": "MemberExpression", - "start": 9169, - "end": 9182, + "start": 9009, + "end": 9022, "loc": { "start": { - "line": 187, - "column": 53 + "line": 189, + "column": 38 }, "end": { - "line": 187, - "column": 66 + "line": 189, + "column": 51 } }, "object": { "type": "Identifier", - "start": 9169, - "end": 9177, + "start": 9009, + "end": 9017, "loc": { "start": { - "line": 187, - "column": 53 + "line": 189, + "column": 38 }, "end": { - "line": 187, - "column": 61 + "line": 189, + "column": 46 }, "identifierName": "instance" }, @@ -23606,16 +23940,16 @@ }, "property": { "type": "Identifier", - "start": 9178, - "end": 9182, + "start": 9018, + "end": 9022, "loc": { "start": { - "line": 187, - "column": 62 + "line": 189, + "column": 47 }, "end": { - "line": 187, - "column": 66 + "line": 189, + "column": 51 }, "identifierName": "icon" }, @@ -23625,16 +23959,16 @@ }, "property": { "type": "Identifier", - "start": 9183, - "end": 9188, + "start": 9023, + "end": 9028, "loc": { "start": { - "line": 187, - "column": 67 + "line": 189, + "column": 52 }, "end": { - "line": 187, - "column": 72 + "line": 189, + "column": 57 }, "identifierName": "width" }, @@ -23653,7 +23987,25 @@ ], "directives": [] }, - "alternate": null + "alternate": null, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Logic cannot be ran on background instances as they should not loop", + "start": 8427, + "end": 8497, + "loc": { + "start": { + "line": 180, + "column": 16 + }, + "end": { + "line": 180, + "column": 86 + } + } + } + ] } ], "directives": [] @@ -23671,15 +24023,15 @@ { "type": "CommentBlock", "value": "*\r\n * Updates the parallax system\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n * @param {number} pSimulatedPosition - The simulated position. This is used to simulate a position larger than possible, but internally it treats it as its downscaled position.\r\n * One such reason for using this paramater would be to simulate a map larger than you actually have, to convince the parallax that it is infinite.\r\n ", - "start": 6263, - "end": 6777, + "start": 6346, + "end": 6860, "loc": { "start": { - "line": 131, + "line": 133, "column": 4 }, "end": { - "line": 137, + "line": 139, "column": 7 } } @@ -23815,15 +24167,15 @@ { "type": "CommentLine", "value": " Set the parallax info to the instance", - "start": 2330, - "end": 2370, + "start": 2513, + "end": 2553, "loc": { "start": { - "line": 53, + "line": 57, "column": 20 }, "end": { - "line": 53, + "line": 57, "column": 60 } } @@ -23831,47 +24183,31 @@ { "type": "CommentBlock", "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", - "start": 2787, - "end": 3680, + "start": 2970, + "end": 3863, "loc": { "start": { - "line": 64, + "line": 68, "column": 4 }, "end": { - "line": 75, + "line": 79, "column": 7 } } }, - { - "type": "CommentLine", - "value": " Set the initial position.", - "start": 3767, - "end": 3795, - "loc": { - "start": { - "line": 78, - "column": 12 - }, - "end": { - "line": 78, - "column": 40 - } - } - }, { "type": "CommentLine", "value": " If this instance is set to loop, then it needs a left and right clone", - "start": 3867, - "end": 3939, + "start": 3950, + "end": 4022, "loc": { "start": { - "line": 80, + "line": 82, "column": 12 }, "end": { - "line": 80, + "line": 82, "column": 84 } } @@ -23879,15 +24215,15 @@ { "type": "CommentLine", "value": " Create a left and right clone", - "start": 3996, - "end": 4028, + "start": 4079, + "end": 4111, "loc": { "start": { - "line": 82, + "line": 84, "column": 16 }, "end": { - "line": 82, + "line": 84, "column": 48 } } @@ -23895,15 +24231,15 @@ { "type": "CommentLine", "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4159, - "end": 4238, + "start": 4242, + "end": 4321, "loc": { "start": { - "line": 85, + "line": 87, "column": 16 }, "end": { - "line": 85, + "line": 87, "column": 95 } } @@ -23911,15 +24247,15 @@ { "type": "CommentLine", "value": " Position the left clone", - "start": 4353, - "end": 4379, + "start": 4436, + "end": 4462, "loc": { "start": { - "line": 88, + "line": 90, "column": 16 }, "end": { - "line": 88, + "line": 90, "column": 42 } } @@ -23927,15 +24263,15 @@ { "type": "CommentLine", "value": " Position the right clone", - "start": 4480, - "end": 4507, + "start": 4563, + "end": 4590, "loc": { "start": { - "line": 91, + "line": 93, "column": 16 }, "end": { - "line": 91, + "line": 93, "column": 43 } } @@ -23943,15 +24279,15 @@ { "type": "CommentLine", "value": " Store the clones in a temporary array", - "start": 4610, - "end": 4650, + "start": 4693, + "end": 4733, "loc": { "start": { - "line": 94, + "line": 96, "column": 16 }, "end": { - "line": 94, + "line": 96, "column": 56 } } @@ -23959,15 +24295,15 @@ { "type": "CommentLine", "value": " Loop the clones and store their relative positions to the main instance", - "start": 4717, - "end": 4791, + "start": 4800, + "end": 4874, "loc": { "start": { - "line": 96, + "line": 98, "column": 16 }, "end": { - "line": 96, + "line": 98, "column": 90 } } @@ -23975,15 +24311,15 @@ { "type": "CommentLine", "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 4988, - "end": 5072, + "start": 5071, + "end": 5155, "loc": { "start": { - "line": 101, + "line": 103, "column": 16 }, "end": { - "line": 101, + "line": 103, "column": 100 } } @@ -23991,15 +24327,15 @@ { "type": "CommentLine", "value": " Update the children's position when the parent moves", - "start": 5154, - "end": 5209, + "start": 5237, + "end": 5292, "loc": { "start": { - "line": 103, + "line": 105, "column": 20 }, "end": { - "line": 103, + "line": 105, "column": 75 } } @@ -24007,15 +24343,15 @@ { "type": "CommentBlock", "value": "*\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n ", - "start": 5793, - "end": 5940, + "start": 5876, + "end": 6023, "loc": { "start": { - "line": 118, + "line": 120, "column": 4 }, "end": { - "line": 121, + "line": 123, "column": 7 } } @@ -24023,72 +24359,72 @@ { "type": "CommentBlock", "value": "*\r\n * Updates the parallax system\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n * @param {number} pSimulatedPosition - The simulated position. This is used to simulate a position larger than possible, but internally it treats it as its downscaled position.\r\n * One such reason for using this paramater would be to simulate a map larger than you actually have, to convince the parallax that it is infinite.\r\n ", - "start": 6263, - "end": 6777, + "start": 6346, + "end": 6860, "loc": { "start": { - "line": 131, + "line": 133, "column": 4 }, "end": { - "line": 137, + "line": 139, "column": 7 } } }, { - "type": "CommentBlock", - "value": "*\r\n * The camera's x position. May be adjusted if pSimulatedPosition is used.\r\n * @type {number}\r\n ", - "start": 6903, - "end": 7042, + "type": "CommentLine", + "value": " The camera's x position. May be adjusted if pSimulatedPosition is used.", + "start": 6986, + "end": 7060, "loc": { "start": { - "line": 140, + "line": 142, "column": 12 }, "end": { - "line": 143, - "column": 15 + "line": 142, + "column": 86 } } }, { - "type": "CommentBlock", - "value": "*\r\n * The camera's x position. May be adjusted if pSimulatedPosition is used.\r\n * @type {number}\r\n ", - "start": 7093, - "end": 7232, + "type": "CommentLine", + "value": " The camera's x position. May be adjusted if pSimulatedPosition is used.", + "start": 7111, + "end": 7185, "loc": { "start": { - "line": 145, + "line": 144, "column": 12 }, "end": { - "line": 148, - "column": 15 + "line": 144, + "column": 86 } } }, { "type": "CommentLine", - "value": " How far we moved from the start point", - "start": 7355, - "end": 7395, + "value": " Move the instance with the camera if the parallax is set to 0", + "start": 7310, + "end": 7374, "loc": { "start": { - "line": 152, + "line": 149, "column": 12 }, "end": { - "line": 152, - "column": 52 + "line": 149, + "column": 76 } } }, { "type": "CommentLine", - "value": " Position to set the instance to. We take into account the simulated posiiton if it is passed.", - "start": 7517, - "end": 7613, + "value": " How far we moved from the start point", + "start": 7636, + "end": 7676, "loc": { "start": { "line": 156, @@ -24096,15 +24432,15 @@ }, "end": { "line": 156, - "column": 108 + "column": 52 } } }, { "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 7826, - "end": 7890, + "value": " Position to set the instance to.", + "start": 7796, + "end": 7831, "loc": { "start": { "line": 160, @@ -24112,31 +24448,31 @@ }, "end": { "line": 160, - "column": 76 + "column": 47 } } }, { "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 8158, - "end": 8222, + "value": " Hard code in static backgrounds", + "start": 7929, + "end": 7963, "loc": { "start": { - "line": 167, + "line": 164, "column": 12 }, "end": { - "line": 167, - "column": 76 + "line": 164, + "column": 46 } } }, { "type": "CommentLine", "value": " Set the position", - "start": 8351, - "end": 8370, + "start": 8190, + "end": 8209, "loc": { "start": { "line": 172, @@ -24150,32 +24486,32 @@ }, { "type": "CommentLine", - "value": " How far we moved relative to the camera", - "start": 8535, - "end": 8577, + "value": " Logic cannot be ran on background instances as they should not loop", + "start": 8427, + "end": 8497, "loc": { "start": { - "line": 178, - "column": 20 + "line": 180, + "column": 16 }, "end": { - "line": 178, - "column": 62 + "line": 180, + "column": 86 } } }, { "type": "CommentLine", "value": " The start pos + total width", - "start": 8670, - "end": 8700, + "start": 8576, + "end": 8606, "loc": { "start": { - "line": 180, + "line": 182, "column": 20 }, "end": { - "line": 180, + "line": 182, "column": 50 } } @@ -24183,15 +24519,15 @@ { "type": "CommentLine", "value": " The start pos - total width / 2", - "start": 8805, - "end": 8839, + "start": 8700, + "end": 8734, "loc": { "start": { - "line": 182, + "line": 184, "column": 20 }, "end": { - "line": 182, + "line": 184, "column": 54 } } @@ -27999,7 +28335,240 @@ "type": { "label": "}", "beforeExpr": false, - "startsExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2238, + "end": 2239, + "loc": { + "start": { + "line": 51, + "column": 60 + }, + "end": { + "line": 51, + "column": 61 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2239, + "end": 2240, + "loc": { + "start": { + "line": 51, + "column": 61 + }, + "end": { + "line": 51, + "column": 62 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parallaxInfo", + "start": 2262, + "end": 2274, + "loc": { + "start": { + "line": 52, + "column": 20 + }, + "end": { + "line": 52, + "column": 32 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2274, + "end": 2275, + "loc": { + "start": { + "line": 52, + "column": 32 + }, + "end": { + "line": 52, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "lastCamPos", + "start": 2275, + "end": 2285, + "loc": { + "start": { + "line": 52, + "column": 33 + }, + "end": { + "line": 52, + "column": 43 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2286, + "end": 2287, + "loc": { + "start": { + "line": 52, + "column": 44 + }, + "end": { + "line": 52, + "column": 45 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2288, + "end": 2289, + "loc": { + "start": { + "line": 52, + "column": 46 + }, + "end": { + "line": 52, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "x", + "start": 2315, + "end": 2316, + "loc": { + "start": { + "line": 53, + "column": 24 + }, + "end": { + "line": 53, + "column": 25 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2316, + "end": 2317, + "loc": { + "start": { + "line": 53, + "column": 25 + }, + "end": { + "line": 53, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -28007,23 +28576,24 @@ "postfix": false, "binop": null }, - "start": 2238, - "end": 2239, + "value": "VYLO", + "start": 2318, + "end": 2322, "loc": { "start": { - "line": 51, - "column": 60 + "line": 53, + "column": 27 }, "end": { - "line": 51, - "column": 61 + "line": 53, + "column": 31 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -28033,23 +28603,22 @@ "binop": null, "updateContext": null }, - "start": 2239, - "end": 2240, + "start": 2322, + "end": 2323, "loc": { "start": { - "line": 51, - "column": 61 + "line": 53, + "column": 31 }, "end": { - "line": 51, - "column": 62 + "line": 53, + "column": 32 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -28057,20 +28626,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 2262, - "end": 2266, + "value": "Client", + "start": 2323, + "end": 2329, "loc": { "start": { - "line": 52, - "column": 20 + "line": 53, + "column": 32 }, "end": { - "line": 52, - "column": 24 + "line": 53, + "column": 38 } } }, @@ -28087,16 +28655,16 @@ "binop": null, "updateContext": null }, - "start": 2266, - "end": 2267, + "start": 2329, + "end": 2330, "loc": { "start": { - "line": 52, - "column": 24 + "line": 53, + "column": 38 }, "end": { - "line": 52, - "column": 25 + "line": 53, + "column": 39 } } }, @@ -28112,17 +28680,17 @@ "postfix": false, "binop": null }, - "value": "init", - "start": 2267, - "end": 2271, + "value": "getViewEye", + "start": 2330, + "end": 2340, "loc": { "start": { - "line": 52, - "column": 25 + "line": 53, + "column": 39 }, "end": { - "line": 52, - "column": 29 + "line": 53, + "column": 49 } } }, @@ -28138,24 +28706,24 @@ "postfix": false, "binop": null }, - "start": 2271, - "end": 2272, + "start": 2340, + "end": 2341, "loc": { "start": { - "line": 52, - "column": 29 + "line": 53, + "column": 49 }, "end": { - "line": 52, - "column": 30 + "line": 53, + "column": 50 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -28163,24 +28731,23 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 2272, - "end": 2281, + "start": 2341, + "end": 2342, "loc": { "start": { - "line": 52, - "column": 30 + "line": 53, + "column": 50 }, "end": { - "line": 52, - "column": 39 + "line": 53, + "column": 51 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -28190,16 +28757,16 @@ "binop": null, "updateContext": null }, - "start": 2281, - "end": 2282, + "start": 2342, + "end": 2343, "loc": { "start": { - "line": 52, - "column": 39 + "line": 53, + "column": 51 }, "end": { - "line": 52, - "column": 40 + "line": 53, + "column": 52 } } }, @@ -28215,16 +28782,16 @@ "postfix": false, "binop": null }, - "value": "parallaxInfo", - "start": 2283, - "end": 2295, + "value": "x", + "start": 2343, + "end": 2344, "loc": { "start": { - "line": 52, - "column": 41 + "line": 53, + "column": 52 }, "end": { - "line": 52, + "line": 53, "column": 53 } } @@ -28242,15 +28809,15 @@ "binop": null, "updateContext": null }, - "start": 2295, - "end": 2296, + "start": 2344, + "end": 2345, "loc": { "start": { - "line": 52, + "line": 53, "column": 53 }, "end": { - "line": 52, + "line": 53, "column": 54 } } @@ -28267,23 +28834,23 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 2297, - "end": 2298, + "value": "y", + "start": 2371, + "end": 2372, "loc": { "start": { - "line": 52, - "column": 55 + "line": 54, + "column": 24 }, "end": { - "line": 52, - "column": 56 + "line": 54, + "column": 25 } } }, { "type": { - "label": ",", + "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -28294,16 +28861,16 @@ "binop": null, "updateContext": null }, - "start": 2298, - "end": 2299, + "start": 2372, + "end": 2373, "loc": { "start": { - "line": 52, - "column": 56 + "line": 54, + "column": 25 }, "end": { - "line": 52, - "column": 57 + "line": 54, + "column": 26 } } }, @@ -28319,24 +28886,24 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 2300, - "end": 2301, + "value": "VYLO", + "start": 2374, + "end": 2378, "loc": { "start": { - "line": 52, - "column": 58 + "line": 54, + "column": 27 }, "end": { - "line": 52, - "column": 59 + "line": 54, + "column": 31 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -28346,16 +28913,16 @@ "binop": null, "updateContext": null }, - "start": 2301, - "end": 2302, + "start": 2378, + "end": 2379, "loc": { "start": { - "line": 52, - "column": 59 + "line": 54, + "column": 31 }, "end": { - "line": 52, - "column": 60 + "line": 54, + "column": 32 } } }, @@ -28371,23 +28938,23 @@ "postfix": false, "binop": null }, - "value": "map", - "start": 2303, - "end": 2306, + "value": "Client", + "start": 2379, + "end": 2385, "loc": { "start": { - "line": 52, - "column": 61 + "line": 54, + "column": 32 }, "end": { - "line": 52, - "column": 64 + "line": 54, + "column": 38 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -28395,88 +28962,95 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2306, - "end": 2307, + "start": 2385, + "end": 2386, "loc": { "start": { - "line": 52, - "column": 64 + "line": 54, + "column": 38 }, "end": { - "line": 52, - "column": 65 + "line": 54, + "column": 39 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2307, - "end": 2308, + "value": "getViewEye", + "start": 2386, + "end": 2396, "loc": { "start": { - "line": 52, - "column": 65 + "line": 54, + "column": 39 }, "end": { - "line": 52, - "column": 66 + "line": 54, + "column": 49 } } }, { - "type": "CommentLine", - "value": " Set the parallax info to the instance", - "start": 2330, - "end": 2370, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2396, + "end": 2397, "loc": { "start": { - "line": 53, - "column": 20 + "line": 54, + "column": 49 }, "end": { - "line": 53, - "column": 60 + "line": 54, + "column": 50 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 2392, - "end": 2396, + "start": 2397, + "end": 2398, "loc": { "start": { "line": 54, - "column": 20 + "column": 50 }, "end": { "line": 54, - "column": 24 + "column": 51 } } }, @@ -28493,16 +29067,16 @@ "binop": null, "updateContext": null }, - "start": 2396, - "end": 2397, + "start": 2398, + "end": 2399, "loc": { "start": { "line": 54, - "column": 24 + "column": 51 }, "end": { "line": 54, - "column": 25 + "column": 52 } } }, @@ -28518,23 +29092,23 @@ "postfix": false, "binop": null }, - "value": "instanceWeakMap", - "start": 2397, - "end": 2412, + "value": "y", + "start": 2399, + "end": 2400, "loc": { "start": { "line": 54, - "column": 25 + "column": 52 }, "end": { "line": 54, - "column": 40 + "column": 53 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -28542,25 +29116,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2412, - "end": 2413, + "start": 2422, + "end": 2423, "loc": { "start": { - "line": 54, - "column": 40 + "line": 55, + "column": 20 }, "end": { - "line": 54, - "column": 41 + "line": 55, + "column": 21 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -28568,44 +29142,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "set", - "start": 2413, - "end": 2416, + "value": "this", + "start": 2445, + "end": 2449, "loc": { "start": { - "line": 54, - "column": 41 + "line": 56, + "column": 20 }, "end": { - "line": 54, - "column": 44 + "line": 56, + "column": 24 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2416, - "end": 2417, + "start": 2449, + "end": 2450, "loc": { "start": { - "line": 54, - "column": 44 + "line": 56, + "column": 24 }, "end": { - "line": 54, - "column": 45 + "line": 56, + "column": 25 } } }, @@ -28621,43 +29197,42 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 2417, - "end": 2426, + "value": "init", + "start": 2450, + "end": 2454, "loc": { "start": { - "line": 54, - "column": 45 + "line": 56, + "column": 25 }, "end": { - "line": 54, - "column": 54 + "line": 56, + "column": 29 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2426, - "end": 2427, + "start": 2454, + "end": 2455, "loc": { "start": { - "line": 54, - "column": 54 + "line": 56, + "column": 29 }, "end": { - "line": 54, - "column": 55 + "line": 56, + "column": 30 } } }, @@ -28673,48 +29248,75 @@ "postfix": false, "binop": null }, - "value": "parallaxInfo", - "start": 2428, - "end": 2440, + "value": "pInstance", + "start": 2455, + "end": 2464, "loc": { "start": { - "line": 54, - "column": 56 + "line": 56, + "column": 30 }, "end": { - "line": 54, - "column": 68 + "line": 56, + "column": 39 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2464, + "end": 2465, + "loc": { + "start": { + "line": 56, + "column": 39 + }, + "end": { + "line": 56, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null }, - "start": 2440, - "end": 2441, + "value": "parallaxInfo", + "start": 2466, + "end": 2478, "loc": { "start": { - "line": 54, - "column": 68 + "line": 56, + "column": 41 }, "end": { - "line": 54, - "column": 69 + "line": 56, + "column": 53 } } }, { "type": { - "label": ";", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -28725,23 +29327,22 @@ "binop": null, "updateContext": null }, - "start": 2441, - "end": 2442, + "start": 2478, + "end": 2479, "loc": { "start": { - "line": 54, - "column": 69 + "line": 56, + "column": 53 }, "end": { - "line": 54, - "column": 70 + "line": 56, + "column": 54 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -28749,27 +29350,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 2464, - "end": 2468, + "value": "x", + "start": 2480, + "end": 2481, "loc": { "start": { - "line": 55, - "column": 20 + "line": 56, + "column": 55 }, "end": { - "line": 55, - "column": 24 + "line": 56, + "column": 56 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -28779,16 +29379,16 @@ "binop": null, "updateContext": null }, - "start": 2468, - "end": 2469, + "start": 2481, + "end": 2482, "loc": { "start": { - "line": 55, - "column": 24 + "line": 56, + "column": 56 }, "end": { - "line": 55, - "column": 25 + "line": 56, + "column": 57 } } }, @@ -28804,24 +29404,24 @@ "postfix": false, "binop": null }, - "value": "instances", - "start": 2469, - "end": 2478, + "value": "y", + "start": 2483, + "end": 2484, "loc": { "start": { - "line": 55, - "column": 25 + "line": 56, + "column": 58 }, "end": { - "line": 55, - "column": 34 + "line": 56, + "column": 59 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -28831,16 +29431,16 @@ "binop": null, "updateContext": null }, - "start": 2478, - "end": 2479, + "start": 2484, + "end": 2485, "loc": { "start": { - "line": 55, - "column": 34 + "line": 56, + "column": 59 }, "end": { - "line": 55, - "column": 35 + "line": 56, + "column": 60 } } }, @@ -28856,25 +29456,25 @@ "postfix": false, "binop": null }, - "value": "push", - "start": 2479, - "end": 2483, + "value": "map", + "start": 2486, + "end": 2489, "loc": { "start": { - "line": 55, - "column": 35 + "line": 56, + "column": 61 }, "end": { - "line": 55, - "column": 39 + "line": 56, + "column": 64 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -28882,74 +29482,93 @@ "postfix": false, "binop": null }, - "start": 2483, - "end": 2484, + "start": 2489, + "end": 2490, "loc": { "start": { - "line": 55, - "column": 39 + "line": 56, + "column": 64 }, "end": { - "line": 55, - "column": 40 + "line": 56, + "column": 65 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pInstance", - "start": 2484, - "end": 2493, + "start": 2490, + "end": 2491, "loc": { "start": { - "line": 55, - "column": 40 + "line": 56, + "column": 65 }, "end": { - "line": 55, - "column": 49 + "line": 56, + "column": 66 + } + } + }, + { + "type": "CommentLine", + "value": " Set the parallax info to the instance", + "start": 2513, + "end": 2553, + "loc": { + "start": { + "line": 57, + "column": 20 + }, + "end": { + "line": 57, + "column": 60 } } }, { "type": { - "label": ")", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2493, - "end": 2494, + "value": "this", + "start": 2575, + "end": 2579, "loc": { "start": { - "line": 55, - "column": 49 + "line": 58, + "column": 20 }, "end": { - "line": 55, - "column": 50 + "line": 58, + "column": 24 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -28959,24 +29578,24 @@ "binop": null, "updateContext": null }, - "start": 2494, - "end": 2495, + "start": 2579, + "end": 2580, "loc": { "start": { - "line": 55, - "column": 50 + "line": 58, + "column": 24 }, "end": { - "line": 55, - "column": 51 + "line": 58, + "column": 25 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -28984,22 +29603,23 @@ "postfix": false, "binop": null }, - "start": 2513, - "end": 2514, + "value": "instanceWeakMap", + "start": 2580, + "end": 2595, "loc": { "start": { - "line": 56, - "column": 16 + "line": 58, + "column": 25 }, "end": { - "line": 56, - "column": 17 + "line": 58, + "column": 40 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -29007,52 +29627,51 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2528, - "end": 2529, + "start": 2595, + "end": 2596, "loc": { "start": { - "line": 57, - "column": 12 + "line": 58, + "column": 40 }, "end": { - "line": 57, - "column": 13 + "line": 58, + "column": 41 } } }, { "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "else", - "start": 2530, - "end": 2534, + "value": "set", + "start": 2596, + "end": 2599, "loc": { "start": { - "line": 57, - "column": 14 + "line": 58, + "column": 41 }, "end": { - "line": 57, - "column": 18 + "line": 58, + "column": 44 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -29062,23 +29681,22 @@ "postfix": false, "binop": null }, - "start": 2535, - "end": 2536, + "start": 2599, + "end": 2600, "loc": { "start": { - "line": 57, - "column": 19 + "line": 58, + "column": 44 }, "end": { - "line": 57, - "column": 20 + "line": 58, + "column": 45 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -29086,27 +29704,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 2554, - "end": 2558, + "value": "pInstance", + "start": 2600, + "end": 2609, "loc": { "start": { "line": 58, - "column": 16 + "column": 45 }, "end": { "line": 58, - "column": 20 + "column": 54 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -29116,16 +29733,16 @@ "binop": null, "updateContext": null }, - "start": 2558, - "end": 2559, + "start": 2609, + "end": 2610, "loc": { "start": { "line": 58, - "column": 20 + "column": 54 }, "end": { "line": 58, - "column": 21 + "column": 55 } } }, @@ -29141,23 +29758,23 @@ "postfix": false, "binop": null }, - "value": "logger", - "start": 2559, - "end": 2565, + "value": "parallaxInfo", + "start": 2611, + "end": 2623, "loc": { "start": { "line": 58, - "column": 21 + "column": 56 }, "end": { "line": 58, - "column": 27 + "column": 68 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -29165,78 +29782,80 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 2565, - "end": 2566, + "start": 2623, + "end": 2624, "loc": { "start": { "line": 58, - "column": 27 + "column": 68 }, "end": { "line": 58, - "column": 28 + "column": 69 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "prefix", - "start": 2566, - "end": 2572, + "start": 2624, + "end": 2625, "loc": { "start": { "line": 58, - "column": 28 + "column": 69 }, "end": { "line": 58, - "column": 34 + "column": 70 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "this", + "keyword": "this", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 2572, - "end": 2573, + "value": "this", + "start": 2647, + "end": 2651, "loc": { "start": { - "line": 58, - "column": 34 + "line": 59, + "column": 20 }, "end": { - "line": 58, - "column": 35 + "line": 59, + "column": 24 } } }, { "type": { - "label": "string", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -29245,25 +29864,24 @@ "binop": null, "updateContext": null }, - "value": "Parallax-Module", - "start": 2573, - "end": 2590, + "start": 2651, + "end": 2652, "loc": { "start": { - "line": 58, - "column": 35 + "line": 59, + "column": 24 }, "end": { - "line": 58, - "column": 52 + "line": 59, + "column": 25 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -29271,16 +29889,17 @@ "postfix": false, "binop": null }, - "start": 2590, - "end": 2591, + "value": "instances", + "start": 2652, + "end": 2661, "loc": { "start": { - "line": 58, - "column": 52 + "line": 59, + "column": 25 }, "end": { - "line": 58, - "column": 53 + "line": 59, + "column": 34 } } }, @@ -29297,16 +29916,16 @@ "binop": null, "updateContext": null }, - "start": 2591, - "end": 2592, + "start": 2661, + "end": 2662, "loc": { "start": { - "line": 58, - "column": 53 + "line": 59, + "column": 34 }, "end": { - "line": 58, - "column": 54 + "line": 59, + "column": 35 } } }, @@ -29322,17 +29941,17 @@ "postfix": false, "binop": null }, - "value": "error", - "start": 2592, - "end": 2597, + "value": "push", + "start": 2662, + "end": 2666, "loc": { "start": { - "line": 58, - "column": 54 + "line": 59, + "column": 35 }, "end": { - "line": 58, - "column": 59 + "line": 59, + "column": 39 } } }, @@ -29348,22 +29967,22 @@ "postfix": false, "binop": null }, - "start": 2597, - "end": 2598, + "start": 2666, + "end": 2667, "loc": { "start": { - "line": 58, - "column": 59 + "line": 59, + "column": 39 }, "end": { - "line": 58, - "column": 60 + "line": 59, + "column": 40 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -29371,20 +29990,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "No pParallaxInfo passed or invalid type found!", - "start": 2598, - "end": 2646, + "value": "pInstance", + "start": 2667, + "end": 2676, "loc": { "start": { - "line": 58, - "column": 60 + "line": 59, + "column": 40 }, "end": { - "line": 58, - "column": 108 + "line": 59, + "column": 49 } } }, @@ -29400,16 +30018,16 @@ "postfix": false, "binop": null }, - "start": 2646, - "end": 2647, + "start": 2676, + "end": 2677, "loc": { "start": { - "line": 58, - "column": 108 + "line": 59, + "column": 49 }, "end": { - "line": 58, - "column": 109 + "line": 59, + "column": 50 } } }, @@ -29426,16 +30044,16 @@ "binop": null, "updateContext": null }, - "start": 2647, - "end": 2648, + "start": 2677, + "end": 2678, "loc": { "start": { - "line": 58, - "column": 109 + "line": 59, + "column": 50 }, "end": { - "line": 58, - "column": 110 + "line": 59, + "column": 51 } } }, @@ -29451,16 +30069,16 @@ "postfix": false, "binop": null }, - "start": 2662, - "end": 2663, + "start": 2696, + "end": 2697, "loc": { "start": { - "line": 59, - "column": 12 + "line": 60, + "column": 16 }, "end": { - "line": 59, - "column": 13 + "line": 60, + "column": 17 } } }, @@ -29476,16 +30094,16 @@ "postfix": false, "binop": null }, - "start": 2673, - "end": 2674, + "start": 2711, + "end": 2712, "loc": { "start": { - "line": 60, - "column": 8 + "line": 61, + "column": 12 }, "end": { - "line": 60, - "column": 9 + "line": 61, + "column": 13 } } }, @@ -29504,16 +30122,16 @@ "updateContext": null }, "value": "else", - "start": 2675, - "end": 2679, + "start": 2713, + "end": 2717, "loc": { "start": { - "line": 60, - "column": 10 + "line": 61, + "column": 14 }, "end": { - "line": 60, - "column": 14 + "line": 61, + "column": 18 } } }, @@ -29529,16 +30147,16 @@ "postfix": false, "binop": null }, - "start": 2680, - "end": 2681, + "start": 2718, + "end": 2719, "loc": { "start": { - "line": 60, - "column": 15 + "line": 61, + "column": 19 }, "end": { - "line": 60, - "column": 16 + "line": 61, + "column": 20 } } }, @@ -29557,16 +30175,16 @@ "updateContext": null }, "value": "this", - "start": 2695, - "end": 2699, + "start": 2737, + "end": 2741, "loc": { "start": { - "line": 61, - "column": 12 + "line": 62, + "column": 16 }, "end": { - "line": 61, - "column": 16 + "line": 62, + "column": 20 } } }, @@ -29583,16 +30201,16 @@ "binop": null, "updateContext": null }, - "start": 2699, - "end": 2700, + "start": 2741, + "end": 2742, "loc": { "start": { - "line": 61, - "column": 16 + "line": 62, + "column": 20 }, "end": { - "line": 61, - "column": 17 + "line": 62, + "column": 21 } } }, @@ -29609,16 +30227,16 @@ "binop": null }, "value": "logger", - "start": 2700, - "end": 2706, + "start": 2742, + "end": 2748, "loc": { "start": { - "line": 61, - "column": 17 + "line": 62, + "column": 21 }, "end": { - "line": 61, - "column": 23 + "line": 62, + "column": 27 } } }, @@ -29635,16 +30253,16 @@ "binop": null, "updateContext": null }, - "start": 2706, - "end": 2707, + "start": 2748, + "end": 2749, "loc": { "start": { - "line": 61, - "column": 23 + "line": 62, + "column": 27 }, "end": { - "line": 61, - "column": 24 + "line": 62, + "column": 28 } } }, @@ -29661,16 +30279,16 @@ "binop": null }, "value": "prefix", - "start": 2707, - "end": 2713, + "start": 2749, + "end": 2755, "loc": { "start": { - "line": 61, - "column": 24 + "line": 62, + "column": 28 }, "end": { - "line": 61, - "column": 30 + "line": 62, + "column": 34 } } }, @@ -29686,16 +30304,16 @@ "postfix": false, "binop": null }, - "start": 2713, - "end": 2714, + "start": 2755, + "end": 2756, "loc": { "start": { - "line": 61, - "column": 30 + "line": 62, + "column": 34 }, "end": { - "line": 61, - "column": 31 + "line": 62, + "column": 35 } } }, @@ -29713,16 +30331,16 @@ "updateContext": null }, "value": "Parallax-Module", - "start": 2714, - "end": 2731, + "start": 2756, + "end": 2773, "loc": { "start": { - "line": 61, - "column": 31 + "line": 62, + "column": 35 }, "end": { - "line": 61, - "column": 48 + "line": 62, + "column": 52 } } }, @@ -29738,16 +30356,16 @@ "postfix": false, "binop": null }, - "start": 2731, - "end": 2732, + "start": 2773, + "end": 2774, "loc": { "start": { - "line": 61, - "column": 48 + "line": 62, + "column": 52 }, "end": { - "line": 61, - "column": 49 + "line": 62, + "column": 53 } } }, @@ -29764,16 +30382,16 @@ "binop": null, "updateContext": null }, - "start": 2732, - "end": 2733, + "start": 2774, + "end": 2775, "loc": { "start": { - "line": 61, - "column": 49 + "line": 62, + "column": 53 }, "end": { - "line": 61, - "column": 50 + "line": 62, + "column": 54 } } }, @@ -29790,16 +30408,16 @@ "binop": null }, "value": "error", - "start": 2733, - "end": 2738, + "start": 2775, + "end": 2780, "loc": { "start": { - "line": 61, - "column": 50 + "line": 62, + "column": 54 }, "end": { - "line": 61, - "column": 55 + "line": 62, + "column": 59 } } }, @@ -29815,16 +30433,16 @@ "postfix": false, "binop": null }, - "start": 2738, - "end": 2739, + "start": 2780, + "end": 2781, "loc": { "start": { - "line": 61, - "column": 55 + "line": 62, + "column": 59 }, "end": { - "line": 61, - "column": 56 + "line": 62, + "column": 60 } } }, @@ -29841,17 +30459,17 @@ "binop": null, "updateContext": null }, - "value": "No pInstance passed!", - "start": 2739, - "end": 2761, + "value": "No pParallaxInfo passed or invalid type found!", + "start": 2781, + "end": 2829, "loc": { "start": { - "line": 61, - "column": 56 + "line": 62, + "column": 60 }, "end": { - "line": 61, - "column": 78 + "line": 62, + "column": 108 } } }, @@ -29867,16 +30485,16 @@ "postfix": false, "binop": null }, - "start": 2761, - "end": 2762, + "start": 2829, + "end": 2830, "loc": { "start": { - "line": 61, - "column": 78 + "line": 62, + "column": 108 }, "end": { - "line": 61, - "column": 79 + "line": 62, + "column": 109 } } }, @@ -29893,16 +30511,16 @@ "binop": null, "updateContext": null }, - "start": 2762, - "end": 2763, + "start": 2830, + "end": 2831, "loc": { "start": { - "line": 61, - "column": 79 + "line": 62, + "column": 109 }, "end": { - "line": 61, - "column": 80 + "line": 62, + "column": 110 } } }, @@ -29918,16 +30536,16 @@ "postfix": false, "binop": null }, - "start": 2773, - "end": 2774, + "start": 2845, + "end": 2846, "loc": { "start": { - "line": 62, - "column": 8 + "line": 63, + "column": 12 }, "end": { - "line": 62, - "column": 9 + "line": 63, + "column": 13 } } }, @@ -29943,39 +30561,51 @@ "postfix": false, "binop": null }, - "start": 2780, - "end": 2781, + "start": 2856, + "end": 2857, "loc": { "start": { - "line": 63, - "column": 4 + "line": 64, + "column": 8 }, "end": { - "line": 63, - "column": 5 + "line": 64, + "column": 9 } } }, { - "type": "CommentBlock", - "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", - "start": 2787, - "end": 3680, + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 2858, + "end": 2862, "loc": { "start": { "line": 64, - "column": 4 + "column": 10 }, "end": { - "line": 75, - "column": 7 + "line": 64, + "column": 14 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -29984,42 +30614,70 @@ "postfix": false, "binop": null }, - "value": "init", - "start": 3686, - "end": 3690, + "start": 2863, + "end": 2864, "loc": { "start": { - "line": 76, - "column": 4 + "line": 64, + "column": 15 }, "end": { - "line": 76, - "column": 8 + "line": 64, + "column": 16 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "this", + "keyword": "this", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3690, - "end": 3691, + "value": "this", + "start": 2878, + "end": 2882, "loc": { "start": { - "line": 76, - "column": 8 + "line": 65, + "column": 12 }, "end": { - "line": 76, - "column": 9 + "line": 65, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2882, + "end": 2883, + "loc": { + "start": { + "line": 65, + "column": 16 + }, + "end": { + "line": 65, + "column": 17 } } }, @@ -30035,24 +30693,24 @@ "postfix": false, "binop": null }, - "value": "pInstance", - "start": 3691, - "end": 3700, + "value": "logger", + "start": 2883, + "end": 2889, "loc": { "start": { - "line": 76, - "column": 9 + "line": 65, + "column": 17 }, "end": { - "line": 76, - "column": 18 + "line": 65, + "column": 23 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -30062,16 +30720,16 @@ "binop": null, "updateContext": null }, - "start": 3700, - "end": 3701, + "start": 2889, + "end": 2890, "loc": { "start": { - "line": 76, - "column": 18 + "line": 65, + "column": 23 }, "end": { - "line": 76, - "column": 19 + "line": 65, + "column": 24 } } }, @@ -30087,25 +30745,50 @@ "postfix": false, "binop": null }, - "value": "pParallaxInfo", - "start": 3702, - "end": 3715, + "value": "prefix", + "start": 2890, + "end": 2896, "loc": { "start": { - "line": 76, - "column": 20 + "line": 65, + "column": 24 }, "end": { - "line": 76, - "column": 33 + "line": 65, + "column": 30 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2896, + "end": 2897, + "loc": { + "start": { + "line": 65, + "column": 30 + }, + "end": { + "line": 65, + "column": 31 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -30114,24 +30797,25 @@ "binop": null, "updateContext": null }, - "start": 3715, - "end": 3716, + "value": "Parallax-Module", + "start": 2897, + "end": 2914, "loc": { "start": { - "line": 76, - "column": 33 + "line": 65, + "column": 31 }, "end": { - "line": 76, - "column": 34 + "line": 65, + "column": 48 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -30139,24 +30823,23 @@ "postfix": false, "binop": null }, - "value": "pX", - "start": 3717, - "end": 3719, + "start": 2914, + "end": 2915, "loc": { "start": { - "line": 76, - "column": 35 + "line": 65, + "column": 48 }, "end": { - "line": 76, - "column": 37 + "line": 65, + "column": 49 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -30166,16 +30849,16 @@ "binop": null, "updateContext": null }, - "start": 3719, - "end": 3720, + "start": 2915, + "end": 2916, "loc": { "start": { - "line": 76, - "column": 37 + "line": 65, + "column": 49 }, "end": { - "line": 76, - "column": 38 + "line": 65, + "column": 50 } } }, @@ -30191,49 +30874,48 @@ "postfix": false, "binop": null }, - "value": "pY", - "start": 3721, - "end": 3723, + "value": "error", + "start": 2916, + "end": 2921, "loc": { "start": { - "line": 76, - "column": 39 + "line": 65, + "column": 50 }, "end": { - "line": 76, - "column": 41 + "line": 65, + "column": 55 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3723, - "end": 3724, + "start": 2921, + "end": 2922, "loc": { "start": { - "line": 76, - "column": 41 + "line": 65, + "column": 55 }, "end": { - "line": 76, - "column": 42 + "line": 65, + "column": 56 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -30241,19 +30923,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pMap", - "start": 3725, - "end": 3729, + "value": "No pInstance passed!", + "start": 2922, + "end": 2944, "loc": { "start": { - "line": 76, - "column": 43 + "line": 65, + "column": 56 }, "end": { - "line": 76, - "column": 47 + "line": 65, + "column": 78 } } }, @@ -30269,48 +30952,48 @@ "postfix": false, "binop": null }, - "start": 3729, - "end": 3730, + "start": 2944, + "end": 2945, "loc": { "start": { - "line": 76, - "column": 47 + "line": 65, + "column": 78 }, "end": { - "line": 76, - "column": 48 + "line": 65, + "column": 79 } } }, { "type": { - "label": "{", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 3731, - "end": 3732, + "start": 2945, + "end": 2946, "loc": { "start": { - "line": 76, - "column": 49 + "line": 65, + "column": 79 }, "end": { - "line": 76, - "column": 50 + "line": 65, + "column": 80 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -30318,28 +31001,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 3742, - "end": 3744, + "start": 2956, + "end": 2957, "loc": { "start": { - "line": 77, + "line": 66, "column": 8 }, "end": { - "line": 77, - "column": 10 + "line": 66, + "column": 9 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -30347,16 +31028,32 @@ "postfix": false, "binop": null }, - "start": 3745, - "end": 3746, + "start": 2963, + "end": 2964, "loc": { "start": { - "line": 77, - "column": 11 + "line": 67, + "column": 4 }, "end": { - "line": 77, - "column": 12 + "line": 67, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Initializes this instance.\r\n * @param {Object} pInstance - The instance to initialize.\r\n * @param {Object} pParallaxInfo - The parallax info that tells this module how to control this instance.\r\n * @property {number} pParallaxInfo.x - The x multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {number} pParallaxInfo.y - The y multiplier for this instance. Controls how fast or slow this instance moves. -Infinity to Infinity. 1 to move with camera.\r\n * @property {boolean} pParallaxInfo.loop - Whether this instance will loop endlessly.\r\n * @param {number} pX - The x position this parallax will start at.\r\n * @param {number} pY - The y position this parallax will start at.\r\n * @param {string} pMap - The map this instance will start at.\r\n * @private\r\n ", + "start": 2970, + "end": 3863, + "loc": { + "start": { + "line": 68, + "column": 4 + }, + "end": { + "line": 79, + "column": 7 } } }, @@ -30372,25 +31069,25 @@ "postfix": false, "binop": null }, - "value": "VYLO", - "start": 3746, - "end": 3750, + "value": "init", + "start": 3869, + "end": 3873, "loc": { "start": { - "line": 77, - "column": 12 + "line": 80, + "column": 4 }, "end": { - "line": 77, - "column": 16 + "line": 80, + "column": 8 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -30398,23 +31095,23 @@ "postfix": false, "binop": null }, - "start": 3750, - "end": 3751, + "start": 3873, + "end": 3874, "loc": { "start": { - "line": 77, - "column": 16 + "line": 80, + "column": 8 }, "end": { - "line": 77, - "column": 17 + "line": 80, + "column": 9 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -30423,32 +31120,43 @@ "postfix": false, "binop": null }, - "start": 3752, - "end": 3753, + "value": "pInstance", + "start": 3874, + "end": 3883, "loc": { "start": { - "line": 77, - "column": 18 + "line": 80, + "column": 9 }, "end": { - "line": 77, - "column": 19 + "line": 80, + "column": 18 } } }, { - "type": "CommentLine", - "value": " Set the initial position.", - "start": 3767, - "end": 3795, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3883, + "end": 3884, "loc": { "start": { - "line": 78, - "column": 12 + "line": 80, + "column": 18 }, "end": { - "line": 78, - "column": 40 + "line": 80, + "column": 19 } } }, @@ -30465,23 +31173,23 @@ "binop": null }, "value": "pParallaxInfo", - "start": 3809, - "end": 3822, + "start": 3885, + "end": 3898, "loc": { "start": { - "line": 79, - "column": 12 + "line": 80, + "column": 20 }, "end": { - "line": 79, - "column": 25 + "line": 80, + "column": 33 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -30491,16 +31199,16 @@ "binop": null, "updateContext": null }, - "start": 3822, - "end": 3823, + "start": 3898, + "end": 3899, "loc": { "start": { - "line": 79, - "column": 25 + "line": 80, + "column": 33 }, "end": { - "line": 79, - "column": 26 + "line": 80, + "column": 34 } } }, @@ -30516,51 +31224,50 @@ "postfix": false, "binop": null }, - "value": "initialPos", - "start": 3823, - "end": 3833, + "value": "pX", + "start": 3900, + "end": 3902, "loc": { "start": { - "line": 79, - "column": 26 + "line": 80, + "column": 35 }, "end": { - "line": 79, - "column": 36 + "line": 80, + "column": 37 } } }, { "type": { - "label": "=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 3834, - "end": 3835, + "start": 3902, + "end": 3903, "loc": { "start": { - "line": 79, + "line": 80, "column": 37 }, "end": { - "line": 79, + "line": 80, "column": 38 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -30569,76 +31276,77 @@ "postfix": false, "binop": null }, - "start": 3836, - "end": 3837, + "value": "pY", + "start": 3904, + "end": 3906, "loc": { "start": { - "line": 79, + "line": 80, "column": 39 }, "end": { - "line": 79, - "column": 40 + "line": 80, + "column": 41 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "x", - "start": 3838, - "end": 3839, + "start": 3906, + "end": 3907, "loc": { "start": { - "line": 79, + "line": 80, "column": 41 }, "end": { - "line": 79, + "line": 80, "column": 42 } } }, { "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3839, - "end": 3840, + "value": "pMap", + "start": 3908, + "end": 3912, "loc": { "start": { - "line": 79, - "column": 42 + "line": 80, + "column": 43 }, "end": { - "line": 79, - "column": 43 + "line": 80, + "column": 47 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -30646,95 +31354,94 @@ "postfix": false, "binop": null }, - "value": "pX", - "start": 3841, - "end": 3843, + "start": 3912, + "end": 3913, "loc": { "start": { - "line": 79, - "column": 44 + "line": 80, + "column": 47 }, "end": { - "line": 79, - "column": 46 + "line": 80, + "column": 48 } } }, { "type": { - "label": ",", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3843, - "end": 3844, + "start": 3914, + "end": 3915, "loc": { "start": { - "line": 79, - "column": 46 + "line": 80, + "column": 49 }, "end": { - "line": 79, - "column": 47 + "line": 80, + "column": 50 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "y", - "start": 3845, - "end": 3846, + "value": "if", + "start": 3925, + "end": 3927, "loc": { "start": { - "line": 79, - "column": 48 + "line": 81, + "column": 8 }, "end": { - "line": 79, - "column": 49 + "line": 81, + "column": 10 } } }, { "type": { - "label": ":", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3846, - "end": 3847, + "start": 3928, + "end": 3929, "loc": { "start": { - "line": 79, - "column": 49 + "line": 81, + "column": 11 }, "end": { - "line": 79, - "column": 50 + "line": 81, + "column": 12 } } }, @@ -30750,23 +31457,23 @@ "postfix": false, "binop": null }, - "value": "pY", - "start": 3848, - "end": 3850, + "value": "VYLO", + "start": 3929, + "end": 3933, "loc": { "start": { - "line": 79, - "column": 51 + "line": 81, + "column": 12 }, "end": { - "line": 79, - "column": 53 + "line": 81, + "column": 16 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -30776,57 +31483,56 @@ "postfix": false, "binop": null }, - "start": 3851, - "end": 3852, + "start": 3933, + "end": 3934, "loc": { "start": { - "line": 79, - "column": 54 + "line": 81, + "column": 16 }, "end": { - "line": 79, - "column": 55 + "line": 81, + "column": 17 } } }, { "type": { - "label": ";", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 3852, - "end": 3853, + "start": 3935, + "end": 3936, "loc": { "start": { - "line": 79, - "column": 55 + "line": 81, + "column": 18 }, "end": { - "line": 79, - "column": 56 + "line": 81, + "column": 19 } } }, { "type": "CommentLine", "value": " If this instance is set to loop, then it needs a left and right clone", - "start": 3867, - "end": 3939, + "start": 3950, + "end": 4022, "loc": { "start": { - "line": 80, + "line": 82, "column": 12 }, "end": { - "line": 80, + "line": 82, "column": 84 } } @@ -30846,15 +31552,15 @@ "updateContext": null }, "value": "if", - "start": 3953, - "end": 3955, + "start": 4036, + "end": 4038, "loc": { "start": { - "line": 81, + "line": 83, "column": 12 }, "end": { - "line": 81, + "line": 83, "column": 14 } } @@ -30871,15 +31577,15 @@ "postfix": false, "binop": null }, - "start": 3956, - "end": 3957, + "start": 4039, + "end": 4040, "loc": { "start": { - "line": 81, + "line": 83, "column": 15 }, "end": { - "line": 81, + "line": 83, "column": 16 } } @@ -30897,15 +31603,15 @@ "binop": null }, "value": "pParallaxInfo", - "start": 3957, - "end": 3970, + "start": 4040, + "end": 4053, "loc": { "start": { - "line": 81, + "line": 83, "column": 16 }, "end": { - "line": 81, + "line": 83, "column": 29 } } @@ -30923,15 +31629,15 @@ "binop": null, "updateContext": null }, - "start": 3970, - "end": 3971, + "start": 4053, + "end": 4054, "loc": { "start": { - "line": 81, + "line": 83, "column": 29 }, "end": { - "line": 81, + "line": 83, "column": 30 } } @@ -30949,15 +31655,15 @@ "binop": null }, "value": "loop", - "start": 3971, - "end": 3975, + "start": 4054, + "end": 4058, "loc": { "start": { - "line": 81, + "line": 83, "column": 30 }, "end": { - "line": 81, + "line": 83, "column": 34 } } @@ -30974,15 +31680,15 @@ "postfix": false, "binop": null }, - "start": 3975, - "end": 3976, + "start": 4058, + "end": 4059, "loc": { "start": { - "line": 81, + "line": 83, "column": 34 }, "end": { - "line": 81, + "line": 83, "column": 35 } } @@ -30999,15 +31705,15 @@ "postfix": false, "binop": null }, - "start": 3977, - "end": 3978, + "start": 4060, + "end": 4061, "loc": { "start": { - "line": 81, + "line": 83, "column": 36 }, "end": { - "line": 81, + "line": 83, "column": 37 } } @@ -31015,15 +31721,15 @@ { "type": "CommentLine", "value": " Create a left and right clone", - "start": 3996, - "end": 4028, + "start": 4079, + "end": 4111, "loc": { "start": { - "line": 82, + "line": 84, "column": 16 }, "end": { - "line": 82, + "line": 84, "column": 48 } } @@ -31043,15 +31749,15 @@ "updateContext": null }, "value": "const", - "start": 4046, - "end": 4051, + "start": 4129, + "end": 4134, "loc": { "start": { - "line": 83, + "line": 85, "column": 16 }, "end": { - "line": 83, + "line": 85, "column": 21 } } @@ -31069,15 +31775,15 @@ "binop": null }, "value": "left", - "start": 4052, - "end": 4056, + "start": 4135, + "end": 4139, "loc": { "start": { - "line": 83, + "line": 85, "column": 22 }, "end": { - "line": 83, + "line": 85, "column": 26 } } @@ -31096,15 +31802,15 @@ "updateContext": null }, "value": "=", - "start": 4057, - "end": 4058, + "start": 4140, + "end": 4141, "loc": { "start": { - "line": 83, + "line": 85, "column": 27 }, "end": { - "line": 83, + "line": 85, "column": 28 } } @@ -31122,15 +31828,15 @@ "binop": null }, "value": "VYLO", - "start": 4059, - "end": 4063, + "start": 4142, + "end": 4146, "loc": { "start": { - "line": 83, + "line": 85, "column": 29 }, "end": { - "line": 83, + "line": 85, "column": 33 } } @@ -31148,15 +31854,15 @@ "binop": null, "updateContext": null }, - "start": 4063, - "end": 4064, + "start": 4146, + "end": 4147, "loc": { "start": { - "line": 83, + "line": 85, "column": 33 }, "end": { - "line": 83, + "line": 85, "column": 34 } } @@ -31174,15 +31880,15 @@ "binop": null }, "value": "newDiob", - "start": 4064, - "end": 4071, + "start": 4147, + "end": 4154, "loc": { "start": { - "line": 83, + "line": 85, "column": 34 }, "end": { - "line": 83, + "line": 85, "column": 41 } } @@ -31199,15 +31905,15 @@ "postfix": false, "binop": null }, - "start": 4071, - "end": 4072, + "start": 4154, + "end": 4155, "loc": { "start": { - "line": 83, + "line": 85, "column": 41 }, "end": { - "line": 83, + "line": 85, "column": 42 } } @@ -31226,15 +31932,15 @@ "updateContext": null }, "value": "Particle", - "start": 4072, - "end": 4082, + "start": 4155, + "end": 4165, "loc": { "start": { - "line": 83, + "line": 85, "column": 42 }, "end": { - "line": 83, + "line": 85, "column": 52 } } @@ -31251,15 +31957,15 @@ "postfix": false, "binop": null }, - "start": 4082, - "end": 4083, + "start": 4165, + "end": 4166, "loc": { "start": { - "line": 83, + "line": 85, "column": 52 }, "end": { - "line": 83, + "line": 85, "column": 53 } } @@ -31277,15 +31983,15 @@ "binop": null, "updateContext": null }, - "start": 4083, - "end": 4084, + "start": 4166, + "end": 4167, "loc": { "start": { - "line": 83, + "line": 85, "column": 53 }, "end": { - "line": 83, + "line": 85, "column": 54 } } @@ -31305,15 +32011,15 @@ "updateContext": null }, "value": "const", - "start": 4102, - "end": 4107, + "start": 4185, + "end": 4190, "loc": { "start": { - "line": 84, + "line": 86, "column": 16 }, "end": { - "line": 84, + "line": 86, "column": 21 } } @@ -31331,15 +32037,15 @@ "binop": null }, "value": "right", - "start": 4108, - "end": 4113, + "start": 4191, + "end": 4196, "loc": { "start": { - "line": 84, + "line": 86, "column": 22 }, "end": { - "line": 84, + "line": 86, "column": 27 } } @@ -31358,15 +32064,15 @@ "updateContext": null }, "value": "=", - "start": 4114, - "end": 4115, + "start": 4197, + "end": 4198, "loc": { "start": { - "line": 84, + "line": 86, "column": 28 }, "end": { - "line": 84, + "line": 86, "column": 29 } } @@ -31384,15 +32090,15 @@ "binop": null }, "value": "VYLO", - "start": 4116, - "end": 4120, + "start": 4199, + "end": 4203, "loc": { "start": { - "line": 84, + "line": 86, "column": 30 }, "end": { - "line": 84, + "line": 86, "column": 34 } } @@ -31410,15 +32116,15 @@ "binop": null, "updateContext": null }, - "start": 4120, - "end": 4121, + "start": 4203, + "end": 4204, "loc": { "start": { - "line": 84, + "line": 86, "column": 34 }, "end": { - "line": 84, + "line": 86, "column": 35 } } @@ -31436,15 +32142,15 @@ "binop": null }, "value": "newDiob", - "start": 4121, - "end": 4128, + "start": 4204, + "end": 4211, "loc": { "start": { - "line": 84, + "line": 86, "column": 35 }, "end": { - "line": 84, + "line": 86, "column": 42 } } @@ -31461,15 +32167,15 @@ "postfix": false, "binop": null }, - "start": 4128, - "end": 4129, + "start": 4211, + "end": 4212, "loc": { "start": { - "line": 84, + "line": 86, "column": 42 }, "end": { - "line": 84, + "line": 86, "column": 43 } } @@ -31488,15 +32194,15 @@ "updateContext": null }, "value": "Particle", - "start": 4129, - "end": 4139, + "start": 4212, + "end": 4222, "loc": { "start": { - "line": 84, + "line": 86, "column": 43 }, "end": { - "line": 84, + "line": 86, "column": 53 } } @@ -31513,15 +32219,15 @@ "postfix": false, "binop": null }, - "start": 4139, - "end": 4140, + "start": 4222, + "end": 4223, "loc": { "start": { - "line": 84, + "line": 86, "column": 53 }, "end": { - "line": 84, + "line": 86, "column": 54 } } @@ -31539,15 +32245,15 @@ "binop": null, "updateContext": null }, - "start": 4140, - "end": 4141, + "start": 4223, + "end": 4224, "loc": { "start": { - "line": 84, + "line": 86, "column": 54 }, "end": { - "line": 84, + "line": 86, "column": 55 } } @@ -31555,15 +32261,15 @@ { "type": "CommentLine", "value": " Make the left and right clone particle look the same as the initial instance", - "start": 4159, - "end": 4238, + "start": 4242, + "end": 4321, "loc": { "start": { - "line": 85, + "line": 87, "column": 16 }, "end": { - "line": 85, + "line": 87, "column": 95 } } @@ -31581,15 +32287,15 @@ "binop": null }, "value": "left", - "start": 4256, - "end": 4260, + "start": 4339, + "end": 4343, "loc": { "start": { - "line": 86, + "line": 88, "column": 16 }, "end": { - "line": 86, + "line": 88, "column": 20 } } @@ -31607,15 +32313,15 @@ "binop": null, "updateContext": null }, - "start": 4260, - "end": 4261, + "start": 4343, + "end": 4344, "loc": { "start": { - "line": 86, + "line": 88, "column": 20 }, "end": { - "line": 86, + "line": 88, "column": 21 } } @@ -31633,15 +32339,15 @@ "binop": null }, "value": "setAppearance", - "start": 4261, - "end": 4274, + "start": 4344, + "end": 4357, "loc": { "start": { - "line": 86, + "line": 88, "column": 21 }, "end": { - "line": 86, + "line": 88, "column": 34 } } @@ -31658,15 +32364,15 @@ "postfix": false, "binop": null }, - "start": 4274, - "end": 4275, + "start": 4357, + "end": 4358, "loc": { "start": { - "line": 86, + "line": 88, "column": 34 }, "end": { - "line": 86, + "line": 88, "column": 35 } } @@ -31684,15 +32390,15 @@ "binop": null }, "value": "pInstance", - "start": 4275, - "end": 4284, + "start": 4358, + "end": 4367, "loc": { "start": { - "line": 86, + "line": 88, "column": 35 }, "end": { - "line": 86, + "line": 88, "column": 44 } } @@ -31709,15 +32415,15 @@ "postfix": false, "binop": null }, - "start": 4284, - "end": 4285, + "start": 4367, + "end": 4368, "loc": { "start": { - "line": 86, + "line": 88, "column": 44 }, "end": { - "line": 86, + "line": 88, "column": 45 } } @@ -31735,15 +32441,15 @@ "binop": null, "updateContext": null }, - "start": 4285, - "end": 4286, + "start": 4368, + "end": 4369, "loc": { "start": { - "line": 86, + "line": 88, "column": 45 }, "end": { - "line": 86, + "line": 88, "column": 46 } } @@ -31761,15 +32467,15 @@ "binop": null }, "value": "right", - "start": 4304, - "end": 4309, + "start": 4387, + "end": 4392, "loc": { "start": { - "line": 87, + "line": 89, "column": 16 }, "end": { - "line": 87, + "line": 89, "column": 21 } } @@ -31787,15 +32493,15 @@ "binop": null, "updateContext": null }, - "start": 4309, - "end": 4310, + "start": 4392, + "end": 4393, "loc": { "start": { - "line": 87, + "line": 89, "column": 21 }, "end": { - "line": 87, + "line": 89, "column": 22 } } @@ -31813,15 +32519,15 @@ "binop": null }, "value": "setAppearance", - "start": 4310, - "end": 4323, + "start": 4393, + "end": 4406, "loc": { "start": { - "line": 87, + "line": 89, "column": 22 }, "end": { - "line": 87, + "line": 89, "column": 35 } } @@ -31838,15 +32544,15 @@ "postfix": false, "binop": null }, - "start": 4323, - "end": 4324, + "start": 4406, + "end": 4407, "loc": { "start": { - "line": 87, + "line": 89, "column": 35 }, "end": { - "line": 87, + "line": 89, "column": 36 } } @@ -31864,15 +32570,15 @@ "binop": null }, "value": "pInstance", - "start": 4324, - "end": 4333, + "start": 4407, + "end": 4416, "loc": { "start": { - "line": 87, + "line": 89, "column": 36 }, "end": { - "line": 87, + "line": 89, "column": 45 } } @@ -31889,15 +32595,15 @@ "postfix": false, "binop": null }, - "start": 4333, - "end": 4334, + "start": 4416, + "end": 4417, "loc": { "start": { - "line": 87, + "line": 89, "column": 45 }, "end": { - "line": 87, + "line": 89, "column": 46 } } @@ -31915,15 +32621,15 @@ "binop": null, "updateContext": null }, - "start": 4334, - "end": 4335, + "start": 4417, + "end": 4418, "loc": { "start": { - "line": 87, + "line": 89, "column": 46 }, "end": { - "line": 87, + "line": 89, "column": 47 } } @@ -31931,15 +32637,15 @@ { "type": "CommentLine", "value": " Position the left clone", - "start": 4353, - "end": 4379, + "start": 4436, + "end": 4462, "loc": { "start": { - "line": 88, + "line": 90, "column": 16 }, "end": { - "line": 88, + "line": 90, "column": 42 } } @@ -31957,15 +32663,15 @@ "binop": null }, "value": "left", - "start": 4397, - "end": 4401, + "start": 4480, + "end": 4484, "loc": { "start": { - "line": 89, + "line": 91, "column": 16 }, "end": { - "line": 89, + "line": 91, "column": 20 } } @@ -31983,15 +32689,15 @@ "binop": null, "updateContext": null }, - "start": 4401, - "end": 4402, + "start": 4484, + "end": 4485, "loc": { "start": { - "line": 89, + "line": 91, "column": 20 }, "end": { - "line": 89, + "line": 91, "column": 21 } } @@ -32009,15 +32715,15 @@ "binop": null }, "value": "x", - "start": 4402, - "end": 4403, + "start": 4485, + "end": 4486, "loc": { "start": { - "line": 89, + "line": 91, "column": 21 }, "end": { - "line": 89, + "line": 91, "column": 22 } } @@ -32036,15 +32742,15 @@ "updateContext": null }, "value": "=", - "start": 4404, - "end": 4405, + "start": 4487, + "end": 4488, "loc": { "start": { - "line": 89, + "line": 91, "column": 23 }, "end": { - "line": 89, + "line": 91, "column": 24 } } @@ -32062,15 +32768,15 @@ "binop": null }, "value": "pX", - "start": 4406, - "end": 4408, + "start": 4489, + "end": 4491, "loc": { "start": { - "line": 89, + "line": 91, "column": 25 }, "end": { - "line": 89, + "line": 91, "column": 27 } } @@ -32089,15 +32795,15 @@ "updateContext": null }, "value": "-", - "start": 4409, - "end": 4410, + "start": 4492, + "end": 4493, "loc": { "start": { - "line": 89, + "line": 91, "column": 28 }, "end": { - "line": 89, + "line": 91, "column": 29 } } @@ -32115,15 +32821,15 @@ "binop": null }, "value": "pInstance", - "start": 4411, - "end": 4420, + "start": 4494, + "end": 4503, "loc": { "start": { - "line": 89, + "line": 91, "column": 30 }, "end": { - "line": 89, + "line": 91, "column": 39 } } @@ -32141,15 +32847,15 @@ "binop": null, "updateContext": null }, - "start": 4420, - "end": 4421, + "start": 4503, + "end": 4504, "loc": { "start": { - "line": 89, + "line": 91, "column": 39 }, "end": { - "line": 89, + "line": 91, "column": 40 } } @@ -32167,15 +32873,15 @@ "binop": null }, "value": "icon", - "start": 4421, - "end": 4425, + "start": 4504, + "end": 4508, "loc": { "start": { - "line": 89, + "line": 91, "column": 40 }, "end": { - "line": 89, + "line": 91, "column": 44 } } @@ -32193,15 +32899,15 @@ "binop": null, "updateContext": null }, - "start": 4425, - "end": 4426, + "start": 4508, + "end": 4509, "loc": { "start": { - "line": 89, + "line": 91, "column": 44 }, "end": { - "line": 89, + "line": 91, "column": 45 } } @@ -32219,15 +32925,15 @@ "binop": null }, "value": "width", - "start": 4426, - "end": 4431, + "start": 4509, + "end": 4514, "loc": { "start": { - "line": 89, + "line": 91, "column": 45 }, "end": { - "line": 89, + "line": 91, "column": 50 } } @@ -32245,15 +32951,15 @@ "binop": null, "updateContext": null }, - "start": 4431, - "end": 4432, + "start": 4514, + "end": 4515, "loc": { "start": { - "line": 89, + "line": 91, "column": 50 }, "end": { - "line": 89, + "line": 91, "column": 51 } } @@ -32271,15 +32977,15 @@ "binop": null }, "value": "left", - "start": 4450, - "end": 4454, + "start": 4533, + "end": 4537, "loc": { "start": { - "line": 90, + "line": 92, "column": 16 }, "end": { - "line": 90, + "line": 92, "column": 20 } } @@ -32297,15 +33003,15 @@ "binop": null, "updateContext": null }, - "start": 4454, - "end": 4455, + "start": 4537, + "end": 4538, "loc": { "start": { - "line": 90, + "line": 92, "column": 20 }, "end": { - "line": 90, + "line": 92, "column": 21 } } @@ -32323,15 +33029,15 @@ "binop": null }, "value": "y", - "start": 4455, - "end": 4456, + "start": 4538, + "end": 4539, "loc": { "start": { - "line": 90, + "line": 92, "column": 21 }, "end": { - "line": 90, + "line": 92, "column": 22 } } @@ -32350,15 +33056,15 @@ "updateContext": null }, "value": "=", - "start": 4457, - "end": 4458, + "start": 4540, + "end": 4541, "loc": { "start": { - "line": 90, + "line": 92, "column": 23 }, "end": { - "line": 90, + "line": 92, "column": 24 } } @@ -32376,15 +33082,15 @@ "binop": null }, "value": "pY", - "start": 4459, - "end": 4461, + "start": 4542, + "end": 4544, "loc": { "start": { - "line": 90, + "line": 92, "column": 25 }, "end": { - "line": 90, + "line": 92, "column": 27 } } @@ -32402,15 +33108,15 @@ "binop": null, "updateContext": null }, - "start": 4461, - "end": 4462, + "start": 4544, + "end": 4545, "loc": { "start": { - "line": 90, + "line": 92, "column": 27 }, "end": { - "line": 90, + "line": 92, "column": 28 } } @@ -32418,15 +33124,15 @@ { "type": "CommentLine", "value": " Position the right clone", - "start": 4480, - "end": 4507, + "start": 4563, + "end": 4590, "loc": { "start": { - "line": 91, + "line": 93, "column": 16 }, "end": { - "line": 91, + "line": 93, "column": 43 } } @@ -32444,15 +33150,15 @@ "binop": null }, "value": "right", - "start": 4525, - "end": 4530, + "start": 4608, + "end": 4613, "loc": { "start": { - "line": 92, + "line": 94, "column": 16 }, "end": { - "line": 92, + "line": 94, "column": 21 } } @@ -32470,15 +33176,15 @@ "binop": null, "updateContext": null }, - "start": 4530, - "end": 4531, + "start": 4613, + "end": 4614, "loc": { "start": { - "line": 92, + "line": 94, "column": 21 }, "end": { - "line": 92, + "line": 94, "column": 22 } } @@ -32496,15 +33202,15 @@ "binop": null }, "value": "x", - "start": 4531, - "end": 4532, + "start": 4614, + "end": 4615, "loc": { "start": { - "line": 92, + "line": 94, "column": 22 }, "end": { - "line": 92, + "line": 94, "column": 23 } } @@ -32523,15 +33229,15 @@ "updateContext": null }, "value": "=", - "start": 4533, - "end": 4534, + "start": 4616, + "end": 4617, "loc": { "start": { - "line": 92, + "line": 94, "column": 24 }, "end": { - "line": 92, + "line": 94, "column": 25 } } @@ -32549,15 +33255,15 @@ "binop": null }, "value": "pX", - "start": 4535, - "end": 4537, + "start": 4618, + "end": 4620, "loc": { "start": { - "line": 92, + "line": 94, "column": 26 }, "end": { - "line": 92, + "line": 94, "column": 28 } } @@ -32576,15 +33282,15 @@ "updateContext": null }, "value": "+", - "start": 4538, - "end": 4539, + "start": 4621, + "end": 4622, "loc": { "start": { - "line": 92, + "line": 94, "column": 29 }, "end": { - "line": 92, + "line": 94, "column": 30 } } @@ -32602,15 +33308,15 @@ "binop": null }, "value": "pInstance", - "start": 4540, - "end": 4549, + "start": 4623, + "end": 4632, "loc": { "start": { - "line": 92, + "line": 94, "column": 31 }, "end": { - "line": 92, + "line": 94, "column": 40 } } @@ -32628,15 +33334,15 @@ "binop": null, "updateContext": null }, - "start": 4549, - "end": 4550, + "start": 4632, + "end": 4633, "loc": { "start": { - "line": 92, + "line": 94, "column": 40 }, "end": { - "line": 92, + "line": 94, "column": 41 } } @@ -32654,15 +33360,15 @@ "binop": null }, "value": "icon", - "start": 4550, - "end": 4554, + "start": 4633, + "end": 4637, "loc": { "start": { - "line": 92, + "line": 94, "column": 41 }, "end": { - "line": 92, + "line": 94, "column": 45 } } @@ -32680,15 +33386,15 @@ "binop": null, "updateContext": null }, - "start": 4554, - "end": 4555, + "start": 4637, + "end": 4638, "loc": { "start": { - "line": 92, + "line": 94, "column": 45 }, "end": { - "line": 92, + "line": 94, "column": 46 } } @@ -32706,15 +33412,15 @@ "binop": null }, "value": "width", - "start": 4555, - "end": 4560, + "start": 4638, + "end": 4643, "loc": { "start": { - "line": 92, + "line": 94, "column": 46 }, "end": { - "line": 92, + "line": 94, "column": 51 } } @@ -32732,15 +33438,15 @@ "binop": null, "updateContext": null }, - "start": 4560, - "end": 4561, + "start": 4643, + "end": 4644, "loc": { "start": { - "line": 92, + "line": 94, "column": 51 }, "end": { - "line": 92, + "line": 94, "column": 52 } } @@ -32758,15 +33464,15 @@ "binop": null }, "value": "right", - "start": 4579, - "end": 4584, + "start": 4662, + "end": 4667, "loc": { "start": { - "line": 93, + "line": 95, "column": 16 }, "end": { - "line": 93, + "line": 95, "column": 21 } } @@ -32784,15 +33490,15 @@ "binop": null, "updateContext": null }, - "start": 4584, - "end": 4585, + "start": 4667, + "end": 4668, "loc": { "start": { - "line": 93, + "line": 95, "column": 21 }, "end": { - "line": 93, + "line": 95, "column": 22 } } @@ -32810,15 +33516,15 @@ "binop": null }, "value": "y", - "start": 4585, - "end": 4586, + "start": 4668, + "end": 4669, "loc": { "start": { - "line": 93, + "line": 95, "column": 22 }, "end": { - "line": 93, + "line": 95, "column": 23 } } @@ -32837,15 +33543,15 @@ "updateContext": null }, "value": "=", - "start": 4587, - "end": 4588, + "start": 4670, + "end": 4671, "loc": { "start": { - "line": 93, + "line": 95, "column": 24 }, "end": { - "line": 93, + "line": 95, "column": 25 } } @@ -32863,15 +33569,15 @@ "binop": null }, "value": "pY", - "start": 4589, - "end": 4591, + "start": 4672, + "end": 4674, "loc": { "start": { - "line": 93, + "line": 95, "column": 26 }, "end": { - "line": 93, + "line": 95, "column": 28 } } @@ -32889,15 +33595,15 @@ "binop": null, "updateContext": null }, - "start": 4591, - "end": 4592, + "start": 4674, + "end": 4675, "loc": { "start": { - "line": 93, + "line": 95, "column": 28 }, "end": { - "line": 93, + "line": 95, "column": 29 } } @@ -32905,15 +33611,15 @@ { "type": "CommentLine", "value": " Store the clones in a temporary array", - "start": 4610, - "end": 4650, + "start": 4693, + "end": 4733, "loc": { "start": { - "line": 94, + "line": 96, "column": 16 }, "end": { - "line": 94, + "line": 96, "column": 56 } } @@ -32933,15 +33639,15 @@ "updateContext": null }, "value": "const", - "start": 4668, - "end": 4673, + "start": 4751, + "end": 4756, "loc": { "start": { - "line": 95, + "line": 97, "column": 16 }, "end": { - "line": 95, + "line": 97, "column": 21 } } @@ -32959,15 +33665,15 @@ "binop": null }, "value": "children", - "start": 4674, - "end": 4682, + "start": 4757, + "end": 4765, "loc": { "start": { - "line": 95, + "line": 97, "column": 22 }, "end": { - "line": 95, + "line": 97, "column": 30 } } @@ -32986,15 +33692,15 @@ "updateContext": null }, "value": "=", - "start": 4683, - "end": 4684, + "start": 4766, + "end": 4767, "loc": { "start": { - "line": 95, + "line": 97, "column": 31 }, "end": { - "line": 95, + "line": 97, "column": 32 } } @@ -33012,15 +33718,15 @@ "binop": null, "updateContext": null }, - "start": 4685, - "end": 4686, + "start": 4768, + "end": 4769, "loc": { "start": { - "line": 95, + "line": 97, "column": 33 }, "end": { - "line": 95, + "line": 97, "column": 34 } } @@ -33038,15 +33744,15 @@ "binop": null }, "value": "left", - "start": 4686, - "end": 4690, + "start": 4769, + "end": 4773, "loc": { "start": { - "line": 95, + "line": 97, "column": 34 }, "end": { - "line": 95, + "line": 97, "column": 38 } } @@ -33064,15 +33770,15 @@ "binop": null, "updateContext": null }, - "start": 4690, - "end": 4691, + "start": 4773, + "end": 4774, "loc": { "start": { - "line": 95, + "line": 97, "column": 38 }, "end": { - "line": 95, + "line": 97, "column": 39 } } @@ -33090,15 +33796,15 @@ "binop": null }, "value": "right", - "start": 4692, - "end": 4697, + "start": 4775, + "end": 4780, "loc": { "start": { - "line": 95, + "line": 97, "column": 40 }, "end": { - "line": 95, + "line": 97, "column": 45 } } @@ -33116,15 +33822,15 @@ "binop": null, "updateContext": null }, - "start": 4697, - "end": 4698, + "start": 4780, + "end": 4781, "loc": { "start": { - "line": 95, + "line": 97, "column": 45 }, "end": { - "line": 95, + "line": 97, "column": 46 } } @@ -33142,15 +33848,15 @@ "binop": null, "updateContext": null }, - "start": 4698, - "end": 4699, + "start": 4781, + "end": 4782, "loc": { "start": { - "line": 95, + "line": 97, "column": 46 }, "end": { - "line": 95, + "line": 97, "column": 47 } } @@ -33158,15 +33864,15 @@ { "type": "CommentLine", "value": " Loop the clones and store their relative positions to the main instance", - "start": 4717, - "end": 4791, + "start": 4800, + "end": 4874, "loc": { "start": { - "line": 96, + "line": 98, "column": 16 }, "end": { - "line": 96, + "line": 98, "column": 90 } } @@ -33184,15 +33890,15 @@ "binop": null }, "value": "children", - "start": 4809, - "end": 4817, + "start": 4892, + "end": 4900, "loc": { "start": { - "line": 97, + "line": 99, "column": 16 }, "end": { - "line": 97, + "line": 99, "column": 24 } } @@ -33210,15 +33916,15 @@ "binop": null, "updateContext": null }, - "start": 4817, - "end": 4818, + "start": 4900, + "end": 4901, "loc": { "start": { - "line": 97, + "line": 99, "column": 24 }, "end": { - "line": 97, + "line": 99, "column": 25 } } @@ -33236,15 +33942,15 @@ "binop": null }, "value": "forEach", - "start": 4818, - "end": 4825, + "start": 4901, + "end": 4908, "loc": { "start": { - "line": 97, + "line": 99, "column": 25 }, "end": { - "line": 97, + "line": 99, "column": 32 } } @@ -33261,15 +33967,15 @@ "postfix": false, "binop": null }, - "start": 4825, - "end": 4826, + "start": 4908, + "end": 4909, "loc": { "start": { - "line": 97, + "line": 99, "column": 32 }, "end": { - "line": 97, + "line": 99, "column": 33 } } @@ -33286,15 +33992,15 @@ "postfix": false, "binop": null }, - "start": 4826, - "end": 4827, + "start": 4909, + "end": 4910, "loc": { "start": { - "line": 97, + "line": 99, "column": 33 }, "end": { - "line": 97, + "line": 99, "column": 34 } } @@ -33312,15 +34018,15 @@ "binop": null }, "value": "pChild", - "start": 4827, - "end": 4833, + "start": 4910, + "end": 4916, "loc": { "start": { - "line": 97, + "line": 99, "column": 34 }, "end": { - "line": 97, + "line": 99, "column": 40 } } @@ -33337,15 +34043,15 @@ "postfix": false, "binop": null }, - "start": 4833, - "end": 4834, + "start": 4916, + "end": 4917, "loc": { "start": { - "line": 97, + "line": 99, "column": 40 }, "end": { - "line": 97, + "line": 99, "column": 41 } } @@ -33363,15 +34069,15 @@ "binop": null, "updateContext": null }, - "start": 4835, - "end": 4837, + "start": 4918, + "end": 4920, "loc": { "start": { - "line": 97, + "line": 99, "column": 42 }, "end": { - "line": 97, + "line": 99, "column": 44 } } @@ -33388,15 +34094,15 @@ "postfix": false, "binop": null }, - "start": 4838, - "end": 4839, + "start": 4921, + "end": 4922, "loc": { "start": { - "line": 97, + "line": 99, "column": 45 }, "end": { - "line": 97, + "line": 99, "column": 46 } } @@ -33414,15 +34120,15 @@ "binop": null }, "value": "pChild", - "start": 4861, - "end": 4867, + "start": 4944, + "end": 4950, "loc": { "start": { - "line": 98, + "line": 100, "column": 20 }, "end": { - "line": 98, + "line": 100, "column": 26 } } @@ -33440,15 +34146,15 @@ "binop": null, "updateContext": null }, - "start": 4867, - "end": 4868, + "start": 4950, + "end": 4951, "loc": { "start": { - "line": 98, + "line": 100, "column": 26 }, "end": { - "line": 98, + "line": 100, "column": 27 } } @@ -33466,15 +34172,15 @@ "binop": null }, "value": "relativeX", - "start": 4868, - "end": 4877, + "start": 4951, + "end": 4960, "loc": { "start": { - "line": 98, + "line": 100, "column": 27 }, "end": { - "line": 98, + "line": 100, "column": 36 } } @@ -33493,15 +34199,15 @@ "updateContext": null }, "value": "=", - "start": 4878, - "end": 4879, + "start": 4961, + "end": 4962, "loc": { "start": { - "line": 98, + "line": 100, "column": 37 }, "end": { - "line": 98, + "line": 100, "column": 38 } } @@ -33519,15 +34225,15 @@ "binop": null }, "value": "pChild", - "start": 4880, - "end": 4886, + "start": 4963, + "end": 4969, "loc": { "start": { - "line": 98, + "line": 100, "column": 39 }, "end": { - "line": 98, + "line": 100, "column": 45 } } @@ -33545,15 +34251,15 @@ "binop": null, "updateContext": null }, - "start": 4886, - "end": 4887, + "start": 4969, + "end": 4970, "loc": { "start": { - "line": 98, + "line": 100, "column": 45 }, "end": { - "line": 98, + "line": 100, "column": 46 } } @@ -33571,15 +34277,15 @@ "binop": null }, "value": "x", - "start": 4887, - "end": 4888, + "start": 4970, + "end": 4971, "loc": { "start": { - "line": 98, + "line": 100, "column": 46 }, "end": { - "line": 98, + "line": 100, "column": 47 } } @@ -33598,15 +34304,15 @@ "updateContext": null }, "value": "-", - "start": 4889, - "end": 4890, + "start": 4972, + "end": 4973, "loc": { "start": { - "line": 98, + "line": 100, "column": 48 }, "end": { - "line": 98, + "line": 100, "column": 49 } } @@ -33624,15 +34330,15 @@ "binop": null }, "value": "pX", - "start": 4891, - "end": 4893, + "start": 4974, + "end": 4976, "loc": { "start": { - "line": 98, + "line": 100, "column": 50 }, "end": { - "line": 98, + "line": 100, "column": 52 } } @@ -33650,15 +34356,15 @@ "binop": null, "updateContext": null }, - "start": 4893, - "end": 4894, + "start": 4976, + "end": 4977, "loc": { "start": { - "line": 98, + "line": 100, "column": 52 }, "end": { - "line": 98, + "line": 100, "column": 53 } } @@ -33676,15 +34382,15 @@ "binop": null }, "value": "pChild", - "start": 4916, - "end": 4922, + "start": 4999, + "end": 5005, "loc": { "start": { - "line": 99, + "line": 101, "column": 20 }, "end": { - "line": 99, + "line": 101, "column": 26 } } @@ -33702,15 +34408,15 @@ "binop": null, "updateContext": null }, - "start": 4922, - "end": 4923, + "start": 5005, + "end": 5006, "loc": { "start": { - "line": 99, + "line": 101, "column": 26 }, "end": { - "line": 99, + "line": 101, "column": 27 } } @@ -33728,15 +34434,15 @@ "binop": null }, "value": "relativeY", - "start": 4923, - "end": 4932, + "start": 5006, + "end": 5015, "loc": { "start": { - "line": 99, + "line": 101, "column": 27 }, "end": { - "line": 99, + "line": 101, "column": 36 } } @@ -33755,15 +34461,15 @@ "updateContext": null }, "value": "=", - "start": 4933, - "end": 4934, + "start": 5016, + "end": 5017, "loc": { "start": { - "line": 99, + "line": 101, "column": 37 }, "end": { - "line": 99, + "line": 101, "column": 38 } } @@ -33781,15 +34487,15 @@ "binop": null }, "value": "pChild", - "start": 4935, - "end": 4941, + "start": 5018, + "end": 5024, "loc": { "start": { - "line": 99, + "line": 101, "column": 39 }, "end": { - "line": 99, + "line": 101, "column": 45 } } @@ -33807,15 +34513,15 @@ "binop": null, "updateContext": null }, - "start": 4941, - "end": 4942, + "start": 5024, + "end": 5025, "loc": { "start": { - "line": 99, + "line": 101, "column": 45 }, "end": { - "line": 99, + "line": 101, "column": 46 } } @@ -33833,15 +34539,15 @@ "binop": null }, "value": "y", - "start": 4942, - "end": 4943, + "start": 5025, + "end": 5026, "loc": { "start": { - "line": 99, + "line": 101, "column": 46 }, "end": { - "line": 99, + "line": 101, "column": 47 } } @@ -33860,15 +34566,15 @@ "updateContext": null }, "value": "-", - "start": 4944, - "end": 4945, + "start": 5027, + "end": 5028, "loc": { "start": { - "line": 99, + "line": 101, "column": 48 }, "end": { - "line": 99, + "line": 101, "column": 49 } } @@ -33886,15 +34592,15 @@ "binop": null }, "value": "pY", - "start": 4946, - "end": 4948, + "start": 5029, + "end": 5031, "loc": { "start": { - "line": 99, + "line": 101, "column": 50 }, "end": { - "line": 99, + "line": 101, "column": 52 } } @@ -33912,15 +34618,15 @@ "binop": null, "updateContext": null }, - "start": 4948, - "end": 4949, + "start": 5031, + "end": 5032, "loc": { "start": { - "line": 99, + "line": 101, "column": 52 }, "end": { - "line": 99, + "line": 101, "column": 53 } } @@ -33937,15 +34643,15 @@ "postfix": false, "binop": null }, - "start": 4967, - "end": 4968, + "start": 5050, + "end": 5051, "loc": { "start": { - "line": 100, + "line": 102, "column": 16 }, "end": { - "line": 100, + "line": 102, "column": 17 } } @@ -33962,15 +34668,15 @@ "postfix": false, "binop": null }, - "start": 4968, - "end": 4969, + "start": 5051, + "end": 5052, "loc": { "start": { - "line": 100, + "line": 102, "column": 17 }, "end": { - "line": 100, + "line": 102, "column": 18 } } @@ -33988,15 +34694,15 @@ "binop": null, "updateContext": null }, - "start": 4969, - "end": 4970, + "start": 5052, + "end": 5053, "loc": { "start": { - "line": 100, + "line": 102, "column": 18 }, "end": { - "line": 100, + "line": 102, "column": 19 } } @@ -34004,15 +34710,15 @@ { "type": "CommentLine", "value": " When the main instance moves, move the clones with their relative position to it.", - "start": 4988, - "end": 5072, + "start": 5071, + "end": 5155, "loc": { "start": { - "line": 101, + "line": 103, "column": 16 }, "end": { - "line": 101, + "line": 103, "column": 100 } } @@ -34030,15 +34736,15 @@ "binop": null }, "value": "pInstance", - "start": 5090, - "end": 5099, + "start": 5173, + "end": 5182, "loc": { "start": { - "line": 102, + "line": 104, "column": 16 }, "end": { - "line": 102, + "line": 104, "column": 25 } } @@ -34056,15 +34762,15 @@ "binop": null, "updateContext": null }, - "start": 5099, - "end": 5100, + "start": 5182, + "end": 5183, "loc": { "start": { - "line": 102, + "line": 104, "column": 25 }, "end": { - "line": 102, + "line": 104, "column": 26 } } @@ -34082,15 +34788,15 @@ "binop": null }, "value": "onRelocated", - "start": 5100, - "end": 5111, + "start": 5183, + "end": 5194, "loc": { "start": { - "line": 102, + "line": 104, "column": 26 }, "end": { - "line": 102, + "line": 104, "column": 37 } } @@ -34109,15 +34815,15 @@ "updateContext": null }, "value": "=", - "start": 5112, - "end": 5113, + "start": 5195, + "end": 5196, "loc": { "start": { - "line": 102, + "line": 104, "column": 38 }, "end": { - "line": 102, + "line": 104, "column": 39 } } @@ -34136,15 +34842,15 @@ "binop": null }, "value": "function", - "start": 5114, - "end": 5122, + "start": 5197, + "end": 5205, "loc": { "start": { - "line": 102, + "line": 104, "column": 40 }, "end": { - "line": 102, + "line": 104, "column": 48 } } @@ -34161,15 +34867,15 @@ "postfix": false, "binop": null }, - "start": 5122, - "end": 5123, + "start": 5205, + "end": 5206, "loc": { "start": { - "line": 102, + "line": 104, "column": 48 }, "end": { - "line": 102, + "line": 104, "column": 49 } } @@ -34187,15 +34893,15 @@ "binop": null }, "value": "pX", - "start": 5123, - "end": 5125, + "start": 5206, + "end": 5208, "loc": { "start": { - "line": 102, + "line": 104, "column": 49 }, "end": { - "line": 102, + "line": 104, "column": 51 } } @@ -34213,15 +34919,15 @@ "binop": null, "updateContext": null }, - "start": 5125, - "end": 5126, + "start": 5208, + "end": 5209, "loc": { "start": { - "line": 102, + "line": 104, "column": 51 }, "end": { - "line": 102, + "line": 104, "column": 52 } } @@ -34239,15 +34945,15 @@ "binop": null }, "value": "pY", - "start": 5127, - "end": 5129, + "start": 5210, + "end": 5212, "loc": { "start": { - "line": 102, + "line": 104, "column": 53 }, "end": { - "line": 102, + "line": 104, "column": 55 } } @@ -34264,15 +34970,15 @@ "postfix": false, "binop": null }, - "start": 5129, - "end": 5130, + "start": 5212, + "end": 5213, "loc": { "start": { - "line": 102, + "line": 104, "column": 55 }, "end": { - "line": 102, + "line": 104, "column": 56 } } @@ -34289,15 +34995,15 @@ "postfix": false, "binop": null }, - "start": 5131, - "end": 5132, + "start": 5214, + "end": 5215, "loc": { "start": { - "line": 102, + "line": 104, "column": 57 }, "end": { - "line": 102, + "line": 104, "column": 58 } } @@ -34305,15 +35011,15 @@ { "type": "CommentLine", "value": " Update the children's position when the parent moves", - "start": 5154, - "end": 5209, + "start": 5237, + "end": 5292, "loc": { "start": { - "line": 103, + "line": 105, "column": 20 }, "end": { - "line": 103, + "line": 105, "column": 75 } } @@ -34331,15 +35037,15 @@ "binop": null }, "value": "children", - "start": 5231, - "end": 5239, + "start": 5314, + "end": 5322, "loc": { "start": { - "line": 104, + "line": 106, "column": 20 }, "end": { - "line": 104, + "line": 106, "column": 28 } } @@ -34357,15 +35063,15 @@ "binop": null, "updateContext": null }, - "start": 5239, - "end": 5240, + "start": 5322, + "end": 5323, "loc": { "start": { - "line": 104, + "line": 106, "column": 28 }, "end": { - "line": 104, + "line": 106, "column": 29 } } @@ -34383,15 +35089,15 @@ "binop": null }, "value": "forEach", - "start": 5240, - "end": 5247, + "start": 5323, + "end": 5330, "loc": { "start": { - "line": 104, + "line": 106, "column": 29 }, "end": { - "line": 104, + "line": 106, "column": 36 } } @@ -34408,15 +35114,15 @@ "postfix": false, "binop": null }, - "start": 5247, - "end": 5248, + "start": 5330, + "end": 5331, "loc": { "start": { - "line": 104, + "line": 106, "column": 36 }, "end": { - "line": 104, + "line": 106, "column": 37 } } @@ -34433,15 +35139,15 @@ "postfix": false, "binop": null }, - "start": 5248, - "end": 5249, + "start": 5331, + "end": 5332, "loc": { "start": { - "line": 104, + "line": 106, "column": 37 }, "end": { - "line": 104, + "line": 106, "column": 38 } } @@ -34459,15 +35165,15 @@ "binop": null }, "value": "pChild", - "start": 5249, - "end": 5255, + "start": 5332, + "end": 5338, "loc": { "start": { - "line": 104, + "line": 106, "column": 38 }, "end": { - "line": 104, + "line": 106, "column": 44 } } @@ -34484,15 +35190,15 @@ "postfix": false, "binop": null }, - "start": 5255, - "end": 5256, + "start": 5338, + "end": 5339, "loc": { "start": { - "line": 104, + "line": 106, "column": 44 }, "end": { - "line": 104, + "line": 106, "column": 45 } } @@ -34510,15 +35216,15 @@ "binop": null, "updateContext": null }, - "start": 5257, - "end": 5259, + "start": 5340, + "end": 5342, "loc": { "start": { - "line": 104, + "line": 106, "column": 46 }, "end": { - "line": 104, + "line": 106, "column": 48 } } @@ -34535,15 +35241,15 @@ "postfix": false, "binop": null }, - "start": 5260, - "end": 5261, + "start": 5343, + "end": 5344, "loc": { "start": { - "line": 104, + "line": 106, "column": 49 }, "end": { - "line": 104, + "line": 106, "column": 50 } } @@ -34561,15 +35267,15 @@ "binop": null }, "value": "pChild", - "start": 5287, - "end": 5293, + "start": 5370, + "end": 5376, "loc": { "start": { - "line": 105, + "line": 107, "column": 24 }, "end": { - "line": 105, + "line": 107, "column": 30 } } @@ -34587,15 +35293,15 @@ "binop": null, "updateContext": null }, - "start": 5293, - "end": 5294, + "start": 5376, + "end": 5377, "loc": { "start": { - "line": 105, + "line": 107, "column": 30 }, "end": { - "line": 105, + "line": 107, "column": 31 } } @@ -34613,15 +35319,15 @@ "binop": null }, "value": "x", - "start": 5294, - "end": 5295, + "start": 5377, + "end": 5378, "loc": { "start": { - "line": 105, + "line": 107, "column": 31 }, "end": { - "line": 105, + "line": 107, "column": 32 } } @@ -34640,15 +35346,15 @@ "updateContext": null }, "value": "=", - "start": 5296, - "end": 5297, + "start": 5379, + "end": 5380, "loc": { "start": { - "line": 105, + "line": 107, "column": 33 }, "end": { - "line": 105, + "line": 107, "column": 34 } } @@ -34668,15 +35374,15 @@ "updateContext": null }, "value": "this", - "start": 5298, - "end": 5302, + "start": 5381, + "end": 5385, "loc": { "start": { - "line": 105, + "line": 107, "column": 35 }, "end": { - "line": 105, + "line": 107, "column": 39 } } @@ -34694,15 +35400,15 @@ "binop": null, "updateContext": null }, - "start": 5302, - "end": 5303, + "start": 5385, + "end": 5386, "loc": { "start": { - "line": 105, + "line": 107, "column": 39 }, "end": { - "line": 105, + "line": 107, "column": 40 } } @@ -34720,15 +35426,15 @@ "binop": null }, "value": "x", - "start": 5303, - "end": 5304, + "start": 5386, + "end": 5387, "loc": { "start": { - "line": 105, + "line": 107, "column": 40 }, "end": { - "line": 105, + "line": 107, "column": 41 } } @@ -34747,15 +35453,15 @@ "updateContext": null }, "value": "+", - "start": 5305, - "end": 5306, + "start": 5388, + "end": 5389, "loc": { "start": { - "line": 105, + "line": 107, "column": 42 }, "end": { - "line": 105, + "line": 107, "column": 43 } } @@ -34773,15 +35479,15 @@ "binop": null }, "value": "pChild", - "start": 5307, - "end": 5313, + "start": 5390, + "end": 5396, "loc": { "start": { - "line": 105, + "line": 107, "column": 44 }, "end": { - "line": 105, + "line": 107, "column": 50 } } @@ -34799,15 +35505,15 @@ "binop": null, "updateContext": null }, - "start": 5313, - "end": 5314, + "start": 5396, + "end": 5397, "loc": { "start": { - "line": 105, + "line": 107, "column": 50 }, "end": { - "line": 105, + "line": 107, "column": 51 } } @@ -34825,15 +35531,15 @@ "binop": null }, "value": "relativeX", - "start": 5314, - "end": 5323, + "start": 5397, + "end": 5406, "loc": { "start": { - "line": 105, + "line": 107, "column": 51 }, "end": { - "line": 105, + "line": 107, "column": 60 } } @@ -34851,15 +35557,15 @@ "binop": null, "updateContext": null }, - "start": 5323, - "end": 5324, + "start": 5406, + "end": 5407, "loc": { "start": { - "line": 105, + "line": 107, "column": 60 }, "end": { - "line": 105, + "line": 107, "column": 61 } } @@ -34877,15 +35583,15 @@ "binop": null }, "value": "pChild", - "start": 5350, - "end": 5356, + "start": 5433, + "end": 5439, "loc": { "start": { - "line": 106, + "line": 108, "column": 24 }, "end": { - "line": 106, + "line": 108, "column": 30 } } @@ -34903,15 +35609,15 @@ "binop": null, "updateContext": null }, - "start": 5356, - "end": 5357, + "start": 5439, + "end": 5440, "loc": { "start": { - "line": 106, + "line": 108, "column": 30 }, "end": { - "line": 106, + "line": 108, "column": 31 } } @@ -34929,15 +35635,15 @@ "binop": null }, "value": "y", - "start": 5357, - "end": 5358, + "start": 5440, + "end": 5441, "loc": { "start": { - "line": 106, + "line": 108, "column": 31 }, "end": { - "line": 106, + "line": 108, "column": 32 } } @@ -34956,15 +35662,15 @@ "updateContext": null }, "value": "=", - "start": 5359, - "end": 5360, + "start": 5442, + "end": 5443, "loc": { "start": { - "line": 106, + "line": 108, "column": 33 }, "end": { - "line": 106, + "line": 108, "column": 34 } } @@ -34984,15 +35690,15 @@ "updateContext": null }, "value": "this", - "start": 5361, - "end": 5365, + "start": 5444, + "end": 5448, "loc": { "start": { - "line": 106, + "line": 108, "column": 35 }, "end": { - "line": 106, + "line": 108, "column": 39 } } @@ -35010,15 +35716,15 @@ "binop": null, "updateContext": null }, - "start": 5365, - "end": 5366, + "start": 5448, + "end": 5449, "loc": { "start": { - "line": 106, + "line": 108, "column": 39 }, "end": { - "line": 106, + "line": 108, "column": 40 } } @@ -35036,15 +35742,15 @@ "binop": null }, "value": "y", - "start": 5366, - "end": 5367, + "start": 5449, + "end": 5450, "loc": { "start": { - "line": 106, + "line": 108, "column": 40 }, "end": { - "line": 106, + "line": 108, "column": 41 } } @@ -35063,15 +35769,15 @@ "updateContext": null }, "value": "+", - "start": 5368, - "end": 5369, + "start": 5451, + "end": 5452, "loc": { "start": { - "line": 106, + "line": 108, "column": 42 }, "end": { - "line": 106, + "line": 108, "column": 43 } } @@ -35089,15 +35795,15 @@ "binop": null }, "value": "pChild", - "start": 5370, - "end": 5376, + "start": 5453, + "end": 5459, "loc": { "start": { - "line": 106, + "line": 108, "column": 44 }, "end": { - "line": 106, + "line": 108, "column": 50 } } @@ -35115,15 +35821,15 @@ "binop": null, "updateContext": null }, - "start": 5376, - "end": 5377, + "start": 5459, + "end": 5460, "loc": { "start": { - "line": 106, + "line": 108, "column": 50 }, "end": { - "line": 106, + "line": 108, "column": 51 } } @@ -35141,15 +35847,15 @@ "binop": null }, "value": "relativeY", - "start": 5377, - "end": 5386, + "start": 5460, + "end": 5469, "loc": { "start": { - "line": 106, + "line": 108, "column": 51 }, "end": { - "line": 106, + "line": 108, "column": 60 } } @@ -35167,15 +35873,15 @@ "binop": null, "updateContext": null }, - "start": 5386, - "end": 5387, + "start": 5469, + "end": 5470, "loc": { "start": { - "line": 106, + "line": 108, "column": 60 }, "end": { - "line": 106, + "line": 108, "column": 61 } } @@ -35193,15 +35899,15 @@ "binop": null }, "value": "pChild", - "start": 5413, - "end": 5419, + "start": 5496, + "end": 5502, "loc": { "start": { - "line": 107, + "line": 109, "column": 24 }, "end": { - "line": 107, + "line": 109, "column": 30 } } @@ -35219,15 +35925,15 @@ "binop": null, "updateContext": null }, - "start": 5419, - "end": 5420, + "start": 5502, + "end": 5503, "loc": { "start": { - "line": 107, + "line": 109, "column": 30 }, "end": { - "line": 107, + "line": 109, "column": 31 } } @@ -35245,15 +35951,15 @@ "binop": null }, "value": "mapName", - "start": 5420, - "end": 5427, + "start": 5503, + "end": 5510, "loc": { "start": { - "line": 107, + "line": 109, "column": 31 }, "end": { - "line": 107, + "line": 109, "column": 38 } } @@ -35272,15 +35978,15 @@ "updateContext": null }, "value": "=", - "start": 5428, - "end": 5429, + "start": 5511, + "end": 5512, "loc": { "start": { - "line": 107, + "line": 109, "column": 39 }, "end": { - "line": 107, + "line": 109, "column": 40 } } @@ -35300,15 +36006,15 @@ "updateContext": null }, "value": "this", - "start": 5430, - "end": 5434, + "start": 5513, + "end": 5517, "loc": { "start": { - "line": 107, + "line": 109, "column": 41 }, "end": { - "line": 107, + "line": 109, "column": 45 } } @@ -35326,15 +36032,15 @@ "binop": null, "updateContext": null }, - "start": 5434, - "end": 5435, + "start": 5517, + "end": 5518, "loc": { "start": { - "line": 107, + "line": 109, "column": 45 }, "end": { - "line": 107, + "line": 109, "column": 46 } } @@ -35352,15 +36058,15 @@ "binop": null }, "value": "mapName", - "start": 5435, - "end": 5442, + "start": 5518, + "end": 5525, "loc": { "start": { - "line": 107, + "line": 109, "column": 46 }, "end": { - "line": 107, + "line": 109, "column": 53 } } @@ -35378,15 +36084,15 @@ "binop": null, "updateContext": null }, - "start": 5442, - "end": 5443, + "start": 5525, + "end": 5526, "loc": { "start": { - "line": 107, + "line": 109, "column": 53 }, "end": { - "line": 107, + "line": 109, "column": 54 } } @@ -35403,15 +36109,15 @@ "postfix": false, "binop": null }, - "start": 5465, - "end": 5466, + "start": 5548, + "end": 5549, "loc": { "start": { - "line": 108, + "line": 110, "column": 20 }, "end": { - "line": 108, + "line": 110, "column": 21 } } @@ -35428,15 +36134,15 @@ "postfix": false, "binop": null }, - "start": 5466, - "end": 5467, + "start": 5549, + "end": 5550, "loc": { "start": { - "line": 108, + "line": 110, "column": 21 }, "end": { - "line": 108, + "line": 110, "column": 22 } } @@ -35454,15 +36160,15 @@ "binop": null, "updateContext": null }, - "start": 5467, - "end": 5468, + "start": 5550, + "end": 5551, "loc": { "start": { - "line": 108, + "line": 110, "column": 22 }, "end": { - "line": 108, + "line": 110, "column": 23 } } @@ -35479,15 +36185,15 @@ "postfix": false, "binop": null }, - "start": 5486, - "end": 5487, + "start": 5569, + "end": 5570, "loc": { "start": { - "line": 109, + "line": 111, "column": 16 }, "end": { - "line": 109, + "line": 111, "column": 17 } } @@ -35504,15 +36210,15 @@ "postfix": false, "binop": null }, - "start": 5501, - "end": 5502, + "start": 5584, + "end": 5585, "loc": { "start": { - "line": 110, + "line": 112, "column": 12 }, "end": { - "line": 110, + "line": 112, "column": 13 } } @@ -35530,15 +36236,15 @@ "binop": null }, "value": "pInstance", - "start": 5516, - "end": 5525, + "start": 5599, + "end": 5608, "loc": { "start": { - "line": 111, + "line": 113, "column": 12 }, "end": { - "line": 111, + "line": 113, "column": 21 } } @@ -35556,15 +36262,15 @@ "binop": null, "updateContext": null }, - "start": 5525, - "end": 5526, + "start": 5608, + "end": 5609, "loc": { "start": { - "line": 111, + "line": 113, "column": 21 }, "end": { - "line": 111, + "line": 113, "column": 22 } } @@ -35582,15 +36288,15 @@ "binop": null }, "value": "x", - "start": 5526, - "end": 5527, + "start": 5609, + "end": 5610, "loc": { "start": { - "line": 111, + "line": 113, "column": 22 }, "end": { - "line": 111, + "line": 113, "column": 23 } } @@ -35609,15 +36315,15 @@ "updateContext": null }, "value": "=", - "start": 5528, - "end": 5529, + "start": 5611, + "end": 5612, "loc": { "start": { - "line": 111, + "line": 113, "column": 24 }, "end": { - "line": 111, + "line": 113, "column": 25 } } @@ -35635,15 +36341,15 @@ "binop": null }, "value": "pX", - "start": 5530, - "end": 5532, + "start": 5613, + "end": 5615, "loc": { "start": { - "line": 111, + "line": 113, "column": 26 }, "end": { - "line": 111, + "line": 113, "column": 28 } } @@ -35661,15 +36367,15 @@ "binop": null, "updateContext": null }, - "start": 5532, - "end": 5533, + "start": 5615, + "end": 5616, "loc": { "start": { - "line": 111, + "line": 113, "column": 28 }, "end": { - "line": 111, + "line": 113, "column": 29 } } @@ -35687,15 +36393,15 @@ "binop": null }, "value": "pInstance", - "start": 5547, - "end": 5556, + "start": 5630, + "end": 5639, "loc": { "start": { - "line": 112, + "line": 114, "column": 12 }, "end": { - "line": 112, + "line": 114, "column": 21 } } @@ -35713,15 +36419,15 @@ "binop": null, "updateContext": null }, - "start": 5556, - "end": 5557, + "start": 5639, + "end": 5640, "loc": { "start": { - "line": 112, + "line": 114, "column": 21 }, "end": { - "line": 112, + "line": 114, "column": 22 } } @@ -35739,15 +36445,15 @@ "binop": null }, "value": "y", - "start": 5557, - "end": 5558, + "start": 5640, + "end": 5641, "loc": { "start": { - "line": 112, + "line": 114, "column": 22 }, "end": { - "line": 112, + "line": 114, "column": 23 } } @@ -35766,15 +36472,15 @@ "updateContext": null }, "value": "=", - "start": 5559, - "end": 5560, + "start": 5642, + "end": 5643, "loc": { "start": { - "line": 112, + "line": 114, "column": 24 }, "end": { - "line": 112, + "line": 114, "column": 25 } } @@ -35792,15 +36498,15 @@ "binop": null }, "value": "pY", - "start": 5561, - "end": 5563, + "start": 5644, + "end": 5646, "loc": { "start": { - "line": 112, + "line": 114, "column": 26 }, "end": { - "line": 112, + "line": 114, "column": 28 } } @@ -35818,15 +36524,15 @@ "binop": null, "updateContext": null }, - "start": 5563, - "end": 5564, + "start": 5646, + "end": 5647, "loc": { "start": { - "line": 112, + "line": 114, "column": 28 }, "end": { - "line": 112, + "line": 114, "column": 29 } } @@ -35844,15 +36550,15 @@ "binop": null }, "value": "pInstance", - "start": 5578, - "end": 5587, + "start": 5661, + "end": 5670, "loc": { "start": { - "line": 113, + "line": 115, "column": 12 }, "end": { - "line": 113, + "line": 115, "column": 21 } } @@ -35870,15 +36576,15 @@ "binop": null, "updateContext": null }, - "start": 5587, - "end": 5588, + "start": 5670, + "end": 5671, "loc": { "start": { - "line": 113, + "line": 115, "column": 21 }, "end": { - "line": 113, + "line": 115, "column": 22 } } @@ -35896,15 +36602,15 @@ "binop": null }, "value": "mapName", - "start": 5588, - "end": 5595, + "start": 5671, + "end": 5678, "loc": { "start": { - "line": 113, + "line": 115, "column": 22 }, "end": { - "line": 113, + "line": 115, "column": 29 } } @@ -35923,15 +36629,15 @@ "updateContext": null }, "value": "=", - "start": 5596, - "end": 5597, + "start": 5679, + "end": 5680, "loc": { "start": { - "line": 113, + "line": 115, "column": 30 }, "end": { - "line": 113, + "line": 115, "column": 31 } } @@ -35949,15 +36655,15 @@ "binop": null }, "value": "pMap", - "start": 5598, - "end": 5602, + "start": 5681, + "end": 5685, "loc": { "start": { - "line": 113, + "line": 115, "column": 32 }, "end": { - "line": 113, + "line": 115, "column": 36 } } @@ -35975,15 +36681,15 @@ "binop": null, "updateContext": null }, - "start": 5602, - "end": 5603, + "start": 5685, + "end": 5686, "loc": { "start": { - "line": 113, + "line": 115, "column": 36 }, "end": { - "line": 113, + "line": 115, "column": 37 } } @@ -36000,15 +36706,15 @@ "postfix": false, "binop": null }, - "start": 5613, - "end": 5614, + "start": 5696, + "end": 5697, "loc": { "start": { - "line": 114, + "line": 116, "column": 8 }, "end": { - "line": 114, + "line": 116, "column": 9 } } @@ -36028,15 +36734,15 @@ "updateContext": null }, "value": "else", - "start": 5615, - "end": 5619, + "start": 5698, + "end": 5702, "loc": { "start": { - "line": 114, + "line": 116, "column": 10 }, "end": { - "line": 114, + "line": 116, "column": 14 } } @@ -36053,15 +36759,15 @@ "postfix": false, "binop": null }, - "start": 5620, - "end": 5621, + "start": 5703, + "end": 5704, "loc": { "start": { - "line": 114, + "line": 116, "column": 15 }, "end": { - "line": 114, + "line": 116, "column": 16 } } @@ -36081,15 +36787,15 @@ "updateContext": null }, "value": "this", - "start": 5635, - "end": 5639, + "start": 5718, + "end": 5722, "loc": { "start": { - "line": 115, + "line": 117, "column": 12 }, "end": { - "line": 115, + "line": 117, "column": 16 } } @@ -36107,15 +36813,15 @@ "binop": null, "updateContext": null }, - "start": 5639, - "end": 5640, + "start": 5722, + "end": 5723, "loc": { "start": { - "line": 115, + "line": 117, "column": 16 }, "end": { - "line": 115, + "line": 117, "column": 17 } } @@ -36133,15 +36839,15 @@ "binop": null }, "value": "logger", - "start": 5640, - "end": 5646, + "start": 5723, + "end": 5729, "loc": { "start": { - "line": 115, + "line": 117, "column": 17 }, "end": { - "line": 115, + "line": 117, "column": 23 } } @@ -36159,15 +36865,15 @@ "binop": null, "updateContext": null }, - "start": 5646, - "end": 5647, + "start": 5729, + "end": 5730, "loc": { "start": { - "line": 115, + "line": 117, "column": 23 }, "end": { - "line": 115, + "line": 117, "column": 24 } } @@ -36185,15 +36891,15 @@ "binop": null }, "value": "prefix", - "start": 5647, - "end": 5653, + "start": 5730, + "end": 5736, "loc": { "start": { - "line": 115, + "line": 117, "column": 24 }, "end": { - "line": 115, + "line": 117, "column": 30 } } @@ -36210,15 +36916,15 @@ "postfix": false, "binop": null }, - "start": 5653, - "end": 5654, + "start": 5736, + "end": 5737, "loc": { "start": { - "line": 115, + "line": 117, "column": 30 }, "end": { - "line": 115, + "line": 117, "column": 31 } } @@ -36237,15 +36943,15 @@ "updateContext": null }, "value": "Parallax-Module", - "start": 5654, - "end": 5671, + "start": 5737, + "end": 5754, "loc": { "start": { - "line": 115, + "line": 117, "column": 31 }, "end": { - "line": 115, + "line": 117, "column": 48 } } @@ -36262,15 +36968,15 @@ "postfix": false, "binop": null }, - "start": 5671, - "end": 5672, + "start": 5754, + "end": 5755, "loc": { "start": { - "line": 115, + "line": 117, "column": 48 }, "end": { - "line": 115, + "line": 117, "column": 49 } } @@ -36288,15 +36994,15 @@ "binop": null, "updateContext": null }, - "start": 5672, - "end": 5673, + "start": 5755, + "end": 5756, "loc": { "start": { - "line": 115, + "line": 117, "column": 49 }, "end": { - "line": 115, + "line": 117, "column": 50 } } @@ -36314,15 +37020,15 @@ "binop": null }, "value": "error", - "start": 5673, - "end": 5678, + "start": 5756, + "end": 5761, "loc": { "start": { - "line": 115, + "line": 117, "column": 50 }, "end": { - "line": 115, + "line": 117, "column": 55 } } @@ -36339,15 +37045,15 @@ "postfix": false, "binop": null }, - "start": 5678, - "end": 5679, + "start": 5761, + "end": 5762, "loc": { "start": { - "line": 115, + "line": 117, "column": 55 }, "end": { - "line": 115, + "line": 117, "column": 56 } } @@ -36366,15 +37072,15 @@ "updateContext": null }, "value": "VYLO not found! This module depends on the VYLO object being in the global name space.", - "start": 5679, - "end": 5767, + "start": 5762, + "end": 5850, "loc": { "start": { - "line": 115, + "line": 117, "column": 56 }, "end": { - "line": 115, + "line": 117, "column": 144 } } @@ -36391,15 +37097,15 @@ "postfix": false, "binop": null }, - "start": 5767, - "end": 5768, + "start": 5850, + "end": 5851, "loc": { "start": { - "line": 115, + "line": 117, "column": 144 }, "end": { - "line": 115, + "line": 117, "column": 145 } } @@ -36417,15 +37123,15 @@ "binop": null, "updateContext": null }, - "start": 5768, - "end": 5769, + "start": 5851, + "end": 5852, "loc": { "start": { - "line": 115, + "line": 117, "column": 145 }, "end": { - "line": 115, + "line": 117, "column": 146 } } @@ -36442,15 +37148,15 @@ "postfix": false, "binop": null }, - "start": 5779, - "end": 5780, + "start": 5862, + "end": 5863, "loc": { "start": { - "line": 116, + "line": 118, "column": 8 }, "end": { - "line": 116, + "line": 118, "column": 9 } } @@ -36467,15 +37173,15 @@ "postfix": false, "binop": null }, - "start": 5786, - "end": 5787, + "start": 5869, + "end": 5870, "loc": { "start": { - "line": 117, + "line": 119, "column": 4 }, "end": { - "line": 117, + "line": 119, "column": 5 } } @@ -36483,15 +37189,15 @@ { "type": "CommentBlock", "value": "*\r\n * Removes an instance to the parallax system.\r\n * @param {Object} pInstance - The instance to remove to the parallax system.\r\n ", - "start": 5793, - "end": 5940, + "start": 5876, + "end": 6023, "loc": { "start": { - "line": 118, + "line": 120, "column": 4 }, "end": { - "line": 121, + "line": 123, "column": 7 } } @@ -36509,15 +37215,15 @@ "binop": null }, "value": "remove", - "start": 5946, - "end": 5952, + "start": 6029, + "end": 6035, "loc": { "start": { - "line": 122, + "line": 124, "column": 4 }, "end": { - "line": 122, + "line": 124, "column": 10 } } @@ -36534,15 +37240,15 @@ "postfix": false, "binop": null }, - "start": 5952, - "end": 5953, + "start": 6035, + "end": 6036, "loc": { "start": { - "line": 122, + "line": 124, "column": 10 }, "end": { - "line": 122, + "line": 124, "column": 11 } } @@ -36560,15 +37266,15 @@ "binop": null }, "value": "pInstance", - "start": 5953, - "end": 5962, + "start": 6036, + "end": 6045, "loc": { "start": { - "line": 122, + "line": 124, "column": 11 }, "end": { - "line": 122, + "line": 124, "column": 20 } } @@ -36585,15 +37291,15 @@ "postfix": false, "binop": null }, - "start": 5962, - "end": 5963, + "start": 6045, + "end": 6046, "loc": { "start": { - "line": 122, + "line": 124, "column": 20 }, "end": { - "line": 122, + "line": 124, "column": 21 } } @@ -36610,15 +37316,15 @@ "postfix": false, "binop": null }, - "start": 5964, - "end": 5965, + "start": 6047, + "end": 6048, "loc": { "start": { - "line": 122, + "line": 124, "column": 22 }, "end": { - "line": 122, + "line": 124, "column": 23 } } @@ -36638,15 +37344,15 @@ "updateContext": null }, "value": "if", - "start": 5975, - "end": 5977, + "start": 6058, + "end": 6060, "loc": { "start": { - "line": 123, + "line": 125, "column": 8 }, "end": { - "line": 123, + "line": 125, "column": 10 } } @@ -36663,15 +37369,15 @@ "postfix": false, "binop": null }, - "start": 5978, - "end": 5979, + "start": 6061, + "end": 6062, "loc": { "start": { - "line": 123, + "line": 125, "column": 11 }, "end": { - "line": 123, + "line": 125, "column": 12 } } @@ -36689,15 +37395,15 @@ "binop": null }, "value": "pInstance", - "start": 5979, - "end": 5988, + "start": 6062, + "end": 6071, "loc": { "start": { - "line": 123, + "line": 125, "column": 12 }, "end": { - "line": 123, + "line": 125, "column": 21 } } @@ -36714,15 +37420,15 @@ "postfix": false, "binop": null }, - "start": 5988, - "end": 5989, + "start": 6071, + "end": 6072, "loc": { "start": { - "line": 123, + "line": 125, "column": 21 }, "end": { - "line": 123, + "line": 125, "column": 22 } } @@ -36739,15 +37445,15 @@ "postfix": false, "binop": null }, - "start": 5990, - "end": 5991, + "start": 6073, + "end": 6074, "loc": { "start": { - "line": 123, + "line": 125, "column": 23 }, "end": { - "line": 123, + "line": 125, "column": 24 } } @@ -36767,15 +37473,15 @@ "updateContext": null }, "value": "if", - "start": 6005, - "end": 6007, + "start": 6088, + "end": 6090, "loc": { "start": { - "line": 124, + "line": 126, "column": 12 }, "end": { - "line": 124, + "line": 126, "column": 14 } } @@ -36792,15 +37498,15 @@ "postfix": false, "binop": null }, - "start": 6008, - "end": 6009, + "start": 6091, + "end": 6092, "loc": { "start": { - "line": 124, + "line": 126, "column": 15 }, "end": { - "line": 124, + "line": 126, "column": 16 } } @@ -36820,15 +37526,15 @@ "updateContext": null }, "value": "this", - "start": 6009, - "end": 6013, + "start": 6092, + "end": 6096, "loc": { "start": { - "line": 124, + "line": 126, "column": 16 }, "end": { - "line": 124, + "line": 126, "column": 20 } } @@ -36846,15 +37552,15 @@ "binop": null, "updateContext": null }, - "start": 6013, - "end": 6014, + "start": 6096, + "end": 6097, "loc": { "start": { - "line": 124, + "line": 126, "column": 20 }, "end": { - "line": 124, + "line": 126, "column": 21 } } @@ -36872,15 +37578,15 @@ "binop": null }, "value": "instances", - "start": 6014, - "end": 6023, + "start": 6097, + "end": 6106, "loc": { "start": { - "line": 124, + "line": 126, "column": 21 }, "end": { - "line": 124, + "line": 126, "column": 30 } } @@ -36898,15 +37604,15 @@ "binop": null, "updateContext": null }, - "start": 6023, - "end": 6024, + "start": 6106, + "end": 6107, "loc": { "start": { - "line": 124, + "line": 126, "column": 30 }, "end": { - "line": 124, + "line": 126, "column": 31 } } @@ -36924,15 +37630,15 @@ "binop": null }, "value": "includes", - "start": 6024, - "end": 6032, + "start": 6107, + "end": 6115, "loc": { "start": { - "line": 124, + "line": 126, "column": 31 }, "end": { - "line": 124, + "line": 126, "column": 39 } } @@ -36949,15 +37655,15 @@ "postfix": false, "binop": null }, - "start": 6032, - "end": 6033, + "start": 6115, + "end": 6116, "loc": { "start": { - "line": 124, + "line": 126, "column": 39 }, "end": { - "line": 124, + "line": 126, "column": 40 } } @@ -36975,15 +37681,15 @@ "binop": null }, "value": "pInstance", - "start": 6033, - "end": 6042, + "start": 6116, + "end": 6125, "loc": { "start": { - "line": 124, + "line": 126, "column": 40 }, "end": { - "line": 124, + "line": 126, "column": 49 } } @@ -37000,15 +37706,15 @@ "postfix": false, "binop": null }, - "start": 6042, - "end": 6043, + "start": 6125, + "end": 6126, "loc": { "start": { - "line": 124, + "line": 126, "column": 49 }, "end": { - "line": 124, + "line": 126, "column": 50 } } @@ -37025,15 +37731,15 @@ "postfix": false, "binop": null }, - "start": 6043, - "end": 6044, + "start": 6126, + "end": 6127, "loc": { "start": { - "line": 124, + "line": 126, "column": 50 }, "end": { - "line": 124, + "line": 126, "column": 51 } } @@ -37050,15 +37756,15 @@ "postfix": false, "binop": null }, - "start": 6045, - "end": 6046, + "start": 6128, + "end": 6129, "loc": { "start": { - "line": 124, + "line": 126, "column": 52 }, "end": { - "line": 124, + "line": 126, "column": 53 } } @@ -37078,15 +37784,15 @@ "updateContext": null }, "value": "this", - "start": 6064, - "end": 6068, + "start": 6147, + "end": 6151, "loc": { "start": { - "line": 125, + "line": 127, "column": 16 }, "end": { - "line": 125, + "line": 127, "column": 20 } } @@ -37104,15 +37810,15 @@ "binop": null, "updateContext": null }, - "start": 6068, - "end": 6069, + "start": 6151, + "end": 6152, "loc": { "start": { - "line": 125, + "line": 127, "column": 20 }, "end": { - "line": 125, + "line": 127, "column": 21 } } @@ -37130,15 +37836,15 @@ "binop": null }, "value": "instances", - "start": 6069, - "end": 6078, + "start": 6152, + "end": 6161, "loc": { "start": { - "line": 125, + "line": 127, "column": 21 }, "end": { - "line": 125, + "line": 127, "column": 30 } } @@ -37156,15 +37862,15 @@ "binop": null, "updateContext": null }, - "start": 6078, - "end": 6079, + "start": 6161, + "end": 6162, "loc": { "start": { - "line": 125, + "line": 127, "column": 30 }, "end": { - "line": 125, + "line": 127, "column": 31 } } @@ -37182,15 +37888,15 @@ "binop": null }, "value": "splice", - "start": 6079, - "end": 6085, + "start": 6162, + "end": 6168, "loc": { "start": { - "line": 125, + "line": 127, "column": 31 }, "end": { - "line": 125, + "line": 127, "column": 37 } } @@ -37207,15 +37913,15 @@ "postfix": false, "binop": null }, - "start": 6085, - "end": 6086, + "start": 6168, + "end": 6169, "loc": { "start": { - "line": 125, + "line": 127, "column": 37 }, "end": { - "line": 125, + "line": 127, "column": 38 } } @@ -37235,15 +37941,15 @@ "updateContext": null }, "value": "this", - "start": 6086, - "end": 6090, + "start": 6169, + "end": 6173, "loc": { "start": { - "line": 125, + "line": 127, "column": 38 }, "end": { - "line": 125, + "line": 127, "column": 42 } } @@ -37261,15 +37967,15 @@ "binop": null, "updateContext": null }, - "start": 6090, - "end": 6091, + "start": 6173, + "end": 6174, "loc": { "start": { - "line": 125, + "line": 127, "column": 42 }, "end": { - "line": 125, + "line": 127, "column": 43 } } @@ -37287,15 +37993,15 @@ "binop": null }, "value": "instances", - "start": 6091, - "end": 6100, + "start": 6174, + "end": 6183, "loc": { "start": { - "line": 125, + "line": 127, "column": 43 }, "end": { - "line": 125, + "line": 127, "column": 52 } } @@ -37313,15 +38019,15 @@ "binop": null, "updateContext": null }, - "start": 6100, - "end": 6101, + "start": 6183, + "end": 6184, "loc": { "start": { - "line": 125, + "line": 127, "column": 52 }, "end": { - "line": 125, + "line": 127, "column": 53 } } @@ -37339,15 +38045,15 @@ "binop": null }, "value": "indexOf", - "start": 6101, - "end": 6108, + "start": 6184, + "end": 6191, "loc": { "start": { - "line": 125, + "line": 127, "column": 53 }, "end": { - "line": 125, + "line": 127, "column": 60 } } @@ -37364,15 +38070,15 @@ "postfix": false, "binop": null }, - "start": 6108, - "end": 6109, + "start": 6191, + "end": 6192, "loc": { "start": { - "line": 125, + "line": 127, "column": 60 }, "end": { - "line": 125, + "line": 127, "column": 61 } } @@ -37390,15 +38096,15 @@ "binop": null }, "value": "pInstance", - "start": 6109, - "end": 6118, + "start": 6192, + "end": 6201, "loc": { "start": { - "line": 125, + "line": 127, "column": 61 }, "end": { - "line": 125, + "line": 127, "column": 70 } } @@ -37415,15 +38121,15 @@ "postfix": false, "binop": null }, - "start": 6118, - "end": 6119, + "start": 6201, + "end": 6202, "loc": { "start": { - "line": 125, + "line": 127, "column": 70 }, "end": { - "line": 125, + "line": 127, "column": 71 } } @@ -37441,15 +38147,15 @@ "binop": null, "updateContext": null }, - "start": 6119, - "end": 6120, + "start": 6202, + "end": 6203, "loc": { "start": { - "line": 125, + "line": 127, "column": 71 }, "end": { - "line": 125, + "line": 127, "column": 72 } } @@ -37468,15 +38174,15 @@ "updateContext": null }, "value": 1, - "start": 6121, - "end": 6122, + "start": 6204, + "end": 6205, "loc": { "start": { - "line": 125, + "line": 127, "column": 73 }, "end": { - "line": 125, + "line": 127, "column": 74 } } @@ -37493,15 +38199,15 @@ "postfix": false, "binop": null }, - "start": 6122, - "end": 6123, + "start": 6205, + "end": 6206, "loc": { "start": { - "line": 125, + "line": 127, "column": 74 }, "end": { - "line": 125, + "line": 127, "column": 75 } } @@ -37519,15 +38225,15 @@ "binop": null, "updateContext": null }, - "start": 6123, - "end": 6124, + "start": 6206, + "end": 6207, "loc": { "start": { - "line": 125, + "line": 127, "column": 75 }, "end": { - "line": 125, + "line": 127, "column": 76 } } @@ -37544,15 +38250,15 @@ "postfix": false, "binop": null }, - "start": 6138, - "end": 6139, + "start": 6221, + "end": 6222, "loc": { "start": { - "line": 126, + "line": 128, "column": 12 }, "end": { - "line": 126, + "line": 128, "column": 13 } } @@ -37569,15 +38275,15 @@ "postfix": false, "binop": null }, - "start": 6149, - "end": 6150, + "start": 6232, + "end": 6233, "loc": { "start": { - "line": 127, + "line": 129, "column": 8 }, "end": { - "line": 127, + "line": 129, "column": 9 } } @@ -37597,15 +38303,15 @@ "updateContext": null }, "value": "else", - "start": 6151, - "end": 6155, + "start": 6234, + "end": 6238, "loc": { "start": { - "line": 127, + "line": 129, "column": 10 }, "end": { - "line": 127, + "line": 129, "column": 14 } } @@ -37622,15 +38328,15 @@ "postfix": false, "binop": null }, - "start": 6156, - "end": 6157, + "start": 6239, + "end": 6240, "loc": { "start": { - "line": 127, + "line": 129, "column": 15 }, "end": { - "line": 127, + "line": 129, "column": 16 } } @@ -37650,15 +38356,15 @@ "updateContext": null }, "value": "this", - "start": 6171, - "end": 6175, + "start": 6254, + "end": 6258, "loc": { "start": { - "line": 128, + "line": 130, "column": 12 }, "end": { - "line": 128, + "line": 130, "column": 16 } } @@ -37676,15 +38382,15 @@ "binop": null, "updateContext": null }, - "start": 6175, - "end": 6176, + "start": 6258, + "end": 6259, "loc": { "start": { - "line": 128, + "line": 130, "column": 16 }, "end": { - "line": 128, + "line": 130, "column": 17 } } @@ -37702,15 +38408,15 @@ "binop": null }, "value": "logger", - "start": 6176, - "end": 6182, + "start": 6259, + "end": 6265, "loc": { "start": { - "line": 128, + "line": 130, "column": 17 }, "end": { - "line": 128, + "line": 130, "column": 23 } } @@ -37728,15 +38434,15 @@ "binop": null, "updateContext": null }, - "start": 6182, - "end": 6183, + "start": 6265, + "end": 6266, "loc": { "start": { - "line": 128, + "line": 130, "column": 23 }, "end": { - "line": 128, + "line": 130, "column": 24 } } @@ -37754,15 +38460,15 @@ "binop": null }, "value": "prefix", - "start": 6183, - "end": 6189, + "start": 6266, + "end": 6272, "loc": { "start": { - "line": 128, + "line": 130, "column": 24 }, "end": { - "line": 128, + "line": 130, "column": 30 } } @@ -37779,15 +38485,15 @@ "postfix": false, "binop": null }, - "start": 6189, - "end": 6190, + "start": 6272, + "end": 6273, "loc": { "start": { - "line": 128, + "line": 130, "column": 30 }, "end": { - "line": 128, + "line": 130, "column": 31 } } @@ -37806,15 +38512,15 @@ "updateContext": null }, "value": "Parallax-Module", - "start": 6190, - "end": 6207, + "start": 6273, + "end": 6290, "loc": { "start": { - "line": 128, + "line": 130, "column": 31 }, "end": { - "line": 128, + "line": 130, "column": 48 } } @@ -37831,15 +38537,15 @@ "postfix": false, "binop": null }, - "start": 6207, - "end": 6208, + "start": 6290, + "end": 6291, "loc": { "start": { - "line": 128, + "line": 130, "column": 48 }, "end": { - "line": 128, + "line": 130, "column": 49 } } @@ -37857,15 +38563,15 @@ "binop": null, "updateContext": null }, - "start": 6208, - "end": 6209, + "start": 6291, + "end": 6292, "loc": { "start": { - "line": 128, + "line": 130, "column": 49 }, "end": { - "line": 128, + "line": 130, "column": 50 } } @@ -37883,15 +38589,15 @@ "binop": null }, "value": "error", - "start": 6209, - "end": 6214, + "start": 6292, + "end": 6297, "loc": { "start": { - "line": 128, + "line": 130, "column": 50 }, "end": { - "line": 128, + "line": 130, "column": 55 } } @@ -37908,15 +38614,15 @@ "postfix": false, "binop": null }, - "start": 6214, - "end": 6215, + "start": 6297, + "end": 6298, "loc": { "start": { - "line": 128, + "line": 130, "column": 55 }, "end": { - "line": 128, + "line": 130, "column": 56 } } @@ -37935,15 +38641,15 @@ "updateContext": null }, "value": "No pInstance passed!", - "start": 6215, - "end": 6237, + "start": 6298, + "end": 6320, "loc": { "start": { - "line": 128, + "line": 130, "column": 56 }, "end": { - "line": 128, + "line": 130, "column": 78 } } @@ -37960,15 +38666,15 @@ "postfix": false, "binop": null }, - "start": 6237, - "end": 6238, + "start": 6320, + "end": 6321, "loc": { "start": { - "line": 128, + "line": 130, "column": 78 }, "end": { - "line": 128, + "line": 130, "column": 79 } } @@ -37986,15 +38692,15 @@ "binop": null, "updateContext": null }, - "start": 6238, - "end": 6239, + "start": 6321, + "end": 6322, "loc": { "start": { - "line": 128, + "line": 130, "column": 79 }, "end": { - "line": 128, + "line": 130, "column": 80 } } @@ -38011,15 +38717,15 @@ "postfix": false, "binop": null }, - "start": 6249, - "end": 6250, + "start": 6332, + "end": 6333, "loc": { "start": { - "line": 129, + "line": 131, "column": 8 }, "end": { - "line": 129, + "line": 131, "column": 9 } } @@ -38036,15 +38742,15 @@ "postfix": false, "binop": null }, - "start": 6256, - "end": 6257, + "start": 6339, + "end": 6340, "loc": { "start": { - "line": 130, + "line": 132, "column": 4 }, "end": { - "line": 130, + "line": 132, "column": 5 } } @@ -38052,15 +38758,15 @@ { "type": "CommentBlock", "value": "*\r\n * Updates the parallax system\r\n * @param {number} pCameraX - The x position of the camera.\r\n * @param {number} pCameraY - The y position of the camera.\r\n * @param {number} pSimulatedPosition - The simulated position. This is used to simulate a position larger than possible, but internally it treats it as its downscaled position.\r\n * One such reason for using this paramater would be to simulate a map larger than you actually have, to convince the parallax that it is infinite.\r\n ", - "start": 6263, - "end": 6777, + "start": 6346, + "end": 6860, "loc": { "start": { - "line": 131, + "line": 133, "column": 4 }, "end": { - "line": 137, + "line": 139, "column": 7 } } @@ -38078,15 +38784,15 @@ "binop": null }, "value": "update", - "start": 6783, - "end": 6789, + "start": 6866, + "end": 6872, "loc": { "start": { - "line": 138, + "line": 140, "column": 4 }, "end": { - "line": 138, + "line": 140, "column": 10 } } @@ -38103,15 +38809,15 @@ "postfix": false, "binop": null }, - "start": 6789, - "end": 6790, + "start": 6872, + "end": 6873, "loc": { "start": { - "line": 138, + "line": 140, "column": 10 }, "end": { - "line": 138, + "line": 140, "column": 11 } } @@ -38129,15 +38835,15 @@ "binop": null }, "value": "pCameraX", - "start": 6790, - "end": 6798, + "start": 6873, + "end": 6881, "loc": { "start": { - "line": 138, + "line": 140, "column": 11 }, "end": { - "line": 138, + "line": 140, "column": 19 } } @@ -38156,15 +38862,15 @@ "updateContext": null }, "value": "=", - "start": 6799, - "end": 6800, + "start": 6882, + "end": 6883, "loc": { "start": { - "line": 138, + "line": 140, "column": 20 }, "end": { - "line": 138, + "line": 140, "column": 21 } } @@ -38183,15 +38889,15 @@ "updateContext": null }, "value": 0, - "start": 6801, - "end": 6802, + "start": 6884, + "end": 6885, "loc": { "start": { - "line": 138, + "line": 140, "column": 22 }, "end": { - "line": 138, + "line": 140, "column": 23 } } @@ -38209,15 +38915,15 @@ "binop": null, "updateContext": null }, - "start": 6802, - "end": 6803, + "start": 6885, + "end": 6886, "loc": { "start": { - "line": 138, + "line": 140, "column": 23 }, "end": { - "line": 138, + "line": 140, "column": 24 } } @@ -38235,15 +38941,15 @@ "binop": null }, "value": "pCameraY", - "start": 6804, - "end": 6812, + "start": 6887, + "end": 6895, "loc": { "start": { - "line": 138, + "line": 140, "column": 25 }, "end": { - "line": 138, + "line": 140, "column": 33 } } @@ -38262,15 +38968,15 @@ "updateContext": null }, "value": "=", - "start": 6813, - "end": 6814, + "start": 6896, + "end": 6897, "loc": { "start": { - "line": 138, + "line": 140, "column": 34 }, "end": { - "line": 138, + "line": 140, "column": 35 } } @@ -38289,15 +38995,15 @@ "updateContext": null }, "value": 0, - "start": 6815, - "end": 6816, + "start": 6898, + "end": 6899, "loc": { "start": { - "line": 138, + "line": 140, "column": 36 }, "end": { - "line": 138, + "line": 140, "column": 37 } } @@ -38315,15 +39021,15 @@ "binop": null, "updateContext": null }, - "start": 6816, - "end": 6817, + "start": 6899, + "end": 6900, "loc": { "start": { - "line": 138, + "line": 140, "column": 37 }, "end": { - "line": 138, + "line": 140, "column": 38 } } @@ -38341,15 +39047,15 @@ "binop": null }, "value": "pSimulatedPosition", - "start": 6818, - "end": 6836, + "start": 6901, + "end": 6919, "loc": { "start": { - "line": 138, + "line": 140, "column": 39 }, "end": { - "line": 138, + "line": 140, "column": 57 } } @@ -38366,15 +39072,15 @@ "postfix": false, "binop": null }, - "start": 6836, - "end": 6837, + "start": 6919, + "end": 6920, "loc": { "start": { - "line": 138, + "line": 140, "column": 57 }, "end": { - "line": 138, + "line": 140, "column": 58 } } @@ -38391,15 +39097,15 @@ "postfix": false, "binop": null }, - "start": 6838, - "end": 6839, + "start": 6921, + "end": 6922, "loc": { "start": { - "line": 138, + "line": 140, "column": 59 }, "end": { - "line": 138, + "line": 140, "column": 60 } } @@ -38419,15 +39125,15 @@ "updateContext": null }, "value": "for", - "start": 6849, - "end": 6852, + "start": 6932, + "end": 6935, "loc": { "start": { - "line": 139, + "line": 141, "column": 8 }, "end": { - "line": 139, + "line": 141, "column": 11 } } @@ -38444,15 +39150,15 @@ "postfix": false, "binop": null }, - "start": 6853, - "end": 6854, + "start": 6936, + "end": 6937, "loc": { "start": { - "line": 139, + "line": 141, "column": 12 }, "end": { - "line": 139, + "line": 141, "column": 13 } } @@ -38472,15 +39178,15 @@ "updateContext": null }, "value": "const", - "start": 6854, - "end": 6859, + "start": 6937, + "end": 6942, "loc": { "start": { - "line": 139, + "line": 141, "column": 13 }, "end": { - "line": 139, + "line": 141, "column": 18 } } @@ -38498,15 +39204,15 @@ "binop": null }, "value": "instance", - "start": 6860, - "end": 6868, + "start": 6943, + "end": 6951, "loc": { "start": { - "line": 139, + "line": 141, "column": 19 }, "end": { - "line": 139, + "line": 141, "column": 27 } } @@ -38524,15 +39230,15 @@ "binop": null }, "value": "of", - "start": 6869, - "end": 6871, + "start": 6952, + "end": 6954, "loc": { "start": { - "line": 139, + "line": 141, "column": 28 }, "end": { - "line": 139, + "line": 141, "column": 30 } } @@ -38552,15 +39258,15 @@ "updateContext": null }, "value": "this", - "start": 6872, - "end": 6876, + "start": 6955, + "end": 6959, "loc": { "start": { - "line": 139, + "line": 141, "column": 31 }, "end": { - "line": 139, + "line": 141, "column": 35 } } @@ -38578,15 +39284,15 @@ "binop": null, "updateContext": null }, - "start": 6876, - "end": 6877, + "start": 6959, + "end": 6960, "loc": { "start": { - "line": 139, + "line": 141, "column": 35 }, "end": { - "line": 139, + "line": 141, "column": 36 } } @@ -38604,15 +39310,15 @@ "binop": null }, "value": "instances", - "start": 6877, - "end": 6886, + "start": 6960, + "end": 6969, "loc": { "start": { - "line": 139, + "line": 141, "column": 36 }, "end": { - "line": 139, + "line": 141, "column": 45 } } @@ -38629,15 +39335,15 @@ "postfix": false, "binop": null }, - "start": 6886, - "end": 6887, + "start": 6969, + "end": 6970, "loc": { "start": { - "line": 139, + "line": 141, "column": 45 }, "end": { - "line": 139, + "line": 141, "column": 46 } } @@ -38654,32 +39360,32 @@ "postfix": false, "binop": null }, - "start": 6888, - "end": 6889, + "start": 6971, + "end": 6972, "loc": { "start": { - "line": 139, + "line": 141, "column": 47 }, "end": { - "line": 139, + "line": 141, "column": 48 } } }, { - "type": "CommentBlock", - "value": "*\r\n * The camera's x position. May be adjusted if pSimulatedPosition is used.\r\n * @type {number}\r\n ", - "start": 6903, - "end": 7042, + "type": "CommentLine", + "value": " The camera's x position. May be adjusted if pSimulatedPosition is used.", + "start": 6986, + "end": 7060, "loc": { "start": { - "line": 140, + "line": 142, "column": 12 }, "end": { - "line": 143, - "column": 15 + "line": 142, + "column": 86 } } }, @@ -38698,15 +39404,15 @@ "updateContext": null }, "value": "let", - "start": 7056, - "end": 7059, + "start": 7074, + "end": 7077, "loc": { "start": { - "line": 144, + "line": 143, "column": 12 }, "end": { - "line": 144, + "line": 143, "column": 15 } } @@ -38724,15 +39430,15 @@ "binop": null }, "value": "cameraX", - "start": 7060, - "end": 7067, + "start": 7078, + "end": 7085, "loc": { "start": { - "line": 144, + "line": 143, "column": 16 }, "end": { - "line": 144, + "line": 143, "column": 23 } } @@ -38751,15 +39457,15 @@ "updateContext": null }, "value": "=", - "start": 7068, - "end": 7069, + "start": 7086, + "end": 7087, "loc": { "start": { - "line": 144, + "line": 143, "column": 24 }, "end": { - "line": 144, + "line": 143, "column": 25 } } @@ -38777,15 +39483,15 @@ "binop": null }, "value": "pCameraX", - "start": 7070, - "end": 7078, + "start": 7088, + "end": 7096, "loc": { "start": { - "line": 144, + "line": 143, "column": 26 }, "end": { - "line": 144, + "line": 143, "column": 34 } } @@ -38803,32 +39509,32 @@ "binop": null, "updateContext": null }, - "start": 7078, - "end": 7079, + "start": 7096, + "end": 7097, "loc": { "start": { - "line": 144, + "line": 143, "column": 34 }, "end": { - "line": 144, + "line": 143, "column": 35 } } }, { - "type": "CommentBlock", - "value": "*\r\n * The camera's x position. May be adjusted if pSimulatedPosition is used.\r\n * @type {number}\r\n ", - "start": 7093, - "end": 7232, + "type": "CommentLine", + "value": " The camera's x position. May be adjusted if pSimulatedPosition is used.", + "start": 7111, + "end": 7185, "loc": { "start": { - "line": 145, + "line": 144, "column": 12 }, "end": { - "line": 148, - "column": 15 + "line": 144, + "column": 86 } } }, @@ -38847,15 +39553,15 @@ "updateContext": null }, "value": "let", - "start": 7246, - "end": 7249, + "start": 7199, + "end": 7202, "loc": { "start": { - "line": 149, + "line": 145, "column": 12 }, "end": { - "line": 149, + "line": 145, "column": 15 } } @@ -38873,15 +39579,15 @@ "binop": null }, "value": "cameraY", - "start": 7250, - "end": 7257, + "start": 7203, + "end": 7210, "loc": { "start": { - "line": 149, + "line": 145, "column": 16 }, "end": { - "line": 149, + "line": 145, "column": 23 } } @@ -38900,15 +39606,15 @@ "updateContext": null }, "value": "=", - "start": 7258, - "end": 7259, + "start": 7211, + "end": 7212, "loc": { "start": { - "line": 149, + "line": 145, "column": 24 }, "end": { - "line": 149, + "line": 145, "column": 25 } } @@ -38926,15 +39632,15 @@ "binop": null }, "value": "pCameraY", - "start": 7260, - "end": 7268, + "start": 7213, + "end": 7221, "loc": { "start": { - "line": 149, + "line": 145, "column": 26 }, "end": { - "line": 149, + "line": 145, "column": 34 } } @@ -38952,15 +39658,15 @@ "binop": null, "updateContext": null }, - "start": 7268, - "end": 7269, + "start": 7221, + "end": 7222, "loc": { "start": { - "line": 149, + "line": 145, "column": 34 }, "end": { - "line": 149, + "line": 145, "column": 35 } } @@ -38980,15 +39686,15 @@ "updateContext": null }, "value": "const", - "start": 7285, - "end": 7290, + "start": 7238, + "end": 7243, "loc": { "start": { - "line": 151, + "line": 147, "column": 12 }, "end": { - "line": 151, + "line": 147, "column": 17 } } @@ -39006,15 +39712,15 @@ "binop": null }, "value": "parallaxInfo", - "start": 7291, - "end": 7303, + "start": 7244, + "end": 7256, "loc": { "start": { - "line": 151, + "line": 147, "column": 18 }, "end": { - "line": 151, + "line": 147, "column": 30 } } @@ -39033,15 +39739,15 @@ "updateContext": null }, "value": "=", - "start": 7304, - "end": 7305, + "start": 7257, + "end": 7258, "loc": { "start": { - "line": 151, + "line": 147, "column": 31 }, "end": { - "line": 151, + "line": 147, "column": 32 } } @@ -39061,15 +39767,15 @@ "updateContext": null }, "value": "this", - "start": 7306, - "end": 7310, + "start": 7259, + "end": 7263, "loc": { "start": { - "line": 151, + "line": 147, "column": 33 }, "end": { - "line": 151, + "line": 147, "column": 37 } } @@ -39087,15 +39793,15 @@ "binop": null, "updateContext": null }, - "start": 7310, - "end": 7311, + "start": 7263, + "end": 7264, "loc": { "start": { - "line": 151, + "line": 147, "column": 37 }, "end": { - "line": 151, + "line": 147, "column": 38 } } @@ -39113,15 +39819,15 @@ "binop": null }, "value": "instanceWeakMap", - "start": 7311, - "end": 7326, + "start": 7264, + "end": 7279, "loc": { "start": { - "line": 151, + "line": 147, "column": 38 }, "end": { - "line": 151, + "line": 147, "column": 53 } } @@ -39139,15 +39845,15 @@ "binop": null, "updateContext": null }, - "start": 7326, - "end": 7327, + "start": 7279, + "end": 7280, "loc": { "start": { - "line": 151, + "line": 147, "column": 53 }, "end": { - "line": 151, + "line": 147, "column": 54 } } @@ -39165,15 +39871,15 @@ "binop": null }, "value": "get", - "start": 7327, - "end": 7330, + "start": 7280, + "end": 7283, "loc": { "start": { - "line": 151, + "line": 147, "column": 54 }, "end": { - "line": 151, + "line": 147, "column": 57 } } @@ -39190,15 +39896,15 @@ "postfix": false, "binop": null }, - "start": 7330, - "end": 7331, + "start": 7283, + "end": 7284, "loc": { "start": { - "line": 151, + "line": 147, "column": 57 }, "end": { - "line": 151, + "line": 147, "column": 58 } } @@ -39216,15 +39922,15 @@ "binop": null }, "value": "instance", - "start": 7331, - "end": 7339, + "start": 7284, + "end": 7292, "loc": { "start": { - "line": 151, + "line": 147, "column": 58 }, "end": { - "line": 151, + "line": 147, "column": 66 } } @@ -39241,15 +39947,15 @@ "postfix": false, "binop": null }, - "start": 7339, - "end": 7340, + "start": 7292, + "end": 7293, "loc": { "start": { - "line": 151, + "line": 147, "column": 66 }, "end": { - "line": 151, + "line": 147, "column": 67 } } @@ -39267,32 +39973,32 @@ "binop": null, "updateContext": null }, - "start": 7340, - "end": 7341, + "start": 7293, + "end": 7294, "loc": { "start": { - "line": 151, + "line": 147, "column": 67 }, "end": { - "line": 151, + "line": 147, "column": 68 } } }, { "type": "CommentLine", - "value": " How far we moved from the start point", - "start": 7355, - "end": 7395, + "value": " Move the instance with the camera if the parallax is set to 0", + "start": 7310, + "end": 7374, "loc": { "start": { - "line": 152, + "line": 149, "column": 12 }, "end": { - "line": 152, - "column": 52 + "line": 149, + "column": 76 } } }, @@ -39311,15 +40017,15 @@ "updateContext": null }, "value": "const", - "start": 7409, - "end": 7414, + "start": 7388, + "end": 7393, "loc": { "start": { - "line": 153, + "line": 150, "column": 12 }, "end": { - "line": 153, + "line": 150, "column": 17 } } @@ -39336,17 +40042,17 @@ "postfix": false, "binop": null }, - "value": "distX", - "start": 7415, - "end": 7420, + "value": "isBackgroundX", + "start": 7394, + "end": 7407, "loc": { "start": { - "line": 153, + "line": 150, "column": 18 }, "end": { - "line": 153, - "column": 23 + "line": 150, + "column": 31 } } }, @@ -39364,16 +40070,68 @@ "updateContext": null }, "value": "=", - "start": 7421, + "start": 7408, + "end": 7409, + "loc": { + "start": { + "line": 150, + "column": 32 + }, + "end": { + "line": 150, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parallaxInfo", + "start": 7410, "end": 7422, "loc": { "start": { - "line": 153, - "column": 24 + "line": 150, + "column": 34 }, "end": { - "line": 153, - "column": 25 + "line": 150, + "column": 46 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7422, + "end": 7423, + "loc": { + "start": { + "line": 150, + "column": 46 + }, + "end": { + "line": 150, + "column": 47 } } }, @@ -39389,23 +40147,77 @@ "postfix": false, "binop": null }, - "value": "cameraX", + "value": "x", "start": 7423, + "end": 7424, + "loc": { + "start": { + "line": 150, + "column": 47 + }, + "end": { + "line": 150, + "column": 48 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 7425, + "end": 7428, + "loc": { + "start": { + "line": 150, + "column": 49 + }, + "end": { + "line": 150, + "column": 52 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 7429, "end": 7430, "loc": { "start": { - "line": 153, - "column": 26 + "line": 150, + "column": 53 }, "end": { - "line": 153, - "column": 33 + "line": 150, + "column": 54 } } }, { "type": { - "label": "*", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -39413,20 +40225,100 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 10, + "binop": null, "updateContext": null }, - "value": "*", - "start": 7431, - "end": 7432, + "start": 7430, + "end": 7431, "loc": { "start": { - "line": 153, - "column": 34 + "line": 150, + "column": 54 }, "end": { - "line": 153, - "column": 35 + "line": 150, + "column": 55 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 7445, + "end": 7450, + "loc": { + "start": { + "line": 151, + "column": 12 + }, + "end": { + "line": 151, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "isBackgroundY", + "start": 7451, + "end": 7464, + "loc": { + "start": { + "line": 151, + "column": 18 + }, + "end": { + "line": 151, + "column": 31 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 7465, + "end": 7466, + "loc": { + "start": { + "line": 151, + "column": 32 + }, + "end": { + "line": 151, + "column": 33 } } }, @@ -39443,16 +40335,16 @@ "binop": null }, "value": "parallaxInfo", - "start": 7433, - "end": 7445, + "start": 7467, + "end": 7479, "loc": { "start": { - "line": 153, - "column": 36 + "line": 151, + "column": 34 }, "end": { - "line": 153, - "column": 48 + "line": 151, + "column": 46 } } }, @@ -39469,16 +40361,16 @@ "binop": null, "updateContext": null }, - "start": 7445, - "end": 7446, + "start": 7479, + "end": 7480, "loc": { "start": { - "line": 153, - "column": 48 + "line": 151, + "column": 46 }, "end": { - "line": 153, - "column": 49 + "line": 151, + "column": 47 } } }, @@ -39494,17 +40386,71 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 7446, - "end": 7447, + "value": "y", + "start": 7480, + "end": 7481, "loc": { "start": { - "line": 153, + "line": 151, + "column": 47 + }, + "end": { + "line": 151, + "column": 48 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 7482, + "end": 7485, + "loc": { + "start": { + "line": 151, "column": 49 }, "end": { - "line": 153, - "column": 50 + "line": 151, + "column": 52 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 7486, + "end": 7487, + "loc": { + "start": { + "line": 151, + "column": 53 + }, + "end": { + "line": 151, + "column": 54 } } }, @@ -39521,16 +40467,16 @@ "binop": null, "updateContext": null }, - "start": 7447, - "end": 7448, + "start": 7487, + "end": 7488, "loc": { "start": { - "line": 153, - "column": 50 + "line": 151, + "column": 54 }, "end": { - "line": 153, - "column": 51 + "line": 151, + "column": 55 } } }, @@ -39549,15 +40495,15 @@ "updateContext": null }, "value": "const", - "start": 7462, - "end": 7467, + "start": 7504, + "end": 7509, "loc": { "start": { - "line": 154, + "line": 153, "column": 12 }, "end": { - "line": 154, + "line": 153, "column": 17 } } @@ -39574,17 +40520,17 @@ "postfix": false, "binop": null }, - "value": "distY", - "start": 7468, - "end": 7473, + "value": "deltaX", + "start": 7510, + "end": 7516, "loc": { "start": { - "line": 154, + "line": 153, "column": 18 }, "end": { - "line": 154, - "column": 23 + "line": 153, + "column": 24 } } }, @@ -39602,16 +40548,69 @@ "updateContext": null }, "value": "=", - "start": 7474, - "end": 7475, + "start": 7517, + "end": 7518, "loc": { "start": { - "line": 154, - "column": 24 + "line": 153, + "column": 25 + }, + "end": { + "line": 153, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "cameraX", + "start": 7519, + "end": 7526, + "loc": { + "start": { + "line": 153, + "column": 27 + }, + "end": { + "line": 153, + "column": 34 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "-", + "start": 7527, + "end": 7528, + "loc": { + "start": { + "line": 153, + "column": 35 }, "end": { - "line": 154, - "column": 25 + "line": 153, + "column": 36 } } }, @@ -39627,44 +40626,43 @@ "postfix": false, "binop": null }, - "value": "cameraY", - "start": 7476, - "end": 7483, + "value": "parallaxInfo", + "start": 7529, + "end": 7541, "loc": { "start": { - "line": 154, - "column": 26 + "line": 153, + "column": 37 }, "end": { - "line": 154, - "column": 33 + "line": 153, + "column": 49 } } }, { "type": { - "label": "*", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 10, + "binop": null, "updateContext": null }, - "value": "*", - "start": 7484, - "end": 7485, + "start": 7541, + "end": 7542, "loc": { "start": { - "line": 154, - "column": 34 + "line": 153, + "column": 49 }, "end": { - "line": 154, - "column": 35 + "line": 153, + "column": 50 } } }, @@ -39680,17 +40678,17 @@ "postfix": false, "binop": null }, - "value": "parallaxInfo", - "start": 7486, - "end": 7498, + "value": "lastCamPos", + "start": 7542, + "end": 7552, "loc": { "start": { - "line": 154, - "column": 36 + "line": 153, + "column": 50 }, "end": { - "line": 154, - "column": 48 + "line": 153, + "column": 60 } } }, @@ -39707,16 +40705,16 @@ "binop": null, "updateContext": null }, - "start": 7498, - "end": 7499, + "start": 7552, + "end": 7553, "loc": { "start": { - "line": 154, - "column": 48 + "line": 153, + "column": 60 }, "end": { - "line": 154, - "column": 49 + "line": 153, + "column": 61 } } }, @@ -39732,17 +40730,17 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 7499, - "end": 7500, + "value": "x", + "start": 7553, + "end": 7554, "loc": { "start": { - "line": 154, - "column": 49 + "line": 153, + "column": 61 }, "end": { - "line": 154, - "column": 50 + "line": 153, + "column": 62 } } }, @@ -39759,39 +40757,23 @@ "binop": null, "updateContext": null }, - "start": 7500, - "end": 7501, - "loc": { - "start": { - "line": 154, - "column": 50 - }, - "end": { - "line": 154, - "column": 51 - } - } - }, - { - "type": "CommentLine", - "value": " Position to set the instance to. We take into account the simulated posiiton if it is passed.", - "start": 7517, - "end": 7613, + "start": 7554, + "end": 7555, "loc": { "start": { - "line": 156, - "column": 12 + "line": 153, + "column": 62 }, "end": { - "line": 156, - "column": 108 + "line": 153, + "column": 63 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": "const", + "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -39802,17 +40784,17 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 7627, - "end": 7630, + "value": "const", + "start": 7569, + "end": 7574, "loc": { "start": { - "line": 157, + "line": 154, "column": 12 }, "end": { - "line": 157, - "column": 15 + "line": 154, + "column": 17 } } }, @@ -39828,17 +40810,17 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 7631, - "end": 7632, + "value": "deltaY", + "start": 7575, + "end": 7581, "loc": { "start": { - "line": 157, - "column": 16 + "line": 154, + "column": 18 }, "end": { - "line": 157, - "column": 17 + "line": 154, + "column": 24 } } }, @@ -39856,16 +40838,16 @@ "updateContext": null }, "value": "=", - "start": 7633, - "end": 7634, + "start": 7582, + "end": 7583, "loc": { "start": { - "line": 157, - "column": 18 + "line": 154, + "column": 25 }, "end": { - "line": 157, - "column": 19 + "line": 154, + "column": 26 } } }, @@ -39881,43 +40863,44 @@ "postfix": false, "binop": null }, - "value": "parallaxInfo", - "start": 7635, - "end": 7647, + "value": "cameraY", + "start": 7584, + "end": 7591, "loc": { "start": { - "line": 157, - "column": 20 + "line": 154, + "column": 27 }, "end": { - "line": 157, - "column": 32 + "line": 154, + "column": 34 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "start": 7647, - "end": 7648, + "value": "-", + "start": 7592, + "end": 7593, "loc": { "start": { - "line": 157, - "column": 32 + "line": 154, + "column": 35 }, "end": { - "line": 157, - "column": 33 + "line": 154, + "column": 36 } } }, @@ -39933,17 +40916,17 @@ "postfix": false, "binop": null }, - "value": "initialPos", - "start": 7648, - "end": 7658, + "value": "parallaxInfo", + "start": 7594, + "end": 7606, "loc": { "start": { - "line": 157, - "column": 33 + "line": 154, + "column": 37 }, "end": { - "line": 157, - "column": 43 + "line": 154, + "column": 49 } } }, @@ -39960,16 +40943,16 @@ "binop": null, "updateContext": null }, - "start": 7658, - "end": 7659, + "start": 7606, + "end": 7607, "loc": { "start": { - "line": 157, - "column": 43 + "line": 154, + "column": 49 }, "end": { - "line": 157, - "column": 44 + "line": 154, + "column": 50 } } }, @@ -39985,51 +40968,50 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 7659, - "end": 7660, + "value": "lastCamPos", + "start": 7607, + "end": 7617, "loc": { "start": { - "line": 157, - "column": 44 + "line": 154, + "column": 50 }, "end": { - "line": 157, - "column": 45 + "line": 154, + "column": 60 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "+", - "start": 7661, - "end": 7662, + "start": 7617, + "end": 7618, "loc": { "start": { - "line": 157, - "column": 46 + "line": 154, + "column": 60 }, "end": { - "line": 157, - "column": 47 + "line": 154, + "column": 61 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -40038,101 +41020,66 @@ "postfix": false, "binop": null }, - "start": 7663, - "end": 7664, + "value": "y", + "start": 7618, + "end": 7619, "loc": { "start": { - "line": 157, - "column": 48 + "line": 154, + "column": 61 }, "end": { - "line": 157, - "column": 49 + "line": 154, + "column": 62 } } }, { "type": { - "label": "typeof", - "keyword": "typeof", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "typeof", - "start": 7664, - "end": 7670, - "loc": { - "start": { - "line": 157, - "column": 49 - }, - "end": { - "line": 157, - "column": 55 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7670, - "end": 7671, + "start": 7619, + "end": 7620, "loc": { "start": { - "line": 157, - "column": 55 + "line": 154, + "column": 62 }, "end": { - "line": 157, - "column": 56 + "line": 154, + "column": 63 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pSimulatedPosition", - "start": 7671, - "end": 7689, + "type": "CommentLine", + "value": " How far we moved from the start point", + "start": 7636, + "end": 7676, "loc": { "start": { - "line": 157, - "column": 56 + "line": 156, + "column": 12 }, "end": { - "line": 157, - "column": 74 + "line": 156, + "column": 52 } } }, { "type": { - "label": ")", + "label": "const", + "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -40140,51 +41087,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "start": 7689, - "end": 7690, - "loc": { - "start": { - "line": 157, - "column": 74 - }, - "end": { - "line": 157, - "column": 75 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "===", - "start": 7691, - "end": 7694, + "value": "const", + "start": 7690, + "end": 7695, "loc": { "start": { "line": 157, - "column": 76 + "column": 12 }, "end": { "line": 157, - "column": 79 + "column": 17 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -40192,46 +41114,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "number", - "start": 7695, - "end": 7703, + "value": "distX", + "start": 7696, + "end": 7701, "loc": { "start": { "line": 157, - "column": 80 + "column": 18 }, "end": { "line": 157, - "column": 88 + "column": 23 } } }, { "type": { - "label": "?", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 7704, - "end": 7705, + "value": "=", + "start": 7702, + "end": 7703, "loc": { "start": { "line": 157, - "column": 89 + "column": 24 }, "end": { "line": 157, - "column": 90 + "column": 25 } } }, @@ -40247,44 +41169,44 @@ "postfix": false, "binop": null }, - "value": "distX", - "start": 7706, - "end": 7711, + "value": "deltaX", + "start": 7704, + "end": 7710, "loc": { "start": { "line": 157, - "column": 91 + "column": 26 }, "end": { "line": 157, - "column": 96 + "column": 32 } } }, { "type": { - "label": "+/-", + "label": "*", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": 10, "updateContext": null }, - "value": "-", - "start": 7712, - "end": 7713, + "value": "*", + "start": 7711, + "end": 7712, "loc": { "start": { "line": 157, - "column": 97 + "column": 33 }, "end": { "line": 157, - "column": 98 + "column": 34 } } }, @@ -40300,24 +41222,24 @@ "postfix": false, "binop": null }, - "value": "pSimulatedPosition", - "start": 7714, - "end": 7732, + "value": "parallaxInfo", + "start": 7713, + "end": 7725, "loc": { "start": { "line": 157, - "column": 99 + "column": 35 }, "end": { "line": 157, - "column": 117 + "column": 47 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -40327,16 +41249,16 @@ "binop": null, "updateContext": null }, - "start": 7733, - "end": 7734, + "start": 7725, + "end": 7726, "loc": { "start": { "line": 157, - "column": 118 + "column": 47 }, "end": { "line": 157, - "column": 119 + "column": 48 } } }, @@ -40352,42 +41274,17 @@ "postfix": false, "binop": null }, - "value": "distX", - "start": 7735, - "end": 7740, - "loc": { - "start": { - "line": 157, - "column": 120 - }, - "end": { - "line": 157, - "column": 125 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7740, - "end": 7741, + "value": "x", + "start": 7726, + "end": 7727, "loc": { "start": { "line": 157, - "column": 125 + "column": 48 }, "end": { "line": 157, - "column": 126 + "column": 49 } } }, @@ -40404,23 +41301,23 @@ "binop": null, "updateContext": null }, - "start": 7741, - "end": 7742, + "start": 7727, + "end": 7728, "loc": { "start": { "line": 157, - "column": 126 + "column": 49 }, "end": { "line": 157, - "column": 127 + "column": 50 } } }, { "type": { - "label": "let", - "keyword": "let", + "label": "const", + "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -40431,9 +41328,9 @@ "binop": null, "updateContext": null }, - "value": "let", - "start": 7756, - "end": 7759, + "value": "const", + "start": 7742, + "end": 7747, "loc": { "start": { "line": 158, @@ -40441,7 +41338,7 @@ }, "end": { "line": 158, - "column": 15 + "column": 17 } } }, @@ -40457,17 +41354,17 @@ "postfix": false, "binop": null }, - "value": "y", - "start": 7760, - "end": 7761, + "value": "distY", + "start": 7748, + "end": 7753, "loc": { "start": { "line": 158, - "column": 16 + "column": 18 }, "end": { "line": 158, - "column": 17 + "column": 23 } } }, @@ -40485,16 +41382,16 @@ "updateContext": null }, "value": "=", - "start": 7762, - "end": 7763, + "start": 7754, + "end": 7755, "loc": { "start": { "line": 158, - "column": 18 + "column": 24 }, "end": { "line": 158, - "column": 19 + "column": 25 } } }, @@ -40510,13 +41407,13 @@ "postfix": false, "binop": null }, - "value": "parallaxInfo", - "start": 7764, - "end": 7776, + "value": "deltaY", + "start": 7756, + "end": 7762, "loc": { "start": { "line": 158, - "column": 20 + "column": 26 }, "end": { "line": 158, @@ -40526,27 +41423,28 @@ }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "*", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 10, "updateContext": null }, - "start": 7776, - "end": 7777, + "value": "*", + "start": 7763, + "end": 7764, "loc": { "start": { "line": 158, - "column": 32 + "column": 33 }, "end": { "line": 158, - "column": 33 + "column": 34 } } }, @@ -40562,17 +41460,17 @@ "postfix": false, "binop": null }, - "value": "initialPos", - "start": 7777, - "end": 7787, + "value": "parallaxInfo", + "start": 7765, + "end": 7777, "loc": { "start": { "line": 158, - "column": 33 + "column": 35 }, "end": { "line": 158, - "column": 43 + "column": 47 } } }, @@ -40589,16 +41487,16 @@ "binop": null, "updateContext": null }, - "start": 7787, - "end": 7788, + "start": 7777, + "end": 7778, "loc": { "start": { "line": 158, - "column": 43 + "column": 47 }, "end": { "line": 158, - "column": 44 + "column": 48 } } }, @@ -40615,76 +41513,66 @@ "binop": null }, "value": "y", - "start": 7788, - "end": 7789, + "start": 7778, + "end": 7779, "loc": { "start": { "line": 158, - "column": 44 + "column": 48 }, "end": { "line": 158, - "column": 45 + "column": 49 } } }, { "type": { - "label": "+/-", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, + "binop": null, "updateContext": null }, - "value": "+", - "start": 7790, - "end": 7791, + "start": 7779, + "end": 7780, "loc": { "start": { "line": 158, - "column": 46 + "column": 49 }, "end": { "line": 158, - "column": 47 + "column": 50 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "distY", - "start": 7792, - "end": 7797, + "type": "CommentLine", + "value": " Position to set the instance to.", + "start": 7796, + "end": 7831, "loc": { "start": { - "line": 158, - "column": 48 + "line": 160, + "column": 12 }, "end": { - "line": 158, - "column": 53 + "line": 160, + "column": 47 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": "let", + "keyword": "let", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -40694,85 +41582,70 @@ "binop": null, "updateContext": null }, - "start": 7797, - "end": 7798, - "loc": { - "start": { - "line": 158, - "column": 53 - }, - "end": { - "line": 158, - "column": 54 - } - } - }, - { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 7826, - "end": 7890, + "value": "let", + "start": 7845, + "end": 7848, "loc": { "start": { - "line": 160, + "line": 161, "column": 12 }, "end": { - "line": 160, - "column": 76 + "line": 161, + "column": 15 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 7904, - "end": 7906, + "value": "x", + "start": 7849, + "end": 7850, "loc": { "start": { "line": 161, - "column": 12 + "column": 16 }, "end": { "line": 161, - "column": 14 + "column": 17 } } }, { "type": { - "label": "(", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7907, - "end": 7908, + "value": "=", + "start": 7851, + "end": 7852, "loc": { "start": { "line": 161, - "column": 15 + "column": 18 }, "end": { "line": 161, - "column": 16 + "column": 19 } } }, @@ -40788,13 +41661,13 @@ "postfix": false, "binop": null }, - "value": "parallaxInfo", - "start": 7908, - "end": 7920, + "value": "instance", + "start": 7853, + "end": 7861, "loc": { "start": { "line": 161, - "column": 16 + "column": 20 }, "end": { "line": 161, @@ -40815,8 +41688,8 @@ "binop": null, "updateContext": null }, - "start": 7920, - "end": 7921, + "start": 7861, + "end": 7862, "loc": { "start": { "line": 161, @@ -40841,8 +41714,8 @@ "binop": null }, "value": "x", - "start": 7921, - "end": 7922, + "start": 7862, + "end": 7863, "loc": { "start": { "line": 161, @@ -40856,20 +41729,20 @@ }, { "type": { - "label": "==/!=", + "label": "+/-", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": 6, + "binop": 9, "updateContext": null }, - "value": "===", - "start": 7923, - "end": 7926, + "value": "+", + "start": 7864, + "end": 7865, "loc": { "start": { "line": 161, @@ -40877,13 +41750,13 @@ }, "end": { "line": 161, - "column": 34 + "column": 32 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -40891,62 +41764,37 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 7927, - "end": 7928, - "loc": { - "start": { - "line": 161, - "column": 35 - }, - "end": { - "line": 161, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null }, - "start": 7928, - "end": 7929, + "value": "distX", + "start": 7866, + "end": 7871, "loc": { "start": { "line": 161, - "column": 36 + "column": 33 }, "end": { "line": 161, - "column": 37 + "column": 38 } } }, { "type": { - "label": "{", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7930, - "end": 7931, + "start": 7871, + "end": 7872, "loc": { "start": { "line": 161, @@ -40960,8 +41808,8 @@ }, { "type": { - "label": "if", - "keyword": "if", + "label": "let", + "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -40972,24 +41820,24 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 7949, - "end": 7951, + "value": "let", + "start": 7886, + "end": 7889, "loc": { "start": { "line": 162, - "column": 16 + "column": 12 }, "end": { "line": 162, - "column": 18 + "column": 15 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -40998,69 +41846,44 @@ "postfix": false, "binop": null }, - "start": 7952, - "end": 7953, + "value": "y", + "start": 7890, + "end": 7891, "loc": { "start": { "line": 162, - "column": 19 + "column": 16 }, "end": { "line": 162, - "column": 20 + "column": 17 } } }, { "type": { - "label": "typeof", - "keyword": "typeof", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, - "prefix": true, + "isAssign": true, + "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "typeof", - "start": 7953, - "end": 7959, - "loc": { - "start": { - "line": 162, - "column": 20 - }, - "end": { - "line": 162, - "column": 26 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7959, - "end": 7960, + "value": "=", + "start": 7892, + "end": 7893, "loc": { "start": { "line": 162, - "column": 26 + "column": 18 }, "end": { "line": 162, - "column": 27 + "column": 19 } } }, @@ -41076,23 +41899,23 @@ "postfix": false, "binop": null }, - "value": "pSimulatedPosition", - "start": 7960, - "end": 7978, + "value": "instance", + "start": 7894, + "end": 7902, "loc": { "start": { "line": 162, - "column": 27 + "column": 20 }, "end": { "line": 162, - "column": 45 + "column": 28 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -41100,80 +41923,80 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7978, - "end": 7979, + "start": 7902, + "end": 7903, "loc": { "start": { "line": 162, - "column": 45 + "column": 28 }, "end": { "line": 162, - "column": 46 + "column": 29 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, - "updateContext": null + "binop": null }, - "value": "===", - "start": 7980, - "end": 7983, + "value": "y", + "start": 7903, + "end": 7904, "loc": { "start": { "line": 162, - "column": 47 + "column": 29 }, "end": { "line": 162, - "column": 50 + "column": 30 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "+/-", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "value": "number", - "start": 7984, - "end": 7992, + "value": "+", + "start": 7905, + "end": 7906, "loc": { "start": { "line": 162, - "column": 51 + "column": 31 }, "end": { "line": 162, - "column": 59 + "column": 32 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -41181,101 +42004,94 @@ "postfix": false, "binop": null }, - "start": 7992, - "end": 7993, + "value": "distY", + "start": 7907, + "end": 7912, "loc": { "start": { "line": 162, - "column": 59 + "column": 33 }, "end": { "line": 162, - "column": 60 + "column": 38 } } }, { "type": { - "label": "{", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7994, - "end": 7995, + "start": 7912, + "end": 7913, "loc": { "start": { "line": 162, - "column": 61 + "column": 38 }, "end": { "line": 162, - "column": 62 + "column": 39 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cameraX", - "start": 8017, - "end": 8024, + "type": "CommentLine", + "value": " Hard code in static backgrounds", + "start": 7929, + "end": 7963, "loc": { "start": { - "line": 163, - "column": 20 + "line": 164, + "column": 12 }, "end": { - "line": 163, - "column": 27 + "line": 164, + "column": 46 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": "if", + "keyword": "if", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 8025, - "end": 8026, + "value": "if", + "start": 7977, + "end": 7979, "loc": { "start": { - "line": 163, - "column": 28 + "line": 165, + "column": 12 }, "end": { - "line": 163, - "column": 29 + "line": 165, + "column": 14 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -41284,44 +42100,16 @@ "postfix": false, "binop": null }, - "value": "distX", - "start": 8027, - "end": 8032, - "loc": { - "start": { - "line": 163, - "column": 30 - }, - "end": { - "line": 163, - "column": 35 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 8033, - "end": 8034, + "start": 7980, + "end": 7981, "loc": { "start": { - "line": 163, - "column": 36 + "line": 165, + "column": 15 }, "end": { - "line": 163, - "column": 37 + "line": 165, + "column": 16 } } }, @@ -41337,51 +42125,50 @@ "postfix": false, "binop": null }, - "value": "pSimulatedPosition", - "start": 8035, - "end": 8053, + "value": "isBackgroundX", + "start": 7981, + "end": 7994, "loc": { "start": { - "line": 163, - "column": 38 + "line": 165, + "column": 16 }, "end": { - "line": 163, - "column": 56 + "line": 165, + "column": 29 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8053, - "end": 8054, + "start": 7994, + "end": 7995, "loc": { "start": { - "line": 163, - "column": 56 + "line": 165, + "column": 29 }, "end": { - "line": 163, - "column": 57 + "line": 165, + "column": 30 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -41389,16 +42176,16 @@ "postfix": false, "binop": null }, - "start": 8072, - "end": 8073, + "start": 7996, + "end": 7997, "loc": { "start": { - "line": 164, - "column": 16 + "line": 165, + "column": 31 }, "end": { - "line": 164, - "column": 17 + "line": 165, + "column": 32 } } }, @@ -41415,15 +42202,15 @@ "binop": null }, "value": "x", - "start": 8091, - "end": 8092, + "start": 8015, + "end": 8016, "loc": { "start": { - "line": 165, + "line": 166, "column": 16 }, "end": { - "line": 165, + "line": 166, "column": 17 } } @@ -41442,15 +42229,15 @@ "updateContext": null }, "value": "=", - "start": 8093, - "end": 8094, + "start": 8017, + "end": 8018, "loc": { "start": { - "line": 165, + "line": 166, "column": 18 }, "end": { - "line": 165, + "line": 166, "column": 19 } } @@ -41468,15 +42255,15 @@ "binop": null }, "value": "cameraX", - "start": 8095, - "end": 8102, + "start": 8019, + "end": 8026, "loc": { "start": { - "line": 165, + "line": 166, "column": 20 }, "end": { - "line": 165, + "line": 166, "column": 27 } } @@ -41495,15 +42282,15 @@ "updateContext": null }, "value": "-", - "start": 8103, - "end": 8104, + "start": 8027, + "end": 8028, "loc": { "start": { - "line": 165, + "line": 166, "column": 28 }, "end": { - "line": 165, + "line": 166, "column": 29 } } @@ -41521,15 +42308,15 @@ "binop": null }, "value": "instance", - "start": 8105, - "end": 8113, + "start": 8029, + "end": 8037, "loc": { "start": { - "line": 165, + "line": 166, "column": 30 }, "end": { - "line": 165, + "line": 166, "column": 38 } } @@ -41547,15 +42334,15 @@ "binop": null, "updateContext": null }, - "start": 8113, - "end": 8114, + "start": 8037, + "end": 8038, "loc": { "start": { - "line": 165, + "line": 166, "column": 38 }, "end": { - "line": 165, + "line": 166, "column": 39 } } @@ -41573,15 +42360,15 @@ "binop": null }, "value": "icon", - "start": 8114, - "end": 8118, + "start": 8038, + "end": 8042, "loc": { "start": { - "line": 165, + "line": 166, "column": 39 }, "end": { - "line": 165, + "line": 166, "column": 43 } } @@ -41599,15 +42386,15 @@ "binop": null, "updateContext": null }, - "start": 8118, - "end": 8119, + "start": 8042, + "end": 8043, "loc": { "start": { - "line": 165, + "line": 166, "column": 43 }, "end": { - "line": 165, + "line": 166, "column": 44 } } @@ -41625,15 +42412,15 @@ "binop": null }, "value": "width", - "start": 8119, - "end": 8124, + "start": 8043, + "end": 8048, "loc": { "start": { - "line": 165, + "line": 166, "column": 44 }, "end": { - "line": 165, + "line": 166, "column": 49 } } @@ -41652,15 +42439,15 @@ "updateContext": null }, "value": "/", - "start": 8125, - "end": 8126, + "start": 8049, + "end": 8050, "loc": { "start": { - "line": 165, + "line": 166, "column": 50 }, "end": { - "line": 165, + "line": 166, "column": 51 } } @@ -41679,15 +42466,15 @@ "updateContext": null }, "value": 2, - "start": 8127, - "end": 8128, + "start": 8051, + "end": 8052, "loc": { "start": { - "line": 165, + "line": 166, "column": 52 }, "end": { - "line": 165, + "line": 166, "column": 53 } } @@ -41705,15 +42492,15 @@ "binop": null, "updateContext": null }, - "start": 8128, - "end": 8129, + "start": 8052, + "end": 8053, "loc": { "start": { - "line": 165, + "line": 166, "column": 53 }, "end": { - "line": 165, + "line": 166, "column": 54 } } @@ -41730,24 +42517,8 @@ "postfix": false, "binop": null }, - "start": 8143, - "end": 8144, - "loc": { - "start": { - "line": 166, - "column": 12 - }, - "end": { - "line": 166, - "column": 13 - } - } - }, - { - "type": "CommentLine", - "value": " Move the instance with the camera if the parallax is set to 1", - "start": 8158, - "end": 8222, + "start": 8067, + "end": 8068, "loc": { "start": { "line": 167, @@ -41755,7 +42526,7 @@ }, "end": { "line": 167, - "column": 76 + "column": 13 } } }, @@ -41774,8 +42545,8 @@ "updateContext": null }, "value": "if", - "start": 8236, - "end": 8238, + "start": 8082, + "end": 8084, "loc": { "start": { "line": 168, @@ -41799,8 +42570,8 @@ "postfix": false, "binop": null }, - "start": 8239, - "end": 8240, + "start": 8085, + "end": 8086, "loc": { "start": { "line": 168, @@ -41824,123 +42595,17 @@ "postfix": false, "binop": null }, - "value": "parallaxInfo", - "start": 8240, - "end": 8252, + "value": "isBackgroundY", + "start": 8086, + "end": 8099, "loc": { "start": { "line": 168, "column": 16 }, "end": { - "line": 168, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8252, - "end": 8253, - "loc": { - "start": { - "line": 168, - "column": 28 - }, - "end": { - "line": 168, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 8253, - "end": 8254, - "loc": { - "start": { "line": 168, "column": 29 - }, - "end": { - "line": 168, - "column": 30 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 8255, - "end": 8258, - "loc": { - "start": { - "line": 168, - "column": 31 - }, - "end": { - "line": 168, - "column": 34 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 8259, - "end": 8260, - "loc": { - "start": { - "line": 168, - "column": 35 - }, - "end": { - "line": 168, - "column": 36 } } }, @@ -41956,16 +42621,16 @@ "postfix": false, "binop": null }, - "start": 8260, - "end": 8261, + "start": 8099, + "end": 8100, "loc": { "start": { "line": 168, - "column": 36 + "column": 29 }, "end": { "line": 168, - "column": 37 + "column": 30 } } }, @@ -41981,16 +42646,16 @@ "postfix": false, "binop": null }, - "start": 8262, - "end": 8263, + "start": 8101, + "end": 8102, "loc": { "start": { "line": 168, - "column": 38 + "column": 31 }, "end": { "line": 168, - "column": 39 + "column": 32 } } }, @@ -42007,8 +42672,8 @@ "binop": null }, "value": "y", - "start": 8281, - "end": 8282, + "start": 8120, + "end": 8121, "loc": { "start": { "line": 169, @@ -42034,8 +42699,8 @@ "updateContext": null }, "value": "=", - "start": 8283, - "end": 8284, + "start": 8122, + "end": 8123, "loc": { "start": { "line": 169, @@ -42060,8 +42725,8 @@ "binop": null }, "value": "cameraY", - "start": 8285, - "end": 8292, + "start": 8124, + "end": 8131, "loc": { "start": { "line": 169, @@ -42087,8 +42752,8 @@ "updateContext": null }, "value": "-", - "start": 8293, - "end": 8294, + "start": 8132, + "end": 8133, "loc": { "start": { "line": 169, @@ -42113,8 +42778,8 @@ "binop": null }, "value": "instance", - "start": 8295, - "end": 8303, + "start": 8134, + "end": 8142, "loc": { "start": { "line": 169, @@ -42139,8 +42804,8 @@ "binop": null, "updateContext": null }, - "start": 8303, - "end": 8304, + "start": 8142, + "end": 8143, "loc": { "start": { "line": 169, @@ -42165,8 +42830,8 @@ "binop": null }, "value": "icon", - "start": 8304, - "end": 8308, + "start": 8143, + "end": 8147, "loc": { "start": { "line": 169, @@ -42191,8 +42856,8 @@ "binop": null, "updateContext": null }, - "start": 8308, - "end": 8309, + "start": 8147, + "end": 8148, "loc": { "start": { "line": 169, @@ -42217,8 +42882,8 @@ "binop": null }, "value": "height", - "start": 8309, - "end": 8315, + "start": 8148, + "end": 8154, "loc": { "start": { "line": 169, @@ -42244,8 +42909,8 @@ "updateContext": null }, "value": "/", - "start": 8316, - "end": 8317, + "start": 8155, + "end": 8156, "loc": { "start": { "line": 169, @@ -42271,8 +42936,8 @@ "updateContext": null }, "value": 2, - "start": 8318, - "end": 8319, + "start": 8157, + "end": 8158, "loc": { "start": { "line": 169, @@ -42297,8 +42962,8 @@ "binop": null, "updateContext": null }, - "start": 8319, - "end": 8320, + "start": 8158, + "end": 8159, "loc": { "start": { "line": 169, @@ -42322,8 +42987,8 @@ "postfix": false, "binop": null }, - "start": 8334, - "end": 8335, + "start": 8173, + "end": 8174, "loc": { "start": { "line": 170, @@ -42338,8 +43003,8 @@ { "type": "CommentLine", "value": " Set the position", - "start": 8351, - "end": 8370, + "start": 8190, + "end": 8209, "loc": { "start": { "line": 172, @@ -42364,8 +43029,8 @@ "binop": null }, "value": "instance", - "start": 8384, - "end": 8392, + "start": 8223, + "end": 8231, "loc": { "start": { "line": 173, @@ -42390,8 +43055,8 @@ "binop": null, "updateContext": null }, - "start": 8392, - "end": 8393, + "start": 8231, + "end": 8232, "loc": { "start": { "line": 173, @@ -42416,8 +43081,8 @@ "binop": null }, "value": "x", - "start": 8393, - "end": 8394, + "start": 8232, + "end": 8233, "loc": { "start": { "line": 173, @@ -42443,8 +43108,8 @@ "updateContext": null }, "value": "=", - "start": 8395, - "end": 8396, + "start": 8234, + "end": 8235, "loc": { "start": { "line": 173, @@ -42469,8 +43134,8 @@ "binop": null }, "value": "x", - "start": 8397, - "end": 8398, + "start": 8236, + "end": 8237, "loc": { "start": { "line": 173, @@ -42495,8 +43160,8 @@ "binop": null, "updateContext": null }, - "start": 8398, - "end": 8399, + "start": 8237, + "end": 8238, "loc": { "start": { "line": 173, @@ -42521,8 +43186,8 @@ "binop": null }, "value": "instance", - "start": 8413, - "end": 8421, + "start": 8252, + "end": 8260, "loc": { "start": { "line": 174, @@ -42547,8 +43212,8 @@ "binop": null, "updateContext": null }, - "start": 8421, - "end": 8422, + "start": 8260, + "end": 8261, "loc": { "start": { "line": 174, @@ -42573,8 +43238,8 @@ "binop": null }, "value": "y", - "start": 8422, - "end": 8423, + "start": 8261, + "end": 8262, "loc": { "start": { "line": 174, @@ -42600,8 +43265,8 @@ "updateContext": null }, "value": "=", - "start": 8424, - "end": 8425, + "start": 8263, + "end": 8264, "loc": { "start": { "line": 174, @@ -42626,8 +43291,8 @@ "binop": null }, "value": "y", - "start": 8426, - "end": 8427, + "start": 8265, + "end": 8266, "loc": { "start": { "line": 174, @@ -42652,8 +43317,8 @@ "binop": null, "updateContext": null }, - "start": 8427, - "end": 8428, + "start": 8266, + "end": 8267, "loc": { "start": { "line": 174, @@ -42667,21 +43332,19 @@ }, { "type": { - "label": "if", - "keyword": "if", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 8444, - "end": 8446, + "value": "parallaxInfo", + "start": 8283, + "end": 8295, "loc": { "start": { "line": 176, @@ -42689,32 +43352,33 @@ }, "end": { "line": 176, - "column": 14 + "column": 24 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8447, - "end": 8448, + "start": 8295, + "end": 8296, "loc": { "start": { "line": 176, - "column": 15 + "column": 24 }, "end": { "line": 176, - "column": 16 + "column": 25 } } }, @@ -42730,17 +43394,17 @@ "postfix": false, "binop": null }, - "value": "parallaxInfo", - "start": 8448, - "end": 8460, + "value": "lastCamPos", + "start": 8296, + "end": 8306, "loc": { "start": { "line": 176, - "column": 16 + "column": 25 }, "end": { "line": 176, - "column": 28 + "column": 35 } } }, @@ -42757,16 +43421,16 @@ "binop": null, "updateContext": null }, - "start": 8460, - "end": 8461, + "start": 8306, + "end": 8307, "loc": { "start": { "line": 176, - "column": 28 + "column": 35 }, "end": { "line": 176, - "column": 29 + "column": 36 } } }, @@ -42782,74 +43446,128 @@ "postfix": false, "binop": null }, - "value": "loop", - "start": 8461, - "end": 8465, + "value": "x", + "start": 8307, + "end": 8308, "loc": { "start": { "line": 176, - "column": 29 + "column": 36 }, "end": { "line": 176, - "column": 33 + "column": 37 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 8309, + "end": 8310, + "loc": { + "start": { + "line": 176, + "column": 38 + }, + "end": { + "line": 176, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, - "start": 8465, - "end": 8466, + "value": "cameraX", + "start": 8311, + "end": 8318, "loc": { "start": { "line": 176, - "column": 33 + "column": 40 }, "end": { "line": 176, - "column": 34 + "column": 47 } } }, { "type": { - "label": "{", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8467, - "end": 8468, + "start": 8318, + "end": 8319, "loc": { "start": { "line": 176, - "column": 35 + "column": 47 }, "end": { "line": 176, - "column": 36 + "column": 48 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parallaxInfo", + "start": 8333, + "end": 8345, + "loc": { + "start": { + "line": 177, + "column": 12 + }, + "end": { + "line": 177, + "column": 24 + } + } + }, + { + "type": { + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -42860,42 +43578,68 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 8486, - "end": 8488, + "start": 8345, + "end": 8346, "loc": { "start": { "line": 177, - "column": 16 + "column": 24 }, "end": { "line": 177, - "column": 18 + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "lastCamPos", + "start": 8346, + "end": 8356, + "loc": { + "start": { + "line": 177, + "column": 25 + }, + "end": { + "line": 177, + "column": 35 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8489, - "end": 8490, + "start": 8356, + "end": 8357, "loc": { "start": { "line": 177, - "column": 19 + "column": 35 }, "end": { "line": 177, - "column": 20 + "column": 36 } } }, @@ -42911,43 +43655,44 @@ "postfix": false, "binop": null }, - "value": "parallaxInfo", - "start": 8490, - "end": 8502, + "value": "y", + "start": 8357, + "end": 8358, "loc": { "start": { "line": 177, - "column": 20 + "column": 36 }, "end": { "line": 177, - "column": 32 + "column": 37 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 8502, - "end": 8503, + "value": "=", + "start": 8359, + "end": 8360, "loc": { "start": { "line": 177, - "column": 32 + "column": 38 }, "end": { "line": 177, - "column": 33 + "column": 39 } } }, @@ -42963,23 +43708,23 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 8503, - "end": 8504, + "value": "cameraY", + "start": 8361, + "end": 8368, "loc": { "start": { "line": 177, - "column": 33 + "column": 40 }, "end": { "line": 177, - "column": 34 + "column": 47 } } }, { "type": { - "label": "==/!=", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -42987,28 +43732,28 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "!==", - "start": 8505, - "end": 8508, + "start": 8368, + "end": 8369, "loc": { "start": { "line": 177, - "column": 35 + "column": 47 }, "end": { "line": 177, - "column": 38 + "column": 48 } } }, { "type": { - "label": "num", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -43017,25 +43762,25 @@ "binop": null, "updateContext": null }, - "value": 1, - "start": 8509, - "end": 8510, + "value": "if", + "start": 8385, + "end": 8387, "loc": { "start": { - "line": 177, - "column": 39 + "line": 179, + "column": 12 }, "end": { - "line": 177, - "column": 40 + "line": 179, + "column": 14 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -43043,23 +43788,23 @@ "postfix": false, "binop": null }, - "start": 8510, - "end": 8511, + "start": 8388, + "end": 8389, "loc": { "start": { - "line": 177, - "column": 40 + "line": 179, + "column": 15 }, "end": { - "line": 177, - "column": 41 + "line": 179, + "column": 16 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -43068,39 +43813,23 @@ "postfix": false, "binop": null }, - "start": 8512, - "end": 8513, - "loc": { - "start": { - "line": 177, - "column": 42 - }, - "end": { - "line": 177, - "column": 43 - } - } - }, - { - "type": "CommentLine", - "value": " How far we moved relative to the camera", - "start": 8535, - "end": 8577, + "value": "parallaxInfo", + "start": 8389, + "end": 8401, "loc": { "start": { - "line": 178, - "column": 20 + "line": 179, + "column": 16 }, "end": { - "line": 178, - "column": 62 + "line": 179, + "column": 28 } } }, { "type": { - "label": "const", - "keyword": "const", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -43111,17 +43840,16 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 8599, - "end": 8604, + "start": 8401, + "end": 8402, "loc": { "start": { "line": 179, - "column": 20 + "column": 28 }, "end": { "line": 179, - "column": 25 + "column": 29 } } }, @@ -43137,51 +43865,49 @@ "postfix": false, "binop": null }, - "value": "relativeX", - "start": 8605, - "end": 8614, + "value": "loop", + "start": 8402, + "end": 8406, "loc": { "start": { "line": 179, - "column": 26 + "column": 29 }, "end": { "line": 179, - "column": 35 + "column": 33 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 8615, - "end": 8616, + "start": 8406, + "end": 8407, "loc": { "start": { "line": 179, - "column": 36 + "column": 33 }, "end": { "line": 179, - "column": 37 + "column": 34 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -43190,44 +43916,60 @@ "postfix": false, "binop": null }, - "value": "cameraX", - "start": 8617, - "end": 8624, + "start": 8408, + "end": 8409, "loc": { "start": { "line": 179, - "column": 38 + "column": 35 }, "end": { "line": 179, - "column": 45 + "column": 36 + } + } + }, + { + "type": "CommentLine", + "value": " Logic cannot be ran on background instances as they should not loop", + "start": 8427, + "end": 8497, + "loc": { + "start": { + "line": 180, + "column": 16 + }, + "end": { + "line": 180, + "column": 86 } } }, { "type": { - "label": "*", - "beforeExpr": true, + "label": "if", + "keyword": "if", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 10, + "binop": null, "updateContext": null }, - "value": "*", - "start": 8625, - "end": 8626, + "value": "if", + "start": 8515, + "end": 8517, "loc": { "start": { - "line": 179, - "column": 46 + "line": 181, + "column": 16 }, "end": { - "line": 179, - "column": 47 + "line": 181, + "column": 18 } } }, @@ -43243,122 +43985,123 @@ "postfix": false, "binop": null }, - "start": 8627, - "end": 8628, + "start": 8518, + "end": 8519, "loc": { "start": { - "line": 179, - "column": 48 + "line": 181, + "column": 19 }, "end": { - "line": 179, - "column": 49 + "line": 181, + "column": 20 } } }, { "type": { - "label": "num", - "beforeExpr": false, + "label": "prefix", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, "binop": null, "updateContext": null }, - "value": 1, - "start": 8628, - "end": 8629, + "value": "!", + "start": 8519, + "end": 8520, "loc": { "start": { - "line": 179, - "column": 49 + "line": 181, + "column": 20 }, "end": { - "line": 179, - "column": 50 + "line": 181, + "column": 21 } } }, { "type": { - "label": "+/-", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, - "updateContext": null + "binop": null }, - "value": "-", - "start": 8630, - "end": 8631, + "value": "isBackgroundX", + "start": 8520, + "end": 8533, "loc": { "start": { - "line": 179, - "column": 51 + "line": 181, + "column": 21 }, "end": { - "line": 179, - "column": 52 + "line": 181, + "column": 34 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "&&", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 2, + "updateContext": null }, - "value": "parallaxInfo", - "start": 8632, - "end": 8644, + "value": "&&", + "start": 8534, + "end": 8536, "loc": { "start": { - "line": 179, - "column": 53 + "line": 181, + "column": 35 }, "end": { - "line": 179, - "column": 65 + "line": 181, + "column": 37 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, "binop": null, "updateContext": null }, - "start": 8644, - "end": 8645, + "value": "!", + "start": 8537, + "end": 8538, "loc": { "start": { - "line": 179, - "column": 65 + "line": 181, + "column": 38 }, "end": { - "line": 179, - "column": 66 + "line": 181, + "column": 39 } } }, @@ -43374,17 +44117,17 @@ "postfix": false, "binop": null }, - "value": "x", - "start": 8645, - "end": 8646, + "value": "isBackgroundY", + "start": 8538, + "end": 8551, "loc": { "start": { - "line": 179, - "column": 66 + "line": 181, + "column": 39 }, "end": { - "line": 179, - "column": 67 + "line": 181, + "column": 52 } } }, @@ -43400,57 +44143,56 @@ "postfix": false, "binop": null }, - "start": 8646, - "end": 8647, + "start": 8551, + "end": 8552, "loc": { "start": { - "line": 179, - "column": 67 + "line": 181, + "column": 52 }, "end": { - "line": 179, - "column": 68 + "line": 181, + "column": 53 } } }, { "type": { - "label": ";", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8647, - "end": 8648, + "start": 8553, + "end": 8554, "loc": { "start": { - "line": 179, - "column": 68 + "line": 181, + "column": 54 }, "end": { - "line": 179, - "column": 69 + "line": 181, + "column": 55 } } }, { "type": "CommentLine", "value": " The start pos + total width", - "start": 8670, - "end": 8700, + "start": 8576, + "end": 8606, "loc": { "start": { - "line": 180, + "line": 182, "column": 20 }, "end": { - "line": 180, + "line": 182, "column": 50 } } @@ -43470,15 +44212,15 @@ "updateContext": null }, "value": "const", - "start": 8722, - "end": 8727, + "start": 8628, + "end": 8633, "loc": { "start": { - "line": 181, + "line": 183, "column": 20 }, "end": { - "line": 181, + "line": 183, "column": 25 } } @@ -43495,17 +44237,17 @@ "postfix": false, "binop": null }, - "value": "endX", - "start": 8728, - "end": 8732, + "value": "rightEnd", + "start": 8634, + "end": 8642, "loc": { "start": { - "line": 181, + "line": 183, "column": 26 }, "end": { - "line": 181, - "column": 30 + "line": 183, + "column": 34 } } }, @@ -43523,16 +44265,16 @@ "updateContext": null }, "value": "=", - "start": 8733, - "end": 8734, + "start": 8643, + "end": 8644, "loc": { "start": { - "line": 181, - "column": 31 + "line": 183, + "column": 35 }, "end": { - "line": 181, - "column": 32 + "line": 183, + "column": 36 } } }, @@ -43548,16 +44290,16 @@ "postfix": false, "binop": null }, - "value": "parallaxInfo", - "start": 8735, - "end": 8747, + "value": "instance", + "start": 8645, + "end": 8653, "loc": { "start": { - "line": 181, - "column": 33 + "line": 183, + "column": 37 }, "end": { - "line": 181, + "line": 183, "column": 45 } } @@ -43575,68 +44317,16 @@ "binop": null, "updateContext": null }, - "start": 8747, - "end": 8748, + "start": 8653, + "end": 8654, "loc": { "start": { - "line": 181, + "line": 183, "column": 45 }, "end": { - "line": 181, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "initialPos", - "start": 8748, - "end": 8758, - "loc": { - "start": { - "line": 181, + "line": 183, "column": 46 - }, - "end": { - "line": 181, - "column": 56 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8758, - "end": 8759, - "loc": { - "start": { - "line": 181, - "column": 56 - }, - "end": { - "line": 181, - "column": 57 } } }, @@ -43653,16 +44343,16 @@ "binop": null }, "value": "x", - "start": 8759, - "end": 8760, + "start": 8654, + "end": 8655, "loc": { "start": { - "line": 181, - "column": 57 + "line": 183, + "column": 46 }, "end": { - "line": 181, - "column": 58 + "line": 183, + "column": 47 } } }, @@ -43680,16 +44370,16 @@ "updateContext": null }, "value": "+", - "start": 8761, - "end": 8762, + "start": 8656, + "end": 8657, "loc": { "start": { - "line": 181, - "column": 59 + "line": 183, + "column": 48 }, "end": { - "line": 181, - "column": 60 + "line": 183, + "column": 49 } } }, @@ -43706,16 +44396,16 @@ "binop": null }, "value": "instance", - "start": 8763, - "end": 8771, + "start": 8658, + "end": 8666, "loc": { "start": { - "line": 181, - "column": 61 + "line": 183, + "column": 50 }, "end": { - "line": 181, - "column": 69 + "line": 183, + "column": 58 } } }, @@ -43732,16 +44422,16 @@ "binop": null, "updateContext": null }, - "start": 8771, - "end": 8772, + "start": 8666, + "end": 8667, "loc": { "start": { - "line": 181, - "column": 69 + "line": 183, + "column": 58 }, "end": { - "line": 181, - "column": 70 + "line": 183, + "column": 59 } } }, @@ -43758,16 +44448,16 @@ "binop": null }, "value": "icon", - "start": 8772, - "end": 8776, + "start": 8667, + "end": 8671, "loc": { "start": { - "line": 181, - "column": 70 + "line": 183, + "column": 59 }, "end": { - "line": 181, - "column": 74 + "line": 183, + "column": 63 } } }, @@ -43784,16 +44474,16 @@ "binop": null, "updateContext": null }, - "start": 8776, - "end": 8777, + "start": 8671, + "end": 8672, "loc": { "start": { - "line": 181, - "column": 74 + "line": 183, + "column": 63 }, "end": { - "line": 181, - "column": 75 + "line": 183, + "column": 64 } } }, @@ -43810,16 +44500,16 @@ "binop": null }, "value": "width", - "start": 8777, - "end": 8782, + "start": 8672, + "end": 8677, "loc": { "start": { - "line": 181, - "column": 75 + "line": 183, + "column": 64 }, "end": { - "line": 181, - "column": 80 + "line": 183, + "column": 69 } } }, @@ -43836,31 +44526,31 @@ "binop": null, "updateContext": null }, - "start": 8782, - "end": 8783, + "start": 8677, + "end": 8678, "loc": { "start": { - "line": 181, - "column": 80 + "line": 183, + "column": 69 }, "end": { - "line": 181, - "column": 81 + "line": 183, + "column": 70 } } }, { "type": "CommentLine", "value": " The start pos - total width / 2", - "start": 8805, - "end": 8839, + "start": 8700, + "end": 8734, "loc": { "start": { - "line": 182, + "line": 184, "column": 20 }, "end": { - "line": 182, + "line": 184, "column": 54 } } @@ -43880,15 +44570,15 @@ "updateContext": null }, "value": "const", - "start": 8861, - "end": 8866, + "start": 8756, + "end": 8761, "loc": { "start": { - "line": 183, + "line": 185, "column": 20 }, "end": { - "line": 183, + "line": 185, "column": 25 } } @@ -43905,17 +44595,17 @@ "postfix": false, "binop": null }, - "value": "negativeEndX", - "start": 8867, - "end": 8879, + "value": "leftEnd", + "start": 8762, + "end": 8769, "loc": { "start": { - "line": 183, + "line": 185, "column": 26 }, "end": { - "line": 183, - "column": 38 + "line": 185, + "column": 33 } } }, @@ -43933,68 +44623,16 @@ "updateContext": null }, "value": "=", - "start": 8880, - "end": 8881, - "loc": { - "start": { - "line": 183, - "column": 39 - }, - "end": { - "line": 183, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parallaxInfo", - "start": 8882, - "end": 8894, - "loc": { - "start": { - "line": 183, - "column": 41 - }, - "end": { - "line": 183, - "column": 53 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8894, - "end": 8895, + "start": 8770, + "end": 8771, "loc": { "start": { - "line": 183, - "column": 53 + "line": 185, + "column": 34 }, "end": { - "line": 183, - "column": 54 + "line": 185, + "column": 35 } } }, @@ -44010,17 +44648,17 @@ "postfix": false, "binop": null }, - "value": "initialPos", - "start": 8895, - "end": 8905, + "value": "instance", + "start": 8772, + "end": 8780, "loc": { "start": { - "line": 183, - "column": 54 + "line": 185, + "column": 36 }, "end": { - "line": 183, - "column": 64 + "line": 185, + "column": 44 } } }, @@ -44037,16 +44675,16 @@ "binop": null, "updateContext": null }, - "start": 8905, - "end": 8906, + "start": 8780, + "end": 8781, "loc": { "start": { - "line": 183, - "column": 64 + "line": 185, + "column": 44 }, "end": { - "line": 183, - "column": 65 + "line": 185, + "column": 45 } } }, @@ -44063,16 +44701,16 @@ "binop": null }, "value": "x", - "start": 8906, - "end": 8907, + "start": 8781, + "end": 8782, "loc": { "start": { - "line": 183, - "column": 65 + "line": 185, + "column": 45 }, "end": { - "line": 183, - "column": 66 + "line": 185, + "column": 46 } } }, @@ -44090,16 +44728,16 @@ "updateContext": null }, "value": "-", - "start": 8908, - "end": 8909, + "start": 8783, + "end": 8784, "loc": { "start": { - "line": 183, - "column": 67 + "line": 185, + "column": 47 }, "end": { - "line": 183, - "column": 68 + "line": 185, + "column": 48 } } }, @@ -44116,16 +44754,16 @@ "binop": null }, "value": "instance", - "start": 8910, - "end": 8918, + "start": 8785, + "end": 8793, "loc": { "start": { - "line": 183, - "column": 69 + "line": 185, + "column": 49 }, "end": { - "line": 183, - "column": 77 + "line": 185, + "column": 57 } } }, @@ -44142,16 +44780,16 @@ "binop": null, "updateContext": null }, - "start": 8918, - "end": 8919, + "start": 8793, + "end": 8794, "loc": { "start": { - "line": 183, - "column": 77 + "line": 185, + "column": 57 }, "end": { - "line": 183, - "column": 78 + "line": 185, + "column": 58 } } }, @@ -44168,16 +44806,16 @@ "binop": null }, "value": "icon", - "start": 8919, - "end": 8923, + "start": 8794, + "end": 8798, "loc": { "start": { - "line": 183, - "column": 78 + "line": 185, + "column": 58 }, "end": { - "line": 183, - "column": 82 + "line": 185, + "column": 62 } } }, @@ -44194,16 +44832,16 @@ "binop": null, "updateContext": null }, - "start": 8923, - "end": 8924, + "start": 8798, + "end": 8799, "loc": { "start": { - "line": 183, - "column": 82 + "line": 185, + "column": 62 }, "end": { - "line": 183, - "column": 83 + "line": 185, + "column": 63 } } }, @@ -44220,16 +44858,16 @@ "binop": null }, "value": "width", - "start": 8924, - "end": 8929, + "start": 8799, + "end": 8804, "loc": { "start": { - "line": 183, - "column": 83 + "line": 185, + "column": 63 }, "end": { - "line": 183, - "column": 88 + "line": 185, + "column": 68 } } }, @@ -44247,16 +44885,16 @@ "updateContext": null }, "value": "/", - "start": 8930, - "end": 8931, + "start": 8805, + "end": 8806, "loc": { "start": { - "line": 183, - "column": 89 + "line": 185, + "column": 69 }, "end": { - "line": 183, - "column": 90 + "line": 185, + "column": 70 } } }, @@ -44273,17 +44911,17 @@ "binop": null, "updateContext": null }, - "value": 2, - "start": 8932, - "end": 8933, + "value": 6, + "start": 8807, + "end": 8808, "loc": { "start": { - "line": 183, - "column": 91 + "line": 185, + "column": 71 }, "end": { - "line": 183, - "column": 92 + "line": 185, + "column": 72 } } }, @@ -44300,16 +44938,16 @@ "binop": null, "updateContext": null }, - "start": 8933, - "end": 8934, + "start": 8808, + "end": 8809, "loc": { "start": { - "line": 183, - "column": 92 + "line": 185, + "column": 72 }, "end": { - "line": 183, - "column": 93 + "line": 185, + "column": 73 } } }, @@ -44328,15 +44966,15 @@ "updateContext": null }, "value": "if", - "start": 8956, - "end": 8958, + "start": 8831, + "end": 8833, "loc": { "start": { - "line": 184, + "line": 186, "column": 20 }, "end": { - "line": 184, + "line": 186, "column": 22 } } @@ -44353,15 +44991,15 @@ "postfix": false, "binop": null }, - "start": 8959, - "end": 8960, + "start": 8834, + "end": 8835, "loc": { "start": { - "line": 184, + "line": 186, "column": 23 }, "end": { - "line": 184, + "line": 186, "column": 24 } } @@ -44378,17 +45016,17 @@ "postfix": false, "binop": null }, - "value": "relativeX", - "start": 8960, - "end": 8969, + "value": "cameraX", + "start": 8835, + "end": 8842, "loc": { "start": { - "line": 184, + "line": 186, "column": 24 }, "end": { - "line": 184, - "column": 33 + "line": 186, + "column": 31 } } }, @@ -44406,16 +45044,16 @@ "updateContext": null }, "value": ">", - "start": 8970, - "end": 8971, + "start": 8843, + "end": 8844, "loc": { "start": { - "line": 184, - "column": 34 + "line": 186, + "column": 32 }, "end": { - "line": 184, - "column": 35 + "line": 186, + "column": 33 } } }, @@ -44431,17 +45069,17 @@ "postfix": false, "binop": null }, - "value": "endX", - "start": 8972, - "end": 8976, + "value": "rightEnd", + "start": 8845, + "end": 8853, "loc": { "start": { - "line": 184, - "column": 36 + "line": 186, + "column": 34 }, "end": { - "line": 184, - "column": 40 + "line": 186, + "column": 42 } } }, @@ -44457,16 +45095,16 @@ "postfix": false, "binop": null }, - "start": 8976, - "end": 8977, + "start": 8853, + "end": 8854, "loc": { "start": { - "line": 184, - "column": 40 + "line": 186, + "column": 42 }, "end": { - "line": 184, - "column": 41 + "line": 186, + "column": 43 } } }, @@ -44482,16 +45120,16 @@ "postfix": false, "binop": null }, - "start": 8978, - "end": 8979, + "start": 8855, + "end": 8856, "loc": { "start": { - "line": 184, - "column": 42 + "line": 186, + "column": 44 }, "end": { - "line": 184, - "column": 43 + "line": 186, + "column": 45 } } }, @@ -44507,69 +45145,17 @@ "postfix": false, "binop": null }, - "value": "parallaxInfo", - "start": 9005, - "end": 9017, + "value": "instance", + "start": 8882, + "end": 8890, "loc": { "start": { - "line": 185, + "line": 187, "column": 24 }, "end": { - "line": 185, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9017, - "end": 9018, - "loc": { - "start": { - "line": 185, - "column": 36 - }, - "end": { - "line": 185, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "initialPos", - "start": 9018, - "end": 9028, - "loc": { - "start": { - "line": 185, - "column": 37 - }, - "end": { - "line": 185, - "column": 47 + "line": 187, + "column": 32 } } }, @@ -44586,16 +45172,16 @@ "binop": null, "updateContext": null }, - "start": 9028, - "end": 9029, + "start": 8890, + "end": 8891, "loc": { "start": { - "line": 185, - "column": 47 + "line": 187, + "column": 32 }, "end": { - "line": 185, - "column": 48 + "line": 187, + "column": 33 } } }, @@ -44612,16 +45198,16 @@ "binop": null }, "value": "x", - "start": 9029, - "end": 9030, + "start": 8891, + "end": 8892, "loc": { "start": { - "line": 185, - "column": 48 + "line": 187, + "column": 33 }, "end": { - "line": 185, - "column": 49 + "line": 187, + "column": 34 } } }, @@ -44639,16 +45225,16 @@ "updateContext": null }, "value": "+=", - "start": 9031, - "end": 9033, + "start": 8893, + "end": 8895, "loc": { "start": { - "line": 185, - "column": 50 + "line": 187, + "column": 35 }, "end": { - "line": 185, - "column": 52 + "line": 187, + "column": 37 } } }, @@ -44665,16 +45251,16 @@ "binop": null }, "value": "instance", - "start": 9034, - "end": 9042, + "start": 8896, + "end": 8904, "loc": { "start": { - "line": 185, - "column": 53 + "line": 187, + "column": 38 }, "end": { - "line": 185, - "column": 61 + "line": 187, + "column": 46 } } }, @@ -44691,16 +45277,16 @@ "binop": null, "updateContext": null }, - "start": 9042, - "end": 9043, + "start": 8904, + "end": 8905, "loc": { "start": { - "line": 185, - "column": 61 + "line": 187, + "column": 46 }, "end": { - "line": 185, - "column": 62 + "line": 187, + "column": 47 } } }, @@ -44717,16 +45303,16 @@ "binop": null }, "value": "icon", - "start": 9043, - "end": 9047, + "start": 8905, + "end": 8909, "loc": { "start": { - "line": 185, - "column": 62 + "line": 187, + "column": 47 }, "end": { - "line": 185, - "column": 66 + "line": 187, + "column": 51 } } }, @@ -44743,16 +45329,16 @@ "binop": null, "updateContext": null }, - "start": 9047, - "end": 9048, + "start": 8909, + "end": 8910, "loc": { "start": { - "line": 185, - "column": 66 + "line": 187, + "column": 51 }, "end": { - "line": 185, - "column": 67 + "line": 187, + "column": 52 } } }, @@ -44769,16 +45355,16 @@ "binop": null }, "value": "width", - "start": 9048, - "end": 9053, + "start": 8910, + "end": 8915, "loc": { "start": { - "line": 185, - "column": 67 + "line": 187, + "column": 52 }, "end": { - "line": 185, - "column": 72 + "line": 187, + "column": 57 } } }, @@ -44795,16 +45381,16 @@ "binop": null, "updateContext": null }, - "start": 9053, - "end": 9054, + "start": 8915, + "end": 8916, "loc": { "start": { - "line": 185, - "column": 72 + "line": 187, + "column": 57 }, "end": { - "line": 185, - "column": 73 + "line": 187, + "column": 58 } } }, @@ -44820,15 +45406,15 @@ "postfix": false, "binop": null }, - "start": 9076, - "end": 9077, + "start": 8938, + "end": 8939, "loc": { "start": { - "line": 186, + "line": 188, "column": 20 }, "end": { - "line": 186, + "line": 188, "column": 21 } } @@ -44848,15 +45434,15 @@ "updateContext": null }, "value": "else", - "start": 9078, - "end": 9082, + "start": 8940, + "end": 8944, "loc": { "start": { - "line": 186, + "line": 188, "column": 22 }, "end": { - "line": 186, + "line": 188, "column": 26 } } @@ -44876,15 +45462,15 @@ "updateContext": null }, "value": "if", - "start": 9083, - "end": 9085, + "start": 8945, + "end": 8947, "loc": { "start": { - "line": 186, + "line": 188, "column": 27 }, "end": { - "line": 186, + "line": 188, "column": 29 } } @@ -44901,15 +45487,15 @@ "postfix": false, "binop": null }, - "start": 9086, - "end": 9087, + "start": 8948, + "end": 8949, "loc": { "start": { - "line": 186, + "line": 188, "column": 30 }, "end": { - "line": 186, + "line": 188, "column": 31 } } @@ -44926,17 +45512,17 @@ "postfix": false, "binop": null }, - "value": "relativeX", - "start": 9087, - "end": 9096, + "value": "cameraX", + "start": 8949, + "end": 8956, "loc": { "start": { - "line": 186, + "line": 188, "column": 31 }, "end": { - "line": 186, - "column": 40 + "line": 188, + "column": 38 } } }, @@ -44954,16 +45540,16 @@ "updateContext": null }, "value": "<", - "start": 9097, - "end": 9098, + "start": 8957, + "end": 8958, "loc": { "start": { - "line": 186, - "column": 41 + "line": 188, + "column": 39 }, "end": { - "line": 186, - "column": 42 + "line": 188, + "column": 40 } } }, @@ -44979,17 +45565,17 @@ "postfix": false, "binop": null }, - "value": "negativeEndX", - "start": 9099, - "end": 9111, + "value": "leftEnd", + "start": 8959, + "end": 8966, "loc": { "start": { - "line": 186, - "column": 43 + "line": 188, + "column": 41 }, "end": { - "line": 186, - "column": 55 + "line": 188, + "column": 48 } } }, @@ -45005,16 +45591,16 @@ "postfix": false, "binop": null }, - "start": 9111, - "end": 9112, + "start": 8966, + "end": 8967, "loc": { "start": { - "line": 186, - "column": 55 + "line": 188, + "column": 48 }, "end": { - "line": 186, - "column": 56 + "line": 188, + "column": 49 } } }, @@ -45030,16 +45616,16 @@ "postfix": false, "binop": null }, - "start": 9113, - "end": 9114, + "start": 8968, + "end": 8969, "loc": { "start": { - "line": 186, - "column": 57 + "line": 188, + "column": 50 }, "end": { - "line": 186, - "column": 58 + "line": 188, + "column": 51 } } }, @@ -45055,69 +45641,17 @@ "postfix": false, "binop": null }, - "value": "parallaxInfo", - "start": 9140, - "end": 9152, + "value": "instance", + "start": 8995, + "end": 9003, "loc": { "start": { - "line": 187, + "line": 189, "column": 24 }, "end": { - "line": 187, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9152, - "end": 9153, - "loc": { - "start": { - "line": 187, - "column": 36 - }, - "end": { - "line": 187, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "initialPos", - "start": 9153, - "end": 9163, - "loc": { - "start": { - "line": 187, - "column": 37 - }, - "end": { - "line": 187, - "column": 47 + "line": 189, + "column": 32 } } }, @@ -45134,16 +45668,16 @@ "binop": null, "updateContext": null }, - "start": 9163, - "end": 9164, + "start": 9003, + "end": 9004, "loc": { "start": { - "line": 187, - "column": 47 + "line": 189, + "column": 32 }, "end": { - "line": 187, - "column": 48 + "line": 189, + "column": 33 } } }, @@ -45160,16 +45694,16 @@ "binop": null }, "value": "x", - "start": 9164, - "end": 9165, + "start": 9004, + "end": 9005, "loc": { "start": { - "line": 187, - "column": 48 + "line": 189, + "column": 33 }, "end": { - "line": 187, - "column": 49 + "line": 189, + "column": 34 } } }, @@ -45187,16 +45721,16 @@ "updateContext": null }, "value": "-=", - "start": 9166, - "end": 9168, + "start": 9006, + "end": 9008, "loc": { "start": { - "line": 187, - "column": 50 + "line": 189, + "column": 35 }, "end": { - "line": 187, - "column": 52 + "line": 189, + "column": 37 } } }, @@ -45213,16 +45747,16 @@ "binop": null }, "value": "instance", - "start": 9169, - "end": 9177, + "start": 9009, + "end": 9017, "loc": { "start": { - "line": 187, - "column": 53 + "line": 189, + "column": 38 }, "end": { - "line": 187, - "column": 61 + "line": 189, + "column": 46 } } }, @@ -45239,16 +45773,16 @@ "binop": null, "updateContext": null }, - "start": 9177, - "end": 9178, + "start": 9017, + "end": 9018, "loc": { "start": { - "line": 187, - "column": 61 + "line": 189, + "column": 46 }, "end": { - "line": 187, - "column": 62 + "line": 189, + "column": 47 } } }, @@ -45265,16 +45799,16 @@ "binop": null }, "value": "icon", - "start": 9178, - "end": 9182, + "start": 9018, + "end": 9022, "loc": { "start": { - "line": 187, - "column": 62 + "line": 189, + "column": 47 }, "end": { - "line": 187, - "column": 66 + "line": 189, + "column": 51 } } }, @@ -45291,16 +45825,16 @@ "binop": null, "updateContext": null }, - "start": 9182, - "end": 9183, + "start": 9022, + "end": 9023, "loc": { "start": { - "line": 187, - "column": 66 + "line": 189, + "column": 51 }, "end": { - "line": 187, - "column": 67 + "line": 189, + "column": 52 } } }, @@ -45317,16 +45851,16 @@ "binop": null }, "value": "width", - "start": 9183, - "end": 9188, + "start": 9023, + "end": 9028, "loc": { "start": { - "line": 187, - "column": 67 + "line": 189, + "column": 52 }, "end": { - "line": 187, - "column": 72 + "line": 189, + "column": 57 } } }, @@ -45343,16 +45877,16 @@ "binop": null, "updateContext": null }, - "start": 9188, - "end": 9189, + "start": 9028, + "end": 9029, "loc": { "start": { - "line": 187, - "column": 72 + "line": 189, + "column": 57 }, "end": { - "line": 187, - "column": 73 + "line": 189, + "column": 58 } } }, @@ -45368,15 +45902,15 @@ "postfix": false, "binop": null }, - "start": 9211, - "end": 9212, + "start": 9051, + "end": 9052, "loc": { "start": { - "line": 188, + "line": 190, "column": 20 }, "end": { - "line": 188, + "line": 190, "column": 21 } } @@ -45393,15 +45927,15 @@ "postfix": false, "binop": null }, - "start": 9230, - "end": 9231, + "start": 9070, + "end": 9071, "loc": { "start": { - "line": 189, + "line": 191, "column": 16 }, "end": { - "line": 189, + "line": 191, "column": 17 } } @@ -45418,15 +45952,15 @@ "postfix": false, "binop": null }, - "start": 9245, - "end": 9246, + "start": 9085, + "end": 9086, "loc": { "start": { - "line": 190, + "line": 192, "column": 12 }, "end": { - "line": 190, + "line": 192, "column": 13 } } @@ -45443,15 +45977,15 @@ "postfix": false, "binop": null }, - "start": 9256, - "end": 9257, + "start": 9096, + "end": 9097, "loc": { "start": { - "line": 191, + "line": 193, "column": 8 }, "end": { - "line": 191, + "line": 193, "column": 9 } } @@ -45468,15 +46002,15 @@ "postfix": false, "binop": null }, - "start": 9271, - "end": 9272, + "start": 9103, + "end": 9104, "loc": { "start": { - "line": 192, + "line": 194, "column": 4 }, "end": { - "line": 192, + "line": 194, "column": 5 } } @@ -45493,15 +46027,15 @@ "postfix": false, "binop": null }, - "start": 9274, - "end": 9275, + "start": 9106, + "end": 9107, "loc": { "start": { - "line": 193, + "line": 195, "column": 0 }, "end": { - "line": 193, + "line": 195, "column": 1 } } @@ -45521,15 +46055,15 @@ "updateContext": null }, "value": "const", - "start": 9279, - "end": 9284, + "start": 9111, + "end": 9116, "loc": { "start": { - "line": 195, + "line": 197, "column": 0 }, "end": { - "line": 195, + "line": 197, "column": 5 } } @@ -45547,15 +46081,15 @@ "binop": null }, "value": "Parallax", - "start": 9285, - "end": 9293, + "start": 9117, + "end": 9125, "loc": { "start": { - "line": 195, + "line": 197, "column": 6 }, "end": { - "line": 195, + "line": 197, "column": 14 } } @@ -45574,15 +46108,15 @@ "updateContext": null }, "value": "=", - "start": 9294, - "end": 9295, + "start": 9126, + "end": 9127, "loc": { "start": { - "line": 195, + "line": 197, "column": 15 }, "end": { - "line": 195, + "line": 197, "column": 16 } } @@ -45602,15 +46136,15 @@ "updateContext": null }, "value": "new", - "start": 9296, - "end": 9299, + "start": 9128, + "end": 9131, "loc": { "start": { - "line": 195, + "line": 197, "column": 17 }, "end": { - "line": 195, + "line": 197, "column": 20 } } @@ -45628,15 +46162,15 @@ "binop": null }, "value": "ParallaxSingleton", - "start": 9300, - "end": 9317, + "start": 9132, + "end": 9149, "loc": { "start": { - "line": 195, + "line": 197, "column": 21 }, "end": { - "line": 195, + "line": 197, "column": 38 } } @@ -45653,15 +46187,15 @@ "postfix": false, "binop": null }, - "start": 9317, - "end": 9318, + "start": 9149, + "end": 9150, "loc": { "start": { - "line": 195, + "line": 197, "column": 38 }, "end": { - "line": 195, + "line": 197, "column": 39 } } @@ -45678,15 +46212,15 @@ "postfix": false, "binop": null }, - "start": 9318, - "end": 9319, + "start": 9150, + "end": 9151, "loc": { "start": { - "line": 195, + "line": 197, "column": 39 }, "end": { - "line": 195, + "line": 197, "column": 40 } } @@ -45704,15 +46238,15 @@ "binop": null, "updateContext": null }, - "start": 9319, - "end": 9320, + "start": 9151, + "end": 9152, "loc": { "start": { - "line": 195, + "line": 197, "column": 40 }, "end": { - "line": 195, + "line": 197, "column": 41 } } @@ -45732,15 +46266,15 @@ "updateContext": null }, "value": "export", - "start": 9322, - "end": 9328, + "start": 9154, + "end": 9160, "loc": { "start": { - "line": 196, + "line": 198, "column": 0 }, "end": { - "line": 196, + "line": 198, "column": 6 } } @@ -45757,15 +46291,15 @@ "postfix": false, "binop": null }, - "start": 9329, - "end": 9330, + "start": 9161, + "end": 9162, "loc": { "start": { - "line": 196, + "line": 198, "column": 7 }, "end": { - "line": 196, + "line": 198, "column": 8 } } @@ -45783,15 +46317,15 @@ "binop": null }, "value": "Parallax", - "start": 9331, - "end": 9339, + "start": 9163, + "end": 9171, "loc": { "start": { - "line": 196, + "line": 198, "column": 9 }, "end": { - "line": 196, + "line": 198, "column": 17 } } @@ -45808,15 +46342,15 @@ "postfix": false, "binop": null }, - "start": 9340, - "end": 9341, + "start": 9172, + "end": 9173, "loc": { "start": { - "line": 196, + "line": 198, "column": 18 }, "end": { - "line": 196, + "line": 198, "column": 19 } } @@ -45834,15 +46368,15 @@ "binop": null, "updateContext": null }, - "start": 9341, - "end": 9342, + "start": 9173, + "end": 9174, "loc": { "start": { - "line": 196, + "line": 198, "column": 19 }, "end": { - "line": 196, + "line": 198, "column": 20 } } @@ -45860,15 +46394,15 @@ "binop": null, "updateContext": null }, - "start": 9342, - "end": 9342, + "start": 9174, + "end": 9174, "loc": { "start": { - "line": 196, + "line": 198, "column": 20 }, "end": { - "line": 196, + "line": 198, "column": 20 } } diff --git a/docs/class/src/parallax.mjs~ParallaxSingleton.html b/docs/class/src/parallax.mjs~ParallaxSingleton.html index 1f3220d..d06a8bc 100644 --- a/docs/class/src/parallax.mjs~ParallaxSingleton.html +++ b/docs/class/src/parallax.mjs~ParallaxSingleton.html @@ -709,7 +709,7 @@
import {Parallax} from 'parallax'
import {Parallax} from 'parallax'