[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] pygame.sprite.RenderUpdates() without arguments
- To: pygame-users@xxxxxxxx
- Subject: [pygame] pygame.sprite.RenderUpdates() without arguments
- From: "Gonzalo Castro" <gonzalo.castro.castilla@xxxxxxxxx>
- Date: Tue, 16 Dec 2008 23:38:34 +0100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Tue, 16 Dec 2008 17:39:08 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=/MuM0ZlMHaG40X+5MnxVZtVDaWWFxYNTyXyFPN33vrg=; b=YFPmGMRhkA1GEjf1ee5RMiH32wQvXoQ3afvH2A7LgegZ2J382KNqR3r+3h5VG8NvO4 WFmrNYDrw2EvjnpflsZRz1u8yF4sYGqMLs0r/oTHfI4eaeTVR+x9ItoJXWQ590ToczFq zNF+BwZCB8tivibrJTaWQrxW9eiFEbA0vEuAo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=ILxVyMA1+JsvklxltIRAcMg3RXYUWoTR5U8y6BA3tpzWgyb5U+akLELjlSzsriCrpG QMDMi7pOYNh/iJ4rVkqdSckf0AYif3sJK5pRxhkTni+W0uOTyz6w2awyPO3/EuNxkiCN h6n1GLTaKPTSODTTV5y5RQmGMnZxbZ41dLwbY=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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