Develop 50 lines of code for the game application series using GameBuilder to implement WeChat floating bottle and gamebuilder50 lines

Source: Internet
Author: User

Develop 50 lines of code for the game application series by using GameBuilder to implement the float bottle and 50 lines of GameBuilder

Online run: http://osgames.duapp.com/apprun.html? Appid = osgames1-871422195197258
Online Editing: http://osgames.duapp.com/gamebuilder.php? Appid = osgames1-871422195197258
SCAN:

Run:

Here, the implementation of the floating bottle is not completely implemented, but the opportunity to introduce the Cantk UIFootprint control.

The net in the bottle is a curve. You can use UIFootprint in the Cantk type. Please refer to the official demo.

According to the curve path, place a certain number of UIFootprint controls (the appearance is a point), change their names to the same, so that they can be connected to one as a path. As shown in.

Path usage
Var net = win. find ("net"); net. getChild (0 ). setVisible (true); net. moveAlongPath ("fp", 2000, false, win. onLotteryDone );

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.