(no.00003) iOS games simple robot projection game forming (11)

Source: Internet
Author: User

The robot fired the bullet has been completed, below to see how to set obstacles to the player.

As you can see from the previous diagram, there are a number of obstacles directly to the machine and the basket. Let's see how to implement them first.

Open Spritebuilder, create a new SMALLBRICK.CCB in the Sprites folder, type node.

Drag from the control library into a Ccnodecolor node, called a child node of its root node. Decorate the appearance as you like, and open physical objects at the same time, physical types are static:

Create a new levels folder in which to build the LEVEL.CCB file, type node. First drag a physical node into its root node.

Then drag the 2 robots to the left of the screen and say 2 robots each.

Place 2 obstructions in the center of the screen and drag the right end of the screen into a Basket node object. Note that these new objects are child nodes of the physical node. The screen layout looks like this:

The object hierarchy in timeline is as follows:

Not yet, to the basket, 2 robots set up a code connection: _basket,_robot1,_robot2 for access in code.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

(no.00003) iOS games simple robot projection game forming (11)

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.