diff options
-rwxr-xr-x | Cart Collect.xcodeproj/project.pbxproj | 18 | ||||
-rwxr-xr-x | Classes/MainMenuLayer.h | 1 | ||||
-rwxr-xr-x | Classes/MainMenuLayer.m | 21 | ||||
-rw-r--r-- | Classes/TutorialMode.h | 1 | ||||
-rw-r--r-- | Classes/TutorialMode.m | 23 | ||||
-rw-r--r-- | Resources/skiptutorial.png | bin | 2871 -> 0 bytes | |||
-rw-r--r-- | Resources/skiptutorial2.png | bin | 3193 -> 0 bytes | |||
-rw-r--r-- | Resources/tutorial.png | bin | 0 -> 2131 bytes | |||
-rw-r--r-- | Resources/tutorial2.png | bin | 0 -> 2337 bytes |
9 files changed, 22 insertions, 42 deletions
diff --git a/Cart Collect.xcodeproj/project.pbxproj b/Cart Collect.xcodeproj/project.pbxproj index 280cb2a..1c07ef3 100755 --- a/Cart Collect.xcodeproj/project.pbxproj +++ b/Cart Collect.xcodeproj/project.pbxproj | |||
@@ -103,11 +103,11 @@ | |||
103 | 6C0C141413F20E98003A31B2 /* GameMode.m in Sources */ = {isa = PBXBuildFile; fileRef = 6C0C141313F20E98003A31B2 /* GameMode.m */; }; | 103 | 6C0C141413F20E98003A31B2 /* GameMode.m in Sources */ = {isa = PBXBuildFile; fileRef = 6C0C141313F20E98003A31B2 /* GameMode.m */; }; |
104 | 6C29041013EAEB590032DA0F /* TutorialBubble.m in Sources */ = {isa = PBXBuildFile; fileRef = 6C29040F13EAEB590032DA0F /* TutorialBubble.m */; }; | 104 | 6C29041013EAEB590032DA0F /* TutorialBubble.m in Sources */ = {isa = PBXBuildFile; fileRef = 6C29040F13EAEB590032DA0F /* TutorialBubble.m */; }; |
105 | 6C29041213EAEC8A0032DA0F /* framestuff.png in Resources */ = {isa = PBXBuildFile; fileRef = 6C29041113EAEC8A0032DA0F /* framestuff.png */; }; | 105 | 6C29041213EAEC8A0032DA0F /* framestuff.png in Resources */ = {isa = PBXBuildFile; fileRef = 6C29041113EAEC8A0032DA0F /* framestuff.png */; }; |
106 | 6C39CFE013FC2708002B21AF /* tutorial.png in Resources */ = {isa = PBXBuildFile; fileRef = 6C39CFDF13FC2708002B21AF /* tutorial.png */; }; | ||
107 | 6C39CFE213FC2713002B21AF /* tutorial2.png in Resources */ = {isa = PBXBuildFile; fileRef = 6C39CFE113FC2713002B21AF /* tutorial2.png */; }; | ||
106 | 6C5179C613DF3839006F1F38 /* Morning1.png in Resources */ = {isa = PBXBuildFile; fileRef = 6C5179C513DF3839006F1F38 /* Morning1.png */; }; | 108 | 6C5179C613DF3839006F1F38 /* Morning1.png in Resources */ = {isa = PBXBuildFile; fileRef = 6C5179C513DF3839006F1F38 /* Morning1.png */; }; |
107 | 6CC89DD913F2F4E6003704F7 /* Entitlements.plist in Resources */ = {isa = PBXBuildFile; fileRef = 6CC89DD813F2F4E6003704F7 /* Entitlements.plist */; }; | 109 | 6CC89DD913F2F4E6003704F7 /* Entitlements.plist in Resources */ = {isa = PBXBuildFile; fileRef = 6CC89DD813F2F4E6003704F7 /* Entitlements.plist */; }; |
108 | 6CC89DDF13F31413003704F7 /* TutorialMode.m in Sources */ = {isa = PBXBuildFile; fileRef = 6CC89DDE13F31413003704F7 /* TutorialMode.m */; }; | 110 | 6CC89DDF13F31413003704F7 /* TutorialMode.m in Sources */ = {isa = PBXBuildFile; fileRef = 6CC89DDE13F31413003704F7 /* TutorialMode.m */; }; |
109 | 6CF29FF013F5580400C83428 /* skiptutorial.png in Resources */ = {isa = PBXBuildFile; fileRef = 6CF29FEE13F5580400C83428 /* skiptutorial.png */; }; | ||
110 | 6CF29FF113F5580400C83428 /* skiptutorial2.png in Resources */ = {isa = PBXBuildFile; fileRef = 6CF29FEF13F5580400C83428 /* skiptutorial2.png */; }; | ||
111 | DC6640030F83B3EA000B3E49 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DC6640020F83B3EA000B3E49 /* AudioToolbox.framework */; }; | 111 | DC6640030F83B3EA000B3E49 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DC6640020F83B3EA000B3E49 /* AudioToolbox.framework */; }; |
112 | DC6640050F83B3EA000B3E49 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DC6640040F83B3EA000B3E49 /* OpenAL.framework */; }; | 112 | DC6640050F83B3EA000B3E49 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DC6640040F83B3EA000B3E49 /* OpenAL.framework */; }; |
113 | DCCBF1B70F6022AE0040855A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DCCBF1B60F6022AE0040855A /* CoreGraphics.framework */; }; | 113 | DCCBF1B70F6022AE0040855A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DCCBF1B60F6022AE0040855A /* CoreGraphics.framework */; }; |
@@ -342,7 +342,7 @@ | |||
342 | 3F6C7EE013D636BE00C038FE /* rock.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rock.png; sourceTree = "<group>"; }; | 342 | 3F6C7EE013D636BE00C038FE /* rock.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rock.png; sourceTree = "<group>"; }; |
343 | 3F6C7EE213D636CF00C038FE /* Rock.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Rock.h; sourceTree = "<group>"; }; | 343 | 3F6C7EE213D636CF00C038FE /* Rock.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Rock.h; sourceTree = "<group>"; }; |
344 | 3F6C7EE313D636CF00C038FE /* Rock.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Rock.m; sourceTree = "<group>"; }; | 344 | 3F6C7EE313D636CF00C038FE /* Rock.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Rock.m; sourceTree = "<group>"; }; |
345 | 3F6C7EE713D6377D00C038FE /* GameOverScene.h */ = {isa = PBXFileReference; fileEncoding = 4; path = GameOverScene.h; sourceTree = "<group>"; }; | 345 | 3F6C7EE713D6377D00C038FE /* GameOverScene.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GameOverScene.h; sourceTree = "<group>"; }; |
346 | 3F6C7EE813D6377D00C038FE /* GameOverScene.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GameOverScene.m; sourceTree = "<group>"; }; | 346 | 3F6C7EE813D6377D00C038FE /* GameOverScene.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GameOverScene.m; sourceTree = "<group>"; }; |
347 | 3F6C7F2313D63E6500C038FE /* SeaBeach.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = SeaBeach.png; sourceTree = "<group>"; }; | 347 | 3F6C7F2313D63E6500C038FE /* SeaBeach.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = SeaBeach.png; sourceTree = "<group>"; }; |
348 | 3F6C7F4A13D647A600C038FE /* GameOver.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = GameOver.png; sourceTree = "<group>"; }; | 348 | 3F6C7F4A13D647A600C038FE /* GameOver.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = GameOver.png; sourceTree = "<group>"; }; |
@@ -409,13 +409,13 @@ | |||
409 | 6C29040E13EAEB590032DA0F /* TutorialBubble.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TutorialBubble.h; sourceTree = "<group>"; }; | 409 | 6C29040E13EAEB590032DA0F /* TutorialBubble.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TutorialBubble.h; sourceTree = "<group>"; }; |
410 | 6C29040F13EAEB590032DA0F /* TutorialBubble.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TutorialBubble.m; sourceTree = "<group>"; }; | 410 | 6C29040F13EAEB590032DA0F /* TutorialBubble.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TutorialBubble.m; sourceTree = "<group>"; }; |
411 | 6C29041113EAEC8A0032DA0F /* framestuff.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = framestuff.png; sourceTree = "<group>"; }; | 411 | 6C29041113EAEC8A0032DA0F /* framestuff.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = framestuff.png; sourceTree = "<group>"; }; |
412 | 6C39CFDF13FC2708002B21AF /* tutorial.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = tutorial.png; sourceTree = "<group>"; }; | ||
413 | 6C39CFE113FC2713002B21AF /* tutorial2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = tutorial2.png; sourceTree = "<group>"; }; | ||
412 | 6C5179C513DF3839006F1F38 /* Morning1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Morning1.png; sourceTree = "<group>"; }; | 414 | 6C5179C513DF3839006F1F38 /* Morning1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Morning1.png; sourceTree = "<group>"; }; |
413 | 6CC89DD813F2F4E6003704F7 /* Entitlements.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Entitlements.plist; sourceTree = "<group>"; }; | 415 | 6CC89DD813F2F4E6003704F7 /* Entitlements.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Entitlements.plist; sourceTree = "<group>"; }; |
414 | 6CC89DDD13F31413003704F7 /* TutorialMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TutorialMode.h; sourceTree = "<group>"; }; | 416 | 6CC89DDD13F31413003704F7 /* TutorialMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TutorialMode.h; sourceTree = "<group>"; }; |
415 | 6CC89DDE13F31413003704F7 /* TutorialMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TutorialMode.m; sourceTree = "<group>"; }; | 417 | 6CC89DDE13F31413003704F7 /* TutorialMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TutorialMode.m; sourceTree = "<group>"; }; |
416 | 6CC89DE013F3197F003704F7 /* FallingObjectDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FallingObjectDelegate.h; sourceTree = "<group>"; }; | 418 | 6CC89DE013F3197F003704F7 /* FallingObjectDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FallingObjectDelegate.h; sourceTree = "<group>"; }; |
417 | 6CF29FEE13F5580400C83428 /* skiptutorial.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = skiptutorial.png; sourceTree = "<group>"; }; | ||
418 | 6CF29FEF13F5580400C83428 /* skiptutorial2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = skiptutorial2.png; sourceTree = "<group>"; }; | ||
419 | DC6640020F83B3EA000B3E49 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; | 419 | DC6640020F83B3EA000B3E49 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; |
420 | DC6640040F83B3EA000B3E49 /* OpenAL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenAL.framework; path = System/Library/Frameworks/OpenAL.framework; sourceTree = SDKROOT; }; | 420 | DC6640040F83B3EA000B3E49 /* OpenAL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenAL.framework; path = System/Library/Frameworks/OpenAL.framework; sourceTree = SDKROOT; }; |
421 | DCCBF1B60F6022AE0040855A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; | 421 | DCCBF1B60F6022AE0040855A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; |
@@ -765,8 +765,8 @@ | |||
765 | 3F7D0EC713D8E6B000B6CE14 /* Buttons */ = { | 765 | 3F7D0EC713D8E6B000B6CE14 /* Buttons */ = { |
766 | isa = PBXGroup; | 766 | isa = PBXGroup; |
767 | children = ( | 767 | children = ( |
768 | 6CF29FEE13F5580400C83428 /* skiptutorial.png */, | 768 | 6C39CFE113FC2713002B21AF /* tutorial2.png */, |
769 | 6CF29FEF13F5580400C83428 /* skiptutorial2.png */, | 769 | 6C39CFDF13FC2708002B21AF /* tutorial.png */, |
770 | 3F7D0F4813D8F17C00B6CE14 /* highscores.png */, | 770 | 3F7D0F4813D8F17C00B6CE14 /* highscores.png */, |
771 | 3F7D0F4913D8F17C00B6CE14 /* highscores2.png */, | 771 | 3F7D0F4913D8F17C00B6CE14 /* highscores2.png */, |
772 | 3F7D0F4A13D8F17C00B6CE14 /* newgame.png */, | 772 | 3F7D0F4A13D8F17C00B6CE14 /* newgame.png */, |
@@ -1361,8 +1361,8 @@ | |||
1361 | 6C5179C613DF3839006F1F38 /* Morning1.png in Resources */, | 1361 | 6C5179C613DF3839006F1F38 /* Morning1.png in Resources */, |
1362 | 6C29041213EAEC8A0032DA0F /* framestuff.png in Resources */, | 1362 | 6C29041213EAEC8A0032DA0F /* framestuff.png in Resources */, |
1363 | 6CC89DD913F2F4E6003704F7 /* Entitlements.plist in Resources */, | 1363 | 6CC89DD913F2F4E6003704F7 /* Entitlements.plist in Resources */, |
1364 | 6CF29FF013F5580400C83428 /* skiptutorial.png in Resources */, | 1364 | 6C39CFE013FC2708002B21AF /* tutorial.png in Resources */, |
1365 | 6CF29FF113F5580400C83428 /* skiptutorial2.png in Resources */, | 1365 | 6C39CFE213FC2713002B21AF /* tutorial2.png in Resources */, |
1366 | ); | 1366 | ); |
1367 | runOnlyForDeploymentPostprocessing = 0; | 1367 | runOnlyForDeploymentPostprocessing = 0; |
1368 | }; | 1368 | }; |
diff --git a/Classes/MainMenuLayer.h b/Classes/MainMenuLayer.h index d8483b3..e43c5e1 100755 --- a/Classes/MainMenuLayer.h +++ b/Classes/MainMenuLayer.h | |||
@@ -16,6 +16,7 @@ | |||
16 | + (CCScene*)scene; | 16 | + (CCScene*)scene; |
17 | - (id)init; | 17 | - (id)init; |
18 | - (void)newgame; | 18 | - (void)newgame; |
19 | - (void)tutorial; | ||
19 | - (void)highscores; | 20 | - (void)highscores; |
20 | 21 | ||
21 | @end | 22 | @end |
diff --git a/Classes/MainMenuLayer.m b/Classes/MainMenuLayer.m index 50c595f..537c5c1 100755 --- a/Classes/MainMenuLayer.m +++ b/Classes/MainMenuLayer.m | |||
@@ -44,10 +44,11 @@ | |||
44 | //CCLabelBMFont* menuItemLabel2 = [CCLabelBMFont labelWithString:@"Highscores" fntFile:@"getoffthatboatrightnowyounglady.fnt"]; | 44 | //CCLabelBMFont* menuItemLabel2 = [CCLabelBMFont labelWithString:@"Highscores" fntFile:@"getoffthatboatrightnowyounglady.fnt"]; |
45 | //CCMenuItemLabel* menuItem2 = [CCMenuItemLabel itemWithLabel:menuItemLabel2 target:self selector:@selector(highscores)]; | 45 | //CCMenuItemLabel* menuItem2 = [CCMenuItemLabel itemWithLabel:menuItemLabel2 target:self selector:@selector(highscores)]; |
46 | 46 | ||
47 | CCMenuItemImage* menuItem1 = [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)]; |
48 | CCMenuItemImage* menuItem2 = [CCMenuItemImage itemFromNormalImage:@"highscores.png" selectedImage:@"highscores2.png" target:self selector:@selector(highscores)]; | 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)]; | ||
49 | 50 | ||
50 | CCMenu* menu = [CCMenu menuWithItems:menuItem1, menuItem2, nil]; | 51 | CCMenu* menu = [CCMenu menuWithItems:newgameMenuItem, tutorialMenuItem, highscoresMenuItem, nil]; |
51 | [menu alignItemsVertically]; | 52 | [menu alignItemsVertically]; |
52 | menu.position = ccp(240, 100); | 53 | menu.position = ccp(240, 100); |
53 | [self addChild:menu]; | 54 | [self addChild:menu]; |
@@ -58,14 +59,12 @@ | |||
58 | 59 | ||
59 | - (void)newgame | 60 | - (void)newgame |
60 | { | 61 | { |
61 | NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; | 62 | [[CCDirector sharedDirector] replaceScene:[ClassicGameMode scene]]; |
62 | 63 | } | |
63 | if ([defaults boolForKey:@"hasDoneTutorial"]) | 64 | |
64 | { | 65 | - (void)tutorial |
65 | [[CCDirector sharedDirector] replaceScene:[ClassicGameMode scene]]; | 66 | { |
66 | } else { | 67 | [[CCDirector sharedDirector] replaceScene:[TutorialMode scene]]; |
67 | [[CCDirector sharedDirector] replaceScene:[TutorialMode scene]]; | ||
68 | } | ||
69 | } | 68 | } |
70 | 69 | ||
71 | - (void)highscores | 70 | - (void)highscores |
diff --git a/Classes/TutorialMode.h b/Classes/TutorialMode.h index 17b0c7f..6380483 100644 --- a/Classes/TutorialMode.h +++ b/Classes/TutorialMode.h | |||
@@ -21,6 +21,5 @@ | |||
21 | - (FallingObject*)dropSpecificItem:(FallingObject*)item; | 21 | - (FallingObject*)dropSpecificItem:(FallingObject*)item; |
22 | - (FallingObject*)dropRandomItem; | 22 | - (FallingObject*)dropRandomItem; |
23 | - (void)randomlyAddObject:(ccTime)dt; | 23 | - (void)randomlyAddObject:(ccTime)dt; |
24 | - (void)skipTutorial; | ||
25 | 24 | ||
26 | @end | 25 | @end |
diff --git a/Classes/TutorialMode.m b/Classes/TutorialMode.m index 37e8bd0..ed51648 100644 --- a/Classes/TutorialMode.m +++ b/Classes/TutorialMode.m | |||
@@ -12,7 +12,7 @@ | |||
12 | #import "Bottle.h" | 12 | #import "Bottle.h" |
13 | #import "OneUp.h" | 13 | #import "OneUp.h" |
14 | #import "Rock.h" | 14 | #import "Rock.h" |
15 | #import "ClassicGameMode.h" | 15 | #import "MainMenuLayer.h" |
16 | 16 | ||
17 | // Item tags: | 17 | // Item tags: |
18 | // 2000 - first dropped item | 18 | // 2000 - first dropped item |
@@ -35,11 +35,6 @@ | |||
35 | backgroundImage.position = ccp(240, 160); | 35 | backgroundImage.position = ccp(240, 160); |
36 | [self addChild:backgroundImage z:-1]; | 36 | [self addChild:backgroundImage z:-1]; |
37 | 37 | ||
38 | CCMenuItemImage* menuItem1 = [CCMenuItemImage itemFromNormalImage:@"skiptutorial.png" selectedImage:@"skiptutorial2.png" target:self selector:@selector(skipTutorial)]; | ||
39 | CCMenu* theMenu = [CCMenu menuWithItems:menuItem1, nil]; | ||
40 | theMenu.position = ccp(480-16-16-62, 320-8-16); | ||
41 | [self addChild:theMenu]; | ||
42 | |||
43 | showedDeathBubble = NO; | 38 | showedDeathBubble = NO; |
44 | randomItemsDropped = 0; | 39 | randomItemsDropped = 0; |
45 | } | 40 | } |
@@ -201,10 +196,7 @@ | |||
201 | [self schedule:@selector(randomlyAddObject:) interval:1.0f]; | 196 | [self schedule:@selector(randomlyAddObject:) interval:1.0f]; |
202 | } else if ([currentTutorial.name isEqual:@"end"]) | 197 | } else if ([currentTutorial.name isEqual:@"end"]) |
203 | { | 198 | { |
204 | NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; | 199 | [[CCDirector sharedDirector] replaceScene:[CCTransitionFade transitionWithDuration:3.0f scene:[MainMenuLayer scene] withColor:ccc3(0,0,0)]]; |
205 | [defaults setBool:YES forKey:@"hasDoneTutorial"]; | ||
206 | |||
207 | [[CCDirector sharedDirector] replaceScene:[CCTransitionFade transitionWithDuration:3.0f scene:[ClassicGameMode scene] withColor:ccc3(0,0,0)]]; | ||
208 | } | 200 | } |
209 | 201 | ||
210 | self.currentTutorial = nil; | 202 | self.currentTutorial = nil; |
@@ -335,15 +327,4 @@ | |||
335 | randomItemsDropped++; | 327 | randomItemsDropped++; |
336 | } | 328 | } |
337 | 329 | ||
338 | - (void)skipTutorial | ||
339 | { | ||
340 | [self unscheduleAllSelectors]; | ||
341 | self.currentTutorial = nil; | ||
342 | |||
343 | NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; | ||
344 | [defaults setBool:YES forKey:@"hasDoneTutorial"]; | ||
345 | |||
346 | [[CCDirector sharedDirector] replaceScene:[CCTransitionFlipY transitionWithDuration:1.0f scene:[ClassicGameMode scene]]]; | ||
347 | } | ||
348 | |||
349 | @end | 330 | @end |
diff --git a/Resources/skiptutorial.png b/Resources/skiptutorial.png deleted file mode 100644 index 5c95cc9..0000000 --- a/Resources/skiptutorial.png +++ /dev/null | |||
Binary files differ | |||
diff --git a/Resources/skiptutorial2.png b/Resources/skiptutorial2.png deleted file mode 100644 index 95bbbbd..0000000 --- a/Resources/skiptutorial2.png +++ /dev/null | |||
Binary files differ | |||
diff --git a/Resources/tutorial.png b/Resources/tutorial.png new file mode 100644 index 0000000..a82a5e4 --- /dev/null +++ b/Resources/tutorial.png | |||
Binary files differ | |||
diff --git a/Resources/tutorial2.png b/Resources/tutorial2.png new file mode 100644 index 0000000..d5b3271 --- /dev/null +++ b/Resources/tutorial2.png | |||
Binary files differ | |||