From 7e84858da5ecb1a445982860ce177c3c91318135 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Thu, 18 Aug 2011 20:06:45 -0400 Subject: Made game mode selections tappable Both the Tutorial and Collect game mode selections can now be tapped to start playing the mode. Holding your finger down on a game mode darkens the image, to give the player feedback on the fact that they are touching a button. This only applies to unlocked game modes--not-yet-unlocked game modes are just sprites, not buttons, and do not react to touch. Note that the game mode does not yet transition in with the zoom in/fade in transition combo that is specified in the ticket. Also fixed a bug that would, if the player hadn't yet unlocked Collect and then played the Tutorial, continue to show the grayscale Collect image even though the button was completely working and tappable. Also changed Tutorial Mode to bring the player to the game mode selection screen upon completion instead of the main menu. Refs #207 --- Classes/GameModeSelection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Classes/GameModeSelection.h') diff --git a/Classes/GameModeSelection.h b/Classes/GameModeSelection.h index aadbf36..66d0a5a 100644 --- a/Classes/GameModeSelection.h +++ b/Classes/GameModeSelection.h @@ -16,7 +16,6 @@ NSString* unlockCondition; CCLabelBMFont* nameLabel; - CCSprite* picture; CCLabelBMFont* otherLabel; } @@ -26,5 +25,6 @@ @property (nonatomic,assign) int highscore; @property (nonatomic,retain) NSString* unlockCondition; - (id)initWithName:(NSString*)name location:(NSString*)location filename:(NSString*)filename unlocked:(BOOL)unlocked; +- (void)buttonTapped; @end -- cgit 1.4.1