Advertisement
Guest User

Untitled

a guest
Jun 19th, 2015
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. local function camera_draw ()
  2. local yp = 1;
  3. local charBlock=unicode.char(10515);
  4. gpu.bind(leftScreen);
  5. gpu.setForeground(0x000000)
  6. gpu.setBackground(0xFFFFFF)
  7.  
  8. for j = -0.75,0.25,0.025 do
  9. local xPos=1;
  10. for i = -1,1,0.012 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.  
  15. gpu.fill(2,2,5,5,"x")
  16. xPos=xPos+1;
  17. --term.write(string.sub(array, a, a)) -- works
  18. --print("test"); prints fine.
  19. end
  20. yp=yp+1
  21. --term.setCursor(1,yp) -- works
  22. end
  23. end
  24.  
  25. event.timer(0.2,camera_draw , math.huge);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement