Hello everyone. Today I made a minimal twine-like interactive fiction “engine”. It fits in about 1kb minified code. There’s nothing fancy about it. The idea is that you can write very simple (clicking only, no parser) interactive fiction/choose-your-own-adventure stories in plain text, and this presents it in a nice clicky HTML way that can be enjoyed by others.
Here’s a codepen example: https://codepen.io/honeybunches/pen/OmgvrN
Here’s the github repo.
All it can do now is rooms/pages that link to one another, good for branching hypertext stories or very boring IF.
The format is to just write out text one room on a line, like so:
name|title|description
The name is a lowercase id, the title and description are what the player sees. Like so:
beach|A sunny beach|Sand stretches for miles either way, disappearing in to the distant haze, and the [calm sea:sea] murmurs and claws at your feet
Links are made by putting square brackets around the phrase you want to link, with the destination room’s lowercase id after the colon. In the example above, it will write out “calm sea” and clicking it will take you to a room with the id “sea”
I think this is pretty cool and want to make it slightly more capable, but not much more capable. My hope is to appeal to people for whom even Twee (the plaintext-to-Twine system) is too much bother.(e.g. it would be on a site similar to that codepen, but you’d hit publish and there’d be a homepage/feed of everything people make. And you could share your game embedded steganographically in PNGs, cool stuff like that)
So here’s my question: what more does it need to meet “minimum viable”?
- images?
- items/inventory/player variables?
- things that cause changes to rooms (allowing puzzles and such)?