Understanding "Game State" What is "game state"?
The circular sprite moves, along with the text, to the right. This is gamestate == 1. When the sprite reaches the right edge of the display window, the value of the game state variable changes to 2. In game state 2, the circular sprite moves, along with the text, to the left. When the sprite reaches the left edge of the display window, the ...