-
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
-
kohonen som
with drwing it map
and a nice gui
kohonen som
with drwing it map
and a nice gui
- 2022-03-01 15:23:48下载
- 积分:1
-
Transformation of the AD
有关AD变换相关的程序,用C编写,并且进行了相关调试。-Transformation of the AD-related procedures, prepared by C and were related to debugging.
- 2022-12-12 08:05:03下载
- 积分:1
-
此为多函数的递推算法,又多个例子,初学C++的可以下回来
此为多函数的递推算法,又多个例子,初学C++的可以下回来-This is a recursive algorithm for Multi-function, but also a number of examples, beginner C++ Can come back next
- 2023-01-02 01:00:03下载
- 积分:1
-
windows API 一日一练,专门为哪些想进一步学习windows API编程,提供了很好的途径...
windows API 一日一练,专门为哪些想进一步学习windows API编程,提供了很好的途径-windows API on the 1st one training, which would like to further study specifically for the windows API programming, provides a good way to
- 2022-04-11 08:20:33下载
- 积分:1
-
把一段文字进行Base64编码,目前解码还没做好,清高手指点。...
把一段文字进行Base64编码,目前解码还没做好,清高手指点。-turned wording Base64 encoding, decoding not do a good job, money expert guidance.
- 2022-05-23 18:56:20下载
- 积分:1
-
学生成绩管理系统,有源程序及实验总结,适合学生大作业
学生成绩管理系统,有源程序及实验总结,适合学生大作业-Student achievement management system, has summed up the source code and experiment is suitable for students operating
- 2023-02-07 21:15:03下载
- 积分:1
-
基于jsp的健身系统开发
为了人们的健康着想,我通过调查分析之后,开发这个基于jsp的网上健身本系统,我认为这是必要的,为了人们的健康着想,也会必须的
- 2023-02-25 08:30:06下载
- 积分:1
-
bluetooth c语言实现的协议栈
c语言实现的蓝牙协议栈,集成usb,uart,spi适配器接口类型,协议栈支持server及client模式,使用csr4.0蓝牙dongle测试通过
- 2023-01-11 20:35:04下载
- 积分:1
-
学籍管理系统系统分析参考.rar
学籍管理系统系统分析参考.rar-Information Management System reference. Rar
- 2022-03-05 13:46:52下载
- 积分:1