In our game development, apart from the UI being the top priority, music is also an indispensable part.
Because people have two eyes and ears.
Now let's take a look at the introduced library files, which is relatively simple in general.
First
In the previous article, we used Sprite as an example to analyze the registration function. However, we seem to have omitted a point, that is, the constructor. Because the Cocos2d-x in the C ++ layer uses workshop functions to generate objects,
1. Create a UI using cocostudio, create a UI, and add a LabelAtlas and a LabelBMFont respectively. Export the project, save it as cocos2d3sampleui_playScene.ExportJson, and add it to the Resource Directory of xcode together with the related Resource
The book goes back: Today we allow our leading role to launch darts.
The avi version can be conveniently viewed on mobile phones and PCs. (Only around 20 m, download soon): http://pan.baidu.com/s/1ELk78
This-> setTouchEnabled (true); // In
Original article. For more information, see the source!
In the game, it is sometimes used to determine whether to click the colored part of a picture, that is, the non-transparent area; or to determine whether the collision of irregular images is
Welcome to Cocos2d-x chat group: 193411763
Reprinted please indicate the original source: http://blog.csdn.net/u012945598/article/details/18256893
1. Download The cocos2d-x-3.0 beta and decompress it on the desktop
2. Open the terminal
3.
Node class (CCNode)
The node class is the main class in the Cocos2D-X, inherited from CCObject, as shown in the inheritance relationship.
Any object that needs to be painted on the screen is a node class. The most common node classes include
I want to separate the turntable system into a class folder, which can be plugged and easily connected to any game in the future. I have created a folder named ZhuanPanSystem. Let's talk about the general idea, first, you need a grid to form a
Animation Speed Control in Cocos2d-x. Animation speed control is when the animation is fast and slow.
BytesEasy and leisurely. In API, it should be understood as slow.
Exponential Index. Exponential Growth: This growth speed is faster than
A hero can now launch a bullet, but it's just a decoration. How can we kill a monster? This effect will be achieved based on collision detection. 1. cache monsters and bullets first, tracking monsters and bullets is required. In the game, we use
I haven't updated my blog for a while. I think the level is really enough and I can't bear it out ~~~~Yesterday, cocos2dx 3.0 beta was released. I used alpha1 for a week or two before, so I decided to write some blog posts about 3.0, not only do I
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. Touch Screen events
In Coco2d-x, inheriting the touch screen proxy protocol CCTouchDelegate can detect touch screen events and call callback functions. Is the CCTouchDelegate class inheritance relationship diagram:
Based on the first two algorithms, we then integrated the test and successfully tested the random licensing Effect of landlords. Here I tested several operations and it was quite random! Haha:
Code:
# Include HelloWorldScene. h # include
3. keypaddelegate)
In the Cococ2D-x, the inherited CCkeypadDelegate can capture and handle key events. CCLayer also inherits CCKeypadDelegate.
Public Functions of CCKeypadDelegate:
Void keyBackClicked // call void keyMenuClicked when the
When building a landlord, there is another sort of cards after the cards are issued, which is one of the issues to consider. The sorting here is not a general simple bubble sort, my idea is to arrange the card 0-51, with 13 as a benchmark
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
Review
[Cocos2d-x IOS game development-fishing talents 1] content Introduction
Review in the previous section
[Cocos2d-x IOS game development-city parkour 1] parkour game Introduction
Review in the previous section
Cocos2d-X game [tairan
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service