Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Switching scenes with pyglet

Tags:

python

pyglet

Can anybody recommend how to switch between scenes in pyglet. I.e.

  • menu > game
  • game > menu
  • menu > help
  • ect

The only way that i can think to do it off the top of my head is by using different windows, which i am quite sure would be the complete wrong way to do it. Or by overloading all of the window's event functions.

Sorry if i haven't made myself clear but any help would be appreciated

like image 981
Hugoagogo Avatar asked Dec 21 '25 07:12

Hugoagogo


1 Answers

The cocos2d.org framework is built on pyglet and includes scene management.

like image 56
Richard Jones Avatar answered Dec 23 '25 21:12

Richard Jones