Cocos2d-x coordinate system summary (from how to determine whether the genie is visible on the screen)

The idea of a systematic understanding of this problem arises because of a problem we just encountered today. Recently I was writing a parkour game, based on cocos2d-x. When determining the death, there is a situation where the main character is

System Time and Random Number of cocos2d-x

Random Number is often used in the program, the cocos2d-x uses CCRANDOM_0_1 to generate a random number, but we finally pass it into a random number seed, so that the random number is the real random number, this seed is the time we generally use.

Regular Expression Code Conversion Program for program porting between different cocos2d-x versions.

If the development environment does not have the reflection function, it takes a lot of effort to rename the code. The following code replaces variable names in batches. Modify many situations that can be used for code conversion. This article is

Source code analysis of the overall framework of cocos2d-x and the Startup Process principle (win32)

Reprinted please note, original address: http://blog.csdn.net/jinble03/article/details/20006407Introduction: If you want to gain an in-depth understanding of the entire framework and running process of the cocos2d-x, if you want to know the details

Cocos2d-x 3.0 game me here-visual creation project

1. Prepare the environment Install the latest version of python 2.7, http://www.python.org/download/releases/ Download cocos2d-x 3.0bate2,: http://www.cocos2d-x.org/download 2. Create a project Enter the: % cocos2d-x 3.0bate2% \ tools \

Box2d selected Rigid Body in coco2d-x

The normal selection won't be mentioned here. As provided in box2d, a quick selection class with relatively high efficiency is b2QueryCallback. #ifndef QueryCallback_H#define QueryCallback_H#include class QueryCallback :public

Sound Effects for Cocos2d-x Game Development

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

ReactiveCocoa Weak-Strong Dance

RAC uses a large number of blocks in applications. Because the Objective-C language memory management is based on reference count, to avoid the issue of circular reference, if you want to reference self in the block, use @ weakify (self) and @

Cocos2dx game development simple getting started video tutorial (cocos2d-x)-4th days

  The avi version can be conveniently viewed on mobile phones and PCs. 1. Play background music and real-time music # Include SimpleAudioEngine. hCocosDenshion: SimpleAudioEngine: sharedEngine ()-> audio); // real-time music cococosdenshion:

[Cocos2d-x from c ++ to js] 15: puppet Constructor

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,

Cocos2d-android -- add actions to the genie

1. Place player.jpg In the assets Directory. 2. MainActivity Package com. njupt. firstgame; import org. cocos2d. layers. CCScene; import org. cocos2d. nodes. CCDirector; import org. cocos2d. opengl. CCGLSurfaceView; import android. OS. bundle;

Cocos2d-android -- Action (4)

1. MainActivity Package com. njupt. ccaction04; import org. cocos2d. layers. CCScene; import org. cocos2d. nodes. CCDirector; import org. cocos2d. opengl. CCGLSurfaceView; import android. OS. bundle; import android. app. activity; import android.

Cocos2d-x tower defense (2) Let the monsters run

Previously Used version is 2.0.1 version, and later with 2.1.1 re-write a part, now brand new start, with the latest version, cocos2d-x-3.0beta, this version and the previous changes quite large.   This is the background material.   Program

Cocos2d-x tower defense (I)-written before development

In March April, it took nearly two months to create a simple anti-tower game, three monsters and three towers. I learned a lot. The planning and art programs are all done by myself, so the ideas have changed a lot, the procedures have been improved,

Cocos2d-x-3.0 alpha1 with C ++ 11 exercise 9: dart ninja, add launch dart qty text & score text

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

8 mobile game development artifact cocos2d-x editor animation and Frame Animation

The success of a game depends largely on the success of the animation. Readers familiar with cocos2dx know that it has many ready-made animations. In this section, I will make little monsters move forward slowly; The running effect is as follows:

Five mobile game development artifact cocos2d-x editor texture (TexturePacker)

Game image resources need to be packaged, this chapter I will introduce the cocos2d-x editor Paster (TexturePacker ); The principle of textures is to combine a small image set. If an image is large (such as a background resource), it must be placed

Cocos2dx 3.0 improvement Article (6) A solution to Chinese display

I think everyone should have encountered this situation. When writing code in VS, You need to display Chinese characters in the Label, the Code is as follows: Auto m_label = LabelTTF: create ("Happy New Year! "," Arial ", 25); m_label-> setPosition

11 mobile game development artifact cocos2d-x editor music and sound

In this section, I will add background music and sound effects to the game;           Create a new sounds directory under the Resources directory and copy the prepared sound effects to the directory;   Open MainLayer. js and modify the Code as

[Cocos2dx advanced] debugging Article (3) Log transformation of cocos2dx

Next, let's talk about some adjustments to the CCLOG macro. Most of the time, when the debugging program cannot break a breakpoint, or when it is not convenient to break a breakpoint, it can only rely on LOG output. Therefore, a convenient

Total Pages: 5220 1 .... 4403 4404 4405 4406 4407 .... 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.