10mtd and dadish 3
This commit is contained in:
@@ -28,6 +28,11 @@
|
||||
"battle"
|
||||
]
|
||||
},
|
||||
"10-minutes-till-dawn": {
|
||||
"path": "10-minutes-till-dawn",
|
||||
"aliases": [],
|
||||
"categories": []
|
||||
},
|
||||
"2048": {
|
||||
"path": "2048",
|
||||
"aliases": [],
|
||||
@@ -213,6 +218,11 @@
|
||||
"aliases": [],
|
||||
"categories": []
|
||||
},
|
||||
"Dadish 3": {
|
||||
"path": "dadish-3",
|
||||
"aliases": [],
|
||||
"categories": []
|
||||
},
|
||||
"Don't Escape": {
|
||||
"path": "w-flash/?game=dont-escape",
|
||||
"aliases": [],
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"companyName": "Flanne",
|
||||
"productName": "MinutesTillDawn",
|
||||
"productVersion": "0.1",
|
||||
"dataUrl": "10MinutesTillDawnWebGL.data.unityweb",
|
||||
"wasmCodeUrl": "10MinutesTillDawnWebGL.wasm.code.unityweb",
|
||||
"wasmFrameworkUrl": "10MinutesTillDawnWebGL.wasm.framework.unityweb",
|
||||
"graphicsAPI": ["WebGL 2.0", "WebGL 1.0"],
|
||||
"webglContextAttributes": { "preserveDrawingBuffer": false },
|
||||
"splashScreenStyle": "Dark",
|
||||
"backgroundColor": "#231F20",
|
||||
"cacheControl": { "default": "must-revalidate" },
|
||||
"developmentBuild": false,
|
||||
"multithreading": false,
|
||||
"unityVersion": "2019.4.21f1"
|
||||
}
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
@@ -0,0 +1,84 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-us">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>10 Minutes Till Dawn</title>
|
||||
<script src="Build/UnityLoader.js"></script>
|
||||
<link rel="icon" href="icon.png">
|
||||
<script>
|
||||
var gameInstance = UnityLoader.instantiate("gameContainer", "Build/10MinutesTillDawnWebGL.json");
|
||||
var scaleToFit;
|
||||
try {
|
||||
scaleToFit = !!JSON.parse("");
|
||||
} catch (e) {
|
||||
scaleToFit = true;
|
||||
}
|
||||
|
||||
function onResize() {
|
||||
var canvas = gameInstance.Module.canvas;
|
||||
var container = gameInstance.container;
|
||||
var w;
|
||||
var h;
|
||||
|
||||
if (scaleToFit) {
|
||||
w = window.innerWidth;
|
||||
h = window.innerHeight;
|
||||
|
||||
var r = 675 / 1200;
|
||||
|
||||
if (w * r > window.innerHeight) {
|
||||
w = Math.min(w, Math.ceil(h / r));
|
||||
}
|
||||
h = Math.floor(w * r);
|
||||
} else {
|
||||
w = 1200;
|
||||
h = 675;
|
||||
}
|
||||
|
||||
container.style.width = canvas.style.width = w + "px";
|
||||
container.style.height = canvas.style.height = h + "px";
|
||||
container.style.top = Math.floor((window.innerHeight - h) / 2) + "px";
|
||||
container.style.left = Math.floor((window.innerWidth - w) / 2) + "px";
|
||||
}
|
||||
window.addEventListener("resize", onResize);
|
||||
</script>
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
background: #000;
|
||||
background: ;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: visible;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
div#gameContainer {
|
||||
background: transparent !important;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
div#gameContainer canvas {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
div#gameContainer[data-pixelated="true"] canvas {
|
||||
image-rendering: optimizeSpeed;
|
||||
image-rendering: -webkit-crisp-edges;
|
||||
image-rendering: -moz-crisp-edges;
|
||||
image-rendering: -o-crisp-edges;
|
||||
image-rendering: crisp-edges;
|
||||
image-rendering: -webkit-optimize-contrast;
|
||||
image-rendering: optimize-contrast;
|
||||
image-rendering: pixelated;
|
||||
-ms-interpolation-mode: nearest-neighbor;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body onload="onResize();">
|
||||
<div id="gameContainer" data-pixelated="true"></div>
|
||||
</body>
|
||||
</html>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
Reference in New Issue
Block a user