summary refs log tree commit diff stats
path: root/Classes/GameLayer.h
diff options
context:
space:
mode:
authorStarla Insigna <starla4444@gmail.com>2011-08-07 10:04:54 -0400
committerStarla Insigna <starla4444@gmail.com>2011-08-07 10:04:54 -0400
commit1d9ed882de4e2e3a53cdd5e90edc25e8ae10af1b (patch)
tree4a8f7445cf57b4de4295f81ff0a70c6b5f49c978 /Classes/GameLayer.h
parent0a8fed12704bf343ad9604f964b71b3f50495382 (diff)
downloadcartcollect-1d9ed882de4e2e3a53cdd5e90edc25e8ae10af1b.tar.gz
cartcollect-1d9ed882de4e2e3a53cdd5e90edc25e8ae10af1b.tar.bz2
cartcollect-1d9ed882de4e2e3a53cdd5e90edc25e8ae10af1b.zip
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
Diffstat (limited to 'Classes/GameLayer.h')
-rwxr-xr-xClasses/GameLayer.h14
1 files changed, 13 insertions, 1 deletions
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 @@
15#import "Rock.h" 15#import "Rock.h"
16#import "GameOverLayer.h" 16#import "GameOverLayer.h"
17#import "ValuableObject.h" 17#import "ValuableObject.h"
18#import "PauseLayer.h"
19#import "CocosDenshion.h" 18#import "CocosDenshion.h"
20#import "SimpleAudioEngine.h" 19#import "SimpleAudioEngine.h"
20#import "TutorialBubble.h"
21#import "MainMenuLayer.h"
22
23#define GAME_SCENE 436
24#define GAME_LAYER 437
21 25
22@interface GameLayer : CCLayer { 26@interface GameLayer : CCLayer {
23 NSMutableSet* objects; 27 NSMutableSet* objects;
@@ -28,11 +32,19 @@
28 int lives; 32 int lives;
29 float addSpeed; 33 float addSpeed;
30 CCSprite* cartSprite; 34 CCSprite* cartSprite;
35 TutorialBubble* currentTutorial;
36
37 CCLayerColor* shadedLayer;
38 CCLayer* pauseLayer;
31} 39}
32 40
41@property (nonatomic,retain) TutorialBubble* currentTutorial;
33+ (CCScene*)scene; 42+ (CCScene*)scene;
34- (id)init; 43- (id)init;
35- (void)updateLabels; 44- (void)updateLabels;
36- (void)pause; 45- (void)pause;
46- (void)unpause;
47- (void)mainmenu;
48- (void)endTutorial;
37 49
38@end 50@end