Skip to content

Instantly share code, notes, and snippets.

@twinsant
Last active January 4, 2023 04:20
Show Gist options
  • Select an option

  • Save twinsant/e6e8205c0ac5f5471bd42563501f843e to your computer and use it in GitHub Desktop.

Select an option

Save twinsant/e6e8205c0ac5f5471bd42563501f843e to your computer and use it in GitHub Desktop.
Cocos Creator
Node: {
shape: class
runAction()
}
ComponentJS: {
shape: class
onLoad()
onEnable()
onEnter()
onExit()
start()
upddate()
lateUpdate()
onDisable()
onDestory()
}
Sprite -> Node
Node -- ComponentJS
Node -> PhysicsBody
Scene -> Director
Scene -> EventManager
EventManager: {
shape: class
addListener()
}
# EventLinster: {
# shape: class
# event
# }
Director
PhysicsBody
# EventListenerPhysicsContact: {
# shape: class
# onContactBegin
# }
# SimpleAudioEngine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment