26 lines
742 B
HTML
26 lines
742 B
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>Titled Jam Team (internal build)</title>
|
||
|
<meta charset="UTF-8">
|
||
|
</head>
|
||
|
<body>
|
||
|
<noscript>Why do you not have JavaScript?</noscript>
|
||
|
<canvas id="canvas"></canvas>
|
||
|
<script src="$GODOT_URL"></script>
|
||
|
<script>
|
||
|
const urlParams = new URLSearchParams(document.URL)
|
||
|
const wasm = "tmp_js_export"
|
||
|
const pck = "tmp_js_export.pck"
|
||
|
const engine = new Engine();
|
||
|
|
||
|
Promise.all([
|
||
|
engine.init(wasm),
|
||
|
engine.preloadFile(pck)
|
||
|
]).then(() => {
|
||
|
return engine.start({args: ['--main-pack', pck]})
|
||
|
})
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|