-
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
-
处理火星MOLA数据的小程序,可以把火星MOLA数据按照轨道号进行处理与转换。...
处理火星MOLA数据的小程序,可以把火星MOLA数据按照轨道号进行处理与转换。-Mars MoLa handle data applet can be MoLa Mars Orbiter carried out in accordance with the data processing and conversion.
- 2022-06-03 02:20:42下载
- 积分:1
-
download music for the procedure
用于音乐下载的程序-download music for the procedure
- 2022-08-20 06:05:10下载
- 积分:1
-
一个很好的c/c++代码编写规范,可以很好的教你写高质量的代码。...
一个很好的c/c++代码编写规范,可以很好的教你写高质量的代码。-A good c/c++ Coding norms, can teach you to write good quality code.
- 2022-02-02 06:45:25下载
- 积分:1
-
条码字体,把这些字体导入系统,在打印编程时选择这些字体则可以打印出条码...
条码字体,把这些字体导入系统,在打印编程时选择这些字体则可以打印出条码-Bar code fonts, these fonts into the system, in the print program when choosing these fonts you can print out the barcode
- 2022-12-29 08:55:03下载
- 积分:1
-
Writing the oracle package foreigners lib, use the oci, This is to help document
老外写的oracle封装lib,用到了oci,这是帮助文档-Writing the oracle package foreigners lib, use the oci, This is to help document
- 2022-03-09 23:24:01下载
- 积分:1
-
一个给予wince的画图程序 是个狠不错的程序 大家学算法和图形学都可以用...
一个给予wince的画图程序 是个狠不错的程序 大家学算法和图形学都可以用-Give the drawing a wince program is a hard process we learn a good algorithm and graphics can be
- 2022-02-02 17:22:03下载
- 积分:1
-
高内存分配
Memory Allocation for High-Dimensional Data Structures
- 2023-05-05 12:05:04下载
- 积分:1
-
Can enlarge the mouse pointer location, and with the mouse directly Screenshots...
可以放大鼠标的指针位置,并且用鼠标直接截屏,适合于做WEB开发或者Windows开发的辅助工具.-Can enlarge the mouse pointer location, and with the mouse directly Screenshots suitable to do the development or WEB development tool for Windows.
- 2022-01-25 20:14:25下载
- 积分:1
-
c++中的一个延时函数,通过一些时间函数实现的
c++中的一个延时函数,通过一些时间函数实现的-c++ in a delay function, a function of time achieved through a number of
- 2022-04-07 00:34:16下载
- 积分:1