Hi all! I recently made a (quite complicated) IF game in Twine with Snowman and the fact that I couldn’t organize my HTML/CSS/JS code the way I wanted was something I found quite frustrating. As a matter of fact, I just did everything in a separate VSCode project and just copied/pasted all the time (had several minigames and a lot of logic so a lot of JS involved).
So, I came up with the idea of building a new minimal IF engine for choice/hypertext-based IF works, with basically 2 features:
-
Showing a graph of your story’s passages and letting you manipulate them, just like Twine
-
Having a “Build” button to export your game to a single HTML file, again just like Twine
The key difference would be that all of your files would be in your file system in a project folder and completely controlled by you/edited in the editor of your choice. Expanding on that, other features of the engine could be that creating a new passage in the graph view would create a new HTML file or folder in your project directory, where you could then write anything you want to appear on this passage (probably by using EJS in HTML), and even allowing you to have separate “js” and “css” folders inside each passage, further separating logic if necessary - I have many minigames in my stories, so that is something I’d love to have. Also, another feature would be tag-based logic, where you could have “semi-global” JS files that would be “appended” to all passages with a specific tag, allowing you to embed specific logic to specific passages.
All this is just an idea at the moment. I was wondering what do you guys think about it? Do you use code (mainly web technologies) a lot to customize your games like me? Would that be something you would use/be interested in? I would really love to hear your opinion on this. Cheers!