diff options
Diffstat (limited to 'Classes/MainMenuLayer.m')
-rwxr-xr-x | Classes/MainMenuLayer.m | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/Classes/MainMenuLayer.m b/Classes/MainMenuLayer.m index cf4b8cf..d4a6331 100755 --- a/Classes/MainMenuLayer.m +++ b/Classes/MainMenuLayer.m | |||
@@ -8,10 +8,9 @@ | |||
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 | #import "JumpGameMode.h" | 13 | #import "TestFlight.h" |
15 | 14 | ||
16 | @implementation MainMenuLayer | 15 | @implementation MainMenuLayer |
17 | 16 | ||
@@ -35,7 +34,7 @@ | |||
35 | backgroundImage.position = ccp(240,160); | 34 | backgroundImage.position = ccp(240,160); |
36 | [self addChild:backgroundImage]; | 35 | [self addChild:backgroundImage]; |
37 | 36 | ||
38 | CCLabelBMFont* titleText = [CCLabelBMFont labelWithString:@"Cart Collect - The Game!" fntFile:@"getoffthatboatrightnowyounglady.fnt"]; | 37 | CCLabelBMFont* titleText = [CCLabelBMFont labelWithString:@"Cartographic - The Game!" fntFile:@"getoffthatboatrightnowyounglady.fnt"]; |
39 | titleText.position = ccp(240, 320-64); | 38 | titleText.position = ccp(240, 320-64); |
40 | [self addChild:titleText]; | 39 | [self addChild:titleText]; |
41 | 40 | ||
@@ -46,11 +45,10 @@ | |||
46 | //CCMenuItemLabel* menuItem2 = [CCMenuItemLabel itemWithLabel:menuItemLabel2 target:self selector:@selector(highscores)]; | 45 | //CCMenuItemLabel* menuItem2 = [CCMenuItemLabel itemWithLabel:menuItemLabel2 target:self selector:@selector(highscores)]; |
47 | 46 | ||
48 | CCMenuItemImage* newgameMenuItem = [CCMenuItemImage itemFromNormalImage:@"newgame.png" selectedImage:@"newgame2.png" target:self selector:@selector(newgame)]; | 47 | CCMenuItemImage* newgameMenuItem = [CCMenuItemImage itemFromNormalImage:@"newgame.png" selectedImage:@"newgame2.png" target:self selector:@selector(newgame)]; |
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)]; | ||
51 | CCMenuItemImage* highscoresMenuItem = [CCMenuItemImage itemFromNormalImage:@"highscores.png" selectedImage:@"highscores2.png" target:self selector:@selector(highscores)]; | 48 | CCMenuItemImage* highscoresMenuItem = [CCMenuItemImage itemFromNormalImage:@"highscores.png" selectedImage:@"highscores2.png" target:self selector:@selector(highscores)]; |
52 | 49 | CCMenuItemImage* feedbackMenuItem = [CCMenuItemImage itemFromNormalImage:@"feedback.png" selectedImage:@"feedback2.png" target:self selector:@selector(feedback)]; | |
53 | CCMenu* menu = [CCMenu menuWithItems:newgameMenuItem, tutorialMenuItem, jumpMenuItem, highscoresMenuItem, nil]; | 50 | |
51 | CCMenu* menu = [CCMenu menuWithItems:newgameMenuItem, highscoresMenuItem, feedbackMenuItem, nil]; | ||
54 | [menu alignItemsVertically]; | 52 | [menu alignItemsVertically]; |
55 | menu.position = ccp(240, 100); | 53 | menu.position = ccp(240, 100); |
56 | [self addChild:menu]; | 54 | [self addChild:menu]; |
@@ -61,17 +59,7 @@ | |||
61 | 59 | ||
62 | - (void)newgame | 60 | - (void)newgame |
63 | { | 61 | { |
64 | [[CCDirector sharedDirector] replaceScene:[ClassicGameMode scene]]; | 62 | [[CCDirector sharedDirector] replaceScene:[GameModeSelectionLayer scene]]; |
65 | } | ||
66 | |||
67 | - (void)tutorial | ||
68 | { | ||
69 | [[CCDirector sharedDirector] replaceScene:[TutorialMode scene]]; | ||
70 | } | ||
71 | |||
72 | - (void)jump | ||
73 | { | ||
74 | [[CCDirector sharedDirector] replaceScene:[JumpGameMode scene]]; | ||
75 | } | 63 | } |
76 | 64 | ||
77 | - (void)highscores | 65 | - (void)highscores |
@@ -82,4 +70,9 @@ | |||
82 | [listController release]; | 70 | [listController release]; |
83 | } | 71 | } |
84 | 72 | ||
73 | - (void)feedback | ||
74 | { | ||
75 | [TestFlight openFeedbackView]; | ||
76 | } | ||
77 | |||
85 | @end | 78 | @end |