Sunday, April 5, 2015

Score(R)

Added a score function to Save the Humans - on the model of the enemy head -
thus on a stackpanel control.
 
The score goes up by one on a score variable every time a human is taken to target.
A subsequent line must be added to show this new score value; otherwise, who would know!!

 
The score variable is initially defined:
 
The score is set back to zero at the Start event handler:


The score is incremented every time a human is saved in the target_PointEntered method:
 

 

No comments: