antonsavov

Untitled

Feb 10th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 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 = 'COMPLETE', color = c},
  7. {word = 'THE', color = c},
  8. {word = 'HOUSE.', color = c}
  9. }
  10. local monitor = peripheral.wrap('top')
  11. monitor.setTextScale(1)
  12. local w,h = monitor.getSize()
  13. texthelp.printToScreenColor(monitor,text,w,highlights,2,2, colors.white)
Advertisement
Add Comment
Please, Sign In to add comment