Python Forum
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Classes Pygame Help
#3
Your way is pretty similar to my way
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 parameters
The 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:
Reply


Messages In This Thread
Classes Pygame Help - by sam57719 - Jul-09-2018, 09:21 AM
RE: Classes Pygame Help - by Windspar - Jul-09-2018, 05:20 PM
RE: Classes Pygame Help - by metulburr - Jul-10-2018, 03:23 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020