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
-~----------~----~----~----~------~----~------~--~---