summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-04-02 02:53:47 +0100
committerubq323 <ubq323@ubq323.website>2024-04-02 02:53:47 +0100
commit1c9e45ee19102d6607717389bdfb65d7db4bf727 (patch)
treecc020782c7de341882f5fe0907ddebc7045040ef
parenta86a5f9dc3c9444c43727235edf29ac3fbf13c6c (diff)
launch beescroll
-rw-r--r--beescroll.lua9
1 files changed, 8 insertions, 1 deletions
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)