Files
hank/examples/main/extra.hank

25 lines
778 B
Plaintext

// comments in Hank start with a double-slash
/* Or you can split comments
across more than one line */
/* Or you can use block comments inline */
~ var demo_var = "dynamic content"; // Hank scripts can embed Haxe logic by starting a line with '~'
~ var part1 = "haxe";
~ var part2 = "expressions";
~ var flag = false;
~ var word = "identical";
== choice_example
You can include choices for the player.
* Door A [looks promising!] opens and there's nothing behind it.
~ flag = true;
~ var what_happened = "mouse";
+ Door B []opens but the room on the other side is {word}!
* {flag}? Choices can depend on logical conditions being truthy.
-> final_choice
- -> choice_example // a hyphen gathers all choices to the same place.
// TODO what about default choices?