diff options
Diffstat (limited to 'Classes/JumpGameMode.m')
| -rw-r--r-- | Classes/JumpGameMode.m | 19 |
1 files changed, 2 insertions, 17 deletions
| 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; | |||
| 83 | cart.falling = YES; | 83 | cart.falling = YES; |
| 84 | cart.delegate = self; | 84 | cart.delegate = self; |
| 85 | 85 | ||
| 86 | self.isTouchEnabled = YES; | ||
| 87 | |||
| 88 | waterTick = 0; | 86 | waterTick = 0; |
| 89 | wave = NO; | 87 | wave = NO; |
| 90 | 88 | ||
| @@ -279,18 +277,10 @@ static GameModeInfo* info; | |||
| 279 | } | 277 | } |
| 280 | } | 278 | } |
| 281 | 279 | ||
| 282 | - (void)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event | ||
| 283 | { | ||
| 284 | if ((!isPaused) && (!isGesturing)) | ||
| 285 | { | ||
| 286 | UITouch* touch = [touches anyObject]; | ||
| 287 | gestureStartPoint = [touch locationInView:nil]; | ||
| 288 | isGesturing = YES; | ||
| 289 | } | ||
| 290 | } | ||
| 291 | |||
| 292 | - (void)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event | 280 | - (void)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event |
| 293 | { | 281 | { |
| 282 | [super ccTouchesMoved:touches withEvent:event]; | ||
| 283 | |||
| 294 | if (isGesturing) | 284 | if (isGesturing) |
| 295 | { | 285 | { |
| 296 | UITouch* touch = [touches anyObject]; | 286 | UITouch* touch = [touches anyObject]; |
| @@ -306,11 +296,6 @@ static GameModeInfo* info; | |||
| 306 | } | 296 | } |
| 307 | } | 297 | } |
| 308 | 298 | ||
| 309 | - (void)ccTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event | ||
| 310 | { | ||
| 311 | isGesturing = NO; | ||
| 312 | } | ||
| 313 | |||
| 314 | - (int)cartShouldFall:(Cart *)m_cart | 299 | - (int)cartShouldFall:(Cart *)m_cart |
| 315 | { | 300 | { |
| 316 | int bottom = 0-m_cart.sprite.boundingBox.size.height/2; | 301 | int bottom = 0-m_cart.sprite.boundingBox.size.height/2; |
