September 2013
Beginner
292 pages
6h 19m
English
The Lives remaining for Player will be stored in a variable in GameData. We don't want it in PlayerControl because this information has no bearing on controlling Player.
GameData screenshot, add lines 10 and 11:
SetupState screenshot, insert the section of code in the red box:
Let us analyze the code shown in the preceding screenshots:
In GameData:
Line 11: public int playerLives;
playerLives holds the remaining Lives available ...