initial commit2
Browse files- .gitattributes +2 -0
- Build/UnityLoader.js +0 -0
- Build/webgl3.data.unityweb +3 -0
- Build/webgl3.json +16 -0
- Build/webgl3.wasm.code.unityweb +3 -0
- Build/webgl3.wasm.framework.unityweb +3 -0
- TemplateData/Line_Small_Cube.png +0 -0
- TemplateData/UnityProgress.js +33 -0
- TemplateData/XP_Bar.png +0 -0
- TemplateData/XP_Bar_Fill.png +0 -0
- TemplateData/favicon.ico +0 -0
- TemplateData/style.css +12 -0
- index.html +72 -17
- manifest.json +4 -0
.gitattributes
CHANGED
@@ -33,3 +33,5 @@ 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 |
+
*.unityweb filter=lfs diff=lfs merge=lfs -text
|
37 |
+
Build/webgl3.data.unityweb filter=lfs diff=lfs merge=lfs -text
|
Build/UnityLoader.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
Build/webgl3.data.unityweb
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:96384e358614fbd0403765e07da07e38194f56313160bbc1e4f9fac1c01386c4
|
3 |
+
size 41293287
|
Build/webgl3.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"companyName": "Lycoris",
|
3 |
+
"productName": "モクモクラン",
|
4 |
+
"productVersion": "0.01",
|
5 |
+
"dataUrl": "webgl3.data.unityweb",
|
6 |
+
"wasmCodeUrl": "webgl3.wasm.code.unityweb",
|
7 |
+
"wasmFrameworkUrl": "webgl3.wasm.framework.unityweb",
|
8 |
+
"graphicsAPI": ["WebGL 2.0","WebGL 1.0"],
|
9 |
+
"webglContextAttributes": {"preserveDrawingBuffer": false},
|
10 |
+
"splashScreenStyle": "Light",
|
11 |
+
"backgroundColor": "#808080",
|
12 |
+
"cacheControl": {"default": "must-revalidate"},
|
13 |
+
"developmentBuild": false,
|
14 |
+
"multithreading": false,
|
15 |
+
"unityVersion": "2019.3.0a5"
|
16 |
+
}
|
Build/webgl3.wasm.code.unityweb
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2b6bf787f03fa07f16cf53e035b8bed581515e3f73365134cfa33c8a61589372
|
3 |
+
size 4869630
|
Build/webgl3.wasm.framework.unityweb
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e3bff89949f45c0d30ca20b5fb7e37e5bb5d2d0163204d22cc712d7f068d0d31
|
3 |
+
size 76579
|
TemplateData/Line_Small_Cube.png
ADDED
TemplateData/UnityProgress.js
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function UnityProgress(unityInstance, progress) {
|
2 |
+
if (!unityInstance.Module)
|
3 |
+
return;
|
4 |
+
if (!unityInstance.progress) {
|
5 |
+
unityInstance.progress = document.createElement("div");
|
6 |
+
unityInstance.progress.className = "progress " + unityInstance.Module.splashScreenStyle;
|
7 |
+
unityInstance.progress.empty = document.createElement("div");
|
8 |
+
unityInstance.progress.empty.className = "empty";
|
9 |
+
unityInstance.progress.appendChild(unityInstance.progress.empty);
|
10 |
+
unityInstance.progress.full = document.createElement("div");
|
11 |
+
unityInstance.progress.full.className = "full";
|
12 |
+
unityInstance.progress.appendChild(unityInstance.progress.full);
|
13 |
+
unityInstance.container.appendChild(unityInstance.progress);
|
14 |
+
}
|
15 |
+
|
16 |
+
if (!unityInstance.logo) {
|
17 |
+
unityInstance.logo = document.createElement("div");
|
18 |
+
unityInstance.logo.className = "logo";
|
19 |
+
unityInstance.container.appendChild(unityInstance.logo);
|
20 |
+
}
|
21 |
+
|
22 |
+
if (!unityInstance.mokumokuran) {
|
23 |
+
unityInstance.mokumokuran = document.createElement("div");
|
24 |
+
unityInstance.mokumokuran.className = "mokumokuran";
|
25 |
+
unityInstance.mokumokuran.textContent = "ローディング...";
|
26 |
+
unityInstance.container.appendChild(unityInstance.mokumokuran);
|
27 |
+
}
|
28 |
+
|
29 |
+
unityInstance.progress.full.style.width = (100 * progress) + "%";
|
30 |
+
unityInstance.progress.empty.style.width = (100 * (1 - progress)) + "%";
|
31 |
+
if (progress == 1)
|
32 |
+
unityInstance.logo.style.display = unityInstance.progress.style.display = unityInstance.mokumokuran.style.display = "none";
|
33 |
+
}
|
TemplateData/XP_Bar.png
ADDED
TemplateData/XP_Bar_Fill.png
ADDED
TemplateData/favicon.ico
ADDED
TemplateData/style.css
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.webgl-content * {border: 0; margin: 0; padding: 0}
|
2 |
+
.webgl-content {position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);}
|
3 |
+
|
4 |
+
.webgl-content .mokumokuran, .logo, .progress {position: absolute; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);}
|
5 |
+
.webgl-content .mokumokuran {color:#BC9646; font-size:28px;}
|
6 |
+
.webgl-content .logo {background: url('Line_Small_Cube.png') no-repeat center / contain; width: 191px; height: 16px;margin-top: 30px}
|
7 |
+
.webgl-content .progress {height: 18px; width: 191px; margin-top: 60px;}
|
8 |
+
.webgl-content .progress .empty {background: url('XP_Bar.png') no-repeat right / cover; float: right; width: 100%; height: 100%; display: inline-block;}
|
9 |
+
.webgl-content .progress .full {background: url('XP_Bar_Fill.png') no-repeat left / cover; float: left; width: 0%; height: 100%; display: inline-block;}
|
10 |
+
|
11 |
+
.webgl-content .progress.Dark .empty {background-image: url('XP_Bar.png');}
|
12 |
+
.webgl-content .progress.Dark .full {background-image: url('XP_Bar_Fill.png');}
|
index.html
CHANGED
@@ -1,19 +1,74 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
</div>
|
18 |
-
</
|
|
|
19 |
</html>
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en-us">
|
3 |
+
<head>
|
4 |
+
<!-- Global site tag (gtag.js) - Google Analytics -->
|
5 |
+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-144783797-1"></script>
|
6 |
+
<script>
|
7 |
+
window.dataLayer = window.dataLayer || [];
|
8 |
+
function gtag(){dataLayer.push(arguments);}
|
9 |
+
gtag('js', new Date());
|
10 |
+
|
11 |
+
gtag('config', 'UA-144783797-1');
|
12 |
+
</script>
|
13 |
+
|
14 |
+
<meta charset="utf-8">
|
15 |
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
16 |
+
<meta name="mobile-web-app-capable" content="yes">
|
17 |
+
<meta name="mobile-web-app-status-bar-style" content="black-translucent" />
|
18 |
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
19 |
+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
20 |
+
<title>モクモクラン</title>
|
21 |
+
<link rel="shortcut icon" href="TemplateData/favicon.ico">
|
22 |
+
<link rel="stylesheet" href="TemplateData/style.css">
|
23 |
+
<link rel="manifest" href="manifest.json">
|
24 |
+
<script src="TemplateData/UnityProgress.js"></script>
|
25 |
+
<script src="Build/UnityLoader.js"></script>
|
26 |
+
<script>
|
27 |
+
var unityInstance = UnityLoader.instantiate("Mokumokuran", "Build/webgl3.json", {onProgress: UnityProgress,
|
28 |
+
Module: {
|
29 |
+
backgroundColor: "#202020",
|
30 |
+
onRuntimeInitialized: function () {
|
31 |
+
UnityProgress(unityInstance, "complete");
|
32 |
+
}
|
33 |
+
}})
|
34 |
+
</script>
|
35 |
+
</head>
|
36 |
+
<body>
|
37 |
+
<div class="webgl-content">
|
38 |
+
<div id="Mokumokuran" style="width: 900px; height: 600px">
|
39 |
+
</div>
|
40 |
+
<div id="TextInputRoot" style="display:none;">
|
41 |
+
<div style="width:100%;height:100%;position:fixed;top:0%;z-index:2147483647;">
|
42 |
+
<script>
|
43 |
+
function setActiveValue(){
|
44 |
+
document.getElementById("MokuranFreeTextInputActive").value = 1;
|
45 |
+
}
|
46 |
+
function setDeactiveValue(){
|
47 |
+
document.getElementById("MokuranFreeTextInputActive").value = 0;
|
48 |
+
document.getElementById("TextInputRoot" ).style.display = "none";
|
49 |
+
}
|
50 |
+
function sendMessage(e){
|
51 |
+
if (e.keyCode == 13){
|
52 |
+
document.getElementById("MokuranFreeTextInputIsSendAble").value = 1;
|
53 |
+
console.log("send message is called.")
|
54 |
+
}
|
55 |
+
}
|
56 |
+
</script>
|
57 |
+
<div style="position:relative;top:87.5%;left:-32px;" align="center" vertical-align="middle">
|
58 |
+
<div>
|
59 |
+
<input type="text" id="MokuranFreeTextInput" onclick="setActiveValue()" onfocusout="setDeactiveValue()" onkeydown="sendMessage(event)" size="50"
|
60 |
+
style="
|
61 |
+
width:310px;
|
62 |
+
height:27px;
|
63 |
+
border: 2px solid #171717;
|
64 |
+
border-radius: 4px;
|
65 |
+
background-color: #515151;
|
66 |
+
color: #FFFFFF;">
|
67 |
+
<input type="hidden" id="MokuranFreeTextInputActive" value=0 style="position:relative;top:60%;left:100px;">
|
68 |
+
<input type="hidden" id="MokuranFreeTextInputIsSendAble" value=0 style="position:relative;top:60%;left:100px;">
|
69 |
+
</div>
|
70 |
+
</div>
|
71 |
</div>
|
72 |
+
</div>
|
73 |
+
</body>
|
74 |
</html>
|
manifest.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"display": "fullscreen",
|
3 |
+
"orientation": "landscape",
|
4 |
+
}
|