Cocos2d 1.x游戏移植到Cocos2d2.x注意 沈大海cocos2d-x教程17

今天晚上移植1。2游戏到2.0

////////////////////////////////////////////////////////////////////////////////////////

1.所有sprite的创建改为sprite::cretae

2.没有了CCMutableArray 全改为CCArray

3. LAYER_NODE_FUNC 改为CREATE_FUNC

4。setisTouchEnabled 改为 setTouchEnabled

5 CCRepeatForever::actionWithAction 以及所有Action 都用create方法创建

6。addFrameWithTexture 改为 addSprieFrameWithTexture

7 update(CCTime dt) 改为 update(float dt)

相关文章:

  • 2022-12-23
  • 2021-12-03
  • 2021-07-24
  • 2022-12-23
  • 2021-10-05
  • 2021-12-07
  • 2022-01-10
  • 2022-01-22
猜你喜欢
  • 2021-04-12
  • 2021-11-23
  • 2021-10-06
  • 2021-04-14
  • 2021-06-01
  • 2021-11-19
  • 2021-08-02
相关资源
相似解决方案