diff options
author | Starla Insigna <starla4444@gmail.com> | 2011-08-07 10:04:54 -0400 |
---|---|---|
committer | Starla Insigna <starla4444@gmail.com> | 2011-08-07 10:04:54 -0400 |
commit | 1d9ed882de4e2e3a53cdd5e90edc25e8ae10af1b (patch) | |
tree | 4a8f7445cf57b4de4295f81ff0a70c6b5f49c978 /Classes/TutorialBubble.h | |
parent | 0a8fed12704bf343ad9604f964b71b3f50495382 (diff) | |
download | cartcollect-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/TutorialBubble.h')
-rw-r--r-- | Classes/TutorialBubble.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Classes/TutorialBubble.h b/Classes/TutorialBubble.h new file mode 100644 index 0000000..4ce3352 --- /dev/null +++ b/Classes/TutorialBubble.h | |||
@@ -0,0 +1,29 @@ | |||
1 | // | ||
2 | // TutorialBubble.h | ||
3 | // Cart Collect | ||
4 | // | ||
5 | // Created by Starla Insigna on 8/4/11. | ||
6 | // Copyright 2011 Four Island. All rights reserved. | ||
7 | // | ||
8 | |||
9 | #import <UIKit/UIKit.h> | ||
10 | #import "cocos2d.h" | ||
11 | |||
12 | @interface TutorialBubble : UIView { | ||
13 | UILabel* textView; | ||
14 | UIImage* background; | ||
15 | UIImageView* imageView; | ||
16 | UIImageView* arrowView; | ||
17 | UIButton* button; | ||
18 | id target; | ||
19 | SEL action; | ||
20 | NSString* name; | ||
21 | } | ||
22 | |||
23 | @property (readonly) NSString* name; | ||
24 | - (id)initWithText:(NSString*)text name:(NSString*)name; | ||
25 | - (id)initWithText:(NSString*)text name:(NSString*)name spriteReference:(CCSprite*)spriteReference; | ||
26 | - (void)buttonPressed:(id)sender; | ||
27 | - (void)setTarget:(id)sender action:(SEL)action; | ||
28 | |||
29 | @end | ||