Original: Swift game combat-Parkour Panda (i) Introduction (with source code)
Youku View Address: http://v.youku.com/v_show/id_XNzM2Nzc2MTIw.html
Through this little game we are able to access the physical system (Skphysicsbody,physicsworld), Action (skaction), sound footage playback, text label (Sklabelnode)
The features we implement are
Panda action Switch, run, jump, roll
Generation of landing platform, moving
The generation and movement of bamboo that pandas eat
How long did the panda run and how many bamboo was eaten?
Some details
Jumping to a high place to fall fast, the platform will have to sink up the action, because the panda is a fat.
The bamboo will have an aperture.
When the pandas take off and roll, there is dust behind them.
The shortcomings
The readability and quality of the code is not good because it is written casually. Over the next period of time, I will gradually refactor and write some corresponding tutorials. Please expect
Project file Address
Http://pan.baidu.com/s/1gd03gRL
Special Acknowledgement
Hangzhou June Road Network Technology Co., Ltd. allow me to use their game "parkour Panda" inside the material.
Swift game Combat-Parkour Panda (i) Introduction (with source code)