[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Pixel perfect collision detection sugestion
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Pixel perfect collision detection sugestion
- From: Rene Dudfield <renesd@xxxxxxxxx>
- Date: Fri, 9 Sep 2005 07:58:45 +1000
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Thu, 08 Sep 2005 17:58:57 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MGkAu3fJnePi9sMFOz0w31tIed/bFPPdwPJMyg86LYPW4ni9TM/qIIF/KpRh8ahKudvefsi0qEYrOkx1YRaebKrwN0UsJOatOslWcEqfvf/XhaSdsxS2qFc9ltdZdRKsMpp0Gl/Ev5t5sqpmXDOBUM5362mxZUKoOfzwWyeAvdk=
- In-reply-to: <20050908104838.ACDA3E8169@k2.scorpionshops.com>
- References: <20050908104838.ACDA3E8169@k2.scorpionshops.com>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Yah!
we were just talking the other day in #pygame about per pixel
collision detection in pygame.
This is definitely something that is needed.
Cheers,
On 9/8/05, John Eriksson <john@xxxxxxxxxxxx> wrote:
> Hi,
>
> I've written a small and fast pixel perfect collision detection algorithm
> that I thought I might share with everyone.
>
> I've been using this algorithm in several other languages (C#, Java, Flash)
> with excelent performance.
>
> The example code is actually a suggestion to be added in the Sprite module,
> but if the PyGame developers doesn't like it it's very easy to just add to
> your code.
>
> Please have a look and tell me what you think!
>
> Best Regards
> /John Eriksson
>
>
>