Spaces:
Running
Running
ThomasFfefefef
commited on
Commit
Β·
7d37df5
1
Parent(s):
199c28a
Add Unity WebGL build files
Browse files- .gitattributes +1 -36
- Build/Jammo Robot WEBGL.framework.js +0 -0
- Build/Jammo Robot WEBGL.loader.js +0 -1
- Build/Jammo Robot WEBGL.wasm +0 -3
- Build/{Jammo Robot WEBGL.data β Jammo The Robot v3.data} +2 -2
- Build/{Jammo Robot WEBGL.wasm.gz β Jammo The Robot v3.framework.js} +2 -2
- Build/{Jammo Robot WEBGL.framework.js.gz β Jammo The Robot v3.loader.js} +2 -2
- Build/{Jammo Robot WEBGL.data.gz β Jammo The Robot v3.wasm} +2 -2
- TemplateData/progress-bar-empty-dark.png +0 -0
- TemplateData/progress-bar-empty-light.png +0 -0
- TemplateData/progress-bar-full-dark.png +0 -0
- TemplateData/progress-bar-full-light.png +0 -0
- TemplateData/unity-logo-dark.png +0 -0
- TemplateData/unity-logo-light.png +0 -0
- TemplateData/webgl-logo.png +0 -0
- index.html +8 -9
- style.css +0 -28
.gitattributes
CHANGED
@@ -1,36 +1 @@
|
|
1 |
-
|
2 |
-
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
-
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
-
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
12 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
13 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
14 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
15 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
16 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
17 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
18 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
19 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
20 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
21 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
22 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
23 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
24 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
25 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
26 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
27 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
28 |
-
*.tar filter=lfs diff=lfs merge=lfs -text
|
29 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
30 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
31 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
32 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
33 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
-
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
-
Build/Jammo[[:space:]]Robot[[:space:]]WEBGL.data filter=lfs diff=lfs merge=lfs -text
|
|
|
1 |
+
Build/* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Build/Jammo Robot WEBGL.framework.js
DELETED
The diff for this file is too large to render.
See raw diff
|
|
Build/Jammo Robot WEBGL.loader.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
function createUnityInstance(t,r,d){function i(e,t){if(!i.aborted&&r.showBanner)return"error"==t&&(i.aborted=!0),r.showBanner(e,t);switch(t){case"error":console.error(e);break;case"warning":console.warn(e);break;default:console.log(e)}}function n(e){var t=e.reason||e.error,r=t?t.toString():e.message||e.reason||"",n=t&&t.stack?t.stack.toString():"";(r+="\n"+(n=n.startsWith(r)?n.substring(r.length):n).trim())&&c.stackTraceRegExp&&c.stackTraceRegExp.test(r)&&C(r,e.filename||t&&(t.fileName||t.sourceURL)||"",e.lineno||t&&(t.lineNumber||t.line)||0)}function e(e,t,r){var n=e[t];void 0!==n&&n||(console.warn('Config option "'+t+'" is missing or empty. Falling back to default value: "'+r+'". Consider updating your WebGL template to include the missing config option.'),e[t]=r)}d=d||function(){};var o,c={canvas:t,webglContextAttributes:{preserveDrawingBuffer:!1,powerPreference:2},cacheControl:function(e){return e==c.dataUrl?"must-revalidate":"no-store"},streamingAssetsUrl:"StreamingAssets",downloadProgress:{},deinitializers:[],intervals:{},setInterval:function(e,t){e=window.setInterval(e,t);return this.intervals[e]=!0,e},clearInterval:function(e){delete this.intervals[e],window.clearInterval(e)},preRun:[],postRun:[],print:function(e){console.log(e)},printErr:function(e){console.error(e),"string"==typeof e&&-1!=e.indexOf("wasm streaming compile failed")&&(-1!=e.toLowerCase().indexOf("mime")?i('HTTP Response Header "Content-Type" configured incorrectly on the server for file '+c.codeUrl+' , should be "application/wasm". Startup time performance will suffer.',"warning"):i('WebAssembly streaming compilation failed! This can happen for example if "Content-Encoding" HTTP header is incorrectly enabled on the server for file '+c.codeUrl+", but the file is not pre-compressed on disk (or vice versa). Check the Network tab in browser Devtools to debug server header configuration.","warning"))},locateFile:function(e){return"build.wasm"==e?this.codeUrl:e},disabledCanvasEvents:["contextmenu","dragstart"]};for(o in e(r,"companyName","Unity"),e(r,"productName","WebGL Player"),e(r,"productVersion","1.0"),r)c[o]=r[o];c.streamingAssetsUrl=new URL(c.streamingAssetsUrl,document.URL).href;var a=c.disabledCanvasEvents.slice();function s(e){e.preventDefault()}a.forEach(function(e){t.addEventListener(e,s)}),window.addEventListener("error",n),window.addEventListener("unhandledrejection",n),c.deinitializers.push(function(){for(var e in c.disableAccessToMediaDevices(),a.forEach(function(e){t.removeEventListener(e,s)}),window.removeEventListener("error",n),window.removeEventListener("unhandledrejection",n),c.intervals)window.clearInterval(e);c.intervals={}}),c.QuitCleanup=function(){for(var e=0;e<c.deinitializers.length;e++)c.deinitializers[e]();c.deinitializers=[],"function"==typeof c.onQuit&&c.onQuit()};var l,u,h,f,p,g,m,b,y="",v="",w=(document.addEventListener("webkitfullscreenchange",function(e){document.webkitCurrentFullScreenElement===t?t.style.width&&(y=t.style.width,v=t.style.height,t.style.width="100%",t.style.height="100%"):y&&(t.style.width=y,t.style.height=v,v=y="")}),{Module:c,SetFullscreen:function(){if(c.SetFullscreen)return c.SetFullscreen.apply(c,arguments);c.print("Failed to set Fullscreen mode: Player not loaded yet.")},SendMessage:function(){if(c.SendMessage)return c.SendMessage.apply(c,arguments);c.print("Failed to execute SendMessage: Player not loaded yet.")},Quit:function(){return new Promise(function(e,t){c.shouldQuit=!0,c.onQuit=e})}});function C(e,t,r){-1==e.indexOf("fullscreen error")&&(c.startupErrorHandler?c.startupErrorHandler(e,t,r):c.errorHandler&&c.errorHandler(e,t,r)||(console.log("Invoking error handler due to\n"+e),"function"==typeof dump&&dump("Invoking error handler due to\n"+e),C.didShowErrorMessage||(-1!=(e="An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:\n"+e).indexOf("DISABLE_EXCEPTION_CATCHING")?e="An exception has occurred, but exception handling has been disabled in this build. If you are the developer of this content, enable exceptions in your project WebGL player settings to be able to catch the exception or see the stack trace.":-1!=e.indexOf("Cannot enlarge memory arrays")?e="Out of memory. If you are the developer of this content, try allocating more memory to your WebGL build in the WebGL player settings.":-1==e.indexOf("Invalid array buffer length")&&-1==e.indexOf("Invalid typed array length")&&-1==e.indexOf("out of memory")&&-1==e.indexOf("could not allocate memory")||(e="The browser could not allocate enough memory for the WebGL content. If you are the developer of this content, try allocating less memory to your WebGL build in the WebGL player settings."),alert(e),C.didShowErrorMessage=!0)))}function x(e,t){if("symbolsUrl"!=e){var r=c.downloadProgress[e],n=(r=r||(c.downloadProgress[e]={started:!1,finished:!1,lengthComputable:!1,total:0,loaded:0}),"object"!=typeof t||"progress"!=t.type&&"load"!=t.type||(r.started||(r.started=!0,r.lengthComputable=t.lengthComputable),r.total=t.total,r.loaded=t.loaded,"load"==t.type&&(r.finished=!0)),0),o=0,a=0,s=0,i=0;for(e in c.downloadProgress){if(!(r=c.downloadProgress[e]).started)return;a++,r.lengthComputable?(n+=r.loaded,o+=r.total,s++):r.finished||i++}d(.9*(a?(a-i-(o?s*(o-n)/o:0))/a:0))}}function S(){var o=this;o.isConnected=new Promise(function(t,r){try{function n(){o.openDBTimeout&&(clearTimeout(o.openDBTimeout),o.openDBTimeout=null)}o.openDBTimeout=setTimeout(function(){void 0===o.database&&r(new Error("Could not connect to database: Timeout."))},2e3);var e=f.open(l.name,l.version);e.onupgradeneeded=function(e){var t;(e=(e=e).target.result).objectStoreNames.contains(h.name)||e.createObjectStore(h.name),e.objectStoreNames.contains(u.name)||(t=e.createObjectStore(u.name,{keyPath:"url"}),["version","company","product","updated","revalidated","accessed"].forEach(function(e){t.createIndex(e,e)}))},e.onsuccess=function(e){n(),o.database=e.target.result,t()},e.onerror=function(e){n(),o.database=null,r(new Error("Could not connect to database."))}}catch(e){n(),o.database=null,r(new Error("Could not connect to database."))}})}function T(e){console.log("[UnityCache] "+e)}function E(e){return E.link=E.link||document.createElement("a"),E.link.href=e,E.link.href}function P(t){t=t||{},this.headers=new Headers,Object.keys(t.headers).forEach(function(e){this.headers.set(e,t.headers[e])}.bind(this)),this.redirected=t.redirected,this.status=t.status,this.statusText=t.statusText,this.type=t.type,this.url=t.url,this.parsedBody=t.parsedBody,Object.defineProperty(this,"ok",{get:function(){return 200<=this.status&&this.status<=299}.bind(this)})}function k(e,t,r,n,o){var a={url:e,version:m.version,company:t,product:r,updated:n,revalidated:n,accessed:n,response:{headers:{}}};return o&&(o.headers.forEach(function(e,t){a.response.headers[t]=e}),["redirected","status","statusText","type","url"].forEach(function(e){a.response[e]=o[e]}),a.response.parsedBody=o.parsedBody),a}function U(){new Promise(function(a,e){var s=document.createElement("script");s.src=c.frameworkUrl,s.onload=function(){if("undefined"==typeof unityFramework||!unityFramework){var e,t=[["br","br"],["gz","gzip"]];for(e in t){var r,n=t[e];if(c.frameworkUrl.endsWith("."+n[0]))return r="Unable to parse "+c.frameworkUrl+"!","file:"==location.protocol?void i(r+" Loading pre-compressed (brotli or gzip) content via a file:// URL without a web server is not supported by this browser. Please use a local development web server to host compressed Unity content, or use the Unity Build and Run option.","error"):(r+=' This can happen if build compression was enabled but web server hosting the content was misconfigured to not serve the file with HTTP Response Header "Content-Encoding: '+n[1]+'" present. Check browser Console and Devtools Network tab to debug.',"br"==n[0]&&"http:"==location.protocol&&(n=-1!=["localhost","127.0.0.1"].indexOf(location.hostname)?"":"Migrate your server to use HTTPS.",r=/Firefox/.test(navigator.userAgent)?"Unable to parse "+c.frameworkUrl+'!<br>If using custom web server, verify that web server is sending .br files with HTTP Response Header "Content-Encoding: br". Brotli compression may not be supported in Firefox over HTTP connections. '+n+' See <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1670675">https://bugzilla.mozilla.org/show_bug.cgi?id=1670675</a> for more information.':"Unable to parse "+c.frameworkUrl+'!<br>If using custom web server, verify that web server is sending .br files with HTTP Response Header "Content-Encoding: br". Brotli compression may not be supported over HTTP connections. Migrate your server to use HTTPS.'),void i(r,"error"))}i("Unable to parse "+c.frameworkUrl+"! The file is corrupt, or compression was misconfigured? (check Content-Encoding HTTP Response Header on web server)","error")}var o=unityFramework;unityFramework=null,s.onload=null,a(o)},s.onerror=function(e){i("Unable to load file "+c.frameworkUrl+"! Check that the file exists on the remote server. (also check browser Console and Devtools Network tab to debug)","error")},document.body.appendChild(s),c.deinitializers.push(function(){document.body.removeChild(s)})}).then(function(e){e(c)});x(r="dataUrl"),e=c.cacheControl(c[r]),t=c.companyName&&c.productName?c.cachedFetch:c.fetchWithProgress,n=c[r],n=/file:\/\//.exec(n)?"same-origin":void 0;var r,e,t,n,o=t(c[r],{method:"GET",companyName:c.companyName,productName:c.productName,control:e,mode:n,onProgress:function(e){x(r,e)}}).then(function(e){return e.parsedBody}).catch(function(e){var t="Failed to download file "+c[r];"file:"==location.protocol?i(t+". Loading web pages via a file:// URL without a web server is not supported by this browser. Please use a local development web server to host Unity content, or use the Unity Build and Run option.","error"):console.error(t)});c.preRun.push(function(){c.addRunDependency("dataUrl"),o.then(function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),r=0,n="UnityWebData1.0\0";if(!String.fromCharCode.apply(null,e.subarray(r,r+n.length))==n)throw"unknown data format";var o=t.getUint32(r+=n.length,!0);for(r+=4;r<o;){var a=t.getUint32(r,!0),s=(r+=4,t.getUint32(r,!0)),i=(r+=4,t.getUint32(r,!0)),d=(r+=4,String.fromCharCode.apply(null,e.subarray(r,r+i)));r+=i;for(var l=0,u=d.indexOf("/",l)+1;0<u;l=u,u=d.indexOf("/",l)+1)c.FS_createPath(d.substring(0,l),d.substring(l,u-1),!0,!0);c.FS_createDataFile(d,null,e.subarray(a,a+s),!0,!0,!0)}c.removeRunDependency("dataUrl")})})}return c.SystemInfo=function(){var e,t,r,n,o=navigator.userAgent+" ",a=[["Firefox","Firefox"],["OPR","Opera"],["Edg","Edge"],["SamsungBrowser","Samsung Browser"],["Trident","Internet Explorer"],["MSIE","Internet Explorer"],["Chrome","Chrome"],["CriOS","Chrome on iOS Safari"],["FxiOS","Firefox on iOS Safari"],["Safari","Safari"]];function s(e,t,r){return(e=RegExp(e,"i").exec(t))&&e[r]}for(var i=0;i<a.length;++i)if(t=s(a[i][0]+"[/ ](.*?)[ \\)]",o,1)){e=a[i][1];break}"Safari"==e&&(t=s("Version/(.*?) ",o,1)),"Internet Explorer"==e&&(t=s("rv:(.*?)\\)? ",o,1)||t);for(var d=[["Windows (.*?)[;)]","Windows"],["Android ([0-9_.]+)","Android"],["iPhone OS ([0-9_.]+)","iPhoneOS"],["iPad.*? OS ([0-9_.]+)","iPadOS"],["FreeBSD( )","FreeBSD"],["OpenBSD( )","OpenBSD"],["Linux|X11()","Linux"],["Mac OS X ([0-9_.]+)","MacOS"],["bot|google|baidu|bing|msn|teoma|slurp|yandex","Search Bot"]],l=0;l<d.length;++l)if(u=s(d[l][0],o,1)){r=d[l][1],u=u.replace(/_/g,".");break}var u={"NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"Server 2003","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 10.0":"10"}[u]||u,c=((c=document.createElement("canvas"))&&(gl=c.getContext("webgl2"),glVersion=gl?2:0,gl||(gl=c&&c.getContext("webgl"))&&(glVersion=1),gl&&(n=gl.getExtension("WEBGL_debug_renderer_info")&&gl.getParameter(37446)||gl.getParameter(7937))),"undefined"!=typeof SharedArrayBuffer),h="object"==typeof WebAssembly&&"function"==typeof WebAssembly.compile;return{width:screen.width,height:screen.height,userAgent:o.trim(),browser:e||"Unknown browser",browserVersion:t||"Unknown version",mobile:/Mobile|Android|iP(ad|hone)/.test(navigator.appVersion),os:r||"Unknown OS",osVersion:u||"Unknown OS Version",gpu:n||"Unknown GPU",language:navigator.userLanguage||navigator.language,hasWebGL:glVersion,hasCursorLock:!!document.body.requestPointerLock,hasFullscreen:!!document.body.requestFullscreen||!!document.body.webkitRequestFullscreen,hasThreads:c,hasWasm:h,hasWasmThreads:!1}}(),c.abortHandler=function(e){return C(e,"",0),!0},Error.stackTraceLimit=Math.max(Error.stackTraceLimit||0,50),c.readBodyWithProgress=function(a,s,i){var e=a.body?a.body.getReader():void 0,d=void 0!==a.headers.get("Content-Length"),l=function(e,t){if(!t)return 0;var t=e.headers.get("Content-Encoding"),r=parseInt(e.headers.get("Content-Length"));switch(t){case"br":return Math.round(5*r);case"gzip":return Math.round(4*r);default:return r}}(a,d),u=new Uint8Array(l),c=[],h=0,f=0;return d||console.warn("[UnityCache] Response is served without Content-Length header. Please reconfigure server to include valid Content-Length for better download performance."),function o(){return void 0===e?a.arrayBuffer().then(function(e){var t=new Uint8Array(e);return s({type:"progress",response:a,total:e.length,loaded:0,lengthComputable:d,chunk:i?t:null}),t}):e.read().then(function(e){if(e.done){if(h===l)return u;if(h<l)return u.slice(0,h);for(var t=new Uint8Array(h),r=(t.set(u,0),f),n=0;n<c.length;++n)t.set(c[n],r),r+=c[n].length;return t}return h+e.value.length<=u.length?(u.set(e.value,h),f=h+e.value.length):c.push(e.value),h+=e.value.length,s({type:"progress",response:a,total:Math.max(l,h),loaded:h,lengthComputable:d,chunk:i?e.value:null}),o()})}().then(function(e){return s({type:"load",response:a,total:e.length,loaded:e.length,lengthComputable:d,chunk:null}),a.parsedBody=e,a})},c.fetchWithProgress=function(e,t){var r=function(){};return t&&t.onProgress&&(r=t.onProgress),fetch(e,t).then(function(e){return c.readBodyWithProgress(e,r,t.enableStreamingDownload)})},c.UnityCache=(l={name:"UnityCache",version:3},u={name:"RequestStore",version:1},h={name:"WebAssembly",version:1},f=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,S.UnityCacheDatabase=l,S.RequestStore=u,S.WebAssemblyStore=h,p=null,S.getInstance=function(){return p=p||new S},S.destroyInstance=function(){return p?p.close().then(function(){p=null}):Promise.resolve()},S.clearCache=function(){return S.destroyInstance().then(function(){return new Promise(function(e,t){var r=f.deleteDatabase(l.name);r.onsuccess=function(){e()},r.onerror=function(){t(new Error("Could not delete database."))},r.onblocked=function(){t(new Error("Database blocked."))}})})},S.prototype.execute=function(a,s,i){return this.isConnected.then(function(){return new Promise(function(t,r){try{var e,n,o;null===this.database?r(new Error("indexedDB access denied")):(e=-1!=["put","delete","clear"].indexOf(s)?"readwrite":"readonly",n=this.database.transaction([a],e).objectStore(a),"openKeyCursor"==s&&(n=n.index(i[0]),i=i.slice(1)),(o=n[s].apply(n,i)).onsuccess=function(e){t(e.target.result)},o.onerror=function(e){r(e)})}catch(e){r(e)}}.bind(this))}.bind(this))},S.prototype.loadRequest=function(e){return this.execute(u.name,"get",[e])},S.prototype.storeRequest=function(e){return this.execute(u.name,"put",[e])},S.prototype.close=function(){return this.isConnected.then(function(){this.database&&(this.database.close(),this.database=null)}.bind(this))},S),c.cachedFetch=(g=c.UnityCache,m=g.RequestStore,b=c.fetchWithProgress,P.prototype.arrayBuffer=function(){return Promise.resolve(this.parsedBody.buffer)},P.prototype.blob=function(){return this.arrayBuffer().then(function(e){return new Blob([e])})},P.prototype.json=function(){return this.text().then(function(e){return JSON.parse(e)})},P.prototype.text=function(){var e=new TextDecoder;return Promise.resolve(e.decode(this.parsedBody))},function(n,o){var e,t,a=g.getInstance(),r=E("string"==typeof n?n:n.url),s={enabled:(e=r,(!(t=o)||!t.method||"GET"===t.method)&&((!t||-1!=["must-revalidate","immutable"].indexOf(t.control))&&!!e.match("^https?://")))};function i(e,t){return b(e,t).then(function(e){if(s.enabled&&!s.revalidated){if(304===e.status)return s.result.revalidated=s.result.accessed,s.revalidated=!0,a.storeRequest(s.result).then(function(){T("'"+s.result.url+"' successfully revalidated and served from the indexedDB cache")}).catch(function(e){T("'"+s.result.url+"' successfully revalidated but not stored in the indexedDB cache due to the error: "+e)}),new P(s.result.response);200==e.status?(s.result=k(e.url,s.company,s.product,s.accessed,e),s.revalidated=!0,a.storeRequest(s.result).then(function(){T("'"+s.result.url+"' successfully downloaded and stored in the indexedDB cache")}).catch(function(e){T("'"+s.result.url+"' successfully downloaded but not stored in the indexedDB cache due to the error: "+e)})):T("'"+s.result.url+"' request failed with status: "+e.status+" "+e.statusText)}return e})}function d(e){o&&o.onProgress&&(o.onProgress({type:"progress",total:e.parsedBody.length,loaded:e.parsedBody.length,lengthComputable:!0}),o.onProgress({type:"load",total:e.parsedBody.length,loaded:e.parsedBody.length,lengthComputable:!0}))}return o&&(s.control=o.control,s.company=o.company,s.product=o.product),s.result=k(r,s.company,s.product,Date.now()),s.revalidated=!1,s.enabled?a.loadRequest(s.result.url).then(function(e){if(!e||e.version!==m.version)return i(n,o);s.result=e,s.result.accessed=Date.now();var t,r=new P(s.result.response);return"immutable"==s.control?(s.revalidated=!0,a.storeRequest(s.result),T("'"+s.result.url+"' served from the indexedDB cache without revalidation"),d(r),r):(e=s.result.url,(t=window.location.href.match(/^[a-z]+:\/\/[^\/]+/))&&!e.lastIndexOf(t[0],0)||!r.headers.get("Last-Modified")&&!r.headers.get("ETag")?(e=(o=o||{}).headers||{},o.headers=e,r.headers.get("Last-Modified")?(e["If-Modified-Since"]=r.headers.get("Last-Modified"),e["Cache-Control"]="no-cache"):r.headers.get("ETag")&&(e["If-None-Match"]=r.headers.get("ETag"),e["Cache-Control"]="no-cache"),i(n,o)):fetch(s.result.url,{method:"HEAD"}).then(function(t){return s.revalidated=["Last-Modified","ETag"].every(function(e){return!r.headers.get(e)||r.headers.get(e)==t.headers.get(e)}),s.revalidated?(s.result.revalidated=s.result.accessed,a.storeRequest(s.result),T("'"+s.result.url+"' successfully revalidated and served from the indexedDB cache"),d(r),r):i(n,o)}))}).catch(function(e){return T("Failed to load '"+s.result.url+"' from indexedDB cache due to the error: "+e),b(n,o)}):b(n,o)}),new Promise(function(e,t){c.SystemInfo.hasWebGL?1==c.SystemInfo.hasWebGL?t('Your browser does not support graphics API "WebGL 2" which is required for this content.'):c.SystemInfo.hasWasm?(1==c.SystemInfo.hasWebGL&&c.print('Warning: Your browser does not support "WebGL 2" Graphics API, switching to "WebGL 1"'),c.startupErrorHandler=t,d(0),c.postRun.push(function(){d(1),delete c.startupErrorHandler,e(w)}),U()):t("Your browser does not support WebAssembly."):t("Your browser does not support WebGL.")})}
|
|
|
|
Build/Jammo Robot WEBGL.wasm
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:6ad144be176383dfa09a85ef7b8c1ae08ae5fcdb2c1e76440b3265e4a1d5e4af
|
3 |
-
size 28213085
|
|
|
|
|
|
|
|
Build/{Jammo Robot WEBGL.data β Jammo The Robot v3.data}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:de52ad1b26de698d367048a7f53ce5091ca2b134978682f5ed62f656aa7ee38d
|
3 |
+
size 22989446
|
Build/{Jammo Robot WEBGL.wasm.gz β Jammo The Robot v3.framework.js}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:78168266f4e3211eb8dc18cd0eabfdfce981989e77b9315394beedf9ee20b6e1
|
3 |
+
size 404852
|
Build/{Jammo Robot WEBGL.framework.js.gz β Jammo The Robot v3.loader.js}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:75083a3271c601c2933e0b94cb8b59c17f7ff8fed2c923868dfd978e82bde964
|
3 |
+
size 20672
|
Build/{Jammo Robot WEBGL.data.gz β Jammo The Robot v3.wasm}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:705bd5306ba882ecdf9cee798dd1ee72363cc9572d313f9ba9c081be4b49f03c
|
3 |
+
size 36444873
|
TemplateData/progress-bar-empty-dark.png
DELETED
Binary file (96 Bytes)
|
|
TemplateData/progress-bar-empty-light.png
DELETED
Binary file (109 Bytes)
|
|
TemplateData/progress-bar-full-dark.png
DELETED
Binary file (74 Bytes)
|
|
TemplateData/progress-bar-full-light.png
DELETED
Binary file (84 Bytes)
|
|
TemplateData/unity-logo-dark.png
DELETED
Binary file (3.04 kB)
|
|
TemplateData/unity-logo-light.png
DELETED
Binary file (3.08 kB)
|
|
TemplateData/webgl-logo.png
DELETED
Binary file (2.95 kB)
|
|
index.html
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
<title>Jammot</title>
|
8 |
<link rel="shortcut icon" href="TemplateData/favicon.ico">
|
9 |
<link rel="stylesheet" href="TemplateData/style.css">
|
10 |
-
|
11 |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
12 |
</head>
|
13 |
<body class="dark">
|
@@ -21,12 +21,11 @@
|
|
21 |
</button>
|
22 |
</div>
|
23 |
<div class="modal-body">
|
24 |
-
<h3> What is
|
25 |
-
<p>
|
26 |
|
27 |
<p>If you like the game, don't forget to click on the like π button.</p>
|
28 |
-
<p> Do you want to learn how to build your own robot
|
29 |
-
π <a href="" target="_blank">Start here</a> </p>
|
30 |
</div>
|
31 |
<div class="modal-footer">
|
32 |
<button type="button" class="btn btn-success" data-dismiss="modal">Let me play!</button>
|
@@ -50,11 +49,11 @@
|
|
50 |
<script>
|
51 |
const hideFullScreenButton = "";
|
52 |
const buildUrl = "Build";
|
53 |
-
const loaderUrl = buildUrl + "/Jammo Robot
|
54 |
const config = {
|
55 |
-
dataUrl: buildUrl + "/Jammo Robot
|
56 |
-
frameworkUrl: buildUrl + "/Jammo Robot
|
57 |
-
codeUrl: buildUrl + "/Jammo Robot
|
58 |
streamingAssetsUrl: "StreamingAssets",
|
59 |
companyName: "DefaultCompany",
|
60 |
productName: "Jammot",
|
|
|
7 |
<title>Jammot</title>
|
8 |
<link rel="shortcut icon" href="TemplateData/favicon.ico">
|
9 |
<link rel="stylesheet" href="TemplateData/style.css">
|
10 |
+
<!-- Bootstrap CSS -->
|
11 |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
12 |
</head>
|
13 |
<body class="dark">
|
|
|
21 |
</button>
|
22 |
</div>
|
23 |
<div class="modal-body">
|
24 |
+
<h3> What is Jammo the Robot v3 π€ ? </h3>
|
25 |
+
<p> Jammo the Robot is a game where a robot NPC can <b>understand player orders and perform them</b>. </p>
|
26 |
|
27 |
<p>If you like the game, don't forget to click on the like π button.</p>
|
28 |
+
<p> Do you want to learn how to build your own robot NPC using AI π€? Check π <a href="https://open.substack.com/pub/thomassimonini/p/building-a-smart-robot-ai-using-hugging?r=dq5fg&utm_campaign=post&utm_medium=web&showWelcome=true" target="_blank"> this tutorial</a> </p>
|
|
|
29 |
</div>
|
30 |
<div class="modal-footer">
|
31 |
<button type="button" class="btn btn-success" data-dismiss="modal">Let me play!</button>
|
|
|
49 |
<script>
|
50 |
const hideFullScreenButton = "";
|
51 |
const buildUrl = "Build";
|
52 |
+
const loaderUrl = buildUrl + "/Jammo The Robot v3.loader.js";
|
53 |
const config = {
|
54 |
+
dataUrl: buildUrl + "/Jammo The Robot v3.data",
|
55 |
+
frameworkUrl: buildUrl + "/Jammo The Robot v3.framework.js",
|
56 |
+
codeUrl: buildUrl + "/Jammo The Robot v3.wasm",
|
57 |
streamingAssetsUrl: "StreamingAssets",
|
58 |
companyName: "DefaultCompany",
|
59 |
productName: "Jammot",
|
style.css
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
body {
|
2 |
-
padding: 2rem;
|
3 |
-
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
|
4 |
-
}
|
5 |
-
|
6 |
-
h1 {
|
7 |
-
font-size: 16px;
|
8 |
-
margin-top: 0;
|
9 |
-
}
|
10 |
-
|
11 |
-
p {
|
12 |
-
color: rgb(107, 114, 128);
|
13 |
-
font-size: 15px;
|
14 |
-
margin-bottom: 10px;
|
15 |
-
margin-top: 5px;
|
16 |
-
}
|
17 |
-
|
18 |
-
.card {
|
19 |
-
max-width: 620px;
|
20 |
-
margin: 0 auto;
|
21 |
-
padding: 16px;
|
22 |
-
border: 1px solid lightgray;
|
23 |
-
border-radius: 16px;
|
24 |
-
}
|
25 |
-
|
26 |
-
.card p:last-child {
|
27 |
-
margin-bottom: 0;
|
28 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|