idmillington / undum

A client-side framework for narrative hypertext interactive fiction.
https://idmillington.github.com/undum
MIT License
336 stars 80 forks source link

Re-use on serverside using node.js ? #16

Closed jedi4ever closed 10 years ago

jedi4ever commented 11 years ago

Hi,

I've been exploring the idea of creating a server-side component of an interactive-fiction player. The idea is that the game/story state stays on the server side and the browser would receive update/triggers based on server events that are transmitted through f.i. socket.io.

This would allow collaboratively played sessions + the ability to interact with server-side calls/events. Think like a bot that is controlled from the clientside but performs actions on the server side.

Do you think it's worth exploring this with undum? Is there a way to take the z-machine and run it on the server-side?

thanks for putting me on the right track. (or maybe pointing me to other work)

idmillington commented 10 years ago

(I realise this is long overdue, sorry, but for completeness)

I never expected Undum to run server side. Undum is so heavily tied to DOM manipulation that it isn't easy to see how this could be done cleanly, without really gutting Undum. I think a better solution would start from scratch. I've done that before with varytale, and am experimenting with some similar ideas in dendry. Undum isn't a big enough library to worry about starting again, I'd say. It doesn't buy you much to start with Undum.