antonsavov

Untitled

Feb 10th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. --tutorial 18 obstacle 1
  2. os.loadAPI('texthelp')
  3. local text = "Behind you is the shape for a house. It uses the URBAN RESOURCE with the purple house icon. The shape consists of 3 blocks in a row next to a detector and one more block next to the opposite detector. Jump on top of the detector with the 3 blocks to COMPLETE THE HOUSE."
  4. local c = 'purple'
  5. local highlights = {
  6. {word = 'URBAN', color = c},
  7. {word = 'RESOURCE', color = c},
  8. {word = 'COMPLETE', color = c},
  9. {word = 'THE', color = c},
  10. {word = 'HOUSE.', color = c}
  11. }
  12. local monitor = peripheral.wrap('top')
  13. monitor.setTextScale(1)
  14. local w,h = monitor.getSize()
  15. texthelp.printToScreenColor(monitor,text,w,highlights,2,2, colors.white)
Advertisement
Add Comment
Please, Sign In to add comment