SpriteBatchNode inherits from Node and implements the TextureProtocol interface, rewriting Node’s addChild() method, visit() method and draw() method.
The addChild() method restricts its chil
SpriteBatchNode inherits from Node and implements the TextureProtocol interface, rewriting Node’s addChild() method, visit() method and draw() method.
The addChild() method restricts its chil
Before I contacted the hot update, I was confused about the hot update. Later, I read some materials, tried it myself, and basically understood its process. The so-called hot update is to update c
In the callback function of CCButton calling addTouchEventListener, this represents this button, not the entire class
In the callback function of CCButton calling addTouchEventListener, this It means this button, not the entire class
Unexpectedly, there are so many typos in the original text. I am really sorry for the audience. Not many introductions to opengl es 2.0. I believe that I will be the only one who introduces many te
Reproduced from: http://blog.csdn.net/potato47/article/details/73197021
Return of missing persons
A scene is a container that holds various elements in the game. It is responsible for the running logic of the game and renders content in units of frames.
auto myScene = Scene::create(); Rem
tableCellAtIndex:function (table, idx) {
var cell = table.dequeueCell();
if (!cell) {
cell = new cc.TableViewCell();
//Create a small cell
var pnl_cell = this.root.getChildByName(“pnl_cell”).c
1. The most The original method is to create animation frames first, then create animation packaging (animation), and then create animation (animate)
The first step:
Create animation fr
The difference between By and To By is the current position relative to the node object, and To is the absolute position.
Use MoveTo and MoveBy to complete the movement of the node object aft
#ifndef __HttpGetImg__
#define __HttpGetImg__
#include “cocos2d.h”
#include ” HttpRequest.h”
#include “HttpClient.h”
USING_NS_CC_EXT;
using namespace std;