-
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
-
用IP打开主机端口 实现主机间的数据传输 可以传输文件
用IP打开主机端口 实现主机间的数据传输 可以传输文件-IP host ports open between the mainframe data transmission can transfer files
- 2023-07-12 11:50:03下载
- 积分:1
-
赢
win-sys完整版nt_filesystem_internal_book,for english condition ,on2005.10.26,thank you-win-sys nt_filesystem_internal_book full version, for english condition, on2005.10.26, thank you
- 2022-10-19 14:25:04下载
- 积分:1
-
VC++可改写任意时间的日历代码
资源描述一个很自由的任意填写日期的日历小插件代码。
- 2022-03-21 03:59:03下载
- 积分:1
-
书店管理系统!vb开发,实现图书自动编号,图书的添加、修改、删除,会员的添加、修改删除、以及借书还书,登录分类,会员管理、图书查询等功能!...
书店管理系统!vb开发,实现图书自动编号,图书的添加、修改、删除,会员的添加、修改删除、以及借书还书,登录分类,会员管理、图书查询等功能!-Bookstore Management System! vb develop, implement automated library number of books to add, modify, delete, member add, modify delete, as well as the borrowing and returning books, log classification, members of management, library inquiries and other functions!
- 2022-03-12 03:37:00下载
- 积分:1
-
《C++大学教程》中,类与数据抽象的示例程序。教你接口与实现方法的分离,控制对成员的访问和private属性的工具函数。...
《C++大学教程》中,类与数据抽象的示例程序。教你接口与实现方法的分离,控制对成员的访问和private属性的工具函数。- C++ University Guide , the abstract data type and sample programs. Teach you methods of interface and implementation separation, control of members of private property access and function of the tool.
- 2022-01-25 20:11:08下载
- 积分:1
-
在DBGrid中实现任意方向查找
在DBGrid中实现任意方向查找-DBGrid in achieving any direction you
- 2022-10-28 19:40:04下载
- 积分:1
-
There must be a gazillion Tetris clones out there ... Why another one?. Because...
There must be a gazillion Tetris clones out there... Why another one?. Because I couldn t find a clone like this with a liberal open source license and programmed with code legibility in mind. -There must be a gazillion Tetris clones out there ... Why another one?. Because I couldn t find a clone like this with a liberal open source license and programmed with code legibility in mind.
- 2022-09-16 22:05:03下载
- 积分:1
-
achieve ping command, this version powerful, achieving most of the ping command...
实现ping命令,这个版本功能强大,实现了ping命令的大部分功能。-achieve ping command, this version powerful, achieving most of the ping command functions.
- 2023-04-17 02:50:03下载
- 积分:1
-
能够将BMP文件直接转化成JPG文件,并且是纯C代码,不用任何的插件。...
能够将BMP文件直接转化成JPG文件,并且是纯C代码,不用任何的插件。-Be able to BMP files directly into JPG files, and is a pure C code, without any plug-ins.
- 2022-03-09 15:11:43下载
- 积分:1