about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--lil/game.lil25
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