guide/crime5/typewrite.sh hinzugefügt
This commit is contained in:
17
guide/crime5/typewrite.sh
Normal file
17
guide/crime5/typewrite.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
type_text() {
|
||||
local text="$1"
|
||||
local delay="$2"
|
||||
local i
|
||||
|
||||
for ((i=0; i<${#text}; i++)); do
|
||||
printf "%c" "${text:$i:1}"
|
||||
sleep "$delay"
|
||||
done
|
||||
printf "\n"
|
||||
}
|
||||
|
||||
type_text "Willkommen im Escape Room..." 0.05
|
||||
type_text "Dieses Level wird dich testen." 0.03
|
||||
type_text "Viel Glück, Spieler." 0.1
|
||||
Reference in New Issue
Block a user