Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cjrcle(r, x, y, circrez)
- delthe = math.pi/circrez
- --for theta = 0, 2*math.pi, delthe do
- -- love.graphics.setColor(.8,.3,.2)
- --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)
- --end
- for dtheta = math.pi, 0, -math.pi/512 do
- --love.graphics.line(r*math.cos(dtheta), r*math.sin(dtheta), r*math.cos(-theta), r*math.sin(-theta))
- --you filled the circle!
- --love.graphics.setColor(.2,.1,.6)
- love.graphics.line(r*math.cos(dtheta) + x, r*math.sin(dtheta) + y, r*math.cos(-dtheta) + x, r*math.sin(-dtheta) + y)
- --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)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement