Advertisement
Guest User

startup

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