-
C语言实现贪吃蛇
//: Snake.c
/* * * * * * * * * * * * * * * * * * * * * * *
// Project: RedSnake(贪吃蛇)
// Author: Problue
// Version: 1.0
// Date: 19:55 2012-10-29
* * * * * * * * * * * * * * * * * * * * * * */
#include
#include
#include
#include "pcc32.h"
// 定义地图的尺寸及坐标
#define MAP_WIDTH 32 // 地图宽度
#define MAP_HEIGHT 32 // 地图高度
#define OFFSET_X 1 // 地图左右的边距
#define OFFSET_Y 1 // 地图上下的边距
#define TOTAL_WIDTH (MAP_WIDTH + OFFSET_X * 2) // 窗口宽度
#define TOTAL_HEIGHT (MAP_HEIGHT + OFFSET_Y * 2) // 窗口高度
#define GotoMap(x, y) gotoTextPos((x) * 2, (y))
// 定义地图方格的状态,分别为: 空格、蛇头、蛇身、蛇尾、食物
#define BS_SPACE 0
#define BS_SHEAD 1
#define BS_SBODY 2
#define BS_STAIL 3
#define BS_FOOD 4
// 蛇默认长度
#define SNAKE_MIN_LEN 5
// 定义蛇运动方向: 上、下、左、右
#define DIR_UP 1
#define DIR_DOWN 2
#define DIR_LEFT 3
- 2022-05-15 19:59:34下载
- 积分:1
-
a very good intereger
flex皮肤,非常good,适合flex开发者-a very good intereger
- 2022-02-21 14:27:15下载
- 积分:1
-
Very stable, easy
非常稳定好用的串口通讯源代码,经过上千次测试,没有问题-Very stable, easy-to-use serial communication source code, after thousands of tests, there is no problem
- 2022-11-20 21:40:03下载
- 积分:1
-
动态演示文件拷贝效果图
动态演示文件拷贝效果图- Dynamic demonstration document copy effect chart
- 2022-03-18 02:40:51下载
- 积分:1
-
获取windows的版本号及运行模式,VC++实现,测试通过
获取windows的版本号及运行模式,VC++实现,测试通过-Windows to obtain the version number and operating mode, VC++ to achieve, the test
- 2023-04-30 19:35:03下载
- 积分:1
-
基于 Web 的版本检查的程序的例子
基于 Web 的版本检查的程序的例子--An example of program of version checking which is based on web
- 2022-06-27 15:49:50下载
- 积分:1
-
一个简单的图书馆管理系统的WORD文档和源代码,一个很不错的图书馆管理系统...
一个简单的图书馆管理系统的WORD文档和源代码,一个很不错的图书馆管理系统-a simple library management system of Word documents and source code, a very good library management system
- 2022-03-23 08:59:36下载
- 积分:1
-
VS2013 抢答检查
如果公司在付在欧洲共同体增值税税法对在线验证网站及检查。
- 2022-08-19 22:32:12下载
- 积分:1
-
一个十分简易的计算器,适合初学者,以及要求不高者用
一个十分简易的计算器,适合初学者,以及要求不高者用-A very simple calculator, for junior and someone who don t have many requirements.
- 2022-06-14 13:04:31下载
- 积分:1
-
这也是一个加密算法的源代码库作为ElGamal、理念等50条。
这是又一个加密算法源代码集合如elgamal,idea等50个算法-This is also an encryption algorithm source code pool as ElGamal, idea etc. 50 Algorithm
- 2023-08-18 02:25:04下载
- 积分:1