Mostly, I cleaned up the GFX helper a little to reduce the amount of duplicated code. I think more can be done here but it's a good start!
Also, and most excitingly, I've changed the circle drawing algorithm to a much more awesome and efficient one by SiegeLord. Only two calls to cos and sin in the whole thing! I've also added support for drawing arcs, filled and unfilled, using the same code. Support for ellipses could also be added using Gosu's Window#scale but I didn't feel like tackling that problem since it probably wouldn't be that useful to most people.
Mostly, I cleaned up the GFX helper a little to reduce the amount of duplicated code. I think more can be done here but it's a good start!
Also, and most excitingly, I've changed the circle drawing algorithm to a much more awesome and efficient one by SiegeLord. Only two calls to
cos
andsin
in the whole thing! I've also added support for drawing arcs, filled and unfilled, using the same code. Support for ellipses could also be added using Gosu'sWindow#scale
but I didn't feel like tackling that problem since it probably wouldn't be that useful to most people.