With the previous compilation experience of the meow Star War, we basically compiled Lori quickly. The Code was a little bit preliminary, and there was nothing very advanced!
I have a few questions, but I still don't quite understand them!
1: when switching scene animation, why ccdirector: shareddirector ()-> setdepthtest (true); turn off the deep test and turn it on again, and there is no big change in removing it!
2: When performing a hero collision detection,
Ccrect gameobjhero: rect ()
{
Ccsize S = ccsizemake (8, 90 );
Return ccrectmake (-S. width/2,-S. Height/2, S. Width, S. Height );
}
Why is the starting point of the hero rectangle (-S. width/2,-S. Height/2.
Is it true that the default anchor is 0.5, 0.5, and the texture coordinate origin is in the lower left, and the texture coordinate origin is in the upper left, so the center point relative to the hero matrix is) the coordinates in the upper left corner of the coordinates are (-s. width/2,-s. height/2 );
The following is how Lori runs. All the files are in
Vs2010 + cocos2d-x 2.14
Http://download.csdn.net/detail/liying426/5894697