Re: [Tutor] using rect.inflate()

2008-11-06 Thread W W
On Wed, Nov 5, 2008 at 8:14 PM, John Fouhy <[EMAIL PROTECTED]> wrote: > 2008/11/6 Christopher Spears <[EMAIL PROTECTED]>: > > I inserted this code snippet into the Spaceship class: > > > > self.rect = self.image.get_rect() > > print self.rect > > self.rect = self.rect.inflate(-50, -50) > > print s

Re: [Tutor] using rect.inflate()

2008-11-05 Thread John Fouhy
2008/11/6 Christopher Spears <[EMAIL PROTECTED]>: > I inserted this code snippet into the Spaceship class: > > self.rect = self.image.get_rect() > print self.rect > self.rect = self.rect.inflate(-50, -50) > print self.rect > > The following was printed to my console: > > > > > > I'm assuming that t

[Tutor] using rect.inflate()

2008-11-05 Thread Christopher Spears
I'm modifying a game for an assignment in "Game Programming" by Andy Harris. I'm not reading this book as part of a class. Basically, I turned one of the example games into an Asteroid rip off. However, I didn't like the collisions between the spaceship and the asteroids, so I decided to shri