Advertisement
Guest User

startup

a guest
Jun 24th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.76 KB | None | 0 0
  1. monitor = peripheral.wrap("front")
  2.  
  3. monitor.setTextScale(3.5)
  4.  
  5. term.redirect(monitor)
  6.  
  7. term.clear()
  8.  
  9. local function centerText(text)
  10.   local x,y = term.getSize()
  11.   term.setCursorPos(7, math.floor(y / 2 + .5))
  12.   write(text)
  13. end
  14.  
  15. while true do
  16.   term.setTextColor(colors.red)
  17.   centerText("SNAKE")
  18.   sleep(1)
  19.   term.clear()
  20.   term.setTextColor(colors.orange)
  21.   centerText("SNAKE")
  22.   sleep(1)
  23.   term.clear()
  24.   term.setTextColor(colors.yellow)
  25.   centerText("SNAKE")
  26.   sleep(1)
  27.   term.clear()
  28.   term.setTextColor(colors.lime)
  29.   centerText("SNAKE")
  30.   sleep(1)
  31.   term.clear()
  32.   term.setTextColor(colors.blue)
  33.   centerText("SNAKE")
  34.   sleep(1)
  35.   term.clear()
  36.   term.setTextColor(colors.purple)
  37.   centerText("SNAKE")
  38.   sleep(1)
  39.   term.clear()
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement