r/twinegames • • Jul 08 '25

Game/Story My 1.3 million word fantasy Twine game, Shepherds of Haven, released its public demo today!

Thumbnail
gallery
277 Upvotes

Hi everyone! After years in development, I'm excited (and mildly terrified) to share that the public demo for my game Shepherds of Haven is now live and available on itch.io! This has been a passion project and labor of love for many years; I tend to feel very shy about self-promotion, so I've mostly kept to my personal blogs on Tumblr and Patreon, but I'm trying something new by venturing out and talking about it on Reddit now! :)

About the Game:

Shepherds of Haven is a choice-based, dark fantasy interactive fiction game created in Twine SugarCube. Drawing inspiration from narrative-heavy games like Dragon Age, Persona, Fire Emblem, and the choose-your-own-adventure games of TellTale, it offers hundreds, if not thousands, of different ways to influence the world and story of the game through your choices.

Story:

You're a Mage living in a world that hates magic—until demons return after centuries of absence, and suddenly your powers are in dire high demand. You join an elite demon-fighting militia called the Shepherds, tasked with defending humanity... even if it doesn't want your help. Along the way, you’ll investigate murders and conspiracies, recruit allies to the Shepherds' cause, find companionship and romance, and define what kind of hero—or threat—you want to be.

Features:

  • 1.3 million words (without code)

  • Customizable protagonist

  • A cast of 15 recruitable companions, 10 of whom are optionally romanceable

  • An original soundtrack by Ivan Duch

  • Fantasy art, interactive maps, and a lush medieval UI

Play the demo: https://manifoldstudios.itch.io/shepherds-of-haven-public-demo

I started making this game as a writer by trade, with no training or background in code or programming--I've been muddling along completely self-taught, so rolling out a demo like this feels like a huge milestone for me! I'm very grateful to tools like Twine and ChoiceScript, which allowed someone like me to make a game like this; and I'm so happy that there are people who enjoy the genre of interactive fiction like me as well! Thank you if you decide to give the demo a try, and I hope you enjoy!


r/twinegames • • Jun 13 '20

Game/Story I made a pokemon style combat system in twine starring cats (Catfight)

162 Upvotes

r/twinegames • • Aug 06 '25

Useful Tool/Code/Tips!!! Warning about using ChatGPT or other LLMs to generate Twine Code!

120 Upvotes

As AI becomes more popular and integrated into our daily lives, we can see more and more people relying on it to tackle their daily problems. Many who are just starting out with Twine might also turn to an LLM of their choice to help them with coding and troubleshooting, but this sadly runs into a number of issues.

ChatGpt and similar large language models rely on a certain amount of data to give reliable information on a topic. Since there is not enough data available when it comes to Twine and its various story formats, AI will consistently give wrong or vastly misleading answers when it comes to Twine code. It will often interject overly-complicated chunks of Javascript, or mash together Code meant for two different formats for example. Even in cases where these solutions seem to be working at first, there is a high likelihood that they might produce bad errors in the long run.

Instead of relying on AI to answer your Twine-related issue, we would therefor recommend turning to the Twinegames subreddit or the Twine Discord server if you have any questions. There are many talented members of our community waiting to offer their support and knowledge.

Additionally - If you have problems with AI-generated code, and want to ask for advice on how to fix it, please consider just asking directly what you'd like to accomplish, instead of posting the broken code. Chances are it is not really fixable, and you will get faster replies and advice if you just left it out entirely.

Thanks for reading - and have fun creating your Twine-story!


r/twinegames • • Aug 23 '25

General HTML/CSS/Web It's always the Simplest Things that feel the Sweetest

116 Upvotes

I've been working on the UI for my Twine Sugarcube game Orphan, and it's always the simplest things to feel the sweetest to implement. Little animations and images that ever so subtly enhance the atmosphere of the overall experience.

Most of them end up taking more effort than I go into it expecting! But the rewarding feeling when it all comes together usually makes it worthwhile. Learning more HTML, CSS and JavaScript has been quite fun, too. As some of you know, LLMs struggle with Twine so if you use them, there's A LOT of troubleshooting that goes into it. Which honestly isn't a bad way to learn, piece by piece.

Anyway, I'm sure no one will think this gif is cooler than I do.

Thought I'd share nonetheless!


r/twinegames • • Apr 13 '22

Discussion Twine is a great tool and I’m thankful that it’s free.

116 Upvotes

That is all. It rules.


r/twinegames • • Mar 09 '21

Harlowe 3 Interactive Fiction with Twine (tutorial series)

107 Upvotes

Hey everyone, My name is VegetarianZombie. I produced a bunch of YouTube videos on learning both Harlowe and SugarCube on my YouTube channel back in the day (linked on the sidebar). I'm in the process of putting together a written tutorial (book?) for Harlowe, free for all.

The first part is complete. You can find it here: https://www.jezner.com/twine-2-tutorial-series/

At some point, I'll put this in a Github repo. For now, it'll hang out on my site. Feel free to send any feedback.

Cheers!


r/twinegames • • Apr 20 '26

Game/Story I made art for my first game!

Post image
92 Upvotes

Hey everyone! I'm back again with more of my completely normal knight game, and I've completely revamped the speech system so that it uses text boxes instead of colored text. My next update, which will hopefully be soon, will add a new path for chapter 2 as well as even more art for the game!

[Play here!](http://ttem.itch.io/a-totally-normal-knight-game)


r/twinegames • • Aug 16 '22

Twine Interface If someone had told me I could do this with Tweego + VSCode I would have switched a million years ago! 🤯

Post image
90 Upvotes

r/twinegames • • Nov 19 '21

Event I need your help

79 Upvotes

Hi, everyone.

I hate that I have to ask for help like this, but right now I'm at tremendous risk of homelessness.

I have some severe anxiety problems which make it very difficult for me to help myself, and now I'm currently unemployed and a month or more behind on all of my bills. My phone is already disconnected ($225.14 past due), so I can't even set up a GoFundMe or apply for assistance with most places, since you need a working phone for that.

So, if you're able, I need some funds quickly so I can get back on my feet, and I also need any other advice or assistance you can provide. (links below)

I'm currently living in the NW Austin, Texas area. If anyone could help with providing a job, room and board, money, information on how to get assistance, anything, I'd be greatly in your debt.

If you have a Twine/SugarCube game you want me to polish, a website front end you want improved, or know of a technical support position needing a worker, I'm willing to do that kind of work.

Right now I don't have a car, I barely leave home, and I'm just about to walk to the store a mile away to spend the last $100 I have in cash on food, since I've only eaten fruit snacks and antacids for the last two days. I still have an out of state driver's license (when I moved to TX a year ago there was a 4 month waiting list for driver's license renewals) which I'd also need to get transferred before I can apply for unemployment, and I don't even have the ability to get to the DMV.

I'm at my wit's end. My body is been burning with adrenaline due to fear most of the time, with my fight-or-flight instincts kicking in, and I don't know what else I can do about it.

This is my last resort. So please, if you have some money you could spare and are willing to help out, I'd greatly appreciate it. If you have employment, then that's even better. Any advice would be helpful too. Or, if you have none of the above, even a good joke would help lighten the mood.

You can donate here: PayPal link (preferred, since Patreon only pays out at the start of the month) & Patreon link

If you need further details or have private information for me, please private message me here.

Thank you.

EDIT: See update #1 below.


r/twinegames • • Nov 18 '25

Game/Story My Attempt at Character Creation in Twine

77 Upvotes

My original implementation of "character creation" in my dark fantasy CYOA Orphan was simple. You could assign 2 stat points; that was it. And that's still part of the process, but I greatly expanded it.

Now, I present the player with 6 archetypes.

The Runner - "Fate at your heels, swifter yet."

The Pit-Hound - "Teeth bared; you were born to bite back."

The Blackbrand - "Old fire in your veins; the world will learn to fear the warmth."

The Enforcer - "Weight is your language; the weak will listen."

The Cutpurse - "Hands like moths; light becomes a door."

The Apprentice - "Ink in your blood; every thought, a weapon waiting."

Every archetype embodies a different combination of stats, physical traits and presents a new approach to the game. Each of them can embrace any of the 3 dialogue archetypes (Bastard, Cowboy, Knight), to varying degrees of believability.

And of course, you can "Defy the Scale", which is Orphan's version of custom creation. Choose your own combination of stats and physical traits without any expectation. You might've noticed, you can't change EVERYTHING about your character.

The idea in Orphan is that you're inhabiting a pre-existing soul. There are things that you don't have complete control over. That's life. You roll with the punches and play the hand that you've been dealt.

That's part of the core philosophy of the game.

Do you think I did it justice?

Of course, this took a lot of tinkering with CSS, JavaScript and HTML to get working. But I'm always trying to improve the overall atmosphere and experience of my game. I want every player to feel like they're carving out their own 'orphan', regardless of circumstance.

You can play Orphan for free. It has over 230k words total. There are two main branches (Gladiator or magick Ascender). There's an extended version on my patreon if you want to support the development. It has been a really rewarding experience overall.

If you're thinking about using Twine, I couldn't recommend it enough for starting game dev. You could always shoot me a message here or in my Discord if you want to chat. Cheers.


r/twinegames • • Aug 22 '22

Discussion The most impressive Twine game you've played

73 Upvotes

I'm just designing my first game, having played some great games so far! I just wanted to know what the best/most impressive Twine games were for you? The ones that really blew you away? I'd love to get inspiration from the very best now I've got the fundamentals of my game designed. I'd love to hear personal favourites too!


r/twinegames • • Apr 11 '22

SugarCube 2 probably not the way twine wants to be used

73 Upvotes

r/twinegames • • Feb 15 '21

Useful Tool/Code/Tips!!! SugarCube vs Harlowe in 2021

71 Upvotes

Please see the updated version of this post here.

Preamble

Last year, I answered a question about which is "better" between Harlowe and SugarCube, see that response here. Harlowe has changed drastically in v3.2.x, so some of that information has become outdated.

Because the original response was somewhat frequently linked to, I wanted to update it for 2021. This post is that.

Introduction

You should try out the various options before settling on anything, it will probably be worth your time to do so. But overall, SugarCube is hard to go wrong with and easy to recommend and Harlowe has some issues and limitations that hold it back.

Chapbook and Snowman will not be addressed in this comparison, as they exist more on the margins, but they're worth trying out as well.

Comparison Between Harlowe and SugarCube

The core feature set is fairly similar. Harlowe has the thinner feature-set overall. It has more macros, but that doesn't tell the whole story, as Harlowe has a tendency to combine several macros together into a single one, or it will feature macros for basic data types or other simple operations, where SC will typically use JavaScript syntax. E.g., in Harlowe, you make an array with the array macro, (set: $arr to (array:)). In SC you instead use the literal, as you would in JS, <<set $arr to []>>.

For more on the specific diffrences in syntax and features, you can see this section of the SugarCube documentation.

It's also worth mentioning that Harlowe v3.2.x now features a toolbar with tons of features and functionality that can help new users write better code more easily. While this is a pretty neat idea, I don't think it changes much outside helping very new users get their foot in the door. Still, it's worth mentioning that the editing experience in the Twine 2 app is better in Harlowe between this toolbar and syntax highlighting, where to get similar features in SugarCube, you'll need to use a third party app, like VSCode (if you're interested, here's a great VSC extension).

That's just on the macro and markup side though. Harlowe completely lacks:

  • Any way to control the state history, which means longer Harlowe games will always start to lag and there's nothing you can do about it.

  • Audio support. (See below.)

  • Any configuration options in general. Harlowe is set up the way it is and any changes to its basic functionality typically need to be hacked into the engine.

  • Any JavaScript-facing APIs. You can leverage JavaScript code, but your code, by design, is never allowed to access Harlowe's engine. Even if you hack your way in, Harlowe is a field of rakes and its very easy to fuck up. (See below.) Update for 2021: this situation is markedly worse in 2021 as Harlowe macros no longer support any JavaScript at all, meaning useful methods and functions, and even patches and fixes and examples in the Twine Cookbook, are totally broken as of version 3.2.1. This does not appear to be a bug. This limitation makes Harlowe even less extensible, and makes certain bugs in the engine, like the bug that reloads maps as arrays, impossible to fix outside an official patch.

  • Because of the above, Harlowe is not really extensible. You can't really add functionality to the engine like new macros, and no sort of code extensions are supported by default. (I have created an unofficial framework that allows some interaction with Harlowe's engine from JS, but I stress that its built on hacks and dreams. See below for link.) Update for 2021: Harlowe now supports custom macros via a new macro. This feature is more similar to SugarCube widgets than true custom macros, but it is an improvement for sure.

  • Harlowe has no built-in features that help with code reuse other than the (display:) macro. There is no built-in way to reuse code by creating custom macros, widgets, or even really functions. It's a very tightly closed system. Update for 2021: As mentioned above, Harlowe now supports custom macros.

  • Harlowe is inexplicably not responsive. It would not be hard to make it responsive. It just isn't and no one knows why. Update for 2021: This continues to be an issue in 2021, inexplicably.

Harlowe has other problems, too:

  • Things like 1-based arrays and expressions that try to preempt errors you may have made introduce bugs and unexpected behaviors, and often don't help novices much to justify it.

  • Harlowe uses custom elements for everything. This means that without a rather sophisticated knowledge of the engine or of your browsers dev tools, adapting CSS you find online is challenging. Not great for a self-styled newb format.

  • Harlowe does not give a shit about performance. Everything is always deep cloned. Merely accessing an array causes it to be cloned, which makes basically every operation on any non-primitive data-type significantly slower than it should be. You can iterate over complicated data structures with thousands of entries with no noticeable performance impact in SC. If you try to iterate over a basic array of 100 elements in Harlowe you'll see it struggle to load the passage. Update for 2021: This situation is not improved in 2021, and certain new macros seem even more sketchy in terms of performance than before.

  • Bad ideas. I am not skilled enough to make something like Harlowe, but the way that (click:) style macros and the way the (event:) macro works are insane. They're these massive performance killers in a format that already has tons of performance issues, and doesn't let you configure it at all to alleviate any of them. That's a lot of sharp edges to give users.

  • Block-based elements render incorrectly. This seems like it will never be fixed. Update for 2021: Like with the lack of mobile support, this continues to be an issue.

  • I'm adding this in 2021, but it's been a problem since before the last post: when saved data is loaded as a part of session preservation or from a saved game, data maps are erroniously loaded as arrays. I wrote an unofficial patch that fixed this, but because Harlowe no longer allows JavaScript to be written in macros, that patch does not work on any versions of Harlowe higher than 3.2.x.

If it seems like I'm dunking on Harlowe, I am, but not because I don't like the format, more because I find it frustrating and I think its design is at odds with itself. It's fine for basic choice-based interactive fiction. SugarCube is designed for that too, but at least meets you halfway if you want a combat system or an inventory or resource management or random loot. Harlowe really doesn't, and if you want anything more complicated than some dynamic stuff here and there, you will be actively working against the format rather than with it.

In 2021, Chapbook is, in my opinion, a better option for a more limited, opinionated, and simple format, though be warned that it is even more limited in certain ways (though unlike Harlowe, it is extensible).

All that said, I do think trying both formats out is worth your time, and it may be worth it to try out Snowman and Chapbook too. Harlowe's hook based syntax is great to work with if you don't need anything beyond what it provides and you can deal with its foibles. And SC (and the other formats) are not perfect either, and I could come up with a pet peeve list for each if I wanted to. But I'd be lying if I tried to say the issues I have with Harlowe aren't more severe.

The "see below" stuff:

I have written an unofficial custom macro API for Harlowe: https://harlowe.twinelab.net/ Update for 2021: some features of this library may no longer work in v3.2.x and higher.

I've also created an audio library for Harlowe: https://hal.twinelab.net/ Update for 2021: some features of this library may no longer work in v3.2.x and higher.


r/twinegames • • Jun 17 '21

Game/Story The iCarly RPG has been released. An interactive horror text-adventure about iCarly.

Thumbnail
icarlyrpg.itch.io
69 Upvotes

r/twinegames • • 15d ago

Useful Tool/Code/Tips!!! r/Twinegames rule #1: Be nice

68 Upvotes

Apologies to those of you who don't know why this post is here. Let me explain.

A user here has repeatedly contributed posts which were one word long, rude, and insulting. They were asked to stop being rude like this, and to post actual constructive criticism, if they had any, instead. You know, to basically act like an adult.

This was, apparently, a hill too far for them. They then wrote a whole post where they acted like being told to follow the rules here had something to do with the fact that they were complaining about AI usage.

It did not.

The topic was irrelevant. The point was that they were repeatedly being uncivil and lazy.

They were asked to stop that and respond more civilly. Specifically they were told, "If you have a legitimate complaint, you're free to make suggestions. That's fine. However, if all you're going to do is post one word complaints, then you aren't adding anything useful here," and that, if they persisted, they would be banned.

They responded to that with "Ban me cunt" (sic.; which they later edited to say something only marginally more polite so they could screenshot it).

So I did. I also took down their whining post which lied about what happened (and was also off-topic here).

However, other people did not have the full context of what happened, and they blindly listened to the person complaining, without actually verifying what they'd said and/or thinking too deeply about what happened. Which then lead to another post from someone else commenting on the incident, which I then also had to remove (again, off-topic).

So now I'm posting this to clarify what happened and to halt further posts.

What happened was someone was persistently rude, violating Rule #1 here, and they were asked to stop. Three separate times. They then responded the third time by doubling-down on being rude, so got themselves banned. The same as would have happened to anyone else who acted that way.

The fact that they were complaining about AI usage had NOTHING to do with it. Other people have had civil discussions here complaining about AI usage in games, and I haven't had to say a single word to them about it because they were polite and provided constructive criticism.

TL;DR: If you want to make to make polite comments, even when it's constructive criticism, that's 100% fine. However, repetitive low/no-effort, insulting, rude comments are not allowed per Rule #1: Be nice.

(This thread is locked, because there is no argument against "Be nice.")

EDIT: It looks like someone is abusing the reporting system now, reporting a game as violating the "No AI generated and/or bot posts or comments" on a post that was not generated by AI or a bot. These reports will be ignored, as they are simply and obviously untrue. Please note that I am able to see who sends these reports and can thus ban people who abuse the reporting system. Please do not do send false reports unless you'd also like to be banned.

EDIT 2: 🤦‍♂️Banned one user for falsely reporting this post.

EDIT 3: Escalated the issue of more false reports to Reddit's administrators.


r/twinegames • • Feb 24 '19

Useful Tool/Code/Tips!!! Collection of tutorials I've found useful while starting to learn Twine 2

65 Upvotes

Hi Everyone,

Been lurking around collecting tutorials from this forum and elsewhere. Thought it might be nice to share my list. Most is in Harlowe in Twine 2, but there are a couple which are sugarcube.

Hope this is helpful to others starting out.

Will update if I find any others.

190226 - updated

190305 - updated with sidebar tutorial

190319 - Arrays and Tables tutorials - expect more! This stuff is a mindbender for me.

190324 - Sidebar added

Absolute Basics (Introduction)

https://twinery.org/wiki/twine2:guide

Another Basics

http://selfloud.net/HarloweWorkshop.html

Another Intro Basics Series (featured on the twine news page)

https://damonwakes.wordpress.com/category/articles/twine-for-beginners/

Another basics guide but for sugarcube - but still useful

http://www.adamhammond.com/twineguide/

Basic RPG tutorial

Part 1 (named part 2) http://lambdamaphone.blogspot.com/2015/02/using-twine-for-games-research-part-ii.html?q=twine

Part 2 (named part 3) http://lambdamaphone.blogspot.com/2015/03/using-twine-for-games-research-part-iii.html?q=Twine

Commenting

https://twinery.org/forum/discussion/5071/how-to-comment-commenting-syntax

Tip - Getting rid of blank lines from code - use curly brackets around the code! { }

Set character name (and other inputs)

http://twinery.org/questions/1453/how-could-i-have-a-character-ask-the-player-their-name

CSS and formatting aka making it look pretty

https://furkleindustries.com/fictions/twine/twine2_resources/twine2_CSS_tutorial/

http://twinery.org/forum/discussion/4797/basic-harlowe-passage-tag-based-styling

http://teamjenke.com/britne/twine-2-harlowe-css-link-colors/

https://twinery.org/wiki/harlowe:text-style

Sidebar

http://twinery.org/forum/discussion/comment/13091/#Comment_13091

Macros

https://twinery.org/forum/discussion/2620/a-tutorial-to-twine-macros-if-set-and-click-for-twine-2-0-harlowe

Importing images into Twine

https://twinery.org/forum/discussion/3044/how-to-import-images-into-twine-2

The parsing problem with hooks!

https://twinery.org/forum/discussion/5166/how-to-link-passages-in-if-statements

Building a combination lock

https://www.instructables.com/id/Building-a-Combination-Lock-in-Twine-2-Harlowe-2/

Space Game (highly recommend)

https://www.youtube.com/watch?v=DvOPqJzXWgo

Combat System

https://www.reddit.com/r/twinegames/comments/3mq2rs/combat_system_in_harlowe_my_twine_2_guide_3/

Inventory System

https://gersande.com/blog/designing-inventories-in-twine-2-with-the-built-in-harlowe-macros/

Arrays and Tables (Under Construction)

Try the inventory system by Gersande first

Dungeon map tutorial - helps with the basic understanding - https://www.youtube.com/watch?v=lPcI784mTh0

Footer

https://louisemclennan.wordpress.com/2016/10/18/adding-a-footer-in-twine-2harlowe/

Displaying Info in the Sidebar

https://www.reddit.com/r/twinegames/comments/7b1o6c/simple_sidebar_for_harlowe/

https://gist.github.com/avramovic/ba9832e58b8ee91f9323bc5cb9a6df07

Some Useful tips

https://blogs.stockton.edu/textscape/files/2015/04/A-Twine-Cheat-Sheet.pdf

Interesting Reigns game project

https://www.reddit.com/r/twinegames/comments/ais726/how_could_i_use_twine_to_build_a_game_like_reigns/

Progress Bar (sugarcube)

https://www.reddit.com/r/twinegames/comments/aaiq40/exp_bar_help/


r/twinegames • • Sep 01 '25

Harlowe 3 i cant really write well so ignore the actual text content but i figured out how to make custom tooltips

64 Upvotes

i made a custom macro that just applies the hook to whatever text for most cases (redundant but necessary for me) but i can use the hook itself to put macros in my tooltips, like my random babble generator or timer! none of this is really technically impressive but i havent coded before so at least it works


r/twinegames • • Aug 12 '25

Discussion Finish what you started!

Post image
60 Upvotes

Before my current project of making a no-code visual novel editor, I would bounce from one project to the next. Only once I kept doing one project for a long period of time without giving up did I feel relief. You probably had the same feeling, finally publishing your work after a long grind(even though there's things that still need to be fixed). But for those that keep bouncing, try to at least work at it for one month, 29 days. Keep working guys!


r/twinegames • • Sep 21 '25

Game/Story My first game on itch.io made with Twine is now published!

Post image
53 Upvotes

r/twinegames • • Sep 09 '21

Game/Story [Game Launch] Wayfarer - a Dark Fantasy IF

53 Upvotes

Hi all,

My dark fantasy game, Wayfarer, launched today and I thought I'd share it here! I've been working on it off-and-on for about a year and it's come a long way from the original idea.

The game merges storytelling prose with RPG elements, like dice rolls on your skill checks, an interactive map that lets you choose which location you want to go to, timed choices on key decisions, and lots of branching player choice.

You can check it out here: https://idrellegames.itch.io/wayfarer

Story

When your mercenary work backs you into a corner, you take the only option available and accept a contract: to travel to the city of Velantis and steal an ancient artifact said to be blessed by the gods. Simple, right?

But Velantis holds more than you bargained for. Gathering a ragtag party of malcontents and renegades from across the city, you must navigate enemy factions, meddling guilds, and escalating political tensions. Your choices will ultimately determine the city’s fate – and the fate of every person who lives there.  

Features

  • Create a fully customizable protagonist (selecting gender, pronouns, name, ancestry, origin and appearance)

  • Upgrade 4 skills which will determine your successes and failures. Skill level is mixed with a dice roll on skill checks, adding an element of risk vs reward to your choices

  • Recruit companions, build your relationships, and perhaps find romance (romances are optional)

  • Build rapport with 6 factions and choose whether to support or betray them

  • Encounter timed choices on key decisions, with alternative results if time runs out or you choose to abstain

  • Build a codex as you explore the world and encounter people, places, history, lore, magic and monsters

  • Navigate thousands of branching choices for a unique, re-playable experience and story

Release

The game releases episodically. Currently, the Prologue and Chapter 1 are available to play, which is roughly around two and a half hours of playtime.

Content Warnings

Just a quick warning that the game does contain depictions of fantasy and medieval violence, character death, mature language, sexually suggestive themes, and drug and alcohol use.


r/twinegames • • Apr 20 '26

SugarCube 2 950,000 words in SugarCube 2 — lessons from building Blue Swallow NSFW

51 Upvotes

Three years ago I started building an interactive fiction spy thriller in Twine using SugarCube 2. The current build is over 950,000 words across 760+ passages, and I've learned a lot about what SugarCube can and can't handle at scale.

Blue Swallow is set in Manila. You play as a young woman who goes undercover to find her missing mother. There's a full character creation prologue (childhood through university), a semi-sandbox Act I with five simultaneous quest pillars, and systems for espionage, club work, investigation arcs, and honeypot target cultivation. The game tracks personality on a reactive scale, organizational suspicion across interactions, intel gathering that feeds into mission triggers, and stat-driven gating throughout.

A few things I've figured out building at this scale:

What SugarCube handles well: Complex variable tracking across hundreds of passages. The $People object structure lets me track relationships, intel flags, and NPC states cleanly. SugarCube's widget system has been essential — I've built custom macros for dialogue, branching choices, progressive text reveals, stat changes, and encounter tracking. The <<linkexpand>> pattern (click a word, it expands into more content) is my core pacing tool and it works beautifully for controlling narrative rhythm.

What gets painful: File size. The compiled HTML is massive. Managing passage naming conventions across 30+ .tw files requires discipline. Testing every branch path manually is the biggest time cost in the project — there's no automated testing for narrative logic, so I walk every branch by hand before release.

What I'd tell someone starting a large SugarCube project: Invest in your variable architecture early. Name passages with a consistent prefix system (quest ID + descriptive name). Build widgets for anything you'll use more than twice. And track your state changes — when you have 280+ points where a pregnancy check fires or 78 major branching decisions, you need to know exactly where every variable gets set and checked.

Note: this is an adult game with explicit content. Mentioning it because I know that's not everyone's thing, but I wanted to share the technical side since there aren't many Twine projects at this scale.

Free public build (a version plays in-browser): https://www.patreon.com/posts/current-releases-113680890

Curious if anyone else here is working on large-scale SugarCube projects — would love to compare notes on how you manage complexity.


r/twinegames • • Jul 07 '21

Game/Story I developed a D&D interactive fiction game book using Twine

Thumbnail self.dndnext
50 Upvotes

r/twinegames • • Jun 12 '26

SugarCube 2 Updated visuals for my retro-cyberpunk game.

49 Upvotes

Previos post, so you can check up changes. I fixed look of everything, made crt effect to entire screen, fixed links, now it's green, white and red glitch effect. Not blueish as it was. Also new windows.

I want to put battle mechanic into right bar 'hack.sys'. I wonder if it would be enough. Maybe change to flex, so when there is only story window and hack window, will fill the empty space in between.

Or use footer where is hack console emulation, to show progress of battle there.

Ideas? Thoughts? What would be better?


r/twinegames • • Nov 29 '23

SugarCube 2 Any feedback for my day/night cycle animation that I already spent way too much time on?

49 Upvotes

r/twinegames • • Mar 16 '23

Useful Tool/Code/Tips!!! What do you wish you knew about twine before beginning your project?

46 Upvotes

I'm thinking about starting a new Twine project, and I know a lot of people here have some familiarity with it. I've tinkered with it off-and-on, and know that there's some big decisions to make at the start of a project, so I thought I'd ask if anyone had some thoughts.

-What do you wish you knew about Twine before beginning your project?

-Which version of Twine do you prefer and why? Harlowe, Sugarcube...?

-How do you handle image embeddings? Do you bundle them with the twine file, or do you link to the images? If you link, where do you host the images? (Does any of this effect how tfgames.site handles the release)?

-Why can some games be launched directly through the site, and others need to be downloaded? (and is that related to image embedding?)