I couldn't figure out how buttons work so for now I decided to implement basic main menu functionality by pressing specific keyboard keys (this will later be listed on the main screen, unless I will implement buttons functionality later on). I will also plan on implementing mouse input and touch input functionality for starting the game so that it can also be easily played with touchscreen.
When implementing those I had major issues with game states as it appeared to create multiple game states while the game run. I researched how game states should be connected and made sure actual game state is created only once after pressing start button (S key) and when exiting the game to main menu by pressing Q key.
No comments:
Post a Comment