# apple **Repository Path**: w010616/apple ## Basic Information - **Project Name**: apple - **Description**: 打代码 - **Primary Language**: C - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-05-22 - **Last Updated**: 2021-03-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ``` #include #include #include #include #include //全局变量的定义 #define HIGH 20 //游戏界面高度 #define WIDTH 30 // 游戏界面宽度 #define NUM 10 //敌机下落速度 int position_x, position_y; //飞机位置 int bullet_x, bullet_y; //子弹位置 int enemy_x, enemy_y; //敌机位置 int score; //得分 void gotoxy(int x, int y) //将光标调整到(x,y)的位置 { HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE); COORD pos; pos.X = x; pos.Y = y; SetConsoleCursorPosition(handle, pos); } void HideCursor() //隐藏光标显示 { CONSOLE_CURSOR_INFO cursor_info = { 1, 0 }; SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE), &cursor_info); } void startup()//数据的初始化 { //初始化飞机 position_x = HIGH / 2; //高度 position_y = WIDTH / 2; //宽度 //初始化子弹 bullet_x = -1; bullet_y = position_y; //初始化敌机 enemy_x = 0; enemy_y = position_y; //初始化得分 score = 0; } ``` v 打代码 #### 软件架构 软件架构说明 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 码云特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)