& nbsp; from the Xuzhou Pathfinder spirit will Training Center participated in the expansion training back for a week, however, my heart has not calmed down yet, and my mind has repeatedly played back the pictures of the day. I have benefited a
Now we add the "star" block to the "Meta" on the map, and then add the following in the Code:
Bool Player: SetPlayerPosition (int x, int y) {CCSize spritesize = m_sprite-> getContentSize (); CCPoint dspoint = CCPoint (x + spritesize. width/2, y);
At noon, I bought two books from Dangdang, one of which is "a hundred years of loneliness" for reading; the other is "Zhu Xian 2" for collecting.
I have two thick stacks of books on my desk. Most of them are non-technical books. Why? The technical
Today, I want to write a level selection interface.
Baidu adopts CCScrollView.
The usage of the CCScrollView is not described. Baidu. (Keyword: CCScrollView details)
Here, we mainly use an example to introduce the implementation of the menu
Today, we prepare for the processing of the CSV file in the next section and start to define a class for separating strings by specific symbols. The implementation is as follows:
Class StringUtil: public CCObject {public: static StringUtil *
Just now we learned the basic CCNotificationCenter observer mode to listen to events in one layer. Now let's further learn how to listen between different layers, this section describes how to send an event message in HelloWorld to receive and
Cocos2D-X has prepared too many things for us. When we want to listen to an action, but we can't always stare at it, we can use the observer pattern he has tailored for us, today we are going to take a preliminary look at this legend for a long time
In cocos2dx development, we want to obtain the Mac address of the mobile phone. Currently, only java-Layer Code on Android can directly obtain the Mac address, if someone asks me what if I want to use a Mac address in C ++ code, what should I
Today I learned the basics of map in Cocos2D-x and learned how maps are going in the game. From this section I will re-write an example.
Open door, map editor we use open source software: tiled-0.9.1-win32-setup.exe, can be directly downloaded on
Next, we will continue the analysis in the previous article. We know that an automatically managed object will be put into the autoreleasepool after it comes out of the new one. How will the object be deleted next?
First of all, we need to know
Intermittently, this cool code has finally been written. I will write two more articles to sum up. This game is even completed, and I hope this series will be helpful to new players. If you can look at these articles with a deep understanding, I
We can write cocos2dx on lua and call the cocos2dx api with lua because
The Connection established in functions such as lua_cocos2dx_auto. You can refer to and write the connection yourself.
For example, if I create a class such as building
class
This article is a small for original, reprinted please indicate the source.
I haven't updated the study articles of Cocos2d-x for a long time, recently I have done some things during college, and also made a few small Cocos2d-x programs, and search
At present, I do not take responsibility for myself. If I make a mistake, I will make a mistake. It has nothing to do with anyone. The smoothness of the IT business has created a low-key and modest me. As a result, I am willing to bear all the
Today, let's learn how to keep our background rolling as the task moves.
#include "entity.h"class Player :public Entity{public:Player(void);~Player(void);public:CREATE_FUNC(Player);virtual bool init();void run();virtual bool SetPlayerPosition(int x,
Sound is one of the important elements in the game, and a good music can add a lot of color to the game. The Cocos2d-x engine provides strong sound support, and today we'll come together to learn how to use these interfaces to add background and
CCPoolManagerIs a single class that manages multiple garbage collection objects. CCArray * m_pReleasePoolStack can manage multiple garbage collectors. CCPoolManager uses getCurReleasepool to obtain the current Garbage Collector m_pCurReleasePool.
Since mirror reflection involves openGL, no.
H file:
# Ifndef _ CoverView_H __# define _ CoverView_H __# include "cocos2d. h "# include" cocos-ext.h "USING_NS_CC; USING_NS_CC_EXT; class CoverView: public CCNode, public CCScrollViewDelegate, public
I want to implement a function. A love filling effect.
The effect is as follows:
VcD4KPHA + examples/examples + PGJyPgo8L3A + examples/examples + ZG90YbXAvt/A5Mi00Ke5 + example + examples + vfi2yLXExcnJ + example/cnPw + authorization + uL20 +
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