|
By the way, do the main game loop first. I want to see how you do that again.
This time no bool* myVar. Ditch the "*".
The first thing you need to ask yourself:
'Who/what is responsible for terminating the program on client's request'
In your original code you had the answer wrong. Find a different one. Remember, every function or every block of code should be valued by its behaviour. I cannot stress that enough. You always want to think about behaviour and responsibilities. That is the "soul" of object oriented programming in real practice. Start now, become good soon.
__________________
|