It's ok, but inform 6 is better for this.
How to program a text adventure in C (2016)
31–36 of 36 posts
Re: How to program a text adventure in C (2016)
#32Earlier 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.
tools.js: https://pastebin.com/p7MQE7KD
The rest of it is like:
You stand before a cave.
Re: How to program a text adventure in C (2016)
#33Earlier 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
Re: How to program a text adventure in C (2016)
#34Ask 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.
Re: How to program a text adventure in C (2016)
#35Re: How to program a text adventure in C (2016)
#36Earlier 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.