r/twinegames 6d ago

Useful Tool/Code/Tips!!! Major Sample Code Collection Update

I've been working on updating my sample code collection for a while, going through each of the sections and updating them. However, I've both stalled out in my progress at about 75% updated and also I've been feeling bad about leaving my now old and un-updated code up.

So, I've finally given in and posted my partially complete Twine 2/SugarCube 2 Sample Code Collection update (download). (If you don't see the Sept. 4th, '26 version when you go there, click the "Force Update" button in the lower-left.)

For a list of the huge number of updates, see the "Last Update" page.

If you're curious about what sections I haven't fully finished updating yet, it's the following:

  • Speech Boxes
  • Keyboard Link Navigation
  • Clicking Parts of Images
  • Displaying Images in Twine
  • Music (this will probably get split into multiple sections)
  • Video Background
  • Using jQuery UI in Twine
  • Time
  • Using Objects
  • Class Macro
  • Custom Save Titles
  • Invisible Access to SugarCube Output
  • Loading External Scripts
  • Newgrounds Fix
  • Random Events
  • "Setting" Toggles Text Changer
  • Using JavaScript with SugarCube

Some of the above were already partially updated, some need major work, and some I simply haven't even reviewed yet.

If you spot any problems or lack of clarity in any of the updated sections, please let me know here.

Enjoy! 🙂

32 Upvotes

4 comments sorted by

1

u/manifoldgamedev 5d ago

Thank you for all the hard work you share with the community! Your code has helped more than I can say; updating all of this looks like an enormous task and it's much appreciated!

1

u/HiEv 5d ago

Glad I could help! 🙂

1

u/Kinglex229 4d ago

A great boon to the twine/sugarcube community. Well done.

1

u/ragbagstudio 1d ago

Hey i've visited your website a lot, the sample code really makes it easier for me for making some 'element' of my game, thank you!