On Mon, Sep 3, 2012 at 3:30 PM, darkfeline <[email protected]> wrote:

> I'm running into a weird bug with drawing Labels in batches.  Because I
> want loose coupling between game data and the view,  I've come up with the
> following model:  game objects create their sprites (and Labels), and then
> adds them to a Batch (and OrderedGroup) via an event system.  This works
> fine for the sprites, but I'm running into problems trying to get the
> labels to draw.
>
> Here's how the labels are added to the batch: http://pastebin.com/DjRa2eHL
>
> I've checked coordinates and colors and draw order, and none of those seem
> to be the problem.  I have gotten *one* Label to draw properly, a custom
> FPS class whose text is updated every second.  However, this only draws a
> second after the game starts (presumably when the text is updated).
> However, updating the text on the other Labels don't make them draw.
>
> I'll admit I'm still getting to know pyglet, so if I'm forgetting
> something simple, please forgive me.  But this bug is giving me a hell of a
> headache, so any help is appreciated.


I read through your code, and didn't notice anything glaringly obvious to
someone who doesn't use Groups and Batches.

~ Nathan

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to