Original Post
I'm currently in the process of throwing together a menu system for our current project and was wondering what the best way to implement a menu system would be. The easiest method I see right now is to break the game down into various states, and let the menu decide what to do based on what state the game is in. However, this is a rather ugly solution, requiring state checks every frame, resulting in large if/else or switch statements that bog down the code. I was wondering if there was a better alternative to this, or how you guys have implemented menus in the past.