Open oubiwann opened 2 years ago
I created this in Twine: lobby-game.json.txt
I've used Twine before, and have enjoyed it for creating the tiny fragments of IF I've worked on before. Would be interesting to parse and convert to a format usable by lmud ...
Example basic parsing:
lfe> (set `#(ok ,json-bytes) (file:read_file "priv/twine/lobby-game.json"))
lfe> (set data (jsx:decode json-bytes '()))
lfe> (list-comp ((<- p (mref data #"passages"))) (mref p #"name"))
(#"Lobby"
#"Create Character"
#"Join Game"
#"Delete Character"
#"Manage Account"
#"Delete Account")
New way of doing the above:
(clj:-> "priv/twine/lobby-game.json"
(lmud-twine:read)
(lmud-twine:passages))
which gives:
(#"Lobby"
#"Create Character"
#"Join Game"
#"Delete Character"
#"Manage Account"
#"Delete Account")
Depends on:
62
Tasks: