When your needs are very simple, do not use the physics engine, for example, you only need to determine whether two objects collide, and use the update function of the node object and the containsP
Tag: Cocos2D
How to draw a line with COCOS2D-iPhone
I try to master Cocos2d by trying to accomplish simple things. At this point, I have a scene, and that scene has a background sprite and a layer. I tried to draw the layer with drawLine. This is my
(Transfer) Let Quick-Cocos2D-X support encrypted PLIST files
First part: quick-cocos2d-x image resource encryption
In the previous part, we have implemented the encryption of image resources, but have not yet implemented plist Encryption of files. Alth
(Transfer) Quick-Cocos2D-X picture resource encryption (continued)
Summary: Supplement to the resource encryption method implemented on quick-cocos2d-x
First part:
Through the modification of the previous article, we have been able to use encrypted ima
Pit in COCOS2D-JS — ccbutton calls the callback function of AddTouCheventListener, this is the button, not the entire class
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
Multi-texture based on COCOS2D-X learning OpenGL ES 2.0
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
COCOS2D-X scene
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
COCOS2D-X action
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
COCOS2D-X C ++ Get web images cache and show
#ifndef __HttpGetImg__
#define __HttpGetImg__
#include “cocos2d.h”
#include ” HttpRequest.h”
#include “HttpClient.h”
USING_NS_CC_EXT;
using namespace std;
COCOS2D-X UI components
Label Use the Label object to create labels using bitmap fonts, TrueType fonts, and system fonts. This single class can handle all labeling requirements.
BMFont is a label type created with a