Browse Source
Needed to remove the Builds folder so that it didn't interfere with GitHub's language detection and so that it didn't take up unnecessary space because everything is added in releases anyways.master
Abheek Dhawan
4 years ago
49 changed files with 102 additions and 801 deletions
@ -0,0 +1,3 @@ |
|||||
|
source_md5="5e5efc77e6370bd9ea7e38a41b171872" |
||||
|
dest_md5="c382c35dd2b186a4c0e372bec2ee30b4" |
||||
|
|
Binary file not shown.
@ -0,0 +1,3 @@ |
|||||
|
source_md5="e327dee3a952918d593576c250ffc90b" |
||||
|
dest_md5="d88915bf00e401a2ac1d9d00b570ec18" |
||||
|
|
Binary file not shown.
@ -0,0 +1,3 @@ |
|||||
|
source_md5="554886b96a59aa14d66af675d21f50a0" |
||||
|
dest_md5="92f37edcc3b780a5be0eacf7aab7ee66" |
||||
|
|
Binary file not shown.
@ -0,0 +1,3 @@ |
|||||
|
source_md5="cc152c7648e5a4ab9b13600c3c843e96" |
||||
|
dest_md5="9bbf7961fb777f55196210f13c76f3d8" |
||||
|
|
Binary file not shown.
@ -0,0 +1,3 @@ |
|||||
|
source_md5="0b2f1525774a21da42476a2b23f31560" |
||||
|
dest_md5="951a2671f649c6c2f1c267e26b97338d" |
||||
|
|
Binary file not shown.
@ -0,0 +1,3 @@ |
|||||
|
source_md5="c818f8bb29b4b4f9c7fdaa48a303d49c" |
||||
|
dest_md5="4b3681bb710f1137d430324b5db94b5e" |
||||
|
|
Binary file not shown.
@ -0,0 +1,3 @@ |
|||||
|
source_md5="fadab09e34bd8eaf279de978a07d2f63" |
||||
|
dest_md5="e17877c4139554aedffebfc06c0c7976" |
||||
|
|
Binary file not shown.
@ -0,0 +1,3 @@ |
|||||
|
source_md5="4d79527c619ec6a3ba598e5139a65564" |
||||
|
dest_md5="7e2dd46f769726b90385b4f8f20a21e1" |
||||
|
|
Binary file not shown.
@ -0,0 +1,3 @@ |
|||||
|
source_md5="e70d46693d50385e08fd0475824a827a" |
||||
|
dest_md5="5f5fb72b82242d4996b9e3456f92fe68" |
||||
|
|
Binary file not shown.
@ -0,0 +1,3 @@ |
|||||
|
source_md5="9309a88ff4a671f9e8eefc272c8980a0" |
||||
|
dest_md5="b576607fd56b7128ef0f5dadc9a3afd2" |
||||
|
|
Binary file not shown.
@ -0,0 +1,3 @@ |
|||||
|
source_md5="6a3ea13554c2769fb4c90f70b843e59a" |
||||
|
dest_md5="e5d774236460867e1e22aeff8f5b74d2" |
||||
|
|
Binary file not shown.
@ -0,0 +1,3 @@ |
|||||
|
source_md5="330f0ddfc601f3779fc0f3cab0c7bf8d" |
||||
|
dest_md5="47f0bfd6ba5ba7145d293bcabd71e259" |
||||
|
|
Binary file not shown.
@ -0,0 +1,3 @@ |
|||||
|
source_md5="8ed3fb981c70c89813c769ddddf2727d" |
||||
|
dest_md5="3d7a942ec1c6ab6a5a5c06a7a24e00ff" |
||||
|
|
Binary file not shown.
@ -0,0 +1,3 @@ |
|||||
|
source_md5="9397bda50b3344e6f1ec94e32b578da8" |
||||
|
dest_md5="ebf961baa1f540a76ddaf2158510b648" |
||||
|
|
Binary file not shown.
@ -0,0 +1,3 @@ |
|||||
|
source_md5="70c7984cc32a040bfe473fa696e8b14c" |
||||
|
dest_md5="c6730c7479de0e8bcb29c99af56ee509" |
||||
|
|
Before Width: | Height: | Size: 904 KiB After Width: | Height: | Size: 904 KiB |
@ -0,0 +1,3 @@ |
|||||
|
source_md5="2455caa5d2ead6b686a3fec6e96ef413" |
||||
|
dest_md5="541bc05b7e2edec0658f8c79fad564b7" |
||||
|
|
Binary file not shown.
@ -0,0 +1,3 @@ |
|||||
|
source_md5="fa2d6fbc2e4b1d1e113781b6bc54692b" |
||||
|
dest_md5="c6730c7479de0e8bcb29c99af56ee509" |
||||
|
|
Before Width: | Height: | Size: 904 KiB After Width: | Height: | Size: 904 KiB |
@ -0,0 +1,3 @@ |
|||||
|
source_md5="70c7984cc32a040bfe473fa696e8b14c" |
||||
|
dest_md5="c6730c7479de0e8bcb29c99af56ee509" |
||||
|
|
Binary file not shown.
@ -0,0 +1,3 @@ |
|||||
|
source_md5="99b194e48c345e2d9e6dfc2761560d7e" |
||||
|
dest_md5="04c09763d1e2009ae4edd6cd7f2443d3" |
||||
|
|
Binary file not shown.
@ -0,0 +1,3 @@ |
|||||
|
source_md5="7d0bde7b9f46f410a92e47ac7d6cb264" |
||||
|
dest_md5="ce2284f7948ed75cef055d9a961a871f" |
||||
|
|
Binary file not shown.
@ -1,34 +0,0 @@ |
|||||
[remap] |
|
||||
|
|
||||
importer="texture" |
|
||||
type="StreamTexture" |
|
||||
path="res://.import/favicon.png-c73e43bb0e7c969076402f1072de5925.stex" |
|
||||
metadata={ |
|
||||
"vram_texture": false |
|
||||
} |
|
||||
|
|
||||
[deps] |
|
||||
|
|
||||
source_file="res://Builds/HTML/favicon.png" |
|
||||
dest_files=[ "res://.import/favicon.png-c73e43bb0e7c969076402f1072de5925.stex" ] |
|
||||
|
|
||||
[params] |
|
||||
|
|
||||
compress/mode=0 |
|
||||
compress/lossy_quality=0.7 |
|
||||
compress/hdr_mode=0 |
|
||||
compress/bptc_ldr=0 |
|
||||
compress/normal_map=0 |
|
||||
flags/repeat=0 |
|
||||
flags/filter=true |
|
||||
flags/mipmaps=false |
|
||||
flags/anisotropic=false |
|
||||
flags/srgb=2 |
|
||||
process/fix_alpha_border=true |
|
||||
process/premult_alpha=false |
|
||||
process/HDR_as_SRGB=false |
|
||||
process/invert_color=false |
|
||||
stream=false |
|
||||
size_limit=0 |
|
||||
detect_3d=true |
|
||||
svg/scale=1.0 |
|
@ -1,268 +0,0 @@ |
|||||
<!DOCTYPE html> |
|
||||
<html xmlns='http://www.w3.org/1999/xhtml' lang='' xml:lang=''> |
|
||||
<head> |
|
||||
<meta charset='utf-8' /> |
|
||||
<meta name='viewport' content='width=device-width, user-scalable=no' /> |
|
||||
<link id='-gd-engine-icon' rel='icon' type='image/png' href='favicon.png' /> |
|
||||
<title>SpacEscape</title> |
|
||||
<style type='text/css'> |
|
||||
|
|
||||
body { |
|
||||
touch-action: none; |
|
||||
margin: 0; |
|
||||
border: 0 none; |
|
||||
padding: 0; |
|
||||
text-align: center; |
|
||||
background-color: black; |
|
||||
} |
|
||||
|
|
||||
#canvas { |
|
||||
display: block; |
|
||||
margin: 0; |
|
||||
color: white; |
|
||||
} |
|
||||
|
|
||||
#canvas:focus { |
|
||||
outline: none; |
|
||||
} |
|
||||
|
|
||||
.godot { |
|
||||
font-family: 'Noto Sans', 'Droid Sans', Arial, sans-serif; |
|
||||
color: #e0e0e0; |
|
||||
background-color: #3b3943; |
|
||||
background-image: linear-gradient(to bottom, #403e48, #35333c); |
|
||||
border: 1px solid #45434e; |
|
||||
box-shadow: 0 0 1px 1px #2f2d35; |
|
||||
} |
|
||||
|
|
||||
|
|
||||
/* Status display |
|
||||
* ============== */ |
|
||||
|
|
||||
#status { |
|
||||
position: absolute; |
|
||||
left: 0; |
|
||||
top: 0; |
|
||||
right: 0; |
|
||||
bottom: 0; |
|
||||
display: flex; |
|
||||
justify-content: center; |
|
||||
align-items: center; |
|
||||
/* don't consume click events - make children visible explicitly */ |
|
||||
visibility: hidden; |
|
||||
} |
|
||||
|
|
||||
#status-progress { |
|
||||
width: 366px; |
|
||||
height: 7px; |
|
||||
background-color: #38363A; |
|
||||
border: 1px solid #444246; |
|
||||
padding: 1px; |
|
||||
box-shadow: 0 0 2px 1px #1B1C22; |
|
||||
border-radius: 2px; |
|
||||
visibility: visible; |
|
||||
} |
|
||||
|
|
||||
@media only screen and (orientation:portrait) { |
|
||||
#status-progress { |
|
||||
width: 61.8%; |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
#status-progress-inner { |
|
||||
height: 100%; |
|
||||
width: 0; |
|
||||
box-sizing: border-box; |
|
||||
transition: width 0.5s linear; |
|
||||
background-color: #202020; |
|
||||
border: 1px solid #222223; |
|
||||
box-shadow: 0 0 1px 1px #27282E; |
|
||||
border-radius: 3px; |
|
||||
} |
|
||||
|
|
||||
#status-indeterminate { |
|
||||
visibility: visible; |
|
||||
position: relative; |
|
||||
} |
|
||||
|
|
||||
#status-indeterminate > div { |
|
||||
width: 4.5px; |
|
||||
height: 0; |
|
||||
border-style: solid; |
|
||||
border-width: 9px 3px 0 3px; |
|
||||
border-color: #2b2b2b transparent transparent transparent; |
|
||||
transform-origin: center 21px; |
|
||||
position: absolute; |
|
||||
} |
|
||||
|
|
||||
#status-indeterminate > div:nth-child(1) { transform: rotate( 22.5deg); } |
|
||||
#status-indeterminate > div:nth-child(2) { transform: rotate( 67.5deg); } |
|
||||
#status-indeterminate > div:nth-child(3) { transform: rotate(112.5deg); } |
|
||||
#status-indeterminate > div:nth-child(4) { transform: rotate(157.5deg); } |
|
||||
#status-indeterminate > div:nth-child(5) { transform: rotate(202.5deg); } |
|
||||
#status-indeterminate > div:nth-child(6) { transform: rotate(247.5deg); } |
|
||||
#status-indeterminate > div:nth-child(7) { transform: rotate(292.5deg); } |
|
||||
#status-indeterminate > div:nth-child(8) { transform: rotate(337.5deg); } |
|
||||
|
|
||||
#status-notice { |
|
||||
margin: 0 100px; |
|
||||
line-height: 1.3; |
|
||||
visibility: visible; |
|
||||
padding: 4px 6px; |
|
||||
visibility: visible; |
|
||||
} |
|
||||
</style> |
|
||||
|
|
||||
</head> |
|
||||
<body> |
|
||||
<canvas id='canvas'> |
|
||||
HTML5 canvas appears to be unsupported in the current browser.<br /> |
|
||||
Please try updating or use a different browser. |
|
||||
</canvas> |
|
||||
<div id='status'> |
|
||||
<div id='status-progress' style='display: none;' oncontextmenu='event.preventDefault();'><div id ='status-progress-inner'></div></div> |
|
||||
<div id='status-indeterminate' style='display: none;' oncontextmenu='event.preventDefault();'> |
|
||||
<div></div> |
|
||||
<div></div> |
|
||||
<div></div> |
|
||||
<div></div> |
|
||||
<div></div> |
|
||||
<div></div> |
|
||||
<div></div> |
|
||||
<div></div> |
|
||||
</div> |
|
||||
<div id='status-notice' class='godot' style='display: none;'></div> |
|
||||
</div> |
|
||||
|
|
||||
<script type='text/javascript' src='index.js'></script> |
|
||||
<script type='text/javascript'>//<![CDATA[ |
|
||||
|
|
||||
var engine = new Engine; |
|
||||
var setStatusMode; |
|
||||
var setStatusNotice; |
|
||||
|
|
||||
(function() { |
|
||||
|
|
||||
const EXECUTABLE_NAME = 'index'; |
|
||||
const MAIN_PACK = 'index.pck'; |
|
||||
const INDETERMINATE_STATUS_STEP_MS = 100; |
|
||||
|
|
||||
var canvas = document.getElementById('canvas'); |
|
||||
var statusProgress = document.getElementById('status-progress'); |
|
||||
var statusProgressInner = document.getElementById('status-progress-inner'); |
|
||||
var statusIndeterminate = document.getElementById('status-indeterminate'); |
|
||||
var statusNotice = document.getElementById('status-notice'); |
|
||||
|
|
||||
var initializing = true; |
|
||||
var statusMode = 'hidden'; |
|
||||
|
|
||||
var animationCallbacks = []; |
|
||||
function animate(time) { |
|
||||
animationCallbacks.forEach(callback => callback(time)); |
|
||||
requestAnimationFrame(animate); |
|
||||
} |
|
||||
requestAnimationFrame(animate); |
|
||||
|
|
||||
function adjustCanvasDimensions() { |
|
||||
var scale = window.devicePixelRatio || 1; |
|
||||
var width = window.innerWidth; |
|
||||
var height = window.innerHeight; |
|
||||
canvas.width = width * scale; |
|
||||
canvas.height = height * scale; |
|
||||
canvas.style.width = width + "px"; |
|
||||
canvas.style.height = height + "px"; |
|
||||
} |
|
||||
animationCallbacks.push(adjustCanvasDimensions); |
|
||||
adjustCanvasDimensions(); |
|
||||
|
|
||||
setStatusMode = function setStatusMode(mode) { |
|
||||
|
|
||||
if (statusMode === mode || !initializing) |
|
||||
return; |
|
||||
[statusProgress, statusIndeterminate, statusNotice].forEach(elem => { |
|
||||
elem.style.display = 'none'; |
|
||||
}); |
|
||||
animationCallbacks = animationCallbacks.filter(function(value) { |
|
||||
return (value != animateStatusIndeterminate); |
|
||||
}); |
|
||||
switch (mode) { |
|
||||
case 'progress': |
|
||||
statusProgress.style.display = 'block'; |
|
||||
break; |
|
||||
case 'indeterminate': |
|
||||
statusIndeterminate.style.display = 'block'; |
|
||||
animationCallbacks.push(animateStatusIndeterminate); |
|
||||
break; |
|
||||
case 'notice': |
|
||||
statusNotice.style.display = 'block'; |
|
||||
break; |
|
||||
case 'hidden': |
|
||||
break; |
|
||||
default: |
|
||||
throw new Error('Invalid status mode'); |
|
||||
} |
|
||||
statusMode = mode; |
|
||||
} |
|
||||
|
|
||||
function animateStatusIndeterminate(ms) { |
|
||||
|
|
||||
var i = Math.floor(ms / INDETERMINATE_STATUS_STEP_MS % 8); |
|
||||
if (statusIndeterminate.children[i].style.borderTopColor == '') { |
|
||||
Array.prototype.slice.call(statusIndeterminate.children).forEach(child => { |
|
||||
child.style.borderTopColor = ''; |
|
||||
}); |
|
||||
statusIndeterminate.children[i].style.borderTopColor = '#dfdfdf'; |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
setStatusNotice = function setStatusNotice(text) { |
|
||||
|
|
||||
while (statusNotice.lastChild) { |
|
||||
statusNotice.removeChild(statusNotice.lastChild); |
|
||||
} |
|
||||
var lines = text.split('\n'); |
|
||||
lines.forEach((line) => { |
|
||||
statusNotice.appendChild(document.createTextNode(line)); |
|
||||
statusNotice.appendChild(document.createElement('br')); |
|
||||
}); |
|
||||
}; |
|
||||
|
|
||||
engine.setProgressFunc((current, total) => { |
|
||||
|
|
||||
if (total > 0) { |
|
||||
statusProgressInner.style.width = current/total * 100 + '%'; |
|
||||
setStatusMode('progress'); |
|
||||
if (current === total) { |
|
||||
// wait for progress bar animation |
|
||||
setTimeout(() => { |
|
||||
setStatusMode('indeterminate'); |
|
||||
}, 500); |
|
||||
} |
|
||||
} else { |
|
||||
setStatusMode('indeterminate'); |
|
||||
} |
|
||||
}); |
|
||||
|
|
||||
function displayFailureNotice(err) { |
|
||||
var msg = err.message || err; |
|
||||
console.error(msg); |
|
||||
setStatusNotice(msg); |
|
||||
setStatusMode('notice'); |
|
||||
initializing = false; |
|
||||
}; |
|
||||
|
|
||||
if (!Engine.isWebGLAvailable()) { |
|
||||
displayFailureNotice('WebGL not available'); |
|
||||
} else { |
|
||||
setStatusMode('indeterminate'); |
|
||||
engine.setCanvas(canvas); |
|
||||
engine.startGame(EXECUTABLE_NAME, MAIN_PACK).then(() => { |
|
||||
setStatusMode('hidden'); |
|
||||
initializing = false; |
|
||||
}, displayFailureNotice); |
|
||||
} |
|
||||
})(); |
|
||||
//]]></script> |
|
||||
</body> |
|
||||
</html> |
|
||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -1,34 +0,0 @@ |
|||||
[remap] |
|
||||
|
|
||||
importer="texture" |
|
||||
type="StreamTexture" |
|
||||
path="res://.import/index.png-55c5256c37651f623f8ade54413c7b1c.stex" |
|
||||
metadata={ |
|
||||
"vram_texture": false |
|
||||
} |
|
||||
|
|
||||
[deps] |
|
||||
|
|
||||
source_file="res://Builds/HTML/index.png" |
|
||||
dest_files=[ "res://.import/index.png-55c5256c37651f623f8ade54413c7b1c.stex" ] |
|
||||
|
|
||||
[params] |
|
||||
|
|
||||
compress/mode=0 |
|
||||
compress/lossy_quality=0.7 |
|
||||
compress/hdr_mode=0 |
|
||||
compress/bptc_ldr=0 |
|
||||
compress/normal_map=0 |
|
||||
flags/repeat=0 |
|
||||
flags/filter=true |
|
||||
flags/mipmaps=false |
|
||||
flags/anisotropic=false |
|
||||
flags/srgb=2 |
|
||||
process/fix_alpha_border=true |
|
||||
process/premult_alpha=false |
|
||||
process/HDR_as_SRGB=false |
|
||||
process/invert_color=false |
|
||||
stream=false |
|
||||
size_limit=0 |
|
||||
detect_3d=true |
|
||||
svg/scale=1.0 |
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue