I'm trying to figure out a smart way of displaying changes. Let's say we have a Pyglet program where an arrow is displayed pointing in the direction that was last pressed by the user (up, down, left or right). Hence we need a sprite for every direction. Also there should be a batch for sprite(s).
What is the recommended way of doing this? Should I create four sprite objects, and allow only one of them to be in the batch at a time, or destroy old sprite and then create a new one? Do I create a batch only once and then delete sprites in it and create new sprites and add them to the batch? Or should I forget and create batches whenever things change? (I hope the title describes the issue. I considered calling it 'Recommended Way of Updating Batches'.) -- 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.
