diff options
author | Starla Insigna <starla4444@gmail.com> | 2011-09-11 16:50:44 -0400 |
---|---|---|
committer | Starla Insigna <starla4444@gmail.com> | 2011-09-11 16:50:44 -0400 |
commit | 4f226a9705d4410fe11d90a89b6cb3b06c8eadc3 (patch) | |
tree | e585386570c37f24851b3d51bfe5ca033ea09bf7 /Classes | |
parent | 5ccc4fc305f502a552b1ac7e815e576c93a8159a (diff) | |
download | cartcollect-4f226a9705d4410fe11d90a89b6cb3b06c8eadc3.tar.gz cartcollect-4f226a9705d4410fe11d90a89b6cb3b06c8eadc3.tar.bz2 cartcollect-4f226a9705d4410fe11d90a89b6cb3b06c8eadc3.zip |
Jump: Disallowed going offscreen after going below ledge level and then riding back up on the wave
Fixes #228
Diffstat (limited to 'Classes')
-rw-r--r-- | Classes/JumpGameMode.m | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Classes/JumpGameMode.m b/Classes/JumpGameMode.m index 15b0e16..1e55b48 100644 --- a/Classes/JumpGameMode.m +++ b/Classes/JumpGameMode.m | |||
@@ -182,6 +182,9 @@ | |||
182 | if ((cart.sprite.position.y < 86) && (cart.boundedByScreen)) | 182 | if ((cart.sprite.position.y < 86) && (cart.boundedByScreen)) |
183 | { | 183 | { |
184 | cart.boundedByScreen = NO; | 184 | cart.boundedByScreen = NO; |
185 | } else if ((cart.sprite.position.y >= 86) && (!cart.boundedByScreen)) | ||
186 | { | ||
187 | cart.boundedByScreen = YES; | ||
185 | } | 188 | } |
186 | 189 | ||
187 | if (cart.sprite.position.y == (0-cart.sprite.boundingBox.size.height/2)) | 190 | if (cart.sprite.position.y == (0-cart.sprite.boundingBox.size.height/2)) |