Skip to content

Instantly share code, notes, and snippets.

@biehlio
biehlio / health.js
Created June 7, 2016 04:29
twine: dataset
(set: $char to (datamap: "Health", 5))
The characters health: (print: $char's Health)
Something happens and he lost 1 life.
(set: $char's Health to 4)
The characters health is now: (print: $char's Health)
@biehlio
biehlio / countdown.js
Created June 7, 2016 04:06
twine: countdown
(set: $num to 5)
(set: $slow to "too slow")
{(live: 1s)[
(set: $num to it - 1)
$num
You are approached by a beautiful woman, you:
* (if: $num is 0)[$slow](else:)[Say [[hello]]]
* (if: $num is 0)[$slow](else:)[Do a [[backflip]]]
* (if: $num is 0)[you must [[run]]](else:)[Just [[run]]]

Keybase proof

I hereby claim:

  • I am realdealbiehl on github.
  • I am biehlzebub (https://keybase.io/biehlzebub) on keybase.
  • I have a public key whose fingerprint is F9F5 E0CC 3B5A D2E8 40AD DB8E DD9E DA6E 8D13 3C7B

To claim this, I am signing this object: