Live data from Hacker News

How to program a text adventure in C (2016)

home.hccnet.nl

31–36 of 36 posts

Re: How to program a text adventure in C (2016)

#32
post #30

Earlier quoted context omitted.

I'm working on a text adventure that is simply hyperlinked HTML pages with some snippets of JS for state management (just a bunch of localstorage get/put) and fancy effects. It's refreshing to go back to using the "kiddie" tools to make things.

This is awesome! Do you have the code anywhere? This is the kind of text adventure I want to do but I don't know much js.

I haven't put the code up anywhere yet but here is all of the JS (minus some trivial inline scripts):

tools.js: https://pastebin.com/p7MQE7KD

The rest of it is like:

    

You stand before a cave.

explore the cave

Re: How to program a text adventure in C (2016)

#33
post #30

Earlier quoted context omitted.

This is awesome! Do you have the code anywhere? This is the kind of text adventure I want to do but I don't know much js.

I haven't put the code up anywhere yet but here is all of the JS (minus some trivial inline scripts): tools.js: https://pastebin.com/p7MQE7KD The rest of it is like: You stand before a cave. explore the cave

Thank you so much!

Re: How to program a text adventure in C (2016)

#34
post #15
post #3

Ask HN: what's a good JS (browser focused) text adventure engine? I see me making a text adventure (adding one mini chapter) each day as a good lockdown project. Note: I might call it "Everything is better in quarantine." The goal would be to (not) go mad.

Single- or multi-player? I'm thinking of figuring out why https://evolvingstory.juliablewis.com/ keeps crashing, cleaning it up and open-sourcing it. Also thinking of rewriting it using a different event system.

I fixed the logging so should be able to diagnose next time it crashes. Doesn't crash just for me.

Re: How to program a text adventure in C (2016)

#36
post #18
post #12

Earlier quoted context omitted.

The greatest text games I have played are Curses! and Anchorhead. Both are immersive and vast. Anchorhead is genuinely scary. There are some pointless puzzles and timed puzzles, but overall, truly worth trying out.

Thanks for the suggestions! I've never heard of IF before - but I'm a long time MUD / roguelike player. This looks really great.

I recommend Counterfeit Monkey, it's the top-rated game on IFDB and I think it deserves that spot. It's also a game that would be impossible to create graphically.

https://ifdb.tads.org/viewgame?id=aearuuxv83plclpl

Post reply on HN