Got up to the initial test working. Animations are NOT supported right now.
Batches are not supported and there's really no point in supporting them
with this pipeline. The basic method for rendering sprites that you want to
have sorted is:
group = pyglet.sprite.DepthSpriteGroup(2048, 2048) #the size of the texture
atlas
#load some image as img
my_sprites = [pyglet.sprite.DepthSprite(img, group, x=i*10) for i in range(
10)]
window = pyglet.window.Window(500, 500)
@window.event
def on_draw():
window.clear()
group.draw()
Note that sprites are bound to their group, and can't be migrated between
groups. Each sprite has a depth attribute that controls rendering order.
There is a self-contained test depth_sprite_test.py. Appreciate anyone who
who can give it a shot!
- Josh
On Sunday, October 23, 2016 at 5:49:23 PM UTC-5, Josh wrote:
>
> Hi, sorry I've been out of the loop a few days. I put the fork on
> bitbucket, https://bitbucket.org/clockmarket/zsprites
>
> On Friday, October 21, 2016 at 3:43:14 AM UTC-5, Benjamin Moran wrote:
>>
>> If it's a public fork, it works be great if you could share the link.
>
>
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.