Posts

Showing posts from August, 2022

Lethe 0.1 Release

Image
I released Lethe 0.1  on itch.io yesterday.  You wake in a hotel room with absolutely no memory and must unravel the events that led to this point.  This is an early release that only  covers events before you leave the hotel. It should play well on mobile devices. I've tested it on my iPhone, tablet and a variety of browsers on Windows and MacOs.

Simple inventory using lists

Image
 At certain points in the game, the choices available to the player will depend on whether they have acquired or disposed of certain items.  This led me to explore creating a simple inventory system using Ink LISTs. Ink's LIST is an elegantly peculiar data type that has features of enums and sets found in other languages, and other capabilities.  A LIST declaration both declares a data type defining the possible values of the list and allocates a variable of this type. LISTs are manipulated using fairly intuitive operators, for example:  += to add values, -= to remove values, ? to query if the list contains values. The Ink official user's guide has excellent explanations of all the cool features of LISTs. You can add values specified in one list to another list.  LIST values can share names, but if they do, you must specify which LIST originates the value you mean.   It turns out to be quite possible to confuse yourself if you are not careful, but it is all quite powerful. I