Advertisement
joseleeph

Untitled

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