随笔分类 -  无聊时学的简单游戏

摘要:1 #include <opencv2/highgui/highgui.hpp> 2 #include <opencv2/imgproc/imgproc.hpp> 3 #include <string> 4 #include <iostream> 5 #include <fstream> 6 7 u 阅读全文
posted @ 2020-06-23 10:17 ACWink 阅读(229) 评论(0) 推荐(0)
摘要:#include<stdio.h> #include<stdlib.h> #include<conio.h> #include<Windows.h> #define High 15 #define Width 20 int ball_x, ball_y; int ball_vx, ball_vy; 阅读全文
posted @ 2019-12-09 16:34 ACWink 阅读(164) 评论(0) 推荐(0)
摘要:具体详情看代码: #include<stdio.h> #include<stdlib.h> #include<windows.h> #include<conio.h> int bird_x, bird_y;//小鸟位置 int high, width;//地图大小 int barl_y, barl_ 阅读全文
posted @ 2019-11-30 12:24 ACWink 阅读(571) 评论(0) 推荐(0)
摘要:以下代码简单的实现了: 1,控制飞机的移动 2,飞机发射子弹 3,敌机的生成与移动 4,随着分数的增大,地敌机的移动速度加快 5,防止飞机越界 6,实现游戏的暂停和结束 #include<stdio.h> #include<stdlib.h> #include<conio.h> #include<w 阅读全文
posted @ 2019-11-29 22:55 ACWink 阅读(1115) 评论(0) 推荐(0)