From 8123ad65be46e9b7243d3429dd083638eece0127 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Fri, 4 Jan 2013 15:02:20 -0500 Subject: Made pausing easier You can now pause by tapping in the top half of the screen in any mode that supports pausing. Closes #199 --- Classes/JumpGameMode.m | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'Classes/JumpGameMode.m') diff --git a/Classes/JumpGameMode.m b/Classes/JumpGameMode.m index f3e690c..f0cb469 100644 --- a/Classes/JumpGameMode.m +++ b/Classes/JumpGameMode.m @@ -83,8 +83,6 @@ static GameModeInfo* info; cart.falling = YES; cart.delegate = self; - self.isTouchEnabled = YES; - waterTick = 0; wave = NO; @@ -279,18 +277,10 @@ static GameModeInfo* info; } } -- (void)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event -{ - if ((!isPaused) && (!isGesturing)) - { - UITouch* touch = [touches anyObject]; - gestureStartPoint = [touch locationInView:nil]; - isGesturing = YES; - } -} - - (void)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { + [super ccTouchesMoved:touches withEvent:event]; + if (isGesturing) { UITouch* touch = [touches anyObject]; @@ -306,11 +296,6 @@ static GameModeInfo* info; } } -- (void)ccTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event -{ - isGesturing = NO; -} - - (int)cartShouldFall:(Cart *)m_cart { int bottom = 0-m_cart.sprite.boundingBox.size.height/2; -- cgit 1.4.1