forge
Explore
Log in

Don't you dare go Hollow

courier

Clone
★ 0

0 watching0 forksRustAGPL-3.05.3 MiB6d9eeb9Tahinli21 days ago3 commits

index.html30 lines, 1.2 KiBHistoryRawDownload
1<!DOCTYPE html>
2<html lang="en">
3<head>
4<meta charset="utf-8">
5<meta name="viewport" content="width=device-width, initial-scale=1">
6<title>Courier</title>
7<style>
8html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
9body { display: flex; flex-direction: column; align-items: center; justify-content: center; }
10#wrap { position: relative; width: min(100vw, calc(100vh * 16 / 9)); aspect-ratio: 16 / 9; }
11#game { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
12#start { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #000; color: #ccc; font: 1.2rem monospace; cursor: pointer; }
13#hint { margin-top: 0.5rem; color: #666; font: 0.8rem monospace; white-space: nowrap; }
14</style>
15</head>
16<body>
17<div id="wrap">
18<canvas id="game"></canvas>
19<div id="start">Click to start</div>
20</div>
21<div id="hint">WASD move · E talk · Shift travel · C camp · F eat · L lantern · Tab bag · 1-5 choose</div>
22<script type="module">
23import init from './courier.js';
24document.getElementById('start').addEventListener('click', (e) => {
25 e.currentTarget.remove();
26 init();
27}, { once: true });
28</script>
29</body>
30</html>