Advertisement
Guest User

a

a guest
Jan 24th, 2015
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. a=peripheral.wrap("bottom")
  2. a.clear()
  3. a.setTextScale(1)
  4. function b(c)
  5. return math.floor(c+0.5)
  6. end
  7. d="Casino"
  8. e=4
  9. f,g=a.getSize()
  10. print(f)
  11. print(g)
  12. f=b(f/e)
  13. print(f)
  14. g=b(g/e)
  15. print(g)
  16. a.setTextScale(e)
  17. a.setCursorPos(b(f/2)-b(d:len()/2),b(g/2))
  18. a.write(d)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement