CCParallaxNode
CCParallaxNode
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
CCParallaxNode()
CCParallaxNode()()
Fields
m_pParallaxArray(System.Collections.Generic.ListCocos2D.CCPointObject)
m_tLastPosition(Cocos2D.CCPoint)
Properties
ParallaxArray(System.Collections.Generic.ListCocos2D.CCPointObject)
Methods
AddChild(CCNode, int, CCPoint, CCPoint)
AddChild(CCNode, int, CCPoint, CCPoint)(Cocos2D.CCNode child, System.Int32 z, Cocos2D.CCPoint ratio, Cocos2D.CCPoint offset)
Parameters:
child
(Cocos2D.CCNode)z
(System.Int32)ratio
(Cocos2D.CCPoint)offset
(Cocos2D.CCPoint)AddChild(CCNode, int, int)
AddChild(CCNode, int, int)(Cocos2D.CCNode child, System.Int32 zOrder, System.Int32 tag)
Parameters:
child
(Cocos2D.CCNode)zOrder
(System.Int32)tag
(System.Int32)Example
RemoveAllChildren(bool)
RemoveAllChildren(bool)(System.Boolean cleanup)
Parameters:
cleanup
(System.Boolean)Example
RemoveChild(CCNode, bool)
RemoveChild(CCNode, bool)(Cocos2D.CCNode child, System.Boolean cleanup)
Parameters:
child
(Cocos2D.CCNode)cleanup
(System.Boolean)Example
Visit()
Visit()()
This is called with every call to the MainLoop on the CCDirector class. In XNA, this is the same as the Draw() call.
Example