(No. 00002) prototype of iOS game genie war (III)

Source: Internet
Author: User

(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.

 

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.