Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define a structure for Game States #47

Open
marquesVF opened this issue Apr 20, 2016 · 1 comment
Open

Define a structure for Game States #47

marquesVF opened this issue Apr 20, 2016 · 1 comment

Comments

@marquesVF
Copy link
Contributor

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.

@traverseda
Copy link
Owner

traverseda commented Apr 20, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants