mirror of
https://github.com/kristoferssolo/maze-ascension.git
synced 2026-03-22 00:26:29 +00:00
Initial commit
This commit is contained in:
38
web/index.html
Normal file
38
web/index.html
Normal file
@@ -0,0 +1,38 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="description"
|
||||
content="Maze exploration game built using the Bevy engine">
|
||||
<meta name="keywords" content="game, bevy">
|
||||
<title>Maze Ascension: The Labyrinth of Echoes</title>
|
||||
<link data-trunk rel="copy-dir" href="../assets" />
|
||||
<link data-trunk rel="inline" href="style.css" />
|
||||
<link data-trunk rel="inline" type="module" href="restart-audio-context.js" />
|
||||
<link data-trunk
|
||||
rel="rust"
|
||||
data-cargo-no-default-features
|
||||
data-wasm-opt="s"
|
||||
href="../" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="game" class="center">
|
||||
<div id="loading-screen" class="center">
|
||||
<span class="spinner"></span>
|
||||
</div>
|
||||
<canvas id="bevy"> Javascript and canvas support is required </canvas>
|
||||
</div>
|
||||
<script type="module">
|
||||
// Hide loading screen when the game starts.
|
||||
const loading_screen = document.getElementById("loading-screen");
|
||||
const bevy = document.getElementById("bevy");
|
||||
const observer = new MutationObserver(() => {
|
||||
if (bevy.height > 1) {
|
||||
loading_screen.style.display = "none";
|
||||
observer.disconnect();
|
||||
}
|
||||
});
|
||||
observer.observe(bevy, { attributeFilter: ["height"] });
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user