diff options
| author | Starla Insigna <starla4444@gmail.com> | 2011-08-12 09:51:50 -0400 |
|---|---|---|
| committer | Starla Insigna <starla4444@gmail.com> | 2011-08-12 09:51:50 -0400 |
| commit | d19677f9f73d8fe7436982bdf8d40f69d69d1b43 (patch) | |
| tree | 74853f369ef51bc9f9f595ff31153ce1a718e651 /Classes/TutorialMode.h | |
| parent | 07f40d804de35d1cead13217c448811e774e6e67 (diff) | |
| download | cartcollect-d19677f9f73d8fe7436982bdf8d40f69d69d1b43.tar.gz cartcollect-d19677f9f73d8fe7436982bdf8d40f69d69d1b43.tar.bz2 cartcollect-d19677f9f73d8fe7436982bdf8d40f69d69d1b43.zip | |
Added tutorial mode
GameLayer was also renamed to ClassicGameMode and its pause functionality and score/lives counters were moved out to GameMode. FallingObjectDelegate was created to allow for custom code to be run when items were caught/missed, something that is used extensively by tutorial mode. Important: Cart Collect's bundle identifier was changed in this revision from com.fourisland.Cart-Collect to com.apatheticink.Cart-Collect, so ensure that before attempting to compile/run this build, you clear your build directory and remove the old version of Cart Collect from your device. Closes #193
Diffstat (limited to 'Classes/TutorialMode.h')
| -rw-r--r-- | Classes/TutorialMode.h | 26 |
1 files changed, 26 insertions, 0 deletions
| diff --git a/Classes/TutorialMode.h b/Classes/TutorialMode.h new file mode 100644 index 0000000..17b0c7f --- /dev/null +++ b/Classes/TutorialMode.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | // | ||
| 2 | // TutorialMode.h | ||
| 3 | // Cart Collect | ||
| 4 | // | ||
| 5 | // Created by Starla Insigna on 8/10/11. | ||
| 6 | // Copyright 2011 Four Island. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import "GameMode.h" | ||
| 10 | #import "TutorialBubble.h" | ||
| 11 | #import "FallingObjectDelegate.h" | ||
| 12 | |||
| 13 | @interface TutorialMode : GameMode <FallingObjectDelegate> { | ||
| 14 | TutorialBubble* currentTutorial; | ||
| 15 | BOOL showedDeathBubble; | ||
| 16 | int randomItemsDropped; | ||
| 17 | } | ||
| 18 | |||
| 19 | @property (nonatomic,retain) TutorialBubble* currentTutorial; | ||
| 20 | - (void)endTutorial; | ||
| 21 | - (FallingObject*)dropSpecificItem:(FallingObject*)item; | ||
| 22 | - (FallingObject*)dropRandomItem; | ||
| 23 | - (void)randomlyAddObject:(ccTime)dt; | ||
| 24 | - (void)skipTutorial; | ||
| 25 | |||
| 26 | @end | ||
