Your way is pretty similar to my way
https://python-forum.io/Thread-PyGame-Cr...te-machine
https://python-forum.io/Thread-PyGame-Cr...te-machine
(Jul-09-2018, 09:21 AM)sam57719 Wrote: a way to write this where I don't have to pass the instances through as parametersThe window and menu options should not be passed back and forth between states. Each state should have its own selection of menu options. For example the main menu would have things like "Play", "Options", and "exit". But the Options menu would have things like "audio", "video", etc. So i am not sure why you are passing the same menu between them?
Recommended Tutorials: