New answers tagged


When your game has different modes it's in, and each mode should have different logic and different UI, then that's often a use-case for the state machine pattern. So instead of having all your game logic in your one logic()-function, you create a separate logic-function for each state your game can be in. You might also want to create an enter-function and ...

Top 50 recent answers are included