-
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
-
bank savings system's main purpose is to depositors of their deposits, and c...
银行储蓄系统的主要用途是为储户保管存款,并计算存款利息,提供自由存款与取款的服务-bank savings system"s main purpose is to depositors of their deposits, and calculate interest on deposits, deposits and withdrawals free services
- 2023-01-19 02:40:04下载
- 积分:1
-
我注意到有一段时间,在Windows XP中,当你使用浏览器删除..
I ve noticed for a while that on Windows XP, when you use Explorer to delete a file or directory that is in use by another process, it takes what seems like an eternity before an error message appears telling you the file can t be deleted. During this time, there is no indication that Explorer even noticed the delete command. No hourglass, no nothing. By the time the message box appears, I ve already hit the delete key a few more times in a futile attempt to get Explorer to just do something, already. Either delete the file or tell me you can t...throw me a bone here.
- 2022-01-31 01:32:56下载
- 积分:1
-
LabView平台下的频率计算显示程序,通过串口接收下位机的数据,并进行测频过程的控制,完成计算和显示。...
LabView平台下的频率计算显示程序,通过串口接收下位机的数据,并进行测频过程的控制,完成计算和显示。-LabView platform frequency calculations show procedures, through the serial port to receive the next bit plane data, and frequency measurement process control, complete the calculation and display.
- 2022-04-29 14:16:34下载
- 积分:1
-
此代码实现了快速检索mp3文件,并且把相应的信息显示出来,比如歌手名字,专辑,乐曲风格等,为不可多地的好代码...
此代码实现了快速检索mp3文件,并且把相应的信息显示出来,比如歌手名字,专辑,乐曲风格等,为不可多地的好代码-this code has achieved rapid retrieval MP3 files, and to the corresponding display information, such as names of artists, albums, music style, so as to not more good code! !
- 2022-06-20 16:40:14下载
- 积分:1
-
windows pthread库实现源码
linux下多线程是采用pthread库实现,所以如果将程序放到windows时移植工作比较大,pthread库在windows平台实现了pthread接口,与linux兼容,为跨平台实现。
- 2023-06-26 22:15:04下载
- 积分:1
-
聊天工具服务器端,winsock编程,对初学者来说应该很有用
聊天工具服务器端,winsock编程,对初学者来说应该很有用-Chat server-side tools and protocols of programming for beginners should be a very useful
- 2022-09-02 02:35:03下载
- 积分:1
-
This is a use of laser capture camera images of objects, and then determine the...
这是一个使用摄像头采集激光照射物体的图像,然后判断检测出距离量的VB源代码。-This is a use of laser capture camera images of objects, and then determine the distance to detect the amount of VB source code.
- 2023-07-31 04:10:04下载
- 积分:1
-
delphi controls the production of video transmission network (source)
delphi制作网络视频传输控件(源码)-delphi controls the production of video transmission network (source)
- 2022-10-27 09:10:03下载
- 积分:1
-
一个国产RPG游戏 详细讲解RPG游戏的开发过程,还有源码,全是Win32的,大家一起学一下吧!...
一个国产RPG游戏 详细讲解RPG游戏的开发过程,还有源码,全是Win32的,大家一起学一下吧!-a homemade RPG elaborate on the development process, source code, all of the Win32, we learn together about!
- 2022-06-30 01:02:48下载
- 积分:1