Class cc.Scene
Extends
cc.Node.
Defined in: CCScene.js.
Constructor Attributes | Constructor Name and Description |
---|---|
cc.Scene()
cc.Scene is a subclass of cc.Node that is used only as an abstract concept. |
Method Attributes | Method Name and Description |
---|---|
<static> |
cc.Scene.create()
creates a scene
|
ctor()
Constructor
|
|
init()
Initialize
|
- Methods borrowed from class cc.Node:
- addChild, cleanup, convertToNodeSpace, convertToNodeSpaceAR, convertTouchToNodeSpace, convertTouchToNodeSpaceAR, convertToWorldSpace, convertToWorldSpaceAR, description, draw, getActionByTag, getActionManager, getAnchorPoint, getAnchorPointInPoints, getBoundingBox, getBoundingBoxToWorld, getCamera, getChildByTag, getChildren, getChildrenCount, getContentSize, getGLServerState, getGrid, getOrderOfArrival, getParent, getPosition, getPositionX, getPositionY, getRotation, getScale, getScaleX, getScaleY, getScheduler, getShaderProgram, getSkewX, getSkewY, getTag, getUserData, getUserObject, getVertexZ, getZOrder, ignoreAnchorPointForPosition, isIgnoreAnchorPointForPosition, isRunning, isVisible, nodeToParentTransform, nodeToWorldTransform, numberOfRunningActions, onEnter, onEnterTransitionDidFinish, onExit, onExitTransitionDidStart, parentToNodeTransform, pauseSchedulerAndActions, release, removeAllChildren, removeAllChildrenWithCleanup, removeChild, removeChildByTag, removeFromParent, removeFromParentAndCleanup, reorderChild, resumeSchedulerAndActions, retain, runAction, schedule, scheduleOnce, scheduleUpdate, scheduleUpdateWithPriority, setActionManager, setAnchorPoint, setContentSize, setGLServerState, setGrid, setNodeDirty, setOrderOfArrival, setParent, setPosition, setPositionX, setPositionY, setRotation, setScale, setScaleX, setScaleY, setScheduler, setShaderProgram, setSkewX, setSkewY, setTag, setUserData, setUserObject, setVertexZ, setVisible, setZOrder, sortAllChildren, stopAction, stopActionByTag, stopAllActions, transform, transformAncestors, unschedule, unscheduleAllCallbacks, unscheduleUpdate, update, updateTransform, visit, worldToNodeTransform
Class Detail
cc.Scene()
cc.Scene is a subclass of cc.Node that is used only as an abstract concept.
cc.Scene an cc.Node are almost identical with the difference that cc.Scene has it's anchor point (by default) at the center of the screen.
For the moment cc.Scene has no other logic than that, but in future releases it might have additional logic.
It is a good practice to use and cc.Scene as the parent of all your nodes.
Method Detail
<static>
{cc.Scene}
cc.Scene.create()
creates a scene
// Example var aScene = cc.Scene.create(); //OR var aScene = new cc.Scene();
- Returns:
- {cc.Scene}
ctor()
Constructor
{Boolean}
init()
Initialize
- Returns:
- {Boolean}