So I just finished game two on the C++ fundamentals course and I have a question how can I implement a continue after the lose/win condition. So I can try again instead of having to close it and run again.
This is a nice challenge to give yourself to try, and in “now on to the challenge” spirit I’ll drop a couple of hints.
1: You’ll want a button press to tell the game to reset its state, this can be any button you want.
- Hinted in #1, you need to reset the “state” of the game. That means resetting the positions of the nebula and resetting the position of the player.
Once those states are set, you should be back to where the game started.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.