Lan Yi IOS Flying Game Implementation steps

Source: Internet
Author: User

Yesterday intends to go back to the dorm to write, to the dorm suddenly think of dorm no net, today morning to fill, today is practice day, 10 class, Evening eight o'clock self-study end, these two days said most of the training camp told the content, so I feel exceptionally easy!

yesterday because the first two days to talk about with the new students, too much content, so the morning only the day before the homework left to speak, the afternoon only talk about the call and generation method; then everyone watched a movie as a relaxing! -(return value type) method Name parameter description: (parameter type) parameter name and (parameter type) parameter name return; method call: [self method name] The contents and steps of the job are placed below:

Flying Game Implementation steps:

1. Construct the interface to correlate the associated code;

2. Create a global variable bullet (Uiimageview) When the button is clicked;

3. Create a timer in Viewdidload to execute the Moveaction method every time;

4. Write the code that changes the bullet center in Moveaction;

5. Make the bullets equal to empty in the Stop button;

6. In the Stop button Bullets equal to empty before the bullets and three bosses to determine whether cross if hit boss score 1, 2, 3 minutes   before taking out the score   This score is added   let

7. When the bullet is fired, the number of bullets-1 if the number of bullets is 0 can not be launched again;

Lan Yi IOS Flying Game Implementation steps

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.