How to realize aircraft Games in C language
Most people do not understand the knowledge points of this article "how to achieve aircraft games in C language", so the editor summarizes the following contents, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this article "how to achieve aircraft games in C language".
Scanf controls aircraft movement
We can use the scanf function to detect the input, using a, s, d, w. To control the x, y coordinates to achieve the movement of the aircraft.
# include # include int main () {int iPowerj; int x = 5; int y = 10; char input; / / variables declared here are used to detect the input while (1) {system ("cls"); / / clear the screen, and Linux is changed to clear / / the blank line for (iS0; I above the output