Kitomas

Untitled

Jan 16th, 2020
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. local camera = peripheral.wrap("right")
  2. local array = " .,-=+xX#"
  3. local monitor = peripheral.wrap("monitor_0")
  4. local yp = 1
  5. monitor.clear()
  6. monitor.setTextScale(0.5)
  7. monitor.setCursorPos(1,1)
  8.  
  9. for j = -0.35,0.25,0.025 do
  10. for i = -1,1,0.036 do
  11. local d = camera.distance(i, 0-j)
  12. local a = 1
  13. if d > 0 then a = 2 + (8 - math.min(8, (d/1.2))) end
  14. monitor.write(string.sub(array, a, a))
  15. end
  16. yp=yp+1
  17. monitor.setCursorPos(1,yp)
  18. end
Add Comment
Please, Sign In to add comment