11th session of Fuzhou University program design CompetitionContest finished!
tag
pro.id
problem Title
ratio (ac/submit)
1
The king asked me to patrol the mountains.
80.31% (261/
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 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
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
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
Then describe the basic knowledge of Cocos2D-x. This section describes the definition and response of the Cocos2D-x menu.
Let's start with the code. We can directly debug the changes in the init function of helloworld:
Bool HelloWorld: init (){Bool
The situation is as follows:
On the in-game combat page, the victory window is displayed. Click the next button in the window to switch to the resource loading scenario,
At this time, the game is paused, and all ccactions are paused. When switching
The abstract class interface must be reserved for every game version upgrade. Therefore, writing abstract classes can greatly improve programming efficiency, and can be used once and for all. In a turn-based game, it is unscientific to write the
What I want to say is that the role jumps from one step to another. The two steps are different. The result is that the role is parked on another step rather than falling down!
Void MapLayer: mapCreate () {this-> _ allMap = CCTMXTiledMap: create ("
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 \
In games, we often encounter the need to display a large Chinese conversation. In this case, we need to load some custom Chinese character formats and generate a pile of pictures directly from the art, which is too memory-consuming for mobile phones,
1. Download cocos2d-x
Http://cdn.cocos2d-x.org/cocos2d-x-3.0beta2.zip (official site)
2. Because 3.0 requires python compilation, you need to build a python environment.
Download pythonhttp: // www.python.org/ftp/python/3.3.4/python-3.3.4.msi
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
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
Continue with the previous article "cocos2dx advanced" debugging Article 1) Basic Introduction. This article mainly describes some minor modifications to Cocos2dx.
Let's talk about Cocosdx's debugging design. It consists of two parts: log output
In the previous article, we talked about Button callback. This time we will talk about various logical callback functions.
There are a total of three types of callback functions in the Cocos2d-x, the first is the key callback CCMenu related, the
Cocos2dx has provided us with a lot of particle system effects:
1. CCParticleExplosion explosion2. CCParticleFire3. CCParticleFireworks fireworks4. CCParticleFlower5. CCParticleGalaxy6. CCParticleMeteor meteor7. CCParticleRain rain8. CCParticleSmoke
CCSprite has a ccBlendFunc-type blendFunc _ struct Member, which can be used to set the color mixing scheme during plotting. CcBlendFunc contains a src and a dst, indicating the target and source operators respectively.
If we use the setBlendFunc
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