Super confused on tripleX game

In the completed triplex game there is a ++LevelDifficulty to increase each level. What I do not understand is why the int Difficulty that was never initialized (I think) goes up by 1 every time the level is completed. I am not understanding where int Difficulty is getting its value from.

Screenshot 2020-10-22 123305

Difficulty is initialised to whatever value LevelDifficulty holds when it is passed in.

That is what this is doing

PlayGame(LevelDifficulty)
//       ^^ initialises Difficulty
//          as if: Difficulty = LevelDifficulty

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

Privacy & Terms