Hi, I’m trying to plot some simple graphs but I’m having a hard time wrapping my head around the primitive drawing utilities.
In particular, I wonder:
~~What is the preferred method for drawing now? I’ve checked the “CCDrawNode.js” test and it refers to “cc.drawingUtil” as “old API” and to “cc.DrawNode” as “new API”, should I only use this “new API”?
~~Why is there no documentation on the online API reference for this “cc.DrawNode”?
~~How can I make the drawPoly method of this “new API” leave the polygon open? It should be as easy as passing a “false” parameter like in the old API…
~~Additionally: in the file “CCDrawNode.js” it begins by saying “Code copied & pasted from SpacePatrol game https://github.com/slembcke/SpacePatrol”, is this really ready for use?
That said, I’ve had several strange errors, like an example copied and pasted not showing anything in one project but when placed within the source of another project it does work just fine.