30 lines
1.3 KiB
HTML
30 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>Orbit — dev signal-compass flow test</title>
|
|
<!-- This page lives in /dev, but the game's relative asset paths are rooted
|
|
at the project root — resolve them against it. -->
|
|
<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.__SCAN_LOGS__ = [];
|
|
const __oe = console.error.bind(console);
|
|
const __oi = console.info.bind(console);
|
|
console.error = (...a) => { window.__CAPTURED_ERRORS__.push(a.map(String).join(' ').slice(0, 600)); __oe(...a); };
|
|
console.info = (...a) => { window.__SCAN_LOGS__.push(a.map(String).join(' ').slice(0, 300)); __oi(...a); };
|
|
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/signal-compass-flow.mjs"></script>
|
|
</body>
|
|
</html>
|