>> do some window.push_handlers(scene1) to load the first scene

Ha! That's brilliant - much better than my 'do it yourself' method.
Thank you Josch for pointing out what is clearly the sensible way to
do it, and thank you Alex (& whomever else) put the mechanism there in
the first place. :-)



On Oct 13, 9:18 am, josch <[EMAIL PROTECTED]> wrote:
> just create individual classes for each different section in your game
> and put an on_draw and all the other respective handlers in there.
> then do some window.push_handlers(scene1) to load the first scene
> where window is your main window or some other EventDispatcher. to
> switch to the next do: window.pop_handlers() and
> window.push_handlers(scene2). you can also push several classes at
> once to build an event stack. Just check out the pyglet documentation
> for the event framework.
--~--~---------~--~----~------------~-------~--~----~
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