-
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
-
控制长文件名以简略方式显示
控制长文件名以简略方式显示-control long file name to be shown briefly
- 2022-05-25 09:19:02下载
- 积分:1
-
企业文档管理系统
应用背景
功能介绍:
1.类别管理、2.文档管理、3.添加文档、4.浏览文档
5.附件管理、6.角色管理、7.添加角色、8.用户管理关键技术比较基础的文档管理系统,可以技术互相交流哦,共同进步
- 2022-10-13 00:45:03下载
- 积分:1
-
世界时钟立体显示,可查询当前各区时间。用bcb6编写。
世界时钟立体显示,可查询当前各区时间。用bcb6编写。-World Clock stereoscopic display, will be able to access all current time. Bcb6 used to prepare.
- 2023-05-12 13:20:03下载
- 积分:1
-
Generate intel. Hex file in the main function they need to add a document storag...
生成intel .hex 格式的文件,在main函数中加入自己需要存储的文件。-Generate intel. Hex file in the main function they need to add a document storage.
- 2023-07-13 11:10:03下载
- 积分:1
-
labview音频信号测试系统
labview音频信号测试系统,主要对声音信号进行分析处理。
- 2022-05-06 12:11:23下载
- 积分:1
-
针对于pxa270的jatg驱动程序 针对于pxa270的jatg驱动程序
针对于pxa270的jatg驱动程序 针对于pxa270的jatg驱动程序-For in the PXA270
- 2022-04-10 17:36:10下载
- 积分:1
-
UG二次开发,实现feature浏览,UG二次开发,实现feature浏览
UG二次开发,实现feature浏览,UG二次开发,实现feature浏览-UG secondary development realize feature browser, UG secondary development realize feature browser
- 2022-01-25 14:26:26下载
- 积分:1
-
电子邮件客户端发送和接受
163的邮件服务器配置信息:
POP3接收邮件服务器:POP.163.COM SMTP发送邮件服务器:SMTP.163.COM
yahoo的邮件服务器配置信息
接收邮件服务器是pop.mail.yahoo.com.cn 发送邮件服务器是smtp.mail.yahoo.com
126的邮件服务器配置信息
接收邮件服务器是pop.126.com, 发送邮件服务器是smtp.126.com。
新浪网站的邮件服务器配置信息
接收邮件服务器是pop3.sina.com.cn, 发送邮件服务器是smtp.sina.com.cn。
vc6.0,可直接运行。
- 2022-01-24 14:00:46下载
- 积分:1
-
Related to the complexity of network computing, there is c, vc two of the five p...
复杂网络计算相关,有c、vc两种环境的5个程序:1.筛选一列不重复记录2.集聚系数的计算(c语言,附有示例数据)3.含有节点信息的编号程序(vc,附有示例数据)4.独立性计算程序(附相关文献)5.网页过滤批处理程序(可处理无限文件)-Related to the complexity of network computing, there is c, vc two of the five procedures for the environment: 1. Screening of duplicate records is not a 2. Agglomeration coefficients (c language, with sample data) 3. Contain the number of nodes process information (vc, with sample data) 4. the independence of the calculation procedure (with the related literature) 5. page batch filtering process (which can handle unlimited file)
- 2022-01-25 23:17:46下载
- 积分:1