escape/index.html

40 lines
947 B
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Escape</title>
<style>
html,
body {
margin: 0;
padding: 0;
height: 100%;
background: #000;
overflow: hidden;
}
#game {
width: 100vw;
height: 100vh;
}
/* Crisp upscaling for the low-res raycast view. */
canvas {
image-rendering: pixelated;
}
</style>
</head>
<body>
<div id="game"></div>
<!-- Resolve the bare "phaser" import to the vendored ESM build so no
bundler or npm install is needed — any static file server works. -->
<script type="importmap">
{
"imports": {
"phaser": "./vendor/phaser.esm.min.js"
}
}
</script>
<script type="module" src="./src/game/main.js"></script>
</body>
</html>