Cocos2d-x Anchor point, Position = = "hands-on experiment record ...:)

Source: Internet
Author: User

Summarize:

The location of the 1:cocos2d-x is determined by both the anchor and the position position.
2:cocos2d-x, where the position is not set or zero, the anchor position of the child node is always located in the left corner of the parent node
3: Our own game editor CC. Layer, in fact, only the One-fourth size of the game scene, by adjusting the position position, is located in the upper left corner of the screen (do not adjust the location of the default is located in the lower left corner of the screen).

4: Game Editor CC. Layer Transparent, not full-screen size, actually only One-fourth (upper right corner) is visible on the screen.

Cocos2d-x Anchor point, Position = = "hands-on experiment record ...:)

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.