能在dev-c++上运行通过的扫雷,贪吃蛇,等小游戏的c语言代码
能在dev-c++上运行通过的扫雷,贪吃蛇,等小游戏的c语言代码
日期:2019-07-26 21:53:34 人气:1
#include
#include
#include
#define LEFT 0x4b00
#define RIGHT 0x4d00
#define DOWN 0x5000
#define UP 0x4800
#define ESC 0x011b
int i,key;
int score=0;
int gamespeed=32000;
struct Food /*食物的结构体*/
{
int x; /*食物的横坐标*/
int y; /