From 1c9e45ee19102d6607717389bdfb65d7db4bf727 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Tue, 2 Apr 2024 02:53:47 +0100 Subject: launch beescroll --- beescroll.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'beescroll.lua') diff --git a/beescroll.lua b/beescroll.lua index 6fed401..240e4e4 100644 --- a/beescroll.lua +++ b/beescroll.lua @@ -62,11 +62,18 @@ local function choice(list) return list[math.random(#list)] end +local function slow_write(m,s) + for i = 1,#s do + m.write(s:sub(i,i)) + os.sleep(0.1) + end +end + while true do local x = math.random(0,99999) m.scroll(1) m.setCursorPos(1,H) - m.write(("%5d bees have been %s in %s."):format( + slow_write(m, (("%5d bees have been %s in %s."):format( x, choice(verbs), choice(cities) )) os.sleep(1) -- cgit v1.2.3