summary refs log tree commit diff stats
path: root/Classes/MainMenuLayer.m
diff options
context:
space:
mode:
Diffstat (limited to 'Classes/MainMenuLayer.m')
-rwxr-xr-xClasses/MainMenuLayer.m9
1 files changed, 8 insertions, 1 deletions
diff --git a/Classes/MainMenuLayer.m b/Classes/MainMenuLayer.m index 537c5c1..cf4b8cf 100755 --- a/Classes/MainMenuLayer.m +++ b/Classes/MainMenuLayer.m
@@ -11,6 +11,7 @@
11#import "ClassicGameMode.h" 11#import "ClassicGameMode.h"
12#import "TutorialMode.h" 12#import "TutorialMode.h"
13#import "Cart_CollectAppDelegate.h" 13#import "Cart_CollectAppDelegate.h"
14#import "JumpGameMode.h"
14 15
15@implementation MainMenuLayer 16@implementation MainMenuLayer
16 17
@@ -46,9 +47,10 @@
46 47
47 CCMenuItemImage* newgameMenuItem = [CCMenuItemImage itemFromNormalImage:@"newgame.png" selectedImage:@"newgame2.png" target:self selector:@selector(newgame)]; 48 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* tutorialMenuItem = [CCMenuItemImage itemFromNormalImage:@"tutorial.png" selectedImage:@"tutorial2.png" target:self selector:@selector(tutorial)];
50 CCMenuItemImage* jumpMenuItem = [CCMenuItemImage itemFromNormalImage:@"jump.png" selectedImage:@"jump2.png" target:self selector:@selector(jump)];
49 CCMenuItemImage* highscoresMenuItem = [CCMenuItemImage itemFromNormalImage:@"highscores.png" selectedImage:@"highscores2.png" target:self selector:@selector(highscores)]; 51 CCMenuItemImage* highscoresMenuItem = [CCMenuItemImage itemFromNormalImage:@"highscores.png" selectedImage:@"highscores2.png" target:self selector:@selector(highscores)];
50 52
51 CCMenu* menu = [CCMenu menuWithItems:newgameMenuItem, tutorialMenuItem, highscoresMenuItem, nil]; 53 CCMenu* menu = [CCMenu menuWithItems:newgameMenuItem, tutorialMenuItem, jumpMenuItem, highscoresMenuItem, nil];
52 [menu alignItemsVertically]; 54 [menu alignItemsVertically];
53 menu.position = ccp(240, 100); 55 menu.position = ccp(240, 100);
54 [self addChild:menu]; 56 [self addChild:menu];
@@ -67,6 +69,11 @@
67 [[CCDirector sharedDirector] replaceScene:[TutorialMode scene]]; 69 [[CCDirector sharedDirector] replaceScene:[TutorialMode scene]];
68} 70}
69 71
72- (void)jump
73{
74 [[CCDirector sharedDirector] replaceScene:[JumpGameMode scene]];
75}
76
70- (void)highscores 77- (void)highscores
71{ 78{
72 HighscoreListController* listController = [[HighscoreListController alloc] initWithStyle:UITableViewStylePlain]; 79 HighscoreListController* listController = [[HighscoreListController alloc] initWithStyle:UITableViewStylePlain];