Currently I am trying to make a simple physics based game. After the game is finished I want to incorporate a replay button. So far the button restart the game but I am unable to “reset the environment/clean up the memory/clear previous values of the variables”. Looking for some guide from the expert.
You may not like this but like almost every game you should handle the reset your self. As in create a reset function and move everything back and reset the timers.
It is the most memory friendly way
You may not like this but like almost every game you should handle the reset your self. As in create a reset function and move everything back and reset the timers.
It is the most memory friendly way