Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local colors = require("colors")
- local component = require("component")
- local filesystem = require("filesystem")
- local keyboard = require("keyboard")
- local event = require("event")
- local modem = component.modem
- local gpu = component.gpu
- gpu.setResolution(160,38)
- local tx=5
- local b = 1
- local offset = -30
- local offsety = 3
- local number = 31
- local numbery = 7
- local py = 0
- local px = 0
- while b < tx+1 do
- b = b + 1
- local s ="╔══════ "..string.format("%2s",tostring(b)).." ═══════╗"
- local s2="╚═════════════════════════════╝"
- if b > 4 then
- py = (math.floor(b/5)* numbery) + offsety
- else
- py = offsety
- end
- px= (b-(math.floor(b/5)*5)) * number + offset
- arrgh=tostring(px) .." " ..tostring(py)
- gpu.set(px, py, s)
- gpu.set(px+5,py+2,arrgh)
- gpu.set(px, py+1, "║║║║║",true)
- gpu.set(px+30, py+1, "║║║║║",true)
- gpu.set(px, py+6, s2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement