Advertisement
matrefeytontias

[Axe] Angle-based laser routine

May 10th, 2013
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. :Lbl Laser
  2. :r1*128→r1
  3. :r2*128→r2
  4. :.IDK why +64 but it works
  5. :-2
  6. :For(2)
  7. :+1→r6*cos(r3+64)+64+r1?{(r6+1??,1)*4+L4}r
  8. :r6*sin(r3+64)+64+r2?{(r6+1??,1)*4+2+L4}r
  9. :1
  10. :End
  11. :sin(r3)→r4
  12. :cos(r3)→r3
  13. :
  14. :For(r5,0,1)
  15. :{r5*4+L4}r→r1
  16. :{r5*4+2+L4}r→r2
  17. :0→r6
  18. :While 1
  19. :r1+r3Asm(E5)>12160??r6Asm(E1)r1,Asm(E1)
  20. :→r1
  21. :r2+r4Asm(E5)>8064??r6Asm(E1)r2,Asm(E1)
  22. :→r2
  23. :EndIf r6
  24. :r2/128*256+(r1/128)→{r5*2+8+L4}r
  25. :End
  26. :{L4+2}r/128*256+({L4}r/128)→{L4}r
  27. :{L4+6}r/128*256+({L4+4}r/128)→{L4+2}r
  28. :. You will need my axiom AxeJh3D
  29. :. See http://www.omnimaga.org/index.php?topic=15855.0
  30. :Triangle({L4}r,{L4+2}r,{L4+10}r,0)
  31. :Triangle({L4}r,{L4+8}r,{L4+10}r,0)
  32. :Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement