Quantcast
Channel: Question and Answer » game-loop
Viewing all articles
Browse latest Browse all 30

Pausing the game inside the game loop

$
0
0

Inside the game loop, the game is paused by pressing P, meaning that the game loop does not run anymore. Problem is that after this loop is halted, P cannot be pressed again to resume the loop, since it was inside the loop itself. How to make it so that when P is pressed again it makes the loop work again?


Viewing all articles
Browse latest Browse all 30

Trending Articles