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

[pygame] pygame.sprite.RenderUpdates() without arguments



Hi everybody!

What does  pygame.sprite.RenderUpdates()  with no arguments?

class Game:

    def __init__(self, screen):

        self.screen = screen

        self.all = pygame.sprite.RenderUpdates()
        Player.containers = self.all
        Computer.containers = self.all
        Ball.containers = self.all

In the python help it says you have to give it the group name you want
to update, so if you don't give it arguments?

Another question about this function: Does it render  self.rect of every sprite?

Thanks a lot

PD: sorry about my newbie doubts ;) Starting something is always difficult