-
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
-
通过使用 MIMAX CARO 游戏
通过使用MIMAX alogrithm的CARO游戏的例子。希望你喜欢它极大极小(有时极大极小或毫米[ 1 ])是一种用于决策理论,决策规则的博弈理论,为减少最坏的情况下可能发生的损失统计与哲学(最大损失)的情况。最初制定的二人零和
- 2022-08-16 15:12:22下载
- 积分:1
-
Find their own network programming is also about the source of the serial
自己找得网络编程的源程序 也是关于串口的-Find their own network programming is also about the source of the serial
- 2023-02-08 05:00:04下载
- 积分:1
-
时间表管理
时间表管理系统的自动化完成学校和学院时间表管理系统,以及工资管理系统
- 2022-07-18 14:13:29下载
- 积分:1
-
利用API函数,可以实现硬盘的格式化,可以方便的调用Windows组件...
利用API函数,可以实现硬盘的格式化,可以方便的调用Windows组件-use API function can be achieved formatted drives can be easily called Windows components
- 2022-01-24 09:45:27下载
- 积分:1
-
wince 按键驱动
wine6.0下的独立按键驱动,代码中详细介绍了如何使用中断的流程,更加定义了如何使用按键的定义,代码描写清晰,注释详细,很适合初学者使用
- 2022-12-26 15:45:04下载
- 积分:1
-
- 2022-11-25 06:45:03下载
- 积分:1
-
The main algorithms for some commonly used procedures, all the algorithms are de...
主要为一些常用的算法程序,所有的算法均用C语言描述。
-The main algorithms for some commonly used procedures, all the algorithms are described using C language.
- 2023-08-22 01:05:03下载
- 积分:1
-
从hp53132a频率计数器,读取数据显示图,计算统计数据
从频率计数器HP53132A读取数据,显示绘图,计算统计。
- 2022-11-27 01:10:03下载
- 积分:1
-
c#课程设计的好编成离子大家来 下.资源共响吗,真的横好的饿,,
c#课程设计的好编成离子大家来 下.资源共响吗,真的横好的饿,,-curriculum design good for everyone to come into ions under. Total resources for you, really good cross hungry, and,
- 2022-07-23 14:19:24下载
- 积分:1