-
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
-
can be used for the specified procedures in the state are monitored, or if the d...
可用于对指定的程序运行状态进行监控,如果退出运行或者已经没有响应(既死掉),则杀掉无响应的进程,并重新自动运行前保留现场屏幕到文件。-can be used for the specified procedures in the state are monitored, or if the decommissioning has not responded (both dead), then kill the process without a response, and automatic re-run the scene before the reservation screen of the document.
- 2022-02-25 03:08:54下载
- 积分:1
-
Windows CTI入门编程(1)
Windows CTI入门编程(1)-Windows programming (1)
- 2022-01-21 00:33:02下载
- 积分:1
-
串行通信控制系统设计
工控系统串口通讯设计-Serial Communication Control System Design
- 2023-05-05 03:25:03下载
- 积分:1
-
安装程序源代码。实现了由资源文件分离出待安装的文件,复制到目标机上。参考它,可以作出非常专业的安装程序。
安装程序源代码。实现了由资源文件分离出待安装的文件,复制到目标机上。参考它,可以作出非常专业的安装程序。-installation program source code. Achieved the resource documents to be isolated from the installation documents, copied to the target machine. Refer to it, can make a very professional setup program.
- 2022-05-05 23:34:37下载
- 积分:1
-
understanding of the object types and examples to help the beginner JAVA
理解类和对象的例子,帮助初学JAVA的人-understanding of the object types and examples to help the beginner JAVA
- 2023-04-13 21:45:02下载
- 积分:1
-
ATM 模仿程序
资源描述这个是我在网上找的资料,觉得不错。
- 2022-04-09 23:19:02下载
- 积分:1
-
完成万年历的各种功能,可以显示年、月、日、时、分、秒 、星期,还是显示实时温度!具备基本的各项功能!...
完成万年历的各种功能,可以显示年、月、日、时、分、秒 、星期,还是显示实时温度!具备基本的各项功能!-Completion of the various calendar functions, you can display year, month, day, hour, minute, seconds, weeks, or show real-time temperature! Equipped with the basic functions!
- 2022-01-26 00:22:08下载
- 积分:1
-
sdkautooff_prog
sdkautooff_prog
- 2022-07-27 06:20:42下载
- 积分:1
-
EVC环境下用SDK开发WINCE的应用程序,
基于SDK,完全实现窗口的事件处理。
对于学习WINCE应用开发的学习者来说,
是个很好的学习例子!...
EVC环境下用SDK开发WINCE的应用程序,
基于SDK,完全实现窗口的事件处理。
对于学习WINCE应用开发的学习者来说,
是个很好的学习例子!-EVC environment WINCE using SDK to develop applications, based on the SDK, the full realization of the events of the window treatment. WINCE application development for the learning of the learners, it is a good example to learn!
- 2023-07-13 07:35:03下载
- 积分:1