Advertisement
joseleeph

Untitled

May 12th, 2021
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. function cjrcle(r, x, y, circrez)
  2. delthe = math.pi/circrez
  3. --for theta = 0, 2*math.pi, delthe do
  4. -- love.graphics.setColor(.8,.3,.2)
  5. --love.graphics.line(r*math.cos(theta) + x, r*math.sin(theta) + y, r*math.cos(theta + delthe) + x, r*math.sin(theta + delthe) + y)
  6. --end
  7. for dtheta = math.pi, 0, -math.pi/512 do
  8. --love.graphics.line(r*math.cos(dtheta), r*math.sin(dtheta), r*math.cos(-theta), r*math.sin(-theta))
  9. --you filled the circle!
  10. --love.graphics.setColor(.2,.1,.6)
  11. love.graphics.line(r*math.cos(dtheta) + x, r*math.sin(dtheta) + y, r*math.cos(-dtheta) + x, r*math.sin(-dtheta) + y)
  12. --love.graphics.line(r*math.cos(dtheta) + player.xpos, r*math.sin(dtheta) + player.ypos, r*math.cos(-dtheta) + player.xpos, r*math.sin(-dtheta) + player.ypos)
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement