A cross-platform game engine for creating narrative and story focused games.
Shraybn uses Lua for scripting game code, as well as Shrift, a custom scripting language for interactive dialogue.
Targets OpenGL, Vulkan, and Metal.
$is_set = false
[Start]
Character: This is some dialogue.
Character: It is time to make a choice.
* First choice [First Choice]
* Second choice [Second Choice]
[First Choice]
Character: You chose the first option.
$is_set = true
@goto End
[Second Choice]
Character: You chose the second option.
@goto End
[End]
{$is_set == true} Character: This dialogue only appears if a condition is met.
Character: You have reached the end.