From 1d9ed882de4e2e3a53cdd5e90edc25e8ae10af1b Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 7 Aug 2011 10:04:54 -0400 Subject: Implemented tutorial bubbles GameLayer now has support for pausing game flow and displaying a tutorial bubble that the user can tap to dismiss. No code has been written, however, to make use of this, because I think it may be simpler to abstract GameLayer out somewhat and create a separate game mode for the tutorial. Deliberation required. PauseLayer has also been removed and the behavior has been brought into GameLayer. Refs #193 --- Classes/GameLayer.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'Classes/GameLayer.h') diff --git a/Classes/GameLayer.h b/Classes/GameLayer.h index 88a1406..e72b551 100755 --- a/Classes/GameLayer.h +++ b/Classes/GameLayer.h @@ -15,9 +15,13 @@ #import "Rock.h" #import "GameOverLayer.h" #import "ValuableObject.h" -#import "PauseLayer.h" #import "CocosDenshion.h" #import "SimpleAudioEngine.h" +#import "TutorialBubble.h" +#import "MainMenuLayer.h" + +#define GAME_SCENE 436 +#define GAME_LAYER 437 @interface GameLayer : CCLayer { NSMutableSet* objects; @@ -28,11 +32,19 @@ int lives; float addSpeed; CCSprite* cartSprite; + TutorialBubble* currentTutorial; + + CCLayerColor* shadedLayer; + CCLayer* pauseLayer; } +@property (nonatomic,retain) TutorialBubble* currentTutorial; + (CCScene*)scene; - (id)init; - (void)updateLabels; - (void)pause; +- (void)unpause; +- (void)mainmenu; +- (void)endTutorial; @end -- cgit 1.4.1