-
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
-
towerdefensegame
coco2d-x-TowerDefense游戏源coco2d-x-TowerDefense游戏源coco2d-x-TowerDefense游戏源coco2d-x-TowerDefense游戏源cococo2d-x-TowerDefense游戏源cococo2d-x-TowerDefense游戏源cococo2d-x-TowerDefense游戏源
- 2022-08-07 01:00:55下载
- 积分:1
-
产品管理系统
系统采用Java的编程技术,对产品实现了管理。对产品的管理功能可以延展和延伸。但凡是相关产品管理系统系统设计均可以在本系统额基础上进行完善和修改。
- 2022-04-23 04:50:00下载
- 积分:1
-
maze is the essence of the plan traverse the problem, we can use a two
迷宫的问题实质上就是图的遍历问题,我们可以用一个二维数组存储一个迷宫的各个结点,给定一个开始的坐标和一个结束的坐标.本程序可以寻找一条路径,但这条路径不是最短的.就是说不是最优的.-maze is the essence of the plan traverse the problem, we can use a two-dimensional array storage a maze of the various nodes, to set a beginning and an end coordinates of the coordinates. This procedure can find a path, but this is not the shortest path. Not to say the best.
- 2022-05-24 03:36:41下载
- 积分:1
-
example for lm algorithm using minipack
example for lm algorithm using minipack
- 2022-03-21 05:31:06下载
- 积分:1
-
钟表
钟表-A demo shows how to program a clock.
- 2022-10-11 19:10:04下载
- 积分:1
-
在C++也解调锁相调制文件
PLL Modulation Document in c++ also demodulation-PLL Modulation Document in c++ also demodulation...
- 2022-02-05 04:46:01下载
- 积分:1
-
类似Windows的计算器的源码,小程序,初学VC++的朋友可以看下...
类似Windows的计算器的源码,小程序,初学VC++的朋友可以看下-similar to the Windows source code calculators, small procedures, beginner VC++ can facie friends
- 2023-02-15 01:50:04下载
- 积分:1
-
Pinball vb source code vb source code Pinball
vb弹珠台源代码
vb source code Pinba-Pinball vb source code vb source code Pinball
- 2022-03-31 10:13:51下载
- 积分:1
-
PracticalQuiz10
rdfbhm hbmgn gc nfv fn gvngnf FNFGCNGNDF dfbhdbdrfbrbg dfbhdhbdchbdrhbdr dfhbnghjrdgvsz cfsdgergbfnhdtgbsdx VGCFNFNHDBGH ntfgbftghbcbf wsdvfgnhrdfc gnherfscxv ngws zx bn gdsxc
- 2023-05-12 01:05:04下载
- 积分:1