Hacker News new | ask | show | jobs
by pickdenis 2280 days ago
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.
1 comments

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:

    <p>You stand before a cave.
    <p><a href="explore.html">explore the cave</a>
Thank you so much!