This does not work at all XD! Needs work!

This commit is contained in:
2021-04-09 01:21:43 -04:00
parent 9938f4b48e
commit 7cbd00f241
5 changed files with 261 additions and 0 deletions

13
libraries/count_down.ks Normal file
View File

@@ -0,0 +1,13 @@
// This function alows you to specify a variable length countdown timer.
// Useful for all sorts of things!
function count_down {
parameter counts is 10. // Number of counts to do
parameter duration_per_count is 1. // Duration per each count
PRINT "Counting down:".
FROM {local countdown is counts.} UNTIL countdown = 0 STEP {SET countdown to countdown - 1.} DO {
PRINT "..." + countdown. // Print out the current count.
WAIT duration_per_count. // Pause here untill the duration is complete.
}.
}.