We recommend that you use pthreadcc. The method has been encapsulated For ease of use, and there is no need to worry about thread concurrency and deadlock issues. During android development
I am familiar with a class called AsyncTask. Today, I
I. CCNode
CCNode node is the main class in the coco2d-x, inherit the CCObject,
Any object to be painted on the screen is CCNode, such as scene (CCScene), layout (CCLayer), menu (CCMenu), and Sprite)
Main features:
1. Periodic callback functions
CCSprite is a two-dimensional image object. It can be defined by an image or a rectangle of an image. The inheritance relationship of CCSprite is as follows:
1: CCTexture2D
The texture class CCTexture2D is about OpenGL. The CCTexture2D class is
Maybe everyone in cocos2d-x learning, may seldom use map. (When I first learned cocos2d) I also tried to use maps, but I couldn't use them to do anything. In my opinion, what was this map?It's no different from loading a background image using the
Colin-Liao is an original individual. You are welcome to repost the article.Address. Colin-LiaoThe column address http://blog.csdn.net/focusdeveloper
1. http://wiki.sharesdk.cn/cocos2d-x Guide
2. http://wiki.sharesdk.cn/android_quick integration
Playing games is a very important part. If this step is missing, it is difficult to make a good game. For cocos2dx, there are a lot of 2D map editors that can be used and the effects can be improved, among them, Tiled supports better, it supports
The simplest method is to use CCTextFieldTTF to set the graph password,
First, the class inheritance relationship
class Login:public cocos2d::CCLayer,CCIMEDelegate,CCTextFieldDelegate
There are several methods
// CCTextFieldDelegatevirtual
For example, if the bullet exceeded the screen, we will remove the bullet from the removeChild layer. So, is there a status to determine whether the bullet has been removed? It is determined by the isRunning function. If the bullet is still in the
A Layer is used to present a specific object in a centralized manner. Generally, several layers are added to Scene to manage an activity. At this time, the layer carries the meaning of a container, and what should be drawn in this layer. The
SneakyInput is a virtual joystick library. SneakyInput is the virtual handle in 2dx. But the 2dx version downloaded from the official website is too old, to modify him, applicable to cocos2d-x 2.1.4 version. In theory, it applies to all 2dx versions
In 2dx, click the button to load the webpage and use UIWebView on ios to display it. This allows you to roll back and refresh the current page. In 2dx, call [cpp] HelloWebView * webview = [[HelloWebView alloc] initWithNibName: nil bundle: nil];
Today, I will share with you how to get the virtual keyboard and user input in the cocos2d-x. Sometimes, you need to enter some information, such as user logon. At this time, you need to obtain the virtual keyboard and the input information. Here we
Although the cocos2d-x comes with three modes to adapt to the screen, but there are still some problems, will produce Black edge, so we still need multiple sets of resources to adapt to the screen. Here I have selected four resolutions:, and. I have
Copy and mutableCopy have a better understanding of memory than a bad pen, and better understanding than writing it out. The previous sentence is very correct, and the last one is added by me. I learned what I did next but did not. The record is as
1. Download and install Article 1.1 Add the downloaded yii framework source code to the php runtime environment. What is xampp used here? C: \ _ work \ xampp \ htdocs \ yii-core first, I have configured the local environment path to www.yii.com. How
Objective: to move the genie randomly. Process: A white background is required. Modify the inheritance of HelloWorld to inherit CCLayerColor, and then modify the init method. As follows: [objc] CCLayerColor: initWithColor (ccc4 (255,255,255,255)
Core application components: Yii predefines a series of core application components to provide functions used in common Web applications. For example, the request component is used to parse user requests and provide information such as URLs and
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.