Skip to content

Instantly share code, notes, and snippets.

@joningold
joningold / database_game.ink
Created March 1, 2025 11:11
A bare-bones implementation of the ink for a "database" style game.
The post-it note on the computer reads "Spring, 1922".
-> hub
=== hub
~ temp allFiles = LIST_ALL(Files)
- (loop)
~ temp file = pop(allFiles) // pop is an ink function from the "Ink" menu
{ Files ? file: // have you seen it? let's list the ones we've found.
@joningold
joningold / gist:43065b56ca3227b625cbb8c7274cde1a
Created July 4, 2025 10:30
Looping conversation blocks using implicit threads
The space elevator climbs slowly towards the stars.
- (opts)
<- talk_to_my_companion(-> opts)
* I look out of the window...
* I whistle a tune...
=== talk_to_my_companion(-> return_to)
// create a tunnel, so conversation blocks can end with simple tunnel returns
-> options -> return_to
@joningold
joningold / gist:44b6a07999f5b7083e2fdb4d9f998335
Created June 9, 2026 15:26
Collapsable inventory system in raw Ink
LIST Inventory = (Key), (Torch), (Amulet)
VAR lastUsed = ()
-> dark
= dark
It's dark. You can't see.
- (top)
-> useSomething ->