News for hackers. Stuff that matters.
Re:Odyc.js – A tiny JavaScript library for narrative games by socalgal2 on Friday June 06, 2025 @11:44AM (#44202001)
Why is the title '...for narrative games'? The library's front page itself doesn't say anything about 'narrative' games.

For that matter, what is a "narrative game". None of the sample games would fit the definition in my head of "narrative game". If I google for "narrative game", the sample games certainly don't seem to fit.

And, assuming there is a common definition of "narrative game", what does this library do special to facility making "narrative games" that other game engines do not?

Re:Odyc.js – A tiny JavaScript library for narrative games by achtaitaipai on Friday June 06, 2025 @11:53AM (#44202091)
You're right, there are only two more "narrative" examples accessible via the French version of the site. I used the term because the turn-based structure and focus on messages, prompts, and dialogues felt suited to narrative or text-driven games, but maybe that’s not the best label. Happy to rethink it!
Re:Odyc.js – A tiny JavaScript library for narrative games by WorldMaker on Friday June 06, 2025 @12:40PM (#44202627)
"ZZT-like" would be the adjective/genre descriptor I'd use for this. It's a slowly forgotten genre these years (unlike "Rogue-like" and "Rogue-lite" you see being thrown around everywhere), but a classic genre of the early PC nonetheless.

https://museumofzzt.com/

Re:Odyc.js – A tiny JavaScript library for narrative games by achtaitaipai on Friday June 06, 2025 @05:50PM (#44205351)
I didn’t know about ZZT, but that makes a lot of sense now that I’ve looked into it. The format, simplicity, and screen-by-screen feel do seem closely related. Thanks for the reference. That museum is a great find!
Re:Odyc.js – A tiny JavaScript library for narrative games by WorldMaker on Friday June 06, 2025 @07:37PM (#44206127)
I recall Anna Anthropy's book on ZZT doing a great job of capturing the feel of the early PC ZZT scene and some of its AOL/CompuServe/Prodigy communities in the early 90s. Might serve as other bits of inspiration, if you like short history books: https://www.amazon.com/Boss-Fight-Books-Anna-Anthropy/dp/194...
Re:Odyc.js – A tiny JavaScript library for narrative games by socalgal2 on Friday June 06, 2025 @06:33PM (#44205681)
Was just curious if I was missing something that facilitated "narrative games" more than other engines.

It's a cool project. I like that your examples use ASCII maps. So simple to prototype. No need to break out a map editor.

Re:Odyc.js – A tiny JavaScript library for narrative games by SamBam on Friday June 06, 2025 @11:50AM (#44202070)
Indeed, I was assuming it was a text adventure engine.
Re:Odyc.js – A tiny JavaScript library for narrative games by 90s_dev on Friday June 06, 2025 @12:42PM (#44202642)
I was kind of hoping it would be for text based adventures,

since last night I had the idea for one,

where you're an adult and you have to do adult things

like file taxes and go to work and dust your house

and the less you do these things the harder life gets,

but the more you do them, the easier it gets,

and the goal of the game is to die with no debt.

Re:Odyc.js – A tiny JavaScript library for narrative games by hombre_fatal on Friday June 06, 2025 @12:51PM (#44202748)
You've got an idea. Now for the hard part: make it fun. :D Especially in a text-only medium.
Re:Odyc.js – A tiny JavaScript library for narrative games by 90s_dev on Friday June 06, 2025 @01:33PM (#44203184)
My only plan for that was to add shadertoys effects to the text. Not great hence I hadn't started.
Re:Odyc.js – A tiny JavaScript library for narrative games by hombre_fatal on Friday June 06, 2025 @02:21PM (#44203589)
Speaking of, check out this shader ascii text game I saw on Steam: https://www.youtube.com/watch?v=dfe3VK7H6uI

I kind of love the look.

Maybe with a new set of ansi escapes we can get Zork to look like that. :D

Re:Odyc.js – A tiny JavaScript library for narrative games by nihiven on Friday June 06, 2025 @04:13PM (#44204549)
That is cool! I like the look of this one too: https://andreifomin.itch.io/effulgence
Re:Odyc.js – A tiny JavaScript library for narrative games by hombre_fatal on Friday June 06, 2025 @06:07PM (#44205500)
Ooh, that's actually the game I had in mind!

It's so much more impressive. Those 3D effects are just insane. Just look at that 3D globe.

Re:Odyc.js – A tiny JavaScript library for narrative games by NetOpWibby on Saturday June 07, 2025 @04:07AM (#44208199)
That’s sick af
Re:Odyc.js – A tiny JavaScript library for narrative games by 90s_dev on Friday June 06, 2025 @03:12PM (#44204019)
That is really cool and inspires me and makes me want to play it and make stuff like it, thanks for showing it to me. I really do live under a rock it seems.
Re:Odyc.js – A tiny JavaScript library for narrative games by spencerflem on Friday June 06, 2025 @08:31PM (#44206413)
Ink language & their IDE make it very easy to get started with choice games ! And it exports to HTML/Js where you can add further visual effects via custom JavaScript.

Highly reccomend, its so good that it takes all the fun out of designing my own janky custom system.

Re:Odyc.js – A tiny JavaScript library for narrative games by shakna on Friday June 06, 2025 @09:12PM (#44206588)
Unfortunately Inky has a showstopping bug I and a few others have hit. [0]

And it breaks the IDE until you somehow uninstall it and every dependency. And kill all its temporary files.

[0] https://github.com/inkle/inky/issues/522

Re:Odyc.js – A tiny JavaScript library for narrative games by spencerflem on Friday June 06, 2025 @11:51PM (#44207290)
Awww, rip. Hadn't hit that one while I was playing with it.
Re:Odyc.js – A tiny JavaScript library for narrative games by 90s_dev on Friday June 06, 2025 @08:53PM (#44206502)
Thanks for the recommendation, I never would have guessed someone made something like this! But of course they did.

I was definitely wondering how I would do this outside of Excel, but I have so many projects going on right now that figuring this one out didn't sound fun :D

Re:Odyc.js – A tiny JavaScript library for narrative games by dunham on Friday June 06, 2025 @10:30PM (#44206946)
There is also twinery or inklewriter for simple text stories with an online authoring option. And Inform7 for full on text adventures, where you write the stories in a declarative manner as plain english.

https://twinery.org

https://inklewriter.com

https://ganelson.github.io/inform-website/

Re:Odyc.js – A tiny JavaScript library for narrative games by spencerflem on Saturday June 07, 2025 @12:00AM (#44207319)
I like squiffy as well, though its not as popular or elegant. Possibly just nostalgia.

& Evennia is very cool if you want to make a multiplayer one!

One of these days I'll try out Inform7 it seems so cool but haven't had an idea for a game that could use it yet

Re:Odyc.js – A tiny JavaScript library for narrative games by hombre_fatal on Friday June 06, 2025 @12:54PM (#44202785)
I think the idea is that it gives you a declarative way to build simple adventure games with text and dialogue.

Its selling point isn't for building mechanics-first games like a more general engine (e.g. Pico-8).

But what you can do is easily make maps, a character that walks between maps, NPCs, and triggers for dialogue/text.

Consider other engines aimed at non-programmers like RPGMaker: the main games people make with it are "narrative games" where you walk around and read text/dialogue, usually with zero additional mechanics outside of the built-in map + trigger system. It's probably 90% of games built with it!

So I'd reckon they're saying "you can build those games with this tool too".

Re:Odyc.js – A tiny JavaScript library for narrative games by RodgerTheGreat on Friday June 06, 2025 @06:57PM (#44205883)
A closer comparison than Pico-8 might Bitsy or PuzzleScript, but with all the power (and complexity) of arbitrary JavaScript code underneath.
Re:Odyc.js – A tiny JavaScript library for narrative games by dicytea on Friday June 06, 2025 @03:11PM (#44204015)
From the intro[^1]:

> Odyc.js is a tiny JavaScript library designed to create narrative games by combining pixels, sounds, text, and a bit of logic.

[^1]: https://odyc.dev/doc/getting-started/intro