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

Re: [pygame] Pygame container for rectangles



Paul Vincent Craven wrote:
If you are not using sprites, you can just iterate through a list
If you are using sprites, you can create an update() method
Or you can directly move them in a loop

Another approach is not to move the rectangles at all, but
leave them relative to some origin and transform them at
rendering time. This is generally a better way of handling
such things, because it minimises opportunities for things
to get out of step with each other.

--
Greg