Extended training: break through and improve yourself

& 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

Cocos2D-x game development-20: add the genie you can eat

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);

Cocos2dx tips (7) static data

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

Cocos2d-x level selection interface (use of CCScrollView)

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

Cocos2D-x game development twenty-four: custom string segmentation class

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 *

Cocos2D-x game development 23: CCNotificationCenter observer mode (2)-send and accept events between different layers

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

22 of Cocos2D-x game development: Basis of the CCNotificationCenter Observer Model (1)

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

Get Mac address for cocos2dx Android

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

Cocos2D-x game development 15: Basic examples of CCTMXTiledMap

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

Cocos2dx memory management mechanism (2)

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

Cocos2d-x game development parkour (7) add gold coins and rocks

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

In the cocos2dx3.0 lua tutorial, connect lua to the class that you write so that lua can call functions of its own class.

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

Small for Cocos2d-x Study Notes and insights 13 from new projects to packaging into APK (Cocos2d-x 2.2.1)

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

Cocos2dx 3.0 transition article (22) use of various traversal and range for statements

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

18 of Cocos2D-x Game Development

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,

Selection of cocos2d-x (selector) flowers

VcD4KPHA + forward/forward + q8Hp1 + forward/a + 8dTxo6k8L3A + forward "brush: java;"> schedule (schedule_selector (CmsLayer2: listenCatJAndHua), f 1.0 ); void CmsLayer2::listenCatJAndHua(float dt){if((-this->_huaSprite->getPosition().x+this->_

Add CocosDenshion to Cocos2d-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

Cocos2d-x Introduction

  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.

Cocos2dx is similar to coverflow

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

Cocos2d-x-CCProgressTimer

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 +

Total Pages: 5220 1 .... 4401 4402 4403 4404 4405 .... 5220 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.