Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local back = colors.lightBlue
- local text = colors.black
- term.setCursorPos(1,1)
- term.setBackgroundColor(back)
- term.setTextColor(text)
- term.clear()
- local function loadFile(file)
- local fh = fs.open(file,"r")
- local rt = {}
- while true do
- local line = fh.readLine()
- if line == nil then
- break
- end
- rt[#rt + 1] = line
- end
- return rt
- end
- local x,y = term.getSize()
- local l = loadFile("/.gamevolt/logot.png")
- y = y/2
- y = math.ceil(y - #l/2)
- x = x/2
- x = math.ceil(x - #l[1]/2)
- local _y = y
- for i,v in pairs(l) do
- term.setCursorPos(x,_y)
- print(v)
- _y = _y + 1
- end
- sleep(1)
- _y = y
- local _x = x
- for i,v in pairs(l) do
- for i = 1,#v do
- if v:sub(i,i) == " " then
- term.setBackgroundColor(back)
- else
- term.setBackgroundColor(colors.red)
- end
- term.setCursorPos(_x,_y)
- write(v:sub(i,i))
- _x = _x + 1
- end
- _x = x
- _y = _y + 1
- end
- term.setBackgroundColor(back)
- local x,y = term.getSize()
- local text = "Presented by GameVolt"
- x = math.ceil((x/2)-(#text/2))
- y = y - 2
- term.setCursorPos(x,y)
- sleep(1)
- print(text)
- sleep(2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement