The open source repository for the action RPG game in development by Sig Productions titled 'Adventures in Lestoria'!
https://forums.lestoria.net
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
107 KiB
29 lines
107 KiB
12 months ago
|
<!doctypehtml><html lang=en-us><head><meta charset=utf-8><meta content="text/html; charset=utf-8"http-equiv=Content-Type><title>Emscripten-Generated Code</title><style>body{font-family:arial;margin:0;padding:none}.emscripten{padding-right:0;margin-left:auto;margin-right:auto;display:block}div.emscripten{text-align:center}div.emscripten_border{border:1px solid #000}canvas.emscripten{border:0 none;background-color:#000}#emscripten_logo{display:inline-block;margin:0}.spinner{height:30px;width:30px;margin:0;margin-top:20px;margin-left:20px;display:inline-block;vertical-align:top;-webkit-animation:rotation .8s linear infinite;-moz-animation:rotation .8s linear infinite;-o-animation:rotation .8s linear infinite;animation:rotation .8s linear infinite;border-left:5px solid #ebebeb;border-right:5px solid #ebebeb;border-bottom:5px solid #ebebeb;border-top:5px solid #787878;border-radius:100%;background-color:#bdd72e}@-webkit-keyframes rotation{from{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(360deg)}}@-moz-keyframes rotation{from{-moz-transform:rotate(0)}to{-moz-transform:rotate(360deg)}}@-o-keyframes rotation{from{-o-transform:rotate(0)}to{-o-transform:rotate(360deg)}}@keyframes rotation{from{transform:rotate(0)}to{transform:rotate(360deg)}}#status{display:inline-block;vertical-align:top;margin-top:30px;margin-left:20px;font-weight:700;color:#787878}#progress{height:20px;width:300px}#controls{display:inline-block;float:right;vertical-align:top;margin-top:30px;margin-right:20px}#output{width:100%;height:200px;margin:0 auto;margin-top:10px;border-left:0;border-right:0px;padding-left:0;padding-right:0;display:block;background-color:#000;color:#fff;font-family:'Lucida Console',Monaco,monospace;outline:0}</style></head><body><a href=http://emscripten.org><svg enable-background="new 0 0 900 400"height=78px id=Layer_1 inkscape:version="0.48.4 r9939"sodipodi:docname=emscripten_powered_by_logo.svg version=1.1 viewBox="420 120 100 170"width=296px x=0px xml:space=preserve y=0px><metadata id=metadata345><rdf:RDF><cc:Work rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type rdf:resource=http://purl.org/dc/dcmitype/StillImage /></cc:Work></rdf:RDF></metadata><defs id=defs343><linearGradient gradientUnits=userSpaceOnUse id=linearGradient5104 x1=225.1929 x2=225.1929 y1=152.499 y2=247.6265><stop id=stop5106 offset=0.3227531 style=stop-color:#C1D72F /><stop id=stop5108 offset=0.45119295 style=stop-color:#BCD631 /><stop id=stop5110 offset=0.64491969 style=stop-color:#AFD136 /><stop id=stop5112 offset=1 style=stop-color:#ABD037 /><a:midPointStop offset=0.0123 style=stop-color:#C1D72F /><a:midPointStop offset=0.3086 style=stop-color:#C1D72F /><a:midPointStop offset=1 style=stop-color:#ABD037 /></linearGradient><linearGradient gradientUnits=userSpaceOnUse id=linearGradient5120 x1=397.56918 x2=397.56918 y1=128.12726 y2=166.25996 gradientTransform=matrix(1.103059,0,0,1.103059,-38.997823,3.1312145) inkscape:collect=always xlink:href=#SVGID_2_ /><filter id=filter5126 inkscape:collect=always><feGaussianBlur id=feGaussianBlur5128 inkscape:collect=always stdDeviation=0.56377237 /></filter><linearGradient gradientUnits=userSpaceOnUse id=linearGradient5134 x1=397.56918 x2=397.56918 y1=128.12726 y2=166.25996 gradientTransform=matrix(1.103059,0,0,1.103059,-38.997823,3.1312145) inkscape:collect=always xlink:href=#SVGID_2_ /></defs><sodipodi:namedview bordercolor=#666666 borderopacity=1 gridtolerance=10 guidetolerance=10 id=namedview341 inkscape:current-layer=Layer_1 inkscape:cx=224.82424 inkscape:cy=-52.085109 inkscape:pageopacity=0 inkscape:pageshadow=2 inkscape:window-height=838 inkscape:window-maximized=1 inkscape:window-width=1440 inkscape:window-x=-8 inkscape:window-y=-8 inkscape:zoom=0.63555556 objecttolerance=10 pagecolor=#ffffff showgrid=false /><g id=g5130 transform=matrix(0.91591318,0,0,0.91591318,28.176953,14.143571)><path d="m 494.39333,173.6323 c 0.57407,0.28703 1.87073,1.00226 2.89426,1.02855 0.55732,0.0143 1.14006,-0.1672 1.60262,-0.4784 1.20466,-0.81046 2.23561,-2.03031 2.72683,-3.39661 0.19424,-0.54027 0.0238,-1.72222 0.0238,-1.
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright 2017 The Emscripten Authors
|
||
|
* SPDX-License-Identifier: MIT
|
||
|
*/function isDataURI(e){return e.startsWith(dataURIPrefix)}function isFileURI(e){return e.startsWith("file://")}var decodeBase64="function"==typeof atob?atob:function(e){var n,t,r,a,o,i,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",f=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{n=u.indexOf(e.charAt(f++))<<2|(a=u.indexOf(e.charAt(f++)))>>4,t=(15&a)<<4|(o=u.indexOf(e.charAt(f++)))>>2,r=(3&o)<<6|(i=u.indexOf(e.charAt(f++))),c+=String.fromCharCode(n),64!==o&&(c+=String.fromCharCode(t)),64!==i&&(c+=String.fromCharCode(r))}while(f<e.length);return c};function intArrayFromBase64(e){if("boolean"==typeof ENVIRONMENT_IS_NODE&&ENVIRONMENT_IS_NODE){var n=Buffer.from(e,"base64");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}try{for(var t=decodeBase64(e),r=new Uint8Array(t.length),a=0;a<t.length;++a)r[a]=t.charCodeAt(a);return r}catch(e){throw new Error("Converting base64 string to bytes failed.")}}function tryParseAsDataURI(e){if(isDataURI(e))return intArrayFromBase64(e.slice(dataURIPrefix.length))}
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright 2017 The Emscripten Authors
|
||
|
* SPDX-License-Identifier: MIT
|
||
|
*/function intArrayFromString(e,n,t){var r=t>0?t:lengthBytesUTF8(e)+1,a=new Array(r),o=stringToUTF8Array(e,a,0,a.length);return n&&(a.length=o),a}function intArrayToString(e){for(var n=[],t=0;t<e.length;t++){var r=e[t];r>255&&(r&=255),n.push(String.fromCharCode(r))}return n.join("")}var filename="pge.js";if((","+window.location.search.substr(1)+",").indexOf(",noProxy,")<0){
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright 2014 The Emscripten Authors
|
||
|
* SPDX-License-Identifier: MIT
|
||
|
*/
|
||
|
function assert(e){if(!e)throw"failed assert"}function WebGLClient(){var e={},n=null,t=null,r=0,a=!1,o=null;function i(e){n[e](t[r]),r++}function u(e){n[e](t[r],t[r+1]),r+=2}function c(e){n[e](t[r],t[r+1],t[r+2]),r+=3}function f(e){n[e](t[r],t[r+1],t[r+2],t[r+3]),r+=4}function s(e){n[e](t[r],t[r+1],t[r+2],t[r+3],t[r+4],t[r+5],t[r+6],t[r+7],t[r+8]),r+=9}function d(a){n[a](e[t[r]]),r++}function m(a){n[a](t[r],t[r+1]?e[t[r+1]]:null),r+=2}function l(a){n[a](e[t[r]],t[r+1],t[r+2]),r+=3}function g(a){var o=n[a](),i=t[r++];e[i]=o}function h(a){var o=t[r++],i=e[o];e[o]=null,n[a](i)}var p={0:{name:"NULL",func:function(e){n[e]()}},1:{name:"getExtension",func:i},2:{name:"enable",func:function(){n.enable(t[r++])}},3:{name:"disable",func:function(){n.disable(t[r++])}},4:{name:"clear",func:i},5:{name:"clearColor",func:f},6:{name:"createShader",func:function(a){var o=n[a](t[r++]),i=t[r++];e[i]=o}},7:{name:"deleteShader",func:h},8:{name:"shaderSource",func:function(a){n[a](e[t[r]],t[r+1]),r+=2}},9:{name:"compileShader",func:d},10:{name:"createProgram",func:g},11:{name:"deleteProgram",func:h},12:{name:"attachShader",func:function(a){n[a](e[t[r]],e[t[r+1]]),r+=2}},13:{name:"bindAttribLocation",func:l},14:{name:"linkProgram",func:d},15:{name:"getProgramParameter",func:function(){assert(n.getProgramParameter(e[t[r++]],t[r++]),"we cannot handle errors, we are async proxied WebGL")}},16:{name:"getUniformLocation",func:function(a){var o=n[a](e[t[r++]],t[r++]),i=t[r++];e[i]=o}},17:{name:"useProgram",func:d},18:{name:"uniform1i",func:function(){n.uniform1i(e[t[r]],t[r+1]),r+=2}},19:{name:"uniform1f",func:function(){n.uniform1f(e[t[r]],t[r+1]),r+=2}},20:{name:"uniform3fv",func:function(){n.uniform3fv(e[t[r]],t[r+1]),r+=2}},21:{name:"uniform4fv",func:function(){n.uniform4fv(e[t[r]],t[r+1]),r+=2}},22:{name:"uniformMatrix4fv",func:l},23:{name:"vertexAttrib4fv",func:u},24:{name:"createBuffer",func:g},25:{name:"deleteBuffer",func:h},26:{name:"bindBuffer",func:m},27:{name:"bufferData",func:c},28:{name:"bufferSubData",func:c},29:{name:"viewport",func:f},30:{name:"vertexAttribPointer",func:function(){n.vertexAttribPointer(t[r],t[r+1],t[r+2],t[r+3],t[r+4],t[r+5]),r+=6}},31:{name:"enableVertexAttribArray",func:function(){n.enableVertexAttribArray(t[r++])}},32:{name:"disableVertexAttribArray",func:function(){n.disableVertexAttribArray(t[r++])}},33:{name:"drawArrays",func:function(e){a&&null===o||n.drawArrays(t[r],t[r+1],t[r+2]),r+=3}},34:{name:"drawElements",func:function(e){a&&null===o||n.drawElements(t[r],t[r+1],t[r+2],t[r+3]),r+=4}},35:{name:"getError",func:function(){assert(n.getError()===n.NO_ERROR,"we cannot handle errors, we are async proxied WebGL")}},36:{name:"createTexture",func:g},37:{name:"deleteTexture",func:h},38:{name:"bindTexture",func:m},39:{name:"texParameteri",func:c},40:{name:"texImage2D",func:s},41:{name:"compressedTexImage2D",func:function(e){n[e](t[r],t[r+1],t[r+2],t[r+3],t[r+4],t[r+5],t[r+6]),r+=7}},42:{name:"activeTexture",func:function(){n.activeTexture(t[r++])}},43:{name:"getShaderParameter",func:function(){assert(n.getShaderParameter(e[t[r++]],t[r++]),"we cannot handle errors, we are async proxied WebGL")}},44:{name:"clearDepth",func:i},45:{name:"depthFunc",func:i},46:{name:"frontFace",func:i},47:{name:"cullFace",func:i},48:{name:"pixelStorei",func:u},49:{name:"depthMask",func:i},50:{name:"depthRange",func:u},51:{name:"blendFunc",func:u},52:{name:"scissor",func:f},53:{name:"colorMask",func:f},54:{name:"lineWidth",func:i},55:{name:"createFramebuffer",func:g},56:{name:"deleteFramebuffer",func:h},57:{name:"bindFramebuffer",func:function(){o=t[r+1]?e[t[r+1]]:null,n.bindFramebuffer(t[r],o),r+=2}},58:{name:"framebufferTexture2D",func:function(a){n[a](t[r],t[r+1],t[r+2],t[r+3]?e[t[r+3]]:null,t[r+4]),r+=5}},59:{name:"createRenderbuffer",func:g},60:{name:"deleteRenderbuffer",func:h},61:{name:"bindRenderbuffer",func:m},62:{name:"renderbufferStorage",func:f},63:{name:"framebufferRenderbuffer",func:function(a){n[a](t[r],t[r+1],t[r+2],t[r+3]?e[t[r+3]]:null),r+=4}},64:{name:"debugPrint",func:i},65:{name:"hint",func:u},66:{name:"blendEquation"
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright 2013 The Emscripten Authors
|
||
|
* SPDX-License-Identifier: MIT
|
||
|
*/
|
||
|
"undefined"==typeof Module&&(console.warn("no Module object defined - cannot proxy canvas rendering and input events, etc."),Module={canvas:{addEventListener:function(){},getBoundingClientRect:function(){return{bottom:0,height:0,left:0,right:0,top:0,width:0}}}}),Module.hasOwnProperty("print")||(Module.print=function(e){console.log(e)}),Module.hasOwnProperty("printErr")||(Module.printErr=function(e){console.error(e)});var renderFrameData=null;function renderFrame(){var e=Module.canvasData.data;if(e.set)e.set(renderFrameData);else for(var n=0;n<renderFrameData.length;n++)e[n]=renderFrameData[n];Module.ctx.putImageData(Module.canvasData,0,0),renderFrameData=null}window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||renderFrame;var SUPPORT_BASE64_EMBEDDING,IDBStore=
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright 2015 The Emscripten Authors
|
||
|
* SPDX-License-Identifier: MIT
|
||
|
*/
|
||
|
{indexedDB:function(){if("undefined"!=typeof indexedDB)return indexedDB;var e=null;return"object"==typeof window&&(e=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),assert(e,"IDBStore used, but indexedDB not supported"),e},DB_VERSION:22,DB_STORE_NAME:"FILE_DATA",dbs:{},blobs:[0],getDB:function(e,n){var t,r=IDBStore.dbs[e];if(r)return n(null,r);try{t=IDBStore.indexedDB().open(e,IDBStore.DB_VERSION)}catch(e){return n(e)}t.onupgradeneeded=e=>{var n=e.target.result,t=e.target.transaction;n.objectStoreNames.contains(IDBStore.DB_STORE_NAME)?t.objectStore(IDBStore.DB_STORE_NAME):n.createObjectStore(IDBStore.DB_STORE_NAME)},t.onsuccess=()=>{r=t.result,IDBStore.dbs[e]=r,n(null,r)},t.onerror=function(e){n(e.target.error||"unknown error"),e.preventDefault()}},getStore:function(e,n,t){IDBStore.getDB(e,(function(e,r){if(e)return t(e);var a=r.transaction([IDBStore.DB_STORE_NAME],n);a.onerror=e=>{t(e.target.error||"unknown error"),e.preventDefault()};var o=a.objectStore(IDBStore.DB_STORE_NAME);t(null,o)}))},getFile:function(e,n,t){IDBStore.getStore(e,"readonly",(function(e,r){if(e)return t(e);var a=r.get(n);a.onsuccess=e=>{var r=e.target.result;return r?t(null,r):t(`file ${n} not found`)},a.onerror=e=>{t(e)}}))},setFile:function(e,n,t,r){IDBStore.getStore(e,"readwrite",(function(e,a){if(e)return r(e);var o=a.put(t,n);o.onsuccess=e=>r(),o.onerror=e=>r(e)}))},deleteFile:function(e,n,t){IDBStore.getStore(e,"readwrite",(function(e,r){if(e)return t(e);var a=r.delete(n);a.onsuccess=e=>t(),a.onerror=e=>t(e)}))},existsFile:function(e,n,t){IDBStore.getStore(e,"readonly",(function(e,r){if(e)return t(e);var a=r.count(n);a.onsuccess=e=>t(null,e.target.result>0),a.onerror=e=>t(e)}))}},frameId=0;filename||(filename="pge.js");var workerURL=filename;if(SUPPORT_BASE64_EMBEDDING)(fileBytes=tryParseAsDataURI(filename))&&(workerURL=URL.createObjectURL(new Blob([fileBytes],{type:"application/javascript"})));var worker=new Worker(workerURL);WebGLClient.prefetch(),setTimeout((function(){worker.postMessage({target:"worker-init",width:Module.canvas.width,height:Module.canvas.height,boundingClientRect:cloneObject(Module.canvas.getBoundingClientRect()),URL:document.URL,currentScriptUrl:filename,preMain:!0})}),0);var workerResponded=!1;function postCustomMessage(e,n={}){worker.postMessage({target:"custom",userData:e,preMain:n.preMain})}function cloneObject(e){var n={};for(var t in e)if(t!=t.toUpperCase()){var r=e[t];"number"!=typeof r&&"string"!=typeof r||(n[t]=r)}return n}function shouldPreventDefault(e){return"keydown"!==e.type||8===e.keyCode||9===e.keyCode}worker.onmessage=function(e){workerResponded||(workerResponded=!0,Module.setStatus&&Module.setStatus(""),SUPPORT_BASE64_EMBEDDING&&workerURL!==filename&&URL.revokeObjectURL(workerURL));var n=e.data;switch(n.target){case"stdout":Module.print(n.content);break;case"stderr":Module.printErr(n.content);break;case"window":window[n.method]();break;case"canvas":switch(n.op){case"getContext":Module.ctx=Module.canvas.getContext(n.type,n.attributes),"2d"!==n.type&&(Module.glClient=new WebGLClient);break;case"resize":Module.canvas.width=n.width,Module.canvas.height=n.height,Module.ctx&&Module.ctx.getImageData&&(Module.canvasData=Module.ctx.getImageData(0,0,n.width,n.height)),worker.postMessage({target:"canvas",boundingClientRect:cloneObject(Module.canvas.getBoundingClientRect())});break;case"render":renderFrameData?renderFrameData=n.image.data:(renderFrameData=n.image.data,window.requestAnimationFrame(renderFrame));break;case"setObjectProperty":Module.canvas[n.object][n.property]=n.value;break;default:throw"eh?"}break;case"gl":Module.glClient.onmessage(n);break;case"tick":frameId=n.id,worker.postMessage({target:"tock",id:frameId});break;case"Image":assert("src"===n.method);var t=new Image;t.onload=()=>{assert(t.complete);var e=document.createElement("canvas");e.width=t.width,e.height=t.height;var r=e.getContext("2d");r.drawImage(t,0,0);var a=r.getImageData(0,0,t.width,t.height);worker.postMessage({target:"Image",method:"onload",id:n.id,width:t.width,height:t.height,data:a.data,preMain:
|