Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monitor = peripheral.wrap("front")
- monitor.setTextScale(3.5)
- term.redirect(monitor)
- term.clear()
- local function centerText(text)
- local x,y = term.getSize()
- term.setCursorPos(7, math.floor(y / 2 + .5))
- write(text)
- end
- while true do
- term.setTextColor(colors.red)
- centerText("SNAKE")
- sleep(1)
- term.clear()
- term.setTextColor(colors.orange)
- centerText("SNAKE")
- sleep(1)
- term.clear()
- term.setTextColor(colors.yellow)
- centerText("SNAKE")
- sleep(1)
- term.clear()
- term.setTextColor(colors.lime)
- centerText("SNAKE")
- sleep(1)
- term.clear()
- term.setTextColor(colors.blue)
- centerText("SNAKE")
- sleep(1)
- term.clear()
- term.setTextColor(colors.purple)
- centerText("SNAKE")
- sleep(1)
- term.clear()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement