Game Development Reference
In-Depth Information
Drawing primitives in Cocos2d-x
One of the main elements in the game is the LineContainer.cpp class. It is a
DrawNode derived class that allows us to draw lines and circles on the screen.
DrawNode comes bundled with a list of drawing methods you can use to draw lines,
points, circles, polygons, and so on.
The methods we'll use are drawLine and drawDot .
Search WWH ::




Custom Search