Moved scripts into separate folder

This commit is contained in:
Redo0
2019-01-16 14:58:01 -06:00
parent 9ae8714055
commit 7cca97e731
14 changed files with 173 additions and 179 deletions

View File

@@ -0,0 +1,13 @@
return function(gate)
if gate.ports[1]:isrising() then
gate.tickStarted = gate:gettick()
elseif gate.ports[1]:isfalling() then
local ticksOn = gate:gettick() - gate.tickStarted
local printid = ((ticksOn-1) % #textbrick_idxToPrint)
local printname = textbrick_idxToPrint[printid]
gate:cb("1\t" .. printname)
end
end