CCParallaxScrollNode
CCParallaxScrollNode
Cocos2DInheritance: System.Object → Cocos2D.CCNode
Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, Cocos2D.ICCRGBAProtocol, System.Collections.Generic.IComparer{Cocos2D.CCNode}
Constructors
CCParallaxScrollNode()
CCParallaxScrollNode()()
Scrolling node with no sprite batch support.
Example
CCParallaxScrollNode(CCSpriteSheet)
CCParallaxScrollNode(CCSpriteSheet)(Cocos2D.CCSpriteSheet sheet)
Parameters:
sheet
(Cocos2D.CCSpriteSheet)CCParallaxScrollNode(string)
CCParallaxScrollNode(string)(System.String textureName)
Constructs the infinite scrolling background node with the given texture sheet, which is the root texture of the child sprite batch node.
Parameters:
textureName
(System.String)Example
CCParallaxScrollNode(string, Stream)
CCParallaxScrollNode(string, Stream)(System.String textureName, System.IO.Stream plistFile)
Parameters:
textureName
(System.String)plistFile
(System.IO.Stream)CCParallaxScrollNode(string, string)
CCParallaxScrollNode(string, string)(System.String textureName, System.String plistName)
Parameters:
textureName
(System.String)plistName
(System.String)Properties
BatchNode(Cocos2D.CCSpriteBatchNode)
PTMRatio(System.Single)
Scaling ratio for real world size to game world size.
ScrollOffsets(System.Collections.Generic.ListCocos2D.CCParallaxScrollOffset)
Methods
AddChild(CCSprite, int, CCPoint, CCPoint, CCPoint)
AddChild(CCSprite, int, CCPoint, CCPoint, CCPoint)(Cocos2D.CCSprite node, System.Int32 z, Cocos2D.CCPoint r, Cocos2D.CCPoint p, Cocos2D.CCPoint s)
Parameters:
node
(Cocos2D.CCSprite)z
(System.Int32)r
(Cocos2D.CCPoint)p
(Cocos2D.CCPoint)s
(Cocos2D.CCPoint)AddChild(CCSprite, int, CCPoint, CCPoint, CCPoint, CCPoint)
AddChild(CCSprite, int, CCPoint, CCPoint, CCPoint, CCPoint)(Cocos2D.CCSprite node, System.Int32 z, Cocos2D.CCPoint r, Cocos2D.CCPoint p, Cocos2D.CCPoint s, Cocos2D.CCPoint v)
Parameters:
node
(Cocos2D.CCSprite)z
(System.Int32)r
(Cocos2D.CCPoint)p
(Cocos2D.CCPoint)s
(Cocos2D.CCPoint)v
(Cocos2D.CCPoint)AddInfiniteScrollWithObjects(CCSprite[], int, CCPoint, CCPoint, CCPoint)
AddInfiniteScrollWithObjects(CCSprite[], int, CCPoint, CCPoint, CCPoint)(Cocos2D.CCSprite[] objects, System.Int32 z, Cocos2D.CCPoint ratio, Cocos2D.CCPoint pos, Cocos2D.CCPoint dir)
Parameters:
objects
(Cocos2D.CCSprite[])z
(System.Int32)ratio
(Cocos2D.CCPoint)pos
(Cocos2D.CCPoint)dir
(Cocos2D.CCPoint)Example
AddInfiniteScrollWithZ(int, CCPoint, CCPoint, CCPoint, CCSprite[])
AddInfiniteScrollWithZ(int, CCPoint, CCPoint, CCPoint, CCSprite[])(System.Int32 z, Cocos2D.CCPoint ratio, Cocos2D.CCPoint pos, Cocos2D.CCPoint dir, Cocos2D.CCSprite[] objects)
Parameters:
z
(System.Int32)ratio
(Cocos2D.CCPoint)pos
(Cocos2D.CCPoint)dir
(Cocos2D.CCPoint)objects
(Cocos2D.CCSprite[])Example
AddInfiniteScrollXWithZ(int, CCPoint, CCPoint, CCSprite[])
AddInfiniteScrollXWithZ(int, CCPoint, CCPoint, CCSprite[])(System.Int32 z, Cocos2D.CCPoint ratio, Cocos2D.CCPoint pos, Cocos2D.CCSprite[] objects)
Parameters:
z
(System.Int32)ratio
(Cocos2D.CCPoint)pos
(Cocos2D.CCPoint)objects
(Cocos2D.CCSprite[])Example
AddInfiniteScrollYWithZ(int, CCPoint, CCPoint, CCSprite[])
AddInfiniteScrollYWithZ(int, CCPoint, CCPoint, CCSprite[])(System.Int32 z, Cocos2D.CCPoint ratio, Cocos2D.CCPoint pos, Cocos2D.CCSprite[] objects)
Parameters:
z
(System.Int32)ratio
(Cocos2D.CCPoint)pos
(Cocos2D.CCPoint)objects
(Cocos2D.CCSprite[])Example
RemoveAllChildren(bool)
RemoveAllChildren(bool)(System.Boolean cleanup)
Parameters:
cleanup
(System.Boolean)Example
RemoveChild(CCSprite, bool)
RemoveChild(CCSprite, bool)(Cocos2D.CCSprite node, System.Boolean cleanup)
Parameters:
node
(Cocos2D.CCSprite)cleanup
(System.Boolean)UpdateWithVelocity(CCPoint, float)
UpdateWithVelocity(CCPoint, float)(Cocos2D.CCPoint vel, System.Single dt)
Parameters:
vel
(Cocos2D.CCPoint)dt
(System.Single)Example
UpdateWithYPosition(float, float)
UpdateWithYPosition(float, float)(System.Single y, System.Single dt)
Parameters:
y
(System.Single)dt
(System.Single)Example