Back to DOOM
SOURCE / PINNED RELEASE

Made of little things.

DOOM

Release
f8a5db646fdc…
Author-recorded commit
d8e055796675…
License
LICENSE
Author’s source reference
nostr://npub182jczunncwe0jn6frpqwq3e0qjws7yqqnc3auccqv9nte2dnd63scjm4rf/wss%3A%2F%2Fgit.napplet.soy%2F/n-37af437f0e6

Archive hash verified: 66555ff880270ca9…. The source-to-build association is the author’s claim; it has not been independently rebuilt.

index.html
<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, viewport-fit=cover"
    />
    <meta name="theme-color" content="#131313" />
    <title>DOOM</title>
  </head>
  <body>
    <main id="app">
      <div id="small-notice" role="status">
        <strong>NEED MORE ROOM</strong
        ><span>Expand to at least 300 × 240 to play DOOM.</span
        ><small>Your game stays paused.</small>
      </div>
      <section id="stage" aria-label="DOOM game">
        <canvas
          id="game"
          width="640"
          height="400"
          tabindex="0"
          aria-label="DOOM game. W A S D to move, arrow keys to turn, Space to fire, E to use, P to pause."
          aria-describedby="keyboard-help"
        ></canvas>
        <div id="overlay" class="overlay">
          <section
            class="panel"
            id="launch-panel"
            aria-labelledby="panel-title"
          >
            <div class="panel-kicker">UAC // MARS DIVISION</div>
            <h1 id="panel-title">KNEE-DEEP<br />IN THE DEAD</h1>
            <p id="panel-copy">The original DOOM. Nine levels. One way out.</p>
            <label class="difficulty"
              >DIFFICULTY<select id="difficulty">
                <option value="0">I'm too young to die</option>
                <option value="1">Hey, not too rough</option>
                <option value="2" selected>Hurt me plenty</option>
                <option value="3">Ultra-Violence</option>
                <option value="4">Nightmare!</option>
              </select></label
            >
            <button id="start" class="primary" disabled>LOADING ENGINE…</button>
            <button id="continue" hidden>LOAD CHECKPOINT</button>
            <div class="launch-foot">
              <span>SHAREWARE · EPISODE 01</span
              ><button class="text-button" id="launch-help">
                Controls & credits ↗
              </button>
            </div>
          </section>
          <section
            class="panel"
            id="pause-panel"
            hidden
            aria-labelledby="pause-title"
          >
            <div class="panel-kicker">TRANSMISSION INTERRUPTED</div>
            <h2 id="pause-title">PAUSED</h2>
            <button id="resume" class="primary">RESUME GAME</button>
            <div class="button-row">
              <button id="save">Save checkpoint</button
              ><button id="load">Load checkpoint</button>
            </div>
            <button id="restart">New game</button>
            <button id="pause-help" class="text-button">
              Controls & credits ↗
            </button>
            <p class="fine" id="save-status">Saves stay in this session.</p>
          </section>
          <section
            class="panel help-panel"
            id="help-panel"
            hidden
            aria-labelledby="help-title"
          >
            <div class="panel-kicker">FIELD MANUAL // 01</div>
            <h2 id="help-title">STAY ALIVE.</h2>
            <dl id="keyboard-help">
              <dt>Move / strafe</dt>
              <dd>W A S D</dd>
              <dt>Turn</dt>
              <dd>← →</dd>
              <dt>Fire / use</dt>
              <dd>Space / E</dd>
              <dt>Run / weapon</dt>
              <dd>Shift / 1–7</dd>
              <dt>Map / pause</dt>
              <dd>M / P</dd>
              <dt>Pause / back</dt>
              <dd>Esc</dd>
            </dl>
            <p>
              On touch: use the direction pad to move and turn. Hold FIRE while
              moving. The side arrows strafe. Tap RUN to toggle running. Tap WPN
              to cycle weapons.
            </p>
            <p class="fine">
              DOOM © id Software. Shareware Episode 1. Engine: doomgeneric /
              Jacob Enget’s doom.wasm (GPL-2.0). This port runs silently; audio
              is not implemented.
            </p>
            <p id="host-status" class="fine"></p>
            <button id="help-back" class="primary">BACK</button>
          </section>
        </div>
        <div id="touch-deck" aria-label="Touch game controls">
          <div class="dpad">
            <button data-key="up" class="up" aria-label="Move forward">▲</button
            ><button data-key="left" class="left" aria-label="Turn left">
              ◀</button
            ><button data-key="down" class="down" aria-label="Move backward">
              ▼</button
            ><button data-key="right" class="right" aria-label="Turn right">
              ▶
            </button>
          </div>
          <div class="touch-actions">
            <button data-key="use">USE</button
            ><button data-key="fire" class="fire">FIRE</button
            ><button data-key="strafeLeft" aria-label="Strafe left">⇤</button
            ><button data-key="strafeRight" aria-label="Strafe right">⇥</button>
          </div>
        </div>
      </section>
      <footer id="toolbar">
        <span class="edition"
          >DOOM<span class="edition-sub"> / EPISODE 01</span></span
        >
        <output id="status" aria-live="polite">INITIALIZING</output>
        <div class="toolbar-actions">
          <button id="map" title="Toggle map (M)" disabled>MAP</button
          ><button id="weapon" title="Next weapon" disabled>WPN</button
          ><button
            id="run"
            title="Toggle running (hold Shift on keyboard)"
            aria-pressed="false"
            disabled
          >
            RUN</button
          ><button id="pause" title="Pause (P)" disabled>
            Ⅱ<span class="pause-label"> PAUSE</span>
          </button>
        </div>
      </footer>
    </main>
    <script type="module" src="/src/main.ts"></script>
  </body>
</html>