Advertisement
acool

Untitled

Sep 17th, 2023 (edited)
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. --pastebin run ay1qX2vy
  2.  
  3. local CX = 2
  4. local CY = 20
  5. local CZ = -50
  6. local fov = 100
  7.  
  8. local monitor = peripheral.find("monitor")
  9.  
  10. local function goto(x,y, z)
  11.  
  12. monitor.setCursorPos((fov * ((x + CX) / (z + CZ ))), (fov * ((y + CY) / (z + CZ )) ))
  13. print(((fov * ((x + CX) / (z + CZ ))), (fov * ((y + CY) / (z + CZ )) )))
  14. monitor.write("A")
  15. end
  16.  
  17.  
  18. monitor.clear()
  19. goto(20, 20, 40)
  20. goto(20, 20, 60)
  21. goto(0,20, 80)
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement