Classic NetHack, presented as an interactive 3D dungeon. Play from above, step inside in first person, use an authentic terminal view, or explore in virtual reality on Meta Quest. The original NetHack game rules and depth are preserved.
Play in your browser · Download the app
Ways to play · Features · Screenshots · Run locally
Standalone Quest VR, up to 40% better GPU performance, customizable hotbars, and two new tilesets headline this release. DuskHack and Geoduck join the built-in artwork, and NetHack 5 players can start without possessions in Pauper Mode. Greatly improved communcation between the internal NetHack builds and the 3D client, allowing for smoother, more responsive gameplay. Sounds now preload during loading, alongside improvements to inventory prompts, terrain updates, and Vulture rendering.
Choose your platform's package from the Releases page. Windows builds include an x64 installer and portable app; the legacy 32-bit portable package is no longer produced. Android and Quest have separate APKs: choose NetHack 3D <version> Quest.apk for standalone VR.
The Quest APK bundles the game and its VR host for offline play, without a PC, remote game server, or separate browser installation. Sideload it using your usual Quest installation workflow.
Note: The macOS desktop build is packaged as an unsigned DMG from GitHub Actions.
On first launch, macOS may ask you to right-click the app and choose Open.
On iPhone/iPad, open the play link in Safari, tap the Share button, then tap Add to Home Screen.
Launch it from your Home Screen for a web app fullscreen experience.
- Download the latest Linux release from the Releases page in Desktop mode.
- Add the AppImage directly to Steam using "Add Non-Steam Game to My Library".
- Keep Steam compatibility/proton disabled for this native Linux launch path.
- Linux launch option notes:
--windowed: launch in a normal framed window instead of fullscreen.--borderless: launch in a frameless non-fullscreen window that covers the display without using native fullscreen mode.
- Recommended Steam Input profile tweak: Set left trackpad to Left Joystick, and trackpad click to the A button. Movement and common actions are very simple this way!
| View | Experience |
|---|---|
| Overhead 3D | Survey the dungeon, pan and rotate the camera, and zoom from individual tiles to a whole-level overview. |
| First person | Explore from inside the dungeon with mouse, touch, or controller input. |
| Terminal | Play in a crisp, zoomable grid with the active game's native characters, colors, symbol sets, and highlighting. |
| Quest tabletop VR | View the dungeon as a board you can move, tilt, scale, and pan with tracked controllers. |
| Quest first-person VR | Step into a room-scale dungeon with tracked controllers, snap turning, and adjustable world scale. |
Use tracked controllers to move, run, search, select tiles, and open context actions. Inventory, messages, status, minimap, menus, and prompts appear on floating panels you can reposition. A movable virtual keyboard handles names and text entry, while a collapsible hotbar keeps your chosen commands close by.
Adjust tabletop area and tilt, first-person world scale, render resolution, and instant or animated movement. Recenter through the game or headset controls. Animated controller models and equipped-weapon visuals bring your hands into first-person play; the app also restores immersive mode after an interruption.
Use graphical tiles, 3D ASCII, or Vulture artwork in the overhead and first-person 3D views. Vulture brings its isometric artwork into a full 3D scene; ASCII offers NetHack 3D, Classic, and Terminal color schemes. Terminal mode has its own message-log gutter.
Choose NetHack 5.0, NetHack 3.6.7, or Slash'Em, with separate saves for each. Create a character or roll a random hero, save your character preferences, and resume long-running adventures. Configure startup options such as autopickup, pet names, and native highlighting, plus variant-specific choices including Explore Mode and NetHack 5's tutorial and Pauper Mode.
- Keyboard and mouse: classic commands, extended-command autocomplete, clickable dungeon targets, and inventory context actions.
- Controller: radial action menus and movement confirmation for careful navigation from the couch.
- Touch: tap/swipe movement, quick actions, a mobile message log, and first-person look/run gestures.
- Custom hotbars: independently configure desktop, mobile/VR, and Menu / Actions layouts in Options → Hotbar. Search commands, add or remove buttons, reorder them, or restore defaults. Layouts save immediately.
Built-in choices include Vulture, Absurdly Evil, DawnHack, DuskHack, Geoduck, NetHack Modern, Nevanda, PixelHack, RZTiles, and Vanilla NetHack Tiles.
Import and manage your own tilesets with built-in background removal. Rectangular tiles keep their proportions, including Geoduck's automatically detected 15×25 artwork. Set a custom tile height during import, or turn off Match blocks to tile aspect ratio in Display options to retain square dungeon cells.
Track health, power, attributes, armor, gold, hunger, experience, time, and dungeon location in the HUD. A scalable minimap offers alternate color schemes and drag-to-center navigation. Live messages, inventory categories, keyboard hints, item quantities, and multi-pickup selection make common tasks accessible without memorizing every command.
Native pet, item-pile, and standout highlighting are supported, including overhead heart markers for pets. Optional floating damage, healing, stat, and experience indicators provide immediate feedback.
Dynamic lighting surrounds the player, while defeated monsters can shatter into pieces with blood mist and ground splatter. Customize the effects and movement animation to your taste. Sound effects accompany exploration and combat, and you can create and edit your own sound packs directly in the game.
| Combat in the Gnomish Mines | Shatter monsters into pieces! |
|---|---|
![]() |
![]() |
| Multiple tile sets | Beautiful UI |
![]() |
![]() |
![]() |
|
npm inpm run dev- Open
http://localhost:5173/
The Quest WebXR build and development guide covers prerequisites, controller mappings, signing, and device checks. Run npm run quest:webxr:wired to test with Quest Link. For a standalone debug APK, install the documented Android/JDK tools, run npm ci, then npm run quest:webxr:apk -- --debug. The build downloads and verifies its pinned Meta SDK and patched GeckoView dependencies; no Firefox source build or private signing key is needed.
The earlier Quest UI prototype, stereo experiment, and legacy wired preview remain available for reference. Use the WebXR workflow above for the current VR implementation.
npm run dev- Start Vite dev server.npm run check:tsc- Check TypeScript and subsystem contracts without building.npm test- Run regression tests, including engine input, world state, and rendering resources.npm run build- Build production bundles.npm run build:electron- Build bundles with Electron-safe relative asset paths.npm run ensure:rollup-native- Manually repair a missing Rollup native optional dependency on the build machine. Normal build/dev commands rely on the dependencies installed by npm and do not run this repair check.npm run preview- Preview production build locally.
npm run electron:dev- Run Electron against the Vite dev server.npm run electron:pack:mac- Build an unpacked macOS app bundle torelease/for local testing.npm run electron:dist:mac- Build a macOS DMG torelease/(pass-- --universalto produce a universal macOS build).npm run electron:dist:win- Build and package a Windows NSIS.exeinstaller (x64) torelease/.npm run electron:dist:win:portable- Build and package a portable Windows.exefor x64 torelease/.npm run electron:dist:linux:appimage- Build and package a Linux AppImage (x64) torelease/(uses WSL automatically on Windows, stages Linux runtime deps, and includes Linux icon assets).npm run electron:dist:all- Build Electron assets once, then package the Windows x64 setup and portable executables, and Linux AppImage back to back.npm run electron:dist:all:parallel- Same as above, but packages Windows and Linux at the same time after the shared Electron build.
On Windows, AppImage packaging builds the web assets with Windows Node, then syncs the packaging inputs to ~/.cache/nethack3d/appimage/<checkout-id>/ inside WSL. Linux dependencies and packaging intermediates stay there; only finished artifacts and build diagnostics are copied back to release/. WSL needs Linux Node/npm, rsync, and libcups.so.2. The first run installs dependencies; subsequent runs reuse them until package metadata, .npmrc, or the Linux Node version changes. Each stage prints its elapsed time.
Set NH3D_SKIP_ELECTRON_BUILD=1 only when dist/ already contains a current Electron build. NH3D_ELECTRON_OUTPUT_DIR changes the Windows artifact destination. The combined release scripts retain their shared-build and parallel packaging behavior. NH3D_APPIMAGE_PREPARE_ONLY=1 stages the current build and dependencies; NH3D_APPIMAGE_SKIP_PREPARE=1 packages that existing staged snapshot. An interrupted process may leave a workspace lock directory; remove that empty directory only after confirming no AppImage build is running.
npm run android:add- Create the native Android project with Capacitor (run once).npm run android:sync- Build web assets and sync them into the Android project.npm run android:release- Build web assets, sync Android, and create a signed release APK without opening Android Studio. Output:release/NetHack 3D <version> Android.apk.npm run quest:webxr:setup- Download and verify the pinned Quest runtime dependencies, or restore them from the external cache.npm run quest:webxr:apk -- --debug- Build and verify a standalone Quest debug APK using the generated Android debug key. Omit--debugfor a signed release using your own signing configuration; each signed build automatically increments its Meta upload version code while keeping thepackage.jsondisplay version. The stable output isquest/build/outputs/apk/nethack3d-vr.apk, with a versioned copy underrelease/;quest:webxr:publish-apkverifies and copies an existing build without incrementing it. See version counter and machine-transfer instructions.npm run quest:apk- Build the legacy Quest app and copy it torelease/NetHack 3D <version> Quest Legacy.apk.npm run android:open- Open the Android project in Android Studio.npm run android:syncfollowed bynpx cap run android- Build and sync web assets, then run on a connected Android device/emulator.
npm run glyphs:generate- Regenerate glyph catalog from runtime artifacts.npm run glyphs:check- Verify checked-in glyph catalog is up to date.
Once, copy android/keystore.properties.example to android/keystore.properties and fill in your existing release keystore path, alias, and passwords. Use the same key used for previous releases so installed apps can be updated. The local properties file and .jks/.keystore files are ignored by Git. Use forward slashes for Windows paths; relative keystore paths resolve from android/.
Then run npm run android:release. Java and the Android SDK must be installed; the script detects Android Studio's bundled Java and default SDK without opening the IDE. npm run android:release -- --check checks prerequisites and the signing configuration without building (passwords are checked during signing). For automation, NH3D_ANDROID_STORE_FILE, NH3D_ANDROID_STORE_PASSWORD, NH3D_ANDROID_KEY_ALIAS, and NH3D_ANDROID_KEY_PASSWORD override the corresponding properties.
src/main.tsx mounts App.tsx. The React UI feature modules own startup, dialogs, client options and interaction state; the app composition wires them to the engine and UI adapter. Nethack3DEngine.ts coordinates startup, runtime events, frame updates, options, and disposal, and preserves the public controller API used by the UI.
Rendering, input, camera, world presentation, menus, audio, and diagnostics live in focused classes under src/game/engine/. Each subsystem owns its state and declares the specific members it uses from neighboring systems. NetHack's authoritative game state and rules continue to run in WASM inside the worker.
LocalNetHackRuntime.ts coordinates the worker-facing API, callback dispatch, startup and shutdown. Its runtime subsystems own input waits, menus, map and status caches, callback decoding, and persistence, with explicit dependencies assembled before WASM starts.
flowchart LR
UI[React UI] -->|controller calls| Engine[Engine coordinator]
Engine --> Systems[Engine subsystems]
Systems -->|commands| Bridge[WorkerRuntimeBridge]
Bridge --> Runtime[LocalNetHackRuntime coordinator]
Runtime --> RuntimeSystems[Runtime subsystems]
RuntimeSystems <--> WASM[NetHack WASM]
Runtime -->|runtime events| Bridge
Bridge -->|runtime events| Engine
Engine -->|UI adapter and store| UI
Systems -->|UI adapter and store| UI
| Area | Entry point |
|---|---|
| Engine composition and dependencies | create-engine-systems.ts |
| Rendering and visual effects | rendering/, effects/ |
| Commands, devices, and camera | input/, camera/ |
| Terrain caches, tile updates, and entity movement | world/ |
| Menus, minimap, and status presentation | ui/ |
| Sound, haptics, and developer panels | audio/, diagnostics/ |
| React state bridge | engineUiAdapter.ts, gameStore.ts |
| Worker transport and host | WorkerRuntimeBridge.ts, runtime-worker.ts |
| Runtime API and subsystem assembly | LocalNetHackRuntime.ts, create-runtime-systems.ts |
| NetHack callbacks, input waits, state and persistence | Runtime ownership guide, RuntimeInputBroker.ts |
| Glyph classification and fallback catalogs | glyphs/ |
| Browser debug helpers | app.ts |
For task-to-file maps and ownership rules, start with the engine guide, runtime guide, and React UI guide. The world/runtime flow guide covers map updates, under-player items, level transitions, and movement. Contributor and agent references include the project structure, code hotspots, movement and input flow, and WASM pointer troubleshooting.
- NetHack 3.6.7 to 5.0 tile-order translation logic is adapted from
horlogeislux/tileto370(MIT License).
- Push this repo to GitHub.
- In repository settings, go to
Settings > Pages. - Set
SourcetoGitHub Actions. - Ensure your deploy branch matches
.github/workflows/deploy-gh-pages.yml(mainby default). - Push to
main(or run the workflow manually).
The workflow builds with Vite and deploys the dist/ folder.
.github/workflows/build-macos-electron.ymlbuilds the macOS Electron app onmacos-latest.- Manual runs upload the generated DMG as a workflow artifact and will also publish it when a matching release tag already exists.
- Tag pushes like
1.2.2also upload the macOS DMG to the matching GitHub Release.





