diff options
author | Starla Insigna <starla4444@gmail.com> | 2013-01-02 23:08:46 -0500 |
---|---|---|
committer | Starla Insigna <starla4444@gmail.com> | 2013-01-02 23:08:46 -0500 |
commit | 28497668761472e085d0c9955aa8077d11bf353c (patch) | |
tree | 48676176c8f2de27f4959d05f209f2f98da3979b /Classes/TutorialMode.m | |
parent | 6e96fb2144718722208d22f892716b55548135e1 (diff) | |
download | cartcollect-28497668761472e085d0c9955aa8077d11bf353c.tar.gz cartcollect-28497668761472e085d0c9955aa8077d11bf353c.tar.bz2 cartcollect-28497668761472e085d0c9955aa8077d11bf353c.zip |
Removed locked game modes from selection screen
Also removed cluttering attributes "unlockCondition" and "starsToUnlock" from GameModeInfo because they're really not that generalized (and unlockCondition doesn't really make sense if locked game modes are invisible anyway). starsToUnlock can be replaced by simply putting if statements in to GameModeManager's setStars: and then unlocking modes based off that. Completing the tutorial also now unlocks both Collect AND Jump. The idea is that we should make more than just Collect available at the start, and have only a few super hidden game modes that are unlockable; hence locked game modes being invisible.
Diffstat (limited to 'Classes/TutorialMode.m')
-rw-r--r-- | Classes/TutorialMode.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Classes/TutorialMode.m b/Classes/TutorialMode.m index 54f4e16..3f37505 100644 --- a/Classes/TutorialMode.m +++ b/Classes/TutorialMode.m | |||
@@ -11,6 +11,7 @@ | |||
11 | #import "GameModeSelectionLayer.h" | 11 | #import "GameModeSelectionLayer.h" |
12 | #import "SimpleAudioEngine.h" | 12 | #import "SimpleAudioEngine.h" |
13 | #import "ClassicGameMode.h" | 13 | #import "ClassicGameMode.h" |
14 | #import "JumpGameMode.h" | ||
14 | 15 | ||
15 | // Item tags: | 16 | // Item tags: |
16 | // 2000 - first dropped item | 17 | // 2000 - first dropped item |
@@ -42,10 +43,8 @@ static GameModeInfo* info; | |||
42 | numOfStars:0 | 43 | numOfStars:0 |
43 | imageFilename:[[NSBundle mainBundle] pathForResource:@"florence" ofType:@"png"] | 44 | imageFilename:[[NSBundle mainBundle] pathForResource:@"florence" ofType:@"png"] |
44 | unlocked:YES | 45 | unlocked:YES |
45 | unlockCondition:nil | ||
46 | gameClass:[TutorialMode class] | 46 | gameClass:[TutorialMode class] |
47 | globalHighscoreKey:nil | 47 | globalHighscoreKey:nil]; |
48 | starsToUnlock:0]; | ||
49 | } | 48 | } |
50 | 49 | ||
51 | return info; | 50 | return info; |
@@ -379,6 +378,7 @@ static GameModeInfo* info; | |||
379 | [self unschedule:@selector(randomlyAddObject:)]; | 378 | [self unschedule:@selector(randomlyAddObject:)]; |
380 | 379 | ||
381 | [[ClassicGameMode info] unlock]; | 380 | [[ClassicGameMode info] unlock]; |
381 | [[JumpGameMode info] unlock]; | ||
382 | 382 | ||
383 | return; | 383 | return; |
384 | } else { | 384 | } else { |