Today the main look at the 3D effect, scene switching, particles, these three are still simple.
3D effects such as:
Then last said, we can see that the 3D effect is also a time-lapse animation, this can be a test for the API one, I will not say much.
Scene switch, before we switched scenes have been using Ccdirector::shareddirector ()->replacescene (scene); now we're going to jump to the scene to wrap a layer, with Cctransitionscene,
Then we call in the Replacescene when the wrapper will have effect.
Sound System
Simpleaudioengine
Simpleaudioengine::sharedengine ()->preloadbackgroundmusic ("Audio/start.wav"); Simpleaudioengine::sharedengine ()->playbackgroundmusic ("Audio/start.wav"); Simpleaudioengine::sharedengine ()->stopbackgroundmusic ("Audio/start.wav");
Operations like this have pause and resume, and so on. Let's take a look at the API and check it out.
Particle
Use of particle systems
Ccparticleflower *flower = Ccparticleflower::create (); AddChild (flower);
When we put him addchild, the screen will automatically appear the effect, this I just saw here today, the specific use of our later.
Today later began a can not die of development, wrote One-fourth, continue to write tomorrow,
I'll go... CSDN automatically save the draft to force, just a computer blue screen, the loss before the write these also have.
Well, almost finished, and then wash and sleep, good night ~ everybody go to bed early.
2015-04-05