diff options
author | Starla Insigna <starla4444@gmail.com> | 2011-08-17 19:54:25 -0400 |
---|---|---|
committer | Starla Insigna <starla4444@gmail.com> | 2011-08-17 19:54:25 -0400 |
commit | 4d94802036a53e6ec246ab0abac17fd76d17c885 (patch) | |
tree | 7e19df50363755707b7e7907117888146abc2377 /Classes/MainMenuLayer.m | |
parent | fee8d3506b4c2f6d5933a85181de9bb8e6f5fcc4 (diff) | |
download | cartcollect-4d94802036a53e6ec246ab0abac17fd76d17c885.tar.gz cartcollect-4d94802036a53e6ec246ab0abac17fd76d17c885.tar.bz2 cartcollect-4d94802036a53e6ec246ab0abac17fd76d17c885.zip |
Started Jump game mode
So far, Jump exists as a blank world where the player can control the cart (including the ability to jump by swiping upwards) and where the water level rises for a bit and then falls, taking the cart with it. Refs #204
Diffstat (limited to 'Classes/MainMenuLayer.m')
-rwxr-xr-x | Classes/MainMenuLayer.m | 9 |
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]; |