一个C语言写的简单贪吃蛇源代码
#include<conio.h>
#include<graphics.h>
#include<time.h>
#include<string.h>
#include<malloc.h>
#include<stdio.h>
int grade=5,point=0,life=3;
void
set(),menu(),move_head(),move_body(),move(),init_insect(),left(),upon(),right(),down(),init_graph(),food_f(),ahead(),crate();
struct bug
{
int x;
int y;
struct bug *last;
struct bug *next;
};
struct fd
{
int x;
int y;
int judge;
}food={0,0,0};
struct bug *head_f=NULL,*head_l,*p1=NULL,*p2=NULL;
void main()
{
char ch;
initgraph(800,600);
set();
init_insect();
while(1)
{
food_f();
Sleep(grade*10);
setcolor(BLACK);
circle(head_l->x,head_l->y,2);
setcolor(WHITE);
move_body();
if(kbhit())
{
ch=getch();
if(ch==27)
{
ahead();
一个C语言写的简单贪吃蛇... 8页 免费 贪吃蛇游戏c语言源代码 3页 免费 ...*表示蛇的结点*/ { int bx,by; struct Snake *next; }Snake,*SnakeList;...
C语言最简洁的贪吃蛇源代码_互联网_IT/计算机_专业资料。鸡尾酒配方... 贪吃蛇C语言源代码 8页 1下载券 一个C语言写的简单贪吃蛇... 8页 免费 ...
C语言简单贪吃蛇游戏代码_电脑基础知识_IT/计算机_专业资料。C语言简单贪吃蛇游戏代码#include <stdio.h> #include <stdlib.h> #include #include <CONIO.H>...
一个C语言写的简单贪吃蛇源代码,里面用到了一个<graphics.h>的库,不懂可以找一下一个C语言写的简单贪吃蛇源代码,里面用到了一个<graphics.h>的库,不懂可以...
课程设计目的(1) 、通过 c 语言编程实现贪吃蛇游戏的运行。 (2) 、对代码...上没有的知识,体会到了编程的快乐,也许,编程就是,由简单到复杂,由复杂到简单...
贪吃蛇代码-C语言-VC++6.0_计算机软件及应用_IT/计算机_专业资料。/*这是... 彩版_贪吃蛇C语言版(VC+... 20页 2下载券 C语言写的简单贪吃蛇,vc......
一个C语言写的简单贪吃蛇... 8页 免费 C语言简单贪吃蛇游戏代码... 4页... 适合c语言初学者参考#include<stdlib.h...
贪吃蛇游戏c语言源代码_建筑/土木_工程科技_专业资料。贪吃蛇游戏c语言源代码贪吃蛇游戏c语言源代码.txt这是一个禁忌相继崩溃的时代,没人拦得着你,只有你自己...
此时您就可以把贪吃蛇游 戏的代码复制粘贴到你刚刚建立的工程和文件里面了, ...分析出 来,选择正确的数据结构然后在将程序模块化,按照模块编写函数更加简单合理...
C++语言贪吃蛇游戏源代码_计算机软件及应用_IT/计算机_专业资料。蛇年来临创作... C语言 贪吃蛇游戏源程序 2页 免费 贪吃蛇游戏C源代码 5页 免费 C语言小...
热门文档