Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gaowanlu committed Jun 24, 2021
1 parent c418974 commit ddc2a6a
Show file tree
Hide file tree
Showing 89 changed files with 241 additions and 267,105 deletions.
Binary file added Debug/Log.obj
Binary file not shown.
Binary file added Debug/MazePathFind.obj
Binary file not shown.
Binary file added Debug/MazePro.exe
Binary file not shown.
Binary file added Debug/MazePro.ilk
Binary file not shown.
10 changes: 10 additions & 0 deletions Debug/MazePro.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
 levelPage.cpp
C:\Users\gaowanlu\Desktop\MazePro\src\levelPage.cpp(27,26): warning C4309: “参数”: 截断常量值
C:\Users\gaowanlu\Desktop\MazePro\src\levelPage.cpp(137,15): warning C4101: “point”: 未引用的局部变量
C:\Users\gaowanlu\Desktop\MazePro\src\levelPage.cpp(180,46): warning C4309: “参数”: 截断常量值
C:\Users\gaowanlu\Desktop\MazePro\src\levelPage.cpp(180,41): warning C4309: “参数”: 截断常量值
C:\Users\gaowanlu\Desktop\MazePro\src\levelPage.cpp(180,36): warning C4309: “参数”: 截断常量值
C:\Users\gaowanlu\Desktop\MazePro\src\levelPage.cpp(223,39): warning C4309: “参数”: 截断常量值
C:\Users\gaowanlu\Desktop\MazePro\src\levelPage.cpp(253,39): warning C4309: “参数”: 截断常量值
C:\Users\gaowanlu\Desktop\MazePro\src\levelPage.cpp(284,15): warning C4101: “point”: 未引用的局部变量
MazePro.vcxproj -> C:\Users\gaowanlu\Desktop\MazePro\Debug\MazePro.exe
Binary file added Debug/MazePro.pdb
Binary file not shown.
Binary file added Debug/MazePro.tlog/CL.command.1.tlog
Binary file not shown.
Binary file added Debug/MazePro.tlog/CL.read.1.tlog
Binary file not shown.
Binary file added Debug/MazePro.tlog/CL.write.1.tlog
Binary file not shown.
2 changes: 2 additions & 0 deletions Debug/MazePro.tlog/MazePro.lastbuildstate
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0:
Debug|Win32|C:\Users\gaowanlu\Desktop\MazePro\|
Binary file added Debug/MazePro.tlog/link.command.1.tlog
Binary file not shown.
Binary file added Debug/MazePro.tlog/link.read.1.tlog
Binary file not shown.
Binary file added Debug/MazePro.tlog/link.write.1.tlog
Binary file not shown.
2 changes: 2 additions & 0 deletions Debug/MazePro.vcxproj.FileListAbsolute.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
C:\Users\gaowanlu\Desktop\MazePro\Debug\MazePro.exe
C:\Users\gaowanlu\Desktop\MazePro\Debug\MazePro.pdb
Binary file added Debug/PopUpModule.obj
Binary file not shown.
Binary file added Debug/Record.obj
Binary file not shown.
Binary file added Debug/RecursiveSegmentation.obj
Binary file not shown.
Binary file added Debug/User.obj
Binary file not shown.
Binary file added Debug/breakthroughPage.obj
Binary file not shown.
Binary file added Debug/indexPage.obj
Binary file not shown.
Binary file added Debug/levelPage.obj
Binary file not shown.
Binary file added Debug/libPage.obj
Binary file not shown.
Binary file added Debug/mapread.obj
Binary file not shown.
Binary file added Debug/matrix.obj
Binary file not shown.
Binary file added Debug/matrixUI.obj
Binary file not shown.
Binary file added Debug/prim.obj
Binary file not shown.
Binary file added Debug/recursionTracing.obj
Binary file not shown.
Binary file added Debug/vc142.idb
Binary file not shown.
Binary file added Debug/vc142.pdb
Binary file not shown.
Binary file added MazePro.exe
Binary file not shown.
25 changes: 16 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
## Matrix-new
## MazeGame
##### 遵循开源协议
MIT
##### 项目简介
`此项目是基于Windows平台EasyX图形库开发的迷宫游戏,具有多种自动生成迷宫地图特性以及迷宫寻径功能`
##### 开发工具及运行环境
###### 开发IDE环境 : Visual Studio 2019
###### 代码管理工具: Git
Expand All @@ -12,8 +10,8 @@
EasyX 图形界面库
EasyX官网:[EasyX](https://easyx.cn/)
##### Git仓库地址
Gitee:[Gitee 仓库](https://gitee.com/gaowanlu/matrix-new/)
Github:暂无
Gitee:[Gitee 仓库](https://gitee.com/gaowanlu/matrix-new/)
Github:https://github.com/gaowanlu/MazeGame/
##### 在运行程序时可能遇到的问题
###### 缺少dll文件?
解决方案
Expand All @@ -22,11 +20,20 @@
###### 文件目录(双击点击matrix.exe即可打开)
![文件目录](https://img-blog.csdnimg.cn/img_convert/80f1a01ef856a7b084cded38521f71f7.png#pic_center)
###### 游戏主页
![游戏主页](https://img-blog.csdnimg.cn/img_convert/ef3af4d3477f6af13385398b515c1fe3.png#pic_center)
![游戏主页](https://img-blog.csdnimg.cn/img_convert/ef3af4d3477f6af13385398b515c1fe3.png#pic_center
![在这里插入图片描述](https://img-blog.csdnimg.cn/20210624232204816.PNG?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1ODEyOTQx,size_16,color_FFFFFF,t_70#pic_center)

###### 游戏实验室界面
![游戏实验室界面](https://img-blog.csdnimg.cn/img_convert/be3aa68a8a0fe3c1b705c15cf897bbbe.png#pic_center)
![游戏实验室界面](https://img-blog.csdnimg.cn/img_convert/be3aa68a8a0fe3c1b705c15cf897bbbe.png#pic_center
![在这里插入图片描述](https://img-blog.csdnimg.cn/20210624232224806.PNG?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1ODEyOTQx,size_16,color_FFFFFF,t_70#pic_center)

###### 闯关菜单
![在这里插入图片描述](https://img-blog.csdnimg.cn/20210624232326972.PNG?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1ODEyOTQx,size_16,color_FFFFFF,t_70#pic_center)
###### 关卡闯关
![在这里插入图片描述](https://img-blog.csdnimg.cn/20210624232348696.PNG?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1ODEyOTQx,size_16,color_FFFFFF,t_70#pic_center)

###### 游戏控制
使用传统游戏方式wasd进行目标体的移动
###### 感谢
感谢雨课堂:进行README的图片托管

###### 感谢
感谢EasyX图形界面库的开发者:没有你们的努力我们无法使用这么好的工具进行高效的开发
2 changes: 1 addition & 1 deletion data/level/1.map
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
11111111111111111111111111111111111111111
00000000000010001010100000001000001000001
10000000000010001010100000001000001000001
11111111011110111010111110111011111010101
10100000000010101010100000000000001010101
10101110111000101010111111111111011111101
Expand Down
2 changes: 1 addition & 1 deletion data/level/2.map
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
11111111111111111111111111111111111111111
00000000000000000000000000000010000010001
10000000000000000000000000000010000010001
11111111111111111111111111111010110110111
10000000000000000000000000100000100000001
11111111111111110111111110101011111111101
Expand Down
2 changes: 1 addition & 1 deletion data/level/3.map
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
11111111111111111111111111111111111111111
00100000000010000010000000000000000000001
10100000000010000010000000000000000000001
10111011111011101110111111101111111111101
10000010001000100010101000001000001000101
11111111101110101010101011111011101010101
Expand Down
2 changes: 1 addition & 1 deletion data/level/4.map
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
11111111111111111111111111111111111111111
00000000001000000010001000100000000000001
10000000001000000010001000100000000000001
11111111101011111010101010101110111111101
10000010001010001000101010101010000000101
10111010111011101111101010101011111110101
Expand Down
2 changes: 1 addition & 1 deletion data/level/5.map
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
11111111111111111111111111111111111111111
00000000000010000010000000101000101000001
10000000000010000010000000101000101000001
10101011111010101111101010101110101011111
10101000001010100010001010100000000000001
10111110101110101010111111111010111011111
Expand Down
2 changes: 1 addition & 1 deletion data/level/6.map
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
11111111111111111111111111111111111111111
00101000001010001010101000001010101000001
10101000001010001010101000001010101000001
10101110111010111010101110111010101110111
10001010000000000000000000000000000010001
10111010111111101110111110111011111110111
Expand Down
2 changes: 1 addition & 1 deletion data/level/7.map
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
11111111111111111111111111111111111111111
00000000100000000000000000000000000010001
10000000100000000000000000000000000010001
10101111101111101011111111111111101110101
10100000000000101000000000000000100000101
10111010111010111010101011111110111110111
Expand Down
2 changes: 1 addition & 1 deletion data/level/8.map
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
11111111111111111111111111111111111111111
00100000100010100000100010000000000000101
10100000100010100000100010000000000000101
10101111101110111011101111101011111111101
10000000001000000000000010101000000000001
10101110111010111111111110101111111010111
Expand Down
24 changes: 0 additions & 24 deletions headfile/DataBaseMode.h

This file was deleted.

18 changes: 0 additions & 18 deletions headfile/DataBaseUnitil.h

This file was deleted.

43 changes: 0 additions & 43 deletions headfile/database-hfile/Database.h

This file was deleted.

20 changes: 0 additions & 20 deletions headfile/database-hfile/Log.h

This file was deleted.

45 changes: 0 additions & 45 deletions headfile/database-hfile/Record.h

This file was deleted.

30 changes: 0 additions & 30 deletions headfile/database-hfile/User.h

This file was deleted.

4 changes: 4 additions & 0 deletions headfile/levelPage.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class LevelPage {
{1042,1198,634,685},
{2,6,7,8}
};
//此时的关卡
char _NOWLEVEL;
int _getMouseState(MOUSEMSG& m);
bool _judgeInRect(MOUSEMSG& m, struct Rect rect);
//存储人的位置
Expand All @@ -39,6 +41,8 @@ class LevelPage {
void _moveBody(int x, int y);
void _WinPoPWindow(clock_t& start, int& ss);
void _showTime(clock_t& start,int&ss, RECT* r);
void _setLiangCang();
void _alertOver();
public:
LevelPage(unsigned char level);
void process(void);
Expand Down
13 changes: 10 additions & 3 deletions headfile/libPage.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ struct Rect {
};
private:
MatrixUI&UI;
struct Rect _buttonRange[6] = {
struct Rect _buttonRange[7] = {
{968,1240, 44,100},
{968,1240, 109 , 163},
{968,1240, 173,230},
{982,1100,382,510},
{1136,1228,440,507},
{1000,1200,579,626}
{1000,1200,579,626},
{968,1240,251,299}//反转迷宫按钮
};

int _width = 42, _height = 29;
bool _game = false;//是否为可游戏模式
struct Point _body = { 0,1 };
Expand All @@ -33,6 +34,12 @@ struct Rect {
void _findRoadAndShow(void);//寻找路径以及显示路径
void _defaultInit(void);//默认迷宫生成
void _setBodyImg(int x, int y);//显示人物
void _setLiangCang();//张贴画粮仓图像
//靠近中央随机位置设置老鼠位置,这个位置需满足不是墙
void _setRandomBody();
//反转迷宫,并重置粮仓,以及老鼠位置等
void _reverseMap();
bool reverseStatus = false;
public:
char _Map[29][41];
LibPage(MatrixUI& UI);
Expand Down
Binary file added img/AlertOver.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/cat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/levelPage/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/levelPage/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/levelPage/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/levelPage/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/levelPage/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/levelPage/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/levelPage/7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/levelPage/8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/liangcang.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/libPage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/popWindow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed matrix.exe
Binary file not shown.
Binary file removed maze.db
Binary file not shown.
Loading

0 comments on commit ddc2a6a

Please sign in to comment.