Re: [pygame] New way for drawing an arc

2012-01-05 Thread Ian Mallett
The presented code definitely has room for a lot of optimization. My solution for drawing arcs was to either render it with two circles to a surface, and then crop/cut it out, or to just use OpenGL. The idea would be to use many small subdivisions just as with the polygon drawing method for PyGam

Re: [pygame] cx_Freeze and Pygame Font module

2012-01-05 Thread Zack Baker
Ok so I want to create an executable but one of my files is basically import game and then game.play(). Can I execute the file that has like 2 lines or should I put everything into one file and build and execute that. Btw I'm on a Mac with python 2.7 do which 'compiler' should I use? The Build A

Re: [pygame] cx_Freeze and Pygame Font module

2012-01-05 Thread Lenard Lindstrom
Hi, On 05/01/12 02:16 PM, Nick Arnoeyts wrote: Hey everyone I'm trying to get to know cx_freeze as an alternative to py2exe but I've run into some problems. There don't seem to be any errors in creating the exe, however when running the exe there are complaints about missing modules and DLL

Re: [pygame] New way for drawing an arc

2012-01-05 Thread Silver
Just worked on trying to use AA. turns out the way I'm checking locations, pixel-to-pixel, very few locations actually get caught by my secondary checks. The effect is pretty much invisible. Another way to do an arc would be to calculate the minimum outer circle width between points, using a combi

Re: [pygame] New way for drawing an arc

2012-01-05 Thread Silver
On 1/5/2012 3:41 PM, Christopher Night wrote: > Cool! When I needed to draw an arc more than a couple of pixels wide, I > approximated it with a polygon. I think it gave pretty good results. I'm > not sure how it would compare performance-wise, but it should involve a lot > fewer trig function call

Re: [pygame] New way for drawing an arc

2012-01-05 Thread Christopher Night
Cool! When I needed to draw an arc more than a couple of pixels wide, I approximated it with a polygon. I think it gave pretty good results. I'm not sure how it would compare performance-wise, but it should involve a lot fewer trig function calls. Have you tried this method? -Christopher On Thu,

[pygame] New way for drawing an arc

2012-01-05 Thread Silver
I recently figured out how to draw an arc in pygame without moire holes and allowing stuff like antialiasing. Just if any of your are interested. The script is a little slow. Also: atan issues where the arc starts out from the left instead of top. I can't seem to fix it. --Rockachu2 import math

[pygame] cx_Freeze and Pygame Font module

2012-01-05 Thread Nick Arnoeyts
Hey everyone I'm trying to get to know cx_freeze as an alternative to py2exe but I've run into some problems. There don't seem to be any errors in creating the exe, however when running the exe there are complaints about missing modules and DLL Load Errors (see below for the error message). I am