Coding

All things computer programming related...

Map of A Campfire Tale

- Posted in Coding by

I continue working on a Sugarcube tutorial for my friend, Deonna. Here is a map of the Twine passage layout as of 4/14/2025. On that same date, source code (JS and twinescript/twee3) files come to 222 Kb.

Change font face and size in Twine with Sugarcue

- Posted in Coding by

Thanks to Josh Grams, I now understand how to set up players/readers of my twines with the ability to change font face and font size. Below I link to the scripts you need to drop, respectively, into the javascript and stylesheet special passages in the desktop Twine 2.10.0 app. Here is the zip containing the needed JS and CSS. I host a demo of this here and here, and mention it in my Twine Tidbits on the local copy of my blog.

A sugarcube widget to show the current passage's code-behind

- Posted in Coding by

Here is a widget for Sugarcube that will display the current passage's code-behind:

<<widget no-wiki>>
    <<print '<nowiki>' + Story.get(passage()).text + '</nowiki>'>>
<</widget>>

Happy Are The Harrassed for the Sake of Righteousness

- Posted in Coding by

Today's lesson: Happy Are The Harrassed for Righteousness Sake Matthew 5:10

Background text:

Zechariah 9:9
Matthew 21:1-11
Already examined by Jewish officials of the Sanhedrin (Matt. 26:57-67)
Already examined by Pontius Pilate (27:11-26)
Jesus is sentenced by the procurator to be crucified
Paul describes Jesus' voluntary humility (Philippians 2:6-11)

Run your own website-hosted Twine dev tool

- Posted in Coding by

You can run your own copy of the Twine development tool, either by hosting it on your website or by running it in XAMPP. For example, here it is running on my own website. And here is the 4 Mb download if you want a copy. I also have a copy here on my Onedrive.

Work project as of 28th March 2025

- Posted in Coding by

Below is a compressed arrangement of the nodes that make up my current Twine project for my employer. A downloadable zip archive of these images at full size is here. The following is an Osage version:

Perhaps you'd prefer the twopi version below;

Below is the neato version:

And finally, below I show the fdp version:

Recommended Reading

- Posted in Coding by

I highly recommend reading the following:

Implementation of a quiz in sugarcube 2.37.3

- Posted in Coding by

Here is code I developed in Twee3 format to implement a quiz in a Twine project using Twine 2.10.0 and Sugarcube 2.37.3 — utilizing three widgets I made, combined with passages that present quiz items.

Radio buttons are used for multiple-choice ABCD responses. It's a simple 10-item quiz. The $knight* variables are setup in the :: StoryInit passage of my Twee3 source.

Here is a download of the code, and below is a listing of it.

Proud to now be a Patreon supporter of HTMLy

- Posted in Coding by

I can certainly afford $3.18 monthly to support software that I love and use everyday. I may be the first Patreon member — not sure. Proud to show off my membership card.

Page 1 of 10