c语言游戏24119837.docVIP

  • 1
  • 0
  • 约1.97万字
  • 约 25页
  • 2017-08-30 发布于江苏
  • 举报
c语言游戏.txtcopy(复制)别人的个性签名,不叫抄袭,不叫没主见,只不过是感觉对了。遇到过的事一样罢了。#include graphics.h /*头文件*/ #include time.h #include stdlib.h #include bios.h #include dos.h #include stdio.h #define ESC 0x11b /*键盘扫描码*/ #define UP 0x4800 #define DOWN 0x5000 #define LEFT 0x4b00 #define F1 0x3b00 #define RIGHT 0x4d00 #define YES 0x1579 #define NO 0x316e #define RESTART 0x1372 struct diamond /*记录每种方块每种状态的信息*/ { int x[4]; int y[4]; int start_x; int start_y; int color; struct diamond *next; }; int grid[12][23]; /*记录所有格子的状态 (0)没有方块 (1)有固定方块 (2)有活动方块*/ int x; /*活动方块所在位置*/ int y; int level; /*游戏难度*/

文档评论(0)

1亿VIP精品文档

相关文档