彩虹糖吃多了.docVIP

  • 5
  • 0
  • 约19.4万字
  • 约 32页
  • 2016-09-26 发布于河南
  • 举报
彩虹糖吃多了

彩虹糖吃多了 /*亚君的第一次游戏制作 ^_^*/ #include graphics.h #include math.h #include windows.h #define PI 3.1415926 #define SL 14 //SL 为s_bar[]的大小 #define HL 12 //Hl 为h_bar[]的大小 #define FPS 60 //delay_fps #define BALL 5 //第一个房间的圆的个数 #define S2 10 //第二个房间的方块的个数 #define N 100 //蛇的最大长度 int cir_x, cir_y; int dx,dy; float rad; //旋转的圆的角度 struct _cir{ //旋转的圆 float x,y; }cir[6]; struct _snake{ int x,y; int dx,dy; int color_r; int color_g; int color_b; }snake[N]; struct _food{ int x,y; int yes; int color_r; int color_g; int color_b; int count; }food; int judge =

文档评论(0)

1亿VIP精品文档

相关文档