Spaces:
Running
Running
Commit
·
e0293f8
1
Parent(s):
56c3d77
initial commit
Browse files- .gitattributes +1 -0
- Build/Build.data +3 -0
- Build/Build.framework.js +3 -0
- Build/Build.loader.js +3 -0
- Build/Build.wasm +3 -0
- TemplateData/favicon.ico +0 -0
- TemplateData/fullscreen-button.png +0 -0
- TemplateData/style.css +105 -0
- index.html +177 -18
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* 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
|
|
|
|
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/* filter=lfs diff=lfs merge=lfs -text
|
Build/Build.data
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fa133585616dc60678abbe25521a640912c66de083de21fd83105b547a4b71ba
|
3 |
+
size 15190618
|
Build/Build.framework.js
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1eb6396b4fb255621843ce77774c7d7bbb9c03f7f993f02e70d04a26ced125b1
|
3 |
+
size 422344
|
Build/Build.loader.js
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:80127c16a9052a5f0a630450368ed3396832591a7e95fcbc39d22f7fbd931bf1
|
3 |
+
size 26416
|
Build/Build.wasm
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7d3bb6a3f366f94d2877d8a99cbdfbd6e889c7f90d2529e898c7d15c5ce1a94a
|
3 |
+
size 33434485
|
TemplateData/favicon.ico
ADDED
|
TemplateData/fullscreen-button.png
ADDED
![]() |
TemplateData/style.css
ADDED
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
html {
|
2 |
+
box-sizing: border-box;
|
3 |
+
}
|
4 |
+
*, *:before, *:after {
|
5 |
+
box-sizing: inherit;
|
6 |
+
}
|
7 |
+
html, body {
|
8 |
+
height: 100%;
|
9 |
+
}
|
10 |
+
canvas {
|
11 |
+
display: block;
|
12 |
+
}
|
13 |
+
body {
|
14 |
+
margin: 0;
|
15 |
+
}
|
16 |
+
#unity-container {
|
17 |
+
width: 100%;
|
18 |
+
height: 100%;
|
19 |
+
}
|
20 |
+
#unity-canvas {
|
21 |
+
width: 100%;
|
22 |
+
height: 100%;
|
23 |
+
background: #231F20;
|
24 |
+
}
|
25 |
+
#loading-cover {
|
26 |
+
position: absolute;
|
27 |
+
top: 0;
|
28 |
+
left: 0;
|
29 |
+
width: 100%;
|
30 |
+
height: 100%;
|
31 |
+
display: flex;
|
32 |
+
justify-content: center;
|
33 |
+
align-items: center;
|
34 |
+
}
|
35 |
+
#unity-loading-bar {
|
36 |
+
flex: 1 1 auto;
|
37 |
+
display: flex;
|
38 |
+
flex-direction: column;
|
39 |
+
justify-content: center;
|
40 |
+
align-items: center;
|
41 |
+
}
|
42 |
+
#unity-logo {
|
43 |
+
text-align: center;
|
44 |
+
}
|
45 |
+
#unity-logo img {
|
46 |
+
max-width: 80%;
|
47 |
+
}
|
48 |
+
#unity-progress-bar-empty {
|
49 |
+
width: 80%;
|
50 |
+
height: 24px;
|
51 |
+
margin: 10px 20px 20px 10px;
|
52 |
+
text-align: left;
|
53 |
+
border: 1px solid white;
|
54 |
+
padding: 2px;
|
55 |
+
}
|
56 |
+
#unity-progress-bar-full {
|
57 |
+
width: 0%;
|
58 |
+
height: 100%;
|
59 |
+
background: white;
|
60 |
+
}
|
61 |
+
.light #unity-progress-bar-empty {
|
62 |
+
border-color: black;
|
63 |
+
}
|
64 |
+
.light #unity-progress-bar-full {
|
65 |
+
background: black;
|
66 |
+
}
|
67 |
+
|
68 |
+
#unity-fullscreen-button {
|
69 |
+
position: absolute;
|
70 |
+
right: 10px;
|
71 |
+
bottom: 10px;
|
72 |
+
width: 38px;
|
73 |
+
height: 38px;
|
74 |
+
background: url('fullscreen-button.png') no-repeat center;
|
75 |
+
background-size: contain;
|
76 |
+
}
|
77 |
+
|
78 |
+
.spinner,
|
79 |
+
.spinner:after {
|
80 |
+
border-radius: 50%;
|
81 |
+
width: 5em;
|
82 |
+
height: 5em;
|
83 |
+
}
|
84 |
+
.spinner {
|
85 |
+
margin: 10px;
|
86 |
+
font-size: 10px;
|
87 |
+
position: relative;
|
88 |
+
text-indent: -9999em;
|
89 |
+
border-top: 1.1em solid rgba(255, 255, 255, 0.2);
|
90 |
+
border-right: 1.1em solid rgba(255, 255, 255, 0.2);
|
91 |
+
border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
|
92 |
+
border-left: 1.1em solid #ffffff;
|
93 |
+
transform: translateZ(0);
|
94 |
+
animation: spinner-spin 1.1s infinite linear;
|
95 |
+
}
|
96 |
+
@keyframes spinner-spin {
|
97 |
+
0% {
|
98 |
+
transform: rotate(0deg);
|
99 |
+
}
|
100 |
+
100% {
|
101 |
+
transform: rotate(360deg);
|
102 |
+
}
|
103 |
+
}
|
104 |
+
|
105 |
+
|
index.html
CHANGED
@@ -1,19 +1,178 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
</html>
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en-us">
|
3 |
+
<head>
|
4 |
+
<meta charset="utf-8" />
|
5 |
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
|
7 |
+
<title>Vibe Coding in the Dark</title>
|
8 |
+
<link rel="shortcut icon" href="TemplateData/favicon.ico" />
|
9 |
+
<link rel="stylesheet" href="TemplateData/style.css" />
|
10 |
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
11 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
12 |
+
<link
|
13 |
+
href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap"
|
14 |
+
rel="stylesheet"
|
15 |
+
/>
|
16 |
+
<style>
|
17 |
+
body,
|
18 |
+
#unity-canvas,
|
19 |
+
#loading-cover {
|
20 |
+
background-color: #000000;
|
21 |
+
}
|
22 |
+
#unity-loading-bar,
|
23 |
+
#unity-logo,
|
24 |
+
#unity-progress-bar-empty,
|
25 |
+
.spinner {
|
26 |
+
display: none !important;
|
27 |
+
}
|
28 |
+
#loading-text {
|
29 |
+
color: white;
|
30 |
+
font-family: "Bebas Neue", Arial, sans-serif;
|
31 |
+
font-size: 64px;
|
32 |
+
position: absolute;
|
33 |
+
top: 50%;
|
34 |
+
left: 50%;
|
35 |
+
transform: translate(-50%, -50%);
|
36 |
+
text-align: center;
|
37 |
+
max-width: 80%;
|
38 |
+
line-height: 1.5;
|
39 |
+
margin-bottom: 10px;
|
40 |
+
}
|
41 |
+
#loading-subtext {
|
42 |
+
font-family: "Bebas Neue", Arial, sans-serif;
|
43 |
+
font-size: 32px;
|
44 |
+
position: absolute;
|
45 |
+
top: 50%;
|
46 |
+
left: 50%;
|
47 |
+
transform: translate(-50%, 40px);
|
48 |
+
text-align: center;
|
49 |
+
max-width: 80%;
|
50 |
+
line-height: 1.5;
|
51 |
+
color: white;
|
52 |
+
}
|
53 |
+
#loading-cover {
|
54 |
+
transition: opacity 1.5s ease-in-out;
|
55 |
+
}
|
56 |
+
.fade-out {
|
57 |
+
opacity: 0;
|
58 |
+
}
|
59 |
+
</style>
|
60 |
+
</head>
|
61 |
+
<body class="dark">
|
62 |
+
<div id="unity-container" class="unity-desktop">
|
63 |
+
<canvas id="unity-canvas"></canvas>
|
64 |
+
</div>
|
65 |
+
<div id="loading-cover" style="display: none; background-color: #000000">
|
66 |
+
<div id="loading-text">Vibe Coding in the Dark</div>
|
67 |
+
<div id="loading-subtext">by Dylan Ebert (IndividualKex)</div>
|
68 |
+
</div>
|
69 |
+
<div id="unity-fullscreen-button" style="display: none"></div>
|
70 |
+
<a
|
71 |
+
target="_blank"
|
72 |
+
href="https://jam.pieter.com"
|
73 |
+
style="
|
74 |
+
font-family: 'system-ui', sans-serif;
|
75 |
+
position: fixed;
|
76 |
+
bottom: -1px;
|
77 |
+
right: -1px;
|
78 |
+
padding: 7px;
|
79 |
+
font-size: 14px;
|
80 |
+
font-weight: bold;
|
81 |
+
background: #fff;
|
82 |
+
color: #000;
|
83 |
+
text-decoration: none;
|
84 |
+
z-index: 10;
|
85 |
+
border-top-left-radius: 12px;
|
86 |
+
z-index: 10000;
|
87 |
+
border: 1px solid #fff;
|
88 |
+
"
|
89 |
+
>🕹️ Vibe Jam 2025</a
|
90 |
+
>
|
91 |
+
<script>
|
92 |
+
const hideFullScreenButton = "1";
|
93 |
+
const buildUrl = "Build";
|
94 |
+
const loaderUrl = buildUrl + "/Build.loader.js";
|
95 |
+
const config = {
|
96 |
+
dataUrl: buildUrl + "/Build.data",
|
97 |
+
frameworkUrl: buildUrl + "/Build.framework.js",
|
98 |
+
codeUrl: buildUrl + "/Build.wasm",
|
99 |
+
streamingAssetsUrl: "StreamingAssets",
|
100 |
+
companyName: "IndividualKex",
|
101 |
+
productName: "Vibe Coding in the Dark",
|
102 |
+
productVersion: "0.1.0",
|
103 |
+
};
|
104 |
+
|
105 |
+
const container = document.querySelector("#unity-container");
|
106 |
+
const canvas = document.querySelector("#unity-canvas");
|
107 |
+
const loadingCover = document.querySelector("#loading-cover");
|
108 |
+
const fullscreenButton = document.querySelector("#unity-fullscreen-button");
|
109 |
+
|
110 |
+
const canFullscreen = (function() {
|
111 |
+
for (const key of [
|
112 |
+
'exitFullscreen',
|
113 |
+
'webkitExitFullscreen',
|
114 |
+
'webkitCancelFullScreen',
|
115 |
+
'mozCancelFullScreen',
|
116 |
+
'msExitFullscreen',
|
117 |
+
]) {
|
118 |
+
if (key in document) {
|
119 |
+
return true;
|
120 |
+
}
|
121 |
+
}
|
122 |
+
return false;
|
123 |
+
}());
|
124 |
+
|
125 |
+
if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) {
|
126 |
+
container.className = "unity-mobile";
|
127 |
+
config.devicePixelRatio = 1;
|
128 |
+
}
|
129 |
+
loadingCover.style.display = "";
|
130 |
+
|
131 |
+
// Set minimum display time (3 seconds)
|
132 |
+
const minDisplayTime = 3000; // milliseconds
|
133 |
+
let loadingStartTime = Date.now();
|
134 |
+
let loadingFinished = false;
|
135 |
+
let minTimeElapsed = false;
|
136 |
+
|
137 |
+
// Function to check if we can hide the loading screen
|
138 |
+
function tryHideLoadingScreen() {
|
139 |
+
if (loadingFinished && minTimeElapsed) {
|
140 |
+
loadingCover.classList.add('fade-out');
|
141 |
+
setTimeout(() => {
|
142 |
+
loadingCover.style.display = "none";
|
143 |
+
loadingCover.classList.remove('fade-out');
|
144 |
+
}, 1500); // Match the CSS transition time
|
145 |
+
}
|
146 |
+
}
|
147 |
+
|
148 |
+
// Start the minimum display time timer
|
149 |
+
setTimeout(() => {
|
150 |
+
minTimeElapsed = true;
|
151 |
+
tryHideLoadingScreen();
|
152 |
+
}, minDisplayTime);
|
153 |
+
|
154 |
+
const script = document.createElement("script");
|
155 |
+
script.src = loaderUrl;
|
156 |
+
script.onload = () => {
|
157 |
+
createUnityInstance(canvas, config, (progress) => {
|
158 |
+
// No progress visualization needed
|
159 |
+
}).then((unityInstance) => {
|
160 |
+
loadingFinished = true;
|
161 |
+
tryHideLoadingScreen();
|
162 |
+
|
163 |
+
if (canFullscreen) {
|
164 |
+
if (!hideFullScreenButton) {
|
165 |
+
fullscreenButton.style.display = "";
|
166 |
+
}
|
167 |
+
fullscreenButton.onclick = () => {
|
168 |
+
unityInstance.SetFullscreen(1);
|
169 |
+
};
|
170 |
+
}
|
171 |
+
}).catch((message) => {
|
172 |
+
alert(message);
|
173 |
+
});
|
174 |
+
};
|
175 |
+
document.body.appendChild(script);
|
176 |
+
</script>
|
177 |
+
</body>
|
178 |
</html>
|