iOS implements a shooting game, logical analysis and extraction of objects

Source: Internet
Author: User
The separation of logic is more difficult to think about the same things from the design how to deal with different things how to solve how to improve
The pointer address of the Self object
The apple is using the dynamic compression speed very fast
Create multiple objects according to the functional requirements, as the development of the depth of the missing to fill in
We should simplify the complex problem, the problem step-by-step analysis, the big complex problems to reduce, and then split the problem into small problems, for a shooting game, which contains a lot of things, at the beginning of the time we can not be such a problem at once, can not give a good solution, We refine the problem first to implement some simple content. Let's start by analyzing some simple features we'll shoot this event abstract out two objects soldier and weapon
Soldier attribute: Name health sex function: Walking jump shooting
Rob attribute: Model number of bullets function: Fired bullets

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

iOS implements a shooting game, logical analysis and extraction of objects

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.