2019 Spring Report of the first experiment designed to test the course

2019 Spring Report of the first experiment designed to test the course

First, the pilot project name

Aircraft game

Second, the experimental functional description

The simplest aircraft simulation shooting game, making the 'airplane' has moved shooting function, and then add the game 'enemy', and then give the ability to move the 'enemy', and then score the conditions and enemy design, emerging conditions of. It makes the whole program into a simple aircraft Shooting Games

Third, the project introduction of plate tectonics

The project total is divided into five sections, a simple airplane game implemented by the interaction of these five sectors. Which use the printf achieve a number of experiments construct aircraft, enemy, bullets, use a series of if statements and for loops to achieve a score of movement and design and statistical using hidecursor and gotoxy achieve a clear screen cover up the flashing function.

Fourth, implement the interface display

1) code refactoring

2) The new bullet

3) stationary bandit

4) Hit the enemy

5) blanking feature

V. code hosting links

game1.0.cpp

Six experimental summary

Ask a question: I think this program is still some minor problems, such as games can not be stopped, even if the enemy through our area still did not stop the game, there is no final score.
Solution: I think the game was to stop one or several of the conditions, this series can be used if statements and for statements to complete. I think this is not simple, also in consideration of the end of the enemy is no longer present, for loop will stop, but this time also consider whether the aircraft can move and shoot.
Sentiment: the use of a sophisticated application code to do it is too difficult, considering the surface too much, a modification may occur numerous bug. Do such a simple game like this, not to mention the kind of big production of it at every turn hundreds of G!

Guess you like

Origin www.cnblogs.com/LfanWyuXooo/p/10955020.html