55问答网
所有问题
当前搜索:
c语言贪吃蛇最简单代码50行
求
贪吃蛇C语言代码
答:
initgraph(&gd,&gm,"
c
:\\tc");cleardevice();} /*开始画面,左上角坐标为(
50
,40),右下角坐标为(610,460)的围墙*/ void DrawK(void){ /*setbkcolor(LIGHTGREEN);*/ setcolor(11);setlinestyle(SOLID_LINE,0,THICK_WIDTH);/*设置线型*/ for(i=50;i<=600;i+=10)/*画围墙*/ {...
求用
c语言
编写的
贪吃蛇
程序
答:
include <stdio.h> include <graphics.h> include <stdlib.h> include <dos.h> /*引用的库函数*/ define LEFT 0x4b00 define RIGHT 0x4d00 define DOWN 0x5000 define UP 0x4800 define ESC 0x011b/*宏定义键名*/ define N 200 int i,key;int level;/*游戏等级*/ int score=0;/*得分...
C语言
写
贪吃蛇
答:
TC
贪吃蛇代码
2008-06-08 13:
50
#define N 200#include<graphics.h>#include<stdlib.h>#include<dos.h>#define LEFT 0x4b00#define RIGHT 0x4d00#define DOWN 0x5000#define UP 0x4800#define ESC 0x011bint i,key;int score=0;int gamespeed=32000;struct Food /*食物的结构体*/{int x; /*食物的...
新手求
c语言贪吃蛇源代码
,一定要有注释,不要有光标移动函数之类的(新 ...
答:
initgraph(&gd,&gm,"
c
:\\tc");cleardevice();} /*开始画面,左上角坐标为(
50
,40),右下角坐标为(610,460)的围墙*/ void DrawK(void){ /*setbkcolor(LIGHTGREEN);*/ setcolor(11);setlinestyle(SOLID_LINE,0,THICK_WIDTH);/*设置线型*/ for(i=50;i<=600;i+=10)/*画围墙*/ {...
贪吃蛇c语言代码
答:
initgraph(&gd,&gm,"
c
:\\tc");cleardevice();} /*开始画面,左上角坐标为(
50
,40),右下角坐标为(610,460)的围墙*/ void DrawK(void){ /*setbkcolor(LIGHTGREEN);*/ setcolor(11);setlinestyle(SOLID_LINE,0,THICK_WIDTH);/*设置线型*/ for(i=50;i<=600;i+=10)/*画围墙*/ {...
贪吃蛇
怎么用
C语言
编写
答:
include <stdio.h> include <graphics.h> include <stdlib.h> include <dos.h> /*引用的库函数*/ define LEFT 0x4b00 define RIGHT 0x4d00 define DOWN 0x5000 define UP 0x4800 define ESC 0x011b/*宏定义键名*/ define N 200 int i,key;int level;/*游戏等级*/ int score=0;/*得分...
用
c语言
编写的
贪食蛇
游戏
答:
这是一个成功的
贪吃蛇代码
(
c语言
编写的),希望你能看懂!慢慢看:define N 200 include <graphics.h> include <stdlib.h> include <dos.h> define LEFT 0x4b00 define RIGHT 0x4d00 define DOWN 0x5000 define UP 0x4800 define ESC 0x011b int i,key;int score=0;/*得分*/ int game...
贪吃蛇
游戏的
C语言代码
答:
initgraph(&gd,&gm,"
c
:\\tc");cleardevice();} /*开始画面,左上角坐标为(
50
,40),右下角坐标为(610,460)的围墙*/ void DrawK(void){ /*setbkcolor(LIGHTGREEN);*/ setcolor(11);setlinestyle(SOLID_LINE,0,THICK_WIDTH);/*设置线型*/ for(i=50;i<=600;i+=10)/*画围墙*/ {...
C语言
写
贪吃蛇
答:
include <stdio.h> include <graphics.h> include <stdlib.h> include <dos.h> /*引用的库函数*/ define LEFT 0x4b00 define RIGHT 0x4d00 define DOWN 0x5000 define UP 0x4800 define ESC 0x011b/*宏定义键名*/ define N 200 int i,key;int level;/*游戏等级*/ int score=0;/*得分...
C语言
的
贪吃蛇源代码
答:
printf("%c", GameMap[i][j]); printf("\n"); } printf("\n小小
C语言贪吃蛇
\n"); printf("按任意方向键开始游戏\n"); getch(); ...if(gamespeed>
50
)//控制最快速度为50 gamespeed = 550 - grade * 50; // 改变自动前进时间间隔 } tcsQipan[x][y]= 3;//贪吃蛇棋盘相应坐标现在...
<涓婁竴椤
1
2
3
4
5
6
7
8
9
10
涓嬩竴椤
灏鹃〉
其他人还搜