From 3750d7aa4e307d1f2099eceaa21014151e78d364 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Thu, 18 Aug 2011 15:51:48 -0400 Subject: Started game mode selection screen So far, tapping "New Game" shows a screen with two game modes: the tutorial and the classic collect. They both have pictures and Collect's is grayscale if it hasn't been unlocked yet (a.k.a. the tutorial hasn't been completed yet). Also, Collect's title is replaced with question marks and the text "Beat the tutorial!" is shown if it isn't unlocked--if it is unlocked, the player's highscore, if they have one, is shown. A "Back to Main Menu" button is also present. Neither selection is as of yet tappable, and neither picture yet has a border. You cannot scroll through modes yet either. Refs #207 --- Classes/MainMenuLayer.m | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'Classes/MainMenuLayer.m') diff --git a/Classes/MainMenuLayer.m b/Classes/MainMenuLayer.m index 8b21fab..06a528c 100755 --- a/Classes/MainMenuLayer.m +++ b/Classes/MainMenuLayer.m @@ -8,8 +8,7 @@ #import "MainMenuLayer.h" #import "HighscoreListController.h" -#import "ClassicGameMode.h" -#import "TutorialMode.h" +#import "GameModeSelectionLayer.h" #import "Cart_CollectAppDelegate.h" @implementation MainMenuLayer @@ -45,10 +44,9 @@ //CCMenuItemLabel* menuItem2 = [CCMenuItemLabel itemWithLabel:menuItemLabel2 target:self selector:@selector(highscores)]; CCMenuItemImage* newgameMenuItem = [CCMenuItemImage itemFromNormalImage:@"newgame.png" selectedImage:@"newgame2.png" target:self selector:@selector(newgame)]; - CCMenuItemImage* tutorialMenuItem = [CCMenuItemImage itemFromNormalImage:@"tutorial.png" selectedImage:@"tutorial2.png" target:self selector:@selector(tutorial)]; CCMenuItemImage* highscoresMenuItem = [CCMenuItemImage itemFromNormalImage:@"highscores.png" selectedImage:@"highscores2.png" target:self selector:@selector(highscores)]; - CCMenu* menu = [CCMenu menuWithItems:newgameMenuItem, tutorialMenuItem, highscoresMenuItem, nil]; + CCMenu* menu = [CCMenu menuWithItems:newgameMenuItem, highscoresMenuItem, nil]; [menu alignItemsVertically]; menu.position = ccp(240, 100); [self addChild:menu]; @@ -59,12 +57,7 @@ - (void)newgame { - [[CCDirector sharedDirector] replaceScene:[ClassicGameMode scene]]; -} - -- (void)tutorial -{ - [[CCDirector sharedDirector] replaceScene:[TutorialMode scene]]; + [[CCDirector sharedDirector] replaceScene:[GameModeSelectionLayer scene]]; } - (void)highscores -- cgit 1.4.1