(No. 00002) prototype of iOS game genie war (III)
Create a Sprites folder in Sprite, add the Player. cc file to it, and ensure that the file type is Sprite.
Set the CC sprite's Sprite frame for its Root node to Image/sprite-2.png, open the physical object, adjust the Physics shape type to Circle, and adjust the Circle radius to match the node Image size, set the physical object type to dynamic.
Set the user-defined class of the Player root node to Player. <Strong? Http: www.bkjia.com kf ware vc "target =" _ blank "class =" keylink "> VcD4NCjxwPsuru/e08r + examples/Hvc3PyOuzob6wLLKitffV + examples + DQo8cD48aW1nIGFsdD0 = "Write picture description here" src = "http://www.bkjia.com/uploads/allimg/151105/0419533214-1.png" title = "\"/>
Connect the red genie to the code named _ sprite1
Open the project generated by SriteBuilder from Xcode, create a new Player class, and inherit from CCSprite.
Leave the content of this class empty and we will implement it later.