-
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
-
物料混合对象智能仿真,汇编和c混合编程......关联可改
物料混合对象智能仿真,汇编和c混合编程......关联可改-Materials mixed object intelligent simulation, compilation and c mixed programming that can be associated ......
- 2022-02-27 08:10:03下载
- 积分:1
-
c program
c program
- 2022-02-10 11:03:40下载
- 积分:1
-
使用C++编写的MGM_V循环的代码,用于图形图像的数字处理
使用C++编写的MGM_V循环的代码,用于图形图像的数字处理-The use of C++ written cycle MGM_V code, graphics images for digital processing
- 2022-04-13 14:41:03下载
- 积分:1
-
用OpenGl实现了种子填充和Bresenham算法,并且有橡皮筋功能。
用OpenGl实现了种子填充和Bresenham算法,并且有橡皮筋功能。-Achieved using OpenGl seed filling and Bresenham algorithm, and has rubber band functionality.
- 2023-03-29 07:55:03下载
- 积分:1
-
我的网页制作,其中包含了具体代码,和美观的界面,有兴趣者可下载。...
我的网页制作,其中包含了具体代码,和美观的界面,有兴趣者可下载。-my beautiful web which includes codes
- 2023-04-05 18:50:04下载
- 积分:1
-
This is a classic wine, the sub
这是一个精典的分酒程序,分别有3 ,5 ,8 升三个瓶子,现在3和5里装了酒,要求不借助于别的工具,分出一个4 升的酒来-This is a classic wine, the sub-procedures, respectively, 3, 5, 8 or three bottles, now three and five carried the wine, asked not to help other tools, the separation of a 4-liter liquor to
- 2022-12-07 07:20:02下载
- 积分:1
-
与CI的DTMF解码阶段它应该工作
dtmf decoder with ci itegrated it should work
- 2022-02-20 10:35:03下载
- 积分:1
-
MFC 库存管理系统, 插入、添加及删除 ,保存等功能
MFC 库存管理系统, 插入、添加及删除 ,保存等功能-This file contains a summary of what you will find in each of the files that
make up your GoodsManager application.
- 2023-03-07 17:15:05下载
- 积分:1
-
一个使用被动协议识别主机的操作系统软件。
一个使用被动协议识别主机的操作系统软件。-A passive agreement to use the operating system software to identify the host.
- 2022-02-07 04:54:51下载
- 积分:1