Skip to content

Commit

Permalink
Deploying to gh-pages from @ 38eb1d4 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
aglitchman committed Oct 24, 2024
1 parent 1e925d1 commit 91c5661
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 62 deletions.
Binary file modified archive/game0.dmanifest
Binary file not shown.
Binary file modified archive/game0.public.der
Binary file not shown.
74 changes: 12 additions & 62 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,47 +149,27 @@
<meta property="og:title" content="Scene3D Playground">
<meta property="og:description" content="Web build of the example scene from Scene3D. Scene3D is a collection of assets to help you developing 3D games with the Defold game engine. Use included prefabs to quickly prototype structures, levels, and to test game mechanics. Try out ideas quickly!">
<meta property="og:image" content="https://github.com/indiesoftby/defold-scene3d/raw/main/cover_opengraph.jpg">
<style>
#loading {
color: #fff;
float: left;
font-weight: bold;
font-family: sans-serif;
font-size: 14px;
font-style: normal;
font-stretch: normal;
line-height: normal;
letter-spacing: 0px;
padding-top: 12px;
}
.link,
.button,
#loading {
margin-right: 12px;
margin-left: 12px;
}
.canvas-app-container {
background: #1f1f1f;
filter: none;
}
.canvas-app-canvas {
background-size: 60%;
}
</style>
</head>
<body>
<div id="app-container" class="canvas-app-container" merge="keep">
<div id="app-container" class="canvas-app-container">
<div id="running-from-file-warning" style="display: none; margin: 3em;">
<h1>Running from local file ⚠️</h1>
<p>It seems like you have opened this file by double-clicking on it. In order to test your build in a browser <b>you need to load this file from a web server</b>. You can either upload this file and the rest of the files from a Defold HTML5 bundle to a web hosting service OR host them using a local web server on your home network.</p>
<p><a href="https://defold.com/manuals/html5/#testing-html5-build" target="_blank">Learn more about running a local web server in the Defold HTML5 manual</a>.</p>
</div>
<div id="webgl-not-supported" style="display: none; margin: 3em;">
<h1>WebGL not supported ⚠️</h1>
<p>WebGL is not supported by your browser - visit <a href="https://get.webgl.org/">https://get.webgl.org/</a> to learn more.</p>
</div>
<div id="canvas-container" class="canvas-app-canvas-container">
<canvas id="canvas" class="canvas-app-canvas" tabindex="1" width="1920" height="1080"></canvas>
</div>
<div class="buttons-background">
<div class="button" onclick="Module.toggleFullscreen();">
Fullscreen
</div>
<div id="loading">
Loading... 0%
</div>
<div class="link"><a href="https://defold.com" target="_blank">Defold</a> + <a href="https://github.com/indiesoftby/defold-scene3d" target="_blank">Scene3D</a>
<div class="link">
Made with <a href="https://defold.com/" target="_blank">Defold</a>
</div>
</div>
</div> <!-- -->
Expand All @@ -204,35 +184,5 @@
runningFromFileWarning.parentNode.removeChild(runningFromFileWarning);
}
</script>
<script id="engine-setup" type="text/javascript">
(function () {
var statusText;
var setStatus = function (status) {
statusText = status;
var el = document.getElementById("loading");
if (el) el.innerText = status;
};

Progress.addListener(function (percentage) {
if (isNaN(percentage)) return;
var el = document.getElementById("loading");
if (el && !statusText) {
if (percentage == 100) {
el.innerText = "";
} else {
el.innerText = "Loading... " + percentage.toFixed(0) + "%";
}
}
});

extra_params.unsupported_webgl_callback = function () {
setStatus("ERROR: WebGL is not supported by your browser.");
};

extra_params.can_not_download_file_callback = function () {
setStatus("ERROR: Can't download files.");
};
})();
</script>
</body>
</html>

0 comments on commit 91c5661

Please sign in to comment.