diff options
Diffstat (limited to 'Classes/MainMenuLayer.m')
-rwxr-xr-x | Classes/MainMenuLayer.m | 13 |
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 |