[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Diffefrences between sprite.Group and sprite.RenderUpdates (and Group.draw question)
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Diffefrences between sprite.Group and sprite.RenderUpdates (and Group.draw question)
- From: Luca <lucafbb@xxxxxxxxx>
- Date: Sun, 4 May 2008 14:38:59 +0200
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sun, 04 May 2008 08:39:04 -0400
- 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=w4IPeyo2NrQDQlflL0cuOJaMIqWIU/m0DoFK7CY+KGU=; b=Mjywz6VAtNmEwiJEBSOA2cvmPn9VJn+QI/gwtEzc7attxjq5vmxMxuWizYIIA3WIhkiwvOj0XKIJzjGPusI6B4SQ8AhQZoJbo6hQ3vwGsDXI49KaIO6rh2beoTPJuabsreciUWSUQ3sDGnIzQe7XSSbJzsmxOHkylLQ8toNuEKY=
- 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=HcGSREvVOorV2yvaFgIZzW0DiwNhpWMiH/xo2Aw6wx8B7CNIi+UpWNMH4s1GbpV0T8HF1PWKky8/Mn9AhTTXOu16I/mSDv/b4eVu9wKTdsRHcZtpRWmIuG8gwhHgUzyt6XOZfIz76dvbO4TgZhLx7UCtUL5IA8pCLGAHijBi6Wg=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hi all.
Reading pygame docs I found an example using a group that store all
sprites defined as a RenderUpdates, not simple Group.
The pydoc of this class don't give me much infos. Can someone explain
me what is the difference?
I found this because I'm having some problems with a game I'm
developing. The call of
all.draw
(where "all" is for now a RenderUpdates instance) draw sprites on the
screen in some order. There is a way to control the order of sprites
drawed on screen? I like to blit images ordered on Y position on the
screen.
Any help will be really appreciated!
--
-- luca