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/GameMode.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Classes/GameMode.h') diff --git a/Classes/GameMode.h b/Classes/GameMode.h index e208d49..ae3fbe5 100644 --- a/Classes/GameMode.h +++ b/Classes/GameMode.h @@ -15,7 +15,7 @@ #define GAME_SCENE 436 #define GAME_LAYER 437 -@interface GameMode : CCLayer { +@interface GameMode : CCLayer { NSMutableSet* objects; int score; int lives; @@ -23,19 +23,23 @@ Cart* cart; FallingObjectFactory* objectFactory; + CCLayerColor* willPauseLayer; CCLayerColor* shadedLayer; CCLayer* pauseLayer; + BOOL isPaused; + BOOL isPausing; CCLabelBMFont* scoreLabel; CCLabelBMFont* livesLabel; void (^delayedAction)(void); - BOOL isPaused; - BOOL hasGyroscope; double pitch; CMMotionManager* motionManager; + + BOOL isGesturing; + CGPoint gestureStartPoint; } @property (readonly) Cart* cart; -- cgit 1.4.1