Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local gpu = require('component').gpu
- local unicode = require('unicode')
- local abc = 'ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚'
- local tSize = {gpu.getResolution()}
- local tPos = {}
- gpu.fill(1, 1, tSize[1], tSize[2], ' ')
- local function create()
- z = math.random(1, #abc)
- return unicode.sub(abc, z, z)
- end
- local function line(x, y)
- z = math.random(1, 30)
- gpu.set(x, y-z, ' ')
- gpu.setForeground(0x00FF00)
- gpu.set(x, y, create())
- gpu.setForeground(0x008800)
- gpu.set(x, y-1, create())
- os.sleep()
- end
- while true do
- for i = 1, 6 do
- tPos[i] = math.random(1, tSize[1])
- end
- for j = 1, tSize[2]+8 do
- for k = 1, #tPos do
- line(tPos[k], j+k)
- end
- end
- shift = math.random(1, tSize[1])
- gpu.set(shift, 1, ' ')
- gpu.copy(shift, 0, 1, tSize[1], 0, 1)
- end
Add Comment
Please, Sign In to add comment