C语言推箱子游戏源码实现
#include
#include
#define LEFT 75
#define RIGHT 77
#define UPPER 72
#define DOWN 80
#define ESC 27
struct Boxss {
int x, y;
};
union keyboard {
unsigned int iKeyInfo;
char chKeyBit[2];
};
int fnGetKey(void) {
/*定义读取键盘码的共用体变量*/
union keyboard uniKey1;
return uniKey1.iKeyInfo = bioskey(0);
}
3.2KB
文件大小:
评论区