I don't think pyglet (and many other libraries) are designed to be "reset" in 
such a manner. Pyglet has low level hardware access so it's especially tricky.

You may want to consider a different approach. For example, create a 
SceneManager that contains several scenes (menu scene, game1 scene, etc.) that 
are switched between. This is a fairly common concept in game design, but there 
are several ways to do it. I recommend reading this article: 
http://gamedevelopment.tutsplus.com/articles/how-to-build-a-jrpg-a-primer-for-game-developers--gamedev-6676
It's focused on RPGs, but the section on state management might be useful. 

I could give you some basic example code as well if it would help.

-Ben

-- 
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 http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to