mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-27 16:36:02 +03:00
035b8ee96f
Also improve the loading message that appears before wasm has taken over.
22 lines
558 B
HTML
22 lines
558 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script type="module">
|
|
import { default as init } from './game.js';
|
|
|
|
async function run() {
|
|
await init('./game_bg.wasm');
|
|
}
|
|
|
|
run();
|
|
</script>
|
|
</head>
|
|
<body style="background-color:black;">
|
|
<div id="loading" style="color:white;">
|
|
<h1>Loading... this may take up to 30 seconds</h1>
|
|
<h2>If you think something has broken, check your browser's developer console (Ctrl+Shift+I or similar)</h2>
|
|
<h3>Your browser must support WebGL or WebAssembly.</h3>
|
|
</div>
|
|
</body>
|
|
<html>
|