-
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
-
迷宫问题的递归算法
迷宫问题的递归算法-recursive algorithm for maze problem
- 2022-06-18 15:57:16下载
- 积分:1
-
汇编学习书箱,对刚学汇编的朋友来说是很多的选择
汇编学习书箱,对刚学汇编的朋友来说是很多的选择-Compilation of the book to learn me, just school friends is a compilation of many choices
- 2022-07-05 13:46:04下载
- 积分:1
-
很有用的,XP的DOS工具,例如帮助备份
很有用的,XP进入DOS工具,对于喜欢备份的人很有帮助-very useful, XP into DOS tools, like backup for the helpful
- 2022-07-15 13:34:30下载
- 积分:1
-
wonderful the Little Stars (Capture Genius) v1.0. can capture the entire screen,...
非常棒的抓图小精灵(Capture Genius) v1.0,可以捕获整个屏幕、活动窗口、延时捕获窗口、捕获包含标题的窗口、用户窗口、滚动窗口等,捕获的图片并可以保存为BMP、JPGE图片,可以用微软画图工具编辑,可以保存位墙纸.具有打印图片功能.这个小工具还支持多国语言(简体中文、英文)-wonderful the Little Stars (Capture Genius) v1.0. can capture the entire screen, activity window, delay capture window, capturing the title contains the window, the window users, and rolling window. Photo capture and can be saved as BMP, JPGE pictures, you can use Microsoft tools for drawing editor, Wallpaper spaces can be preserved. Photo Print function is. This small device also supports multiple languages (English, English)
- 2023-07-05 13:35:04下载
- 积分:1
-
判断一个点是否在某个窗口中
判断一个点是否在某个窗口中-Judge if a point is in a window
- 2022-05-10 12:07:23下载
- 积分:1
-
GIM PHOTHO 1.4.3
GimPhoto是GIMP修改与新的菜单布局,额外的插件,新的画笔集,摄影过滤器和集成的MDI窗口alaphotoshop更多。
- 2022-01-25 21:13:57下载
- 积分:1
-
personal album management code, innovative and practical, vc Development
个人相册管理代码,新颖实用,vc++开发-personal album management code, innovative and practical, vc Development
- 2022-07-27 13:15:11下载
- 积分:1
-
visual basic 源程序希望大家多提宝贵意见
visual basic 源程序希望大家多提宝贵意见-visual basic source code hope that we talk too much about the valuable advice
- 2022-05-25 08:20:59下载
- 积分:1
-
Specifications of wireless sensor node devloped
Specifications of wireless sensor node devloped
- 2022-04-17 03:35:21下载
- 积分:1