27 lines
1 KiB
HTML
27 lines
1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en-us">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<title>Unity WebGL Player | Incarcerated</title>
|
|
<link rel="shortcut icon" href="TemplateData/favicon.ico">
|
|
<link rel="stylesheet" href="TemplateData/style.css">
|
|
<script src="TemplateData/UnityProgress.js"></script>
|
|
<script src="Build/UnityLoader.js"></script>
|
|
<script>
|
|
var gameInstance = UnityLoader.instantiate("gameContainer", "Build/web.json", {onProgress: UnityProgress});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div class="webgl-content" style="width: 100%; height: 100%">
|
|
<div id="gameContainer" style="width: 100%; height: 100%"></div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
window.onresize=(width,height)=>{
|
|
var ctx = document.getElementById('#canvas').getContext('webgl2');
|
|
ctx.canvas.width = window.innerWidth;
|
|
ctx.canvas.height = window.innerHeight;
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|