Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. //Sets _squareOneNumber to 0 (this is going to be the changing value)
  2. _squareOneNumber = 0;
  3.  
  4. if (self.squareOneNumber==0) {
  5. if (a==b) {
  6. [self gameOverImagePutter];
  7. NSLog(@"One wasn't pressed");
  8. }
  9. }
  10.  
  11. //In touchesBegan method
  12. UITouch *touch = [touches anyObject];
  13. CGPoint touchLocation = [touch locationInView:self.view];
  14.  
  15. if ([self.squareOne.layer.presentationLayer hitTest:touchLocation]) {
  16. [_squareOne setHidden:YES];
  17. _squareOneNumber = 1;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement