26 lines
1.1 KiB
HTML
26 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>Orbit — dev double-click skip test</title>
|
|
<!-- This page lives in /dev, but the game's relative asset paths are rooted
|
|
at the project root — resolve them against it. ("../" keeps this
|
|
working even if the project is served from a subdirectory.) -->
|
|
<base href="../" />
|
|
<style>
|
|
html, body { margin: 0; height: 100%; background: #04060d; overflow: hidden; }
|
|
#game { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
|
|
</style>
|
|
<script>
|
|
window.__CAPTURED_ERRORS__ = [];
|
|
window.addEventListener('error', (e) => window.__CAPTURED_ERRORS__.push('window: ' + e.message + ' @ ' + (e.filename||'') + ':' + (e.lineno||'')));
|
|
window.addEventListener('unhandledrejection', (e) => window.__CAPTURED_ERRORS__.push('rejection: ' + String(e.reason && e.reason.stack || e.reason)));
|
|
</script>
|
|
<script src="lib/phaser.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="game"></div>
|
|
<script type="module" src="dev/surface-skip.mjs"></script>
|
|
</body>
|
|
</html>
|