We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Remove _camera from cocos2d::Node
Remove _camera from cocos2d::Node
Refactor #2873 [Closed]
We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
The
Camera
object should be removed fromNode
.Instead, if we need that behavior, we should create the
CameraNode
and add theCameraNode
into the scene.Benefits:
Node
code will be easier to maintain, and also to understand!Cons:
_camera
property (I think), so those transitions should be rewritten with the newCameraNode