Advertisement
Guest User

startup

a guest
Mar 27th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. m = peripheral.wrap("back")
  2. m.clear()
  3. m.setCursorPos(1,1)
  4. m.setTextScale(1.5)
  5. local function center(text)
  6.   x,y = m.getSize()
  7.   x1,y1 = m.getCursorPos()
  8.   m.setCursorPos((math.floor(x/2) - (math.floor(#text/2))), y1)
  9.   m.write(text)  
  10. end
  11. m.setCursorPos(1,2)
  12. m.clear()
  13. center("BUNKIER")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement