Initializing PlayGame() to bLevelComplete

Hey there,

I don’t get it. Why is the PlayGame() function still executed when we initialize it to the bLevelComplete Boolean in the while loop?
When the PlayGame() function was called alone in the while loop I understood that it was executed, because the while loop is true and the function gets called.

But why does the function now also gets executed when we initialize it to the bool?

Thx for your help

1 Like
bool bLevelComplete = PlayGame();

This line first calls the function PlayGame() which returns a bool that bool which was returned from th function is then used to initialise bLevelComplete.

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms