Circle hitboxes.

Hi there JGO!

I’ve plans for the combat-system, but I only need to have some sort of range to continue. I thought I would make a simple square hitbox, with 4 forloops:


http://img716.imageshack.us/img716/9259/womx.png

But as you probably can see is that the side of the square are closer to the center then the edges. So if anyone know a way to make a circle hitbox, it would be great.
I thought something of: x+y = range (20) and then looping through a forloop of them. I only have no idea how I am going to accomplish this. So I need your help, if you help me don’t post any code, as I need to learn from experiencing with my own ideas.

Thanks already!
-RoseSlayer