Advertisement
Guest User

startup

a guest
Oct 20th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. --Settings
  2. mon = peripheral.wrap("back") --Screen Side
  3. mon.setTextScale(4)
  4. mon.setTextColor(colors.yellow)           --Text Size
  5. strtpos = 16                  --Start position on screen
  6. speed = 0.2                  --Scroll Speed (Seconds)
  7. text = "Welcome To IronHill"    --Displayed Text
  8.  
  9. pos = strtpos
  10. poslimit = 0 - strtpos
  11.  
  12. while true do
  13.  mon.clear()
  14.  mon.setCursorPos(pos, 1)
  15.  mon.write(text)
  16.  sleep(speed)
  17.  if pos == poslimit then
  18.   pos = strtpos
  19.  else
  20.   pos = pos - 1
  21.  end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement