Back to Find the Invisible Cow
SOURCE / PINNED RELEASE

Made of little things.

Find the Invisible Cow

Release
e48b3dced31c…
Author-recorded commit
cf79302f143d…
License
LICENSE
Author’s source reference
nostr://npub1p8rxwea4e0l4jml0q53n5mvh3n7pywq523jk3lm336v04r8ny9jqtq7ttf/wss%3A%2F%2Fgit.napplet.soy%2F/n-3b179f1d7df

Archive hash verified: f8e300eb672b5ee8…. 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" />
    <title>Find the Invisible Cow</title>
  </head>
  <body>
    <!--
      The runtime frames this napplet and already shows its name, so the pasture
      fills the frame from the first pixel. Overlays handle start / win states.
    -->
    <main id="app" class="app">
      <div
        id="field"
        class="field"
        tabindex="-1"
        role="application"
        aria-label="Pasture. Move around to hear the invisible cow, then click or tap its spot to catch it."
      >
        <div class="stars" aria-hidden="true"></div>
        <div class="grass" aria-hidden="true"></div>
        <div class="fireflies" aria-hidden="true"><i></i><i></i><i></i><i></i><i></i><i></i></div>
        <div id="probe" class="probe" aria-hidden="true"></div>
        <div id="hintMeterWrap" class="hint-meter-wrap" aria-hidden="true">
          <div id="hintMeter" class="hint-meter"></div>
        </div>
        <svg id="hintArrow" class="hint-arrow" viewBox="0 0 24 24" aria-hidden="true">
          <path d="M12 2 19 20 12 16 5 20Z" fill="currentColor" />
        </svg>
        <div id="cowReveal" class="cow-reveal" aria-hidden="true" hidden>
          <svg class="cow" viewBox="0 0 120 96" role="img" aria-label="A cartoon cow">
            <ellipse cx="60" cy="88" rx="34" ry="5" class="cow-shadow" />
            <rect x="26" y="34" width="64" height="40" rx="18" class="cow-body" />
            <circle cx="40" cy="52" r="11" class="cow-patch" />
            <circle cx="74" cy="44" r="8" class="cow-patch" />
            <rect x="30" y="72" width="9" height="16" rx="4" class="cow-leg" />
            <rect x="48" y="72" width="9" height="16" rx="4" class="cow-leg" />
            <rect x="63" y="72" width="9" height="16" rx="4" class="cow-leg" />
            <rect x="80" y="72" width="9" height="16" rx="4" class="cow-leg" />
            <circle cx="90" cy="30" r="16" class="cow-head" />
            <ellipse cx="46" cy="26" r="9" class="cow-ear" transform="rotate(-24 46 26)" />
            <ellipse cx="76" cy="18" r="9" class="cow-ear" transform="rotate(20 76 18)" />
            <path d="M100 14c3-4 8-4 9 0" class="cow-horn" />
            <circle cx="96" cy="26" r="3.2" class="cow-eye" />
            <circle cx="84" cy="26" r="3.2" class="cow-eye" />
            <ellipse cx="90" cy="40" rx="11" ry="8" class="cow-muzzle" />
            <ellipse cx="86" cy="39" rx="2.2" ry="3" class="cow-nostril" />
            <ellipse cx="94" cy="39" rx="2.2" ry="3" class="cow-nostril" />
          </svg>
        </div>
      </div>

      <header class="hud">
        <div class="hud-readout">
          <span id="timer" class="timer">0:00.0</span>
          <span id="mooCount" class="moo-count">0 moos</span>
        </div>
        <button
          id="soundToggle"
          type="button"
          class="sound-toggle"
          aria-pressed="true"
          aria-label="Sound is on. Turn sound off."
        >
          <svg class="icon icon-on" viewBox="0 0 24 24" aria-hidden="true">
            <path d="M4 9v6h4l5 4V5L8 9H4Z" fill="currentColor" />
            <path d="M16 9c1.4 1.6 1.4 4.4 0 6M18.5 6.5c2.6 3 2.6 8 0 11" stroke="currentColor" stroke-width="1.8" fill="none" stroke-linecap="round" />
          </svg>
          <svg class="icon icon-off" viewBox="0 0 24 24" aria-hidden="true">
            <path d="M4 9v6h4l5 4V5L8 9H4Z" fill="currentColor" />
            <path d="M16.5 9.5l5 5m0-5-5 5" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" />
          </svg>
        </button>
      </header>

      <p id="coach" class="coach">Listen — the moo gets louder and quicker as you close in.</p>

      <p id="notice" class="notice" role="status" hidden></p>

      <div id="startOverlay" class="overlay">
        <div class="card">
          <h1 class="logo"><span>Find the</span><br /><span>Invisible Cow</span></h1>
          <p class="pitch">
            An invisible cow is hiding in this pasture. Wander around: its moo gets
            louder and more frequent as you get close. Catch it with a click — then it
            is invisible again somewhere new.
          </p>
          <p class="howto" id="howto">
            <strong>Mouse:</strong> move to listen, click to catch&ensp;·&ensp;
            <strong>Touch:</strong> press and drag, tap to catch&ensp;·&ensp;
            <strong>Keys:</strong> arrows to wander, Enter to catch&ensp;·&ensp;
            <strong>Pad:</strong> stick to wander, A to catch
          </p>
          <button id="startButton" type="button" class="primary" autofocus>Start hunting</button>
          <p class="tip">Sound on · headphones make the hiding spot easier to hear</p>
        </div>
      </div>

      <div id="winOverlay" class="overlay" hidden>
        <div class="card">
          <h2 class="win-title">You found the cow!</h2>
          <dl class="results">
            <div class="result">
              <dt>Time</dt>
              <dd id="resultTime">—</dd>
            </div>
            <div class="result">
              <dt>Moos</dt>
              <dd id="resultMoos">—</dd>
            </div>
            <div class="result">
              <dt>Best</dt>
              <dd id="resultBest">—</dd>
            </div>
          </dl>
          <p id="resultSpot" class="spot"></p>
          <button id="againButton" type="button" class="primary">Hunt again</button>
        </div>
      </div>
    </main>
    <script type="module" src="/src/main.ts"></script>
  </body>
</html>