- 博客(7)
- 收藏
- 关注
原创 c语言"贪吃蛇"游戏源码
#include #include #include #include #include #include #include "conf.h" typedef struct node { int x,y; struct node *next; }Node; typedef struct { Node *head,*tail;
2014-03-21 22:13:19 1216
原创 c语言贪吃蛇的源码,用'A''S''D''W'操作
#include#includestdlib.h>#includetime.h>#includeconio.h>typedefstruct snake{int a;int b;struct snake*u;struct snake*n;}snake,*snake1;typedefstruct food{int a;int b;}food;void main(){
2014-03-21 20:37:31 711
原创 c语言奢侈单的游戏胆码
#include#includetime.h>#includeconio.h>#includestdlib.h>int head=3 ,tail=0;int main(){int i,j,k=0;int zuobiao[2][80];long start;int direction=77;int gamespeed;int timeover;int change(char
2014-03-21 20:36:05 532
原创 c语言扫雷的游戏续集
#include #include #include #include #include #include #define ESC 0x011b#define UP 0x4800#define DOWN 0x5000#define LEFT 0x4b00#define RIGHT 0x4d00#define SPACE 0x3920#define Y 0x1579#de
2014-03-21 18:21:09 681
原创 c语言扫雷代码(详细)
#include graphics.h>#include stdlib.h>#include dos.h>#define LEFTPRESS 0xff01#define LEFTCLICK 0xff10#define LEFTDRAG 0xff19#define MOUSEMOVE 0xff08struct{int num;/*格子当前处于什么状态,1有雷,0已经显示过数字或者空
2014-03-21 18:18:57 14737
原创 c语言迷宫游戏代码
#includeint grid[14][17]={ {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {0,0,1,0,0,0,1,1,0,0,0,1,1,1,1,1,1}, {1,1,0,0,0,1,1,0,1,1,1,0,0,1,1,1,1}, {1,0,1,1,0,0,0,0,1,1,1,1,0,0,1,1,1}, {1,1,1,0,1,1,1,1,0
2014-03-21 16:37:57 3062 1
原创 c语言数数小游戏
#include#include#include#include#include/*编译预处理,定义按键码*/#define LEFT 0x4b00 #define RIGHT 0x4d00 #define DOWN 0x5000 #define UP 0x4800 /*若想在游戏中途退出, 可按 Esc 键*/#define ESC 0x011b /*SPACE键表示落子*
2014-03-21 16:36:38 587
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人