BlueGit

blue-star speeltuin

remove line

timfa wsadhelios · pushed by timfa

Authored 2022-10-20 · 4 years ago

Hash
a0e570363a27ac852b7bef7ce247094c7f8b124b
Parent
18fdede8
3 files changed +55 −81
build/framework.js +50 −71
@@ -1,7 +1,7 @@
1 1
2 2 /*
3 3 * Start File:
4 * /e/Development/Repositories/frameworkv3/framework/engine/game.js
4 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/game.js
5 5 */
6 6 class Game
7 7 {
@@ -122,12 +122,12 @@ class Game
122 122 }
123 123 /*
124 124 * End File:
125 * /e/Development/Repositories/frameworkv3/framework/engine/game.js
125 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/game.js
126 126 */
127 127
128 128 /*
129 129 * Start File:
130 * /e/Development/Repositories/frameworkv3/framework/engine/gameobject.js
130 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/gameobject.js
131 131 */
132 132 class GameObject
133 133 {
@@ -170,12 +170,12 @@ class GameObject
170 170 }
171 171 /*
172 172 * End File:
173 * /e/Development/Repositories/frameworkv3/framework/engine/gameobject.js
173 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/gameobject.js
174 174 */
175 175
176 176 /*
177 177 * Start File:
178 * /e/Development/Repositories/frameworkv3/framework/engine/image.js
178 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/image.js
179 179 */
180 180 class image
181 181 {
@@ -292,12 +292,12 @@ class image
292 292 }
293 293 /*
294 294 * End File:
295 * /e/Development/Repositories/frameworkv3/framework/engine/image.js
295 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/image.js
296 296 */
297 297
298 298 /*
299 299 * Start File:
300 * /e/Development/Repositories/frameworkv3/framework/engine/objectComponents/collider.js
300 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/objectComponents/collider.js
301 301 */
302 302 class Collider
303 303 {
@@ -403,42 +403,21 @@ class Collider
403 403 var ohh = o2.transform.size.y / 2;
404 404
405 405 //CHECK FROM OBJ PERSPECTIVE
406 var p =
406 var points =
407 407 [
408 [this.gameObject.transform.position.x - hw, this.gameObject.transform.position.y - hh],
409 [this.gameObject.transform.position.x + hw, this.gameObject.transform.position.y - hh],
410 [this.gameObject.transform.position.x - hw, this.gameObject.transform.position.y + hh],
411 [this.gameObject.transform.position.x + hw, this.gameObject.transform.position.y + hh]
408 [this.gameObject.transform.position.x - hw, this.gameObject.transform.position.y - hh], // topleft
409 [this.gameObject.transform.position.x + hw, this.gameObject.transform.position.y - hh], // topright
410 [this.gameObject.transform.position.x - hw, this.gameObject.transform.position.y + hh], // bottomleft
411 [this.gameObject.transform.position.x + hw, this.gameObject.transform.position.y + hh] // bottomright
412 412 ];
413 413
414 for (var pi = 0; pi < p.length; pi++)
414 if (points[0][0] >= o2.transform.position.x - ohw && points[0][0] <= o2.transform.position.x + ohw ||
415 points[0][1] >= o2.transform.position.x - ohw && points[0][0] <= o2.transform.position.x + ohw)
415 416 {
416 if (p[pi][0] > o2.transform.position.x - ohw && p[pi][0] < o2.transform.position.x + ohw)
417 if (points[2][0] > o2.transform.position.y - ohh && points[0][0] <= o2.transform.position.x + ohh ||
418 points[2][1] >= o2.transform.position.y - ohh && points[2][0] <= o2.transform.position.y + ohh)
417 419 {
418 if (p[pi][1] > o2.transform.position.y - ohh && p[pi][1] < o2.transform.position.y + ohh)
419 {
420 hit = true;
421 }
422 }
423 }
424
425 //CHECK FROM OTHER PERSPECTIVE
426 var p =
427 [
428 [o2.transform.position.x - ohw, o2.transform.position.y - ohh],
429 [o2.transform.position.x + ohw, o2.transform.position.y - ohh],
430 [o2.transform.position.x - ohw, o2.transform.position.y + ohh],
431 [o2.transform.position.x + ohw, o2.transform.position.y + ohh]
432 ];
433
434 for (var pi = 0; pi < p.length; pi++)
435 {
436 if (p[pi][0] > this.gameObject.transform.position.x - hw && p[pi][0] < this.gameObject.transform.position.x + hw)
437 {
438 if (p[pi][1] > this.gameObject.transform.position.y - hh && p[pi][1] < this.gameObject.transform.position.y + hh)
439 {
440 hit = true;
441 }
420 hit = true;
442 421 }
443 422 }
444 423
@@ -451,12 +430,12 @@ class Collider
451 430 }
452 431 /*
453 432 * End File:
454 * /e/Development/Repositories/frameworkv3/framework/engine/objectComponents/collider.js
433 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/objectComponents/collider.js
455 434 */
456 435
457 436 /*
458 437 * Start File:
459 * /e/Development/Repositories/frameworkv3/framework/engine/objectComponents/renderer.js
438 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/objectComponents/renderer.js
460 439 */
461 440 class Renderer
462 441 {
@@ -626,12 +605,12 @@ class Renderer
626 605 }
627 606 /*
628 607 * End File:
629 * /e/Development/Repositories/frameworkv3/framework/engine/objectComponents/renderer.js
608 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/objectComponents/renderer.js
630 609 */
631 610
632 611 /*
633 612 * Start File:
634 * /e/Development/Repositories/frameworkv3/framework/engine/objectComponents/transform.js
613 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/objectComponents/transform.js
635 614 */
636 615 class Transform
637 616 {
@@ -702,12 +681,12 @@ class Transform
702 681 }
703 682 /*
704 683 * End File:
705 * /e/Development/Repositories/frameworkv3/framework/engine/objectComponents/transform.js
684 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/objectComponents/transform.js
706 685 */
707 686
708 687 /*
709 688 * Start File:
710 * /e/Development/Repositories/frameworkv3/framework/engine/scene.js
689 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/scene.js
711 690 */
712 691 class Scene
713 692 {
@@ -918,12 +897,12 @@ class Scene
918 897 }
919 898 /*
920 899 * End File:
921 * /e/Development/Repositories/frameworkv3/framework/engine/scene.js
900 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/scene.js
922 901 */
923 902
924 903 /*
925 904 * Start File:
926 * /e/Development/Repositories/frameworkv3/framework/extensions/extentions.js
905 * /c/Users/Nick/source/repos/frameworkv3/framework/extensions/extentions.js
927 906 */
928 907 /**
929 908 * Extending exising functionality
@@ -979,12 +958,12 @@ Array.prototype.random = function ()
979 958 };
980 959 /*
981 960 * End File:
982 * /e/Development/Repositories/frameworkv3/framework/extensions/extentions.js
961 * /c/Users/Nick/source/repos/frameworkv3/framework/extensions/extentions.js
983 962 */
984 963
985 964 /*
986 965 * Start File:
987 * /e/Development/Repositories/frameworkv3/framework/extensions/polyfills.js
966 * /c/Users/Nick/source/repos/frameworkv3/framework/extensions/polyfills.js
988 967 */
989 968 if (!Math.sign)
990 969 {
@@ -1002,12 +981,12 @@ if (!Math.sign)
1002 981 (function (e) { var t = function () { try { return !!Symbol.iterator; } catch (e) { return false; } }; var n = t(); var r = function (e) { var t = { next: function () { var t = e.shift(); return { done: t === void 0, value: t }; } }; if (n) { t[Symbol.iterator] = function () { return t; }; } return t; }; var i = function (e) { return encodeURIComponent(e).replace(/%20/g, "+"); }; var o = function (e) { return decodeURIComponent(e).replace(/\+/g, " "); }; var a = function () { var t = function (e) { Object.defineProperty(this, "_entries", { value: {} }); if (typeof e === "string") { if (e !== "") { e = e.replace(/^\?/, ""); var n = e.split("&"); var r; for (var i = 0; i < n.length; i++) { r = n[i].split("="); this.append(o(r[0]), r.length > 1 ? o(r[1]) : ""); } } } else if (e instanceof t) { var a = this; e.forEach(function (e, t) { a.append(e, t); }); } }; var a = t.prototype; a.append = function (e, t) { if (e in this._entries) { this._entries[e].push(t.toString()); } else { this._entries[e] = [t.toString()]; } }; a.delete = function (e) { delete this._entries[e]; }; a.get = function (e) { return e in this._entries ? this._entries[e][0] : null; }; a.getAll = function (e) { return e in this._entries ? this._entries[e].slice(0) : []; }; a.has = function (e) { return e in this._entries; }; a.set = function (e, t) { this._entries[e] = [t.toString()]; }; a.forEach = function (e, t) { var n; for (var r in this._entries) { if (this._entries.hasOwnProperty(r)) { n = this._entries[r]; for (var i = 0; i < n.length; i++) { e.call(t, n[i], r, this); } } } }; a.keys = function () { var e = []; this.forEach(function (t, n) { e.push(n); }); return r(e); }; a.values = function () { var e = []; this.forEach(function (t) { e.push(t); }); return r(e); }; a.entries = function () { var e = []; this.forEach(function (t, n) { e.push([n, t]); }); return r(e); }; if (n) { a[Symbol.iterator] = a.entries; } a.toString = function () { var e = []; this.forEach(function (t, n) { e.push(i(n) + "=" + i(t)); }); return e.join("&"); }; e.URLSearchParams = t; }; if (!("URLSearchParams" in e) || new URLSearchParams("?a=1").toString() !== "a=1") { a(); } })(typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : this); (function (e) { var t = function () { try { var e = new URL("b", "http://a"); e.pathname = "c%20d"; return e.href === "http://a/c%20d" && e.searchParams; } catch (e) { return false; } }; var n = function () { var t = e.URL; var n = function (e, t) { if (typeof e !== "string") e = String(e); var n = document.implementation.createHTMLDocument(""); window.doc = n; if (t) { var r = n.createElement("base"); r.href = t; n.head.appendChild(r); } var i = n.createElement("a"); i.href = e; n.body.appendChild(i); i.href = i.href; if (i.protocol === ":" || !/:/.test(i.href)) { throw new TypeError("Invalid URL"); } Object.defineProperty(this, "_anchorElement", { value: i }); }; var r = n.prototype; var i = function (e) { Object.defineProperty(r, e, { get: function () { return this._anchorElement[e]; }, set: function (t) { this._anchorElement[e] = t; }, enumerable: true }); };["hash", "host", "hostname", "port", "protocol", "search"].forEach(function (e) { i(e); }); Object.defineProperties(r, { toString: { get: function () { var e = this; return function () { return e.href; }; } }, href: { get: function () { return this._anchorElement.href.replace(/\?$/, ""); }, set: function (e) { this._anchorElement.href = e; }, enumerable: true }, pathname: { get: function () { return this._anchorElement.pathname.replace(/(^\/?)/, "/"); }, set: function (e) { this._anchorElement.pathname = e; }, enumerable: true }, origin: { get: function () { var e = { "http:": 80, "https:": 443, "ftp:": 21 }[this._anchorElement.protocol]; var t = this._anchorElement.port != e && this._anchorElement.port !== ""; return this._anchorElement.protocol + "//" + this._anchorElement.hostname + (t ? ":" + this._anchorElement.port : ""); }, enumerable: true }, password: { get: function () { return ""; }, set: function (e) { }, enumerable: true }, username: { get: function () { return ""; }, set: function (e) { }, enumerable: true }, searchParams: { get: function () { var e = new URLSearchParams(this.search); var t = this;["append", "delete", "set"].forEach(function (n) { var r = e[n]; e[n] = function () { r.apply(e, arguments); t.search = e.toString(); }; }); return e; }, enumerable: true } }); n.createObjectURL = function (e) { return t.createObjectURL.apply(t, arguments); }; n.revokeObjectURL = function (e) { return t.revokeObjectURL.apply(t, arguments); }; e.URL = n; }; if (!t()) { n(); } if (e.location !== void 0 && !("origin" in e.location)) { var r = function () { return e.location.protocol + "//" + e.location.hostname + (e.location.port ? ":" + e.location.port : ""); }; try { Object.defineProperty(e.location, "origin", { get: r, enumerable: true }); } catch (t) { setInterval(function () { e.location.origin = r(); }, 100); } } })(typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : this);
1003 982 /*
1004 983 * End File:
1005 * /e/Development/Repositories/frameworkv3/framework/extensions/polyfills.js
984 * /c/Users/Nick/source/repos/frameworkv3/framework/extensions/polyfills.js
1006 985 */
1007 986
1008 987 /*
1009 988 * Start File:
1010 * /e/Development/Repositories/frameworkv3/framework/extensions/thirdparty.js
989 * /c/Users/Nick/source/repos/frameworkv3/framework/extensions/thirdparty.js
1011 990 */
1012 991 /*! jQuery v2.1.3 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
1013 992 !function (a, b) { "object" == typeof module && "object" == typeof module.exports ? module.exports = a.document ? b(a, !0) : function (a) { if (!a.document) throw new Error("jQuery requires a window with a document"); return b(a); } : b(a); }("undefined" != typeof window ? window : this, function (a, b)
@@ -1144,12 +1123,12 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1144 1123 var TWEEN = TWEEN || function () { var n = []; return { getAll: function () { return n; }, removeAll: function () { n = []; }, add: function (t) { n.push(t); }, remove: function (t) { var r = n.indexOf(t); -1 !== r && n.splice(r, 1); }, update: function (t, r) { if (0 === n.length) return !1; var i = 0; for (t = void 0 !== t ? t : TWEEN.now(); i < n.length;)n[i].update(t) || r ? i++ : n.splice(i, 1); return !0; } }; }(); !function () { void 0 === this.window && void 0 !== this.process ? TWEEN.now = function () { var n = process.hrtime(); return 1e3 * n[0] + n[1] / 1e3; } : void 0 !== this.window && void 0 !== window.performance && void 0 !== window.performance.now ? TWEEN.now = window.performance.now.bind(window.performance) : void 0 !== Date.now ? TWEEN.now = Date.now : TWEEN.now = function () { return (new Date).getTime(); }; }(), TWEEN.Tween = function (n) { var t = n, r = {}, i = {}, o = {}, u = 1e3, e = 0, a = !1, f = !1, c = !1, s = 0, h = null, l = TWEEN.Easing.Linear.None, E = TWEEN.Interpolation.Linear, p = [], d = null, v = !1, w = null, I = null, M = null, C = null, S = null, ST = null; for (var T in n) r[T] = parseFloat(n[T], 10); this.to = function (n, t) { return void 0 !== t && (u = t), i = n, this; }, this.start = function (n) { TWEEN.add(this), f = !0, v = !1, h = void 0 !== n ? n : TWEEN.now(), h += s; for (var u in i) { if (i[u] instanceof Array) { if (0 === i[u].length) continue; i[u] = [t[u]].concat(i[u]); } void 0 !== r[u] && (r[u] = t[u], r[u] instanceof Array == !1 && (r[u] *= 1), o[u] = r[u] || 0); } return this; }, this.stop = function () { return f ? (TWEEN.remove(this), f = !1, null !== M && M.call(S), this.stopChainedTweens(), this) : this; }, this.stopChainedTweens = function () { for (var n = 0, t = p.length; t > n; n++)p[n].stop(); }, this.delay = function (n) { return s = n, this; }, this.repeat = function (n) { return e = n, this; }, this.yoyo = function (n) { return a = n, this; }, this.easing = function (n) { return l = n, this; }, this.interpolation = function (n) { return E = n, this; }, this.chain = function () { return p = arguments, this; }, this.onStart = function (n, c) { return d = n, ST = c, this; }, this.onUpdate = function (n) { return w = n, this; }, this.onComplete = function (n, c) { return I = n, C = c, this; }, this.onStop = function (n, c) { return M = n, S = c, this; }, this.update = function (n) { var f, M, T; if (h > n) return !0; v === !1 && (null !== d && d.call(ST), v = !0), M = (n - h) / u, M = M > 1 ? 1 : M, T = l(M); for (f in i) if (void 0 !== r[f]) { var N = r[f] || 0, W = i[f]; W instanceof Array ? t[f] = E(W, T) : ("string" == typeof W && (W = "+" === W.charAt(0) || "-" === W.charAt(0) ? N + parseFloat(W, 10) : parseFloat(W, 10)), "number" == typeof W && (t[f] = N + (W - N) * T)); } if (null !== w && w.call(t, T), 1 === M) { if (e > 0) { isFinite(e) && e--; for (f in o) { if ("string" == typeof i[f] && (o[f] = o[f] + parseFloat(i[f], 10)), a) { var O = o[f]; o[f] = i[f], i[f] = O; } r[f] = o[f]; } return a && (c = !c), h = n + s, !0; } null !== I && I.call(C); for (var m = 0, g = p.length; g > m; m++)p[m].start(h + u); return !1; } return !0; }; }, TWEEN.Easing = { Linear: { None: function (n) { return n; } }, Quadratic: { In: function (n) { return n * n; }, Out: function (n) { return n * (2 - n); }, InOut: function (n) { return (n *= 2) < 1 ? .5 * n * n : -.5 * (--n * (n - 2) - 1); } }, Cubic: { In: function (n) { return n * n * n; }, Out: function (n) { return --n * n * n + 1; }, InOut: function (n) { return (n *= 2) < 1 ? .5 * n * n * n : .5 * ((n -= 2) * n * n + 2); } }, Quartic: { In: function (n) { return n * n * n * n; }, Out: function (n) { return 1 - --n * n * n * n; }, InOut: function (n) { return (n *= 2) < 1 ? .5 * n * n * n * n : -.5 * ((n -= 2) * n * n * n - 2); } }, Quintic: { In: function (n) { return n * n * n * n * n; }, Out: function (n) { return --n * n * n * n * n + 1; }, InOut: function (n) { return (n *= 2) < 1 ? .5 * n * n * n * n * n : .5 * ((n -= 2) * n * n * n * n + 2); } }, Sinusoidal: { In: function (n) { return 1 - Math.cos(n * Math.PI / 2); }, Out: function (n) { return Math.sin(n * Math.PI / 2); }, InOut: function (n) { return .5 * (1 - Math.cos(Math.PI * n)); } }, Exponential: { In: function (n) { return 0 === n ? 0 : Math.pow(1024, n - 1); }, Out: function (n) { return 1 === n ? 1 : 1 - Math.pow(2, -10 * n); }, InOut: function (n) { return 0 === n ? 0 : 1 === n ? 1 : (n *= 2) < 1 ? .5 * Math.pow(1024, n - 1) : .5 * (-Math.pow(2, -10 * (n - 1)) + 2); } }, Circular: { In: function (n) { return 1 - Math.sqrt(1 - n * n); }, Out: function (n) { return Math.sqrt(1 - --n * n); }, InOut: function (n) { return (n *= 2) < 1 ? -.5 * (Math.sqrt(1 - n * n) - 1) : .5 * (Math.sqrt(1 - (n -= 2) * n) + 1); } }, Elastic: { In: function (n) { return 0 === n ? 0 : 1 === n ? 1 : -Math.pow(2, 10 * (n - 1)) * Math.sin(5 * (n - 1.1) * Math.PI); }, Out: function (n) { return 0 === n ? 0 : 1 === n ? 1 : Math.pow(2, -10 * n) * Math.sin(5 * (n - .1) * Math.PI) + 1; }, InOut: function (n) { return 0 === n ? 0 : 1 === n ? 1 : (n *= 2, 1 > n ? -.5 * Math.pow(2, 10 * (n - 1)) * Math.sin(5 * (n - 1.1) * Math.PI) : .5 * Math.pow(2, -10 * (n - 1)) * Math.sin(5 * (n - 1.1) * Math.PI) + 1); } }, Back: { In: function (n) { var t = 1.70158; return n * n * ((t + 1) * n - t); }, Out: function (n) { var t = 1.70158; return --n * n * ((t + 1) * n + t) + 1; }, InOut: function (n) { var t = 2.5949095; return (n *= 2) < 1 ? .5 * (n * n * ((t + 1) * n - t)) : .5 * ((n -= 2) * n * ((t + 1) * n + t) + 2); } }, Bounce: { In: function (n) { return 1 - TWEEN.Easing.Bounce.Out(1 - n); }, Out: function (n) { return 1 / 2.75 > n ? 7.5625 * n * n : 2 / 2.75 > n ? 7.5625 * (n -= 1.5 / 2.75) * n + .75 : 2.5 / 2.75 > n ? 7.5625 * (n -= 2.25 / 2.75) * n + .9375 : 7.5625 * (n -= 2.625 / 2.75) * n + .984375; }, InOut: function (n) { return .5 > n ? .5 * TWEEN.Easing.Bounce.In(2 * n) : .5 * TWEEN.Easing.Bounce.Out(2 * n - 1) + .5; } } }, TWEEN.Interpolation = { Linear: function (n, t) { var r = n.length - 1, i = r * t, o = Math.floor(i), u = TWEEN.Interpolation.Utils.Linear; return 0 > t ? u(n[0], n[1], i) : t > 1 ? u(n[r], n[r - 1], r - i) : u(n[o], n[o + 1 > r ? r : o + 1], i - o); }, Bezier: function (n, t) { for (var r = 0, i = n.length - 1, o = Math.pow, u = TWEEN.Interpolation.Utils.Bernstein, e = 0; i >= e; e++)r += o(1 - t, i - e) * o(t, e) * n[e] * u(i, e); return r; }, CatmullRom: function (n, t) { var r = n.length - 1, i = r * t, o = Math.floor(i), u = TWEEN.Interpolation.Utils.CatmullRom; return n[0] === n[r] ? (0 > t && (o = Math.floor(i = r * (1 + t))), u(n[(o - 1 + r) % r], n[o], n[(o + 1) % r], n[(o + 2) % r], i - o)) : 0 > t ? n[0] - (u(n[0], n[0], n[1], n[1], -i) - n[0]) : t > 1 ? n[r] - (u(n[r], n[r], n[r - 1], n[r - 1], i - r) - n[r]) : u(n[o ? o - 1 : 0], n[o], n[o + 1 > r ? r : o + 1], n[o + 2 > r ? r : o + 2], i - o); }, Utils: { Linear: function (n, t, r) { return (t - n) * r + n; }, Bernstein: function (n, t) { var r = TWEEN.Interpolation.Utils.Factorial; return r(n) / r(t) / r(n - t); }, Factorial: function () { var n = [1]; return function (t) { var r = 1; if (n[t]) return n[t]; for (var i = t; i > 1; i--)r *= i; return n[t] = r, r; }; }(), CatmullRom: function (n, t, r, i, o) { var u = .5 * (r - n), e = .5 * (i - t), a = o * o, f = o * a; return (2 * t - 2 * r + u + e) * f + (-3 * t + 3 * r - 2 * u - e) * a + u * o + t; } } }, function (n) { "function" == typeof define && define.amd ? define([], function () { return TWEEN; }) : "undefined" != typeof module && "object" == typeof exports ? module.exports = TWEEN : void 0 !== n && (n.TWEEN = TWEEN); }(this);
1145 1124 /*
1146 1125 * End File:
1147 * /e/Development/Repositories/frameworkv3/framework/extensions/thirdparty.js
1126 * /c/Users/Nick/source/repos/frameworkv3/framework/extensions/thirdparty.js
1148 1127 */
1149 1128
1150 1129 /*
1151 1130 * Start File:
1152 * /e/Development/Repositories/frameworkv3/framework/util/audio.js
1131 * /c/Users/Nick/source/repos/frameworkv3/framework/util/audio.js
1153 1132 */
1154 1133 var GameAudio =
1155 1134 {
@@ -1201,12 +1180,12 @@ var GameAudio =
1201 1180 };
1202 1181 /*
1203 1182 * End File:
1204 * /e/Development/Repositories/frameworkv3/framework/util/audio.js
1183 * /c/Users/Nick/source/repos/frameworkv3/framework/util/audio.js
1205 1184 */
1206 1185
1207 1186 /*
1208 1187 * Start File:
1209 * /e/Development/Repositories/frameworkv3/framework/util/cookie.js
1188 * /c/Users/Nick/source/repos/frameworkv3/framework/util/cookie.js
1210 1189 */
1211 1190 var CookieManager =
1212 1191 {
@@ -1256,12 +1235,12 @@ var CookieManager =
1256 1235 };
1257 1236 /*
1258 1237 * End File:
1259 * /e/Development/Repositories/frameworkv3/framework/util/cookie.js
1238 * /c/Users/Nick/source/repos/frameworkv3/framework/util/cookie.js
1260 1239 */
1261 1240
1262 1241 /*
1263 1242 * Start File:
1264 * /e/Development/Repositories/frameworkv3/framework/util/ease.js
1243 * /c/Users/Nick/source/repos/frameworkv3/framework/util/ease.js
1265 1244 */
1266 1245 //ease functions
1267 1246
@@ -1711,12 +1690,12 @@ var ease = {
1711 1690 };
1712 1691 /*
1713 1692 * End File:
1714 * /e/Development/Repositories/frameworkv3/framework/util/ease.js
1693 * /c/Users/Nick/source/repos/frameworkv3/framework/util/ease.js
1715 1694 */
1716 1695
1717 1696 /*
1718 1697 * Start File:
1719 * /e/Development/Repositories/frameworkv3/framework/util/input.js
1698 * /c/Users/Nick/source/repos/frameworkv3/framework/util/input.js
1720 1699 */
1721 1700
1722 1701
@@ -1898,12 +1877,12 @@ var GameInput =
1898 1877 };//
1899 1878 /*
1900 1879 * End File:
1901 * /e/Development/Repositories/frameworkv3/framework/util/input.js
1880 * /c/Users/Nick/source/repos/frameworkv3/framework/util/input.js
1902 1881 */
1903 1882
1904 1883 /*
1905 1884 * Start File:
1906 * /e/Development/Repositories/frameworkv3/framework/util/particleEmitter.js
1885 * /c/Users/Nick/source/repos/frameworkv3/framework/util/particleEmitter.js
1907 1886 */
1908 1887 class ParticleEmitter
1909 1888 {
@@ -2161,12 +2140,12 @@ class Particle
2161 2140 }
2162 2141 /*
2163 2142 * End File:
2164 * /e/Development/Repositories/frameworkv3/framework/util/particleEmitter.js
2143 * /c/Users/Nick/source/repos/frameworkv3/framework/util/particleEmitter.js
2165 2144 */
2166 2145
2167 2146 /*
2168 2147 * Start File:
2169 * /e/Development/Repositories/frameworkv3/framework/util/ray.js
2148 * /c/Users/Nick/source/repos/frameworkv3/framework/util/ray.js
2170 2149 */
2171 2150 class Ray
2172 2151 {
@@ -2277,12 +2256,12 @@ class Ray
2277 2256 }
2278 2257 /*
2279 2258 * End File:
2280 * /e/Development/Repositories/frameworkv3/framework/util/ray.js
2259 * /c/Users/Nick/source/repos/frameworkv3/framework/util/ray.js
2281 2260 */
2282 2261
2283 2262 /*
2284 2263 * Start File:
2285 * /e/Development/Repositories/frameworkv3/framework/util/signal.js
2264 * /c/Users/Nick/source/repos/frameworkv3/framework/util/signal.js
2286 2265 */
2287 2266 // Basic event listeners, modeled after Phaser Signals
2288 2267
@@ -2351,12 +2330,12 @@ class signal
2351 2330 }
2352 2331 /*
2353 2332 * End File:
2354 * /e/Development/Repositories/frameworkv3/framework/util/signal.js
2333 * /c/Users/Nick/source/repos/frameworkv3/framework/util/signal.js
2355 2334 */
2356 2335
2357 2336 /*
2358 2337 * Start File:
2359 * /e/Development/Repositories/frameworkv3/framework/util/timingUtil.js
2338 * /c/Users/Nick/source/repos/frameworkv3/framework/util/timingUtil.js
2360 2339 */
2361 2340 /**
2362 2341 /* Timing utility
@@ -2409,12 +2388,12 @@ timingUtil =
2409 2388 };
2410 2389 /*
2411 2390 * End File:
2412 * /e/Development/Repositories/frameworkv3/framework/util/timingUtil.js
2391 * /c/Users/Nick/source/repos/frameworkv3/framework/util/timingUtil.js
2413 2392 */
2414 2393
2415 2394 /*
2416 2395 * Start File:
2417 * /e/Development/Repositories/frameworkv3/framework/util/urlParams.js
2396 * /c/Users/Nick/source/repos/frameworkv3/framework/util/urlParams.js
2418 2397 */
2419 2398 var UrlParams =
2420 2399 {
@@ -2438,12 +2417,12 @@ var UrlParams =
2438 2417 };
2439 2418 /*
2440 2419 * End File:
2441 * /e/Development/Repositories/frameworkv3/framework/util/urlParams.js
2420 * /c/Users/Nick/source/repos/frameworkv3/framework/util/urlParams.js
2442 2421 */
2443 2422
2444 2423 /*
2445 2424 * Start File:
2446 * /e/Development/Repositories/frameworkv3/framework/util/vector.js
2425 * /c/Users/Nick/source/repos/frameworkv3/framework/util/vector.js
2447 2426 */
2448 2427 class vector
2449 2428 {
@@ -2597,5 +2576,5 @@ class vector
2597 2576 };
2598 2577 /*
2599 2578 * End File:
2600 * /e/Development/Repositories/frameworkv3/framework/util/vector.js
2579 * /c/Users/Nick/source/repos/frameworkv3/framework/util/vector.js
2601 2580 */
@@ -1,7 +1,7 @@
1
1
2/*
2/*
3 * Start File:
3 * Start File:
4 * /e/Development/Repositories/frameworkv3/framework/engine/game.js
4 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/game.js
5 */
5 */
6class Game
6class Game
7{
7{
@@ -122,12 +122,12 @@ class Game
122}
122}
123/*
123/*
124 * End File:
124 * End File:
125 * /e/Development/Repositories/frameworkv3/framework/engine/game.js
125 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/game.js
126 */
126 */
127
127
128/*
128/*
129 * Start File:
129 * Start File:
130 * /e/Development/Repositories/frameworkv3/framework/engine/gameobject.js
130 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/gameobject.js
131 */
131 */
132class GameObject
132class GameObject
133{
133{
@@ -170,12 +170,12 @@ class GameObject
170}
170}
171/*
171/*
172 * End File:
172 * End File:
173 * /e/Development/Repositories/frameworkv3/framework/engine/gameobject.js
173 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/gameobject.js
174 */
174 */
175
175
176/*
176/*
177 * Start File:
177 * Start File:
178 * /e/Development/Repositories/frameworkv3/framework/engine/image.js
178 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/image.js
179 */
179 */
180class image
180class image
181{
181{
@@ -292,12 +292,12 @@ class image
292}
292}
293/*
293/*
294 * End File:
294 * End File:
295 * /e/Development/Repositories/frameworkv3/framework/engine/image.js
295 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/image.js
296 */
296 */
297
297
298/*
298/*
299 * Start File:
299 * Start File:
300 * /e/Development/Repositories/frameworkv3/framework/engine/objectComponents/collider.js
300 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/objectComponents/collider.js
301 */
301 */
302class Collider
302class Collider
303{
303{
@@ -403,42 +403,21 @@ class Collider
403 var ohh = o2.transform.size.y / 2;
403 var ohh = o2.transform.size.y / 2;
404
404
405 //CHECK FROM OBJ PERSPECTIVE
405 //CHECK FROM OBJ PERSPECTIVE
406 var p =
406 var points =
407 [
407 [
408 [this.gameObject.transform.position.x - hw, this.gameObject.transform.position.y - hh],
408 [this.gameObject.transform.position.x - hw, this.gameObject.transform.position.y - hh], // topleft
409 [this.gameObject.transform.position.x + hw, this.gameObject.transform.position.y - hh],
409 [this.gameObject.transform.position.x + hw, this.gameObject.transform.position.y - hh], // topright
410 [this.gameObject.transform.position.x - hw, this.gameObject.transform.position.y + hh],
410 [this.gameObject.transform.position.x - hw, this.gameObject.transform.position.y + hh], // bottomleft
411 [this.gameObject.transform.position.x + hw, this.gameObject.transform.position.y + hh]
411 [this.gameObject.transform.position.x + hw, this.gameObject.transform.position.y + hh] // bottomright
412 ];
412 ];
413
413
414 for (var pi = 0; pi < p.length; pi++)
414 if (points[0][0] >= o2.transform.position.x - ohw && points[0][0] <= o2.transform.position.x + ohw ||
415 points[0][1] >= o2.transform.position.x - ohw && points[0][0] <= o2.transform.position.x + ohw)
415 {
416 {
416 if (p[pi][0] > o2.transform.position.x - ohw && p[pi][0] < o2.transform.position.x + ohw)
417 if (points[2][0] > o2.transform.position.y - ohh && points[0][0] <= o2.transform.position.x + ohh ||
418 points[2][1] >= o2.transform.position.y - ohh && points[2][0] <= o2.transform.position.y + ohh)
417 {
419 {
418 if (p[pi][1] > o2.transform.position.y - ohh && p[pi][1] < o2.transform.position.y + ohh)
420 hit = true;
419 {
420 hit = true;
421 }
422 }
423 }
424
425 //CHECK FROM OTHER PERSPECTIVE
426 var p =
427 [
428 [o2.transform.position.x - ohw, o2.transform.position.y - ohh],
429 [o2.transform.position.x + ohw, o2.transform.position.y - ohh],
430 [o2.transform.position.x - ohw, o2.transform.position.y + ohh],
431 [o2.transform.position.x + ohw, o2.transform.position.y + ohh]
432 ];
433
434 for (var pi = 0; pi < p.length; pi++)
435 {
436 if (p[pi][0] > this.gameObject.transform.position.x - hw && p[pi][0] < this.gameObject.transform.position.x + hw)
437 {
438 if (p[pi][1] > this.gameObject.transform.position.y - hh && p[pi][1] < this.gameObject.transform.position.y + hh)
439 {
440 hit = true;
441 }
442 }
421 }
443 }
422 }
444
423
@@ -451,12 +430,12 @@ class Collider
451}
430}
452/*
431/*
453 * End File:
432 * End File:
454 * /e/Development/Repositories/frameworkv3/framework/engine/objectComponents/collider.js
433 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/objectComponents/collider.js
455 */
434 */
456
435
457/*
436/*
458 * Start File:
437 * Start File:
459 * /e/Development/Repositories/frameworkv3/framework/engine/objectComponents/renderer.js
438 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/objectComponents/renderer.js
460 */
439 */
461class Renderer
440class Renderer
462{
441{
@@ -626,12 +605,12 @@ class Renderer
626}
605}
627/*
606/*
628 * End File:
607 * End File:
629 * /e/Development/Repositories/frameworkv3/framework/engine/objectComponents/renderer.js
608 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/objectComponents/renderer.js
630 */
609 */
631
610
632/*
611/*
633 * Start File:
612 * Start File:
634 * /e/Development/Repositories/frameworkv3/framework/engine/objectComponents/transform.js
613 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/objectComponents/transform.js
635 */
614 */
636class Transform
615class Transform
637{
616{
@@ -702,12 +681,12 @@ class Transform
702}
681}
703/*
682/*
704 * End File:
683 * End File:
705 * /e/Development/Repositories/frameworkv3/framework/engine/objectComponents/transform.js
684 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/objectComponents/transform.js
706 */
685 */
707
686
708/*
687/*
709 * Start File:
688 * Start File:
710 * /e/Development/Repositories/frameworkv3/framework/engine/scene.js
689 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/scene.js
711 */
690 */
712class Scene
691class Scene
713{
692{
@@ -918,12 +897,12 @@ class Scene
918}
897}
919/*
898/*
920 * End File:
899 * End File:
921 * /e/Development/Repositories/frameworkv3/framework/engine/scene.js
900 * /c/Users/Nick/source/repos/frameworkv3/framework/engine/scene.js
922 */
901 */
923
902
924/*
903/*
925 * Start File:
904 * Start File:
926 * /e/Development/Repositories/frameworkv3/framework/extensions/extentions.js
905 * /c/Users/Nick/source/repos/frameworkv3/framework/extensions/extentions.js
927 */
906 */
928/**
907/**
929 * Extending exising functionality
908 * Extending exising functionality
@@ -979,12 +958,12 @@ Array.prototype.random = function ()
979};
958};
980/*
959/*
981 * End File:
960 * End File:
982 * /e/Development/Repositories/frameworkv3/framework/extensions/extentions.js
961 * /c/Users/Nick/source/repos/frameworkv3/framework/extensions/extentions.js
983 */
962 */
984
963
985/*
964/*
986 * Start File:
965 * Start File:
987 * /e/Development/Repositories/frameworkv3/framework/extensions/polyfills.js
966 * /c/Users/Nick/source/repos/frameworkv3/framework/extensions/polyfills.js
988 */
967 */
989if (!Math.sign)
968if (!Math.sign)
990{
969{
@@ -1002,12 +981,12 @@ if (!Math.sign)
1002(function (e) { var t = function () { try { return !!Symbol.iterator; } catch (e) { return false; } }; var n = t(); var r = function (e) { var t = { next: function () { var t = e.shift(); return { done: t === void 0, value: t }; } }; if (n) { t[Symbol.iterator] = function () { return t; }; } return t; }; var i = function (e) { return encodeURIComponent(e).replace(/%20/g, "+"); }; var o = function (e) { return decodeURIComponent(e).replace(/\+/g, " "); }; var a = function () { var t = function (e) { Object.defineProperty(this, "_entries", { value: {} }); if (typeof e === "string") { if (e !== "") { e = e.replace(/^\?/, ""); var n = e.split("&"); var r; for (var i = 0; i < n.length; i++) { r = n[i].split("="); this.append(o(r[0]), r.length > 1 ? o(r[1]) : ""); } } } else if (e instanceof t) { var a = this; e.forEach(function (e, t) { a.append(e, t); }); } }; var a = t.prototype; a.append = function (e, t) { if (e in this._entries) { this._entries[e].push(t.toString()); } else { this._entries[e] = [t.toString()]; } }; a.delete = function (e) { delete this._entries[e]; }; a.get = function (e) { return e in this._entries ? this._entries[e][0] : null; }; a.getAll = function (e) { return e in this._entries ? this._entries[e].slice(0) : []; }; a.has = function (e) { return e in this._entries; }; a.set = function (e, t) { this._entries[e] = [t.toString()]; }; a.forEach = function (e, t) { var n; for (var r in this._entries) { if (this._entries.hasOwnProperty(r)) { n = this._entries[r]; for (var i = 0; i < n.length; i++) { e.call(t, n[i], r, this); } } } }; a.keys = function () { var e = []; this.forEach(function (t, n) { e.push(n); }); return r(e); }; a.values = function () { var e = []; this.forEach(function (t) { e.push(t); }); return r(e); }; a.entries = function () { var e = []; this.forEach(function (t, n) { e.push([n, t]); }); return r(e); }; if (n) { a[Symbol.iterator] = a.entries; } a.toString = function () { var e = []; this.forEach(function (t, n) { e.push(i(n) + "=" + i(t)); }); return e.join("&"); }; e.URLSearchParams = t; }; if (!("URLSearchParams" in e) || new URLSearchParams("?a=1").toString() !== "a=1") { a(); } })(typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : this); (function (e) { var t = function () { try { var e = new URL("b", "http://a"); e.pathname = "c%20d"; return e.href === "http://a/c%20d" && e.searchParams; } catch (e) { return false; } }; var n = function () { var t = e.URL; var n = function (e, t) { if (typeof e !== "string") e = String(e); var n = document.implementation.createHTMLDocument(""); window.doc = n; if (t) { var r = n.createElement("base"); r.href = t; n.head.appendChild(r); } var i = n.createElement("a"); i.href = e; n.body.appendChild(i); i.href = i.href; if (i.protocol === ":" || !/:/.test(i.href)) { throw new TypeError("Invalid URL"); } Object.defineProperty(this, "_anchorElement", { value: i }); }; var r = n.prototype; var i = function (e) { Object.defineProperty(r, e, { get: function () { return this._anchorElement[e]; }, set: function (t) { this._anchorElement[e] = t; }, enumerable: true }); };["hash", "host", "hostname", "port", "protocol", "search"].forEach(function (e) { i(e); }); Object.defineProperties(r, { toString: { get: function () { var e = this; return function () { return e.href; }; } }, href: { get: function () { return this._anchorElement.href.replace(/\?$/, ""); }, set: function (e) { this._anchorElement.href = e; }, enumerable: true }, pathname: { get: function () { return this._anchorElement.pathname.replace(/(^\/?)/, "/"); }, set: function (e) { this._anchorElement.pathname = e; }, enumerable: true }, origin: { get: function () { var e = { "http:": 80, "https:": 443, "ftp:": 21 }[this._anchorElement.protocol]; var t = this._anchorElement.port != e && this._anchorElement.port !== ""; return this._anchorElement.protocol + "//" + this._anchorElement.hostname + (t ? ":" + this._anchorElement.port : ""); }, enumerable: true }, password: { get: function () { return ""; }, set: function (e) { }, enumerable: true }, username: { get: function () { return ""; }, set: function (e) { }, enumerable: true }, searchParams: { get: function () { var e = new URLSearchParams(this.search); var t = this;["append", "delete", "set"].forEach(function (n) { var r = e[n]; e[n] = function () { r.apply(e, arguments); t.search = e.toString(); }; }); return e; }, enumerable: true } }); n.createObjectURL = function (e) { return t.createObjectURL.apply(t, arguments); }; n.revokeObjectURL = function (e) { return t.revokeObjectURL.apply(t, arguments); }; e.URL = n; }; if (!t()) { n(); } if (e.location !== void 0 && !("origin" in e.location)) { var r = function () { return e.location.protocol + "//" + e.location.hostname + (e.location.port ? ":" + e.location.port : ""); }; try { Object.defineProperty(e.location, "origin", { get: r, enumerable: true }); } catch (t) { setInterval(function () { e.location.origin = r(); }, 100); } } })(typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : this);
981(function (e) { var t = function () { try { return !!Symbol.iterator; } catch (e) { return false; } }; var n = t(); var r = function (e) { var t = { next: function () { var t = e.shift(); return { done: t === void 0, value: t }; } }; if (n) { t[Symbol.iterator] = function () { return t; }; } return t; }; var i = function (e) { return encodeURIComponent(e).replace(/%20/g, "+"); }; var o = function (e) { return decodeURIComponent(e).replace(/\+/g, " "); }; var a = function () { var t = function (e) { Object.defineProperty(this, "_entries", { value: {} }); if (typeof e === "string") { if (e !== "") { e = e.replace(/^\?/, ""); var n = e.split("&"); var r; for (var i = 0; i < n.length; i++) { r = n[i].split("="); this.append(o(r[0]), r.length > 1 ? o(r[1]) : ""); } } } else if (e instanceof t) { var a = this; e.forEach(function (e, t) { a.append(e, t); }); } }; var a = t.prototype; a.append = function (e, t) { if (e in this._entries) { this._entries[e].push(t.toString()); } else { this._entries[e] = [t.toString()]; } }; a.delete = function (e) { delete this._entries[e]; }; a.get = function (e) { return e in this._entries ? this._entries[e][0] : null; }; a.getAll = function (e) { return e in this._entries ? this._entries[e].slice(0) : []; }; a.has = function (e) { return e in this._entries; }; a.set = function (e, t) { this._entries[e] = [t.toString()]; }; a.forEach = function (e, t) { var n; for (var r in this._entries) { if (this._entries.hasOwnProperty(r)) { n = this._entries[r]; for (var i = 0; i < n.length; i++) { e.call(t, n[i], r, this); } } } }; a.keys = function () { var e = []; this.forEach(function (t, n) { e.push(n); }); return r(e); }; a.values = function () { var e = []; this.forEach(function (t) { e.push(t); }); return r(e); }; a.entries = function () { var e = []; this.forEach(function (t, n) { e.push([n, t]); }); return r(e); }; if (n) { a[Symbol.iterator] = a.entries; } a.toString = function () { var e = []; this.forEach(function (t, n) { e.push(i(n) + "=" + i(t)); }); return e.join("&"); }; e.URLSearchParams = t; }; if (!("URLSearchParams" in e) || new URLSearchParams("?a=1").toString() !== "a=1") { a(); } })(typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : this); (function (e) { var t = function () { try { var e = new URL("b", "http://a"); e.pathname = "c%20d"; return e.href === "http://a/c%20d" && e.searchParams; } catch (e) { return false; } }; var n = function () { var t = e.URL; var n = function (e, t) { if (typeof e !== "string") e = String(e); var n = document.implementation.createHTMLDocument(""); window.doc = n; if (t) { var r = n.createElement("base"); r.href = t; n.head.appendChild(r); } var i = n.createElement("a"); i.href = e; n.body.appendChild(i); i.href = i.href; if (i.protocol === ":" || !/:/.test(i.href)) { throw new TypeError("Invalid URL"); } Object.defineProperty(this, "_anchorElement", { value: i }); }; var r = n.prototype; var i = function (e) { Object.defineProperty(r, e, { get: function () { return this._anchorElement[e]; }, set: function (t) { this._anchorElement[e] = t; }, enumerable: true }); };["hash", "host", "hostname", "port", "protocol", "search"].forEach(function (e) { i(e); }); Object.defineProperties(r, { toString: { get: function () { var e = this; return function () { return e.href; }; } }, href: { get: function () { return this._anchorElement.href.replace(/\?$/, ""); }, set: function (e) { this._anchorElement.href = e; }, enumerable: true }, pathname: { get: function () { return this._anchorElement.pathname.replace(/(^\/?)/, "/"); }, set: function (e) { this._anchorElement.pathname = e; }, enumerable: true }, origin: { get: function () { var e = { "http:": 80, "https:": 443, "ftp:": 21 }[this._anchorElement.protocol]; var t = this._anchorElement.port != e && this._anchorElement.port !== ""; return this._anchorElement.protocol + "//" + this._anchorElement.hostname + (t ? ":" + this._anchorElement.port : ""); }, enumerable: true }, password: { get: function () { return ""; }, set: function (e) { }, enumerable: true }, username: { get: function () { return ""; }, set: function (e) { }, enumerable: true }, searchParams: { get: function () { var e = new URLSearchParams(this.search); var t = this;["append", "delete", "set"].forEach(function (n) { var r = e[n]; e[n] = function () { r.apply(e, arguments); t.search = e.toString(); }; }); return e; }, enumerable: true } }); n.createObjectURL = function (e) { return t.createObjectURL.apply(t, arguments); }; n.revokeObjectURL = function (e) { return t.revokeObjectURL.apply(t, arguments); }; e.URL = n; }; if (!t()) { n(); } if (e.location !== void 0 && !("origin" in e.location)) { var r = function () { return e.location.protocol + "//" + e.location.hostname + (e.location.port ? ":" + e.location.port : ""); }; try { Object.defineProperty(e.location, "origin", { get: r, enumerable: true }); } catch (t) { setInterval(function () { e.location.origin = r(); }, 100); } } })(typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : this);
1003/*
982/*
1004 * End File:
983 * End File:
1005 * /e/Development/Repositories/frameworkv3/framework/extensions/polyfills.js
984 * /c/Users/Nick/source/repos/frameworkv3/framework/extensions/polyfills.js
1006 */
985 */
1007
986
1008/*
987/*
1009 * Start File:
988 * Start File:
1010 * /e/Development/Repositories/frameworkv3/framework/extensions/thirdparty.js
989 * /c/Users/Nick/source/repos/frameworkv3/framework/extensions/thirdparty.js
1011 */
990 */
1012/*! jQuery v2.1.3 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
991/*! jQuery v2.1.3 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
1013!function (a, b) { "object" == typeof module && "object" == typeof module.exports ? module.exports = a.document ? b(a, !0) : function (a) { if (!a.document) throw new Error("jQuery requires a window with a document"); return b(a); } : b(a); }("undefined" != typeof window ? window : this, function (a, b)
992!function (a, b) { "object" == typeof module && "object" == typeof module.exports ? module.exports = a.document ? b(a, !0) : function (a) { if (!a.document) throw new Error("jQuery requires a window with a document"); return b(a); } : b(a); }("undefined" != typeof window ? window : this, function (a, b)
@@ -1144,12 +1123,12 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1144var TWEEN = TWEEN || function () { var n = []; return { getAll: function () { return n; }, removeAll: function () { n = []; }, add: function (t) { n.push(t); }, remove: function (t) { var r = n.indexOf(t); -1 !== r && n.splice(r, 1); }, update: function (t, r) { if (0 === n.length) return !1; var i = 0; for (t = void 0 !== t ? t : TWEEN.now(); i < n.length;)n[i].update(t) || r ? i++ : n.splice(i, 1); return !0; } }; }(); !function () { void 0 === this.window && void 0 !== this.process ? TWEEN.now = function () { var n = process.hrtime(); return 1e3 * n[0] + n[1] / 1e3; } : void 0 !== this.window && void 0 !== window.performance && void 0 !== window.performance.now ? TWEEN.now = window.performance.now.bind(window.performance) : void 0 !== Date.now ? TWEEN.now = Date.now : TWEEN.now = function () { return (new Date).getTime(); }; }(), TWEEN.Tween = function (n) { var t = n, r = {}, i = {}, o = {}, u = 1e3, e = 0, a = !1, f = !1, c = !1, s = 0, h = null, l = TWEEN.Easing.Linear.None, E = TWEEN.Interpolation.Linear, p = [], d = null, v = !1, w = null, I = null, M = null, C = null, S = null, ST = null; for (var T in n) r[T] = parseFloat(n[T], 10); this.to = function (n, t) { return void 0 !== t && (u = t), i = n, this; }, this.start = function (n) { TWEEN.add(this), f = !0, v = !1, h = void 0 !== n ? n : TWEEN.now(), h += s; for (var u in i) { if (i[u] instanceof Array) { if (0 === i[u].length) continue; i[u] = [t[u]].concat(i[u]); } void 0 !== r[u] && (r[u] = t[u], r[u] instanceof Array == !1 && (r[u] *= 1), o[u] = r[u] || 0); } return this; }, this.stop = function () { return f ? (TWEEN.remove(this), f = !1, null !== M && M.call(S), this.stopChainedTweens(), this) : this; }, this.stopChainedTweens = function () { for (var n = 0, t = p.length; t > n; n++)p[n].stop(); }, this.delay = function (n) { return s = n, this; }, this.repeat = function (n) { return e = n, this; }, this.yoyo = function (n) { return a = n, this; }, this.easing = function (n) { return l = n, this; }, this.interpolation = function (n) { return E = n, this; }, this.chain = function () { return p = arguments, this; }, this.onStart = function (n, c) { return d = n, ST = c, this; }, this.onUpdate = function (n) { return w = n, this; }, this.onComplete = function (n, c) { return I = n, C = c, this; }, this.onStop = function (n, c) { return M = n, S = c, this; }, this.update = function (n) { var f, M, T; if (h > n) return !0; v === !1 && (null !== d && d.call(ST), v = !0), M = (n - h) / u, M = M > 1 ? 1 : M, T = l(M); for (f in i) if (void 0 !== r[f]) { var N = r[f] || 0, W = i[f]; W instanceof Array ? t[f] = E(W, T) : ("string" == typeof W && (W = "+" === W.charAt(0) || "-" === W.charAt(0) ? N + parseFloat(W, 10) : parseFloat(W, 10)), "number" == typeof W && (t[f] = N + (W - N) * T)); } if (null !== w && w.call(t, T), 1 === M) { if (e > 0) { isFinite(e) && e--; for (f in o) { if ("string" == typeof i[f] && (o[f] = o[f] + parseFloat(i[f], 10)), a) { var O = o[f]; o[f] = i[f], i[f] = O; } r[f] = o[f]; } return a && (c = !c), h = n + s, !0; } null !== I && I.call(C); for (var m = 0, g = p.length; g > m; m++)p[m].start(h + u); return !1; } return !0; }; }, TWEEN.Easing = { Linear: { None: function (n) { return n; } }, Quadratic: { In: function (n) { return n * n; }, Out: function (n) { return n * (2 - n); }, InOut: function (n) { return (n *= 2) < 1 ? .5 * n * n : -.5 * (--n * (n - 2) - 1); } }, Cubic: { In: function (n) { return n * n * n; }, Out: function (n) { return --n * n * n + 1; }, InOut: function (n) { return (n *= 2) < 1 ? .5 * n * n * n : .5 * ((n -= 2) * n * n + 2); } }, Quartic: { In: function (n) { return n * n * n * n; }, Out: function (n) { return 1 - --n * n * n * n; }, InOut: function (n) { return (n *= 2) < 1 ? .5 * n * n * n * n : -.5 * ((n -= 2) * n * n * n - 2); } }, Quintic: { In: function (n) { return n * n * n * n * n; }, Out: function (n) { return --n * n * n * n * n + 1; }, InOut: function (n) { return (n *= 2) < 1 ? .5 * n * n * n * n * n : .5 * ((n -= 2) * n * n * n * n + 2); } }, Sinusoidal: { In: function (n) { return 1 - Math.cos(n * Math.PI / 2); }, Out: function (n) { return Math.sin(n * Math.PI / 2); }, InOut: function (n) { return .5 * (1 - Math.cos(Math.PI * n)); } }, Exponential: { In: function (n) { return 0 === n ? 0 : Math.pow(1024, n - 1); }, Out: function (n) { return 1 === n ? 1 : 1 - Math.pow(2, -10 * n); }, InOut: function (n) { return 0 === n ? 0 : 1 === n ? 1 : (n *= 2) < 1 ? .5 * Math.pow(1024, n - 1) : .5 * (-Math.pow(2, -10 * (n - 1)) + 2); } }, Circular: { In: function (n) { return 1 - Math.sqrt(1 - n * n); }, Out: function (n) { return Math.sqrt(1 - --n * n); }, InOut: function (n) { return (n *= 2) < 1 ? -.5 * (Math.sqrt(1 - n * n) - 1) : .5 * (Math.sqrt(1 - (n -= 2) * n) + 1); } }, Elastic: { In: function (n) { return 0 === n ? 0 : 1 === n ? 1 : -Math.pow(2, 10 * (n - 1)) * Math.sin(5 * (n - 1.1) * Math.PI); }, Out: function (n) { return 0 === n ? 0 : 1 === n ? 1 : Math.pow(2, -10 * n) * Math.sin(5 * (n - .1) * Math.PI) + 1; }, InOut: function (n) { return 0 === n ? 0 : 1 === n ? 1 : (n *= 2, 1 > n ? -.5 * Math.pow(2, 10 * (n - 1)) * Math.sin(5 * (n - 1.1) * Math.PI) : .5 * Math.pow(2, -10 * (n - 1)) * Math.sin(5 * (n - 1.1) * Math.PI) + 1); } }, Back: { In: function (n) { var t = 1.70158; return n * n * ((t + 1) * n - t); }, Out: function (n) { var t = 1.70158; return --n * n * ((t + 1) * n + t) + 1; }, InOut: function (n) { var t = 2.5949095; return (n *= 2) < 1 ? .5 * (n * n * ((t + 1) * n - t)) : .5 * ((n -= 2) * n * ((t + 1) * n + t) + 2); } }, Bounce: { In: function (n) { return 1 - TWEEN.Easing.Bounce.Out(1 - n); }, Out: function (n) { return 1 / 2.75 > n ? 7.5625 * n * n : 2 / 2.75 > n ? 7.5625 * (n -= 1.5 / 2.75) * n + .75 : 2.5 / 2.75 > n ? 7.5625 * (n -= 2.25 / 2.75) * n + .9375 : 7.5625 * (n -= 2.625 / 2.75) * n + .984375; }, InOut: function (n) { return .5 > n ? .5 * TWEEN.Easing.Bounce.In(2 * n) : .5 * TWEEN.Easing.Bounce.Out(2 * n - 1) + .5; } } }, TWEEN.Interpolation = { Linear: function (n, t) { var r = n.length - 1, i = r * t, o = Math.floor(i), u = TWEEN.Interpolation.Utils.Linear; return 0 > t ? u(n[0], n[1], i) : t > 1 ? u(n[r], n[r - 1], r - i) : u(n[o], n[o + 1 > r ? r : o + 1], i - o); }, Bezier: function (n, t) { for (var r = 0, i = n.length - 1, o = Math.pow, u = TWEEN.Interpolation.Utils.Bernstein, e = 0; i >= e; e++)r += o(1 - t, i - e) * o(t, e) * n[e] * u(i, e); return r; }, CatmullRom: function (n, t) { var r = n.length - 1, i = r * t, o = Math.floor(i), u = TWEEN.Interpolation.Utils.CatmullRom; return n[0] === n[r] ? (0 > t && (o = Math.floor(i = r * (1 + t))), u(n[(o - 1 + r) % r], n[o], n[(o + 1) % r], n[(o + 2) % r], i - o)) : 0 > t ? n[0] - (u(n[0], n[0], n[1], n[1], -i) - n[0]) : t > 1 ? n[r] - (u(n[r], n[r], n[r - 1], n[r - 1], i - r) - n[r]) : u(n[o ? o - 1 : 0], n[o], n[o + 1 > r ? r : o + 1], n[o + 2 > r ? r : o + 2], i - o); }, Utils: { Linear: function (n, t, r) { return (t - n) * r + n; }, Bernstein: function (n, t) { var r = TWEEN.Interpolation.Utils.Factorial; return r(n) / r(t) / r(n - t); }, Factorial: function () { var n = [1]; return function (t) { var r = 1; if (n[t]) return n[t]; for (var i = t; i > 1; i--)r *= i; return n[t] = r, r; }; }(), CatmullRom: function (n, t, r, i, o) { var u = .5 * (r - n), e = .5 * (i - t), a = o * o, f = o * a; return (2 * t - 2 * r + u + e) * f + (-3 * t + 3 * r - 2 * u - e) * a + u * o + t; } } }, function (n) { "function" == typeof define && define.amd ? define([], function () { return TWEEN; }) : "undefined" != typeof module && "object" == typeof exports ? module.exports = TWEEN : void 0 !== n && (n.TWEEN = TWEEN); }(this);
1123var TWEEN = TWEEN || function () { var n = []; return { getAll: function () { return n; }, removeAll: function () { n = []; }, add: function (t) { n.push(t); }, remove: function (t) { var r = n.indexOf(t); -1 !== r && n.splice(r, 1); }, update: function (t, r) { if (0 === n.length) return !1; var i = 0; for (t = void 0 !== t ? t : TWEEN.now(); i < n.length;)n[i].update(t) || r ? i++ : n.splice(i, 1); return !0; } }; }(); !function () { void 0 === this.window && void 0 !== this.process ? TWEEN.now = function () { var n = process.hrtime(); return 1e3 * n[0] + n[1] / 1e3; } : void 0 !== this.window && void 0 !== window.performance && void 0 !== window.performance.now ? TWEEN.now = window.performance.now.bind(window.performance) : void 0 !== Date.now ? TWEEN.now = Date.now : TWEEN.now = function () { return (new Date).getTime(); }; }(), TWEEN.Tween = function (n) { var t = n, r = {}, i = {}, o = {}, u = 1e3, e = 0, a = !1, f = !1, c = !1, s = 0, h = null, l = TWEEN.Easing.Linear.None, E = TWEEN.Interpolation.Linear, p = [], d = null, v = !1, w = null, I = null, M = null, C = null, S = null, ST = null; for (var T in n) r[T] = parseFloat(n[T], 10); this.to = function (n, t) { return void 0 !== t && (u = t), i = n, this; }, this.start = function (n) { TWEEN.add(this), f = !0, v = !1, h = void 0 !== n ? n : TWEEN.now(), h += s; for (var u in i) { if (i[u] instanceof Array) { if (0 === i[u].length) continue; i[u] = [t[u]].concat(i[u]); } void 0 !== r[u] && (r[u] = t[u], r[u] instanceof Array == !1 && (r[u] *= 1), o[u] = r[u] || 0); } return this; }, this.stop = function () { return f ? (TWEEN.remove(this), f = !1, null !== M && M.call(S), this.stopChainedTweens(), this) : this; }, this.stopChainedTweens = function () { for (var n = 0, t = p.length; t > n; n++)p[n].stop(); }, this.delay = function (n) { return s = n, this; }, this.repeat = function (n) { return e = n, this; }, this.yoyo = function (n) { return a = n, this; }, this.easing = function (n) { return l = n, this; }, this.interpolation = function (n) { return E = n, this; }, this.chain = function () { return p = arguments, this; }, this.onStart = function (n, c) { return d = n, ST = c, this; }, this.onUpdate = function (n) { return w = n, this; }, this.onComplete = function (n, c) { return I = n, C = c, this; }, this.onStop = function (n, c) { return M = n, S = c, this; }, this.update = function (n) { var f, M, T; if (h > n) return !0; v === !1 && (null !== d && d.call(ST), v = !0), M = (n - h) / u, M = M > 1 ? 1 : M, T = l(M); for (f in i) if (void 0 !== r[f]) { var N = r[f] || 0, W = i[f]; W instanceof Array ? t[f] = E(W, T) : ("string" == typeof W && (W = "+" === W.charAt(0) || "-" === W.charAt(0) ? N + parseFloat(W, 10) : parseFloat(W, 10)), "number" == typeof W && (t[f] = N + (W - N) * T)); } if (null !== w && w.call(t, T), 1 === M) { if (e > 0) { isFinite(e) && e--; for (f in o) { if ("string" == typeof i[f] && (o[f] = o[f] + parseFloat(i[f], 10)), a) { var O = o[f]; o[f] = i[f], i[f] = O; } r[f] = o[f]; } return a && (c = !c), h = n + s, !0; } null !== I && I.call(C); for (var m = 0, g = p.length; g > m; m++)p[m].start(h + u); return !1; } return !0; }; }, TWEEN.Easing = { Linear: { None: function (n) { return n; } }, Quadratic: { In: function (n) { return n * n; }, Out: function (n) { return n * (2 - n); }, InOut: function (n) { return (n *= 2) < 1 ? .5 * n * n : -.5 * (--n * (n - 2) - 1); } }, Cubic: { In: function (n) { return n * n * n; }, Out: function (n) { return --n * n * n + 1; }, InOut: function (n) { return (n *= 2) < 1 ? .5 * n * n * n : .5 * ((n -= 2) * n * n + 2); } }, Quartic: { In: function (n) { return n * n * n * n; }, Out: function (n) { return 1 - --n * n * n * n; }, InOut: function (n) { return (n *= 2) < 1 ? .5 * n * n * n * n : -.5 * ((n -= 2) * n * n * n - 2); } }, Quintic: { In: function (n) { return n * n * n * n * n; }, Out: function (n) { return --n * n * n * n * n + 1; }, InOut: function (n) { return (n *= 2) < 1 ? .5 * n * n * n * n * n : .5 * ((n -= 2) * n * n * n * n + 2); } }, Sinusoidal: { In: function (n) { return 1 - Math.cos(n * Math.PI / 2); }, Out: function (n) { return Math.sin(n * Math.PI / 2); }, InOut: function (n) { return .5 * (1 - Math.cos(Math.PI * n)); } }, Exponential: { In: function (n) { return 0 === n ? 0 : Math.pow(1024, n - 1); }, Out: function (n) { return 1 === n ? 1 : 1 - Math.pow(2, -10 * n); }, InOut: function (n) { return 0 === n ? 0 : 1 === n ? 1 : (n *= 2) < 1 ? .5 * Math.pow(1024, n - 1) : .5 * (-Math.pow(2, -10 * (n - 1)) + 2); } }, Circular: { In: function (n) { return 1 - Math.sqrt(1 - n * n); }, Out: function (n) { return Math.sqrt(1 - --n * n); }, InOut: function (n) { return (n *= 2) < 1 ? -.5 * (Math.sqrt(1 - n * n) - 1) : .5 * (Math.sqrt(1 - (n -= 2) * n) + 1); } }, Elastic: { In: function (n) { return 0 === n ? 0 : 1 === n ? 1 : -Math.pow(2, 10 * (n - 1)) * Math.sin(5 * (n - 1.1) * Math.PI); }, Out: function (n) { return 0 === n ? 0 : 1 === n ? 1 : Math.pow(2, -10 * n) * Math.sin(5 * (n - .1) * Math.PI) + 1; }, InOut: function (n) { return 0 === n ? 0 : 1 === n ? 1 : (n *= 2, 1 > n ? -.5 * Math.pow(2, 10 * (n - 1)) * Math.sin(5 * (n - 1.1) * Math.PI) : .5 * Math.pow(2, -10 * (n - 1)) * Math.sin(5 * (n - 1.1) * Math.PI) + 1); } }, Back: { In: function (n) { var t = 1.70158; return n * n * ((t + 1) * n - t); }, Out: function (n) { var t = 1.70158; return --n * n * ((t + 1) * n + t) + 1; }, InOut: function (n) { var t = 2.5949095; return (n *= 2) < 1 ? .5 * (n * n * ((t + 1) * n - t)) : .5 * ((n -= 2) * n * ((t + 1) * n + t) + 2); } }, Bounce: { In: function (n) { return 1 - TWEEN.Easing.Bounce.Out(1 - n); }, Out: function (n) { return 1 / 2.75 > n ? 7.5625 * n * n : 2 / 2.75 > n ? 7.5625 * (n -= 1.5 / 2.75) * n + .75 : 2.5 / 2.75 > n ? 7.5625 * (n -= 2.25 / 2.75) * n + .9375 : 7.5625 * (n -= 2.625 / 2.75) * n + .984375; }, InOut: function (n) { return .5 > n ? .5 * TWEEN.Easing.Bounce.In(2 * n) : .5 * TWEEN.Easing.Bounce.Out(2 * n - 1) + .5; } } }, TWEEN.Interpolation = { Linear: function (n, t) { var r = n.length - 1, i = r * t, o = Math.floor(i), u = TWEEN.Interpolation.Utils.Linear; return 0 > t ? u(n[0], n[1], i) : t > 1 ? u(n[r], n[r - 1], r - i) : u(n[o], n[o + 1 > r ? r : o + 1], i - o); }, Bezier: function (n, t) { for (var r = 0, i = n.length - 1, o = Math.pow, u = TWEEN.Interpolation.Utils.Bernstein, e = 0; i >= e; e++)r += o(1 - t, i - e) * o(t, e) * n[e] * u(i, e); return r; }, CatmullRom: function (n, t) { var r = n.length - 1, i = r * t, o = Math.floor(i), u = TWEEN.Interpolation.Utils.CatmullRom; return n[0] === n[r] ? (0 > t && (o = Math.floor(i = r * (1 + t))), u(n[(o - 1 + r) % r], n[o], n[(o + 1) % r], n[(o + 2) % r], i - o)) : 0 > t ? n[0] - (u(n[0], n[0], n[1], n[1], -i) - n[0]) : t > 1 ? n[r] - (u(n[r], n[r], n[r - 1], n[r - 1], i - r) - n[r]) : u(n[o ? o - 1 : 0], n[o], n[o + 1 > r ? r : o + 1], n[o + 2 > r ? r : o + 2], i - o); }, Utils: { Linear: function (n, t, r) { return (t - n) * r + n; }, Bernstein: function (n, t) { var r = TWEEN.Interpolation.Utils.Factorial; return r(n) / r(t) / r(n - t); }, Factorial: function () { var n = [1]; return function (t) { var r = 1; if (n[t]) return n[t]; for (var i = t; i > 1; i--)r *= i; return n[t] = r, r; }; }(), CatmullRom: function (n, t, r, i, o) { var u = .5 * (r - n), e = .5 * (i - t), a = o * o, f = o * a; return (2 * t - 2 * r + u + e) * f + (-3 * t + 3 * r - 2 * u - e) * a + u * o + t; } } }, function (n) { "function" == typeof define && define.amd ? define([], function () { return TWEEN; }) : "undefined" != typeof module && "object" == typeof exports ? module.exports = TWEEN : void 0 !== n && (n.TWEEN = TWEEN); }(this);
1145/*
1124/*
1146 * End File:
1125 * End File:
1147 * /e/Development/Repositories/frameworkv3/framework/extensions/thirdparty.js
1126 * /c/Users/Nick/source/repos/frameworkv3/framework/extensions/thirdparty.js
1148 */
1127 */
1149
1128
1150/*
1129/*
1151 * Start File:
1130 * Start File:
1152 * /e/Development/Repositories/frameworkv3/framework/util/audio.js
1131 * /c/Users/Nick/source/repos/frameworkv3/framework/util/audio.js
1153 */
1132 */
1154var GameAudio =
1133var GameAudio =
1155{
1134{
@@ -1201,12 +1180,12 @@ var GameAudio =
1201};
1180};
1202/*
1181/*
1203 * End File:
1182 * End File:
1204 * /e/Development/Repositories/frameworkv3/framework/util/audio.js
1183 * /c/Users/Nick/source/repos/frameworkv3/framework/util/audio.js
1205 */
1184 */
1206
1185
1207/*
1186/*
1208 * Start File:
1187 * Start File:
1209 * /e/Development/Repositories/frameworkv3/framework/util/cookie.js
1188 * /c/Users/Nick/source/repos/frameworkv3/framework/util/cookie.js
1210 */
1189 */
1211var CookieManager =
1190var CookieManager =
1212{
1191{
@@ -1256,12 +1235,12 @@ var CookieManager =
1256};
1235};
1257/*
1236/*
1258 * End File:
1237 * End File:
1259 * /e/Development/Repositories/frameworkv3/framework/util/cookie.js
1238 * /c/Users/Nick/source/repos/frameworkv3/framework/util/cookie.js
1260 */
1239 */
1261
1240
1262/*
1241/*
1263 * Start File:
1242 * Start File:
1264 * /e/Development/Repositories/frameworkv3/framework/util/ease.js
1243 * /c/Users/Nick/source/repos/frameworkv3/framework/util/ease.js
1265 */
1244 */
1266//ease functions
1245//ease functions
1267
1246
@@ -1711,12 +1690,12 @@ var ease = {
1711};
1690};
1712/*
1691/*
1713 * End File:
1692 * End File:
1714 * /e/Development/Repositories/frameworkv3/framework/util/ease.js
1693 * /c/Users/Nick/source/repos/frameworkv3/framework/util/ease.js
1715 */
1694 */
1716
1695
1717/*
1696/*
1718 * Start File:
1697 * Start File:
1719 * /e/Development/Repositories/frameworkv3/framework/util/input.js
1698 * /c/Users/Nick/source/repos/frameworkv3/framework/util/input.js
1720 */
1699 */
1721
1700
1722
1701
@@ -1898,12 +1877,12 @@ var GameInput =
1898};//
1877};//
1899/*
1878/*
1900 * End File:
1879 * End File:
1901 * /e/Development/Repositories/frameworkv3/framework/util/input.js
1880 * /c/Users/Nick/source/repos/frameworkv3/framework/util/input.js
1902 */
1881 */
1903
1882
1904/*
1883/*
1905 * Start File:
1884 * Start File:
1906 * /e/Development/Repositories/frameworkv3/framework/util/particleEmitter.js
1885 * /c/Users/Nick/source/repos/frameworkv3/framework/util/particleEmitter.js
1907 */
1886 */
1908class ParticleEmitter
1887class ParticleEmitter
1909{
1888{
@@ -2161,12 +2140,12 @@ class Particle
2161}
2140}
2162/*
2141/*
2163 * End File:
2142 * End File:
2164 * /e/Development/Repositories/frameworkv3/framework/util/particleEmitter.js
2143 * /c/Users/Nick/source/repos/frameworkv3/framework/util/particleEmitter.js
2165 */
2144 */
2166
2145
2167/*
2146/*
2168 * Start File:
2147 * Start File:
2169 * /e/Development/Repositories/frameworkv3/framework/util/ray.js
2148 * /c/Users/Nick/source/repos/frameworkv3/framework/util/ray.js
2170 */
2149 */
2171class Ray
2150class Ray
2172{
2151{
@@ -2277,12 +2256,12 @@ class Ray
2277}
2256}
2278/*
2257/*
2279 * End File:
2258 * End File:
2280 * /e/Development/Repositories/frameworkv3/framework/util/ray.js
2259 * /c/Users/Nick/source/repos/frameworkv3/framework/util/ray.js
2281 */
2260 */
2282
2261
2283/*
2262/*
2284 * Start File:
2263 * Start File:
2285 * /e/Development/Repositories/frameworkv3/framework/util/signal.js
2264 * /c/Users/Nick/source/repos/frameworkv3/framework/util/signal.js
2286 */
2265 */
2287// Basic event listeners, modeled after Phaser Signals
2266// Basic event listeners, modeled after Phaser Signals
2288
2267
@@ -2351,12 +2330,12 @@ class signal
2351}
2330}
2352/*
2331/*
2353 * End File:
2332 * End File:
2354 * /e/Development/Repositories/frameworkv3/framework/util/signal.js
2333 * /c/Users/Nick/source/repos/frameworkv3/framework/util/signal.js
2355 */
2334 */
2356
2335
2357/*
2336/*
2358 * Start File:
2337 * Start File:
2359 * /e/Development/Repositories/frameworkv3/framework/util/timingUtil.js
2338 * /c/Users/Nick/source/repos/frameworkv3/framework/util/timingUtil.js
2360 */
2339 */
2361/**
2340/**
2362 /* Timing utility
2341 /* Timing utility
@@ -2409,12 +2388,12 @@ timingUtil =
2409};
2388};
2410/*
2389/*
2411 * End File:
2390 * End File:
2412 * /e/Development/Repositories/frameworkv3/framework/util/timingUtil.js
2391 * /c/Users/Nick/source/repos/frameworkv3/framework/util/timingUtil.js
2413 */
2392 */
2414
2393
2415/*
2394/*
2416 * Start File:
2395 * Start File:
2417 * /e/Development/Repositories/frameworkv3/framework/util/urlParams.js
2396 * /c/Users/Nick/source/repos/frameworkv3/framework/util/urlParams.js
2418 */
2397 */
2419var UrlParams =
2398var UrlParams =
2420{
2399{
@@ -2438,12 +2417,12 @@ var UrlParams =
2438};
2417};
2439/*
2418/*
2440 * End File:
2419 * End File:
2441 * /e/Development/Repositories/frameworkv3/framework/util/urlParams.js
2420 * /c/Users/Nick/source/repos/frameworkv3/framework/util/urlParams.js
2442 */
2421 */
2443
2422
2444/*
2423/*
2445 * Start File:
2424 * Start File:
2446 * /e/Development/Repositories/frameworkv3/framework/util/vector.js
2425 * /c/Users/Nick/source/repos/frameworkv3/framework/util/vector.js
2447 */
2426 */
2448class vector
2427class vector
2449{
2428{
@@ -2597,5 +2576,5 @@ class vector
2597};
2576};
2598/*
2577/*
2599 * End File:
2578 * End File:
2600 * /e/Development/Repositories/frameworkv3/framework/util/vector.js
2579 * /c/Users/Nick/source/repos/frameworkv3/framework/util/vector.js
2601 */
2580 */
src/minigame/frog/frog.js +4 −10
@@ -114,6 +114,10 @@ class Frog extends GameObject
114 114 }
115 115
116 116 let obj = Ray.Cast(this.scene, collisionVector, new vector(this.tongueVectorBounce ? this.currentFacing : this.opposite_facing, -1), 5);
117
118 obj.collider.enabled = false;
119
120
117 121 }
118 122
119 123 calculateTongueVectors ()
@@ -149,16 +153,6 @@ class Frog extends GameObject
149 153 {
150 154 super.draw(context);
151 155
152
153 let amount = this.renderer.sprite.width / 2;
154 this.currentFacing == this.facing.right ? amount *= 1 : amount *= -1;
155
156 let v = new vector(this.transform.position.x + amount, this.scene.real_size.y);
157 context.lineWidth = 3;
158 context.moveTo(v.x, v.y);
159 context.lineTo(v.x, v.y - 50);
160 context.stroke();
161
162 156 if (!this.tongue_retracted)
163 157 {
164 158 this.drawTongue();
@@ -114,6 +114,10 @@ class Frog extends GameObject
114 }
114 }
115
115
116 let obj = Ray.Cast(this.scene, collisionVector, new vector(this.tongueVectorBounce ? this.currentFacing : this.opposite_facing, -1), 5);
116 let obj = Ray.Cast(this.scene, collisionVector, new vector(this.tongueVectorBounce ? this.currentFacing : this.opposite_facing, -1), 5);
117
118 obj.collider.enabled = false;
119
120
117 }
121 }
118
122
119 calculateTongueVectors ()
123 calculateTongueVectors ()
@@ -149,16 +153,6 @@ class Frog extends GameObject
149 {
153 {
150 super.draw(context);
154 super.draw(context);
151
155
152
153 let amount = this.renderer.sprite.width / 2;
154 this.currentFacing == this.facing.right ? amount *= 1 : amount *= -1;
155
156 let v = new vector(this.transform.position.x + amount, this.scene.real_size.y);
157 context.lineWidth = 3;
158 context.moveTo(v.x, v.y);
159 context.lineTo(v.x, v.y - 50);
160 context.stroke();
161
162 if (!this.tongue_retracted)
156 if (!this.tongue_retracted)
163 {
157 {
164 this.drawTongue();
158 this.drawTongue();
src/minigame/frog/frogScene.js +1 −0
@@ -35,6 +35,7 @@ class FrogScene extends Scene
35 35 if (this.shouldSpawn() || this.fruitSpawnTimer < 0)
36 36 {
37 37 let fruit = this.getFromFruitPoolOrCreate();
38 fruit.collider.enabled = true;
38 39 fruit.transform.position = this.getRandomVectorPosition(fruit);
39 40 this.setRandomSubImage(fruit);
40 41 this.fruits.push(fruit);
@@ -35,6 +35,7 @@ class FrogScene extends Scene
35 if (this.shouldSpawn() || this.fruitSpawnTimer < 0)
35 if (this.shouldSpawn() || this.fruitSpawnTimer < 0)
36 {
36 {
37 let fruit = this.getFromFruitPoolOrCreate();
37 let fruit = this.getFromFruitPoolOrCreate();
38 fruit.collider.enabled = true;
38 fruit.transform.position = this.getRandomVectorPosition(fruit);
39 fruit.transform.position = this.getRandomVectorPosition(fruit);
39 this.setRandomSubImage(fruit);
40 this.setRandomSubImage(fruit);
40 this.fruits.push(fruit);
41 this.fruits.push(fruit);