Made
To scroll the text in a certain area, use CCClippingNode to make a cropping area. The text in this area can be displayed, and the text cannot be seen after the area is displayed.
Bool TestLayer: init () {CCSize size = CCDirector:
Yesterday we had the genie and the background, and the genie could run, but we couldn't let the genie run endlessly. So today we are going to add some obstacles to the map;
First open the TMX map of the genie, then we will customize a 32x32 pixel
Leave the sad tone at the beginning. Question: This time I pulled visit out of the sky. What is the use of this product? Well, let's start with a story: Suppose you have a crush on a goddess (just called milk tea MM ~), The first step in pursuit
If you need to accumulate a little bit in a day, you just need a little bit.
------------------------------------
While listening to Jay Chou's music, there was a pot of beer next to it. From time to time, I followed the rhythm and gave me two more
Today I learned the Coco2D-x timer, Cocos2D for us to encapsulate the timer function, we only need to use the place directly:
Schedule can be used directly, that is, it is called in the init () function by default: this-> scheduleupdate (); and
I am a big rookie, just entry cocos2d-x soon, decided to write a little game practice feel, found OiteBoys Article cocos2dx production flappybird, and then learn, used to practice
The author's version is version 3.0 beta, but there is a slight
Now, a person can run, jump, and squat. But he is still a lonely runner, running on a endless online in a dark world. Now, we add background and floor to him to let him run in a colorful world.
This map is a custom class. In C ++, try not to
Blood records are often used, and there is no need to write them again, which is a waste of time. Here we use the latest API to write one for future calls.
The engine version used by the following code is cocos2d-x 3.0rc01. RADIAL
Sprite *
1. android NDK-STACK toolNDK-Stack is a very easy-to-use tool that displays information to adb logcat to help you analyze Stack tracing, and then use the corresponding value (which line of the source code) to replace the address in the static Link
Today, a supplement to the Cocos2D-x fell last night very important section --------> particle system;
As a beginner, I used several basic classes in the example to combine the following scenarios:
VcD4KPHA + PGJyPgo8L3A + CjxwPjxpbWcgc3JjPQ =
When we use local data to store CCUserDefault, there will be a defect, that is, the storage method used by CCUserDefault is plain text storage, which is very convenient for gamers to modify the archived data. What we want to learn today is how to
After learning for so long, it is still a bit vague. Today we will make a simple summary of my previous knowledge:
First, let's take a look at our game's leading role: in development, we often do not set the leading role as an genie. Because the
Today, we are trying to let our Genie move. Of course, we know that the so-called animation is to let the genie switch between multiple pictures. So we need to prepare 15 animated images before we start, then, use a tool to package these images. So
These days in the use of Cocos2D-X to try to do a small game, of course not innovation, just imitation, is to be used in practice the technology learned during this time.In this process, I encountered some problems and made some conclusions here to
This time in the tossing cocos2d-x engine telnet console, a few days ago to add an upload command, In the testcpp console test added the corresponding test example, however, I have not found a convenient method to use in the command line. I have
Then describe the basic knowledge of Cocos2D-x.
This section describes the Cocos2D-x music play function.
It is also slightly transformed in HelloWorld, and there are a lot of code:
Bool HelloWorld: init (){Bool bRet = false;Do{//////////////////////
Recently I learned from other people's source code and came into contact with the Vector Template Class. I found it very useful. Let's record it and study it.
Let's take a look at the usage:
VcD4KPHA + PC9wPgo8cHJlIGNsYXNzPQ = "brush: java;">
Although the previous section implements a running character, he is only a genie executing a running frame animation. In this section, I want to associate the genie with the physical world, so that this person has the same actual size as the
1. download and install the free Bitmap Font creation tool Bitmap Font Generator in windows
Tools:Http://www.angelcode.com/products/bmfont/install_bmfont_1.13.exe
2. Open the software and select Opotion> FontSetting to set the font to be exported.
I
Now let's learn the basic usage of Cocos2D-x.
CCMoveBy CCJumpBy CCRotateBy CCAction CCRepeatForever
The direct code is as follows:
Bool HelloWorld: init (){Bool bRet = false;Do{CC_BREAK_IF (! CCLayer: init ());CCMenuItemImage * pCloseItem =
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.