自建小游戏模型
文章平均质量分 79
好菜的大学生
这个作者很懒,什么都没留下…
展开
-
简易游戏:弹跳小球
#include <iostream> #include <windows.h> #include <cstdlib.h> using namespace std; int main(){ int i,j,x=0,y=6; int velocity_x=1,velocity_y=1;//x方向和y方向初速度均为1; int left=0;//...原创 2020-03-28 17:54:04 · 364 阅读 · 0 评论 -
简易游戏:飞机打靶
#include <iostream> #include <cstdlib> #include <conio.h> using namespace std; int main(){ int i,j; int x=6; int y=10; int ny=5; int isFire=0; int isKilled=0; char input; while(1...原创 2020-03-29 12:41:40 · 1067 阅读 · 0 评论 -
飞机大战V1.0
这次的飞机大战把激光子弹换成了普通的子弹,使敌机可以随机出现并向下移动 #include <iostream> #include <windows.h> #include <conio.h> #include <cstdlib> using namespace std; //定义全局变量 int high,width; //定义游戏屏...原创 2020-04-04 19:07:02 · 334 阅读 · 0 评论