How to enable Box2d debug draw with Coco2d-x 3.0 beta 2

后端 未结 4 1495
清酒与你
清酒与你 2021-01-27 05:07

How I should enable debug draw with Cocos2d-x 3.0? There are some codes that do that with cocos2d-x 2.0 but they don\'t even compile on Cocos2d-x. Unfortunately I am new to both

4条回答
  •  太阳男子
    2021-01-27 05:54

    You could simply add another layer above your current layer.

    And you can add the code you post here in the up layer then everything should be working.

提交回复
热议问题