Show HN: A 'Choose Your Own Adventure' written in Emacs Org Mode
Twinery is a fantastic tool, and I used it to layout the story map. I really wanted to write the content of the story in Emacs and Org Mode however. Thankfully, Twinery provided the ability to write custom Story Formats that defined how a story was exported. I wrote a Story Format called Twiorg that would export the Twinery file to an Org file and then a Org export backend (ox-twee) to do the reverse. With these tools, I could go back and forth between Emacs and Twinery for authoring the story.
The project snowballed and I ended up with the book in digital and physical book formats. The Web Book is created using another Org export backend.
Ten Dollar Adventure: https://tendollaradventure.com
Sample the Web Book (one complete storyline/adventure): https://tendollaradventure.com/sample/
I couldn't muster the effort to write a special org export backend for the physical books unfortunately and used a commercial editor to format these.
Twiorg: https://github.com/danishec/twiorg
ox-twee: https://github.com/danishec/ox-twee
Previous HN post on writing the transaction logic using an LLM in Emacs: https://blog.tendollaradventure.com/automating-story-logic-w...
Twinery 2: <https://twinery.org/> and discussion on HN: https://news.ycombinator.com/item?id=32788965
- Interactive Story - Branching Narrative - Pick Your Path - Create Your Own Quest - Personalized Plotline - Dynamic Storytelling
Stop whatever you are doing and do it NOW!
I no longer do game dev but I'm already sweating.
https://www.theverge.com/2020/11/25/21720533/netflix-banders...
When I looked into CYOA, I opted for Ink. It's using a nice text-based language, a bit like markdown. It worked well for me, and I think it's a good option if you want to use a text editor.
I wrote about my experiments here: https://laurent.le-brun.eu/blog/my-adventures-with-narrative...
Unfortunately, Apple and the others who have authored epub clients do not implement it correctly and behave as if non-linear pages are supposed to be some sort of footnote, and pop up models to display them, rather than just treating them as the reflowable content that they should be. Not marking them as non-linear is also problematic, because something about it seems off when you can just scrub through pages in linear order. It's unlikely to ever be fixed either, so the format itself is ruined for this purpose.
M-x dunnet
which has shipped with GNU Emacs since 1994.
https://en.wikipedia.org/wiki/Dunnet_(video_game)
Anyway, nice work!
I try everywhere I can to install an Emacs mode for code/text navigation. But they tend to be inconsistent and for some software, it is simply not possible.
Do you have good resources to help there (running Linux/Gnome)? Do you keep the faith or switched "out"?
I also use this plugin https://github.com/minad/consult which has the command `consult-ripgrep`, very useful for e.g. looking up all occurrences of the symbol at point (and text navigation across multiple files).
For "AI", start with https://github.com/karthink/gptel/ (its README lists alternative packages, as you can see there is no lack of llm support in emacs, both chat, "agents" and more specific use-cases)
Also, on the llm point even though I know elisp, and use emacs heavily, they can be great for creating little personal commands that just make things a little nicer to use (lowering the barrier of "I'll write a command for this" from 15 minutes to 2 minutes is huge and means I can be bothered to do it for more marginal things which makes the editor even more pleasant to use).
I think that the AI CLI agents are the response for AI, but for now, I am opening VSCode with an Emacs extension and some keybinding changes.
[1] https://github.com/emacs-mirror/emacs/blob/master/lisp/org/o... [2] https://github.com/tonyaldon/one.el
Daphne's eyes are brown, except in the supermarket scene, where they're grey.
How were the images produced?