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