diff options
author | Starla Insigna <starla4444@gmail.com> | 2011-08-23 13:21:56 -0400 |
---|---|---|
committer | Starla Insigna <starla4444@gmail.com> | 2011-08-23 13:21:56 -0400 |
commit | fd32f2af7f62f17d42292b6538903a37b0b5e563 (patch) | |
tree | 9373352af10a3f05ff6869fb5d337a4bb876ea25 /Classes/GameMode.m | |
parent | b4c612674d28bf7b385bd9fe41b108df8d97b474 (diff) | |
download | cartcollect-fd32f2af7f62f17d42292b6538903a37b0b5e563.tar.gz cartcollect-fd32f2af7f62f17d42292b6538903a37b0b5e563.tar.bz2 cartcollect-fd32f2af7f62f17d42292b6538903a37b0b5e563.zip |
Added game quitting safeguard to pause screen (version 0.3.1) v0.3.1
Also replaced instances of the term "Cart Collect" in Tutorial with "Cartographic". Also modified level selection screen to remember your position in the list rather than simply the last mode you'd played. Closes #211
Diffstat (limited to 'Classes/GameMode.m')
-rw-r--r-- | Classes/GameMode.m | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Classes/GameMode.m b/Classes/GameMode.m index 7b07f15..8f695d1 100644 --- a/Classes/GameMode.m +++ b/Classes/GameMode.m | |||
@@ -146,7 +146,9 @@ | |||
146 | 146 | ||
147 | - (void)mainmenu | 147 | - (void)mainmenu |
148 | { | 148 | { |
149 | [[CCDirector sharedDirector] replaceScene:[MainMenuLayer scene]]; | 149 | UIAlertView* alert = [[UIAlertView alloc] initWithTitle:@"Cartographic" message:@"Are you sure you want to quit the currently playing game?" delegate:self cancelButtonTitle:@"Yes" otherButtonTitles:@"No", nil]; |
150 | [alert show]; | ||
151 | [alert release]; | ||
150 | } | 152 | } |
151 | 153 | ||
152 | - (void)setScore:(int)m_score | 154 | - (void)setScore:(int)m_score |
@@ -179,6 +181,14 @@ | |||
179 | delayedAction = nil; | 181 | delayedAction = nil; |
180 | } | 182 | } |
181 | 183 | ||
184 | - (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex | ||
185 | { | ||
186 | if (buttonIndex == 0) | ||
187 | { | ||
188 | [[CCDirector sharedDirector] replaceScene:[MainMenuLayer scene]]; | ||
189 | } | ||
190 | } | ||
191 | |||
182 | - (void)dealloc | 192 | - (void)dealloc |
183 | { | 193 | { |
184 | [objects release]; | 194 | [objects release]; |