Thursday, August 7, 2014

Cocos2D-X 3.0 Changes Part 1

A lot of refactoring was done moving to Cocos2D-X 3.0, with a lot of renaming being done, making it difficult to map old classes to new ones. Here are some observations and notes:

  • CCObject has been removed, if you wish to create an object that supports auto-release and reference counting, use "Ref" instead.
  • CCLOG doesn't seem to work anymore (nothing showed up in Android logcat), but switching to use "log" worked fine.
  • CCString is now just "String" (this is a bit confusing as you don't exactly find a "String" class in the API references)
  • CCPoint is now Vec2
  • Generally CC has been removed from many class names, but some classes (such as those above), have been completely renamed

No comments:

Post a Comment