Conventions Used

This guide will use the following conventions:

  • The term Cocos will be used instead of mentioning Cocos2d-x and Cocos2d-JS everytime.
  • Though using the keyword auto in C++ programming is a very useful feature, it won't be used in this guide. This is to help with readability and learning. But auto can be used in Cocos2d-x C++ as normal.
  • Full namespaces will be used in this guide but code can be shortened by including namespaces like so:
    using namespace cocos2d;
  • Cocos 3.0+ can be used unless mentioned otherwise
  • The C++ code assumes you are using the cocos2d namespace aka USING_NS_CC;