AwesomeNode icon indicating copy to clipboard operation
AwesomeNode copied to clipboard

Support for cocos2d-x 4.0 and axmol

Open crazyhappygame opened this issue 3 years ago • 6 comments

Hi,

Could you add support for https://github.com/axmolengine/axmol ?

crazyhappygame avatar Dec 25 '22 11:12 crazyhappygame

@intmainreturn00 any chance to look at this problem?

crazyhappygame avatar Jan 08 '23 18:01 crazyhappygame

Fixed here: https://github.com/intmainreturn00/AwesomeNode/pull/4

crazyhappygame avatar Jan 10 '23 20:01 crazyhappygame

Thanks for the PR. Will try to check & merge soon. 🙏

intmainreturn00 avatar May 04 '23 09:05 intmainreturn00

@crazyhappygame axmol::extension::DrawNodeEx (=DrawNodeV2) has it:

@intmainreturn00 Hope its okey when I use your: generateDataPoints() for creating lines like on your sample.cpp

image

aismann avatar Aug 14 '24 12:08 aismann

Fixed here: #4

Build for cocos2d-x-4.0 on M1 mac. ✅ (I needed to patch a few things in cocos itself in order to make it run in M1, but nothing graphics related)

  1. On top of the file: USING_NS_CC;#define USING_NS_CC using namespace cocos2d so, I should have access from this file without using cocos2d:: prefix.
  2. auto * works for me. Are there any problems with using auto? I thought even cocos2dx docs recommends using modern c++.
  3. In my 4.0 DrawNode I don't have _bufferTriangle + _bufferCountTriangle. axmol DrawNode is different? My local build also fails if I try to access _customCommandTriangle for the same reason.

Need more info. 🙏 ping me if I can help somehow with this.

intmainreturn00 avatar Sep 04 '24 07:09 intmainreturn00

@intmainreturn00 Hope its okey when I use your: generateDataPoints() for creating lines like on your sample.cpp

Sure

intmainreturn00 avatar Sep 04 '24 07:09 intmainreturn00