summary refs log tree commit diff stats
path: root/Classes/JumpGameMode.m
diff options
context:
space:
mode:
Diffstat (limited to 'Classes/JumpGameMode.m')
-rw-r--r--Classes/JumpGameMode.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/Classes/JumpGameMode.m b/Classes/JumpGameMode.m index 79c87bc..907effc 100644 --- a/Classes/JumpGameMode.m +++ b/Classes/JumpGameMode.m
@@ -61,6 +61,12 @@
61 [self addChild:ledge]; 61 [self addChild:ledge];
62 [ledges addObject:ledge]; 62 [ledges addObject:ledge];
63 63
64 CCSprite* firstLedge = ledge;
65 ledge = [CCSprite spriteWithTexture:[[CCTexture2D alloc] initWithImage:[factory createLedgeWithWidth:10 height:2]]];
66 ledge.position = ccp(80 + firstLedge.boundingBox.size.width/2 + ledge.boundingBox.size.width/2+64, 32);
67 [self addChild:ledge];
68 [ledges addObject:ledge];
69
64 ledgeScrollSpeed = 0; 70 ledgeScrollSpeed = 0;
65 ledgeAccelerationRate = 20.0f; 71 ledgeAccelerationRate = 20.0f;
66 addSpeed = 2.5f; 72 addSpeed = 2.5f;