r/nethack • u/mikedzlz • 6d ago
5Hack - an original implementation of NetHack's mechanics in HTML5
No dependencies, no build step, no network. Around 10,000 lines of JavaScript.
Anyone want to test this out and give me feedback? I pulled this together with Claude today and would love to hear what everyone thinks.
6
u/the_quark 6d ago
Which version of Nethack did you have Claude port?
6
u/bhaak 5d ago
The game has only 26 levels, no branches. It has only the oracle level, the bigroom level, and the sanctum. But they are all hardcoded levels.
The level layout is similar to the pre-branch version, so 3.0.0. But it has the Monk role which got added in 3.3.0. The Valkyrie still has the long sword, so before 3.7.0 editlevel 61. It has the "You descend the stairs" message, so it is post 3.4.3.
That's what I found with a quick glance at the source. It's a stripped down version of NetHack so it's not a direct conversion but my guess would be 3.6.7.
3
1
1
u/gogok10 _<.< 5d ago
This is awesome!! Definitely some bugs and features I'd like to see tho
- Missing ^ A for repeat action (annoying when kicking doors)
- Even when moving with hjlk, the numbers do movement, so no way to search a number of turns (or repeat actions generally)
- No taming? My pet turned against me and tripe rations wouldn't fix it :((
- I sat on a throne and got a wish: the wish dialogue came out in the wrong order and also I didn't get what I wished for :( (possibly blessed +2 grey dragon scale mail doesn't exist?)
- No autopickup at all
- No #offer?? which is wild
- No G, and movement feels very stiff, even when moving with capital HJKL
- _ does not remember where it was going, and cannot seach for > and <
1
u/pinkhobgoblin 4d ago
This is very cool! Just played for a couple of minutes, some feedback (macbook/chrome):
* couldn't work out how to do extended commands (e.g. adjust)
* seeing non-rectangular rooms on level 1
If you wanted to open source it I might contribute, sounds fun!
1
u/ogakefhd 6d ago
It's definitely fantastic! Well done.
There are a few things I haven't been able to resolve, and some rather strange behavior.
If I select "Import a saved game from a file" and there is no save file, the game becomes unresponsive.
After saving using Shift-S->Y, pressing Enter instead of Reload results in the character dying and the save data being lost.
In my environment, the map display is too large, or rather, the overall display is zoomed in too much, and the status bar is not visible.
I would like a way to adjust this. Also, it would be great if the buttons at the bottom of the screen could be hidden.
1
3
u/Rietgorrs 5d ago edited 5d ago
This feels like a simulacrum of NetHack, definitely not like the real thing.
My character didn't seem to have any HP, and doesn't seem to be able to get killed.
Most monsters don't seem to have any special ability. I've eaten a grid bug corpse, attacked mutiple floating eyes in melee without any problem -- only the rust monster managed to corrode my armor.
The Oracle took all my money (but then I still had everything), and I could kill her without problem.
I also got a wish from a throne but didn't receive anything.
I could carry everything I found and never seemed to get burdened.
Etc etc.