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.m12
1 files changed, 10 insertions, 2 deletions
diff --git a/Classes/MainMenuLayer.m b/Classes/MainMenuLayer.m index 11cffd7..50c595f 100755 --- a/Classes/MainMenuLayer.m +++ b/Classes/MainMenuLayer.m
@@ -8,7 +8,8 @@
8 8
9#import "MainMenuLayer.h" 9#import "MainMenuLayer.h"
10#import "HighscoreListController.h" 10#import "HighscoreListController.h"
11#import "GameLayer.h" 11#import "ClassicGameMode.h"
12#import "TutorialMode.h"
12#import "Cart_CollectAppDelegate.h" 13#import "Cart_CollectAppDelegate.h"
13 14
14@implementation MainMenuLayer 15@implementation MainMenuLayer
@@ -57,7 +58,14 @@
57 58
58- (void)newgame 59- (void)newgame
59{ 60{
60 [[CCDirector sharedDirector] replaceScene:[GameLayer scene]]; 61 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
62
63 if ([defaults boolForKey:@"hasDoneTutorial"])
64 {
65 [[CCDirector sharedDirector] replaceScene:[ClassicGameMode scene]];
66 } else {
67 [[CCDirector sharedDirector] replaceScene:[TutorialMode scene]];
68 }
61} 69}
62 70
63- (void)highscores 71- (void)highscores