最近看到很多网友寻找游戏代码,10年前火爆全网的贪吃蛇,我们可以重拾继续使用!!!!...include
#define HENG 80
#define SHU 25 //HENG是宽度,SHU是高度
#define TIME 400 //初始速度
2:中间部分,也是整个代码最核心的部分...使用了我们从语言最基本的语句
void Gotoxy(int x, int y);
void Food(struct SHE *head);
int Move(struct SHE *head);
int...*head);
void Gameover(void);
void Huitu(struct SHE *head);
int Fx, Fy; //食物的位置
int fen; //得分
int...,也是代码的结束:
void Gameover(void)
{
int i,j;
int a[SHU][HENG]={
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0