Skip to content

Commit 7b1537d

Browse files
committed
Merge pull request #520 from richardgroves/develop-v3
Fixing a typo in comments in onEnter in two Scene files in the new project template Former-commit-id: 83178f7
2 parents aa21920 + 024bd74 commit 7b1537d

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

cocos2d/CCTransition.h

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,17 @@ typedef NS_ENUM(NSInteger, CCTransitionDirection)
6868

6969

7070
/**
71-
* Will downscale incoming and outgoing scene.
71+
* Will downscale outgoing scene.
7272
* Can be used as an effect, or to decrease render time on complex scenes.
7373
* Default 1.0.
7474
*/
7575
@property (nonatomic, assign) float outgoingDownScale;
76+
77+
/**
78+
* Will downscale incoming scene.
79+
* Can be used as an effect, or to decrease render time on complex scenes.
80+
* Default 1.0.
81+
*/
7682
@property (nonatomic, assign) float incomingDownScale;
7783

7884
/**
@@ -89,10 +95,15 @@ typedef NS_ENUM(NSInteger, CCTransitionDirection)
8995
@property (nonatomic, assign) CCTexturePixelFormat transitionPixelFormat;
9096

9197
/**
92-
* Defines whether incoming and outgoing scene will be animated during transition.
98+
* Defines whether outgoing scene will be animated during transition.
9399
* Default NO.
94100
*/
95101
@property (nonatomic, getter = isOutgoingSceneAnimated) BOOL outgoingSceneAnimated;
102+
103+
/**
104+
* Defines whether incoming scene will be animated during transition.
105+
* Default NO.
106+
*/
96107
@property (nonatomic, getter = isIncomingSceneAnimated) BOOL incomingSceneAnimated;
97108

98109
/** The actual transition runtime in seconds. */

templates/cocos2d iOS.xctemplate/Classes/HelloWorldScene.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ - (void)onEnter
8282

8383
// In pre-v3, touch enable and scheduleUpdate was called here
8484
// In v3, touch is enabled by setting userInterActionEnabled for the individual nodes
85-
// Pr frame update is automatically enabled, if update is overridden
85+
// Per frame update is automatically enabled, if update is overridden
8686

8787
}
8888

@@ -126,4 +126,4 @@ - (void)onNewtonClicked:(id)sender
126126
}
127127

128128
// -----------------------------------------------------------------------
129-
@end
129+
@end

templates/cocos2d iOS.xctemplate/Newton/NewtonScene.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ - (void)onEnter
189189

190190
// In pre-v3, touch enable and scheduleUpdate was called here
191191
// In v3, touch is enabled by setting userInterActionEnabled for the individual nodes
192-
// Pr frame update is automatically enabled, if update is overridden
192+
// Per frame update is automatically enabled, if update is overridden
193193

194194
// Basically this will result in fewer having the need to override onEnter and onExit, but for clarity, it is shown
195195
}
@@ -298,4 +298,4 @@ - (void)update:(CCTime)delta
298298
}
299299

300300
// -----------------------------------------------------------------------
301-
@end
301+
@end

0 commit comments

Comments
 (0)