This commit is contained in:
thepaperpilot 2022-12-22 19:41:09 +00:00
parent 9432f94e63
commit 514873efba
4 changed files with 5 additions and 5 deletions

View file

@ -1 +1 @@
import{_ as T,s as d,p as e,a as l,l as c,D as m,b as s,g as p}from"./index.f6c9d016.js";import"./vue.e305c975.js";import{b1 as v}from"./@vue.359f7754.js";/* empty css */import"./nanoevents.1080beb7.js";import"./lz-string.f2f3b7cf.js";import"./is-plain-object.906d88e8.js";import"./vue-next-select.0b2b1d01.js";import"./vue-toastification.d643abb2.js";import"./@pixi.45135ab2.js";import"./eventemitter3.dc5195d7.js";import"./earcut.7c12e2a9.js";import"./url.5a27916e.js";import"./querystring.b35d81f8.js";import"./vuedraggable.96a532dc.js";import"./sortablejs.a0419146.js";import"./vue-textarea-autosize.35804eaf.js";let n=null,o=null;function r(){const t=Date.now();let i=(t-e.time)/1e3;e.time=t;const f=i;if(l.lastTenTicks.push(f),l.lastTenTicks.length>10&&(l.lastTenTicks=l.lastTenTicks.slice(1)),(o==null?void 0:o.value)&&!e.keepGoing||l.hasNaN||(i=Math.max(i,0),e.devSpeed===0))return;if(c.value=!1,e.offlineTime!=null){if(m.gt(e.offlineTime,s.offlineLimit*3600)&&(e.offlineTime=s.offlineLimit*3600),m.gt(e.offlineTime,0)&&e.devSpeed!==0){const u=Math.max(e.offlineTime/10,i);e.offlineTime=e.offlineTime-u,i+=u}else e.devSpeed===0&&(e.offlineTime+=i);(!e.offlineProd||m.lt(e.offlineTime,0))&&(e.offlineTime=null)}if(i=Math.min(i,s.maxTickLength),e.devSpeed!=null&&(i*=e.devSpeed),Number.isFinite(i)||(i=1e308),m.eq(i,0))return;e.timePlayed+=i,Number.isFinite(e.timePlayed)||(e.timePlayed=1e308);let a=f;for(;a>1;)p.emit("update",i/f,1),a--;p.emit("update",i*a/f,a),d.unthrottled?(requestAnimationFrame(r),n!=null&&(clearInterval(n),n=null)):n==null&&(n=setInterval(r,50))}async function M(){o=(await T(()=>import("./index.f6c9d016.js").then(function(t){return t.c}),["assets/index.f6c9d016.js","assets/index.98945109.css","assets/@fontsource.c175eac8.css","assets/vue.e305c975.js","assets/earcut.7c12e2a9.js","assets/@vue.359f7754.js","assets/nanoevents.1080beb7.js","assets/lz-string.f2f3b7cf.js","assets/is-plain-object.906d88e8.js","assets/vue-next-select.0b2b1d01.js","assets/vue-next-select.9e6f4164.css","assets/vue-toastification.d643abb2.js","assets/vue-toastification.4b5f8ac8.css","assets/@pixi.45135ab2.js","assets/eventemitter3.dc5195d7.js","assets/url.5a27916e.js","assets/querystring.b35d81f8.js","assets/vuedraggable.96a532dc.js","assets/sortablejs.a0419146.js","assets/vue-textarea-autosize.35804eaf.js"])).hasWon,v(o,t=>{t&&p.emit("gameWon")}),d.unthrottled?requestAnimationFrame(r):n=setInterval(r,50)}export{M as startGameLoop};
import{_ as T,s as d,p as e,a as l,l as c,D as m,b as s,g as p}from"./index.16151a67.js";import"./vue.e305c975.js";import{b1 as v}from"./@vue.359f7754.js";/* empty css */import"./nanoevents.1080beb7.js";import"./lz-string.f2f3b7cf.js";import"./is-plain-object.906d88e8.js";import"./vue-next-select.0b2b1d01.js";import"./vue-toastification.d643abb2.js";import"./@pixi.45135ab2.js";import"./eventemitter3.dc5195d7.js";import"./earcut.7c12e2a9.js";import"./url.5a27916e.js";import"./querystring.b35d81f8.js";import"./vuedraggable.96a532dc.js";import"./sortablejs.a0419146.js";import"./vue-textarea-autosize.35804eaf.js";let n=null,o=null;function r(){const t=Date.now();let i=(t-e.time)/1e3;e.time=t;const f=i;if(l.lastTenTicks.push(f),l.lastTenTicks.length>10&&(l.lastTenTicks=l.lastTenTicks.slice(1)),(o==null?void 0:o.value)&&!e.keepGoing||l.hasNaN||(i=Math.max(i,0),e.devSpeed===0))return;if(c.value=!1,e.offlineTime!=null){if(m.gt(e.offlineTime,s.offlineLimit*3600)&&(e.offlineTime=s.offlineLimit*3600),m.gt(e.offlineTime,0)&&e.devSpeed!==0){const u=Math.max(e.offlineTime/10,i);e.offlineTime=e.offlineTime-u,i+=u}else e.devSpeed===0&&(e.offlineTime+=i);(!e.offlineProd||m.lt(e.offlineTime,0))&&(e.offlineTime=null)}if(i=Math.min(i,s.maxTickLength),e.devSpeed!=null&&(i*=e.devSpeed),Number.isFinite(i)||(i=1e308),m.eq(i,0))return;e.timePlayed+=i,Number.isFinite(e.timePlayed)||(e.timePlayed=1e308);let a=f;for(;a>1;)p.emit("update",i/f,1),a--;p.emit("update",i*a/f,a),d.unthrottled?(requestAnimationFrame(r),n!=null&&(clearInterval(n),n=null)):n==null&&(n=setInterval(r,50))}async function M(){o=(await T(()=>import("./index.16151a67.js").then(function(t){return t.c}),["assets/index.16151a67.js","assets/index.98945109.css","assets/@fontsource.c175eac8.css","assets/vue.e305c975.js","assets/earcut.7c12e2a9.js","assets/@vue.359f7754.js","assets/nanoevents.1080beb7.js","assets/lz-string.f2f3b7cf.js","assets/is-plain-object.906d88e8.js","assets/vue-next-select.0b2b1d01.js","assets/vue-next-select.9e6f4164.css","assets/vue-toastification.d643abb2.js","assets/vue-toastification.4b5f8ac8.css","assets/@pixi.45135ab2.js","assets/eventemitter3.dc5195d7.js","assets/url.5a27916e.js","assets/querystring.b35d81f8.js","assets/vuedraggable.96a532dc.js","assets/sortablejs.a0419146.js","assets/vue-textarea-autosize.35804eaf.js"])).hasWon,v(o,t=>{t&&p.emit("gameWon")}),d.unthrottled?requestAnimationFrame(r):n=setInterval(r,50)}export{M as startGameLoop};

File diff suppressed because one or more lines are too long

View file

@ -14,7 +14,7 @@
<title>Advent Incremental</title>
<meta name="description" content="An incremental game you play a day at a time, leading up to Christmas!"/>
<script defer="true" data-domain="thepaperpilot.org" src="https://plausible.io/js/plausible.js"></script>
<script type="module" crossorigin src="./assets/index.f6c9d016.js"></script>
<script type="module" crossorigin src="./assets/index.16151a67.js"></script>
<link rel="modulepreload" href="./assets/earcut.7c12e2a9.js">
<link rel="modulepreload" href="./assets/@vue.359f7754.js">
<link rel="modulepreload" href="./assets/vue.e305c975.js">

2
sw.js
View file

@ -1 +1 @@
if(!self.define){let s,e={};const i=(i,l)=>(i=new URL(i+".js",l).href,e[i]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=i,s.onload=e,document.head.appendChild(s)}else s=i,importScripts(i),e()})).then((()=>{let s=e[i];if(!s)throw new Error(`Module ${i} didnt register its module`);return s})));self.define=(l,n)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let t={};const u=s=>i(s,r),o={module:{uri:r},exports:t,require:u};e[r]=Promise.all(l.map((s=>o[s]||u(s)))).then((s=>(n(...s),t)))}}define(["./workbox-7369c0e1"],(function(s){"use strict";self.addEventListener("message",(s=>{s.data&&"SKIP_WAITING"===s.data.type&&self.skipWaiting()})),s.precacheAndRoute([{url:"assets/@fontsource.c175eac8.css",revision:null},{url:"assets/@pixi.45135ab2.js",revision:null},{url:"assets/@vue.359f7754.js",revision:null},{url:"assets/earcut.7c12e2a9.js",revision:null},{url:"assets/eventemitter3.dc5195d7.js",revision:null},{url:"assets/gameLoop.0776661e.js",revision:null},{url:"assets/index.98945109.css",revision:null},{url:"assets/index.f6c9d016.js",revision:null},{url:"assets/is-plain-object.906d88e8.js",revision:null},{url:"assets/lz-string.f2f3b7cf.js",revision:null},{url:"assets/nanoevents.1080beb7.js",revision:null},{url:"assets/querystring.b35d81f8.js",revision:null},{url:"assets/sortablejs.a0419146.js",revision:null},{url:"assets/url.5a27916e.js",revision:null},{url:"assets/vue-next-select.0b2b1d01.js",revision:null},{url:"assets/vue-next-select.9e6f4164.css",revision:null},{url:"assets/vue-textarea-autosize.35804eaf.js",revision:null},{url:"assets/vue-toastification.4b5f8ac8.css",revision:null},{url:"assets/vue-toastification.d643abb2.js",revision:null},{url:"assets/vue.e305c975.js",revision:null},{url:"assets/vuedraggable.96a532dc.js",revision:null},{url:"assets/workbox-window.4a8794bb.js",revision:null},{url:"index.html",revision:"d5651f663fac66bea1eec3767868d571"},{url:"favicon.ico",revision:"eead31eb5b19fa3bdc34af83d898c0b7"},{url:"robots.txt",revision:"5e0bd1c281a62a380d7a948085bfe2d1"},{url:"apple-touch-icon.png",revision:"26e53bb981d06c8069ffd9d2a14fce0e"},{url:"pwa-192x192.png",revision:"a16785d9e890858c5b508e0ef6954aaf"},{url:"pwa-512x512.png",revision:"b84004b93fd62ef6599ff179372861a1"},{url:"manifest.webmanifest",revision:"5f32ad2a77eb001e1b6a588835dc1efc"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))}));
if(!self.define){let s,e={};const i=(i,l)=>(i=new URL(i+".js",l).href,e[i]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=i,s.onload=e,document.head.appendChild(s)}else s=i,importScripts(i),e()})).then((()=>{let s=e[i];if(!s)throw new Error(`Module ${i} didnt register its module`);return s})));self.define=(l,n)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let t={};const u=s=>i(s,r),a={module:{uri:r},exports:t,require:u};e[r]=Promise.all(l.map((s=>a[s]||u(s)))).then((s=>(n(...s),t)))}}define(["./workbox-7369c0e1"],(function(s){"use strict";self.addEventListener("message",(s=>{s.data&&"SKIP_WAITING"===s.data.type&&self.skipWaiting()})),s.precacheAndRoute([{url:"assets/@fontsource.c175eac8.css",revision:null},{url:"assets/@pixi.45135ab2.js",revision:null},{url:"assets/@vue.359f7754.js",revision:null},{url:"assets/earcut.7c12e2a9.js",revision:null},{url:"assets/eventemitter3.dc5195d7.js",revision:null},{url:"assets/gameLoop.d8cbfda2.js",revision:null},{url:"assets/index.16151a67.js",revision:null},{url:"assets/index.98945109.css",revision:null},{url:"assets/is-plain-object.906d88e8.js",revision:null},{url:"assets/lz-string.f2f3b7cf.js",revision:null},{url:"assets/nanoevents.1080beb7.js",revision:null},{url:"assets/querystring.b35d81f8.js",revision:null},{url:"assets/sortablejs.a0419146.js",revision:null},{url:"assets/url.5a27916e.js",revision:null},{url:"assets/vue-next-select.0b2b1d01.js",revision:null},{url:"assets/vue-next-select.9e6f4164.css",revision:null},{url:"assets/vue-textarea-autosize.35804eaf.js",revision:null},{url:"assets/vue-toastification.4b5f8ac8.css",revision:null},{url:"assets/vue-toastification.d643abb2.js",revision:null},{url:"assets/vue.e305c975.js",revision:null},{url:"assets/vuedraggable.96a532dc.js",revision:null},{url:"assets/workbox-window.4a8794bb.js",revision:null},{url:"index.html",revision:"796be754a78baf72a4f976e0fc555b74"},{url:"favicon.ico",revision:"eead31eb5b19fa3bdc34af83d898c0b7"},{url:"robots.txt",revision:"5e0bd1c281a62a380d7a948085bfe2d1"},{url:"apple-touch-icon.png",revision:"26e53bb981d06c8069ffd9d2a14fce0e"},{url:"pwa-192x192.png",revision:"a16785d9e890858c5b508e0ef6954aaf"},{url:"pwa-512x512.png",revision:"b84004b93fd62ef6599ff179372861a1"},{url:"manifest.webmanifest",revision:"5f32ad2a77eb001e1b6a588835dc1efc"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))}));