[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Polygon Objects



I've been working on a game-like application for the past month, and
have used Pygame with tremendous success.  I've been a big fan of the
Python programming language since the 1.3 days, and I have to say the
Python+SDL using Pygame is a wonderful system.

The program I'm working on needs better collision detection than the
usual overlapping rectangles method, and in the process of working on
it, I've been developing a Polygon class providing standard operations
and overlap detection for 2-D polygons.

While this class is currently implemented in Python, I believe that I
will ultimately want this functionality to be implemented as an
extension type in C for pure speed and efficency.  I'd like to model the
interface after the pygame "Rect" class as much as possible, and am
wondering if this code could eventually become a part of the Pygame
distribution.

Is there any interest in having such functionality available in pygame?

Dave

-- 
David J. C. Beach
<beach@verinet.com>

Attachment: signature.asc
Description: This is a digitally signed message part