Advertisement
Guest User

full code

a guest
Aug 23rd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.15 KB | None | 0 0
  1. local colors = require("colors")
  2. local component = require("component")
  3. local filesystem = require("filesystem")
  4. local keyboard = require("keyboard")
  5. local event = require("event")
  6. local modem = component.modem
  7. local gpu = component.gpu
  8. gpu.setResolution(160,38)
  9.       local tx=5
  10.       local b = 1
  11.       local offset  = -30
  12.       local offsety   = 3
  13.       local number  = 31
  14.       local numbery   = 7
  15.       local py = 0
  16.       local px = 0
  17.       while b < tx+1 do
  18.         b = b + 1
  19.         local s ="╔══════         "..string.format("%2s",tostring(b)).."     ═══════╗"
  20.         local s2="╚═════════════════════════════╝"
  21.         if b > 4 then
  22.           py = (math.floor(b/5)* numbery) + offsety
  23.         else
  24.           py = offsety
  25.         end
  26.         px= (b-(math.floor(b/5)*5)) * number + offset
  27.         arrgh=tostring(px) .." " ..tostring(py)
  28.         gpu.set(px, py, s)
  29.          gpu.set(px+5,py+2,arrgh)
  30.         gpu.set(px, py+1,  "║║║║║",true)
  31.         gpu.set(px+30, py+1,  "║║║║║",true)
  32.         gpu.set(px, py+6,  s2)
  33.       end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement