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

Re: [pygame] Rockhunt



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