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.

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pyglet-users/-/PoWO5LV5X38J.
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