[C] 纯文本查看 复制代码 #include <graphics.h>//包含EGE的头文件
#include <time.h> //包含随机数,时间函数
#include <bits/stdc++.h>
//#include <stdlib.h>
using namespace std;
char ch;
int width,height;//界面宽和高
int wall_w,wall_h;//障碍物宽和高
int wall_pass;//障碍物间的缺口长度
int score,score_flag;
struct ballon{
float x;//x坐标
float y;//y坐标
float vx;//x向速度
float vy;//y向速度
int radius;//半径
float g;//加速度
}ball;
struct wall{
int xr;//左上x坐标
int yr;//左上y坐标
int xl;//右下x坐标
int yl;//右下y坐标 y
int vx;//x向速度
}wall[4],wall_t;
bar(wall[i].xl,wall[i].yl,wall[i].xr,wall[i].yr);
|