pycraft
pycraft copied to clipboard
Define a structure for Game States
I wish to open a discussion about modifying structurally the actual project to support game states such as: GamePlay, GameMenu etc. Game states should deal with drawing, handle button presses, mouse clicks etc.
That touches on a lot of things.
I'd like to separate out the rending from the actual game events further, to enable support for multiplayer down the line.
So the first thing I'd do is let you pause the tickrate for the game world without pausing the tickrate for the GUI.
Second, drawing guis. Gui toolkits always suck. I think we can do a bit better by not even trying to support any complicated interactions.
Something like "here's a texture, draw some text on it here, here, and here".
But for now, we can code each menu custom.
Also, custom keybindings are a thing we want, and there's some support for a settings file.