Posted February 15, 2024 by floz
so this whole thing is written in Godot/gdscript.
and since Godot does things the way it does, I'm developing the menus as such:
there is a menu background scene, could also be called mainmenucontroller. it loads a background image, music, and then another scene that comprises the menu graphics layout and menu code. it also loads the options menu (same basic idea) but hidden.
then, when you go into options from main menu, it hides main and shows options. this state flips back and forth.
now, in-game is identified by a global bool "isGameInProgress". if that is true, when the options menu loads, it has slightly different options, and the "back" button doesn't unhide main, it just hides options.
this is probably all really confusing to read , but it's more or less how I'm approaching this week's "problem to solve".