summary refs log tree commit diff stats
path: root/Classes/MainMenuLayer.m
diff options
context:
space:
mode:
authorStarla Insigna <starla4444@gmail.com>2011-08-18 15:51:48 -0400
committerStarla Insigna <starla4444@gmail.com>2011-08-18 15:51:48 -0400
commit3750d7aa4e307d1f2099eceaa21014151e78d364 (patch)
tree77487a1cc5fd055d2d8096a158d4908a5e4094fa /Classes/MainMenuLayer.m
parent6906cf0ce4f8266173d67a7b9fccc56747d5d618 (diff)
downloadcartcollect-3750d7aa4e307d1f2099eceaa21014151e78d364.tar.gz
cartcollect-3750d7aa4e307d1f2099eceaa21014151e78d364.tar.bz2
cartcollect-3750d7aa4e307d1f2099eceaa21014151e78d364.zip
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
Diffstat (limited to 'Classes/MainMenuLayer.m')
-rwxr-xr-xClasses/MainMenuLayer.m13
1 files changed, 3 insertions, 10 deletions
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 @@
8 8
9#import "MainMenuLayer.h" 9#import "MainMenuLayer.h"
10#import "HighscoreListController.h" 10#import "HighscoreListController.h"
11#import "ClassicGameMode.h" 11#import "GameModeSelectionLayer.h"
12#import "TutorialMode.h"
13#import "Cart_CollectAppDelegate.h" 12#import "Cart_CollectAppDelegate.h"
14 13
15@implementation MainMenuLayer 14@implementation MainMenuLayer
@@ -45,10 +44,9 @@
45 //CCMenuItemLabel* menuItem2 = [CCMenuItemLabel itemWithLabel:menuItemLabel2 target:self selector:@selector(highscores)]; 44 //CCMenuItemLabel* menuItem2 = [CCMenuItemLabel itemWithLabel:menuItemLabel2 target:self selector:@selector(highscores)];
46 45
47 CCMenuItemImage* newgameMenuItem = [CCMenuItemImage itemFromNormalImage:@"newgame.png" selectedImage:@"newgame2.png" target:self selector:@selector(newgame)]; 46 CCMenuItemImage* newgameMenuItem = [CCMenuItemImage itemFromNormalImage:@"newgame.png" selectedImage:@"newgame2.png" target:self selector:@selector(newgame)];
48 CCMenuItemImage* tutorialMenuItem = [CCMenuItemImage itemFromNormalImage:@"tutorial.png" selectedImage:@"tutorial2.png" target:self selector:@selector(tutorial)];
49 CCMenuItemImage* highscoresMenuItem = [CCMenuItemImage itemFromNormalImage:@"highscores.png" selectedImage:@"highscores2.png" target:self selector:@selector(highscores)]; 47 CCMenuItemImage* highscoresMenuItem = [CCMenuItemImage itemFromNormalImage:@"highscores.png" selectedImage:@"highscores2.png" target:self selector:@selector(highscores)];
50 48
51 CCMenu* menu = [CCMenu menuWithItems:newgameMenuItem, tutorialMenuItem, highscoresMenuItem, nil]; 49 CCMenu* menu = [CCMenu menuWithItems:newgameMenuItem, highscoresMenuItem, nil];
52 [menu alignItemsVertically]; 50 [menu alignItemsVertically];
53 menu.position = ccp(240, 100); 51 menu.position = ccp(240, 100);
54 [self addChild:menu]; 52 [self addChild:menu];
@@ -59,12 +57,7 @@
59 57
60- (void)newgame 58- (void)newgame
61{ 59{
62 [[CCDirector sharedDirector] replaceScene:[ClassicGameMode scene]]; 60 [[CCDirector sharedDirector] replaceScene:[GameModeSelectionLayer scene]];
63}
64
65- (void)tutorial
66{
67 [[CCDirector sharedDirector] replaceScene:[TutorialMode scene]];
68} 61}
69 62
70- (void)highscores 63- (void)highscores