diff options
author | elioat <elioat@tilde.institute> | 2023-04-30 19:13:48 -0400 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2023-04-30 19:13:48 -0400 |
commit | 3ff2ba5a46877b7956a75ce1fcece69632016d52 (patch) | |
tree | 0631319d6919919fecaf9f6b35cf7ebd2f63f740 | |
parent | c5d26c499634c280696eba1c985e00259732ffa2 (diff) | |
download | tour-3ff2ba5a46877b7956a75ce1fcece69632016d52.tar.gz |
*
-rw-r--r-- | lil/game.lil | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lil/game.lil b/lil/game.lil new file mode 100644 index 0000000..daffc5d --- /dev/null +++ b/lil/game.lil @@ -0,0 +1,25 @@ +active_game:1 + +on listner do + show["B(anana)"] + show["A(pples)"] + input["> "] +end + +on process x do + if x ~ "B" + show["You said B"] + elseif x ~ "A" + show["You said A"] + elseif x ~ "Q" + active_game:0 + else + show[x, "unknown input"] + end +end + + +while active_game ~ 1 + user_input:listner[] + process[user_input] +end \ No newline at end of file |