For the media rework/refactoring I am working on cleanup resources better. Lots of crashes are caused by lingering resources. My goal is to fix that everywhere. So somewhere in the future it should be easier to do a real reset. However that is probably going to take some time.
Rob Op donderdag 10 december 2015 16:01:37 UTC+1 schreef Benjamin Moran: > > 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 https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
