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

Re: [pygame] Rockhunt



Oh, so it's the destination for the sprite graphic after the scrolling
is taken into account?

On 24 Aug 2005 00:59:09 -0700, Aaron Maupin <maupin@xxxxxxxxxxxxxx> wrote:
> andrew baker wrote:
> > Are you trying to vector, or what?  It seems that having one x/y value
> > for each sprite would be sufficient.  Has your experience proved
> > otherwise?
> 
> I don't understand your question, but self.x and self.y are the sprite's
> grid position (necessary to determine what image it should contain, and
> to communicate (by collision) with bumper sprites in the sw and ne
> corners to stop the scrolling when the edge of the cave is reached).
> 
> self.rect.left and self.rect.top are the screen position, and
> self.idealxpix and self.idealypix are the screen position the sprite
> will scroll to.
> 
> Aaron
> 
> 


-- 
Andrew Ulysses Baker
"failrate"