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

Re: [pygame] Pygame Problem Solving 1



ah really, I'll look at that sometime today :).

On 9/13/07, Greg Ewing <greg.ewing@xxxxxxxxxxxxxxxx > wrote:
Lamonte Harris wrote:
> Whups major flaw forgot to check if the height also.

Check out the collidepoint() method of the Rect class.
It'll check both coordinates for you in one go.

--
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,          | Carpe post meridiem!                 |
Christchurch, New Zealand          | (I'm not a morning person.)          |
greg.ewing@xxxxxxxxxxxxxxxx        +--------------------------------------+