Skip to content

Instantly share code, notes, and snippets.

@jasonmcdermott
Created July 3, 2014 03:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonmcdermott/4e88334a4dcf5d5141b6 to your computer and use it in GitHub Desktop.
Save jasonmcdermott/4e88334a4dcf5d5141b6 to your computer and use it in GitHub Desktop.
- (IBAction)pressLoseLifeButton:(UIButton *)sender
{
if (playing) {
lives--;
[self updateLabels];
if (lives == 0) {
[self endGame];
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment