Sparkle

Juhana Leinonen

Release 3

Source index

This is a feature index for the Inform 7 (build 6L02) source text of Sparkle release 3.

The language features are arranged roughly under the same headlines the Writing with Inform manual uses.

The index doesn't try to document every instance of every feature. When a feature is used in multiple places, the index points to a couple of the first or more interesting cases.

As with all programming, there are many possibilities for doing any given task. The solutions used in this source shouldn't be taken as the absolute correct method, nor should they be used as an argument for not doing things some other way.

The Source Text

Things and kinds

Properties

Text

Descriptions

Actions

Change

Time

Phrases

Relations

Adaptive text and responses

Adaptive text is a new feature of Inform 6L02 in 2014. The most visible use of adaptive text throughout the code is the token [we] (and variants) to represent the pronoun used to refer to the player character. With minimal effort we can now let the player switch between first and second person perspectives. Initially it was used also because the author wasn't sure which perspective the story should use by default, and this was an easy way to try it both ways before deciding. Note that because verb forms look the same for first and second person only the pronouns and not the verbs (apart from [are]) need to use text substitutions.

Numbers and equations

Tables

Understanding

Activities

Rulebooks

Lists

Testing and debugging

Releasing

Extensions

The story uses three extensions: Epistemology by Eric Eve, which comes bundled with Inform 7; Exit Lister by Eric Eve, which can be downloaded from the Public Library; and Achievements by Juhana Leinonen, which was created for this story but is a general-purpose achievement system, available from GitHub.

Story features

These are broader story features (as opposed to Inform 7 language features). Code for individual rooms and things can be found most easily by browsing the table of contents.