@@ -4352,6 +4352,7 @@ var require_showdown = __commonJS((exports, module) => {
43524352var exports_bundle = {};
43534353__export(exports_bundle, {
43544354 vecEq: () => vecEq,
4355+ sfc32: () => sfc32,
43554356 resetCamera: () => resetCamera,
43564357 pointInPoly: () => pointInPoly,
43574358 minify_sync: () => minify_sync,
@@ -4361,6 +4362,7 @@ __export(exports_bundle, {
43614362 getDebugInfo: () => getDebugInfo,
43624363 generateUID: () => generateUID,
43634364 drawBox: () => drawBox,
4365+ cyrb128: () => cyrb128,
43644366 convertTexturePackerToSpriteSheetData: () => convertTexturePackerToSpriteSheetData,
43654367 applyCamera: () => applyCamera,
43664368 _run_cli: () => run_cli,
@@ -5191,6 +5193,37 @@ class Vector {
51915193 }
51925194 }
51935195}
5196+ function sfc32(a, b, c, d) {
5197+ return function() {
5198+ a |= 0;
5199+ b |= 0;
5200+ c |= 0;
5201+ d |= 0;
5202+ let t = (a + b | 0) + d | 0;
5203+ d = d + 1 | 0;
5204+ a = b ^ b >>> 9;
5205+ b = c + (c << 3) | 0;
5206+ c = c << 21 | c >>> 11;
5207+ c = c + t | 0;
5208+ return (t >>> 0) / 4294967296;
5209+ };
5210+ }
5211+ function cyrb128(str) {
5212+ let h1 = 1779033703, h2 = 3144134277, h3 = 1013904242, h4 = 2773480762;
5213+ for (let i = 0, k;i < str.length; i++) {
5214+ k = str.charCodeAt(i);
5215+ h1 = h2 ^ Math.imul(h1 ^ k, 597399067);
5216+ h2 = h3 ^ Math.imul(h2 ^ k, 2869860233);
5217+ h3 = h4 ^ Math.imul(h3 ^ k, 951274213);
5218+ h4 = h1 ^ Math.imul(h4 ^ k, 2716044179);
5219+ }
5220+ h1 = Math.imul(h3 ^ h1 >>> 18, 597399067);
5221+ h2 = Math.imul(h4 ^ h2 >>> 22, 2869860233);
5222+ h3 = Math.imul(h1 ^ h3 >>> 17, 951274213);
5223+ h4 = Math.imul(h2 ^ h4 >>> 19, 2716044179);
5224+ h1 ^= h2 ^ h3 ^ h4, h2 ^= h1, h3 ^= h1, h4 ^= h1;
5225+ return [h1 >>> 0, h2 >>> 0, h3 >>> 0, h4 >>> 0];
5226+ }
51945227function characters(str) {
51955228 return str.split("");
51965229}
@@ -25085,24 +25118,10 @@ Defaulting to 2020, but this will stop working in the future.`);
2508525118 }
2508625119 }
2508725120 this.hoverbug = `${this.colliding ? "\uD83D\uDFE5" : "\uD83D\uDFE9"} - ${Array.from(this.collidingWith).map((o) => o.name).join(", ")} objects`;
25088- const fill = this.active;
25089- const ctx = this.top instanceof Game ? this.top.context : null;
25090- if (ctx) {
25091- ctx.beginPath();
25092- ctx.strokeStyle = `rgb(${this.randomTestingColors[0]}, ${this.randomTestingColors[1]}, ${this.randomTestingColors[2]})`;
25093- ctx.fillStyle = fill ? `rgba(${this.randomTestingColors[0]}, ${this.randomTestingColors[1]}, ${this.randomTestingColors[2]}, 0.5)` : "transparent";
25094- ctx.moveTo(this.worldVertices[0].x, this.worldVertices[0].y);
25095- for (const vertex of this.worldVertices) {
25096- ctx.lineTo(vertex.x, vertex.y);
25097- }
25098- ctx.closePath();
25099- ctx.stroke();
25100- ctx.fill();
25101- }
2510225121 if (this.top instanceof Game && this.top.devmode) {
25103- const ctx2 = this.top.context;
25104- if (ctx2 ) {
25105- this.drawDebug(ctx2 );
25122+ const ctx = this.top.context;
25123+ if (ctx ) {
25124+ this.drawDebug(ctx );
2510625125 }
2510725126 }
2510825127 }
0 commit comments