[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] two questions - JYTHON and Sprite collisions
On Feb 11, 2008, at 7:37 AM, Bernard Quinn wrote:
I have an application that I have been prototyping using PyGame...  
will there be a way to wrap this into a webapp?  Jython?
Short answer: No
Longer answer: Maybe one day. See also: http://us.pycon.org/2008/sprints/projects/#pygame-on-flash
I have implemented some lines as sprites (the line is a link  
connection between two nodes).  Is there a way to do sprite  
collisions against the visible part of the sprite?  The line is the  
diagonal of the sprite.rect, and there ends up being considerable  
overlap... I need the user to be able to select a particular line  
and would rather not have to bring up a menu of 'all possible lines'  
they may be trying to select.
Don't use AABB rects for your collisions. Sounds like OBBs might work  
for you, or possibly lots of circles.
--Noah