From d19677f9f73d8fe7436982bdf8d40f69d69d1b43 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Fri, 12 Aug 2011 09:51:50 -0400 Subject: 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 --- Classes/GameMode.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'Classes/GameMode.h') diff --git a/Classes/GameMode.h b/Classes/GameMode.h index bd47c90..370550c 100644 --- a/Classes/GameMode.h +++ b/Classes/GameMode.h @@ -17,11 +17,26 @@ int score; int lives; Cart* cart; + + CCLayerColor* shadedLayer; + CCLayer* pauseLayer; + + CCLabelBMFont* scoreLabel; + CCLabelBMFont* livesLabel; + + void (^delayedAction)(void); } @property (readonly) Cart* cart; -@property (assign) int score; -@property (assign) int lives; +@property (nonatomic,assign) int score; +@property (nonatomic,assign) int lives; ++ (CCScene*)scene; - (void)tick:(ccTime)dt; +- (BOOL)canPause; +- (void)pause; +- (void)unpause; +- (void)mainmenu; +- (void)scheduleDelayedAction:(void(^)(void))delayedAction delay:(float)delay; +- (void)runDelayedAction; @end -- cgit 1.4.1