wait.dots
Purpose
This librairy keeps a dot inside the lib for a certain amount of time. Since every dot moves at the same time, it can be usefull to have one dot that waits untill an other completes an operation.
Usage
_
L+R
B
Parameters
L
: Entry for the waiting dotR
: output the L dot after waitB
: Number of ticks to wait.
Example
%!wait.dots W
.--W--$'The dot has waited 121 ticks'--&
.-#100--/
Notes
- The waiting time is changed to the following number of the form
22 + 33k
(with k positive integer), thus A dot will always wait at leastB
ticks, but it can be not exactlyB
- This doesn’t work at all in async mode
Source
The source code is availaible here . If something doesn’t work, do not hesitate to open an issue.